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.19d6fba...

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=(Ot,Ne,ie)=>new Promise((Se,ae)=>{var X=W=>{try{j(ie.next(W))}catch(oe){ae(oe)}},le=W=>{try{j(ie.throw(W))}catch(oe){ae(oe)}},j=W=>W.done?Se(W.value):Promise.resolve(W.value).then(X,le);j((ie=ie.apply(Ot,Ne)).next())});(window.webpackJsonp=window.webpackJsonp||[]).push([[281,3,5,6,7,8,9,11,12],{"+GGh":function(Ot,Ne){Ot.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(Ot,Ne,ie){Ot.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(Ot,Ne,ie){},"/cxE":function(Ot,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 B}),ie.d(Ne,"a",function(){return A});class Se{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(T){setTimeout(()=>{throw T.stack?new Error(T.message+`
`+T.stack):T},0)}}emit(T){this.listeners.forEach(y=>{y(T)})}onUnexpectedError(T){this.unexpectedErrorHandler(T),this.emit(T)}onUnexpectedExternalError(T){this.unexpectedErrorHandler(T)}}const ae=new Se;function X(T){oe(T)||ae.onUnexpectedError(T);return}function le(T){oe(T)||ae.onUnexpectedExternalError(T);return}function j(T){if(T instanceof Error){let{name:y,message:p}=T;const v=T.stacktrace||T.stack;return{$isError:!0,name:y,message:p,stack:v}}return T}const W="Canceled";function oe(T){return T instanceof Error&&T.name===W&&T.message===W}function V(){const T=new Error(W);return T.name=T.message,T}function l(T){return T?new Error(`Illegal argument: ${T}`):new Error("Illegal argument")}function B(T){return T?new Error(`Illegal state: ${T}`):new Error("Illegal state")}class A extends Error{constructor(T){super("NotSupported");T&&(this.message=T)}}},"1j5w":function(Ot,Ne,ie){"use strict";ie.d(Ne,"d",function(){return ft}),ie.d(Ne,"b",function(){return et}),ie.d(Ne,"c",function(){return Tt}),ie.d(Ne,"a",function(){return kn});var Se=ie("VTBJ"),ae=ie("1OyB"),X=ie("vuIU"),le=ie("JX7q"),j=ie("Ji7U"),W=ie("LK+K"),oe=ie("q1tI"),V=ie("I8Z2"),l=ie("BGR+"),B=ie("wx14"),A=ie("rePB"),T=ie("4IlW"),y=ie("2GS6"),p=ie("Gytx"),v=ie.n(p),_=ie("TSYQ"),g=ie.n(_),h=ie("U8pU"),c=ie("ODXe"),d=/iPhone/i,R=/iPod/i,D=/iPad/i,I=/\bAndroid(?:.+)Mobile\b/i,N=/Android/i,S=/\bAndroid(?:.+)SD4930UR\b/i,L=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,C=/Windows Phone/i,b=/\bWindows(?:.+)ARM\b/i,E=/BlackBerry/i,O=/BB10/i,x=/Opera Mini/i,k=/\b(CriOS|Chrome)(?:.+)Mobile/i,Z=/Mobile(?:.+)Firefox\b/i;function G(Qt,ht){return Qt.test(ht)}function P(Qt){var ht=Qt||(typeof navigator!="undefined"?navigator.userAgent:""),yt=ht.split("[FBAN");if(typeof yt[1]!="undefined"){var ut=yt,Ae=Object(c.a)(ut,1);ht=Ae[0]}if(yt=ht.split("Twitter"),typeof yt[1]!="undefined"){var Ue=yt,vt=Object(c.a)(Ue,1);ht=vt[0]}var dt={apple:{phone:G(d,ht)&&!G(C,ht),ipod:G(R,ht),tablet:!G(d,ht)&&G(D,ht)&&!G(C,ht),device:(G(d,ht)||G(R,ht)||G(D,ht))&&!G(C,ht)},amazon:{phone:G(S,ht),tablet:!G(S,ht)&&G(L,ht),device:G(S,ht)||G(L,ht)},android:{phone:!G(C,ht)&&G(S,ht)||!G(C,ht)&&G(I,ht),tablet:!G(C,ht)&&!G(S,ht)&&!G(I,ht)&&(G(L,ht)||G(N,ht)),device:!G(C,ht)&&(G(S,ht)||G(L,ht)||G(I,ht)||G(N,ht))||G(/\bokhttp\b/i,ht)},windows:{phone:G(C,ht),tablet:G(b,ht),device:G(C,ht)||G(b,ht)},other:{blackberry:G(E,ht),blackberry10:G(O,ht),opera:G(x,ht),firefox:G(Z,ht),chrome:G(k,ht),device:G(E,ht)||G(O,ht)||G(x,ht)||G(Z,ht)||G(k,ht)},any:null,phone:null,tablet:null};return dt.any=dt.apple.device||dt.android.device||dt.windows.device||dt.other.device,dt.phone=dt.apple.phone||dt.android.phone||dt.windows.phone,dt.tablet=dt.apple.tablet||dt.android.tablet||dt.windows.tablet,dt}var z=Object(Se.a)(Object(Se.a)({},P()),{},{isMobile:P}),Q=z;function H(){}function ne(Qt,ht,yt){var ut=ht||"";return Qt.key||"".concat(ut,"item_").concat(yt)}function ce(Qt){return"".concat(Qt,"-menu-")}function we(Qt,ht){var yt=-1;oe.Children.forEach(Qt,function(ut){yt+=1,ut&&ut.type&&ut.type.isMenuItemGroup?oe.Children.forEach(ut.props.children,function(Ae){yt+=1,ht(Ae,yt)}):ht(ut,yt)})}function Ce(Qt,ht,yt){if(!Qt||yt.find)return;oe.Children.forEach(Qt,function(ut){if(ut){var Ae=ut.type;if(!Ae||!(Ae.isSubMenu||Ae.isMenuItem||Ae.isMenuItemGroup))return;ht.indexOf(ut.key)!==-1?yt.find=!0:ut.props.children&&Ce(ut.props.children,ht,yt)}})}var ze=["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"],Le=function(ht){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut=ht&&typeof ht.getBoundingClientRect=="function"&&ht.getBoundingClientRect().width;if(ut){if(yt){var Ae=getComputedStyle(ht),Ue=Ae.marginLeft,vt=Ae.marginRight;ut+=+Ue.replace("px","")+ +vt.replace("px","")}ut=+ut.toFixed(6)}return ut||0},We=function(ht,yt,ut){ht&&Object(h.a)(ht.style)==="object"&&(ht.style[yt]=ut)},Ve=function(){return Q.any},$e=ie("KQm4"),Pe=ie("Ff2n"),se=ie("i8i4"),w=ie("bdgK"),F=ie("uciX"),Y=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]}},Be=q,it=0,be={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Re=function(ht,yt,ut){var Ae=ce(yt),Ue=ht.getState();ht.setState({defaultActiveFirst:Object(Se.a)(Object(Se.a)({},Ue.defaultActiveFirst),{},Object(A.a)({},Ae,ut))})},je=function(Qt){Object(j.a)(yt,Qt);var ht=Object(W.a)(yt);function yt(ut){var Ae;Object(ae.a)(this,yt),Ae=ht.call(this,ut),Ae.onDestroy=function(Et){Ae.props.onDestroy(Et)},Ae.onKeyDown=function(Et){var It=Et.keyCode,Ct=Ae.menuInstance,nt=Ae.props,Bt=nt.isOpen,$t=nt.store;if(It===T.a.ENTER)return Ae.onTitleClick(Et),Re($t,Ae.props.eventKey,!0),!0;if(It===T.a.RIGHT)return Bt?Ct.onKeyDown(Et):(Ae.triggerOpenChange(!0),Re($t,Ae.props.eventKey,!0)),!0;if(It===T.a.LEFT){var ln;if(Bt)ln=Ct.onKeyDown(Et);else return;return ln||(Ae.triggerOpenChange(!1),ln=!0),ln}return Bt&&(It===T.a.UP||It===T.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 It=Ae.props,Ct=It.eventKey,nt=It.onMouseEnter,Bt=It.store;Re(Bt,Ae.props.eventKey,!1),nt({key:Ct,domEvent:Et})},Ae.onMouseLeave=function(Et){var It=Ae.props,Ct=It.parentMenu,nt=It.eventKey,Bt=It.onMouseLeave;Ct.subMenuInstance=Object(le.a)(Ae),Bt({key:nt,domEvent:Et})},Ae.onTitleMouseEnter=function(Et){var It=Ae.props,Ct=It.eventKey,nt=It.onItemHover,Bt=It.onTitleMouseEnter;nt({key:Ct,hover:!0}),Bt({key:Ct,domEvent:Et})},Ae.onTitleMouseLeave=function(Et){var It=Ae.props,Ct=It.parentMenu,nt=It.eventKey,Bt=It.onItemHover,$t=It.onTitleMouseLeave;Ct.subMenuInstance=Object(le.a)(Ae),Bt({key:nt,hover:!1}),$t({key:nt,domEvent:Et})},Ae.onTitleClick=function(Et){var It=Object(le.a)(Ae),Ct=It.props;if(Ct.onTitleClick({key:Ct.eventKey,domEvent:Et}),Ct.triggerSubMenuAction==="hover")return;Ae.triggerOpenChange(!Ct.isOpen,"click"),Re(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(Se.a)(Object(Se.a)({},Et),{},{keyPath:(Et.keyPath||[]).concat(Ae.props.eventKey)})},Ae.triggerOpenChange=function(Et,It){var Ct=Ae.props.eventKey,nt=function(){Ae.onOpenChange({key:Ct,item:Object(le.a)(Ae),trigger:It,open:Et})};It==="mouseenter"?Ae.mouseenterTimeout=setTimeout(function(){nt()},0):nt()},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),It=Et.props;return{mode:It.mode==="horizontal"?"vertical":It.mode,visible:Ae.props.isOpen,level:It.level+1,inlineIndent:It.inlineIndent,focusable:!1,onClick:Ae.onSubMenuClick,onSelect:Ae.onSelect,onDeselect:Ae.onDeselect,onDestroy:Ae.onDestroy,selectedKeys:It.selectedKeys,eventKey:"".concat(It.eventKey,"-menu-"),openKeys:It.openKeys,motion:It.motion,onOpenChange:Ae.onOpenChange,subMenuOpenDelay:It.subMenuOpenDelay,parentMenu:Object(le.a)(Ae),subMenuCloseDelay:It.subMenuCloseDelay,forceSubMenuRender:It.forceSubMenuRender,triggerSubMenuAction:It.triggerSubMenuAction,builtinPlacements:It.builtinPlacements,defaultActiveFirst:It.store.getState().defaultActiveFirst[ce(It.eventKey)],multiple:It.multiple,prefixCls:It.rootPrefixCls,id:Ae.internalMenuId,manualRef:Ae.saveMenuInstance,itemIcon:It.itemIcon,expandIcon:It.expandIcon,direction:It.direction}},Ae.getMotion=function(Et,It){var Ct=Object(le.a)(Ae),nt=Ct.haveRendered,Bt=Ae.props,$t=Bt.motion,ln=Bt.rootPrefixCls,Xn=Object(Se.a)(Object(Se.a)({},$t),{},{leavedClassName:"".concat(ln,"-hidden"),removeOnLeave:!1,motionAppear:nt||!It||Et!=="inline"});return Xn};var Ue=ut.store,vt=ut.eventKey,dt=Ue.getState(),en=dt.defaultActiveFirst;Ae.isRootMenu=!1;var rn=!1;return en&&(rn=en[vt]),Re(Ue,vt,rn),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,dt=Ue.parentMenu,en=Ue.manualRef;if(en&&en(this),vt!=="horizontal"||!dt.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(),dt=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 en=vt.direction;return oe.createElement(Y.default,Object.assign({visible:vt.visible},dt),function(rn){var Et=rn.className,It=rn.style,Ct=g()("".concat(vt.prefixCls,"-sub"),Et,Object(A.a)({},"".concat(vt.prefixCls,"-rtl"),en==="rtl"));return oe.createElement(pe,Object.assign({},vt,{id:Ue.internalMenuId,className:Ct,style:It}),Ae)})}},{key:"render",value:function(){var Ae,Ue=Object(Se.a)({},this.props),vt=Ue.isOpen,dt=this.getPrefixCls(),en=Ue.mode==="inline",rn=g()(dt,"".concat(dt,"-").concat(Ue.mode),(Ae={},Object(A.a)(Ae,Ue.className,!!Ue.className),Object(A.a)(Ae,this.getOpenClassName(),vt),Object(A.a)(Ae,this.getActiveClassName(),Ue.active||vt&&!en),Object(A.a)(Ae,this.getDisabledClassName(),Ue.disabled),Object(A.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={},It={},Ct={};Ue.disabled||(Et={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},It={onClick:this.onTitleClick},Ct={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var nt={},Bt=Ue.direction;en&&(Bt==="rtl"?nt.paddingRight=Ue.inlineIndent*Ue.level:nt.paddingLeft=Ue.inlineIndent*Ue.level);var $t={};this.props.isOpen&&($t={"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(Se.a)({},this.props))));var Xn=oe.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:nt,className:"".concat(dt,"-title"),role:"button"},Ct,It,{"aria-expanded":vt},$t,{"aria-haspopup":"true",title:typeof Ue.title=="string"?Ue.title:void 0}),Ue.title,ln||oe.createElement("i",{className:"".concat(dt,"-arrow")})),In=this.renderChildren(Ue.children),dn=Ue.parentMenu.isRootMenu?Ue.parentMenu.props.getPopupContainer:function(Ar){return Ar.parentNode},An=be[Ue.mode],gn=Ue.popupOffset?{offset:Ue.popupOffset}:{},Un=Ue.mode==="inline"?"":Ue.popupClassName;Un+=Bt==="rtl"?" ".concat(dt,"-rtl"):"";var Hn=Ue.disabled,ar=Ue.triggerSubMenuAction,hr=Ue.subMenuOpenDelay,Ir=Ue.forceSubMenuRender,si=Ue.subMenuCloseDelay,li=Ue.builtinPlacements;ze.forEach(function(Ar){return delete Ue[Ar]}),delete Ue.onClick;var _n=Bt==="rtl"?Object.assign({},xe,li):Object.assign({},q,li);return delete Ue.direction,oe.createElement("li",Object.assign({},Ue,Et,{className:rn,role:"menuitem"}),en&&Xn,en&&In,!en&&oe.createElement(F.a,{prefixCls:dt,popupClassName:g()("".concat(dt,"-popup"),Un),getPopupContainer:dn,builtinPlacements:_n,popupPlacement:An,popupVisible:vt,popupAlign:gn,popup:In,action:Hn?[]:[ar],mouseEnterDelay:hr,mouseLeaveDelay:si,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Ir},Xn))}}]),yt}(oe.Component);je.defaultProps={onMouseEnter:H,onMouseLeave:H,onTitleMouseEnter:H,onTitleMouseLeave:H,onTitleClick:H,manualRef:H,mode:"vertical",title:""};var Ye=Object(V.b)(function(Qt,ht){var yt=Qt.openKeys,ut=Qt.activeKey,Ae=Qt.selectedKeys,Ue=ht.eventKey,vt=ht.subMenuKey;return{isOpen:yt.indexOf(Ue)>-1,active:ut[vt]===Ue,selectedKeys:Ae}})(je);Ye.isSubMenu=!0;var ft=Ye,Rt="menuitem-overflowed",Jt=.5,Wt=function(Qt){Object(j.a)(yt,Qt);var ht=Object(W.a)(yt);function yt(){var ut;return Object(ae.a)(this,yt),ut=ht.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 dt=ut.props,en=dt.overflowedIndicator,rn=dt.level,Et=dt.mode,It=dt.prefixCls,Ct=dt.theme;if(rn!==1||Et!=="horizontal")return null;var nt=ut.props.children[0],Bt=nt.props,$t=Bt.children,ln=Bt.title,Xn=Bt.style,In=Object(Pe.a)(Bt,["children","title","style"]),dn=Object(Se.a)({},Xn),An="".concat(Ae,"-overflowed-indicator"),gn="".concat(Ae,"-overflowed-indicator");Ue.length===0&&vt!==!0?dn=Object(Se.a)(Object(Se.a)({},dn),{},{display:"none"}):vt&&(dn=Object(Se.a)(Object(Se.a)({},dn),{},{visibility:"hidden",position:"absolute"}),An="".concat(An,"-placeholder"),gn="".concat(gn,"-placeholder"));var Un=Ct?"".concat(It,"-").concat(Ct):"",Hn={};return ze.forEach(function(ar){In[ar]!==void 0&&(Hn[ar]=In[ar])}),oe.createElement(ft,Object.assign({title:en,className:"".concat(It,"-overflowed-submenu"),popupClassName:Un},Hn,{key:An,eventKey:gn,disabled:!1,style:dn}),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];We(vt,"display","inline-block");var dt=ut.getMenuItemNodes(),en=dt.filter(function(rn){return rn.className.split(" ").indexOf(Rt)>=0});en.forEach(function(rn){We(rn,"display","inline-block")}),ut.menuItemSizes=dt.map(function(rn){return Le(rn,!0)}),en.forEach(function(rn){We(rn,"display","none")}),ut.overflowedIndicatorWidth=Le(Ae.children[Ae.children.length-1],!0),ut.originalTotalWidth=ut.menuItemSizes.reduce(function(rn,Et){return rn+Et},0),ut.handleResize(),We(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=Le(Ae);ut.overflowedItems=[];var vt=0,dt;ut.originalTotalWidth>Ue+Jt&&(dt=-1,ut.menuItemSizes.forEach(function(en){vt+=en,vt+ut.overflowedIndicatorWidth<=Ue&&(dt+=1)})),ut.setState({lastVisibleIndex:dt})},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 w.default(function(vt){vt.forEach(function(){var dt=Ae.cancelFrameId;cancelAnimationFrame(dt),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(dt,en,rn){var Et=en;if(Ue.props.mode==="horizontal"){var It=Ue.getOverflowedSubMenuItem(en.props.eventKey,[]);vt!==void 0&&Ue.props.className.indexOf("".concat(Ue.props.prefixCls,"-root"))!==-1&&(rn>vt&&(Et=oe.cloneElement(en,{style:{display:"none"},eventKey:"".concat(en.props.eventKey,"-hidden"),className:"".concat(Rt)})),rn===vt+1&&(Ue.overflowedItems=Ae.slice(vt+1).map(function(nt){return oe.cloneElement(nt,{key:nt.props.eventKey,mode:"vertical-left"})}),It=Ue.getOverflowedSubMenuItem(en.props.eventKey,Ue.overflowedItems)));var Ct=[].concat(Object($e.a)(dt),[It,Et]);return rn===Ae.length-1&&Ct.push(Ue.getOverflowedSubMenuItem(en.props.eventKey,[],!0)),Ct}return[].concat(Object($e.a)(dt),[Et])},[])}},{key:"render",value:function(){var Ae=this.props,Ue=Ae.visible,vt=Ae.prefixCls,dt=Ae.overflowedIndicator,en=Ae.mode,rn=Ae.level,Et=Ae.tag,It=Ae.children,Ct=Ae.theme,nt=Object(Pe.a)(Ae,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Bt=Et;return oe.createElement(Bt,Object.assign({},nt),this.renderChildren(It))}}]),yt}(oe.Component);Wt.defaultProps={tag:"div",className:""};var Nt=Wt;function sn(Qt){return Qt.length?Qt.every(function(ht){return!!ht.props.disabled}):!0}function an(Qt,ht,yt){var ut=Qt.getState();Qt.setState({activeKey:Object(Se.a)(Object(Se.a)({},ut.activeKey),{},Object(A.a)({},ht,yt))})}function zt(Qt){return Qt.eventKey||"0-menu-"}function mn(Qt,ht){var yt=ht,ut=Qt.children,Ae=Qt.eventKey;if(yt){var Ue;if(we(ut,function(vt,dt){vt&&vt.props&&!vt.props.disabled&&yt===ne(vt,Ae,dt)&&(Ue=!0)}),Ue)return yt}return yt=null,Qt.defaultActiveFirst&&we(ut,function(vt,dt){!yt&&vt&&!vt.props.disabled&&(yt=ne(vt,Ae,dt))}),yt}function xn(Qt){if(Qt){var ht=this.instanceArray.indexOf(Qt);ht!==-1?this.instanceArray[ht]=Qt:this.instanceArray.push(Qt)}}var Te=function(Qt){Object(j.a)(yt,Qt);var ht=Object(W.a)(yt);function yt(ut){var Ae;return Object(ae.a)(this,yt),Ae=ht.call(this,ut),Ae.onKeyDown=function(Ue,vt){var dt=Ue.keyCode,en;if(Ae.getFlatInstanceArray().forEach(function(Et){Et&&Et.props.active&&Et.onKeyDown&&(en=Et.onKeyDown(Ue))}),en)return 1;var rn=null;return(dt===T.a.UP||dt===T.a.DOWN)&&(rn=Ae.step(dt===T.a.UP?-1:1)),rn?(Ue.preventDefault(),an(Ae.props.store,zt(Ae.props),rn.props.eventKey),typeof vt=="function"&&vt(rn),1):void 0},Ae.onItemHover=function(Ue){var vt=Ue.key,dt=Ue.hover;an(Ae.props.store,zt(Ae.props),dt?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(),dt=Ae.props.store.getState().activeKey[zt(Ae.props)],en=vt.length;if(!en)return null;Ue<0&&(vt=vt.concat().reverse());var rn=-1;if(vt.every(function(nt,Bt){return nt&&nt.props.eventKey===dt?(rn=Bt,!1):!0}),!Ae.props.defaultActiveFirst&&rn!==-1&&sn(vt.slice(rn,en-1)))return;var Et=(rn+1)%en,It=Et;do{var Ct=vt[It];if(!Ct||Ct.props.disabled)It=(It+1)%en;else return Ct}while(It!==Et);return null},Ae.renderCommonMenuItem=function(Ue,vt,dt){var en=Ae.props.store.getState(),rn=Object(le.a)(Ae),Et=rn.props,It=ne(Ue,Et.eventKey,vt),Ct=Ue.props;if(!Ct||typeof Ue.type=="string")return Ue;var nt=It===en.activeKey,Bt=Object(Se.a)(Object(Se.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(y.a)(Ue.ref,xn.bind(Object(le.a)(Ae))),eventKey:It,active:!Ct.disabled&&nt,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},dt),{},{direction:Et.direction});return(Et.mode==="inline"||Ve())&&(Bt.triggerSubMenuAction="click"),oe.cloneElement(Ue,Bt)},Ae.renderMenuItem=function(Ue,vt,dt){if(!Ue)return null;var en=Ae.props.store.getState(),rn={openKeys:en.openKeys,selectedKeys:en.selectedKeys,triggerSubMenuAction:Ae.props.triggerSubMenuAction,subMenuKey:dt};return Ae.renderCommonMenuItem(Ue,vt,rn)},ut.store.setState({activeKey:Object(Se.a)(Object(Se.a)({},ut.store.getState().activeKey),{},Object(A.a)({},ut.eventKey,mn(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||!v()(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)],dt=mn(Ue,vt);if(dt!==vt)an(Ue.store,zt(Ue),dt);else if("activeKey"in Ae){var en=mn(Ae,Ae.activeKey);dt!==en&&an(Ue.store,zt(Ue),dt)}}},{key:"render",value:function(){var Ae=this,Ue=Object(B.a)({},this.props);this.instanceArray=[];var vt=g()(Ue.prefixCls,Ue.className,"".concat(Ue.prefixCls,"-").concat(Ue.mode)),dt={className:vt,role:Ue.role||"menu"};Ue.id&&(dt.id=Ue.id),Ue.focusable&&(dt.tabIndex=0,dt.onKeyDown=this.onKeyDown);var en=Ue.prefixCls,rn=Ue.eventKey,Et=Ue.visible,It=Ue.level,Ct=Ue.mode,nt=Ue.overflowedIndicator,Bt=Ue.theme;return ze.forEach(function($t){return delete Ue[$t]}),delete Ue.onClick,oe.createElement(Nt,Object.assign({},Ue,{prefixCls:en,mode:Ct,tag:"ul",level:It,theme:Bt,visible:Et,overflowedIndicator:nt},dt),oe.Children.map(Ue.children,function($t,ln){return Ae.renderMenuItem($t,ln,rn||"0-menu-")}))}}]),yt}(oe.Component);Te.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:H};var fe=Object(V.b)()(Te),pe=fe,ve=ie("Kwbf");function Oe(Qt,ht,yt){var ut=Qt.prefixCls,Ae=Qt.motion,Ue=Qt.defaultMotions,vt=Ue===void 0?{}:Ue,dt=Qt.openAnimation,en=Qt.openTransitionName,rn=ht.switchingModeFromInline;if(Ae)return Ae;if(Object(h.a)(dt)==="object"&&dt)Object(ve.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof dt=="string")return{motionName:"".concat(ut,"-open-").concat(dt)};if(en)return{motionName:en};var Et=vt[yt];return Et||(rn?null:vt.other)}var ge=function(Qt){Object(j.a)(yt,Qt);var ht=Object(W.a)(yt);function yt(ut){var Ae;Object(ae.a)(this,yt),Ae=ht.call(this,ut),Ae.inlineOpenKeys=[],Ae.onSelect=function(dt){var en=Object(le.a)(Ae),rn=en.props;if(rn.selectable){var Et=Ae.store.getState(),It=Et.selectedKeys,Ct=dt.key;rn.multiple?It=It.concat([Ct]):It=[Ct],"selectedKeys"in rn||Ae.store.setState({selectedKeys:It}),rn.onSelect(Object(Se.a)(Object(Se.a)({},dt),{},{selectedKeys:It}))}},Ae.onClick=function(dt){var en=Ae.getRealMenuMode(),rn=Object(le.a)(Ae),Et=rn.store,It=rn.props.onOpenChange;en!=="inline"&&!("openKeys"in Ae.props)&&(Et.setState({openKeys:[]}),It([])),Ae.props.onClick(dt)},Ae.onKeyDown=function(dt,en){Ae.innerMenu.getWrappedInstance().onKeyDown(dt,en)},Ae.onOpenChange=function(dt){var en=Object(le.a)(Ae),rn=en.props,Et=Ae.store.getState().openKeys.concat(),It=!1,Ct=function(Bt){var $t=!1;if(Bt.open)$t=Et.indexOf(Bt.key)===-1,$t&&Et.push(Bt.key);else{var ln=Et.indexOf(Bt.key);$t=ln!==-1,$t&&Et.splice(ln,1)}It=It||$t};Array.isArray(dt)?dt.forEach(Ct):Ct(dt),It&&("openKeys"in Ae.props||Ae.store.setState({openKeys:Et}),rn.onOpenChange(Et))},Ae.onDeselect=function(dt){var en=Object(le.a)(Ae),rn=en.props;if(rn.selectable){var Et=Ae.store.getState().selectedKeys.concat(),It=dt.key,Ct=Et.indexOf(It);Ct!==-1&&Et.splice(Ct,1),"selectedKeys"in rn||Ae.store.setState({selectedKeys:Et}),rn.onDeselect(Object(Se.a)(Object(Se.a)({},dt),{},{selectedKeys:Et}))}},Ae.onMouseEnter=function(dt){Ae.restoreModeVerticalFromInline();var en=Ae.props.onMouseEnter;en&&en(dt)},Ae.onTransitionEnd=function(dt){var en=dt.propertyName==="width"&&dt.target===dt.currentTarget,rn=dt.target.className,Et=Object.prototype.toString.call(rn)==="[object SVGAnimatedString]"?rn.animVal:rn,It=dt.propertyName==="font-size"&&Et.indexOf("anticon")>=0;(en||It)&&Ae.restoreModeVerticalFromInline()},Ae.setInnerMenu=function(dt){Ae.innerMenu=dt},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-":mn(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,dt=Ue.inlineCollapsed,en=Ue.onOpenChange;(!Ae.inlineCollapsed&&dt||!Ae.siderCollapsed&&vt)&&en([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Ae){var Ue=this.props,vt=this.store,dt=this.inlineOpenKeys,en=vt.getState(),rn={};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=en.openKeys.concat(),rn.openKeys=[]),(!Ue.inlineCollapsed&&Ae.inlineCollapsed||!Ue.siderCollapsed&&Ae.siderCollapsed)&&(rn.openKeys=dt,this.inlineOpenKeys=[])),Object.keys(rn).length&&vt.setState(rn)}},{key:"updateMenuDisplay",value:function(){var Ae=this.props.collapsedWidth,Ue=this.store,vt=this.prevOpenKeys,dt=this.getInlineCollapsed()&&(Ae===0||Ae==="0"||Ae==="0px");dt?(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(Se.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(Se.a)(Object(Se.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,Ie=function(Qt){Object(j.a)(yt,Qt);var ht=Object(W.a)(yt);function yt(){var ut;return Object(ae.a)(this,yt),ut=ht.apply(this,arguments),ut.onKeyDown=function(Ae){var Ue=Ae.keyCode;return Ue===T.a.ENTER?(ut.onClick(Ae),!0):void 0},ut.onMouseLeave=function(Ae){var Ue=ut.props,vt=Ue.eventKey,dt=Ue.onItemHover,en=Ue.onMouseLeave;dt({key:vt,hover:!1}),en({key:vt,domEvent:Ae})},ut.onMouseEnter=function(Ae){var Ue=ut.props,vt=Ue.eventKey,dt=Ue.onItemHover,en=Ue.onMouseEnter;dt({key:vt,hover:!0}),en({key:vt,domEvent:Ae})},ut.onClick=function(Ae){var Ue=ut.props,vt=Ue.eventKey,dt=Ue.multiple,en=Ue.onClick,rn=Ue.onSelect,Et=Ue.onDeselect,It=Ue.isSelected,Ct={key:vt,keyPath:[vt],item:Object(le.a)(ut),domEvent:Ae};en(Ct),dt?It?Et(Ct):rn(Ct):It||rn(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(Se.a)({},this.props),vt=g()(this.getPrefixCls(),Ue.className,(Ae={},Object(A.a)(Ae,this.getActiveClassName(),!Ue.disabled&&Ue.active),Object(A.a)(Ae,this.getSelectedClassName(),Ue.isSelected),Object(A.a)(Ae,this.getDisabledClassName(),Ue.disabled),Ae)),dt=Object(Se.a)(Object(Se.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"?dt=Object(Se.a)(Object(Se.a)({},dt),{},{role:"option","aria-selected":Ue.isSelected}):(Ue.role===null||Ue.role==="none")&&(dt.role="none");var en={onClick:Ue.disabled?null:this.onClick,onMouseLeave:Ue.disabled?null:this.onMouseLeave,onMouseEnter:Ue.disabled?null:this.onMouseEnter},rn=Object(Se.a)({},Ue.style);Ue.mode==="inline"&&(Ue.direction==="rtl"?rn.paddingRight=Ue.inlineIndent*Ue.level:rn.paddingLeft=Ue.inlineIndent*Ue.level),ze.forEach(function(It){return delete Ue[It]}),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"]),dt,en,{style:rn,ref:this.saveNode}),Ue.children,Et)}}]),yt}(oe.Component);Ie.isMenuItem=!0,Ie.defaultProps={onSelect:H,onMouseEnter:H,onMouseLeave:H,manualRef:H};var Me=Object(V.b)(function(Qt,ht){var yt=Qt.activeKey,ut=Qt.selectedKeys,Ae=ht.eventKey,Ue=ht.subMenuKey;return{active:yt[Ue]===Ae,isSelected:ut.indexOf(Ae)!==-1}})(Ie),et=Me,qe=function(Qt){Object(j.a)(yt,Qt);var ht=Object(W.a)(yt);function yt(){var ut;return Object(ae.a)(this,yt),ut=ht.apply(this,arguments),ut.renderInnerMenuItem=function(Ae){var Ue=ut.props,vt=Ue.renderMenuItem,dt=Ue.index;return vt(Ae,dt,ut.props.subMenuKey)},ut}return Object(X.a)(yt,[{key:"render",value:function(){var Ae=Object(B.a)({},this.props),Ue=Ae.className,vt=Ue===void 0?"":Ue,dt=Ae.rootPrefixCls,en="".concat(dt,"-item-group-title"),rn="".concat(dt,"-item-group-list"),Et=Ae.title,It=Ae.children;return ze.forEach(function(Ct){return delete Ae[Ct]}),delete Ae.onClick,delete Ae.direction,oe.createElement("li",Object.assign({},Ae,{className:"".concat(vt," ").concat(dt,"-item-group")}),oe.createElement("div",{className:en,title:typeof Et=="string"?Et:void 0},Et),oe.createElement("ul",{className:rn},oe.Children.map(It,this.renderInnerMenuItem)))}}]),yt}(oe.Component);qe.isMenuItemGroup=!0,qe.defaultProps={disabled:!0};var Tt=qe,cn=function(ht){var yt=ht.className,ut=ht.rootPrefixCls,Ae=ht.style;return oe.createElement("li",{className:"".concat(yt," ").concat(ut,"-item-divider"),style:Ae})};cn.defaultProps={disabled:!0,className:"",style:{}};var kn=cn,On=Ne.e=ye},"24hK":function(Ot,Ne,ie){"use strict";ie.d(Ne,"a",function(){return ae});class Se{constructor(X){this.element=X,this.next=Se.Undefined,this.prev=Se.Undefined}}Se.Undefined=new Se(void 0);class ae{constructor(){this._first=Se.Undefined,this._last=Se.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Se.Undefined}clear(){let X=this._first;for(;X!==Se.Undefined;){const le=X.next;X.prev=Se.Undefined,X.next=Se.Undefined,X=le}this._first=Se.Undefined,this._last=Se.Undefined,this._size=0}unshift(X){return this._insert(X,!1)}push(X){return this._insert(X,!0)}_insert(X,le){const j=new Se(X);if(this._first===Se.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 W=!1;return()=>{W||(W=!0,this._remove(j))}}shift(){if(this._first===Se.Undefined)return;{const X=this._first.element;return this._remove(this._first),X}}pop(){if(this._last===Se.Undefined)return;{const X=this._last.element;return this._remove(this._last),X}}_remove(X){if(X.prev!==Se.Undefined&&X.next!==Se.Undefined){const le=X.prev;le.next=X.next,X.next.prev=le}else X.prev===Se.Undefined&&X.next===Se.Undefined?(this._first=Se.Undefined,this._last=Se.Undefined):X.next===Se.Undefined?(this._last=this._last.prev,this._last.next=Se.Undefined):X.prev===Se.Undefined&&(this._first=this._first.next,this._first.prev=Se.Undefined);this._size-=1}*[Symbol.iterator](){let X=this._first;for(;X!==Se.Undefined;)yield X.element,X=X.next}}},"3/fG":function(Ot,Ne,ie){"use strict";ie.d(Ne,"a",function(){return ae});function Se(X,le){let j;return le.length===0?j=X:j=X.replace(/\{(\d+)\}/g,function(W,oe){const V=oe[0];return typeof le[V]!="undefined"?le[V]:W}),j}function ae(X,le,...j){return Se(le,j)}},"5VLF":function(Ot,Ne,ie){"use strict";var Se,ae;function X(le,j,W){var oe=function(V,l){return le.js_beautify(V,l)};return oe.js=le.js_beautify,oe.css=j.css_beautify,oe.html=W.html_beautify,oe.js_beautify=le.js_beautify,oe.css_beautify=j.css_beautify,oe.html_beautify=W.html_beautify,oe}!(Se=[ie("6UM0"),ie("TXwP"),ie("psGv")],ae=function(le,j,W){return X(le,j,W)}.apply(Ne,Se),ae!==void 0&&(Ot.exports=ae))},"5Y4S":function(Ot,Ne,ie){"use strict";ie.d(Ne,"a",function(){return X});var Se=ie("MNsG");const ae=Se.b.performance&&typeof Se.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?Se.b.performance.now():Date.now()}}},"6+eU":function(Ot,Ne,ie){"use strict";ie.d(Ne,"a",function(){return I});var Se=ie("wx14"),ae=ie("rePB"),X=ie("VTBJ"),le=ie("1OyB"),j=ie("vuIU"),W=ie("Ji7U"),oe=ie("LK+K"),V=ie("q1tI"),l=ie.n(V),B=ie("TSYQ"),A=ie.n(B),T=function(S){var L,C="".concat(S.rootPrefixCls,"-item"),b=A()(C,"".concat(C,"-").concat(S.page),(L={},Object(ae.a)(L,"".concat(C,"-active"),S.active),Object(ae.a)(L,S.className,!!S.className),Object(ae.a)(L,"".concat(C,"-disabled"),!S.page),L)),E=function(){S.onClick(S.page)},O=function(k){S.onKeyPress(k,S.onClick,S.page)};return l.a.createElement("li",{title:S.showTitle?S.page:null,className:b,onClick:E,onKeyPress:O,tabIndex:"0"},S.itemRender(S.page,"page",l.a.createElement("a",{rel:"nofollow"},S.page)))},y=T,p={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},v=function(N){Object(W.a)(L,N);var S=Object(oe.a)(L);function L(){var C;Object(le.a)(this,L);for(var b=arguments.length,E=new Array(b),O=0;O<b;O++)E[O]=arguments[O];return C=S.call.apply(S,[this].concat(E)),C.state={goInputText:""},C.buildOptionText=function(x){return"".concat(x," ").concat(C.props.locale.items_per_page)},C.changeSize=function(x){C.props.changeSize(Number(x))},C.handleChange=function(x){C.setState({goInputText:x.target.value})},C.handleBlur=function(x){var k=C.props,Z=k.goButton,G=k.quickGo,P=k.rootPrefixCls,z=C.state.goInputText;if(Z||z==="")return;if(x.relatedTarget&&(x.relatedTarget.className.indexOf("".concat(P,"-prev"))>=0||x.relatedTarget.className.indexOf("".concat(P,"-next"))>=0))return;C.setState({goInputText:""}),G(C.getValidValue())},C.go=function(x){var k=C.state.goInputText;if(k==="")return;(x.keyCode===p.ENTER||x.type==="click")&&(C.setState({goInputText:""}),C.props.quickGo(C.getValidValue()))},C}return Object(j.a)(L,[{key:"getValidValue",value:function(){var b=this.state,E=b.goInputText,O=b.current;return!E||isNaN(E)?O:Number(E)}},{key:"getPageSizeOptions",value:function(){var b=this.props,E=b.pageSize,O=b.pageSizeOptions;return O.some(function(x){return x.toString()===E.toString()})?O:O.concat([E.toString()]).sort(function(x,k){var Z=isNaN(Number(x))?0:Number(x),G=isNaN(Number(k))?0:Number(k);return Z-G})}},{key:"render",value:function(){var b=this,E=this.props,O=E.pageSize,x=E.locale,k=E.rootPrefixCls,Z=E.changeSize,G=E.quickGo,P=E.goButton,z=E.selectComponentClass,Q=E.buildOptionText,H=E.selectPrefixCls,ne=E.disabled,ce=this.state.goInputText,we="".concat(k,"-options"),Ce=z,ze=null,Le=null,We=null;if(!Z&&!G)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()},(Q||b.buildOptionText)(Pe))});ze=l.a.createElement(Ce,{disabled:ne,prefixCls:H,showSearch:!1,className:"".concat(we,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(O||Ve[0]).toString(),onChange:this.changeSize,getPopupContainer:function(se){return se.parentNode}},$e)}return G&&(P&&(We=typeof P=="boolean"?l.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:ne,className:"".concat(we,"-quick-jumper-button")},x.jump_to_confirm):l.a.createElement("span",{onClick:this.go,onKeyUp:this.go},P)),Le=l.a.createElement("div",{className:"".concat(we,"-quick-jumper")},x.jump_to,l.a.createElement("input",{disabled:ne,type:"text",value:ce,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),x.page,We)),l.a.createElement("li",{className:"".concat(we)},ze,Le)}}]),L}(l.a.Component);v.defaultProps={pageSizeOptions:["10","20","50","100"]};var _=v,g=ie("N2Kk");function h(){}function c(N){return typeof N=="number"&&isFinite(N)&&Math.floor(N)===N}function d(N,S,L){return L}function R(N,S,L){var C=typeof N=="undefined"?S.pageSize:N;return Math.floor((L.total-1)/C)+1}var D=function(N){Object(W.a)(L,N);var S=Object(oe.a)(L);function L(C){var b;Object(le.a)(this,L),b=S.call(this,C),b.getJumpPrevPage=function(){return Math.max(1,b.state.current-(b.props.showLessItems?3:5))},b.getJumpNextPage=function(){return Math.min(R(void 0,b.state,b.props),b.state.current+(b.props.showLessItems?3:5))},b.getItemIcon=function(Z,G){var P=b.props.prefixCls,z=Z||l.a.createElement("button",{type:"button","aria-label":G,className:"".concat(P,"-item-link")});return typeof Z=="function"&&(z=l.a.createElement(Z,Object(X.a)({},b.props))),z},b.savePaginationNode=function(Z){b.paginationNode=Z},b.isValid=function(Z){return c(Z)&&Z!==b.state.current},b.shouldDisplayQuickJumper=function(){var Z=b.props,G=Z.showQuickJumper,P=Z.pageSize,z=Z.total;return z<=P?!1:G},b.handleKeyDown=function(Z){(Z.keyCode===p.ARROW_UP||Z.keyCode===p.ARROW_DOWN)&&Z.preventDefault()},b.handleKeyUp=function(Z){var G=b.getValidValue(Z),P=b.state.currentInputValue;G!==P&&b.setState({currentInputValue:G}),Z.keyCode===p.ENTER?b.handleChange(G):Z.keyCode===p.ARROW_UP?b.handleChange(G-1):Z.keyCode===p.ARROW_DOWN&&b.handleChange(G+1)},b.changePageSize=function(Z){var G=b.state.current,P=R(Z,b.state,b.props);G=G>P?P:G,P===0&&(G=b.state.current),typeof Z=="number"&&("pageSize"in b.props||b.setState({pageSize:Z}),"current"in b.props||b.setState({current:G,currentInputValue:G})),b.props.onShowSizeChange(G,Z),"onChange"in b.props&&b.props.onChange&&b.props.onChange(G,Z)},b.handleChange=function(Z){var G=b.props.disabled,P=Z;if(b.isValid(P)&&!G){var z=R(void 0,b.state,b.props);P>z?P=z:P<1&&(P=1),"current"in b.props||b.setState({current:P,currentInputValue:P});var Q=b.state.pageSize;return b.props.onChange(P,Q),P}return b.state.current},b.prev=function(){b.hasPrev()&&b.handleChange(b.state.current-1)},b.next=function(){b.hasNext()&&b.handleChange(b.state.current+1)},b.jumpPrev=function(){b.handleChange(b.getJumpPrevPage())},b.jumpNext=function(){b.handleChange(b.getJumpNextPage())},b.hasPrev=function(){return b.state.current>1},b.hasNext=function(){return b.state.current<R(void 0,b.state,b.props)},b.runIfEnter=function(Z,G){if(Z.key==="Enter"||Z.charCode===13){for(var P=arguments.length,z=new Array(P>2?P-2:0),Q=2;Q<P;Q++)z[Q-2]=arguments[Q];G.apply(void 0,z)}},b.runIfEnterPrev=function(Z){b.runIfEnter(Z,b.prev)},b.runIfEnterNext=function(Z){b.runIfEnter(Z,b.next)},b.runIfEnterJumpPrev=function(Z){b.runIfEnter(Z,b.jumpPrev)},b.runIfEnterJumpNext=function(Z){b.runIfEnter(Z,b.jumpNext)},b.handleGoTO=function(Z){(Z.keyCode===p.ENTER||Z.type==="click")&&b.handleChange(b.state.currentInputValue)};var E=C.onChange!==h,O="current"in C;O&&!E&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var x=C.defaultCurrent;"current"in C&&(x=C.current);var k=C.defaultPageSize;return"pageSize"in C&&(k=C.pageSize),x=Math.min(x,R(k,void 0,C)),b.state={current:x,currentInputValue:x,pageSize:k},b}return Object(j.a)(L,[{key:"componentDidUpdate",value:function(b,E){var O=this.props.prefixCls;if(E.current!==this.state.current&&this.paginationNode){var x=this.paginationNode.querySelector(".".concat(O,"-item-").concat(E.current));x&&document.activeElement===x&&x.blur()}}},{key:"getValidValue",value:function(b){var E=b.target.value,O=R(void 0,this.state,this.props),x=this.state.currentInputValue,k;return E===""?k=E:isNaN(Number(E))?k=x:E>=O?k=O:k=Number(E),k}},{key:"getShowSizeChanger",value:function(){var b=this.props,E=b.showSizeChanger,O=b.total,x=b.totalBoundaryShowSizeChanger;return typeof E!="undefined"?E:O>x}},{key:"renderPrev",value:function(b){var E=this.props,O=E.prevIcon,x=E.itemRender,k=x(b,"prev",this.getItemIcon(O,"prev page")),Z=!this.hasPrev();return Object(V.isValidElement)(k)?Object(V.cloneElement)(k,{disabled:Z}):k}},{key:"renderNext",value:function(b){var E=this.props,O=E.nextIcon,x=E.itemRender,k=x(b,"next",this.getItemIcon(O,"next page")),Z=!this.hasNext();return Object(V.isValidElement)(k)?Object(V.cloneElement)(k,{disabled:Z}):k}},{key:"render",value:function(){var b=this,E=this.props,O=E.prefixCls,x=E.className,k=E.style,Z=E.disabled,G=E.hideOnSinglePage,P=E.total,z=E.locale,Q=E.showQuickJumper,H=E.showLessItems,ne=E.showTitle,ce=E.showTotal,we=E.simple,Ce=E.itemRender,ze=E.showPrevNextJumpers,Le=E.jumpPrevIcon,We=E.jumpNextIcon,Ve=E.selectComponentClass,$e=E.selectPrefixCls,Pe=E.pageSizeOptions,se=this.state,w=se.current,F=se.pageSize,Y=se.currentInputValue;if(G===!0&&P<=F)return null;var ue=R(void 0,this.state,this.props),q=[],xe=null,Be=null,it=null,be=null,Re=null,je=Q&&Q.goButton,Ye=H?1:2,ft=w-1>0?w-1:0,Rt=w+1<ue?w+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]=b.props[ye]),ge},{});if(we)return je&&(typeof je=="boolean"?Re=l.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},z.jump_to_confirm):Re=l.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},je),Re=l.a.createElement("li",{title:ne?"".concat(z.jump_to).concat(w,"/").concat(ue):null,className:"".concat(O,"-simple-pager")},Re)),l.a.createElement("ul",Object(Se.a)({className:A()(O,"".concat(O,"-simple"),Object(ae.a)({},"".concat(O,"-disabled"),Z),x),style:k,ref:this.savePaginationNode},Jt),l.a.createElement("li",{title:ne?z.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:A()("".concat(O,"-prev"),Object(ae.a)({},"".concat(O,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(ft)),l.a.createElement("li",{title:ne?"".concat(w,"/").concat(ue):null,className:"".concat(O,"-simple-pager")},l.a.createElement("input",{type:"text",value:Y,disabled:Z,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),l.a.createElement("span",{className:"".concat(O,"-slash")},"/"),ue),l.a.createElement("li",{title:ne?z.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:A()("".concat(O,"-next"),Object(ae.a)({},"".concat(O,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Rt)),Re);if(ue<=3+Ye*2){var Wt={locale:z,rootPrefixCls:O,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:ne,itemRender:Ce};ue||q.push(l.a.createElement(y,Object(Se.a)({},Wt,{key:"noPager",page:ue,className:"".concat(O,"-disabled")})));for(var Nt=1;Nt<=ue;Nt+=1){var sn=w===Nt;q.push(l.a.createElement(y,Object(Se.a)({},Wt,{key:Nt,page:Nt,active:sn})))}}else{var an=H?z.prev_3:z.prev_5,zt=H?z.next_3:z.next_5;ze&&(xe=l.a.createElement("li",{title:ne?an:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:A()("".concat(O,"-jump-prev"),Object(ae.a)({},"".concat(O,"-jump-prev-custom-icon"),!!Le))},Ce(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Le,"prev page"))),Be=l.a.createElement("li",{title:ne?zt:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:A()("".concat(O,"-jump-next"),Object(ae.a)({},"".concat(O,"-jump-next-custom-icon"),!!We))},Ce(this.getJumpNextPage(),"jump-next",this.getItemIcon(We,"next page")))),be=l.a.createElement(y,{locale:z,last:!0,rootPrefixCls:O,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ue,page:ue,active:!1,showTitle:ne,itemRender:Ce}),it=l.a.createElement(y,{locale:z,rootPrefixCls:O,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:ne,itemRender:Ce});var mn=Math.max(1,w-Ye),xn=Math.min(w+Ye,ue);w-1<=Ye&&(xn=1+Ye*2),ue-w<=Ye&&(mn=ue-Ye*2);for(var Te=mn;Te<=xn;Te+=1){var fe=w===Te;q.push(l.a.createElement(y,{locale:z,rootPrefixCls:O,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Te,page:Te,active:fe,showTitle:ne,itemRender:Ce}))}w-1>=Ye*2&&w!==1+2&&(q[0]=Object(V.cloneElement)(q[0],{className:"".concat(O,"-item-after-jump-prev")}),q.unshift(xe)),ue-w>=Ye*2&&w!==ue-2&&(q[q.length-1]=Object(V.cloneElement)(q[q.length-1],{className:"".concat(O,"-item-before-jump-next")}),q.push(Be)),mn!==1&&q.unshift(it),xn!==ue&&q.push(be)}var pe=null;ce&&(pe=l.a.createElement("li",{className:"".concat(O,"-total-text")},ce(P,[P===0?0:(w-1)*F+1,w*F>P?P:w*F])));var ve=!this.hasPrev()||!ue,Oe=!this.hasNext()||!ue;return l.a.createElement("ul",Object(Se.a)({className:A()(O,x,Object(ae.a)({},"".concat(O,"-disabled"),Z)),style:k,unselectable:"unselectable",ref:this.savePaginationNode},Jt),pe,l.a.createElement("li",{title:ne?z.prev_page:null,onClick:this.prev,tabIndex:ve?null:0,onKeyPress:this.runIfEnterPrev,className:A()("".concat(O,"-prev"),Object(ae.a)({},"".concat(O,"-disabled"),ve)),"aria-disabled":ve},this.renderPrev(ft)),q,l.a.createElement("li",{title:ne?z.next_page:null,onClick:this.next,tabIndex:Oe?null:0,onKeyPress:this.runIfEnterNext,className:A()("".concat(O,"-next"),Object(ae.a)({},"".concat(O,"-disabled"),Oe)),"aria-disabled":Oe},this.renderNext(Rt)),l.a.createElement(_,{disabled:Z,locale:z,rootPrefixCls:O,selectComponentClass:Ve,selectPrefixCls:$e,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:w,pageSize:F,pageSizeOptions:Pe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:je}))}}],[{key:"getDerivedStateFromProps",value:function(b,E){var O={};if("current"in b&&(O.current=b.current,b.current!==E.current&&(O.currentInputValue=O.current)),"pageSize"in b&&b.pageSize!==E.pageSize){var x=E.current,k=R(b.pageSize,E,b);x=x>k?k:x,"current"in b||(O.current=x,O.currentInputValue=x),O.pageSize=b.pageSize}return O}}]),L}(l.a.Component);D.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 I=D},"6UM0":function(Ot,Ne,ie){var Se,ae;(function(){var X;(function(){"use strict";var j=[function(l,B,A){var T=A(1).Beautifier,y=A(5).Options;function p(v,_){var g=new T(v,_);return g.beautify()}l.exports=p,l.exports.defaultOptions=function(){return new y}},function(l,B,A){var T=A(2).Output,y=A(3).Token,p=A(4),v=A(5).Options,_=A(7).Tokenizer,g=A(7).line_starters,h=A(7).positionable_operators,c=A(7).TOKEN;function d(H,ne){return ne.indexOf(H)!==-1}function R(H){return H.replace(/^\s+/g,"")}function D(H){for(var ne={},ce=0;ce<H.length;ce++)ne[H[ce].replace(/-/g,"_")]=H[ce];return ne}function I(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 S=["case","return","do","if","throw","else","await","break","continue","async"],L=["before-newline","after-newline","preserve-newline"],C=D(L),b=[C.before_newline,C.preserve_newline],E={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function O(H,ne){if(ne.multiline_frame||ne.mode===E.ForInitializer||ne.mode===E.Conditional)return;H.remove_indent(ne.start_line_index)}function x(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 k(H){return H===E.ArrayLiteral}function Z(H){return d(H,[E.Expression,E.ForInitializer,E.Conditional])}function G(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 P(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 z(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 v(ne)}z.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 y(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},z.prototype._reset=function(H){var ne=H.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new T(this._options,ne),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(E.BlockStatement);var ce=new _(H,this._options);return this._tokens=ce.tokenize(),H},z.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},z.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)},z.prototype.handle_whitespace_and_comments=function(H,ne){var ce=H.newlines,we=this._options.keep_array_indentation&&k(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 ze=0;ze<ce;ze+=1)this.print_newline(ze>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 Le=1;Le<ce;Le+=1)this.print_newline(!0,ne)}};var Q=["async","break","continue","return","throw","yield"];z.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,b)||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,Q))return;this._output.set_wrap_point()}},z.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===E.Statement&&!(this._flags.if_block&&I(ce,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(H)&&(this._flags.multiline_frame=!0)},z.prototype.print_token_line_indentation=function(H){this._output.just_added_newline()&&(this._options.keep_array_indentation&&H.newlines&&(H.text==="["||k(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))},z.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)},z.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},z.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))},z.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)},z.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===E.Statement&&O(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},z.prototype.start_of_object_property=function(){return this._flags.parent.mode===E.ObjectLiteral&&this._flags.mode===E.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||N(this._flags.last_token,["get","set"]))},z.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||I(this._flags.last_token,"do"),ne=ne||!(this._flags.parent.mode===E.ObjectLiteral&&this._flags.mode===E.Statement)&&N(this._flags.last_token,Q)&&!H.newlines,ne=ne||I(this._flags.last_token,"else")&&!(I(H,"if")&&!H.comments_before),ne=ne||this._flags.last_token.type===c.END_EXPR&&(this._previous_flags.mode===E.ForInitializer||this._previous_flags.mode===E.Conditional),ne=ne||this._flags.last_token.type===c.WORD&&this._flags.mode===E.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===E.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||N(this._flags.last_token,["get","set"])),ne?(this.set_mode(E.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},z.prototype.handle_start_expr=function(H){this.start_of_statement(H)||this.handle_whitespace_and_comments(H);var ne=E.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=E.ArrayLiteral,k(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=E.ForInitializer):d(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,ne=E.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===E.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===E.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()},z.prototype.handle_end_expr=function(H){for(;this._flags.mode===E.Statement;)this.restore_mode();this.handle_whitespace_and_comments(H),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(H,H.text==="]"&&k(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(),O(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===E.Conditional&&(this._previous_flags.mode=E.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},z.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(E.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(E.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(E.BlockStatement):this.set_mode(E.ObjectLiteral):this._flags.last_token.type===c.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(E.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(E.ObjectLiteral):this.set_mode(E.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 ze=0,Le=null;this._flags.inline_frame=!0;do if(ze+=1,Le=this._tokens.peek(ze-1),Le.newlines){this._flags.inline_frame=!1;break}while(Le.type!==c.EOF&&!(Le.type===c.END_BLOCK&&Le.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,S)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(k(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()},z.prototype.handle_end_block=function(H){for(this.handle_whitespace_and_comments(H);this._flags.mode===E.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||(k(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)},z.prototype.handle_word=function(H){if(H.type===c.RESERVED){if(d(H.text,["set","get"])&&this._flags.mode!==E.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===E.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(I(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&&I(H,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===E.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)),I(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,Q)?this._output.space_before_token=!0:I(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)||k(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===E.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===E.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===E.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,S)?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!==":"&&(I(H,"if")&&I(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&&k(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&&I(H,"from")&&(this._flags.import_block=!1))},z.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===E.Statement&&!(this._flags.if_block&&I(ne,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(H)},z.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)},z.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},z.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===E.ObjectLiteral||this._flags.mode===E.Statement&&this._flags.parent.mode===E.ObjectLiteral?(this._flags.mode===E.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(H)},z.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,b)&&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,ze=!0,Le=!1;if(H.text===":"?this._flags.ternary_depth===0?Ce=!1:(this._flags.ternary_depth-=1,Le=!0):H.text==="?"&&(this._flags.ternary_depth+=1),!ce&&!ne&&this._options.preserve_newlines&&d(H.text,h)){var We=H.text===":",Ve=We&&Le,$e=We&&!Le;switch(this._options.operator_position){case C.before_newline:this._output.space_before_token=!$e,this.print_token(H),(!We||Ve)&&this.allow_wrap_or_preserved_newline(H),this._output.space_before_token=!0;return;case C.after_newline:this._output.space_before_token=!0,!We||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 C.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();ze=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,ze=!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,ze=!1,H.newlines&&(H.text==="--"||H.text==="++"||H.text==="~")){var se=N(this._flags.last_token,S)&&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,["--","++"])&&(ze=!0)),(this._flags.mode===E.BlockStatement&&!this._flags.inline_frame||this._flags.mode===E.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=ze},z.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)},z.prototype.print_block_commment=function(H,ne){var ce=x(H.text),we,Ce=!1,ze=!1,Le=H.whitespace_before,We=Le.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=G(ce,"*"),ze=P(ce,Le),Ce&&(this._flags.alignment=1),we=0;we<ce.length;we++)Ce?(this.print_token_line_indentation(H),this._output.add_token(R(ce[we]))):ze&&ce[we]?(this.print_token_line_indentation(H),this._output.add_token(ce[we].substring(We))):(this._output.current_line.set_indent(-1),this._output.add_token(ce[we])),this.print_newline(!1,ne);this._flags.alignment=0}},z.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)},z.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,S)?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)},z.prototype.handle_unknown=function(H,ne){this.print_token(H),H.text[H.text.length-1]===`
`&&this.print_newline(!1,ne)},z.prototype.handle_eof=function(H){for(;this._flags.mode===E.Statement;)this.restore_mode();this.handle_whitespace_and_comments(H)},l.exports.Beautifier=z},function(l){function B(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=[]}B.prototype.clone_empty=function(){var y=new B(this.__parent);return y.set_indent(this.__indent_count,this.__alignment_count),y},B.prototype.item=function(y){return y<0?this.__items[this.__items.length+y]:this.__items[y]},B.prototype.has_match=function(y){for(var p=this.__items.length-1;p>=0;p--)if(this.__items[p].match(y))return!0;return!1},B.prototype.set_indent=function(y,p){this.is_empty()&&(this.__indent_count=y||0,this.__alignment_count=p||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},B.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)},B.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},B.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},B.prototype.is_empty=function(){return this.__items.length===0},B.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},B.prototype.push=function(y){this.__items.push(y);var p=y.lastIndexOf(`
`);p!==-1?this.__character_count=y.length-p:this.__character_count+=y.length},B.prototype.pop=function(){var y=null;return this.is_empty()||(y=this.__items.pop(),this.__character_count-=y.length),y},B.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},B.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},B.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},B.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 A(y,p){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)),p=p||"",y.indent_level>0&&(p=new Array(y.indent_level+1).join(this.__indent_string)),this.__base_string=p,this.__base_string_length=p.length}A.prototype.get_indent_size=function(y,p){var v=this.__base_string_length;return p=p||0,y<0&&(v=0),v+=y*this.__indent_size,v+=p,v},A.prototype.get_indent_string=function(y,p){var v=this.__base_string;return p=p||0,y<0&&(y=0,v=""),p+=y*this.__indent_size,this.__ensure_cache(p),v+=this.__cache[p],v},A.prototype.__ensure_cache=function(y){for(;y>=this.__cache.length;)this.__add_column()},A.prototype.__add_column=function(){var y=this.__cache.length,p=0,v="";this.__indent_size&&y>=this.__indent_size&&(p=Math.floor(y/this.__indent_size),y-=p*this.__indent_size,v=new Array(p+1).join(this.__indent_string)),y&&(v+=new Array(y+1).join(" ")),this.__cache.push(v)};function T(y,p){this.__indent_cache=new A(y,p),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 B(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}T.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},T.prototype.get_line_number=function(){return this.__lines.length},T.prototype.get_indent_string=function(y,p){return this.__indent_cache.get_indent_string(y,p)},T.prototype.get_indent_size=function(y,p){return this.__indent_cache.get_indent_size(y,p)},T.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},T.prototype.add_new_line=function(y){return this.is_empty()||!y&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},T.prototype.get_code=function(y){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 v=this.__lines.join(`
`);return y!==`
`&&(v=v.replace(/[\n]/g,y)),v},T.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},T.prototype.set_indent=function(y,p){return y=y||0,p=p||0,this.next_line.set_indent(y,p),this.__lines.length>1?(this.current_line.set_indent(y,p),!0):(this.current_line.set_indent(),!1)},T.prototype.add_raw_token=function(y){for(var p=0;p<y.newlines;p++)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},T.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()},T.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(" "))},T.prototype.remove_indent=function(y){for(var p=this.__lines.length;y<p;)this.__lines[y]._remove_indent(),y++;this.current_line._remove_wrap_indent()},T.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},T.prototype.just_added_newline=function(){return this.current_line.is_empty()},T.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},T.prototype.ensure_empty_line_above=function(y,p){for(var v=this.__lines.length-2;v>=0;){var _=this.__lines[v];if(_.is_empty())break;if(_.item(0).indexOf(y)!==0&&_.item(-1)!==p){this.__lines.splice(v+1,0,new B(this)),this.previous_line=this.__lines[this.__lines.length-2];break}v--}},l.exports.Output=T},function(l){function B(A,T,y,p){this.type=A,this.text=T,this.comments_before=null,this.newlines=y||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=B},function(l,B){var A="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",T="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",y="\\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",v="(?:\\\\u[0-9a-fA-F]{4}|["+A+y+"])",_="(?:\\\\u[0-9a-fA-F]{4}|["+T+y+p+"])*";B.identifier=new RegExp(v+_,"g"),B.identifierStart=new RegExp(v),B.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+T+y+p+"])+");var g=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;B.newline=/[\n\r\u2028\u2029]/,B.lineBreak=new RegExp(`\r
|`+B.newline.source),B.allLineBreaks=new RegExp(B.lineBreak.source,"g")},function(l,B,A){var T=A(6).Options,y=["before-newline","after-newline","preserve-newline"];function p(v){T.call(this,v,"js");var _=this.raw_options.brace_style||null;_==="expand-strict"?this.raw_options.brace_style="expand":_==="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",y),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}p.prototype=new T,l.exports.Options=p},function(l){function B(y,p){this.raw_options=A(y,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"])}B.prototype._get_array=function(y,p){var v=this.raw_options[y],_=p||[];return typeof v=="object"?v!==null&&typeof v.concat=="function"&&(_=v.concat()):typeof v=="string"&&(_=v.split(/[^a-zA-Z0-9_\/\-]+/)),_},B.prototype._get_boolean=function(y,p){var v=this.raw_options[y],_=v===void 0?!!p:!!v;return _},B.prototype._get_characters=function(y,p){var v=this.raw_options[y],_=p||"";return typeof v=="string"&&(_=v.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),_},B.prototype._get_number=function(y,p){var v=this.raw_options[y];p=parseInt(p,10),isNaN(p)&&(p=0);var _=parseInt(v,10);return isNaN(_)&&(_=p),_},B.prototype._get_selection=function(y,p,v){var _=this._get_selection_list(y,p,v);if(_.length!==1)throw new Error("Invalid Option Value: The option '"+y+`' can only be one of the following values:
`+p+`
You passed in: '`+this.raw_options[y]+"'");return _[0]},B.prototype._get_selection_list=function(y,p,v){if(!p||p.length===0)throw new Error("Selection list cannot be empty.");if(v=v||[p[0]],!this._is_valid_selection(v,p))throw new Error("Invalid Default Value!");var _=this._get_array(y,v);if(!this._is_valid_selection(_,p))throw new Error("Invalid Option Value: The option '"+y+`' can contain only the following values:
`+p+`
You passed in: '`+this.raw_options[y]+"'");return _},B.prototype._is_valid_selection=function(y,p){return y.length&&p.length&&!y.some(function(v){return p.indexOf(v)===-1})};function A(y,p){var v={};y=T(y);var _;for(_ in y)_!==p&&(v[_]=y[_]);if(p&&y[p])for(_ in y[p])v[_]=y[p][_];return v}function T(y){var p={},v;for(v in y){var _=v.replace(/-/g,"_");p[_]=y[v]}return p}l.exports.Options=B,l.exports.normalizeOpts=T,l.exports.mergeOpts=A},function(l,B,A){var T=A(8).InputScanner,y=A(9).Tokenizer,p=A(9).TOKEN,v=A(13).Directives,_=A(4),g=A(12).Pattern,h=A(14).TemplatablePattern;function c(G,P){return P.indexOf(G)!==-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},R=new v(/\/\*/,/\*\//),D=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,I=/[0-9]/,N=/[^\d\.]/,S=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),L=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";L=L.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),L="\\?\\.(?!\\d) "+L,L=L.replace(/ /g,"|");var C=new RegExp(L),b="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),E=b.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),O=new RegExp("^(?:"+E.join("|")+")$"),x,k=function(G,P){y.call(this,G,P),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var z=new g(this._input),Q=new h(this._input).read_options(this._options);this.__patterns={template:Q,identifier:Q.starting_with(_.identifier).matching(_.identifierMatch),number:z.matching(D),punct:z.matching(C),comment:z.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:z.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:z.matching(/<!--/),html_comment_end:z.matching(/-->/),include:z.starting_with(/#include/).until_after(_.lineBreak),shebang:z.starting_with(/#!/).until_after(_.lineBreak),xml:z.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:Q.until(/['\\\n\r\u2028\u2029]/),double_quote:Q.until(/["\\\n\r\u2028\u2029]/),template_text:Q.until(/[`\\$]/),template_expression:Q.until(/[`}\\]/)}};k.prototype=new y,k.prototype._is_comment=function(G){return G.type===d.COMMENT||G.type===d.BLOCK_COMMENT||G.type===d.UNKNOWN},k.prototype._is_opening=function(G){return G.type===d.START_BLOCK||G.type===d.START_EXPR},k.prototype._is_closing=function(G,P){return(G.type===d.END_BLOCK||G.type===d.END_EXPR)&&P&&(G.text==="]"&&P.text==="["||G.text===")"&&P.text==="("||G.text==="}"&&P.text==="{")},k.prototype._reset=function(){x=!1},k.prototype._get_next_token=function(G,P){var z=null;this._readWhitespace();var Q=this._input.peek();return Q===null?this._create_token(d.EOF,""):(z=z||this._read_non_javascript(Q),z=z||this._read_string(Q),z=z||this._read_word(G),z=z||this._read_singles(Q),z=z||this._read_comment(Q),z=z||this._read_regexp(Q,G),z=z||this._read_xml(Q,G),z=z||this._read_punctuation(),z=z||this._create_token(d.UNKNOWN,this._input.next()),z)},k.prototype._read_word=function(G){var P;if(P=this.__patterns.identifier.read(),P!=="")return P=P.replace(_.allLineBreaks,`
`),!(G.type===d.DOT||G.type===d.RESERVED&&(G.text==="set"||G.text==="get"))&&O.test(P)?(P==="in"||P==="of")&&(G.type===d.WORD||G.type===d.STRING)?this._create_token(d.OPERATOR,P):this._create_token(d.RESERVED,P):this._create_token(d.WORD,P);if(P=this.__patterns.number.read(),P!=="")return this._create_token(d.WORD,P)},k.prototype._read_singles=function(G){var P=null;return G==="("||G==="["?P=this._create_token(d.START_EXPR,G):G===")"||G==="]"?P=this._create_token(d.END_EXPR,G):G==="{"?P=this._create_token(d.START_BLOCK,G):G==="}"?P=this._create_token(d.END_BLOCK,G):G===";"?P=this._create_token(d.SEMICOLON,G):G==="."&&N.test(this._input.peek(1))?P=this._create_token(d.DOT,G):G===","&&(P=this._create_token(d.COMMA,G)),P&&this._input.next(),P},k.prototype._read_punctuation=function(){var G=this.__patterns.punct.read();if(G!=="")return G==="="?this._create_token(d.EQUALS,G):G==="?."?this._create_token(d.DOT,G):this._create_token(d.OPERATOR,G)},k.prototype._read_non_javascript=function(G){var P="";if(G==="#"){if(this._is_first_token()&&(P=this.__patterns.shebang.read(),P))return this._create_token(d.UNKNOWN,P.trim()+`
`);if(P=this.__patterns.include.read(),P)return this._create_token(d.UNKNOWN,P.trim()+`
`);G=this._input.next();var z="#";if(this._input.hasNext()&&this._input.testChar(I)){do G=this._input.next(),z+=G;while(this._input.hasNext()&&G!=="#"&&G!=="=");return G==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(z+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(z+="{}",this._input.next(),this._input.next())),this._create_token(d.WORD,z)}this._input.back()}else if(G==="<"&&this._is_first_token()){if(P=this.__patterns.html_comment_start.read(),P){for(;this._input.hasNext()&&!this._input.testChar(_.newline);)P+=this._input.next();return x=!0,this._create_token(d.COMMENT,P)}}else if(x&&G==="-"&&(P=this.__patterns.html_comment_end.read(),P))return x=!1,this._create_token(d.COMMENT,P);return null},k.prototype._read_comment=function(G){var P=null;if(G==="/"){var z="";if(this._input.peek(1)==="*"){z=this.__patterns.block_comment.read();var Q=R.get_directives(z);Q&&Q.ignore==="start"&&(z+=R.readIgnored(this._input)),z=z.replace(_.allLineBreaks,`
`),P=this._create_token(d.BLOCK_COMMENT,z),P.directives=Q}else this._input.peek(1)==="/"&&(z=this.__patterns.comment.read(),P=this._create_token(d.COMMENT,z))}return P},k.prototype._read_string=function(G){if(G==="`"||G==="'"||G==='"'){var P=this._input.next();return this.has_char_escapes=!1,G==="`"?P+=this._read_string_recursive("`",!0,"${"):P+=this._read_string_recursive(G),this.has_char_escapes&&this._options.unescape_strings&&(P=Z(P)),this._input.peek()===G&&(P+=this._input.next()),P=P.replace(_.allLineBreaks,`
`),this._create_token(d.STRING,P)}return null},k.prototype._allow_regexp_or_xml=function(G){return G.type===d.RESERVED&&c(G.text,["return","case","throw","else","do","typeof","yield"])||G.type===d.END_EXPR&&G.text===")"&&G.opened.previous.type===d.RESERVED&&c(G.opened.previous.text,["if","while","for"])||c(G.type,[d.COMMENT,d.START_EXPR,d.START_BLOCK,d.START,d.END_BLOCK,d.OPERATOR,d.EQUALS,d.EOF,d.SEMICOLON,d.COMMA])},k.prototype._read_regexp=function(G,P){if(G==="/"&&this._allow_regexp_or_xml(P)){for(var z=this._input.next(),Q=!1,H=!1;this._input.hasNext()&&(Q||H||this._input.peek()!==G)&&!this._input.testChar(_.newline);)z+=this._input.peek(),Q?Q=!1:(Q=this._input.peek()==="\\",this._input.peek()==="["?H=!0:this._input.peek()==="]"&&(H=!1)),this._input.next();return this._input.peek()===G&&(z+=this._input.next(),z+=this._input.read(_.identifier)),this._create_token(d.STRING,z)}return null},k.prototype._read_xml=function(G,P){if(this._options.e4x&&G==="<"&&this._allow_regexp_or_xml(P)){var z="",Q=this.__patterns.xml.read_match();if(Q){for(var H=Q[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),ne=H.indexOf("{")===0,ce=0;Q;){var we=!!Q[1],Ce=Q[2],ze=!!Q[Q.length-1]||Ce.slice(0,8)==="![CDATA[";if(!ze&&(Ce===H||ne&&Ce.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(we?--ce:++ce),z+=Q[0],ce<=0)break;Q=this.__patterns.xml.read_match()}return Q||(z+=this._input.match(/[\s\S]*/g)[0]),z=z.replace(_.allLineBreaks,`
`),this._create_token(d.STRING,z)}}return null};function Z(G){for(var P="",z=0,Q=new T(G),H=null;Q.hasNext();)if(H=Q.match(/([\s]|[^\\]|\\\\)+/g),H&&(P+=H[0]),Q.peek()==="\\"){if(Q.next(),Q.peek()==="x")H=Q.match(/x([0-9A-Fa-f]{2})/g);else if(Q.peek()==="u")H=Q.match(/u([0-9A-Fa-f]{4})/g);else{P+="\\",Q.hasNext()&&(P+=Q.next());continue}if(!H)return G;if(z=parseInt(H[1],16),z>126&&z<=255&&H[0].indexOf("x")===0)return G;if(z>=0&&z<32){P+="\\"+H[0];continue}else z===34||z===39||z===92?P+="\\"+String.fromCharCode(z):P+=String.fromCharCode(z)}return P}k.prototype._read_string_recursive=function(G,P,z){var Q,H;G==="'"?H=this.__patterns.single_quote:G==='"'?H=this.__patterns.double_quote:G==="`"?H=this.__patterns.template_text:G==="}"&&(H=this.__patterns.template_expression);for(var ne=H.read(),ce="";this._input.hasNext();){if(ce=this._input.next(),ce===G||!P&&_.newline.test(ce)){this._input.back();break}else ce==="\\"&&this._input.hasNext()?(Q=this._input.peek(),Q==="x"||Q==="u"?this.has_char_escapes=!0:Q==="\r"&&this._input.peek(1)===`
`&&this._input.next(),ce+=this._input.next()):z&&(z==="${"&&ce==="$"&&this._input.peek()==="{"&&(ce+=this._input.next()),z===ce&&(G==="`"?ce+=this._read_string_recursive("}",P,"`"):ce+=this._read_string_recursive("`",P,"${"),this._input.hasNext()&&(ce+=this._input.next())));ce+=H.read(),ne+=ce}return ne},l.exports.Tokenizer=k,l.exports.TOKEN=d,l.exports.positionable_operators=S.slice(),l.exports.line_starters=b.slice()},function(l){var B=RegExp.prototype.hasOwnProperty("sticky");function A(T){this.__input=T||"",this.__input_length=this.__input.length,this.__position=0}A.prototype.restart=function(){this.__position=0},A.prototype.back=function(){this.__position>0&&(this.__position-=1)},A.prototype.hasNext=function(){return this.__position<this.__input_length},A.prototype.next=function(){var T=null;return this.hasNext()&&(T=this.__input.charAt(this.__position),this.__position+=1),T},A.prototype.peek=function(T){var y=null;return T=T||0,T+=this.__position,T>=0&&T<this.__input_length&&(y=this.__input.charAt(T)),y},A.prototype.__match=function(T,y){T.lastIndex=y;var p=T.exec(this.__input);return p&&!(B&&T.sticky)&&(p.index!==y&&(p=null)),p},A.prototype.test=function(T,y){return y=y||0,y+=this.__position,y>=0&&y<this.__input_length?!!this.__match(T,y):!1},A.prototype.testChar=function(T,y){var p=this.peek(y);return T.lastIndex=0,p!==null&&T.test(p)},A.prototype.match=function(T){var y=this.__match(T,this.__position);return y?this.__position+=y[0].length:y=null,y},A.prototype.read=function(T,y,p){var v="",_;return T&&(_=this.match(T),_&&(v+=_[0])),y&&(_||!T)&&(v+=this.readUntil(y,p)),v},A.prototype.readUntil=function(T,y){var p="",v=this.__position;T.lastIndex=this.__position;var _=T.exec(this.__input);return _?(v=_.index,y&&(v+=_[0].length)):v=this.__input_length,p=this.__input.substring(this.__position,v),this.__position=v,p},A.prototype.readUntilAfter=function(T){return this.readUntil(T,!0)},A.prototype.get_regexp=function(T,y){var p=null,v="g";return y&&B&&(v="y"),typeof T=="string"&&T!==""?p=new RegExp(T,v):T&&(p=new RegExp(T.source,v)),p},A.prototype.get_literal_regexp=function(T){return RegExp(T.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},A.prototype.peekUntilAfter=function(T){var y=this.__position,p=this.readUntilAfter(T);return this.__position=y,p},A.prototype.lookBack=function(T){var y=this.__position-1;return y>=T.length&&this.__input.substring(y-T.length,y).toLowerCase()===T},l.exports.InputScanner=A},function(l,B,A){var T=A(8).InputScanner,y=A(3).Token,p=A(10).TokenStream,v=A(11).WhitespacePattern,_={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},g=function(h,c){this._input=new T(h),this._options=c||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new v(this._input)};g.prototype.tokenize=function(){this._input.restart(),this.__tokens=new p,this._reset();for(var h,c=new y(_.START,""),d=null,R=[],D=new p;c.type!==_.EOF;){for(h=this._get_next_token(c,d);this._is_comment(h);)D.add(h),h=this._get_next_token(c,d);D.isEmpty()||(h.comments_before=D,D=new p),h.parent=d,this._is_opening(h)?(R.push(d),d=h):d&&this._is_closing(h,d)&&(h.opened=d,d.closed=h,d=R.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(_.RAW,d):this._create_token(_.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 y(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=_},function(l){function B(A){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=A}B.prototype.restart=function(){this.__position=0},B.prototype.isEmpty=function(){return this.__tokens_length===0},B.prototype.hasNext=function(){return this.__position<this.__tokens_length},B.prototype.next=function(){var A=null;return this.hasNext()&&(A=this.__tokens[this.__position],this.__position+=1),A},B.prototype.peek=function(A){var T=null;return A=A||0,A+=this.__position,A>=0&&A<this.__tokens_length&&(T=this.__tokens[A]),T},B.prototype.add=function(A){this.__parent_token&&(A.parent=this.__parent_token),this.__tokens.push(A),this.__tokens_length+=1},l.exports.TokenStream=B},function(l,B,A){var T=A(12).Pattern;function y(p,v){T.call(this,p,v),v?this._line_regexp=this._input.get_regexp(v._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}y.prototype=new T,y.prototype.__set_whitespace_patterns=function(p,v){p+="\\t ",v+="\\n\\r",this._match_pattern=this._input.get_regexp("["+p+v+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+v+"]")},y.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 v=this.__split(this._newline_regexp,p);this.newline_count=v.length-1,this.whitespace_before_token=v[this.newline_count]}return p},y.prototype.matching=function(p,v){var _=this._create();return _.__set_whitespace_patterns(p,v),_._update(),_},y.prototype._create=function(){return new y(this._input,this)},y.prototype.__split=function(p,v){p.lastIndex=0;for(var _=0,g=[],h=p.exec(v);h;)g.push(v.substring(_,h.index)),_=h.index+h[0].length,h=p.exec(v);return _<v.length?g.push(v.substring(_,v.length)):g.push(""),g},l.exports.WhitespacePattern=y},function(l){function B(A,T){this._input=A,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,T&&(this._starting_pattern=this._input.get_regexp(T._starting_pattern,!0),this._match_pattern=this._input.get_regexp(T._match_pattern,!0),this._until_pattern=this._input.get_regexp(T._until_pattern),this._until_after=T._until_after)}B.prototype.read=function(){var A=this._input.read(this._starting_pattern);return(!this._starting_pattern||A)&&(A+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),A},B.prototype.read_match=function(){return this._input.match(this._match_pattern)},B.prototype.until_after=function(A){var T=this._create();return T._until_after=!0,T._until_pattern=this._input.get_regexp(A),T._update(),T},B.prototype.until=function(A){var T=this._create();return T._until_after=!1,T._until_pattern=this._input.get_regexp(A),T._update(),T},B.prototype.starting_with=function(A){var T=this._create();return T._starting_pattern=this._input.get_regexp(A,!0),T._update(),T},B.prototype.matching=function(A){var T=this._create();return T._match_pattern=this._input.get_regexp(A,!0),T._update(),T},B.prototype._create=function(){return new B(this._input,this)},B.prototype._update=function(){},l.exports.Pattern=B},function(l){function B(A,T){A=typeof A=="string"?A:A.source,T=typeof T=="string"?T:T.source,this.__directives_block_pattern=new RegExp(A+/ beautify( \w+[:]\w+)+ /.source+T,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(A+/\sbeautify\signore:end\s/.source+T,"g")}B.prototype.get_directives=function(A){if(!A.match(this.__directives_block_pattern))return null;var T={};this.__directive_pattern.lastIndex=0;for(var y=this.__directive_pattern.exec(A);y;)T[y[1]]=y[2],y=this.__directive_pattern.exec(A);return T},B.prototype.readIgnored=function(A){return A.readUntilAfter(this.__directives_end_ignore_pattern)},l.exports.Directives=B},function(l,B,A){var T=A(12).Pattern,y={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function p(v,_){T.call(this,v,_),this.__template_pattern=null,this._disabled=Object.assign({},y),this._excluded=Object.assign({},y),_&&(this.__template_pattern=this._input.get_regexp(_.__template_pattern),this._excluded=Object.assign(this._excluded,_._excluded),this._disabled=Object.assign(this._disabled,_._disabled));var g=new T(v);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 T,p.prototype._create=function(){return new p(this._input,this)},p.prototype._update=function(){this.__set_templated_pattern()},p.prototype.disable=function(v){var _=this._create();return _._disabled[v]=!0,_._update(),_},p.prototype.read_options=function(v){var _=this._create();for(var g in y)_._disabled[g]=v.templating.indexOf(g)===-1;return _._update(),_},p.prototype.exclude=function(v){var _=this._create();return _._excluded[v]=!0,_._update(),_},p.prototype.read=function(){var v="";this._match_pattern?v=this._input.read(this._starting_pattern):v=this._input.read(this._starting_pattern,this.__template_pattern);for(var _=this._read_template();_;)this._match_pattern?_+=this._input.read(this._match_pattern):_+=this._input.readUntil(this.__template_pattern),v+=_,_=this._read_template();return this._until_after&&(v+=this._input.readUntilAfter(this._until_pattern)),v},p.prototype.__set_templated_pattern=function(){var v=[];this._disabled.php||v.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||v.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||v.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(v.push(this.__patterns.django._starting_pattern.source),v.push(this.__patterns.django_value._starting_pattern.source),v.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||v.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&v.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+v.join("|")+")")},p.prototype._read_template=function(){var v="",_=this._input.peek();if(_==="<"){var g=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&g==="?"&&(v=v||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&g==="%"&&(v=v||this.__patterns.erb.read())}else _==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(v=v||this.__patterns.handlebars_comment.read(),v=v||this.__patterns.handlebars_unescaped.read(),v=v||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(v=v||this.__patterns.django_value.read()),this._excluded.django||(v=v||this.__patterns.django_comment.read(),v=v||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(v=v||this.__patterns.smarty_comment.read(),v=v||this.__patterns.smarty_literal.read(),v=v||this.__patterns.smarty.read()));return v},l.exports.TemplatablePattern=p}],W={};function oe(l){var B=W[l];if(B!==void 0)return B.exports;var A=W[l]={exports:{}};return j[l](A,A.exports,oe),A.exports}var V=oe(0);X=V})();var le=X;!(Se=[],ae=function(){return{js_beautify:le}}.apply(Ne,Se),ae!==void 0&&(Ot.exports=ae))})()},"6nfa":function(Ot,Ne,ie){Ot.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(Ot,Ne,ie){"use strict";ie.d(Ne,"f",function(){return Se}),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 W}),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 B}),ie.d(Ne,"i",function(){return A}),ie.d(Ne,"o",function(){return T}),ie.d(Ne,"e",function(){return v}),ie.d(Ne,"d",function(){return _}),ie.d(Ne,"p",function(){return g}),ie.d(Ne,"b",function(){return h});function Se(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 W(c){return typeof c=="undefined"}function oe(c){return!V(c)}function V(c){return W(c)||c===null}function l(c,d){if(!c)throw new Error(d?`Unexpected type, expected '${d}'`:"Unexpected type")}function B(c){if(V(c))throw new Error("Assertion Failed: argument is undefined or null");return c}function A(c){return typeof c=="function"}function T(c,d){const R=Math.min(c.length,d.length);for(let D=0;D<R;D++)y(c[D],d[D])}function y(c,d){if(ae(d)){if(typeof c!==d)throw new Error(`argument does not match constraint: typeof ${d}`)}else if(A(d)){try{if(c instanceof d)return}catch(R){}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=[],R=Object.getPrototypeOf(c);for(;Object.prototype!==R;)d=d.concat(Object.getOwnPropertyNames(R)),R=Object.getPrototypeOf(R);return d}function v(c){const d=[];for(const R of p(c))typeof c[R]=="function"&&d.push(R);return d}function _(c,d){const R=I=>function(){const N=Array.prototype.slice.call(arguments,0);return d(I,N)};let D={};for(const I of c)D[I]=R(I);return D}function g(c){return c===null?void 0:c}function h(c,d="Unreachable"){throw new Error(d)}},"7ixt":function(Ot,Ne,ie){"use strict";ie.d(Ne,"a",function(){return X});var Se={adjustX:1,adjustY:1},ae=[0,0],X={left:{points:["cr","cl"],overflow:Se,offset:[-4,0],targetOffset:ae},right:{points:["cl","cr"],overflow:Se,offset:[4,0],targetOffset:ae},top:{points:["bc","tc"],overflow:Se,offset:[0,-4],targetOffset:ae},bottom:{points:["tc","bc"],overflow:Se,offset:[0,4],targetOffset:ae},topLeft:{points:["bl","tl"],overflow:Se,offset:[0,-4],targetOffset:ae},leftTop:{points:["tr","tl"],overflow:Se,offset:[-4,0],targetOffset:ae},topRight:{points:["br","tr"],overflow:Se,offset:[0,-4],targetOffset:ae},rightTop:{points:["tl","tr"],overflow:Se,offset:[4,0],targetOffset:ae},bottomRight:{points:["tr","br"],overflow:Se,offset:[0,4],targetOffset:ae},rightBottom:{points:["bl","br"],overflow:Se,offset:[4,0],targetOffset:ae},bottomLeft:{points:["tl","bl"],overflow:Se,offset:[0,4],targetOffset:ae},leftBottom:{points:["br","bl"],overflow:Se,offset:[-4,0],targetOffset:ae}},le=X},"8HAY":function(Ot,Ne,ie){"use strict";ie.d(Ne,"a",function(){return j}),ie.d(Ne,"b",function(){return W}),ie.d(Ne,"d",function(){return oe}),ie.d(Ne,"e",function(){return V}),ie.d(Ne,"c",function(){return l});var Se=ie("MI8n"),ae=ie("pmY6"),X=ie("3/fG"),le=function(B,A,T,y){function p(v){return v instanceof T?v:new T(function(_){_(v)})}return new(T||(T=Promise))(function(v,_){function g(d){try{c(y.next(d))}catch(R){_(R)}}function h(d){try{c(y.throw(d))}catch(R){_(R)}}function c(d){d.done?v(d.value):p(d.value).then(g,h)}c((y=y.apply(B,A||[])).next())})};class j extends ae.a{constructor(B,A="",T="",y=!0,p){super();this._onDidChange=this._register(new Se.b),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=B,this._label=A,this._cssClass=T,this._enabled=y,this._actionCallback=p}get id(){return this._id}get label(){return this._label}set label(B){this._setLabel(B)}_setLabel(B){this._label!==B&&(this._label=B,this._onDidChange.fire({label:B}))}get tooltip(){return this._tooltip||""}set tooltip(B){this._setTooltip(B)}_setTooltip(B){this._tooltip!==B&&(this._tooltip=B,this._onDidChange.fire({tooltip:B}))}get class(){return this._cssClass}set class(B){this._setClass(B)}_setClass(B){this._cssClass!==B&&(this._cssClass=B,this._onDidChange.fire({class:B}))}get enabled(){return this._enabled}set enabled(B){this._setEnabled(B)}_setEnabled(B){this._enabled!==B&&(this._enabled=B,this._onDidChange.fire({enabled:B}))}get checked(){return this._checked}set checked(B){this._setChecked(B)}_setChecked(B){this._checked!==B&&(this._checked=B,this._onDidChange.fire({checked:B}))}run(B,A){return le(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(B))})}}class W extends ae.a{constructor(){super(...arguments);this._onBeforeRun=this._register(new Se.b),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new Se.b),this.onDidRun=this._onDidRun.event}run(B,A){return le(this,void 0,void 0,function*(){if(!B.enabled)return;this._onBeforeRun.fire({action:B});let T;try{yield this.runAction(B,A)}catch(y){T=y}this._onDidRun.fire({action:B,error:T})})}runAction(B,A){return le(this,void 0,void 0,function*(){yield B.run(A)})}}class oe extends j{constructor(B){super(oe.ID,B,B?"separator text":"separator");this.checked=!1,this.enabled=!1}}oe.ID="vs.actions.separator";class V{constructor(B,A,T,y){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=B,this.label=A,this.class=y,this._actions=T}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(Ot,Ne,ie){Ot.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(Ot,Ne,ie){Ot.exports={button:"button___1wy9m"}},"8mKB":function(Ot,Ne,ie){"use strict";var Se=ie("rePB"),ae=ie("1OyB"),X=ie("vuIU"),le=ie("Ji7U"),j=ie("md7G"),W=ie("foSv"),oe=ie("q1tI"),V=ie.n(oe),l=ie("m+aA"),B=ie("TSYQ"),A=ie.n(B),T=ie("4IlW");function y(C){var b=C.pageXOffset,E="scrollLeft";if(typeof b!="number"){var O=C.document;b=O.documentElement[E],typeof b!="number"&&(b=O.body[E])}return b}function p(C){var b,E,O=C.ownerDocument,x=O.body,k=O&&O.documentElement,Z=C.getBoundingClientRect();return b=Z.left,E=Z.top,b-=k.clientLeft||x.clientLeft||0,E-=k.clientTop||x.clientTop||0,{left:b,top:E}}function v(C){var b=p(C),E=C.ownerDocument,O=E.defaultView||E.parentWindow;return b.left+=y(O),b.left}function _(C){var b=g();return function(){var O=Object(W.a)(C),x;if(b){var k=Object(W.a)(this).constructor;x=Reflect.construct(O,arguments,k)}else x=O.apply(this,arguments);return Object(j.a)(this,x)}}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(C){return!1}}var h=function(C){Object(le.a)(E,C);var b=_(E);function E(){var O;return Object(ae.a)(this,E),O=b.apply(this,arguments),O.onHover=function(x){var k=O.props,Z=k.onHover,G=k.index;Z(x,G)},O.onClick=function(x){var k=O.props,Z=k.onClick,G=k.index;Z(x,G)},O.onKeyDown=function(x){var k=O.props,Z=k.onClick,G=k.index;x.keyCode===13&&Z(x,G)},O}return Object(X.a)(E,[{key:"getClassName",value:function(){var x=this.props,k=x.prefixCls,Z=x.index,G=x.value,P=x.allowHalf,z=x.focused,Q=Z+1,H=k;return G===0&&Z===0&&z?H+=" ".concat(k,"-focused"):P&&G+.5>=Q&&G<Q?(H+=" ".concat(k,"-half ").concat(k,"-active"),z&&(H+=" ".concat(k,"-focused"))):(H+=Q<=G?" ".concat(k,"-full"):" ".concat(k,"-zero"),Q===G&&z&&(H+=" ".concat(k,"-focused"))),H}},{key:"render",value:function(){var x=this.onHover,k=this.onClick,Z=this.onKeyDown,G=this.props,P=G.disabled,z=G.prefixCls,Q=G.character,H=G.characterRender,ne=G.index,ce=G.count,we=G.value,Ce=typeof Q=="function"?Q(this.props):Q,ze=V.a.createElement("li",{className:this.getClassName()},V.a.createElement("div",{onClick:P?null:k,onKeyDown:P?null:Z,onMouseMove:P?null:x,role:"radio","aria-checked":we>ne?"true":"false","aria-posinset":ne+1,"aria-setsize":ce,tabIndex:P?-1:0},V.a.createElement("div",{className:"".concat(z,"-first")},Ce),V.a.createElement("div",{className:"".concat(z,"-second")},Ce)));return H&&(ze=H(ze,this.props)),ze}}]),E}(V.a.Component);function c(C,b){var E=Object.keys(C);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(C);b&&(O=O.filter(function(x){return Object.getOwnPropertyDescriptor(C,x).enumerable})),E.push.apply(E,O)}return E}function d(C){for(var b=1;b<arguments.length;b++){var E=arguments[b]!=null?arguments[b]:{};b%2?c(Object(E),!0).forEach(function(O){Object(Se.a)(C,O,E[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(E)):c(Object(E)).forEach(function(O){Object.defineProperty(C,O,Object.getOwnPropertyDescriptor(E,O))})}return C}function R(C){var b=D();return function(){var O=Object(W.a)(C),x;if(b){var k=Object(W.a)(this).constructor;x=Reflect.construct(O,arguments,k)}else x=O.apply(this,arguments);return Object(j.a)(this,x)}}function D(){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(C){return!1}}function I(){}var N=function(C){Object(le.a)(E,C);var b=R(E);function E(O){var x;Object(ae.a)(this,E),x=b.call(this,O),x.onHover=function(Z,G){var P=x.props.onHoverChange,z=x.getStarValue(G,Z.pageX),Q=x.state.cleanedValue;z!==Q&&x.setState({hoverValue:z,cleanedValue:null}),P(z)},x.onMouseLeave=function(){var Z=x.props.onHoverChange;x.setState({hoverValue:void 0,cleanedValue:null}),Z(void 0)},x.onClick=function(Z,G){var P=x.props.allowClear,z=x.state.value,Q=x.getStarValue(G,Z.pageX),H=!1;P&&(H=Q===z),x.onMouseLeave(),x.changeValue(H?0:Q),x.setState({cleanedValue:H?Q:null})},x.onFocus=function(){var Z=x.props.onFocus;x.setState({focused:!0}),Z&&Z()},x.onBlur=function(){var Z=x.props.onBlur;x.setState({focused:!1}),Z&&Z()},x.onKeyDown=function(Z){var G=Z.keyCode,P=x.props,z=P.count,Q=P.allowHalf,H=P.onKeyDown,ne=P.direction,ce=ne==="rtl",we=x.state.value;G===T.a.RIGHT&&we<z&&!ce?(Q?we+=.5:we+=1,x.changeValue(we),Z.preventDefault()):G===T.a.LEFT&&we>0&&!ce||G===T.a.RIGHT&&we>0&&ce?(Q?we-=.5:we-=1,x.changeValue(we),Z.preventDefault()):G===T.a.LEFT&&we<z&&ce&&(Q?we+=.5:we+=1,x.changeValue(we),Z.preventDefault()),H&&H(Z)},x.saveRef=function(Z){return function(G){x.stars[Z]=G}},x.saveRate=function(Z){x.rate=Z};var k=O.value;return k===void 0&&(k=O.defaultValue),x.stars={},x.state={value:k,focused:!1,cleanedValue:null},x}return Object(X.a)(E,[{key:"componentDidMount",value:function(){var x=this.props,k=x.autoFocus,Z=x.disabled;k&&!Z&&this.focus()}},{key:"getStarDOM",value:function(x){return Object(l.a)(this.stars[x])}},{key:"getStarValue",value:function(x,k){var Z=this.props,G=Z.allowHalf,P=Z.direction,z=P==="rtl",Q=x+1;if(G){var H=this.getStarDOM(x),ne=v(H),ce=H.clientWidth;(z&&k-ne>ce/2||!z&&k-ne<ce/2)&&(Q-=.5)}return Q}},{key:"focus",value:function(){var x=this.props.disabled;x||this.rate.focus()}},{key:"blur",value:function(){var x=this.props.disabled;x||this.rate.blur()}},{key:"changeValue",value:function(x){var k=this.props.onChange;"value"in this.props||this.setState({value:x}),k(x)}},{key:"render",value:function(){for(var x=this.props,k=x.count,Z=x.allowHalf,G=x.style,P=x.prefixCls,z=x.disabled,Q=x.className,H=x.character,ne=x.characterRender,ce=x.tabIndex,we=x.direction,Ce=this.state,ze=Ce.value,Le=Ce.hoverValue,We=Ce.focused,Ve=[],$e=z?"".concat(P,"-disabled"):"",Pe=0;Pe<k;Pe+=1)Ve.push(V.a.createElement(h,{ref:this.saveRef(Pe),index:Pe,count:k,disabled:z,prefixCls:"".concat(P,"-star"),allowHalf:Z,value:Le===void 0?ze:Le,onClick:this.onClick,onHover:this.onHover,key:Pe,character:H,characterRender:ne,focused:We}));var se=A()(P,$e,Q,Object(Se.a)({},"".concat(P,"-rtl"),we==="rtl"));return V.a.createElement("ul",{className:se,style:G,onMouseLeave:z?null:this.onMouseLeave,tabIndex:z?-1:ce,onFocus:z?null:this.onFocus,onBlur:z?null:this.onBlur,onKeyDown:z?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},Ve)}}],[{key:"getDerivedStateFromProps",value:function(x,k){return"value"in x&&x.value!==void 0?d(d({},k),{},{value:x.value}):k}}]),E}(V.a.Component);N.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:I,character:"\u2605",onHoverChange:I,tabIndex:0,direction:"ltr"};var S=N,L=Ne.a=S},"9Bee":function(Ot,Ne,ie){"use strict";var Se=ie("DYRE"),ae=ie("zeV3"),X=ie("+L6B"),le=ie("2/Rp"),j=ie("k1fw"),W=ie("9og8"),oe=ie("tJVT"),V=ie("WmNS"),l=ie.n(V),B=ie("q1tI"),A=ie.n(B),T=ie("vg9a"),y=ie("DlQD"),p=ie.n(y),v=ie("rUJ1");function _(Te,fe){var pe=Te.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),Ie=ye[0];return Ie.length>=ve.length?Oe.slice(ve.length):Oe}).join(`
`)}var g=[],h=["<ul>"],c=new p.a.Renderer,d=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function R(){g.length=0,h=["<ul>"]}var D={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function I(Te,fe,pe,ve){if(fe>=Te.length||Te[fe].level<=pe)return fe;var Oe=Te[fe];ve.push("<li><a href='#"+Oe.anchor+"'>"+Oe.text+"</a>"),fe++;var ge=[];return fe=I(Te,fe,Oe.level,ge),ge.length>0&&(ve.push("<ul>"),ge.forEach(function(ye){ve.push(ye)}),ve.push("</ul>")),ve.push("</li>"),fe=I(Te,fe,pe,ve),fe}function N(){return I(g,0,0,h),h.push("</ul>"),h.join("")}var S={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=_(ve,pe[3]||""),ge=pe[2]?pe[2].trim():pe[2];if(["latex","katex","math"].indexOf(ge)>=0){var ye=b(),Ie=Oe;Oe=ye,E[ye]={type:"block",expression:Ie}}return{type:"code",raw:ve,lang:ge,text:Oe}}}},L=/(?:\${2})([^\n`]+?)(?:\${2})/gi,C=0,b=function(){return"__special_katext_id_".concat(C++,"__")},E={};function O(){return E}function x(){C=0,E={}}function k(Te){return Te=Te.replace(L,function(fe,pe){var ve=b();return E[ve]={type:"inline",expression:pe},ve}),Te}var Z=c.listitem;c.listitem=function(Te){return Z(k(Te))};var G=c.paragraph;c.paragraph=function(Te){return G(k(Te))};var P=c.tablecell;c.tablecell=function(Te,fe){return P(k(Te),fe)},c.code=function(Te,fe,pe){var ve=(fe||"").match(/\S*/)[0];return ve?["latex","katex","math"].indexOf(ve)>=0?"<p class='editormd-tex'>".concat(Te,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(fe,'">').concat(pe?Te:Object(v.escape)(Te,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(pe?Te:Object(v.escape)(Te,!0))+"</code></pre>"},c.heading=function(Te,fe,pe){var ve=this.options.headerPrefix+pe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return g.push({anchor:ve,level:fe,text:Te}),"<h"+fe+' id="'+ve+'">'+Te+"</h"+fe+">"},p.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),p.a.use({tokenizer:S,renderer:c});var z=p.a,Q=ie("SJMd"),H=ie("ulZh"),ne=ie.n(H),ce=ie("m3rI"),we=ie("Oy/b"),Ce=ie("p5ED"),ze=ie("ErOA"),Le=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 We=function(Te,fe){return(We=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])})(Te,fe)};function Ve(Te,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=Te}We(Te,fe),Te.prototype=fe===null?Object.create(fe):(pe.prototype=fe.prototype,new pe)}function $e(Te,fe,pe,ve){return new(pe||(pe=Promise))(function(Oe,ge){function ye(et){try{Me(ve.next(et))}catch(qe){ge(qe)}}function Ie(et){try{Me(ve.throw(et))}catch(qe){ge(qe)}}function Me(et){var qe;et.done?Oe(et.value):(qe=et.value,qe instanceof pe?qe:new pe(function(Tt){Tt(qe)})).then(ye,Ie)}Me((ve=ve.apply(Te,fe||[])).next())})}function Pe(Te,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:Ie(0),throw:Ie(1),return:Ie(2)},typeof Symbol=="function"&&(ge[Symbol.iterator]=function(){return this}),ge;function Ie(Me){return function(et){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(Te,ye)}catch(Tt){qe=[6,Tt],ve=0}finally{pe=Oe=0}if(5&qe[0])throw qe[1];return{value:qe[0]?qe[1]:void 0,done:!0}}([Me,et])}}}var se=function(){function Te(){}return Te.addKey=function(fe){Te.key=fe},Object.defineProperty(Te,"isLicensed",{get:function(){return!!Te.key&&new RegExp(/^CRPR-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Te.key)},enumerable:!1,configurable:!0}),Te}(),w=function(){function Te(){}return Te.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Te.setAttributes=function(fe,pe){for(var ve=0,Oe=pe;ve<Oe.length;ve++){var ge=Oe[ve],ye=ge[0],Ie=ge[1];fe.setAttribute(ye,Ie)}},Te.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&&Te.setAttributes(Oe,ve),Oe},Te.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&&Te.setAttributes(ye,ge),ye},Te.createPolygon=function(fe,pe){var ve=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ve.setAttribute("points",fe),pe&&Te.setAttributes(ve,pe),ve},Te.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&&Te.setAttributes(ve,pe),ve},Te.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&&Te.setAttributes(Oe,ve),Oe},Te.createGroup=function(fe){var pe=document.createElementNS("http://www.w3.org/2000/svg","g");return fe&&Te.setAttributes(pe,fe),pe},Te.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Te.createMarker=function(fe,pe,ve,Oe,ge,ye,Ie){var Me=document.createElementNS("http://www.w3.org/2000/svg","marker");return Te.setAttributes(Me,[["id",fe],["orient",pe],["markerWidth",ve.toString()],["markerHeight",Oe.toString()],["refX",ge.toString()],["refY",ye.toString()]]),Me.appendChild(Ie),Me},Te.createText=function(fe){var pe=document.createElementNS("http://www.w3.org/2000/svg","text");return pe.setAttribute("x","0"),pe.setAttribute("y","0"),fe&&Te.setAttributes(pe,fe),pe},Te.createTSpan=function(fe,pe){var ve=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ve.textContent=fe,pe&&Te.setAttributes(ve,pe),ve},Te.createImage=function(fe){var pe=document.createElementNS("http://www.w3.org/2000/svg","image");return fe&&Te.setAttributes(pe,fe),pe},Te.createPoint=function(fe,pe){var ve=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ve.x=fe,ve.y=pe,ve},Te.createPath=function(fe,pe){var ve=document.createElementNS("http://www.w3.org/2000/svg","path");return ve.setAttribute("d",fe),pe&&Te.setAttributes(ve,pe),ve},Te.createElement=function(fe,pe){var ve=document.createElementNS("http://www.w3.org/2000/svg",fe);return pe&&Te.setAttributes(ve,pe),ve},Te.getHollowRectanglePath=function(fe,pe,ve,Oe,ge,ye,Ie,Me){return"M"+fe+","+pe+"V"+(pe+Oe)+"H"+(fe+ve)+"V"+pe+"H"+ge+"V"+ye+"H"+(ge+Ie)+"V"+(ye+Me)+"H"+ge+"V"+pe+"Z"},Te}(),F=function(){function Te(fe){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+fe+"_"}return Object.defineProperty(Te.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Te.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(Te.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_out"},enumerable:!1,configurable:!0}),Te.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},Te.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)},Te.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 Y("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Y("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Y("@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;
`))},Te.prototype.removeStyleSheet=function(){var fe;this.styleSheet&&(((fe=this.styleSheetRoot)!==null&&fe!==void 0?fe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Te}(),Y=function(Te,fe){this.selector=Te,this.style=fe},ue=function(Te,fe){this.localName=Te,this.style=fe},q=function(){function Te(){this.blocks=[],this.display=""}return Te.prototype.addButtonBlock=function(fe){fe.className=this.blockClassName,fe.buttonClassName=this.buttonClassName,fe.buttonColorsClassName=this.buttonColorsClassName,fe.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(fe)},Te.prototype.addElementBlock=function(fe){fe.className===void 0&&(fe.className=this.blockClassName),this.blocks.push(fe)},Te.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},Te}(),xe=function(){function Te(){}return Te.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},Te}(),Be=function(Te){function fe(){var pe=Te!==null&&Te.apply(this,arguments)||this;return pe.buttons=[],pe}return Ve(fe,Te),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=Te.prototype.getUI.call(this);return this.buttons.forEach(function(ve){return pe.appendChild(ve.getUI())}),pe},fe}(xe),it=function(){function Te(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(Te.prototype,"icon",{get:function(){return this._icon},set:function(fe){this._icon=fe,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"isActive",{get:function(){return this._isActive},set:function(fe){this._isActive=fe,this.adjustClassName()},enumerable:!1,configurable:!0}),Te.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},Te.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,"")))},Te.prototype.hide=function(){this._isHidden=!0},Te}(),be=function(Te){function fe(){var pe=Te!==null&&Te.apply(this,arguments)||this;return pe.elements=[],pe}return Ve(fe,Te),fe.prototype.addElement=function(pe){this.elements.push(pe)},fe.prototype.getUI=function(){var pe=Te.prototype.getUI.call(this);return this.elements.forEach(function(ve){return pe.appendChild(ve)}),pe},fe}(xe),Re=function(){function Te(fe,pe){this.horizontal=fe,this.vertical=pe}return Object.defineProperty(Te.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),Te.prototype.getVerticalLength=function(fe){return fe/this.ratio},Te.prototype.getHorizontalLength=function(fe){return fe*this.ratio},Te}(),je=function(){function Te(){}return Te.getIcon=function(fe,pe){if(fe>0&&pe>0){var ve=new Re(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 Ie=w.createDefs();ye.appendChild(Ie);var Me=w.createElement("clipPath",[["id","text-bg-clip"]]);Ie.appendChild(Me);var et=w.createPath(w.getHollowRectanglePath((24-Oe)/2,(24-ge)/2,Oe,ge,(24-Oe)/2+2,(24-ge)/2+2,Oe-4,ge-4));ye.appendChild(et);var qe=w.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);qe.appendChild(w.createTSpan(fe+":"+pe)),ye.appendChild(qe);var Tt=qe.getBBox();w.setAttributes(qe,[["x",((24-Tt.width)/2).toString()],["y",((24-Tt.height)/2-Tt.y).toString()]]);var cn=w.createPath(w.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(Tt.width))/2,(24-Math.ceil(Tt.height))/2,Math.ceil(Tt.width),Math.ceil(Tt.height)));return Me.appendChild(cn),w.setAttributes(et,[["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>'},Te}(),Ye=function(Te){function fe(pe,ve,Oe){var ge=Te.call(this,pe,ve)||this;return ge.isDropdownOpen=!1,ge.onClick=ge.dropdownButtonClicked,ge.dropdownButtons=Oe,ge}return Ve(fe,Te),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),ft=function(){function Te(fe,pe){this.GRIP_SIZE=10,this.color=fe,this.fillColor=pe,this.visual=w.createGroup(),this.visual.appendChild(w.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(w.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Te.prototype.ownsTarget=function(fe){return fe===this.visual||fe===this.visual.childNodes[0]||fe===this.visual.childNodes[1]},Te.prototype.setCenter=function(fe,pe){this.visual.childNodes.forEach(function(ve){return w.setAttributes(ve,[["cx",fe.toString()],["cy",pe.toString()]])})},Te}(),Rt=function(){function Te(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(Te.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(Te.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(fe){this._isGridVisible=fe,this.gridContainer&&w.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(fe){this._zoomFactor=fe,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Te.prototype.open=function(){var fe=this;this.cropShadeElement=w.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=w.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var pe=0;pe<this.numberOfGridLines;pe++)this.horizontalGridLines.push(w.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(w.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=w.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new ft(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new ft(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new ft(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new ft(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},Te.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),w.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 Ie=pe.y+ve*(ye+1);w.setAttributes(ge,[["x1",""+pe.x],["y1",""+Ie],["x2",""+(pe.x+pe.width)],["y2",""+Ie]])});var Oe=pe.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(ge,ye){var Ie=pe.x+Oe*(ye+1);w.setAttributes(ge,[["x1",""+Ie],["y1",""+pe.y],["x2",""+Ie],["y2",""+(pe.y+pe.height)]])}),w.setAttributes(this.cropShadeElement,[["d",w.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},Te.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)},Te.prototype.clientToLocalCoordinates=function(fe,pe){var ve=this.container.getBoundingClientRect();return{x:fe-ve.left+this.margin,y:pe-ve.top+this.margin}},Te.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)},Te.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()},Te.prototype.onPointerUp=function(fe){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(fe.pointerId)},Te.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},Te.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))},Te.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)}},Te.prototype.getRescaledRect=function(fe,pe,ve,Oe,ge,ye){var Ie=ve/fe,Me=Oe/pe;return{x:(ge.x-ye)*Ie+ye,y:(ge.y-ye)*Me+ye,width:ge.width*Ie,height:ge.height*Me}},Te.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)},Te}(),Jt=function(){function Te(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(Te.prototype,"angle",{get:function(){return this._angle},set:function(fe){this._angle=fe,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),Te.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},Te.prototype.onPointerDown=function(fe){this.controlContainer.setPointerCapture(fe.pointerId),this.isDragging=!0,this.previousPoint={x:fe.clientX,y:fe.clientY}},Te.prototype.onPointerMove=function(fe){this.isDragging&&(this.onAngleChange&&this.onAngleChange((fe.clientX-this.previousPoint.x)/5),this.previousPoint.x=fe.clientX)},Te.prototype.onPointerUp=function(fe){this.isDragging&&this.onAngleChange&&this.onAngleChange((fe.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(fe.pointerId)},Te.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var fe=this.angleLabelText.getBBox();w.setAttributes(this.angleLabelElement,[["x",((this.width-fe.width)/2).toString()],["y",(this.height/2).toString()]])}},Te.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)}},Te.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=w.createPath(pe);var ge=w.createTransform();this.scaleShape.transform.baseVal.appendItem(ge),fe.appendChild(this.scaleShape),this.angleLabelElement=w.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=w.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var ye=w.createTSpan("");return ye.innerHTML="&deg;",this.angleLabelElement.appendChild(ye),fe.appendChild(this.angleLabelElement),document.body.removeChild(fe),fe},Te}(),Wt=function(){function Te(){this.naturalSize=!1,this.imageType="image/png"}return Te.prototype.rasterize=function(fe,pe,ve,Oe,ge,ye,Ie){var Me=this;return new Promise(function(et){var qe=document.createElement("canvas");qe.width=fe.width.baseVal.value-2*Oe,qe.height=fe.height.baseVal.value-2*Oe;var Tt=1,cn=1;Me.naturalSize===!0?(Tt=pe.naturalWidth/(fe.width.baseVal.value-2*Oe)/ye,cn=pe.naturalHeight/(fe.height.baseVal.value-2*Oe)/Ie,qe.width=pe.naturalWidth/ye,qe.height=pe.naturalHeight/Ie):Me.width!==void 0&&Me.height!==void 0&&(Tt=Me.width/ve.width,cn=Me.height/ve.height,qe.width*=Tt,qe.height*=cn);var kn=qe.getContext("2d");kn.translate(qe.width/2,qe.height/2),kn.rotate(ge*Math.PI/180),kn.scale(ye,Ie),kn.translate(-qe.width/2,-qe.height/2),kn.drawImage(pe,0,0,qe.width,qe.height);var On=document.createElement("canvas");On.width=ve.width*Tt,On.height=ve.height*cn,On.getContext("2d").putImageData(kn.getImageData((ve.x-Oe)*Tt,(ve.y-Oe)*cn,ve.width*Tt,ve.height*cn),0,0),et(On.toDataURL(Me.imageType,Me.imageQuality))})},Te}(),Nt=function(){function Te(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=Te.instanceCounter++,this.styles=new F(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(Te.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(fe){this._zoomToCropEnabled=fe,fe?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(Te.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(Te.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(Te.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(Te.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Te.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}),Te.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},Te.prototype.show=function(){this.showUI(),this.open()},Te.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)},Te.prototype.addRenderEventListener=function(fe){this.renderEventListeners.push(fe)},Te.prototype.removeRenderEventListener=function(fe){this.renderEventListeners.indexOf(fe)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(fe),1)},Te.prototype.addCloseEventListener=function(fe){this.closeEventListeners.push(fe)},Te.prototype.removeCloseEventListener=function(fe){this.closeEventListeners.indexOf(fe)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(fe),1)},Te.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))},Te.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)}},Te.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Te.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",w.setAttributes(this.editingTarget,[["width",""+this.imageWidth],["height",""+this.imageHeight]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px"},Te.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()},Te.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();w.setAttributes(this.editingTarget,[["href",pe]]),this.setEditingTargetSize()},Te.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},Te.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=w.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=w.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=w.createGroup(),this.editingTargetRotationScaleContainer=w.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var fe=w.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(fe);var pe=w.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(pe),this.editingTargetContainer=w.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)},Te.prototype.positionCropImage=function(){this.cropImageHolder.style.top=this.top+"px",this.cropImageHolder.style.left=this.left+"px"},Te.prototype.initCropLayer=function(){this.cropRect={x:this.CANVAS_MARGIN,y:this.CANVAS_MARGIN,width:this.imageWidth,height:this.imageHeight},this.cropLayerContainer=w.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new Rt(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()},Te.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)}},Te.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)},Te.prototype.cropRectChanged=function(fe){this.cropRect=fe,this.zoomToCropEnabled?this.zoomToCrop():this.cropLayer.zoomFactor=1},Te.prototype.attachEvents=function(){window.addEventListener("resize",this.onWindowResize)},Te.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"},Te.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Te.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},Te.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},Te.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 Be;pe.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(pe);var ve=[];this.aspectRatios.forEach(function(cn){var kn=new it(je.getIcon(cn.horizontal,cn.vertical),cn.horizontal===0&&cn.vertical===0?"FREE":cn.horizontal+":"+cn.vertical);kn.onClick=function(){return fe.ratioButtonClicked(cn)},ve.push(kn)}),this.aspectRatioButton=new Ye(je.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 Ie=document.createElement("div");Ie.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>',Ie.appendChild(Me),ye.addElement(Ie)}var et=new Be;et.minWidth=3*this.toolbarHeight+"px",et.contentAlign="end",this.topToolbar.addButtonBlock(et);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,et.addButton(qe),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(qe.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Tt=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");Tt.onClick=this.close,et.addButton(Tt),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Tt.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},Te.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 Be;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(et){fe.rotateBy(et),fe.straightener.angle=fe.rotationAngle},ge.addElement(this.straightener.getUI());var ye=new Be;ye.minWidth=2*this.toolbarHeight+"px",ye.contentAlign="end",this.bottomToolbar.addButtonBlock(ye);var Ie=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");Ie.onClick=this.flipHorizontallyButtonClicked,ye.addButton(Ie);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)},Te.prototype.ratioButtonClicked=function(fe){this.aspectRatio=fe,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},Te.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=je.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},Te.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Re(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},Te.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Te.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},Te.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()}},Te.prototype.clientToLocalCoordinates=function(fe,pe){var ve=this.cropImage.getBoundingClientRect();return{x:fe-ve.left,y:pe-ve.top}},Te.prototype.onWindowResize=function(){this.positionUI()},Te.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()},Te.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)},Te.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)},Te.prototype.rotateTo=function(fe){fe=(fe=fe>180?fe-360:fe)<=-180?fe+360:fe,this.rotationAngle=fe,this.applyRotation()},Te.prototype.rotateBy=function(fe){this.rotateTo((this.rotationAngle+fe)%360)},Te.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},Te.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},Te.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},Te.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},Te.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]}})})},Te.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 Wt).naturalSize=this.renderAtNaturalSize,fe.imageType=this.renderImageType,fe.imageQuality=this.renderImageQuality,fe.width=this.renderWidth,fe.height=this.renderHeight,this.unzoomFromCrop(),w.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()]}})})},Te.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 Y("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new Y("."+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;
`))},Te.instanceCounter=0,Te}(),sn=ie("8hTe"),an=ie.n(sn),zt=/<pre[^>]*>/g;function mn(Te){var fe=document.createElement("div");return fe.innerHTML=Te,fe.childNodes.length===0?"":fe.childNodes[0].nodeValue}var xn=Ne.a=function(Te){var fe=Te.value,pe=fe===void 0?"":fe,ve=Te.edit,Oe=ve===void 0?!1:ve,ge=Te.className,ye=Te.showTextOnly,Ie=Te.showLines,Me=Te.replaces,et=Te.zoomImg,qe=Te.hasMask,Tt=Te.style,cn=Tt===void 0?{}:Tt,kn=Te.stylesPrev,On=kn===void 0?{}:kn,Qt=String(pe),ht=Object(B.useRef)(),yt=Object(B.useRef)(),ut=Object(B.useState)(""),Ae=Object(oe.a)(ut,2),Ue=Ae[0],vt=Ae[1],dt=Object(B.useState)("office"),en=Object(oe.a)(dt,2),rn=en[0],Et=en[1],It=function(){var dn=new Nt(yt.current);dn.displayMode="popup",dn.addRenderEventListener(function(){var An=Object(W.a)(l.a.mark(function gn(Un){var Hn;return l.a.wrap(function(hr){for(;;)switch(hr.prev=hr.next){case 0:return ht.current.style.display="none",hr.next=3,Object(ze.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Un}});case 3:Hn=hr.sent,Hn!=null&&Hn.id&&Me(yt.current.getAttribute("src").replace(ce.a.API_SERVER,""),"/api/attachments/".concat(Hn==null?void 0:Hn.id,"?type=").concat(Hn.content_type));case 5:case"end":return hr.stop()}},gn)}));return function(gn){return An.apply(this,arguments)}}()),dn.show()},Ct=function(){var dn=new Le.a(yt.current);dn.settings.displayMode="popup",dn.addEventListener("render",function(){var An=Object(W.a)(l.a.mark(function gn(Un){var Hn;return l.a.wrap(function(hr){for(;;)switch(hr.prev=hr.next){case 0:if(ht.current.style.display="none",!yt.current){hr.next=6;break}return hr.next=4,Object(ze.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Un.dataUrl}});case 4:Hn=hr.sent,Hn!=null&&Hn.id&&Me(yt.current.getAttribute("src").replace(ce.a.API_SERVER,""),"/api/attachments/".concat(Hn==null?void 0:Hn.id,"?type=").concat(Hn.content_type));case 6:case"end":return hr.stop()}},gn)}));return function(gn){return An.apply(this,arguments)}}()),dn.show(),window.markerArea=dn},nt=Object(B.useMemo)(function(){ht.current&&(ht.current.style.zIndex=-1);try{var In=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,dn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,An=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Qt=Qt.replace(In,"("+ce.a.API_SERVER+"/api/attachments/").replace(dn,'"'+ce.a.API_SERVER+"/api/attachments/").replace(An,'"'+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(ar){}var gn=z(Qt),Un=O();if(Qt.match(/\[TOC\]/)&&(gn=gn.replace("<p>[TOC]</p>",N()),R()),gn=gn.replace(/(__special_katext_id_\d+__)/g,function(ar,hr){var Ir=Un[hr],si=Ir.type,li=Ir.expression;return Object(we.renderToString)(mn(li)||"",{displayMode:si==="block",throwOnError:!1,output:"html"})}),gn=gn.replace(/▁/g,"\u2581\u2581\u2581"),x(),ye){var Hn=document.createElement("div");return Hn.innerHTML=gn,Hn.innerText}return setTimeout(function(){return ln()},500),gn},[Qt]),Bt=Object(B.useRef)();D.WebkitLineClamp=Ie,Ie&&(cn=Object(j.a)(Object(j.a)({},cn),D));function $t(In){var dn=In.target;if(dn.tagName.toUpperCase()==="IMG"){if(et){var An=dn.getAttribute("src");vt(An),Et("image")}}else if(dn.tagName.toUpperCase()==="A"){var gn=dn.getAttribute("href");if(gn.indexOf("office")>-1)In.preventDefault(),vt(gn),Et("office");else if(gn.indexOf("application/pdf")>-1)In.preventDefault(),vt(gn),Et("pdf");else if(gn.indexOf("text/html")>-1)In.preventDefault(),vt(gn),Et("html");else if(gn.startsWith("#")){In.preventDefault();var Un=document.getElementById(gn.replace("#",""));Un&&Un.scrollIntoView(!0)}}}var ln=function(){var dn,An=(dn=Bt.current)===null||dn===void 0?void 0:dn.querySelectorAll("video");An==null||An.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 Un=new ne.a;Un.loadSource(gn.src),Un.attachMedia(gn)}}})};Object(B.useEffect)(function(){if(Bt.current&&nt&&(nt.match(zt)&&window.PR.prettyPrint()),Bt.current)return Bt.current.addEventListener("click",$t),function(){Bt.current.removeEventListener("click",$t),x(),R()}},[nt,Bt.current,$t]);var Xn=function(dn){if(!Oe)return;dn.target.nodeName==="IMG"?(ht.current.style.zIndex=1,ht.current.style.display="flex",ht.current.style.width=dn.target.clientWidth+"px",ht.current.style.height=dn.target.clientHeight+"px",ht.current.style.top=dn.target.offsetTop+"px",ht.current.style.left=dn.target.offsetLeft+"px",yt.current.src=dn.target.getAttribute("src")):ht.current.style.display="none"};return A.a.createElement("div",{style:{position:"relative"}},A.a.createElement("div",{ref:Bt,style:Object(j.a)({},cn),className:"".concat(ge||""," markdown-body ").concat(an.a.mdBody),onMouseOver:Xn,dangerouslySetInnerHTML:{__html:nt}}),A.a.createElement("div",{ref:ht,className:an.a.button},A.a.createElement(ae.a,null,A.a.createElement(le.a,{onClick:function(){return It()}},"\u88C1\u526A"),A.a.createElement(le.a,{onClick:function(){return Ct()}},"\u7F16\u8F91"))),A.a.createElement("img",{ref:yt,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),A.a.createElement(Ce.a,{close:!0,data:Ue,type:Ue!=null&&Ue.length?rn:"",style:Object(j.a)({},On),onClose:function(){return vt("")}}))}},"9JIy":function(Ot,Ne,ie){Ot.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(Ot,Ne,ie){"use strict";ie.d(Ne,"a",function(){return W});var Se=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(Se.a)())return null;var B=document.createElement("style");if((V=l.csp)===null||V===void 0?void 0:V.nonce){var A;B.nonce=(A=l.csp)===null||A===void 0?void 0:A.nonce}B.innerHTML=oe;var T=X(l),y=T.firstChild;return l.prepend&&T.prepend?T.prepend(B):l.prepend&&y?T.insertBefore(B,y):T.appendChild(B),B}var j=new Map;function W(oe,V){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},B=X(l);if(!j.has(B)){var A=le("",l),T=A.parentNode;j.set(B,T),T.removeChild(A)}var y=Array.from(j.get(B).children).find(function(h){return h.tagName==="STYLE"&&h[ae]===V});if(y){var p,v;if(((p=l.csp)===null||p===void 0?void 0:p.nonce)&&y.nonce!==((v=l.csp)===null||v===void 0?void 0:v.nonce)){var _;y.nonce=(_=l.csp)===null||_===void 0?void 0:_.nonce}return y.innerHTML!==oe&&(y.innerHTML=oe),y}var g=le(oe,l);return g[ae]=V,g}},BdwD:function(Ot,Ne,ie){"use strict";var Se=ie("+L6B"),ae=ie("2/Rp"),X=ie("0Owb"),le=ie("k1fw"),j=ie("q1tI"),W=ie.n(j),oe=ie("FOrL"),V=ie.n(oe),l=function(A){var T=A.buttonProps,y=T===void 0?{}:T,p=A.styles,v=p===void 0?{}:p,_=A.imgStyles,g=_===void 0?{}:_,h=A.customText,c=A.ButtonText,d=A.ButtonClick,R=A.Buttonclass,D=A.ButtonTwo;return W.a.createElement("section",{className:"tc animated fadeIn",style:Object(le.a)(Object(le.a)({},{color:"#999",margin:"0 auto",padding:"100px 0"}),v)},W.a.createElement("img",{src:V.a,style:Object(le.a)(Object(le.a)({},{width:"200px",height:"150px"}),g)}),W.a.createElement("p",{className:"mt10 font14"},h||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),c&&W.a.createElement(ae.a,Object(X.a)({className:R,onClick:d},y),c),D&&D)};Ne.a=l},Bq7L:function(Ot,Ne){Ot.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(Ot,Ne,ie){"use strict";ie.d(Ne,"a",function(){return Se});function Se(ae){const X=this;let le=!1,j;return function(){return le||(le=!0,j=ae.apply(X,arguments)),j}}},"Cg/j":function(Ot,Ne,ie){"use strict";ie.d(Ne,"b",function(){return Se}),ie.d(Ne,"a",function(){return ae}),ie.d(Ne,"c",function(){return le}),ie.d(Ne,"d",function(){return j});var Se;(function(W){W.serviceIds=new Map,W.DI_TARGET="$di$target",W.DI_DEPENDENCIES="$di$dependencies";function oe(V){return V[W.DI_DEPENDENCIES]||[]}W.getServiceDependencies=oe})(Se||(Se={}));const ae=le("instantiationService");function X(W,oe,V,l){oe[Se.DI_TARGET]===oe?oe[Se.DI_DEPENDENCIES].push({id:W,index:V,optional:l}):(oe[Se.DI_DEPENDENCIES]=[{id:W,index:V,optional:l}],oe[Se.DI_TARGET]=oe)}function le(W){if(Se.serviceIds.has(W))return Se.serviceIds.get(W);const oe=function(V,l,B){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");X(oe,V,B,!1)};return oe.toString=()=>W,Se.serviceIds.set(W,oe),oe}function j(W){return function(oe,V,l){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");X(W,oe,l,!0)}}},DlQD:function(Ot,Ne,ie){(function(Se,ae){Ot.exports=ae()})(this,function(){"use strict";function Se(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&&Se(pe.prototype,ve),Oe&&Se(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 W(pe,ve){return ve={exports:{}},pe(ve,ve.exports),ve.exports}var oe=W(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,B=oe.changeDefaults,A=/[&<>"']/,T=/[&<>"']/g,y=/[<>"']|&(?!#?\w+;)/,p=/[<>"']|&(?!#?\w+;)/g,v={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_=function(ve){return v[ve]};function g(pe,ve){if(ve){if(A.test(pe))return pe.replace(T,_)}else if(y.test(pe))return pe.replace(p,_);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 R(pe,ve){pe=pe.source||pe,ve=ve||"";var Oe={replace:function(ye,Ie){return Ie=Ie.source||Ie,Ie=Ie.replace(d,"$1"),pe=pe.replace(ye,Ie),Oe},getRegex:function(){return new RegExp(pe,ve)}};return Oe}var D=/[^\w:]/g,I=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function N(pe,ve,Oe){if(pe){var ge;try{ge=decodeURIComponent(c(Oe)).replace(D,"").toLowerCase()}catch(ye){return null}if(ge.indexOf("javascript:")===0||ge.indexOf("vbscript:")===0||ge.indexOf("data:")===0)return null}ve&&!I.test(Oe)&&(Oe=E(ve,Oe));try{Oe=encodeURI(Oe).replace(/%25/g,"%")}catch(ye){return null}return Oe}var S={},L=/^[^:]+:\/*[^/]*$/,C=/^([^:]+:)[\s\S]*$/,b=/^([^:]+:\/*[^/]*)[\s\S]*$/;function E(pe,ve){S[" "+pe]||(L.test(pe)?S[" "+pe]=pe+"/":S[" "+pe]=Z(pe,"/",!0)),pe=S[" "+pe];var Oe=pe.indexOf(":")===-1;return ve.substring(0,2)==="//"?Oe?ve:pe.replace(C,"$1")+ve:ve.charAt(0)==="/"?Oe?ve:pe.replace(b,"$1")+ve:pe+ve}var O={exec:function(){}};function x(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 k(pe,ve){var Oe=pe.replace(/\|/g,function(Ie,Me,et){for(var qe=!1,Tt=Me;--Tt>=0&&et[Tt]==="\\";)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 Ie=pe.charAt(ge-ye-1);if(Ie===ve&&!Oe)ye++;else if(Ie!==ve&&Oe)ye++;else break}return pe.substr(0,ge-ye)}function G(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 P(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 z={escape:g,unescape:c,edit:R,cleanUrl:N,resolveUrl:E,noopTest:O,merge:x,splitCells:k,rtrim:Z,findClosingBracket:G,checkSanitizeDeprecation:P},Q=oe.defaults,H=z.rtrim,ne=z.splitCells,ce=z.escape,we=z.findClosingBracket;function Ce(pe,ve,Oe){var ge=ve.href,ye=ve.title?ce(ve.title):null,Ie=pe[1].replace(/\\([\[\]])/g,"$1");return pe[0].charAt(0)!=="!"?{type:"link",raw:Oe,href:ge,title:ye,text:Ie}:{type:"image",raw:Oe,href:ge,title:ye,text:ce(Ie)}}function ze(pe,ve){var Oe=pe.match(/^(\s+)(?:```)/);if(Oe===null)return ve;var ge=Oe[1];return ve.split(`
`).map(function(ye){var Ie=ye.match(/^\s+/);if(Ie===null)return ye;var Me=Ie[0];return Me.length>=ge.length?ye.slice(ge.length):ye}).join(`
`)}var Le=function(){function pe(Oe){this.options=Oe||Q}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 Ie=this.rules.block.code.exec(ge);if(Ie){var Me=ye[ye.length-1];if(Me&&Me.type==="paragraph")return{raw:Ie[0],text:Ie[0].trimRight()};var et=Ie[0].replace(/^ {4}/gm,"");return{type:"code",raw:Ie[0],codeBlockStyle:"indented",text:this.options.pedantic?et:H(et,`
`)}}},ve.fences=function(ge){var ye=this.rules.block.fences.exec(ge);if(ye){var Ie=ye[0],Me=ze(Ie,ye[3]||"");return{type:"code",raw:Ie,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 Ie={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(Ie.header.length===Ie.align.length){var Me=Ie.align.length,et;for(et=0;et<Me;et++)/^ *-+: *$/.test(Ie.align[et])?Ie.align[et]="right":/^ *:-+: *$/.test(Ie.align[et])?Ie.align[et]="center":/^ *:-+ *$/.test(Ie.align[et])?Ie.align[et]="left":Ie.align[et]=null;for(Me=Ie.cells.length,et=0;et<Me;et++)Ie.cells[et]=ne(Ie.cells[et],Ie.header.length);return Ie}}},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 Ie=ye[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:ye[0],text:Ie}}},ve.list=function(ge){var ye=this.rules.block.list.exec(ge);if(ye){for(var Ie=ye[0],Me=ye[2],et=Me.length>1,qe=Me[Me.length-1]===")",Tt={type:"list",raw:Ie,ordered:et,start:et?+Me.slice(0,-1):"",loose:!1,items:[]},cn=ye[0].match(this.rules.block.item),kn=!1,On,Qt,ht,yt,ut,Ae,Ue,vt=cn.length,dt=0;dt<vt;dt++)On=cn[dt],Ie=On,Qt=On.length,On=On.replace(/^ *([*+-]|\d+[.)]) */,""),~On.indexOf(`
`)&&(Qt-=On.length,On=this.options.pedantic?On.replace(/^ {1,4}/gm,""):On.replace(new RegExp("^ {1,"+Qt+"}","gm"),"")),dt!==vt-1&&(ht=this.rules.block.bullet.exec(cn[dt+1])[0],(et?ht.length===1||!qe&&ht[ht.length-1]===")":ht.length>1||this.options.smartLists&&ht!==Me)&&(yt=cn.slice(dt+1).join(`
`),Tt.raw=Tt.raw.substring(0,Tt.raw.length-yt.length),dt=vt-1)),ut=kn||/\n\n(?!\s*$)/.test(On),dt!==vt-1&&(kn=On.charAt(On.length-1)===`
`,ut||(ut=kn)),ut&&(Tt.loose=!0),Ae=/^\[[ xX]\] /.test(On),Ue=void 0,Ae&&(Ue=On[1]!==" ",On=On.replace(/^\[[ xX]\] +/,"")),Tt.items.push({type:"list_item",raw:Ie,task:Ae,checked:Ue,loose:ut,text:On});return Tt}},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 Ie=ye[1].toLowerCase().replace(/\s+/g," ");return{tag:Ie,raw:ye[0],href:ye[2],title:ye[3]}}},ve.table=function(ge){var ye=this.rules.block.table.exec(ge);if(ye){var Ie={type:"table",header:ne(ye[1].replace(/^ *| *\| *$/g,"")),align:ye[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ye[3]?ye[3].replace(/\n$/,"").split(`
`):[]};if(Ie.header.length===Ie.align.length){Ie.raw=ye[0];var Me=Ie.align.length,et;for(et=0;et<Me;et++)/^ *-+: *$/.test(Ie.align[et])?Ie.align[et]="right":/^ *:-+: *$/.test(Ie.align[et])?Ie.align[et]="center":/^ *:-+ *$/.test(Ie.align[et])?Ie.align[et]="left":Ie.align[et]=null;for(Me=Ie.cells.length,et=0;et<Me;et++)Ie.cells[et]=ne(Ie.cells[et].replace(/^ *\| *| *\| *$/g,""),Ie.header.length);return Ie}}},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 Ie=this.rules.block.text.exec(ge);if(Ie){var Me=ye[ye.length-1];return Me&&Me.type==="text"?{raw:Ie[0],text:Ie[0]}:{type:"text",raw:Ie[0],text:Ie[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,Ie){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),!Ie&&/^<(pre|code|kbd|script)(\s|>)/i.test(Me[0])?Ie=!0:Ie&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Me[0])&&(Ie=!1),{type:this.options.sanitize?"text":"html",raw:Me[0],inLink:ye,inRawBlock:Ie,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 Ie=we(ye[2],"()");if(Ie>-1){var Me=ye[0].indexOf("!")===0?5:4,et=Me+ye[1].length+Ie;ye[2]=ye[2].substring(0,Ie),ye[0]=ye[0].substring(0,et).trim(),ye[3]=""}var qe=ye[2],Tt="";if(this.options.pedantic){var cn=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(qe);cn?(qe=cn[1],Tt=cn[3]):Tt=""}else Tt=ye[3]?ye[3].slice(1,-1):"";qe=qe.trim().replace(/^<([\s\S]*)>$/,"$1");var kn=Ce(ye,{href:qe&&qe.replace(this.rules.inline._escapes,"$1"),title:Tt&&Tt.replace(this.rules.inline._escapes,"$1")},ye[0]);return kn}},ve.reflink=function(ge,ye){var Ie;if((Ie=this.rules.inline.reflink.exec(ge))||(Ie=this.rules.inline.nolink.exec(ge))){var Me=(Ie[2]||Ie[1]).replace(/\s+/g," ");if(Me=ye[Me.toLowerCase()],!Me||!Me.href){var et=Ie[0].charAt(0);return{type:"text",raw:et,text:et}}var qe=Ce(Ie,Me,Ie[0]);return qe}},ve.strong=function(ge,ye,Ie){Ie===void 0&&(Ie="");var Me=this.rules.inline.strong.start.exec(ge);if(Me&&(!Me[1]||Me[1]&&(Ie===""||this.rules.inline.punctuation.exec(Ie)))){ye=ye.slice(-1*ge.length);var et=Me[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;et.lastIndex=0;for(var qe;(Me=et.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,Ie){Ie===void 0&&(Ie="");var Me=this.rules.inline.em.start.exec(ge);if(Me&&(!Me[1]||Me[1]&&(Ie===""||this.rules.inline.punctuation.exec(Ie)))){ye=ye.slice(-1*ge.length);var et=Me[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;et.lastIndex=0;for(var qe;(Me=et.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 Ie=ye[2].replace(/\n/g," "),Me=/[^ ]/.test(Ie),et=Ie.startsWith(" ")&&Ie.endsWith(" ");return Me&&et&&(Ie=Ie.substring(1,Ie.length-1)),Ie=ce(Ie,!0),{type:"codespan",raw:ye[0],text:Ie}}},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 Ie=this.rules.inline.autolink.exec(ge);if(Ie){var Me,et;return Ie[2]==="@"?(Me=ce(this.options.mangle?ye(Ie[1]):Ie[1]),et="mailto:"+Me):(Me=ce(Ie[1]),et=Me),{type:"link",raw:Ie[0],text:Me,href:et,tokens:[{type:"text",raw:Me,text:Me}]}}},ve.url=function(ge,ye){var Ie;if(Ie=this.rules.inline.url.exec(ge)){var Me,et;if(Ie[2]==="@")Me=ce(this.options.mangle?ye(Ie[0]):Ie[0]),et="mailto:"+Me;else{var qe;do qe=Ie[0],Ie[0]=this.rules.inline._backpedal.exec(Ie[0])[0];while(qe!==Ie[0]);Me=ce(Ie[0]),Ie[1]==="www."?et="http://"+Me:et=Me}return{type:"link",raw:Ie[0],text:Me,href:et,tokens:[{type:"text",raw:Me,text:Me}]}}},ve.inlineText=function(ge,ye,Ie){var Me=this.rules.inline.text.exec(ge);if(Me){var et;return ye?et=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Me[0]):ce(Me[0]):Me[0]:et=ce(this.options.smartypants?Ie(Me[0]):Me[0]),{type:"text",raw:Me[0],text:et}}},pe}(),We=z.noopTest,Ve=z.edit,$e=z.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:We,table:We,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:We,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:We,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:We,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 w={block:Pe,inline:se},F=oe.defaults,Y=w.block,ue=w.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 Be=function(){function pe(Oe){this.tokens=[],this.tokens.links=Object.create(null),this.options=Oe||F,this.options.tokenizer=this.options.tokenizer||new Le,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ge={block:Y.normal,inline:ue.normal};this.options.pedantic?(ge.block=Y.pedantic,ge.inline=ue.pedantic):this.options.gfm&&(ge.block=Y.gfm,this.options.breaks?ge.inline=ue.breaks:ge.inline=ue.gfm),this.tokenizer.rules=ge}pe.lex=function(ge,ye){var Ie=new pe(ye);return Ie.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,Ie){ye===void 0&&(ye=[]),Ie===void 0&&(Ie=!0),ge=ge.replace(/^ +$/gm,"");for(var Me,et,qe,Tt;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):(Tt=ye[ye.length-1],Tt.raw+=`
`+Me.raw,Tt.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,[],Ie),ye.push(Me);continue}if(Me=this.tokenizer.list(ge)){for(ge=ge.substring(Me.raw.length),qe=Me.items.length,et=0;et<qe;et++)Me.items[et].tokens=this.blockTokens(Me.items[et].text,[],!1);ye.push(Me);continue}if(Me=this.tokenizer.html(ge)){ge=ge.substring(Me.raw.length),ye.push(Me);continue}if(Ie&&(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(Ie&&(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):(Tt=ye[ye.length-1],Tt.raw+=`
`+Me.raw,Tt.text+=`
`+Me.text);continue}if(ge){var cn="Infinite loop on byte: "+ge.charCodeAt(0);if(this.options.silent){console.error(cn);break}else throw new Error(cn)}}return ye},ve.inline=function(ge){var ye,Ie,Me,et,qe,Tt,cn=ge.length;for(ye=0;ye<cn;ye++){Tt=ge[ye];switch(Tt.type){case"paragraph":case"text":case"heading":{Tt.tokens=[],this.inlineTokens(Tt.text,Tt.tokens);break}case"table":{for(Tt.tokens={header:[],cells:[]},et=Tt.header.length,Ie=0;Ie<et;Ie++)Tt.tokens.header[Ie]=[],this.inlineTokens(Tt.header[Ie],Tt.tokens.header[Ie]);for(et=Tt.cells.length,Ie=0;Ie<et;Ie++)for(qe=Tt.cells[Ie],Tt.tokens.cells[Ie]=[],Me=0;Me<qe.length;Me++)Tt.tokens.cells[Ie][Me]=[],this.inlineTokens(qe[Me],Tt.tokens.cells[Ie][Me]);break}case"blockquote":{this.inline(Tt.tokens);break}case"list":{for(et=Tt.items.length,Ie=0;Ie<et;Ie++)this.inline(Tt.items[Ie].tokens);break}}}return ge},ve.inlineTokens=function(ge,ye,Ie,Me,et){ye===void 0&&(ye=[]),Ie===void 0&&(Ie=!1),Me===void 0&&(Me=!1),et===void 0&&(et="");var qe,Tt=ge,cn;if(this.tokens.links){var kn=Object.keys(this.tokens.links);if(kn.length>0)for(;(cn=this.tokenizer.rules.inline.reflinkSearch.exec(Tt))!=null;)kn.includes(cn[0].slice(cn[0].lastIndexOf("[")+1,-1))&&(Tt=Tt.slice(0,cn.index)+"["+"a".repeat(cn[0].length-2)+"]"+Tt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(cn=this.tokenizer.rules.inline.blockSkip.exec(Tt))!=null;)Tt=Tt.slice(0,cn.index)+"["+"a".repeat(cn[0].length-2)+"]"+Tt.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,Ie,Me)){ge=ge.substring(qe.raw.length),Ie=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,Tt,et)){ge=ge.substring(qe.raw.length),qe.tokens=this.inlineTokens(qe.text,[],Ie,Me),ye.push(qe);continue}if(qe=this.tokenizer.em(ge,Tt,et)){ge=ge.substring(qe.raw.length),qe.tokens=this.inlineTokens(qe.text,[],Ie,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,[],Ie,Me),ye.push(qe);continue}if(qe=this.tokenizer.autolink(ge,xe)){ge=ge.substring(qe.raw.length),ye.push(qe);continue}if(!Ie&&(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),et=qe.raw.slice(-1),ye.push(qe);continue}if(ge){var On="Infinite loop on byte: "+ge.charCodeAt(0);if(this.options.silent){console.error(On);break}else throw new Error(On)}}return ye},ae(pe,null,[{key:"rules",get:function(){return{block:Y,inline:ue}}}]),pe}(),it=oe.defaults,be=z.cleanUrl,Re=z.escape,je=function(){function pe(Oe){this.options=Oe||it}var ve=pe.prototype;return ve.code=function(ge,ye,Ie){var Me=(ye||"").match(/\S*/)[0];if(this.options.highlight){var et=this.options.highlight(ge,Me);et!=null&&et!==ge&&(Ie=!0,ge=et)}return Me?'<pre><code class="'+this.options.langPrefix+Re(Me,!0)+'">'+(Ie?ge:Re(ge,!0))+`</code></pre>
`:"<pre><code>"+(Ie?ge:Re(ge,!0))+`</code></pre>
`},ve.blockquote=function(ge){return`<blockquote>
`+ge+`</blockquote>
`},ve.html=function(ge){return ge},ve.heading=function(ge,ye,Ie,Me){return this.options.headerIds?"<h"+ye+' id="'+this.options.headerPrefix+Me.slug(Ie)+'">'+ge+"</h"+ye+`>
`:"<h"+ye+">"+ge+"</h"+ye+`>
`},ve.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},ve.list=function(ge,ye,Ie){var Me=ye?"ol":"ul",et=ye&&Ie!==1?' start="'+Ie+'"':"";return"<"+Me+et+`>
`+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 Ie=ye.header?"th":"td",Me=ye.align?"<"+Ie+' align="'+ye.align+'">':"<"+Ie+">";return Me+ge+"</"+Ie+`>
`},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,Ie){if(ge=be(this.options.sanitize,this.options.baseUrl,ge),ge===null)return Ie;var Me='<a href="'+Re(ge)+'"';return ye&&(Me+=' title="'+ye+'"'),Me+=">"+Ie+"</a>",Me},ve.image=function(ge,ye,Ie){if(ge=be(this.options.sanitize,this.options.baseUrl,ge),ge===null)return Ie;var Me='<img src="'+ge+'" alt="'+Ie+'"';return ye&&(Me+=' title="'+ye+'"'),Me+=this.options.xhtml?"/>":">",Me},ve.text=function(ge){return ge},pe}(),Ye=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,Ie){return""+Ie},ve.image=function(ge,ye,Ie){return""+Ie},ve.br=function(){return""},pe}(),ft=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 Ie=ye;do this.seen[Ie]++,ye=Ie+"-"+this.seen[Ie];while(this.seen.hasOwnProperty(ye))}return this.seen[ye]=0,ye},pe}(),Rt=oe.defaults,Jt=z.unescape,Wt=function(){function pe(Oe){this.options=Oe||Rt,this.options.renderer=this.options.renderer||new je,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ye,this.slugger=new ft}pe.parse=function(ge,ye){var Ie=new pe(ye);return Ie.parse(ge)};var ve=pe.prototype;return ve.parse=function(ge,ye){ye===void 0&&(ye=!0);var Ie="",Me,et,qe,Tt,cn,kn,On,Qt,ht,yt,ut,Ae,Ue,vt,dt,en,rn,Et,It=ge.length;for(Me=0;Me<It;Me++){yt=ge[Me];switch(yt.type){case"space":continue;case"hr":{Ie+=this.renderer.hr();continue}case"heading":{Ie+=this.renderer.heading(this.parseInline(yt.tokens),yt.depth,Jt(this.parseInline(yt.tokens,this.textRenderer)),this.slugger);continue}case"code":{Ie+=this.renderer.code(yt.text,yt.lang,yt.escaped);continue}case"table":{for(Qt="",On="",Tt=yt.header.length,et=0;et<Tt;et++)On+=this.renderer.tablecell(this.parseInline(yt.tokens.header[et]),{header:!0,align:yt.align[et]});for(Qt+=this.renderer.tablerow(On),ht="",Tt=yt.cells.length,et=0;et<Tt;et++){for(kn=yt.tokens.cells[et],On="",cn=kn.length,qe=0;qe<cn;qe++)On+=this.renderer.tablecell(this.parseInline(kn[qe]),{header:!1,align:yt.align[qe]});ht+=this.renderer.tablerow(On)}Ie+=this.renderer.table(Qt,ht);continue}case"blockquote":{ht=this.parse(yt.tokens),Ie+=this.renderer.blockquote(ht);continue}case"list":{for(ut=yt.ordered,Ae=yt.start,Ue=yt.loose,Tt=yt.items.length,ht="",et=0;et<Tt;et++)dt=yt.items[et],en=dt.checked,rn=dt.task,vt="",dt.task&&(Et=this.renderer.checkbox(en),Ue?dt.tokens.length>0&&dt.tokens[0].type==="text"?(dt.tokens[0].text=Et+" "+dt.tokens[0].text,dt.tokens[0].tokens&&dt.tokens[0].tokens.length>0&&dt.tokens[0].tokens[0].type==="text"&&(dt.tokens[0].tokens[0].text=Et+" "+dt.tokens[0].tokens[0].text)):dt.tokens.unshift({type:"text",text:Et}):vt+=Et),vt+=this.parse(dt.tokens,Ue),ht+=this.renderer.listitem(vt,rn,en);Ie+=this.renderer.list(ht,ut,Ae);continue}case"html":{Ie+=this.renderer.html(yt.text);continue}case"paragraph":{Ie+=this.renderer.paragraph(this.parseInline(yt.tokens));continue}case"text":{for(ht=yt.tokens?this.parseInline(yt.tokens):yt.text;Me+1<It&&ge[Me+1].type==="text";)yt=ge[++Me],ht+=`
`+(yt.tokens?this.parseInline(yt.tokens):yt.text);Ie+=ye?this.renderer.paragraph(ht):ht;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 Ie},ve.parseInline=function(ge,ye){ye=ye||this.renderer;var Ie="",Me,et,qe=ge.length;for(Me=0;Me<qe;Me++){et=ge[Me];switch(et.type){case"escape":{Ie+=ye.text(et.text);break}case"html":{Ie+=ye.html(et.text);break}case"link":{Ie+=ye.link(et.href,et.title,this.parseInline(et.tokens,ye));break}case"image":{Ie+=ye.image(et.href,et.title,et.text);break}case"strong":{Ie+=ye.strong(this.parseInline(et.tokens,ye));break}case"em":{Ie+=ye.em(this.parseInline(et.tokens,ye));break}case"codespan":{Ie+=ye.codespan(et.text);break}case"br":{Ie+=ye.br();break}case"del":{Ie+=ye.del(this.parseInline(et.tokens,ye));break}case"text":{Ie+=ye.text(et.text);break}default:{var Tt='Token with "'+et.type+'" type was not found.';if(this.options.silent){console.error(Tt);return}else throw new Error(Tt)}}}return Ie},pe}(),Nt=z.merge,sn=z.checkSanitizeDeprecation,an=z.escape,zt=oe.getDefaults,mn=oe.changeDefaults,xn=oe.defaults;function Te(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({},Te.defaults,ve||{}),sn(ve),Oe){var ge=ve.highlight,ye;try{ye=Be.lex(pe,ve)}catch(qe){return Oe(qe)}var Ie=function(Tt){var cn;if(!Tt)try{cn=Wt.parse(ye,ve)}catch(kn){Tt=kn}return ve.highlight=ge,Tt?Oe(Tt):Oe(null,cn)};if(!ge||ge.length<3)return Ie();if(delete ve.highlight,!ye.length)return Ie();var Me=0;Te.walkTokens(ye,function(qe){qe.type==="code"&&(Me++,setTimeout(function(){ge(qe.text,qe.lang,function(Tt,cn){if(Tt)return Ie(Tt);cn!=null&&cn!==qe.text&&(qe.text=cn,qe.escaped=!0),Me--,Me===0&&Ie()})},0))}),Me===0&&Ie();return}try{var et=Be.lex(pe,ve);return ve.walkTokens&&Te.walkTokens(et,ve.walkTokens),Wt.parse(et,ve)}catch(qe){if(qe.message+=`
Please report this to https://github.com/markedjs/marked.`,ve.silent)return"<p>An error occurred:</p><pre>"+an(qe.message+"",!0)+"</pre>";throw qe}}Te.options=Te.setOptions=function(pe){return Nt(Te.defaults,pe),mn(Te.defaults),Te},Te.getDefaults=zt,Te.defaults=xn,Te.use=function(pe){var ve=Nt({},pe);if(pe.renderer&&function(){var ge=Te.defaults.renderer||new je,ye=function(et){var qe=ge[et];ge[et]=function(){for(var Tt=arguments.length,cn=new Array(Tt),kn=0;kn<Tt;kn++)cn[kn]=arguments[kn];var On=pe.renderer[et].apply(ge,cn);return On===!1&&(On=qe.apply(ge,cn)),On}};for(var Ie in pe.renderer)ye(Ie);ve.renderer=ge}(),pe.tokenizer&&function(){var ge=Te.defaults.tokenizer||new Le,ye=function(et){var qe=ge[et];ge[et]=function(){for(var Tt=arguments.length,cn=new Array(Tt),kn=0;kn<Tt;kn++)cn[kn]=arguments[kn];var On=pe.tokenizer[et].apply(ge,cn);return On===!1&&(On=qe.apply(ge,cn)),On}};for(var Ie in pe.tokenizer)ye(Ie);ve.tokenizer=ge}(),pe.walkTokens){var Oe=Te.defaults.walkTokens;ve.walkTokens=function(ge){pe.walkTokens(ge),Oe&&Oe(ge)}}Te.setOptions(ve)},Te.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 Ie=j(ye.tokens.header),Me;!(Me=Ie()).done;){var et=Me.value;Te.walkTokens(et,ve)}for(var qe=j(ye.tokens.cells),Tt;!(Tt=qe()).done;)for(var cn=Tt.value,kn=j(cn),On;!(On=kn()).done;){var Qt=On.value;Te.walkTokens(Qt,ve)}break}case"list":{Te.walkTokens(ye.items,ve);break}default:ye.tokens&&Te.walkTokens(ye.tokens,ve)}}},Te.Parser=Wt,Te.parser=Wt.parse,Te.Renderer=je,Te.TextRenderer=Ye,Te.Lexer=Be,Te.lexer=Be.lex,Te.Tokenizer=Le,Te.Slugger=ft,Te.parse=Te;var fe=Te;return fe})},Dz72:function(Ot,Ne,ie){"use strict";var Se=ie("2qtc"),ae=ie("kLXV"),X=ie("7Kak"),le=ie("9yH6"),j=ie("iQDF"),W=ie("+eQT"),oe=ie("5NDa"),V=ie("5rEg"),l=ie("OaEy"),B=ie("2fM7"),A=ie("9og8"),T=ie("k1fw"),y=ie("y8nQ"),p=ie("Vl3Y"),v=ie("tJVT"),_=ie("WmNS"),g=ie.n(_),h=ie("q1tI"),c=ie.n(h),d=ie("9kvl"),R=ie("wd/R"),D=ie.n(R),I=ie("J1Xd"),N=ie.n(I),S=ie("Fhpe"),L=ie.n(S),C=ie("NReP"),b=function(O){var x,k=O.visible,Z=O.onOk,G=O.onCancel,P=O.title,z=P===void 0?"":P,Q=O.coreCurriculum,H=O.dispatch,ne=Q.CoreSubjects,ce=p.a.useForm(),we=Object(v.a)(ce,1),Ce=we[0],ze=Object(h.useState)(!1),Le=Object(v.a)(ze,2),We=Le[0],Ve=Le[1],$e=Object(h.useState)([]),Pe=Object(v.a)($e,2),se=Pe[0],w=Pe[1],F=Object(h.useState)(!1),Y=Object(v.a)(F,2),ue=Y[0],q=Y[1];Object(h.useEffect)(function(){if(H({type:"coreCurriculum/getCoreSubjects",payload:{page:1,limit:12}}),k!=null&&k.id){var be,Re;console.log(k),Ce.setFieldsValue(Object(T.a)(Object(T.a)({},k),{},{attachment_id:k==null||((be=k.attachment)===null||be===void 0)?void 0:be.id,publication_time:D()(k==null?void 0:k.publication_time)}));var je=[Object(T.a)(Object(T.a)({},k==null?void 0:k.attachment),{},{response:{id:k==null||((Re=k.attachment)===null||Re===void 0)?void 0:Re.id}})];w(je)}},[k]);var xe=function(){Ce.submit()},Be=function(){G()},it=function(){var be=Object(A.a)(g.a.mark(function Re(je){var Ye;return g.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:Ve(!0),Ye=Object(T.a)({},je),Z(Ye);case 3:case"end":return Rt.stop()}},Re)}));return function(je){return be.apply(this,arguments)}}();return c.a.createElement(ae.a,{title:"".concat(k!=null&&k.id?"\u7F16\u8F91":"\u65B0\u5EFA").concat(z),visible:k,onOk:xe,centered:!0,onCancel:Be,confirmLoading:We,okButtonProps:{disabled:ue},width:686,afterClose:function(){Ve(!1),w([]),Ce.resetFields()},okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",wrapClassName:L.a.CustomCss},c.a.createElement(p.a,{form:Ce,colon:!1,labelCol:{span:4},wrapperCol:{span:18},onFinish:it,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(B.a,{placeholder:"\u8BF7\u9009\u62E9"},ne==null||((x=ne.list)===null||x===void 0)?void 0:x.map(function(be,Re){return c.a.createElement(B.a.Option,{key:Re,value:be==null?void 0:be.id},be==null?void 0:be.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\u516560\u4E2A\u5B57\u7B26"}]},c.a.createElement(V.a,{maxLength:100,placeholder:"\u8BF7\u8F93\u5165\u6559\u6750\u540D\u79F0"})),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(W.a,{style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u51FA\u7248\u65F6\u95F4",format:"YYYY-MM-DD HH:mm",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:60,placeholder:"\u8BF7\u8F93\u5165ISBN"})),c.a.createElement(p.a.Item,{label:"\u9605\u8BFB\u94FE\u63A5",name:"link"},c.a.createElement(V.a,{maxLength:60,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:"\u7167\u7247",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u7167\u7247"}]},c.a.createElement(C.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\u7167\u7247"))}))))};Ne.a=Object(d.a)(function(E){var O=E.dispatch,x=E.coreCurriculum;return{dispatch:O,coreCurriculum:x}})(b)},FOrL:function(Ot,Ne,ie){Ot.exports=ie.p+"static/nodata.a6b3f948.png"},FWmy:function(Ot,Ne,ie){"use strict";ie.d(Ne,"a",function(){return Se});function Se(ae,X){if(!ae)throw new Error(X?`Assertion failed (${X})`:"Assertion Failed")}},Fhpe:function(Ot,Ne,ie){Ot.exports={flex_box_center:"flex_box_center___1W7Bl",flex_space_between:"flex_space_between___3S4Sp",flex_box_vertical_center:"flex_box_vertical_center___5mGEA",flex_box_center_end:"flex_box_center_end___1blqp",flex_box_column:"flex_box_column___4i1E0",CustomCss:"CustomCss___3thFA",CustomTipsModalCss:"CustomTipsModalCss___2aNwC",dropdownmenus:"dropdownmenus___19dGk",popupClassNames:"popupClassNames___3LOFQ",selectdown:"selectdown___1_utH"}},GfqC:function(Ot,Ne,ie){"use strict";var Se=ie("q1tI"),ae=ie.n(Se),X=ie("TSYQ"),le=ie.n(X);function j(z,Q){var H="cannot "+z.method+" "+z.action+" "+Q.status+"'",ne=new Error(H);return ne.status=Q.status,ne.method=z.method,ne.url=z.action,ne}function W(z){var Q=z.responseText||z.response;if(!Q)return Q;try{return JSON.parse(Q)}catch(H){return Q}}function oe(z){var Q=new XMLHttpRequest;z.onProgress&&Q.upload&&(Q.upload.onprogress=function(we){we.total>0&&(we.percent=we.loaded/we.total*100),z.onProgress(we)});var H=new FormData;z.data&&Object.keys(z.data).forEach(function(ce){var we=z.data[ce];if(Array.isArray(we)){we.forEach(function(Ce){H.append(ce+"[]",Ce)});return}H.append(ce,z.data[ce])}),z.file instanceof Blob?H.append(z.filename,z.file,z.file.name):H.append(z.filename,z.file),Q.onerror=function(we){z.onError(we)},Q.onload=function(){return Q.status<200||Q.status>=300?z.onError(j(z,Q),W(Q)):z.onSuccess(W(Q),Q)},Q.open(z.method,z.action,!0),z.withCredentials&&"withCredentials"in Q&&(Q.withCredentials=!0);var ne=z.headers||{};return ne["X-Requested-With"]!==null&&Q.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ne).forEach(function(ce){ne[ce]!==null&&Q.setRequestHeader(ce,ne[ce])}),Q.send(H),{abort:function(){Q.abort()}}}var V=+new Date,l=0;function B(){return"rc-upload-"+V+"-"+ ++l}function A(z,Q){return z.indexOf(Q,z.length-Q.length)!==-1}var T=function(z,Q){if(z&&Q){var H=Array.isArray(Q)?Q:Q.split(","),ne=z.name||"",ce=z.type||"",we=ce.replace(/\/.*$/,"");return H.some(function(Ce){var ze=Ce.trim();return ze.charAt(0)==="."?A(ne.toLowerCase(),ze.toLowerCase()):/\/\*$/.test(ze)?we===ze.replace(/\/.*$/,""):ce===ze})}return!0};function y(z,Q){var H=z.createReader(),ne=[];function ce(){H.readEntries(function(we){var Ce=Array.prototype.slice.apply(we);ne=ne.concat(Ce);var ze=!Ce.length;ze?Q(ne):ce()})}ce()}var p=function(Q,H,ne){var ce=function we(Ce,ze){ze=ze||"",Ce.isFile?Ce.file(function(Le){ne(Le)&&(Ce.fullPath&&!Le.webkitRelativePath&&(Object.defineProperties(Le,{webkitRelativePath:{writable:!0}}),Le.webkitRelativePath=Ce.fullPath.replace(/^\//,""),Object.defineProperties(Le,{webkitRelativePath:{writable:!1}})),H([Le]))}):Ce.isDirectory&&y(Ce,function(Le){Le.forEach(function(We){we(We,""+ze+Ce.name+"/")})})};Q.forEach(function(we){ce(we.webkitGetAsEntry())})},v=p,_=Object.assign||function(z){for(var Q=1;Q<arguments.length;Q++){var H=arguments[Q];for(var ne in H)Object.prototype.hasOwnProperty.call(H,ne)&&(z[ne]=H[ne])}return z},g=function(){function z(Q,H){var ne=[],ce=!0,we=!1,Ce=void 0;try{for(var ze=Q[Symbol.iterator](),Le;!(ce=(Le=ze.next()).done)&&!(ne.push(Le.value),H&&ne.length===H);ce=!0);}catch(We){we=!0,Ce=We}finally{try{!ce&&ze.return&&ze.return()}finally{if(we)throw Ce}}return ne}return function(Q,H){if(Array.isArray(Q))return Q;if(Symbol.iterator in Object(Q))return z(Q,H);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function z(Q,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(Q,ce.key,ce)}}return function(Q,H,ne){return H&&z(Q.prototype,H),ne&&z(Q,ne),Q}}();function c(z,Q,H){return Q in z?Object.defineProperty(z,Q,{value:H,enumerable:!0,configurable:!0,writable:!0}):z[Q]=H,z}function d(z,Q){var H={};for(var ne in z){if(Q.indexOf(ne)>=0)continue;if(!Object.prototype.hasOwnProperty.call(z,ne))continue;H[ne]=z[ne]}return H}function R(z,Q){if(!(z instanceof Q))throw new TypeError("Cannot call a class as a function")}function D(z,Q){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q&&(typeof Q=="object"||typeof Q=="function")?Q:z}function I(z,Q){if(typeof Q!="function"&&Q!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Q);z.prototype=Object.create(Q&&Q.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),Q&&(Object.setPrototypeOf?Object.setPrototypeOf(z,Q):z.__proto__=Q)}var N=function(Q){return Object.keys(Q).reduce(function(H,ne){return(ne.substr(0,5)==="data-"||ne.substr(0,5)==="aria-"||ne==="role")&&(H[ne]=Q[ne]),H},{})},S=function(z){I(Q,z);function Q(){var H,ne,ce,we;R(this,Q);for(var Ce=arguments.length,ze=Array(Ce),Le=0;Le<Ce;Le++)ze[Le]=arguments[Le];return we=(ne=(ce=D(this,(H=Q.__proto__||Object.getPrototypeOf(Q)).call.apply(H,[this].concat(ze))),ce),ce.state={uid:B()},ce.reqs={},ce.onChange=function(We){var Ve=We.target.files;ce.uploadFiles(Ve),ce.reset()},ce.onClick=function(We){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(We)},ce.onKeyDown=function(We){We.key==="Enter"&&ce.onClick()},ce.onFileDrop=function(We){var Ve=ce.props.multiple;if(We.preventDefault(),We.type==="dragover")return;if(ce.props.directory)v(Array.prototype.slice.call(We.dataTransfer.items),ce.uploadFiles,function(Pe){return T(Pe,ce.props.accept)});else{var $e=Array.prototype.slice.call(We.dataTransfer.files).filter(function(Pe){return T(Pe,ce.props.accept)});Ve===!1&&($e=$e.slice(0,1)),ce.uploadFiles($e)}},ce.uploadFiles=function(We){var Ve=Array.prototype.slice.call(We);Ve.map(function($e){return $e.uid=B(),$e}).forEach(function($e){ce.upload($e,Ve)})},ce.saveFileInput=function(We){ce.fileInput=We},ne),D(ce,we)}return h(Q,[{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 ze=Ce.beforeUpload(ne,ce);ze&&ze.then?ze.then(function(Le){var We=Object.prototype.toString.call(Le);return We==="[object File]"||We==="[object Blob]"?we.post(Le):we.post(ne)}).catch(function(Le){console.log(Le)}):ze!==!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,ze=we.onProgress,Le=we.transformFile,We=Le===void 0?function(Ve){return Ve}:Le;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(We(ne)).then(function(w){var F=we.data;return typeof F=="function"&&(F=F(w)),Promise.all([w,F])}).catch(function(w){console.error(w)});se.then(function(w){var F=g(w,2),Y=F[0],ue=F[1],q={action:Ve,filename:we.name,data:ue,file:Y,headers:we.headers,withCredentials:we.withCredentials,method:we.method||"post",onProgress:ze?function(xe){ze(xe,ne)}:null,onSuccess:function(Be,it){delete ce.reqs[$e],we.onSuccess(Be,ne,it)},onError:function(Be,it){delete ce.reqs[$e],we.onError(Be,it,ne)}};Ce(ne),ce.reqs[$e]=Pe(q)})})}},{key:"reset",value:function(){this.setState({uid:B()})}},{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,ze=ce.className,Le=ce.disabled,We=ce.id,Ve=ce.style,$e=ce.multiple,Pe=ce.accept,se=ce.children,w=ce.directory,F=ce.openFileDialogOnClick,Y=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",Le),c(ne,ze,ze),ne)),Be=Le?{}:{onClick:F?this.onClick:function(){},onKeyDown:F?this.onKeyDown:function(){},onMouseEnter:Y,onMouseLeave:ue,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.a.createElement(we,_({},Be,{className:xe,role:"button",style:Ve}),ae.a.createElement("input",_({},N(q),{id:We,type:"file",ref:this.saveFileInput,onClick:function(be){return be.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Pe,directory:w?"directory":null,webkitdirectory:w?"webkitdirectory":null,multiple:$e,onChange:this.onChange})),se)}}]),Q}(Se.Component),L=S,C=Object.assign||function(z){for(var Q=1;Q<arguments.length;Q++){var H=arguments[Q];for(var ne in H)Object.prototype.hasOwnProperty.call(H,ne)&&(z[ne]=H[ne])}return z},b=function(){function z(Q,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(Q,ce.key,ce)}}return function(Q,H,ne){return H&&z(Q.prototype,H),ne&&z(Q,ne),Q}}();function E(z,Q){if(!(z instanceof Q))throw new TypeError("Cannot call a class as a function")}function O(z,Q){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q&&(typeof Q=="object"||typeof Q=="function")?Q:z}function x(z,Q){if(typeof Q!="function"&&Q!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Q);z.prototype=Object.create(Q&&Q.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),Q&&(Object.setPrototypeOf?Object.setPrototypeOf(z,Q):z.__proto__=Q)}function k(){}var Z=function(z){x(Q,z);function Q(){var H,ne,ce,we;E(this,Q);for(var Ce=arguments.length,ze=Array(Ce),Le=0;Le<Ce;Le++)ze[Le]=arguments[Le];return we=(ne=(ce=O(this,(H=Q.__proto__||Object.getPrototypeOf(Q)).call.apply(H,[this].concat(ze))),ce),ce.saveUploader=function(We){ce.uploader=We},ne),O(ce,we)}return b(Q,[{key:"abort",value:function(ne){this.uploader.abort(ne)}},{key:"render",value:function(){return ae.a.createElement(L,C({},this.props,{ref:this.saveUploader}))}}]),Q}(Se.Component);Z.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:k,onError:k,onSuccess:k,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var G=Z,P=Ne.a=G},Gytx:function(Ot,Ne){Ot.exports=function(Se,ae,X,le){var j=X?X.call(le,Se,ae):void 0;if(j!==void 0)return!!j;if(Se===ae)return!0;if(typeof Se!="object"||!Se||typeof ae!="object"||!ae)return!1;var W=Object.keys(Se),oe=Object.keys(ae);if(W.length!==oe.length)return!1;for(var V=Object.prototype.hasOwnProperty.bind(ae),l=0;l<W.length;l++){var B=W[l];if(!V(B))return!1;var A=Se[B],T=ae[B];if(j=X?X.call(le,A,T,B):void 0,j===!1||j===void 0&&A!==T)return!1}return!0}},I8Z2:function(Ot,Ne,ie){"use strict";ie.d(Ne,"a",function(){return le}),ie.d(Ne,"b",function(){return y}),ie.d(Ne,"c",function(){return v});var Se=ie("q1tI"),ae=function(){var _=function(g,h){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var R in d)d.hasOwnProperty(R)&&(c[R]=d[R])},_(g,h)};return function(g,h){_(g,h);function c(){this.constructor=g}g.prototype=h===null?Object.create(h):(c.prototype=h.prototype,new c)}}(),X=Se.createContext(null),le=function(_){ae(g,_);function g(){return _!==null&&_.apply(this,arguments)||this}return g.prototype.render=function(){return Se.createElement(X.Provider,{value:this.props.store},this.props.children)},g}(Se.Component),j=ie("Gytx"),W=ie.n(j),oe=ie("2mql"),V=ie.n(oe),l=function(){var _=function(g,h){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var R in d)d.hasOwnProperty(R)&&(c[R]=d[R])},_(g,h)};return function(g,h){_(g,h);function c(){this.constructor=g}g.prototype=h===null?Object.create(h):(c.prototype=h.prototype,new c)}}(),B=function(){return B=Object.assign||function(_){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)&&(_[d]=g[d])}return _},B.apply(this,arguments)};function A(_){return _.displayName||_.name||"Component"}var T=function(){return{}};function y(_,g){g===void 0&&(g={});var h=!!_,c=_||T;return function(R){var D=function(N){l(S,N);function S(L,C){var b=N.call(this,L,C)||this;return b.unsubscribe=null,b.handleChange=function(){if(!b.unsubscribe)return;var E=c(b.store.getState(),b.props);b.setState({subscribed:E})},b.store=b.context,b.state={subscribed:c(b.store.getState(),L),store:b.store,props:L},b}return S.getDerivedStateFromProps=function(L,C){return _&&_.length===2&&L!==C.props?{subscribed:c(C.store.getState(),L),props:L}:{props:L}},S.prototype.componentDidMount=function(){this.trySubscribe()},S.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},S.prototype.shouldComponentUpdate=function(L,C){return!W()(this.props,L)||!W()(this.state.subscribed,C.subscribed)},S.prototype.trySubscribe=function(){h&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},S.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},S.prototype.render=function(){var L=B(B(B({},this.props),this.state.subscribed),{store:this.store});return Se.createElement(R,B({},L,{ref:this.props.miniStoreForwardedRef}))},S.displayName="Connect("+A(R)+")",S.contextType=X,S}(Se.Component);if(g.forwardRef){var I=Se.forwardRef(function(N,S){return Se.createElement(D,B({},N,{miniStoreForwardedRef:S}))});return V()(I,R)}return V()(D,R)}}var p=function(){return p=Object.assign||function(_){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)&&(_[d]=g[d])}return _},p.apply(this,arguments)};function v(_){var g=_,h=[];function c(D){g=p(p({},g),D);for(var I=0;I<h.length;I++)h[I]()}function d(){return g}function R(D){return h.push(D),function(){var N=h.indexOf(D);h.splice(N,1)}}return{setState:c,getState:d,subscribe:R}}},"IP8+":function(Ot,Ne,ie){Ot.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",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"}},J1Xd:function(Ot,Ne,ie){Ot.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(Ot,Ne){Ot.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(Ot,Ne,ie){"use strict";ie.d(Ne,"a",function(){return Se});var Se;(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*W(d){yield d}ae.single=W;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 B(d,R){for(const D of d)if(R(D))return!0;return!1}ae.some=B;function A(d,R){for(const D of d)if(R(D))return D;return}ae.find=A;function*T(d,R){for(const D of d)R(D)&&(yield D)}ae.filter=T;function*y(d,R){let D=0;for(const I of d)yield R(I,D++)}ae.map=y;function*p(...d){for(const R of d)for(const D of R)yield D}ae.concat=p;function*v(d){for(const R of d)for(const D of R)yield D}ae.concatNested=v;function _(d,R,D){let I=D;for(const N of d)I=R(I,N);return I}ae.reduce=_;function*g(d,R,D=d.length){for(R<0&&(R+=d.length),D<0?D+=d.length:D>d.length&&(D=d.length);R<D;R++)yield d[R]}ae.slice=g;function h(d,R=Number.POSITIVE_INFINITY){const D=[];if(R===0)return[D,d];const I=d[Symbol.iterator]();for(let N=0;N<R;N++){const S=I.next();if(S.done)return[D,ae.empty()];D.push(S.value)}return[D,{[Symbol.iterator](){return I}}]}ae.consume=h;function c(d,R,D=(I,N)=>I===N){const I=d[Symbol.iterator](),N=R[Symbol.iterator]();for(;;){const S=I.next(),L=N.next();if(S.done!==L.done)return!1;if(S.done)return!0;if(!D(S.value,L.value))return!1}}ae.equals=c})(Se||(Se={}))},KOXS:function(Ot,Ne,ie){Ot.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(Ot,Ne,ie){"use strict";ie.r(Ne);var Se=ie("iQDF"),ae=ie("+eQT"),X=ie("5NDa"),le=ie("5rEg"),j=ie("14J3"),W=ie("BMrR"),oe=ie("DjyN"),V=ie("NUBc"),l=ie("jCWc"),B=ie("kPKH"),A=ie("+L6B"),T=ie("2/Rp"),y=ie("miYZ"),p=ie("tsqr"),v=ie("2qtc"),_=ie("kLXV"),g=ie("k1fw"),h=ie("9og8"),c=ie("y8nQ"),d=ie("Vl3Y"),R=ie("tJVT"),D=ie("WmNS"),I=ie.n(D),N=ie("q1tI"),S=ie.n(N),L=ie("ErOA"),C=ie("IP8+"),b=ie.n(C),E=ie("9Bee"),O=ie("Dz72"),x=ie("m3rI"),k=ie("Nf5h"),Z=ie("phzI"),G=ie("Fhpe"),P=ie.n(G),z=ie("Ty5D"),Q=ie("9kvl"),H=ie("xKgJ"),ne=ie("1vsH"),ce=ie("wd/R"),we=ie.n(ce),Ce=function(Le){var We=Le.globalSetting,Ve=Le.dispatch,$e=Le.user,Pe=Le.virtualSpaces,se=Object(z.i)(),w=d.a.useForm(),F=Object(R.a)(w,1),Y=F[0],ue=se.id,q=Object(N.useState)("description"),xe=Object(R.a)(q,2),Be=xe[0],it=xe[1],be=Object(N.useState)({}),Re=Object(R.a)(be,2),je=Re[0],Ye=Re[1],ft=Object(N.useState)({page:1,limit:10}),Rt=Object(R.a)(ft,2),Jt=Rt[0],Wt=Rt[1],Nt=Object(N.useState)(0),sn=Object(R.a)(Nt,2),an=sn[0],zt=sn[1],mn=Object(N.useState)(!0),xn=Object(R.a)(mn,2),Te=xn[0],fe=xn[1],pe=Object(N.useState)(!1),ve=Object(R.a)(pe,2),Oe=ve[0],ge=ve[1],ye=Object(N.useState)(""),Ie=Object(R.a)(ye,2),Me=Ie[0],et=Ie[1],qe=Object(N.useState)([]),Tt=Object(R.a)(qe,2),cn=Tt[0],kn=Tt[1],On=Object(N.useState)(""),Qt=Object(R.a)(On,2),ht=Qt[0],yt=Qt[1],ut=Object(N.useRef)(""),Ae=Object(N.useState)(!1),Ue=Object(R.a)(Ae,2),vt=Ue[0],dt=Ue[1],en=Object(N.useState)(!1),rn=Object(R.a)(en,2),Et=rn[0],It=rn[1],Ct=Object(N.useState)(!1),nt=Object(R.a)(Ct,2),Bt=nt[0],$t=nt[1],ln=Pe.virtualSpacesDetails,Xn=je.name,In=je.attachment,dn=je.author,An=je.publisher,gn=je.number,Un=je.publication_time,Hn=je.material_type,ar=je.link;Object(N.useEffect)(function(){li()},[ue]),Object(N.useEffect)(function(){_n()},[Be]);var hr=[{id:"description",name:"\u7B80\u4ECB"},{id:"directory",name:"\u76EE\u5F55"},{id:"foreword",name:"\u524D\u8A00"},{id:"feedback",name:"\u8BD5\u7528\u53CD\u9988"}],Ir={description:"\u7B80\u4ECB",directory:"\u76EE\u5F55",foreword:"\u524D\u8A00"},si=function(or){var Qn,Mn=Object(H.s)()||($e==null||((Qn=$e.userInfo)===null||Qn===void 0)?void 0:Qn.user_id)===or;return Mn},li=function(){var Fn=Object(h.a)(I.a.mark(function or(){var Qn;return I.a.wrap(function(qr){for(;;)switch(qr.prev=qr.next){case 0:return fe(!0),qr.next=3,Object(L.a)("/api/core_materials/".concat(ue,".json"),{method:"get"});case 3:Qn=qr.sent,(Qn==null?void 0:Qn.status)!==-1&&Ye(Object(g.a)({},Qn==null?void 0:Qn.data)),fe(!1);case 6:case"end":return qr.stop()}},or)}));return function(){return Fn.apply(this,arguments)}}(),_n=function(){var Fn=Object(h.a)(I.a.mark(function or(){var Qn,Mn,qr,Lr,ja,Tu,ol;return I.a.wrap(function(qa){for(;;)switch(qa.prev=qa.next){case 0:if(fe(!0),console.log(Be),!(Be==="feedback")){qa.next=9;break}return qa.next=5,Object(L.a)("/api/core_materials/".concat(ue,"/feedbacks.json"),{method:"get"});case 5:Qn=qa.sent,(Qn==null?void 0:Qn.status)!==-1&&(kn(Qn==null||((Mn=Qn.data)===null||Mn===void 0)?void 0:Mn.list),zt(Qn==null||((qr=Qn.data)===null||qr===void 0)?void 0:qr.size)),qa.next=13;break;case 9:return qa.next=11,Object(L.a)("/api/core_materials/".concat(ue,"/show_desc.json"),{method:"get",params:{column:Be}});case 11:Lr=qa.sent,(Lr==null?void 0:Lr.status)!==-1&&(et((Lr==null||((ja=Lr.data)===null||ja===void 0)?void 0:ja[Be])||""),yt((Lr==null||((Tu=Lr.data)===null||Tu===void 0)?void 0:Tu[Be])||""),ut.current=(Lr==null||((ol=Lr.data)===null||ol===void 0)?void 0:ol[Be])||"");case 13:fe(!1);case 14:case"end":return qa.stop()}},or)}));return function(){return Fn.apply(this,arguments)}}(),Ar=function(){_.a.confirm({title:"\u63D0\u793A",okText:"\u786E\u5B9A\u5220\u9664",okButtonProps:{danger:!0},icon:!1,className:P.a.CustomTipsModalCss,cancelText:"\u53D6\u6D88",content:S.a.createElement("div",null,S.a.createElement("div",null,"\u786E\u8BA4\u5220\u9664\u300A",Xn,"\u300B\u5417\uFF1F"),S.a.createElement("div",{className:"mt10"},"\u5220\u9664\u540E\uFF0C\u5C06\u65E0\u6CD5\u6062\u590D\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C")),onOk:function(){var or=Object(h.a)(I.a.mark(function Mn(){var qr;return I.a.wrap(function(ja){for(;;)switch(ja.prev=ja.next){case 0:return ja.next=2,Object(L.a)("/api/core_materials/".concat(ue,".json"),{method:"delete"});case 2:qr=ja.sent,(qr==null?void 0:qr.status)!==-1&&(p.b.success("\u64CD\u4F5C\u6210\u529F"),Q.d.push("/textbook"));case 4:case"end":return ja.stop()}},Mn)}));function Qn(){return or.apply(this,arguments)}return Qn}()})},Kr=function(){var Fn=Object(h.a)(I.a.mark(function or(Qn){var Mn;return I.a.wrap(function(Lr){for(;;)switch(Lr.prev=Lr.next){case 0:return Lr.next=2,Object(L.a)("/api/core_materials/".concat(ue,".json"),{method:"put",body:Object(g.a)({material_type:String(Hn)},Qn)});case 2:Mn=Lr.sent,(Mn==null?void 0:Mn.status)!==-1&&(li(),p.b.success("\u7F16\u8F91\u6210\u529F"),ge(!1));case 4:case"end":return Lr.stop()}},or)}));return function(Qn){return Fn.apply(this,arguments)}}(),sa=function(){var Fn=Object(h.a)(I.a.mark(function or(Qn){var Mn;return I.a.wrap(function(Lr){for(;;)switch(Lr.prev=Lr.next){case 0:return Lr.next=2,Object(L.a)("/api/core_materials/".concat(ue,"/add_feedback.json"),{method:"post",body:Object(g.a)({},Qn)});case 2:Mn=Lr.sent,(Mn==null?void 0:Mn.status)!==-1&&(li(),p.b.success("\u7F16\u8F91\u6210\u529F"),ge(!1));case 4:case"end":return Lr.stop()}},or)}));return function(Qn){return Fn.apply(this,arguments)}}(),ai=function(){var Fn=Object(h.a)(I.a.mark(function or(){var Qn,Mn;return I.a.wrap(function(Lr){for(;;)switch(Lr.prev=Lr.next){case 0:return $t(!0),Qn={},Qn[Be]=Me,Lr.next=5,Object(L.a)("/api/core_materials/".concat(ue,"/update_desc.json"),{method:"put",body:Qn});case 5:Mn=Lr.sent,(Mn==null?void 0:Mn.status)!==-1&&(_n(),p.b.success("\u7F16\u8F91\u6210\u529F"),dt(!1)),$t(!1);case 8:case"end":return Lr.stop()}},or)}));return function(){return Fn.apply(this,arguments)}}();return S.a.createElement("section",null,S.a.createElement("div",{className:"".concat(b.a.Bg),style:{width:"100%",height:240,backgroundImage:"url(".concat(ie("eu9j"),")")}},S.a.createElement("div",{className:b.a.list,style:{width:1200,height:"100%",margin:"0 auto",padding:"12px 0",position:"relative",color:"#fff"}},S.a.createElement("div",{className:b.a.left},S.a.createElement("img",{src:x.a.API_SERVER+(In==null?void 0:In.url)})),S.a.createElement("div",{className:b.a.right},S.a.createElement("div",{className:b.a.title},Xn),S.a.createElement("aside",null,S.a.createElement("span",null,"\u4F5C\u8005\uFF1A",dn),S.a.createElement("span",null,"\u51FA\u7248\u793E\uFF1A",An)),S.a.createElement("aside",null,S.a.createElement("span",null,"ISBN\uFF1A",gn),S.a.createElement("span",null,"\u51FA\u7248\u65F6\u95F4\uFF1A",Un?we()(Un).format("YYYY-MM-DD HH:mm"):"--"))),Object(H.w)()&&S.a.createElement("div",{style:{position:"absolute",top:"10px",right:"0px"}},S.a.createElement("span",{className:"current primary-hover",onClick:function(){ge(Object(g.a)({},je))}},S.a.createElement("i",{className:"iconfont icon-bianji-moren mr5"}),"\u7F16\u8F91"),S.a.createElement("span",{className:"current delete-hover ml20",onClick:function(){Ar()}},S.a.createElement("i",{className:"iconfont icon-shanchutimu mr5"}),"\u5220\u9664")),ar&&S.a.createElement("div",{style:{position:"absolute",top:"100px",right:"0px"}},S.a.createElement(T.a,{className:"mt25 ".concat(b.a.DivDownPlay),onClick:function(){Object(ne.S)(ar)}},"\u5728\u7EBF\u9605\u8BFB")))),S.a.createElement("div",{style:{width:1200,margin:"0 auto"}},S.a.createElement(k.h,{value:Be,onChange:function(or){it(or),dt(!1)},tabBarExtraContent:si(je.user_id)&&S.a.createElement("div",{className:b.a.btns},Be==="feedback"?S.a.createElement("div",{onClick:function(){It(!0)},className:b.a.add},S.a.createElement("span",null,"\u589E\u52A0\u8BD5\u7528\u53CD\u9988")):S.a.createElement("div",{onClick:function(){dt(!0)},className:b.a.edit},S.a.createElement("span",null,"\u7F16\u8F91",Ir[Be]))),dataSource:hr}),S.a.createElement("div",{className:"mt20 pb20"},vt?S.a.createElement(S.a.Fragment,null,S.a.createElement(Z.a,{defaultvalue:ht,onChange:function(or){et(or)}}),S.a.createElement(k.c,{confirmTitle:"\u4FDD\u5B58",confirmLoading:Bt,confirmClick:ai,cancelClick:function(){dt(!1),et(ut.current)},cancelTitle:"\u53D6\u6D88",className:"mb25 mt25"})):S.a.createElement(S.a.Fragment,null,Be==="feedback"?S.a.createElement("div",null,cn==null?void 0:cn.map(function(Fn,or){return S.a.createElement("div",{className:b.a.fbitem},or!==0&&S.a.createElement("div",{className:b.a.fenge}),S.a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},S.a.createElement("div",null,S.a.createElement("span",{className:b.a.name},Fn==null?void 0:Fn.user_name),S.a.createElement("span",{className:b.a.school},Fn==null?void 0:Fn.school_name)),S.a.createElement("div",null,S.a.createElement("span",{className:b.a.time},we()(Fn==null?void 0:Fn.time).format("YYYY-MM-DD HH:mm:ss")))),S.a.createElement("div",{className:b.a.des},"\u8FD9\u672C\u4E66\u5F88\u7CFB\u7EDF\u5730\u4ECB\u7ECD\u4E86\u8F6F\u4EF6\u5DE5\u7A0B\uFF0C\u5185\u5BB9\u5F88\u591A\uFF0C\u800C\u4E14\u7406\u8BBA\u4E0E\u5B9E\u9645\u7ED3\u5408\uFF0C\u4E66\u7684\u7ED3\u6784\u6211\u4E5F\u975E\u5E38\u6B23\u8D4F\uFF0C\uFF0C\u5F88\u591A\u751F\u52A8\u7684\u56FE\u793A\u4E0E\u4F8B\u5B50\u5728\u4E00\u5B9A\u7A0B\u5EA6\u4E0A\u63D0\u9AD8\u4E86\u53EF\u7406\u89E3\u6027\uFF0C\u4F46\u6211\u8FD8\u662F\u8BA4\u4E3A\u5B83\u4E0D\u9002\u5408\u521D\u5B66\u8005\u5B66\u4E60\uFF0C\u6216\u8005\u8BF4\u4E0D\u9002\u5408\u521D\u5B66\u8005\u6DF1\u5165\u5B66\u4E60\uFF0C\u867D\u7136\u6211\u8BA4\u4E3A\u5B83\u5DF2\u7ECF\u662F\u540C\u7C7B\u7CFB\u7EDF\u8BB2\u8F6F\u4EF6\u5DE5\u7A0B\u4E66\u4E2D\u7684\u4F7C\u4F7C\u8005\u4E86\u3002"))}),S.a.createElement(W.a,{wrap:!1,align:"middle",justify:"space-between",style:{width:1200,margin:"20px auto"}},S.a.createElement(B.a,null,"\u5171\xA0",S.a.createElement("span",{style:{color:"#165DFF"}},an||0),"\xA0\u6761\u6570\u636E"),S.a.createElement(B.a,null,S.a.createElement(V.a,{showSizeChanger:!1,showQuickJumper:!0,current:Jt.page,pageSize:Jt.limit,onChange:function(or,Qn){Jt.page=or,Wt(Object(g.a)({},Jt)),li()},total:an||0})))):S.a.createElement(E.a,{className:b.a.editor,value:Me})))),S.a.createElement(O.a,{visible:Oe,title:"\u6559\u6750",onCancel:function(){return ge(!1)},onOk:Kr}),S.a.createElement(_.a,{title:"\u589E\u52A0\u8BD5\u7528\u53CD\u9988",visible:Et,onOk:function(){return Y.submit()},centered:!0,onCancel:function(){return It(!1)},confirmLoading:Bt,width:686,afterClose:function(){$t(!1),Y.resetFields()},okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88"},S.a.createElement(d.a,{form:Y,colon:!1,labelCol:{span:3},onFinish:sa,className:b.a.form},S.a.createElement(d.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"}]},S.a.createElement(le.a,{maxLength:100,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D"})),S.a.createElement(d.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"}]},S.a.createElement(le.a,{maxLength:50,placeholder:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5B66\u6821"})),S.a.createElement(d.a.Item,{label:"\u53CD\u9988\u65F6\u95F4",name:"time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u51FA\u53CD\u9988\u65F6\u95F4"}]},S.a.createElement(ae.a,{style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u53CD\u9988\u65F6\u95F4",format:"YYYY-MM-DD HH:mm",allowClear:!1})),S.a.createElement(d.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:50,message:"\u53EA\u80FD\u8F93\u516550\u4E2A\u5B57\u7B26"}]},S.a.createElement(le.a.TextArea,{maxLength:50,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u7528\u53CD\u9988",rows:6})))))};Ne.default=Object(Q.a)(function(ze){var Le=ze.virtualSpaces,We=ze.globalSetting,Ve=ze.user;return{globalSetting:We,virtualSpaces:Le,user:Ve}})(Ce)},LdHM:function(Ot,Ne,ie){"use strict";ie.d(Ne,"b",function(){return d}),ie.d(Ne,"a",function(){return D});var Se=ie("1OyB"),ae=ie("vuIU"),X=ie("Ji7U"),le=ie("LK+K"),j=ie("q1tI"),W=ie("rePB"),oe=ie("Ff2n"),V=ie("ODXe"),l=ie("4IlW"),B=ie("bX4T"),A=ie("YrtM"),T=ie("TSYQ"),y=ie.n(T),p=ie("+nKL"),v=ie("8OUc"),_=function(ne,ce){var we=ne.prefixCls,Ce=ne.id,ze=ne.flattenOptions,Le=ne.childrenAsData,We=ne.values,Ve=ne.searchValue,$e=ne.multiple,Pe=ne.defaultActiveFirstOption,se=ne.height,w=ne.itemHeight,F=ne.notFoundContent,Y=ne.open,ue=ne.menuItemSelectedIcon,q=ne.virtual,xe=ne.onSelect,Be=ne.onToggleOpen,it=ne.onActiveValue,be=ne.onScroll,Re=ne.onMouseEnter,je="".concat(we,"-item"),Ye=Object(A.a)(function(){return ze},[Y,ze],function(fe,pe){return pe[0]&&fe[1]!==pe[1]}),ft=j.useRef(null),Rt=function(pe){pe.preventDefault()},Jt=function(pe){ft.current&&ft.current.scrollTo({index:pe})},Wt=function(pe){for(var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Oe=Ye.length,ge=0;ge<Oe;ge+=1){var ye=(pe+ge*ve+Oe)%Oe,Ie=Ye[ye],Me=Ie.group,et=Ie.data;if(!Me&&!et.disabled)return ye}return-1},Nt=j.useState(function(){return Wt(0)}),sn=Object(V.a)(Nt,2),an=sn[0],zt=sn[1],mn=function(pe){zt(pe);var ve=Ye[pe];if(!ve){it(null,-1);return}it(ve.data.value,pe)};j.useEffect(function(){mn(Pe!==!1?Wt(0):-1)},[Ye.length,Ve]),j.useEffect(function(){var fe=setTimeout(function(){if(!$e&&Y&&We.size===1){var pe=Array.from(We)[0],ve=Ye.findIndex(function(Oe){var ge=Oe.data;return ge.value===pe});mn(ve),Jt(ve)}});return function(){return clearTimeout(fe)}},[Y]);var xn=function(pe){pe!==void 0&&xe(pe,{selected:!We.has(pe)}),$e||Be(!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=Wt(an+Oe,Oe);Jt(ge),mn(ge)}break}case l.a.ENTER:{var ye=Ye[an];ye&&!ye.data.disabled?xn(ye.data.value):xn(void 0),Y&&pe.preventDefault();break}case l.a.ESC:Be(!1)}},onKeyUp:function(){},scrollTo:function(pe){Jt(pe)}}}),Ye.length===0)return j.createElement("div",{role:"listbox",id:"".concat(Ce,"_list"),className:"".concat(je,"-empty"),onMouseDown:Rt},F);function Te(fe){var pe=Ye[fe];if(!pe)return null;var ve=pe.data||{},Oe=ve.value,ge=ve.label,ye=ve.children,Ie=Object(B.a)(ve,!0),Me=Le?ye:ge;return pe?j.createElement("div",Object.assign({"aria-label":typeof Me=="string"?Me:null},Ie,{key:fe,role:"option",id:"".concat(Ce,"_list_").concat(fe),"aria-selected":We.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"}},Te(an-1),Te(an),Te(an+1)),j.createElement(p.a,{itemKey:"key",ref:ft,data:Ye,height:se,itemHeight:w,fullHeight:!1,onMouseDown:Rt,onScroll:be,virtual:q,onMouseEnter:Re},function(fe,pe){var ve,Oe=fe.group,ge=fe.groupOption,ye=fe.data,Ie=ye.label,Me=ye.key;if(Oe)return j.createElement("div",{className:y()(je,"".concat(je,"-group"))},Ie!==void 0?Ie:Me);var et=ye.disabled,qe=ye.value,Tt=ye.title,cn=ye.children,kn=ye.style,On=ye.className,Qt=Object(oe.a)(ye,["disabled","value","title","children","style","className"]),ht=We.has(qe),yt="".concat(je,"-option"),ut=y()(je,yt,On,(ve={},Object(W.a)(ve,"".concat(yt,"-grouped"),ge),Object(W.a)(ve,"".concat(yt,"-active"),an===pe&&!et),Object(W.a)(ve,"".concat(yt,"-disabled"),et),Object(W.a)(ve,"".concat(yt,"-selected"),ht),ve)),Ae=Le?cn:Ie,Ue=!ue||typeof ue=="function"||ht;return j.createElement("div",Object.assign({},Qt,{"aria-selected":ht,className:ut,title:Tt,onMouseMove:function(){if(an===pe||et)return;mn(pe)},onClick:function(){et||xn(qe)},style:kn}),j.createElement("div",{className:"".concat(yt,"-content")},Ae||qe),j.isValidElement(ue)||ht,Ue&&j.createElement(v.a,{className:"".concat(je,"-option-state"),customizeIcon:ue,customizeIconProps:{isSelected:ht}},ht?"\u2713":null))}))},g=j.forwardRef(_);g.displayName="OptionList";var h=g,c=function(){return null};c.isSelectOption=!0;var d=c,R=function(){return null};R.isSelectOptGroup=!0;var D=R,I=ie("VTBJ"),N=ie("Zm9Q");function S(H){var ne=H.key,ce=H.props,we=ce.children,Ce=ce.value,ze=Object(oe.a)(ce,["children","value"]);return Object(I.a)({key:ne,value:Ce!==void 0?Ce:ne,children:we},ze)}function L(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,ze=ce.key,Le=ce.props,We=Le.children,Ve=Object(oe.a)(Le,["children"]);return ne||!Ce?S(ce):Object(I.a)(Object(I.a)({key:"__RC_SELECT_GRP__".concat(ze===null?we:ze,"__"),label:ze},Ve),{},{options:L(We)})}).filter(function(ce){return ce})}var C=ie("2Qr1"),b=ie("qNPg"),E=ie("U8pU"),O=ie("Kwbf"),x=ie("WKfj");function k(H){var ne=H.mode,ce=H.options,we=H.children,Ce=H.backfill,ze=H.allowClear,Le=H.placeholder,We=H.getInputElement,Ve=H.showSearch,$e=H.onSearch,Pe=H.defaultOpen,se=H.autoFocus,w=H.labelInValue,F=H.value,Y=H.inputValue,ue=H.optionLabelProp,q=ne==="multiple"||ne==="tags",xe=Ve!==void 0?Ve:q||ne==="combobox",Be=ce||L(we);if(Object(O.a)(ne!=="tags"||Be.every(function(je){return!je.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ne==="tags"||ne==="combobox"){var it=Be.some(function(je){return je.options?je.options.some(function(Ye){return typeof("value"in Ye?Ye.value:Ye.key)=="number"}):typeof("value"in je?je.value:je.key)=="number"});Object(O.a)(!it,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(O.a)(ne!=="combobox"||!ue,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(O.a)(ne==="combobox"||!Ce,"`backfill` only works with `combobox` mode."),Object(O.a)(ne==="combobox"||!We,"`getInputElement` only work with `combobox` mode."),Object(O.b)(ne!=="combobox"||!We||!ze||!Le,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),$e&&!xe&&ne!=="combobox"&&ne!=="tags"&&Object(O.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(O.b)(!Pe||se,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),F!=null){var be=Object(x.d)(F);Object(O.a)(!w||be.every(function(je){return Object(E.a)(je)==="object"&&("key"in je||"value"in je)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(O.a)(!q||Array.isArray(F),"`value` should be array when `mode` is `multiple` or `tags`")}if(we){var Re=null;Object(N.a)(we).some(function(je){if(!j.isValidElement(je)||!je.type)return!1;var Ye=je.type;if(Ye.isSelectOption)return!1;if(Ye.isSelectOptGroup){var ft=Object(N.a)(je.props.children).every(function(Rt){return!j.isValidElement(Rt)||!je.type||Rt.type.isSelectOption?!0:(Re=Rt.type,!1)});return!ft}return Re=Ye,!0}),Re&&Object(O.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Re.displayName||Re.name||Re,"`.")),Object(O.a)(Y===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var Z=k,G=Object(b.a)({prefixCls:"rc-select",components:{optionList:h},convertChildrenToData:L,flattenOptions:C.d,getLabeledValue:C.e,filterOptions:C.b,isValueDisabled:C.g,findValueOption:C.c,warningProps:Z,fillOptionsWithMissingValue:C.a}),P=function(H){Object(X.a)(ce,H);var ne=Object(le.a)(ce);function ce(){var we;return Object(Se.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(G,Object.assign({ref:this.selectRef},this.props))}}]),ce}(j.Component);P.Option=d,P.OptGroup=D;var z=P,Q=Ne.c=z},MEgm:function(Ot,Ne){Ot.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(Ot,Ne,ie){"use strict";ie.d(Ne,"c",function(){return j}),ie.d(Ne,"b",function(){return l}),ie.d(Ne,"e",function(){return B}),ie.d(Ne,"a",function(){return A}),ie.d(Ne,"d",function(){return T}),ie.d(Ne,"f",function(){return y});var Se=ie("/cxE"),ae=ie("pmY6"),X=ie("24hK"),le=ie("5Y4S"),j;(function(p){p.None=()=>ae.a.None;function v(k){return(Z,G=null,P)=>{let z=!1,Q;return Q=k(H=>z?void 0:(Q?Q.dispose():z=!0,Z.call(G,H)),null,P),z&&Q.dispose(),Q}}p.once=v;function _(k,Z){return D((G,P=null,z)=>k(Q=>G.call(P,Z(Q)),null,z))}p.map=_;function g(k,Z){return D((G,P=null,z)=>k(Q=>{Z(Q),G.call(P,Q)},null,z))}p.forEach=g;function h(k,Z){return D((G,P=null,z)=>k(Q=>Z(Q)&&G.call(P,Q),null,z))}p.filter=h;function c(k){return k}p.signal=c;function d(...k){return(Z,G=null,P)=>Object(ae.e)(...k.map(z=>z(Q=>Z.call(G,Q),null,P)))}p.any=d;function R(k,Z,G){let P=G;return _(k,z=>(P=Z(P,z),P))}p.reduce=R;function D(k){let Z;const G=new l({onFirstListenerAdd(){Z=k(G.fire,G)},onLastListenerRemove(){Z.dispose()}});return G.event}function I(k,Z,G=100,P=!1,z){let Q,H,ne,ce=0;const we=new l({leakWarningThreshold:z,onFirstListenerAdd(){Q=k(Ce=>{ce++,H=Z(H,Ce),P&&!ne&&(we.fire(H),H=void 0),clearTimeout(ne),ne=setTimeout(()=>{const ze=H;H=void 0,ne=void 0,(!P||ce>1)&&we.fire(ze),ce=0},G)})},onLastListenerRemove(){Q.dispose()}});return we.event}p.debounce=I;function N(k,Z=(G,P)=>G===P){let G=!0,P;return h(k,z=>{const Q=G||!Z(z,P);return G=!1,P=z,Q})}p.latch=N;function S(k,Z){return[p.filter(k,Z),p.filter(k,G=>!Z(G))]}p.split=S;function L(k,Z=!1,G=[]){let P=G.slice(),z=k(ne=>{P?P.push(ne):H.fire(ne)});const Q=()=>{P&&P.forEach(ne=>H.fire(ne)),P=null},H=new l({onFirstListenerAdd(){z||(z=k(ne=>H.fire(ne)))},onFirstListenerDidAdd(){P&&(Z?setTimeout(Q):Q())},onLastListenerRemove(){z&&z.dispose(),z=null}});return H.event}p.buffer=L;class C{constructor(k){this.event=k}map(k){return new C(_(this.event,k))}forEach(k){return new C(g(this.event,k))}filter(k){return new C(h(this.event,k))}reduce(k,Z){return new C(R(this.event,k,Z))}latch(){return new C(N(this.event))}debounce(k,Z=100,G=!1,P){return new C(I(this.event,k,Z,G,P))}on(k,Z,G){return this.event(k,Z,G)}once(k,Z,G){return v(this.event)(k,Z,G)}}function b(k){return new C(k)}p.chain=b;function E(k,Z,G=P=>P){const P=(...ne)=>H.fire(G(...ne)),z=()=>k.on(Z,P),Q=()=>k.removeListener(Z,P),H=new l({onFirstListenerAdd:z,onLastListenerRemove:Q});return H.event}p.fromNodeEventEmitter=E;function O(k,Z,G=P=>P){const P=(...ne)=>H.fire(G(...ne)),z=()=>k.addEventListener(Z,P),Q=()=>k.removeEventListener(Z,P),H=new l({onFirstListenerAdd:z,onLastListenerRemove:Q});return H.event}p.fromDOMEventEmitter=O;function x(k){return new Promise(Z=>v(k)(Z))}p.toPromise=x})(j||(j={}));class W{constructor(p){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${p}_${W._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}}}W._idPool=0;let oe=-1;class V{constructor(p,v=Math.random().toString(18).slice(2,5)){this.customThreshold=p,this.name=v,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(p){let v=oe;if(typeof this.customThreshold=="number"&&(v=this.customThreshold),v<=0||p<v)return;this._stacks||(this._stacks=new Map);const _=new Error().stack.split(`
`).slice(3).join(`
`),g=this._stacks.get(_)||0;if(this._stacks.set(_,g+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=v*.5;let h,c=0;for(const[d,R]of this._stacks)(!h||c<R)&&(h=d,c=R);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(_)||0;this._stacks.set(_,h-1)}}}class l{constructor(p){var v;this._disposed=!1,this._options=p,this._leakageMon=oe>0?new V(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((v=this._options)===null||v===void 0?void 0:v._profName)?new W(this._options._profName):void 0}get event(){return this._event||(this._event=(p,v,_)=>{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(v?[p,v]:p);h&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,p,v);const d=(g=this._leakageMon)===null||g===void 0?void 0:g.check(this._listeners.size),R=Object(ae.i)(()=>{if(d&&d(),!this._disposed&&(c(),this._options&&this._options.onLastListenerRemove)){const D=this._listeners&&!this._listeners.isEmpty();D||this._options.onLastListenerRemove(this)}});return _ instanceof ae.b?_.add(R):Array.isArray(_)&&_.push(R),R}),this._event}fire(p){var v,_;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new X.a);for(let g of this._listeners)this._deliveryQueue.push([g,p]);for((v=this._perfMon)===null||v===void 0||v.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(Se.f)(c)}}(_=this._perfMon)===null||_===void 0||_.stop()}}dispose(){var p,v,_,g,h;this._disposed||(this._disposed=!0,(p=this._listeners)===null||p===void 0||p.clear(),(v=this._deliveryQueue)===null||v===void 0||v.clear(),(g=(_=this._options)===null||_===void 0?void 0:_.onLastListenerRemove)===null||g===void 0||g.call(_),(h=this._leakageMon)===null||h===void 0||h.dispose())}}class B 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 A extends B{constructor(p){var v;super(p);this._delay=(v=p.delay)!==null&&v!==void 0?v:100}fire(p){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(p)}}class T{constructor(){this.buffers=[]}wrapEvent(p){return(v,_,g)=>p(h=>{const c=this.buffers[this.buffers.length-1];c?c.push(()=>v.call(_,h)):v.call(_,h)},void 0,g)}bufferEvents(p){const v=[];this.buffers.push(v);const _=p();return this.buffers.pop(),v.forEach(g=>g()),_}}class y{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(Ot,Ne,ie){"use strict";(function(Se,ae){ie.d(Ne,"b",function(){return _}),ie.d(Ne,"i",function(){return d}),ie.d(Ne,"f",function(){return R}),ie.d(Ne,"d",function(){return D}),ie.d(Ne,"g",function(){return I}),ie.d(Ne,"h",function(){return N}),ie.d(Ne,"c",function(){return S}),ie.d(Ne,"k",function(){return L}),ie.d(Ne,"j",function(){return C}),ie.d(Ne,"a",function(){return b}),ie.d(Ne,"e",function(){return x});var X;const le="en";let j=!1,W=!1,oe=!1,V=!1,l=!1,B=!1,A=!1,T,y=le,p,v;const _=typeof self=="object"?self:typeof Se=="object"?Se:{};let g;typeof _.vscode!="undefined"&&typeof _.vscode.process!="undefined"?g=_.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)v=navigator.userAgent,j=v.indexOf("Windows")>=0,W=v.indexOf("Macintosh")>=0,A=(v.indexOf("Macintosh")>=0||v.indexOf("iPad")>=0||v.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,oe=v.indexOf("Linux")>=0,B=!0,T=navigator.language,y=T;else if(typeof g=="object"){j=g.platform==="win32",W=g.platform==="darwin",oe=g.platform==="linux",V=oe&&!!g.env.SNAP&&!!g.env.SNAP_REVISION,T=le,y=le;const k=g.env.VSCODE_NLS_CONFIG;if(k)try{const Z=JSON.parse(k),G=Z.availableLanguages["*"];T=Z.locale,y=G||le,p=Z._translationsConfigFile}catch(Z){}l=!0}else console.error("Unable to resolve platform.");let c=0;W?c=1:j?c=3:oe&&(c=2);const d=j,R=W,D=oe,I=l,N=B,S=A,L=v,C=function(){if(_.setImmediate)return _.setImmediate.bind(_);if(typeof _.postMessage=="function"&&!_.importScripts){let G=[];_.addEventListener("message",z=>{if(z.data&&z.data.vscodeSetImmediateId)for(let Q=0,H=G.length;Q<H;Q++){const ne=G[Q];if(ne.id===z.data.vscodeSetImmediateId){G.splice(Q,1),ne.callback();return}}});let P=0;return z=>{const Q=++P;G.push({id:Q,callback:z}),_.postMessage({vscodeSetImmediateId:Q},"*")}}if(typeof(g==null?void 0:g.nextTick)=="function")return g.nextTick.bind(g);const Z=Promise.resolve();return G=>Z.then(G)}(),b=W||A?2:j?1:3;let E=!0,O=!1;function x(){if(!O){O=!0;const k=new Uint8Array(2);k[0]=1,k[1]=2;const Z=new Uint16Array(k.buffer);E=Z[0]===(2<<8)+1}return E}}).call(this,ie("IyRk"),ie("Q2Ig"))},N0LK:function(Ot,Ne,ie){"use strict";ie.d(Ne,"C",function(){return Se}),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 W}),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 B}),ie.d(Ne,"q",function(){return A}),ie.d(Ne,"N",function(){return T}),ie.d(Ne,"M",function(){return y}),ie.d(Ne,"Q",function(){return p}),ie.d(Ne,"u",function(){return v}),ie.d(Ne,"x",function(){return _}),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 R}),ie.d(Ne,"G",function(){return D}),ie.d(Ne,"H",function(){return I}),ie.d(Ne,"r",function(){return N}),ie.d(Ne,"R",function(){return S}),ie.d(Ne,"d",function(){return L}),ie.d(Ne,"e",function(){return C}),ie.d(Ne,"E",function(){return b}),ie.d(Ne,"F",function(){return E}),ie.d(Ne,"j",function(){return O}),ie.d(Ne,"z",function(){return x}),ie.d(Ne,"K",function(){return Z}),ie.d(Ne,"L",function(){return G}),ie.d(Ne,"m",function(){return z}),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 ze}),ie.d(Ne,"D",function(){return Le}),ie.d(Ne,"B",function(){return We}),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 w}),ie.d(Ne,"c",function(){return F}),ie.d(Ne,"y",function(){return q});function Se(be){return!be||typeof be!="string"?!0:be.trim().length===0}const ae=/{(\d+)}/g;function X(be,...Re){return Re.length===0?be:be.replace(ae,function(je,Ye){const ft=parseInt(Ye,10);return isNaN(ft)||ft<0||ft>=Re.length?je:Re[ft]})}function le(be){return be.replace(/[<>&]/g,function(Re){switch(Re){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return Re}})}function j(be){return be.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function W(be,Re=" "){const je=oe(be,Re);return V(je,Re)}function oe(be,Re){if(!be||!Re)return be;const je=Re.length;if(je===0||be.length===0)return be;let Ye=0;for(;be.indexOf(Re,Ye)===Ye;)Ye=Ye+je;return be.substring(Ye)}function V(be,Re){if(!be||!Re)return be;const je=Re.length,Ye=be.length;if(je===0||Ye===0)return be;let ft=Ye,Rt=-1;for(;!(Rt=be.lastIndexOf(Re,ft-1),Rt===-1||Rt+je!==ft);){if(Rt===0)return"";ft=Rt}return be.substring(0,ft)}function l(be){return be.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function B(be){return be.replace(/\*/g,"")}function A(be,Re,je={}){if(!be)throw new Error("Cannot create regex from empty string");Re||(be=j(be)),je.wholeWord&&(/\B/.test(be.charAt(0))||(be="\\b"+be),/\B/.test(be.charAt(be.length-1))||(be=be+"\\b"));let Ye="";return je.global&&(Ye+="g"),je.matchCase||(Ye+="i"),je.multiline&&(Ye+="m"),je.unicode&&(Ye+="u"),new RegExp(be,Ye)}function T(be){if(be.source==="^"||be.source==="^$"||be.source==="$"||be.source==="^\\s*$")return!1;const Re=be.exec("");return!!(Re&&be.lastIndex===0)}function y(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 v(be){for(let Re=0,je=be.length;Re<je;Re++){const Ye=be.charCodeAt(Re);if(Ye!==32&&Ye!==9)return Re}return-1}function _(be,Re=0,je=be.length){for(let Ye=Re;Ye<je;Ye++){const ft=be.charCodeAt(Ye);if(ft!==32&&ft!==9)return be.substring(Re,Ye)}return be.substring(Re,je)}function g(be,Re=be.length-1){for(let je=Re;je>=0;je--){const Ye=be.charCodeAt(je);if(Ye!==32&&Ye!==9)return je}return-1}function h(be,Re){return be<Re?-1:be>Re?1:0}function c(be,Re,je=0,Ye=be.length,ft=0,Rt=Re.length){for(;je<Ye&&ft<Rt;je++,ft++){let Nt=be.charCodeAt(je),sn=Re.charCodeAt(ft);if(Nt<sn)return-1;if(Nt>sn)return 1}const Jt=Ye-je,Wt=Rt-ft;return Jt<Wt?-1:Jt>Wt?1:0}function d(be,Re){return R(be,Re,0,be.length,0,Re.length)}function R(be,Re,je=0,Ye=be.length,ft=0,Rt=Re.length){for(;je<Ye&&ft<Rt;je++,ft++){let Nt=be.charCodeAt(je),sn=Re.charCodeAt(ft);if(Nt===sn)continue;if(Nt>=128||sn>=128)return c(be.toLowerCase(),Re.toLowerCase(),je,Ye,ft,Rt);D(Nt)&&(Nt-=32),D(sn)&&(sn-=32);const an=Nt-sn;if(an===0)continue;return an}const Jt=Ye-je,Wt=Rt-ft;return Jt<Wt?-1:Jt>Wt?1:0}function D(be){return be>=97&&be<=122}function I(be){return be>=65&&be<=90}function N(be,Re){return be.length===Re.length&&R(be,Re)===0}function S(be,Re){const je=Re.length;return Re.length>be.length?!1:R(be,Re,0,je)===0}function L(be,Re){let je,Ye=Math.min(be.length,Re.length);for(je=0;je<Ye;je++)if(be.charCodeAt(je)!==Re.charCodeAt(je))return je;return Ye}function C(be,Re){let je,Ye=Math.min(be.length,Re.length);const ft=be.length-1,Rt=Re.length-1;for(je=0;je<Ye;je++)if(be.charCodeAt(ft-je)!==Re.charCodeAt(Rt-je))return je;return Ye}function b(be){return 55296<=be&&be<=56319}function E(be){return 56320<=be&&be<=57343}function O(be,Re){return(be-55296<<10)+(Re-56320)+65536}function x(be,Re,je){const Ye=be.charCodeAt(je);if(b(Ye)&&je+1<Re){const ft=be.charCodeAt(je+1);if(E(ft))return O(Ye,ft)}return Ye}function k(be,Re){const je=be.charCodeAt(Re-1);if(E(je)&&Re>1){const Ye=be.charCodeAt(Re-2);if(b(Ye))return O(Ye,je)}return je}function Z(be,Re){const je=Y.getInstance(),Ye=Re,ft=be.length,Rt=x(be,ft,Re);Re+=Rt>=65536?2:1;let Jt=je.getGraphemeBreakType(Rt);for(;Re<ft;){const Wt=x(be,ft,Re),Nt=je.getGraphemeBreakType(Wt);if(F(Jt,Nt))break;Re+=Wt>=65536?2:1,Jt=Nt}return Re-Ye}function G(be,Re){const je=Y.getInstance(),Ye=Re,ft=k(be,Re);Re-=ft>=65536?2:1;let Rt=je.getGraphemeBreakType(ft);for(;Re>0;){const Jt=k(be,Re),Wt=je.getGraphemeBreakType(Jt);if(F(Wt,Rt))break;Re-=Jt>=65536?2:1,Rt=Wt}return Ye-Re}const P=/(?:[\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 z(be){return P.test(be)}const Q=/(?:[\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 Q.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 ze(be){for(let Re=0,je=be.length;Re<je;Re++)if(Le(be.charCodeAt(Re)))return!0;return!1}function Le(be){return be=+be,be>=11904&&be<=55215||be>=63744&&be<=64255||be>=65281&&be<=65374}function We(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,Re=!1){return be?(Re&&(be=be.replace(/\\./g,"")),be.toLowerCase()!==be):!1}function se(be){const Re=90-65+1;return be=be%(2*Re),be<Re?String.fromCharCode(97+be):String.fromCharCode(65+be-Re)}function w(be){const Re=Y.getInstance();return Re.getGraphemeBreakType(be)}function F(be,Re){return be===0?Re!==5&&Re!==7:be===2&&Re===3?!1:be===4||be===2||be===3||(Re===4||Re===2||Re===3)?!0:be===8&&(Re===8||Re===9||Re===11||Re===12)||((be===11||be===9)&&(Re===9||Re===10)||((be===12||be===10)&&Re===10||(Re===5||Re===13||(Re===7||(be===1||be===13&&Re===14)))))?!1:!(be===6&&Re===6)}class Y{constructor(){this._data=ue()}static getInstance(){return Y._INSTANCE||(Y._INSTANCE=new Y),Y._INSTANCE}getGraphemeBreakType(be){if(be<32)return be===10?3:be===13?2:4;if(be<127)return 0;const Re=this._data,je=Re.length/3;let Ye=1;for(;Ye<=je;)if(be<Re[3*Ye])Ye=2*Ye;else if(be>Re[3*Ye+1])Ye=2*Ye+1;else return Re[3*Ye+2];return 0}}Y._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,Re){if(be===0)return 0;const je=xe(be,Re);if(je!==void 0)return je;const Ye=k(Re,be);return be-=Be(Ye),be}function xe(be,Re){let je=k(Re,be);for(be-=Be(je);it(je)||je===65039||je===8419;){if(be===0)return;je=k(Re,be),be-=Be(je)}if(!We(je))return;if(be>=0){const Ye=k(Re,be);Ye===8205&&(be-=Be(Ye))}return be}function Be(be){return be>=65536?2:1}function it(be){return 127995<=be&&be<=127999}},NQs2:function(Ot,Ne,ie){Ot.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(Ot,Ne,ie){"use strict";var Se=ie("DZo9"),ae=ie("8z0m"),X=ie("0Owb"),le=ie("14J3"),j=ie("BMrR"),W=ie("k1fw"),oe=ie("9og8"),V=ie("miYZ"),l=ie("tsqr"),B=ie("tJVT"),A=ie("PpiC"),T=ie("WmNS"),y=ie.n(T),p=ie("q1tI"),v=ie.n(p),_=ie("m3rI"),g=ie("jN4g"),h=ie("Nf5h"),c=function(R){var D,I,N=R.ButtonText,S=R.ButtonOptions,L=R.ImgStyle,C=R.ImgClassName,b=Object(A.a)(R,["ButtonText","ButtonOptions","ImgStyle","ImgClassName"]),E=Object(p.useState)(null),O=Object(B.a)(E,2),x=O[0],k=O[1],Z={maxCount:1,accept:"image/*",withCredentials:!0,beforeUpload:function(z){var Q=z.size/1024/1024;return Q==0?(l.b.error("".concat(z.name," \u56FE\u7247\u65E0\u6CD5\u4E0A\u4F20\u3002").concat(Q==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":"\u8D85\u8FC7\u56FE\u7247\u5927\u5C0F\u9650\u5236(2MB)")),Promise.reject()):Promise.resolve()},onChange:function(z){var Q=["uploading","done","removed"];if(Q.includes(z.file.status)&&k(z.file),z.file.status=="done"){var H,ne;b==null||b.onChange((H=z.file)===null||H===void 0||((ne=H.response)===null||ne===void 0)?void 0:ne.id)}},onRemove:function(){var P=Object(oe.a)(y.a.mark(function Q(H){return y.a.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:G();case 1:case"end":return ce.stop()}},Q)}));function z(Q){return P.apply(this,arguments)}return z}(),action:"".concat(_.a.API_SERVER,"/api/attachments.json")},G=function(){k(null),b==null||b.onChange(null)};return Object(p.useEffect)(function(){(b==null?void 0:b.value)&&k({response:{id:b==null?void 0:b.value}})},[b==null?void 0:b.value]),v.a.createElement("div",{id:(b==null?void 0:b.scrollId)||""},x!=null&&(D=x.response)!==null&&D!==void 0&&D.id?v.a.createElement(j.a,{align:"middle",justify:"center",className:C,style:Object(W.a)(Object(W.a)({},{position:"relative",width:400,backgroundColor:"#f4f3f4"}),L)},v.a.createElement("img",{src:_.a.API_SERVER+"/api/attachments/"+(x==null||((I=x.response)===null||I===void 0)?void 0:I.id),alt:"avatar",style:{width:"100%"}}),v.a.createElement("div",{style:{position:"absolute",right:"-6px",top:"-6px",cursor:"pointer",width:16,height:16,borderRadius:"50%",backgroundColor:"#fff"}},v.a.createElement(g.a,{onClick:Object(oe.a)(y.a.mark(function P(){return y.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:G();case 1:case"end":return Q.stop()}},P)})),style:{fontSize:"16px",color:"red"}}))):v.a.createElement(ae.a,Z,v.a.createElement(h.e,Object(X.a)({style:Object(W.a)({borderRadius:"2px"},S==null?void 0:S.style)},S),N)))};Ne.a=c},Nf5h:function(Ot,Ne,ie){"use strict";ie.d(Ne,"a",function(){return l}),ie.d(Ne,"i",function(){return v}),ie.d(Ne,"l",function(){return c}),ie.d(Ne,"f",function(){return I}),ie.d(Ne,"j",function(){return C}),ie.d(Ne,"d",function(){return Be}),ie.d(Ne,"b",function(){return Ye}),ie.d(Ne,"h",function(){return Wt}),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 It});var Se=ie("5NDa"),ae=ie("5rEg"),X=ie("tJVT"),le=ie("q1tI"),j=ie.n(le),W=ie("NQs2"),oe=ie.n(W),V=function(nt){var Bt=nt.dataSource,$t=Bt===void 0?[]:Bt,ln=nt.bannerImg,Xn=nt.img,In=nt.imgWidth,dn=In===void 0?346:In,An=nt.title,gn=nt.sunTitle,Un=nt.bannerExtraContent,Hn=nt.placeholder,ar=nt.onChange,hr=Object(le.useState)(""),Ir=Object(X.a)(hr,2),si=Ir[0],li=Ir[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($t.length==0?"0":"")}},j.a.createElement("b",null,An),j.a.createElement("span",null,gn)),$t.length>0&&j.a.createElement("div",{className:oe.a.btns},$t.map(function(_n,Ar){return _n.buttonShow&&j.a.createElement(j.a.Fragment,null,_n.Button?_n.Button:j.a.createElement("div",{key:Ar,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))})),Un),$t.length>0&&j.a.createElement("div",{className:oe.a.input_warp},j.a.createElement(ae.a,{value:si,onChange:function(Ar){li(Ar.target.value)},placeholder:Hn,onPressEnter:function(){return ar(si)},color:"#fff"}),j.a.createElement("i",{onClick:function(){return ar(si)},className:"iconfont icon-sousuo9 font14 pl10 current"}))))},l=V,B=ie("6nfa"),A=ie.n(B),T=ie("TSYQ"),y=ie.n(T),p=function(nt){var Bt=nt.dataSource,$t=Bt===void 0?[]:Bt,ln=nt.value,Xn=nt.onChange,In=nt.className,dn=nt.title,An=nt.titleWidth,gn=An===void 0?56:An,Un=nt.style,Hn=Un===void 0?{}:Un,ar=nt.fontColor,hr=ar===void 0?"#6A7283":ar,Ir=nt.isId,si=Ir===void 0?!1:Ir,li=Object(le.useState)(0),_n=Object(X.a)(li,2),Ar=_n[0],Kr=_n[1],sa=Object(le.useState)(!1),ai=Object(X.a)(sa,2),Fn=ai[0],or=ai[1],Qn=Object(le.useRef)(null);return Object(le.useEffect)(function(){if($t.length!==0){var Mn;(Qn==null||((Mn=Qn.current)===null||Mn===void 0)?void 0:Mn.clientHeight)>98?Kr(1):Kr(0)}$t.length===0&&Kr(0)},[$t]),j.a.createElement("div",{className:y()(A.a.row,In),style:Hn},j.a.createElement("div",{style:{width:gn,marginTop:Fn?12:4},className:A.a.title},dn),j.a.createElement("div",{className:Fn?"".concat(A.a.tagsWrap," ").concat(A.a.tagsBorderWrap):A.a.tagsWrap},j.a.createElement("div",{className:A.a.bar,style:Ar>0?{height:Ar===1?100:"auto",overflow:Ar===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},j.a.createElement("div",{className:A.a.name,ref:Qn},$t==null?void 0:$t.map(function(Mn){return j.a.createElement("span",{onClick:function(){return Xn(si?Mn.id:Mn.name)},key:si?Mn.id:Mn.name,title:Mn.name,style:{color:hr},className:ln===(si?Mn.id:Mn.name)?A.a.active:""},Mn.name)}))),!!Ar&&j.a.createElement(le.Fragment,null,Ar===1?j.a.createElement("div",{onClick:function(){var qr;Kr(2),(Qn==null||((qr=Qn.current)===null||qr===void 0)?void 0:qr.clientHeight)>205?or(!0):or(!1)},className:A.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(){Kr(1),or(!1)},className:A.a.action},"\u6536\u8D77",j.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},v=p,_=ie("cz0n"),g=ie.n(_),h=function(nt){var Bt=nt.dataSource,$t=Bt===void 0?[]:Bt,ln=nt.value,Xn=nt.onChange,In=nt.className;return j.a.createElement("div",{className:y()(g.a.tabs,In)},$t.map(function(dn){return j.a.createElement("span",{onClick:function(){return Xn(dn.id)},className:ln===dn.id?g.a.active:"",key:dn.id},dn.name)}))},c=h,d=ie("KOXS"),R=ie.n(d),D=function(nt){var Bt,$t=nt.dataSource,ln=$t===void 0?[]:$t,Xn=nt.value,In=nt.onChange,dn=nt.className,An=nt.style,gn=An===void 0?{}:An,Un=nt.placeholder,Hn=Object(le.useState)(""),ar=Object(X.a)(Hn,2),hr=ar[0],Ir=ar[1],si=Object(le.useState)(""),li=Object(X.a)(si,2),_n=li[0],Ar=li[1];Object(le.useEffect)(function(){var ai;(ai=JSON.stringify(Xn))!==null&&ai!==void 0&&ai.includes("{")?(Ir(Xn.id),Ar(Xn.value)):Ar(Xn)},[Xn]);var Kr=function(){In(_n||null,hr||"")},sa=function(Fn){if(Fn===hr)return;Ir(Fn),In(_n,Fn)};return j.a.createElement("div",{className:y()(R.a.input,dn),style:gn},!!ln.length&&j.a.createElement("div",{className:R.a.dropdown},j.a.createElement("div",{className:R.a.text},(Bt=ln.find(function(ai){return ai.id===hr}))===null||Bt===void 0?void 0:Bt.name,j.a.createElement("i",{className:"iconfont icon-zhankai4"}),j.a.createElement("b",{className:R.a.b1}),j.a.createElement("b",{className:R.a.b2})),j.a.createElement("div",{className:R.a.menu},ln.map(function(ai,Fn){return j.a.createElement("div",{key:Fn,onClick:function(){return sa(ai.id)}},ai.name)}))),j.a.createElement(ae.a,{onPressEnter:Kr,value:_n,onChange:function(Fn){return Ar(Fn.target.value||"")},bordered:!1,placeholder:Un}),j.a.createElement("i",{onClick:Kr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},I=D,N=ie("f9pc"),S=ie.n(N),L=function(nt){var Bt=nt.value,$t=nt.onChange,ln=nt.className,Xn=nt.total,In=nt.pageSize,dn=nt.style,An=dn===void 0?{}:dn,gn=Bt<2,Un=Bt>=Math.ceil(Xn/In);return Xn<=In?j.a.createElement(j.a.Fragment,null):j.a.createElement("div",{className:y()(S.a.quickPager,ln),style:An},j.a.createElement("div",{onClick:function(){gn||$t(Bt-1,"prev")},className:gn?S.a.disabled:""},"\u4E0A\u4E00\u9875"),j.a.createElement("div",{onClick:function(){Un||$t(Bt+1,"next")},className:Un?S.a.disabled:""},"\u4E0B\u4E00\u9875"))},C=L,b=ie("T2oS"),E=ie("W9HT"),O=ie("pC0b"),x=ie("GzdX"),k=ie("5Dmo"),Z=ie("3S7+"),G=ie("Oe0F"),P=ie.n(G),z=ie("m3rI"),Q=ie("1vsH"),H=ie("JAbv"),ne=ie.n(H),ce=ie("Bq7L"),we=ie.n(ce),Ce=ie("MEgm"),ze=ie.n(Ce),Le=ie("BdwD"),We=function(nt){var Bt=nt.className,$t=nt.dataSource,ln=$t===void 0?[]:$t,Xn=nt.col,In=Xn===void 0?4:Xn,dn=nt.right,An=nt.bottom,gn=An===void 0?23:An,Un=nt.precision,Hn=Un===void 0?0:Un,ar=nt.wrapWidth,hr=ar===void 0?1200:ar,Ir=nt.trackEventItems,si=nt.loading,li=Math.floor((hr-(In-1)*dn)/In);return j.a.createElement(E.a,{spinning:si},j.a.createElement("div",{className:y()(P.a.list,Bt)},!!ln.length&&ln.map(function(_n,Ar){var Kr=_n.name,sa=_n.id,ai=_n.identifier,Fn=_n.power,or=_n.cover_image_id,Qn=_n.pic;return j.a.createElement("div",{className:P.a.wrap,key:sa,style:{width:li,marginRight:(1+Ar)%In===0?0:dn+Hn,marginBottom:gn}},j.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(ai,"/challenges"),className:P.a.li,onClick:function(qr){qr.preventDefault(),Ir&&Object(Q.db)([Ir]),Fn&&Object(Q.S)("/shixuns/".concat(ai,"/challenges"))}},j.a.createElement("div",{className:P.a.img},j.a.createElement("img",{className:P.a.cover,src:or?"".concat(z.a.API_SERVER,"/api/attachments/").concat(or):"".concat(z.a.IMG_SERVER,"/").concat(Qn)}),_n.is_jupyter&&j.a.createElement("img",{className:P.a.sign,src:ne.a}),_n.is_jupyter_lab&&j.a.createElement("img",{className:P.a.sign,src:we.a}),_n.is_unity_3d&&j.a.createElement("img",{className:P.a.sign,src:ze.a})),j.a.createElement("div",{className:P.a.name},j.a.createElement(Z.a,{title:Kr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},j.a.createElement("span",{className:P.a.e},Kr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),j.a.createElement("div",{className:P.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:P.a.rate},j.a.createElement(x.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")))),!Fn&&j.a.createElement("div",{className:P.a.lockWrap},j.a.createElement("img",{src:"".concat(z.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(Le.a,null)))},Ve=We,$e=ie("ZJlW"),Pe=ie.n($e),se=ie("z4EP"),w=ie.n(se),F=ie("+GGh"),Y=ie.n(F),ue=ie("cFMs"),q=ie.n(ue),xe=function(nt){var Bt=nt.className,$t=nt.dataSource,ln=$t===void 0?[]:$t,Xn=nt.col,In=Xn===void 0?4:Xn,dn=nt.right,An=nt.bottom,gn=An===void 0?23:An,Un=nt.precision,Hn=Un===void 0?0:Un,ar=nt.wrapWidth,hr=ar===void 0?1200:ar,Ir=nt.trackEventItems,si=nt.loading,li=Math.floor((hr-(In-1)*dn)/In);return j.a.createElement(E.a,{spinning:si},j.a.createElement("div",{className:y()(Pe.a.list,Bt)},!!ln.length&&ln.map(function(_n,Ar){var Kr=_n.name,sa=_n.id,ai=_n.identifier,Fn=_n.featured,or=_n.school_name,Qn=_n.image_url,Mn=_n.excellent;return j.a.createElement("div",{key:sa,className:Pe.a.wrap,style:{width:li,marginRight:(1+Ar)%In===0?0:dn+Hn,marginBottom:gn}},j.a.createElement("a",{target:"_blank",href:"/paths/".concat(ai),className:Pe.a.li,onClick:function(Lr){Lr.preventDefault(),Ir&&Object(Q.db)([Ir]),Object(Q.S)("/paths/".concat(ai))}},j.a.createElement("div",{className:Pe.a.img},j.a.createElement("img",{className:Pe.a.cover,src:"".concat(z.a.IMG_SERVER,"/").concat(Qn)}),Fn===1&&j.a.createElement("img",{className:Pe.a.sign,src:w.a}),Fn===2&&j.a.createElement("img",{className:Pe.a.sign,src:""}),Fn===3&&j.a.createElement("img",{className:Pe.a.sign,src:Y.a}),Fn===4&&j.a.createElement("img",{className:Pe.a.sign,src:""}),Fn===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:Kr},j.a.createElement("span",{className:Pe.a.e},Kr))),j.a.createElement(Z.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(or)},j.a.createElement("div",{className:Pe.a.unit},j.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),or)),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))),Mn&&j.a.createElement("div",{className:Pe.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!ln.length&&j.a.createElement(Le.a,null)))},Be=xe,it=ie("iL++"),be=ie.n(it),Re=ie("xiVL"),je=function(nt){var Bt=nt.className,$t=nt.dataSource,ln=$t===void 0?[]:$t,Xn=nt.col,In=Xn===void 0?4:Xn,dn=nt.right,An=nt.bottom,gn=An===void 0?23:An,Un=nt.precision,Hn=Un===void 0?0:Un,ar=nt.wrapWidth,hr=ar===void 0?1200:ar,Ir=nt.trackEventItems,si=nt.loading,li=Math.floor((hr-(In-1)*dn)/In);return j.a.createElement(E.a,{spinning:si},j.a.createElement("div",{className:y()(be.a.list,Bt)},!!ln.length&&ln.map(function(_n,Ar){var Kr=_n.subject_identifier,sa=_n.id,ai=_n.identifier,Fn=_n.power,or=_n.is_public!=0&&_n.is_public;return j.a.createElement("div",{className:be.a.wrap,key:sa,style:{width:li,marginRight:(1+Ar)%In===0?0:dn+Hn,marginBottom:gn}},j.a.createElement("a",{className:be.a.li,onClick:function(Mn){Mn.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:z.a.IMG_SERVER+"/images/"+_n.avatar_url}),j.a.createElement("div",{className:be.a.text},_n.creator),Kr&&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")),or&&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,Kr&&j.a.createElement("div",{onClick:function(){return Object(Q.S)("/paths/".concat(Kr))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),j.a.createElement("div",{onClick:function(Mn){Ir&&Object(Q.db)([Ir]),Object(Q.S)(_n.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):j.a.createElement(j.a.Fragment,null,j.a.createElement("img",{src:"".concat(z.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(Le.a,null)))},Ye=je,ft=ie("f0W+"),Rt=ie.n(ft),Jt=function(nt){var Bt=nt.dataSource,$t=Bt===void 0?[]:Bt,ln=nt.value,Xn=nt.onChange,In=nt.className,dn=nt.style,An=dn===void 0?{}:dn,gn=nt.tabBarExtraContent;return j.a.createElement("div",{className:y()(Rt.a.tabs,In),style:An},j.a.createElement("div",{className:Rt.a.tabsWrap},$t.map(function(Un,Hn){return j.a.createElement("div",{onClick:function(){return Xn(Un.id)},className:ln===Un.id?Rt.a.active:"",key:Hn},Un.name)})),j.a.createElement("div",{className:Rt.a.tabBar},gn))},Wt=Jt,Nt=ie("9JIy"),sn=ie.n(Nt),an=function(nt){var Bt=nt.className,$t=nt.style,ln=$t===void 0?{}:$t,Xn=nt.children;return j.a.createElement("div",{className:y()(sn.a.table,Bt),style:ln},Xn)},zt=an,mn=ie("qVdP"),xn=ie("jsC+"),Te=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(nt){var Bt,$t=nt.sortValue,ln=nt.dropValue,Xn=nt.className,In=nt.onSort,dn=nt.onDrop,An=nt.dataSource,gn=An===void 0?Oe:An;return j.a.createElement("div",{className:y()(ve.a.orderWrap,Xn)},j.a.createElement(xn.a,{overlay:j.a.createElement(fe.a,null,gn.map(function(Un,Hn){return j.a.createElement(fe.a.Item,{key:Hn,onClick:function(){return dn(Un.id)}},Un.name)}))},j.a.createElement("span",{className:ve.a.orderTextWrap},(Bt=gn.find(function(Un){return ln===Un.id}))===null||Bt===void 0?void 0:Bt.name)),j.a.createElement("span",{className:ve.a.orderIconWrap},j.a.createElement("span",{className:ve.a.orderAsc},j.a.createElement("i",{className:$t==="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 In($t==="asc"?"desc":"asc")}})),j.a.createElement("span",{className:ve.a.orderDesc},j.a.createElement("i",{className:$t==="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 In($t==="asc"?"desc":"asc")}}))))},ye=ge,Ie=ie("+L6B"),Me=ie("2/Rp"),et=ie("0Owb"),qe=ie("9og8"),Tt=ie("PpiC"),cn=ie("WmNS"),kn=ie.n(cn),On=ie("siWv"),Qt=ie.n(On),ht=ie("LvDl"),yt=function(nt){var Bt=nt.className,$t=nt.style,ln=nt.children,Xn=nt.loading,In=Xn===void 0?!1:Xn,dn=nt.openLoading,An=nt.onClick,gn=An===void 0?function(){}:An,Un=nt.size,Hn=Un===void 0?"middle":Un,ar=nt.shape,hr=ar===void 0?"round":ar,Ir=nt.type,si=Ir===void 0?"default":Ir,li=Object(Tt.a)(nt,["className","style","children","loading","openLoading","onClick","size","shape","type"]),_n=Object(le.useState)(!1),Ar=Object(X.a)(_n,2),Kr=Ar[0],sa=Ar[1];return j.a.createElement(Me.a,Object(et.a)({onClick:Object(ht.throttle)(function(){var ai=Object(qe.a)(kn.a.mark(function Fn(or){return kn.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:return dn&&sa(!0),Mn.prev=1,Mn.next=4,gn(or);case 4:Mn.next=9;break;case 6:Mn.prev=6,Mn.t0=Mn.catch(1),console.log("error",Mn.t0);case 9:dn&&sa(!1);case 10:case"end":return Mn.stop()}},Fn,null,[[1,6]])}));return function(Fn){return ai.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:y()(Qt.a.btn,Qt.a["".concat(Hn,"-").concat(hr)],Bt),style:$t,size:Hn,shape:hr,type:si,loading:Kr||In},li),ln)},ut=yt,Ae=ie("+oxA"),Ue=ie.n(Ae),vt=function(nt){var Bt=nt.className,$t=nt.style,ln=nt.children,Xn=ln===void 0?null:ln,In=nt.onClick,dn=nt.title;return j.a.createElement("div",{className:y()(Ue.a.head,Bt),style:$t},j.a.createElement("span",{className:"primary-hover",onClick:In},j.a.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),j.a.createElement("b",{title:dn},dn),j.a.createElement("div",{className:Ue.a.node},Xn))},dt=vt,en=ie("fgAr"),rn=ie.n(en),Et=function(nt){var Bt=nt.confirmShow,$t=Bt===void 0?!0:Bt,ln=nt.confirmTitle,Xn=nt.confirmClick,In=nt.cancelShow,dn=In===void 0?!0:In,An=nt.cancelTitle,gn=nt.cancelClick,Un=nt.className,Hn=nt.style,ar=nt.confirmLoading,hr=ar===void 0?!1:ar;return j.a.createElement("div",{className:y()(rn.a.btns,Un),style:Hn},$t&&j.a.createElement(Me.a,{loading:hr,onClick:Xn,type:"primary",className:rn.a.confirm},ln),dn&&j.a.createElement(Me.a,{onClick:gn,className:rn.a.cancel},An))},It=Et},OLES:function(Ot,Ne,ie){"use strict";var Se=ie("U8pU"),ae=ie("VTBJ"),X=ie("Ff2n"),le=ie("q1tI"),j=ie("uciX"),W=ie("7ixt"),oe=function(y){var p=y.overlay,v=y.prefixCls,_=y.id,g=y.overlayInnerStyle;return le.createElement("div",{className:"".concat(v,"-inner"),id:_,role:"tooltip",style:g},typeof p=="function"?p():p)},V=oe,l=function(y,p){var v=y.overlayClassName,_=y.trigger,g=_===void 0?["hover"]:_,h=y.mouseEnterDelay,c=h===void 0?0:h,d=y.mouseLeaveDelay,R=d===void 0?.1:d,D=y.overlayStyle,I=y.prefixCls,N=I===void 0?"rc-tooltip":I,S=y.children,L=y.onVisibleChange,C=y.afterVisibleChange,b=y.transitionName,E=y.animation,O=y.placement,x=O===void 0?"right":O,k=y.align,Z=k===void 0?{}:k,G=y.destroyTooltipOnHide,P=G===void 0?!1:G,z=y.defaultVisible,Q=y.getTooltipContainer,H=y.overlayInnerStyle,ne=Object(X.a)(y,["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 y&&(we.popupVisible=y.visible);var Ce=function(){var $e=y.arrowContent,Pe=$e===void 0?null:$e,se=y.overlay,w=y.id;return[le.createElement("div",{className:"".concat(N,"-arrow"),key:"arrow"},Pe),le.createElement(V,{key:"content",prefixCls:N,id:w,overlay:se,overlayInnerStyle:H})]},ze=!1,Le=!1;if(typeof P=="boolean")ze=P;else if(P&&Object(Se.a)(P)==="object"){var We=P.keepParent;ze=We===!0,Le=We===!1}return le.createElement(j.a,Object.assign({popupClassName:v,prefixCls:N,popup:Ce,action:g,builtinPlacements:W.a,popupPlacement:x,ref:ce,popupAlign:Z,getPopupContainer:Q,onPopupVisibleChange:L,afterPopupVisibleChange:C,popupTransitionName:b,popupAnimation:E,defaultPopupVisible:z,destroyPopupOnHide:ze,autoDestroy:Le,mouseLeaveDelay:R,popupStyle:D,mouseEnterDelay:c},we),S)},B=Object(le.forwardRef)(l),A=Ne.a=B},Oe0F:function(Ot,Ne,ie){Ot.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(Ot,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,Se,ae,X=!1,le,j;window.PR_SHOULD_USE_CONTINUATION=!0;var W,oe;(function(){var V=window,l=["break,continue,do,else,for,if,return,while"],B=[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"],A=[B,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],T=[A,"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"],y=[A,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],p=[A,"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"],v="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",_=[A,"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"],R=[T,p,y,_,g,h,c,d],D=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,I="str",N="kwd",S="com",L="typ",C="lit",b="pun",E="pln",O="tag",x="dec",k="src",Z="atn",G="atv",P="nocode",z="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function Q(xe){for(var Be=0,it=!1,be=!1,Re=0,je=xe.length;Re<je;++Re){var Ye=xe[Re];if(Ye.ignoreCase)be=!0;else if(/[a-z]/i.test(Ye.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){it=!0,be=!1;break}}var ft={b:8,t:9,n:10,v:11,f:12,r:13};function Rt(an){var zt=an.charCodeAt(0);if(zt!==92)return zt;var mn=an.charAt(1);return zt=ft[mn],zt||("0"<=mn&&mn<="7"?parseInt(an.substring(1),8):mn==="u"||mn==="x"?parseInt(an.substring(2),16):an.charCodeAt(1))}function Jt(an){if(an<32)return(an<16?"\\x0":"\\x")+an.toString(16);var zt=String.fromCharCode(an);return zt==="\\"||zt==="-"||zt==="]"||zt==="^"?"\\"+zt:zt}function Wt(an){var zt=an.substring(1,an.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")),mn=[],xn=zt[0]==="^",Te=["["];xn&&Te.push("^");for(var fe=xn?1:0,pe=zt.length;fe<pe;++fe){var ve=zt[fe];if(/\\[bdsw]/i.test(ve))Te.push(ve);else{var Oe=Rt(ve),ge;fe+2<pe&&zt[fe+1]==="-"?(ge=Rt(zt[fe+2]),fe+=2):ge=Oe,mn.push([Oe,ge]),ge<65||Oe>122||(ge<65||Oe>90||mn.push([Math.max(65,Oe)|32,Math.min(ge,90)|32]),ge<97||Oe>122||mn.push([Math.max(97,Oe)&~32,Math.min(ge,122)&~32]))}}mn.sort(function(et,qe){return et[0]-qe[0]||qe[1]-et[1]});for(var ye=[],Ie=[],fe=0;fe<mn.length;++fe){var Me=mn[fe];Me[0]<=Ie[1]+1?Ie[1]=Math.max(Ie[1],Me[1]):ye.push(Ie=Me)}for(var fe=0;fe<ye.length;++fe){var Me=ye[fe];Te.push(Jt(Me[0])),Me[1]>Me[0]&&(Me[1]+1>Me[0]&&Te.push("-"),Te.push(Jt(Me[1])))}return Te.push("]"),Te.join("")}function Nt(an){for(var zt=an.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")),mn=zt.length,xn=[],Te=0,fe=0;Te<mn;++Te){var pe=zt[Te];if(pe==="(")++fe;else if(pe.charAt(0)==="\\"){var ve=+pe.substring(1);ve&&(ve<=fe?xn[ve]=-1:zt[Te]=Jt(ve))}}for(var Te=1;Te<xn.length;++Te)xn[Te]===-1&&(xn[Te]=++Be);for(var Te=0,fe=0;Te<mn;++Te){var pe=zt[Te];if(pe==="(")++fe,xn[fe]||(zt[Te]="(?:");else if(pe.charAt(0)==="\\"){var ve=+pe.substring(1);ve&&ve<=fe&&(zt[Te]="\\"+xn[ve])}}for(var Te=0;Te<mn;++Te)zt[Te]==="^"&&zt[Te+1]!=="^"&&(zt[Te]="");if(an.ignoreCase&&it)for(var Te=0;Te<mn;++Te){var pe=zt[Te],Oe=pe.charAt(0);pe.length>=2&&Oe==="["?zt[Te]=Wt(pe):Oe!=="\\"&&(zt[Te]=pe.replace(/[a-zA-Z]/g,function(Ie){var Me=Ie.charCodeAt(0);return"["+String.fromCharCode(Me&~32,Me|32)+"]"}))}return zt.join("")}for(var sn=[],Re=0,je=xe.length;Re<je;++Re){var Ye=xe[Re];if(Ye.global||Ye.multiline)throw new Error(""+Ye);sn.push("(?:"+Nt(Ye)+")")}return new RegExp(sn.join("|"),be?"gi":"g")}function H(xe,Be){var it=/(?:^|\s)nocode(?:\s|$)/,be=[],Re=0,je=[],Ye=0;function ft(Rt){var Jt=Rt.nodeType;if(Jt==1){if(it.test(Rt.className))return;for(var Wt=Rt.firstChild;Wt;Wt=Wt.nextSibling)ft(Wt);var Nt=Rt.nodeName.toLowerCase();(Nt==="br"||Nt==="li")&&(be[Ye]=`
`,je[Ye<<1]=Re++,je[Ye++<<1|1]=Rt)}else if(Jt==3||Jt==4){var sn=Rt.nodeValue;sn.length&&(Be?sn=sn.replace(/\r\n?/g,`
`):sn=sn.replace(/[ \t\r\n]+/g," "),be[Ye]=sn,je[Ye<<1]=Re,Re+=sn.length,je[Ye++<<1|1]=Rt)}}return ft(xe),{sourceCode:be.join("").replace(/\n$/,""),spans:je}}function ne(xe,Be,it,be,Re){if(!it)return;var je={sourceNode:xe,pre:1,langExtension:null,numberLines:null,sourceCode:it,spans:null,basePos:Be,decorations:null};be(je),Re.push.apply(Re,je.decorations)}var ce=/\S/;function we(xe){for(var Be=void 0,it=xe.firstChild;it;it=it.nextSibling){var be=it.nodeType;Be=be===1?Be?xe:it:be===3&&ce.test(it.nodeValue)?xe:Be}return Be===xe?void 0:Be}function Ce(xe,Be){var it={},be;(function(){for(var Ye=xe.concat(Be),ft=[],Rt={},Jt=0,Wt=Ye.length;Jt<Wt;++Jt){var Nt=Ye[Jt],sn=Nt[3];if(sn)for(var an=sn.length;--an>=0;)it[sn.charAt(an)]=Nt;var zt=Nt[1],mn=""+zt;Rt.hasOwnProperty(mn)||(ft.push(zt),Rt[mn]=null)}ft.push(/[\0-\uffff]/),be=Q(ft)})();var Re=Be.length,je=function(Ye){for(var ft=Ye.sourceCode,Rt=Ye.basePos,Jt=Ye.sourceNode,Wt=[Rt,E],Nt=0,sn=ft.match(be)||[],an={},zt=0,mn=sn.length;zt<mn;++zt){var xn=sn[zt],Te=an[xn],fe=void 0,pe;if(typeof Te=="string")pe=!1;else{var ve=it[xn.charAt(0)];if(ve)fe=xn.match(ve[1]),Te=ve[0];else{for(var Oe=0;Oe<Re;++Oe)if(ve=Be[Oe],fe=xn.match(ve[1]),fe){Te=ve[0];break}fe||(Te=E)}pe=Te.length>=5&&Te.substring(0,5)==="lang-",pe&&!(fe&&typeof fe[1]=="string")&&(pe=!1,Te=k),pe||(an[xn]=Te)}var ge=Nt;if(Nt+=xn.length,!pe)Wt.push(Rt+ge,Te);else{var ye=fe[1],Ie=xn.indexOf(ye),Me=Ie+ye.length;fe[2]&&(Me=xn.length-fe[2].length,Ie=Me-ye.length);var et=Te.substring(5);ne(Jt,Rt+ge,xn.substring(0,Ie),je,Wt),ne(Jt,Rt+ge+Ie,ye,se(et,ye),Wt),ne(Jt,Rt+ge+Me,xn.substring(Me),je,Wt)}}Ye.decorations=Wt};return je}function ze(xe){var Be=[],it=[];xe.tripleQuotedStrings?Be.push([I,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):xe.multiLineStrings?Be.push([I,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Be.push([I,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),xe.verbatimStrings&&it.push([I,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var be=xe.hashComments;be&&(xe.cStyleComments?(be>1?Be.push([S,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Be.push([S,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),it.push([I,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Be.push([S,/^#[^\r\n]*/,null,"#"])),xe.cStyleComments&&(it.push([S,/^\/\/[^\r\n]*/,null]),it.push([S,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Re=xe.regexLiterals;if(Re){var je=Re>1?"":`
\r`,Ye=je?".":"[\\S\\s]",ft="/(?=[^/*"+je+"])(?:[^/\\x5B\\x5C"+je+"]|\\x5C"+Ye+"|\\x5B(?:[^\\x5C\\x5D"+je+"]|\\x5C"+Ye+")*(?:\\x5D|$))+/";it.push(["lang-regex",RegExp("^"+z+"("+ft+")")])}var Rt=xe.types;Rt&&it.push([L,Rt]);var Jt=(""+xe.keywords).replace(/^ | $/g,"");Jt.length&&it.push([N,new RegExp("^(?:"+Jt.replace(/[\s,]+/g,"|")+")\\b"),null]),Be.push([E,/^\s+/,null,` \r
\xA0`]);var Wt="^.[^\\s\\w.$@'\"`/\\\\]*";return xe.regexLiterals&&(Wt+="(?!s*/)"),it.push([C,/^@[a-z_$][a-z_$@0-9]*/i,null],[L,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[E,/^[a-z_$][a-z_$@0-9]*/i,null],[C,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[E,/^\\[\s\S]?/,null],[b,new RegExp(Wt),null]),Ce(Be,it)}var Le=ze({keywords:R,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function We(xe,Be,it){for(var be=/(?:^|\s)nocode(?:\s|$)/,Re=/\r\n?|\n/,je=xe.ownerDocument,Ye=je.createElement("li");xe.firstChild;)Ye.appendChild(xe.firstChild);var ft=[Ye];function Rt(zt){var mn=zt.nodeType;if(mn==1&&!be.test(zt.className))if(zt.nodeName==="br")Jt(zt),zt.parentNode&&zt.parentNode.removeChild(zt);else for(var xn=zt.firstChild;xn;xn=xn.nextSibling)Rt(xn);else if((mn==3||mn==4)&&it){var Te=zt.nodeValue,fe=Te.match(Re);if(fe){var pe=Te.substring(0,fe.index);zt.nodeValue=pe;var ve=Te.substring(fe.index+fe[0].length);if(ve){var Oe=zt.parentNode;Oe.insertBefore(je.createTextNode(ve),zt.nextSibling)}Jt(zt),pe||zt.parentNode.removeChild(zt)}}}function Jt(zt){for(;!zt.nextSibling;)if(zt=zt.parentNode,!zt)return;function mn(fe,pe){var ve=pe?fe.cloneNode(!1):fe,Oe=fe.parentNode;if(Oe){var ge=mn(Oe,1),ye=fe.nextSibling;ge.appendChild(ve);for(var Ie=ye;Ie;Ie=ye)ye=Ie.nextSibling,ge.appendChild(Ie)}return ve}for(var xn=mn(zt.nextSibling,0),Te;(Te=xn.parentNode)&&Te.nodeType===1;)xn=Te;ft.push(xn)}for(var Wt=0;Wt<ft.length;++Wt)Rt(ft[Wt]);Be===(Be|0)&&ft[0].setAttribute("value",Be);var Nt=je.createElement("ol");Nt.className="linenums";for(var sn=Math.max(0,Be-1|0)||0,Wt=0,an=ft.length;Wt<an;++Wt)Ye=ft[Wt],Ye.className="L"+(Wt+sn)%10,Ye.firstChild||Ye.appendChild(je.createTextNode("\xA0")),Nt.appendChild(Ye);xe.appendChild(Nt)}function Ve(xe){var Be=/\bMSIE\s(\d+)/.exec(navigator.userAgent);Be=Be&&+Be[1]<=8;var it=/\n/g,be=xe.sourceCode,Re=be.length,je=0,Ye=xe.spans,ft=Ye.length,Rt=0,Jt=xe.decorations,Wt=Jt.length,Nt=0;Jt[Wt]=Re;var sn,an;for(an=sn=0;an<Wt;)Jt[an]!==Jt[an+2]?(Jt[sn++]=Jt[an++],Jt[sn++]=Jt[an++]):an+=2;for(Wt=sn,an=sn=0;an<Wt;){for(var zt=Jt[an],mn=Jt[an+1],xn=an+2;xn+2<=Wt&&Jt[xn+1]===mn;)xn+=2;Jt[sn++]=zt,Jt[sn++]=mn,an=xn}Wt=Jt.length=sn;var Te=xe.sourceNode,fe="";Te&&(fe=Te.style.display,Te.style.display="none");try{for(var pe=null;Rt<ft;){var ve=Ye[Rt],Oe=Ye[Rt+2]||Re,ge=Jt[Nt+2]||Re,xn=Math.min(Oe,ge),ye=Ye[Rt+1],Ie;if(ye.nodeType!==1&&(Ie=be.substring(je,xn))){Be&&(Ie=Ie.replace(it,"\r")),ye.nodeValue=Ie;var Me=ye.ownerDocument,et=Me.createElement("span");et.className=Jt[Nt+1];var qe=ye.parentNode;qe.replaceChild(et,ye),et.appendChild(ye),je<Oe&&(Ye[Rt+1]=ye=Me.createTextNode(be.substring(xn,Oe)),qe.insertBefore(ye,et.nextSibling))}je=xn,je>=Oe&&(Rt+=2),je>=ge&&(Nt+=2)}}finally{Te&&(Te.style.display=fe)}}var $e={};function Pe(xe,Be){for(var it=Be.length;--it>=0;){var be=Be[it];$e.hasOwnProperty(be)?V.console&&console.warn("cannot override language handler %s",be):$e[be]=xe}}function se(xe,Be){return xe&&$e.hasOwnProperty(xe)||(xe=/^\s*</.test(Be)?"default-markup":"default-code"),$e[xe]}Pe(Le,["default-code"]),Pe(Ce([],[[E,/^[^<?]+/],[x,/^<!\w[^>]*(?:>|$)/],[S,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[b,/^(?:<[%?]|[%?]>)/],["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([[E,/^[\s]+/,null,` \r
`],[G,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[O,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[Z,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[b,/^[=<>\/]+/],["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([],[[G,/^[\s\S]+/]]),["uq.val"]),Pe(ze({keywords:T,hashComments:!0,cStyleComments:!0,types:D}),["c","cc","cpp","cxx","cyc","m"]),Pe(ze({keywords:"null,true,false"}),["json"]),Pe(ze({keywords:p,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:D}),["cs"]),Pe(ze({keywords:y,cStyleComments:!0}),["java"]),Pe(ze({keywords:d,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Pe(ze({keywords:h,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Pe(ze({keywords:g,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Pe(ze({keywords:c,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Pe(ze({keywords:_,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Pe(ze({keywords:v,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Pe(Ce([],[[I,/^[\s\S]+/]]),["regex"]);function w(xe){var Be=xe.langExtension;try{var it=H(xe.sourceNode,xe.pre),be=it.sourceCode;xe.sourceCode=be,xe.spans=it.spans,xe.basePos=0,se(Be,be)(xe),Ve(xe)}catch(Re){V.console&&console.log(Re&&Re.stack||Re)}}function F(xe,Be,it){var be=it||!1,Re=Be||null,je=document.createElement("div");je.innerHTML="<pre>"+xe+"</pre>",je=je.firstChild,be&&We(je,be,!0);var Ye={langExtension:Re,numberLines:be,sourceNode:je,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return w(Ye),je.innerHTML}function Y(xe,Be){var it=Be||document.body,be=it.ownerDocument||document;function Re(ve){return it.getElementsByTagName(ve)}for(var je=[Re("pre"),Re("code"),Re("xmp")],Ye=[],ft=0;ft<je.length;++ft)for(var Rt=0,Jt=je[ft].length;Rt<Jt;++Rt)Ye.push(je[ft][Rt]);je=null;var Wt=Date;Wt.now||(Wt={now:function(){return+new Date}});var Nt=0,sn=/\blang(?:uage)?-([\w.]+)(?!\S)/,an=/\bprettyprint\b/,zt=/\bprettyprinted\b/,mn=/pre|xmp/i,xn=/^code$/i,Te=/^(?:pre|code|xmp)$/i,fe={};function pe(){for(var ve=V.PR_SHOULD_USE_CONTINUATION?Wt.now()+250:Infinity;Nt<Ye.length&&Wt.now()<ve;Nt++){for(var Oe=Ye[Nt],ge=fe,ye=Oe;ye=ye.previousSibling;){var Ie=ye.nodeType,Me=(Ie===7||Ie===8)&&ye.nodeValue;if(Me?!/^\??prettify\b/.test(Me):Ie!==3||/\S/.test(ye.nodeValue))break;if(Me){ge={},Me.replace(/\b(\w+)=([\w:.%+-]+)/g,function(vt,dt,en){ge[dt]=en});break}}var et=Oe.className;if((ge!==fe||an.test(et))&&!zt.test(et)){for(var qe=!1,Tt=Oe.parentNode;Tt;Tt=Tt.parentNode){var cn=Tt.tagName;if(Te.test(cn)&&Tt.className&&an.test(Tt.className)){qe=!0;break}}if(!qe){Oe.className+=" prettyprinted";var kn=ge.lang;if(!kn){kn=et.match(sn);var On;!kn&&(On=we(Oe))&&xn.test(On.tagName)&&(kn=On.className.match(sn)),kn&&(kn=kn[1])}var Qt;if(mn.test(Oe.tagName))Qt=1;else{var ht=Oe.currentStyle,yt=be.defaultView,ut=ht?ht.whiteSpace:yt&&yt.getComputedStyle?yt.getComputedStyle(Oe,null).getPropertyValue("white-space"):0;Qt=ut&&ut.substring(0,3)==="pre"}var Ae=ge.linenums;(Ae=Ae==="true"||+Ae)||(Ae=et.match(/\blinenums\b(?::(\d+))?/),Ae=Ae?Ae[1]&&Ae[1].length?+Ae[1]:!0:!1),Ae&&We(Oe,Ae,Qt);var Ue={langExtension:kn,sourceNode:Oe,numberLines:Ae,pre:Qt,sourceCode:null,basePos:null,spans:null,decorations:null};w(Ue)}}}Nt<Ye.length?V.setTimeout(pe,250):typeof xe=="function"&&xe()}pe()}var ue=V.PR={createSimpleLexer:Ce,registerLangHandler:Pe,sourceDecorator:ze,PR_ATTRIB_NAME:Z,PR_ATTRIB_VALUE:G,PR_COMMENT:S,PR_DECLARATION:x,PR_KEYWORD:N,PR_LITERAL:C,PR_NOCODE:P,PR_PLAIN:E,PR_PUNCTUATION:b,PR_SOURCE:k,PR_STRING:I,PR_TAG:O,PR_TYPE:L,prettyPrintOne:X?V.prettyPrintOne=F:W=F,prettyPrint:oe=X?V.prettyPrint=Y:oe=Y},q=V.define;typeof q=="function"&&q.amd&&q("google-code-prettify",[],function(){return ue})})()},STEk:function(Ot,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 Se=function(se,w){return(Se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,Y){F.__proto__=Y}||function(F,Y){for(var ue in Y)Object.prototype.hasOwnProperty.call(Y,ue)&&(F[ue]=Y[ue])})(se,w)};function ae(se,w){function F(){this.constructor=se}Se(se,w),se.prototype=w===null?Object.create(w):(F.prototype=w.prototype,new F)}function X(se,w,F,Y){return new(F||(F=Promise))(function(ue,q){function xe(be){try{it(Y.next(be))}catch(Re){q(Re)}}function Be(be){try{it(Y.throw(be))}catch(Re){q(Re)}}function it(be){var Re;be.done?ue(be.value):(Re=be.value,Re instanceof F?Re:new F(function(je){je(Re)})).then(xe,Be)}it((Y=Y.apply(se,w||[])).next())})}function le(se,w){var F,Y,ue,q,xe={label:0,sent:function(){if(1&ue[0])throw ue[1];return ue[1]},trys:[],ops:[]};return q={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&(q[Symbol.iterator]=function(){return this}),q;function Be(it){return function(be){return function(Re){if(F)throw new TypeError("Generator is already executing.");for(;xe;)try{if(F=1,Y&&(ue=2&Re[0]?Y.return:Re[0]?Y.throw||((ue=Y.return)&&ue.call(Y),0):Y.next)&&!(ue=ue.call(Y,Re[1])).done)return ue;switch(Y=0,ue&&(Re=[2&Re[0],ue.value]),Re[0]){case 0:case 1:ue=Re;break;case 4:return xe.label++,{value:Re[1],done:!1};case 5:xe.label++,Y=Re[1],Re=[0];continue;case 7:Re=xe.ops.pop(),xe.trys.pop();continue;default:if(!(ue=xe.trys,(ue=ue.length>0&&ue[ue.length-1])||Re[0]!==6&&Re[0]!==2)){xe=0;continue}if(Re[0]===3&&(!ue||Re[1]>ue[0]&&Re[1]<ue[3])){xe.label=Re[1];break}if(Re[0]===6&&xe.label<ue[1]){xe.label=ue[1],ue=Re;break}if(ue&&xe.label<ue[2]){xe.label=ue[2],xe.ops.push(Re);break}ue[2]&&xe.ops.pop(),xe.trys.pop();continue}Re=w.call(se,xe)}catch(je){Re=[6,je],Y=0}finally{F=ue=0}if(5&Re[0])throw Re[1];return{value:Re[0]?Re[1]:void 0,done:!0}}([it,be])}}}function j(){for(var se=0,w=0,F=arguments.length;w<F;w++)se+=arguments[w].length;var Y=Array(se),ue=0;for(w=0;w<F;w++)for(var q=arguments[w],xe=0,Be=q.length;xe<Be;xe++,ue++)Y[ue]=q[xe];return Y}var W=function(){function se(){}return se.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},se.setAttributes=function(w,F){for(var Y=0,ue=F;Y<ue.length;Y++){var q=ue[Y],xe=q[0],Be=q[1];w.setAttribute(xe,Be)}},se.createRect=function(w,F,Y){var ue=document.createElementNS("http://www.w3.org/2000/svg","rect");return ue.setAttribute("width",w.toString()),ue.setAttribute("height",F.toString()),Y&&se.setAttributes(ue,Y),ue},se.createLine=function(w,F,Y,ue,q){var xe=document.createElementNS("http://www.w3.org/2000/svg","line");return xe.setAttribute("x1",w.toString()),xe.setAttribute("y1",F.toString()),xe.setAttribute("x2",Y.toString()),xe.setAttribute("y2",ue.toString()),q&&se.setAttributes(xe,q),xe},se.createPolygon=function(w,F){var Y=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Y.setAttribute("points",w),F&&se.setAttributes(Y,F),Y},se.createCircle=function(w,F){var Y=document.createElementNS("http://www.w3.org/2000/svg","circle");return Y.setAttribute("cx",(w/2).toString()),Y.setAttribute("cy",(w/2).toString()),Y.setAttribute("r",w.toString()),F&&se.setAttributes(Y,F),Y},se.createEllipse=function(w,F,Y){var ue=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ue.setAttribute("cx",(w/2).toString()),ue.setAttribute("cy",(F/2).toString()),ue.setAttribute("rx",(w/2).toString()),ue.setAttribute("ry",(F/2).toString()),Y&&se.setAttributes(ue,Y),ue},se.createGroup=function(w){var F=document.createElementNS("http://www.w3.org/2000/svg","g");return w&&se.setAttributes(F,w),F},se.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},se.createMarker=function(w,F,Y,ue,q,xe,Be){var it=document.createElementNS("http://www.w3.org/2000/svg","marker");return se.setAttributes(it,[["id",w],["orient",F],["markerWidth",Y.toString()],["markerHeight",ue.toString()],["refX",q.toString()],["refY",xe.toString()]]),it.appendChild(Be),it},se.createText=function(w){var F=document.createElementNS("http://www.w3.org/2000/svg","text");return F.setAttribute("x","0"),F.setAttribute("y","0"),w&&se.setAttributes(F,w),F},se.createTSpan=function(w,F){var Y=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Y.textContent=w,F&&se.setAttributes(Y,F),Y},se.createImage=function(w){var F=document.createElementNS("http://www.w3.org/2000/svg","image");return w&&se.setAttributes(F,w),F},se.createPoint=function(w,F){var Y=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Y.x=w,Y.y=F,Y},se.createPath=function(w,F){var Y=document.createElementNS("http://www.w3.org/2000/svg","path");return Y.setAttribute("d",w),F&&se.setAttributes(Y,F),Y},se}(),oe=function(){function se(){}return se.addKey=function(w){se.key=w},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(w,F,Y){var ue=this;return new Promise(function(q){var xe=Y!==void 0?Y:document.createElement("canvas");w===null&&(ue.markersOnly=!0,ue.naturalSize=!1);var Be=document.createElementNS("http://www.w3.org/2000/svg","svg");Be.setAttribute("xmlns","http://www.w3.org/2000/svg"),Be.setAttribute("width",F.width.baseVal.valueAsString),Be.setAttribute("height",F.height.baseVal.valueAsString),Be.setAttribute("viewBox","0 0 "+F.viewBox.baseVal.width.toString()+" "+F.viewBox.baseVal.height.toString()),Be.innerHTML=F.innerHTML,ue.naturalSize===!0?(Be.width.baseVal.value=w.naturalWidth,Be.height.baseVal.value=w.naturalHeight):ue.width!==void 0&&ue.height!==void 0&&(Be.width.baseVal.value=ue.width,Be.height.baseVal.value=ue.height),xe.width=Be.width.baseVal.value,xe.height=Be.height.baseVal.value;var it=Be.outerHTML,be=xe.getContext("2d");ue.markersOnly!==!0&&be.drawImage(w,0,0,xe.width,xe.height);var Re=window.URL,je=new Image(xe.width,xe.height);je.setAttribute("crossOrigin","anonymous");var Ye=new Blob([it],{type:"image/svg+xml"}),ft=Re.createObjectURL(Ye);je.onload=function(){be.drawImage(je,0,0),Re.revokeObjectURL(ft);var Rt=xe.toDataURL(ue.imageType,ue.imageQuality);q(Rt)},je.src=ft})},se}(),l=function(){},B=function(){function se(w){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+w+"_"}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(w){return this.styleSheet===void 0&&this.addStyleSheet(),w.name=""+this.classNamePrefix+w.localName,this.classes.push(w),this.styleSheet.sheet.insertRule("."+w.name+" {"+w.style+"}",this.styleSheet.sheet.cssRules.length),w},se.prototype.addRule=function(w){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(w),this.styleSheet.sheet.insertRule(w.selector+" {"+w.style+"}",this.styleSheet.sheet.cssRules.length)},se.prototype.addStyleSheet=function(){var w;this.styleSheet=document.createElement("style"),((w=this.styleSheetRoot)!==null&&w!==void 0?w:document.head).appendChild(this.styleSheet),this.addRule(new A("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new A("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new A("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new T("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new T("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},se.prototype.removeStyleSheet=function(){var w;this.styleSheet&&(((w=this.styleSheetRoot)!==null&&w!==void 0?w:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},se}(),A=function(se,w){this.selector=se,this.style=w},T=function(se,w){this.localName=se,this.style=w},y=function(){function se(w,F,Y,ue,q){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=w,this.displayMode=F,this.markerItems=Y,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(w){var F=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=w,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Y=document.createElement("div");Y.className=this.toolbarBlockStyleClass.name,Y.style.whiteSpace="nowrap",this.uiContainer.appendChild(Y),this.addActionButton(Y,'<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(Y,'<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(Y,'<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(Y,'<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(Y,'<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(Y,'<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(Y,'<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(Y,'<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=""+F.toolbarButtonStyleClass.name,xe.setAttribute("data-type-name",q.typeName),xe.innerHTML=q.icon,xe.addEventListener("click",function(){F.markerToolbarButtonClicked(xe,q)}),F.buttons.push(xe),F.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(w){this.buttonClickListeners.push(w)},se.prototype.removeButtonClickListener=function(w){this.buttonClickListeners.indexOf(w)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(w),1)},se.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},se.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var w=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var F=0;F<this.markerButtons.length;F++)F<w||F===w&&this.markerButtons.length-1===w?this.markerButtonBlock.appendChild(this.markerButtons[F]):(F===w&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[F]))}},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 w=this;this.buttons.forEach(function(F){F.className=F.className.replace(w.uiStyleSettings.toolbarButtonStyleColorsClassName?w.uiStyleSettings.toolbarButtonStyleColorsClassName:w.toolbarButtonStyleColorsClass.name,"").trim(),F.className=F.className.replace(w.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?w.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:w.toolbarActiveButtonStyleColorsClass.name,"").trim(),F.className+=" "+(w.uiStyleSettings.toolbarButtonStyleColorsClassName?w.uiStyleSettings.toolbarButtonStyleColorsClassName:w.toolbarButtonStyleColorsClass.name)})},se.prototype.addActionButton=function(w,F,Y){var ue=this,q=document.createElement("div");switch(q.className=""+this.toolbarButtonStyleClass.name,q.innerHTML=F,q.setAttribute("data-action",Y),q.addEventListener("click",function(){ue.actionToolbarButtonClicked(q,Y)}),Y){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}w.appendChild(q),this.buttons.push(q)},se.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new T("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 T("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new T("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new T("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 T("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var w=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new T("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*w)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*w)+`px;
padding: `+w+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new T("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new T("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new A("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new A("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},se.prototype.markerToolbarButtonClicked=function(w,F){this.setActiveButton(w),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Y){return Y("marker",F)}),this.markerButtonOverflowBlock.style.display="none"},se.prototype.actionToolbarButtonClicked=function(w,F){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Y){return Y("action",F)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},se.prototype.setActiveButton=function(w){this.resetButtonStyles(),w.className=w.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),w.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},se.prototype.setActiveMarkerButton=function(w){var F=this.markerButtons.find(function(Y){return Y.getAttribute("data-type-name")===w});F&&this.setActiveButton(F)},se.prototype.setCurrentMarker=function(w){var F=this;this.currentMarker=w,this.buttons.filter(function(Y){return/delete|notes/.test(Y.getAttribute("data-action"))}).forEach(function(Y){F.currentMarker===void 0?(Y.style.fillOpacity="0.4",Y.style.pointerEvents="none"):(Y.style.fillOpacity="1",Y.style.pointerEvents="all")})},se}(),p=function(){function se(w,F,Y,ue){this.panels=[],this.panelButtons=[],this.markerjsContainer=w,this.displayMode=F,this.uiStyleSettings=Y,this.styles=ue,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return se.prototype.addStyles=function(){var w;this.toolboxStyleClass=this.styles.addClass(new T("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 T("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var F=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new T("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new T("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new T("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 T("toolbox-panel-row_colors",`
background-color: `+((w=this.uiStyleSettings.toolboxBackgroundColor)!==null&&w!==void 0?w:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new T("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*F)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*F)+`px;
padding: `+F+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new T("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new T("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new A("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new A("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},se.prototype.show=function(w){var F;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=w,this.uiContainer.className=this.toolboxStyleClass.name+" "+((F=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&F!==void 0?F:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},se.prototype.setPanelButtons=function(w){var F,Y,ue=this;this.panels=w,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((F=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&F!==void 0?F:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Y=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Y!==void 0?Y:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(q){var xe;q.uiStyleSettings=ue.uiStyleSettings;var Be=document.createElement("div");Be.className=ue.toolboxButtonStyleClass.name+" "+((xe=ue.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&xe!==void 0?xe:ue.toolboxButtonStyleColorsClass.name),Be.innerHTML=q.icon,Be.title=q.title,Be.addEventListener("click",function(){ue.panelButtonClick(q)}),ue.panelButtons.push(Be),ue.buttonRow.appendChild(Be)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},se.prototype.panelButtonClick=function(w){var F=this,Y=-1;if(w!==this.activePanel){Y=this.panels.indexOf(w),this.panelRow.innerHTML="";var ue=w.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=w}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){F.displayMode==="inline"?F.panelRow.style.display="none":F.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(q,xe){var Be,it;q.className=F.toolboxButtonStyleClass.name+" "+(xe===Y?""+((Be=F.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Be!==void 0?Be:F.toolboxActiveButtonStyleColorsClass.name):""+((it=F.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&it!==void 0?it:F.toolboxButtonStyleColorsClass.name))})},se}(),v=function(se,w){this.title=se,this.icon=w},_=function(se){function w(F,Y,ue,q){var xe=se.call(this,F,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=Y,xe.currentColor=ue,xe.setCurrentColor=xe.setCurrentColor.bind(xe),xe.getColorBox=xe.getColorBox.bind(xe),xe}return ae(w,se),w.prototype.getUi=function(){var F=this,Y=document.createElement("div");return Y.style.overflow="hidden",Y.style.whiteSpace="nowrap",this.colors.forEach(function(ue){var q=F.getColorBox(ue);Y.appendChild(q),F.colorBoxes.push(q)}),Y},w.prototype.getColorBox=function(F){var Y=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=F===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",xe.addEventListener("click",function(){Y.setCurrentColor(F,xe)});var Be=document.createElement("div");return Be.style.display="inline-block",Be.style.width=q-2+"px",Be.style.height=q-2+"px",Be.style.backgroundColor=F,Be.style.borderRadius=q/2+"px",F==="transparent"&&(Be.style.fill=this.uiStyleSettings.toolboxAccentColor,Be.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(Be),xe},w.prototype.setCurrentColor=function(F,Y){var ue=this;this.currentColor=F,this.colorBoxes.forEach(function(q){q.style.borderColor=q===Y?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(F)},w}(v),g=function(){function se(w,F,Y){this._state="new",this._isSelected=!1,this._container=w,this._overlayContainer=F,this.globalSettings=Y,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(w){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(w,F){},se.prototype.dblClick=function(w,F){},se.prototype.manipulate=function(w){},se.prototype.pointerUp=function(w){this.stateChanged()},se.prototype.dispose=function(){},se.prototype.addMarkerVisualToContainer=function(w){this.container.childNodes.length>0?this.container.insertBefore(w,this.container.childNodes[0]):this.container.appendChild(w)},se.prototype.getState=function(){return{typeName:se.typeName,state:this.state,notes:this.notes}},se.prototype.restoreState=function(w){this._state=w.state,this.notes=w.notes},se.prototype.scale=function(w,F){},se.prototype.colorChanged=function(w){this.onColorChanged&&this.onColorChanged(w),this.stateChanged()},se.prototype.fillColorChanged=function(w){this.onFillColorChanged&&this.onFillColorChanged(w),this.stateChanged()},se.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var w=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),w.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(w)&&this.onStateChanged(this)}},se.typeName="MarkerBase",se}(),h=function(){function se(){this.findGripByVisual=this.findGripByVisual.bind(this)}return se.prototype.findGripByVisual=function(w){return this.topLeft.ownsTarget(w)?this.topLeft:this.topCenter.ownsTarget(w)?this.topCenter:this.topRight.ownsTarget(w)?this.topRight:this.centerLeft.ownsTarget(w)?this.centerLeft:this.centerRight.ownsTarget(w)?this.centerRight:this.bottomLeft.ownsTarget(w)?this.bottomLeft:this.bottomCenter.ownsTarget(w)?this.bottomCenter:this.bottomRight.ownsTarget(w)?this.bottomRight:void 0},se}(),c=function(){function se(){this.GRIP_SIZE=10,this.visual=W.createGroup(),this.visual.appendChild(W.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(W.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return se.prototype.ownsTarget=function(w){return w===this.visual||w===this.visual.childNodes[0]||w===this.visual.childNodes[1]},se}(),d=function(){function se(){}return se.toITransformMatrix=function(w){return{a:w.a,b:w.b,c:w.c,d:w.d,e:w.e,f:w.f}},se.toSVGMatrix=function(w,F){return w.a=F.a,w.b=F.b,w.c=F.c,w.d=F.d,w.e=F.e,w.f=F.f,w},se}(),R=function(se){function w(F,Y,ue){var q=se.call(this,F,Y,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(W.createTransform()),q.setupControlBox(),q}return ae(w,se),Object.defineProperty(w.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"visual",{get:function(){return this._visual},set:function(F){this._visual=F;var Y=W.createTransform();this._visual.transform.baseVal.appendItem(Y)},enumerable:!1,configurable:!0}),w.prototype.ownsTarget=function(F){return!!se.prototype.ownsTarget.call(this,F)||!!(this.controlGrips.findGripByVisual(F)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(F))},w.prototype.pointerDown=function(F,Y){se.prototype.pointerDown.call(this,F,Y),this.state==="new"&&(this.left=F.x,this.top=F.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ue=this.unrotatePoint(F);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(Y),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Y)){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"},w.prototype.pointerUp=function(F){var Y=this.state;se.prototype.pointerUp.call(this,F),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(F),this._state="select",Y==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},w.prototype.moveVisual=function(F){this.visual.style.transform="translate("+F.x+"px, "+F.y+"px)"},w.prototype.manipulate=function(F){var Y=this.unrotatePoint(F);this.state==="creating"?this.resize(F):this.state==="move"?(this.left=this.manipulationStartLeft+(Y.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Y.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Y):this.state==="rotate"&&this.rotate(F)},w.prototype.resize=function(F){var Y=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:Y=this.manipulationStartLeft+F.x-this.manipulationStartX,ue=this.manipulationStartWidth+this.manipulationStartLeft-Y;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ue=this.manipulationStartWidth+F.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:q=this.manipulationStartTop+F.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+F.y-this.manipulationStartY}ue>=0?(this.left=Y,this.width=ue):(this.left=Y+ue,this.width=-ue),xe>=0?(this.top=q,this.height=xe):(this.top=q+xe,this.height=-xe),this.setSize()},w.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},w.prototype.rotate=function(F){if(Math.abs(F.x-this.centerX)>.1){var Y=Math.sign(F.x-this.centerX);this.rotationAngle=180*Math.atan((F.y-this.centerY)/(F.x-this.centerX))/Math.PI+90*Y,this.applyRotation()}},w.prototype.applyRotation=function(){var F=this.container.transform.baseVal.getItem(0);F.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(F,0)},w.prototype.rotatePoint=function(F){if(this.rotationAngle===0)return F;var Y=this.container.getCTM(),ue=W.createPoint(F.x,F.y);return{x:(ue=ue.matrixTransform(Y)).x,y:ue.y}},w.prototype.unrotatePoint=function(F){if(this.rotationAngle===0)return F;var Y=this.container.getCTM();Y=Y.inverse();var ue=W.createPoint(F.x,F.y);return{x:(ue=ue.matrixTransform(Y)).x,y:ue.y}},w.prototype.select=function(){se.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},w.prototype.deselect=function(){se.prototype.deselect.call(this),this.controlBox.style.display="none"},w.prototype.setupControlBox=function(){this.controlBox=W.createGroup();var F=W.createTransform();F.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(F),this.container.appendChild(this.controlBox),this.controlRect=W.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=W.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"},w.prototype.adjustControlBox=function(){var F=this.controlBox.transform.baseVal.getItem(0);F.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(F,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()},w.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()},w.prototype.createGrip=function(){var F=new c;return F.visual.transform.baseVal.appendItem(W.createTransform()),this.controlBox.appendChild(F.visual),F},w.prototype.positionGrips=function(){var F=this.controlGrips.topLeft.GRIP_SIZE,Y=-F/2,ue=Y,q=(this.width+this.CB_DISTANCE)/2-F/2,xe=(this.height+this.CB_DISTANCE)/2-F/2,Be=this.height+this.CB_DISTANCE-F/2,it=this.width+this.CB_DISTANCE-F/2;this.positionGrip(this.controlGrips.topLeft.visual,Y,ue),this.positionGrip(this.controlGrips.topCenter.visual,q,ue),this.positionGrip(this.controlGrips.topRight.visual,it,ue),this.positionGrip(this.controlGrips.centerLeft.visual,Y,xe),this.positionGrip(this.controlGrips.centerRight.visual,it,xe),this.positionGrip(this.controlGrips.bottomLeft.visual,Y,Be),this.positionGrip(this.controlGrips.bottomCenter.visual,q,Be),this.positionGrip(this.controlGrips.bottomRight.visual,it,Be),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,q,ue-3*this.CB_DISTANCE)},w.prototype.positionGrip=function(F,Y,ue){var q=F.transform.baseVal.getItem(0);q.setTranslate(Y,ue),F.transform.baseVal.replaceItem(q,0)},w.prototype.hideControlBox=function(){this.controlBox.style.display="none"},w.prototype.showControlBox=function(){this.controlBox.style.display=""},w.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))},w.prototype.restoreState=function(F){se.prototype.restoreState.call(this,F);var Y=F;this.left=Y.left,this.top=Y.top,this.width=Y.width,this.height=Y.height,this.rotationAngle=Y.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(d.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Y.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(d.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Y.containerTransformMatrix))},w.prototype.scale=function(F,Y){se.prototype.scale.call(this,F,Y);var ue=this.rotatePoint({x:this.left,y:this.top}),q=this.unrotatePoint({x:ue.x*F,y:ue.y*Y});this.left=q.x,this.top=q.y,this.width=this.width*F,this.height=this.height*Y,this.adjustControlBox()},w}(g),D=function(se){function w(F,Y,ue){var q=se.call(this,F,Y,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(w,se),w.prototype.ownsTarget=function(F){return!(!se.prototype.ownsTarget.call(this,F)&&F!==this.visual)},w.prototype.createVisual=function(){this.visual=W.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)},w.prototype.pointerDown=function(F,Y){se.prototype.pointerDown.call(this,F,Y),this.state==="new"&&(this.createVisual(),this.moveVisual(F),this._state="creating")},w.prototype.manipulate=function(F){se.prototype.manipulate.call(this,F)},w.prototype.resize=function(F){se.prototype.resize.call(this,F),this.setSize()},w.prototype.setSize=function(){se.prototype.setSize.call(this),W.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},w.prototype.pointerUp=function(F){se.prototype.pointerUp.call(this,F),this.setSize()},w.prototype.setStrokeColor=function(F){this.strokeColor=F,this.visual&&W.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(F),this.stateChanged()},w.prototype.setFillColor=function(F){this.fillColor=F,this.visual&&W.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},w.prototype.setStrokeWidth=function(F){this.strokeWidth=F,this.visual&&W.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},w.prototype.setStrokeDasharray=function(F){this.strokeDasharray=F,this.visual&&W.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},w.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))},w.prototype.restoreState=function(F){var Y=F;this.fillColor=Y.fillColor,this.strokeColor=Y.strokeColor,this.strokeWidth=Y.strokeWidth,this.strokeDasharray=Y.strokeDasharray,this.opacity=Y.opacity,this.createVisual(),se.prototype.restoreState.call(this,F),this.setSize()},w.prototype.scale=function(F,Y){se.prototype.scale.call(this,F,Y),this.setSize()},w.title="Rectangle marker",w}(R),I=function(se){function w(F,Y,ue,q){var xe=se.call(this,F,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=Y,xe.currentWidth=ue,xe.setCurrentWidth=xe.setCurrentWidth.bind(xe),xe}return ae(w,se),w.prototype.getUi=function(){var F=this,Y=document.createElement("div");return Y.style.display="flex",Y.style.overflow="hidden",Y.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===F.currentWidth?F.uiStyleSettings.toolboxAccentColor:"transparent",q.addEventListener("click",function(){F.setCurrentWidth(ue,q)}),Y.appendChild(q);var xe=document.createElement("div");xe.innerText=ue.toString(),xe.style.marginRight="5px",q.appendChild(xe);var Be=document.createElement("div");Be.style.minHeight="20px",Be.style.flexGrow="2",Be.style.display="flex",Be.style.alignItems="center";var it=document.createElement("hr");it.style.minWidth="20px",it.style.border="0px",it.style.borderTop=ue+"px solid "+F.uiStyleSettings.toolboxColor,it.style.flexGrow="2",Be.appendChild(it),q.appendChild(Be),F.widthBoxes.push(q)}),Y},w.prototype.setCurrentWidth=function(F,Y){var ue=this;this.currentWidth=F,this.widthBoxes.forEach(function(q){q.style.borderColor=q===Y?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},w}(v),N=function(se){function w(F,Y,ue,q){var xe=se.call(this,F,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=Y,xe.currentStyle=ue,xe.setCurrentStyle=xe.setCurrentStyle.bind(xe),xe}return ae(w,se),w.prototype.getUi=function(){var F=this,Y=document.createElement("div");return Y.style.display="flex",Y.style.overflow="hidden",Y.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/F.styles.length-5+"%",q.style.borderColor=ue===F.currentStyle?F.uiStyleSettings.toolboxAccentColor:"transparent",q.addEventListener("click",function(){F.setCurrentStyle(ue,q)}),Y.appendChild(q);var xe=document.createElement("div");xe.style.minHeight="20px",xe.style.flexGrow="2",xe.style.overflow="hidden";var Be=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+F.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ue!==""?'stroke-dasharray="'+ue+'"':"")+` />
</svg>`;xe.innerHTML=Be,q.appendChild(xe),F.styleBoxes.push(q)}),Y},w.prototype.setCurrentStyle=function(F,Y){var ue=this;this.currentStyle=F,this.styleBoxes.forEach(function(q){q.style.borderColor=q===Y?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},w}(v),S=function(se){function w(F,Y,ue){var q=se.call(this,F,Y,ue)||this;return q.strokeColor=ue.defaultColor,q.strokeWidth=ue.defaultStrokeWidth,q.strokeDasharray=ue.defaultStrokeDasharray,q.strokePanel=new _("Line color",ue.defaultColorSet,ue.defaultColor),q.strokePanel.onColorChanged=q.setStrokeColor,q.strokeWidthPanel=new I("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(w,se),Object.defineProperty(w.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),w.prototype.getState=function(){var F=se.prototype.getState.call(this);return F.typeName=w.typeName,F},w.typeName="FrameMarker",w.title="Frame marker",w.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',w}(D),L=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},C=function(se){function w(F,Y,ue){var q=se.call(this,F,Y,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(w,se),w.prototype.ownsTarget=function(F){return!!se.prototype.ownsTarget.call(this,F)||!(!this.grip1.ownsTarget(F)&&!this.grip2.ownsTarget(F))},w.prototype.pointerDown=function(F,Y){se.prototype.pointerDown.call(this,F,Y),this.manipulationStartX=F.x,this.manipulationStartY=F.y,this.state==="new"&&(this.x1=F.x,this.y1=F.y,this.x2=F.x,this.y2=F.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(Y)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Y)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},w.prototype.pointerUp=function(F){var Y=this.state;se.prototype.pointerUp.call(this,F),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(F),this._state="select",Y==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},w.prototype.adjustVisual=function(){},w.prototype.manipulate=function(F){this.state==="creating"?this.resize(F):this.state==="move"?(this.x1=this.manipulationStartX1+F.x-this.manipulationStartX,this.y1=this.manipulationStartY1+F.y-this.manipulationStartY,this.x2=this.manipulationStartX2+F.x-this.manipulationStartX,this.y2=this.manipulationStartY2+F.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(F)},w.prototype.resize=function(F){switch(this.activeGrip){case this.grip1:this.x1=F.x,this.y1=F.y;break;case this.grip2:case void 0:this.x2=F.x,this.y2=F.y}this.adjustVisual(),this.adjustControlBox()},w.prototype.select=function(){se.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},w.prototype.deselect=function(){se.prototype.deselect.call(this),this.controlBox.style.display="none"},w.prototype.setupControlBox=function(){this.controlBox=W.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},w.prototype.adjustControlBox=function(){this.positionGrips()},w.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},w.prototype.createGrip=function(){var F=new c;return F.visual.transform.baseVal.appendItem(W.createTransform()),this.controlBox.appendChild(F.visual),F},w.prototype.positionGrips=function(){var F=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-F/2,this.y1-F/2),this.positionGrip(this.grip2.visual,this.x2-F/2,this.y2-F/2)},w.prototype.positionGrip=function(F,Y,ue){var q=F.transform.baseVal.getItem(0);q.setTranslate(Y,ue),F.transform.baseVal.replaceItem(q,0)},w.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},se.prototype.getState.call(this))},w.prototype.restoreState=function(F){se.prototype.restoreState.call(this,F);var Y=F;this.x1=Y.x1,this.y1=Y.y1,this.x2=Y.x2,this.y2=Y.y2},w.prototype.scale=function(F,Y){se.prototype.scale.call(this,F,Y),this.x1=this.x1*F,this.y1=this.y1*Y,this.x2=this.x2*F,this.y2=this.y2*Y,this.adjustVisual(),this.adjustControlBox()},w}(g),b=function(se){function w(F,Y,ue){var q=se.call(this,F,Y,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 _("Line color",ue.defaultColorSet,ue.defaultColor),q.strokePanel.onColorChanged=q.setStrokeColor,q.strokeWidthPanel=new I("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(w,se),w.prototype.ownsTarget=function(F){return!(!se.prototype.ownsTarget.call(this,F)&&F!==this.visual&&F!==this.selectorLine&&F!==this.visibleLine)},w.prototype.createVisual=function(){this.visual=W.createGroup(),this.selectorLine=W.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=W.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)},w.prototype.pointerDown=function(F,Y){se.prototype.pointerDown.call(this,F,Y),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},w.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()),W.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),W.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),W.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},w.prototype.setStrokeColor=function(F){this.strokeColor=F,this.adjustVisual(),this.colorChanged(F)},w.prototype.setStrokeWidth=function(F){this.strokeWidth=F,this.adjustVisual()},w.prototype.setStrokeDasharray=function(F){this.strokeDasharray=F,this.adjustVisual(),this.stateChanged()},Object.defineProperty(w.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),w.prototype.getState=function(){var F=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},se.prototype.getState.call(this));return F.typeName=w.typeName,F},w.prototype.restoreState=function(F){se.prototype.restoreState.call(this,F);var Y=F;this.strokeColor=Y.strokeColor,this.strokeWidth=Y.strokeWidth,this.strokeDasharray=Y.strokeDasharray,this.createVisual(),this.adjustVisual()},w.typeName="LineMarker",w.title="Line marker",w.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',w}(C),E=function(se){function w(F,Y,ue,q){var xe=se.call(this,F,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=Y,xe.currentFont=ue,xe.setCurrentFont=xe.setCurrentFont.bind(xe),xe}return ae(w,se),w.prototype.getUi=function(){var F=this,Y=document.createElement("div");return Y.style.overflow="hidden",Y.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/F.fonts.length-5+"%",q.style.borderColor=ue===F.currentFont?F.uiStyleSettings.toolboxAccentColor:"transparent",q.addEventListener("click",function(){F.setCurrentFont(ue,q)}),Y.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 Be=document.createElement("div");Be.style.whiteSpace="nowrap",Be.style.overflow="hidden",Be.style.textOverflow="ellipsis",Be.innerHTML="The quick brown fox jumps over the lazy dog",xe.appendChild(Be),q.appendChild(xe),F.fontBoxes.push(q)}),Y},w.prototype.setCurrentFont=function(F,Y){var ue=this;this.currentFont=F,this.fontBoxes.forEach(function(q){q.style.borderColor=q===Y?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},w}(v),O=function(se){function w(F,Y,ue){var q=se.call(this,F,Y,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 _("Color",ue.defaultColorSet,ue.defaultColor),q.colorPanel.onColorChanged=q.setColor,q.fontFamilyPanel=new E("Font",ue.defaultFontFamilies,ue.defaultFontFamily),q.fontFamilyPanel.onFontChanged=q.setFont,q}return ae(w,se),w.prototype.ownsTarget=function(F){if(se.prototype.ownsTarget.call(this,F)||F===this.visual||F===this.textElement||F===this.bgRectangle)return!0;var Y=!1;return this.textElement.childNodes.forEach(function(ue){ue===F&&(Y=!0)}),Y},w.prototype.createVisual=function(){this.visual=W.createGroup(),this.bgRectangle=W.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=W.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(W.createTransform()),this.textElement.transform.baseVal.appendItem(W.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},w.prototype.pointerDown=function(F,Y){se.prototype.pointerDown.call(this,F,Y),this.isMoved=!1,this.pointerDownPoint=F,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(F),this._state="creating")},w.prototype.renderText=function(){var F=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(Y){F.textElement.appendChild(W.createTSpan(Y.trim()===""?" ":Y.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},w.prototype.getTextScale=function(){var F=this.textElement.getBBox(),Y=1;if(F.width>0&&F.height>0){var ue=(1*this.width-this.width*this.padding*2/100)/F.width,q=(1*this.height-this.height*this.padding*2/100)/F.height;Y=Math.min(ue,q)}return Y},w.prototype.getTextPosition=function(F){var Y=this.textElement.getBBox(),ue=0,q=0;return Y.width>0&&Y.height>0&&(ue=(this.width-Y.width*F)/2,q=this.height/2-Y.height*F/2),{x:ue,y:q}},w.prototype.sizeText=function(){var F=this.textElement.getBBox(),Y=this.getTextScale(),ue=this.getTextPosition(Y);ue.y-=F.y*Y,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ue.x+"px, "+ue.y+"px) scale("+Y+", "+Y+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ue.x,ue.y),this.textElement.transform.baseVal.getItem(1).setScale(Y,Y))},w.prototype.manipulate=function(F){se.prototype.manipulate.call(this,F),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(F.x-this.pointerDownPoint.x)>5||Math.abs(F.y-this.pointerDownPoint.y)>5)},w.prototype.resize=function(F){se.prototype.resize.call(this,F),this.isMoved=!0,this.setSize(),this.sizeText()},w.prototype.setSize=function(){se.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(W.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),W.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},w.prototype.pointerUp=function(F){var Y=this.state;Y==="creating"&&(this._suppressMarkerCreateEvent=!0),se.prototype.pointerUp.call(this,F),this.setSize(),(Y==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},w.prototype.showTextEditor=function(){var F=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(Y){Y.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Y=Number.parseFloat(F.textEditor.style.fontSize);F.textEditor.clientWidth>=Number.parseInt(F.textEditor.style.maxWidth)&&Y>.9;)Y-=.1,F.textEditor.style.fontSize=Math.max(Y,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Y){Y.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Y){if(Y.clipboardData){var ue=Y.clipboardData.getData("text"),q=window.getSelection();if(!q.rangeCount)return!1;q.deleteFromDocument(),q.getRangeAt(0).insertNode(document.createTextNode(ue)),Y.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){F.textEditDivClicked(F.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},w.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var F=this.getTextScale(),Y=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ue=this.textElement.getBBox(),q={x:ue.width*F,y:ue.height*F};Y.x-=q.x/2,Y.y-=q.y/2,this.textEditor.style.top=Y.y+"px",this.textEditor.style.left=Y.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Y.x+"px",this.textEditor.style.fontSize=Math.max(16*F,12)+"px",this.textElement.style.display="none"}},w.prototype.textEditDivClicked=function(F){this.text=F.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},w.prototype.select=function(){se.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},w.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),se.prototype.deselect.call(this)},w.prototype.dblClick=function(F,Y){se.prototype.dblClick.call(this,F,Y),this.showTextEditor()},w.prototype.setColor=function(F){this.textElement&&W.setAttributes(this.textElement,[["fill",F]]),this.color=F,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(F)},w.prototype.setFont=function(F){this.textElement&&W.setAttributes(this.textElement,[["font-family",F]]),this.fontFamily=F,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},w.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},w.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(w.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),w.prototype.getState=function(){var F=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},se.prototype.getState.call(this));return F.typeName=w.typeName,F},w.prototype.restoreState=function(F){var Y=F;this.color=Y.color,this.fontFamily=Y.fontFamily,this.padding=Y.padding,this.text=Y.text,this.createVisual(),se.prototype.restoreState.call(this,F),this.setSize()},w.prototype.scale=function(F,Y){se.prototype.scale.call(this,F,Y),this.setSize(),this.sizeText(),this.positionTextEditor()},w.typeName="TextMarker",w.title="Text marker",w.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>',w}(R),x=function(se){function w(F,Y,ue){var q=se.call(this,F,Y,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 _("Color",ue.defaultColorSet,ue.defaultColor),q.colorPanel.onColorChanged=q.setColor,q.lineWidthPanel=new I("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),q.lineWidthPanel.onWidthChanged=q.setLineWidth,q}return ae(w,se),w.prototype.ownsTarget=function(F){return!(!se.prototype.ownsTarget.call(this,F)&&F!==this.visual&&F!==this.drawingImage)},w.prototype.createVisual=function(){this.visual=W.createGroup(),this.drawingImage=W.createImage(),this.visual.appendChild(this.drawingImage);var F=W.createTransform();this.visual.transform.baseVal.appendItem(F),this.addMarkerVisualToContainer(this.visual)},w.prototype.pointerDown=function(F,Y){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(F.x,F.y),this.drawing=!0):se.prototype.pointerDown.call(this,F,Y)},w.prototype.manipulate=function(F){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(F.x,F.y),this.canvasContext.stroke()):se.prototype.manipulate.call(this,F)},w.prototype.resize=function(F){se.prototype.resize.call(this,F),W.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),W.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},w.prototype.pointerUp=function(F){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):se.prototype.pointerUp.call(this,F)},w.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)},w.prototype.select=function(){this.state==="creating"&&this.finishCreation(),se.prototype.select.call(this)},w.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),se.prototype.deselect.call(this)},w.prototype.finishCreation=function(){for(var F=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Y=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ue=Y[0],q=Y[1],xe=Y[2],Be=Y[3],it=!1,be=0;be<this.canvasElement.height;be++)for(var Re=0;Re<this.canvasElement.width;Re++)F.data[be*this.canvasElement.width*4+4*Re+3]>0&&(it=!0,be<q&&(q=be),Re<ue&&(ue=Re),be>Be&&(Be=be),Re>xe&&(xe=Re));if(it){this.left=ue/this.pixelRatio,this.top=q/this.pixelRatio,this.width=(xe-ue)/this.pixelRatio,this.height=(Be-q)/this.pixelRatio;var je=document.createElement("canvas");je.width=xe-ue,je.height=Be-q,je.getContext("2d").putImageData(this.canvasContext.getImageData(ue,q,xe-ue,Be-q),0,0),this.drawingImgUrl=je.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},w.prototype.setDrawingImage=function(){W.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),W.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},w.prototype.setColor=function(F){this.color=F,this.colorChanged(F)},w.prototype.setLineWidth=function(F){this.lineWidth=F},Object.defineProperty(w.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),w.prototype.getState=function(){var F=Object.assign({drawingImgUrl:this.drawingImgUrl},se.prototype.getState.call(this));return F.typeName=w.typeName,F},w.prototype.restoreState=function(F){this.createVisual(),se.prototype.restoreState.call(this,F),this.drawingImgUrl=F.drawingImgUrl,this.setDrawingImage()},w.prototype.scale=function(F,Y){se.prototype.scale.call(this,F,Y),this.setDrawingImage()},w.typeName="FreehandMarker",w.title="Freehand marker",w.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>',w}(R),k=function(se){function w(F,Y,ue){var q=se.call(this,F,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=Y,q.setCurrentType=q.setCurrentType.bind(q),q}return ae(w,se),w.prototype.getUi=function(){var F=this,Y=document.createElement("div");Y.style.display="flex",Y.style.overflow="hidden",Y.style.flexGrow="2";for(var ue=function(Be){var it="both";switch(Be){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(){F.setCurrentType(it,be)}),Y.appendChild(be),it==="both"||it==="start"){var Re=document.createElement("div");Re.style.display="flex",Re.style.alignItems="center",Re.style.minHeight="20px",Re.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>`,Re.style.marginLeft="5px",be.appendChild(Re)}var je=document.createElement("div");je.style.display="flex",je.style.alignItems="center",je.style.minHeight="20px",je.style.flexGrow="2";var Ye=document.createElement("hr");if(Ye.style.minWidth="20px",Ye.style.border="0px",Ye.style.borderTop="3px solid "+(q.uiStyleSettings!==void 0?q.uiStyleSettings.toolboxColor:"#eeeeee"),Ye.style.flexGrow="2",je.appendChild(Ye),be.appendChild(je),it==="both"||it==="end"){var ft=document.createElement("div");ft.style.display="flex",ft.style.alignItems="center",ft.style.minHeight="20px",ft.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>`,ft.style.marginRight="5px",be.appendChild(ft)}q.typeBoxes.push(be)},q=this,xe=0;xe<4;xe++)ue(xe);return Y},w.prototype.setCurrentType=function(F,Y){var ue=this;this.currentType=F,this.typeBoxes.forEach(function(q){q.style.borderColor=q===Y?ue.uiStyleSettings!==void 0?ue.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},w}(v),Z=function(se){function w(F,Y,ue){var q=se.call(this,F,Y,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 k("Arrow type","end"),q.arrowTypePanel.onArrowTypeChanged=q.setArrowType,q}return ae(w,se),w.prototype.ownsTarget=function(F){return!(!se.prototype.ownsTarget.call(this,F)&&F!==this.arrow1&&F!==this.arrow2)},w.prototype.getArrowPoints=function(F,Y){var ue=this.arrowBaseWidth+2*this.strokeWidth,q=this.arrowBaseHeight+2*this.strokeWidth;return F-ue/2+","+(Y+q/2)+" "+F+","+(Y-q/2)+" "+(F+ue/2)+","+(Y+q/2)},w.prototype.createTips=function(){this.arrow1=W.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(W.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=W.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(W.createTransform()),this.visual.appendChild(this.arrow2)},w.prototype.pointerDown=function(F,Y){se.prototype.pointerDown.call(this,F,Y),this.state==="creating"&&this.createTips()},w.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",W.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),W.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var F=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Y=this.arrow1.transform.baseVal.getItem(0);Y.setRotate(F,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Y,0);var ue=this.arrow2.transform.baseVal.getItem(0);ue.setRotate(F+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ue,0)}},w.prototype.setArrowType=function(F){this.arrowType=F,this.adjustVisual(),this.stateChanged()},Object.defineProperty(w.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),w.prototype.getState=function(){var F=Object.assign({arrowType:this.arrowType},se.prototype.getState.call(this));return F.typeName=w.typeName,F},w.prototype.restoreState=function(F){se.prototype.restoreState.call(this,F);var Y=F;this.arrowType=Y.arrowType,this.createTips(),this.adjustVisual()},w.typeName="ArrowMarker",w.title="Arrow marker",w.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',w}(b),G=function(se){function w(F,Y,ue){var q=se.call(this,F,Y,ue)||this;return q.fillColor=ue.defaultFillColor,q.strokeWidth=0,q.fillPanel=new _("Color",ue.defaultColorSet,ue.defaultFillColor),q.fillPanel.onColorChanged=q.setFillColor,q}return ae(w,se),Object.defineProperty(w.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),w.prototype.getState=function(){var F=se.prototype.getState.call(this);return F.typeName=w.typeName,F},w.typeName="CoverMarker",w.title="Cover marker",w.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',w}(D),P=function(se){function w(F,Y,ue,q){var xe=se.call(this,F,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=Y,xe.currentOpacity=ue,xe.setCurrentOpacity=xe.setCurrentOpacity.bind(xe),xe}return ae(w,se),w.prototype.getUi=function(){var F=this,Y=document.createElement("div");return Y.style.display="flex",Y.style.overflow="hidden",Y.style.flexGrow="2",Y.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===F.currentOpacity?F.uiStyleSettings.toolboxAccentColor:"transparent",q.addEventListener("click",function(){F.setCurrentOpacity(ue,q)}),Y.appendChild(q);var xe=document.createElement("div");xe.innerText=100*ue+"%",q.appendChild(xe),F.opacityBoxes.push(q)}),Y},w.prototype.setCurrentOpacity=function(F,Y){var ue=this;this.currentOpacity=F,this.opacityBoxes.forEach(function(q){q.style.borderColor=q===Y?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},w}(v),z=function(se){function w(F,Y,ue){var q=se.call(this,F,Y,ue)||this;return q.setOpacity=q.setOpacity.bind(q),q.fillColor=ue.defaultHighlightColor,q.strokeWidth=0,q.opacity=ue.defaultHighlightOpacity,q.fillPanel=new _("Color",ue.defaultColorSet,q.fillColor),q.fillPanel.onColorChanged=q.setFillColor,q.opacityPanel=new P("Opacity",ue.defaultOpacitySteps,q.opacity),q.opacityPanel.onOpacityChanged=q.setOpacity,q}return ae(w,se),w.prototype.setOpacity=function(F){this.opacity=F,this.visual&&W.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(w.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),w.prototype.getState=function(){var F=se.prototype.getState.call(this);return F.typeName=w.typeName,F},w.typeName="HighlightMarker",w.title="Highlight marker",w.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>',w}(G),Q='<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 w(F,Y,ue){var q=se.call(this,F,Y,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 _("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 _("Fill color",ue.defaultColorSet,q.bgColor,Q),q.bgColorPanel.onColorChanged=q.setBgColor,q.fontFamilyPanel=new E("Font",ue.defaultFontFamilies,ue.defaultFontFamily),q.fontFamilyPanel.onFontChanged=q.setFont,q.tipGrip=new c,q.tipGrip.visual.transform.baseVal.appendItem(W.createTransform()),q.controlBox.appendChild(q.tipGrip.visual),q}return ae(w,se),w.prototype.ownsTarget=function(F){return se.prototype.ownsTarget.call(this,F)||this.tipGrip.ownsTarget(F)||this.tip===F},w.prototype.createTip=function(){W.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=W.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},w.prototype.pointerDown=function(F,Y){this.state==="new"&&se.prototype.pointerDown.call(this,F,Y),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Y)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):se.prototype.pointerDown.call(this,F,Y)},w.prototype.pointerUp=function(F){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,se.prototype.pointerUp.call(this,F);else{var Y=this.state==="creating";se.prototype.pointerUp.call(this,F),this.setTipPoints(Y),this.positionTip()}},w.prototype.manipulate=function(F){if(this.tipMoving){var Y=this.unrotatePoint(F);this.tipPosition={x:Y.x-this.manipulationStartLeft,y:Y.y-this.manipulationStartTop},this.positionTip()}else se.prototype.manipulate.call(this,F)},w.prototype.setBgColor=function(F){this.bgRectangle&&this.tip&&(W.setAttributes(this.bgRectangle,[["fill",F]]),W.setAttributes(this.tip,[["fill",F]])),this.bgColor=F,this.fillColorChanged(F)},w.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},w.prototype.setTipPoints=function(F){F===void 0&&(F=!1);var Y=Math.min(this.height/2,15),ue=this.height/5;F&&(this.tipPosition={x:Y+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,Y=Math.min(this.width/2,15),this.tipBase1Position={x:Y,y:0},this.tipBase2Position={x:Y+ue,y:0}):(this.tipBase1Position={x:0,y:Y},this.tipBase2Position={x:0,y:Y+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,Y=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Y-ue,y:0},this.tipBase2Position={x:this.width-Y,y:0}):(this.tipBase1Position={x:this.width,y:Y},this.tipBase2Position={x:this.width,y:Y+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,Y=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Y-ue,y:this.height},this.tipBase2Position={x:this.width-Y,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Y-ue},this.tipBase2Position={x:this.width,y:this.height-Y}):q<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ue=this.width/5,Y=Math.min(this.width/2,15),this.tipBase1Position={x:Y,y:this.height},this.tipBase2Position={x:Y+ue,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Y},this.tipBase2Position={x:0,y:this.height-Y-ue})},w.prototype.resize=function(F){se.prototype.resize.call(this,F),this.positionTip()},w.prototype.positionTip=function(){W.setAttributes(this.tip,[["points",this.getTipPoints()]]);var F=this.tipGrip.visual.transform.baseVal.getItem(0);F.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(F,0)},Object.defineProperty(w.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),w.prototype.select=function(){this.positionTip(),se.prototype.select.call(this)},w.prototype.getState=function(){var F=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},se.prototype.getState.call(this));return F.typeName=w.typeName,F},w.prototype.restoreState=function(F){var Y=F;this.bgColor=Y.bgColor,this.tipPosition=Y.tipPosition,se.prototype.restoreState.call(this,F),this.createTip(),this.setTipPoints()},w.prototype.scale=function(F,Y){se.prototype.scale.call(this,F,Y),this.tipPosition={x:this.tipPosition.x*F,y:this.tipPosition.y*Y},this.positionTip()},w.typeName="CalloutMarker",w.title="Callout marker",w.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>',w}(O),ne=function(se){function w(F,Y,ue){var q=se.call(this,F,Y,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 _("Line color",j(ue.defaultColorSet,["transparent"]),ue.defaultColor),q.strokePanel.onColorChanged=q.setStrokeColor,q.fillPanel=new _("Fill color",j(ue.defaultColorSet,["transparent"]),q.fillColor,Q),q.fillPanel.onColorChanged=q.setFillColor,q.strokeWidthPanel=new I("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 P("Opacity",ue.defaultOpacitySteps,q.opacity),q.opacityPanel.onOpacityChanged=q.setOpacity,q}return ae(w,se),w.prototype.ownsTarget=function(F){return!(!se.prototype.ownsTarget.call(this,F)&&F!==this.visual)},w.prototype.createVisual=function(){this.visual=W.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)},w.prototype.pointerDown=function(F,Y){se.prototype.pointerDown.call(this,F,Y),this.state==="new"&&(this.createVisual(),this.moveVisual(F),this._state="creating")},w.prototype.manipulate=function(F){se.prototype.manipulate.call(this,F)},w.prototype.resize=function(F){se.prototype.resize.call(this,F),this.setSize()},w.prototype.setSize=function(){se.prototype.setSize.call(this),W.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},w.prototype.pointerUp=function(F){se.prototype.pointerUp.call(this,F),this.setSize()},w.prototype.setStrokeColor=function(F){this.strokeColor=F,this.visual&&W.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(F),this.stateChanged()},w.prototype.setFillColor=function(F){this.fillColor=F,this.visual&&W.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(F),this.stateChanged()},w.prototype.setStrokeWidth=function(F){this.strokeWidth=F,this.visual&&W.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},w.prototype.setStrokeDasharray=function(F){this.strokeDasharray=F,this.visual&&W.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},w.prototype.setOpacity=function(F){this.opacity=F,this.visual&&W.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(w.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),w.prototype.getState=function(){var F=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},se.prototype.getState.call(this));return F.typeName=w.typeName,F},w.prototype.restoreState=function(F){var Y=F;this.fillColor=Y.fillColor,this.strokeColor=Y.strokeColor,this.strokeWidth=Y.strokeWidth,this.strokeDasharray=Y.strokeDasharray,this.opacity=Y.opacity,this.createVisual(),se.prototype.restoreState.call(this,F),this.setSize()},w.prototype.scale=function(F,Y){se.prototype.scale.call(this,F,Y),this.setSize()},w.typeName="EllipseMarker",w.title="Ellipse marker",w.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>',w}(R),ce=function(se){function w(F,Y,ue){return se.call(this,F,Y,ue)||this}return ae(w,se),Object.defineProperty(w.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),w.prototype.ownsTarget=function(F){return!(!se.prototype.ownsTarget.call(this,F)&&F!==this.tip1&&F!==this.tip2)},w.prototype.createTips=function(){this.tip1=W.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(W.createTransform()),this.visual.appendChild(this.tip1),this.tip2=W.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(W.createTransform()),this.visual.appendChild(this.tip2)},w.prototype.pointerDown=function(F,Y){se.prototype.pointerDown.call(this,F,Y),this.state==="creating"&&this.createTips()},w.prototype.adjustVisual=function(){if(se.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(W.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()]]),W.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 F=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Y=this.tip1.transform.baseVal.getItem(0);Y.setRotate(F,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Y,0);var ue=this.tip2.transform.baseVal.getItem(0);ue.setRotate(F+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ue,0)}},Object.defineProperty(w.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),w.prototype.getState=function(){var F=se.prototype.getState.call(this);return F.typeName=w.typeName,F},w.prototype.restoreState=function(F){se.prototype.restoreState.call(this,F),this.createTips(),this.adjustVisual()},w.typeName="MeasurementMarker",w.title="Measurement marker",w.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>',w}(b),we=function(se){function w(F,Y,ue){var q=se.call(this,F,Y,ue)||this;return q.strokePanel.colors=ue.defaultColorSet,q.fillColor="transparent",q}return ae(w,se),Object.defineProperty(w.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),w.prototype.getState=function(){var F=se.prototype.getState.call(this);return F.typeName=w.typeName,F},w.typeName="EllipseFrameMarker",w.title="Ellipse frame marker",w.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>',w}(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(w){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(w)||(this.undoStack.push(w),JSON.stringify(this.lastRedoStep)!==JSON.stringify(w)&&this.redoStack.splice(0,this.redoStack.length))},se.prototype.replaceLastUndoStep=function(w){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=w)},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 w=this.undoStack.pop();return w!==void 0&&this.redoStack.push(w),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}(),ze=function(se){function w(F,Y,ue){var q=se.call(this,F,Y,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 _("Line color",ue.defaultColorSet,ue.defaultColor),q.strokePanel.onColorChanged=q.setStrokeColor,q.strokeWidthPanel=new I("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(w,se),w.prototype.ownsTarget=function(F){return!(!se.prototype.ownsTarget.call(this,F)&&F!==this.visual&&F!==this.selectorCurve&&F!==this.visibleCurve&&!this.curveGrip.ownsTarget(F))},w.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},w.prototype.createVisual=function(){this.visual=W.createGroup(),this.selectorCurve=W.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=W.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)},w.prototype.pointerDown=function(F,Y){se.prototype.pointerDown.call(this,F,Y),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=F.x,this.curveY=F.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Y)&&(this.activeGrip=this.curveGrip,this._state="resize")},w.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),W.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),W.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),W.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},w.prototype.setupControlBox=function(){se.prototype.setupControlBox.call(this),this.curveControlLine1=W.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=W.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)},w.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,se.prototype.addControlGrips.call(this)},w.prototype.positionGrips=function(){se.prototype.positionGrips.call(this);var F=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-F/2,this.curveY-F/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()))},w.prototype.manipulate=function(F){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+F.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+F.y-this.manipulationStartY),se.prototype.manipulate.call(this,F)},w.prototype.resize=function(F){this.activeGrip===this.curveGrip&&(this.curveX=F.x,this.curveY=F.y),se.prototype.resize.call(this,F),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},w.prototype.setStrokeColor=function(F){this.strokeColor=F,this.adjustVisual(),this.colorChanged(F)},w.prototype.setStrokeWidth=function(F){this.strokeWidth=F,this.adjustVisual()},w.prototype.setStrokeDasharray=function(F){this.strokeDasharray=F,this.adjustVisual()},w.prototype.scale=function(F,Y){this.curveX=this.curveX*F,this.curveY=this.curveY*Y,se.prototype.scale.call(this,F,Y)},Object.defineProperty(w.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),w.prototype.getState=function(){var F=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},se.prototype.getState.call(this));return F.typeName=w.typeName,F},w.prototype.restoreState=function(F){se.prototype.restoreState.call(this,F);var Y=F;this.strokeColor=Y.strokeColor,this.strokeWidth=Y.strokeWidth,this.strokeDasharray=Y.strokeDasharray,this.curveX=Y.curveX,this.curveY=Y.curveY,this.createVisual(),this.adjustVisual()},w.typeName="CurveMarker",w.title="Curve marker",w.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>',w}(C),Le=function(){function se(w,F){F===void 0&&(F=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=w,this.cancelable=F}return Object.defineProperty(se.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),se.prototype.preventDefault=function(){this._defaultPrevented=!0},se}(),We=function(se){function w(F,Y,ue){var q=se.call(this,F,!1)||this;return q.dataUrl=Y,q.state=ue,q}return ae(w,se),w}(Le),Ve=function(se){function w(F,Y,ue){ue===void 0&&(ue=!1);var q=se.call(this,F,ue)||this;return q.marker=Y,q}return ae(w,se),w}(Le),$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(w,F){this[w].push(F)},se.prototype.removeEventListener=function(w,F){var Y=this[w].indexOf(F);Y>-1&&this[w].splice(Y,1)},se}(),Pe=function(){function se(w){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new L,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 B(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=w,this.targetRoot=document.body,this.width=w.clientWidth,this.height=w.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[S,x,Z,O,we,ne,z,H,ce,G,b,ze]},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[S,x,Z,O,ne,z,H]},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"BASIC_MARKER_TYPES",{get:function(){return[S,x,Z,O,z]},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(w){var F=this;this._availableMarkerTypes.splice(0),w.forEach(function(Y){if(typeof Y=="string"){var ue=F.ALL_MARKER_TYPES.find(function(q){return q.typeName===Y});ue!==void 0&&F._availableMarkerTypes.push(ue)}else F._availableMarkerTypes.push(Y)})},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(w){this._zoomLevel=w,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 w=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(F){return F(new Le(w))})},se.prototype.render=function(){return X(this,void 0,void 0,function(){var w;return le(this,function(F){switch(F.label){case 0:return this.setCurrentMarker(),(w=new V).naturalSize=this.renderAtNaturalSize,w.imageType=this.renderImageType,w.imageQuality=this.renderImageQuality,w.markersOnly=this.renderMarkersOnly,w.width=this.renderWidth,w.height=this.renderHeight,[4,w.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return F.sent(),[4,w.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,F.sent()]}})})},se.prototype.close=function(w){var F=this;if(w===void 0&&(w=!1),this.isOpen){var Y=!1;w||this.eventListeners.beforeclose.forEach(function(ue){var q=new Le(F,!0);ue(q),q.defaultPrevented&&(Y=!0)}),Y||(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 Le(F))}),this.detachEvents(),this._isOpen=!1)}},se.prototype.addMarkersToToolbar=function(){for(var w,F=[],Y=0;Y<arguments.length;Y++)F[Y]=arguments[Y];(w=this._availableMarkerTypes).push.apply(w,F)},se.prototype.addRenderEventListener=function(w){this.addEventListener("render",function(F){w(F.dataUrl,F.state)})},se.prototype.removeRenderEventListener=function(w){},se.prototype.addCloseEventListener=function(w){this.addEventListener("close",function(){w()})},se.prototype.removeCloseEventListener=function(w){},se.prototype.setupResizeObserver=function(){var w=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){w.resize(w.target.clientWidth,w.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return w.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},se.prototype.onPopupTargetResize=function(){var w=1*this.target.clientWidth/this.target.clientHeight,F=this.editorCanvas.clientWidth/w>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*w:this.editorCanvas.clientWidth,Y=F<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/w;this.resize(F,Y)},se.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},se.prototype.resize=function(w,F){this._isResizing=!0;var Y=w/this.imageWidth,ue=F/this.imageHeight;this.imageWidth=Math.round(w),this.imageHeight=Math.round(F),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(Y,ue),this._isResizing=!1},se.prototype.scaleMarkers=function(w,F){var Y,ue=this;this._currentMarker&&this._currentMarker instanceof O?this._currentMarker.scale(w,F):(Y=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(q){q!==ue._currentMarker&&q.scale(w,F)}),Y!==void 0&&this.setCurrentMarker(Y)},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 w=this.editingTarget.getBoundingClientRect(),F=this.editorCanvas.getBoundingClientRect();this.left=w.left-F.left,this.top=w.top-F.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 w,F=[],Y=0;Y<arguments.length;Y++)F[Y]=arguments[Y];this.defs=W.createDefs(),this.addDefsToImage(),(w=this.defs).append.apply(w,F)},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 w=document.createElement("a");w.href="https://markerjs.com/",w.target="_blank",w.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>',w.title="Powered by marker.js",w.style.display="grid",w.style.alignItems="center",w.style.justifyItems="center",w.style.padding="3px",w.style.width="20px",w.style.height="20px",this.logoUI.appendChild(w),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 w=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=w+"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 y(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(w){this.markerImage.removeChild(w.container),this.markers.indexOf(w)>-1&&this.markers.splice(this.markers.indexOf(w),1),w.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(w,F){if(w==="marker"&&F!==void 0)this.createNewMarker(F);else if(w==="action")switch(F){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 w=this;if(this._currentMarker!==void 0){var F=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ue){var q=new Ve(w,w._currentMarker,!0);ue(q),q.defaultPrevented&&(F=!0)}),!F){var Y=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(w,Y))})}}},se.prototype.clear=function(){var w=this,F=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(xe){var Be=new Ve(w,void 0,!0);xe(Be),Be.defaultPrevented&&(F=!0)}),!F)){this.setCurrentMarker();for(var Y=function(xe){var Be=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(w,Be))})},ue=this,q=this.markers.length-1;q>=0;q--)Y(q);this.addUndoStep()}},Object.defineProperty(se.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),se.prototype.showNotesEditor=function(){var w;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=(w=this._currentMarker.notes)!==null&&w!==void 0?w:"",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 w=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var F=this.getState(),Y=this.undoRedoManager.getLastUndoStep();if(!Y||Y.width===F.width&&Y.height===F.height){var ue=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(F),ue<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(q){return q(new Le(w))})}else this.undoRedoManager.replaceLastUndoStep(F),this.eventListeners.statechange.forEach(function(q){return q(new Le(w))})}},se.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},se.prototype.undoStep=function(){var w=this,F=this.undoRedoManager.undo();F!==void 0&&(this.restoreState(F),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Y){return Y(new Le(w))}))},se.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},se.prototype.redoStep=function(){var w=this,F=this.undoRedoManager.redo();F!==void 0&&(this.restoreState(F),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Y){return Y(new Le(w))}))},se.prototype.stepZoom=function(){var w=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=w<this.zoomSteps.length-1?this.zoomSteps[w+1]:this.zoomSteps[0]},se.prototype.panTo=function(w){this.contentDiv.scrollBy({left:this.prevPanPoint.x-w.x,top:this.prevPanPoint.y-w.y}),this.prevPanPoint=w},se.prototype.startRenderAndClose=function(){return X(this,void 0,void 0,function(){var w,F,Y=this;return le(this,function(ue){switch(ue.label){case 0:return[4,this.render()];case 1:return w=ue.sent(),F=this.getState(),this.eventListeners.render.forEach(function(q){return q(new We(Y,w,F))}),this.close(!0),[2]}})})},se.prototype.getState=function(w){w===!0&&this.setCurrentMarker();var F={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Y){return F.markers.push(Y.getState())}),F},se.prototype.restoreState=function(w){var F=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);w.markers.forEach(function(Y){var ue=F._availableMarkerTypes.find(function(xe){return xe.typeName===Y.typeName});if(ue!==void 0){var q=F.addNewMarker(ue);q.restoreState(Y),F.markers.push(q)}}),w.width&&w.height&&(w.width!==this.imageWidth||w.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/w.width,this.imageHeight/w.height),this.eventListeners.restorestate.forEach(function(Y){return Y(new Le(F))})},se.prototype.addNewMarker=function(w){var F=W.createGroup();return this.markerImage.appendChild(F),new w(F,this.overlayContainer,this.settings)},se.prototype.createNewMarker=function(w){var F,Y=this;(F=typeof w=="string"?this._availableMarkerTypes.find(function(ue){return ue.typeName===w}):w)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(F),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(F.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ue){return ue(new Ve(Y,Y._currentMarker))}))},se.prototype.markerCreated=function(w){var F=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(w),this.setCurrentMarker(w),w instanceof x&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(x):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Y){return Y(new Ve(F,F._currentMarker))})},se.prototype.colorChanged=function(w){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=w,this.settings.defaultStrokeColor=w)},se.prototype.fillColorChanged=function(w){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=w)},se.prototype.markerStateChanged=function(w){var F=this;this.eventListeners.markerchange.forEach(function(Y){return Y(new Ve(F,w))})},se.prototype.setCurrentMarker=function(w){var F=this;this._currentMarker!==w&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Y){return Y(new Ve(F,F._currentMarker))})),this._currentMarker=w,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(Y){return Y(new Ve(F,F._currentMarker))}))},se.prototype.onPointerDown=function(w){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||w.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var F=this.markers.find(function(Y){return Y.ownsTarget(w.target)});F!==void 0?(this.setCurrentMarker(F),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(w.clientX,w.clientY),w.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:w.clientX,y:w.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(w.clientX,w.clientY))},se.prototype.onDblClick=function(w){if(this._isFocused||this.focus(),this.mode==="select"){var F=this.markers.find(function(Y){return Y.ownsTarget(w.target)});F!==void 0&&F!==this._currentMarker&&this.setCurrentMarker(F),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(w.clientX,w.clientY),w.target):this.setCurrentMarker()}},se.prototype.onPointerMove=function(w){this.touchPoints!==1&&w.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||w.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(w.clientX,w.clientY)):this.zoomLevel>1&&this.panTo({x:w.clientX,y:w.clientY}))},se.prototype.onPointerUp=function(w){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(w.clientX,w.clientY)),this.isDragging=!1,this.addUndoStep()},se.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},se.prototype.onKeyUp=function(w){this._currentMarker===void 0||this.notesArea!==void 0||w.key!=="Delete"&&w.key!=="Backspace"||this.deleteSelectedMarker()},se.prototype.clientToLocalCoordinates=function(w,F){var Y=this.markerImage.getBoundingClientRect();return{x:(w-Y.left)/this.zoomLevel,y:(F-Y.top)/this.zoomLevel}},se.prototype.onWindowResize=function(){this.positionUI()},se.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var w=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=w+"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(w){oe.addKey(w)},se.prototype.addEventListener=function(w,F){this.eventListeners.addEventListener(w,F)},se.prototype.removeEventListener=function(w,F){this.eventListeners.removeEventListener(w,F)},se.prototype.renderState=function(w){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(w),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(se.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),se.prototype.focus=function(){var w=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(F){return F(new Le(w))}))},se.prototype.blur=function(){var w=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(F){return F(new Le(w))}))},se.instanceCounter=0,se}()},T8No:function(Ot,Ne,ie){"use strict";ie.d(Ne,"a",function(){return oe}),ie.d(Ne,"e",function(){return V}),ie.d(Ne,"c",function(){return b}),ie.d(Ne,"b",function(){return E}),ie.d(Ne,"d",function(){return O}),ie.d(Ne,"f",function(){return Z});var Se=ie("MNsG"),ae=ie("N0LK"),X=ie("Cg/j");let le=Se.k||"";const j=new Map;j.set("false",!1),j.set("true",!0),j.set("isMac",Se.f),j.set("isLinux",Se.d),j.set("isWindows",Se.i),j.set("isWeb",Se.h),j.set("isMacNative",Se.f&&!Se.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 W=Object.prototype.hasOwnProperty;class oe{static has(P){return T.create(P)}static equals(P,z){return y.create(P,z)}static regex(P,z){return I.create(P,z)}static not(P){return g.create(P)}static and(...P){return L.create(P,null)}static or(...P){return C.create(P,null,!0)}static deserialize(P,z=!1){return P?this._deserializeOrExpression(P,z):void 0}static _deserializeOrExpression(P,z){let Q=P.split("||");return C.create(Q.map(H=>this._deserializeAndExpression(H,z)),null,!0)}static _deserializeAndExpression(P,z){let Q=P.split("&&");return L.create(Q.map(H=>this._deserializeOne(H,z)),null)}static _deserializeOne(P,z){if(P=P.trim(),P.indexOf("!=")>=0){let Q=P.split("!=");return _.create(Q[0].trim(),this._deserializeValue(Q[1],z))}if(P.indexOf("==")>=0){let Q=P.split("==");return y.create(Q[0].trim(),this._deserializeValue(Q[1],z))}if(P.indexOf("=~")>=0){let Q=P.split("=~");return I.create(Q[0].trim(),this._deserializeRegexValue(Q[1],z))}if(P.indexOf(" in ")>=0){let Q=P.split(" in ");return p.create(Q[0].trim(),Q[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(P)){const Q=P.split(">=");return d.create(Q[0].trim(),Q[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(P)){const Q=P.split(">");return c.create(Q[0].trim(),Q[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(P)){const Q=P.split("<=");return D.create(Q[0].trim(),Q[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(P)){const Q=P.split("<");return R.create(Q[0].trim(),Q[1].trim())}return/^\!\s*/.test(P)?g.create(P.substr(1).trim()):T.create(P)}static _deserializeValue(P,z){if(P=P.trim(),P==="true")return!0;if(P==="false")return!1;let Q=/^'([^']*)'$/.exec(P);return Q?Q[1].trim():P}static _deserializeRegexValue(P,z){if(Object(ae.C)(P)){if(z)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let Q=P.indexOf("/"),H=P.lastIndexOf("/");if(Q===H||Q<0){if(z)throw new Error(`bad regexp-value '${P}', missing /-enclosure`);return console.warn(`bad regexp-value '${P}', missing /-enclosure`),null}let ne=P.slice(Q+1,H),ce=P[H+1]==="i"?"i":"";try{return new RegExp(ne,ce)}catch(we){if(z)throw new Error(`bad regexp-value '${P}', parse error: ${we}`);return console.warn(`bad regexp-value '${P}', parse error: ${we}`),null}}}function V(P,z){const Q=P?P.substituteConstants():void 0,H=z?z.substituteConstants():void 0;return!Q&&!H?!0:!Q||!H?!1:Q.equals(H)}function l(P,z){return P.cmp(z)}class B{constructor(){this.type=0}cmp(P){return this.type-P.type}equals(P){return P.type===this.type}substituteConstants(){return this}evaluate(P){return!1}serialize(){return"false"}keys(){return[]}negate(){return A.INSTANCE}}B.INSTANCE=new B;class A{constructor(){this.type=1}cmp(P){return this.type-P.type}equals(P){return P.type===this.type}substituteConstants(){return this}evaluate(P){return!0}serialize(){return"true"}keys(){return[]}negate(){return B.INSTANCE}}A.INSTANCE=new A;class T{constructor(P,z){this.key=P,this.negated=z,this.type=2}static create(P,z=null){const Q=j.get(P);return typeof Q=="boolean"?Q?A.INSTANCE:B.INSTANCE:new T(P,z)}cmp(P){return P.type!==this.type?this.type-P.type:x(this.key,P.key)}equals(P){return P.type===this.type?this.key===P.key:!1}substituteConstants(){const P=j.get(this.key);return typeof P=="boolean"?P?A.INSTANCE:B.INSTANCE:this}evaluate(P){return!!P.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 y{constructor(P,z,Q){this.key=P,this.value=z,this.negated=Q,this.type=4}static create(P,z,Q=null){if(typeof z=="boolean")return z?T.create(P,Q):g.create(P,Q);const H=j.get(P);if(typeof H=="boolean"){const ne=H?"true":"false";return z===ne?A.INSTANCE:B.INSTANCE}return new y(P,z,Q)}cmp(P){return P.type!==this.type?this.type-P.type:k(this.key,this.value,P.key,P.value)}equals(P){return P.type===this.type?this.key===P.key&&this.value===P.value:!1}substituteConstants(){const P=j.get(this.key);if(typeof P=="boolean"){const z=P?"true":"false";return this.value===z?A.INSTANCE:B.INSTANCE}return this}evaluate(P){return P.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=_.create(this.key,this.value,this)),this.negated}}class p{constructor(P,z){this.key=P,this.valueKey=z,this.type=10,this.negated=null}static create(P,z){return new p(P,z)}cmp(P){return P.type!==this.type?this.type-P.type:k(this.key,this.valueKey,P.key,P.valueKey)}equals(P){return P.type===this.type?this.key===P.key&&this.valueKey===P.valueKey:!1}substituteConstants(){return this}evaluate(P){const z=P.getValue(this.valueKey),Q=P.getValue(this.key);return Array.isArray(z)?z.indexOf(Q)>=0:typeof Q=="string"&&typeof z=="object"&&z!==null?W.call(z,Q):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=v.create(this)),this.negated}}class v{constructor(P){this._actual=P,this.type=11}static create(P){return new v(P)}cmp(P){return P.type!==this.type?this.type-P.type:this._actual.cmp(P._actual)}equals(P){return P.type===this.type?this._actual.equals(P._actual):!1}substituteConstants(){return this}evaluate(P){return!this._actual.evaluate(P)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class _{constructor(P,z,Q){this.key=P,this.value=z,this.negated=Q,this.type=5}static create(P,z,Q=null){if(typeof z=="boolean")return z?g.create(P,Q):T.create(P,Q);const H=j.get(P);if(typeof H=="boolean"){const ne=H?"true":"false";return z===ne?B.INSTANCE:A.INSTANCE}return new _(P,z,Q)}cmp(P){return P.type!==this.type?this.type-P.type:k(this.key,this.value,P.key,P.value)}equals(P){return P.type===this.type?this.key===P.key&&this.value===P.value:!1}substituteConstants(){const P=j.get(this.key);if(typeof P=="boolean"){const z=P?"true":"false";return this.value===z?B.INSTANCE:A.INSTANCE}return this}evaluate(P){return P.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=y.create(this.key,this.value,this)),this.negated}}class g{constructor(P,z){this.key=P,this.negated=z,this.type=3}static create(P,z=null){const Q=j.get(P);return typeof Q=="boolean"?Q?B.INSTANCE:A.INSTANCE:new g(P,z)}cmp(P){return P.type!==this.type?this.type-P.type:x(this.key,P.key)}equals(P){return P.type===this.type?this.key===P.key:!1}substituteConstants(){const P=j.get(this.key);return typeof P=="boolean"?P?B.INSTANCE:A.INSTANCE:this}evaluate(P){return!P.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this.key,this)),this.negated}}function h(P,z){if(typeof P=="string"){const Q=parseFloat(P);isNaN(Q)||(P=Q)}return typeof P=="string"||typeof P=="number"?z(P):B.INSTANCE}class c{constructor(P,z,Q){this.key=P,this.value=z,this.negated=Q,this.type=12}static create(P,z,Q=null){return h(z,H=>new c(P,H,Q))}cmp(P){return P.type!==this.type?this.type-P.type:k(this.key,this.value,P.key,P.value)}equals(P){return P.type===this.type?this.key===P.key&&this.value===P.value:!1}substituteConstants(){return this}evaluate(P){return typeof this.value=="string"?!1:parseFloat(P.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 d{constructor(P,z,Q){this.key=P,this.value=z,this.negated=Q,this.type=13}static create(P,z,Q=null){return h(z,H=>new d(P,H,Q))}cmp(P){return P.type!==this.type?this.type-P.type:k(this.key,this.value,P.key,P.value)}equals(P){return P.type===this.type?this.key===P.key&&this.value===P.value:!1}substituteConstants(){return this}evaluate(P){return typeof this.value=="string"?!1:parseFloat(P.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this.value,this)),this.negated}}class R{constructor(P,z,Q){this.key=P,this.value=z,this.negated=Q,this.type=14}static create(P,z,Q=null){return h(z,H=>new R(P,H,Q))}cmp(P){return P.type!==this.type?this.type-P.type:k(this.key,this.value,P.key,P.value)}equals(P){return P.type===this.type?this.key===P.key&&this.value===P.value:!1}substituteConstants(){return this}evaluate(P){return typeof this.value=="string"?!1:parseFloat(P.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 D{constructor(P,z,Q){this.key=P,this.value=z,this.negated=Q,this.type=15}static create(P,z,Q=null){return h(z,H=>new D(P,H,Q))}cmp(P){return P.type!==this.type?this.type-P.type:k(this.key,this.value,P.key,P.value)}equals(P){return P.type===this.type?this.key===P.key&&this.value===P.value:!1}substituteConstants(){return this}evaluate(P){return typeof this.value=="string"?!1:parseFloat(P.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 I{constructor(P,z){this.key=P,this.regexp=z,this.type=7,this.negated=null}static create(P,z){return new I(P,z)}cmp(P){if(P.type!==this.type)return this.type-P.type;if(this.key<P.key)return-1;if(this.key>P.key)return 1;const z=this.regexp?this.regexp.source:"",Q=P.regexp?P.regexp.source:"";return z<Q?-1:z>Q?1:0}equals(P){if(P.type===this.type){const z=this.regexp?this.regexp.source:"",Q=P.regexp?P.regexp.source:"";return this.key===P.key&&z===Q}return!1}substituteConstants(){return this}evaluate(P){let z=P.getValue(this.key);return this.regexp?this.regexp.test(z):!1}serialize(){const P=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${P}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=N.create(this)),this.negated}}class N{constructor(P){this._actual=P,this.type=8}static create(P){return new N(P)}cmp(P){return P.type!==this.type?this.type-P.type:this._actual.cmp(P._actual)}equals(P){return P.type===this.type?this._actual.equals(P._actual):!1}substituteConstants(){return this}evaluate(P){return!this._actual.evaluate(P)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function S(P){let z=null;for(let Q=0,H=P.length;Q<H;Q++){const ne=P[Q].substituteConstants();if(P[Q]!==ne&&z===null){z=[];for(let ce=0;ce<Q;ce++)z[ce]=P[ce]}z!==null&&(z[Q]=ne)}return z===null?P:z}class L{constructor(P,z){this.expr=P,this.negated=z,this.type=6}static create(P,z){return L._normalizeArr(P,z)}cmp(P){if(P.type!==this.type)return this.type-P.type;if(this.expr.length<P.expr.length)return-1;if(this.expr.length>P.expr.length)return 1;for(let z=0,Q=this.expr.length;z<Q;z++){const H=l(this.expr[z],P.expr[z]);if(H!==0)return H}return 0}equals(P){if(P.type===this.type){if(this.expr.length!==P.expr.length)return!1;for(let z=0,Q=this.expr.length;z<Q;z++)if(!this.expr[z].equals(P.expr[z]))return!1;return!0}return!1}substituteConstants(){const P=S(this.expr);return P===this.expr?this:L.create(P,this.negated)}evaluate(P){for(let z=0,Q=this.expr.length;z<Q;z++)if(!this.expr[z].evaluate(P))return!1;return!0}static _normalizeArr(P,z){const Q=[];let H=!1;for(const ne of P){if(!ne)continue;if(ne.type===1){H=!0;continue}if(ne.type===0)return B.INSTANCE;if(ne.type===6){Q.push(...ne.expr);continue}Q.push(ne)}if(Q.length===0&&H)return A.INSTANCE;if(Q.length===0)return;if(Q.length===1)return Q[0];Q.sort(l);for(let ne=1;ne<Q.length;ne++)Q[ne-1].equals(Q[ne])&&(Q.splice(ne,1),ne--);if(Q.length===1)return Q[0];for(;Q.length>1;){const ne=Q[Q.length-1];if(ne.type!==9)break;Q.pop();const ce=Q.pop(),we=Q.length===0,Ce=C.create(ne.expr.map(ze=>L.create([ze,ce],null)),null,we);Ce&&(Q.push(Ce),Q.sort(l))}return Q.length===1?Q[0]:new L(Q,z)}serialize(){return this.expr.map(P=>P.serialize()).join(" && ")}keys(){const P=[];for(let z of this.expr)P.push(...z.keys());return P}negate(){if(!this.negated){const P=[];for(let z of this.expr)P.push(z.negate());this.negated=C.create(P,this,!0)}return this.negated}}class C{constructor(P,z){this.expr=P,this.negated=z,this.type=9}static create(P,z,Q){return C._normalizeArr(P,z,Q)}cmp(P){if(P.type!==this.type)return this.type-P.type;if(this.expr.length<P.expr.length)return-1;if(this.expr.length>P.expr.length)return 1;for(let z=0,Q=this.expr.length;z<Q;z++){const H=l(this.expr[z],P.expr[z]);if(H!==0)return H}return 0}equals(P){if(P.type===this.type){if(this.expr.length!==P.expr.length)return!1;for(let z=0,Q=this.expr.length;z<Q;z++)if(!this.expr[z].equals(P.expr[z]))return!1;return!0}return!1}substituteConstants(){const P=S(this.expr);return P===this.expr?this:C.create(P,this.negated,!1)}evaluate(P){for(let z=0,Q=this.expr.length;z<Q;z++)if(this.expr[z].evaluate(P))return!0;return!1}static _normalizeArr(P,z,Q){let H=[],ne=!1;if(P){for(let ce=0,we=P.length;ce<we;ce++){const Ce=P[ce];if(!Ce)continue;if(Ce.type===0){ne=!0;continue}if(Ce.type===1)return A.INSTANCE;if(Ce.type===9){H=H.concat(Ce.expr);continue}H.push(Ce)}if(H.length===0&&ne)return B.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(Q){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 C(H,z)}serialize(){return this.expr.map(P=>P.serialize()).join(" || ")}keys(){const P=[];for(let z of this.expr)P.push(...z.keys());return P}negate(){if(!this.negated){let P=[];for(let z of this.expr)P.push(z.negate());for(;P.length>1;){const z=P.shift(),Q=P.shift(),H=[];for(const ce of G(z))for(const we of G(Q))H.push(L.create([ce,we],null));const ne=P.length===0;P.unshift(C.create(H,null,ne))}this.negated=P[0]}return this.negated}}class b extends T{constructor(P,z,Q){super(P,null);this._defaultValue=z,typeof Q=="object"?b._info.push(Object.assign(Object.assign({},Q),{key:P})):Q!==!0&&b._info.push({key:P,description:Q,type:z!=null?typeof z:void 0})}static all(){return b._info.values()}bindTo(P){return P.createKey(this.key,this._defaultValue)}getValue(P){return P.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(P){return y.create(this.key,P)}}b._info=[];const E=Object(X.c)("contextKeyService"),O="setContext";function x(P,z){return P<z?-1:P>z?1:0}function k(P,z,Q,H){return P<Q?-1:P>Q?1:z<H?-1:z>H?1:0}function Z(P,z){if(z.type===6&&P.type!==9&&P.type!==6){for(const ne of z.expr)if(P.equals(ne))return!0}const Q=P.negate(),H=G(Q).concat(G(z));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 ze=H[Ce];if(we.equals(ze))return!0}}return!1}function G(P){return P.type===9?P.expr:[P]}},TXwP:function(Ot,Ne,ie){var Se,ae;(function(){var X;(function(){"use strict";var j=[,,function(l){function B(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=[]}B.prototype.clone_empty=function(){var y=new B(this.__parent);return y.set_indent(this.__indent_count,this.__alignment_count),y},B.prototype.item=function(y){return y<0?this.__items[this.__items.length+y]:this.__items[y]},B.prototype.has_match=function(y){for(var p=this.__items.length-1;p>=0;p--)if(this.__items[p].match(y))return!0;return!1},B.prototype.set_indent=function(y,p){this.is_empty()&&(this.__indent_count=y||0,this.__alignment_count=p||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},B.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)},B.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},B.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},B.prototype.is_empty=function(){return this.__items.length===0},B.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},B.prototype.push=function(y){this.__items.push(y);var p=y.lastIndexOf(`
`);p!==-1?this.__character_count=y.length-p:this.__character_count+=y.length},B.prototype.pop=function(){var y=null;return this.is_empty()||(y=this.__items.pop(),this.__character_count-=y.length),y},B.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},B.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},B.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},B.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 A(y,p){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)),p=p||"",y.indent_level>0&&(p=new Array(y.indent_level+1).join(this.__indent_string)),this.__base_string=p,this.__base_string_length=p.length}A.prototype.get_indent_size=function(y,p){var v=this.__base_string_length;return p=p||0,y<0&&(v=0),v+=y*this.__indent_size,v+=p,v},A.prototype.get_indent_string=function(y,p){var v=this.__base_string;return p=p||0,y<0&&(y=0,v=""),p+=y*this.__indent_size,this.__ensure_cache(p),v+=this.__cache[p],v},A.prototype.__ensure_cache=function(y){for(;y>=this.__cache.length;)this.__add_column()},A.prototype.__add_column=function(){var y=this.__cache.length,p=0,v="";this.__indent_size&&y>=this.__indent_size&&(p=Math.floor(y/this.__indent_size),y-=p*this.__indent_size,v=new Array(p+1).join(this.__indent_string)),y&&(v+=new Array(y+1).join(" ")),this.__cache.push(v)};function T(y,p){this.__indent_cache=new A(y,p),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 B(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}T.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},T.prototype.get_line_number=function(){return this.__lines.length},T.prototype.get_indent_string=function(y,p){return this.__indent_cache.get_indent_string(y,p)},T.prototype.get_indent_size=function(y,p){return this.__indent_cache.get_indent_size(y,p)},T.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},T.prototype.add_new_line=function(y){return this.is_empty()||!y&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},T.prototype.get_code=function(y){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 v=this.__lines.join(`
`);return y!==`
`&&(v=v.replace(/[\n]/g,y)),v},T.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},T.prototype.set_indent=function(y,p){return y=y||0,p=p||0,this.next_line.set_indent(y,p),this.__lines.length>1?(this.current_line.set_indent(y,p),!0):(this.current_line.set_indent(),!1)},T.prototype.add_raw_token=function(y){for(var p=0;p<y.newlines;p++)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},T.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()},T.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(" "))},T.prototype.remove_indent=function(y){for(var p=this.__lines.length;y<p;)this.__lines[y]._remove_indent(),y++;this.current_line._remove_wrap_indent()},T.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},T.prototype.just_added_newline=function(){return this.current_line.is_empty()},T.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},T.prototype.ensure_empty_line_above=function(y,p){for(var v=this.__lines.length-2;v>=0;){var _=this.__lines[v];if(_.is_empty())break;if(_.item(0).indexOf(y)!==0&&_.item(-1)!==p){this.__lines.splice(v+1,0,new B(this)),this.previous_line=this.__lines[this.__lines.length-2];break}v--}},l.exports.Output=T},,,,function(l){function B(y,p){this.raw_options=A(y,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"])}B.prototype._get_array=function(y,p){var v=this.raw_options[y],_=p||[];return typeof v=="object"?v!==null&&typeof v.concat=="function"&&(_=v.concat()):typeof v=="string"&&(_=v.split(/[^a-zA-Z0-9_\/\-]+/)),_},B.prototype._get_boolean=function(y,p){var v=this.raw_options[y],_=v===void 0?!!p:!!v;return _},B.prototype._get_characters=function(y,p){var v=this.raw_options[y],_=p||"";return typeof v=="string"&&(_=v.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),_},B.prototype._get_number=function(y,p){var v=this.raw_options[y];p=parseInt(p,10),isNaN(p)&&(p=0);var _=parseInt(v,10);return isNaN(_)&&(_=p),_},B.prototype._get_selection=function(y,p,v){var _=this._get_selection_list(y,p,v);if(_.length!==1)throw new Error("Invalid Option Value: The option '"+y+`' can only be one of the following values:
`+p+`
You passed in: '`+this.raw_options[y]+"'");return _[0]},B.prototype._get_selection_list=function(y,p,v){if(!p||p.length===0)throw new Error("Selection list cannot be empty.");if(v=v||[p[0]],!this._is_valid_selection(v,p))throw new Error("Invalid Default Value!");var _=this._get_array(y,v);if(!this._is_valid_selection(_,p))throw new Error("Invalid Option Value: The option '"+y+`' can contain only the following values:
`+p+`
You passed in: '`+this.raw_options[y]+"'");return _},B.prototype._is_valid_selection=function(y,p){return y.length&&p.length&&!y.some(function(v){return p.indexOf(v)===-1})};function A(y,p){var v={};y=T(y);var _;for(_ in y)_!==p&&(v[_]=y[_]);if(p&&y[p])for(_ in y[p])v[_]=y[p][_];return v}function T(y){var p={},v;for(v in y){var _=v.replace(/-/g,"_");p[_]=y[v]}return p}l.exports.Options=B,l.exports.normalizeOpts=T,l.exports.mergeOpts=A},,function(l){var B=RegExp.prototype.hasOwnProperty("sticky");function A(T){this.__input=T||"",this.__input_length=this.__input.length,this.__position=0}A.prototype.restart=function(){this.__position=0},A.prototype.back=function(){this.__position>0&&(this.__position-=1)},A.prototype.hasNext=function(){return this.__position<this.__input_length},A.prototype.next=function(){var T=null;return this.hasNext()&&(T=this.__input.charAt(this.__position),this.__position+=1),T},A.prototype.peek=function(T){var y=null;return T=T||0,T+=this.__position,T>=0&&T<this.__input_length&&(y=this.__input.charAt(T)),y},A.prototype.__match=function(T,y){T.lastIndex=y;var p=T.exec(this.__input);return p&&!(B&&T.sticky)&&(p.index!==y&&(p=null)),p},A.prototype.test=function(T,y){return y=y||0,y+=this.__position,y>=0&&y<this.__input_length?!!this.__match(T,y):!1},A.prototype.testChar=function(T,y){var p=this.peek(y);return T.lastIndex=0,p!==null&&T.test(p)},A.prototype.match=function(T){var y=this.__match(T,this.__position);return y?this.__position+=y[0].length:y=null,y},A.prototype.read=function(T,y,p){var v="",_;return T&&(_=this.match(T),_&&(v+=_[0])),y&&(_||!T)&&(v+=this.readUntil(y,p)),v},A.prototype.readUntil=function(T,y){var p="",v=this.__position;T.lastIndex=this.__position;var _=T.exec(this.__input);return _?(v=_.index,y&&(v+=_[0].length)):v=this.__input_length,p=this.__input.substring(this.__position,v),this.__position=v,p},A.prototype.readUntilAfter=function(T){return this.readUntil(T,!0)},A.prototype.get_regexp=function(T,y){var p=null,v="g";return y&&B&&(v="y"),typeof T=="string"&&T!==""?p=new RegExp(T,v):T&&(p=new RegExp(T.source,v)),p},A.prototype.get_literal_regexp=function(T){return RegExp(T.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},A.prototype.peekUntilAfter=function(T){var y=this.__position,p=this.readUntilAfter(T);return this.__position=y,p},A.prototype.lookBack=function(T){var y=this.__position-1;return y>=T.length&&this.__input.substring(y-T.length,y).toLowerCase()===T},l.exports.InputScanner=A},,,,,function(l){function B(A,T){A=typeof A=="string"?A:A.source,T=typeof T=="string"?T:T.source,this.__directives_block_pattern=new RegExp(A+/ beautify( \w+[:]\w+)+ /.source+T,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(A+/\sbeautify\signore:end\s/.source+T,"g")}B.prototype.get_directives=function(A){if(!A.match(this.__directives_block_pattern))return null;var T={};this.__directive_pattern.lastIndex=0;for(var y=this.__directive_pattern.exec(A);y;)T[y[1]]=y[2],y=this.__directive_pattern.exec(A);return T},B.prototype.readIgnored=function(A){return A.readUntilAfter(this.__directives_end_ignore_pattern)},l.exports.Directives=B},,function(l,B,A){var T=A(16).Beautifier,y=A(17).Options;function p(v,_){var g=new T(v,_);return g.beautify()}l.exports=p,l.exports.defaultOptions=function(){return new y}},function(l,B,A){var T=A(17).Options,y=A(2).Output,p=A(8).InputScanner,v=A(13).Directives,_=new v(/\/\*/,/\*\//),g=/\r\n|[\r\n]/,h=/\r\n|[\r\n]/g,c=/\s/,d=/(?:\s|\n)+/g,R=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,D=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function I(N,S){this._source_text=N||"",this._options=new T(S),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"]}I.prototype.eatString=function(N){var S="";for(this._ch=this._input.next();this._ch;){if(S+=this._ch,this._ch==="\\")S+=this._input.next();else if(N.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return S},I.prototype.eatWhitespace=function(N){for(var S=c.test(this._input.peek()),L=0;c.test(this._input.peek());)this._ch=this._input.next(),N&&this._ch===`
`&&((L===0||L<this._options.max_preserve_newlines)&&(L++,this._output.add_new_line(!0)));return S},I.prototype.foundNestedPseudoClass=function(){for(var N=0,S=1,L=this._input.peek(S);L;){if(L==="{")return!0;if(L==="(")N+=1;else if(L===")"){if(N===0)return!1;N-=1}else if(L===";"||L==="}")return!1;S++,L=this._input.peek(S)}return!1},I.prototype.print_string=function(N){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(N)},I.prototype.preserveSingleSpace=function(N){N&&(this._output.space_before_token=!0)},I.prototype.indent=function(){this._indentLevel++},I.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},I.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var N=this._source_text,S=this._options.eol;S==="auto"&&(S=`
`,N&&g.test(N||"")&&(S=N.match(g)[0])),N=N.replace(h,`
`);var L=N.match(/^[\t ]*/)[0];this._output=new y(this._options,L),this._input=new p(N),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var C=0,b=!1,E=!1,O=!1,x=!1,k=!1,Z=!1,G=this._ch,P=!1,z,Q,H;z=this._input.read(d),Q=z!=="",H=G,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),G=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var ne=this._input.read(R),ce=_.get_directives(ne);ce&&ce.ignore==="start"&&(ne+=_.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(D)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(Q),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"?x=!0:we==="import"&&(k=!0),we in this.NESTED_AT_RULE?(this._nestedLevel+=1,we in this.CONDITIONAL_GROUP_RULE&&(O=!0)):!b&&C===0&&we.indexOf(":")!==-1&&(E=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(Q),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")E&&(E=!1,this.outdent()),O?(O=!1,b=this._indentLevel>=this._nestedLevel):b=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&b&&(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),k=!1,x=!1,E&&(this.outdent(),E=!1),this.print_string(this._ch),b=!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])){P=!0;break}(b||O)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!x&&C===0?(this.print_string(":"),E||(E=!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 ze=H==='"'||H==="'";this.preserveSingleSpace(ze||Q),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")P=!1,C===0?(E&&(this.outdent(),E=!1),x=!1,k=!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(),C++,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(")")),C&&(C--,this.outdent()));else{var Le=!1;this._input.lookBack("with")&&(Le=!0),this.preserveSingleSpace(Q||Le),this.print_string(this._ch),E&&H==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),Z=!0):(this.eatWhitespace(),C++,this.indent())}else if(this._ch===")")C&&(C--,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&&(!E||Z)&&C===0&&!k&&!x?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!E&&C===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(Q),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 We=H==='"'||H==="'";this.preserveSingleSpace(We||Q),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&P&&this._output.add_new_line()}var Ve=this._output.get_code(S);return Ve},l.exports.Beautifier=I},function(l,B,A){var T=A(6).Options;function y(p){T.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 v=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||v;var _=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var g=0;g<_.length;g++)_[g]!=="expand"?this.brace_style="collapse":this.brace_style=_[g]}y.prototype=new T,l.exports.Options=y}],W={};function oe(l){var B=W[l];if(B!==void 0)return B.exports;var A=W[l]={exports:{}};return j[l](A,A.exports,oe),A.exports}var V=oe(15);X=V})();var le=X;!(Se=[],ae=function(){return{css_beautify:le}}.apply(Ne,Se),ae!==void 0&&(Ot.exports=ae))})()},Vg4E:function(Ot,Ne,ie){},Vhoy:function(Ot,Ne,ie){"use strict";ie.d(Ne,"d",function(){return le}),ie.d(Ne,"e",function(){return j}),ie.d(Ne,"c",function(){return W}),ie.d(Ne,"b",function(){return oe}),ie.d(Ne,"a",function(){return V});var Se=ie("MI8n");class ae{constructor(){this._icons=new Map,this._onDidRegister=new Se.b}add(l){const B=this._icons.get(l.id);B?l.description?B.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,B){return new oe(l,B)}function W(l){return l?l.replace(/\$\((.*?)\)/g,(B,A)=>` ${A} `).trim():""}class oe{constructor(l,B,A){this.id=l,this.definition=B,this.description=A,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 B=new RegExp(`^(${l.iconNameExpression})(${l.iconModifierExpression})?$`);function A(p){if(p instanceof oe)return["codicon","codicon-"+p.id];const v=B.exec(p.id);if(!v)return A(oe.error);let[,_,g]=v;const h=["codicon","codicon-"+_];return g&&h.push("codicon-modifier-"+g.substr(1)),h}l.asClassNameArray=A;function T(p){return A(p).join(" ")}l.asClassName=T;function y(p){return"."+A(p).join(".")}l.asCSSSelector=y})(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(Ot,Ne,ie){"use strict";ie.r(Ne),ie.d(Ne,"ResizableTextArea",function(){return we});var Se=ie("wx14"),ae=ie("1OyB"),X=ie("vuIU"),le=ie("Ji7U"),j=ie("LK+K"),W=ie("q1tI"),oe=ie("VTBJ"),V=ie("rePB"),l=ie("Zm9Q"),B=ie("Kwbf"),A=ie("c+Xe"),T=ie("m+aA"),y=ie("bdgK"),p=new Map;function v(Le){Le.forEach(function(We){var Ve,$e=We.target;(Ve=p.get($e))===null||Ve===void 0||Ve.forEach(function(Pe){return Pe($e)})})}var _=new y.default(v),g=null,h=null;function c(Le,We){p.has(Le)||(p.set(Le,new Set),_.observe(Le)),p.get(Le).add(We)}function d(Le,We){p.has(Le)&&(p.get(Le).delete(We),p.get(Le).size||(_.unobserve(Le),p.delete(Le)))}var R=function(Le){Object(le.a)(Ve,Le);var We=Object(j.a)(Ve);function Ve(){return Object(ae.a)(this,Ve),We.apply(this,arguments)}return Object(X.a)(Ve,[{key:"render",value:function(){return this.props.children}}]),Ve}(W.Component),D=W.createContext(null);function I(Le){var We=Le.children,Ve=Le.onBatchResize,$e=W.useRef(0),Pe=W.useRef([]),se=W.useContext(D),w=W.useCallback(function(F,Y,ue){$e.current+=1;var q=$e.current;Pe.current.push({size:F,element:Y,data:ue}),Promise.resolve().then(function(){q===$e.current&&(Ve==null||Ve(Pe.current),Pe.current=[])}),se==null||se(F,Y,ue)},[Ve,se]);return W.createElement(D.Provider,{value:w},We)}function N(Le){var We=Le.children,Ve=Le.disabled,$e=W.useRef(null),Pe=W.useRef(null),se=W.useContext(D),w=W.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),F=W.isValidElement(We)&&Object(A.c)(We),Y=F?We.ref:null,ue=W.useMemo(function(){return Object(A.a)(Y,$e)},[Y,$e]),q=W.useRef(Le);q.current=Le;var xe=W.useCallback(function(Be){var it=q.current,be=it.onResize,Re=it.data,je=Be.getBoundingClientRect(),Ye=je.width,ft=je.height,Rt=Be.offsetWidth,Jt=Be.offsetHeight,Wt=Math.floor(Ye),Nt=Math.floor(ft);if(w.current.width!==Wt||w.current.height!==Nt||w.current.offsetWidth!==Rt||w.current.offsetHeight!==Jt){var sn={width:Wt,height:Nt,offsetWidth:Rt,offsetHeight:Jt};w.current=sn;var an=Rt===Math.round(Ye)?Ye:Rt,zt=Jt===Math.round(ft)?ft:Jt,mn=Object(oe.a)(Object(oe.a)({},sn),{},{offsetWidth:an,offsetHeight:zt});se==null||se(mn,Be,Re),be&&Promise.resolve().then(function(){be(mn,Be)})}},[]);return W.useEffect(function(){var Be=Object(T.a)($e.current)||Object(T.a)(Pe.current);return Be&&!Ve&&c(Be,xe),function(){return d(Be,xe)}},[$e.current,Ve]),W.createElement(R,{ref:Pe},F?W.cloneElement(We,{ref:ue}):We)}var S="rc-observer-key";function L(Le){var We=Le.children,Ve=Object(l.a)(We);return Ve.map(function($e,Pe){var se=($e==null?void 0:$e.key)||"".concat(S,"-").concat(Pe);return W.createElement(N,Object(Se.a)({},Le,{key:se}),$e)})}L.Collection=I;var C=L,b=ie("bT9E"),E=ie("TSYQ"),O=ie.n(E),x=`
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
`,k=["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={},G;function P(Le){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ve=Le.getAttribute("id")||Le.getAttribute("data-reactid")||Le.getAttribute("name");if(We&&Z[Ve])return Z[Ve];var $e=window.getComputedStyle(Le),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")),w=parseFloat($e.getPropertyValue("border-bottom-width"))+parseFloat($e.getPropertyValue("border-top-width")),F=k.map(function(ue){return"".concat(ue,":").concat($e.getPropertyValue(ue))}).join(";"),Y={sizingStyle:F,paddingSize:se,borderSize:w,boxSizing:Pe};return We&&Ve&&(Z[Ve]=Y),Y}function z(Le){var We=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;G||(G=document.createElement("textarea"),G.setAttribute("tab-index","-1"),G.setAttribute("aria-hidden","true"),document.body.appendChild(G)),Le.getAttribute("wrap")?G.setAttribute("wrap",Le.getAttribute("wrap")):G.removeAttribute("wrap");var Pe=P(Le,We),se=Pe.paddingSize,w=Pe.borderSize,F=Pe.boxSizing,Y=Pe.sizingStyle;G.setAttribute("style","".concat(Y,";").concat(x)),G.value=Le.value||Le.placeholder||"";var ue=Number.MIN_SAFE_INTEGER,q=Number.MAX_SAFE_INTEGER,xe=G.scrollHeight,Be;if(F==="border-box"?xe+=w:F==="content-box"&&(xe-=se),Ve!==null||$e!==null){G.value=" ";var it=G.scrollHeight-se;Ve!==null&&(ue=it*Ve,F==="border-box"&&(ue=ue+se+w),xe=Math.max(ue,xe)),$e!==null&&(q=it*$e,F==="border-box"&&(q=q+se+w),Be=xe>q?"":"hidden",xe=Math.min(q,xe))}return{height:xe,minHeight:ue,maxHeight:q,overflowY:Be,resize:"none"}}var Q=ie("Gytx"),H=ie.n(Q),ne;(function(Le){Le[Le.NONE=0]="NONE",Le[Le.RESIZING=1]="RESIZING",Le[Le.RESIZED=2]="RESIZED"})(ne||(ne={}));var ce=function(Le){Object(le.a)(Ve,Le);var We=Object(j.a)(Ve);function Ve($e){var Pe;return Object(ae.a)(this,Ve),Pe=We.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 w=Pe.state.resizeStatus,F=Pe.props,Y=F.autoSize,ue=F.onResize;if(w!==ne.NONE)return;typeof ue=="function"&&ue(se),Y&&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 w=se.minRows,F=se.maxRows,Y=z(Pe.textArea,!1,w,F);Pe.setState({textareaStyles:Y,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,w=se.prefixCls,F=w===void 0?"rc-textarea":w,Y=se.autoSize,ue=se.onResize,q=se.className,xe=se.disabled,Be=Pe.state,it=Be.textareaStyles,be=Be.resizeStatus,Re=Object(b.a)(Pe.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),je=O()(F,q,Object(V.a)({},"".concat(F,"-disabled"),xe));"value"in Re&&(Re.value=Re.value||"");var Ye=Object(oe.a)(Object(oe.a)(Object(oe.a)({},Pe.props.style),it),be===ne.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return W.createElement(C,{onResize:Pe.handleResize,disabled:!(Y||ue)},W.createElement("textarea",Object(Se.a)({},Re,{className:je,style:Ye,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(w){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Ve}(W.Component),we=ce,Ce=function(Le){Object(le.a)(Ve,Le);var We=Object(j.a)(Ve);function Ve($e){var Pe;Object(ae.a)(this,Ve),Pe=We.call(this,$e),Pe.resizableTextArea=void 0,Pe.focus=function(){Pe.resizableTextArea.textArea.focus()},Pe.saveTextArea=function(w){Pe.resizableTextArea=w},Pe.handleChange=function(w){var F=Pe.props.onChange;Pe.setValue(w.target.value,function(){Pe.resizableTextArea.resizeTextarea()}),F&&F(w)},Pe.handleKeyDown=function(w){var F=Pe.props,Y=F.onPressEnter,ue=F.onKeyDown;w.keyCode===13&&Y&&Y(w),ue&&ue(w)};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 W.createElement(we,Object(Se.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}(W.Component),ze=Ne.default=Ce},ZJlW:function(Ot,Ne,ie){Ot.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(Ot,Ne,ie){"use strict";ie.d(Ne,"a",function(){return Q});var Se=ie("k1fw"),ae=ie("oBTY"),X=ie("miYZ"),le=ie("tsqr"),j=ie("rAM+"),W=ie("tJVT"),oe=ie("PpiC"),V=ie("q1tI"),l=ie.n(V),B=ie("bdgK"),A=ie("9og8"),T=ie("WmNS"),y=ie.n(T),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"]},v={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"]},_={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"]}},R=function(ne,ce){return ce.map(function(we){return{label:we,kind:ne.languages.CompletionItemKind.Keyword,insertText:we}})},D=function(ne){return Object.keys(d.tables).map(function(ce){return{label:ce,kind:ne.languages.CompletionItemKind.Variable,insertText:ce}})},I=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 ze=ne.getWordUntilPosition(ce),Le={startLineNumber:ce.lineNumber,endLineNumber:ce.lineNumber,startColumn:ze.startColumn,endColumn:ze.endColumn},We=we.map(function(Ve){return{label:Ve,kind:H.languages.CompletionItemKind.Keyword,insertText:Ve,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Le}});return Ce.map(function(Ve){We.push(Object(Se.a)(Object(Se.a)({},Ve),{},{range:Le}))}),We}var S=function(H){d.languages.map(function(Ce){return H.languages.registerDocumentFormattingEditProvider(Ce,{provideDocumentFormattingEdits:function(Le,We,Ve){return Object(A.a)(y.a.mark(function $e(){var Pe;return y.a.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return Pe=c()(Le.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}),w.abrupt("return",[{range:Le.getFullModelRange(),text:Pe}]);case 2:case"end":return w.stop()}},$e)}))()}}),Ce});var ne=_.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=v.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(ze,Le){var We=ze.getWordUntilPosition(Le),Ve={startLineNumber:Le.lineNumber,endLineNumber:Le.lineNumber,startColumn:We.startColumn,endColumn:We.endColumn},$e=ze.getLineContent(Le.lineNumber).substring(We.startColumn-2,We.endColumn);return{suggestions:[].concat(Object(ae.a)(_.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)(_.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(ze,Le){var We=ze.getWordUntilPosition(Le),Ve={startLineNumber:Le.lineNumber,endLineNumber:Le.lineNumber,startColumn:We.startColumn,endColumn:We.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(ze,Le){var We=ze.getWordUntilPosition(Le),Ve={startLineNumber:Le.lineNumber,endLineNumber:Le.lineNumber,startColumn:We.startColumn,endColumn:We.endColumn},$e=ze.getLineContent(Le.lineNumber).substring(We.startColumn-2,We.endColumn);return{suggestions:[].concat(Object(ae.a)(v.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)(v.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(ze,Le){var We=ze.getWordUntilPosition(Le),Ve={startLineNumber:Le.lineNumber,endLineNumber:Le.lineNumber,startColumn:We.startColumn,endColumn:We.endColumn},$e=ze.getLineContent(Le.lineNumber).substring(We.startColumn-2,We.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}})))}}})},L="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",C=ie("fjLI"),b=ie("LvDl"),E=ie("+ua5");function O(H){return/^\d+$/.test(H)?"".concat(H,"px"):H}function x(){}var k=!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 G(){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 P=null,z=Ne.b=function(H){var ne=H.width,ce=ne===void 0?"100%":ne,we=H.height,Ce=we===void 0?"100%":we,ze=H.value,Le=H.language,We=Le===void 0?"javascript":Le,Ve=H.style,$e=Ve===void 0?{}:Ve,Pe=H.options,se=Pe===void 0?{}:Pe,w=H.overrideServices,F=w===void 0?{}:w,Y=H.theme,ue=Y===void 0?"vs-dark":Y,q=H.onEditBlur,xe=H.onSave,Be=H.autoHeight,it=Be===void 0?!1:Be,be=H.forbidCopy,Re=be===void 0?!1:be,je=H.onChange,Ye=je===void 0?x:je,ft=H.editorDidMount,Rt=ft===void 0?x:ft,Jt=H.onFocus,Wt=Jt===void 0?x:Jt,Nt=H.filename,sn=Nt===void 0?"educoder.txt":Nt,an=H.errorLine,zt=H.errorContent,mn=zt===void 0?"":zt,xn=Object(oe.a)(H,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename","errorLine","errorContent"]),Te=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),Ie=Object(W.a)(ye,2),Me=Ie[0],et=Ie[1];function qe(){var Ct;return Te.current&&(Ct=new B.default(function(nt){var Bt=Object(j.a)(nt),$t;try{for(Bt.s();!($t=Bt.n()).done;){var ln=$t.value;(ln.target.offsetHeight>0||ln.target.offsetWidth>0)&&fe.current.instance.layout()}}catch(Xn){Bt.e(Xn)}finally{Bt.f()}}),Ct.observe(Te.current)),Ct}function Tt(){le.b.warn(decodeURIComponent(L))}var cn=function(){var nt=fe.current.instance;if(ze!=null&&nt&&Me){var Bt=nt.getModel();Bt&&ze!==Bt.getValue()&&(k=!0,Bt.setValue(ze),nt.layout(),k=!1)}};Object(V.useEffect)(function(){ve.current&&clearTimeout(ve.current),ve.current=setTimeout(function(){cn()},500)},[ze,Me,fe.current]),Object(V.useEffect)(function(){if(an&&fe.current&&fe.current.instance){var Ct=fe.current.instance;Ct.changeViewZones(function(Bt){var $t=document.createElement("div");$t.style.padding="10px 20px",$t.style.width="calc(100% - 20px)",$t.className="my-error-line-wrp",$t.innerHTML=mn,Bt.addZone({afterLineNumber:an||11,heightInLines:3,domNode:$t})});var nt={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(nt),Ct.revealPositionInCenter({lineNumber:20,column:1})}},[an,fe.current,Me]);function kn(){var Ct=fe.current.instance;if(Ct){var nt=Ct.getSelection(),Bt=fe.current.pastePos||{},$t=new P.Range(Bt.startLineNumber||nt.endLineNumber,Bt.startColumn||nt.endColumn,Bt.endLineNumber||nt.endLineNumber,Bt.endColumn||nt.endColumn);setTimeout(function(){Ct.executeEdits("",[{range:$t,text:""}])},300)}}function On(Ct){(window.navigator.platform.match("Mac")?Ct.metaKey:Ct.ctrlKey)&&Ct.keyCode==83&&(Ct.preventDefault(),xe())}var Qt=function(){if(it&&fe.current.instance){var nt=fe.current.instance.getContentHeight();Et(nt<Ce?Ce:nt)}else Et(Ce)};function ht(Ct){var nt=document.createEvent("MouseEvents");nt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Ct.dispatchEvent(nt)}function yt(Ct,nt){var Bt=window.URL||window.webkitURL||window,$t=new Blob([nt]),ln=document.createElementNS("http://www.w3.org/1999/xhtml","a");ln.href=Bt.createObjectURL($t),ln.download=Ct,ht(ln)}Object(V.useEffect)(function(){Qt()},[Qt]),Object(V.useEffect)(function(){Te.current&&!Me&&Promise.all([ie.e(18),ie.e(29)]).then(ie.t.bind(null,"M/lh",7)).then(function(Ct){try{P=Ct,fe.current.instance=P.editor.create(Te.current,{value:ze,language:G(We),theme:ue,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},F);var nt=fe.current.instance,Bt=C.d._menuItems,$t=Object(ae.a)(Bt).find(function(An){return An[0]._debugName=="EditorContext"}),ln=$t[1],Xn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],In=function(gn,Un){var Hn=gn._first;do{var ar,hr,Ir=Un.includes((ar=Hn.element)===null||ar===void 0||((hr=ar.command)===null||hr===void 0)?void 0:hr.id);Ir&&gn._remove(Hn)}while(Hn=Hn.next)};if(Rt(nt,P),setTimeout(function(){Qt(),fe.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){yt(sn||"educoder.txt",nt.getValue())}}),nt.getDomNode().addEventListener("input",function(){pe.current.autoFormat&&nt.getAction("editor.action.formatDocument").run()})},500),fe.current.subscription=nt.onDidChangeModelContent(function(An){Oe.current?clearTimeout(ge.current):(Qt(),Ye(nt.getValue(),An)),ge.current=setTimeout(function(){Oe.current=!1},500)}),window.Monaco||S(P,G(We)),Re&&(In(ln,Xn),Te.current.classList.add("noCopyPaste"),nt.onKeyDown(function(An){var gn=An.keyCode,Un=An.ctrlKey,Hn=An.metaKey;(gn===33||gn===52)&&(Hn||Un)&&(Tt(),An.preventDefault())})),window.Monaco=P,q&&nt.onDidBlurEditorWidget(function(){q(nt.getValue())}),Wt&&nt.onDidFocusEditorText(function(){Wt(nt.getValue())}),Re){nt.addCommand(P.KeyMod.CtrlCmd|P.KeyCode.KEY_V,function(){return Tt(),null}),nt.onDidPaste(function(An){fe.current.pastePos=An});try{window.addEventListener("paste",kn)}catch(An){}}var dn=qe();return et(!0),function(){var An=fe.current.instance;An.dispose();var gn=An.getModel();gn&&gn.dispose(),fe.current.subscription&&fe.current.subscription.dispose(),Re&&window.removeEventListener("paste",kn),dn.unobserve(Te.current)}}catch(An){}})},[]),Object(V.useEffect)(function(){var Ct=fe.current.instance;if(Ct&&Me)return document.addEventListener("keydown",On,!1),function(){document.removeEventListener("keydown",On)}},[xe,Me]),Object(V.useEffect)(function(){var Ct=fe.current.instance;if(Ct&&Me){var nt=G(We);P.editor.setModelLanguage(Ct.getModel(),nt),console.log("language:",We,Ct.getModel(),nt)}},[We,Me]),Object(V.useEffect)(function(){var Ct=fe.current.instance;Ct&&Me&&P.editor.setTheme(ue)},[ue,Me]),Object(V.useEffect)(function(){var Ct=fe.current.instance;pe.current=se,Ct&&Me&&(Ct.updateOptions(Object(Se.a)({},se)),setTimeout(function(){Ct.getModel().updateOptions(Object(Se.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)(O(ce)),Ae=Object(W.a)(ut,2),Ue=Ae[0],vt=Ae[1],dt=Object(V.useState)(O(Ce)),en=Object(W.a)(dt,2),rn=en[0],Et=en[1],It=Object(Se.a)(Object(Se.a)({},$e),{},{width:Ue,height:rn});return l.a.createElement("div",{className:"my-monaco-editor",ref:Te,style:It})};function Q(H){var ne=H.width,ce=ne===void 0?"100%":ne,we=H.height,Ce=we===void 0?"100%":we,ze=H.original,Le=H.modified,We=H.language,Ve=H.options,$e=Ve===void 0?{}:Ve,Pe=Object(V.useRef)(),se=Object(V.useState)(null),w=Object(W.a)(se,2),F=w[0],Y=w[1];function ue(it){var be;return Pe.current&&(be=new B.default(function(Re){var je=Object(j.a)(Re),Ye;try{for(je.s();!(Ye=je.n()).done;){var ft=Ye.value;(ft.target.offsetHeight>0||ft.target.offsetWidth>0)&&it.layout()}}catch(Rt){je.e(Rt)}finally{je.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){P=it;var be=P.editor.createDiffEditor(Pe.current,Object(Se.a)(Object(Se.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}));Y(be);var Re=ue(be);return function(){be.dispose();var je=be.getModel();je&&je.dispose(),Re.unobserve(Pe.current)}})},[]),Object(V.useEffect)(function(){F&&F.setModel({original:P.editor.createModel(ze,We),modified:P.editor.createModel(Le,We)})},[ze,Le,We,F]);var q=O(ce),xe=O(Ce),Be={width:q,height:xe};return l.a.createElement("div",{className:"my-diff-editor",ref:Pe,style:Be})}},Zss7:function(Ot,Ne,ie){var Se;(function(ae){var X=/^\s+/,le=/\s+$/,j=0,W=ae.round,oe=ae.min,V=ae.max,l=ae.random;function B(w,F){if(w=w||"",F=F||{},w instanceof B)return w;if(!(this instanceof B))return new B(w,F);var Y=A(w);this._originalInput=w,this._r=Y.r,this._g=Y.g,this._b=Y.b,this._a=Y.a,this._roundA=W(100*this._a)/100,this._format=F.format||Y.format,this._gradientType=F.gradientType,this._r<1&&(this._r=W(this._r)),this._g<1&&(this._g=W(this._g)),this._b<1&&(this._b=W(this._b)),this._ok=Y.ok,this._tc_id=j++}B.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 w=this.toRgb();return(w.r*299+w.g*587+w.b*114)/1e3},getLuminance:function(){var w=this.toRgb(),F,Y,ue,q,xe,Be;return F=w.r/255,Y=w.g/255,ue=w.b/255,F<=.03928?q=F/12.92:q=ae.pow((F+.055)/1.055,2.4),Y<=.03928?xe=Y/12.92:xe=ae.pow((Y+.055)/1.055,2.4),ue<=.03928?Be=ue/12.92:Be=ae.pow((ue+.055)/1.055,2.4),.2126*q+.7152*xe+.0722*Be},setAlpha:function(w){return this._a=z(w),this._roundA=W(100*this._a)/100,this},toHsv:function(){var w=v(this._r,this._g,this._b);return{h:w.h*360,s:w.s,v:w.v,a:this._a}},toHsvString:function(){var w=v(this._r,this._g,this._b),F=W(w.h*360),Y=W(w.s*100),ue=W(w.v*100);return this._a==1?"hsv("+F+", "+Y+"%, "+ue+"%)":"hsva("+F+", "+Y+"%, "+ue+"%, "+this._roundA+")"},toHsl:function(){var w=y(this._r,this._g,this._b);return{h:w.h*360,s:w.s,l:w.l,a:this._a}},toHslString:function(){var w=y(this._r,this._g,this._b),F=W(w.h*360),Y=W(w.s*100),ue=W(w.l*100);return this._a==1?"hsl("+F+", "+Y+"%, "+ue+"%)":"hsla("+F+", "+Y+"%, "+ue+"%, "+this._roundA+")"},toHex:function(w){return g(this._r,this._g,this._b,w)},toHexString:function(w){return"#"+this.toHex(w)},toHex8:function(w){return h(this._r,this._g,this._b,this._a,w)},toHex8String:function(w){return"#"+this.toHex8(w)},toRgb:function(){return{r:W(this._r),g:W(this._g),b:W(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+W(this._r)+", "+W(this._g)+", "+W(this._b)+")":"rgba("+W(this._r)+", "+W(this._g)+", "+W(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:W(Q(this._r,255)*100)+"%",g:W(Q(this._g,255)*100)+"%",b:W(Q(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+W(Q(this._r,255)*100)+"%, "+W(Q(this._g,255)*100)+"%, "+W(Q(this._b,255)*100)+"%)":"rgba("+W(Q(this._r,255)*100)+"%, "+W(Q(this._g,255)*100)+"%, "+W(Q(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:G[g(this._r,this._g,this._b,!0)]||!1},toFilter:function(w){var F="#"+c(this._r,this._g,this._b,this._a),Y=F,ue=this._gradientType?"GradientType = 1, ":"";if(w){var q=B(w);Y="#"+c(q._r,q._g,q._b,q._a)}return"progid:DXImageTransform.Microsoft.gradient("+ue+"startColorstr="+F+",endColorstr="+Y+")"},toString:function(w){var F=!!w;w=w||this._format;var Y=!1,ue=this._a<1&&this._a>=0,q=!F&&ue&&(w==="hex"||w==="hex6"||w==="hex3"||w==="hex4"||w==="hex8"||w==="name");return q?w==="name"&&this._a===0?this.toName():this.toRgbString():(w==="rgb"&&(Y=this.toRgbString()),w==="prgb"&&(Y=this.toPercentageRgbString()),(w==="hex"||w==="hex6")&&(Y=this.toHexString()),w==="hex3"&&(Y=this.toHexString(!0)),w==="hex4"&&(Y=this.toHex8String(!0)),w==="hex8"&&(Y=this.toHex8String()),w==="name"&&(Y=this.toName()),w==="hsl"&&(Y=this.toHslString()),w==="hsv"&&(Y=this.toHsvString()),Y||this.toHexString())},clone:function(){return B(this.toString())},_applyModification:function(w,F){var Y=w.apply(null,[this].concat([].slice.call(F)));return this._r=Y._r,this._g=Y._g,this._b=Y._b,this.setAlpha(Y._a),this},lighten:function(){return this._applyModification(I,arguments)},brighten:function(){return this._applyModification(N,arguments)},darken:function(){return this._applyModification(S,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(R,arguments)},greyscale:function(){return this._applyModification(D,arguments)},spin:function(){return this._applyModification(L,arguments)},_applyCombination:function(w,F){return w.apply(null,[this].concat([].slice.call(F)))},analogous:function(){return this._applyCombination(x,arguments)},complement:function(){return this._applyCombination(C,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(b,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},B.fromRatio=function(w,F){if(typeof w=="object"){var Y={};for(var ue in w)w.hasOwnProperty(ue)&&(ue==="a"?Y[ue]=w[ue]:Y[ue]=ze(w[ue]));w=Y}return B(w,F)};function A(w){var F={r:0,g:0,b:0},Y=1,ue=null,q=null,xe=null,Be=!1,it=!1;return typeof w=="string"&&(w=Pe(w)),typeof w=="object"&&($e(w.r)&&$e(w.g)&&$e(w.b)?(F=T(w.r,w.g,w.b),Be=!0,it=String(w.r).substr(-1)==="%"?"prgb":"rgb"):$e(w.h)&&$e(w.s)&&$e(w.v)?(ue=ze(w.s),q=ze(w.v),F=_(w.h,ue,q),Be=!0,it="hsv"):$e(w.h)&&$e(w.s)&&$e(w.l)&&(ue=ze(w.s),xe=ze(w.l),F=p(w.h,ue,xe),Be=!0,it="hsl"),w.hasOwnProperty("a")&&(Y=w.a)),Y=z(Y),{ok:Be,format:w.format||it,r:oe(255,V(F.r,0)),g:oe(255,V(F.g,0)),b:oe(255,V(F.b,0)),a:Y}}function T(w,F,Y){return{r:Q(w,255)*255,g:Q(F,255)*255,b:Q(Y,255)*255}}function y(w,F,Y){w=Q(w,255),F=Q(F,255),Y=Q(Y,255);var ue=V(w,F,Y),q=oe(w,F,Y),xe,Be,it=(ue+q)/2;if(ue==q)xe=Be=0;else{var be=ue-q;Be=it>.5?be/(2-ue-q):be/(ue+q);switch(ue){case w:xe=(F-Y)/be+(F<Y?6:0);break;case F:xe=(Y-w)/be+2;break;case Y:xe=(w-F)/be+4;break}xe/=6}return{h:xe,s:Be,l:it}}function p(w,F,Y){var ue,q,xe;w=Q(w,360),F=Q(F,100),Y=Q(Y,100);function Be(Re,je,Ye){return Ye<0&&(Ye+=1),Ye>1&&(Ye-=1),Ye<1/6?Re+(je-Re)*6*Ye:Ye<1/2?je:Ye<2/3?Re+(je-Re)*(2/3-Ye)*6:Re}if(F===0)ue=q=xe=Y;else{var it=Y<.5?Y*(1+F):Y+F-Y*F,be=2*Y-it;ue=Be(be,it,w+1/3),q=Be(be,it,w),xe=Be(be,it,w-1/3)}return{r:ue*255,g:q*255,b:xe*255}}function v(w,F,Y){w=Q(w,255),F=Q(F,255),Y=Q(Y,255);var ue=V(w,F,Y),q=oe(w,F,Y),xe,Be,it=ue,be=ue-q;if(Be=ue===0?0:be/ue,ue==q)xe=0;else{switch(ue){case w:xe=(F-Y)/be+(F<Y?6:0);break;case F:xe=(Y-w)/be+2;break;case Y:xe=(w-F)/be+4;break}xe/=6}return{h:xe,s:Be,v:it}}function _(w,F,Y){w=Q(w,360)*6,F=Q(F,100),Y=Q(Y,100);var ue=ae.floor(w),q=w-ue,xe=Y*(1-F),Be=Y*(1-q*F),it=Y*(1-(1-q)*F),be=ue%6,Re=[Y,Be,xe,xe,it,Y][be],je=[it,Y,Y,Be,xe,xe][be],Ye=[xe,xe,it,Y,Y,Be][be];return{r:Re*255,g:je*255,b:Ye*255}}function g(w,F,Y,ue){var q=[Ce(W(w).toString(16)),Ce(W(F).toString(16)),Ce(W(Y).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(w,F,Y,ue,q){var xe=[Ce(W(w).toString(16)),Ce(W(F).toString(16)),Ce(W(Y).toString(16)),Ce(Le(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(w,F,Y,ue){var q=[Ce(Le(ue)),Ce(W(w).toString(16)),Ce(W(F).toString(16)),Ce(W(Y).toString(16))];return q.join("")}B.equals=function(w,F){return!w||!F?!1:B(w).toRgbString()==B(F).toRgbString()},B.random=function(){return B.fromRatio({r:l(),g:l(),b:l()})};function d(w,F){F=F===0?0:F||10;var Y=B(w).toHsl();return Y.s-=F/100,Y.s=H(Y.s),B(Y)}function R(w,F){F=F===0?0:F||10;var Y=B(w).toHsl();return Y.s+=F/100,Y.s=H(Y.s),B(Y)}function D(w){return B(w).desaturate(100)}function I(w,F){F=F===0?0:F||10;var Y=B(w).toHsl();return Y.l+=F/100,Y.l=H(Y.l),B(Y)}function N(w,F){F=F===0?0:F||10;var Y=B(w).toRgb();return Y.r=V(0,oe(255,Y.r-W(255*-(F/100)))),Y.g=V(0,oe(255,Y.g-W(255*-(F/100)))),Y.b=V(0,oe(255,Y.b-W(255*-(F/100)))),B(Y)}function S(w,F){F=F===0?0:F||10;var Y=B(w).toHsl();return Y.l-=F/100,Y.l=H(Y.l),B(Y)}function L(w,F){var Y=B(w).toHsl(),ue=(Y.h+F)%360;return Y.h=ue<0?360+ue:ue,B(Y)}function C(w){var F=B(w).toHsl();return F.h=(F.h+180)%360,B(F)}function b(w){var F=B(w).toHsl(),Y=F.h;return[B(w),B({h:(Y+120)%360,s:F.s,l:F.l}),B({h:(Y+240)%360,s:F.s,l:F.l})]}function E(w){var F=B(w).toHsl(),Y=F.h;return[B(w),B({h:(Y+90)%360,s:F.s,l:F.l}),B({h:(Y+180)%360,s:F.s,l:F.l}),B({h:(Y+270)%360,s:F.s,l:F.l})]}function O(w){var F=B(w).toHsl(),Y=F.h;return[B(w),B({h:(Y+72)%360,s:F.s,l:F.l}),B({h:(Y+216)%360,s:F.s,l:F.l})]}function x(w,F,Y){F=F||6,Y=Y||30;var ue=B(w).toHsl(),q=360/Y,xe=[B(w)];for(ue.h=(ue.h-(q*F>>1)+720)%360;--F;)ue.h=(ue.h+q)%360,xe.push(B(ue));return xe}function k(w,F){F=F||6;for(var Y=B(w).toHsv(),ue=Y.h,q=Y.s,xe=Y.v,Be=[],it=1/F;F--;)Be.push(B({h:ue,s:q,v:xe})),xe=(xe+it)%1;return Be}B.mix=function(w,F,Y){Y=Y===0?0:Y||50;var ue=B(w).toRgb(),q=B(F).toRgb(),xe=Y/100,Be={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 B(Be)},B.readability=function(w,F){var Y=B(w),ue=B(F);return(ae.max(Y.getLuminance(),ue.getLuminance())+.05)/(ae.min(Y.getLuminance(),ue.getLuminance())+.05)},B.isReadable=function(w,F,Y){var ue=B.readability(w,F),q,xe;xe=!1,q=se(Y);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},B.mostReadable=function(w,F,Y){var ue=null,q=0,xe,Be,it,be;Y=Y||{},Be=Y.includeFallbackColors,it=Y.level,be=Y.size;for(var Re=0;Re<F.length;Re++)xe=B.readability(w,F[Re]),xe>q&&(q=xe,ue=B(F[Re]));return B.isReadable(w,ue,{level:it,size:be})||!Be?ue:(Y.includeFallbackColors=!1,B.mostReadable(w,["#fff","#000"],Y))};var Z=B.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"},G=B.hexNames=P(Z);function P(w){var F={};for(var Y in w)w.hasOwnProperty(Y)&&(F[w[Y]]=Y);return F}function z(w){return w=parseFloat(w),(isNaN(w)||w<0||w>1)&&(w=1),w}function Q(w,F){ce(w)&&(w="100%");var Y=we(w);return w=oe(F,V(0,parseFloat(w))),Y&&(w=parseInt(w*F,10)/100),ae.abs(w-F)<1e-6?1:w%F/parseFloat(F)}function H(w){return oe(1,V(0,w))}function ne(w){return parseInt(w,16)}function ce(w){return typeof w=="string"&&w.indexOf(".")!=-1&&parseFloat(w)===1}function we(w){return typeof w=="string"&&w.indexOf("%")!=-1}function Ce(w){return w.length==1?"0"+w:""+w}function ze(w){return w<=1&&(w=w*100+"%"),w}function Le(w){return ae.round(parseFloat(w)*255).toString(16)}function We(w){return ne(w)/255}var Ve=function(){var w="[-\\+]?\\d+%?",F="[-\\+]?\\d*\\.\\d+%?",Y="(?:"+F+")|(?:"+w+")",ue="[\\s|\\(]+("+Y+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")\\s*\\)?",q="[\\s|\\(]+("+Y+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")\\s*\\)?";return{CSS_UNIT:new RegExp(Y),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(w){return!!Ve.CSS_UNIT.exec(w)}function Pe(w){w=w.replace(X,"").replace(le,"").toLowerCase();var F=!1;if(Z[w])w=Z[w],F=!0;else if(w=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var Y;return(Y=Ve.rgb.exec(w))?{r:Y[1],g:Y[2],b:Y[3]}:(Y=Ve.rgba.exec(w))?{r:Y[1],g:Y[2],b:Y[3],a:Y[4]}:(Y=Ve.hsl.exec(w))?{h:Y[1],s:Y[2],l:Y[3]}:(Y=Ve.hsla.exec(w))?{h:Y[1],s:Y[2],l:Y[3],a:Y[4]}:(Y=Ve.hsv.exec(w))?{h:Y[1],s:Y[2],v:Y[3]}:(Y=Ve.hsva.exec(w))?{h:Y[1],s:Y[2],v:Y[3],a:Y[4]}:(Y=Ve.hex8.exec(w))?{r:ne(Y[1]),g:ne(Y[2]),b:ne(Y[3]),a:We(Y[4]),format:F?"name":"hex8"}:(Y=Ve.hex6.exec(w))?{r:ne(Y[1]),g:ne(Y[2]),b:ne(Y[3]),format:F?"name":"hex"}:(Y=Ve.hex4.exec(w))?{r:ne(Y[1]+""+Y[1]),g:ne(Y[2]+""+Y[2]),b:ne(Y[3]+""+Y[3]),a:We(Y[4]+""+Y[4]),format:F?"name":"hex8"}:(Y=Ve.hex3.exec(w))?{r:ne(Y[1]+""+Y[1]),g:ne(Y[2]+""+Y[2]),b:ne(Y[3]+""+Y[3]),format:F?"name":"hex"}:!1}function se(w){var F,Y;return w=w||{level:"AA",size:"small"},F=(w.level||"AA").toUpperCase(),Y=(w.size||"small").toLowerCase(),F!=="AA"&&F!=="AAA"&&(F="AA"),Y!=="small"&&Y!=="large"&&(Y="small"),{level:F,size:Y}}Ot.exports?Ot.exports=B:!(Se=function(){return B}.call(Ne,ie,Ne,Ot),Se!==void 0&&(Ot.exports=Se))})(Math)},bT9E:function(Ot,Ne,ie){"use strict";ie.d(Ne,"a",function(){return ae});var Se=ie("VTBJ");function ae(X,le){var j=Object(Se.a)({},X);return Array.isArray(le)&&le.forEach(function(W){delete j[W]}),j}},cFMs:function(Ot,Ne){Ot.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(Ot,Ne,ie){Ot.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"}},eu9j:function(Ot,Ne,ie){Ot.exports=ie.p+"static/jcxq.a156a6f7.png"},"f0W+":function(Ot,Ne,ie){Ot.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(Ot,Ne,ie){Ot.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(Ot,Ne,ie){Ot.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(Ot,Ne,ie){"use strict";ie.d(Ne,"f",function(){return y}),ie.d(Ne,"b",function(){return p}),ie.d(Ne,"a",function(){return v}),ie.d(Ne,"d",function(){return _}),ie.d(Ne,"e",function(){return g}),ie.d(Ne,"c",function(){return h});var Se=ie("8HAY"),ae=ie("Vhoy"),X=ie("MI8n"),le=ie("JYp7"),j=ie("pmY6"),W=ie("24hK"),oe=ie("nnTU"),V=ie("T8No"),l=ie("Cg/j"),B=ie("t9D7"),A=function(c,d,R,D){var I=arguments.length,N=I<3?d:D===null?D=Object.getOwnPropertyDescriptor(d,R):D,S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(c,d,R,D);else for(var L=c.length-1;L>=0;L--)(S=c[L])&&(N=(I<3?S(N):I>3?S(d,R,N):S(d,R))||N);return I>3&&N&&Object.defineProperty(d,R,N),N},T=function(c,d){return function(R,D){d(R,D,c)}};function y(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 v=Object(l.c)("menuService"),_=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 R of c)d=this._commands.delete(R.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,R)=>c.set(R,d)),c}appendMenuItem(c,d){return this.appendMenuItems(le.a.single({id:c,item:d}))}appendMenuItems(c){const d=new Set,R=new W.a;for(const{id:D,item:I}of c){let N=this._menuItems.get(D);N||(N=new W.a,this._menuItems.set(D,N)),R.push(N.push(I)),d.add(D)}return this._onDidChangeMenu.fire(d),Object(j.i)(()=>{if(R.size>0){for(let D of R)D();this._onDidChangeMenu.fire(d),R.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 R of c)y(R)&&(d.add(R.command.id),R.alt&&d.add(R.alt.id));this._commands.forEach((R,D)=>{d.has(D)||c.push({command:R})})}};class g extends Se.e{constructor(c,d,R,D){super(`submenuitem.${c.submenu.id}`,typeof c.title=="string"?c.title:c.title.value,[],"submenu");this.item=c,this._menuService=d,this._contextKeyService=R,this._options=D}get actions(){const c=[],d=this._menuService.createMenu(this.item.submenu,this._contextKeyService),R=d.getActions(this._options);d.dispose();for(const[,D]of R)D.length>0&&(c.push(...D),c.push(new Se.d));return c.length&&c.pop(),c}}let h=class c{constructor(d,R,D,I,N){var S,L;if(this._commandService=N,this.id=d.id,this.label=(D==null?void 0:D.renderShortTitle)&&d.shortTitle?typeof d.shortTitle=="string"?d.shortTitle:d.shortTitle.value:typeof d.title=="string"?d.title:d.title.value,this.tooltip=(L=typeof d.tooltip=="string"?d.tooltip:(S=d.tooltip)===null||S===void 0?void 0:S.value)!==null&&L!==void 0?L:"",this.enabled=!d.precondition||I.contextMatchesRules(d.precondition),this.checked=void 0,d.toggled){const C=d.toggled.condition?d.toggled:{condition:d.toggled};this.checked=I.contextMatchesRules(C.condition),this.checked&&C.tooltip&&(this.tooltip=typeof C.tooltip=="string"?C.tooltip:C.tooltip.value),C.title&&(this.label=typeof C.title=="string"?C.title:C.title.value)}this.item=d,this.alt=R?new c(R,void 0,D,I,N):void 0,this._options=D,B.d.isThemeIcon(d.icon)&&(this.class=ae.a.asClassName(d.icon))}dispose(){}run(...d){var R,D;let I=[];return((R=this._options)===null||R===void 0?void 0:R.arg)&&(I=[...I,this._options.arg]),((D=this._options)===null||D===void 0?void 0:D.shouldForwardArgs)&&(I=[...I,...d]),this._commandService.executeCommand(this.id,...I)}};h=A([T(3,V.b),T(4,oe.b)],h)},h78n:function(Ot,Ne,ie){"use strict";ie.d(Ne,"a",function(){return k});var Se=ie("q1tI"),ae=ie.n(Se),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},W=function(P){var z=P.map(function(){return Object(Se.useRef)()}),Q=Object(Se.useRef)();return Object(Se.useEffect)(function(){var H=Date.now(),ne=!1;Object.keys(z).forEach(function(ce){var we=z[ce].current;if(!we)return;ne=!0;var Ce=we.style;Ce.transitionDuration=".3s, .3s, .3s, .06s",Q.current&&H-Q.current<100&&(Ce.transitionDuration="0s, 0s")}),ne&&(Q.current=Date.now())}),[z]};function oe(){return oe=Object.assign||function(G){for(var P=1;P<arguments.length;P++){var z=arguments[P];for(var Q in z)Object.prototype.hasOwnProperty.call(z,Q)&&(G[Q]=z[Q])}return G},oe.apply(this,arguments)}function V(G,P){return y(G)||T(G,P)||B(G,P)||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 B(G,P){if(!G)return;if(typeof G=="string")return A(G,P);var z=Object.prototype.toString.call(G).slice(8,-1);if(z==="Object"&&G.constructor&&(z=G.constructor.name),z==="Map"||z==="Set")return Array.from(G);if(z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return A(G,P)}function A(G,P){(P==null||P>G.length)&&(P=G.length);for(var z=0,Q=new Array(P);z<P;z++)Q[z]=G[z];return Q}function T(G,P){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(G)))return;var z=[],Q=!0,H=!1,ne=void 0;try{for(var ce=G[Symbol.iterator](),we;!(Q=(we=ce.next()).done)&&!(z.push(we.value),P&&z.length===P);Q=!0);}catch(Ce){H=!0,ne=Ce}finally{try{!Q&&ce.return!=null&&ce.return()}finally{if(H)throw ne}}return z}function y(G){if(Array.isArray(G))return G}function p(G,P){if(G==null)return{};var z=v(G,P),Q,H;if(Object.getOwnPropertySymbols){var ne=Object.getOwnPropertySymbols(G);for(H=0;H<ne.length;H++){if(Q=ne[H],P.indexOf(Q)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(G,Q))continue;z[Q]=G[Q]}}return z}function v(G,P){if(G==null)return{};var z={},Q=Object.keys(G),H,ne;for(ne=0;ne<Q.length;ne++){if(H=Q[ne],P.indexOf(H)>=0)continue;z[H]=G[H]}return z}var _=function(P){var z=P.className,Q=P.percent,H=P.prefixCls,ne=P.strokeColor,ce=P.strokeLinecap,we=P.strokeWidth,Ce=P.style,ze=P.trailColor,Le=P.trailWidth,We=P.transition,Ve=p(P,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Ve.gapPosition;var $e=Array.isArray(Q)?Q:[Q],Pe=Array.isArray(ne)?ne:[ne],se=W($e),w=V(se,1),F=w[0],Y=we/2,ue=100-we/2,q="M ".concat(ce==="round"?Y:0,",").concat(Y,`
L `).concat(ce==="round"?ue:100,",").concat(Y),xe="0 0 100 ".concat(we),Be=0;return ae.a.createElement("svg",oe({className:le()("".concat(H,"-line"),z),viewBox:xe,preserveAspectRatio:"none",style:Ce},Ve),ae.a.createElement("path",{className:"".concat(H,"-line-trail"),d:q,strokeLinecap:ce,stroke:ze,strokeWidth:Le||we,fillOpacity:"0"}),$e.map(function(it,be){var Re={strokeDasharray:"".concat(it,"px, 100px"),strokeDashoffset:"-".concat(Be,"px"),transition:We||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},je=Pe[be]||Pe[Pe.length-1];return Be+=it,ae.a.createElement("path",{key:be,className:"".concat(H,"-line-path"),d:q,strokeLinecap:ce,stroke:je,strokeWidth:we,fillOpacity:"0",ref:F[be],style:Re})}))};_.defaultProps=j;var g=_;function h(){return h=Object.assign||function(G){for(var P=1;P<arguments.length;P++){var z=arguments[P];for(var Q in z)Object.prototype.hasOwnProperty.call(z,Q)&&(G[Q]=z[Q])}return G},h.apply(this,arguments)}function c(G,P){return N(G)||I(G,P)||R(G,P)||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 R(G,P){if(!G)return;if(typeof G=="string")return D(G,P);var z=Object.prototype.toString.call(G).slice(8,-1);if(z==="Object"&&G.constructor&&(z=G.constructor.name),z==="Map"||z==="Set")return Array.from(G);if(z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return D(G,P)}function D(G,P){(P==null||P>G.length)&&(P=G.length);for(var z=0,Q=new Array(P);z<P;z++)Q[z]=G[z];return Q}function I(G,P){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(G)))return;var z=[],Q=!0,H=!1,ne=void 0;try{for(var ce=G[Symbol.iterator](),we;!(Q=(we=ce.next()).done)&&!(z.push(we.value),P&&z.length===P);Q=!0);}catch(Ce){H=!0,ne=Ce}finally{try{!Q&&ce.return!=null&&ce.return()}finally{if(H)throw ne}}return z}function N(G){if(Array.isArray(G))return G}function S(G,P){if(G==null)return{};var z=L(G,P),Q,H;if(Object.getOwnPropertySymbols){var ne=Object.getOwnPropertySymbols(G);for(H=0;H<ne.length;H++){if(Q=ne[H],P.indexOf(Q)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(G,Q))continue;z[Q]=G[Q]}}return z}function L(G,P){if(G==null)return{};var z={},Q=Object.keys(G),H,ne;for(ne=0;ne<Q.length;ne++){if(H=Q[ne],P.indexOf(H)>=0)continue;z[H]=G[H]}return z}var C=0;function b(G){return+G.replace("%","")}function E(G){return Array.isArray(G)?G:[G]}function O(G,P,z,Q){var H=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,ne=arguments.length>5?arguments[5]:void 0,ce=50-Q/2,we=0,Ce=-ce,ze=0,Le=-2*ce;switch(ne){case"left":we=-ce,Ce=0,ze=2*ce,Le=0;break;case"right":we=ce,Ce=0,ze=-2*ce,Le=0;break;case"bottom":Ce=ce,Le=2*ce;break;default:}var We="M 50,50 m ".concat(we,",").concat(Ce,`
a `).concat(ce,",").concat(ce," 0 1 1 ").concat(ze,",").concat(-Le,`
a `).concat(ce,",").concat(ce," 0 1 1 ").concat(-ze,",").concat(Le),Ve=Math.PI*2*ce,$e={stroke:z,strokeDasharray:"".concat(P/100*(Ve-H),"px ").concat(Ve,"px"),strokeDashoffset:"-".concat(H/2+G/100*(Ve-H),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:We,pathStyle:$e}}var x=function(P){var z=P.prefixCls,Q=P.strokeWidth,H=P.trailWidth,ne=P.gapDegree,ce=P.gapPosition,we=P.trailColor,Ce=P.strokeLinecap,ze=P.style,Le=P.className,We=P.strokeColor,Ve=P.percent,$e=S(P,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),Pe=Object(Se.useMemo)(function(){return C+=1,C},[]),se=O(0,100,we,Q,ne,ce),w=se.pathString,F=se.pathStyle,Y=E(Ve),ue=E(We),q=ue.find(function(Re){return Object.prototype.toString.call(Re)==="[object Object]"}),xe=W(Y),Be=c(xe,1),it=Be[0],be=function(){var je=0;return Y.map(function(Ye,ft){var Rt=ue[ft]||ue[ue.length-1],Jt=Object.prototype.toString.call(Rt)==="[object Object]"?"url(#".concat(z,"-gradient-").concat(Pe,")"):"",Wt=O(je,Ye,Rt,Q,ne,ce);return je+=Ye,ae.a.createElement("path",{key:ft,className:"".concat(z,"-circle-path"),d:Wt.pathString,stroke:Jt,strokeLinecap:Ce,strokeWidth:Q,opacity:Ye===0?0:1,fillOpacity:"0",style:Wt.pathStyle,ref:it[ft]})})};return ae.a.createElement("svg",h({className:le()("".concat(z,"-circle"),Le),viewBox:"0 0 100 100",style:ze},$e),q&&ae.a.createElement("defs",null,ae.a.createElement("linearGradient",{id:"".concat(z,"-gradient-").concat(Pe),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(q).sort(function(Re,je){return b(Re)-b(je)}).map(function(Re,je){return ae.a.createElement("stop",{key:je,offset:Re,stopColor:q[Re]})}))),ae.a.createElement("path",{className:"".concat(z,"-circle-trail"),d:w,stroke:we,strokeLinecap:Ce,strokeWidth:H||Q,fillOpacity:"0",style:F}),be().reverse())};x.defaultProps=j;var k=x,Z={Line:g,Circle:k}},"iL++":function(Ot,Ne,ie){Ot.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(Ot,Ne,ie){"use strict";ie.d(Ne,"a",function(){return le});var Se=ie("FWmy"),ae=ie("746U");class X{constructor(){this.data=new Map}add(j,W){Se.a(ae.l(j)),Se.a(ae.k(W)),Se.a(!this.data.has(j),"There is already an extension with this id"),this.data.set(j,W)}as(j){return this.data.get(j)||null}}const le=new X},nEHx:function(Ot,Ne,ie){"use strict";ie.d(Ne,"a",function(){return Se});var Se;(function(ae){ae.DARK="dark",ae.LIGHT="light",ae.HIGH_CONTRAST="hc"})(Se||(Se={}))},nnTU:function(Ot,Ne,ie){"use strict";ie.d(Ne,"b",function(){return oe}),ie.d(Ne,"a",function(){return V});var Se=ie("MI8n"),ae=ie("JYp7"),X=ie("pmY6"),le=ie("24hK"),j=ie("746U"),W=ie("Cg/j");const oe=Object(W.c)("commandService"),V=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Se.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(l,B){if(!l)throw new Error("invalid command");if(typeof l=="string"){if(!B)throw new Error("invalid command");return this.registerCommand({id:l,handler:B})}if(l.description){const v=[];for(let g of l.description.args)v.push(g.constraint);const _=l.handler;l.handler=function(g,...h){return Object(j.o)(h,v),_(g,...h)}}const{id:A}=l;let T=this._commands.get(A);T||(T=new le.a,this._commands.set(A,T));let y=T.unshift(l),p=Object(X.i)(()=>{y();const v=this._commands.get(A);(v==null?void 0:v.isEmpty())&&this._commands.delete(A)});return this._onDidRegisterCommand.fire(A),p}registerCommandAlias(l,B){return V.registerCommand(l,(A,...T)=>A.get(oe).executeCommand(B,...T))}getCommand(l){const B=this._commands.get(l);return!B||B.isEmpty()?void 0:ae.a.first(B)}getCommands(){const l=new Map;for(const B of this._commands.keys()){const A=this.getCommand(B);A&&l.set(B,A)}return l}};V.registerCommand("noop",()=>{})},ogmK:function(Ot,Ne,ie){"use strict";ie.d(Ne,"a",function(){return ks});var Se=ie("1OyB"),ae=ie("vuIU"),X=ie("Ji7U"),le=ie("LK+K"),j=ie("rePB"),W=ie("VTBJ"),oe=ie("ODXe"),V=ie("q1tI"),l=ie("TSYQ"),B=ie.n(l),A=ie("Kwbf"),T=ie("6cGi"),y=ie("U8pU"),p=ie("4IlW"),v=V.createContext({}),_=v,g={visibility:"hidden"};function h(de){var Fe=de.prefixCls,Je=de.prevIcon,Xe=Je===void 0?"\u2039":Je,pt=de.nextIcon,lt=pt===void 0?"\u203A":pt,mt=de.superPrevIcon,Dt=mt===void 0?"\xAB":mt,Gt=de.superNextIcon,Kt=Gt===void 0?"\xBB":Gt,nn=de.onSuperPrev,Zt=de.onSuperNext,gt=de.onPrev,Xt=de.onNext,Pt=de.children,tn=V.useContext(_),Vt=tn.hideNextBtn,En=tn.hidePrevBtn;return V.createElement("div",{className:Fe},nn&&V.createElement("button",{type:"button",onClick:nn,tabIndex:-1,className:"".concat(Fe,"-super-prev-btn"),style:En?g:{}},Dt),gt&&V.createElement("button",{type:"button",onClick:gt,tabIndex:-1,className:"".concat(Fe,"-prev-btn"),style:En?g:{}},Xe),V.createElement("div",{className:"".concat(Fe,"-view")},Pt),Xt&&V.createElement("button",{type:"button",onClick:Xt,tabIndex:-1,className:"".concat(Fe,"-next-btn"),style:Vt?g:{}},lt),Zt&&V.createElement("button",{type:"button",onClick:Zt,tabIndex:-1,className:"".concat(Fe,"-super-next-btn"),style:Vt?g:{}},Kt))}var c=h;function d(de){var Fe=V.useContext(_),Je=Fe.hideHeader;if(Je)return null;var Xe=de.prefixCls,pt=de.generateConfig,lt=de.locale,mt=de.value,Dt=de.format,Gt="".concat(Xe,"-header");return V.createElement(c,{prefixCls:Gt},mt?pt.locale.format(lt.locale,mt,Dt):"\xA0")}var R=d,D=ie("YrtM"),I=ie("KQm4"),N=new Map;function S(de,Fe,Je){if(N.get(de)&&cancelAnimationFrame(N.get(de)),Je<=0){N.set(de,requestAnimationFrame(function(){de.scrollTop=Fe}));return}var Xe=Fe-de.scrollTop,pt=Xe/Je*10;N.set(de,requestAnimationFrame(function(){de.scrollTop+=pt,de.scrollTop!==Fe&&S(de,Fe,Je-10)}))}function L(de,Fe){var Je=Fe.onLeftRight,Xe=Fe.onCtrlLeftRight,pt=Fe.onUpDown,lt=Fe.onPageUpDown,mt=Fe.onEnter,Dt=de.which,Gt=de.ctrlKey,Kt=de.metaKey;switch(Dt){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 C(de,Fe,Je,Xe){var pt=de;if(!pt)switch(Fe){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 b(de,Fe){var Je=de==="time"?8:10;return Math.max(Je,Fe.length)+2}var E=null,O=new Set;function x(de){return!E&&typeof window!="undefined"&&window.addEventListener&&(E=function(Je){Object(I.a)(O).forEach(function(Xe){Xe(Je)})},window.addEventListener("mousedown",E)),O.add(de),function(){O.delete(de),O.size===0&&(window.removeEventListener("mousedown",E),E=null)}}var k=function(Fe){return Fe==="month"||Fe==="date"?"year":Fe},Z=function(Fe){return Fe==="date"?"month":Fe},G=function(Fe){return Fe==="month"||Fe==="date"?"quarter":Fe},P=function(Fe){return Fe==="date"?"week":Fe},z={year:k,month:Z,quarter:G,week:P,time:null,date:null};function Q(de,Fe){return de.some(function(Je){return Je&&Je.contains(Fe)})}function H(de){var Fe=de.prefixCls,Je=de.units,Xe=de.onSelect,pt=de.value,lt=de.active,mt=de.hideDisabledOptions,Dt="".concat(Fe,"-cell"),Gt=V.useContext(_),Kt=Gt.open,nn=V.useRef(null),Zt=V.useRef(new Map);return V.useLayoutEffect(function(){var gt=Zt.current.get(pt);gt&&Kt!==!1&&S(nn.current,gt.offsetTop,120)},[pt]),V.useLayoutEffect(function(){if(Kt){var gt=Zt.current.get(pt);gt&&S(nn.current,gt.offsetTop,0)}},[Kt]),V.createElement("ul",{className:B()("".concat(Fe,"-column"),Object(j.a)({},"".concat(Fe,"-column-active"),lt)),ref:nn,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:B()(Dt,(Xt={},Object(j.a)(Xt,"".concat(Dt,"-disabled"),gt.disabled),Object(j.a)(Xt,"".concat(Dt,"-selected"),pt===gt.value),Xt)),onClick:function(){if(gt.disabled)return;Xe(gt.value)}},V.createElement("div",{className:"".concat(Dt,"-inner")},gt.label))}))}var ne=H;function ce(de,Fe){for(var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Xe=String(de);Xe.length<Fe;)Xe="".concat(Je).concat(de);return Xe}var we=function(){for(var Fe=arguments.length,Je=new Array(Fe),Xe=0;Xe<Fe;Xe++)Je[Xe]=arguments[Xe];return Je};function Ce(de){return de==null?[]:Array.isArray(de)?de:[de]}function ze(de){var Fe={};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-__"&&(Fe[Je]=de[Je])}),Fe}function Le(de,Fe){return de?de[Fe]:null}function We(de,Fe,Je){var Xe=[Le(de,0),Le(de,1)];return Xe[Je]=typeof Fe=="function"?Fe(Xe[Je]):Fe,!Xe[0]&&!Xe[1]?null:Xe}function Ve(de,Fe,Je,Xe,pt){var lt=de.setHour(Fe,Je);return lt=de.setMinute(lt,Xe),lt=de.setSecond(lt,pt),lt}function $e(de,Fe,Je,Xe,pt,lt){var mt=Math.floor(de/Xe)*Xe;if(mt<de)return[mt,60-pt,60-lt];var Dt=Math.floor(Fe/pt)*pt;if(Dt<Fe)return[mt,Dt,60-lt];var Gt=Math.floor(Je/lt)*lt;return[mt,Dt,Gt]}function Pe(de,Fe){if(de.length!==Fe.length)return!0;for(var Je=0;Je<de.length;Je+=1)if(de[Je].disabled!==Fe[Je].disabled)return!0;return!1}function se(de,Fe,Je,Xe){for(var pt=[],lt=de;lt<=Fe;lt+=Je)pt.push({label:ce(lt,2),value:lt,disabled:(Xe||[]).includes(lt)});return pt}function w(de){var Fe=de.generateConfig,Je=de.prefixCls,Xe=de.operationRef,pt=de.activeColumnIndex,lt=de.value,mt=de.showHour,Dt=de.showMinute,Gt=de.showSecond,Kt=de.use12Hours,nn=de.hourStep,Zt=nn===void 0?1:nn,gt=de.minuteStep,Xt=gt===void 0?1:gt,Pt=de.secondStep,tn=Pt===void 0?1:Pt,Vt=de.disabledHours,En=de.disabledMinutes,Cn=de.disabledSeconds,Zn=de.hideDisabledOptions,vr=de.onSelect,Gn=[],Jn="".concat(Je,"-content"),lr="".concat(Je,"-time-panel"),sr,Yi=lt?Fe.getHour(lt):-1,Ai=lt?Fe.getMinute(lt):-1,Ua=lt?Fe.getSecond(lt):-1,Pi=function(Vr,yi,Wa,Ra){var Xi=lt||Fe.getNow(),eo=Math.max(0,yi),Ji=Math.max(0,Wa),za=Math.max(0,Ra);return Xi=Ve(Fe,Xi,!Kt||!Vr?eo:eo+12,Ji,za),Xi},xa=se(0,23,Zt,Vt&&Vt()),ki=Object(D.a)(function(){return xa},xa,Pe);Kt&&(sr=Yi>=12,Yi%=12);var ns=V.useMemo(function(){if(!Kt)return[!1,!1];var Pr=[!0,!0];return ki.forEach(function(Vr){var yi=Vr.disabled,Wa=Vr.value;if(yi)return;Wa>=12?Pr[1]=!1:Pr[0]=!1}),Pr},[Kt,ki]),rs=Object(oe.a)(ns,2),is=rs[0],mo=rs[1],as=V.useMemo(function(){return Kt?ki.filter(sr?function(Pr){return Pr.value>=12}:function(Pr){return Pr.value<12}).map(function(Pr){var Vr=Pr.value%12,yi=Vr===0?"12":ce(Vr,2);return Object(W.a)(Object(W.a)({},Pr),{},{label:yi,value:Vr})}):ki},[Kt,ki]),Ha=se(0,59,Xt,En&&En(Yi)),os=se(0,59,tn,Cn&&Cn(Yi,Ai));Xe.current={onUpDown:function(Vr){var yi=Gn[pt];if(yi)for(var Wa=yi.units.findIndex(function(Ji){return Ji.value===yi.value}),Ra=yi.units.length,Xi=1;Xi<Ra;Xi+=1){var eo=yi.units[(Wa+Vr*Xi+Ra)%Ra];if(eo.disabled!==!0){yi.onSelect(eo.value);break}}}};function ko(Pr,Vr,yi,Wa,Ra){Pr!==!1&&Gn.push({node:V.cloneElement(Vr,{prefixCls:lr,value:yi,active:pt===Gn.length,onSelect:Ra,units:Wa,hideDisabledOptions:Zn}),onSelect:Ra,value:yi,units:Wa})}ko(mt,V.createElement(ne,{key:"hour"}),Yi,as,function(Pr){vr(Pi(sr,Pr,Ai,Ua),"mouse")}),ko(Dt,V.createElement(ne,{key:"minute"}),Ai,Ha,function(Pr){vr(Pi(sr,Yi,Pr,Ua),"mouse")}),ko(Gt,V.createElement(ne,{key:"second"}),Ua,os,function(Pr){vr(Pi(sr,Yi,Ai,Pr),"mouse")});var Mo=-1;return typeof sr=="boolean"&&(Mo=sr?1:0),ko(Kt===!0,V.createElement(ne,{key:"12hours"}),Mo,[{label:"AM",value:0,disabled:is},{label:"PM",value:1,disabled:mo}],function(Pr){vr(Pi(!!Pr,Yi,Ai,Ua),"mouse")}),V.createElement("div",{className:Jn},Gn.map(function(Pr){var Vr=Pr.node;return Vr}))}var F=w,Y=function(Fe){return Fe.filter(function(Je){return Je!==!1}).length};function ue(de){var Fe=de.generateConfig,Je=de.format,Xe=Je===void 0?"HH:mm:ss":Je,pt=de.prefixCls,lt=de.active,mt=de.operationRef,Dt=de.showHour,Gt=de.showMinute,Kt=de.showSecond,nn=de.use12Hours,Zt=nn===void 0?!1:nn,gt=de.onSelect,Xt=de.value,Pt="".concat(pt,"-time-panel"),tn=V.useRef(),Vt=V.useState(-1),En=Object(oe.a)(Vt,2),Cn=En[0],Zn=En[1],vr=Y([Dt,Gt,Kt,Zt]);return mt.current={onKeyDown:function(Jn){return L(Jn,{onLeftRight:function(sr){Zn((Cn+sr+vr)%vr)},onUpDown:function(sr){Cn===-1?Zn(0):tn.current&&tn.current.onUpDown(sr)},onEnter:function(){gt(Xt||Fe.getNow(),"key"),Zn(-1)}})},onBlur:function(){Zn(-1)}},V.createElement("div",{className:B()(Pt,Object(j.a)({},"".concat(Pt,"-active"),lt))},V.createElement(R,Object.assign({},de,{format:Xe,prefixCls:pt})),V.createElement(F,Object.assign({},de,{prefixCls:pt,activeColumnIndex:Cn,operationRef:tn})))}var q=ue,xe=7;function Be(de,Fe){return!de&&!Fe?!0:!de||!Fe?!1:void 0}function it(de,Fe,Je){var Xe=Be(Fe,Je);if(typeof Xe=="boolean")return Xe;var pt=Math.floor(de.getYear(Fe)/10),lt=Math.floor(de.getYear(Je)/10);return pt===lt}function be(de,Fe,Je){var Xe=Be(Fe,Je);return typeof Xe=="boolean"?Xe:de.getYear(Fe)===de.getYear(Je)}function Re(de,Fe){var Je=Math.floor(de.getMonth(Fe)/3);return Je+1}function je(de,Fe,Je){var Xe=Be(Fe,Je);return typeof Xe=="boolean"?Xe:be(de,Fe,Je)&&Re(de,Fe)===Re(de,Je)}function Ye(de,Fe,Je){var Xe=Be(Fe,Je);return typeof Xe=="boolean"?Xe:be(de,Fe,Je)&&de.getMonth(Fe)===de.getMonth(Je)}function ft(de,Fe,Je){var Xe=Be(Fe,Je);return typeof Xe=="boolean"?Xe:de.getYear(Fe)===de.getYear(Je)&&de.getMonth(Fe)===de.getMonth(Je)&&de.getDate(Fe)===de.getDate(Je)}function Rt(de,Fe,Je){var Xe=Be(Fe,Je);return typeof Xe=="boolean"?Xe:de.getHour(Fe)===de.getHour(Je)&&de.getMinute(Fe)===de.getMinute(Je)&&de.getSecond(Fe)===de.getSecond(Je)}function Jt(de,Fe,Je,Xe){var pt=Be(Je,Xe);return typeof pt=="boolean"?pt:de.locale.getWeek(Fe,Je)===de.locale.getWeek(Fe,Xe)}function Wt(de,Fe,Je){return ft(de,Fe,Je)&&Rt(de,Fe,Je)}function Nt(de,Fe,Je,Xe){return!Fe||!Je||!Xe?!1:!ft(de,Fe,Xe)&&!ft(de,Je,Xe)&&de.isAfter(Xe,Fe)&&de.isAfter(Je,Xe)}function sn(de,Fe,Je){var Xe=Fe.locale.getWeekFirstDay(de),pt=Fe.setDate(Je,1),lt=Fe.getWeekDay(pt),mt=Fe.addDate(pt,Xe-lt);return Fe.getMonth(mt)===Fe.getMonth(Je)&&Fe.getDate(mt)>1&&(mt=Fe.addDate(mt,-7)),mt}function an(de,Fe,Je){var Xe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Fe){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({}),mn=zt;function xn(de){var Fe=de.cellPrefixCls,Je=de.generateConfig,Xe=de.rangedValue,pt=de.hoverRangedValue,lt=de.isInView,mt=de.isSameCell,Dt=de.offsetCell,Gt=de.today,Kt=de.value;function nn(Zt){var gt,Xt=Dt(Zt,-1),Pt=Dt(Zt,1),tn=Le(Xe,0),Vt=Le(Xe,1),En=Le(pt,0),Cn=Le(pt,1),Zn=Nt(Je,En,Cn,Zt);function vr(Ai){return mt(tn,Ai)}function Gn(Ai){return mt(Vt,Ai)}var Jn=mt(En,Zt),lr=mt(Cn,Zt),sr=(Zn||lr)&&(!lt(Xt)||Gn(Xt)),Yi=(Zn||Jn)&&(!lt(Pt)||vr(Pt));return gt={},Object(j.a)(gt,"".concat(Fe,"-in-view"),lt(Zt)),Object(j.a)(gt,"".concat(Fe,"-in-range"),Nt(Je,tn,Vt,Zt)),Object(j.a)(gt,"".concat(Fe,"-range-start"),vr(Zt)),Object(j.a)(gt,"".concat(Fe,"-range-end"),Gn(Zt)),Object(j.a)(gt,"".concat(Fe,"-range-start-single"),vr(Zt)&&!Vt),Object(j.a)(gt,"".concat(Fe,"-range-end-single"),Gn(Zt)&&!tn),Object(j.a)(gt,"".concat(Fe,"-range-start-near-hover"),vr(Zt)&&(mt(Xt,En)||Nt(Je,En,Cn,Xt))),Object(j.a)(gt,"".concat(Fe,"-range-end-near-hover"),Gn(Zt)&&(mt(Pt,Cn)||Nt(Je,En,Cn,Pt))),Object(j.a)(gt,"".concat(Fe,"-range-hover"),Zn),Object(j.a)(gt,"".concat(Fe,"-range-hover-start"),Jn),Object(j.a)(gt,"".concat(Fe,"-range-hover-end"),lr),Object(j.a)(gt,"".concat(Fe,"-range-hover-edge-start"),sr),Object(j.a)(gt,"".concat(Fe,"-range-hover-edge-end"),Yi),Object(j.a)(gt,"".concat(Fe,"-range-hover-edge-start-near-range"),sr&&mt(Xt,Vt)),Object(j.a)(gt,"".concat(Fe,"-range-hover-edge-end-near-range"),Yi&&mt(Pt,tn)),Object(j.a)(gt,"".concat(Fe,"-today"),mt(Gt,Zt)),Object(j.a)(gt,"".concat(Fe,"-selected"),mt(Kt,Zt)),gt}return nn}function Te(de){for(var Fe=de.prefixCls,Je=de.disabledDate,Xe=de.onSelect,pt=de.rowNum,lt=de.colNum,mt=de.prefixColumn,Dt=de.rowClassName,Gt=de.baseDate,Kt=de.getCellClassName,nn=de.getCellText,Zt=de.getCellNode,gt=de.getCellDate,Xt=de.titleCell,Pt=de.headerCells,tn=V.useContext(_),Vt=tn.onDateMouseEnter,En=tn.onDateMouseLeave,Cn="".concat(Fe,"-cell"),Zn=[],vr=0;vr<pt;vr+=1){for(var Gn=[],Jn=void 0,lr=function(Ai){var Ua=vr*lt+Ai,Pi=gt(Gt,Ua),xa=Je&&Je(Pi);Ai===0&&(Jn=Pi,mt&&Gn.push(mt(Jn))),Gn.push(V.createElement("td",{key:Ai,title:Xt&&Xt(Pi),className:B()(Cn,Object(W.a)(Object(j.a)({},"".concat(Cn,"-disabled"),xa),Kt(Pi))),onClick:function(){xa||Xe(Pi)},onMouseEnter:function(){!xa&&Vt&&Vt(Pi)},onMouseLeave:function(){!xa&&En&&En(Pi)}},Zt?Zt(Pi):V.createElement("div",{className:"".concat(Cn,"-inner")},nn(Pi))))},sr=0;sr<lt;sr+=1)lr(sr);Zn.push(V.createElement("tr",{key:vr,className:Dt&&Dt(Jn)},Gn))}return V.createElement("div",{className:"".concat(Fe,"-body")},V.createElement("table",{className:"".concat(Fe,"-content")},Pt&&V.createElement("thead",null,V.createElement("tr",null,Pt)),V.createElement("tbody",null,Zn)))}function fe(de){var Fe=de.prefixCls,Je=de.generateConfig,Xe=de.prefixColumn,pt=de.locale,lt=de.rowCount,mt=de.viewDate,Dt=de.value,Gt=de.dateRender,Kt=V.useContext(mn),nn=Kt.rangedValue,Zt=Kt.hoverRangedValue,gt=sn(pt.locale,Je,mt),Xt="".concat(Fe,"-cell"),Pt=Je.locale.getWeekFirstDay(pt.locale),tn=Je.getNow(),Vt=[],En=pt.shortWeekDays||(Je.locale.getShortWeekDays?Je.locale.getShortWeekDays(pt.locale):[]);Xe&&Vt.push(V.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Cn=0;Cn<xe;Cn+=1)Vt.push(V.createElement("th",{key:Cn},En[(Cn+Pt)%xe]));var Zn=xn({cellPrefixCls:Xt,today:tn,value:Dt,generateConfig:Je,rangedValue:Xe?null:nn,hoverRangedValue:Xe?null:Zt,isSameCell:function(Jn,lr){return ft(Je,Jn,lr)},isInView:function(Jn){return Ye(Je,Jn,mt)},offsetCell:function(Jn,lr){return Je.addDate(Jn,lr)}}),vr=Gt?function(Gn){return Gt(Gn,tn)}:void 0;return V.createElement(Te,Object.assign({},de,{rowNum:lt,colNum:xe,baseDate:gt,getCellNode:vr,getCellText:Je.getDate,getCellClassName:Zn,getCellDate:Je.addDate,titleCell:function(Jn){return Je.locale.format(pt.locale,Jn,"YYYY-MM-DD")},headerCells:Vt}))}var pe=fe;function ve(de){var Fe=de.prefixCls,Je=de.generateConfig,Xe=de.locale,pt=de.viewDate,lt=de.onNextMonth,mt=de.onPrevMonth,Dt=de.onNextYear,Gt=de.onPrevYear,Kt=de.onYearClick,nn=de.onMonthClick,Zt=V.useContext(_),gt=Zt.hideHeader;if(gt)return null;var Xt="".concat(Fe,"-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(Fe,"-year-btn")},Je.locale.format(Xe.locale,pt,Xe.yearFormat)),En=V.createElement("button",{type:"button",key:"month",onClick:nn,tabIndex:-1,className:"".concat(Fe,"-month-btn")},Xe.monthFormat?Je.locale.format(Xe.locale,pt,Xe.monthFormat):Pt[tn]),Cn=Xe.monthBeforeYear?[En,Vt]:[Vt,En];return V.createElement(c,Object.assign({},de,{prefixCls:Xt,onSuperPrev:Gt,onPrev:mt,onNext:lt,onSuperNext:Dt}),Cn)}var Oe=ve,ge=6;function ye(de){var Fe=de.prefixCls,Je=de.panelName,Xe=Je===void 0?"date":Je,pt=de.keyboardConfig,lt=de.active,mt=de.operationRef,Dt=de.generateConfig,Gt=de.value,Kt=de.viewDate,nn=de.onViewDateChange,Zt=de.onPanelChange,gt=de.onSelect,Xt="".concat(Fe,"-").concat(Xe,"-panel");mt.current={onKeyDown:function(En){return L(En,Object(W.a)({onLeftRight:function(Zn){gt(Dt.addDate(Gt||Kt,Zn),"key")},onCtrlLeftRight:function(Zn){gt(Dt.addYear(Gt||Kt,Zn),"key")},onUpDown:function(Zn){gt(Dt.addDate(Gt||Kt,Zn*xe),"key")},onPageUpDown:function(Zn){gt(Dt.addMonth(Gt||Kt,Zn),"key")}},pt))}};var Pt=function(En){var Cn=Dt.addYear(Kt,En);nn(Cn),Zt(null,Cn)},tn=function(En){var Cn=Dt.addMonth(Kt,En);nn(Cn),Zt(null,Cn)};return V.createElement("div",{className:B()(Xt,Object(j.a)({},"".concat(Xt,"-active"),lt))},V.createElement(Oe,Object.assign({},de,{prefixCls:Fe,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(En){return gt(En,"mouse")},prefixCls:Fe,value:Gt,viewDate:Kt,rowCount:ge})))}var Ie=ye;function Me(de,Fe,Je){if(!Je)return Fe;var Xe=Fe;return Xe=de.setHour(Xe,de.getHour(Je)),Xe=de.setMinute(Xe,de.getMinute(Je)),Xe=de.setSecond(Xe,de.getSecond(Je)),Xe}var et=we("date","time");function qe(de){var Fe=de.prefixCls,Je=de.operationRef,Xe=de.generateConfig,pt=de.value,lt=de.defaultValue,mt=de.disabledTime,Dt=de.showTime,Gt=de.onSelect,Kt="".concat(Fe,"-datetime-panel"),nn=V.useState(null),Zt=Object(oe.a)(nn,2),gt=Zt[0],Xt=Zt[1],Pt=V.useRef({}),tn=V.useRef({}),Vt=Object(y.a)(Dt)==="object"?Object(W.a)({},Dt):{};function En(Gn){var Jn=et.indexOf(gt)+Gn,lr=et[Jn]||null;return lr}var Cn=function(Jn){tn.current.onBlur&&tn.current.onBlur(Jn),Xt(null)};Je.current={onKeyDown:function(Jn){if(Jn.which===p.a.TAB){var lr=En(Jn.shiftKey?-1:1);return Xt(lr),lr&&Jn.preventDefault(),!0}if(gt){var sr=gt==="date"?Pt:tn;return sr.current&&sr.current.onKeyDown&&sr.current.onKeyDown(Jn),!0}return[p.a.LEFT,p.a.RIGHT,p.a.UP,p.a.DOWN].includes(Jn.which)?(Xt("date"),!0):!1},onBlur:Cn,onClose:Cn};var Zn=function(Jn,lr){var sr=Jn;lr==="date"&&!pt&&Vt.defaultValue?(sr=Xe.setHour(sr,Xe.getHour(Vt.defaultValue)),sr=Xe.setMinute(sr,Xe.getMinute(Vt.defaultValue)),sr=Xe.setSecond(sr,Xe.getSecond(Vt.defaultValue))):lr==="time"&&!pt&&lt&&(sr=Xe.setYear(sr,Xe.getYear(lt)),sr=Xe.setMonth(sr,Xe.getMonth(lt)),sr=Xe.setDate(sr,Xe.getDate(lt))),Gt&&Gt(sr,"mouse")},vr=mt?mt(pt||null):{};return V.createElement("div",{className:B()(Kt,Object(j.a)({},"".concat(Kt,"-active"),gt))},V.createElement(Ie,Object.assign({},de,{operationRef:Pt,active:gt==="date",onSelect:function(Jn){Zn(Me(Xe,Jn,Dt&&Object(y.a)(Dt)==="object"?Dt.defaultValue:null),"date")}})),V.createElement(q,Object.assign({},de,{format:void 0},Vt,vr,{defaultValue:void 0,operationRef:tn,active:gt==="time",onSelect:function(Jn){Zn(Jn,"time")}})))}var Tt=qe;function cn(de){var Fe=de.prefixCls,Je=de.generateConfig,Xe=de.locale,pt=de.value,lt="".concat(Fe,"-cell"),mt=function(nn){return V.createElement("td",{key:"week",className:B()(lt,"".concat(lt,"-week"))},Je.locale.getWeek(Xe.locale,nn))},Dt="".concat(Fe,"-week-panel-row"),Gt=function(nn){return B()(Dt,Object(j.a)({},"".concat(Dt,"-selected"),Jt(Je,Xe.locale,pt,nn)))};return V.createElement(Ie,Object.assign({},de,{panelName:"week",prefixColumn:mt,rowClassName:Gt,keyboardConfig:{onLeftRight:null}}))}var kn=cn;function On(de){var Fe=de.prefixCls,Je=de.generateConfig,Xe=de.locale,pt=de.viewDate,lt=de.onNextYear,mt=de.onPrevYear,Dt=de.onYearClick,Gt=V.useContext(_),Kt=Gt.hideHeader;if(Kt)return null;var nn="".concat(Fe,"-header");return V.createElement(c,Object.assign({},de,{prefixCls:nn,onSuperPrev:mt,onSuperNext:lt}),V.createElement("button",{type:"button",onClick:Dt,className:"".concat(Fe,"-year-btn")},Je.locale.format(Xe.locale,pt,Xe.yearFormat)))}var Qt=On,ht=3,yt=4;function ut(de){var Fe=de.prefixCls,Je=de.locale,Xe=de.value,pt=de.viewDate,lt=de.generateConfig,mt=de.monthCellRender,Dt=V.useContext(mn),Gt=Dt.rangedValue,Kt=Dt.hoverRangedValue,nn="".concat(Fe,"-cell"),Zt=xn({cellPrefixCls:nn,value:Xe,generateConfig:lt,rangedValue:Gt,hoverRangedValue:Kt,isSameCell:function(Vt,En){return Ye(lt,Vt,En)},isInView:function(){return!0},offsetCell:function(Vt,En){return lt.addMonth(Vt,En)}}),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(Te,Object.assign({},de,{rowNum:yt,colNum:ht,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 Fe=de.prefixCls,Je=de.operationRef,Xe=de.onViewDateChange,pt=de.generateConfig,lt=de.value,mt=de.viewDate,Dt=de.onPanelChange,Gt=de.onSelect,Kt="".concat(Fe,"-month-panel");Je.current={onKeyDown:function(gt){return L(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*ht),"key")},onEnter:function(){Dt("date",lt||mt)}})}};var nn=function(gt){var Xt=pt.addYear(mt,gt);Xe(Xt),Dt(null,Xt)};return V.createElement("div",{className:Kt},V.createElement(Qt,Object.assign({},de,{prefixCls:Fe,onPrevYear:function(){nn(-1)},onNextYear:function(){nn(1)},onYearClick:function(){Dt("year",mt)}})),V.createElement(Ae,Object.assign({},de,{prefixCls:Fe,onSelect:function(gt){Gt(gt,"mouse"),Dt("date",gt)}})))}var vt=Ue;function dt(de){var Fe=de.prefixCls,Je=de.generateConfig,Xe=de.locale,pt=de.viewDate,lt=de.onNextYear,mt=de.onPrevYear,Dt=de.onYearClick,Gt=V.useContext(_),Kt=Gt.hideHeader;if(Kt)return null;var nn="".concat(Fe,"-header");return V.createElement(c,Object.assign({},de,{prefixCls:nn,onSuperPrev:mt,onSuperNext:lt}),V.createElement("button",{type:"button",onClick:Dt,className:"".concat(Fe,"-year-btn")},Je.locale.format(Xe.locale,pt,Xe.yearFormat)))}var en=dt,rn=4,Et=1;function It(de){var Fe=de.prefixCls,Je=de.locale,Xe=de.value,pt=de.viewDate,lt=de.generateConfig,mt=V.useContext(mn),Dt=mt.rangedValue,Gt=mt.hoverRangedValue,Kt="".concat(Fe,"-cell"),nn=xn({cellPrefixCls:Kt,value:Xe,generateConfig:lt,rangedValue:Dt,hoverRangedValue:Gt,isSameCell:function(Xt,Pt){return je(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(Te,Object.assign({},de,{rowNum:Et,colNum:rn,baseDate:Zt,getCellText:function(Xt){return lt.locale.format(Je.locale,Xt,Je.quarterFormat||"[Q]Q")},getCellClassName:nn,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=It;function nt(de){var Fe=de.prefixCls,Je=de.operationRef,Xe=de.onViewDateChange,pt=de.generateConfig,lt=de.value,mt=de.viewDate,Dt=de.onPanelChange,Gt=de.onSelect,Kt="".concat(Fe,"-quarter-panel");Je.current={onKeyDown:function(gt){return L(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 nn=function(gt){var Xt=pt.addYear(mt,gt);Xe(Xt),Dt(null,Xt)};return V.createElement("div",{className:Kt},V.createElement(en,Object.assign({},de,{prefixCls:Fe,onPrevYear:function(){nn(-1)},onNextYear:function(){nn(1)},onYearClick:function(){Dt("year",mt)}})),V.createElement(Ct,Object.assign({},de,{prefixCls:Fe,onSelect:function(gt){Gt(gt,"mouse")}})))}var Bt=nt;function $t(de){var Fe=de.prefixCls,Je=de.generateConfig,Xe=de.viewDate,pt=de.onPrevDecade,lt=de.onNextDecade,mt=de.onDecadeClick,Dt=V.useContext(_),Gt=Dt.hideHeader;if(Gt)return null;var Kt="".concat(Fe,"-header"),nn=Je.getYear(Xe),Zt=Math.floor(nn/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(Fe,"-decade-btn")},Zt,"-",gt))}var ln=$t,Xn=3,In=4;function dn(de){var Fe=de.prefixCls,Je=de.value,Xe=de.viewDate,pt=de.locale,lt=de.generateConfig,mt=V.useContext(mn),Dt=mt.rangedValue,Gt=mt.hoverRangedValue,Kt="".concat(Fe,"-cell"),nn=lt.getYear(Xe),Zt=Math.floor(nn/gn)*gn,gt=Zt+gn-1,Xt=lt.setYear(Xe,Zt-Math.ceil((Xn*In-gn)/2)),Pt=function(En){var Cn=lt.getYear(En);return Zt<=Cn&&Cn<=gt},tn=xn({cellPrefixCls:Kt,value:Je,generateConfig:lt,rangedValue:Dt,hoverRangedValue:Gt,isSameCell:function(En,Cn){return be(lt,En,Cn)},isInView:Pt,offsetCell:function(En,Cn){return lt.addYear(En,Cn)}});return V.createElement(Te,Object.assign({},de,{rowNum:In,colNum:Xn,baseDate:Xt,getCellText:lt.getYear,getCellClassName:tn,getCellDate:lt.addYear,titleCell:function(En){return lt.locale.format(pt.locale,En,"YYYY")}}))}var An=dn,gn=10;function Un(de){var Fe=de.prefixCls,Je=de.operationRef,Xe=de.onViewDateChange,pt=de.generateConfig,lt=de.value,mt=de.viewDate,Dt=de.sourceMode,Gt=de.onSelect,Kt=de.onPanelChange,nn="".concat(Fe,"-year-panel");Je.current={onKeyDown:function(Xt){return L(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*Xn),"key")},onEnter:function(){Kt(Dt==="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:nn},V.createElement(ln,Object.assign({},de,{prefixCls:Fe,onPrevDecade:function(){Zt(-1)},onNextDecade:function(){Zt(1)},onDecadeClick:function(){Kt("decade",mt)}})),V.createElement(An,Object.assign({},de,{prefixCls:Fe,onSelect:function(Xt){Kt(Dt==="date"?"date":"month",Xt),Gt(Xt,"mouse")}})))}var Hn=Un;function ar(de){var Fe=de.prefixCls,Je=de.generateConfig,Xe=de.viewDate,pt=de.onPrevDecades,lt=de.onNextDecades,mt=V.useContext(_),Dt=mt.hideHeader;if(Dt)return null;var Gt="".concat(Fe,"-header"),Kt=Je.getYear(Xe),nn=Math.floor(Kt/Kr)*Kr,Zt=nn+Kr-1;return V.createElement(c,Object.assign({},de,{prefixCls:Gt,onSuperPrev:pt,onSuperNext:lt}),nn,"-",Zt)}var hr=ar,Ir=3,si=4;function li(de){var Fe=Ar-1,Je=de.prefixCls,Xe=de.viewDate,pt=de.generateConfig,lt=de.disabledDate,mt="".concat(Je,"-cell"),Dt=pt.getYear(Xe),Gt=Math.floor(Dt/Ar)*Ar,Kt=Math.floor(Dt/Kr)*Kr,nn=Kt+Kr-1,Zt=pt.setYear(Xe,Kt-Math.ceil((Ir*si*Ar-Kr)/2)),gt=function(Pt){var tn,Vt=lt&&lt(Pt),En=pt.getYear(Pt),Cn=En+Fe;return tn={},Object(j.a)(tn,"".concat(mt,"-disabled"),Vt),Object(j.a)(tn,"".concat(mt,"-in-view"),Kt<=En&&Cn<=nn),Object(j.a)(tn,"".concat(mt,"-selected"),En===Gt),tn};return V.createElement(Te,Object.assign({},de,{rowNum:si,colNum:Ir,baseDate:Zt,getCellText:function(Pt){var tn=pt.getYear(Pt);return"".concat(tn,"-").concat(tn+Fe)},getCellClassName:gt,getCellDate:function(Pt,tn){return pt.addYear(Pt,tn*Ar)}}))}var _n=li,Ar=10,Kr=Ar*10;function sa(de){var Fe=de.prefixCls,Je=de.onViewDateChange,Xe=de.generateConfig,pt=de.viewDate,lt=de.operationRef,mt=de.onSelect,Dt=de.onPanelChange,Gt="".concat(Fe,"-decade-panel");lt.current={onKeyDown:function(gt){return L(gt,{onLeftRight:function(Pt){mt(Xe.addYear(pt,Pt*Ar),"key")},onCtrlLeftRight:function(Pt){mt(Xe.addYear(pt,Pt*Kr),"key")},onUpDown:function(Pt){mt(Xe.addYear(pt,Pt*Ar*Ir),"key")},onEnter:function(){Dt("year",pt)}})}};var Kt=function(gt){var Xt=Xe.addYear(pt,gt*Kr);Je(Xt),Dt(null,Xt)},nn=function(gt){mt(gt,"mouse"),Dt("year",gt)};return V.createElement("div",{className:Gt},V.createElement(hr,Object.assign({},de,{prefixCls:Fe,onPrevDecades:function(){Kt(-1)},onNextDecades:function(){Kt(1)}})),V.createElement(_n,Object.assign({},de,{prefixCls:Fe,onSelect:nn})))}var ai=sa;function Fn(de,Fe,Je){return Je?V.createElement("div",{className:"".concat(de,"-footer-extra")},Je(Fe)):null}function or(de){var Fe=de.prefixCls,Je=de.rangeList,Xe=Je===void 0?[]:Je,pt=de.components,lt=pt===void 0?{}:pt,mt=de.needConfirmButton,Dt=de.onNow,Gt=de.onOk,Kt=de.okDisabled,nn=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 En=Vt.label,Cn=Vt.onClick,Zn=Vt.onMouseEnter,vr=Vt.onMouseLeave;return V.createElement("li",{key:En,className:"".concat(Fe,"-preset")},V.createElement(Pt,{onClick:Cn,onMouseEnter:Zn,onMouseLeave:vr},En))}))}if(mt){var tn=lt.button||"button";Dt&&!gt&&nn!==!1&&(gt=V.createElement("li",{className:"".concat(Fe,"-now")},V.createElement("a",{className:"".concat(Fe,"-now-btn"),onClick:Dt},Zt.now))),Xt=mt&&V.createElement("li",{className:"".concat(Fe,"-ok")},V.createElement(tn,{disabled:Kt,onClick:Gt},Zt.ok))}return!gt&&!Xt?null:V.createElement("ul",{className:"".concat(Fe,"-ranges")},gt,Xt)}function Qn(de){var Fe,Je=de.prefixCls,Xe=Je===void 0?"rc-picker":Je,pt=de.className,lt=de.style,mt=de.locale,Dt=de.generateConfig,Gt=de.value,Kt=de.defaultValue,nn=de.pickerValue,Zt=de.defaultPickerValue,gt=de.disabledDate,Xt=de.mode,Pt=de.picker,tn=Pt===void 0?"date":Pt,Vt=de.tabIndex,En=Vt===void 0?0:Vt,Cn=de.showNow,Zn=de.showTime,vr=de.showToday,Gn=de.renderExtraFooter,Jn=de.hideHeader,lr=de.onSelect,sr=de.onChange,Yi=de.onPanelChange,Ai=de.onMouseDown,Ua=de.onPickerValueChange,Pi=de.onOk,xa=de.components,ki=de.direction,ns=de.hourStep,rs=ns===void 0?1:ns,is=de.minuteStep,mo=is===void 0?1:is,as=de.secondStep,Ha=as===void 0?1:as,os=tn==="date"&&!!Zn||tn==="time",ko=24%rs===0,Mo=60%mo===0,Pr=60%Ha===0,Vr=V.useContext(_),yi=Vr.operationRef,Wa=Vr.panelRef,Ra=Vr.onSelect,Xi=Vr.hideRanges,eo=Vr.defaultOpenValue,Ji=V.useContext(mn),za=Ji.inRange,Ms=Ji.panelPosition,xo=Ji.rangedValue,go=Ji.hoverRangedValue,bi=V.useRef({}),wo=V.useRef(!0),Gl=Object(T.a)(null,{value:Gt,defaultValue:Kt,postState:function(Bn){return!Bn&&eo&&tn==="time"?eo:Bn}}),la=Object(oe.a)(Gl,2),to=la[0],Kl=la[1],Ga=Object(T.a)(null,{value:nn,defaultValue:Zt||to,postState:function(Bn){return Bn||Dt.getNow()}}),No=Object(oe.a)(Ga,2),Mi=No[0],Qi=No[1],wa=function(Bn){Qi(Bn),Ua&&Ua(Bn)},ss=function(Bn){var kr=z[tn];return kr?kr(Bn):Bn},Zi=Object(T.a)(function(){return tn==="time"?"time":ss("date")},{value:Xt}),Fo=Object(oe.a)(Zi,2),$i=Fo[0],sl=Fo[1];V.useEffect(function(){sl(tn)},[tn]);var To=V.useState(function(){return $i}),ur=Object(oe.a)(To,2),Su=ur[0],vo=ur[1],Yr=function(Bn,kr){var no=ss(Bn||$i);vo($i),sl(no),Yi&&($i!==no||Wt(Dt,Mi,Mi))&&Yi(kr,no)},ua=function(Bn,kr){var no=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;($i===tn||no)&&(Kl(Bn),lr&&lr(Bn),Ra&&Ra(Bn,kr),sr&&!Wt(Dt,Bn,to)&&sr(Bn))},ls=function(Bn){return bi.current&&bi.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(),bi.current.onKeyDown(Bn)):(Object(A.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},Ei=function(Bn){bi.current&&bi.current.onBlur&&bi.current.onBlur(Bn)};yi&&Ms!=="right"&&(yi.current={onKeyDown:ls,onClose:function(){bi.current&&bi.current.onClose&&bi.current.onClose()}}),V.useEffect(function(){Gt&&!wo.current&&Qi(Gt)},[Gt]),V.useEffect(function(){wo.current=!1},[]);var ca,Ka=Object(W.a)(Object(W.a)({},de),{},{operationRef:bi,prefixCls:Xe,viewDate:Mi,value:to,onViewDateChange:wa,sourceMode:Su,onPanelChange:Yr,disabledDate:$i!=="decade"?gt:void 0});delete Ka.onChange,delete Ka.onSelect;switch($i){case"decade":ca=V.createElement(ai,Object.assign({},Ka,{onSelect:function(Bn,kr){wa(Bn),ua(Bn,kr)}}));break;case"year":ca=V.createElement(Hn,Object.assign({},Ka,{onSelect:function(Bn,kr){wa(Bn),ua(Bn,kr)}}));break;case"month":ca=V.createElement(vt,Object.assign({},Ka,{onSelect:function(Bn,kr){wa(Bn),ua(Bn,kr)}}));break;case"quarter":ca=V.createElement(Bt,Object.assign({},Ka,{onSelect:function(Bn,kr){wa(Bn),ua(Bn,kr)}}));break;case"week":ca=V.createElement(kn,Object.assign({},Ka,{onSelect:function(Bn,kr){wa(Bn),ua(Bn,kr)}}));break;case"time":delete Ka.showTime,ca=V.createElement(q,Object.assign({},Ka,Object(y.a)(Zn)==="object"?Zn:null,{onSelect:function(Bn,kr){wa(Bn),ua(Bn,kr)}}));break;default:Zn?ca=V.createElement(Tt,Object.assign({},Ka,{onSelect:function(Bn,kr){wa(Bn),ua(Bn,kr)}})):ca=V.createElement(Ie,Object.assign({},Ka,{onSelect:function(Bn,kr){wa(Bn),ua(Bn,kr)}}))}var ll,ul,us=function(){var Bn=Dt.getNow(),kr=$e(Dt.getHour(Bn),Dt.getMinute(Bn),Dt.getSecond(Bn),ko?rs:1,Mo?mo:1,Pr?Ha:1),no=Ve(Dt,Bn,kr[0],kr[1],kr[2]);ua(no,"submit")};Xi||(ll=Fn(Xe,$i,Gn),ul=or({prefixCls:Xe,components:xa,needConfirmButton:os,okDisabled:!to||gt&&gt(to),locale:mt,showNow:Cn,onNow:os&&us,onOk:function(){to&&(ua(to,"submit",!0),Pi&&Pi(to))}}));var cl;if(vr&&$i==="date"&&tn==="date"&&!Zn){var dl=Dt.getNow(),Ni="".concat(Xe,"-today-btn"),yo=gt&&gt(dl);cl=V.createElement("a",{className:B()(Ni,yo&&"".concat(Ni,"-disabled")),"aria-disabled":yo,onClick:function(){yo||ua(dl,"mouse",!0)}},mt.today)}return V.createElement(_.Provider,{value:Object(W.a)(Object(W.a)({},Vr),{},{hideHeader:"hideHeader"in de?Jn:Vr.hideHeader,hidePrevBtn:za&&Ms==="right",hideNextBtn:za&&Ms==="left"})},V.createElement("div",{tabIndex:En,className:B()("".concat(Xe,"-panel"),pt,(Fe={},Object(j.a)(Fe,"".concat(Xe,"-panel-has-range"),xo&&xo[0]&&xo[1]),Object(j.a)(Fe,"".concat(Xe,"-panel-has-range-hover"),go&&go[0]&&go[1]),Object(j.a)(Fe,"".concat(Xe,"-panel-rtl"),ki==="rtl"),Fe)),style:lt,onKeyDown:ls,onBlur:Ei,onMouseDown:Ai,ref:Wa},ca,ll||ul||cl?V.createElement("div",{className:"".concat(Xe,"-footer")},ll,ul,cl):null))}var Mn=Qn,qr=ie("uciX"),Lr={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 ja(de){var Fe,Je=de.prefixCls,Xe=de.popupElement,pt=de.popupStyle,lt=de.visible,mt=de.dropdownClassName,Dt=de.dropdownAlign,Gt=de.transitionName,Kt=de.getPopupContainer,nn=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(qr.a,{showAction:[],hideAction:[],popupPlacement:tn(),builtinPlacements:Lr,prefixCls:Pt,popupTransitionName:Gt,popup:Xe,popupAlign:Dt,popupVisible:lt,popupClassName:B()(mt,(Fe={},Object(j.a)(Fe,"".concat(Pt,"-range"),Zt),Object(j.a)(Fe,"".concat(Pt,"-rtl"),Xt==="rtl"),Fe)),popupStyle:pt,getPopupContainer:Kt},nn)}var Tu=ja;function ol(de){var Fe=de.open,Je=de.value,Xe=de.isClickOutside,pt=de.triggerOpen,lt=de.forwardKeyDown,mt=de.blurToCancel,Dt=de.onSubmit,Gt=de.onCancel,Kt=de.onFocus,nn=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),En=Vt[0],Cn=Vt[1],Zn=Object(V.useRef)(!1),vr=Object(V.useRef)(!1),Gn={onMouseDown:function(){Pt(!0),pt(!0)},onKeyDown:function(lr){switch(lr.which){case p.a.ENTER:{Fe?Dt()!==!1&&Pt(!0):pt(!0),lr.preventDefault();return}case p.a.TAB:{Xt&&Fe&&!lr.shiftKey?(Pt(!1),lr.preventDefault()):!Xt&&Fe&&(!lt(lr)&&lr.shiftKey&&(Pt(!0),lr.preventDefault()));return}case p.a.ESC:{Pt(!0),Gt();return}}!Fe&&![p.a.SHIFT].includes(lr.which)?pt(!0):Xt||lt(lr)},onFocus:function(lr){Pt(!0),Cn(!0),Kt&&Kt(lr)},onBlur:function(lr){if(Zn.current||!Xe(document.activeElement)){Zn.current=!1;return}mt?setTimeout(function(){Xe(document.activeElement)&&Gt()},0):Fe&&(pt(!1),vr.current&&Dt()),Cn(!1),nn&&nn(lr)}};return Object(V.useEffect)(function(){vr.current=!1},[Fe]),Object(V.useEffect)(function(){vr.current=!0},[Je]),Object(V.useEffect)(function(){return x(function(Jn){var lr=Jn.target;Fe&&(Xe(lr)?En||pt(!1):(Zn.current=!0,requestAnimationFrame(function(){Zn.current=!1})))})}),[Gn,{focused:En,typing:Xt}]}function td(de){var Fe=de.valueTexts,Je=de.onTextChange,Xe=V.useState(""),pt=Object(oe.a)(Xe,2),lt=pt[0],mt=pt[1],Dt=V.useRef([]);Dt.current=Fe;function Gt(nn){mt(nn),Je(nn)}function Kt(){mt(Dt.current[0])}return V.useEffect(function(){Fe.every(function(nn){return nn!==lt})&&Kt()},[Fe.join("||")]),[lt,Gt,Kt]}var qa=ie("Gytx"),q_=ie.n(qa);function Rh(de,Fe){var Je=Fe.formatList,Xe=Fe.generateConfig,pt=Fe.locale;return Object(D.a)(function(){if(!de)return[[""],""];for(var lt="",mt=[],Dt=0;Dt<Je.length;Dt+=1){var Gt=Je[Dt],Kt=Xe.locale.format(pt.locale,de,Gt);mt.push(Kt),Dt===0&&(lt=Kt)}return[mt,lt]},[de,Je],function(lt,mt){return lt[0]!==mt[0]||!q_()(lt[1],mt[1])})}function nd(de,Fe){var Je=Fe.formatList,Xe=Fe.generateConfig,pt=Fe.locale,lt=Object(V.useState)(null),mt=Object(oe.a)(lt,2),Dt=mt[0],Gt=mt[1],Kt=Object(V.useRef)(null);function nn(Vt){var En=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(Kt.current),En){Gt(Vt);return}Kt.current=requestAnimationFrame(function(){Gt(Vt)})}var Zt=Rh(Dt,{formatList:Je,generateConfig:Xe,locale:pt}),gt=Object(oe.a)(Zt,2),Xt=gt[1];function Pt(Vt){nn(Vt)}function tn(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;nn(null,Vt)}return Object(V.useEffect)(function(){tn(!0)},[de]),Object(V.useEffect)(function(){return function(){return cancelAnimationFrame(Kt.current)}},[]),[Xt,Pt,tn]}function Ih(de){var Fe,Je=de.prefixCls,Xe=Je===void 0?"rc-picker":Je,pt=de.id,lt=de.tabIndex,mt=de.style,Dt=de.className,Gt=de.dropdownClassName,Kt=de.dropdownAlign,nn=de.popupStyle,Zt=de.transitionName,gt=de.generateConfig,Xt=de.locale,Pt=de.inputReadOnly,tn=de.allowClear,Vt=de.autoFocus,En=de.showTime,Cn=de.picker,Zn=Cn===void 0?"date":Cn,vr=de.format,Gn=de.use12Hours,Jn=de.value,lr=de.defaultValue,sr=de.open,Yi=de.defaultOpen,Ai=de.defaultOpenValue,Ua=de.suffixIcon,Pi=de.clearIcon,xa=de.disabled,ki=de.disabledDate,ns=de.placeholder,rs=de.getPopupContainer,is=de.pickerRef,mo=de.panelRender,as=de.onChange,Ha=de.onOpenChange,os=de.onFocus,ko=de.onBlur,Mo=de.onMouseDown,Pr=de.onMouseUp,Vr=de.onMouseEnter,yi=de.onMouseLeave,Wa=de.onContextMenu,Ra=de.onClick,Xi=de.direction,eo=de.autoComplete,Ji=eo===void 0?"off":eo,za=V.useRef(null),Ms=Zn==="date"&&!!En||Zn==="time",xo=Ce(C(vr,Zn,En,Gn)),go=V.useRef(null),bi=V.useRef(null),wo=Object(T.a)(null,{value:Jn,defaultValue:lr}),Gl=Object(oe.a)(wo,2),la=Gl[0],to=Gl[1],Kl=V.useState(la),Ga=Object(oe.a)(Kl,2),No=Ga[0],Mi=Ga[1],Qi=V.useRef(null),wa=Object(T.a)(!1,{value:sr,defaultValue:Yi,postState:function($n){return xa?!1:$n},onChange:function($n){Ha&&Ha($n),!$n&&Qi.current&&Qi.current.onClose&&Qi.current.onClose()}}),ss=Object(oe.a)(wa,2),Zi=ss[0],Fo=ss[1],$i=Rh(No,{formatList:xo,generateConfig:gt,locale:Xt}),sl=Object(oe.a)($i,2),To=sl[0],ur=sl[1],Su=td({valueTexts:To,onTextChange:function($n){var Fs=gt.locale.parse(Xt.locale,$n,xo);Fs&&(!ki||!ki(Fs))&&Mi(Fs)}}),vo=Object(oe.a)(Su,3),Yr=vo[0],ua=vo[1],ls=vo[2],Ei=function($n){Mi($n),to($n),as&&!Wt(gt,la,$n)&&as($n,$n?gt.locale.format(Xt.locale,$n,xo[0]):"")},ca=function($n){if(xa&&$n)return;Fo($n)},Ka=function($n){return Zi&&Qi.current&&Qi.current.onKeyDown?Qi.current.onKeyDown($n):(Object(A.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},ll=function(){Pr&&Pr.apply(void 0,arguments),za.current&&(za.current.focus(),ca(!0))},ul=ol({blurToCancel:Ms,open:Zi,value:Yr,triggerOpen:ca,forwardKeyDown:Ka,isClickOutside:function($n){return!Q([go.current,bi.current],$n)},onSubmit:function(){return ki&&ki(No)?!1:(Ei(No),ca(!1),ls(),!0)},onCancel:function(){ca(!1),Mi(la),ls()},onFocus:os,onBlur:ko}),us=Object(oe.a)(ul,2),cl=us[0],dl=us[1],Ni=dl.focused,yo=dl.typing;V.useEffect(function(){Zi||(Mi(la),!To.length||To[0]===""?ua(""):ur!==Yr&&ls())},[Zi,To]),V.useEffect(function(){Zi||ls()},[Zn]),V.useEffect(function(){Mi(la)},[la]),is&&(is.current={focus:function(){za.current&&za.current.focus()},blur:function(){za.current&&za.current.blur()}});var _i=Object(W.a)(Object(W.a)({},de),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),Bn=V.createElement(Mn,Object.assign({},_i,{generateConfig:gt,className:B()(Object(j.a)({},"".concat(Xe,"-panel-focused"),!yo)),value:No,locale:Xt,tabIndex:-1,onChange:Mi,direction:Xi}));mo&&(Bn=mo(Bn));var kr=V.createElement("div",{className:"".concat(Xe,"-panel-container"),onMouseDown:function($n){$n.preventDefault()}},Bn),no;Ua&&(no=V.createElement("span",{className:"".concat(Xe,"-suffix")},Ua));var Cu;tn&&la&&!xa&&(Cu=V.createElement("span",{onMouseDown:function($n){$n.preventDefault(),$n.stopPropagation()},onMouseUp:function($n){$n.preventDefault(),$n.stopPropagation(),Ei(null),ca(!1)},className:"".concat(Xe,"-clear")},Pi||V.createElement("span",{className:"".concat(Xe,"-clear-btn")})));var cs=function($n,Fs){(Fs==="submit"||Fs!=="key"&&!Ms)&&(Ei($n),ca(!1))},Vl=Xi==="rtl"?"bottomRight":"bottomLeft",kh=nd(Yr,{formatList:xo,generateConfig:gt,locale:Xt}),Ns=Object(oe.a)(kh,3),qn=Ns[0],Fi=Ns[1],pi=Ns[2];return V.createElement(_.Provider,{value:{operationRef:Qi,hideHeader:Zn==="time",panelRef:go,onSelect:cs,open:Zi,defaultOpenValue:Ai,onDateMouseEnter:Fi,onDateMouseLeave:pi}},V.createElement(Tu,{visible:Zi,popupElement:kr,popupStyle:nn,prefixCls:Xe,dropdownClassName:Gt,dropdownAlign:Kt,getPopupContainer:rs,transitionName:Zt,popupPlacement:Vl,direction:Xi},V.createElement("div",{className:B()(Xe,Dt,(Fe={},Object(j.a)(Fe,"".concat(Xe,"-disabled"),xa),Object(j.a)(Fe,"".concat(Xe,"-focused"),Ni),Object(j.a)(Fe,"".concat(Xe,"-rtl"),Xi==="rtl"),Fe)),style:mt,onMouseDown:Mo,onMouseUp:ll,onMouseEnter:Vr,onMouseLeave:yi,onContextMenu:Wa,onClick:Ra},V.createElement("div",{className:B()("".concat(Xe,"-input"),Object(j.a)({},"".concat(Xe,"-input-placeholder"),!!qn)),ref:bi},V.createElement("input",Object.assign({id:pt,tabIndex:lt,disabled:xa,readOnly:Pt||!yo,value:qn||Yr,onChange:function($n){ua($n.target.value)},autoFocus:Vt,placeholder:ns,ref:za,title:Yr},cl,{size:b(Zn,xo[0])},ze(de),{autoComplete:Ji})),no,Cu))))}var ex=function(de){Object(X.a)(Je,de);var Fe=Object(le.a)(Je);function Je(){var Xe;return Object(Se.a)(this,Je),Xe=Fe.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(Ih,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Je}(V.Component),tx=ex;function Wp(de,Fe,Je){var Xe=de.picker,pt=de.locale,lt=de.selectedValue,mt=de.disabledDate,Dt=de.disabled,Gt=de.generateConfig,Kt=Le(lt,0),nn=Le(lt,1);function Zt(Vt){var En=Gt.getYear(Vt),Cn=Gt.locale.getWeek(pt.locale,Vt);return En*100+Cn}function gt(Vt){var En=Gt.getYear(Vt),Cn=Gt.getMonth(Vt);return En*100+Cn}function Xt(Vt){var En=Gt.getYear(Vt),Cn=Re(Gt,Vt);return En*10+Cn}var Pt=V.useCallback(function(Vt){if(mt&&mt(Vt))return!0;if(Dt[1]&&nn)return!ft(Gt,Vt,nn)&&Gt.isAfter(Vt,nn);if(Fe&&nn)switch(Xe){case"quarter":return Xt(Vt)>Xt(nn);case"month":return gt(Vt)>gt(nn);case"week":return Zt(Vt)>Zt(nn);default:return!ft(Gt,Vt,nn)&&Gt.isAfter(Vt,nn)}return!1},[mt,Dt[1],nn,Fe]),tn=V.useCallback(function(Vt){if(mt&&mt(Vt))return!0;if(Dt[0]&&Kt)return!ft(Gt,Vt,nn)&&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!ft(Gt,Vt,Kt)&&Gt.isAfter(Kt,Vt)}return!1},[mt,Dt[0],Kt,Je]);return[Pt,tn]}function nx(de,Fe,Je,Xe){var pt=an(de,Je,Xe,1);function lt(mt){return mt(de,Fe)?"same":mt(pt,Fe)?"closing":"far"}switch(Je){case"year":return lt(function(mt,Dt){return it(Xe,mt,Dt)});case"quarter":case"month":return lt(function(mt,Dt){return be(Xe,mt,Dt)});default:return lt(function(mt,Dt){return Ye(Xe,mt,Dt)})}}function rx(de,Fe,Je,Xe){var pt=Le(de,0),lt=Le(de,1);if(Fe===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 an(lt,Je,Xe,-1)}}return pt}function F0(de){var Fe=de.values,Je=de.picker,Xe=de.defaultDates,pt=de.generateConfig,lt=V.useState(function(){return[Le(Xe,0),Le(Xe,1)]}),mt=Object(oe.a)(lt,2),Dt=mt[0],Gt=mt[1],Kt=V.useState(null),nn=Object(oe.a)(Kt,2),Zt=nn[0],gt=nn[1],Xt=Le(Fe,0),Pt=Le(Fe,1);function tn(En){return Dt[En]?Dt[En]:Le(Zt,En)||rx(Fe,En,Je,pt)||Xt||Pt||pt.getNow()}function Vt(En,Cn){if(En){var Zn=We(Zt,En,Cn);Gt(We(Dt,null,Cn)||[null,null]);var vr=(Cn+1)%2;Le(Fe,vr)||(Zn=We(Zn,En,vr)),gt(Zn)}else(Xt||Pt)&&gt(null)}return[tn,Vt]}function Lh(de,Fe){return de&&de[0]&&de[1]&&Fe.isAfter(de[0],de[1])?[de[1],de[0]]:de}function zp(de,Fe,Je,Xe){return de||Xe&&Xe[Fe]?!0:!!Je[(Fe+1)%2]}function B0(de){var Fe,Je,Xe,pt=de.prefixCls,lt=pt===void 0?"rc-picker":pt,mt=de.id,Dt=de.style,Gt=de.className,Kt=de.popupStyle,nn=de.dropdownClassName,Zt=de.transitionName,gt=de.dropdownAlign,Xt=de.getPopupContainer,Pt=de.generateConfig,tn=de.locale,Vt=de.placeholder,En=de.autoFocus,Cn=de.disabled,Zn=de.format,vr=de.picker,Gn=vr===void 0?"date":vr,Jn=de.showTime,lr=de.use12Hours,sr=de.separator,Yi=sr===void 0?"~":sr,Ai=de.value,Ua=de.defaultValue,Pi=de.defaultPickerValue,xa=de.open,ki=de.defaultOpen,ns=de.disabledDate,rs=de.disabledTime,is=de.dateRender,mo=de.panelRender,as=de.ranges,Ha=de.allowEmpty,os=de.allowClear,ko=de.suffixIcon,Mo=de.clearIcon,Pr=de.pickerRef,Vr=de.inputReadOnly,yi=de.mode,Wa=de.renderExtraFooter,Ra=de.onChange,Xi=de.onOpenChange,eo=de.onPanelChange,Ji=de.onCalendarChange,za=de.onFocus,Ms=de.onBlur,xo=de.onOk,go=de.components,bi=de.order,wo=de.direction,Gl=de.activePickerIndex,la=de.autoComplete,to=la===void 0?"off":la,Kl=Gn==="date"&&!!Jn||Gn==="time",Ga=Object(V.useRef)({}),No=Object(V.useRef)(null),Mi=Object(V.useRef)(null),Qi=Object(V.useRef)(null),wa=Object(V.useRef)(null),ss=Object(V.useRef)(null),Zi=Object(V.useRef)(null),Fo=Object(V.useRef)(null),$i=Ce(C(Zn,Gn,Jn,lr)),sl=Object(T.a)(0,{value:Gl}),To=Object(oe.a)(sl,2),ur=To[0],Su=To[1],vo=Object(V.useRef)(null),Yr=V.useMemo(function(){return Array.isArray(Cn)?Cn:[Cn||!1,Cn||!1]},[Cn]),ua=Object(T.a)(null,{value:Ai,defaultValue:Ua,postState:function(Tn){return Gn==="time"&&!bi?Tn:Lh(Tn,Pt)}}),ls=Object(oe.a)(ua,2),Ei=ls[0],ca=ls[1],Ka=F0({values:Ei,picker:Gn,defaultDates:Pi,generateConfig:Pt}),ll=Object(oe.a)(Ka,2),ul=ll[0],us=ll[1],cl=Object(T.a)(Ei,{postState:function(Tn){var Yn=Tn;if(Yr[0]&&Yr[1])return Yn;for(var Er=0;Er<2;Er+=1)Yr[Er]&&!Le(Yn,Er)&&!Le(Ha,Er)&&(Yn=We(Yn,Pt.getNow(),Er));return Yn}}),dl=Object(oe.a)(cl,2),Ni=dl[0],yo=dl[1],_i=Object(T.a)([Gn,Gn],{value:yi}),Bn=Object(oe.a)(_i,2),kr=Bn[0],no=Bn[1];Object(V.useEffect)(function(){no([Gn,Gn])},[Gn]);var Cu=function(Tn,Yn){no(Tn),eo&&eo(Yn,Tn)},cs=Wp({picker:Gn,selectedValue:Ni,locale:tn,disabled:Yr,disabledDate:ns,generateConfig:Pt},Ga.current[1],Ga.current[0]),Vl=Object(oe.a)(cs,2),kh=Vl[0],Ns=Vl[1],qn=Object(T.a)(!1,{value:xa,defaultValue:ki,postState:function(Tn){return Yr[ur]?!1:Tn},onChange:function(Tn){Xi&&Xi(Tn),!Tn&&vo.current&&vo.current.onClose&&vo.current.onClose()}}),Fi=Object(oe.a)(qn,2),pi=Fi[0],xi=Fi[1],$n=pi&&ur===0,Fs=pi&&ur===1,U0=Object(V.useState)(0),H0=Object(oe.a)(U0,2),ix=H0[0],hl=H0[1];Object(V.useEffect)(function(){!pi&&No.current&&hl(No.current.offsetWidth)},[pi]);var Gp=V.useRef();function fl(br,Tn){if(br)clearTimeout(Gp.current),Ga.current[Tn]=!0,Su(Tn),xi(br),pi||us(null,Tn);else if(ur===Tn){xi(br);var Yn=Ga.current;Gp.current=setTimeout(function(){Yn===Ga.current&&(Ga.current={})})}}function rd(br){fl(!0,br),setTimeout(function(){var Tn=[Zi,Fo][br];Tn.current&&Tn.current.focus()},0)}function id(br,Tn){var Yn=br,Er=Le(Yn,0),wi=Le(Yn,1);Er&&wi&&Pt.isAfter(Er,wi)&&(Gn==="week"&&!Jt(Pt,tn.locale,Er,wi)||Gn==="quarter"&&!je(Pt,Er,wi)||Gn!=="week"&&Gn!=="quarter"&&Gn!=="time"&&!ft(Pt,Er,wi)?(Tn===0?(Yn=[Er,null],wi=null):(Er=null,Yn=[null,wi]),Ga.current=Object(j.a)({},Tn,!0)):(Gn!=="time"||bi!==!1)&&(Yn=Lh(Yn,Pt))),yo(Yn);var Ql=Yn&&Yn[0]?Pt.locale.format(tn.locale,Yn[0],$i[0]):"",Ya=Yn&&Yn[1]?Pt.locale.format(tn.locale,Yn[1],$i[0]):"";if(Ji){var jo={range:Tn===0?"start":"end"};Ji(Yn,[Ql,Ya],jo)}var Uo=zp(Er,0,Yr,Ha),js=zp(wi,1,Yr,Ha),ds=Yn===null||Uo&&js;ds&&(ca(Yn),Ra&&(!Wt(Pt,Le(Ei,0),Er)||!Wt(Pt,Le(Ei,1),wi))&&Ra(Yn,[Ql,Ya]));var qi=null;Tn===0&&!Yr[1]?qi=1:Tn===1&&!Yr[0]&&(qi=0),qi!==null&&qi!==ur&&(!Ga.current[qi]||!Le(Yn,qi))&&Le(Yn,Tn)?rd(qi):fl(!1,Tn)}var Qr=function(Tn){return pi&&vo.current&&vo.current.onKeyDown?vo.current.onKeyDown(Tn):(Object(A.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},W0={formatList:$i,generateConfig:Pt,locale:tn},ax=Rh(Le(Ni,0),W0),pl=Object(oe.a)(ax,2),Au=pl[0],ox=pl[1],z0=Rh(Le(Ni,1),W0),G0=Object(oe.a)(z0,2),Yl=G0[0],Ou=G0[1],Bi=function(Tn,Yn){var Er=Pt.locale.parse(tn.locale,Tn,$i),wi=Yn===0?kh:Ns;Er&&!wi(Er)&&(yo(We(Ni,Er,Yn)),us(Er,Yn))},Bo=td({valueTexts:Au,onTextChange:function(Tn){return Bi(Tn,0)}}),Kp=Object(oe.a)(Bo,3),ml=Kp[0],ad=Kp[1],Mh=Kp[2],K0=td({valueTexts:Yl,onTextChange:function(Tn){return Bi(Tn,1)}}),Nh=Object(oe.a)(K0,3),od=Nh[0],Vp=Nh[1],Yp=Nh[2],Xp=Object(V.useState)(null),Fh=Object(oe.a)(Xp,2),sx=Fh[0],Bh=Fh[1],lx=Object(V.useState)(null),jh=Object(oe.a)(lx,2),Du=jh[0],Uh=jh[1],sd=nd(ml,{formatList:$i,generateConfig:Pt,locale:tn}),Jp=Object(oe.a)(sd,3),V0=Jp[0],Qp=Jp[1],Bs=Jp[2],Zp=nd(od,{formatList:$i,generateConfig:Pt,locale:tn}),$p=Object(oe.a)(Zp,3),Hh=$p[0],ux=$p[1],Va=$p[2],cx=function(Tn){Uh(We(Ni,Tn,ur)),ur===0?Qp(Tn):ux(Tn)},dx=function(){Uh(We(Ni,null,ur)),ur===0?Bs():Va()},Y0=function(Tn,Yn){return{blurToCancel:Kl,forwardKeyDown:Qr,onBlur:Ms,isClickOutside:function(wi){return!Q([Mi.current,Qi.current,wa.current],wi)},onFocus:function(wi){Su(Tn),za&&za(wi)},triggerOpen:function(wi){fl(wi,Tn)},onSubmit:function(){id(Ni,Tn),Yn()},onCancel:function(){fl(!1,Tn),yo(Ei),Yn()}}},X0=ol(Object(W.a)(Object(W.a)({},Y0(0,Mh)),{},{open:$n,value:ml})),Ru=Object(oe.a)(X0,2),Xl=Ru[0],qp=Ru[1],J0=qp.focused,Ia=qp.typing,hx=ol(Object(W.a)(Object(W.a)({},Y0(1,Yp)),{},{open:Fs,value:od})),Q0=Object(oe.a)(hx,2),fx=Q0[0],Wh=Q0[1],zh=Wh.focused,Z0=Wh.typing,em=function(Tn){!pi&&!Zi.current.contains(Tn.target)&&!Fo.current.contains(Tn.target)&&(Yr[0]?Yr[1]||rd(1):rd(0))},$0=function(Tn){pi&&(J0||zh)&&!Zi.current.contains(Tn.target)&&!Fo.current.contains(Tn.target)&&Tn.preventDefault()},q0=Ei&&Ei[0]?Pt.locale.format(tn.locale,Ei[0],"YYYYMMDDHHmmss"):"",px=Ei&&Ei[1]?Pt.locale.format(tn.locale,Ei[1],"YYYYMMDDHHmmss"):"";Object(V.useEffect)(function(){pi||(yo(Ei),!Au.length||Au[0]===""?ad(""):ox!==ml&&Mh(),!Yl.length||Yl[0]===""?Vp(""):Ou!==od&&Yp())},[pi,Au,Yl]),Object(V.useEffect)(function(){yo(Ei)},[q0,px]),Pr&&(Pr.current={focus:function(){Zi.current&&Zi.current.focus()},blur:function(){Zi.current&&Zi.current.blur(),Fo.current&&Fo.current.blur()}});var tm=Object.keys(as||{}),mx=tm.map(function(br){var Tn=as[br],Yn=typeof Tn=="function"?Tn():Tn;return{label:br,onClick:function(){id(Yn,null),fl(!1,ur)},onMouseEnter:function(){Bh(Yn)},onMouseLeave:function(){Bh(null)}}});function nm(){var br=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Yn=null;pi&&Du&&Du[0]&&Du[1]&&Pt.isAfter(Du[1],Du[0])&&(Yn=Du);var Er=Jn;if(Jn&&Object(y.a)(Jn)==="object"&&Jn.defaultValue){var wi=Jn.defaultValue;Er=Object(W.a)(Object(W.a)({},Jn),{},{defaultValue:Le(wi,ur)||void 0})}var Ql=null;return is&&(Ql=function(jo,Uo){return is(jo,Uo,{range:ur?"end":"start"})}),V.createElement(mn.Provider,{value:{inRange:!0,panelPosition:br,rangedValue:sx||Ni,hoverRangedValue:Yn}},V.createElement(Mn,Object.assign({},de,Tn,{dateRender:Ql,showTime:Er,mode:kr[ur],generateConfig:Pt,style:void 0,direction:wo,disabledDate:ur===0?kh:Ns,disabledTime:function(jo){return rs?rs(jo,ur===0?"start":"end"):!1},className:B()(Object(j.a)({},"".concat(lt,"-panel-focused"),ur===0?!Ia:!Z0)),value:Le(Ni,ur),locale:tn,tabIndex:-1,onPanelChange:function(jo,Uo){Cu(We(kr,Uo,ur),We(Ni,jo,ur));var js=jo;br==="right"&&kr[ur]===Uo&&(js=an(js,Uo,Pt,-1)),us(js,ur)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var da=0,ey=0;ur&&Qi.current&&ss.current&&Mi.current&&(da=Qi.current.offsetWidth+ss.current.offsetWidth,Mi.current.offsetWidth&&da>Mi.current.offsetWidth&&(ey=da));var ty=wo==="rtl"?{right:da}:{left:da};function gx(){var br,Tn=Fn(lt,kr[ur],Wa),Yn=or({prefixCls:lt,components:go,needConfirmButton:Kl,okDisabled:!Le(Ni,ur)||ns&&ns(Ni[ur]),locale:tn,rangeList:mx,onOk:function(){Le(Ni,ur)&&(id(Ni,ur),xo&&xo(Ni))}});if(Gn!=="time"&&!Jn){var Er=ul(ur),wi=an(Er,Gn,Pt),Ql=kr[ur],Ya=Ql===Gn,jo=nm(Ya?"left":!1,{pickerValue:Er,onPickerValueChange:function(qi){us(qi,ur)}}),Uo=nm("right",{pickerValue:wi,onPickerValueChange:function(qi){us(an(qi,Gn,Pt,-1),ur)}});wo==="rtl"?br=V.createElement(V.Fragment,null,Uo,Ya&&jo):br=V.createElement(V.Fragment,null,jo,Ya&&Uo)}else br=nm();var js=V.createElement(V.Fragment,null,V.createElement("div",{className:"".concat(lt,"-panels")},br),(Tn||Yn)&&V.createElement("div",{className:"".concat(lt,"-footer")},Tn,Yn));return mo&&(js=mo(js)),V.createElement("div",{className:"".concat(lt,"-panel-container"),style:{marginLeft:ey},ref:Mi,onMouseDown:function(qi){qi.preventDefault()}},js)}var Iu=V.createElement("div",{className:B()("".concat(lt,"-range-wrapper"),"".concat(lt,"-").concat(Gn,"-range-wrapper")),style:{minWidth:ix}},V.createElement("div",{className:"".concat(lt,"-range-arrow"),style:ty}),gx()),La;ko&&(La=V.createElement("span",{className:"".concat(lt,"-suffix")},ko));var ny;os&&(Le(Ei,0)&&!Yr[0]||Le(Ei,1)&&!Yr[1])&&(ny=V.createElement("span",{onMouseDown:function(Tn){Tn.preventDefault(),Tn.stopPropagation()},onMouseUp:function(Tn){Tn.preventDefault(),Tn.stopPropagation();var Yn=Ei;Yr[0]||(Yn=We(Yn,null,0)),Yr[1]||(Yn=We(Yn,null,1)),id(Yn,null),fl(!1,ur)},className:"".concat(lt,"-clear")},Mo||V.createElement("span",{className:"".concat(lt,"-clear-btn")})));var ld={size:b(Gn,$i[0])},Jl=0,Lu=0;Qi.current&&wa.current&&ss.current&&(ur===0?Lu=Qi.current.offsetWidth:(Jl=da,Lu=wa.current.offsetWidth));var rm=wo==="rtl"?{right:Jl}:{left:Jl},ry=function(Tn,Yn){var Er=We(Ni,Tn,ur);Yn==="submit"||Yn!=="key"&&!Kl?(id(Er,ur),ur===0?Bs():Va()):yo(Er)};return V.createElement(_.Provider,{value:{operationRef:vo,hideHeader:Gn==="time",onDateMouseEnter:cx,onDateMouseLeave:dx,hideRanges:!0,onSelect:ry,open:pi}},V.createElement(Tu,{visible:pi,popupElement:Iu,popupStyle:Kt,prefixCls:lt,dropdownClassName:nn,dropdownAlign:gt,getPopupContainer:Xt,transitionName:Zt,range:!0,direction:wo},V.createElement("div",Object.assign({ref:No,className:B()(lt,"".concat(lt,"-range"),Gt,(Fe={},Object(j.a)(Fe,"".concat(lt,"-disabled"),Yr[0]&&Yr[1]),Object(j.a)(Fe,"".concat(lt,"-focused"),ur===0?J0:zh),Object(j.a)(Fe,"".concat(lt,"-rtl"),wo==="rtl"),Fe)),style:Dt,onClick:em,onMouseDown:$0},ze(de)),V.createElement("div",{className:B()("".concat(lt,"-input"),(Je={},Object(j.a)(Je,"".concat(lt,"-input-active"),ur===0),Object(j.a)(Je,"".concat(lt,"-input-placeholder"),!!V0),Je)),ref:Qi},V.createElement("input",Object.assign({id:mt,disabled:Yr[0],readOnly:Vr||!Ia,value:V0||ml,onChange:function(Tn){ad(Tn.target.value)},autoFocus:En,placeholder:Le(Vt,0)||"",ref:Zi},Xl,ld,{autoComplete:to}))),V.createElement("div",{className:"".concat(lt,"-range-separator"),ref:ss},Yi),V.createElement("div",{className:B()("".concat(lt,"-input"),(Xe={},Object(j.a)(Xe,"".concat(lt,"-input-active"),ur===1),Object(j.a)(Xe,"".concat(lt,"-input-placeholder"),!!Hh),Xe)),ref:wa},V.createElement("input",Object.assign({disabled:Yr[1],readOnly:Vr||!Z0,value:Hh||od,onChange:function(Tn){Vp(Tn.target.value)},placeholder:Le(Vt,1)||"",ref:Fo},fx,ld,{autoComplete:to}))),V.createElement("div",{className:"".concat(lt,"-active-bar"),style:Object(W.a)(Object(W.a)({},rm),{},{width:Lu,position:"absolute"})}),La,ny)))}var Ph=function(de){Object(X.a)(Je,de);var Fe=Object(le.a)(Je);function Je(){var Xe;return Object(Se.a)(this,Je),Xe=Fe.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(B0,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Je}(V.Component),ks=Ph,j0=Ne.b=tx},p5ED:function(Ot,Ne,ie){"use strict";var Se=ie("+L6B"),ae=ie("2/Rp"),X=ie("5Dmo"),le=ie("3S7+"),j=ie("k1fw"),W=ie("9og8"),oe=ie("tJVT"),V=ie("WmNS"),l=ie.n(V),B=ie("q1tI"),A=ie.n(B),T=ie("vHTk"),y=ie.n(T),p=ie("yEEn"),v=ie("ZW9T"),_=ie("1vsH"),g=ie("V0Rq"),h=ie("m3rI");Ne.a=function(c){var d,R,D,I,N,S,L,C=c.editOffice,b=C===void 0?"view":C,E=c.data,O=c.theme,x=c.type,k=c.filename,Z=c.monacoEditor,G=c.className,P=c.style,z=c.close,Q=c.onClose,H=c.hasMask,ne=c.disabledDownload,ce=Object(B.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],ze=we[1],Le=Object(B.useState)(""),We=Object(oe.a)(Le,2),Ve=We[0],$e=We[1],Pe=Object(B.useState)(),se=Object(oe.a)(Pe,2),w=se[0],F=se[1],Y=window.ENV==="build"?"/react/build":"",ue=h.a.PROXY_SERVER||location.origin,q,xe=1024*1024,Be=10*xe,it=Object(B.useRef)();(d=E)!==null&&d!==void 0&&d.startsWith("/api")&&x!=="txt"&&(E=h.a.API_SERVER+E),x==="office"&&(q=Object(_.T)(E).filesize,q>Be&&(x="other")),k&&Z&&(Z.filename=k),Object(B.useEffect)(function(){var Ye,ft,Rt=(Ye=document.cookie)===null||Ye===void 0||((ft=Ye.replace(/\s/g,""))===null||ft===void 0)?void 0:ft.split(";");Rt==null||Rt.map(function(Jt){var Wt=Jt.split("=");Wt[0]==="_educoder_session"&&$e(Wt[1])})},[]),Object(B.useEffect)(function(){x==="office"&&be()},[x,E]);var be=function(){var Ye=Object(W.a)(l.a.mark(function ft(){var Rt,Jt,Wt;return l.a.wrap(function(sn){for(;;)switch(sn.prev=sn.next){case 0:return console.log("data:",E),Rt=E,E.startsWith("http")||(Rt=location.origin+Rt),Jt=new URL(Rt).pathname.split("/").pop(),sn.next=6,Object(g.V)({attachment_id:Jt});case 6:Wt=sn.sent,F(Wt);case 8:case"end":return sn.stop()}},ft)}));return function(){return Ye.apply(this,arguments)}}(),Re=function(){if(E.startsWith("http")||E.startsWith("blob:")){je();return}Object(_.z)(k||"educoder",E,k)},je=function(){Object(_.x)(k||"educoder",decodeURIComponent(E))};return A.a.createElement("div",{style:Object(j.a)({},P||{}),className:"".concat(H&&y.a.bgBlack," ").concat(x?y.a.wrp:"hide")},z&&A.a.createElement("div",{className:y.a.close,ref:it},!ne&&A.a.createElement(le.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return it.current}},A.a.createElement("span",{onClick:je},A.a.createElement("i",{className:"icon-quxiaozhiding"}))),A.a.createElement(le.a,{title:"\u5173\u95ED",getPopupContainer:function(){return it.current}},A.a.createElement("span",{className:"",onClick:Q},A.a.createElement("i",{className:"icon-guanbi1"})))),A.a.createElement("div",{className:"".concat(y.a[G]," ").concat(G," ").concat(y.a.monaco," ").concat(x==="txt"?"show":"hide")},x==="txt"&&A.a.createElement(v.b,Z)),x==="audio"&&A.a.createElement("audio",{src:"".concat(((R=E)===null||R===void 0?void 0:R.indexOf("http://"))>-1||((D=E)===null||D===void 0?void 0:D.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(E),autoPlay:!0}),x==="video"&&A.a.createElement(A.a.Fragment,null,((I=E)===null||I===void 0?void 0:I.indexOf("http"))>-1?A.a.createElement("video",{controls:!0,src:"".concat(E),autoPlay:!0}):A.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(E),autoPlay:!0})),x==="office"&&w&&A.a.createElement("iframe",{src:"".concat(Y,"/office.html?key=").concat(w.key,"&url=").concat(ue+w.url,"&callbackUrl=").concat(ue+w.callbackUrl,"&fileType=").concat(w.fileType,"&title=").concat(w.title,"&model=").concat(b,"&officeServer=").concat(h.a.OFFICE_SERVER,"&disabledDownload=").concat(!!ne)}),x==="html"&&A.a.createElement("iframe",{src:E+"&disposition=inline"}),x==="pdf"&&A.a.createElement("iframe",{src:"".concat(Y,"/js/pdfview/index.html?url=").concat(E,"&disabledDownload=").concat(!!ne)}),x==="image"&&A.a.createElement("img",{src:"".concat(((N=E)===null||N===void 0?void 0:N.indexOf("http://"))>-1||((S=E)===null||S===void 0?void 0:S.indexOf("https://"))>-1||(L=E)!==null&&L!==void 0&&L.startsWith("/api")?"":"data:image/png;base64,").concat(E)}),x==="other"&&A.a.createElement("div",null,A.a.createElement(ae.a,{type:"primary",size:"large",onClick:Re},A.a.createElement(p.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),x==="download"&&A.a.createElement(ae.a,{type:"primary",size:"large",onClick:Re},A.a.createElement(p.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},phzI:function(Ot,Ne,ie){"use strict";var Se=ie("k1fw"),ae=ie("9og8"),X=ie("tJVT"),le=ie("WmNS"),j=ie.n(le),W=ie("q1tI"),oe=ie.n(W),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,R=arguments.length;d<R;d++)for(var D in c=arguments[d])Object.prototype.hasOwnProperty.call(c,D)&&(h[D]=c[D]);return h},l.apply(this,arguments)};function B(h,c){var d=typeof Symbol=="function"&&h[Symbol.iterator];if(!d)return h;var R,D,I=d.call(h),N=[];try{for(;(c===void 0||c-- >0)&&!(R=I.next()).done;)N.push(R.value)}catch(S){D={error:S}}finally{try{R&&!R.done&&(d=I.return)&&d.call(I)}finally{if(D)throw D.error}}return N}function A(h){var c=h.defaultContent,d=c===void 0?[]:c,R=h.onCreated,D=h.defaultHtml,I=D===void 0?"":D,N=h.value,S=N===void 0?"":N,L=h.onChange,C=h.defaultConfig,b=C===void 0?{}:C,E=h.mode,O=E===void 0?"default":E,x=h.style,k=x===void 0?{}:x,Z=h.className,G=Object(W.useRef)(null),P=B(Object(W.useState)(null),2),z=P[0],Q=P[1],H=B(Object(W.useState)(""),2),ne=H[0],ce=H[1],we=function(Le){R&&R(Le);var We=b.onCreated;We&&We(Le)},Ce=function(Le){ce(Le.getHtml()),L&&L(Le);var We=b.onChange;We&&We(Le)},ze=function(Le){var We=b.onDestroyed;Q(null),We&&We(Le)};return Object(W.useEffect)(function(){if(z!=null&&S!==ne)try{z.setHtml(S)}catch(Le){console.error(Le)}},[S]),Object(W.useEffect)(function(){var Le;if(G.current!=null&&z==null&&!((Le=G.current)===null||Le===void 0?void 0:Le.getAttribute("data-w-e-textarea"))){var We=Object(V.a)({selector:G.current,config:l(l({},b),{onCreated:we,onChange:Ce,onDestroyed:ze}),content:d,html:I||S,mode:O});Q(We)}},[z]),oe.a.createElement("div",{style:k,ref:G,className:Z})}function T(h){var c=h.editor,d=h.defaultConfig,R=d===void 0?{}:d,D=h.mode,I=D===void 0?"default":D,N=h.style,S=N===void 0?{}:N,L=h.className,C=Object(W.useRef)(null);return Object(W.useEffect)(function(){C.current!=null&&c!=null&&V.b({editor:c,selector:C.current,config:R,mode:I})},[c]),oe.a.createElement("div",{style:S,ref:C,className:L})}var y=ie("ErOA"),p=ie("9kvl"),v=ie("Vg4E"),_=function(c){var d=c.defaultvalue,R=c.onChange,D=c.style,I=c.user,N=c.placeholder,S=1024*1024*2,L=Object(W.useRef)(null),C=4,b=Object(W.useState)(null),E=Object(X.a)(b,2),O=E[0],x=E[1],k=Object(W.useState)(""),Z=Object(X.a)(k,2),G=Z[0],P=Z[1];Object(W.useEffect)(function(){P(d)},[d]),Object(W.useEffect)(function(){R(G)},[G]);var z={},Q={placeholder:N||"\u8BF7\u8F93\u5165\u5185\u5BB9...",MENU_CONF:{}};return Q.MENU_CONF.uploadImage={customUpload:function(ne,ce){return Object(ae.a)(j.a.mark(function we(){var Ce,ze;return j.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return Ce=new FormData,Ce.append("file",ne),We.next=4,Object(y.a)("/api/attachments.json",{method:"post",body:Ce},!0);case 4:ze=We.sent,ce(ze==null?void 0:ze.url,"","");case 6:case"end":return We.stop()}},we)}))()}},Q.MENU_CONF.uploadVideo={customUpload:function(ne,ce){return Object(ae.a)(j.a.mark(function we(){var Ce,ze,Le,We,Ve,$e,Pe,se,w,F,Y,ue,q,xe,Be,it;return j.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Ce=ne.size,ze=Math.ceil(Ce/S),Re.prev=2,Re.next=5,Object(y.a)("/api/attachments/multipart_upload_start",{method:"POST",body:{fileName:ne.name,chunkCount:ze,user_id:I==null||((Le=I.userInfo)===null||Le===void 0)?void 0:Le.user_id}});case 5:if(Ve=Re.sent,!((Ve==null?void 0:Ve.status)!==0)){Re.next=8;break}throw new Error;case 8:for($e=Ve.upload_id,L.current=new AbortController,Pe=[],se=0,w=function(Ye){var ft=Ye*S,Rt=Math.min(ft+S,Ce),Jt=ne.slice(ft,Rt),Wt=new FormData;Wt.append("chunk",Jt),Wt.append("fileName",ne.name),Wt.append("chunkIndex",(Ye+1).toString()),Wt.append("uploadId",$e),Pe.push(function(){return Object(y.a)("/api/attachments/multipart_upload",{method:"POST",body:Wt,signal:L.current.signal},!0).then(function(Nt){})})},F=0;F<ze;F++)w(F);Y=0,ue=C,console.log(Pe,"promises");case 17:if(!(Y<Pe.length)){Re.next=26;break}if(xe=(q=Pe.slice(Y,Y+ue))===null||q===void 0?void 0:q.map(function(je){return je()}),!(xe.length>0)){Re.next=24;break}return Re.next=22,Promise.all(xe);case 22:Be=Re.sent,Y+=ue;case 24:Re.next=17;break;case 26:return Re.next=28,Object(y.a)("/api/attachments/multipart_upload_end",{method:"POST",body:{fileName:ne.name,chunkCount:ze,uploadId:$e,user_id:I==null||((We=I.userInfo)===null||We===void 0)?void 0:We.user_id}});case 28:it=Re.sent,ce(it==null?void 0:it.object,""),Re.next=34;break;case 32:Re.prev=32,Re.t0=Re.catch(2);case 34:case"end":return Re.stop()}},we,null,[[2,32]])}))()}},Object(W.useEffect)(function(){return function(){if(O==null)return;O.destroy(),x(null),R(null)}},[O]),oe.a.createElement(oe.a.Fragment,null,oe.a.createElement("div",{style:{border:"1px solid #ccc",zIndex:100}},oe.a.createElement(T,{editor:O,defaultConfig:z,mode:"default",style:{borderBottom:"1px solid #ccc"}}),oe.a.createElement(A,{defaultConfig:Q,value:G,onCreated:x,onChange:function(ne){return P(ne.getHtml())},mode:"default",style:Object(Se.a)({height:"500px",overflowY:"hidden"},D)})))},g=Ne.a=Object(p.a)(function(h){var c=h.user;return{user:c}})(_)},pmY6:function(Ot,Ne,ie){"use strict";ie.d(Ne,"h",function(){return B}),ie.d(Ne,"g",function(){return T}),ie.d(Ne,"f",function(){return y}),ie.d(Ne,"e",function(){return p}),ie.d(Ne,"i",function(){return v}),ie.d(Ne,"b",function(){return _}),ie.d(Ne,"a",function(){return g}),ie.d(Ne,"d",function(){return h}),ie.d(Ne,"c",function(){return c});var Se=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(R){const D=new Error("Potentially leaked disposable").stack;setTimeout(()=>{R[d]||console.log(D)},3e3)}setParent(R,D){if(R&&R!==g.None)try{R[d]=!0}catch(I){}}markAsDisposed(R){if(R&&R!==g.None)try{R[d]=!0}catch(D){}}markAsSingleton(R){}})}function W(d){return le==null||le.trackDisposable(d),d}function oe(d){le==null||le.markAsDisposed(d)}function V(d,R){le==null||le.setParent(d,R)}function l(d,R){if(!le)return;for(const D of d)le.setParent(D,R)}function B(d){return le==null||le.markAsSingleton(d),d}class A extends Error{constructor(d){super(`Encountered errors while disposing of store. Errors: [${d.join(", ")}]`);this.errors=d}}function T(d){return typeof d.dispose=="function"&&d.dispose.length===0}function y(d){if(ae.a.is(d)){let R=[];for(const D of d)if(D)try{D.dispose()}catch(I){R.push(I)}if(R.length===1)throw R[0];if(R.length>1)throw new A(R);return Array.isArray(d)?[]:d}else if(d)return d.dispose(),d}function p(...d){const R=v(()=>y(d));return l(d,R),R}function v(d){const R=W({dispose:Object(Se.a)(()=>{oe(R),d()})});return R}class _{constructor(){this._toDispose=new Set,this._isDisposed=!1,W(this)}dispose(){if(this._isDisposed)return;oe(this),this._isDisposed=!0,this.clear()}clear(){try{y(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?_.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}}_.DISABLE_DISPOSED_WARNING=!1;class g{constructor(){this._store=new _,W(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,W(this)}get value(){return this._isDisposed?void 0:this._value}set value(d){var R;if(this._isDisposed||d===this._value)return;(R=this._value)===null||R===void 0||R.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(Ot,Ne,ie){var Se,ae;(function(){var X;(function(){"use strict";var oe=[,,function(A){function T(v){this.__parent=v,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=[]}T.prototype.clone_empty=function(){var v=new T(this.__parent);return v.set_indent(this.__indent_count,this.__alignment_count),v},T.prototype.item=function(v){return v<0?this.__items[this.__items.length+v]:this.__items[v]},T.prototype.has_match=function(v){for(var _=this.__items.length-1;_>=0;_--)if(this.__items[_].match(v))return!0;return!1},T.prototype.set_indent=function(v,_){this.is_empty()&&(this.__indent_count=v||0,this.__alignment_count=_||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},T.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)},T.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},T.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var v=this.__parent.current_line;return v.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),v.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),v.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,v.__items[0]===" "&&(v.__items.splice(0,1),v.__character_count-=1),!0}return!1},T.prototype.is_empty=function(){return this.__items.length===0},T.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},T.prototype.push=function(v){this.__items.push(v);var _=v.lastIndexOf(`
`);_!==-1?this.__character_count=v.length-_:this.__character_count+=v.length},T.prototype.pop=function(){var v=null;return this.is_empty()||(v=this.__items.pop(),this.__character_count-=v.length),v},T.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},T.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},T.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},T.prototype.toString=function(){var v="";return this.is_empty()?this.__parent.indent_empty_lines&&(v=this.__parent.get_indent_string(this.__indent_count)):(v=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),v+=this.__items.join("")),v};function y(v,_){this.__cache=[""],this.__indent_size=v.indent_size,this.__indent_string=v.indent_char,v.indent_with_tabs||(this.__indent_string=new Array(v.indent_size+1).join(v.indent_char)),_=_||"",v.indent_level>0&&(_=new Array(v.indent_level+1).join(this.__indent_string)),this.__base_string=_,this.__base_string_length=_.length}y.prototype.get_indent_size=function(v,_){var g=this.__base_string_length;return _=_||0,v<0&&(g=0),g+=v*this.__indent_size,g+=_,g},y.prototype.get_indent_string=function(v,_){var g=this.__base_string;return _=_||0,v<0&&(v=0,g=""),_+=v*this.__indent_size,this.__ensure_cache(_),g+=this.__cache[_],g},y.prototype.__ensure_cache=function(v){for(;v>=this.__cache.length;)this.__add_column()},y.prototype.__add_column=function(){var v=this.__cache.length,_=0,g="";this.__indent_size&&v>=this.__indent_size&&(_=Math.floor(v/this.__indent_size),v-=_*this.__indent_size,g=new Array(_+1).join(this.__indent_string)),v&&(g+=new Array(v+1).join(" ")),this.__cache.push(g)};function p(v,_){this.__indent_cache=new y(v,_),this.raw=!1,this._end_with_newline=v.end_with_newline,this.indent_size=v.indent_size,this.wrap_line_length=v.wrap_line_length,this.indent_empty_lines=v.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new T(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(v,_){return this.__indent_cache.get_indent_string(v,_)},p.prototype.get_indent_size=function(v,_){return this.__indent_cache.get_indent_size(v,_)},p.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},p.prototype.add_new_line=function(v){return this.is_empty()||!v&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},p.prototype.get_code=function(v){this.trim(!0);var _=this.current_line.pop();_&&(_[_.length-1]===`
`&&(_=_.replace(/\n+$/g,"")),this.current_line.push(_)),this._end_with_newline&&this.__add_outputline();var g=this.__lines.join(`
`);return v!==`
`&&(g=g.replace(/[\n]/g,v)),g},p.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},p.prototype.set_indent=function(v,_){return v=v||0,_=_||0,this.next_line.set_indent(v,_),this.__lines.length>1?(this.current_line.set_indent(v,_),!0):(this.current_line.set_indent(),!1)},p.prototype.add_raw_token=function(v){for(var _=0;_<v.newlines;_++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(v.whitespace_before),this.current_line.push(v.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},p.prototype.add_token=function(v){this.__add_space_before_token(),this.current_line.push(v),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(v){for(var _=this.__lines.length;v<_;)this.__lines[v]._remove_indent(),v++;this.current_line._remove_wrap_indent()},p.prototype.trim=function(v){for(v=v===void 0?!1:v,this.current_line.trim();v&&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(v,_){for(var g=this.__lines.length-2;g>=0;){var h=this.__lines[g];if(h.is_empty())break;if(h.item(0).indexOf(v)!==0&&h.item(-1)!==_){this.__lines.splice(g+1,0,new T(this)),this.previous_line=this.__lines[this.__lines.length-2];break}g--}},A.exports.Output=p},function(A){function T(y,p,v,_){this.type=y,this.text=p,this.comments_before=null,this.newlines=v||0,this.whitespace_before=_||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}A.exports.Token=T},,,function(A){function T(v,_){this.raw_options=y(v,_),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"])}T.prototype._get_array=function(v,_){var g=this.raw_options[v],h=_||[];return typeof g=="object"?g!==null&&typeof g.concat=="function"&&(h=g.concat()):typeof g=="string"&&(h=g.split(/[^a-zA-Z0-9_\/\-]+/)),h},T.prototype._get_boolean=function(v,_){var g=this.raw_options[v],h=g===void 0?!!_:!!g;return h},T.prototype._get_characters=function(v,_){var g=this.raw_options[v],h=_||"";return typeof g=="string"&&(h=g.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),h},T.prototype._get_number=function(v,_){var g=this.raw_options[v];_=parseInt(_,10),isNaN(_)&&(_=0);var h=parseInt(g,10);return isNaN(h)&&(h=_),h},T.prototype._get_selection=function(v,_,g){var h=this._get_selection_list(v,_,g);if(h.length!==1)throw new Error("Invalid Option Value: The option '"+v+`' can only be one of the following values:
`+_+`
You passed in: '`+this.raw_options[v]+"'");return h[0]},T.prototype._get_selection_list=function(v,_,g){if(!_||_.length===0)throw new Error("Selection list cannot be empty.");if(g=g||[_[0]],!this._is_valid_selection(g,_))throw new Error("Invalid Default Value!");var h=this._get_array(v,g);if(!this._is_valid_selection(h,_))throw new Error("Invalid Option Value: The option '"+v+`' can contain only the following values:
`+_+`
You passed in: '`+this.raw_options[v]+"'");return h},T.prototype._is_valid_selection=function(v,_){return v.length&&_.length&&!v.some(function(g){return _.indexOf(g)===-1})};function y(v,_){var g={};v=p(v);var h;for(h in v)h!==_&&(g[h]=v[h]);if(_&&v[_])for(h in v[_])g[h]=v[_][h];return g}function p(v){var _={},g;for(g in v){var h=g.replace(/-/g,"_");_[h]=v[g]}return _}A.exports.Options=T,A.exports.normalizeOpts=p,A.exports.mergeOpts=y},,function(A){var T=RegExp.prototype.hasOwnProperty("sticky");function y(p){this.__input=p||"",this.__input_length=this.__input.length,this.__position=0}y.prototype.restart=function(){this.__position=0},y.prototype.back=function(){this.__position>0&&(this.__position-=1)},y.prototype.hasNext=function(){return this.__position<this.__input_length},y.prototype.next=function(){var p=null;return this.hasNext()&&(p=this.__input.charAt(this.__position),this.__position+=1),p},y.prototype.peek=function(p){var v=null;return p=p||0,p+=this.__position,p>=0&&p<this.__input_length&&(v=this.__input.charAt(p)),v},y.prototype.__match=function(p,v){p.lastIndex=v;var _=p.exec(this.__input);return _&&!(T&&p.sticky)&&(_.index!==v&&(_=null)),_},y.prototype.test=function(p,v){return v=v||0,v+=this.__position,v>=0&&v<this.__input_length?!!this.__match(p,v):!1},y.prototype.testChar=function(p,v){var _=this.peek(v);return p.lastIndex=0,_!==null&&p.test(_)},y.prototype.match=function(p){var v=this.__match(p,this.__position);return v?this.__position+=v[0].length:v=null,v},y.prototype.read=function(p,v,_){var g="",h;return p&&(h=this.match(p),h&&(g+=h[0])),v&&(h||!p)&&(g+=this.readUntil(v,_)),g},y.prototype.readUntil=function(p,v){var _="",g=this.__position;p.lastIndex=this.__position;var h=p.exec(this.__input);return h?(g=h.index,v&&(g+=h[0].length)):g=this.__input_length,_=this.__input.substring(this.__position,g),this.__position=g,_},y.prototype.readUntilAfter=function(p){return this.readUntil(p,!0)},y.prototype.get_regexp=function(p,v){var _=null,g="g";return v&&T&&(g="y"),typeof p=="string"&&p!==""?_=new RegExp(p,g):p&&(_=new RegExp(p.source,g)),_},y.prototype.get_literal_regexp=function(p){return RegExp(p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},y.prototype.peekUntilAfter=function(p){var v=this.__position,_=this.readUntilAfter(p);return this.__position=v,_},y.prototype.lookBack=function(p){var v=this.__position-1;return v>=p.length&&this.__input.substring(v-p.length,v).toLowerCase()===p},A.exports.InputScanner=y},function(A,T,y){var p=y(8).InputScanner,v=y(3).Token,_=y(10).TokenStream,g=y(11).WhitespacePattern,h={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},c=function(d,R){this._input=new p(d),this._options=R||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new g(this._input)};c.prototype.tokenize=function(){this._input.restart(),this.__tokens=new _,this._reset();for(var d,R=new v(h.START,""),D=null,I=[],N=new _;R.type!==h.EOF;){for(d=this._get_next_token(R,D);this._is_comment(d);)N.add(d),d=this._get_next_token(R,D);N.isEmpty()||(d.comments_before=N,N=new _),d.parent=D,this._is_opening(d)?(I.push(D),D=d):D&&this._is_closing(d,D)&&(d.opened=D,D.closed=d,D=I.pop(),d.parent=D),d.previous=R,R.next=d,this.__tokens.add(d),R=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,R){this._readWhitespace();var D=this._input.read(/.+/g);return D?this._create_token(h.RAW,D):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,R){return!1},c.prototype._create_token=function(d,R){var D=new v(d,R,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return D},c.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},A.exports.Tokenizer=c,A.exports.TOKEN=h},function(A){function T(y){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=y}T.prototype.restart=function(){this.__position=0},T.prototype.isEmpty=function(){return this.__tokens_length===0},T.prototype.hasNext=function(){return this.__position<this.__tokens_length},T.prototype.next=function(){var y=null;return this.hasNext()&&(y=this.__tokens[this.__position],this.__position+=1),y},T.prototype.peek=function(y){var p=null;return y=y||0,y+=this.__position,y>=0&&y<this.__tokens_length&&(p=this.__tokens[y]),p},T.prototype.add=function(y){this.__parent_token&&(y.parent=this.__parent_token),this.__tokens.push(y),this.__tokens_length+=1},A.exports.TokenStream=T},function(A,T,y){var p=y(12).Pattern;function v(_,g){p.call(this,_,g),g?this._line_regexp=this._input.get_regexp(g._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}v.prototype=new p,v.prototype.__set_whitespace_patterns=function(_,g){_+="\\t ",g+="\\n\\r",this._match_pattern=this._input.get_regexp("["+_+g+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+g+"]")},v.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var _=this._input.read(this._match_pattern);if(_===" ")this.whitespace_before_token=" ";else if(_){var g=this.__split(this._newline_regexp,_);this.newline_count=g.length-1,this.whitespace_before_token=g[this.newline_count]}return _},v.prototype.matching=function(_,g){var h=this._create();return h.__set_whitespace_patterns(_,g),h._update(),h},v.prototype._create=function(){return new v(this._input,this)},v.prototype.__split=function(_,g){_.lastIndex=0;for(var h=0,c=[],d=_.exec(g);d;)c.push(g.substring(h,d.index)),h=d.index+d[0].length,d=_.exec(g);return h<g.length?c.push(g.substring(h,g.length)):c.push(""),c},A.exports.WhitespacePattern=v},function(A){function T(y,p){this._input=y,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)}T.prototype.read=function(){var y=this._input.read(this._starting_pattern);return(!this._starting_pattern||y)&&(y+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),y},T.prototype.read_match=function(){return this._input.match(this._match_pattern)},T.prototype.until_after=function(y){var p=this._create();return p._until_after=!0,p._until_pattern=this._input.get_regexp(y),p._update(),p},T.prototype.until=function(y){var p=this._create();return p._until_after=!1,p._until_pattern=this._input.get_regexp(y),p._update(),p},T.prototype.starting_with=function(y){var p=this._create();return p._starting_pattern=this._input.get_regexp(y,!0),p._update(),p},T.prototype.matching=function(y){var p=this._create();return p._match_pattern=this._input.get_regexp(y,!0),p._update(),p},T.prototype._create=function(){return new T(this._input,this)},T.prototype._update=function(){},A.exports.Pattern=T},function(A){function T(y,p){y=typeof y=="string"?y:y.source,p=typeof p=="string"?p:p.source,this.__directives_block_pattern=new RegExp(y+/ beautify( \w+[:]\w+)+ /.source+p,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(y+/\sbeautify\signore:end\s/.source+p,"g")}T.prototype.get_directives=function(y){if(!y.match(this.__directives_block_pattern))return null;var p={};this.__directive_pattern.lastIndex=0;for(var v=this.__directive_pattern.exec(y);v;)p[v[1]]=v[2],v=this.__directive_pattern.exec(y);return p},T.prototype.readIgnored=function(y){return y.readUntilAfter(this.__directives_end_ignore_pattern)},A.exports.Directives=T},function(A,T,y){var p=y(12).Pattern,v={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function _(g,h){p.call(this,g,h),this.__template_pattern=null,this._disabled=Object.assign({},v),this._excluded=Object.assign({},v),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}/)}}_.prototype=new p,_.prototype._create=function(){return new _(this._input,this)},_.prototype._update=function(){this.__set_templated_pattern()},_.prototype.disable=function(g){var h=this._create();return h._disabled[g]=!0,h._update(),h},_.prototype.read_options=function(g){var h=this._create();for(var c in v)h._disabled[c]=g.templating.indexOf(c)===-1;return h._update(),h},_.prototype.exclude=function(g){var h=this._create();return h._excluded[g]=!0,h._update(),h},_.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},_.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("|")+")")},_.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},A.exports.TemplatablePattern=_},,,,function(A,T,y){var p=y(19).Beautifier,v=y(20).Options;function _(g,h,c,d){var R=new p(g,h,c,d);return R.beautify()}A.exports=_,A.exports.defaultOptions=function(){return new v}},function(A,T,y){var p=y(20).Options,v=y(2).Output,_=y(21).Tokenizer,g=y(21).TOKEN,h=/\r\n|[\r\n]/,c=/\r\n|[\r\n]/g,d=function(O,x){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=O.max_preserve_newlines,this.preserve_newlines=O.preserve_newlines,this._output=new v(O,x)};d.prototype.current_line_has_match=function(O){return this._output.current_line.has_match(O)},d.prototype.set_space_before_token=function(O,x){this._output.space_before_token=O,this._output.non_breaking_space=x},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(O){this._output.add_raw_token(O)},d.prototype.print_preserved_newlines=function(O){var x=0;O.type!==g.TEXT&&O.previous.type!==g.TEXT&&(x=O.newlines?1:0),this.preserve_newlines&&(x=O.newlines<this.max_preserve_newlines+1?O.newlines:this.max_preserve_newlines+1);for(var k=0;k<x;k++)this.print_newline(k>0);return x!==0},d.prototype.traverse_whitespace=function(O){return O.whitespace_before||O.newlines?(this.print_preserved_newlines(O)||(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(O){this._output.add_new_line(O)},d.prototype.print_token=function(O){O.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(O.text))},d.prototype.indent=function(){this.indent_level++},d.prototype.get_full_indent=function(O){return O=this.indent_level+(O||0),O<1?"":this._output.get_indent_string(O)};var R=function(O){for(var x=null,k=O.next;k.type!==g.EOF&&O.closed!==k;){if(k.type===g.ATTRIBUTE&&k.text==="type"){k.next&&k.next.type===g.EQUALS&&k.next.next&&k.next.next.type===g.VALUE&&(x=k.next.next.text);break}k=k.next}return x},D=function(O,x){var k=null,Z=null;return x.closed?(O==="script"?k="text/javascript":O==="style"&&(k="text/css"),k=R(x)||k,k.search("text/css")>-1?Z="css":k.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?Z="javascript":k.search(/(text|application|dojo)\/(x-)?(html)/)>-1?Z="html":k.search(/test\/null/)>-1&&(Z="null"),Z):null};function I(O,x){return x.indexOf(O)!==-1}function N(O,x,k){this.parent=O||null,this.tag=x?x.tag_name:"",this.indent_level=k||0,this.parser_token=x||null}function S(O){this._printer=O,this._current_frame=null}S.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},S.prototype.record_tag=function(O){var x=new N(this._current_frame,O,this._printer.indent_level);this._current_frame=x},S.prototype._try_pop_frame=function(O){var x=null;return O&&(x=O.parser_token,this._printer.indent_level=O.indent_level,this._current_frame=O.parent),x},S.prototype._get_frame=function(O,x){for(var k=this._current_frame;k&&!(O.indexOf(k.tag)!==-1);){if(x&&x.indexOf(k.tag)!==-1){k=null;break}k=k.parent}return k},S.prototype.try_pop=function(O,x){var k=this._get_frame([O],x);return this._try_pop_frame(k)},S.prototype.indent_to_tag=function(O){var x=this._get_frame(O);x&&(this._printer.indent_level=x.indent_level)};function L(O,x,k,Z){this._source_text=O||"",x=x||{},this._js_beautify=k,this._css_beautify=Z,this._tag_stack=null;var G=new p(x,"html");this._options=G,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"}L.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var O=this._source_text,x=this._options.eol;this._options.eol==="auto"&&(x=`
`,O&&h.test(O)&&(x=O.match(h)[0])),O=O.replace(c,`
`);var k=O.match(/^[\t ]*/)[0],Z={text:"",type:""},G=new C,P=new d(this._options,k),z=new _(O,this._options).tokenize();this._tag_stack=new S(P);for(var Q=null,H=z.next();H.type!==g.EOF;)H.type===g.TAG_OPEN||H.type===g.COMMENT?(Q=this._handle_tag_open(P,H,G,Z),G=Q):H.type===g.ATTRIBUTE||H.type===g.EQUALS||H.type===g.VALUE||H.type===g.TEXT&&!G.tag_complete?Q=this._handle_inside_tag(P,H,G,z):H.type===g.TAG_CLOSE?Q=this._handle_tag_close(P,H,G):H.type===g.TEXT?Q=this._handle_text(P,H,G):P.add_raw_token(H),Z=Q,H=z.next();var ne=P._output.get_code(x);return ne},L.prototype._handle_tag_close=function(O,x,k){var Z={text:x.text,type:x.type};return O.alignment_size=0,k.tag_complete=!0,O.set_space_before_token(x.newlines||x.whitespace_before!=="",!0),k.is_unformatted?O.add_raw_token(x):(k.tag_start_char==="<"&&(O.set_space_before_token(x.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&k.has_wrapped_attrs&&O.print_newline(!1)),O.print_token(x)),k.indent_content&&!(k.is_unformatted||k.is_content_unformatted)&&(O.indent(),k.indent_content=!1),!k.is_inline_element&&!(k.is_unformatted||k.is_content_unformatted)&&O.set_wrap_point(),Z},L.prototype._handle_inside_tag=function(O,x,k,Z){var G=k.has_wrapped_attrs,P={text:x.text,type:x.type};if(O.set_space_before_token(x.newlines||x.whitespace_before!=="",!0),k.is_unformatted)O.add_raw_token(x);else if(k.tag_start_char==="{"&&x.type===g.TEXT)O.print_preserved_newlines(x)?(x.newlines=0,O.add_raw_token(x)):O.print_token(x);else{if(x.type===g.ATTRIBUTE?(O.set_space_before_token(!0),k.attr_count+=1):(x.type===g.EQUALS||x.type===g.VALUE&&x.previous.type===g.EQUALS)&&O.set_space_before_token(!1),x.type===g.ATTRIBUTE&&k.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(O.traverse_whitespace(x),G=G||x.newlines!==0),this._is_wrap_attributes_force)){var z=k.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&k.attr_count===1){var Q=!0,H=0,ne;do{if(ne=Z.peek(H),ne.type===g.ATTRIBUTE){Q=!1;break}H+=1}while(H<4&&ne.type!==g.EOF&&ne.type!==g.TAG_CLOSE);z=!Q}z&&(O.print_newline(!1),G=!0)}O.print_token(x),G=G||O.previous_token_wrapped(),k.has_wrapped_attrs=G}return P},L.prototype._handle_text=function(O,x,k){var Z={text:x.text,type:"TK_CONTENT"};return k.custom_beautifier_name?this._print_custom_beatifier_text(O,x,k):k.is_unformatted||k.is_content_unformatted?O.add_raw_token(x):(O.traverse_whitespace(x),O.print_token(x)),Z},L.prototype._print_custom_beatifier_text=function(O,x,k){var Z=this;if(x.text!==""){var G=x.text,P,z=1,Q="",H="";k.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?P=this._js_beautify:k.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?P=this._css_beautify:k.custom_beautifier_name==="html"&&(P=function(Le,We){var Ve=new L(Le,We,Z._js_beautify,Z._css_beautify);return Ve.beautify()}),this._options.indent_scripts==="keep"?z=0:this._options.indent_scripts==="separate"&&(z=-O.indent_level);var ne=O.get_full_indent(z);if(G=G.replace(/\n[ \t]*$/,""),k.custom_beautifier_name!=="html"&&G[0]==="<"&&G.match(/^(<!--|<!\[CDATA\[)/)){var ce=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(G);if(!ce){O.add_raw_token(x);return}Q=ne+ce[1]+`
`,G=ce[4],ce[5]&&(H=ne+ce[5]),G=G.replace(/\n[ \t]*$/,""),(ce[2]||ce[3].indexOf(`
`)!==-1)&&(ce=ce[3].match(/[ \t]+$/),ce&&(x.whitespace_before=ce[0]))}if(G)if(P){var we=function(){this.eol=`
`};we.prototype=this._options.raw_options;var Ce=new we;G=P(ne+G,Ce)}else{var ze=x.whitespace_before;ze&&(G=G.replace(new RegExp(`
(`+ze+")?","g"),`
`)),G=ne+G.replace(/\n/g,`
`+ne)}Q&&(G?G=Q+G+`
`+H:G=Q+H),O.print_newline(!1),G&&(x.text=G,x.whitespace_before="",x.newlines=0,O.add_raw_token(x),O.print_newline(!0))}},L.prototype._handle_tag_open=function(O,x,k,Z){var G=this._get_tag_open_token(x);return(k.is_unformatted||k.is_content_unformatted)&&!k.is_empty_element&&x.type===g.TAG_OPEN&&x.text.indexOf("</")===0?(O.add_raw_token(x),G.start_tag_token=this._tag_stack.try_pop(G.tag_name)):(O.traverse_whitespace(x),this._set_tag_position(O,x,G,k,Z),G.is_inline_element||O.set_wrap_point(),O.print_token(x)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(G.alignment_size=x.text.length+1),!G.tag_complete&&!G.is_unformatted&&(O.alignment_size=G.alignment_size),G};var C=function(O,x){if(this.parent=O||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="",!x)this.tag_complete=!0;else{var k;this.tag_start_char=x.text[0],this.text=x.text,this.tag_start_char==="<"?(k=x.text.match(/^<([^\s>]*)/),this.tag_check=k?k[1]:""):(k=x.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=k?k[1]:"",(x.text.startsWith("{{#>")||x.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&x.next!==null?this.tag_check=x.next.text.split(" ")[0]:this.tag_check=x.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),x.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||x.closed&&x.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)))}};L.prototype._get_tag_open_token=function(O){var x=new C(this._tag_stack.get_parser_token(),O);return x.alignment_size=this._options.wrap_attributes_indent_size,x.is_end_tag=x.is_end_tag||I(x.tag_check,this._options.void_elements),x.is_empty_element=x.tag_complete||x.is_start_tag&&x.is_end_tag,x.is_unformatted=!x.tag_complete&&I(x.tag_check,this._options.unformatted),x.is_content_unformatted=!x.is_empty_element&&I(x.tag_check,this._options.content_unformatted),x.is_inline_element=I(x.tag_name,this._options.inline)||x.tag_name.includes("-")||x.tag_start_char==="{",x},L.prototype._set_tag_position=function(O,x,k,Z,G){if(k.is_empty_element||(k.is_end_tag?k.start_tag_token=this._tag_stack.try_pop(k.tag_name):(this._do_optional_end_element(k)&&(k.is_inline_element||O.print_newline(!1)),this._tag_stack.record_tag(k),(k.tag_name==="script"||k.tag_name==="style")&&!(k.is_unformatted||k.is_content_unformatted)&&(k.custom_beautifier_name=D(k.tag_check,x)))),I(k.tag_check,this._options.extra_liners)&&(O.print_newline(!1),O._output.just_added_blankline()||O.print_newline(!0)),k.is_empty_element){if(k.tag_start_char==="{"&&k.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),k.indent_content=!0;var P=O.current_line_has_match(/{{#if/);P||O.print_newline(!1)}k.tag_name==="!--"&&G.type===g.TAG_CLOSE&&Z.is_end_tag&&k.text.indexOf(`
`)===-1||(k.is_inline_element||k.is_unformatted||O.print_newline(!1),this._calcluate_parent_multiline(O,k))}else if(k.is_end_tag){var z=!1;z=k.start_tag_token&&k.start_tag_token.multiline_content,z=z||!k.is_inline_element&&!(Z.is_inline_element||Z.is_unformatted)&&!(G.type===g.TAG_CLOSE&&k.start_tag_token===Z)&&G.type!=="TK_CONTENT",(k.is_content_unformatted||k.is_unformatted)&&(z=!1),z&&O.print_newline(!1)}else k.indent_content=!k.custom_beautifier_name,k.tag_start_char==="<"&&(k.tag_name==="html"?k.indent_content=this._options.indent_inner_html:k.tag_name==="head"?k.indent_content=this._options.indent_head_inner_html:k.tag_name==="body"&&(k.indent_content=this._options.indent_body_inner_html)),!(k.is_inline_element||k.is_unformatted)&&(G.type!=="TK_CONTENT"||k.is_content_unformatted)&&O.print_newline(!1),this._calcluate_parent_multiline(O,k)},L.prototype._calcluate_parent_multiline=function(O,x){x.parent&&O._output.just_added_newline()&&!((x.is_inline_element||x.is_unformatted)&&x.parent.is_inline_element)&&(x.parent.multiline_content=!0)};var b=["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"],E=["a","audio","del","ins","map","noscript","video"];L.prototype._do_optional_end_element=function(O){var x=null;if(O.is_empty_element||!O.is_start_tag||!O.parent)return;if(O.tag_name==="body")x=x||this._tag_stack.try_pop("head");else if(O.tag_name==="li")x=x||this._tag_stack.try_pop("li",["ol","ul"]);else if(O.tag_name==="dd"||O.tag_name==="dt")x=x||this._tag_stack.try_pop("dt",["dl"]),x=x||this._tag_stack.try_pop("dd",["dl"]);else if(O.parent.tag_name==="p"&&b.indexOf(O.tag_name)!==-1){var k=O.parent.parent;(!k||E.indexOf(k.tag_name)===-1)&&(x=x||this._tag_stack.try_pop("p"))}else O.tag_name==="rp"||O.tag_name==="rt"?(x=x||this._tag_stack.try_pop("rt",["ruby","rtc"]),x=x||this._tag_stack.try_pop("rp",["ruby","rtc"])):O.tag_name==="optgroup"?x=x||this._tag_stack.try_pop("optgroup",["select"]):O.tag_name==="option"?x=x||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):O.tag_name==="colgroup"?x=x||this._tag_stack.try_pop("caption",["table"]):O.tag_name==="thead"?(x=x||this._tag_stack.try_pop("caption",["table"]),x=x||this._tag_stack.try_pop("colgroup",["table"])):O.tag_name==="tbody"||O.tag_name==="tfoot"?(x=x||this._tag_stack.try_pop("caption",["table"]),x=x||this._tag_stack.try_pop("colgroup",["table"]),x=x||this._tag_stack.try_pop("thead",["table"]),x=x||this._tag_stack.try_pop("tbody",["table"])):O.tag_name==="tr"?(x=x||this._tag_stack.try_pop("caption",["table"]),x=x||this._tag_stack.try_pop("colgroup",["table"]),x=x||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(O.tag_name==="th"||O.tag_name==="td")&&(x=x||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),x=x||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return O.parent=this._tag_stack.get_parser_token(),x},A.exports.Beautifier=L},function(A,T,y){var p=y(6).Options;function v(_){p.call(this,_,"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"])}v.prototype=new p,A.exports.Options=v},function(A,T,y){var p=y(9).Tokenizer,v=y(9).TOKEN,_=y(13).Directives,g=y(14).TemplatablePattern,h=y(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:v.START,RAW:v.RAW,EOF:v.EOF},d=new _(/<\!--/,/-->/),R=function(D,I){p.call(this,D,I),this._current_tag_name="";var N=new g(this._input).read_options(this._options),S=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:S.starting_with(/{{!--/).until_after(/--}}/),handlebars:S.starting_with(/{{/).until_after(/}}/),handlebars_open:S.until(/[\n\r\t }]/),handlebars_raw_close:S.until(/}}/),comment:S.starting_with(/<!--/).until_after(/-->/),cdata:S.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:S.starting_with(/<!\[/).until_after(/]>/),processing:S.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 L=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=S.matching(L).until_after(L)}};R.prototype=new p,R.prototype._is_comment=function(D){return!1},R.prototype._is_opening=function(D){return D.type===c.TAG_OPEN},R.prototype._is_closing=function(D,I){return D.type===c.TAG_CLOSE&&I&&((D.text===">"||D.text==="/>")&&I.text[0]==="<"||D.text==="}}"&&I.text[0]==="{"&&I.text[1]==="{")},R.prototype._reset=function(){this._current_tag_name=""},R.prototype._get_next_token=function(D,I){var N=null;this._readWhitespace();var S=this._input.peek();return S===null?this._create_token(c.EOF,""):(N=N||this._read_open_handlebars(S,I),N=N||this._read_attribute(S,D,I),N=N||this._read_close(S,I),N=N||this._read_raw_content(S,D,I),N=N||this._read_content_word(S),N=N||this._read_comment_or_cdata(S),N=N||this._read_processing(S),N=N||this._read_open(S,I),N=N||this._create_token(c.UNKNOWN,this._input.next()),N)},R.prototype._read_comment_or_cdata=function(D){var I=null,N=null,S=null;if(D==="<"){var L=this._input.peek(1);L==="!"&&(N=this.__patterns.comment.read(),N?(S=d.get_directives(N),S&&S.ignore==="start"&&(N+=d.readIgnored(this._input))):N=this.__patterns.cdata.read()),N&&(I=this._create_token(c.COMMENT,N),I.directives=S)}return I},R.prototype._read_processing=function(D){var I=null,N=null,S=null;if(D==="<"){var L=this._input.peek(1);(L==="!"||L==="?")&&(N=this.__patterns.conditional_comment.read(),N=N||this.__patterns.processing.read()),N&&(I=this._create_token(c.COMMENT,N),I.directives=S)}return I},R.prototype._read_open=function(D,I){var N=null,S=null;return I||D==="<"&&(N=this._input.next(),this._input.peek()==="/"&&(N+=this._input.next()),N+=this.__patterns.element_name.read(),S=this._create_token(c.TAG_OPEN,N)),S},R.prototype._read_open_handlebars=function(D,I){var N=null,S=null;return I||this._options.indent_handlebars&&D==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(N=this.__patterns.handlebars_comment.read(),N=N||this.__patterns.handlebars.read(),S=this._create_token(c.COMMENT,N)):(N=this.__patterns.handlebars_open.read(),S=this._create_token(c.TAG_OPEN,N))),S},R.prototype._read_close=function(D,I){var N=null,S=null;return I&&(I.text[0]==="<"&&(D===">"||D==="/"&&this._input.peek(1)===">")?(N=this._input.next(),D==="/"&&(N+=this._input.next()),S=this._create_token(c.TAG_CLOSE,N)):I.text[0]==="{"&&D==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),S=this._create_token(c.TAG_CLOSE,"}}"))),S},R.prototype._read_attribute=function(D,I,N){var S=null,L="";if(N&&N.text[0]==="<")if(D==="=")S=this._create_token(c.EQUALS,this._input.next());else if(D==='"'||D==="'"){var C=this._input.next();D==='"'?C+=this.__patterns.double_quote.read():C+=this.__patterns.single_quote.read(),S=this._create_token(c.VALUE,C)}else L=this.__patterns.attribute.read(),L&&(I.type===c.EQUALS?S=this._create_token(c.VALUE,L):S=this._create_token(c.ATTRIBUTE,L));return S},R.prototype._is_content_unformatted=function(D){return this._options.void_elements.indexOf(D)===-1&&(this._options.content_unformatted.indexOf(D)!==-1||this._options.unformatted.indexOf(D)!==-1)},R.prototype._read_raw_content=function(D,I,N){var S="";if(N&&N.text[0]==="{")S=this.__patterns.handlebars_raw_close.read();else if(I.type===c.TAG_CLOSE&&I.opened.text[0]==="<"&&I.text[0]!=="/"){var L=I.opened.text.substr(1).toLowerCase();if(L==="script"||L==="style"){var C=this._read_comment_or_cdata(D);if(C)return C.type=c.TEXT,C;S=this._input.readUntil(new RegExp("</"+L+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(L)&&(S=this._input.readUntil(new RegExp("</"+L+"[\\n\\r\\t ]*?>","ig")))}return S?this._create_token(c.TEXT,S):null},R.prototype._read_content_word=function(D){var I="";if(this._options.unformatted_content_delimiter&&(D===this._options.unformatted_content_delimiter[0]&&(I=this.__patterns.unformatted_content_delimiter.read())),I||(I=this.__patterns.word.read()),I)return this._create_token(c.TEXT,I)},A.exports.Tokenizer=R,A.exports.TOKEN=c}],V={};function l(A){var T=V[A];if(T!==void 0)return T.exports;var y=V[A]={exports:{}};return oe[A](y,y.exports,l),y.exports}var B=l(18);X=B})();var le=X;if(!0)!(Se=[ie,ie("6UM0"),ie("TXwP")],ae=function(oe){var V=ie("6UM0"),l=ie("TXwP");return{html_beautify:function(B,A){return le(B,A,V.js_beautify,l.css_beautify)}}}.apply(Ne,Se),ae!==void 0&&(Ot.exports=ae));else var j,W})()},"rAM+":function(Ot,Ne,ie){"use strict";ie.d(Ne,"a",function(){return ae});var Se=ie("Qw5x");function ae(X,le){var j;if(typeof Symbol=="undefined"||X[Symbol.iterator]==null){if(Array.isArray(X)||(j=Object(Se.a)(X))||le&&X&&typeof X.length=="number"){j&&(X=j);var W=0,oe=function(){};return{s:oe,n:function(){return W>=X.length?{done:!0}:{done:!1,value:X[W++]}},e:function(T){throw T},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,B;return{s:function(){j=X[Symbol.iterator]()},n:function(){var T=j.next();return V=T.done,T},e:function(T){l=!0,B=T},f:function(){try{!V&&j.return!=null&&j.return()}finally{if(l)throw B}}}}},rUJ1:function(Ot,Ne){const ie=/[&<>"']/,Se=/[&<>"']/g,ae=/[<>"']|&(?!#?\w+;)/,X=/[<>"']|&(?!#?\w+;)/g,le={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},j=S=>le[S];function W(S,L){if(L){if(ie.test(S))return S.replace(Se,j)}else if(ae.test(S))return S.replace(X,j);return S}const oe=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function V(S){return S.replace(oe,(L,C)=>(C=C.toLowerCase(),C==="colon"?":":C.charAt(0)==="#"?C.charAt(1)==="x"?String.fromCharCode(parseInt(C.substring(2),16)):String.fromCharCode(+C.substring(1)):""))}const l=/(^|[^\[])\^/g;function B(S,L){S=S.source||S,L=L||"";const C={replace:(b,E)=>(E=E.source||E,E=E.replace(l,"$1"),S=S.replace(b,E),C),getRegex:()=>new RegExp(S,L)};return C}const A=/[^\w:]/g,T=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function y(S,L,C){if(S){let b;try{b=decodeURIComponent(V(C)).replace(A,"").toLowerCase()}catch(E){return null}if(b.indexOf("javascript:")===0||b.indexOf("vbscript:")===0||b.indexOf("data:")===0)return null}L&&!T.test(C)&&(C=h(L,C));try{C=encodeURI(C).replace(/%25/g,"%")}catch(b){return null}return C}const p={},v=/^[^:]+:\/*[^/]*$/,_=/^([^:]+:)[\s\S]*$/,g=/^([^:]+:\/*[^/]*)[\s\S]*$/;function h(S,L){p[" "+S]||(v.test(S)?p[" "+S]=S+"/":p[" "+S]=D(S,"/",!0)),S=p[" "+S];const C=S.indexOf(":")===-1;return L.substring(0,2)==="//"?C?L:S.replace(_,"$1")+L:L.charAt(0)==="/"?C?L:S.replace(g,"$1")+L:S+L}const c={exec:function(){}};function d(S){let L=1,C,b;for(;L<arguments.length;L++){C=arguments[L];for(b in C)Object.prototype.hasOwnProperty.call(C,b)&&(S[b]=C[b])}return S}function R(S,L){const C=S.replace(/\|/g,(O,x,k)=>{let Z=!1,G=x;for(;--G>=0&&k[G]==="\\";)Z=!Z;return Z?"|":" |"}),b=C.split(/ \|/);let E=0;if(b.length>L)b.splice(L);else for(;b.length<L;)b.push("");for(;E<b.length;E++)b[E]=b[E].trim().replace(/\\\|/g,"|");return b}function D(S,L,C){const b=S.length;if(b===0)return"";let E=0;for(;E<b;){const O=S.charAt(b-E-1);if(O===L&&!C)E++;else if(O!==L&&C)E++;else break}return S.substr(0,b-E)}function I(S,L){if(S.indexOf(L[1])===-1)return-1;const C=S.length;let b=0,E=0;for(;E<C;E++)if(S[E]==="\\")E++;else if(S[E]===L[0])b++;else if(S[E]===L[1]&&(b--,b<0))return E;return-1}function N(S){S&&S.sanitize&&!S.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")}Ot.exports={escape:W,unescape:V,edit:B,cleanUrl:y,resolveUrl:h,noopTest:c,merge:d,splitCells:R,rtrim:D,findClosingBracket:I,checkSanitizeDeprecation:N}},siWv:function(Ot,Ne,ie){Ot.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(Ot,Ne,ie){"use strict";ie.d(Ne,"b",function(){return oe}),ie.d(Ne,"g",function(){return l}),ie.d(Ne,"d",function(){return B}),ie.d(Ne,"e",function(){return A}),ie.d(Ne,"a",function(){return T}),ie.d(Ne,"f",function(){return v}),ie.d(Ne,"c",function(){return _});var Se=ie("Vhoy"),ae=ie("MI8n"),X=ie("pmY6"),le=ie("Cg/j"),j=ie("ic2d"),W=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 B;(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(`^\\$\\((${Se.a.iconNameExpression}(?:${Se.a.iconModifierExpression})?)\\)$`);function d(N){const S=c.exec(N);if(!S)return;let[,L]=S;return{id:L}}g.fromString=d;function R(N,S){let L=N.id;const C=L.lastIndexOf("~");return C!==-1&&(L=L.substring(0,C)),S&&(L=`${L}~${S}`),{id:L}}g.modify=R;function D(N,S){var L,C;return N.id===S.id&&((L=N.color)===null||L===void 0?void 0:L.id)===((C=S.color)===null||C===void 0?void 0:C.id)}g.isEqual=D;function I(N,S){return{id:N.id,color:S?l(S):void 0}}g.asThemeIcon=I,g.asClassNameArray=Se.a.asClassNameArray,g.asClassName=Se.a.asClassName,g.asCSSSelector=Se.a.asCSSSelector})(B||(B={}));function A(g){switch(g){case W.a.DARK:return"vs-dark";case W.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const T={ThemingContribution:"base.contributions.theming"};class y{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 y;j.a.add(T.ThemingContribution,p);function v(g){return p.onColorThemeChange(g)}class _ 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(Ot,Ne,ie){typeof window!="undefined"&&function(ae,X){Ot.exports=X()}(this,function(){return function(Se){var ae={};function X(le){if(ae[le])return ae[le].exports;var j=ae[le]={i:le,l:!1,exports:{}};return Se[le].call(j.exports,j,j.exports,X),j.l=!0,j.exports}return X.m=Se,X.c=ae,X.d=function(le,j,W){X.o(le,j)||Object.defineProperty(le,j,{enumerable:!0,get:W})},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 W=Object.create(null);if(X.r(W),Object.defineProperty(W,"default",{enumerable:!0,value:le}),j&2&&typeof le!="string")for(var oe in le)X.d(W,oe,function(V){return le[V]}.bind(null,oe));return W},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(Se,ae,X){"use strict";var le=Object.prototype.hasOwnProperty,j="~";function W(){}Object.create&&(W.prototype=Object.create(null),new W().__proto__||(j=!1));function oe(A,T,y){this.fn=A,this.context=T,this.once=y||!1}function V(A,T,y,p,v){if(typeof y!="function")throw new TypeError("The listener must be a function");var _=new oe(y,p||A,v),g=j?j+T:T;return A._events[g]?A._events[g].fn?A._events[g]=[A._events[g],_]:A._events[g].push(_):(A._events[g]=_,A._eventsCount++),A}function l(A,T){--A._eventsCount===0?A._events=new W:delete A._events[T]}function B(){this._events=new W,this._eventsCount=0}B.prototype.eventNames=function(){var T=[],y,p;if(this._eventsCount===0)return T;for(p in y=this._events)le.call(y,p)&&T.push(j?p.slice(1):p);return Object.getOwnPropertySymbols?T.concat(Object.getOwnPropertySymbols(y)):T},B.prototype.listeners=function(T){var y=j?j+T:T,p=this._events[y];if(!p)return[];if(p.fn)return[p.fn];for(var v=0,_=p.length,g=new Array(_);v<_;v++)g[v]=p[v].fn;return g},B.prototype.listenerCount=function(T){var y=j?j+T:T,p=this._events[y];return p?p.fn?1:p.length:0},B.prototype.emit=function(T,y,p,v,_,g){var h=j?j+T:T;if(!this._events[h])return!1;var c=this._events[h],d=arguments.length,R,D;if(c.fn){c.once&&this.removeListener(T,c.fn,void 0,!0);switch(d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,y),!0;case 3:return c.fn.call(c.context,y,p),!0;case 4:return c.fn.call(c.context,y,p,v),!0;case 5:return c.fn.call(c.context,y,p,v,_),!0;case 6:return c.fn.call(c.context,y,p,v,_,g),!0}for(D=1,R=new Array(d-1);D<d;D++)R[D-1]=arguments[D];c.fn.apply(c.context,R)}else{var I=c.length,N;for(D=0;D<I;D++){c[D].once&&this.removeListener(T,c[D].fn,void 0,!0);switch(d){case 1:c[D].fn.call(c[D].context);break;case 2:c[D].fn.call(c[D].context,y);break;case 3:c[D].fn.call(c[D].context,y,p);break;case 4:c[D].fn.call(c[D].context,y,p,v);break;default:if(!R)for(N=1,R=new Array(d-1);N<d;N++)R[N-1]=arguments[N];c[D].fn.apply(c[D].context,R)}}}return!0},B.prototype.on=function(T,y,p){return V(this,T,y,p,!1)},B.prototype.once=function(T,y,p){return V(this,T,y,p,!0)},B.prototype.removeListener=function(T,y,p,v){var _=j?j+T:T;if(!this._events[_])return this;if(!y)return l(this,_),this;var g=this._events[_];if(g.fn)g.fn===y&&(!v||g.once)&&(!p||g.context===p)&&l(this,_);else{for(var h=0,c=[],d=g.length;h<d;h++)(g[h].fn!==y||v&&!g[h].once||p&&g[h].context!==p)&&c.push(g[h]);c.length?this._events[_]=c.length===1?c[0]:c:l(this,_)}return this},B.prototype.removeAllListeners=function(T){var y;return T?(y=j?j+T:T,this._events[y]&&l(this,y)):(this._events=new W,this._eventsCount=0),this},B.prototype.off=B.prototype.removeListener,B.prototype.addListener=B.prototype.on,B.prefixed=j,B.EventEmitter=B,Se.exports=B},"./node_modules/url-toolkit/src/url-toolkit.js":function(Se,ae,X){(function(le){var j=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,W=/^([^\/?#]*)([^]*)$/,oe=/(?:\/|^)\.(?=\/)/g,V=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,l={buildAbsoluteURL:function(B,A,T){if(T=T||{},B=B.trim(),A=A.trim(),!A){if(!T.alwaysNormalize)return B;var y=l.parseURL(B);if(!y)throw new Error("Error trying to parse base URL.");return y.path=l.normalizePath(y.path),l.buildURLFromParts(y)}var p=l.parseURL(A);if(!p)throw new Error("Error trying to parse relative URL.");if(p.scheme)return T.alwaysNormalize?(p.path=l.normalizePath(p.path),l.buildURLFromParts(p)):A;var v=l.parseURL(B);if(!v)throw new Error("Error trying to parse base URL.");if(!v.netLoc&&v.path&&v.path[0]!=="/"){var _=W.exec(v.path);v.netLoc=_[1],v.path=_[2]}v.netLoc&&!v.path&&(v.path="/");var g={scheme:v.scheme,netLoc:p.netLoc,path:null,params:p.params,query:p.query,fragment:p.fragment};if(!p.netLoc&&(g.netLoc=v.netLoc,p.path[0]!=="/"))if(!p.path)g.path=v.path,p.params||(g.params=v.params,p.query||(g.query=v.query));else{var h=v.path,c=h.substring(0,h.lastIndexOf("/")+1)+p.path;g.path=l.normalizePath(c)}return g.path===null&&(g.path=T.alwaysNormalize?l.normalizePath(p.path):p.path),l.buildURLFromParts(g)},parseURL:function(B){var A=j.exec(B);return A?{scheme:A[1]||"",netLoc:A[2]||"",path:A[3]||"",params:A[4]||"",query:A[5]||"",fragment:A[6]||""}:null},normalizePath:function(B){for(B=B.split("").reverse().join("").replace(oe,"");B.length!==(B=B.replace(V,"")).length;);return B.split("").reverse().join("")},buildURLFromParts:function(B){return B.scheme+B.netLoc+B.path+B.params+B.query+B.fragment}};Se.exports=l})(this)},"./node_modules/webworkify-webpack/index.js":function(Se,ae,X){function le(T){var y={};function p(_){if(y[_])return y[_].exports;var g=y[_]={i:_,l:!1,exports:{}};return T[_].call(g.exports,g,g.exports,p),g.l=!0,g.exports}p.m=T,p.c=y,p.i=function(_){return _},p.d=function(_,g,h){p.o(_,g)||Object.defineProperty(_,g,{configurable:!1,enumerable:!0,get:h})},p.r=function(_){Object.defineProperty(_,"__esModule",{value:!0})},p.n=function(_){var g=_&&_.__esModule?function(){return _.default}:function(){return _};return p.d(g,"a",g),g},p.o=function(_,g){return Object.prototype.hasOwnProperty.call(_,g)},p.p="/",p.oe=function(_){throw console.error(_),_};var v=p(p.s=ENTRY_MODULE);return v.default||v}var j="[\\.|\\-|\\+|\\w|/|@]+",W="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+j+").*?\\)";function oe(T){return(T+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function V(T){return!isNaN(1*T)}function l(T,y,p){var v={};v[p]=[];var _=y.toString(),g=_.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!g)return v;for(var h=g[1],c=new RegExp("(\\\\n|\\W)"+oe(h)+W,"g"),d;d=c.exec(_);){if(d[3]==="dll-reference")continue;v[p].push(d[3])}for(c=new RegExp("\\("+oe(h)+'\\("(dll-reference\\s('+j+'))"\\)\\)'+W,"g");d=c.exec(_);)T[d[2]]||(v[p].push(d[1]),T[d[2]]=X(d[1]).m),v[d[2]]=v[d[2]]||[],v[d[2]].push(d[4]);for(var R=Object.keys(v),D=0;D<R.length;D++)for(var I=0;I<v[R[D]].length;I++)V(v[R[D]][I])&&(v[R[D]][I]=1*v[R[D]][I]);return v}function B(T){var y=Object.keys(T);return y.reduce(function(p,v){return p||T[v].length>0},!1)}function A(T,y){for(var p={main:[y]},v={main:[]},_={main:{}};B(p);)for(var g=Object.keys(p),h=0;h<g.length;h++){var c=g[h],d=p[c],R=d.pop();if(_[c]=_[c]||{},_[c][R]||!T[c][R])continue;_[c][R]=!0,v[c]=v[c]||[],v[c].push(R);for(var D=l(T,T[c][R],c),I=Object.keys(D),N=0;N<I.length;N++)p[I[N]]=p[I[N]]||[],p[I[N]]=p[I[N]].concat(D[I[N]])}return v}Se.exports=function(T,y){y=y||{};var p={main:X.m},v=y.all?{main:Object.keys(p.main)}:A(p,T),_="";Object.keys(v).filter(function(R){return R!=="main"}).forEach(function(R){for(var D=0;v[R][D];)D++;v[R].push(D),p[R][D]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",_=_+"var "+R+" = ("+le.toString().replace("ENTRY_MODULE",JSON.stringify(D))+")({"+v[R].map(function(I){return""+JSON.stringify(I)+": "+p[R][I].toString()}).join(",")+`});
`}),_=_+"new (("+le.toString().replace("ENTRY_MODULE",JSON.stringify(T))+")({"+v.main.map(function(R){return""+JSON.stringify(R)+": "+p.main[R].toString()}).join(",")+"}))(self);";var g=new window.Blob([_],{type:"text/javascript"});if(y.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(Se,ae,X){"use strict";X.r(ae),X.d(ae,"hlsDefaultConfig",function(){return N}),X.d(ae,"mergeConfig",function(){return L}),X.d(ae,"enableStreamingMode",function(){return C});var le=X("./src/controller/abr-controller.ts"),j=X("./src/controller/audio-stream-controller.ts"),W=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"),B=X("./src/controller/timeline-controller.ts"),A=X("./src/controller/cap-level-controller.ts"),T=X("./src/controller/fps-controller.ts"),y=X("./src/controller/eme-controller.ts"),p=X("./src/controller/cmcd-controller.ts"),v=X("./src/utils/xhr-loader.ts"),_=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(b){for(var E=1;E<arguments.length;E++){var O=arguments[E];for(var x in O)Object.prototype.hasOwnProperty.call(O,x)&&(b[x]=O[x])}return b},d.apply(this,arguments)}function R(b,E){var O=Object.keys(b);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(b);E&&(x=x.filter(function(k){return Object.getOwnPropertyDescriptor(b,k).enumerable})),O.push.apply(O,x)}return O}function D(b){for(var E=1;E<arguments.length;E++){var O=arguments[E]!=null?arguments[E]:{};E%2?R(Object(O),!0).forEach(function(x){I(b,x,O[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(O)):R(Object(O)).forEach(function(x){Object.defineProperty(b,x,Object.getOwnPropertyDescriptor(O,x))})}return b}function I(b,E,O){return E in b?Object.defineProperty(b,E,{value:O,enumerable:!0,configurable:!0,writable:!0}):b[E]=O,b}var N=D(D({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:v.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:le.default,bufferController:l.default,capLevelController:A.default,fpsController:T.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},S()),{},{subtitleStreamController:oe.SubtitleStreamController,subtitleTrackController:V.default,timelineController:B.TimelineController,audioStreamController:j.default,audioTrackController:W.default,emeController:y.default,cmcdController:p.default});function S(){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 L(b,E){if((E.liveSyncDurationCount||E.liveMaxLatencyDurationCount)&&(E.liveSyncDuration||E.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(E.liveMaxLatencyDurationCount!==void 0&&(E.liveSyncDurationCount===void 0||E.liveMaxLatencyDurationCount<=E.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(E.liveMaxLatencyDuration!==void 0&&(E.liveSyncDuration===void 0||E.liveMaxLatencyDuration<=E.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return d({},b,E)}function C(b){var E=b.loader;if(E!==_.default&&E!==v.default)c.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),b.progressive=!1;else{var O=Object(_.fetchSupported)();O&&(b.loader=_.default,b.progressive=!0,b.enableSoftwareAES=!0,c.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(Se,ae,X){"use strict";X.r(ae);var le=X("./src/polyfills/number.ts"),j=X("./src/utils/ewma-bandwidth-estimator.ts"),W=X("./src/events.ts"),oe=X("./src/utils/buffer-helper.ts"),V=X("./src/errors.ts"),l=X("./src/types/loader.ts"),B=X("./src/utils/logger.ts");function A(p,v){for(var _=0;_<v.length;_++){var g=v[_];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}function T(p,v,_){return v&&A(p.prototype,v),_&&A(p,_),p}var y=function(){function p(_){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=_;var g=_.config;this.bwEstimator=new j.default(g.abrEwmaSlowVoD,g.abrEwmaFastVoD,g.abrEwmaDefaultEstimate),this.registerListeners()}var v=p.prototype;return v.registerListeners=function(){var g=this.hls;g.on(W.Events.FRAG_LOADING,this.onFragLoading,this),g.on(W.Events.FRAG_LOADED,this.onFragLoaded,this),g.on(W.Events.FRAG_BUFFERED,this.onFragBuffered,this),g.on(W.Events.LEVEL_LOADED,this.onLevelLoaded,this),g.on(W.Events.ERROR,this.onError,this)},v.unregisterListeners=function(){var g=this.hls;g.off(W.Events.FRAG_LOADING,this.onFragLoading,this),g.off(W.Events.FRAG_LOADED,this.onFragLoaded,this),g.off(W.Events.FRAG_BUFFERED,this.onFragBuffered,this),g.off(W.Events.LEVEL_LOADED,this.onLevelLoaded,this),g.off(W.Events.ERROR,this.onError,this)},v.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},v.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)}},v.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)},v._abandonRulesCheck=function(){var g=this.fragCurrent,h=this.partCurrent,c=this.hls,d=c.autoLevelEnabled,R=c.config,D=c.media;if(!g||!D)return;var I=h?h.stats:g.stats,N=h?h.duration:g.duration;if(I.aborted){B.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!d||D.paused||!D.playbackRate||!D.readyState)return;var S=performance.now()-I.loading.start,L=Math.abs(D.playbackRate);if(S<=500*N/L)return;var C=c.levels,b=c.minAutoLevel,E=C[g.level],O=I.total||Math.max(I.loaded,Math.round(N*E.maxBitrate/8)),x=Math.max(1,I.bwEstimate?I.bwEstimate/8:I.loaded*1e3/S),k=(O-I.loaded)/x,Z=D.currentTime,G=(oe.BufferHelper.bufferInfo(D,Z,R.maxBufferHole).end-Z)/L;if(G>=2*N/L||k<=G)return;var P=Number.POSITIVE_INFINITY,z;for(z=g.level-1;z>b;z--){var Q=C[z].maxBitrate;if(P=N*Q/(8*.8*x),P<G)break}if(P>=k)return;var H=this.bwEstimator.getEstimate();B.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 "+z+`
Current BW estimate: `+(Object(le.isFiniteNumber)(H)?(H/1024).toFixed(3):"Unknown")+` Kb/s
Estimated load time for current fragment: `+k.toFixed(3)+` s
Estimated load time for the next fragment: `+P.toFixed(3)+` s
Time to underbuffer: `+G.toFixed(3)+" s"),c.nextLoadLevel=z,this.bwEstimator.sample(S,I.loaded),this.clearTimer(),g.loader&&(this.fragCurrent=this.partCurrent=null,g.loader.abort()),c.trigger(W.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:g,part:h,stats:I})},v.onFragLoaded=function(g,h){var c=h.frag,d=h.part;if(c.type===l.PlaylistLevelType.MAIN&&Object(le.isFiniteNumber)(c.sn)){var R=d?d.stats:c.stats,D=d?d.duration:c.duration;if(this.clearTimer(),this.lastLoadedFragLevel=c.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var I=this.hls.levels[c.level],N=(I.loaded?I.loaded.bytes:0)+R.loaded,S=(I.loaded?I.loaded.duration:0)+D;I.loaded={bytes:N,duration:S},I.realBitrate=Math.round(8*N/S)}if(c.bitrateTest){var L={stats:R,frag:c,part:d,id:c.type};this.onFragBuffered(W.Events.FRAG_BUFFERED,L),c.bitrateTest=!1}}},v.onFragBuffered=function(g,h){var c=h.frag,d=h.part,R=d?d.stats:c.stats;if(R.aborted)return;if(c.type!==l.PlaylistLevelType.MAIN||c.sn==="initSegment")return;var D=R.parsing.end-R.loading.start;this.bwEstimator.sample(D,R.loaded),R.bwEstimate=this.bwEstimator.getEstimate(),c.bitrateTest?this.bitrateTestDelay=D/1e3:this.bitrateTestDelay=0},v.onError=function(g,h){switch(h.details){case V.ErrorDetails.FRAG_LOAD_ERROR:case V.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},v.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},v.getNextABRAutoLevel=function(){var g=this.fragCurrent,h=this.partCurrent,c=this.hls,d=c.maxAutoLevel,R=c.config,D=c.minAutoLevel,I=c.media,N=h?h.duration:g?g.duration:0,S=I?I.currentTime:0,L=I&&I.playbackRate!==0?Math.abs(I.playbackRate):1,C=this.bwEstimator?this.bwEstimator.getEstimate():R.abrEwmaDefaultEstimate,b=(oe.BufferHelper.bufferInfo(I,S,R.maxBufferHole).end-S)/L,E=this.findBestLevel(C,D,d,b,R.abrBandWidthFactor,R.abrBandWidthUpFactor);if(E>=0)return E;B.logger.trace((b?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var O=N?Math.min(N,R.maxStarvationDelay):R.maxStarvationDelay,x=R.abrBandWidthFactor,k=R.abrBandWidthUpFactor;if(!b){var Z=this.bitrateTestDelay;if(Z){var G=N?Math.min(N,R.maxLoadingDelay):R.maxLoadingDelay;O=G-Z,B.logger.trace("bitrate test took "+Math.round(1e3*Z)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*O)+" ms"),x=k=1}}return E=this.findBestLevel(C,D,d,b+O,x,k),Math.max(E,0)},v.findBestLevel=function(g,h,c,d,R,D){for(var I,N=this.fragCurrent,S=this.partCurrent,L=this.lastLoadedFragLevel,C=this.hls.levels,b=C[L],E=!!(b!=null&&(I=b.details)!==null&&I!==void 0&&I.live),O=b==null?void 0:b.codecSet,x=S?S.duration:N?N.duration:0,k=c;k>=h;k--){var Z=C[k];if(!Z||O&&Z.codecSet!==O)continue;var G=Z.details,P=(S?G==null?void 0:G.partTarget:G==null?void 0:G.averagetargetduration)||x,z=void 0;k<=L?z=R*g:z=D*g;var Q=C[k].maxBitrate,H=Q*P/z;if(B.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+k+"/"+Math.round(z)+"/"+Q+"/"+P+"/"+d+"/"+H),z>Q&&(!H||E&&!this.bitrateTestDelay||H<d))return k}return-1},T(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=y},"./src/controller/audio-stream-controller.ts":function(Se,ae,X){"use strict";X.r(ae);var le=X("./src/polyfills/number.ts"),j=X("./src/controller/base-stream-controller.ts"),W=X("./src/events.ts"),oe=X("./src/utils/buffer-helper.ts"),V=X("./src/controller/fragment-tracker.ts"),l=X("./src/types/level.ts"),B=X("./src/types/loader.ts"),A=X("./src/loader/fragment.ts"),T=X("./src/demux/chunk-cache.ts"),y=X("./src/demux/transmuxer-interface.ts"),p=X("./src/types/transmuxer.ts"),v=X("./src/controller/fragment-finders.ts"),_=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 S=1;S<arguments.length;S++){var L=arguments[S];for(var C in L)Object.prototype.hasOwnProperty.call(L,C)&&(N[C]=L[C])}return N},c.apply(this,arguments)}function d(N,S){N.prototype=Object.create(S.prototype),N.prototype.constructor=N,R(N,S)}function R(N,S){return R=Object.setPrototypeOf||function(C,b){return C.__proto__=b,C},R(N,S)}var D=100,I=function(N){d(S,N);function S(C,b){var E;return E=N.call(this,C,b,"[audio-stream-controller]")||this,E.videoBuffer=null,E.videoTrackCC=-1,E.waitingVideoCC=-1,E.audioSwitch=!1,E.trackId=-1,E.waitingData=null,E.mainDetails=null,E.bufferFlushed=!1,E._registerListeners(),E}var L=S.prototype;return L.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},L._registerListeners=function(){var b=this.hls;b.on(W.Events.MEDIA_ATTACHED,this.onMediaAttached,this),b.on(W.Events.MEDIA_DETACHING,this.onMediaDetaching,this),b.on(W.Events.MANIFEST_LOADING,this.onManifestLoading,this),b.on(W.Events.LEVEL_LOADED,this.onLevelLoaded,this),b.on(W.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),b.on(W.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),b.on(W.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),b.on(W.Events.ERROR,this.onError,this),b.on(W.Events.BUFFER_RESET,this.onBufferReset,this),b.on(W.Events.BUFFER_CREATED,this.onBufferCreated,this),b.on(W.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),b.on(W.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),b.on(W.Events.FRAG_BUFFERED,this.onFragBuffered,this)},L._unregisterListeners=function(){var b=this.hls;b.off(W.Events.MEDIA_ATTACHED,this.onMediaAttached,this),b.off(W.Events.MEDIA_DETACHING,this.onMediaDetaching,this),b.off(W.Events.MANIFEST_LOADING,this.onManifestLoading,this),b.off(W.Events.LEVEL_LOADED,this.onLevelLoaded,this),b.off(W.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),b.off(W.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),b.off(W.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),b.off(W.Events.ERROR,this.onError,this),b.off(W.Events.BUFFER_RESET,this.onBufferReset,this),b.off(W.Events.BUFFER_CREATED,this.onBufferCreated,this),b.off(W.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),b.off(W.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),b.off(W.Events.FRAG_BUFFERED,this.onFragBuffered,this)},L.onInitPtsFound=function(b,E){var O=E.frag,x=E.id,k=E.initPTS;if(x==="main"){var Z=O.cc;this.initPTS[O.cc]=k,this.log("InitPTS for cc: "+Z+" found from main: "+k),this.videoTrackCC=Z,this.state===j.State.WAITING_INIT_PTS&&this.tick()}},L.startLoad=function(b){if(!this.levels){this.startPosition=b,this.state=j.State.STOPPED;return}var E=this.lastCurrentTime;this.stopLoad(),this.setInterval(D),this.fragLoadError=0,E>0&&b===-1?(this.log("Override startPosition with lastCurrentTime @"+E.toFixed(3)),this.state=j.State.IDLE):(this.loadedmetadata=!1,this.state=j.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=b,this.tick()},L.doTick=function(){switch(this.state){case j.State.IDLE:this.doTickIdle();break;case j.State.WAITING_TRACK:{var b,E=this.levels,O=this.trackId,x=E==null||((b=E[O])===null||b===void 0)?void 0:b.details;if(x){if(this.waitForCdnTuneIn(x))break;this.state=j.State.WAITING_INIT_PTS}break}case j.State.FRAG_LOADING_WAITING_RETRY:{var k,Z=performance.now(),G=this.retryDate;(!G||Z>=G||(k=this.media)!==null&&k!==void 0&&k.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=j.State.IDLE);break}case j.State.WAITING_INIT_PTS:{var P=this.waitingData;if(P){var z=P.frag,Q=P.part,H=P.cache,ne=P.complete;if(this.initPTS[z.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=j.State.FRAG_LOADING;var ce=H.flush(),we={frag:z,part:Q,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 ("+z.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var Ce=this.getLoadPosition(),ze=oe.BufferHelper.bufferInfo(this.mediaBuffer,Ce,this.config.maxBufferHole),Le=Object(v.fragmentWithinToleranceTest)(ze.end,this.config.maxFragLookUpTolerance,z);Le<0&&(h.logger.log("Waiting fragment cc ("+z.cc+") @ "+z.start+" cancelled because another fragment at "+ze.end+" is needed"),this.clearWaitingFragment())}}else this.state=j.State.IDLE}}this.onTickEnd()},L.clearWaitingFragment=function(){var b=this.waitingData;b&&(this.fragmentTracker.removeFragment(b.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=j.State.IDLE)},L.onTickEnd=function(){var b=this.media;if(!b||!b.readyState)return;var E=this.mediaBuffer?this.mediaBuffer:b,O=E.buffered;!this.loadedmetadata&&O.length&&(this.loadedmetadata=!0),this.lastCurrentTime=b.currentTime},L.doTickIdle=function(){var b,E,O=this.hls,x=this.levels,k=this.media,Z=this.trackId,G=O.config;if(!x||!x[Z])return;if(!k&&(this.startFragRequested||!G.startFragPrefetch))return;var P=x[Z],z=P.details;if(!z||z.live&&this.levelLastLoaded!==Z||this.waitForCdnTuneIn(z)){this.state=j.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,A.ElementaryStreamTypes.AUDIO,B.PlaylistLevelType.AUDIO));var Q=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,B.PlaylistLevelType.AUDIO);if(Q===null)return;var H=Q.len,ne=this.getMaxBufferLength(),ce=this.audioSwitch;if(H>=ne&&!ce)return;if(!ce&&this._streamEnded(Q,z)){O.trigger(W.Events.BUFFER_EOS,{type:"audio"}),this.state=j.State.ENDED;return}var we=z.fragments,Ce=we[0].start,ze=Q.end;if(ce){var Le=this.getLoadPosition();ze=Le,z.PTSKnown&&Le<Ce&&((Q.end>Ce||Q.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),k.currentTime=Ce+.05))}var We=this.getNextFragment(ze,z);if(!We){this.bufferFlushed=!0;return}((b=We.decryptdata)===null||b===void 0?void 0:b.keyFormat)==="identity"&&!((E=We.decryptdata)!==null&&E!==void 0&&E.key)?this.loadKey(We,z):this.loadFragment(We,z,ze)},L.getMaxBufferLength=function(){var b=N.prototype.getMaxBufferLength.call(this),E=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,B.PlaylistLevelType.MAIN);return E===null?b:Math.max(b,E.len)},L.onMediaDetaching=function(){this.videoBuffer=null,N.prototype.onMediaDetaching.call(this)},L.onAudioTracksUpdated=function(b,E){var O=E.audioTracks;this.resetTransmuxer(),this.levels=O.map(function(x){return new l.Level(x)})},L.onAudioTrackSwitching=function(b,E){var O=!!E.url;this.trackId=E.id;var x=this.fragCurrent;x!=null&&x.loader&&x.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),O?this.setInterval(D):this.resetTransmuxer(),O?(this.audioSwitch=!0,this.state=j.State.IDLE):this.state=j.State.STOPPED,this.tick()},L.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},L.onLevelLoaded=function(b,E){this.mainDetails=E.details},L.onAudioTrackLoaded=function(b,E){var O,x=this.levels,k=E.details,Z=E.id;if(!x){this.warn("Audio tracks were reset while loading level "+Z);return}this.log("Track "+Z+" loaded ["+k.startSN+","+k.endSN+"],duration:"+k.totalduration);var G=x[Z],P=0;if(k.live||(O=G.details)!==null&&O!==void 0&&O.live){var z=this.mainDetails;if(k.fragments[0]||(k.deltaUpdateFailed=!0),k.deltaUpdateFailed||!z)return;!G.details&&k.hasProgramDateTime&&z.hasProgramDateTime?(Object(_.alignMediaPlaylistByPDT)(k,z),P=k.fragments[0].start):P=this.alignPlaylists(k,G.details)}G.details=k,this.levelLastLoaded=Z,!this.startFragRequested&&(this.mainDetails||!k.live)&&this.setStartPosition(G.details,P),this.state===j.State.WAITING_TRACK&&!this.waitForCdnTuneIn(k)&&(this.state=j.State.IDLE),this.tick()},L._handleFragmentLoadProgress=function(b){var E,O=b.frag,x=b.part,k=b.payload,Z=this.config,G=this.trackId,P=this.levels;if(!P){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+O.sn+" of level "+O.level+" will not be buffered");return}var z=P[G];console.assert(z,"Audio track is defined on fragment load progress");var Q=z.details;console.assert(Q,"Audio track details are defined on fragment load progress");var H=Z.defaultAudioCodec||z.audioCodec||"mp4a.40.2",ne=this.transmuxer;ne||(ne=this.transmuxer=new y.default(this.hls,B.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var ce=this.initPTS[O.cc],we=(E=O.initSegment)===null||E===void 0?void 0:E.data;if(ce!==void 0){var Ce=!1,ze=x?x.index:-1,Le=ze!==-1,We=new p.ChunkMetadata(O.level,O.sn,O.stats.chunkCount,k.byteLength,ze,Le);ne.push(k,we,H,"",O,x,Q.totalduration,Ce,We,ce)}else{h.logger.log("Unknown video PTS for cc "+O.cc+", waiting for video PTS before demuxing audio frag "+O.sn+" of ["+Q.startSN+" ,"+Q.endSN+"],track "+G);var Ve=this.waitingData=this.waitingData||{frag:O,part:x,cache:new T.default,complete:!1},$e=Ve.cache;$e.push(new Uint8Array(k)),this.waitingVideoCC=this.videoTrackCC,this.state=j.State.WAITING_INIT_PTS}},L._handleFragmentLoadComplete=function(b){if(this.waitingData){this.waitingData.complete=!0;return}N.prototype._handleFragmentLoadComplete.call(this,b)},L.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},L.onBufferCreated=function(b,E){var O=E.tracks.audio;O&&(this.mediaBuffer=O.buffer),E.tracks.video&&(this.videoBuffer=E.tracks.video.buffer)},L.onFragBuffered=function(b,E){var O=E.frag,x=E.part;if(O.type!==B.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(O)){this.warn("Fragment "+O.sn+(x?" p: "+x.index:"")+" of level "+O.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}O.sn!=="initSegment"&&(this.fragPrevious=O,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(W.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(O,x)},L.onError=function(b,E){switch(E.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(B.PlaylistLevelType.AUDIO,E);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=E.fatal?j.State.ERROR:j.State.IDLE,this.warn(E.details+" while loading frag, switching to "+this.state+" state"));break;case g.ErrorDetails.BUFFER_FULL_ERROR:if(E.parent==="audio"&&(this.state===j.State.PARSING||this.state===j.State.PARSED)){var O=!0,x=this.getFwdBufferInfo(this.mediaBuffer,B.PlaylistLevelType.AUDIO);x&&x.len>.5&&(O=!this.reduceMaxBufferLength(x.len)),O&&(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}},L.onBufferFlushed=function(b,E){var O=E.type;O===A.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},L._handleTransmuxComplete=function(b){var E,O="audio",x=this.hls,k=b.remuxResult,Z=b.chunkMeta,G=this.getCurrentContext(Z);if(!G){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 P=G.frag,z=G.part,Q=k.audio,H=k.text,ne=k.id3,ce=k.initSegment;if(this.fragContextChanged(P))return;if(this.state=j.State.PARSING,this.audioSwitch&&Q&&this.completeAudioSwitch(),ce!=null&&ce.tracks&&(this._bufferInitSegment(ce.tracks,P,Z),x.trigger(W.Events.FRAG_PARSING_INIT_SEGMENT,{frag:P,id:O,tracks:ce.tracks})),Q){var we=Q.startPTS,Ce=Q.endPTS,ze=Q.startDTS,Le=Q.endDTS;z&&(z.elementaryStreams[A.ElementaryStreamTypes.AUDIO]={startPTS:we,endPTS:Ce,startDTS:ze,endDTS:Le}),P.setElementaryStreamInfo(A.ElementaryStreamTypes.AUDIO,we,Ce,ze,Le),this.bufferFragmentData(Q,P,z,Z)}if(ne!=null&&(E=ne.samples)!==null&&E!==void 0&&E.length){var We=c({frag:P,id:O},ne);x.trigger(W.Events.FRAG_PARSING_METADATA,We)}if(H){var Ve=c({frag:P,id:O},H);x.trigger(W.Events.FRAG_PARSING_USERDATA,Ve)}},L._bufferInitSegment=function(b,E,O){if(this.state!==j.State.PARSING)return;b.video&&delete b.video;var x=b.audio;if(!x)return;x.levelCodec=x.codec,x.id="audio",this.log("Init audio buffer, container:"+x.container+", codecs[parsed]=["+x.codec+"]"),this.hls.trigger(W.Events.BUFFER_CODECS,b);var k=x.initSegment;if(k!=null&&k.byteLength){var Z={type:"audio",frag:E,part:null,chunkMeta:O,parent:E.type,data:k};this.hls.trigger(W.Events.BUFFER_APPENDING,Z)}this.tick()},L.loadFragment=function(b,E,O){var x=this.fragmentTracker.getState(b);this.fragCurrent=b,(this.audioSwitch||x===V.FragmentState.NOT_LOADED||x===V.FragmentState.PARTIAL)&&(b.sn==="initSegment"?this._loadInitSegment(b):E.live&&!Object(le.isFiniteNumber)(this.initPTS[b.cc])?(this.log("Waiting for video PTS in continuity counter "+b.cc+" of live stream before loading audio fragment "+b.sn+" of level "+this.trackId),this.state=j.State.WAITING_INIT_PTS):(this.startFragRequested=!0,N.prototype.loadFragment.call(this,b,E,O)))},L.completeAudioSwitch=function(){var b=this.hls,E=this.media,O=this.trackId;E&&(this.log("Switching audio track : flushing all audio"),N.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,b.trigger(W.Events.AUDIO_TRACK_SWITCHED,{id:O})},S}(j.default);ae.default=I},"./src/controller/audio-track-controller.ts":function(Se,ae,X){"use strict";X.r(ae);var le=X("./src/events.ts"),j=X("./src/errors.ts"),W=X("./src/controller/base-playlist-controller.ts"),oe=X("./src/types/loader.ts");function V(y,p){for(var v=0;v<p.length;v++){var _=p[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(y,_.key,_)}}function l(y,p,v){return p&&V(y.prototype,p),v&&V(y,v),y}function B(y,p){y.prototype=Object.create(p.prototype),y.prototype.constructor=y,A(y,p)}function A(y,p){return A=Object.setPrototypeOf||function(_,g){return _.__proto__=g,_},A(y,p)}var T=function(y){B(p,y);function p(_){var g;return g=y.call(this,_,"[audio-track-controller]")||this,g.tracks=[],g.groupId=null,g.tracksInGroup=[],g.trackId=-1,g.trackName="",g.selectDefaultTrack=!0,g.registerListeners(),g}var v=p.prototype;return v.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)},v.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)},v.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,y.prototype.destroy.call(this)},v.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},v.onManifestParsed=function(g,h){this.tracks=h.audioTracks||[]},v.onAudioTrackLoaded=function(g,h){var c=h.id,d=h.details,R=this.tracksInGroup[c];if(!R){this.warn("Invalid audio track id "+c);return}var D=R.details;R.details=h.details,this.log("audioTrack "+c+" loaded ["+d.startSN+"-"+d.endSN+"]"),c===this.trackId&&(this.retryCount=0,this.playlistLoaded(c,h,D))},v.onLevelLoading=function(g,h){this.switchLevel(h.level)},v.onLevelSwitching=function(g,h){this.switchLevel(h.level)},v.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(D){return!c||D.groupId===c});this.selectDefaultTrack&&!d.some(function(D){return D.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=d;var R={audioTracks:d};this.log("Updating audio tracks, "+d.length+' track(s) found in "'+c+'" group-id'),this.hls.trigger(le.Events.AUDIO_TRACKS_UPDATED,R),this.selectInitialTrack()}},v.onError=function(g,h){if(y.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)},v.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],R=d.id,D=d.groupId,I=D===void 0?"":D,N=d.name,S=d.type,L=d.url;if(this.trackId=g,this.trackName=N,this.selectDefaultTrack=!1,this.hls.trigger(le.Events.AUDIO_TRACK_SWITCHING,{id:R,groupId:I,name:N,type:S,url:L}),d.details&&!d.details.live)return;var C=this.switchParams(d.url,c==null?void 0:c.details);this.loadPlaylist(C)},v.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}))},v.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},v.loadPlaylist=function(g){var h=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(h)){var c=h.id,d=h.groupId,R=h.url;if(g)try{R=g.addDirectives(R)}catch(D){this.warn("Could not construct new URL with HLS Delivery Directives: "+D)}this.log("loading audio-track playlist for id: "+c),this.clearTimer(),this.hls.trigger(le.Events.AUDIO_TRACK_LOADING,{url:R,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}(W.default);ae.default=T},"./src/controller/base-playlist-controller.ts":function(Se,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"),W=X("./src/controller/level-helper.ts"),oe=X("./src/utils/logger.ts"),V=X("./src/errors.ts"),l=function(){function B(T,y){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,y+":"),this.warn=oe.logger.warn.bind(oe.logger,y+":"),this.hls=T}var A=B.prototype;return A.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},A.onError=function(y,p){p.fatal&&p.type===V.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},A.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},A.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},A.stopLoad=function(){this.canLoad=!1,this.clearTimer()},A.switchParams=function(y,p){var v=p==null?void 0:p.renditionReports;if(v)for(var _=0;_<v.length;_++){var g=v[_],h=""+g.URI;if(h===y.substr(-h.length)){var c=parseInt(g["LAST-MSN"]),d=parseInt(g["LAST-PART"]);if(p&&this.hls.config.lowLatencyMode){var R=Math.min(p.age-p.partTarget,p.targetduration);d!==void 0&&R>p.partTarget&&(d+=1)}if(Object(le.isFiniteNumber)(c))return new j.HlsUrlParameters(c,Object(le.isFiniteNumber)(d)?d:void 0,j.HlsSkip.No)}}},A.loadPlaylist=function(y){},A.shouldLoadTrack=function(y){return this.canLoad&&y&&!!y.url&&(!y.details||y.details.live)},A.playlistLoaded=function(y,p,v){var _=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||v!=null&&v.live){if(g.reloaded(v),v&&this.log("live playlist "+y+" "+(g.advanced?"REFRESHED "+g.lastPartSn+"-"+g.lastPartIndex:"MISSED")),v&&g.fragments.length>0&&Object(W.mergeDetails)(v,g),!this.canLoad||!g.live)return;var d,R=void 0,D=void 0;if(g.canBlockReload&&g.endSN&&g.advanced){var I=this.hls.config.lowLatencyMode,N=g.lastPartSn,S=g.endSN,L=g.lastPartIndex,C=L!==-1,b=N===S,E=I?0:L;C?(R=b?S+1:N,D=b?E:L+1):R=S+1;var O=g.age,x=O+g.ageHeader,k=Math.min(x-g.partTarget,g.targetduration*1.5);if(k>0){if(v&&k>v.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+v.tuneInGoal+" to: "+k+" with playlist age: "+g.age),k=0;else{var Z=Math.floor(k/g.targetduration);if(R+=Z,D!==void 0){var G=Math.round(k%g.targetduration/g.partTarget);D+=G}this.log("CDN Tune-in age: "+g.ageHeader+"s last advanced "+O.toFixed(2)+"s goal: "+k+" skip sn "+Z+" to part "+D)}g.tuneInGoal=k}if(d=this.getDeliveryDirectives(g,p.deliveryDirectives,R,D),I||!b){this.loadPlaylist(d);return}}else d=this.getDeliveryDirectives(g,p.deliveryDirectives,R,D);var P=Object(W.computeReloadInterval)(g,h);R!==void 0&&g.canBlockReload&&(P-=g.partTarget||1),this.log("reload live playlist "+y+" in "+Math.round(P)+" ms"),this.timer=self.setTimeout(function(){return _.loadPlaylist(d)},P)}else this.clearTimer()},A.getDeliveryDirectives=function(y,p,v,_){var g=Object(j.getSkipValue)(y,v);return p!=null&&p.skip&&y.deltaUpdateFailed&&(v=p.msn,_=p.part,g=j.HlsSkip.No),new j.HlsUrlParameters(v,_,g)},A.retryLoadingOrFail=function(y){var p=this,v=this.hls.config,_=this.retryCount<v.levelLoadingMaxRetry;if(_){var g;if(this.retryCount++,y.details.indexOf("LoadTimeOut")>-1&&(g=y.context)!==null&&g!==void 0&&g.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+y.details+'"'),this.loadPlaylist();else{var h=Math.min(Math.pow(2,this.retryCount)*v.levelLoadingRetryDelay,v.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return p.loadPlaylist()},h),this.warn("retry playlist loading #"+this.retryCount+" in "+h+' ms after "'+y.details+'"')}}else this.warn('cannot recover from error "'+y.details+'"'),this.clearTimer(),y.fatal=!0;return _},B}()},"./src/controller/base-stream-controller.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"State",function(){return S}),X.d(ae,"default",function(){return L});var le=X("./src/polyfills/number.ts"),j=X("./src/task-loop.ts"),W=X("./src/controller/fragment-tracker.ts"),oe=X("./src/utils/buffer-helper.ts"),V=X("./src/utils/logger.ts"),l=X("./src/events.ts"),B=X("./src/errors.ts"),A=X("./src/types/transmuxer.ts"),T=X("./src/utils/mp4-tools.ts"),y=X("./src/utils/discontinuities.ts"),p=X("./src/controller/fragment-finders.ts"),v=X("./src/controller/level-helper.ts"),_=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(C,b){for(var E=0;E<b.length;E++){var O=b[E];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(C,O.key,O)}}function R(C,b,E){return b&&d(C.prototype,b),E&&d(C,E),C}function D(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}function I(C,b){C.prototype=Object.create(b.prototype),C.prototype.constructor=C,N(C,b)}function N(C,b){return N=Object.setPrototypeOf||function(O,x){return O.__proto__=x,O},N(C,b)}var S={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"},L=function(C){I(b,C);function b(O,x,k){var Z;return Z=C.call(this)||this,Z.hls=void 0,Z.fragPrevious=null,Z.fragCurrent=null,Z.fragmentTracker=void 0,Z.transmuxer=null,Z._state=S.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=k,Z.log=V.logger.log.bind(V.logger,k+":"),Z.warn=V.logger.warn.bind(V.logger,k+":"),Z.hls=O,Z.fragmentLoader=new _.default(O.config),Z.fragmentTracker=x,Z.config=O.config,Z.decrypter=new g.default(O,O.config),O.on(l.Events.KEY_LOADED,Z.onKeyLoaded,D(Z)),Z}var E=b.prototype;return E.doTick=function(){this.onTickEnd()},E.onTickEnd=function(){},E.startLoad=function(x){},E.stopLoad=function(){this.fragmentLoader.abort();var x=this.fragCurrent;x&&this.fragmentTracker.removeFragment(x),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=S.STOPPED},E._streamEnded=function(x,k){var Z=this.fragCurrent,G=this.fragmentTracker;if(!k.live&&Z&&Z.sn===k.endSN&&!x.nextStart){var P=G.getState(Z);return P===W.FragmentState.PARTIAL||P===W.FragmentState.OK}return!1},E.onMediaAttached=function(x,k){var Z=this.media=this.mediaBuffer=k.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),Z.addEventListener("seeking",this.onvseeking),Z.addEventListener("ended",this.onvended);var G=this.config;this.levels&&G.autoStartLoad&&this.state===S.STOPPED&&this.startLoad(G.startPosition)},E.onMediaDetaching=function(){var x=this.media;x!=null&&x.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),x&&(x.removeEventListener("seeking",this.onvseeking),x.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},E.onMediaSeeking=function(){var x=this.config,k=this.fragCurrent,Z=this.media,G=this.mediaBuffer,P=this.state,z=Z?Z.currentTime:0,Q=oe.BufferHelper.bufferInfo(G||Z,z,x.maxBufferHole);if(this.log("media seeking to "+(Object(le.isFiniteNumber)(z)?z.toFixed(3):z)+", state: "+P),P===S.ENDED)this.resetLoadingState();else if(k&&!Q.len){var H=x.maxFragLookUpTolerance,ne=k.start-H,ce=k.start+k.duration+H,we=z>ce;(z<ne||we)&&(we&&k.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),k.loader.abort()),this.resetLoadingState())}Z&&(this.lastCurrentTime=z),!this.loadedmetadata&&!Q.len&&(this.nextLoadPosition=this.startPosition=z),this.tickImmediate()},E.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},E.onKeyLoaded=function(x,k){if(this.state!==S.KEY_LOADING||k.frag!==this.fragCurrent||!this.levels)return;this.state=S.IDLE;var Z=this.levels[k.frag.level].details;Z&&this.loadFragment(k.frag,Z,k.frag.start)},E.onHandlerDestroying=function(){this.stopLoad(),C.prototype.onHandlerDestroying.call(this)},E.onHandlerDestroyed=function(){this.state=S.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,C.prototype.onHandlerDestroyed.call(this)},E.loadKey=function(x,k){this.log("Loading key for "+x.sn+" of ["+k.startSN+"-"+k.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+x.level),this.state=S.KEY_LOADING,this.fragCurrent=x,this.hls.trigger(l.Events.KEY_LOADING,{frag:x})},E.loadFragment=function(x,k,Z){this._loadFragForPlayback(x,k,Z)},E._loadFragForPlayback=function(x,k,Z){var G=this,P=function(Q){if(G.fragContextChanged(x)){G.warn("Fragment "+x.sn+(Q.part?" p: "+Q.part.index:"")+" of level "+x.level+" was dropped during download."),G.fragmentTracker.removeFragment(x);return}x.stats.chunkCount++,G._handleFragmentLoadProgress(Q)};this._doFragLoad(x,k,Z,P).then(function(z){if(!z)return;G.fragLoadError=0;var Q=G.state;if(G.fragContextChanged(x)){(Q===S.FRAG_LOADING||Q===S.BACKTRACKING||!G.fragCurrent&&Q===S.PARSING)&&(G.fragmentTracker.removeFragment(x),G.state=S.IDLE);return}if("payload"in z&&(G.log("Loaded fragment "+x.sn+" of level "+x.level),G.hls.trigger(l.Events.FRAG_LOADED,z),G.state===S.BACKTRACKING)){G.fragmentTracker.backtrack(x,z),G.resetFragmentLoading(x);return}G._handleFragmentLoadComplete(z)}).catch(function(z){G.warn(z),G.resetFragmentLoading(x)})},E.flushMainBuffer=function(x,k,Z){if(Z===void 0&&(Z=null),!(x-k))return;var G={startOffset:x,endOffset:k,type:Z};this.fragLoadError=0,this.hls.trigger(l.Events.BUFFER_FLUSHING,G)},E._loadInitSegment=function(x){var k=this;this._doFragLoad(x).then(function(Z){if(!Z||k.fragContextChanged(x)||!k.levels)throw new Error("init load aborted");return Z}).then(function(Z){var G=k.hls,P=Z.payload,z=x.decryptdata;if(P&&P.byteLength>0&&z&&z.key&&z.iv&&z.method==="AES-128"){var Q=self.performance.now();return k.decrypter.webCryptoDecrypt(new Uint8Array(P),z.key.buffer,z.iv.buffer).then(function(H){var ne=self.performance.now();return G.trigger(l.Events.FRAG_DECRYPTED,{frag:x,payload:H,stats:{tstart:Q,tdecrypt:ne}}),Z.payload=H,Z})}return Z}).then(function(Z){var G=k.fragCurrent,P=k.hls,z=k.levels;if(!z)throw new Error("init load aborted, missing levels");var Q=z[x.level].details;console.assert(Q,"Level details are defined when init segment is loaded");var H=x.stats;k.state=S.IDLE,k.fragLoadError=0,x.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===G&&P.trigger(l.Events.FRAG_BUFFERED,{stats:H,frag:G,part:null,id:x.type}),k.tick()}).catch(function(Z){k.warn(Z),k.resetFragmentLoading(x)})},E.fragContextChanged=function(x){var k=this.fragCurrent;return!x||!k||x.level!==k.level||x.sn!==k.sn||x.urlId!==k.urlId},E.fragBufferedComplete=function(x,k){var Z=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+x.type+" sn: "+x.sn+(k?" part: "+k.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+x.level+" "+h.default.toString(oe.BufferHelper.getBuffered(Z))),this.state=S.IDLE,this.tick()},E._handleFragmentLoadComplete=function(x){var k=this.transmuxer;if(!k)return;var Z=x.frag,G=x.part,P=x.partsLoaded,z=!P||P.length===0||P.some(function(H){return!H}),Q=new A.ChunkMetadata(Z.level,Z.sn,Z.stats.chunkCount+1,0,G?G.index:-1,!z);k.flush(Q)},E._handleFragmentLoadProgress=function(x){},E._doFragLoad=function(x,k,Z,G){var P=this;if(Z===void 0&&(Z=null),!this.levels)throw new Error("frag load aborted, missing levels");if(Z=Math.max(x.start,Z||0),this.config.lowLatencyMode&&k){var z=k.partList;if(z&&G){Z>x.end&&k.fragmentHint&&(x=k.fragmentHint);var Q=this.getNextPart(z,x,Z);if(Q>-1){var H=z[Q];return this.log("Loading part sn: "+x.sn+" p: "+H.index+" cc: "+x.cc+" of playlist ["+k.startSN+"-"+k.endSN+"] parts [0-"+Q+"-"+(z.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+x.level+", target: "+parseFloat(Z.toFixed(3))),this.nextLoadPosition=H.start+H.duration,this.state=S.FRAG_LOADING,this.hls.trigger(l.Events.FRAG_LOADING,{frag:x,part:z[Q],targetBufferTime:Z}),this.doFragPartsLoad(x,z,Q,G).catch(function(ne){return P.handleFragLoadError(ne)})}else if(!x.url||this.loadedEndOfParts(z,Z))return Promise.resolve(null)}}return this.log("Loading fragment "+x.sn+" cc: "+x.cc+" "+(k?"of ["+k.startSN+"-"+k.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+x.level+", target: "+parseFloat(Z.toFixed(3))),Object(le.isFiniteNumber)(x.sn)&&!this.bitrateTest&&(this.nextLoadPosition=x.start+x.duration),this.state=S.FRAG_LOADING,this.hls.trigger(l.Events.FRAG_LOADING,{frag:x,targetBufferTime:Z}),this.fragmentLoader.load(x,G).catch(function(ne){return P.handleFragLoadError(ne)})},E.doFragPartsLoad=function(x,k,Z,G){var P=this;return new Promise(function(z,Q){var H=[],ne=function ce(we){var Ce=k[we];P.fragmentLoader.loadPart(x,Ce,G).then(function(ze){H[Ce.index]=ze;var Le=ze.part;P.hls.trigger(l.Events.FRAG_LOADED,ze);var We=k[we+1];if(We&&We.fragment===x)ce(we+1);else return z({frag:x,part:Le,partsLoaded:H})}).catch(Q)};ne(Z)})},E.handleFragLoadError=function(x){var k=x.data;return k&&k.details===B.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(k.frag,k.part):this.hls.trigger(l.Events.ERROR,k),null},E._handleTransmuxerFlush=function(x){var k=this.getCurrentContext(x);if(!k||this.state!==S.PARSING){this.fragCurrent||(this.state=S.IDLE);return}var Z=k.frag,G=k.part,P=k.level,z=self.performance.now();Z.stats.parsing.end=z,G&&(G.stats.parsing.end=z),this.updateLevelTiming(Z,G,P,x.partial)},E.getCurrentContext=function(x){var k=this.levels,Z=x.level,G=x.sn,P=x.part;if(!k||!k[Z])return this.warn("Levels object was unset while buffering fragment "+G+" of level "+Z+". The current chunk will not be buffered."),null;var z=k[Z],Q=P>-1?Object(v.getPartWith)(z,G,P):null,H=Q?Q.fragment:Object(v.getFragmentWithSN)(z,G,this.fragCurrent);return H?{frag:H,part:Q,level:z}:null},E.bufferFragmentData=function(x,k,Z,G){if(!x||this.state!==S.PARSING)return;var P=x.data1,z=x.data2,Q=P;if(P&&z&&(Q=Object(T.appendUint8Array)(P,z)),!Q||!Q.length)return;var H={type:x.type,frag:k,part:Z,chunkMeta:G,parent:k.type,data:Q};this.hls.trigger(l.Events.BUFFER_APPENDING,H),x.dropped&&x.independent&&!Z&&this.flushBufferGap(k)},E.flushBufferGap=function(x){var k=this.media;if(!k)return;if(!oe.BufferHelper.isBuffered(k,k.currentTime)){this.flushMainBuffer(0,x.start);return}var Z=k.currentTime,G=oe.BufferHelper.bufferInfo(k,Z,0),P=x.duration,z=Math.min(this.config.maxFragLookUpTolerance*2,P*.25),Q=Math.max(Math.min(x.start-z,G.end-z),Z+z);x.start-Q>z&&this.flushMainBuffer(Q,x.start)},E.getFwdBufferInfo=function(x,k){var Z=this.config,G=this.getLoadPosition();if(!Object(le.isFiniteNumber)(G))return null;var P=oe.BufferHelper.bufferInfo(x,G,Z.maxBufferHole);if(P.len===0&&P.nextStart!==void 0){var z=this.fragmentTracker.getBufferedFrag(G,k);if(z&&P.nextStart<z.end)return oe.BufferHelper.bufferInfo(x,G,Math.max(P.nextStart,Z.maxBufferHole))}return P},E.getMaxBufferLength=function(x){var k=this.config,Z;return x?Z=Math.max(8*k.maxBufferSize/x,k.maxBufferLength):Z=k.maxBufferLength,Math.min(Z,k.maxMaxBufferLength)},E.reduceMaxBufferLength=function(x){var k=this.config,Z=x||k.maxBufferLength;return k.maxMaxBufferLength>=Z?(k.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+k.maxMaxBufferLength+"s"),!0):!1},E.getNextFragment=function(x,k){var Z,G,P=k.fragments,z=P.length;if(!z)return null;var Q=this.config,H=P[0].start,ne;if(k.live){var ce=Q.initialLiveManifestSize;if(z<ce)return this.warn("Not enough fragments to start playback (have: "+z+", need: "+ce+")"),null;!k.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(ne=this.getInitialLiveFragment(k,P),this.startPosition=ne?this.hls.liveSyncPosition||ne.start:x)}else x<=H&&(ne=P[0]);if(!ne){var we=Q.lowLatencyMode?k.partEnd:k.fragmentEnd;ne=this.getFragmentAtPosition(x,we,k)}return(Z=ne)!==null&&Z!==void 0&&Z.initSegment&&!((G=ne)!==null&&G!==void 0&&G.initSegment.data)&&!this.bitrateTest&&(ne=ne.initSegment),ne},E.getNextPart=function(x,k,Z){for(var G=-1,P=!1,z=!0,Q=0,H=x.length;Q<H;Q++){var ne=x[Q];if(z=z&&!ne.independent,G>-1&&Z<ne.start)break;var ce=ne.loaded;!ce&&(P||ne.independent||z)&&ne.fragment===k&&(G=Q),P=ce}return G},E.loadedEndOfParts=function(x,k){var Z=x[x.length-1];return Z&&k>Z.start&&Z.loaded},E.getInitialLiveFragment=function(x,k){var Z=this.fragPrevious,G=null;if(Z){if(x.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+Z.programDateTime),G=Object(p.findFragmentByPDT)(k,Z.endProgramDateTime,this.config.maxFragLookUpTolerance)),!G){var P=Z.sn+1;if(P>=x.startSN&&P<=x.endSN){var z=k[P-x.startSN];Z.cc===z.cc&&(G=z,this.log("Live playlist, switching playlist, load frag with next SN: "+G.sn))}G||(G=Object(p.findFragWithCC)(k,Z.cc),G&&this.log("Live playlist, switching playlist, load frag with same CC: "+G.sn))}}else{var Q=this.hls.liveSyncPosition;Q!==null&&(G=this.getFragmentAtPosition(Q,this.bitrateTest?x.fragmentEnd:x.edge,x))}return G},E.getFragmentAtPosition=function(x,k,Z){var G=this.config,P=this.fragPrevious,z=Z.fragments,Q=Z.endSN,H=Z.fragmentHint,ne=G.maxFragLookUpTolerance,ce=!!(G.lowLatencyMode&&Z.partList&&H);ce&&H&&!this.bitrateTest&&(z=z.concat(H),Q=H.sn);var we;if(x<k){var Ce=x>k-ne?0:ne;we=Object(p.findFragmentByPTS)(P,z,x,Ce)}else we=z[z.length-1];if(we){var ze=we.sn-Z.startSN,Le=P&&we.level===P.level,We=z[ze+1],Ve=this.fragmentTracker.getState(we);if(Ve===W.FragmentState.BACKTRACKED){we=null;for(var $e=ze;z[$e]&&this.fragmentTracker.getState(z[$e])===W.FragmentState.BACKTRACKED;)P?we=z[$e--]:we=z[--$e];we||(we=We)}else P&&we.sn===P.sn&&!ce&&(Le&&(we.sn<Q&&this.fragmentTracker.getState(We)!==W.FragmentState.OK?(this.log("SN "+we.sn+" just loaded, load next one: "+We.sn),we=We):we=null))}return we},E.synchronizeToLiveEdge=function(x){var k=this.config,Z=this.media;if(!Z)return;var G=this.hls.liveSyncPosition,P=Z.currentTime,z=x.fragments[0].start,Q=x.edge,H=P>=z-k.maxFragLookUpTolerance&&P<=Q;if(G!==null&&Z.duration>G&&(P<G||!H)){var ne=k.liveMaxLatencyDuration!==void 0?k.liveMaxLatencyDuration:k.liveMaxLatencyDurationCount*x.targetduration;(!H&&Z.readyState<4||P<Q-ne)&&(this.loadedmetadata||(this.nextLoadPosition=G),Z.readyState&&(this.warn("Playback: "+P.toFixed(3)+" is located too far from the end of live sliding playlist: "+Q+", reset currentTime to : "+G.toFixed(3)),Z.currentTime=G))}},E.alignPlaylists=function(x,k){var Z=this.levels,G=this.levelLastLoaded,P=this.fragPrevious,z=G!==null?Z[G]:null,Q=x.fragments.length;if(!Q)return this.warn("No fragments in live playlist"),0;var H=x.fragments[0].start,ne=!k,ce=x.alignedSliding&&Object(le.isFiniteNumber)(H);if(ne||!ce&&!H){Object(y.alignStream)(P,z,x);var we=x.fragments[0].start;return this.log("Live playlist sliding: "+we.toFixed(2)+" start-sn: "+(k?k.startSN:"na")+"->"+x.startSN+" prev-sn: "+(P?P.sn:"na")+" fragments: "+Q),we}return H},E.waitForCdnTuneIn=function(x){var k=3;return x.live&&x.canBlockReload&&x.tuneInGoal>Math.max(x.partHoldBack,x.partTarget*k)},E.setStartPosition=function(x,k){var Z=this.startPosition;if(Z<k&&(Z=-1),Z===-1||this.lastCurrentTime===-1){var G=x.startTimeOffset;Object(le.isFiniteNumber)(G)?(Z=k+G,G<0&&(Z+=x.totalduration),Z=Math.min(Math.max(k,Z),k+x.totalduration),this.log("Start time offset "+G+" found in playlist, adjust startPosition to "+Z),this.startPosition=Z):x.live?Z=this.hls.liveSyncPosition||k:this.startPosition=Z=0,this.lastCurrentTime=Z}this.nextLoadPosition=Z},E.getLoadPosition=function(){var x=this.media,k=0;return this.loadedmetadata&&x?k=x.currentTime:this.nextLoadPosition&&(k=this.nextLoadPosition),k},E.handleFragLoadAborted=function(x,k){this.transmuxer&&x.sn!=="initSegment"&&x.stats.aborted&&(this.warn("Fragment "+x.sn+(k?" part"+k.index:"")+" of level "+x.level+" was aborted"),this.resetFragmentLoading(x))},E.resetFragmentLoading=function(x){(!this.fragCurrent||!this.fragContextChanged(x))&&(this.state=S.IDLE)},E.onFragmentOrKeyLoadError=function(x,k){if(k.fatal)return;var Z=k.frag;if(!Z||Z.type!==x)return;var G=this.fragCurrent;console.assert(G&&Z.sn===G.sn&&Z.level===G.level&&Z.urlId===G.urlId,"Frag load error must match current frag to retry");var P=this.config;if(this.fragLoadError+1<=P.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(Z.level))return;var z=Math.min(Math.pow(2,this.fragLoadError)*P.fragLoadingRetryDelay,P.fragLoadingMaxRetryTimeout);this.warn("Fragment "+Z.sn+" of "+x+" "+Z.level+" failed to load, retrying in "+z+"ms"),this.retryDate=self.performance.now()+z,this.fragLoadError++,this.state=S.FRAG_LOADING_WAITING_RETRY}else k.levelRetry?(x===c.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=S.IDLE):(V.logger.error(k.details+" reaches max retry, redispatch as fatal ..."),k.fatal=!0,this.hls.stopLoad(),this.state=S.ERROR)},E.afterBufferFlushed=function(x,k,Z){if(!x)return;var G=oe.BufferHelper.getBuffered(x);this.fragmentTracker.detectEvictedFragments(k,G,Z),this.state===S.ENDED&&this.resetLoadingState()},E.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=S.IDLE},E.resetLiveStartWhenNotLoaded=function(x){if(!this.loadedmetadata){this.startFragRequested=!1;var k=this.levels?this.levels[x].details:null;if(k!=null&&k.live)return this.startPosition=-1,this.setStartPosition(k,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},E.updateLevelTiming=function(x,k,Z,G){var P=this,z=Z.details;console.assert(!!z,"level.details must be defined");var Q=Object.keys(x.elementaryStreams).reduce(function(H,ne){var ce=x.elementaryStreams[ne];if(ce){var we=ce.endPTS-ce.startPTS;if(we<=0)return P.warn("Could not parse fragment "+x.sn+" "+ne+" duration reliably ("+we+") resetting transmuxer to fallback to playlist timing"),P.resetTransmuxer(),H||!1;var Ce=G?0:Object(v.updateFragPTSDTS)(z,x,ce.startPTS,ce.endPTS,ce.startDTS,ce.endDTS);return P.hls.trigger(l.Events.LEVEL_PTS_UPDATED,{details:z,level:Z,drift:Ce,type:ne,frag:x,start:ce.startPTS,end:ce.endPTS}),!0}return H},!1);Q?(this.state=S.PARSED,this.hls.trigger(l.Events.FRAG_PARSED,{frag:x,part:k})):this.resetLoadingState()},E.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},R(b,[{key:"state",get:function(){return this._state},set:function(x){var k=this._state;k!==x&&(this._state=x,this.log(k+"->"+x))}}]),b}(j.default)},"./src/controller/buffer-controller.ts":function(Se,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"),W=X("./src/utils/logger.ts"),oe=X("./src/errors.ts"),V=X("./src/utils/buffer-helper.ts"),l=X("./src/utils/mediasource-helper.ts"),B=X("./src/loader/fragment.ts"),A=X("./src/controller/buffer-operation-queue.ts"),T=Object(l.getMediaSource)(),y=/([ha]vc.)(?:\.[^.,]+)+/,p=function(){function v(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,R=h.mediaSource;W.logger.log("[buffer-controller]: Media source opened"),d&&(h.updateMediaElementDuration(),c.trigger(j.Events.MEDIA_ATTACHED,{media:d})),R&&R.removeEventListener("sourceopen",h._onMediaSourceOpen),h.checkPendingTracks()},this._onMediaSourceClose=function(){W.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){W.logger.log("[buffer-controller]: Media source ended")},this.hls=g,this._initSourceBuffer(),this.registerListeners()}var _=v.prototype;return _.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},_.destroy=function(){this.unregisterListeners(),this.details=null},_.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)},_.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)},_._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new A.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},_.onManifestParsed=function(h,c){var d=2;(c.audio&&!c.video||!c.altAudio)&&(d=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=d,this.details=null,W.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},_.onMediaAttaching=function(h,c){var d=this.media=c.media;if(d&&T){var R=this.mediaSource=new T;R.addEventListener("sourceopen",this._onMediaSourceOpen),R.addEventListener("sourceended",this._onMediaSourceEnded),R.addEventListener("sourceclose",this._onMediaSourceClose),d.src=self.URL.createObjectURL(R),this._objectUrl=d.src}},_.onMediaDetaching=function(){var h=this.media,c=this.mediaSource,d=this._objectUrl;if(c){if(W.logger.log("[buffer-controller]: media source detaching"),c.readyState==="open")try{c.endOfStream()}catch(R){W.logger.warn("[buffer-controller]: onMediaDetaching: "+R.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()):W.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)},_.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(R){W.logger.warn("[buffer-controller]: Failed to reset the "+c+" buffer",R)}}),this._initSourceBuffer()},_.onBufferCodecs=function(h,c){var d=this,R=this.getSourceBufferTypes().length;if(Object.keys(c).forEach(function(D){if(R){var I=d.tracks[D];if(I&&typeof I.buffer.changeType=="function"){var N=c[D],S=N.codec,L=N.levelCodec,C=N.container,b=(I.levelCodec||I.codec).replace(y,"$1"),E=(L||S).replace(y,"$1");if(b!==E){var O=C+";codecs="+(L||S);d.appendChangeType(D,O)}}}else d.pendingTracks[D]=c[D]}),R)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},_.appendChangeType=function(h,c){var d=this,R=this.operationQueue,D={execute:function(){var N=d.sourceBuffer[h];N&&(W.logger.log("[buffer-controller]: changing "+h+" sourceBuffer type to "+c),N.changeType(c)),R.shiftAndExecuteNext(h)},onStart:function(){},onComplete:function(){},onError:function(N){W.logger.warn("[buffer-controller]: Failed to change "+h+" SourceBuffer type",N)}};R.append(D,h)},_.onBufferAppending=function(h,c){var d=this,R=this.hls,D=this.operationQueue,I=this.tracks,N=c.data,S=c.type,L=c.frag,C=c.part,b=c.chunkMeta,E=b.buffering[S],O=self.performance.now();E.start=O;var x=L.stats.buffering,k=C?C.stats.buffering:null;x.start===0&&(x.start=O),k&&k.start===0&&(k.start=O);var Z=I.audio,G=S==="audio"&&b.id===1&&(Z==null?void 0:Z.container)==="audio/mpeg",P={execute:function(){if(E.executeStart=self.performance.now(),G){var Q=d.sourceBuffer[S];if(Q){var H=L.start-Q.timestampOffset;Math.abs(H)>=.1&&(W.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+L.start+" (delta: "+H+") sn: "+L.sn+")"),Q.timestampOffset=L.start)}}d.appendExecutor(N,S)},onStart:function(){},onComplete:function(){var Q=self.performance.now();E.executeEnd=E.end=Q,x.first===0&&(x.first=Q),k&&k.first===0&&(k.first=Q);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:S,frag:L,part:C,chunkMeta:b,parent:L.type,timeRanges:ne})},onError:function(Q){W.logger.error("[buffer-controller]: Error encountered while trying to append to the "+S+" SourceBuffer",Q);var H={type:oe.ErrorTypes.MEDIA_ERROR,parent:L.type,details:oe.ErrorDetails.BUFFER_APPEND_ERROR,err:Q,fatal:!1};Q.code===DOMException.QUOTA_EXCEEDED_ERR?H.details=oe.ErrorDetails.BUFFER_FULL_ERROR:(d.appendError++,H.details=oe.ErrorDetails.BUFFER_APPEND_ERROR,d.appendError>R.config.appendErrorMaxRetry&&(W.logger.error("[buffer-controller]: Failed "+R.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),H.fatal=!0)),R.trigger(j.Events.ERROR,H)}};D.append(P,S)},_.onBufferFlushing=function(h,c){var d=this,R=this.operationQueue,D=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(L){W.logger.warn("[buffer-controller]: Failed to remove from "+N+" SourceBuffer",L)}}};c.type?R.append(D(c.type),c.type):this.getSourceBufferTypes().forEach(function(I){R.append(D(I),I)})},_.onFragParsed=function(h,c){var d=this,R=c.frag,D=c.part,I=[],N=D?D.elementaryStreams:R.elementaryStreams;N[B.ElementaryStreamTypes.AUDIOVIDEO]?I.push("audiovideo"):(N[B.ElementaryStreamTypes.AUDIO]&&I.push("audio"),N[B.ElementaryStreamTypes.VIDEO]&&I.push("video"));var S=function(){var C=self.performance.now();R.stats.buffering.end=C,D&&(D.stats.buffering.end=C);var b=D?D.stats:R.stats;d.hls.trigger(j.Events.FRAG_BUFFERED,{frag:R,part:D,stats:b,id:R.type})};I.length===0&&W.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+R.type+" level: "+R.level+" sn: "+R.sn),this.blockBuffers(S,I)},_.onFragChanged=function(h,c){this.flushBackBuffer()},_.onBufferEos=function(h,c){var d=this,R=this.getSourceBufferTypes().reduce(function(D,I){var N=d.sourceBuffer[I];return(!c.type||c.type===I)&&(N&&!N.ended&&(N.ended=!0,W.logger.log("[buffer-controller]: "+I+" sourceBuffer now EOS"))),D&&!!(!N||N.ended)},!0);R&&this.blockBuffers(function(){var D=d.mediaSource;if(!D||D.readyState!=="open")return;D.endOfStream()})},_.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()},_.flushBackBuffer=function(){var h=this.hls,c=this.details,d=this.media,R=this.sourceBuffer;if(!d||c===null)return;var D=this.getSourceBufferTypes();if(!D.length)return;var I=c.live&&h.config.liveBackBufferLength!==null?h.config.liveBackBufferLength:h.config.backBufferLength;if(!Object(le.isFiniteNumber)(I)||I<0)return;var N=d.currentTime,S=c.levelTargetDuration,L=Math.max(I,S),C=Math.floor(N/S)*S-L;D.forEach(function(b){var E=R[b];if(E){var O=V.BufferHelper.getBuffered(E);O.length>0&&C>O.start(0)&&(h.trigger(j.Events.BACK_BUFFER_REACHED,{bufferEnd:C}),c.live&&h.trigger(j.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:C}),h.trigger(j.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:C,type:b}))}})},_.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var h=this.details,c=this.hls,d=this.media,R=this.mediaSource,D=h.fragments[0].start+h.totalduration,I=d.duration,N=Object(le.isFiniteNumber)(R.duration)?R.duration:0;h.live&&c.config.liveDurationInfinity?(W.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),R.duration=Infinity,this.updateSeekableRange(h)):(D>N&&D>I||!Object(le.isFiniteNumber)(I))&&(W.logger.log("[buffer-controller]: Updating Media Source duration to "+D.toFixed(3)),R.duration=D)},_.updateSeekableRange=function(h){var c=this.mediaSource,d=h.fragments,R=d.length;if(R&&h.live&&c!==null&&c!==void 0&&c.setLiveSeekableRange){var D=Math.max(0,d[0].start),I=Math.max(D,D+h.totalduration);c.setLiveSeekableRange(D,I)}},_.checkPendingTracks=function(){var h=this.bufferCodecEventsExpected,c=this.operationQueue,d=this.pendingTracks,R=Object.keys(d).length;if(R&&!h||R===2){this.createSourceBuffers(d),this.pendingTracks={};var D=this.getSourceBufferTypes();if(D.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}D.forEach(function(I){c.executeNext(I)})}},_.createSourceBuffers=function(h){var c=this.sourceBuffer,d=this.mediaSource;if(!d)throw Error("createSourceBuffers called when mediaSource was null");var R=0;for(var D in h)if(!c[D]){var I=h[D];if(!I)throw Error("source buffer exists for track "+D+", however track does not");var N=I.levelCodec||I.codec,S=I.container+";codecs="+N;W.logger.log("[buffer-controller]: creating sourceBuffer("+S+")");try{var L=c[D]=d.addSourceBuffer(S),C=D;this.addBufferListener(C,"updatestart",this._onSBUpdateStart),this.addBufferListener(C,"updateend",this._onSBUpdateEnd),this.addBufferListener(C,"error",this._onSBUpdateError),this.tracks[D]={buffer:L,codec:N,container:I.container,levelCodec:I.levelCodec,id:I.id},R++}catch(b){W.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+b.message),this.hls.trigger(j.Events.ERROR,{type:oe.ErrorTypes.MEDIA_ERROR,details:oe.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:b,mimeType:S})}}R&&this.hls.trigger(j.Events.BUFFER_CREATED,{tracks:this.tracks})},_._onSBUpdateStart=function(h){var c=this.operationQueue,d=c.current(h);d.onStart()},_._onSBUpdateEnd=function(h){var c=this.operationQueue,d=c.current(h);d.onComplete(),c.shiftAndExecuteNext(h)},_._onSBUpdateError=function(h,c){W.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)},_.removeExecutor=function(h,c,d){var R=this.media,D=this.mediaSource,I=this.operationQueue,N=this.sourceBuffer,S=N[h];if(!R||!D||!S){W.logger.warn("[buffer-controller]: Attempting to remove from the "+h+" SourceBuffer, but it does not exist"),I.shiftAndExecuteNext(h);return}var L=Object(le.isFiniteNumber)(R.duration)?R.duration:Infinity,C=Object(le.isFiniteNumber)(D.duration)?D.duration:Infinity,b=Math.max(0,c),E=Math.min(d,L,C);E>b?(W.logger.log("[buffer-controller]: Removing ["+b+","+E+"] from the "+h+" SourceBuffer"),console.assert(!S.updating,h+" sourceBuffer must not be updating"),S.remove(b,E)):I.shiftAndExecuteNext(h)},_.appendExecutor=function(h,c){var d=this.operationQueue,R=this.sourceBuffer,D=R[c];if(!D){W.logger.warn("[buffer-controller]: Attempting to append to the "+c+" SourceBuffer, but it does not exist"),d.shiftAndExecuteNext(c);return}D.ended=!1,console.assert(!D.updating,c+" sourceBuffer must not be updating"),D.appendBuffer(h)},_.blockBuffers=function(h,c){var d=this;if(c===void 0&&(c=this.getSourceBufferTypes()),!c.length){W.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(h);return}var R=this.operationQueue,D=c.map(function(I){return R.appendBlocker(I)});Promise.all(D).then(function(){h(),c.forEach(function(I){var N=d.sourceBuffer[I];(!N||!N.updating)&&R.shiftAndExecuteNext(I)})})},_.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},_.addBufferListener=function(h,c,d){var R=this.sourceBuffer[h];if(!R)return;var D=d.bind(this,h);this.listeners[h].push({event:c,listener:D}),R.addEventListener(c,D)},_.removeBufferListeners=function(h){var c=this.sourceBuffer[h];if(!c)return;this.listeners[h].forEach(function(d){c.removeEventListener(d.event,d.listener)})},v}()},"./src/controller/buffer-operation-queue.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return j});var le=X("./src/utils/logger.ts"),j=function(){function W(V){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=V}var oe=W.prototype;return oe.append=function(l,B){var A=this.queues[B];A.push(l),A.length===1&&this.buffers[B]&&this.executeNext(B)},oe.insertAbort=function(l,B){var A=this.queues[B];A.unshift(l),this.executeNext(B)},oe.appendBlocker=function(l){var B,A=new Promise(function(y){B=y}),T={execute:B,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(T,l),A},oe.executeNext=function(l){var B=this.buffers,A=this.queues,T=B[l],y=A[l];if(y.length){var p=y[0];try{p.execute()}catch(v){le.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),p.onError(v),(!T||!T.updating)&&(y.shift(),this.executeNext(l))}}},oe.shiftAndExecuteNext=function(l){this.queues[l].shift(),this.executeNext(l)},oe.current=function(l){return this.queues[l][0]},W}()},"./src/controller/cap-level-controller.ts":function(Se,ae,X){"use strict";X.r(ae);var le=X("./src/events.ts");function j(V,l){for(var B=0;B<l.length;B++){var A=l[B];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(V,A.key,A)}}function W(V,l,B){return l&&j(V.prototype,l),B&&j(V,B),V}var oe=function(){function V(B){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=B,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(A){this.streamController=A},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 A=this.hls;A.on(le.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),A.on(le.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),A.on(le.Events.MANIFEST_PARSED,this.onManifestParsed,this),A.on(le.Events.BUFFER_CODECS,this.onBufferCodecs,this),A.on(le.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},l.unregisterListener=function(){var A=this.hls;A.off(le.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),A.off(le.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),A.off(le.Events.MANIFEST_PARSED,this.onManifestParsed,this),A.off(le.Events.BUFFER_CODECS,this.onBufferCodecs,this),A.off(le.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},l.onFpsDropLevelCapping=function(A,T){V.isLevelAllowed(T.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(T.droppedLevel)},l.onMediaAttaching=function(A,T){this.media=T.media instanceof HTMLVideoElement?T.media:null},l.onManifestParsed=function(A,T){var y=this.hls;this.restrictedLevels=[],this.firstLevel=T.firstLevel,y.config.capLevelToPlayerSize&&T.video&&this.startCapping()},l.onBufferCodecs=function(A,T){var y=this.hls;y.config.capLevelToPlayerSize&&T.video&&this.startCapping()},l.onMediaDetaching=function(){this.stopCapping()},l.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var A=this.hls.levels;if(A.length){var T=this.hls;T.autoLevelCapping=this.getMaxLevel(A.length-1),T.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=T.autoLevelCapping}}},l.getMaxLevel=function(A){var T=this,y=this.hls.levels;if(!y.length)return-1;var p=y.filter(function(v,_){return V.isLevelAllowed(_,T.restrictedLevels)&&_<=A});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 A=this.media,T={width:0,height:0};if(A){var y=A.getBoundingClientRect();T.width=y.width,T.height=y.height,!T.width&&!T.height&&(T.width=y.right-y.left||A.width||0,T.height=y.bottom-y.top||A.height||0)}return this.clientRect=T,T},V.isLevelAllowed=function(A,T){return T===void 0&&(T=[]),T.indexOf(A)===-1},V.getMaxLevelByMediaSize=function(A,T,y){if(!A||!A.length)return-1;for(var p=function(c,d){return d?c.width!==d.width||c.height!==d.height:!0},v=A.length-1,_=0;_<A.length;_+=1){var g=A[_];if((g.width>=T||g.height>=y)&&p(g,A[_+1])){v=_;break}}return v},W(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 A=1;try{A=self.devicePixelRatio}catch(T){}return A}}]),V}();ae.default=oe},"./src/controller/cmcd-controller.ts":function(Se,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"),W=X("./src/utils/buffer-helper.ts"),oe=X("./src/utils/logger.ts");function V(v,_){for(var g=0;g<_.length;g++){var h=_[g];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(v,h.key,h)}}function l(v,_,g){return _&&V(v.prototype,_),g&&V(v,g),v}function B(v,_){var g=typeof Symbol!="undefined"&&v[Symbol.iterator]||v["@@iterator"];if(g)return(g=g.call(v)).next.bind(g);if(Array.isArray(v)||(g=A(v))||_&&v&&typeof v.length=="number"){g&&(v=g);var h=0;return function(){return h>=v.length?{done:!0}:{done:!1,value:v[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 A(v,_){if(!v)return;if(typeof v=="string")return T(v,_);var g=Object.prototype.toString.call(v).slice(8,-1);if(g==="Object"&&v.constructor&&(g=v.constructor.name),g==="Map"||g==="Set")return Array.from(v);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return T(v,_)}function T(v,_){(_==null||_>v.length)&&(_=v.length);for(var g=0,h=new Array(_);g<_;g++)h[g]=v[g];return h}function y(){return y=Object.assign||function(v){for(var _=1;_<arguments.length;_++){var g=arguments[_];for(var h in g)Object.prototype.hasOwnProperty.call(g,h)&&(v[h]=g[h])}return v},y.apply(this,arguments)}var p=function(){function v(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(R){try{h.apply(R,{ot:j.CMCDObjectType.MANIFEST,su:!h.initialized})}catch(D){oe.logger.warn("Could not generate manifest CMCD data.",D)}},this.applyFragmentData=function(R){try{var D=R.frag,I=h.hls.levels[D.level],N=h.getObjectType(D),S={d:D.duration*1e3,ot:N};(N===j.CMCDObjectType.VIDEO||N===j.CMCDObjectType.AUDIO||N==j.CMCDObjectType.MUXED)&&(S.br=I.bitrate/1e3,S.tb=h.getTopBandwidth(N),S.bl=h.getBufferLength(N)),h.apply(R,S)}catch(L){oe.logger.warn("Could not generate segment CMCD data.",L)}},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||v.uuid(),this.cid=d.contentId,this.useHeaders=d.useHeaders===!0,this.registerListeners())}var _=v.prototype;return _.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)},_.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()},_.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},_.onMediaAttached=function(h,c){this.media=c.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},_.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},_.onBufferCreated=function(h,c){var d,R;this.audioBuffer=(d=c.tracks.audio)===null||d===void 0?void 0:d.buffer,this.videoBuffer=(R=c.tracks.video)===null||R===void 0?void 0:R.buffer},_.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}},_.apply=function(h,c){c===void 0&&(c={}),y(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 R=v.toHeaders(c);if(!Object.keys(R).length)return;h.headers||(h.headers={}),y(h.headers,R)}else{var D=v.toQuery(c);if(!D)return;h.url=v.appendQueryToUri(h.url,D)}},_.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},_.getTopBandwidth=function(h){for(var c=0,d=h===j.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,R=B(d),D;!(D=R()).done;){var I=D.value;I.bitrate>c&&(c=I.bitrate)}return c>0?c:NaN},_.getBufferLength=function(h){var c=this.hls.media,d=h===j.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!d||!c)return NaN;var R=W.BufferHelper.bufferInfo(d,c.currentTime,this.config.maxBufferHole);return R.len*1e3},_.createPlaylistLoader=function(){var h=this.config.pLoader,c=this.applyPlaylistData,d=h||this.config.loader;return function(){function R(I){this.loader=void 0,this.loader=new d(I)}var D=R.prototype;return D.destroy=function(){this.loader.destroy()},D.abort=function(){this.loader.abort()},D.load=function(N,S,L){c(N),this.loader.load(N,S,L)},l(R,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),R}()},_.createFragmentLoader=function(){var h=this.config.fLoader,c=this.applyFragmentData,d=h||this.config.loader;return function(){function R(I){this.loader=void 0,this.loader=new d(I)}var D=R.prototype;return D.destroy=function(){this.loader.destroy()},D.abort=function(){this.loader.abort()},D.load=function(N,S,L){c(N),this.loader.load(N,S,L)},l(R,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),R}()},v.uuid=function(){var h=URL.createObjectURL(new Blob),c=h.toString();return URL.revokeObjectURL(h),c.substr(c.lastIndexOf("/")+1)},v.serialize=function(h){for(var c=[],d=function(G){return!Number.isNaN(G)&&G!=null&&G!==""&&G!==!1},R=function(G){return Math.round(G)},D=function(G){return R(G/100)*100},I=function(G){return encodeURIComponent(G)},N={br:R,d:R,bl:D,dl:D,mtp:D,nor:I,rtp:D,tb:R},S=Object.keys(h||{}).sort(),L=B(S),C;!(C=L()).done;){var b=C.value,E=h[b];if(!d(E))continue;if(b==="v"&&E===1)continue;if(b=="pr"&&E===1)continue;var O=N[b];O&&(E=O(E));var x=typeof E,k=void 0;b==="ot"||b==="sf"||b==="st"?k=b+"="+E:x==="boolean"?k=b:x==="number"?k=b+"="+E:k=b+"="+JSON.stringify(E),c.push(k)}return c.join(",")},v.toHeaders=function(h){for(var c=Object.keys(h),d={},R=["Object","Request","Session","Status"],D=[{},{},{},{}],I={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,S=c;N<S.length;N++){var L=S[N],C=I[L]!=null?I[L]:1;D[C][L]=h[L]}for(var b=0;b<D.length;b++){var E=v.serialize(D[b]);E&&(d["CMCD-"+R[b]]=E)}return d},v.toQuery=function(h){return"CMCD="+encodeURIComponent(v.serialize(h))},v.appendQueryToUri=function(h,c){if(!c)return h;var d=h.includes("?")?"&":"?";return""+h+d+c},v}()},"./src/controller/eme-controller.ts":function(Se,ae,X){"use strict";X.r(ae);var le=X("./src/events.ts"),j=X("./src/errors.ts"),W=X("./src/utils/logger.ts"),oe=X("./src/utils/mediakeys-helper.ts");function V(p,v){for(var _=0;_<v.length;_++){var g=v[_];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}function l(p,v,_){return v&&V(p.prototype,v),_&&V(p,_),p}var B=3,A=function(v,_,g){var h={audioCapabilities:[],videoCapabilities:[]};return v.forEach(function(c){h.audioCapabilities.push({contentType:'audio/mp4; codecs="'+c+'"',robustness:g.audioRobustness||""})}),_.forEach(function(c){h.videoCapabilities.push({contentType:'video/mp4; codecs="'+c+'"',robustness:g.videoRobustness||""})}),[h]},T=function(v,_,g,h){switch(v){case oe.KeySystems.WIDEVINE:return A(_,g,h);default:throw new Error("Unknown key-system: "+v)}},y=function(){function p(_){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=_,this._config=_.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 v=p.prototype;return v.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},v._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)},v._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)},v.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+'"')},v._attemptKeySystemAccess=function(g,h,c){var d=this,R=T(g,h,c,this._drmSystemOptions);W.logger.log("Requesting encrypted media key-system access");var D=this.requestMediaKeySystemAccess(g,R);this.mediaKeysPromise=D.then(function(I){return d._onMediaKeySystemAccessObtained(g,I)}),D.catch(function(I){W.logger.error('Failed to obtain key-system "'+g+'" access:',I)})},v._onMediaKeySystemAccessObtained=function(g,h){var c=this;W.logger.log('Access for key-system "'+g+'" obtained');var d={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:h,mediaKeySystemDomain:g};this._mediaKeysList.push(d);var R=Promise.resolve().then(function(){return h.createMediaKeys()}).then(function(D){return d.mediaKeys=D,W.logger.log('Media-keys created for key-system "'+g+'"'),c._onMediaKeysCreated(),D});return R.catch(function(D){W.logger.error("Failed to create media-keys:",D)}),R},v._onMediaKeysCreated=function(){var g=this;this._mediaKeysList.forEach(function(h){h.mediaKeysSession||(h.mediaKeysSession=h.mediaKeys.createSession(),g._onNewMediaKeySession(h.mediaKeysSession))})},v._onNewMediaKeySession=function(g){var h=this;W.logger.log("New key-system session "+g.sessionId),g.addEventListener("message",function(c){h._onKeySessionMessage(g,c.message)},!1)},v._onKeySessionMessage=function(g,h){W.logger.log("Got EME message event, creating license request"),this._requestLicense(h,function(c){W.logger.log("Received license data (length: "+(c&&c.byteLength)+"), updating key-session"),g.update(c)})},v.onMediaEncrypted=function(g){var h=this;if(W.logger.log('Media is encrypted using "'+g.initDataType+'" init data type'),!this.mediaKeysPromise){W.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(R){if(!h._media)return;h._attemptSetMediaKeys(R),h._generateRequestWithPreferredKeySession(g.initDataType,g.initData)};this.mediaKeysPromise.then(c).catch(c)},v._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){W.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}W.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(h.mediaKeys),this._hasSetMediaKeys=!0}},v._generateRequestWithPreferredKeySession=function(g,h){var c=this,d=this._mediaKeysList[0];if(!d){W.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){W.logger.warn("Key-Session already initialized but requested again");return}var R=d.mediaKeysSession;if(!R){W.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){W.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}W.logger.log('Generating key-session request for "'+g+'" init data type'),d.mediaKeysSessionInitialized=!0,R.generateRequest(g,h).then(function(){W.logger.debug("Key-session generation succeeded")}).catch(function(D){W.logger.error("Error generating key-session request:",D),c.hls.trigger(le.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},v._createLicenseXhr=function(g,h,c){var d=new XMLHttpRequest;d.responseType="arraybuffer",d.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,d,g,h,c);var R=this._licenseXhrSetup;if(R)try{R.call(this.hls,d,g),R=void 0}catch(D){W.logger.error(D)}try{d.readyState||d.open("POST",g,!0),R&&R.call(this.hls,d,g)}catch(D){throw new Error("issue setting up KeySystem license XHR "+D)}return d},v._onLicenseRequestReadyStageChange=function(g,h,c,d){switch(g.readyState){case 4:if(g.status===200){this._requestLicenseFailureCount=0,W.logger.log("License request succeeded");var R=g.response,D=this._licenseResponseCallback;if(D)try{R=D.call(this.hls,g,h)}catch(N){W.logger.error(N)}d(R)}else{if(W.logger.error("License Request XHR failed ("+h+"). Status: "+g.status+" ("+g.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>B){this.hls.trigger(le.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var I=B-this._requestLicenseFailureCount+1;W.logger.warn("Retrying license request, "+I+" attempts left"),this._requestLicense(c,d)}break}},v._generateLicenseRequestChallenge=function(g,h){switch(g.mediaKeySystemDomain){case oe.KeySystems.WIDEVINE:return h}throw new Error("unsupported key-system: "+g.mediaKeySystemDomain)},v._requestLicense=function(g,h){W.logger.log("Requesting content license for key-system");var c=this._mediaKeysList[0];if(!c){W.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),R=this._createLicenseXhr(d,g,h);W.logger.log("Sending license request to URL: "+d);var D=this._generateLicenseRequestChallenge(c,g);R.send(D)}catch(I){W.logger.error("Failure requesting DRM license: "+I),this.hls.trigger(le.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},v.onMediaAttached=function(g,h){if(!this._emeEnabled)return;var c=h.media;this._media=c,c.addEventListener("encrypted",this._onMediaEncrypted)},v.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(){})},v.onManifestParsed=function(g,h){if(!this._emeEnabled)return;var c=h.levels.map(function(R){return R.audioCodec}).filter(function(R){return!!R}),d=h.levels.map(function(R){return R.videoCodec}).filter(function(R){return!!R});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=y},"./src/controller/fps-controller.ts":function(Se,ae,X){"use strict";X.r(ae);var le=X("./src/events.ts"),j=X("./src/utils/logger.ts"),W=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(B){this.streamController=B},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(B,A){var T=this.hls.config;if(T.capLevelOnFPSDrop){var y=A.media instanceof self.HTMLVideoElement?A.media:null;this.media=y,y&&typeof y.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),T.fpsDroppedMonitoringPeriod)}},V.checkFPS=function(B,A,T){var y=performance.now();if(A){if(this.lastTime){var p=y-this.lastTime,v=T-this.lastDroppedFrames,_=A-this.lastDecodedFrames,g=1e3*v/p,h=this.hls;if(h.trigger(le.Events.FPS_DROP,{currentDropped:v,currentDecoded:_,totalDroppedFrames:T}),g>0&&v>h.config.fpsDroppedMonitoringThreshold*_){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=y,this.lastDroppedFrames=T,this.lastDecodedFrames=A}},V.checkFPSInterval=function(){var B=this.media;if(B)if(this.isVideoPlaybackQualityAvailable){var A=B.getVideoPlaybackQuality();this.checkFPS(B,A.totalVideoFrames,A.droppedVideoFrames)}else this.checkFPS(B,B.webkitDecodedFrameCount,B.webkitDroppedFrameCount)},oe}();ae.default=W},"./src/controller/fragment-finders.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"findFragmentByPDT",function(){return W}),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 B});var le=X("./src/polyfills/number.ts"),j=X("./src/utils/binary-search.ts");function W(A,T,y){if(T===null||!Array.isArray(A)||!A.length||!Object(le.isFiniteNumber)(T))return null;var p=A[0].programDateTime;if(T<(p||0))return null;var v=A[A.length-1].endProgramDateTime;if(T>=(v||0))return null;y=y||0;for(var _=0;_<A.length;++_){var g=A[_];if(l(T,y,g))return g}return null}function oe(A,T,y,p){y===void 0&&(y=0),p===void 0&&(p=0);var v=null;if(A?v=T[A.sn-T[0].sn+1]||null:y===0&&T[0].start===0&&(v=T[0]),v&&V(y,p,v)===0)return v;var _=j.default.search(T,V.bind(null,y,p));return _||v}function V(A,T,y){A===void 0&&(A=0),T===void 0&&(T=0);var p=Math.min(T,y.duration+(y.deltaPTS?y.deltaPTS:0));return y.start+y.duration-p<=A?1:y.start-p>A&&y.start?-1:0}function l(A,T,y){var p=Math.min(T,y.duration+(y.deltaPTS?y.deltaPTS:0))*1e3,v=y.endProgramDateTime||0;return v-p>A}function B(A,T){return j.default.search(A,function(y){return y.cc<T?1:y.cc>T?-1:0})}},"./src/controller/fragment-tracker.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"FragmentState",function(){return W}),X.d(ae,"FragmentTracker",function(){return oe});var le=X("./src/events.ts"),j=X("./src/types/loader.ts"),W;(function(B){B.NOT_LOADED="NOT_LOADED",B.BACKTRACKED="BACKTRACKED",B.APPENDING="APPENDING",B.PARTIAL="PARTIAL",B.OK="OK"})(W||(W={}));var oe=function(){function B(T){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=T,this._registerListeners()}var A=B.prototype;return A._registerListeners=function(){var y=this.hls;y.on(le.Events.BUFFER_APPENDED,this.onBufferAppended,this),y.on(le.Events.FRAG_BUFFERED,this.onFragBuffered,this),y.on(le.Events.FRAG_LOADED,this.onFragLoaded,this)},A._unregisterListeners=function(){var y=this.hls;y.off(le.Events.BUFFER_APPENDED,this.onBufferAppended,this),y.off(le.Events.FRAG_BUFFERED,this.onFragBuffered,this),y.off(le.Events.FRAG_LOADED,this.onFragLoaded,this)},A.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},A.getAppendedFrag=function(y,p){if(p===j.PlaylistLevelType.MAIN){var v=this.activeFragment,_=this.activeParts;if(!v)return null;if(_)for(var g=_.length;g--;){var h=_[g],c=h?h.end:v.appendedPTS;if(h.start<=y&&c!==void 0&&y<=c)return g>9&&(this.activeParts=_.slice(g-9)),h}else if(v.start<=y&&v.appendedPTS!==void 0&&y<=v.appendedPTS)return v}return this.getBufferedFrag(y,p)},A.getBufferedFrag=function(y,p){for(var v=this.fragments,_=Object.keys(v),g=_.length;g--;){var h=v[_[g]];if((h==null?void 0:h.body.type)===p&&h.buffered){var c=h.body;if(c.start<=y&&y<=c.end)return c}}return null},A.detectEvictedFragments=function(y,p,v){var _=this;Object.keys(this.fragments).forEach(function(g){var h=_.fragments[g];if(!h)return;if(!h.buffered){h.body.type===v&&_.removeFragment(h.body);return}var c=h.range[y];if(!c)return;c.time.some(function(d){var R=!_.isTimeBuffered(d.startPTS,d.endPTS,p);return R&&_.removeFragment(h.body),R})})},A.detectPartialFragments=function(y){var p=this,v=this.timeRanges,_=y.frag,g=y.part;if(!v||_.sn==="initSegment")return;var h=l(_),c=this.fragments[h];if(!c)return;Object.keys(v).forEach(function(d){var R=_.elementaryStreams[d];if(!R)return;var D=v[d],I=g!==null||R.partial===!0;c.range[d]=p.getBufferedTimes(_,g,I,D)}),c.backtrack=c.loaded=null,Object.keys(c.range).length?c.buffered=!0:this.removeFragment(c.body)},A.fragBuffered=function(y){var p=l(y),v=this.fragments[p];v&&(v.backtrack=v.loaded=null,v.buffered=!0)},A.getBufferedTimes=function(y,p,v,_){for(var g={time:[],partial:v},h=p?p.start:y.start,c=p?p.end:y.end,d=y.minEndPTS||c,R=y.maxStartPTS||h,D=0;D<_.length;D++){var I=_.start(D)-this.bufferPadding,N=_.end(D)+this.bufferPadding;if(R>=I&&d<=N){g.time.push({startPTS:Math.max(h,_.start(D)),endPTS:Math.min(c,_.end(D))});break}else if(h<N&&c>I)g.partial=!0,g.time.push({startPTS:Math.max(h,_.start(D)),endPTS:Math.min(c,_.end(D))});else if(c<=I)break}return g},A.getPartialFragment=function(y){var p=null,v,_,g,h=0,c=this.bufferPadding,d=this.fragments;return Object.keys(d).forEach(function(R){var D=d[R];if(!D)return;V(D)&&(_=D.body.start-c,g=D.body.end+c,y>=_&&y<=g&&(v=Math.min(y-_,g-y),h<=v&&(p=D.body,h=v)))}),p},A.getState=function(y){var p=l(y),v=this.fragments[p];return v?v.buffered?V(v)?W.PARTIAL:W.OK:v.backtrack?W.BACKTRACKED:W.APPENDING:W.NOT_LOADED},A.backtrack=function(y,p){var v=l(y),_=this.fragments[v];if(!_||_.backtrack)return null;var g=_.backtrack=p||_.loaded;return _.loaded=null,g},A.getBacktrackData=function(y){var p=l(y),v=this.fragments[p];if(v){var _,g=v.backtrack;if(g!=null&&(_=g.payload)!==null&&_!==void 0&&_.byteLength)return g;this.removeFragment(y)}return null},A.isTimeBuffered=function(y,p,v){for(var _,g,h=0;h<v.length;h++){if(_=v.start(h)-this.bufferPadding,g=v.end(h)+this.bufferPadding,y>=_&&p<=g)return!0;if(p<=_)return!1}return!1},A.onFragLoaded=function(y,p){var v=p.frag,_=p.part;if(v.sn==="initSegment"||v.bitrateTest||_)return;var g=l(v);this.fragments[g]={body:v,loaded:p,backtrack:null,buffered:!1,range:Object.create(null)}},A.onBufferAppended=function(y,p){var v=this,_=p.frag,g=p.part,h=p.timeRanges;if(_.type===j.PlaylistLevelType.MAIN)if(this.activeFragment=_,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 R=h[d];if(v.detectEvictedFragments(d,R),!g)for(var D=0;D<R.length;D++)_.appendedPTS=Math.max(R.end(D),_.appendedPTS||0)})},A.onFragBuffered=function(y,p){this.detectPartialFragments(p)},A.hasFragment=function(y){var p=l(y);return!!this.fragments[p]},A.removeFragmentsInRange=function(y,p,v){var _=this;Object.keys(this.fragments).forEach(function(g){var h=_.fragments[g];if(!h)return;if(h.buffered){var c=h.body;c.type===v&&c.start<p&&c.end>y&&_.removeFragment(c)}})},A.removeFragment=function(y){var p=l(y);y.stats.loaded=0,y.clearElementaryStreamInfo(),delete this.fragments[p]},A.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},B}();function V(B){var A,T;return B.buffered&&(((A=B.range.video)===null||A===void 0?void 0:A.partial)||((T=B.range.audio)===null||T===void 0?void 0:T.partial))}function l(B){return B.type+"_"+B.level+"_"+B.urlId+"_"+B.sn}},"./src/controller/gap-controller.ts":function(Se,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 B}),X.d(ae,"SKIP_BUFFER_RANGE_START",function(){return A}),X.d(ae,"default",function(){return T});var le=X("./src/utils/buffer-helper.ts"),j=X("./src/errors.ts"),W=X("./src/events.ts"),oe=X("./src/utils/logger.ts"),V=250,l=2,B=.1,A=.05,T=function(){function y(v,_,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=v,this.media=_,this.fragmentTracker=g,this.hls=h}var p=y.prototype;return p.destroy=function(){this.hls=this.fragmentTracker=this.media=null},p.poll=function(_){var g=this.config,h=this.media,c=this.stalled,d=h.currentTime,R=h.seeking,D=this.seeking&&!R,I=!this.seeking&&R;if(this.seeking=R,d!==_){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((I||D)&&(this.stalled=null),h.paused||h.ended||h.playbackRate===0||!le.BufferHelper.getBuffered(h).length)return;var S=le.BufferHelper.bufferInfo(h,d,0),L=S.len>0,C=S.nextStart||0;if(!L&&!C)return;if(R){var b=S.len>l,E=!C||C-d>l&&!this.fragmentTracker.getPartialFragment(d);if(b||E)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var O,x=Math.max(C,S.start||0)-d,k=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,Z=k==null||((O=k.details)===null||O===void 0)?void 0:O.live,G=Z?k.details.targetduration*2:l;if(x>0&&x<=G){this._trySkipBufferHole(null);return}}var P=self.performance.now();if(c===null){this.stalled=P;return}var z=P-c;!R&&z>=V&&this._reportStall(S.len);var Q=le.BufferHelper.bufferInfo(h,d,g.maxBufferHole);this._tryFixBufferStall(Q,z)},p._tryFixBufferStall=function(_,g){var h=this.config,c=this.fragmentTracker,d=this.media,R=d.currentTime,D=c.getPartialFragment(R);if(D){var I=this._trySkipBufferHole(D);if(I)return}_.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(_){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="+_+")"),g.trigger(W.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:_}))},p._trySkipBufferHole=function(_){for(var g=this.config,h=this.hls,c=this.media,d=c.currentTime,R=0,D=le.BufferHelper.getBuffered(c),I=0;I<D.length;I++){var N=D.start(I);if(d+g.maxBufferHole>=R&&d<N){var S=Math.max(N+A,c.currentTime+B);return oe.logger.warn("skipping hole, adjusting currentTime from "+d+" to "+S),this.moved=!0,this.stalled=null,c.currentTime=S,_&&h.trigger(W.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 "+S,frag:_}),S}R=D.end(I)}return 0},p._tryNudgeBuffer=function(){var _=this.config,g=this.hls,h=this.media,c=h.currentTime,d=(this.nudgeRetry||0)+1;if(this.nudgeRetry=d,d<_.nudgeMaxRetry){var R=c+d*_.nudgeOffset;oe.logger.warn("Nudging 'currentTime' from "+c+" to "+R),h.currentTime=R,g.trigger(W.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 "+_.nudgeMaxRetry+" nudges"),g.trigger(W.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},y}()},"./src/controller/id3-track-controller.ts":function(Se,ae,X){"use strict";X.r(ae);var le=X("./src/events.ts"),j=X("./src/utils/texttrack-utils.ts"),W=X("./src/demux/id3.ts"),oe=.25,V=function(){function l(A){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=A,this._registerListeners()}var B=l.prototype;return B.destroy=function(){this._unregisterListeners()},B._registerListeners=function(){var T=this.hls;T.on(le.Events.MEDIA_ATTACHED,this.onMediaAttached,this),T.on(le.Events.MEDIA_DETACHING,this.onMediaDetaching,this),T.on(le.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),T.on(le.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},B._unregisterListeners=function(){var T=this.hls;T.off(le.Events.MEDIA_ATTACHED,this.onMediaAttached,this),T.off(le.Events.MEDIA_DETACHING,this.onMediaDetaching,this),T.off(le.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),T.off(le.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},B.onMediaAttached=function(T,y){this.media=y.media},B.onMediaDetaching=function(){if(!this.id3Track)return;Object(j.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},B.getID3Track=function(T){if(!this.media)return;for(var y=0;y<T.length;y++){var p=T[y];if(p.kind==="metadata"&&p.label==="id3")return Object(j.sendAddTrackEvent)(p,this.media),p}return this.media.addTextTrack("metadata","id3")},B.onFragParsingMetadata=function(T,y){if(!this.media)return;var p=y.frag,v=y.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var _=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,g=0;g<v.length;g++){var h=W.getID3Frames(v[g].data);if(h){var c=v[g].pts,d=g<v.length-1?v[g+1].pts:p.end,R=d-c;R<=0&&(d=c+oe);for(var D=0;D<h.length;D++){var I=h[D];if(!W.isTimeStampFrame(I)){var N=new _(c,d,"");N.value=I,this.id3Track.addCue(N)}}}}},B.onBufferFlushing=function(T,y){var p=y.startOffset,v=y.endOffset,_=y.type;if(!_||_==="audio"){var g=this.id3Track;g&&Object(j.removeCuesInRange)(g,p,v)}},l}();ae.default=V},"./src/controller/latency-controller.ts":function(Se,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"),W=X("./src/utils/logger.ts");function oe(B,A){for(var T=0;T<A.length;T++){var y=A[T];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(B,y.key,y)}}function V(B,A,T){return A&&oe(B.prototype,A),T&&oe(B,T),B}var l=function(){function B(T){var y=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 y.timeupdate()},this.hls=T,this.config=T.config,this.registerListeners()}var A=B.prototype;return A.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},A.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)},A.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)},A.onMediaAttached=function(y,p){this.media=p.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},A.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},A.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},A.onLevelUpdated=function(y,p){var v=p.details;this.levelDetails=v,v.advanced&&this.timeupdate(),!v.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},A.onError=function(y,p){if(p.details!==le.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,W.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},A.timeupdate=function(){var y=this.media,p=this.levelDetails;if(!y||!p)return;this.currentTime=y.currentTime;var v=this.computeLatency();if(v===null)return;this._latency=v;var _=this.config,g=_.lowLatencyMode,h=_.maxLiveSyncPlaybackRate;if(!g||h===1)return;var c=this.targetLatency;if(c===null)return;var d=v-c,R=Math.min(this.maxLatency,c+p.targetduration),D=d<R;if(p.live&&D&&d>.05&&this.forwardBufferLength>1){var I=Math.min(2,Math.max(1,h)),N=Math.round(2/(1+Math.exp(-.75*d-this.edgeStalled))*20)/20;y.playbackRate=Math.min(I,Math.max(1,N))}else y.playbackRate!==1&&y.playbackRate!==0&&(y.playbackRate=1)},A.estimateLiveEdge=function(){var y=this.levelDetails;return y===null?null:y.edge+y.age},A.computeLatency=function(){var y=this.estimateLiveEdge();return y===null?null:y-this.currentTime},V(B,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var y=this.config,p=this.levelDetails;return y.liveMaxLatencyDuration!==void 0?y.liveMaxLatencyDuration:p?y.liveMaxLatencyDurationCount*p.targetduration:0}},{key:"targetLatency",get:function(){var y=this.levelDetails;if(y===null)return null;var p=y.holdBack,v=y.partHoldBack,_=y.targetduration,g=this.config,h=g.liveSyncDuration,c=g.liveSyncDurationCount,d=g.lowLatencyMode,R=this.hls.userConfig,D=d&&v||p;(R.liveSyncDuration||R.liveSyncDurationCount||D===0)&&(D=h!==void 0?h:c*_);var I=_,N=1;return D+Math.min(this.stallCount*N,I)}},{key:"liveSyncPosition",get:function(){var y=this.estimateLiveEdge(),p=this.targetLatency,v=this.levelDetails;if(y===null||p===null||v===null)return null;var _=v.edge,g=y-p-this.edgeStalled,h=_-v.totalduration,c=_-(this.config.lowLatencyMode&&v.partTarget||v.targetduration);return Math.min(Math.max(h,g),c)}},{key:"drift",get:function(){var y=this.levelDetails;return y===null?1:y.drift}},{key:"edgeStalled",get:function(){var y=this.levelDetails;if(y===null)return 0;var p=(this.config.lowLatencyMode&&y.partTarget||y.targetduration)*3;return Math.max(y.age-p,0)}},{key:"forwardBufferLength",get:function(){var y=this.media,p=this.levelDetails;if(!y||!p)return 0;var v=y.buffered.length;return v?y.buffered.end(v-1):p.edge-this.currentTime}}]),B}()},"./src/controller/level-controller.ts":function(Se,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"),W=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"),B=X("./src/types/loader.ts");function A(){return A=Object.assign||function(h){for(var c=1;c<arguments.length;c++){var d=arguments[c];for(var R in d)Object.prototype.hasOwnProperty.call(d,R)&&(h[R]=d[R])}return h},A.apply(this,arguments)}function T(h,c){for(var d=0;d<c.length;d++){var R=c[d];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(h,R.key,R)}}function y(h,c,d){return c&&T(h.prototype,c),d&&T(h,d),h}function p(h,c){h.prototype=Object.create(c.prototype),h.prototype.constructor=h,v(h,c)}function v(h,c){return v=Object.setPrototypeOf||function(R,D){return R.__proto__=D,R},v(h,c)}var _=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),g=function(h){p(c,h);function c(R){var D;return D=h.call(this,R,"[level-controller]")||this,D._levels=[],D._firstLevel=-1,D._startLevel=void 0,D.currentLevelIndex=-1,D.manualLevelIndex=-1,D.onParsedComplete=void 0,D._registerListeners(),D}var d=c.prototype;return d._registerListeners=function(){var D=this.hls;D.on(j.Events.MANIFEST_LOADED,this.onManifestLoaded,this),D.on(j.Events.LEVEL_LOADED,this.onLevelLoaded,this),D.on(j.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),D.on(j.Events.FRAG_LOADED,this.onFragLoaded,this),D.on(j.Events.ERROR,this.onError,this)},d._unregisterListeners=function(){var D=this.hls;D.off(j.Events.MANIFEST_LOADED,this.onManifestLoaded,this),D.off(j.Events.LEVEL_LOADED,this.onLevelLoaded,this),D.off(j.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),D.off(j.Events.FRAG_LOADED,this.onFragLoaded,this),D.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 D=this._levels;D.forEach(function(I){I.loadError=0}),h.prototype.startLoad.call(this)},d.onManifestLoaded=function(D,I){var N=[],S=[],L=[],C,b={},E,O=!1,x=!1,k=!1;if(I.levels.forEach(function(z){var Q=z.attrs;O=O||!!(z.width&&z.height),x=x||!!z.videoCodec,k=k||!!z.audioCodec,_&&z.audioCodec&&z.audioCodec.indexOf("mp4a.40.34")!==-1&&(z.audioCodec=void 0);var H=z.bitrate+"-"+z.attrs.RESOLUTION+"-"+z.attrs.CODECS;E=b[H],E?E.url.push(z.url):(E=new le.Level(z),b[H]=E,N.push(E)),Q&&(Q.AUDIO&&Object(V.addGroupId)(E,"audio",Q.AUDIO),Q.SUBTITLES&&Object(V.addGroupId)(E,"text",Q.SUBTITLES))}),(O||x)&&k&&(N=N.filter(function(z){var Q=z.videoCodec,H=z.width,ne=z.height;return!!Q||!!(H&&ne)})),N=N.filter(function(z){var Q=z.audioCodec,H=z.videoCodec;return(!Q||Object(oe.isCodecSupportedInMp4)(Q,"audio"))&&(!H||Object(oe.isCodecSupportedInMp4)(H,"video"))}),I.audioTracks&&(S=I.audioTracks.filter(function(z){return!z.audioCodec||Object(oe.isCodecSupportedInMp4)(z.audioCodec,"audio")}),Object(V.assignTrackIdsByGroup)(S)),I.subtitles&&(L=I.subtitles,Object(V.assignTrackIdsByGroup)(L)),N.length>0){C=N[0].bitrate,N.sort(function(z,Q){return z.bitrate-Q.bitrate}),this._levels=N;for(var Z=0;Z<N.length;Z++)if(N[Z].bitrate===C){this._firstLevel=Z,this.log("manifest loaded, "+N.length+" level(s) found, first bitrate: "+C);break}var G=k&&!x,P={levels:N,audioTracks:S,subtitleTracks:L,firstLevel:this._firstLevel,stats:I.stats,audio:k,video:x,altAudio:!G&&S.some(function(z){return!!z.url})};this.hls.trigger(j.Events.MANIFEST_PARSED,P),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(j.Events.ERROR,{type:W.ErrorTypes.MEDIA_ERROR,details:W.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:I.url,reason:"no level with compatible codecs found in manifest"})},d.onError=function(D,I){if(h.prototype.onError.call(this,D,I),I.fatal)return;var N=I.context,S=this._levels[this.currentLevelIndex];if(N&&(N.type===B.PlaylistContextType.AUDIO_TRACK&&S.audioGroupIds&&N.groupId===S.audioGroupIds[S.urlId]||N.type===B.PlaylistContextType.SUBTITLE_TRACK&&S.textGroupIds&&N.groupId===S.textGroupIds[S.urlId])){this.redundantFailover(this.currentLevelIndex);return}var L=!1,C=!0,b;switch(I.details){case W.ErrorDetails.FRAG_LOAD_ERROR:case W.ErrorDetails.FRAG_LOAD_TIMEOUT:case W.ErrorDetails.KEY_LOAD_ERROR:case W.ErrorDetails.KEY_LOAD_TIMEOUT:if(I.frag){var E=this._levels[I.frag.level];E?(E.fragmentError++,E.fragmentError>this.hls.config.fragLoadingMaxRetry&&(b=I.frag.level)):b=I.frag.level}break;case W.ErrorDetails.LEVEL_LOAD_ERROR:case W.ErrorDetails.LEVEL_LOAD_TIMEOUT:N&&(N.deliveryDirectives&&(C=!1),b=N.level),L=!0;break;case W.ErrorDetails.REMUX_ALLOC_ERROR:b=I.level,L=!0;break}b!==void 0&&this.recoverLevel(I,b,L,C)},d.recoverLevel=function(D,I,N,S){var L=D.details,C=this._levels[I];if(C.loadError++,N){var b=this.retryLoadingOrFail(D);if(b)D.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(S){var E=C.url.length;if(E>1&&C.loadError<E)D.levelRetry=!0,this.redundantFailover(I);else if(this.manualLevelIndex===-1){var O=I===0?this._levels.length-1:I-1;this.currentLevelIndex!==O&&this._levels[O].loadError===0&&(this.warn(L+": switch to "+O),D.levelRetry=!0,this.hls.nextAutoLevel=O)}}},d.redundantFailover=function(D){var I=this._levels[D],N=I.url.length;if(N>1){var S=(I.urlId+1)%N;this.warn("Switching to redundant URL-id "+S),this._levels.forEach(function(L){L.urlId=S}),this.level=D}},d.onFragLoaded=function(D,I){var N=I.frag;if(N!==void 0&&N.type===B.PlaylistLevelType.MAIN){var S=this._levels[N.level];S!==void 0&&(S.fragmentError=0,S.loadError=0)}},d.onLevelLoaded=function(D,I){var N,S=I.level,L=I.details,C=this._levels[S];if(!C){var b;this.warn("Invalid level index "+S),(b=I.deliveryDirectives)!==null&&b!==void 0&&b.skip&&(L.deltaUpdateFailed=!0);return}S===this.currentLevelIndex?(C.fragmentError===0&&(C.loadError=0,this.retryCount=0),this.playlistLoaded(S,I,C.details)):(N=I.deliveryDirectives)!==null&&N!==void 0&&N.skip&&(L.deltaUpdateFailed=!0)},d.onAudioTrackSwitched=function(D,I){var N=this.hls.levels[this.currentLevelIndex];if(!N)return;if(N.audioGroupIds){for(var S=-1,L=this.hls.audioTracks[I.id].groupId,C=0;C<N.audioGroupIds.length;C++)if(N.audioGroupIds[C]===L){S=C;break}S!==N.urlId&&(N.urlId=S,this.startLoad())}},d.loadPlaylist=function(D){var I=this.currentLevelIndex,N=this._levels[I];if(this.canLoad&&N&&N.url.length>0){var S=N.urlId,L=N.url[S];if(D)try{L=D.addDirectives(L)}catch(C){this.warn("Could not construct new URL with HLS Delivery Directives: "+C)}this.log("Attempt loading level index "+I+(D?" at sn "+D.msn+" part "+D.part:"")+" with URL-id "+S+" "+L),this.clearTimer(),this.hls.trigger(j.Events.LEVEL_LOADING,{url:L,level:I,id:S,deliveryDirectives:D||null})}},d.removeLevel=function(D,I){var N=function(C,b){return b!==I},S=this._levels.filter(function(L,C){return C!==D?!0:L.url.length>1&&I!==void 0?(L.url=L.url.filter(N),L.audioGroupIds&&(L.audioGroupIds=L.audioGroupIds.filter(N)),L.textGroupIds&&(L.textGroupIds=L.textGroupIds.filter(N)),L.urlId=0,!0):!1}).map(function(L,C){var b=L.details;return b!=null&&b.fragments&&b.fragments.forEach(function(E){E.level=C}),L});this._levels=S,this.hls.trigger(j.Events.LEVELS_UPDATED,{levels:S})},y(c,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(D){var I,N=this._levels;if(N.length===0)return;if(this.currentLevelIndex===D&&(I=N[D])!==null&&I!==void 0&&I.details)return;if(D<0||D>=N.length){var S=D<0;if(this.hls.trigger(j.Events.ERROR,{type:W.ErrorTypes.OTHER_ERROR,details:W.ErrorDetails.LEVEL_SWITCH_ERROR,level:D,fatal:S,reason:"invalid level idx"}),S)return;D=Math.min(D,N.length-1)}this.clearTimer();var L=this.currentLevelIndex,C=N[L],b=N[D];this.log("switching to level "+D+" from "+L),this.currentLevelIndex=D;var E=A({},b,{level:D,maxBitrate:b.maxBitrate,uri:b.uri,urlId:b.urlId});delete E._urlId,this.hls.trigger(j.Events.LEVEL_SWITCHING,E);var O=b.details;if(!O||O.live){var x=this.switchParams(b.uri,C==null?void 0:C.details);this.loadPlaylist(x)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(D){this.manualLevelIndex=D,this._startLevel===void 0&&(this._startLevel=D),D!==-1&&(this.level=D)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(D){this._firstLevel=D}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var D=this.hls.config.startLevel;return D!==void 0?D:this._firstLevel}else return this._startLevel},set:function(D){this._startLevel=D}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(D){this.level=D,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=D)}}]),c}(l.default)},"./src/controller/level-helper.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"addGroupId",function(){return W}),X.d(ae,"assignTrackIdsByGroup",function(){return oe}),X.d(ae,"updatePTS",function(){return V}),X.d(ae,"updateFragPTSDTS",function(){return B}),X.d(ae,"mergeDetails",function(){return A}),X.d(ae,"mapPartIntersection",function(){return T}),X.d(ae,"mapFragmentIntersection",function(){return y}),X.d(ae,"adjustSliding",function(){return p}),X.d(ae,"addSliding",function(){return v}),X.d(ae,"computeReloadInterval",function(){return _}),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 W(c,d,R){switch(d){case"audio":c.audioGroupIds||(c.audioGroupIds=[]),c.audioGroupIds.push(R);break;case"text":c.textGroupIds||(c.textGroupIds=[]),c.textGroupIds.push(R);break}}function oe(c){var d={};c.forEach(function(R){var D=R.groupId||"";R.id=d[D]=d[D]||0,d[D]++})}function V(c,d,R){var D=c[d],I=c[R];l(D,I)}function l(c,d){var R=d.startPTS;if(Object(le.isFiniteNumber)(R)){var D=0,I;d.sn>c.sn?(D=R-c.start,I=c):(D=c.start-R,I=d),I.duration!==D&&(I.duration=D)}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 B(c,d,R,D,I,N){var S=D-R;S<=0&&(j.logger.warn("Fragment should have a positive duration",d),D=R+d.duration,N=I+d.duration);var L=R,C=D,b=d.startPTS,E=d.endPTS;if(Object(le.isFiniteNumber)(b)){var O=Math.abs(b-R);Object(le.isFiniteNumber)(d.deltaPTS)?d.deltaPTS=Math.max(O,d.deltaPTS):d.deltaPTS=O,L=Math.max(R,b),R=Math.min(R,b),I=Math.min(I,d.startDTS),C=Math.min(D,E),D=Math.max(D,E),N=Math.max(N,d.endDTS)}d.duration=D-R;var x=R-d.start;d.appendedPTS=D,d.start=d.startPTS=R,d.maxStartPTS=L,d.startDTS=I,d.endPTS=D,d.minEndPTS=C,d.endDTS=N;var k=d.sn;if(!c||k<c.startSN||k>c.endSN)return 0;var Z,G=k-c.startSN,P=c.fragments;for(P[G]=d,Z=G;Z>0;Z--)l(P[Z],P[Z-1]);for(Z=G;Z<P.length-1;Z++)l(P[Z],P[Z+1]);return c.fragmentHint&&l(P[P.length-1],c.fragmentHint),c.PTSKnown=c.alignedSliding=!0,x}function A(c,d){for(var R=null,D=c.fragments,I=D.length-1;I>=0;I--){var N=D[I].initSegment;if(N){R=N;break}}c.fragmentHint&&delete c.fragmentHint.endPTS;var S=0,L;if(y(c,d,function(Z,G){Z.relurl&&(S=Z.cc-G.cc),Object(le.isFiniteNumber)(Z.startPTS)&&Object(le.isFiniteNumber)(Z.endPTS)&&(G.start=G.startPTS=Z.startPTS,G.startDTS=Z.startDTS,G.appendedPTS=Z.appendedPTS,G.maxStartPTS=Z.maxStartPTS,G.endPTS=Z.endPTS,G.endDTS=Z.endDTS,G.minEndPTS=Z.minEndPTS,G.duration=Z.endPTS-Z.startPTS,G.duration&&(L=G),d.PTSKnown=d.alignedSliding=!0),G.elementaryStreams=Z.elementaryStreams,G.loader=Z.loader,G.stats=Z.stats,G.urlId=Z.urlId,Z.initSegment&&(G.initSegment=Z.initSegment,R=Z.initSegment)}),R){var C=d.fragmentHint?d.fragments.concat(d.fragmentHint):d.fragments;C.forEach(function(Z){var G;(!Z.initSegment||Z.initSegment.relurl===((G=R)===null||G===void 0?void 0:G.relurl))&&(Z.initSegment=R)})}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 b=d.skippedSegments;b--;)d.fragments.shift();d.startSN=d.fragments[0].sn,d.startCC=d.fragments[0].cc}var E=d.fragments;if(S){j.logger.warn("discontinuity sliding from playlist, take drift into account");for(var O=0;O<E.length;O++)E[O].cc+=S}d.skippedSegments&&(d.startCC=d.fragments[0].cc),T(c.partList,d.partList,function(Z,G){G.elementaryStreams=Z.elementaryStreams,G.stats=Z.stats}),L?B(d,L,L.startPTS,L.endPTS,L.startDTS,L.endDTS):p(c,d),E.length&&(d.totalduration=d.edge-E[0].start),d.driftStartTime=c.driftStartTime,d.driftStart=c.driftStart;var x=d.advancedDateTime;if(d.advanced&&x){var k=d.edge;d.driftStart||(d.driftStartTime=x,d.driftStart=k),d.driftEndTime=x,d.driftEnd=k}else d.driftEndTime=c.driftEndTime,d.driftEnd=c.driftEnd,d.advancedDateTime=c.advancedDateTime}function T(c,d,R){if(c&&d)for(var D=0,I=0,N=c.length;I<=N;I++){var S=c[I],L=d[I+D];S&&L&&S.index===L.index&&S.fragment.sn===L.fragment.sn?R(S,L):D--}}function y(c,d,R){for(var D=d.skippedSegments,I=Math.max(c.startSN,d.startSN)-d.startSN,N=(c.fragmentHint?1:0)+(D?d.endSN:Math.min(c.endSN,d.endSN))-d.startSN,S=d.startSN-c.startSN,L=d.fragmentHint?d.fragments.concat(d.fragmentHint):d.fragments,C=c.fragmentHint?c.fragments.concat(c.fragmentHint):c.fragments,b=I;b<=N;b++){var E=C[S+b],O=L[b];D&&!O&&b<D&&(O=d.fragments[b]=E),E&&O&&R(E,O)}}function p(c,d){var R=d.startSN+d.skippedSegments-c.startSN,D=c.fragments;if(R<0||R>=D.length)return;v(d,D[R].start)}function v(c,d){if(d){for(var R=c.fragments,D=c.skippedSegments;D<R.length;D++)R[D].start+=d;c.fragmentHint&&(c.fragmentHint.start+=d)}}function _(c,d){var R=1e3*c.levelTargetDuration,D=R/2,I=c.age,N=I>0&&I<R*3,S=d.loading.end-d.loading.start,L,C=c.availabilityDelay;if(c.updated===!1)if(N){var b=333*c.misses;L=Math.max(Math.min(D,S*2),b),c.availabilityDelay=(c.availabilityDelay||0)+L}else L=D;else N?(C=Math.min(C||R/2,I),c.availabilityDelay=C,L=C+R-I):L=R-S;return Math.round(L)}function g(c,d,R){if(!c||!c.details)return null;var D=c.details,I=D.fragments[d-D.startSN];return I||(I=D.fragmentHint,I&&I.sn===d?I:d<D.startSN&&R&&R.sn===d?R:null)}function h(c,d,R){if(!c||!c.details)return null;var D=c.details.partList;if(D)for(var I=D.length;I--;){var N=D[I];if(N.index===R&&N.fragment.sn===d)return N}return null}},"./src/controller/stream-controller.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return D});var le=X("./src/polyfills/number.ts"),j=X("./src/controller/base-stream-controller.ts"),W=X("./src/is-supported.ts"),oe=X("./src/events.ts"),V=X("./src/utils/buffer-helper.ts"),l=X("./src/controller/fragment-tracker.ts"),B=X("./src/types/loader.ts"),A=X("./src/loader/fragment.ts"),T=X("./src/demux/transmuxer-interface.ts"),y=X("./src/types/transmuxer.ts"),p=X("./src/controller/gap-controller.ts"),v=X("./src/errors.ts"),_=X("./src/utils/logger.ts");function g(I,N){for(var S=0;S<N.length;S++){var L=N[S];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(I,L.key,L)}}function h(I,N,S){return N&&g(I.prototype,N),S&&g(I,S),I}function c(I,N){I.prototype=Object.create(N.prototype),I.prototype.constructor=I,d(I,N)}function d(I,N){return d=Object.setPrototypeOf||function(L,C){return L.__proto__=C,L},d(I,N)}var R=100,D=function(I){c(N,I);function N(L,C){var b;return b=I.call(this,L,C,"[stream-controller]")||this,b.audioCodecSwap=!1,b.gapController=null,b.level=-1,b._forceStartLoad=!1,b.altAudio=!1,b.audioOnly=!1,b.fragPlaying=null,b.onvplaying=null,b.onvseeked=null,b.fragLastKbps=0,b.stalled=!1,b.couldBacktrack=!1,b.audioCodecSwitch=!1,b.videoBuffer=null,b._registerListeners(),b}var S=N.prototype;return S._registerListeners=function(){var C=this.hls;C.on(oe.Events.MEDIA_ATTACHED,this.onMediaAttached,this),C.on(oe.Events.MEDIA_DETACHING,this.onMediaDetaching,this),C.on(oe.Events.MANIFEST_LOADING,this.onManifestLoading,this),C.on(oe.Events.MANIFEST_PARSED,this.onManifestParsed,this),C.on(oe.Events.LEVEL_LOADING,this.onLevelLoading,this),C.on(oe.Events.LEVEL_LOADED,this.onLevelLoaded,this),C.on(oe.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),C.on(oe.Events.ERROR,this.onError,this),C.on(oe.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),C.on(oe.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),C.on(oe.Events.BUFFER_CREATED,this.onBufferCreated,this),C.on(oe.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),C.on(oe.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),C.on(oe.Events.FRAG_BUFFERED,this.onFragBuffered,this)},S._unregisterListeners=function(){var C=this.hls;C.off(oe.Events.MEDIA_ATTACHED,this.onMediaAttached,this),C.off(oe.Events.MEDIA_DETACHING,this.onMediaDetaching,this),C.off(oe.Events.MANIFEST_LOADING,this.onManifestLoading,this),C.off(oe.Events.MANIFEST_PARSED,this.onManifestParsed,this),C.off(oe.Events.LEVEL_LOADED,this.onLevelLoaded,this),C.off(oe.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),C.off(oe.Events.ERROR,this.onError,this),C.off(oe.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),C.off(oe.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),C.off(oe.Events.BUFFER_CREATED,this.onBufferCreated,this),C.off(oe.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),C.off(oe.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),C.off(oe.Events.FRAG_BUFFERED,this.onFragBuffered,this)},S.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},S.startLoad=function(C){if(this.levels){var b=this.lastCurrentTime,E=this.hls;if(this.stopLoad(),this.setInterval(R),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var O=E.startLevel;O===-1&&(E.config.testBandwidth?(O=0,this.bitrateTest=!0):O=E.nextAutoLevel),this.level=E.nextLoadLevel=O,this.loadedmetadata=!1}b>0&&C===-1&&(this.log("Override startPosition with lastCurrentTime @"+b.toFixed(3)),C=b),this.state=j.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=C,this.tick()}else this._forceStartLoad=!0,this.state=j.State.STOPPED},S.stopLoad=function(){this._forceStartLoad=!1,I.prototype.stopLoad.call(this)},S.doTick=function(){switch(this.state){case j.State.IDLE:this.doTickIdle();break;case j.State.WAITING_LEVEL:{var C,b=this.levels,E=this.level,O=b==null||((C=b[E])===null||C===void 0)?void 0:C.details;if(O&&(!O.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(O))break;this.state=j.State.IDLE;break}break}case j.State.FRAG_LOADING_WAITING_RETRY:{var x,k=self.performance.now(),Z=this.retryDate;(!Z||k>=Z||(x=this.media)!==null&&x!==void 0&&x.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=j.State.IDLE)}break;default:break}this.onTickEnd()},S.onTickEnd=function(){I.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},S.doTickIdle=function(){var C,b,E=this.hls,O=this.levelLastLoaded,x=this.levels,k=this.media,Z=E.config,G=E.nextLoadLevel;if(O===null||!k&&(this.startFragRequested||!Z.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!x||!x[G])return;var P=x[G];this.level=E.nextLoadLevel=G;var z=P.details;if(!z||this.state===j.State.WAITING_LEVEL||z.live&&this.levelLastLoaded!==G){this.state=j.State.WAITING_LEVEL;return}var Q=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:k,B.PlaylistLevelType.MAIN);if(Q===null)return;var H=Q.len,ne=this.getMaxBufferLength(P.maxBitrate);if(H>=ne)return;if(this._streamEnded(Q,z)){var ce={};this.altAudio&&(ce.type="video"),this.hls.trigger(oe.Events.BUFFER_EOS,ce),this.state=j.State.ENDED;return}var we=Q.end,Ce=this.getNextFragment(we,z);if(this.couldBacktrack&&!this.fragPrevious&&Ce&&Ce.sn!=="initSegment"){var ze=Ce.sn-z.startSN;ze>1&&(Ce=z.fragments[ze-1],this.fragmentTracker.removeFragment(Ce))}if(Ce&&this.fragmentTracker.getState(Ce)===l.FragmentState.OK&&this.nextLoadPosition>we){var Le=this.audioOnly&&!this.altAudio?A.ElementaryStreamTypes.AUDIO:A.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(k,Le,B.PlaylistLevelType.MAIN),Ce=this.getNextFragment(this.nextLoadPosition,z)}if(!Ce)return;Ce.initSegment&&!Ce.initSegment.data&&!this.bitrateTest&&(Ce=Ce.initSegment),((C=Ce.decryptdata)===null||C===void 0?void 0:C.keyFormat)==="identity"&&!((b=Ce.decryptdata)!==null&&b!==void 0&&b.key)?this.loadKey(Ce,z):this.loadFragment(Ce,z,we)},S.loadFragment=function(C,b,E){var O,x=this.fragmentTracker.getState(C);if(this.fragCurrent=C,x===l.FragmentState.BACKTRACKED){var k=this.fragmentTracker.getBacktrackData(C);if(k){this._handleFragmentLoadProgress(k),this._handleFragmentLoadComplete(k);return}else x=l.FragmentState.NOT_LOADED}x===l.FragmentState.NOT_LOADED||x===l.FragmentState.PARTIAL?C.sn==="initSegment"?this._loadInitSegment(C):this.bitrateTest?(C.bitrateTest=!0,this.log("Fragment "+C.sn+" of level "+C.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(C)):(this.startFragRequested=!0,I.prototype.loadFragment.call(this,C,b,E)):x===l.FragmentState.APPENDING?this.reduceMaxBufferLength(C.duration)&&this.fragmentTracker.removeFragment(C):((O=this.media)===null||O===void 0?void 0:O.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},S.getAppendedFrag=function(C){var b=this.fragmentTracker.getAppendedFrag(C,B.PlaylistLevelType.MAIN);return b&&"fragment"in b?b.fragment:b},S.getBufferedFrag=function(C){return this.fragmentTracker.getBufferedFrag(C,B.PlaylistLevelType.MAIN)},S.followingBufferedFrag=function(C){return C?this.getBufferedFrag(C.end+.5):null},S.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},S.nextLevelSwitch=function(){var C=this.levels,b=this.media;if(b!=null&&b.readyState){var E,O=this.getAppendedFrag(b.currentTime);if(O&&O.start>1&&this.flushMainBuffer(0,O.start-1),!b.paused&&C){var x=this.hls.nextLoadLevel,k=C[x],Z=this.fragLastKbps;Z&&this.fragCurrent?E=this.fragCurrent.duration*k.maxBitrate/(1e3*Z)+1:E=0}else E=0;var G=this.getBufferedFrag(b.currentTime+E);if(G){var P=this.followingBufferedFrag(G);if(P){this.abortCurrentFrag();var z=P.maxStartPTS?P.maxStartPTS:P.start,Q=P.duration,H=Math.max(G.end,z+Math.min(Math.max(Q-this.config.maxFragLookUpTolerance,Q*.5),Q*.75));this.flushMainBuffer(H,Number.POSITIVE_INFINITY)}}}},S.abortCurrentFrag=function(){var C=this.fragCurrent;this.fragCurrent=null,C!=null&&C.loader&&C.loader.abort(),this.state===j.State.KEY_LOADING&&(this.state=j.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},S.flushMainBuffer=function(C,b){I.prototype.flushMainBuffer.call(this,C,b,this.altAudio?"video":null)},S.onMediaAttached=function(C,b){I.prototype.onMediaAttached.call(this,C,b);var E=b.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),E.addEventListener("playing",this.onvplaying),E.addEventListener("seeked",this.onvseeked),this.gapController=new p.default(this.config,E,this.fragmentTracker,this.hls)},S.onMediaDetaching=function(){var C=this.media;C&&(C.removeEventListener("playing",this.onvplaying),C.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),I.prototype.onMediaDetaching.call(this)},S.onMediaPlaying=function(){this.tick()},S.onMediaSeeked=function(){var C=this.media,b=C?C.currentTime:null;Object(le.isFiniteNumber)(b)&&this.log("Media seeked to "+b.toFixed(3)),this.tick()},S.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},S.onManifestParsed=function(C,b){var E=!1,O=!1,x;b.levels.forEach(function(k){x=k.audioCodec,x&&(x.indexOf("mp4a.40.2")!==-1&&(E=!0),x.indexOf("mp4a.40.5")!==-1&&(O=!0))}),this.audioCodecSwitch=E&&O&&!Object(W.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=b.levels,this.startFragRequested=!1},S.onLevelLoading=function(C,b){var E=this.levels;if(!E||this.state!==j.State.IDLE)return;var O=E[b.level];(!O.details||O.details.live&&this.levelLastLoaded!==b.level||this.waitForCdnTuneIn(O.details))&&(this.state=j.State.WAITING_LEVEL)},S.onLevelLoaded=function(C,b){var E,O=this.levels,x=b.level,k=b.details,Z=k.totalduration;if(!O){this.warn("Levels were reset while loading level "+x);return}this.log("Level "+x+" loaded ["+k.startSN+","+k.endSN+"], cc ["+k.startCC+", "+k.endCC+"] duration:"+Z);var G=this.fragCurrent;G&&(this.state===j.State.FRAG_LOADING||this.state===j.State.FRAG_LOADING_WAITING_RETRY)&&(G.level!==b.level&&G.loader&&(this.state=j.State.IDLE,G.loader.abort()));var P=O[x],z=0;if(k.live||(E=P.details)!==null&&E!==void 0&&E.live){if(k.fragments[0]||(k.deltaUpdateFailed=!0),k.deltaUpdateFailed)return;z=this.alignPlaylists(k,P.details)}if(P.details=k,this.levelLastLoaded=x,this.hls.trigger(oe.Events.LEVEL_UPDATED,{details:k,level:x}),this.state===j.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(k))return;this.state=j.State.IDLE}this.startFragRequested?k.live&&this.synchronizeToLiveEdge(k):this.setStartPosition(k,z),this.tick()},S._handleFragmentLoadProgress=function(C){var b,E=C.frag,O=C.part,x=C.payload,k=this.levels;if(!k){this.warn("Levels were reset while fragment load was in progress. Fragment "+E.sn+" of level "+E.level+" will not be buffered");return}var Z=k[E.level],G=Z.details;if(!G){this.warn("Dropping fragment "+E.sn+" of level "+E.level+" after level details were reset");return}var P=Z.videoCodec,z=G.PTSKnown||!G.live,Q=(b=E.initSegment)===null||b===void 0?void 0:b.data,H=this._getAudioCodec(Z),ne=this.transmuxer=this.transmuxer||new T.default(this.hls,B.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),ce=O?O.index:-1,we=ce!==-1,Ce=new y.ChunkMetadata(E.level,E.sn,E.stats.chunkCount,x.byteLength,ce,we),ze=this.initPTS[E.cc];ne.push(x,Q,H,P,E,O,G.totalduration,z,Ce,ze)},S.onAudioTrackSwitching=function(C,b){var E=this.altAudio,O=!!b.url,x=b.id;if(!O){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var k=this.fragCurrent;k!=null&&k.loader&&(this.log("Switching to main audio track, cancel main fragment load"),k.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var Z=this.hls;E&&Z.trigger(oe.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),Z.trigger(oe.Events.AUDIO_TRACK_SWITCHED,{id:x})}},S.onAudioTrackSwitched=function(C,b){var E=b.id,O=!!this.hls.audioTracks[E].url;if(O){var x=this.videoBuffer;x&&this.mediaBuffer!==x&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=x)}this.altAudio=O,this.tick()},S.onBufferCreated=function(C,b){var E=b.tracks,O,x,k=!1;for(var Z in E){var G=E[Z];if(G.id==="main"){if(x=Z,O=G,Z==="video"){var P=E[Z];P&&(this.videoBuffer=P.buffer)}}else k=!0}k&&O?(this.log("Alternate track found, use "+x+".buffered to schedule main fragment loading"),this.mediaBuffer=O.buffer):this.mediaBuffer=this.media},S.onFragBuffered=function(C,b){var E=b.frag,O=b.part;if(E&&E.type!==B.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(E)){this.warn("Fragment "+E.sn+(O?" p: "+O.index:"")+" of level "+E.level+" finished buffering, but was aborted. state: "+this.state),this.state===j.State.PARSED&&(this.state=j.State.IDLE);return}var x=O?O.stats:E.stats;this.fragLastKbps=Math.round(8*x.total/(x.buffering.end-x.loading.first)),E.sn!=="initSegment"&&(this.fragPrevious=E),this.fragBufferedComplete(E,O)},S.onError=function(C,b){switch(b.details){case v.ErrorDetails.FRAG_LOAD_ERROR:case v.ErrorDetails.FRAG_LOAD_TIMEOUT:case v.ErrorDetails.KEY_LOAD_ERROR:case v.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(B.PlaylistLevelType.MAIN,b);break;case v.ErrorDetails.LEVEL_LOAD_ERROR:case v.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==j.State.ERROR&&(b.fatal?(this.warn(""+b.details),this.state=j.State.ERROR):!b.levelRetry&&this.state===j.State.WAITING_LEVEL&&(this.state=j.State.IDLE));break;case v.ErrorDetails.BUFFER_FULL_ERROR:if(b.parent==="main"&&(this.state===j.State.PARSING||this.state===j.State.PARSED)){var E=!0,O=this.getFwdBufferInfo(this.media,B.PlaylistLevelType.MAIN);O&&O.len>.5&&(E=!this.reduceMaxBufferLength(O.len)),E&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},S.checkBuffer=function(){var C=this.media,b=this.gapController;if(!C||!b||!C.readyState)return;var E=V.BufferHelper.getBuffered(C);!this.loadedmetadata&&E.length?(this.loadedmetadata=!0,this.seekToStartPos()):b.poll(this.lastCurrentTime),this.lastCurrentTime=C.currentTime},S.onFragLoadEmergencyAborted=function(){this.state=j.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},S.onBufferFlushed=function(C,b){var E=b.type;if(E!==A.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var O=(E===A.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(O,E,B.PlaylistLevelType.MAIN)}},S.onLevelsUpdated=function(C,b){this.levels=b.levels},S.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},S.seekToStartPos=function(){var C=this.media,b=C.currentTime,E=this.startPosition;if(E>=0&&b<E){if(C.seeking){_.logger.log("could not seek to "+E+", already seeking at "+b);return}var O=V.BufferHelper.getBuffered(C),x=O.length?O.start(0):0,k=x-E;k>0&&(k<this.config.maxBufferHole||k<this.config.maxFragLookUpTolerance)&&(_.logger.log("adjusting start position by "+k+" to match buffer start"),E+=k,this.startPosition=E),this.log("seek to target start position "+E+" from current time "+b),C.currentTime=E}},S._getAudioCodec=function(C){var b=this.config.defaultAudioCodec||C.audioCodec;return this.audioCodecSwap&&b&&(this.log("Swapping audio codec"),b.indexOf("mp4a.40.5")!==-1?b="mp4a.40.2":b="mp4a.40.5"),b},S._loadBitrateTestFrag=function(C){var b=this;this._doFragLoad(C).then(function(E){var O=b.hls;if(!E||O.nextLoadLevel||b.fragContextChanged(C))return;b.fragLoadError=0,b.state=j.State.IDLE,b.startFragRequested=!1,b.bitrateTest=!1;var x=C.stats;x.parsing.start=x.parsing.end=x.buffering.start=x.buffering.end=self.performance.now(),O.trigger(oe.Events.FRAG_LOADED,E)})},S._handleTransmuxComplete=function(C){var b,E="main",O=this.hls,x=C.remuxResult,k=C.chunkMeta,Z=this.getCurrentContext(k);if(!Z){this.warn("The loading context changed while buffering fragment "+k.sn+" of level "+k.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(k.level);return}var G=Z.frag,P=Z.part,z=Z.level,Q=x.video,H=x.text,ne=x.id3,ce=x.initSegment,we=this.altAudio?void 0:x.audio;if(this.fragContextChanged(G))return;if(this.state=j.State.PARSING,ce){ce.tracks&&(this._bufferInitSegment(z,ce.tracks,G,k),O.trigger(oe.Events.FRAG_PARSING_INIT_SEGMENT,{frag:G,id:E,tracks:ce.tracks}));var Ce=ce.initPTS,ze=ce.timescale;Object(le.isFiniteNumber)(Ce)&&(this.initPTS[G.cc]=Ce,O.trigger(oe.Events.INIT_PTS_FOUND,{frag:G,id:E,initPTS:Ce,timescale:ze}))}if(Q&&x.independent!==!1){if(z.details){var Le=Q.startPTS,We=Q.endPTS,Ve=Q.startDTS,$e=Q.endDTS;if(P)P.elementaryStreams[Q.type]={startPTS:Le,endPTS:We,startDTS:Ve,endDTS:$e};else if(Q.firstKeyFrame&&Q.independent&&(this.couldBacktrack=!0),Q.dropped&&Q.independent){var Pe=this.getLoadPosition()+this.config.maxBufferHole;if(Pe<Le){this.backtrack(G);return}G.setElementaryStreamInfo(Q.type,G.start,We,G.start,$e,!0)}G.setElementaryStreamInfo(Q.type,Le,We,Ve,$e),this.bufferFragmentData(Q,G,P,k)}}else if(x.independent===!1){this.backtrack(G);return}if(we){var se=we.startPTS,w=we.endPTS,F=we.startDTS,Y=we.endDTS;P&&(P.elementaryStreams[A.ElementaryStreamTypes.AUDIO]={startPTS:se,endPTS:w,startDTS:F,endDTS:Y}),G.setElementaryStreamInfo(A.ElementaryStreamTypes.AUDIO,se,w,F,Y),this.bufferFragmentData(we,G,P,k)}if(ne!=null&&(b=ne.samples)!==null&&b!==void 0&&b.length){var ue={frag:G,id:E,samples:ne.samples};O.trigger(oe.Events.FRAG_PARSING_METADATA,ue)}if(H){var q={frag:G,id:E,samples:H.samples};O.trigger(oe.Events.FRAG_PARSING_USERDATA,q)}},S._bufferInitSegment=function(C,b,E,O){var x=this;if(this.state!==j.State.PARSING)return;this.audioOnly=!!b.audio&&!b.video,this.altAudio&&!this.audioOnly&&delete b.audio;var k=b.audio,Z=b.video,G=b.audiovideo;if(k){var P=C.audioCodec,z=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(P&&(P.indexOf("mp4a.40.5")!==-1?P="mp4a.40.2":P="mp4a.40.5"),k.metadata.channelCount!==1&&z.indexOf("firefox")===-1&&(P="mp4a.40.5")),z.indexOf("android")!==-1&&k.container!=="audio/mpeg"&&(P="mp4a.40.2",this.log("Android: force audio codec to "+P)),C.audioCodec&&C.audioCodec!==P&&this.log('Swapping manifest audio codec "'+C.audioCodec+'" for "'+P+'"'),k.levelCodec=P,k.id="main",this.log("Init audio buffer, container:"+k.container+", codecs[selected/level/parsed]=["+(P||"")+"/"+(C.audioCodec||"")+"/"+k.codec+"]")}Z&&(Z.levelCodec=C.videoCodec,Z.id="main",this.log("Init video buffer, container:"+Z.container+", codecs[level/parsed]=["+(C.videoCodec||"")+"/"+Z.codec+"]")),G&&this.log("Init audiovideo buffer, container:"+G.container+", codecs[level/parsed]=["+(C.attrs.CODECS||"")+"/"+G.codec+"]"),this.hls.trigger(oe.Events.BUFFER_CODECS,b),Object.keys(b).forEach(function(Q){var H=b[Q],ne=H.initSegment;ne!=null&&ne.byteLength&&x.hls.trigger(oe.Events.BUFFER_APPENDING,{type:Q,data:ne,frag:E,part:null,chunkMeta:O,parent:E.type})}),this.tick()},S.backtrack=function(C){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(C);var b=this.fragmentTracker.backtrack(C);this.fragPrevious=null,this.nextLoadPosition=C.start,b?this.resetFragmentLoading(C):this.state=j.State.BACKTRACKING},S.checkFragmentChanged=function(){var C=this.media,b=null;if(C&&C.readyState>1&&C.seeking===!1){var E=C.currentTime;if(V.BufferHelper.isBuffered(C,E)?b=this.getAppendedFrag(E):V.BufferHelper.isBuffered(C,E+.1)&&(b=this.getAppendedFrag(E+.1)),b){var O=this.fragPlaying,x=b.level;(!O||b.sn!==O.sn||O.level!==x||b.urlId!==O.urlId)&&(this.hls.trigger(oe.Events.FRAG_CHANGED,{frag:b}),(!O||O.level!==x)&&this.hls.trigger(oe.Events.LEVEL_SWITCHED,{level:x}),this.fragPlaying=b)}}},h(N,[{key:"nextLevel",get:function(){var C=this.nextBufferedFrag;return C?C.level:-1}},{key:"currentLevel",get:function(){var C=this.media;if(C){var b=this.getAppendedFrag(C.currentTime);if(b)return b.level}return-1}},{key:"nextBufferedFrag",get:function(){var C=this.media;if(C){var b=this.getAppendedFrag(C.currentTime);return this.followingBufferedFrag(b)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),N}(j.default)},"./src/controller/subtitle-stream-controller.ts":function(Se,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"),W=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"),B=X("./src/controller/fragment-tracker.ts"),A=X("./src/controller/base-stream-controller.ts"),T=X("./src/types/loader.ts"),y=X("./src/types/level.ts");function p(d,R){for(var D=0;D<R.length;D++){var I=R[D];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(d,I.key,I)}}function v(d,R,D){return R&&p(d.prototype,R),D&&p(d,D),d}function _(d,R){d.prototype=Object.create(R.prototype),d.prototype.constructor=d,g(d,R)}function g(d,R){return g=Object.setPrototypeOf||function(I,N){return I.__proto__=N,I},g(d,R)}var h=500,c=function(d){_(R,d);function R(I,N){var S;return S=d.call(this,I,N,"[subtitle-stream-controller]")||this,S.levels=[],S.currentTrackId=-1,S.tracksBuffered=[],S.mainDetails=null,S._registerListeners(),S}var D=R.prototype;return D.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},D._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)},D._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)},D.startLoad=function(){this.stopLoad(),this.state=A.State.IDLE,this.setInterval(h),this.tick()},D.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},D.onLevelLoaded=function(N,S){this.mainDetails=S.details},D.onSubtitleFragProcessed=function(N,S){var L=S.frag,C=S.success;if(this.fragPrevious=L,this.state=A.State.IDLE,!C)return;var b=this.tracksBuffered[this.currentTrackId];if(!b)return;for(var E,O=L.start,x=0;x<b.length;x++)if(O>=b[x].start&&O<=b[x].end){E=b[x];break}var k=L.start+L.duration;E?E.end=k:(E={start:O,end:k},b.push(E)),this.fragmentTracker.fragBuffered(L)},D.onBufferFlushing=function(N,S){var L=S.startOffset,C=S.endOffset;if(L===0&&C!==Number.POSITIVE_INFINITY){var b=this.currentTrackId,E=this.levels;if(!E.length||!E[b]||!E[b].details)return;var O=E[b].details,x=O.targetduration,k=C-x;if(k<=0)return;S.endOffsetSubtitles=Math.max(0,k),this.tracksBuffered.forEach(function(Z){for(var G=0;G<Z.length;){if(Z[G].end<=k){Z.shift();continue}else if(Z[G].start<k)Z[G].start=k;else break;G++}}),this.fragmentTracker.removeFragmentsInRange(L,k,T.PlaylistLevelType.SUBTITLE)}},D.onError=function(N,S){var L,C=S.frag;if(!C||C.type!==T.PlaylistLevelType.SUBTITLE)return;(L=this.fragCurrent)!==null&&L!==void 0&&L.loader&&this.fragCurrent.loader.abort(),this.state=A.State.IDLE},D.onSubtitleTracksUpdated=function(N,S){var L=this,C=S.subtitleTracks;this.tracksBuffered=[],this.levels=C.map(function(b){return new y.Level(b)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(b){L.tracksBuffered[b.id]=[]}),this.mediaBuffer=null},D.onSubtitleTrackSwitch=function(N,S){if(this.currentTrackId=S.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var L=this.levels[this.currentTrackId];L!=null&&L.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,L&&this.setInterval(h)},D.onSubtitleTrackLoaded=function(N,S){var L,C=S.details,b=S.id,E=this.currentTrackId,O=this.levels;if(!O.length)return;var x=O[E];if(b>=O.length||b!==E||!x)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,C.live||(L=x.details)!==null&&L!==void 0&&L.live){var k=this.mainDetails;if(C.deltaUpdateFailed||!k)return;var Z=k.fragments[0];if(!x.details)C.hasProgramDateTime&&k.hasProgramDateTime?Object(V.alignMediaPlaylistByPDT)(C,k):Z&&Object(l.addSliding)(C,Z.start);else{var G=this.alignPlaylists(C,x.details);G===0&&Z&&Object(l.addSliding)(C,Z.start)}}if(x.details=C,this.levelLastLoaded=b,this.tick(),C.live&&!this.fragCurrent&&this.media&&this.state===A.State.IDLE){var P=Object(oe.findFragmentByPTS)(null,C.fragments,this.media.currentTime,0);P||(this.warn("Subtitle playlist not aligned with playback"),x.details=void 0)}},D._handleFragmentLoadComplete=function(N){var S=N.frag,L=N.payload,C=S.decryptdata,b=this.hls;if(this.fragContextChanged(S))return;if(L&&L.byteLength>0&&C&&C.key&&C.iv&&C.method==="AES-128"){var E=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(L),C.key.buffer,C.iv.buffer).then(function(O){var x=performance.now();b.trigger(le.Events.FRAG_DECRYPTED,{frag:S,payload:O,stats:{tstart:E,tdecrypt:x}})})}},D.doTick=function(){if(!this.media){this.state=A.State.IDLE;return}if(this.state===A.State.IDLE){var N,S=this.currentTrackId,L=this.levels;if(!L.length||!L[S]||!L[S].details)return;var C=L[S].details,b=C.targetduration,E=this.config,O=this.media,x=W.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,O.currentTime-b,E.maxBufferHole),k=x.end,Z=x.len,G=this.getMaxBufferLength()+b;if(Z>G)return;console.assert(C,"Subtitle track details are defined on idle subtitle stream controller tick");var P=C.fragments,z=P.length,Q=C.edge,H,ne=this.fragPrevious;if(k<Q){var ce=E.maxFragLookUpTolerance;ne&&C.hasProgramDateTime&&(H=Object(oe.findFragmentByPDT)(P,ne.endProgramDateTime,ce)),H||(H=Object(oe.findFragmentByPTS)(ne,P,k,ce),!H&&ne&&ne.start<P[0].start&&(H=P[0]))}else H=P[z-1];(N=H)!==null&&N!==void 0&&N.encrypted?(j.logger.log("Loading key for "+H.sn),this.state=A.State.KEY_LOADING,this.hls.trigger(le.Events.KEY_LOADING,{frag:H})):H&&this.fragmentTracker.getState(H)===B.FragmentState.NOT_LOADED&&this.loadFragment(H,C,k)}},D.loadFragment=function(N,S,L){this.fragCurrent=N,d.prototype.loadFragment.call(this,N,S,L)},v(R,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),R}(A.default)},"./src/controller/subtitle-track-controller.ts":function(Se,ae,X){"use strict";X.r(ae);var le=X("./src/events.ts"),j=X("./src/utils/texttrack-utils.ts"),W=X("./src/controller/base-playlist-controller.ts"),oe=X("./src/types/loader.ts");function V(p,v){for(var _=0;_<v.length;_++){var g=v[_];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}function l(p,v,_){return v&&V(p.prototype,v),_&&V(p,_),p}function B(p,v){p.prototype=Object.create(v.prototype),p.prototype.constructor=p,A(p,v)}function A(p,v){return A=Object.setPrototypeOf||function(g,h){return g.__proto__=h,g},A(p,v)}var T=function(p){B(v,p);function v(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 _=v.prototype;return _.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,p.prototype.destroy.call(this)},_.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)},_.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)},_.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)},_.pollTrackChange=function(h){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,h)},_.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=y(this.media.textTracks);h.forEach(function(c){Object(j.clearCurrentCues)(c)}),this.subtitleTrack=-1,this.media=null},_.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},_.onManifestParsed=function(h,c){this.tracks=c.subtitleTracks},_.onSubtitleTrackLoaded=function(h,c){var d=c.id,R=c.details,D=this.trackId,I=this.tracksInGroup[D];if(!I){this.warn("Invalid subtitle track id "+d);return}var N=I.details;I.details=c.details,this.log("subtitle track "+d+" loaded ["+R.startSN+"-"+R.endSN+"]"),d===this.trackId&&(this.retryCount=0,this.playlistLoaded(d,c,N))},_.onLevelLoading=function(h,c){this.switchLevel(c.level)},_.onLevelSwitching=function(h,c){this.switchLevel(c.level)},_.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 R=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,D=this.tracks.filter(function(S){return!d||S.groupId===d});this.tracksInGroup=D;var I=this.findTrackId(R==null?void 0:R.name)||this.findTrackId();this.groupId=d;var N={subtitleTracks:D};this.log("Updating subtitle tracks, "+D.length+' track(s) found in "'+d+'" group-id'),this.hls.trigger(le.Events.SUBTITLE_TRACKS_UPDATED,N),I!==-1&&this.setSubtitleTrack(I,R)}},_.findTrackId=function(h){for(var c=this.tracksInGroup,d=0;d<c.length;d++){var R=c[d];if((!this.selectDefaultTrack||R.default)&&(!h||h===R.name))return R.id}return-1},_.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)},_.loadPlaylist=function(h){var c=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(c)){var d=c.id,R=c.groupId,D=c.url;if(h)try{D=h.addDirectives(D)}catch(I){this.warn("Could not construct new URL with HLS Delivery Directives: "+I)}this.log("Loading subtitle playlist for id "+d),this.hls.trigger(le.Events.SUBTITLE_TRACK_LOADING,{url:D,id:d,groupId:R,deliveryDirectives:h||null})}},_.toggleTrackModes=function(h){var c=this,d=this.media,R=this.subtitleDisplay,D=this.trackId;if(!d)return;var I=y(d.textTracks),N=I.filter(function(C){return C.groupId===c.groupId});if(h===-1)[].slice.call(I).forEach(function(C){C.mode="disabled"});else{var S=N[D];S&&(S.mode="disabled")}var L=N[h];L&&(L.mode=R?"showing":"hidden")},_.setSubtitleTrack=function(h,c){var d,R=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=h;return}if(this.trackId!==h&&this.toggleTrackModes(h),this.trackId===h&&(h===-1||(d=R[h])!==null&&d!==void 0&&d.details)||h<-1||h>=R.length)return;this.clearTimer();var D=R[h];if(this.log("Switching to subtitle track "+h),this.trackId=h,D){var I=D.id,N=D.groupId,S=N===void 0?"":N,L=D.name,C=D.type,b=D.url;this.hls.trigger(le.Events.SUBTITLE_TRACK_SWITCH,{id:I,groupId:S,name:L,type:C,url:b});var E=this.switchParams(D.url,c==null?void 0:c.details);this.loadPlaylist(E)}else this.hls.trigger(le.Events.SUBTITLE_TRACK_SWITCH,{id:h})},_.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var h=-1,c=y(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(v,[{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)}}]),v}(W.default);function y(p){for(var v=[],_=0;_<p.length;_++){var g=p[_];g.kind==="subtitles"&&g.label&&v.push(p[_])}return v}ae.default=T},"./src/controller/timeline-controller.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"TimelineController",function(){return y});var le=X("./src/polyfills/number.ts"),j=X("./src/events.ts"),W=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"),B=X("./src/utils/imsc1-ttml-parser.ts"),A=X("./src/types/loader.ts"),T=X("./src/utils/logger.ts"),y=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=_(),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"),R=new oe.default(this,"textTrack2"),D=new oe.default(this,"textTrack3"),I=new oe.default(this,"textTrack4");this.cea608Parser1=new W.default(1,d,R),this.cea608Parser2=new W.default(3,D,I)}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,R,D,I,N){for(var S=!1,L=N.length;L--;){var C=N[L],b=v(C[0],C[1],R,D);if(b>=0&&(C[0]=Math.min(C[0],R),C[1]=Math.max(C[1],D),S=!0,b/(D-R)>.5))return}if(S||N.push([R,D]),this.config.renderTextTracksNatively){var E=this.captionsTracks[d];this.Cues.newCue(E,R,D,I)}else{var O=this.Cues.newCue(null,R,D,I);this.hls.trigger(j.Events.CUES_PARSED,{type:"captions",cues:O,track:d})}},h.onInitPtsFound=function(d,R){var D=this,I=R.frag,N=R.id,S=R.initPTS,L=R.timescale,C=this.unparsedVttFrags;N==="main"&&(this.initPTS[I.cc]=S,this.timescale[I.cc]=L),C.length&&(this.unparsedVttFrags=[],C.forEach(function(b){D.onFragLoaded(j.Events.FRAG_LOADED,b)}))},h.getExistingTrack=function(d){var R=this.media;if(R)for(var D=0;D<R.textTracks.length;D++){var I=R.textTracks[D];if(I[d])return I}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 R=this.captionsProperties,D=this.captionsTracks,I=this.media,N=R[d],S=N.label,L=N.languageCode,C=this.getExistingTrack(d);if(C)D[d]=C,Object(l.clearCurrentCues)(D[d]),Object(l.sendAddTrackEvent)(D[d],I);else{var b=this.createTextTrack("captions",S,L);b&&(b[d]=!0,D[d]=b)}},h.createNonNativeTrack=function(d){if(this.nonNativeCaptionsTracks[d])return;var R=this.captionsProperties[d];if(!R)return;var D=R.label,I={_id:d,label:D,kind:"captions",default:R.media?!!R.media.default:!1,closedCaptions:R.media};this.nonNativeCaptionsTracks[d]=I,this.hls.trigger(j.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[I]})},h.createTextTrack=function(d,R,D){var I=this.media;return I?I.addTextTrack(d,R,D):void 0},h.onMediaAttaching=function(d,R){this.media=R.media,this._cleanTracks()},h.onMediaDetaching=function(){var d=this.captionsTracks;Object.keys(d).forEach(function(R){Object(l.clearCurrentCues)(d[R]),delete d[R]}),this.nonNativeCaptionsTracks={}},h.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=_(),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 R=d.textTracks;if(R)for(var D=0;D<R.length;D++)Object(l.clearCurrentCues)(R[D])},h.onSubtitleTracksUpdated=function(d,R){var D=this;this.textTracks=[];var I=R.subtitleTracks||[],N=I.some(function(b){return b.textCodec===B.IMSC1_CODEC});if(this.config.enableWebVTT||N&&this.config.enableIMSC1){var S=this.tracks&&I&&this.tracks.length===I.length;if(this.tracks=I||[],this.config.renderTextTracksNatively){var L=this.media?this.media.textTracks:[];this.tracks.forEach(function(b,E){var O;if(E<L.length){for(var x=null,k=0;k<L.length;k++)if(p(L[k],b)){x=L[k];break}x&&(O=x)}O?Object(l.clearCurrentCues)(O):(O=D.createTextTrack("subtitles",b.name,b.lang),O&&(O.mode="disabled")),O&&(O.groupId=b.groupId,D.textTracks.push(O))})}else if(!S&&this.tracks&&this.tracks.length){var C=this.tracks.map(function(b){return{label:b.name,kind:b.type.toLowerCase(),default:b.default,subtitleTrack:b}});this.hls.trigger(j.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:C})}}},h.onManifestLoaded=function(d,R){var D=this;this.config.enableCEA708Captions&&R.captions&&R.captions.forEach(function(I){var N=/(?:CC|SERVICE)([1-4])/.exec(I.instreamId);if(!N)return;var S="textTrack"+N[1],L=D.captionsProperties[S];if(!L)return;L.label=I.name,I.lang&&(L.languageCode=I.lang),L.media=I})},h.onFragLoading=function(d,R){var D=this.cea608Parser1,I=this.cea608Parser2,N=this.lastSn,S=this.lastPartIndex;if(!this.enabled||!(D&&I))return;if(R.frag.type===A.PlaylistLevelType.MAIN){var L,C,b=R.frag.sn,E=(L=R==null||((C=R.part)===null||C===void 0)?void 0:C.index)!=null?L:-1;b===N+1||b===N&&E===S+1||(D.reset(),I.reset()),this.lastSn=b,this.lastPartIndex=E}},h.onFragLoaded=function(d,R){var D=R.frag,I=R.payload,N=this.initPTS,S=this.unparsedVttFrags;if(D.type===A.PlaylistLevelType.SUBTITLE)if(I.byteLength){if(!Object(le.isFiniteNumber)(N[D.cc])){S.push(R),N.length&&this.hls.trigger(j.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:D,error:new Error("Missing initial subtitle PTS")});return}var L=D.decryptdata;if(L==null||L.key==null||L.method!=="AES-128"){var C=this.tracks[D.level],b=this.vttCCs;b[D.cc]||(b[D.cc]={start:D.start,prevCC:this.prevCC,new:!0},this.prevCC=D.cc),C&&C.textCodec===B.IMSC1_CODEC?this._parseIMSC1(D,I):this._parseVTTs(D,I,b)}}else this.hls.trigger(j.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:D,error:new Error("Empty subtitle payload")})},h._parseIMSC1=function(d,R){var D=this,I=this.hls;Object(B.parseIMSC1)(R,this.initPTS[d.cc],this.timescale[d.cc],function(N){D._appendCues(N,d.level),I.trigger(j.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:d})},function(N){T.logger.log("Failed to parse IMSC1: "+N),I.trigger(j.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:d,error:N})})},h._parseVTTs=function(d,R,D){var I=this,N=this.hls;Object(V.parseWebVTT)(R,this.initPTS[d.cc],this.timescale[d.cc],D,d.cc,d.start,function(S){I._appendCues(S,d.level),N.trigger(j.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:d})},function(S){I._fallbackToIMSC1(d,R),T.logger.log("Failed to parse VTT cue: "+S),N.trigger(j.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:d,error:S})})},h._fallbackToIMSC1=function(d,R){var D=this,I=this.tracks[d.level];I.textCodec||Object(B.parseIMSC1)(R,this.initPTS[d.cc],this.timescale[d.cc],function(){I.textCodec=B.IMSC1_CODEC,D._parseIMSC1(d,R)},function(){I.textCodec="wvtt"})},h._appendCues=function(d,R){var D=this.hls;if(this.config.renderTextTracksNatively){var I=this.textTracks[R];if(I.mode==="disabled")return;d.forEach(function(L){return Object(l.addCueToTrack)(I,L)})}else{var N=this.tracks[R],S=N.default?"default":"subtitles"+R;D.trigger(j.Events.CUES_PARSED,{type:"subtitles",cues:d,track:S})}},h.onFragDecrypted=function(d,R){var D=R.frag;if(D.type===A.PlaylistLevelType.SUBTITLE){if(!Object(le.isFiniteNumber)(this.initPTS[D.cc])){this.unparsedVttFrags.push(R);return}this.onFragLoaded(j.Events.FRAG_LOADED,R)}},h.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},h.onFragParsingUserdata=function(d,R){var D=this.cea608Parser1,I=this.cea608Parser2;if(!this.enabled||!(D&&I))return;for(var N=0;N<R.samples.length;N++){var S=R.samples[N].bytes;if(S){var L=this.extractCea608Data(S);D.addData(R.samples[N].pts,L[0]),I.addData(R.samples[N].pts,L[1])}}},h.onBufferFlushing=function(d,R){var D=R.startOffset,I=R.endOffset,N=R.endOffsetSubtitles,S=R.type,L=this.media;if(!L||L.currentTime<I)return;if(!S||S==="video"){var C=this.captionsTracks;Object.keys(C).forEach(function(E){return Object(l.removeCuesInRange)(C[E],D,I)})}if(this.config.renderTextTracksNatively&&(D===0&&N!==void 0)){var b=this.textTracks;Object.keys(b).forEach(function(E){return Object(l.removeCuesInRange)(b[E],D,N)})}},h.extractCea608Data=function(d){for(var R=d[0]&31,D=2,I=[[],[]],N=0;N<R;N++){var S=d[D++],L=127&d[D++],C=127&d[D++],b=(4&S)!==0,E=3&S;if(L===0&&C===0)continue;b&&((E===0||E===1)&&(I[E].push(L),I[E].push(C)))}return I},g}();function p(g,h){return g&&g.label===h.name&&!(g.textTrack1||g.textTrack2)}function v(g,h,c,d){return Math.min(h,d)-Math.max(g,c)}function _(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(Se,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 W=j.prototype;return W.decrypt=function(V,l){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},l,V)},j}()},"./src/crypt/aes-decryptor.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"removePadding",function(){return j}),X.d(ae,"default",function(){return W});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 W=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(B){for(var A=new DataView(B),T=new Uint32Array(4),y=0;y<4;y++)T[y]=A.getUint32(y*4);return T},V.initTable=function(){var B=this.sBox,A=this.invSBox,T=this.subMix,y=T[0],p=T[1],v=T[2],_=T[3],g=this.invSubMix,h=g[0],c=g[1],d=g[2],R=g[3],D=new Uint32Array(256),I=0,N=0,S=0;for(S=0;S<256;S++)S<128?D[S]=S<<1:D[S]=S<<1^283;for(S=0;S<256;S++){var L=N^N<<1^N<<2^N<<3^N<<4;L=L>>>8^L&255^99,B[I]=L,A[L]=I;var C=D[I],b=D[C],E=D[b],O=D[L]*257^L*16843008;y[I]=O<<24|O>>>8,p[I]=O<<16|O>>>16,v[I]=O<<8|O>>>24,_[I]=O,O=E*16843009^b*65537^C*257^I*16843008,h[L]=O<<24|O>>>8,c[L]=O<<16|O>>>16,d[L]=O<<8|O>>>24,R[L]=O,I?(I=C^D[D[D[E^C]]],N^=D[D[N]]):I=N=1}},V.expandKey=function(B){for(var A=this.uint8ArrayToUint32Array_(B),T=!0,y=0;y<A.length&&T;)T=A[y]===this.key[y],y++;if(T)return;this.key=A;var p=this.keySize=A.length;if(p!==4&&p!==6&&p!==8)throw new Error("Invalid aes key size="+p);var v=this.ksRows=(p+6+1)*4,_,g,h=this.keySchedule=new Uint32Array(v),c=this.invKeySchedule=new Uint32Array(v),d=this.sBox,R=this.rcon,D=this.invSubMix,I=D[0],N=D[1],S=D[2],L=D[3],C,b;for(_=0;_<v;_++){if(_<p){C=h[_]=A[_];continue}b=C,_%p===0?(b=b<<8|b>>>24,b=d[b>>>24]<<24|d[b>>>16&255]<<16|d[b>>>8&255]<<8|d[b&255],b^=R[_/p|0]<<24):p>6&&_%p===4&&(b=d[b>>>24]<<24|d[b>>>16&255]<<16|d[b>>>8&255]<<8|d[b&255]),h[_]=C=(h[_-p]^b)>>>0}for(g=0;g<v;g++)_=v-g,g&3?b=h[_]:b=h[_-4],g<4||_<=4?c[g]=b:c[g]=I[d[b>>>24]]^N[d[b>>>16&255]]^S[d[b>>>8&255]]^L[d[b&255]],c[g]=c[g]>>>0},V.networkToHostOrderSwap=function(B){return B<<24|(B&65280)<<8|(B&16711680)>>8|B>>>24},V.decrypt=function(B,A,T){for(var y=this.keySize+6,p=this.invKeySchedule,v=this.invSBox,_=this.invSubMix,g=_[0],h=_[1],c=_[2],d=_[3],R=this.uint8ArrayToUint32Array_(T),D=R[0],I=R[1],N=R[2],S=R[3],L=new Int32Array(B),C=new Int32Array(L.length),b,E,O,x,k,Z,G,P,z,Q,H,ne,ce,we,Ce=this.networkToHostOrderSwap;A<L.length;){for(z=Ce(L[A]),Q=Ce(L[A+1]),H=Ce(L[A+2]),ne=Ce(L[A+3]),k=z^p[0],Z=ne^p[1],G=H^p[2],P=Q^p[3],ce=4,we=1;we<y;we++)b=g[k>>>24]^h[Z>>16&255]^c[G>>8&255]^d[P&255]^p[ce],E=g[Z>>>24]^h[G>>16&255]^c[P>>8&255]^d[k&255]^p[ce+1],O=g[G>>>24]^h[P>>16&255]^c[k>>8&255]^d[Z&255]^p[ce+2],x=g[P>>>24]^h[k>>16&255]^c[Z>>8&255]^d[G&255]^p[ce+3],k=b,Z=E,G=O,P=x,ce=ce+4;b=v[k>>>24]<<24^v[Z>>16&255]<<16^v[G>>8&255]<<8^v[P&255]^p[ce],E=v[Z>>>24]<<24^v[G>>16&255]<<16^v[P>>8&255]<<8^v[k&255]^p[ce+1],O=v[G>>>24]<<24^v[P>>16&255]<<16^v[k>>8&255]<<8^v[Z&255]^p[ce+2],x=v[P>>>24]<<24^v[k>>16&255]<<16^v[Z>>8&255]<<8^v[G&255]^p[ce+3],C[A]=Ce(b^D),C[A+1]=Ce(x^I),C[A+2]=Ce(O^N),C[A+3]=Ce(E^S),D=z,I=Q,N=H,S=ne,A=A+4}return C.buffer},oe}()},"./src/crypt/decrypter.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return A});var le=X("./src/crypt/aes-crypto.ts"),j=X("./src/crypt/fast-aes-key.ts"),W=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"),B=16,A=function(){function T(p,v,_){var g=_===void 0?{}:_,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=v,this.removePKCS7Padding=c,c)try{var d=self.crypto;d&&(this.subtle=d.subtle||d.webkitSubtle)}catch(R){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var y=T.prototype;return y.destroy=function(){this.observer=null},y.isSync=function(){return this.config.enableSoftwareAES},y.flush=function(){var v=this.currentResult;if(!v){this.reset();return}var _=new Uint8Array(v);return this.reset(),this.removePKCS7Padding?Object(W.removePadding)(_):_},y.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},y.decrypt=function(v,_,g,h){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(v),_,g);var c=this.flush();c&&h(c.buffer)}else this.webCryptoDecrypt(new Uint8Array(v),_,g).then(h)},y.softwareDecrypt=function(v,_,g){var h=this.currentIV,c=this.currentResult,d=this.remainderData;this.logOnce("JS AES decrypt"),d&&(v=Object(V.appendUint8Array)(d,v),this.remainderData=null);var R=this.getValidChunk(v);if(!R.length)return null;h&&(g=h);var D=this.softwareDecrypter;D||(D=this.softwareDecrypter=new W.default),D.expandKey(_);var I=c;return this.currentResult=D.decrypt(R.buffer,0,g),this.currentIV=Object(l.sliceUint8)(R,-16).buffer,I||null},y.webCryptoDecrypt=function(v,_,g){var h=this,c=this.subtle;return(this.key!==_||!this.fastAesKey)&&(this.key=_,this.fastAesKey=new j.default(c,_)),this.fastAesKey.expandKey().then(function(d){if(!c)return Promise.reject(new Error("web crypto not initialized"));var R=new le.default(c,g);return R.decrypt(v.buffer,d)}).catch(function(d){return h.onWebCryptoError(d,v,_,g)})},y.onWebCryptoError=function(v,_,g,h){return oe.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",v),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(_,g,h)},y.getValidChunk=function(v){var _=v,g=v.length-v.length%B;return g!==v.length&&(_=Object(l.sliceUint8)(v,0,g),this.remainderData=Object(l.sliceUint8)(v,g)),_},y.logOnce=function(v){if(!this.logEnabled)return;oe.logger.log("[decrypter.ts]: "+v),this.logEnabled=!1},T}()},"./src/crypt/fast-aes-key.ts":function(Se,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 W=j.prototype;return W.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},j}()},"./src/demux/aacdemuxer.ts":function(Se,ae,X){"use strict";X.r(ae);var le=X("./src/demux/base-audio-demuxer.ts"),j=X("./src/demux/adts.ts"),W=X("./src/utils/logger.ts"),oe=X("./src/demux/id3.ts");function V(A,T){A.prototype=Object.create(T.prototype),A.prototype.constructor=A,l(A,T)}function l(A,T){return l=Object.setPrototypeOf||function(p,v){return p.__proto__=v,p},l(A,T)}var B=function(A){V(T,A);function T(p,v){var _;return _=A.call(this)||this,_.observer=void 0,_.config=void 0,_.observer=p,_.config=v,_}var y=T.prototype;return y.resetInitSegment=function(v,_,g){A.prototype.resetInitSegment.call(this,v,_,g),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:v,duration:g,inputTimeScale:9e4,dropped:0}},T.probe=function(v){if(!v)return!1;for(var _=oe.getID3Data(v,0)||[],g=_.length,h=v.length;g<h;g++)if(j.probe(v,g))return W.logger.log("ADTS sync word found !"),!0;return!1},y.canParse=function(v,_){return j.canParse(v,_)},y.appendFrame=function(v,_,g){j.initTrackConfig(v,this.observer,_,g,v.manifestCodec);var h=j.appendFrame(v,_,g,this.initPTS,this.frameIndex);if(h&&h.missing===0)return h},T}(le.default);B.minProbeByteLength=9,ae.default=B},"./src/demux/adts.ts":function(Se,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 B}),X.d(ae,"canGetFrameLength",function(){return A}),X.d(ae,"isHeader",function(){return T}),X.d(ae,"canParse",function(){return y}),X.d(ae,"probe",function(){return p}),X.d(ae,"initTrackConfig",function(){return v}),X.d(ae,"getFrameDuration",function(){return _}),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"),W=X("./src/events.ts");function oe(c,d,R,D){var I,N,S,L,C=navigator.userAgent.toLowerCase(),b=D,E=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];I=((d[R+2]&192)>>>6)+1;var O=(d[R+2]&60)>>>2;if(O>E.length-1){c.trigger(W.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+O});return}return S=(d[R+2]&1)<<2,S|=(d[R+3]&192)>>>6,le.logger.log("manifest codec:"+D+", ADTS type:"+I+", samplingIndex:"+O),/firefox/i.test(C)?O>=6?(I=5,L=new Array(4),N=O-3):(I=2,L=new Array(2),N=O):C.indexOf("android")!==-1?(I=2,L=new Array(2),N=O):(I=5,L=new Array(4),D&&(D.indexOf("mp4a.40.29")!==-1||D.indexOf("mp4a.40.5")!==-1)||!D&&O>=6?N=O-3:((D&&D.indexOf("mp4a.40.2")!==-1&&(O>=6&&S===1||/vivaldi/i.test(C))||!D&&S===1)&&(I=2,L=new Array(2)),N=O)),L[0]=I<<3,L[0]|=(O&14)>>1,L[1]|=(O&1)<<7,L[1]|=S<<3,I===5&&(L[1]|=(N&14)>>1,L[2]=(N&1)<<7,L[2]|=2<<2,L[3]=0),{config:L,samplerate:E[O],channelCount:S,codec:"mp4a.40."+I,manifestCodec:b}}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 B(c,d){return(c[d+3]&3)<<11|c[d+4]<<3|(c[d+5]&224)>>>5}function A(c,d){return d+5<c.length}function T(c,d){return d+1<c.length&&V(c,d)}function y(c,d){return A(c,d)&&V(c,d)&&B(c,d)<=c.length-d}function p(c,d){if(T(c,d)){var R=l(c,d);if(d+R>=c.length)return!1;var D=B(c,d);if(D<=R)return!1;var I=d+D;return I===c.length||T(c,I)}return!1}function v(c,d,R,D,I){if(!c.samplerate){var N=oe(d,R,D,I);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 _(c){return 1024*9e4/c}function g(c,d,R,D,I){var N=l(c,d),S=B(c,d);if(S-=N,S>0){var L=R+D*I;return{headerLength:N,frameLength:S,stamp:L}}}function h(c,d,R,D,I){var N=_(c.samplerate),S=g(d,R,D,I,N);if(S){var L=S.frameLength,C=S.headerLength,b=S.stamp,E=C+L,O=Math.max(0,R+E-d.length),x;O?(x=new Uint8Array(E-C),x.set(d.subarray(R+C,d.length),0)):x=d.subarray(R+C,R+E);var k={unit:x,pts:b};return O||c.samples.push(k),{sample:k,length:E,missing:O}}}},"./src/demux/base-audio-demuxer.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"initPTSFn",function(){return B});var le=X("./src/polyfills/number.ts"),j=X("./src/demux/id3.ts"),W=X("./src/demux/dummy-demuxed-track.ts"),oe=X("./src/utils/mp4-tools.ts"),V=X("./src/utils/typed-array.ts"),l=function(){function A(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var T=A.prototype;return T.resetInitSegment=function(p,v,_){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},T.resetTimeStamp=function(){},T.resetContiguity=function(){},T.canParse=function(p,v){return!1},T.appendFrame=function(p,v,_){},T.demux=function(p,v){this.cachedData&&(p=Object(oe.appendUint8Array)(this.cachedData,p),this.cachedData=null);var _=j.getID3Data(p,0),g=_?_.length:0,h,c,d=this._audioTrack,R=this._id3Track,D=_?j.getTimeStamp(_):void 0,I=p.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=B(D,v)),_&&_.length>0&&R.samples.push({pts:this.initPTS,dts:this.initPTS,data:_}),c=this.initPTS;g<I;){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=I}else j.canParse(p,g)?(_=j.getID3Data(p,g),R.samples.push({pts:c,dts:c,data:_}),g+=_.length,h=g):g++;if(g===I&&h!==I){var S=Object(V.sliceUint8)(p,h);this.cachedData?this.cachedData=Object(oe.appendUint8Array)(this.cachedData,S):this.cachedData=S}}return{audioTrack:d,avcTrack:Object(W.dummyTrack)(),id3Track:R,textTrack:Object(W.dummyTrack)()}},T.demuxSampleAes=function(p,v,_){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},T.flush=function(p){var v=this.cachedData;return v&&(this.cachedData=null,this.demux(v,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(W.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(W.dummyTrack)()}},T.destroy=function(){},A}(),B=function(T,y){return Object(le.isFiniteNumber)(T)?T*90:y*9e4};ae.default=l},"./src/demux/chunk-cache.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return le});var le=function(){function W(){this.chunks=[],this.dataLength=0}var oe=W.prototype;return oe.push=function(l){this.chunks.push(l),this.dataLength+=l.length},oe.flush=function(){var l=this.chunks,B=this.dataLength,A;if(l.length)l.length===1?A=l[0]:A=j(l,B);else return new Uint8Array(0);return this.reset(),A},oe.reset=function(){this.chunks.length=0,this.dataLength=0},W}();function j(W,oe){for(var V=new Uint8Array(oe),l=0,B=0;B<W.length;B++){var A=W[B];V.set(A,l),l+=A.length}return V}},"./src/demux/dummy-demuxed-track.ts":function(Se,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(Se,ae,X){"use strict";X.r(ae);var le=X("./src/utils/logger.ts"),j=function(){function W(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=W.prototype;return oe.loadWord=function(){var l=this.data,B=this.bytesAvailable,A=l.byteLength-B,T=new Uint8Array(4),y=Math.min(4,B);if(y===0)throw new Error("no bytes available");T.set(l.subarray(A,A+y)),this.word=new DataView(T.buffer).getUint32(0),this.bitsAvailable=y*8,this.bytesAvailable-=y},oe.skipBits=function(l){var B;this.bitsAvailable>l?(this.word<<=l,this.bitsAvailable-=l):(l-=this.bitsAvailable,B=l>>3,l-=B>>3,this.bytesAvailable-=B,this.loadWord(),this.word<<=l,this.bitsAvailable-=l)},oe.readBits=function(l){var B=Math.min(this.bitsAvailable,l),A=this.word>>>32-B;return l>32&&le.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=B,this.bitsAvailable>0?this.word<<=B:this.bytesAvailable>0&&this.loadWord(),B=l-B,B>0&&this.bitsAvailable?A<<B|this.readBits(B):A},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 B=8,A=8,T,y=0;y<l;y++)A!==0&&(T=this.readEG(),A=(B+T+256)%256),B=A===0?B:A},oe.readSPS=function(){var l=0,B=0,A=0,T=0,y,p,v,_=this.readUByte.bind(this),g=this.readBits.bind(this),h=this.readUEG.bind(this),c=this.readBoolean.bind(this),d=this.skipBits.bind(this),R=this.skipEG.bind(this),D=this.skipUEG.bind(this),I=this.skipScalingList.bind(this);_();var N=_();if(g(5),d(3),_(),D(),N===100||N===110||N===122||N===244||N===44||N===83||N===86||N===118||N===128){var S=h();if(S===3&&d(1),D(),D(),d(1),c())for(p=S!==3?8:12,v=0;v<p;v++)c()&&(v<6?I(16):I(64))}D();var L=h();if(L===0)h();else if(L===1)for(d(1),R(),R(),y=h(),v=0;v<y;v++)R();D(),d(1);var C=h(),b=h(),E=g(1);E===0&&d(1),d(1),c()&&(l=h(),B=h(),A=h(),T=h());var O=[1,1];if(c()&&c()){var x=_();switch(x){case 1:O=[1,1];break;case 2:O=[12,11];break;case 3:O=[10,11];break;case 4:O=[16,11];break;case 5:O=[40,33];break;case 6:O=[24,11];break;case 7:O=[20,11];break;case 8:O=[32,11];break;case 9:O=[80,33];break;case 10:O=[18,11];break;case 11:O=[15,11];break;case 12:O=[64,33];break;case 13:O=[160,99];break;case 14:O=[4,3];break;case 15:O=[3,2];break;case 16:O=[2,1];break;case 255:{O=[_()<<8|_(),_()<<8|_()];break}}}return{width:Math.ceil((C+1)*16-l*2-B*2),height:(2-E)*(b+1)*16-(E?2:4)*(A+T),pixelRatio:O}},oe.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},W}();ae.default=j},"./src/demux/id3.ts":function(Se,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 W}),X.d(ae,"canParse",function(){return V}),X.d(ae,"getTimeStamp",function(){return l}),X.d(ae,"isTimeStampFrame",function(){return B}),X.d(ae,"getID3Frames",function(){return T}),X.d(ae,"decodeFrame",function(){return y}),X.d(ae,"utf8ArrayToStr",function(){return h}),X.d(ae,"testables",function(){return c});var le=function(I,N){return N+10<=I.length&&(I[N]===73&&I[N+1]===68&&I[N+2]===51&&(I[N+3]<255&&I[N+4]<255&&(I[N+6]<128&&I[N+7]<128&&I[N+8]<128&&I[N+9]<128)))},j=function(I,N){return N+10<=I.length&&(I[N]===51&&I[N+1]===68&&I[N+2]===73&&(I[N+3]<255&&I[N+4]<255&&(I[N+6]<128&&I[N+7]<128&&I[N+8]<128&&I[N+9]<128)))},W=function(I,N){for(var S=N,L=0;le(I,N);){L+=10;var C=oe(I,N+6);L+=C,j(I,N+10)&&(L+=10),N+=L}return L>0?I.subarray(S,S+L):void 0},oe=function(I,N){var S=0;return S=(I[N]&127)<<21,S|=(I[N+1]&127)<<14,S|=(I[N+2]&127)<<7,S|=I[N+3]&127,S},V=function(I,N){return le(I,N)&&oe(I,N+6)+10<=I.length-N},l=function(I){for(var N=T(I),S=0;S<N.length;S++){var L=N[S];if(B(L))return g(L)}return},B=function(I){return I&&I.key==="PRIV"&&I.info==="com.apple.streaming.transportStreamTimestamp"},A=function(I){var N=String.fromCharCode(I[0],I[1],I[2],I[3]),S=oe(I,4),L=10;return{type:N,size:S,data:I.subarray(L,L+S)}},T=function(I){for(var N=0,S=[];le(I,N);){var L=oe(I,N+6);N+=10;for(var C=N+L;N+8<C;){var b=A(I.subarray(N)),E=y(b);E&&S.push(E),N+=b.size+10}j(I,N)&&(N+=10)}return S},y=function(I){return I.type==="PRIV"?p(I):I.type[0]==="W"?_(I):v(I)},p=function(I){if(I.size<2)return;var N=h(I.data,!0),S=new Uint8Array(I.data.subarray(N.length+1));return{key:I.type,info:N,data:S.buffer}},v=function(I){if(I.size<2)return;if(I.type==="TXXX"){var N=1,S=h(I.data.subarray(N),!0);N+=S.length+1;var L=h(I.data.subarray(N));return{key:I.type,info:S,data:L}}var C=h(I.data.subarray(1));return{key:I.type,data:C}},_=function(I){if(I.type==="WXXX"){if(I.size<2)return;var N=1,S=h(I.data.subarray(N),!0);N+=S.length+1;var L=h(I.data.subarray(N));return{key:I.type,info:S,data:L}}var C=h(I.data);return{key:I.type,data:C}},g=function(I){if(I.data.byteLength===8){var N=new Uint8Array(I.data),S=N[3]&1,L=(N[4]<<23)+(N[5]<<15)+(N[6]<<7)+N[7];return L/=45,S&&(L+=4772185884e-2),Math.round(L)}return},h=function(I,N){N===void 0&&(N=!1);var S=R();if(S){var L=S.decode(I);if(N){var C=L.indexOf("\0");return C!==-1?L.substring(0,C):L}return L.replace(/\0/g,"")}for(var b=I.length,E,O,x,k="",Z=0;Z<b;){if(E=I[Z++],E===0&&N)return k;if(E===0||E===3)continue;switch(E>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:k+=String.fromCharCode(E);break;case 12:case 13:O=I[Z++],k+=String.fromCharCode((E&31)<<6|O&63);break;case 14:O=I[Z++],x=I[Z++],k+=String.fromCharCode((E&15)<<12|(O&63)<<6|(x&63)<<0);break;default:}}return k},c={decodeTextFrame:v},d;function R(){return!d&&typeof self.TextDecoder!="undefined"&&(d=new self.TextDecoder("utf-8")),d}},"./src/demux/mp3demuxer.ts":function(Se,ae,X){"use strict";X.r(ae);var le=X("./src/demux/base-audio-demuxer.ts"),j=X("./src/demux/id3.ts"),W=X("./src/utils/logger.ts"),oe=X("./src/demux/mpegaudio.ts");function V(A,T){A.prototype=Object.create(T.prototype),A.prototype.constructor=A,l(A,T)}function l(A,T){return l=Object.setPrototypeOf||function(p,v){return p.__proto__=v,p},l(A,T)}var B=function(A){V(T,A);function T(){return A.apply(this,arguments)||this}var y=T.prototype;return y.resetInitSegment=function(v,_,g){A.prototype.resetInitSegment.call(this,v,_,g),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:v,duration:g,inputTimeScale:9e4,dropped:0}},T.probe=function(v){if(!v)return!1;for(var _=j.getID3Data(v,0)||[],g=_.length,h=v.length;g<h;g++)if(oe.probe(v,g))return W.logger.log("MPEG Audio sync word found !"),!0;return!1},y.canParse=function(v,_){return oe.canParse(v,_)},y.appendFrame=function(v,_,g){return this.initPTS===null?void 0:oe.appendFrame(v,_,g,this.initPTS,this.frameIndex)},T}(le.default);B.minProbeByteLength=4,ae.default=B},"./src/demux/mp4demuxer.ts":function(Se,ae,X){"use strict";X.r(ae);var le=X("./src/utils/mp4-tools.ts"),j=X("./src/demux/dummy-demuxed-track.ts"),W=function(){function oe(l,B){this.remainderData=null,this.config=void 0,this.config=B}var V=oe.prototype;return V.resetTimeStamp=function(){},V.resetInitSegment=function(){},V.resetContiguity=function(){},oe.probe=function(B){return Object(le.findBox)({data:B,start:0,end:Math.min(B.length,16384)},["moof"]).length>0},V.demux=function(B){var A=B,T=Object(j.dummyTrack)();if(this.config.progressive){this.remainderData&&(A=Object(le.appendUint8Array)(this.remainderData,B));var y=Object(le.segmentValidRange)(A);this.remainderData=y.remainder,T.samples=y.valid||new Uint8Array}else T.samples=A;return{audioTrack:Object(j.dummyTrack)(),avcTrack:T,id3Track:Object(j.dummyTrack)(),textTrack:Object(j.dummyTrack)()}},V.flush=function(){var B=Object(j.dummyTrack)();return B.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(j.dummyTrack)(),avcTrack:B,id3Track:Object(j.dummyTrack)(),textTrack:Object(j.dummyTrack)()}},V.demuxSampleAes=function(B,A,T){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},V.destroy=function(){},oe}();W.minProbeByteLength=1024,ae.default=W},"./src/demux/mpegaudio.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"appendFrame",function(){return l}),X.d(ae,"parseHeader",function(){return B}),X.d(ae,"isHeaderPattern",function(){return A}),X.d(ae,"isHeader",function(){return T}),X.d(ae,"canParse",function(){return y}),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],W=[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(v,_,g,h,c){if(g+24>_.length)return;var d=B(_,g);if(d&&g+d.frameLength<=_.length){var R=d.samplesPerFrame*9e4/d.sampleRate,D=h+c*R,I={unit:_.subarray(g,g+d.frameLength),pts:D,dts:D};return v.config=[],v.channelCount=d.channelCount,v.samplerate=d.sampleRate,v.samples.push(I),{sample:I,length:d.frameLength,missing:0}}}function B(v,_){var g=v[_+1]>>3&3,h=v[_+1]>>1&3,c=v[_+2]>>4&15,d=v[_+2]>>2&3;if(g!==1&&c!==0&&c!==15&&d!==3){var R=v[_+2]>>1&1,D=v[_+3]>>6,I=g===3?3-h:h===3?3:4,N=j[I*14+c-1]*1e3,S=g===3?0:g===2?1:2,L=W[S*3+d],C=D===3?1:2,b=oe[g][h],E=V[h],O=b*8*E,x=Math.floor(b*N/L+R)*E;if(le===null){var k=navigator.userAgent||"",Z=k.match(/Chrome\/(\d+)/i);le=Z?parseInt(Z[1]):0}var G=!!le&&le<=87;return G&&h===2&&N>=224e3&&D===0&&(v[_+3]=v[_+3]|128),{sampleRate:L,channelCount:C,frameLength:x,samplesPerFrame:O}}}function A(v,_){return v[_]===255&&(v[_+1]&224)===224&&(v[_+1]&6)!==0}function T(v,_){return _+1<v.length&&A(v,_)}function y(v,_){var g=4;return A(v,_)&&g<=v.length-_}function p(v,_){if(_+1<v.length&&A(v,_)){var g=4,h=B(v,_),c=g;h!=null&&h.frameLength&&(c=h.frameLength);var d=_+c;return d===v.length||T(v,d)}return!1}},"./src/demux/sample-aes.ts":function(Se,ae,X){"use strict";X.r(ae);var le=X("./src/crypt/decrypter.ts"),j=X("./src/demux/tsdemuxer.ts"),W=function(){function oe(l,B,A){this.keyData=void 0,this.decrypter=void 0,this.keyData=A,this.decrypter=new le.default(l,B,{removePKCS7Padding:!1})}var V=oe.prototype;return V.decryptBuffer=function(B,A){this.decrypter.decrypt(B,this.keyData.key.buffer,this.keyData.iv.buffer,A)},V.decryptAacSample=function(B,A,T,y){var p=B[A].unit,v=p.subarray(16,p.length-p.length%16),_=v.buffer.slice(v.byteOffset,v.byteOffset+v.length),g=this;this.decryptBuffer(_,function(h){var c=new Uint8Array(h);p.set(c,16),y||g.decryptAacSamples(B,A+1,T)})},V.decryptAacSamples=function(B,A,T){for(;;A++){if(A>=B.length){T();return}if(B[A].unit.length<32)continue;var y=this.decrypter.isSync();if(this.decryptAacSample(B,A,T,y),!y)return}},V.getAvcEncryptedData=function(B){for(var A=Math.floor((B.length-48)/160)*16+16,T=new Int8Array(A),y=0,p=32;p<=B.length-16;p+=160,y+=16)T.set(B.subarray(p,p+16),y);return T},V.getAvcDecryptedUnit=function(B,A){for(var T=new Uint8Array(A),y=0,p=32;p<=B.length-16;p+=160,y+=16)B.set(T.subarray(y,y+16),p);return B},V.decryptAvcSample=function(B,A,T,y,p,v){var _=Object(j.discardEPB)(p.data),g=this.getAvcEncryptedData(_),h=this;this.decryptBuffer(g.buffer,function(c){p.data=h.getAvcDecryptedUnit(_,c),v||h.decryptAvcSamples(B,A,T+1,y)})},V.decryptAvcSamples=function(B,A,T,y){if(B instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;A++,T=0){if(A>=B.length){y();return}for(var p=B[A].units;!(T>=p.length);T++){var v=p[T];if(v.data.length<=48||v.type!==1&&v.type!==5)continue;var _=this.decrypter.isSync();if(this.decryptAvcSample(B,A,T,y,v,_),!_)return}}},oe}();ae.default=W},"./src/demux/transmuxer-interface.ts":function(Se,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),W=X("./src/events.ts"),oe=X("./src/demux/transmuxer.ts"),V=X("./src/utils/logger.ts"),l=X("./src/errors.ts"),B=X("./src/utils/mediasource-helper.ts"),A=X("./node_modules/eventemitter3/index.js"),T=X.n(A),y=Object(B.getMediaSource)()||{isTypeSupported:function(){return!1}},p=function(){function v(g,h,c,d){var R=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 D=g.config,I=function(b,E){E=E||{},E.frag=R.frag,E.id=R.id,g.trigger(b,E)};this.observer=new A.EventEmitter,this.observer.on(W.Events.FRAG_DECRYPTED,I),this.observer.on(W.Events.ERROR,I);var N={mp4:y.isTypeSupported("video/mp4"),mpeg:y.isTypeSupported("audio/mpeg"),mp3:y.isTypeSupported('audio/mp4; codecs="mp3"')},S=navigator.vendor;if(D.enableWorker&&typeof Worker!="undefined"){V.logger.log("demuxing in webworker");var L;try{L=this.worker=le("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),L.addEventListener("message",this.onwmsg),L.onerror=function(C){g.trigger(W.Events.ERROR,{type:l.ErrorTypes.OTHER_ERROR,details:l.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(C.message+" ("+C.filename+":"+C.lineno+")")})},L.postMessage({cmd:"init",typeSupported:N,vendor:S,id:h,config:JSON.stringify(D)})}catch(C){V.logger.warn("Error in worker:",C),V.logger.error("Error while initializing DemuxerWorker, fallback to inline"),L&&self.URL.revokeObjectURL(L.objectURL),this.transmuxer=new oe.default(this.observer,N,D,S,h),this.worker=null}}else this.transmuxer=new oe.default(this.observer,N,D,S,h)}var _=v.prototype;return _.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},_.push=function(h,c,d,R,D,I,N,S,L,C){var b=this;L.transmuxing.start=self.performance.now();var E=this.transmuxer,O=this.worker,x=I?I.start:D.start,k=D.decryptdata,Z=this.frag,G=!(Z&&D.cc===Z.cc),P=!(Z&&L.level===Z.level),z=Z?L.sn-Z.sn:-1,Q=this.part?L.part-this.part.index:1,H=!P&&(z===1||z===0&&Q===1),ne=self.performance.now();(P||z||D.stats.parsing.start===0)&&(D.stats.parsing.start=ne),I&&(Q||!H)&&(I.stats.parsing.start=ne);var ce=new oe.TransmuxState(G,H,S,P,x);if(!H||G){V.logger.log("[transmuxer-interface, "+D.type+"]: Starting new transmux session for sn: "+L.sn+" p: "+L.part+" level: "+L.level+" id: "+L.id+`
discontinuity: `+G+`
trackSwitch: `+P+`
contiguous: `+H+`
accurateTimeOffset: `+S+`
timeOffset: `+x);var we=new oe.TransmuxConfig(d,R,c,N,C);this.configureTransmuxer(we)}if(this.frag=D,this.part=I,O)O.postMessage({cmd:"demux",data:h,decryptdata:k,chunkMeta:L,state:ce},h instanceof ArrayBuffer?[h]:[]);else if(E){var Ce=E.push(h,k,L,ce);Object(oe.isPromise)(Ce)?Ce.then(function(ze){b.handleTransmuxComplete(ze)}):this.handleTransmuxComplete(Ce)}},_.flush=function(h){var c=this;h.transmuxing.start=self.performance.now();var d=this.transmuxer,R=this.worker;if(R)R.postMessage({cmd:"flush",chunkMeta:h});else if(d){var D=d.flush(h);Object(oe.isPromise)(D)?D.then(function(I){c.handleFlushResult(I,h)}):this.handleFlushResult(D,h)}},_.handleFlushResult=function(h,c){var d=this;h.forEach(function(R){d.handleTransmuxComplete(R)}),this.onFlush(c)},_.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}}},_.configureTransmuxer=function(h){var c=this.worker,d=this.transmuxer;c?c.postMessage({cmd:"configure",config:h}):d&&d.configure(h)},_.handleTransmuxComplete=function(h){h.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(h)},v}()},"./src/demux/transmuxer-worker.ts":function(Se,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"),W=X("./src/utils/logger.ts"),oe=X("./node_modules/eventemitter3/index.js"),V=X.n(oe);function l(p){var v=new oe.EventEmitter,_=function(h,c){p.postMessage({event:h,data:c})};v.on(j.Events.FRAG_DECRYPTED,_),v.on(j.Events.ERROR,_),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(v,h.typeSupported,c,h.vendor,h.id),Object(W.enableLogs)(c.debug),_("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(I){B(p,I)}):B(p,d);break}case"flush":{var R=h.chunkMeta,D=p.transmuxer.flush(R);Object(le.isPromise)(D)?D.then(function(I){T(p,I,R)}):T(p,D,R);break}default:break}})}function B(p,v){if(y(v.remuxResult))return;var _=[],g=v.remuxResult,h=g.audio,c=g.video;h&&A(_,h),c&&A(_,c),p.postMessage({event:"transmuxComplete",data:v},_)}function A(p,v){v.data1&&p.push(v.data1.buffer),v.data2&&p.push(v.data2.buffer)}function T(p,v,_){v.forEach(function(g){B(p,g)}),p.postMessage({event:"flush",data:_})}function y(p){return!p.audio&&!p.video&&!p.text&&!p.id3&&!p.initSegment}},"./src/demux/transmuxer.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return c}),X.d(ae,"isPromise",function(){return D}),X.d(ae,"TransmuxConfig",function(){return I}),X.d(ae,"TransmuxState",function(){return N});var le=X("./src/events.ts"),j=X("./src/errors.ts"),W=X("./src/crypt/decrypter.ts"),oe=X("./src/demux/aacdemuxer.ts"),V=X("./src/demux/mp4demuxer.ts"),l=X("./src/demux/tsdemuxer.ts"),B=X("./src/demux/mp3demuxer.ts"),A=X("./src/remux/mp4-remuxer.ts"),T=X("./src/remux/passthrough-remuxer.ts"),y=X("./src/demux/chunk-cache.ts"),p=X("./src/utils/mp4-tools.ts"),v=X("./src/utils/logger.ts"),_;try{_=self.performance.now.bind(self.performance)}catch(S){v.logger.debug("Unable to use Performance API on this environment"),_=self.Date.now}var g=[{demux:l.default,remux:A.default},{demux:V.default,remux:T.default},{demux:oe.default,remux:A.default},{demux:B.default,remux:A.default}],h=1024;g.forEach(function(S){var L=S.demux;h=Math.max(h,L.minProbeByteLength)});var c=function(){function S(C,b,E,O,x){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 y.default,this.observer=C,this.typeSupported=b,this.config=E,this.vendor=O,this.id=x}var L=S.prototype;return L.configure=function(b){this.transmuxConfig=b,this.decrypter&&this.decrypter.reset()},L.push=function(b,E,O,x){var k=this,Z=O.transmuxing;Z.executeStart=_();var G=new Uint8Array(b),P=this.cache,z=this.config,Q=this.currentTransmuxState,H=this.transmuxConfig;x&&(this.currentTransmuxState=x);var ne=d(G,E);if(ne&&ne.method==="AES-128"){var ce=this.getDecrypter();if(z.enableSoftwareAES){var we=ce.softwareDecrypt(G,ne.key.buffer,ne.iv.buffer);if(!we)return Z.executeEnd=_(),R(O);G=new Uint8Array(we)}else return this.decryptionPromise=ce.webCryptoDecrypt(G,ne.key.buffer,ne.iv.buffer).then(function(Be){var it=k.push(Be,null,O);return k.decryptionPromise=null,it}),this.decryptionPromise}var Ce=x||Q,ze=Ce.contiguous,Le=Ce.discontinuity,We=Ce.trackSwitch,Ve=Ce.accurateTimeOffset,$e=Ce.timeOffset,Pe=H.audioCodec,se=H.videoCodec,w=H.defaultInitPts,F=H.duration,Y=H.initSegmentData;if((Le||We)&&this.resetInitSegment(Y,Pe,se,F),Le&&this.resetInitialTimestamp(w),ze||this.resetContiguity(),this.needsProbing(G,Le,We)){if(P.dataLength){var ue=P.flush();G=Object(p.appendUint8Array)(ue,G)}this.configureTransmuxer(G,H)}var q=this.transmux(G,ne,$e,Ve,O),xe=this.currentTransmuxState;return xe.contiguous=!0,xe.discontinuity=!1,xe.trackSwitch=!1,Z.executeEnd=_(),q},L.flush=function(b){var E=this,O=b.transmuxing;O.executeStart=_();var x=this.decrypter,k=this.cache,Z=this.currentTransmuxState,G=this.decryptionPromise;if(G)return G.then(function(){return E.flush(b)});var P=[],z=Z.timeOffset;if(x){var Q=x.flush();Q&&P.push(this.push(Q,null,b))}var H=k.dataLength;k.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"}),O.executeEnd=_(),[R(b)];var we=ne.flush(z);return D(we)?we.then(function(Ce){return E.flushRemux(P,Ce,b),P}):(this.flushRemux(P,we,b),P)},L.flushRemux=function(b,E,O){var x=E.audioTrack,k=E.avcTrack,Z=E.id3Track,G=E.textTrack,P=this.currentTransmuxState,z=P.accurateTimeOffset,Q=P.timeOffset;v.logger.log("[transmuxer.ts]: Flushed fragment "+O.sn+(O.part>-1?" p: "+O.part:"")+" of level "+O.level);var H=this.remuxer.remux(x,k,Z,G,Q,z,!0,this.id);b.push({remuxResult:H,chunkMeta:O}),O.transmuxing.executeEnd=_()},L.resetInitialTimestamp=function(b){var E=this.demuxer,O=this.remuxer;if(!E||!O)return;E.resetTimeStamp(b),O.resetTimeStamp(b)},L.resetContiguity=function(){var b=this.demuxer,E=this.remuxer;if(!b||!E)return;b.resetContiguity(),E.resetNextTimestamp()},L.resetInitSegment=function(b,E,O,x){var k=this.demuxer,Z=this.remuxer;if(!k||!Z)return;k.resetInitSegment(E,O,x),Z.resetInitSegment(b,E,O)},L.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},L.transmux=function(b,E,O,x,k){var Z;return E&&E.method==="SAMPLE-AES"?Z=this.transmuxSampleAes(b,E,O,x,k):Z=this.transmuxUnencrypted(b,O,x,k),Z},L.transmuxUnencrypted=function(b,E,O,x){var k=this.demuxer.demux(b,E,!1,!this.config.progressive),Z=k.audioTrack,G=k.avcTrack,P=k.id3Track,z=k.textTrack,Q=this.remuxer.remux(Z,G,P,z,E,O,!1,this.id);return{remuxResult:Q,chunkMeta:x}},L.transmuxSampleAes=function(b,E,O,x,k){var Z=this;return this.demuxer.demuxSampleAes(b,E,O).then(function(G){var P=Z.remuxer.remux(G.audioTrack,G.avcTrack,G.id3Track,G.textTrack,O,x,!1,Z.id);return{remuxResult:P,chunkMeta:k}})},L.configureTransmuxer=function(b,E){for(var O=this.config,x=this.observer,k=this.typeSupported,Z=this.vendor,G=E.audioCodec,P=E.defaultInitPts,z=E.duration,Q=E.initSegmentData,H=E.videoCodec,ne,ce=0,we=g.length;ce<we;ce++)if(g[ce].demux.probe(b)){ne=g[ce];break}ne||(v.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),ne={demux:V.default,remux:T.default});var Ce=this.demuxer,ze=this.remuxer,Le=ne.remux,We=ne.demux;(!ze||!(ze instanceof Le))&&(this.remuxer=new Le(x,O,k,Z)),(!Ce||!(Ce instanceof We))&&(this.demuxer=new We(x,O,k),this.probe=We.probe),this.resetInitSegment(Q,G,H,z),this.resetInitialTimestamp(P)},L.needsProbing=function(b,E,O){return!this.demuxer||!this.remuxer||E||O},L.getDecrypter=function(){var b=this.decrypter;return b||(b=this.decrypter=new W.default(this.observer,this.config)),b},S}();function d(S,L){var C=null;return S.byteLength>0&&L!=null&&L.key!=null&&L.iv!==null&&L.method!=null&&(C=L),C}var R=function(L){return{remuxResult:{},chunkMeta:L}};function D(S){return"then"in S&&S.then instanceof Function}var I=function(L,C,b,E,O){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=L,this.videoCodec=C,this.initSegmentData=b,this.duration=E,this.defaultInitPts=O},N=function(L,C,b,E,O){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=L,this.contiguous=C,this.accurateTimeOffset=b,this.trackSwitch=E,this.timeOffset=O}},"./src/demux/tsdemuxer.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"discardEPB",function(){return R});var le=X("./src/demux/adts.ts"),j=X("./src/demux/mpegaudio.ts"),W=X("./src/demux/exp-golomb.ts"),oe=X("./src/demux/id3.ts"),V=X("./src/demux/sample-aes.ts"),l=X("./src/events.ts"),B=X("./src/utils/mp4-tools.ts"),A=X("./src/utils/logger.ts"),T=X("./src/errors.ts"),y={video:1,audio:2,id3:3,text:4},p=function(){function D(N,S,L){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=S,this.typeSupported=L}D.probe=function(S){var L=D.syncOffset(S);return L<0?!1:(L&&A.logger.warn("MPEG2-TS detected but first sync word found @ offset "+L+", junk ahead ?"),!0)},D.syncOffset=function(S){for(var L=Math.min(1e3,S.length-3*188),C=0;C<L;){if(S[C]===71&&S[C+188]===71&&S[C+2*188]===71)return C;C++}return-1},D.createTrack=function(S,L){return{container:S==="video"||S==="audio"?"video/mp2t":void 0,type:S,id:y[S],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:S==="audio"?L:void 0}};var I=D.prototype;return I.resetInitSegment=function(S,L,C){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=D.createTrack("video",C),this._audioTrack=D.createTrack("audio",C),this._id3Track=D.createTrack("id3",C),this._txtTrack=D.createTrack("text",C),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=S,this.videoCodec=L,this._duration=C},I.resetTimeStamp=function(){},I.resetContiguity=function(){var S=this._audioTrack,L=this._avcTrack,C=this._id3Track;S&&(S.pesData=null),L&&(L.pesData=null),C&&(C.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},I.demux=function(S,L,C,b){C===void 0&&(C=!1),b===void 0&&(b=!1),C||(this.sampleAes=null);var E,O=this._avcTrack,x=this._audioTrack,k=this._id3Track,Z=O.pid,G=O.pesData,P=x.pid,z=k.pid,Q=x.pesData,H=k.pesData,ne=!1,ce=this.pmtParsed,we=this._pmtId,Ce=S.length;if(this.remainderData&&(S=Object(B.appendUint8Array)(this.remainderData,S),Ce=S.length,this.remainderData=null),Ce<188&&!b)return this.remainderData=S,{audioTrack:x,avcTrack:O,id3Track:k,textTrack:this._txtTrack};var ze=Math.max(0,D.syncOffset(S));Ce-=(Ce+ze)%188,Ce<S.byteLength&&!b&&(this.remainderData=new Uint8Array(S.buffer,Ce,S.buffer.byteLength-Ce));for(var Le=ze;Le<Ce;Le+=188)if(S[Le]===71){var We=!!(S[Le+1]&64),Ve=((S[Le+1]&31)<<8)+S[Le+2],$e=(S[Le+3]&48)>>4,Pe=void 0;if($e>1){if(Pe=Le+5+S[Le+4],Pe===Le+188)continue}else Pe=Le+4;switch(Ve){case Z:We&&(G&&(E=h(G))&&this.parseAVCPES(E,!1),G={data:[],size:0}),G&&(G.data.push(S.subarray(Pe,Le+188)),G.size+=Le+188-Pe);break;case P:We&&(Q&&(E=h(Q))&&(x.isAAC?this.parseAACPES(E):this.parseMPEGPES(E)),Q={data:[],size:0}),Q&&(Q.data.push(S.subarray(Pe,Le+188)),Q.size+=Le+188-Pe);break;case z:We&&(H&&(E=h(H))&&this.parseID3PES(E),H={data:[],size:0}),H&&(H.data.push(S.subarray(Pe,Le+188)),H.size+=Le+188-Pe);break;case 0:We&&(Pe+=S[Pe]+1),we=this._pmtId=_(S,Pe);break;case we:{We&&(Pe+=S[Pe]+1);var se=g(S,Pe,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,C);Z=se.avc,Z>0&&(O.pid=Z),P=se.audio,P>0&&(x.pid=P,x.isAAC=se.isAAC),z=se.id3,z>0&&(k.pid=z),ne&&!ce&&(A.logger.log("reparse from beginning"),ne=!1,Le=ze-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:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});O.pesData=G,x.pesData=Q,k.pesData=H;var w={audioTrack:x,avcTrack:O,id3Track:k,textTrack:this._txtTrack};return b&&this.extractRemainingSamples(w),w},I.flush=function(){var S=this.remainderData;this.remainderData=null;var L;return S?L=this.demux(S,-1,!1,!0):L={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(L),this.sampleAes?this.decrypt(L,this.sampleAes):L},I.extractRemainingSamples=function(S){var L=S.audioTrack,C=S.avcTrack,b=S.id3Track,E=C.pesData,O=L.pesData,x=b.pesData,k;E&&(k=h(E))?(this.parseAVCPES(k,!0),C.pesData=null):C.pesData=E,O&&(k=h(O))?(L.isAAC?this.parseAACPES(k):this.parseMPEGPES(k),L.pesData=null):(O!=null&&O.size&&A.logger.log("last AAC PES packet truncated,might overlap between fragments"),L.pesData=O),x&&(k=h(x))?(this.parseID3PES(k),b.pesData=null):b.pesData=x},I.demuxSampleAes=function(S,L,C){var b=this.demux(S,C,!0,!this.config.progressive),E=this.sampleAes=new V.default(this.observer,this.config,L);return this.decrypt(b,E)},I.decrypt=function(S,L){return new Promise(function(C){var b=S.audioTrack,E=S.avcTrack;b.samples&&b.isAAC?L.decryptAacSamples(b.samples,0,function(){E.samples?L.decryptAvcSamples(E.samples,0,0,function(){C(S)}):C(S)}):E.samples&&L.decryptAvcSamples(E.samples,0,0,function(){C(S)})})},I.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},I.parseAVCPES=function(S,L){var C=this,b=this._avcTrack,E=this.parseAVCNALu(S.data),O=!1,x=this.avcSample,k,Z=!1;S.data=null,x&&E.length&&!b.audFound&&(c(x,b),x=this.avcSample=v(!1,S.pts,S.dts,"")),E.forEach(function(G){switch(G.type){case 1:{k=!0,x||(x=C.avcSample=v(!0,S.pts,S.dts,"")),O&&(x.debug+="NDR "),x.frame=!0;var P=G.data;if(Z&&P.length>4){var z=new W.default(P).readSliceType();(z===2||z===4||z===7||z===9)&&(x.key=!0)}break}case 5:k=!0,x||(x=C.avcSample=v(!0,S.pts,S.dts,"")),O&&(x.debug+="IDR "),x.key=!0,x.frame=!0;break;case 6:{k=!0,O&&x&&(x.debug+="SEI ");var Q=new W.default(R(G.data));Q.readUByte();for(var H=0,ne=0,ce=!1,we=0;!ce&&Q.bytesAvailable>1;){H=0;do we=Q.readUByte(),H+=we;while(we===255);ne=0;do we=Q.readUByte(),ne+=we;while(we===255);if(H===4&&Q.bytesAvailable!==0){ce=!0;var Ce=Q.readUByte();if(Ce===181){var ze=Q.readUShort();if(ze===49){var Le=Q.readUInt();if(Le===1195456820){var We=Q.readUByte();if(We===3){for(var Ve=Q.readUByte(),$e=Q.readUByte(),Pe=31&Ve,se=[Ve,$e],w=0;w<Pe;w++)se.push(Q.readUByte()),se.push(Q.readUByte()),se.push(Q.readUByte());d(C._txtTrack.samples,{type:3,pts:S.pts,bytes:se})}}}}}else if(H===5&&Q.bytesAvailable!==0){if(ce=!0,ne>16){for(var F=[],Y=0;Y<16;Y++)F.push(Q.readUByte().toString(16)),(Y===3||Y===5||Y===7||Y===9)&&F.push("-");for(var ue=ne-16,q=new Uint8Array(ue),xe=0;xe<ue;xe++)q[xe]=Q.readUByte();d(C._txtTrack.samples,{pts:S.pts,payloadType:H,uuid:F.join(""),userData:Object(oe.utf8ArrayToStr)(q),userDataBytes:q})}}else if(ne<Q.bytesAvailable)for(var Be=0;Be<ne;Be++)Q.readUByte()}break}case 7:if(k=!0,Z=!0,O&&x&&(x.debug+="SPS "),!b.sps){var it=new W.default(G.data),be=it.readSPS();b.width=be.width,b.height=be.height,b.pixelRatio=be.pixelRatio,b.sps=[G.data],b.duration=C._duration;for(var Re=G.data.subarray(1,4),je="avc1.",Ye=0;Ye<3;Ye++){var ft=Re[Ye].toString(16);ft.length<2&&(ft="0"+ft),je+=ft}b.codec=je}break;case 8:k=!0,O&&x&&(x.debug+="PPS "),b.pps||(b.pps=[G.data]);break;case 9:k=!1,b.audFound=!0,x&&c(x,b),x=C.avcSample=v(!1,S.pts,S.dts,O?"AUD ":"");break;case 12:k=!1;break;default:k=!1,x&&(x.debug+="unknown NAL "+G.type+" ");break}if(x&&k){var Rt=x.units;Rt.push(G)}}),L&&x&&(c(x,b),this.avcSample=null)},I.getLastNalUnit=function(){var S,L=this.avcSample,C;if(!L||L.units.length===0){var b=this._avcTrack.samples;L=b[b.length-1]}if((S=L)!==null&&S!==void 0&&S.units){var E=L.units;C=E[E.length-1]}return C},I.parseAVCNALu=function(S){var L=S.byteLength,C=this._avcTrack,b=C.naluState||0,E=b,O=[],x=0,k,Z,G,P=-1,z=0;for(b===-1&&(P=0,z=S[0]&31,b=0,x=1);x<L;){if(k=S[x++],!b){b=k?0:1;continue}if(b===1){b=k?0:2;continue}if(!k)b=3;else if(k===1){if(P>=0){var Q={data:S.subarray(P,x-b-1),type:z};O.push(Q)}else{var H=this.getLastNalUnit();if(H&&(E&&x<=4-E&&(H.state&&(H.data=H.data.subarray(0,H.data.byteLength-E))),Z=x-b-1,Z>0)){var ne=new Uint8Array(H.data.byteLength+Z);ne.set(H.data,0),ne.set(S.subarray(0,Z),H.data.byteLength),H.data=ne,H.state=0}}x<L?(G=S[x]&31,P=x,z=G,b=0):b=-1}else b=0}if(P>=0&&b>=0){var ce={data:S.subarray(P,L),type:z,state:b};O.push(ce)}if(O.length===0){var we=this.getLastNalUnit();if(we){var Ce=new Uint8Array(we.data.byteLength+S.byteLength);Ce.set(we.data,0),Ce.set(S,we.data.byteLength),we.data=Ce}}return C.naluState=b,O},I.parseAACPES=function(S){var L=0,C=this._audioTrack,b=this.aacOverFlow,E=S.data;if(b){this.aacOverFlow=null;var O=b.sample.unit.byteLength,x=Math.min(b.missing,O),k=O-x;b.sample.unit.set(E.subarray(0,x),k),C.samples.push(b.sample),L=b.missing}var Z,G;for(Z=L,G=E.length;Z<G-1&&!le.isHeader(E,Z);Z++);if(Z!==L){var P,z;if(Z<G-1?(P="AAC PES did not start with ADTS header,offset:"+Z,z=!1):(P="no ADTS header found in AAC PES",z=!0),A.logger.warn("parsing error:"+P),this.observer.emit(l.Events.ERROR,l.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.FRAG_PARSING_ERROR,fatal:z,reason:P}),z)return}le.initTrackConfig(C,this.observer,E,Z,this.audioCodec);var Q;if(S.pts!==void 0)Q=S.pts;else if(b){var H=le.getFrameDuration(C.samplerate);Q=b.sample.pts+H}else{A.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var ne=0;Z<G;)if(le.isHeader(E,Z)){if(Z+5<G){var ce=le.appendFrame(C,E,Z,Q,ne);if(ce)if(ce.missing)this.aacOverFlow=ce;else{Z+=ce.length,ne++;continue}}break}else Z++},I.parseMPEGPES=function(S){var L=S.data,C=L.length,b=0,E=0,O=S.pts;if(O===void 0){A.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;E<C;)if(j.isHeader(L,E)){var x=j.appendFrame(this._audioTrack,L,E,O,b);if(x)E+=x.length,b++;else break}else E++},I.parseID3PES=function(S){if(S.pts===void 0){A.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(S)},D}();p.minProbeByteLength=188;function v(D,I,N,S){return{key:D,frame:!1,pts:I,dts:N,units:[],debug:S,length:0}}function _(D,I){return(D[I+10]&31)<<8|D[I+11]}function g(D,I,N,S){var L={audio:-1,avc:-1,id3:-1,isAAC:!0},C=(D[I+1]&15)<<8|D[I+2],b=I+3+C-4,E=(D[I+10]&15)<<8|D[I+11];for(I+=12+E;I<b;){var O=(D[I+1]&31)<<8|D[I+2];switch(D[I]){case 207:if(!S){A.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:L.audio===-1&&(L.audio=O);break;case 21:L.id3===-1&&(L.id3=O);break;case 219:if(!S){A.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:L.avc===-1&&(L.avc=O);break;case 3:case 4:N?L.audio===-1&&(L.audio=O,L.isAAC=!1):A.logger.log("MPEG audio found, not supported in this browser");break;case 36:A.logger.warn("Unsupported HEVC stream type found");break;default:break}I+=((D[I+3]&15)<<8|D[I+4])+5}return L}function h(D){var I=0,N,S,L,C,b,E=D.data;if(!D||D.size===0)return null;for(;E[0].length<19&&E.length>1;){var O=new Uint8Array(E[0].length+E[1].length);O.set(E[0]),O.set(E[1],E[0].length),E[0]=O,E.splice(1,1)}N=E[0];var x=(N[0]<<16)+(N[1]<<8)+N[2];if(x===1){if(S=(N[4]<<8)+N[5],S&&S>D.size-6)return null;var k=N[7];k&192&&(C=(N[9]&14)*536870912+(N[10]&255)*4194304+(N[11]&254)*16384+(N[12]&255)*128+(N[13]&254)/2,k&64?(b=(N[14]&14)*536870912+(N[15]&255)*4194304+(N[16]&254)*16384+(N[17]&255)*128+(N[18]&254)/2,C-b>60*9e4&&(A.logger.warn(Math.round((C-b)/9e4)+"s delta between PTS and DTS, align them"),C=b)):b=C),L=N[8];var Z=L+9;if(D.size<=Z)return null;D.size-=Z;for(var G=new Uint8Array(D.size),P=0,z=E.length;P<z;P++){N=E[P];var Q=N.byteLength;if(Z)if(Z>Q){Z-=Q;continue}else N=N.subarray(Z),Q-=Z,Z=0;G.set(N,I),I+=Q}return S&&(S-=L+3),{data:G,pts:C,dts:b,len:S}}return null}function c(D,I){if(D.units.length&&D.frame){if(D.pts===void 0){var N=I.samples,S=N.length;if(S){var L=N[S-1];D.pts=L.pts,D.dts=L.dts}else{I.dropped++;return}}I.samples.push(D)}D.debug.length&&A.logger.log(D.pts+"/"+D.dts+":"+D.debug)}function d(D,I){var N=D.length;if(N>0){if(I.pts>=D[N-1].pts)D.push(I);else for(var S=N-1;S>=0;S--)if(I.pts<D[S].pts){D.splice(S,0,I);break}}else D.push(I)}function R(D){for(var I=D.byteLength,N=[],S=1;S<I-2;)D[S]===0&&D[S+1]===0&&D[S+2]===3?(N.push(S+2),S+=2):S++;if(N.length===0)return D;var L=I-N.length,C=new Uint8Array(L),b=0;for(S=0;S<L;b++,S++)b===N[0]&&(b++,N.shift()),C[S]=D[b];return C}ae.default=p},"./src/errors.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"ErrorTypes",function(){return le}),X.d(ae,"ErrorDetails",function(){return j});var le;(function(W){W.NETWORK_ERROR="networkError",W.MEDIA_ERROR="mediaError",W.KEY_SYSTEM_ERROR="keySystemError",W.MUX_ERROR="muxError",W.OTHER_ERROR="otherError"})(le||(le={}));var j;(function(W){W.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",W.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",W.KEY_SYSTEM_NO_SESSION="keySystemNoSession",W.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",W.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",W.MANIFEST_LOAD_ERROR="manifestLoadError",W.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",W.MANIFEST_PARSING_ERROR="manifestParsingError",W.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",W.LEVEL_EMPTY_ERROR="levelEmptyError",W.LEVEL_LOAD_ERROR="levelLoadError",W.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",W.LEVEL_SWITCH_ERROR="levelSwitchError",W.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",W.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",W.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",W.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",W.FRAG_LOAD_ERROR="fragLoadError",W.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",W.FRAG_DECRYPT_ERROR="fragDecryptError",W.FRAG_PARSING_ERROR="fragParsingError",W.REMUX_ALLOC_ERROR="remuxAllocError",W.KEY_LOAD_ERROR="keyLoadError",W.KEY_LOAD_TIMEOUT="keyLoadTimeOut",W.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",W.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",W.BUFFER_APPEND_ERROR="bufferAppendError",W.BUFFER_APPENDING_ERROR="bufferAppendingError",W.BUFFER_STALLED_ERROR="bufferStalledError",W.BUFFER_FULL_ERROR="bufferFullError",W.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",W.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",W.INTERNAL_EXCEPTION="internalException",W.INTERNAL_ABORTED="aborted",W.UNKNOWN="unknown"})(j||(j={}))},"./src/events.ts":function(Se,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(Se,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return D});var le=X("./node_modules/url-toolkit/src/url-toolkit.js"),j=X.n(le),W=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"),B=X("./src/controller/level-controller.ts"),A=X("./src/controller/fragment-tracker.ts"),T=X("./src/controller/stream-controller.ts"),y=X("./src/is-supported.ts"),p=X("./src/utils/logger.ts"),v=X("./src/config.ts"),_=X("./node_modules/eventemitter3/index.js"),g=X.n(_),h=X("./src/events.ts"),c=X("./src/errors.ts");function d(I,N){for(var S=0;S<N.length;S++){var L=N[S];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(I,L.key,L)}}function R(I,N,S){return N&&d(I.prototype,N),S&&d(I,S),I}var D=function(){I.isSupported=function(){return Object(y.isSupported)()};function I(S){S===void 0&&(S={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new _.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 L=this.config=Object(v.mergeConfig)(I.DefaultConfig,S);this.userConfig=S,Object(p.enableLogs)(L.debug),this._autoLevelCapping=-1,L.progressive&&Object(v.enableStreamingMode)(L);var C=L.abrController,b=L.bufferController,E=L.capLevelController,O=L.fpsController,x=this.abrController=new C(this),k=this.bufferController=new b(this),Z=this.capLevelController=new E(this),G=new O(this),P=new W.default(this),z=new oe.default(this),Q=new V.default(this),H=this.levelController=new B.default(this),ne=new A.FragmentTracker(this),ce=this.streamController=new T.default(this,ne);Z.setStreamController(ce),G.setStreamController(ce);var we=[H,ce];this.networkControllers=we;var Ce=[P,z,x,k,Z,G,Q,ne];this.audioTrackController=this.createController(L.audioTrackController,null,we),this.createController(L.audioStreamController,ne,we),this.subtitleTrackController=this.createController(L.subtitleTrackController,null,we),this.createController(L.subtitleStreamController,ne,we),this.createController(L.timelineController,null,Ce),this.emeController=this.createController(L.emeController,null,Ce),this.cmcdController=this.createController(L.cmcdController,null,Ce),this.latencyController=this.createController(l.default,null,Ce),this.coreComponents=Ce}var N=I.prototype;return N.createController=function(L,C,b){if(L){var E=C?new L(this,C):new L(this);return b&&b.push(E),E}return null},N.on=function(L,C,b){b===void 0&&(b=this),this._emitter.on(L,C,b)},N.once=function(L,C,b){b===void 0&&(b=this),this._emitter.once(L,C,b)},N.removeAllListeners=function(L){this._emitter.removeAllListeners(L)},N.off=function(L,C,b,E){b===void 0&&(b=this),this._emitter.off(L,C,b,E)},N.listeners=function(L){return this._emitter.listeners(L)},N.emit=function(L,C,b){return this._emitter.emit(L,C,b)},N.trigger=function(L,C){if(this.config.debug)return this.emit(L,L,C);try{return this.emit(L,L,C)}catch(b){p.logger.error("An internal error happened while handling event "+L+'. Error message: "'+b.message+'". Here is a stacktrace:',b),this.trigger(h.Events.ERROR,{type:c.ErrorTypes.OTHER_ERROR,details:c.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:L,error:b})}return!1},N.listenerCount=function(L){return this._emitter.listenerCount(L)},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(L){return L.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(L){return L.destroy()}),this.coreComponents.length=0},N.attachMedia=function(L){p.logger.log("attachMedia"),this._media=L,this.trigger(h.Events.MEDIA_ATTACHING,{media:L})},N.detachMedia=function(){p.logger.log("detachMedia"),this.trigger(h.Events.MEDIA_DETACHING,void 0),this._media=null},N.loadSource=function(L){this.stopLoad();var C=this.media,b=this.url,E=this.url=le.buildAbsoluteURL(self.location.href,L,{alwaysNormalize:!0});p.logger.log("loadSource:"+E),C&&b&&b!==E&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(C)),this.trigger(h.Events.MANIFEST_LOADING,{url:L})},N.startLoad=function(L){L===void 0&&(L=-1),p.logger.log("startLoad("+L+")"),this.networkControllers.forEach(function(C){C.startLoad(L)})},N.stopLoad=function(){p.logger.log("stopLoad"),this.networkControllers.forEach(function(L){L.stopLoad()})},N.swapAudioCodec=function(){p.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},N.recoverMediaError=function(){p.logger.log("recoverMediaError");var L=this._media;this.detachMedia(),L&&this.attachMedia(L)},N.removeLevel=function(L,C){C===void 0&&(C=0),this.levelController.removeLevel(L,C)},R(I,[{key:"levels",get:function(){var L=this.levelController.levels;return L||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(L){p.logger.log("set currentLevel:"+L),this.loadLevel=L,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(L){p.logger.log("set nextLevel:"+L),this.levelController.manualLevel=L,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(L){p.logger.log("set loadLevel:"+L),this.levelController.manualLevel=L}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(L){this.levelController.nextLoadLevel=L}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(L){p.logger.log("set firstLevel:"+L),this.levelController.firstLevel=L}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(L){p.logger.log("set startLevel:"+L),L!==-1&&(L=Math.max(L,this.minAutoLevel)),this.levelController.startLevel=L}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(L){var C=!!L;C!==this.config.capLevelToPlayerSize&&(C?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=C)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(L){this._autoLevelCapping!==L&&(p.logger.log("set autoLevelCapping:"+L),this._autoLevelCapping=L)}},{key:"bandwidthEstimate",get:function(){var L=this.abrController.bwEstimator;return L?L.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var L=this.levels,C=this.config.minAutoBitrate;if(!L)return 0;for(var b=L.length,E=0;E<b;E++)if(L[E].maxBitrate>C)return E;return 0}},{key:"maxAutoLevel",get:function(){var L=this.levels,C=this.autoLevelCapping,b;return C===-1&&L&&L.length?b=L.length-1:b=C,b}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(L){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,L)}},{key:"audioTracks",get:function(){var L=this.audioTrackController;return L?L.audioTracks:[]}},{key:"audioTrack",get:function(){var L=this.audioTrackController;return L?L.audioTrack:-1},set:function(L){var C=this.audioTrackController;C&&(C.audioTrack=L)}},{key:"subtitleTracks",get:function(){var L=this.subtitleTrackController;return L?L.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var L=this.subtitleTrackController;return L?L.subtitleTrack:-1},set:function(L){var C=this.subtitleTrackController;C&&(C.subtitleTrack=L)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var L=this.subtitleTrackController;return L?L.subtitleDisplay:!1},set:function(L){var C=this.subtitleTrackController;C&&(C.subtitleDisplay=L)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(L){this.config.lowLatencyMode=L}},{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 I.defaultConfig?I.defaultConfig:v.hlsDefaultConfig},set:function(L){I.defaultConfig=L}}]),I}();D.defaultConfig=void 0},"./src/is-supported.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"isSupported",function(){return W}),X.d(ae,"changeTypeSupported",function(){return oe});var le=X("./src/utils/mediasource-helper.ts");function j(){return self.SourceBuffer||self.WebKitSourceBuffer}function W(){var V=Object(le.getMediaSource)();if(!V)return!1;var l=j(),B=V&&typeof V.isTypeSupported=="function"&&V.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),A=!l||l.prototype&&typeof l.prototype.appendBuffer=="function"&&typeof l.prototype.remove=="function";return!!B&&!!A}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(Se,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return p}),X.d(ae,"LoadError",function(){return _});var le=X("./src/polyfills/number.ts"),j=X("./src/errors.ts");function W(g,h){g.prototype=Object.create(h.prototype),g.prototype.constructor=g,A(g,h)}function oe(g){var h=typeof Map=="function"?new Map:void 0;return oe=function(d){if(d===null||!B(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,R)}function R(){return V(d,arguments,T(this).constructor)}return R.prototype=Object.create(d.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),A(R,d)},oe(g)}function V(g,h,c){return l()?V=Reflect.construct:V=function(R,D,I){var N=[null];N.push.apply(N,D);var S=Function.bind.apply(R,N),L=new S;return I&&A(L,I.prototype),L},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 B(g){return Function.toString.call(g).indexOf("[native code]")!==-1}function A(g,h){return A=Object.setPrototypeOf||function(d,R){return d.__proto__=R,d},A(g,h)}function T(g){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},T(g)}var y=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,R){var D=this,I=d.url;if(!I)return Promise.reject(new _({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:d,networkDetails:null},"Fragment does not have a "+(I?"part list":"url")));this.abort();var N=this.config,S=N.fLoader,L=N.loader;return new Promise(function(C,b){D.loader&&D.loader.destroy();var E=D.loader=d.loader=S?new S(N):new L(N),O=v(d),x={timeout:N.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:N.fragLoadingMaxRetryTimeout,highWaterMark:y};d.stats=E.stats,E.load(O,x,{onSuccess:function(Z,G,P,z){D.resetLoader(d,E),C({frag:d,part:null,payload:Z.data,networkDetails:z})},onError:function(Z,G,P){D.resetLoader(d,E),b(new _({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:d,response:Z,networkDetails:P}))},onAbort:function(Z,G,P){D.resetLoader(d,E),b(new _({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:d,networkDetails:P}))},onTimeout:function(Z,G,P){D.resetLoader(d,E),b(new _({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:d,networkDetails:P}))},onProgress:function(Z,G,P,z){R&&R({frag:d,part:null,payload:P,networkDetails:z})}})})},h.loadPart=function(d,R,D){var I=this;this.abort();var N=this.config,S=N.fLoader,L=N.loader;return new Promise(function(C,b){I.loader&&I.loader.destroy();var E=I.loader=d.loader=S?new S(N):new L(N),O=v(d,R),x={timeout:N.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:N.fragLoadingMaxRetryTimeout,highWaterMark:y};R.stats=E.stats,E.load(O,x,{onSuccess:function(Z,G,P,z){I.resetLoader(d,E),I.updateStatsFromPart(d,R);var Q={frag:d,part:R,payload:Z.data,networkDetails:z};D(Q),C(Q)},onError:function(Z,G,P){I.resetLoader(d,E),b(new _({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:d,part:R,response:Z,networkDetails:P}))},onAbort:function(Z,G,P){d.stats.aborted=R.stats.aborted,I.resetLoader(d,E),b(new _({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:d,part:R,networkDetails:P}))},onTimeout:function(Z,G,P){I.resetLoader(d,E),b(new _({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:d,part:R,networkDetails:P}))}})})},h.updateStatsFromPart=function(d,R){var D=d.stats,I=R.stats,N=I.total;if(D.loaded+=I.loaded,N){var S=Math.round(d.duration/R.duration),L=Math.min(Math.round(D.loaded/N),S),C=S-L,b=C*Math.round(D.loaded/L);D.total=D.loaded+b}else D.total=Math.max(D.loaded,D.total);var E=D.loading,O=I.loading;E.start?E.first+=O.first-O.start:(E.start=O.start,E.first=O.first),E.end=O.end},h.resetLoader=function(d,R){d.loader=null,this.loader===R&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),R.destroy()},g}();function v(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},R=c.byteRangeStartOffset,D=c.byteRangeEndOffset;return Object(le.isFiniteNumber)(R)&&Object(le.isFiniteNumber)(D)&&(d.rangeStart=R,d.rangeEnd=D),d}var _=function(g){W(h,g);function h(c){for(var d,R=arguments.length,D=new Array(R>1?R-1:0),I=1;I<R;I++)D[I-1]=arguments[I];return d=g.call.apply(g,[this].concat(D))||this,d.data=void 0,d.data=c,d}return h}(oe(Error))},"./src/loader/fragment.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"ElementaryStreamTypes",function(){return p}),X.d(ae,"BaseSegment",function(){return v}),X.d(ae,"Fragment",function(){return _}),X.d(ae,"Part",function(){return g});var le=X("./src/polyfills/number.ts"),j=X("./node_modules/url-toolkit/src/url-toolkit.js"),W=X.n(j),oe=X("./src/utils/logger.ts"),V=X("./src/loader/level-key.ts"),l=X("./src/loader/load-stats.ts");function B(h,c){h.prototype=Object.create(c.prototype),h.prototype.constructor=h,A(h,c)}function A(h,c){return A=Object.setPrototypeOf||function(R,D){return R.__proto__=D,R},A(h,c)}function T(h,c){for(var d=0;d<c.length;d++){var R=c[d];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(h,R.key,R)}}function y(h,c,d){return c&&T(h.prototype,c),d&&T(h,d),h}var p;(function(h){h.AUDIO="audio",h.VIDEO="video",h.AUDIOVIDEO="audiovideo"})(p||(p={}));var v=function(){function h(d){var R;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(R={},R[p.AUDIO]=null,R[p.VIDEO]=null,R[p.AUDIOVIDEO]=null,R),this.baseurl=d}var c=h.prototype;return c.setByteRange=function(R,D){var I=R.split("@",2),N=[];I.length===1?N[0]=D?D.byteRangeEndOffset:0:N[0]=parseInt(I[1]),N[1]=parseInt(I[0])+N[0],this._byteRange=N},y(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(R){this._url=R}}]),h}(),_=function(h){B(c,h);function c(R,D){var I;return I=h.call(this,D)||this,I._decryptdata=null,I.rawProgramDateTime=null,I.programDateTime=null,I.tagList=[],I.duration=0,I.sn=0,I.levelkey=void 0,I.type=void 0,I.loader=null,I.level=-1,I.cc=0,I.startPTS=void 0,I.endPTS=void 0,I.appendedPTS=void 0,I.startDTS=void 0,I.endDTS=void 0,I.start=0,I.deltaPTS=void 0,I.maxStartPTS=void 0,I.minEndPTS=void 0,I.stats=new l.LoadStats,I.urlId=0,I.data=void 0,I.bitrateTest=!1,I.title=null,I.initSegment=null,I.type=R,I}var d=c.prototype;return d.createInitializationVector=function(D){for(var I=new Uint8Array(16),N=12;N<16;N++)I[N]=D>>8*(15-N)&255;return I},d.setDecryptDataFromLevelKey=function(D,I){var N=D;return(D==null?void 0:D.method)==="AES-128"&&D.uri&&!D.iv&&(N=V.LevelKey.fromURI(D.uri),N.method=D.method,N.iv=this.createInitializationVector(I),N.keyFormat="identity"),N},d.setElementaryStreamInfo=function(D,I,N,S,L,C){C===void 0&&(C=!1);var b=this.elementaryStreams,E=b[D];if(!E){b[D]={startPTS:I,endPTS:N,startDTS:S,endDTS:L,partial:C};return}E.startPTS=Math.min(E.startPTS,I),E.endPTS=Math.max(E.endPTS,N),E.startDTS=Math.min(E.startDTS,S),E.endDTS=Math.max(E.endDTS,L)},d.clearElementaryStreamInfo=function(){var D=this.elementaryStreams;D[p.AUDIO]=null,D[p.VIDEO]=null,D[p.AUDIOVIDEO]=null},y(c,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var D=this.sn;typeof D!="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'),D=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,D)}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 D=Object(le.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+D*1e3}},{key:"encrypted",get:function(){var D;return!!((D=this.decryptdata)!==null&&D!==void 0&&D.keyFormat&&this.decryptdata.uri)}}]),c}(v),g=function(h){B(c,h);function c(d,R,D,I,N){var S;S=h.call(this,D)||this,S.fragOffset=0,S.duration=0,S.gap=!1,S.independent=!1,S.relurl=void 0,S.fragment=void 0,S.index=void 0,S.stats=new l.LoadStats,S.duration=d.decimalFloatingPoint("DURATION"),S.gap=d.bool("GAP"),S.independent=d.bool("INDEPENDENT"),S.relurl=d.enumeratedString("URI"),S.fragment=R,S.index=I;var L=d.enumeratedString("BYTERANGE");return L&&S.setByteRange(L,N),N&&(S.fragOffset=N.fragOffset+N.duration),S}return y(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 R=this.elementaryStreams;return!!(R.audio||R.video||R.audiovideo)}}]),c}(v)},"./src/loader/key-loader.ts":function(Se,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"),W=X("./src/utils/logger.ts"),oe=function(){function V(B){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=B,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 A in this.loaders){var T=this.loaders[A];T&&T.destroy()}this.loaders={}},l.onKeyLoading=function(A,T){var y=T.frag,p=y.type,v=this.loaders[p];if(!y.decryptdata){W.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var _=y.decryptdata.uri;if(_!==this.decrypturl||this.decryptkey===null){var g=this.hls.config;if(v&&(W.logger.warn("abort previous key loader for type:"+p),v.abort()),!_){W.logger.warn("key uri is falsy");return}var h=g.loader,c=y.loader=this.loaders[p]=new h(g);this.decrypturl=_,this.decryptkey=null;var d={url:_,frag:y,responseType:"arraybuffer"},R={timeout:g.fragLoadingTimeOut,maxRetry:0,retryDelay:g.fragLoadingRetryDelay,maxRetryDelay:g.fragLoadingMaxRetryTimeout,highWaterMark:0},D={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};c.load(d,R,D)}else this.decryptkey&&(y.decryptdata.key=this.decryptkey,this.hls.trigger(le.Events.KEY_LOADED,{frag:y}))},l.loadsuccess=function(A,T,y){var p=y.frag;if(!p.decryptdata){W.logger.error("after key load, decryptdata unset");return}this.decryptkey=p.decryptdata.key=new Uint8Array(A.data),p.loader=null,delete this.loaders[p.type],this.hls.trigger(le.Events.KEY_LOADED,{frag:p})},l.loaderror=function(A,T){var y=T.frag,p=y.loader;p&&p.abort(),delete this.loaders[y.type],this.hls.trigger(le.Events.ERROR,{type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:y,response:A})},l.loadtimeout=function(A,T){var y=T.frag,p=y.loader;p&&p.abort(),delete this.loaders[y.type],this.hls.trigger(le.Events.ERROR,{type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:y})},V}()},"./src/loader/level-details.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"LevelDetails",function(){return V});var le=X("./src/polyfills/number.ts");function j(l,B){for(var A=0;A<B.length;A++){var T=B[A];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(l,T.key,T)}}function W(l,B,A){return B&&j(l.prototype,B),A&&j(l,A),l}var oe=10,V=function(){function l(A){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=A}var B=l.prototype;return B.reloaded=function(T){if(!T){this.advanced=!0,this.updated=!0;return}var y=this.lastPartSn-T.lastPartSn,p=this.lastPartIndex-T.lastPartIndex;this.updated=this.endSN!==T.endSN||!!p||!!y,this.advanced=this.endSN>T.endSN||y>0||y===0&&p>0,this.updated||this.advanced?this.misses=Math.floor(T.misses*.6):this.misses=T.misses+1,this.availabilityDelay=T.availabilityDelay},W(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 T=this.driftEndTime-this.driftStartTime;if(T>0){var y=this.driftEnd-this.driftStart;return y*1e3/T}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var T;return(T=this.partList)!==null&&T!==void 0&&T.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var T;return(T=this.fragments)!==null&&T!==void 0&&T.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 T;return(T=this.partList)!==null&&T!==void 0&&T.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var T;return(T=this.partList)!==null&&T!==void 0&&T.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),l}()},"./src/loader/level-key.ts":function(Se,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 W(l,B){for(var A=0;A<B.length;A++){var T=B[A];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(l,T.key,T)}}function oe(l,B,A){return B&&W(l.prototype,B),A&&W(l,A),l}var V=function(){l.fromURL=function(A,T){return new l(A,T)},l.fromURI=function(A){return new l(A)};function l(B,A){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,A?this._uri=Object(le.buildAbsoluteURL)(B,A,{alwaysNormalize:!0}):this._uri=B}return oe(l,[{key:"uri",get:function(){return this._uri}}]),l}()},"./src/loader/load-stats.ts":function(Se,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(Se,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"),W=X.n(j),oe=X("./src/loader/fragment.ts"),V=X("./src/loader/level-details.ts"),l=X("./src/loader/level-key.ts"),B=X("./src/utils/attr-list.ts"),A=X("./src/utils/logger.ts"),T=X("./src/utils/codecs.ts"),y=/#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,v=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),_=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 S,L;return g.test((S=(L=j.parseURL(N))===null||L===void 0?void 0:L.path)!=null?S:"")}var c=function(){function N(){}return N.findGroup=function(L,C){for(var b=0;b<L.length;b++){var E=L[b];if(E.id===C)return E}},N.convertAVC1ToAVCOTI=function(L){var C=L.split(".");if(C.length>2){var b=C.shift()+".";return b+=parseInt(C.shift()).toString(16),b+=("000"+parseInt(C.shift()).toString(16)).substr(-4),b}return L},N.resolve=function(L,C){return j.buildAbsoluteURL(C,L,{alwaysNormalize:!0})},N.parseMasterPlaylist=function(L,C){var b=[],E={},O=!1;y.lastIndex=0;for(var x;(x=y.exec(L))!=null;)if(x[1]){var k=new B.AttrList(x[1]),Z={attrs:k,bitrate:k.decimalInteger("AVERAGE-BANDWIDTH")||k.decimalInteger("BANDWIDTH"),name:k.NAME,url:N.resolve(x[2],C)},G=k.decimalResolution("RESOLUTION");G&&(Z.width=G.width,Z.height=G.height),d((k.CODECS||"").split(/[ ,]+/).filter(function(z){return z}),Z),Z.videoCodec&&Z.videoCodec.indexOf("avc1")!==-1&&(Z.videoCodec=N.convertAVC1ToAVCOTI(Z.videoCodec)),b.push(Z)}else if(x[3]){var P=new B.AttrList(x[3]);P["DATA-ID"]&&(O=!0,E[P["DATA-ID"]]=P)}return{levels:b,sessionData:O?E:null}},N.parseMasterPlaylistMedia=function(L,C,b,E){E===void 0&&(E=[]);var O,x=[],k=0;for(p.lastIndex=0;(O=p.exec(L))!==null;){var Z=new B.AttrList(O[1]);if(Z.TYPE===b){var G={attrs:Z,bitrate:0,id:k++,groupId:Z["GROUP-ID"],instreamId:Z["INSTREAM-ID"],name:Z.NAME||Z.LANGUAGE||"",type:b,default:Z.bool("DEFAULT"),autoselect:Z.bool("AUTOSELECT"),forced:Z.bool("FORCED"),lang:Z.LANGUAGE,url:Z.URI?N.resolve(Z.URI,C):""};if(E.length){var P=N.findGroup(E,G.groupId)||E[0];R(G,P,"audioCodec"),R(G,P,"textCodec")}x.push(G)}}return x},N.parseLevelPlaylist=function(L,C,b,E,O){var x=new V.LevelDetails(C),k=x.fragments,Z=null,G=0,P=0,z=0,Q=0,H=null,ne=new oe.Fragment(E,C),ce,we,Ce,ze=-1,Le=!1;for(v.lastIndex=0,x.m3u8=L;(ce=v.exec(L))!==null;){Le&&(Le=!1,ne=new oe.Fragment(E,C),ne.start=z,ne.sn=G,ne.cc=Q,ne.level=b,Z&&(ne.initSegment=Z,ne.rawProgramDateTime=Z.rawProgramDateTime));var We=ce[1];if(We){ne.duration=parseFloat(We);var Ve=(" "+ce[2]).slice(1);ne.title=Ve||null,ne.tagList.push(Ve?["INF",We,Ve]:["INF",We])}else if(ce[3])Object(le.isFiniteNumber)(ne.duration)&&(ne.start=z,Ce&&(ne.levelkey=Ce),ne.sn=G,ne.level=b,ne.cc=Q,ne.urlId=O,k.push(ne),ne.relurl=(" "+ce[3]).slice(1),I(ne,H),H=ne,z+=ne.duration,G++,P=0,Le=!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]),ze===-1&&(ze=k.length);else{if(ce=ce[0].match(_),!ce){A.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),w=ce[we+2]?(" "+ce[we+2]).slice(1):"";switch(Pe){case"PLAYLIST-TYPE":x.type=se.toUpperCase();break;case"MEDIA-SEQUENCE":G=x.startSN=parseInt(se);break;case"SKIP":{var F=new B.AttrList(se),Y=F.decimalInteger("SKIPPED-SEGMENTS");if(Object(le.isFiniteNumber)(Y)){x.skippedSegments=Y;for(var ue=Y;ue--;)k.unshift(null);G+=Y}var q=F.enumeratedString("RECENTLY-REMOVED-DATERANGES");q&&(x.recentlyRemovedDateranges=q.split(" "));break}case"TARGETDURATION":x.targetduration=parseFloat(se);break;case"VERSION":x.version=parseInt(se);break;case"EXTM3U":break;case"ENDLIST":x.live=!1;break;case"#":(se||w)&&ne.tagList.push(w?[se,w]:[se]);break;case"DIS":Q++;case"GAP":ne.tagList.push([Pe]);break;case"BITRATE":ne.tagList.push([Pe,se]);break;case"DISCONTINUITY-SEQ":Q=parseInt(se);break;case"KEY":{var xe,Be=new B.AttrList(se),it=Be.enumeratedString("METHOD"),be=Be.URI,Re=Be.hexadecimalInteger("IV"),je=Be.enumeratedString("KEYFORMATVERSIONS"),Ye=Be.enumeratedString("KEYID"),ft=(xe=Be.enumeratedString("KEYFORMAT"))!=null?xe:"identity",Rt=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(Rt.indexOf(ft)>-1){A.logger.warn("Keyformat "+ft+" is not supported from the manifest");continue}else if(ft!=="identity")continue;it&&(Ce=l.LevelKey.fromURL(C,be),be&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(it)>=0&&(Ce.method=it,Ce.keyFormat=ft,Ye&&(Ce.keyID=Ye),je&&(Ce.keyFormatVersions=je),Ce.iv=Re));break}case"START":{var Jt=new B.AttrList(se),Wt=Jt.decimalFloatingPoint("TIME-OFFSET");Object(le.isFiniteNumber)(Wt)&&(x.startTimeOffset=Wt);break}case"MAP":{var Nt=new B.AttrList(se);ne.relurl=Nt.URI,Nt.BYTERANGE&&ne.setByteRange(Nt.BYTERANGE),ne.level=b,ne.sn="initSegment",Ce&&(ne.levelkey=Ce),ne.initSegment=null,Z=ne,Le=!0;break}case"SERVER-CONTROL":{var sn=new B.AttrList(se);x.canBlockReload=sn.bool("CAN-BLOCK-RELOAD"),x.canSkipUntil=sn.optionalFloat("CAN-SKIP-UNTIL",0),x.canSkipDateRanges=x.canSkipUntil>0&&sn.bool("CAN-SKIP-DATERANGES"),x.partHoldBack=sn.optionalFloat("PART-HOLD-BACK",0),x.holdBack=sn.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var an=new B.AttrList(se);x.partTarget=an.decimalFloatingPoint("PART-TARGET");break}case"PART":{var zt=x.partList;zt||(zt=x.partList=[]);var mn=P>0?zt[zt.length-1]:void 0,xn=P++,Te=new oe.Part(new B.AttrList(se),ne,C,xn,mn);zt.push(Te),ne.duration+=Te.duration;break}case"PRELOAD-HINT":{var fe=new B.AttrList(se);x.preloadHint=fe;break}case"RENDITION-REPORT":{var pe=new B.AttrList(se);x.renditionReports=x.renditionReports||[],x.renditionReports.push(pe);break}default:A.logger.warn("line parsed but not handled: "+ce);break}}}H&&!H.relurl?(k.pop(),z-=H.duration,x.partList&&(x.fragmentHint=H)):x.partList&&(I(ne,H),ne.cc=Q,x.fragmentHint=ne);var ve=k.length,Oe=k[0],ge=k[ve-1];if(z+=x.skippedSegments*x.targetduration,z>0&&ve&&ge){x.averagetargetduration=z/ve;var ye=ge.sn;x.endSN=ye!=="initSegment"?ye:0,Oe&&(x.startCC=Oe.cc,Oe.initSegment||x.fragments.every(function(Ie){return Ie.relurl&&h(Ie.relurl)})&&(A.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),ne=new oe.Fragment(E,C),ne.relurl=ge.relurl,ne.level=b,ne.sn="initSegment",Oe.initSegment=ne,x.needSidxRanges=!0))}else x.endSN=0,x.startCC=0;return x.fragmentHint&&(z+=x.fragmentHint.duration),x.totalduration=z,x.endCC=Q,ze>0&&D(k,ze),x},N}();function d(N,S){["video","audio","text"].forEach(function(L){var C=N.filter(function(E){return Object(T.isCodecType)(E,L)});if(C.length){var b=C.filter(function(E){return E.lastIndexOf("avc1",0)===0||E.lastIndexOf("mp4a",0)===0});S[L+"Codec"]=b.length>0?b[0]:C[0],N=N.filter(function(E){return C.indexOf(E)===-1})}}),S.unknownCodecs=N}function R(N,S,L){var C=S[L];C&&(N[L]=C)}function D(N,S){for(var L=N[S],C=S;C--;){var b=N[C];if(!b)return;b.programDateTime=L.programDateTime-b.duration*1e3,L=b}}function I(N,S){N.rawProgramDateTime?N.programDateTime=Date.parse(N.rawProgramDateTime):S!=null&&S.programDateTime&&(N.programDateTime=S.endProgramDateTime),Object(le.isFiniteNumber)(N.programDateTime)||(N.programDateTime=null,N.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(Se,ae,X){"use strict";X.r(ae);var le=X("./src/polyfills/number.ts"),j=X("./src/events.ts"),W=X("./src/errors.ts"),oe=X("./src/utils/logger.ts"),V=X("./src/utils/mp4-tools.ts"),l=X("./src/loader/m3u8-parser.ts"),B=X("./src/types/loader.ts"),A=X("./src/utils/attr-list.ts");function T(v){var _=v.type;switch(_){case B.PlaylistContextType.AUDIO_TRACK:return B.PlaylistLevelType.AUDIO;case B.PlaylistContextType.SUBTITLE_TRACK:return B.PlaylistLevelType.SUBTITLE;default:return B.PlaylistLevelType.MAIN}}function y(v,_){var g=v.url;return(g===void 0||g.indexOf("data:")===0)&&(g=_.url),g}var p=function(){function v(g){this.hls=void 0,this.loaders=Object.create(null),this.hls=g,this.registerListeners()}var _=v.prototype;return _.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)},_.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)},_.createInternalLoader=function(h){var c=this.hls.config,d=c.pLoader,R=c.loader,D=d||R,I=new D(c);return h.loader=I,this.loaders[h.type]=I,I},_.getInternalLoader=function(h){return this.loaders[h.type]},_.resetInternalLoader=function(h){this.loaders[h]&&delete this.loaders[h]},_.destroyInternalLoaders=function(){for(var h in this.loaders){var c=this.loaders[h];c&&c.destroy(),this.resetInternalLoader(h)}},_.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},_.onManifestLoading=function(h,c){var d=c.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:B.PlaylistContextType.MANIFEST,url:d,deliveryDirectives:null})},_.onLevelLoading=function(h,c){var d=c.id,R=c.level,D=c.url,I=c.deliveryDirectives;this.load({id:d,groupId:null,level:R,responseType:"text",type:B.PlaylistContextType.LEVEL,url:D,deliveryDirectives:I})},_.onAudioTrackLoading=function(h,c){var d=c.id,R=c.groupId,D=c.url,I=c.deliveryDirectives;this.load({id:d,groupId:R,level:null,responseType:"text",type:B.PlaylistContextType.AUDIO_TRACK,url:D,deliveryDirectives:I})},_.onSubtitleTrackLoading=function(h,c){var d=c.id,R=c.groupId,D=c.url,I=c.deliveryDirectives;this.load({id:d,groupId:R,level:null,responseType:"text",type:B.PlaylistContextType.SUBTITLE_TRACK,url:D,deliveryDirectives:I})},_.load=function(h){var c,d=this.hls.config,R=this.getInternalLoader(h);if(R){var D=R.context;if(D&&D.url===h.url){oe.logger.trace("[playlist-loader]: playlist request ongoing");return}oe.logger.log("[playlist-loader]: aborting previous loader for type: "+h.type),R.abort()}var I,N,S,L;switch(h.type){case B.PlaylistContextType.MANIFEST:I=d.manifestLoadingMaxRetry,N=d.manifestLoadingTimeOut,S=d.manifestLoadingRetryDelay,L=d.manifestLoadingMaxRetryTimeout;break;case B.PlaylistContextType.LEVEL:case B.PlaylistContextType.AUDIO_TRACK:case B.PlaylistContextType.SUBTITLE_TRACK:I=0,N=d.levelLoadingTimeOut;break;default:I=d.levelLoadingMaxRetry,N=d.levelLoadingTimeOut,S=d.levelLoadingRetryDelay,L=d.levelLoadingMaxRetryTimeout;break}if(R=this.createInternalLoader(h),(c=h.deliveryDirectives)!==null&&c!==void 0&&c.part){var C;if(h.type===B.PlaylistContextType.LEVEL&&h.level!==null?C=this.hls.levels[h.level].details:h.type===B.PlaylistContextType.AUDIO_TRACK&&h.id!==null?C=this.hls.audioTracks[h.id].details:h.type===B.PlaylistContextType.SUBTITLE_TRACK&&h.id!==null&&(C=this.hls.subtitleTracks[h.id].details),C){var b=C.partTarget,E=C.targetduration;b&&E&&(N=Math.min(Math.max(b*3,E*.8)*1e3,N))}}var O={timeout:N,maxRetry:I,retryDelay:S,maxRetryDelay:L,highWaterMark:0},x={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};R.load(h,O,x)},_.loadsuccess=function(h,c,d,R){if(R===void 0&&(R=null),d.isSidxRequest){this.handleSidxRequest(h,d),this.handlePlaylistLoaded(h,c,d,R);return}this.resetInternalLoader(d.type);var D=h.data;if(D.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(h,d,"no EXTM3U delimiter",R);return}c.parsing.start=performance.now(),D.indexOf("#EXTINF:")>0||D.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(h,c,d,R):this.handleMasterPlaylist(h,c,d,R)},_.loaderror=function(h,c,d){d===void 0&&(d=null),this.handleNetworkError(c,d,!1,h)},_.loadtimeout=function(h,c,d){d===void 0&&(d=null),this.handleNetworkError(c,d,!0)},_.handleMasterPlaylist=function(h,c,d,R){var D=this.hls,I=h.data,N=y(h,d),S=l.default.parseMasterPlaylist(I,N),L=S.levels,C=S.sessionData;if(!L.length){this.handleManifestParsingError(h,d,"no level found in manifest",R);return}var b=L.map(function(G){return{id:G.attrs.AUDIO,audioCodec:G.audioCodec}}),E=L.map(function(G){return{id:G.attrs.SUBTITLES,textCodec:G.textCodec}}),O=l.default.parseMasterPlaylistMedia(I,N,"AUDIO",b),x=l.default.parseMasterPlaylistMedia(I,N,"SUBTITLES",E),k=l.default.parseMasterPlaylistMedia(I,N,"CLOSED-CAPTIONS");if(O.length){var Z=O.some(function(G){return!G.url});!Z&&L[0].audioCodec&&!L[0].attrs.AUDIO&&(oe.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),O.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new A.AttrList({}),bitrate:0,url:""}))}D.trigger(j.Events.MANIFEST_LOADED,{levels:L,audioTracks:O,subtitles:x,captions:k,url:N,stats:c,networkDetails:R,sessionData:C})},_.handleTrackOrLevelPlaylist=function(h,c,d,R){var D=this.hls,I=d.id,N=d.level,S=d.type,L=y(h,d),C=Object(le.isFiniteNumber)(I)?I:0,b=Object(le.isFiniteNumber)(N)?N:C,E=T(d),O=l.default.parseLevelPlaylist(h.data,L,b,E,C);if(!O.fragments.length){D.trigger(j.Events.ERROR,{type:W.ErrorTypes.NETWORK_ERROR,details:W.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:L,reason:"no fragments found in level",level:typeof d.level=="number"?d.level:void 0});return}if(S===B.PlaylistContextType.MANIFEST){var x={attrs:new A.AttrList({}),bitrate:0,details:O,name:"",url:L};D.trigger(j.Events.MANIFEST_LOADED,{levels:[x],audioTracks:[],url:L,stats:c,networkDetails:R,sessionData:null})}if(c.parsing.end=performance.now(),O.needSidxRanges){var k,Z=(k=O.fragments[0].initSegment)===null||k===void 0?void 0:k.url;this.load({url:Z,isSidxRequest:!0,type:S,level:N,levelDetails:O,id:I,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}d.levelDetails=O,this.handlePlaylistLoaded(h,c,d,R)},_.handleSidxRequest=function(h,c){var d=Object(V.parseSegmentIndex)(new Uint8Array(h.data));if(!d)return;var R=d.references,D=c.levelDetails;R.forEach(function(I,N){var S=I.info,L=D.fragments[N];L.byteRange.length===0&&L.setByteRange(String(1+S.end-S.start)+"@"+String(S.start)),L.initSegment&&L.initSegment.setByteRange(String(d.moovEndOffset)+"@0")})},_.handleManifestParsingError=function(h,c,d,R){this.hls.trigger(j.Events.ERROR,{type:W.ErrorTypes.NETWORK_ERROR,details:W.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:c.type===B.PlaylistContextType.MANIFEST,url:h.url,reason:d,response:h,context:c,networkDetails:R})},_.handleNetworkError=function(h,c,d,R){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 D=W.ErrorDetails.UNKNOWN,I=!1,N=this.getInternalLoader(h);switch(h.type){case B.PlaylistContextType.MANIFEST:D=d?W.ErrorDetails.MANIFEST_LOAD_TIMEOUT:W.ErrorDetails.MANIFEST_LOAD_ERROR,I=!0;break;case B.PlaylistContextType.LEVEL:D=d?W.ErrorDetails.LEVEL_LOAD_TIMEOUT:W.ErrorDetails.LEVEL_LOAD_ERROR,I=!1;break;case B.PlaylistContextType.AUDIO_TRACK:D=d?W.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:W.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,I=!1;break;case B.PlaylistContextType.SUBTITLE_TRACK:D=d?W.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:W.ErrorDetails.SUBTITLE_LOAD_ERROR,I=!1;break}N&&this.resetInternalLoader(h.type);var S={type:W.ErrorTypes.NETWORK_ERROR,details:D,fatal:I,url:h.url,loader:N,context:h,networkDetails:c};R&&(S.response=R),this.hls.trigger(j.Events.ERROR,S)},_.handlePlaylistLoaded=function(h,c,d,R){var D=d.type,I=d.level,N=d.id,S=d.groupId,L=d.loader,C=d.levelDetails,b=d.deliveryDirectives;if(!(C!=null&&C.targetduration)){this.handleManifestParsingError(h,d,"invalid target duration",R);return}if(!L)return;C.live&&(L.getCacheAge&&(C.ageHeader=L.getCacheAge()||0),(!L.getCacheAge||isNaN(C.ageHeader))&&(C.ageHeader=0));switch(D){case B.PlaylistContextType.MANIFEST:case B.PlaylistContextType.LEVEL:this.hls.trigger(j.Events.LEVEL_LOADED,{details:C,level:I||0,id:N||0,stats:c,networkDetails:R,deliveryDirectives:b});break;case B.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(j.Events.AUDIO_TRACK_LOADED,{details:C,id:N||0,groupId:S||"",stats:c,networkDetails:R,deliveryDirectives:b});break;case B.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(j.Events.SUBTITLE_TRACK_LOADED,{details:C,id:N||0,groupId:S||"",stats:c,networkDetails:R,deliveryDirectives:b});break}},v}();ae.default=p},"./src/polyfills/number.ts":function(Se,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(W){return typeof W=="number"&&isFinite(W)},j=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(Se,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(Se,ae,X){"use strict";X.r(ae);var le=Math.pow(2,32)-1,j=function(){function W(){}return W.init=function(){W.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 W.types)W.types.hasOwnProperty(V)&&(W.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]),B=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]);W.HDLR_TYPES={video:l,audio:B};var A=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),T=new Uint8Array([0,0,0,0,0,0,0,0]);W.STTS=W.STSC=W.STCO=T,W.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),W.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),W.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),W.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var y=new Uint8Array([105,115,111,109]),p=new Uint8Array([97,118,99,49]),v=new Uint8Array([0,0,0,1]);W.FTYP=W.box(W.types.ftyp,y,v,y,p),W.DINF=W.box(W.types.dinf,W.box(W.types.dref,A))},W.box=function(V){for(var l=8,B=arguments.length,A=new Array(B>1?B-1:0),T=1;T<B;T++)A[T-1]=arguments[T];for(var y=A.length,p=y;y--;)l+=A[y].byteLength;var v=new Uint8Array(l);for(v[0]=l>>24&255,v[1]=l>>16&255,v[2]=l>>8&255,v[3]=l&255,v.set(V,4),y=0,l=8;y<p;y++)v.set(A[y],l),l+=A[y].byteLength;return v},W.hdlr=function(V){return W.box(W.types.hdlr,W.HDLR_TYPES[V])},W.mdat=function(V){return W.box(W.types.mdat,V)},W.mdhd=function(V,l){l*=V;var B=Math.floor(l/(le+1)),A=Math.floor(l%(le+1));return W.box(W.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,B>>24,B>>16&255,B>>8&255,B&255,A>>24,A>>16&255,A>>8&255,A&255,85,196,0,0]))},W.mdia=function(V){return W.box(W.types.mdia,W.mdhd(V.timescale,V.duration),W.hdlr(V.type),W.minf(V))},W.mfhd=function(V){return W.box(W.types.mfhd,new Uint8Array([0,0,0,0,V>>24,V>>16&255,V>>8&255,V&255]))},W.minf=function(V){return V.type==="audio"?W.box(W.types.minf,W.box(W.types.smhd,W.SMHD),W.DINF,W.stbl(V)):W.box(W.types.minf,W.box(W.types.vmhd,W.VMHD),W.DINF,W.stbl(V))},W.moof=function(V,l,B){return W.box(W.types.moof,W.mfhd(V),W.traf(B,l))},W.moov=function(V){for(var l=V.length,B=[];l--;)B[l]=W.trak(V[l]);return W.box.apply(null,[W.types.moov,W.mvhd(V[0].timescale,V[0].duration)].concat(B).concat(W.mvex(V)))},W.mvex=function(V){for(var l=V.length,B=[];l--;)B[l]=W.trex(V[l]);return W.box.apply(null,[W.types.mvex].concat(B))},W.mvhd=function(V,l){l*=V;var B=Math.floor(l/(le+1)),A=Math.floor(l%(le+1)),T=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,B>>24,B>>16&255,B>>8&255,B&255,A>>24,A>>16&255,A>>8&255,A&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 W.box(W.types.mvhd,T)},W.sdtp=function(V){var l=V.samples||[],B=new Uint8Array(4+l.length),A,T;for(A=0;A<l.length;A++)T=l[A].flags,B[A+4]=T.dependsOn<<4|T.isDependedOn<<2|T.hasRedundancy;return W.box(W.types.sdtp,B)},W.stbl=function(V){return W.box(W.types.stbl,W.stsd(V),W.box(W.types.stts,W.STTS),W.box(W.types.stsc,W.STSC),W.box(W.types.stsz,W.STSZ),W.box(W.types.stco,W.STCO))},W.avc1=function(V){var l=[],B=[],A,T,y;for(A=0;A<V.sps.length;A++)T=V.sps[A],y=T.byteLength,l.push(y>>>8&255),l.push(y&255),l=l.concat(Array.prototype.slice.call(T));for(A=0;A<V.pps.length;A++)T=V.pps[A],y=T.byteLength,B.push(y>>>8&255),B.push(y&255),B=B.concat(Array.prototype.slice.call(T));var p=W.box(W.types.avcC,new Uint8Array([1,l[3],l[4],l[5],252|3,224|V.sps.length].concat(l).concat([V.pps.length]).concat(B))),v=V.width,_=V.height,g=V.pixelRatio[0],h=V.pixelRatio[1];return W.box(W.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,v>>8&255,v&255,_>>8&255,_&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,W.box(W.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),W.box(W.types.pasp,new Uint8Array([g>>24,g>>16&255,g>>8&255,g&255,h>>24,h>>16&255,h>>8&255,h&255])))},W.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]))},W.mp4a=function(V){var l=V.samplerate;return W.box(W.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]),W.box(W.types.esds,W.esds(V)))},W.mp3=function(V){var l=V.samplerate;return W.box(W.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]))},W.stsd=function(V){return V.type==="audio"?!V.isAAC&&V.codec==="mp3"?W.box(W.types.stsd,W.STSD,W.mp3(V)):W.box(W.types.stsd,W.STSD,W.mp4a(V)):W.box(W.types.stsd,W.STSD,W.avc1(V))},W.tkhd=function(V){var l=V.id,B=V.duration*V.timescale,A=V.width,T=V.height,y=Math.floor(B/(le+1)),p=Math.floor(B%(le+1));return W.box(W.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,y>>24,y>>16&255,y>>8&255,y&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,A>>8&255,A&255,0,0,T>>8&255,T&255,0,0]))},W.traf=function(V,l){var B=W.sdtp(V),A=V.id,T=Math.floor(l/(le+1)),y=Math.floor(l%(le+1));return W.box(W.types.traf,W.box(W.types.tfhd,new Uint8Array([0,0,0,0,A>>24,A>>16&255,A>>8&255,A&255])),W.box(W.types.tfdt,new Uint8Array([1,0,0,0,T>>24,T>>16&255,T>>8&255,T&255,y>>24,y>>16&255,y>>8&255,y&255])),W.trun(V,B.length+16+20+8+16+8+8),B)},W.trak=function(V){return V.duration=V.duration||4294967295,W.box(W.types.trak,W.tkhd(V),W.mdia(V))},W.trex=function(V){var l=V.id;return W.box(W.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]))},W.trun=function(V,l){var B=V.samples||[],A=B.length,T=12+16*A,y=new Uint8Array(T),p,v,_,g,h,c;for(l+=8+T,y.set([0,0,15,1,A>>>24&255,A>>>16&255,A>>>8&255,A&255,l>>>24&255,l>>>16&255,l>>>8&255,l&255],0),p=0;p<A;p++)v=B[p],_=v.duration,g=v.size,h=v.flags,c=v.cts,y.set([_>>>24&255,_>>>16&255,_>>>8&255,_&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 W.box(W.types.trun,y)},W.initSegment=function(V){W.types||W.init();var l=W.moov(V),B=new Uint8Array(W.FTYP.byteLength+l.byteLength);return B.set(W.FTYP),B.set(l,W.FTYP.byteLength),B},W}();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(Se,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"),W=X("./src/remux/mp4-generator.ts"),oe=X("./src/events.ts"),V=X("./src/errors.ts"),l=X("./src/utils/logger.ts"),B=X("./src/types/loader.ts"),A=X("./src/utils/timescale-conversion.ts");function T(){return T=Object.assign||function(N){for(var S=1;S<arguments.length;S++){var L=arguments[S];for(var C in L)Object.prototype.hasOwnProperty.call(L,C)&&(N[C]=L[C])}return N},T.apply(this,arguments)}var y=10*1e3,p=1024,v=1152,_=null,g=null,h=!1,c=function(){function N(L,C,b,E){if(E===void 0&&(E=""),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=L,this.config=C,this.typeSupported=b,this.ISGenerated=!1,_===null){var O=navigator.userAgent||"",x=O.match(/Chrome\/(\d+)/i);_=x?parseInt(x[1]):0}if(g===null){var k=navigator.userAgent.match(/Safari\/(\d+)/i);g=k?parseInt(k[1]):0}h=!!_&&_<75||!!g&&g<600}var S=N.prototype;return S.destroy=function(){},S.resetTimeStamp=function(C){l.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=C},S.resetNextTimestamp=function(){l.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},S.resetInitSegment=function(){l.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},S.getVideoStartPts=function(C){var b=!1,E=C.reduce(function(O,x){var k=x.pts-O;return k<-4294967296?(b=!0,d(O,x.pts)):k>0?O:x.pts},C[0].pts);return b&&l.logger.debug("PTS rollover detected"),E},S.remux=function(C,b,E,O,x,k,Z,G){var P,z,Q,H,ne,ce,we=x,Ce=x,ze=C.pid>-1,Le=b.pid>-1,We=b.samples.length,Ve=C.samples.length>0,$e=We>1,Pe=(!ze||Ve)&&(!Le||$e)||this.ISGenerated||Z;if(Pe){this.ISGenerated||(Q=this.generateIS(C,b,x));var se=this.isVideoContiguous,w=-1;if($e&&(w=R(b.samples),!se&&this.config.forceKeyFrameOnDiscontinuity))if(ce=!0,w>0){l.logger.warn("[mp4-remuxer]: Dropped "+w+" out of "+We+" video samples due to a missing keyframe");var F=this.getVideoStartPts(b.samples);b.samples=b.samples.slice(w),b.dropped+=w,Ce+=(b.samples[0].pts-F)/(b.timescale||9e4)}else w===-1&&(l.logger.warn("[mp4-remuxer]: No keyframe found out of "+We+" video samples"),ce=!1);if(this.ISGenerated){if(Ve&&$e){var Y=this.getVideoStartPts(b.samples),ue=d(C.samples[0].pts,Y)-Y,q=ue/b.inputTimeScale;we+=Math.max(0,q),Ce+=Math.max(0,-q)}if(Ve){if(C.samplerate||(l.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),Q=this.generateIS(C,b,x)),z=this.remuxAudio(C,we,this.isAudioContiguous,k,Le||$e||G===B.PlaylistLevelType.AUDIO?Ce:void 0),$e){var xe=z?z.endPTS-z.startPTS:0;b.inputTimeScale||(l.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),Q=this.generateIS(C,b,x)),P=this.remuxVideo(b,Ce,se,xe)}}else $e&&(P=this.remuxVideo(b,Ce,se,0));P&&(P.firstKeyFrame=w,P.independent=w!==-1)}}return this.ISGenerated&&(E.samples.length&&(ne=this.remuxID3(E,x)),O.samples.length&&(H=this.remuxText(O,x))),{audio:z,video:P,initSegment:Q,independent:ce,text:H,id3:ne}},S.generateIS=function(C,b,E){var O=C.samples,x=b.samples,k=this.typeSupported,Z={},G=!Object(le.isFiniteNumber)(this._initPTS),P="audio/mp4",z,Q,H;if(G&&(z=Q=Infinity),C.config&&O.length&&(C.timescale=C.samplerate,C.isAAC||(k.mpeg?(P="audio/mpeg",C.codec=""):k.mp3&&(C.codec="mp3")),Z.audio={id:"audio",container:P,codec:C.codec,initSegment:!C.isAAC&&k.mpeg?new Uint8Array(0):W.default.initSegment([C]),metadata:{channelCount:C.channelCount}},G&&(H=C.inputTimeScale,z=Q=O[0].pts-Math.round(H*E))),b.sps&&b.pps&&x.length&&(b.timescale=b.inputTimeScale,Z.video={id:"main",container:"video/mp4",codec:b.codec,initSegment:W.default.initSegment([b]),metadata:{width:b.width,height:b.height}},G)){H=b.inputTimeScale;var ne=this.getVideoStartPts(x),ce=Math.round(H*E);Q=Math.min(Q,d(x[0].dts,ne)-ce),z=Math.min(z,ne-ce)}if(Object.keys(Z).length)return this.ISGenerated=!0,G&&(this._initPTS=z,this._initDTS=Q),{tracks:Z,initPTS:z,timescale:H}},S.remuxVideo=function(C,b,E,O){var x=C.inputTimeScale,k=C.samples,Z=[],G=k.length,P=this._initPTS,z=this.nextAvcDts,Q=8,H,ne,ce,we=Number.POSITIVE_INFINITY,Ce=Number.NEGATIVE_INFINITY,ze=0,Le=!1;if(!E||z===null){var We=b*x,Ve=k[0].pts-d(k[0].dts,k[0].pts);z=We-Ve}for(var $e=0;$e<G;$e++){var Pe=k[$e];if(Pe.pts=d(Pe.pts-P,z),Pe.dts=d(Pe.dts-P,z),Pe.dts>Pe.pts){var se=9e4*.2;ze=Math.max(Math.min(ze,Pe.pts-Pe.dts),-1*se)}Pe.dts<k[$e>0?$e-1:$e].dts&&(Le=!0)}Le&&k.sort(function(Qt,ht){var yt=Qt.dts-ht.dts,ut=Qt.pts-ht.pts;return yt||ut}),ne=k[0].dts,ce=k[k.length-1].dts;var w=Math.round((ce-ne)/(G-1));if(ze<0){if(ze<w*-2){l.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(A.toMsFromMpegTsClock)(-w,!0)+" ms");for(var F=ze,Y=0;Y<G;Y++)k[Y].dts=F=Math.max(F,k[Y].pts-w),k[Y].pts=Math.max(F,k[Y].pts)}else{l.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(A.toMsFromMpegTsClock)(ze,!0)+" ms to overcome this issue");for(var ue=0;ue<G;ue++)k[ue].dts=k[ue].dts+ze}ne=k[0].dts}if(E){var q=ne-z,xe=q>w,Be=q<-1;if(xe||Be){xe?l.logger.warn("AVC: "+Object(A.toMsFromMpegTsClock)(q,!0)+" ms ("+q+"dts) hole between fragments detected, filling it"):l.logger.warn("AVC: "+Object(A.toMsFromMpegTsClock)(-q,!0)+" ms ("+q+"dts) overlapping between fragments detected"),ne=z;var it=k[0].pts-q;k[0].dts=ne,k[0].pts=it,l.logger.log("Video: First PTS/DTS adjusted: "+Object(A.toMsFromMpegTsClock)(it,!0)+"/"+Object(A.toMsFromMpegTsClock)(ne,!0)+", delta: "+Object(A.toMsFromMpegTsClock)(q,!0)+" ms")}}h&&(ne=Math.max(0,ne));for(var be=0,Re=0,je=0;je<G;je++){for(var Ye=k[je],ft=Ye.units,Rt=ft.length,Jt=0,Wt=0;Wt<Rt;Wt++)Jt+=ft[Wt].data.length;Re+=Jt,be+=Rt,Ye.length=Jt,Ye.dts=Math.max(Ye.dts,ne),Ye.pts=Math.max(Ye.pts,Ye.dts,0),we=Math.min(Ye.pts,we),Ce=Math.max(Ye.pts,Ce)}ce=k[G-1].dts;var Nt=Re+4*be+8,sn;try{sn=new Uint8Array(Nt)}catch(Qt){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 an=new DataView(sn.buffer);an.setUint32(0,Nt),sn.set(W.default.types.mdat,4);for(var zt=0;zt<G;zt++){for(var mn=k[zt],xn=mn.units,Te=0,fe=0,pe=xn.length;fe<pe;fe++){var ve=xn[fe],Oe=ve.data,ge=ve.data.byteLength;an.setUint32(Q,ge),Q+=4,sn.set(Oe,Q),Q+=ge,Te+=4+ge}if(zt<G-1)H=k[zt+1].dts-mn.dts;else{var ye=this.config,Ie=mn.dts-k[zt>0?zt-1:zt].dts;if(ye.stretchShortVideoTrack&&this.nextAudioPts!==null){var Me=Math.floor(ye.maxBufferHole*x),et=(O?we+O*x:this.nextAudioPts)-mn.pts;et>Me?(H=et-Ie,H<0&&(H=Ie),l.logger.log("[mp4-remuxer]: It is approximately "+et/90+" ms to the next segment; using duration "+H/90+" ms for the last video frame.")):H=Ie}else H=Ie}var qe=Math.round(mn.pts-mn.dts);Z.push(new D(mn.key,H,Te,qe))}if(Z.length&&_&&_<70){var Tt=Z[0].flags;Tt.dependsOn=2,Tt.isNonSync=0}console.assert(H!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=z=ce+H,this.isVideoContiguous=!0;var cn=W.default.moof(C.sequenceNumber++,ne,T({},C,{samples:Z})),kn="video",On={data1:cn,data2:sn,startPTS:we/x,endPTS:(Ce+H)/x,startDTS:ne/x,endDTS:z/x,type:kn,hasAudio:!1,hasVideo:!0,nb:Z.length,dropped:C.dropped};return C.samples=[],C.dropped=0,console.assert(sn.length,"MDAT length must not be zero"),On},S.remuxAudio=function(C,b,E,O,x){var k=C.inputTimeScale,Z=C.samplerate?C.samplerate:k,G=k/Z,P=C.isAAC?p:v,z=P*G,Q=this._initPTS,H=!C.isAAC&&this.typeSupported.mpeg,ne=[],ce=C.samples,we=H?0:8,Ce=this.nextAudioPts||-1,ze=b*k;if(this.isAudioContiguous=E=E||ce.length&&Ce>0&&(O&&Math.abs(ze-Ce)<9e3||Math.abs(d(ce[0].pts-Q,ze)-Ce)<20*z),ce.forEach(function(Oe){Oe.pts=d(Oe.pts-Q,ze)}),!E||Ce<0){if(ce=ce.filter(function(Oe){return Oe.pts>=0}),!ce.length)return;x===0?Ce=0:O?Ce=Math.max(0,ze):Ce=ce[0].pts}if(C.isAAC)for(var Le=x!==void 0,We=this.config.maxAudioFramesDrift,Ve=0,$e=Ce;Ve<ce.length;Ve++){var Pe=ce[Ve],se=Pe.pts,w=se-$e,F=Math.abs(1e3*w/k);if(w<=-We*z&&Le)Ve===0&&(l.logger.warn("Audio frame @ "+(se/k).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*w/k)+" ms."),this.nextAudioPts=Ce=$e=se);else if(w>=We*z&&F<y&&Le){var Y=Math.round(w/z);$e=se-Y*z,$e<0&&(Y--,$e+=z),Ve===0&&(this.nextAudioPts=Ce=$e),l.logger.warn("[mp4-remuxer]: Injecting "+Y+" audio frame @ "+($e/k).toFixed(3)+"s due to "+Math.round(1e3*w/k)+" ms gap.");for(var ue=0;ue<Y;ue++){var q=Math.max($e,0),xe=j.default.getSilentFrame(C.manifestCodec||C.codec,C.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+=z,Ve++}}Pe.pts=$e,$e+=z}for(var Be=null,it=null,be,Re=0,je=ce.length;je--;)Re+=ce[je].unit.byteLength;for(var Ye=0,ft=ce.length;Ye<ft;Ye++){var Rt=ce[Ye],Jt=Rt.unit,Wt=Rt.pts;if(it!==null){var Nt=ne[Ye-1];Nt.duration=Math.round((Wt-it)/G)}else if(E&&C.isAAC&&(Wt=Ce),Be=Wt,Re>0){Re+=we;try{be=new Uint8Array(Re)}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:Re,reason:"fail allocating audio mdat "+Re});return}if(!H){var sn=new DataView(be.buffer);sn.setUint32(0,Re),be.set(W.default.types.mdat,4)}}else return;be.set(Jt,we);var an=Jt.byteLength;we+=an,ne.push(new D(!0,P,an,0)),it=Wt}var zt=ne.length;if(!zt)return;var mn=ne[ne.length-1];this.nextAudioPts=Ce=it+G*mn.duration;var xn=H?new Uint8Array(0):W.default.moof(C.sequenceNumber++,Be/G,T({},C,{samples:ne}));C.samples=[];var Te=Be/k,fe=Ce/k,pe="audio",ve={data1:xn,data2:be,startPTS:Te,endPTS:fe,startDTS:Te,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},S.remuxEmptyAudio=function(C,b,E,O){var x=C.inputTimeScale,k=C.samplerate?C.samplerate:x,Z=x/k,G=this.nextAudioPts,P=(G!==null?G:O.startDTS*x)+this._initDTS,z=O.endDTS*x+this._initDTS,Q=Z*p,H=Math.ceil((z-P)/Q),ne=j.default.getSilentFrame(C.manifestCodec||C.codec,C.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=P+we*Q;ce.push({unit:ne,pts:Ce,dts:Ce})}return C.samples=ce,this.remuxAudio(C,b,E,!1)},S.remuxID3=function(C,b){var E=C.samples.length;if(!E)return;for(var O=C.inputTimeScale,x=this._initPTS,k=this._initDTS,Z=0;Z<E;Z++){var G=C.samples[Z];G.pts=d(G.pts-x,b*O)/O,G.dts=d(G.dts-k,b*O)/O}var P=C.samples;return C.samples=[],{samples:P}},S.remuxText=function(C,b){var E=C.samples.length;if(!E)return;for(var O=C.inputTimeScale,x=this._initPTS,k=0;k<E;k++){var Z=C.samples[k];Z.pts=d(Z.pts-x,b*O)/O}C.samples.sort(function(P,z){return P.pts-z.pts});var G=C.samples;return C.samples=[],{samples:G}},N}();function d(N,S){var L;if(S===null)return N;for(S<N?L=-8589934592:L=8589934592;Math.abs(N-S)>4294967296;)N+=L;return N}function R(N){for(var S=0;S<N.length;S++)if(N[S].key)return S;return-1}var D=function(S,L,C,b){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=L,this.size=C,this.cts=b,this.flags=new I(S)},I=function(S){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=S?2:1,this.isNonSync=S?0:1}},"./src/remux/passthrough-remuxer.ts":function(Se,ae,X){"use strict";X.r(ae);var le=X("./src/polyfills/number.ts"),j=X("./src/utils/mp4-tools.ts"),W=X("./src/loader/fragment.ts"),oe=X("./src/utils/logger.ts"),V=function(){function A(){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 T=A.prototype;return T.destroy=function(){},T.resetTimeStamp=function(p){this.initPTS=p,this.lastEndDTS=null},T.resetNextTimestamp=function(){this.lastEndDTS=null},T.resetInitSegment=function(p,v,_){this.audioCodec=v,this.videoCodec=_,this.generateInitSegment(p),this.emitInitSegment=!0},T.generateInitSegment=function(p){var v=this.audioCodec,_=this.videoCodec;if(!p||!p.byteLength){this.initTracks=void 0,this.initData=void 0;return}var g=this.initData=Object(j.parseInitSegment)(p);v||(v=B(g.audio,W.ElementaryStreamTypes.AUDIO)),_||(_=B(g.video,W.ElementaryStreamTypes.VIDEO));var h={};g.audio&&g.video?h.audiovideo={container:"video/mp4",codec:v+","+_,initSegment:p,id:"main"}:g.audio?h.audio={container:"audio/mp4",codec:v,initSegment:p,id:"audio"}:g.video?h.video={container:"video/mp4",codec:_,initSegment:p,id:"main"}:oe.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=h},T.remux=function(p,v,_,g,h){var c=this.initPTS,d=this.lastEndDTS,R={audio:void 0,video:void 0,text:g,id3:_,initSegment:void 0};Object(le.isFiniteNumber)(d)||(d=this.lastEndDTS=h||0);var D=v.samples;if(!D||!D.length)return R;var I={initPTS:void 0,timescale:1},N=this.initData;if((!N||!N.length)&&(this.generateInitSegment(D),N=this.initData),!N||!N.length)return oe.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),R;this.emitInitSegment&&(I.tracks=this.initTracks,this.emitInitSegment=!1),Object(le.isFiniteNumber)(c)||(this.initPTS=I.initPTS=c=l(N,D,d));var S=Object(j.getDuration)(D,N),L=d,C=S+L;Object(j.offsetStartDTS)(N,D,c),S>0?this.lastEndDTS=C:(oe.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var b=!!N.audio,E=!!N.video,O="";b&&(O+="audio"),E&&(O+="video");var x={data1:D,startPTS:L,startDTS:L,endPTS:C,endDTS:C,type:O,hasAudio:b,hasVideo:E,nb:1,dropped:0};return R.audio=x.type==="audio"?x:void 0,R.video=x.type!=="audio"?x:void 0,R.text=g,R.id3=_,R.initSegment=I,R},A}(),l=function(T,y,p){return Object(j.getStartDTS)(T,y)-p};function B(A,T){var y=A==null?void 0:A.codec;return y&&y.length>4?y:y==="hvc1"?"hvc1.1.c.L120.90":y==="av01"?"av01.0.04M.08":y==="avc1"||T===W.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}ae.default=V},"./src/task-loop.ts":function(Se,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 W=j.prototype;return W.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},W.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},W.onHandlerDestroyed=function(){},W.hasInterval=function(){return!!this._tickInterval},W.hasNextTick=function(){return!!this._tickTimer},W.setInterval=function(V){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,V),!0)},W.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},W.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},W.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},W.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},W.doTick=function(){},j}()},"./src/types/cmcd.ts":function(Se,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 W}),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 W;(function(V){V.DASH="d",V.HLS="h",V.SMOOTH="s",V.OTHER="o"})(W||(W={}));var oe;(function(V){V.VOD="v",V.LIVE="l"})(oe||(oe={}))},"./src/types/level.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"HlsSkip",function(){return W}),X.d(ae,"getSkipValue",function(){return oe}),X.d(ae,"HlsUrlParameters",function(){return V}),X.d(ae,"Level",function(){return l});function le(B,A){for(var T=0;T<A.length;T++){var y=A[T];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(B,y.key,y)}}function j(B,A,T){return A&&le(B.prototype,A),T&&le(B,T),B}var W;(function(B){B.No="",B.Yes="YES",B.v2="v2"})(W||(W={}));function oe(B,A){var T=B.canSkipUntil,y=B.canSkipDateRanges,p=B.endSN,v=A!==void 0?A-p:0;return T&&v<T?y?W.v2:W.Yes:W.No}var V=function(){function B(T,y,p){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=T,this.part=y,this.skip=p}var A=B.prototype;return A.addDirectives=function(y){var p=new self.URL(y);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()},B}(),l=function(){function B(A){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=[A.url],this.attrs=A.attrs,this.bitrate=A.bitrate,A.details&&(this.details=A.details),this.id=A.id||0,this.name=A.name,this.width=A.width||0,this.height=A.height||0,this.audioCodec=A.audioCodec,this.videoCodec=A.videoCodec,this.unknownCodecs=A.unknownCodecs,this.codecSet=[A.videoCodec,A.audioCodec].filter(function(T){return T}).join(",").replace(/\.[^.,]+/g,"")}return j(B,[{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(T){var y=T%this.url.length;this._urlId!==y&&(this.details=void 0,this._urlId=y)}}]),B}()},"./src/types/loader.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"PlaylistContextType",function(){return le}),X.d(ae,"PlaylistLevelType",function(){return j});var le;(function(W){W.MANIFEST="manifest",W.LEVEL="level",W.AUDIO_TRACK="audioTrack",W.SUBTITLE_TRACK="subtitleTrack"})(le||(le={}));var j;(function(W){W.MAIN="main",W.AUDIO="audio",W.SUBTITLE="subtitle"})(j||(j={}))},"./src/types/transmuxer.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"ChunkMetadata",function(){return le});var le=function(oe,V,l,B,A,T){B===void 0&&(B=0),A===void 0&&(A=-1),T===void 0&&(T=!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=B,this.part=A,this.partial=T};function j(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"AttrList",function(){return W});var le=/^(\d+)x(\d+)$/,j=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,W=function(){function oe(l){typeof l=="string"&&(l=oe.parseAttrList(l));for(var B in l)l.hasOwnProperty(B)&&(this[B]=l[B])}var V=oe.prototype;return V.decimalInteger=function(B){var A=parseInt(this[B],10);return A>Number.MAX_SAFE_INTEGER?Infinity:A},V.hexadecimalInteger=function(B){if(this[B]){var A=(this[B]||"0x").slice(2);A=(A.length&1?"0":"")+A;for(var T=new Uint8Array(A.length/2),y=0;y<A.length/2;y++)T[y]=parseInt(A.slice(y*2,y*2+2),16);return T}else return null},V.hexadecimalIntegerAsNumber=function(B){var A=parseInt(this[B],16);return A>Number.MAX_SAFE_INTEGER?Infinity:A},V.decimalFloatingPoint=function(B){return parseFloat(this[B])},V.optionalFloat=function(B,A){var T=this[B];return T?parseFloat(T):A},V.enumeratedString=function(B){return this[B]},V.bool=function(B){return this[B]==="YES"},V.decimalResolution=function(B){var A=le.exec(this[B]);return A===null?void 0:{width:parseInt(A[1],10),height:parseInt(A[2],10)}},oe.parseAttrList=function(B){var A,T={},y='"';for(j.lastIndex=0;(A=j.exec(B))!==null;){var p=A[2];p.indexOf(y)===0&&p.lastIndexOf(y)===p.length-1&&(p=p.slice(1,-1)),T[A[1]]=p}return T},oe}()},"./src/utils/binary-search.ts":function(Se,ae,X){"use strict";X.r(ae);var le={search:function(W,oe){for(var V=0,l=W.length-1,B=null,A=null;V<=l;){B=(V+l)/2|0,A=W[B];var T=oe(A);if(T>0)V=B+1;else if(T<0)l=B-1;else return A}return null}};ae.default=le},"./src/utils/buffer-helper.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"BufferHelper",function(){return W});var le=X("./src/utils/logger.ts"),j={length:0,start:function(){return 0},end:function(){return 0}},W=function(){function oe(){}return oe.isBuffered=function(l,B){try{if(l){for(var A=oe.getBuffered(l),T=0;T<A.length;T++)if(B>=A.start(T)&&B<=A.end(T))return!0}}catch(y){}return!1},oe.bufferInfo=function(l,B,A){try{if(l){var T=oe.getBuffered(l),y=[],p;for(p=0;p<T.length;p++)y.push({start:T.start(p),end:T.end(p)});return this.bufferedInfo(y,B,A)}}catch(v){}return{len:0,start:B,end:B,nextStart:void 0}},oe.bufferedInfo=function(l,B,A){B=Math.max(0,B),l.sort(function(I,N){var S=I.start-N.start;return S||N.end-I.end});var T=[];if(A)for(var y=0;y<l.length;y++){var p=T.length;if(p){var v=T[p-1].end;l[y].start-v<A?l[y].end>v&&(T[p-1].end=l[y].end):T.push(l[y])}else T.push(l[y])}else T=l;for(var _=0,g,h=B,c=B,d=0;d<T.length;d++){var R=T[d].start,D=T[d].end;if(B+A>=R&&B<D)h=R,c=D,_=c-B;else if(B+A<R){g=R;break}}return{len:_,start:h||0,end:c||0,nextStart:g}},oe.getBuffered=function(l){try{return l.buffered}catch(B){return le.logger.log("failed to get media.buffered",B),j}},oe}()},"./src/utils/cea-608-parser.ts":function(Se,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},W=function(C){var b=C;return j.hasOwnProperty(C)&&(b=j[C]),String.fromCharCode(b)},oe=15,V=100,l={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},B={17:2,18:4,21:6,22:8,23:10,19:13,20:15},A={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},T={25:2,26:4,29:6,30:8,31:10,27:13,28:15},y=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],p;(function(L){L[L.ERROR=0]="ERROR",L[L.TEXT=1]="TEXT",L[L.WARNING=2]="WARNING",L[L.INFO=2]="INFO",L[L.DEBUG=3]="DEBUG",L[L.DATA=3]="DATA"})(p||(p={}));var v=function(){function L(){this.time=null,this.verboseLevel=p.ERROR}var C=L.prototype;return C.log=function(E,O){this.verboseLevel>=E&&le.logger.log(this.time+" ["+E+"] "+O)},L}(),_=function(C){for(var b=[],E=0;E<C.length;E++)b.push(C[E].toString(16));return b},g=function(){function L(b,E,O,x,k){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=b||"white",this.underline=E||!1,this.italics=O||!1,this.background=x||"black",this.flash=k||!1}var C=L.prototype;return C.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},C.setStyles=function(E){for(var O=["foreground","underline","italics","background","flash"],x=0;x<O.length;x++){var k=O[x];E.hasOwnProperty(k)&&(this[k]=E[k])}},C.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},C.equals=function(E){return this.foreground===E.foreground&&this.underline===E.underline&&this.italics===E.italics&&this.background===E.background&&this.flash===E.flash},C.copy=function(E){this.foreground=E.foreground,this.underline=E.underline,this.italics=E.italics,this.background=E.background,this.flash=E.flash},C.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},L}(),h=function(){function L(b,E,O,x,k,Z){this.uchar=void 0,this.penState=void 0,this.uchar=b||" ",this.penState=new g(E,O,x,k,Z)}var C=L.prototype;return C.reset=function(){this.uchar=" ",this.penState.reset()},C.setChar=function(E,O){this.uchar=E,this.penState.copy(O)},C.setPenState=function(E){this.penState.copy(E)},C.equals=function(E){return this.uchar===E.uchar&&this.penState.equals(E.penState)},C.copy=function(E){this.uchar=E.uchar,this.penState.copy(E.penState)},C.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},L}(),c=function(){function L(b){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var E=0;E<V;E++)this.chars.push(new h);this.logger=b,this.pos=0,this.currPenState=new g}var C=L.prototype;return C.equals=function(E){for(var O=!0,x=0;x<V;x++)if(!this.chars[x].equals(E.chars[x])){O=!1;break}return O},C.copy=function(E){for(var O=0;O<V;O++)this.chars[O].copy(E.chars[O])},C.isEmpty=function(){for(var E=!0,O=0;O<V;O++)if(!this.chars[O].isEmpty()){E=!1;break}return E},C.setCursor=function(E){this.pos!==E&&(this.pos=E),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)},C.moveCursor=function(E){var O=this.pos+E;if(E>1)for(var x=this.pos+1;x<O+1;x++)this.chars[x].setPenState(this.currPenState);this.setCursor(O)},C.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},C.insertChar=function(E){E>=144&&this.backSpace();var O=W(E);if(this.pos>=V){this.logger.log(p.ERROR,"Cannot insert "+E.toString(16)+" ("+O+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(O,this.currPenState),this.moveCursor(1)},C.clearFromPos=function(E){var O;for(O=E;O<V;O++)this.chars[O].reset()},C.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},C.clearToEndOfRow=function(){this.clearFromPos(this.pos)},C.getTextString=function(){for(var E=[],O=!0,x=0;x<V;x++){var k=this.chars[x].uchar;k!==" "&&(O=!1),E.push(k)}return O?"":E.join("")},C.setPenStyles=function(E){this.currPenState.setStyles(E);var O=this.chars[this.pos];O.setPenState(this.currPenState)},L}(),d=function(){function L(b){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var E=0;E<oe;E++)this.rows.push(new c(b));this.logger=b,this.currRow=oe-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var C=L.prototype;return C.reset=function(){for(var E=0;E<oe;E++)this.rows[E].clear();this.currRow=oe-1},C.equals=function(E){for(var O=!0,x=0;x<oe;x++)if(!this.rows[x].equals(E.rows[x])){O=!1;break}return O},C.copy=function(E){for(var O=0;O<oe;O++)this.rows[O].copy(E.rows[O])},C.isEmpty=function(){for(var E=!0,O=0;O<oe;O++)if(!this.rows[O].isEmpty()){E=!1;break}return E},C.backSpace=function(){var E=this.rows[this.currRow];E.backSpace()},C.clearToEndOfRow=function(){var E=this.rows[this.currRow];E.clearToEndOfRow()},C.insertChar=function(E){var O=this.rows[this.currRow];O.insertChar(E)},C.setPen=function(E){var O=this.rows[this.currRow];O.setPenStyles(E)},C.moveCursor=function(E){var O=this.rows[this.currRow];O.moveCursor(E)},C.setCursor=function(E){this.logger.log(p.INFO,"setCursor: "+E);var O=this.rows[this.currRow];O.setCursor(E)},C.setPAC=function(E){this.logger.log(p.INFO,"pacData = "+JSON.stringify(E));var O=E.row-1;if(this.nrRollUpRows&&O<this.nrRollUpRows-1&&(O=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==O){for(var x=0;x<oe;x++)this.rows[x].clear();var k=this.currRow+1-this.nrRollUpRows,Z=this.lastOutputScreen;if(Z){var G=Z.rows[k].cueStartTime,P=this.logger.time;if(G&&P!==null&&G<P)for(var z=0;z<this.nrRollUpRows;z++)this.rows[O-this.nrRollUpRows+z+1].copy(Z.rows[k+z])}}this.currRow=O;var Q=this.rows[this.currRow];if(E.indent!==null){var H=E.indent,ne=Math.max(H-1,0);Q.setCursor(E.indent),E.color=Q.chars[ne].penState.foreground}var ce={foreground:E.color,underline:E.underline,italics:E.italics,background:"black",flash:!1};this.setPen(ce)},C.setBkgData=function(E){this.logger.log(p.INFO,"bkgData = "+JSON.stringify(E)),this.backSpace(),this.setPen(E),this.insertChar(32)},C.setRollUpRows=function(E){this.nrRollUpRows=E},C.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 E=this.currRow+1-this.nrRollUpRows,O=this.rows.splice(E,1)[0];O.clear(),this.rows.splice(this.currRow,0,O),this.logger.log(p.INFO,"Rolling up")},C.getDisplayText=function(E){E=E||!1;for(var O=[],x="",k=-1,Z=0;Z<oe;Z++){var G=this.rows[Z].getTextString();G&&(k=Z+1,E?O.push("Row "+k+": '"+G+"'"):O.push(G.trim()))}return O.length>0&&(E?x="["+O.join(" | ")+"]":x=O.join(`
`)),x},C.getTextAndFormat=function(){return this.rows},L}(),R=function(){function L(b,E,O){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=b,this.outputFilter=E,this.mode=null,this.verbose=0,this.displayedMemory=new d(O),this.nonDisplayedMemory=new d(O),this.lastOutputScreen=new d(O),this.currRollUpRow=this.displayedMemory.rows[oe-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=O}var C=L.prototype;return C.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},C.getHandler=function(){return this.outputFilter},C.setHandler=function(E){this.outputFilter=E},C.setPAC=function(E){this.writeScreen.setPAC(E)},C.setBkgData=function(E){this.writeScreen.setBkgData(E)},C.setMode=function(E){if(E===this.mode)return;this.mode=E,this.logger.log(p.INFO,"MODE="+E),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},C.insertChars=function(E){for(var O=0;O<E.length;O++)this.writeScreen.insertChar(E[O]);var x=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(p.INFO,x+": "+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())},C.ccRCL=function(){this.logger.log(p.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},C.ccBS=function(){if(this.logger.log(p.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},C.ccAOF=function(){},C.ccAON=function(){},C.ccDER=function(){this.logger.log(p.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},C.ccRU=function(E){this.logger.log(p.INFO,"RU("+E+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(E)},C.ccFON=function(){this.logger.log(p.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},C.ccRDC=function(){this.logger.log(p.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},C.ccTR=function(){this.logger.log(p.INFO,"TR"),this.setMode("MODE_TEXT")},C.ccRTD=function(){this.logger.log(p.INFO,"RTD"),this.setMode("MODE_TEXT")},C.ccEDM=function(){this.logger.log(p.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},C.ccCR=function(){this.logger.log(p.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},C.ccENM=function(){this.logger.log(p.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},C.ccEOC=function(){if(this.logger.log(p.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var E=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=E,this.writeScreen=this.nonDisplayedMemory,this.logger.log(p.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},C.ccTO=function(E){this.logger.log(p.INFO,"TO("+E+") - Tab Offset"),this.writeScreen.moveCursor(E)},C.ccMIDROW=function(E){var O={flash:!1};if(O.underline=E%2===1,O.italics=E>=46,O.italics)O.foreground="white";else{var x=Math.floor(E/2)-16,k=["white","green","blue","cyan","red","yellow","magenta"];O.foreground=k[x]}this.logger.log(p.INFO,"MIDROW: "+JSON.stringify(O)),this.writeScreen.setPen(O)},C.outputDataUpdate=function(E){E===void 0&&(E=!1);var O=this.logger.time;if(O===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=O:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,O,this.lastOutputScreen),E&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:O),this.lastOutputScreen.copy(this.displayedMemory))},C.cueSplitAtTime=function(E){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,E,this.displayedMemory),this.cueStartTime=E))},L}(),D=function(){function L(b,E,O){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var x=new v;this.channels=[null,new R(b,E,x),new R(b+1,O,x)],this.cmdHistory=S(),this.logger=x}var C=L.prototype;return C.getHandler=function(E){return this.channels[E].getHandler()},C.setHandler=function(E,O){this.channels[E].setHandler(O)},C.addData=function(E,O){var x,k,Z,G=!1;this.logger.time=E;for(var P=0;P<O.length;P+=2){if(k=O[P]&127,Z=O[P+1]&127,k===0&&Z===0)continue;if(this.logger.log(p.DATA,"["+_([O[P],O[P+1]])+"] -> ("+_([k,Z])+")"),x=this.parseCmd(k,Z),x||(x=this.parseMidrow(k,Z)),x||(x=this.parsePAC(k,Z)),x||(x=this.parseBackgroundAttributes(k,Z)),!x&&(G=this.parseChars(k,Z),G)){var z=this.currentChannel;if(z&&z>0){var Q=this.channels[z];Q.insertChars(G)}else this.logger.log(p.WARNING,"No channel found yet. TEXT-MODE?")}!x&&!G&&this.logger.log(p.WARNING,"Couldn't parse cleaned data "+_([k,Z])+" orig: "+_([O[P],O[P+1]]))}},C.parseCmd=function(E,O){var x=this.cmdHistory,k=(E===20||E===28||E===21||E===29)&&O>=32&&O<=47,Z=(E===23||E===31)&&O>=33&&O<=35;if(!(k||Z))return!1;if(N(E,O,x))return I(null,null,x),this.logger.log(p.DEBUG,"Repeated command ("+_([E,O])+") is dropped"),!0;var G=E===20||E===21||E===23?1:2,P=this.channels[G];return E===20||E===21||E===28||E===29?O===32?P.ccRCL():O===33?P.ccBS():O===34?P.ccAOF():O===35?P.ccAON():O===36?P.ccDER():O===37?P.ccRU(2):O===38?P.ccRU(3):O===39?P.ccRU(4):O===40?P.ccFON():O===41?P.ccRDC():O===42?P.ccTR():O===43?P.ccRTD():O===44?P.ccEDM():O===45?P.ccCR():O===46?P.ccENM():O===47&&P.ccEOC():P.ccTO(O-32),I(E,O,x),this.currentChannel=G,!0},C.parseMidrow=function(E,O){var x=0;if((E===17||E===25)&&O>=32&&O<=47){if(E===17?x=1:x=2,x!==this.currentChannel)return this.logger.log(p.ERROR,"Mismatch channel in midrow parsing"),!1;var k=this.channels[x];return k?(k.ccMIDROW(O),this.logger.log(p.DEBUG,"MIDROW ("+_([E,O])+")"),!0):!1}return!1},C.parsePAC=function(E,O){var x,k=this.cmdHistory,Z=(E>=17&&E<=23||E>=25&&E<=31)&&O>=64&&O<=127,G=(E===16||E===24)&&O>=64&&O<=95;if(!(Z||G))return!1;if(N(E,O,k))return I(null,null,k),!0;var P=E<=23?1:2;O>=64&&O<=95?x=P===1?l[E]:A[E]:x=P===1?B[E]:T[E];var z=this.channels[P];return z?(z.setPAC(this.interpretPAC(x,O)),I(E,O,k),this.currentChannel=P,!0):!1},C.interpretPAC=function(E,O){var x,k={color:null,italics:!1,indent:null,underline:!1,row:E};return O>95?x=O-96:x=O-64,k.underline=(x&1)===1,x<=13?k.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(x/2)]:x<=15?(k.italics=!0,k.color="white"):k.indent=Math.floor((x-16)/2)*4,k},C.parseChars=function(E,O){var x,k=null,Z=null;if(E>=25?(x=2,Z=E-8):(x=1,Z=E),Z>=17&&Z<=19){var G;Z===17?G=O+80:Z===18?G=O+112:G=O+144,this.logger.log(p.INFO,"Special char '"+W(G)+"' in channel "+x),k=[G]}else E>=32&&E<=127&&(k=O===0?[E]:[E,O]);if(k){var P=_(k);this.logger.log(p.DEBUG,"Char codes = "+P.join(",")),I(E,O,this.cmdHistory)}return k},C.parseBackgroundAttributes=function(E,O){var x=(E===16||E===24)&&O>=32&&O<=47,k=(E===23||E===31)&&O>=45&&O<=47;if(!(x||k))return!1;var Z,G={};E===16||E===24?(Z=Math.floor((O-32)/2),G.background=y[Z],O%2===1&&(G.background=G.background+"_semi")):O===45?G.background="transparent":(G.foreground="black",O===47&&(G.underline=!0));var P=E<=23?1:2,z=this.channels[P];return z.setBkgData(G),I(E,O,this.cmdHistory),!0},C.reset=function(){for(var E=0;E<Object.keys(this.channels).length;E++){var O=this.channels[E];O&&O.reset()}this.cmdHistory=S()},C.cueSplitAtTime=function(E){for(var O=0;O<this.channels.length;O++){var x=this.channels[O];x&&x.cueSplitAtTime(E)}},L}();function I(L,C,b){b.a=L,b.b=C}function N(L,C,b){return b.a===L&&b.b===C}function S(){return{a:null,b:null}}ae.default=D},"./src/utils/codecs.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"isCodecType",function(){return j}),X.d(ae,"isCodecSupportedInMp4",function(){return W});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 W(oe,V){return MediaSource.isTypeSupported((V||"video")+'/mp4;codecs="'+oe+'"')}},"./src/utils/cues.ts":function(Se,ae,X){"use strict";X.r(ae);var le=X("./src/utils/vttparser.ts"),j=X("./src/utils/webvtt-parser.ts"),W=X("./src/utils/texttrack-utils.ts"),oe=/\s/,V={newCue:function(B,A,T,y){for(var p=[],v,_,g,h,c,d=self.VTTCue||self.TextTrackCue,R=0;R<y.rows.length;R++)if(v=y.rows[R],g=!0,h=0,c="",!v.isEmpty()){for(var D=0;D<v.chars.length;D++)oe.test(v.chars[D].uchar)&&g?h++:(c+=v.chars[D].uchar,g=!1);v.cueStartTime=A,A===T&&(T+=1e-4),h>=16?h--:h++;var I=Object(le.fixLineBreaks)(c.trim()),N=Object(j.generateCueId)(A,T,I);(!B||!B.cues||!B.cues.getCueById(N))&&(_=new d(A,T,I),_.id=N,_.line=R+1,_.align="left",_.position=10+Math.min(80,Math.floor(h*8/32)*10),p.push(_))}return B&&p.length&&(p.sort(function(S,L){return S.line==="auto"||L.line==="auto"?0:S.line>8&&L.line>8?L.line-S.line:S.line-L.line}),p.forEach(function(S){return Object(W.addCueToTrack)(B,S)})),p}};ae.default=V},"./src/utils/discontinuities.ts":function(Se,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 A}),X.d(ae,"alignStream",function(){return T}),X.d(ae,"alignPDT",function(){return p}),X.d(ae,"alignFragmentByPDTDelta",function(){return v}),X.d(ae,"alignMediaPlaylistByPDT",function(){return _});var le=X("./src/polyfills/number.ts"),j=X("./src/utils/logger.ts"),W=X("./src/controller/level-helper.ts");function oe(g,h){for(var c=null,d=0,R=g.length;d<R;d++){var D=g[d];if(D&&D.cc===h){c=D;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 R=oe(c,d[0].cc);if(!R||R&&!R.startPTS){j.logger.log("No frag in previous level to align on");return}return R}function B(g,h){if(g){var c=g.start+h;g.start=g.startPTS=c,g.endPTS=c+g.duration}}function A(g,h){for(var c=h.fragments,d=0,R=c.length;d<R;d++)B(c[d],g);h.fragmentHint&&B(h.fragmentHint,g),h.alignedSliding=!0}function T(g,h,c){if(!h)return;y(g,c,h),!c.alignedSliding&&h.details&&p(c,h.details),!c.alignedSliding&&h.details&&!c.skippedSegments&&Object(W.adjustSliding)(h.details,c)}function y(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),A(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,R=(d-c)/1e3+h.fragments[0].start;R&&Object(le.isFiniteNumber)(R)&&(j.logger.log("Adjusting PTS using programDateTime delta "+(d-c)+"ms, sliding:"+R.toFixed(3)+" "+g.url+" "),A(R,g))}function v(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 _(g,h){if(!h.fragments.length||!g.hasProgramDateTime||!h.hasProgramDateTime)return;var c=h.fragments[0].programDateTime,d=h.fragments[0].start,R=c-d*1e3;g.fragments.forEach(function(D){v(D,R)}),g.fragmentHint&&v(g.fragmentHint,R),g.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(Se,ae,X){"use strict";X.r(ae);var le=X("./src/utils/ewma.ts"),j=function(){function W(V,l,B){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=B,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new le.default(V),this.fast_=new le.default(l)}var oe=W.prototype;return oe.update=function(l,B){var A=this.slow_,T=this.fast_;this.slow_.halfLife!==l&&(this.slow_=new le.default(l,A.getEstimate(),A.getTotalWeight())),this.fast_.halfLife!==B&&(this.fast_=new le.default(B,T.getEstimate(),T.getTotalWeight()))},oe.sample=function(l,B){l=Math.max(l,this.minDelayMs_);var A=8*B,T=l/1e3,y=A/T;this.fast_.sample(T,y),this.slow_.sample(T,y)},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(){},W}();ae.default=j},"./src/utils/ewma.ts":function(Se,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 W=j.prototype;return W.sample=function(V,l){var B=Math.pow(this.alpha_,V);this.estimate_=l*(1-B)+B*this.estimate_,this.totalWeight_+=V},W.getTotalWeight=function(){return this.totalWeight_},W.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(Se,ae,X){"use strict";X.r(ae),X.d(ae,"fetchSupported",function(){return v});var le=X("./src/polyfills/number.ts"),j=X("./src/loader/load-stats.ts"),W=X("./src/demux/chunk-cache.ts");function oe(d,R){d.prototype=Object.create(R.prototype),d.prototype.constructor=d,T(d,R)}function V(d){var R=typeof Map=="function"?new Map:void 0;return V=function(I){if(I===null||!A(I))return I;if(typeof I!="function")throw new TypeError("Super expression must either be null or a function");if(typeof R!="undefined"){if(R.has(I))return R.get(I);R.set(I,N)}function N(){return l(I,arguments,y(this).constructor)}return N.prototype=Object.create(I.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),T(N,I)},V(d)}function l(d,R,D){return B()?l=Reflect.construct:l=function(N,S,L){var C=[null];C.push.apply(C,S);var b=Function.bind.apply(N,C),E=new b;return L&&T(E,L.prototype),E},l.apply(null,arguments)}function B(){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 A(d){return Function.toString.call(d).indexOf("[native code]")!==-1}function T(d,R){return T=Object.setPrototypeOf||function(I,N){return I.__proto__=N,I},T(d,R)}function y(d){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)},y(d)}function p(){return p=Object.assign||function(d){for(var R=1;R<arguments.length;R++){var D=arguments[R];for(var I in D)Object.prototype.hasOwnProperty.call(D,I)&&(d[I]=D[I])}return d},p.apply(this,arguments)}function v(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(d){}return!1}var _=function(){function d(D){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=D.fetchSetup||h,this.controller=new self.AbortController,this.stats=new j.LoadStats}var R=d.prototype;return R.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},R.abortInternal=function(){var I=this.response;(!I||!I.ok)&&(this.stats.aborted=!0,this.controller.abort())},R.abort=function(){var I;this.abortInternal(),(I=this.callbacks)!==null&&I!==void 0&&I.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},R.load=function(I,N,S){var L=this,C=this.stats;if(C.loading.start)throw new Error("Loader can only be used once.");C.loading.start=self.performance.now();var b=g(I,this.controller.signal),E=S.onProgress,O=I.responseType==="arraybuffer",x=O?"byteLength":"length";this.context=I,this.config=N,this.callbacks=S,this.request=this.fetchSetup(I,b),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){L.abortInternal(),S.onTimeout(C,I,L.response)},N.timeout),self.fetch(this.request).then(function(k){if(L.response=L.loader=k,!k.ok){var Z=k.status,G=k.statusText;throw new c(G||"fetch, bad network response",Z,k)}return C.loading.first=Math.max(self.performance.now(),C.loading.start),C.total=parseInt(k.headers.get("Content-Length")||"0"),E&&Object(le.isFiniteNumber)(N.highWaterMark)?L.loadProgressively(k,C,I,N.highWaterMark,E):O?k.arrayBuffer():k.text()}).then(function(k){var Z=L.response;self.clearTimeout(L.requestTimeout),C.loading.end=Math.max(self.performance.now(),C.loading.first),C.loaded=C.total=k[x];var G={url:Z.url,data:k};E&&!Object(le.isFiniteNumber)(N.highWaterMark)&&E(C,I,k,Z),S.onSuccess(G,C,I,Z)}).catch(function(k){if(self.clearTimeout(L.requestTimeout),C.aborted)return;var Z=k.code||0;S.onError({code:Z,text:k.message},I,k.details)})},R.getCacheAge=function(){var I=null;if(this.response){var N=this.response.headers.get("age");I=N?parseFloat(N):null}return I},R.loadProgressively=function(I,N,S,L,C){L===void 0&&(L=0);var b=new W.default,E=I.body.getReader(),O=function x(){return E.read().then(function(k){if(k.done)return b.dataLength&&C(N,S,b.flush(),I),Promise.resolve(new ArrayBuffer(0));var Z=k.value,G=Z.length;return N.loaded+=G,G<L||b.dataLength?(b.push(Z),b.dataLength>=L&&C(N,S,b.flush(),I)):C(N,S,Z,I),x()}).catch(function(){return Promise.reject()})};return O()},d}();function g(d,R){var D={method:"GET",mode:"cors",credentials:"same-origin",signal:R,headers:new self.Headers(p({},d.headers))};return d.rangeEnd&&D.headers.set("Range","bytes="+d.rangeStart+"-"+String(d.rangeEnd-1)),D}function h(d,R){return new self.Request(d.url,R)}var c=function(d){oe(R,d);function R(D,I,N){var S;return S=d.call(this,D)||this,S.code=void 0,S.details=void 0,S.code=I,S.details=N,S}return R}(V(Error));ae.default=_},"./src/utils/imsc1-ttml-parser.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"IMSC1_CODEC",function(){return A}),X.d(ae,"parseIMSC1",function(){return v});var le=X("./src/utils/mp4-tools.ts"),j=X("./src/utils/vttparser.ts"),W=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 B(){return B=Object.assign||function(L){for(var C=1;C<arguments.length;C++){var b=arguments[C];for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(L[E]=b[E])}return L},B.apply(this,arguments)}var A="stpp.ttml.im1t",T=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,y=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,p={left:"start",center:"center",right:"end",start:"start",end:"end"};function v(L,C,b,E,O){var x=Object(le.findBox)(new Uint8Array(L),["mdat"]);if(x.length===0){O(new Error("Could not parse IMSC1 mdat"));return}var k=x[0],Z=Object(oe.utf8ArrayToStr)(new Uint8Array(L,k.start,k.end-k.start)),G=Object(V.toTimescaleFromScale)(C,1,b);try{E(_(Z,G))}catch(P){O(P)}}function _(L,C){var b=new DOMParser,E=b.parseFromString(L,"text/xml"),O=E.getElementsByTagName("tt")[0];if(!O)throw new Error("Invalid ttml");var x={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},k=Object.keys(x).reduce(function(Q,H){return Q[H]=O.getAttribute("ttp:"+H)||x[H],Q},{}),Z=O.getAttribute("xml:space")!=="preserve",G=h(g(O,"styling","style")),P=h(g(O,"layout","region")),z=g(O,"body","[begin]");return[].map.call(z,function(Q){var H=c(Q,Z);if(!H||!Q.hasAttribute("begin"))return null;var ne=I(Q.getAttribute("begin"),k),ce=I(Q.getAttribute("dur"),k),we=I(Q.getAttribute("end"),k);if(ne===null)throw D(Q);if(we===null){if(ce===null)throw D(Q);we=ne+ce}var Ce=new W.default(ne-C,we-C,H);Ce.id=Object(l.generateCueId)(Ce.startTime,Ce.endTime,Ce.text);var ze=P[Q.getAttribute("region")],Le=G[Q.getAttribute("style")];Ce.position=10,Ce.size=80;var We=d(ze,Le),Ve=We.textAlign;if(Ve){var $e=p[Ve];$e&&(Ce.lineAlign=$e),Ce.align=Ve}return B(Ce,We),Ce}).filter(function(Q){return Q!==null})}function g(L,C,b){var E=L.getElementsByTagName(C)[0];return E?[].slice.call(E.querySelectorAll(b)):[]}function h(L){return L.reduce(function(C,b){var E=b.getAttribute("xml:id");return E&&(C[E]=b),C},{})}function c(L,C){return[].slice.call(L.childNodes).reduce(function(b,E,O){var x;return E.nodeName==="br"&&O?b+`
`:(x=E.childNodes)!==null&&x!==void 0&&x.length?c(E,C):C?b+E.textContent.trim().replace(/\s+/g," "):b+E.textContent},"")}function d(L,C){var b="http://www.w3.org/ns/ttml#styling",E=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return E.reduce(function(O,x){var k=R(C,b,x)||R(L,b,x);return k&&(O[x]=k),O},{})}function R(L,C,b){return L.hasAttributeNS(C,b)?L.getAttributeNS(C,b):null}function D(L){return new Error("Could not parse ttml timestamp "+L)}function I(L,C){if(!L)return null;var b=Object(j.parseTimeStamp)(L);return b===null&&(T.test(L)?b=N(L,C):y.test(L)&&(b=S(L,C))),b}function N(L,C){var b=T.exec(L),E=(b[4]|0)+(b[5]|0)/C.subFrameRate;return(b[1]|0)*3600+(b[2]|0)*60+(b[3]|0)+E/C.frameRate}function S(L,C){var b=y.exec(L),E=Number(b[1]),O=b[2];switch(O){case"h":return E*3600;case"m":return E*60;case"ms":return E*1e3;case"f":return E/C.frameRate;case"t":return E/C.tickRate}return E}},"./src/utils/logger.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"enableLogs",function(){return l}),X.d(ae,"logger",function(){return B});var le=function(){},j={trace:le,debug:le,log:le,warn:le,info:le,error:le},W=j;function oe(A){var T=self.console[A];return T?T.bind(self.console,"["+A+"] >"):le}function V(A){for(var T=arguments.length,y=new Array(T>1?T-1:0),p=1;p<T;p++)y[p-1]=arguments[p];y.forEach(function(v){W[v]=A[v]?A[v].bind(A):oe(v)})}function l(A){if(self.console&&A===!0||typeof A=="object"){V(A,"debug","log","info","warn","error");try{W.log()}catch(T){W=j}}else W=j}var B=W},"./src/utils/mediakeys-helper.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"KeySystems",function(){return le}),X.d(ae,"requestMediaKeySystemAccess",function(){return j});var le;(function(W){W.WIDEVINE="com.widevine.alpha",W.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(Se,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(Se,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 B}),X.d(ae,"writeUint32",function(){return A}),X.d(ae,"findBox",function(){return T}),X.d(ae,"parseSegmentIndex",function(){return y}),X.d(ae,"parseInitSegment",function(){return p}),X.d(ae,"getStartDTS",function(){return v}),X.d(ae,"getDuration",function(){return _}),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"),W=Math.pow(2,32)-1,oe=[].push;function V(R){return String.fromCharCode.apply(null,R)}function l(R,D){"data"in R&&(D+=R.start,R=R.data);var I=R[D]<<8|R[D+1];return I<0?65536+I:I}function B(R,D){"data"in R&&(D+=R.start,R=R.data);var I=R[D]<<24|R[D+1]<<16|R[D+2]<<8|R[D+3];return I<0?4294967296+I:I}function A(R,D,I){"data"in R&&(D+=R.start,R=R.data),R[D]=I>>24,R[D+1]=I>>16&255,R[D+2]=I>>8&255,R[D+3]=I&255}function T(R,D){var I=[];if(!D.length)return I;var N,S,L;"data"in R?(N=R.data,S=R.start,L=R.end):(N=R,S=0,L=N.byteLength);for(var C=S;C<L;){var b=B(N,C),E=V(N.subarray(C+4,C+8)),O=b>1?C+b:L;if(E===D[0])if(D.length===1)I.push({data:N,start:C+8,end:O});else{var x=T({data:N,start:C+8,end:O},D.slice(1));x.length&&oe.apply(I,x)}C=O}return I}function y(R){var D=T(R,["moov"]),I=D[0],N=I?I.end:null,S=T(R,["sidx"]);if(!S||!S[0])return null;var L=[],C=S[0],b=C.data[0],E=b===0?8:16,O=B(C,E);E+=4;var x=0,k=0;b===0?E+=8:E+=16,E+=2;var Z=C.end+k,G=l(C,E);E+=2;for(var P=0;P<G;P++){var z=E,Q=B(C,z);z+=4;var H=Q&2147483647,ne=(Q&2147483648)>>>31;if(ne===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var ce=B(C,z);z+=4,L.push({referenceSize:H,subsegmentDuration:ce,info:{duration:ce/O,start:Z,end:Z+H-1}}),Z+=H,z+=4,E=z}return{earliestPresentationTime:x,timescale:O,version:b,referencesCount:G,references:L,moovEndOffset:N}}function p(R){for(var D=[],I=T(R,["moov","trak"]),N=0;N<I.length;N++){var S=I[N],L=T(S,["tkhd"])[0];if(L){var C=L.data[L.start],b=C===0?12:20,E=B(L,b),O=T(S,["mdia","mdhd"])[0];if(O){C=O.data[O.start],b=C===0?12:20;var x=B(O,b),k=T(S,["mdia","hdlr"])[0];if(k){var Z=V(k.data.subarray(k.start+8,k.start+12)),G={soun:j.ElementaryStreamTypes.AUDIO,vide:j.ElementaryStreamTypes.VIDEO}[Z];if(G){var P=T(S,["mdia","minf","stbl","stsd"])[0],z=void 0;P&&(z=V(P.data.subarray(P.start+12,P.start+16))),D[E]={timescale:x,type:G},D[G]={timescale:x,id:E,codec:z}}}}}}var Q=T(R,["moov","mvex","trex"]);return Q.forEach(function(H){var ne=B(H,4),ce=D[ne];ce&&(ce.default={duration:B(H,12),flags:B(H,20)})}),D}function v(R,D){return T(D,["moof","traf"]).reduce(function(I,N){var S=T(N,["tfdt"])[0],L=S.data[S.start],C=T(N,["tfhd"]).reduce(function(b,E){var O=B(E,4),x=R[O];if(x){var k=B(S,4);L===1&&(k*=Math.pow(2,32),k+=B(S,8));var Z=x.timescale||9e4,G=k/Z;if(isFinite(G)&&(b===null||G<b))return G}return b},null);return C!==null&&isFinite(C)&&(I===null||C<I)?C:I},null)||0}function _(R,D){for(var I=0,N=0,S=0,L=T(R,["moof","traf"]),C=0;C<L.length;C++){var b=L[C],E=T(b,["tfhd"])[0],O=B(E,4),x=D[O];if(!x)continue;var k=x.default,Z=B(E,0)|(k==null?void 0:k.flags),G=k==null?void 0:k.duration;Z&8&&(Z&2?G=B(E,12):G=B(E,8));for(var P=x.timescale||9e4,z=T(b,["trun"]),Q=0;Q<z.length;Q++){if(G){var H=B(z[Q],4);I=G*H}else I=g(z[Q]);x.type===j.ElementaryStreamTypes.VIDEO?N+=I/P:x.type===j.ElementaryStreamTypes.AUDIO&&(S+=I/P)}}if(N===0&&S===0){var ne=y(R);if(ne!=null&&ne.references)return ne.references.reduce(function(ce,we){return ce+we.info.duration||0},0)}return N||S}function g(R){var D=B(R,0),I=8;D&1&&(I+=4),D&4&&(I+=4);for(var N=0,S=B(R,4),L=0;L<S;L++){if(D&256){var C=B(R,I);N+=C,I+=4}D&512&&(I+=4),D&1024&&(I+=4),D&2048&&(I+=4)}return N}function h(R,D,I){T(D,["moof","traf"]).forEach(function(N){T(N,["tfhd"]).forEach(function(S){var L=B(S,4),C=R[L];if(!C)return;var b=C.timescale||9e4;T(N,["tfdt"]).forEach(function(E){var O=E.data[E.start],x=B(E,4);if(O===0)A(E,4,x-I*b);else{x*=Math.pow(2,32),x+=B(E,8),x-=I*b,x=Math.max(x,0);var k=Math.floor(x/(W+1)),Z=Math.floor(x%(W+1));A(E,4,k),A(E,8,Z)}})})})}function c(R){var D={valid:null,remainder:null},I=T(R,["moof"]);if(I){if(I.length<2)return D.remainder=R,D}else return D;var N=I[I.length-1];return D.valid=Object(le.sliceUint8)(R,0,N.start-8),D.remainder=Object(le.sliceUint8)(R,N.start-8),D}function d(R,D){var I=new Uint8Array(R.length+D.length);return I.set(R),I.set(D,R.length),I}},"./src/utils/output-filter.ts":function(Se,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 W=j.prototype;return W.dispatchCue=function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null},W.newCue=function(V,l,B){(this.startTime===null||this.startTime>V)&&(this.startTime=V),this.endTime=l,this.screen=B,this.timelineController.createCaptionsTrack(this.trackName)},W.reset=function(){this.cueRanges=[]},j}()},"./src/utils/texttrack-utils.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"sendAddTrackEvent",function(){return j}),X.d(ae,"addCueToTrack",function(){return W}),X.d(ae,"clearCurrentCues",function(){return oe}),X.d(ae,"removeCuesInRange",function(){return V}),X.d(ae,"getCuesInRange",function(){return B});var le=X("./src/utils/logger.ts");function j(A,T){var y;try{y=new Event("addtrack")}catch(p){y=document.createEvent("Event"),y.initEvent("addtrack",!1,!1)}y.track=A,T.dispatchEvent(y)}function W(A,T){var y=A.mode;if(y==="disabled"&&(A.mode="hidden"),A.cues&&!A.cues.getCueById(T.id))try{if(A.addCue(T),!A.cues.getCueById(T.id))throw new Error("addCue is failed for: "+T)}catch(v){le.logger.debug("[texttrack-utils]: "+v);var p=new self.TextTrackCue(T.startTime,T.endTime,T.text);p.id=T.id,A.addCue(p)}y==="disabled"&&(A.mode=y)}function oe(A){var T=A.mode;if(T==="disabled"&&(A.mode="hidden"),A.cues)for(var y=A.cues.length;y--;)A.removeCue(A.cues[y]);T==="disabled"&&(A.mode=T)}function V(A,T,y){var p=A.mode;if(p==="disabled"&&(A.mode="hidden"),A.cues&&A.cues.length>0)for(var v=B(A.cues,T,y),_=0;_<v.length;_++)A.removeCue(v[_]);p==="disabled"&&(A.mode=p)}function l(A,T){if(T<A[0].startTime)return 0;var y=A.length-1;if(T>A[y].endTime)return-1;for(var p=0,v=y;p<=v;){var _=Math.floor((v+p)/2);if(T<A[_].startTime)v=_-1;else if(T>A[_].startTime&&p<y)p=_+1;else return _}return A[p].startTime-T<T-A[v].startTime?p:v}function B(A,T,y){var p=[],v=l(A,T);if(v>-1)for(var _=v,g=A.length;_<g;_++){var h=A[_];if(h.startTime>=T&&h.endTime<=y)p.push(h);else if(h.startTime>y)return p}return p}},"./src/utils/time-ranges.ts":function(Se,ae,X){"use strict";X.r(ae);var le={toString:function(W){for(var oe="",V=W.length,l=0;l<V;l++)oe+="["+W.start(l).toFixed(3)+","+W.end(l).toFixed(3)+"]";return oe}};ae.default=le},"./src/utils/timescale-conversion.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"toTimescaleFromBase",function(){return j}),X.d(ae,"toTimescaleFromScale",function(){return W}),X.d(ae,"toMsFromMpegTsClock",function(){return oe}),X.d(ae,"toMpegTsClockFromTimescale",function(){return V});var le=9e4;function j(l,B,A,T){A===void 0&&(A=1),T===void 0&&(T=!1);var y=l*B*A;return T?Math.round(y):y}function W(l,B,A,T){return A===void 0&&(A=1),T===void 0&&(T=!1),j(l,B,1/A,T)}function oe(l,B){return B===void 0&&(B=!1),j(l,1e3,1/le,B)}function V(l,B){return B===void 0&&(B=1),j(l,le,1/B)}},"./src/utils/typed-array.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"sliceUint8",function(){return le});function le(j,W,oe){return Uint8Array.prototype.slice?j.slice(W,oe):new Uint8Array(Array.prototype.slice.call(j,W,oe))}},"./src/utils/vttcue.ts":function(Se,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 W(A,T){if(typeof T!="string")return!1;if(!Array.isArray(A))return!1;var y=T.toLowerCase();return~A.indexOf(y)?y:!1}function oe(A){return W(le,A)}function V(A){return W(j,A)}function l(A){for(var T=arguments.length,y=new Array(T>1?T-1:0),p=1;p<T;p++)y[p-1]=arguments[p];for(var v=1;v<arguments.length;v++){var _=arguments[v];for(var g in _)A[g]=_[g]}return A}function B(A,T,y){var p=this,v={enumerable:!0};p.hasBeenReset=!1;var _="",g=!1,h=A,c=T,d=y,R=null,D="",I=!0,N="auto",S="start",L=50,C="middle",b=50,E="middle";Object.defineProperty(p,"id",l({},v,{get:function(){return _},set:function(x){_=""+x}})),Object.defineProperty(p,"pauseOnExit",l({},v,{get:function(){return g},set:function(x){g=!!x}})),Object.defineProperty(p,"startTime",l({},v,{get:function(){return h},set:function(x){if(typeof x!="number")throw new TypeError("Start time must be set to a number.");h=x,this.hasBeenReset=!0}})),Object.defineProperty(p,"endTime",l({},v,{get:function(){return c},set:function(x){if(typeof x!="number")throw new TypeError("End time must be set to a number.");c=x,this.hasBeenReset=!0}})),Object.defineProperty(p,"text",l({},v,{get:function(){return d},set:function(x){d=""+x,this.hasBeenReset=!0}})),Object.defineProperty(p,"region",l({},v,{get:function(){return R},set:function(x){R=x,this.hasBeenReset=!0}})),Object.defineProperty(p,"vertical",l({},v,{get:function(){return D},set:function(x){var k=oe(x);if(k===!1)throw new SyntaxError("An invalid or illegal string was specified.");D=k,this.hasBeenReset=!0}})),Object.defineProperty(p,"snapToLines",l({},v,{get:function(){return I},set:function(x){I=!!x,this.hasBeenReset=!0}})),Object.defineProperty(p,"line",l({},v,{get:function(){return N},set:function(x){if(typeof x!="number"&&x!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");N=x,this.hasBeenReset=!0}})),Object.defineProperty(p,"lineAlign",l({},v,{get:function(){return S},set:function(x){var k=V(x);if(!k)throw new SyntaxError("An invalid or illegal string was specified.");S=k,this.hasBeenReset=!0}})),Object.defineProperty(p,"position",l({},v,{get:function(){return L},set:function(x){if(x<0||x>100)throw new Error("Position must be between 0 and 100.");L=x,this.hasBeenReset=!0}})),Object.defineProperty(p,"positionAlign",l({},v,{get:function(){return C},set:function(x){var k=V(x);if(!k)throw new SyntaxError("An invalid or illegal string was specified.");C=k,this.hasBeenReset=!0}})),Object.defineProperty(p,"size",l({},v,{get:function(){return b},set:function(x){if(x<0||x>100)throw new Error("Size must be between 0 and 100.");b=x,this.hasBeenReset=!0}})),Object.defineProperty(p,"align",l({},v,{get:function(){return E},set:function(x){var k=V(x);if(!k)throw new SyntaxError("An invalid or illegal string was specified.");E=k,this.hasBeenReset=!0}})),p.displayState=void 0}return B.prototype.getCueAsHTML=function(){var A=self.WebVTT;return A.convertCueToDOMTree(self,this.text)},B}()},"./src/utils/vttparser.ts":function(Se,ae,X){"use strict";X.r(ae),X.d(ae,"parseTimeStamp",function(){return W}),X.d(ae,"fixLineBreaks",function(){return T}),X.d(ae,"VTTParser",function(){return y});var le=X("./src/utils/vttcue.ts"),j=function(){function p(){}var v=p.prototype;return v.decode=function(g,h){if(!g)return"";if(typeof g!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(g))},p}();function W(p){function v(g,h,c,d){return(g|0)*3600+(h|0)*60+(c|0)+parseFloat(d||0)}var _=p.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return _?parseFloat(_[2])>59?v(_[2],_[3],0,_[4]):v(_[1],_[2],_[3],_[4]):null}var oe=function(){function p(){this.values=Object.create(null)}var v=p.prototype;return v.set=function(g,h){!this.get(g)&&h!==""&&(this.values[g]=h)},v.get=function(g,h,c){return c?this.has(g)?this.values[g]:h[c]:this.has(g)?this.values[g]:h},v.has=function(g){return g in this.values},v.alt=function(g,h,c){for(var d=0;d<c.length;++d)if(h===c[d]){this.set(g,h);break}},v.integer=function(g,h){/^-?\d+$/.test(h)&&this.set(g,parseInt(h,10))},v.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,v,_,g){var h=g?p.split(g):[p];for(var c in h){if(typeof h[c]!="string")continue;var d=h[c].split(_);if(d.length!==2)continue;var R=d[0],D=d[1];v(R,D)}}var l=new le.default(0,0,""),B=l.align==="middle"?"middle":"center";function A(p,v,_){var g=p;function h(){var R=W(p);if(R===null)throw new Error("Malformed timestamp: "+g);return p=p.replace(/^[^\sa-zA-Z-]+/,""),R}function c(R,D){var I=new oe;V(R,function(L,C){var b;switch(L){case"region":for(var E=_.length-1;E>=0;E--)if(_[E].id===C){I.set(L,_[E].region);break}break;case"vertical":I.alt(L,C,["rl","lr"]);break;case"line":b=C.split(","),I.integer(L,b[0]),I.percent(L,b[0])&&I.set("snapToLines",!1),I.alt(L,b[0],["auto"]),b.length===2&&I.alt("lineAlign",b[1],["start",B,"end"]);break;case"position":b=C.split(","),I.percent(L,b[0]),b.length===2&&I.alt("positionAlign",b[1],["start",B,"end","line-left","line-right","auto"]);break;case"size":I.percent(L,C);break;case"align":I.alt(L,C,["start",B,"end","left","right"]);break}},/:/,/\s/),D.region=I.get("region",null),D.vertical=I.get("vertical","");var N=I.get("line","auto");N==="auto"&&l.line===-1&&(N=-1),D.line=N,D.lineAlign=I.get("lineAlign","start"),D.snapToLines=I.get("snapToLines",!0),D.size=I.get("size",100),D.align=I.get("align",B);var S=I.get("position","auto");S==="auto"&&l.position===50&&(S=D.align==="start"||D.align==="left"?0:D.align==="end"||D.align==="right"?100:50),D.position=S}function d(){p=p.replace(/^\s+/,"")}if(d(),v.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(),v.endTime=h(),d(),c(p,v)}function T(p){return p.replace(/<br(?: \/)?>/gi,`
`)}var y=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 v=p.prototype;return v.parse=function(g){var h=this;g&&(h.buffer+=h.decoder.decode(g,{stream:!0}));function c(){var S=h.buffer,L=0;for(S=T(S);L<S.length&&S[L]!=="\r"&&S[L]!==`
`;)++L;var C=S.substr(0,L);return S[L]==="\r"&&++L,S[L]===`
`&&++L,h.buffer=S.substr(L),C}function d(S){V(S,function(L,C){},/:/)}try{var R="";if(h.state==="INITIAL"){if(!/\r\n|\n/.test(h.buffer))return this;R=c();var D=R.match(/^()?WEBVTT([ \t].*)?$/);if(!D||!D[0])throw new Error("Malformed WebVTT signature.");h.state="HEADER"}for(var I=!1;h.buffer;){if(!/\r\n|\n/.test(h.buffer))return this;I?I=!1:R=c();switch(h.state){case"HEADER":/:/.test(R)?d(R):R||(h.state="ID");continue;case"NOTE":R||(h.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(R)){h.state="NOTE";break}if(!R)continue;if(h.cue=new le.default(0,0,""),h.state="CUE",R.indexOf("-->")===-1){h.cue.id=R;continue}case"CUE":if(!h.cue){h.state="BADCUE";continue}try{A(R,h.cue,h.regionList)}catch(S){h.cue=null,h.state="BADCUE";continue}h.state="CUETEXT";continue;case"CUETEXT":{var N=R.indexOf("-->")!==-1;if(!R||N&&(I=!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+=R}continue;case"BADCUE":R||(h.state="ID")}}}catch(S){h.state==="CUETEXT"&&h.cue&&h.oncue&&h.oncue(h.cue),h.cue=null,h.state=h.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},v.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(Se,ae,X){"use strict";X.r(ae),X.d(ae,"generateCueId",function(){return y}),X.d(ae,"parseWebVTT",function(){return v});var le=X("./src/polyfills/number.ts"),j=X("./src/utils/vttparser.ts"),W=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,B=function(g,h,c){return c===void 0&&(c=0),g.substr(c,h.length)===h},A=function(g){var h=parseInt(g.substr(-3)),c=parseInt(g.substr(-6,2)),d=parseInt(g.substr(-9,2)),R=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)(R))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+g);return h+=1e3*c,h+=60*1e3*d,h+=60*60*1e3*R,h},T=function(g){for(var h=5381,c=g.length;c;)h=h*33^g.charCodeAt(--c);return(h>>>0).toString()};function y(_,g,h){return T(_.toString())+T(g.toString())+T(h)}var p=function(g,h,c){var d=g[h],R=g[d.prevCC];if(!R||!R.new&&d.new){g.ccOffset=g.presentationOffset=d.start,d.new=!1;return}for(;(D=R)!==null&&D!==void 0&&D.new;){var D;g.ccOffset+=d.start-R.start,d.new=!1,d=R,R=g[d.prevCC]}g.presentationOffset=c};function v(_,g,h,c,d,R,D,I){var N=new j.VTTParser,S=Object(W.utf8ArrayToStr)(new Uint8Array(_)).trim().replace(l,`
`).split(`
`),L=[],C=Object(oe.toMpegTsClockFromTimescale)(g,h),b="00:00.000",E=0,O=0,x,k=!0,Z=!1;N.oncue=function(G){var P=c[d],z=c.ccOffset,Q=(E-C)/9e4;if(P!=null&&P.new&&(O!==void 0?z=c.ccOffset=P.start:p(c,d,Q)),Q&&(z=Q-c.presentationOffset),Z){var H=G.endTime-G.startTime,ne=Object(V.normalizePts)((G.startTime+z-O)*9e4,R*9e4)/9e4;G.startTime=ne,G.endTime=ne+H}var ce=G.text.trim();G.text=decodeURIComponent(encodeURIComponent(ce)),G.id||(G.id=y(G.startTime,G.endTime,ce)),G.endTime>0&&L.push(G)},N.onparsingerror=function(G){x=G},N.onflush=function(){if(x){I(x);return}D(L)},S.forEach(function(G){if(k)if(B(G,"X-TIMESTAMP-MAP=")){k=!1,Z=!0,G.substr(16).split(",").forEach(function(P){B(P,"LOCAL:")?b=P.substr(6):B(P,"MPEGTS:")&&(E=parseInt(P.substr(7)))});try{O=A(b)/1e3}catch(P){Z=!1,x=P}return}else G===""&&(k=!1);N.parse(G+`
`)}),N.flush()}},"./src/utils/xhr-loader.ts":function(Se,ae,X){"use strict";X.r(ae);var le=X("./src/utils/logger.ts"),j=X("./src/loader/load-stats.ts"),W=/^age:\s*[\d.]+\s*$/m,oe=function(){function V(B){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=B?B.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 A=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),A&&(A.onreadystatechange=null,A.onprogress=null,A.readyState!==4&&(this.stats.aborted=!0,A.abort()))},l.abort=function(){var A;this.abortInternal(),(A=this.callbacks)!==null&&A!==void 0&&A.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},l.load=function(A,T,y){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=A,this.config=T,this.callbacks=y,this.retryDelay=T.retryDelay,this.loadInternal()},l.loadInternal=function(){var A=this.config,T=this.context;if(!A)return;var y=this.loader=new self.XMLHttpRequest,p=this.stats;p.loading.first=0,p.loaded=0;var v=this.xhrSetup;try{if(v)try{v(y,T.url)}catch(h){y.open("GET",T.url,!0),v(y,T.url)}y.readyState||y.open("GET",T.url,!0);var _=this.context.headers;if(_)for(var g in _)y.setRequestHeader(g,_[g])}catch(h){this.callbacks.onError({code:y.status,text:h.message},T,y);return}T.rangeEnd&&y.setRequestHeader("Range","bytes="+T.rangeStart+"-"+(T.rangeEnd-1)),y.onreadystatechange=this.readystatechange.bind(this),y.onprogress=this.loadprogress.bind(this),y.responseType=T.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),A.timeout),y.send()},l.readystatechange=function(){var A=this.context,T=this.loader,y=this.stats;if(!A||!T)return;var p=T.readyState,v=this.config;if(y.aborted)return;if(p>=2)if(self.clearTimeout(this.requestTimeout),y.loading.first===0&&(y.loading.first=Math.max(self.performance.now(),y.loading.start)),p===4){T.onreadystatechange=null,T.onprogress=null;var _=T.status;if(_>=200&&_<300){y.loading.end=Math.max(self.performance.now(),y.loading.first);var g,h;if(A.responseType==="arraybuffer"?(g=T.response,h=g.byteLength):(g=T.responseText,h=g.length),y.loaded=y.total=h,!this.callbacks)return;var c=this.callbacks.onProgress;if(c&&c(y,A,g,T),!this.callbacks)return;var d={url:T.responseURL,data:g};this.callbacks.onSuccess(d,y,A,T)}else y.retry>=v.maxRetry||_>=400&&_<499?(le.logger.error(_+" while loading "+A.url),this.callbacks.onError({code:_,text:T.statusText},A,T)):(le.logger.warn(_+" while loading "+A.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,v.maxRetryDelay),y.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),v.timeout)},l.loadtimeout=function(){le.logger.warn("timeout while loading "+this.context.url);var A=this.callbacks;A&&(this.abortInternal(),A.onTimeout(this.stats,this.context,this.loader))},l.loadprogress=function(A){var T=this.stats;T.loaded=A.loaded,A.lengthComputable&&(T.total=A.total)},l.getCacheAge=function(){var A=null;if(this.loader&&W.test(this.loader.getAllResponseHeaders())){var T=this.loader.getResponseHeader("age");A=T?parseFloat(T):null}return A},V}();ae.default=oe}}).default})},vHTk:function(Ot,Ne,ie){Ot.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},xiVL:function(Ot,Ne){Ot.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(Ot,Ne,ie){"use strict";(function(Se){ie.d(Ne,"a",function(){return Bye}),ie.d(Ne,"b",function(){return jye});var ae=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Se!="undefined"?Se: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,W,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,B=l.apply,A=l.bind,T=l.call,y=typeof Reflect=="object"&&Reflect.apply||(A?T.bind(B):function(){return T.apply(B,arguments)}),p=Function.prototype,v=p.bind,_=p.call,g=v&&v.bind(_),h=v?function(e){return e&&g(_,e)}:function(e){return e&&function(){return _.apply(e,arguments)}},c=function(e){return typeof e=="function"},d=function(e){try{return!!e()}catch(t){return!0}},R=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),D=Function.prototype.call,I=D.bind?D.bind(D):function(){return D.apply(D,arguments)},N={}.propertyIsEnumerable,S=Object.getOwnPropertyDescriptor,L=S&&!N.call({1:2},1)?function(e){var t=S(this,e);return!!t&&t.enumerable}:N,C={f:L},b=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},E=h({}.toString),O=h("".slice),x=function(e){return O(E(e),8,-1)},k=V.Object,Z=h("".split),G=d(function(){return!k("z").propertyIsEnumerable(0)})?function(e){return x(e)=="String"?Z(e,""):k(e)}:k,P=V.TypeError,z=function(e){if(e==null)throw P("Can't call method on "+e);return e},Q=function(e){return G(z(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),ze=we("navigator","userAgent")||"",Le=V.process,We=V.Deno,Ve=Le&&Le.versions||We&&We.version,$e=Ve&&Ve.v8;$e&&(W=(j=$e.split("."))[0]>0&&j[0]<4?1:+(j[0]+j[1])),!W&&ze&&(!(j=ze.match(/Edge\/(\d+)/))||j[1]>=74)&&(j=ze.match(/Chrome\/(\d+)/))&&(W=+j[1]);var Pe,se=W,w=!!Object.getOwnPropertySymbols&&!d(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&se&&se<41}),F=w&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Y=V.Object,ue=F?function(e){return typeof e=="symbol"}:function(e){var t=we("Symbol");return c(t)&&Ce(t.prototype,Y(e))},q=V.String,xe=function(e){try{return q(e)}catch(t){return"Object"}},Be=V.TypeError,it=function(e){if(c(e))return e;throw Be(xe(e)+" is not a function")},be=function(e,t){var n=e[t];return n==null?void 0:it(n)},Re=V.TypeError,je=Object.defineProperty,Ye=V["__core-js_shared__"]||function(e,t){try{je(V,e,{value:t,configurable:!0,writable:!0})}catch(n){V[e]=t}return t}("__core-js_shared__",{}),ft=le(function(e){(e.exports=function(t,n){return Ye[t]||(Ye[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Rt=V.Object,Jt=function(e){return Rt(z(e))},Wt=h({}.hasOwnProperty),Nt=Object.hasOwn||function(e,t){return Wt(Jt(e),t)},sn=0,an=Math.random(),zt=h(1 .toString),mn=function(e){return"Symbol("+(e===void 0?"":e)+")_"+zt(++sn+an,36)},xn=ft("wks"),Te=V.Symbol,fe=Te&&Te.for,pe=F?Te:Te&&Te.withoutSetter||mn,ve=function(e){if(!Nt(xn,e)||!w&&typeof xn[e]!="string"){var t="Symbol."+e;w&&Nt(Te,e)?xn[e]=Te[e]:xn[e]=F&&fe?fe(t):pe(t)}return xn[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=I(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=I(o,i)))return s;if(c(o=i.valueOf)&&!H(s=I(o,i)))return s;if(a!=="string"&&c(o=i.toString)&&!H(s=I(o,i)))return s;throw Re("Can't convert object to primitive value")}(e,t)},Ie=function(e){var t=ye(e,"string");return ue(t)?t:t+""},Me=V.document,et=H(Me)&&H(Me.createElement),qe=function(e){return et?Me.createElement(e):{}},Tt=!R&&!d(function(){return Object.defineProperty(qe("div"),"a",{get:function(){return 7}}).a!=7}),cn=Object.getOwnPropertyDescriptor,kn=R?cn:function(e,t){if(e=Q(e),t=Ie(t),Tt)try{return cn(e,t)}catch(n){}if(Nt(e,t))return b(!I(C.f,e,t),e[t])},On={f:kn},Qt=/#|\.prototype\./,ht=function(e,t){var n=ut[yt(e)];return n==Ue||n!=Ae&&(c(t)?d(t):!!t)},yt=ht.normalize=function(e){return String(e).replace(Qt,".").toLowerCase()},ut=ht.data={},Ae=ht.NATIVE="N",Ue=ht.POLYFILL="P",vt=ht,dt=h(h.bind),en=function(e,t){return it(e),t===void 0?e:dt?dt(e,t):function(){return e.apply(t,arguments)}},rn=V.String,Et=V.TypeError,It=function(e){if(H(e))return e;throw Et(rn(e)+" is not an object")},Ct=V.TypeError,nt=Object.defineProperty,Bt=R?nt:function(e,t,n){if(It(e),t=Ie(t),It(n),Tt)try{return nt(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},$t={f:Bt},ln=R?function(e,t,n){return $t.f(e,t,b(1,n))}:function(e,t,n){return e[t]=n,e},Xn=On.f,In=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 y(e,this,arguments)};return t.prototype=e.prototype,t},dn=function(e,t){var n,r,i,a,o,s,u,f,m=e.target,M=e.global,K=e.stat,U=e.proto,re=M?V:K?V[m]:(V[m]||{}).prototype,$=M?ne:ne[m]||ln(ne,m,{})[m],ee=$.prototype;for(i in t)n=!vt(M?i:m+(K?".":"#")+i,e.forced)&&re&&Nt(re,i),o=$[i],n&&(s=e.noTargetGet?(f=Xn(re,i))&&f.value:re[i]),a=n&&s?s:t[i],n&&typeof o==typeof a||(u=e.bind&&n?en(a,V):e.wrap&&n?In(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)))},An=ft("keys"),gn=function(e){return An[e]||(An[e]=mn(e))},Un=!d(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Hn=gn("IE_PROTO"),ar=V.Object,hr=ar.prototype,Ir=Un?ar.getPrototypeOf:function(e){var t=Jt(e);if(Nt(t,Hn))return t[Hn];var n=t.constructor;return c(n)&&t instanceof n?n.prototype:t instanceof ar?hr:null},si=V.String,li=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 It(r),function(a){if(typeof a=="object"||c(a))return a;throw li("Can't set "+si(a)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),Ar=Math.ceil,Kr=Math.floor,sa=function(e){var t=+e;return t!=t||t===0?0:(t>0?Kr:Ar)(t)},ai=Math.max,Fn=Math.min,or=function(e,t){var n=sa(e);return n<0?ai(n+t,0):Fn(n,t)},Qn=Math.min,Mn=function(e){return(t=e.length)>0?Qn(sa(t),9007199254740991):0;var t},qr=function(e){return function(t,n,r){var i,a=Q(t),o=Mn(a),s=or(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}},Lr={includes:qr(!0),indexOf:qr(!1)},ja={},Tu=Lr.indexOf,ol=h([].push),td=function(e,t){var n,r=Q(e),i=0,a=[];for(n in r)!Nt(ja,n)&&Nt(r,n)&&ol(a,n);for(;t.length>i;)Nt(r,n=t[i++])&&(~Tu(a,n)||ol(a,n));return a},qa=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],q_=qa.concat("length","prototype"),Rh=Object.getOwnPropertyNames||function(e){return td(e,q_)},nd={f:Rh},Ih={f:Object.getOwnPropertySymbols},ex=h([].concat),tx=we("Reflect","ownKeys")||function(e){var t=nd.f(It(e)),n=Ih.f;return n?ex(t,n(e)):t},Wp=Object.keys||function(e){return td(e,qa)},nx=R?Object.defineProperties:function(e,t){It(e);for(var n,r=Q(t),i=Wp(t),a=i.length,o=0;a>o;)$t.f(e,n=i[o++],r[n]);return e},rx=we("document","documentElement"),F0=gn("IE_PROTO"),Lh=function(){},zp=function(e){return"<script>"+e+"</script>"},B0=function(e){e.write(zp("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ph=function(){try{Pe=new ActiveXObject("htmlfile")}catch(r){}var e,t;Ph=typeof document!="undefined"?document.domain&&Pe?B0(Pe):((t=qe("iframe")).style.display="none",rx.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(zp("document.F=Object")),e.close(),e.F):B0(Pe);for(var n=qa.length;n--;)delete Ph.prototype[qa[n]];return Ph()};ja[F0]=!0;var ks=Object.create||function(e,t){var n;return e!==null?(Lh.prototype=It(e),n=new Lh,Lh.prototype=null,n[F0]=e):n=Ph(),t===void 0?n:nx(n,t)},j0=function(e,t,n){var r=Ie(t);r in e?$t.f(e,r,b(0,n)):e[r]=n},de=V.Array,Fe=Math.max,Je=function(e,t,n){for(var r=Mn(e),i=or(t,r),a=or(n===void 0?r:n,r),o=de(Fe(a-i,0)),s=0;i<a;i++,s++)j0(o,s,e[i]);return o.length=s,o},Xe=h("".replace),pt=h("".split),lt=h([].join),mt=String(Error("zxcasd").stack),Dt=/\n\s*at [^:]*:[^\n]*/,Gt=Dt.test(mt),Kt=/@[^\n]*\n/.test(mt)&&!/zxcasd/.test(mt),nn=function(e,t){if(typeof e!="string")return e;if(Gt)for(;t--;)e=Xe(e,Dt,"");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]",En=ve("toStringTag"),Cn=V.Object,Zn=x(function(){return arguments}())=="Arguments",vr=Vt?x: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=Cn(e),En))=="string"?n:Zn?x(t):(r=x(t))=="Object"&&c(t.callee)?"Arguments":r},Gn=ve("iterator"),Jn=function(e){if(e!=null)return be(e,Gn)||be(e,"@@iterator")||gt[vr(e)]},lr=V.TypeError,sr=function(e,t,n){var r,i;It(e);try{if(!(r=be(e,"return"))){if(t==="throw")throw n;return n}r=I(r,e)}catch(a){i=!0,r=a}if(t==="throw")throw n;if(i)throw r;return It(r),n},Yi=V.TypeError,Ai=function(e,t){this.stopped=e,this.result=t},Ua=Ai.prototype,Pi=function(e,t,n){var r,i,a,o,s,u,f,m=n&&n.that,M=!(!n||!n.AS_ENTRIES),K=!(!n||!n.IS_ITERATOR),U=!(!n||!n.INTERRUPTED),re=en(t,m),$=function(te){return r&&sr(r,"normal",te),new Ai(!0,te)},ee=function(te){return M?(It(te),U?re(te[0],te[1],$):re(te[0],te[1])):U?re(te,$):re(te)};if(K)r=e;else{if(!(i=Jn(e)))throw Yi(xe(e)+" is not iterable");if(function(te){return te!==void 0&&(gt.Array===te||Pt[Xt]===te)}(i)){for(a=0,o=Mn(e);o>a;a++)if((s=ee(e[a]))&&Ce(Ua,s))return s;return new Ai(!1)}r=function(te,J){var he=arguments.length<2?Jn(te):J;if(it(he))return It(I(he,te));throw lr(xe(te)+" is not iterable")}(e,i)}for(u=r.next;!(f=I(u,r)).done;){try{s=ee(f.value)}catch(te){sr(r,"throw",te)}if(typeof s=="object"&&s&&Ce(Ua,s))return s}return new Ai(!1)},xa=V.String,ki=function(e){if(vr(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return xa(e)},ns=function(e,t){return e===void 0?arguments.length<2?"":t:ki(e)},rs=!d(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",b(1,7)),e.stack!==7)}),is=ve("toStringTag"),mo=V.Error,as=[].push,Ha=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=Ce(os,this);_n?n=_n(new mo(void 0),i?Ir(this):os):(n=i?this:ks(os),ln(n,is,"Error")),ln(n,"message",ns(t,"")),rs&&ln(n,"stack",nn(n.stack,1)),Zt(n,r);var a=[];return Pi(e,as,{that:a}),ln(n,"errors",a),n};_n?_n(Ha,mo):function(e,t){for(var n=tx(t),r=$t.f,i=On.f,a=0;a<n.length;a++){var o=n[a];Nt(e,o)||r(e,o,i(t,o))}}(Ha,mo);var os=Ha.prototype=ks(mo.prototype,{constructor:b(1,Ha),message:b(1,""),name:b(1,"AggregateError")});dn({global:!0},{AggregateError:Ha});var ko=h(Function.toString);c(Ye.inspectSource)||(Ye.inspectSource=function(e){return ko(e)});var Mo,Pr,Vr,yi=Ye.inspectSource,Wa=V.WeakMap,Ra=c(Wa)&&/native code/.test(yi(Wa)),Xi=V.TypeError,eo=V.WeakMap;if(Ra||Ye.state){var Ji=Ye.state||(Ye.state=new eo),za=h(Ji.get),Ms=h(Ji.has),xo=h(Ji.set);Mo=function(e,t){if(Ms(Ji,e))throw new Xi("Object already initialized");return t.facade=e,xo(Ji,e,t),t},Pr=function(e){return za(Ji,e)||{}},Vr=function(e){return Ms(Ji,e)}}else{var go=gn("state");ja[go]=!0,Mo=function(e,t){if(Nt(e,go))throw new Xi("Object already initialized");return t.facade=e,ln(e,go,t),t},Pr=function(e){return Nt(e,go)?e[go]:{}},Vr=function(e){return Nt(e,go)}}var bi,wo,Gl,la={set:Mo,get:Pr,has:Vr,enforce:function(e){return Vr(e)?Pr(e):Mo(e,{})},getterFor:function(e){return function(t){var n;if(!H(t)||(n=Pr(t)).type!==e)throw Xi("Incompatible receiver, "+e+" required");return n}}},to=Function.prototype,Kl=R&&Object.getOwnPropertyDescriptor,Ga=Nt(to,"name"),No={EXISTS:Ga,PROPER:Ga&&function(){}.name==="something",CONFIGURABLE:Ga&&(!R||R&&Kl(to,"name").configurable)},Mi=function(e,t,n,r){r&&r.enumerable?e[t]=n:ln(e,t,n)},Qi=ve("iterator"),wa=!1;[].keys&&("next"in(Gl=[].keys())?(wo=Ir(Ir(Gl)))!==Object.prototype&&(bi=wo):wa=!0);var ss=bi==null||d(function(){var e={};return bi[Qi].call(e)!==e});bi=ss?{}:ks(bi),c(bi[Qi])||Mi(bi,Qi,function(){return this});var Zi={IteratorPrototype:bi,BUGGY_SAFARI_ITERATORS:wa},Fo=Vt?{}.toString:function(){return"[object "+vr(this)+"]"},$i=$t.f,sl=ve("toStringTag"),To=function(e,t,n,r){if(e){var i=n?e:e.prototype;Nt(i,sl)||$i(i,sl,{configurable:!0,value:t}),r&&!Vt&&ln(i,"toString",Fo)}},ur=Zi.IteratorPrototype,Su=function(){return this},vo=No.PROPER,Yr=Zi.BUGGY_SAFARI_ITERATORS,ua=ve("iterator"),ls=function(){return this},Ei=function(e,t,n,r,i,a,o){!function(te,J,he,me){var _e=J+" Iterator";te.prototype=ks(ur,{next:b(+!me,he)}),To(te,_e,!1,!0),gt[_e]=Su}(n,t,r);var s,u,f,m=function(te){if(te===i&&$)return $;if(!Yr&&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)}},M=t+" Iterator",K=!1,U=e.prototype,re=U[ua]||U["@@iterator"]||i&&U[i],$=!Yr&&re||m(i),ee=t=="Array"&&U.entries||re;if(ee&&(s=Ir(ee.call(new e)))!==Object.prototype&&s.next&&(To(s,M,!0,!0),gt[M]=ls),vo&&i=="values"&&re&&re.name!=="values"&&(K=!0,$=function(){return I(re,this)}),i)if(u={values:m("values"),keys:a?$:m("keys"),entries:m("entries")},o)for(f in u)(Yr||K||!(f in U))&&Mi(U,f,u[f]);else dn({target:t,proto:!0,forced:Yr||K},u);return o&&U[ua]!==$&&Mi(U,ua,$,{name:i}),gt[t]=$,u},ca=la.set,Ka=la.getterFor("Array Iterator");Ei(Array,"Array",function(e,t){ca(this,{type:"Array Iterator",target:Q(e),index:0,kind:t})},function(){var e=Ka(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 ll=h("".charAt),ul=h("".charCodeAt),us=h("".slice),cl=function(e){return function(t,n){var r,i,a=ki(z(t)),o=sa(n),s=a.length;return o<0||o>=s?e?"":void 0:(r=ul(a,o))<55296||r>56319||o+1===s||(i=ul(a,o+1))<56320||i>57343?e?ll(a,o):r:e?us(a,o,o+2):i-56320+(r-55296<<10)+65536}},dl={codeAt:cl(!1),charAt:cl(!0)}.charAt,Ni=la.set,yo=la.getterFor("String Iterator");Ei(String,"String",function(e){Ni(this,{type:"String Iterator",string:ki(e),index:0})},function(){var e,t=yo(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=dl(n,r),t.index+=e.length,{value:e,done:!1})});var _i=ne.AggregateError,Bn=ve("toStringTag");for(var kr 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 no=V[kr],Cu=no&&no.prototype;Cu&&vr(Cu)!==Bn&&ln(Cu,Bn,kr),gt[kr]=gt.Array}var cs,Vl,kh=_i,Ns=function(e){return e&&e.Math==Math&&e},qn=Ns(typeof globalThis=="object"&&globalThis)||Ns(typeof window=="object"&&window)||Ns(typeof self=="object"&&self)||Ns(typeof ae=="object"&&ae)||function(){return this}()||Function("return this")(),Fi=function(e){try{return!!e()}catch(t){return!0}},pi=!Fi(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),xi=Function.prototype.call,$n=xi.bind?xi.bind(xi):function(){return xi.apply(xi,arguments)},Fs={}.propertyIsEnumerable,U0=Object.getOwnPropertyDescriptor,H0=U0&&!Fs.call({1:2},1)?function(e){var t=U0(this,e);return!!t&&t.enumerable}:Fs,ix={f:H0},hl=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Gp=Function.prototype,fl=Gp.bind,rd=Gp.call,id=fl&&fl.bind(rd),Qr=fl?function(e){return e&&id(rd,e)}:function(e){return e&&function(){return rd.apply(e,arguments)}},W0=Qr({}.toString),ax=Qr("".slice),pl=function(e){return ax(W0(e),8,-1)},Au=qn.Object,ox=Qr("".split),z0=Fi(function(){return!Au("z").propertyIsEnumerable(0)})?function(e){return pl(e)=="String"?ox(e,""):Au(e)}:Au,G0=qn.TypeError,Yl=function(e){if(e==null)throw G0("Can't call method on "+e);return e},Ou=function(e){return z0(Yl(e))},Bi=function(e){return typeof e=="function"},Bo=function(e){return typeof e=="object"?e!==null:Bi(e)},Kp=function(e){return Bi(e)?e:void 0},ml=function(e,t){return arguments.length<2?Kp(qn[e]):qn[e]&&qn[e][t]},ad=Qr({}.isPrototypeOf),Mh=ml("navigator","userAgent")||"",K0=qn.process,Nh=qn.Deno,od=K0&&K0.versions||Nh&&Nh.version,Vp=od&&od.v8;Vp&&(Vl=(cs=Vp.split("."))[0]>0&&cs[0]<4?1:+(cs[0]+cs[1])),!Vl&&Mh&&(!(cs=Mh.match(/Edge\/(\d+)/))||cs[1]>=74)&&(cs=Mh.match(/Chrome\/(\d+)/))&&(Vl=+cs[1]);var Yp=Vl,Xp=!!Object.getOwnPropertySymbols&&!Fi(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Yp&&Yp<41}),Fh=Xp&&!Symbol.sham&&typeof Symbol.iterator=="symbol",sx=qn.Object,Bh=Fh?function(e){return typeof e=="symbol"}:function(e){var t=ml("Symbol");return Bi(t)&&ad(t.prototype,sx(e))},lx=qn.String,jh=function(e){try{return lx(e)}catch(t){return"Object"}},Du=qn.TypeError,Uh=function(e){if(Bi(e))return e;throw Du(jh(e)+" is not a function")},sd=function(e,t){var n=e[t];return n==null?void 0:Uh(n)},Jp=qn.TypeError,V0=Object.defineProperty,Qp=function(e,t){try{V0(qn,e,{value:t,configurable:!0,writable:!0})}catch(n){qn[e]=t}return t},Bs=qn["__core-js_shared__"]||Qp("__core-js_shared__",{}),Zp=le(function(e){(e.exports=function(t,n){return Bs[t]||(Bs[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),$p=qn.Object,Hh=function(e){return $p(Yl(e))},ux=Qr({}.hasOwnProperty),Va=Object.hasOwn||function(e,t){return ux(Hh(e),t)},cx=0,dx=Math.random(),Y0=Qr(1 .toString),X0=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Y0(++cx+dx,36)},Ru=Zp("wks"),Xl=qn.Symbol,qp=Xl&&Xl.for,J0=Fh?Xl:Xl&&Xl.withoutSetter||X0,Ia=function(e){if(!Va(Ru,e)||!Xp&&typeof Ru[e]!="string"){var t="Symbol."+e;Xp&&Va(Xl,e)?Ru[e]=Xl[e]:Ru[e]=Fh&&qp?qp(t):J0(t)}return Ru[e]},hx=qn.TypeError,Q0=Ia("toPrimitive"),fx=function(e,t){if(!Bo(e)||Bh(e))return e;var n,r=sd(e,Q0);if(r){if(t===void 0&&(t="default"),n=$n(r,e,t),!Bo(n)||Bh(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"&&Bi(o=i.toString)&&!Bo(s=$n(o,i)))return s;if(Bi(o=i.valueOf)&&!Bo(s=$n(o,i)))return s;if(a!=="string"&&Bi(o=i.toString)&&!Bo(s=$n(o,i)))return s;throw Jp("Can't convert object to primitive value")}(e,t)},Wh=function(e){var t=fx(e,"string");return Bh(t)?t:t+""},zh=qn.document,Z0=Bo(zh)&&Bo(zh.createElement),em=function(e){return Z0?zh.createElement(e):{}},$0=!pi&&!Fi(function(){return Object.defineProperty(em("div"),"a",{get:function(){return 7}}).a!=7}),q0=Object.getOwnPropertyDescriptor,px=pi?q0:function(e,t){if(e=Ou(e),t=Wh(t),$0)try{return q0(e,t)}catch(n){}if(Va(e,t))return hl(!$n(ix.f,e,t),e[t])},tm={f:px},mx=qn.String,nm=qn.TypeError,da=function(e){if(Bo(e))return e;throw nm(mx(e)+" is not an object")},ey=qn.TypeError,ty=Object.defineProperty,gx=pi?ty:function(e,t,n){if(da(e),t=Wh(t),da(n),$0)try{return ty(e,t,n)}catch(r){}if("get"in n||"set"in n)throw ey("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Iu={f:gx},La=pi?function(e,t,n){return Iu.f(e,t,hl(1,n))}:function(e,t,n){return e[t]=n,e},ny=Qr(Function.toString);Bi(Bs.inspectSource)||(Bs.inspectSource=function(e){return ny(e)});var ld,Jl,Lu,rm=Bs.inspectSource,ry=qn.WeakMap,br=Bi(ry)&&/native code/.test(rm(ry)),Tn=Zp("keys"),Yn=function(e){return Tn[e]||(Tn[e]=X0(e))},Er={},wi=qn.TypeError,Ql=qn.WeakMap;if(br||Bs.state){var Ya=Bs.state||(Bs.state=new Ql),jo=Qr(Ya.get),Uo=Qr(Ya.has),js=Qr(Ya.set);ld=function(e,t){if(Uo(Ya,e))throw new wi("Object already initialized");return t.facade=e,js(Ya,e,t),t},Jl=function(e){return jo(Ya,e)||{}},Lu=function(e){return Uo(Ya,e)}}else{var ds=Yn("state");Er[ds]=!0,ld=function(e,t){if(Va(e,ds))throw new wi("Object already initialized");return t.facade=e,La(e,ds,t),t},Jl=function(e){return Va(e,ds)?e[ds]:{}},Lu=function(e){return Va(e,ds)}}var qi={set:ld,get:Jl,has:Lu,enforce:function(e){return Lu(e)?Jl(e):ld(e,{})},getterFor:function(e){return function(t){var n;if(!Bo(t)||(n=Jl(t)).type!==e)throw wi("Incompatible receiver, "+e+" required");return n}}},YI=Function.prototype,Rz=pi&&Object.getOwnPropertyDescriptor,vx=Va(YI,"name"),yx={EXISTS:vx,PROPER:vx&&function(){}.name==="something",CONFIGURABLE:vx&&(!pi||pi&&Rz(YI,"name").configurable)},Pu=le(function(e){var t=yx.CONFIGURABLE,n=qi.get,r=qi.enforce,i=String(String).split("String");(e.exports=function(a,o,s,u){var f,m=!!u&&!!u.unsafe,M=!!u&&!!u.enumerable,K=!!u&&!!u.noTargetGet,U=u&&u.name!==void 0?u.name:o;Bi(s)&&(String(U).slice(0,7)==="Symbol("&&(U="["+String(U).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Va(s,"name")||t&&s.name!==U)&&La(s,"name",U),(f=r(s)).source||(f.source=i.join(typeof U=="string"?U:""))),a!==qn?(m?!K&&a[o]&&(M=!0):delete a[o],M?a[o]=s:La(a,o,s)):M?a[o]=s:Qp(o,s)})(Function.prototype,"toString",function(){return Bi(this)&&n(this).source||rm(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},iy=function(e){return XI(e.length)},JI=function(e){return function(t,n,r){var i,a=Ou(t),o=iy(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=Ou(e),i=0,a=[];for(n in r)!Va(Er,n)&&Va(r,n)&&QI(a,n);for(;t.length>i;)Va(r,n=t[i++])&&(~Nz(a,n)||QI(a,n));return a},ay=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fz=ay.concat("length","prototype"),Bz=Object.getOwnPropertyNames||function(e){return ZI(e,Fz)},jz={f:Bz},Uz={f:Object.getOwnPropertySymbols},Hz=Qr([].concat),Wz=ml("Reflect","ownKeys")||function(e){var t=jz.f(da(e)),n=Uz.f;return n?Hz(t,n(e)):t},$I=function(e,t){for(var n=Wz(t),r=Iu.f,i=tm.f,a=0;a<n.length;a++){var o=n[a];Va(e,o)||r(e,o,i(t,o))}},zz=/#|\.prototype\./,im=function(e,t){var n=Kz[Gz(e)];return n==Yz||n!=Vz&&(Bi(t)?Fi(t):!!t)},Gz=im.normalize=function(e){return String(e).replace(zz,".").toLowerCase()},Kz=im.data={},Vz=im.NATIVE="N",Yz=im.POLYFILL="P",Xz=im,Jz=tm.f,am=function(e,t){var n,r,i,a,o,s=e.target,u=e.global,f=e.stat;if(n=u?qn:f?qn[s]||Qp(s,{}):(qn[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)&&La(a,"sham",!0),Pu(n,r,a,e)}},qI={};qI[Ia("toStringTag")]="z";var oy,_x=String(qI)==="[object z]",Qz=Ia("toStringTag"),Zz=qn.Object,$z=pl(function(){return arguments}())=="Arguments",sy=_x?pl: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?pl(t):(r=pl(t))=="Object"&&Bi(t.callee)?"Arguments":r},qz=qn.String,ud=function(e){if(sy(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return qz(e)},eG=function(){var e=da(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=qn.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,ay)},aG=pi?Object.defineProperties:function(e,t){da(e);for(var n,r=Ou(t),i=iG(t),a=i.length,o=0;a>o;)Iu.f(e,n=i[o++],r[n]);return e},oG=ml("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},ly=function(){try{oy=new ActiveXObject("htmlfile")}catch(r){}var e,t;ly=typeof document!="undefined"?document.domain&&oy?nL(oy):((t=em("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(oy);for(var n=ay.length;n--;)delete ly.prototype[ay[n]];return ly()};Er[eL]=!0;var rL,Sx,om=Object.create||function(e,t){var n;return e!==null?(Tx.prototype=da(e),n=new Tx,Tx.prototype=null,n[eL]=e):n=ly(),t===void 0?n:aG(n,t)},sG=qn.RegExp,lG=Fi(function(){var e=sG(".","s");return!(e.dotAll&&e.exec(`
`)&&e.flags==="s")}),uG=qn.RegExp,cG=Fi(function(){var e=uG("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),dG=qi.get,hG=Zp("native-string-replace",String.prototype.replace),uy=RegExp.prototype.exec,Cx=uy,fG=Qr("".charAt),pG=Qr("".indexOf),mG=Qr("".replace),Ax=Qr("".slice),Ox=(Sx=/b*/g,$n(uy,rL=/a/,"a"),$n(uy,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=ud(e),M=f.raw;if(M)return M.lastIndex=u.lastIndex,t=$n(Cx,M,m),u.lastIndex=M.lastIndex,t;var K=f.groups,U=iL&&u.sticky,re=$n(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=$n(uy,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&&$n(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=om(null),a=0;a<K.length;a++)o[(s=K[a])[0]]=i[s[1]];return i});var cy=Cx;am({target:"RegExp",proto:!0,forced:/./.exec!==cy},{exec:cy});var gG=Ia("species"),Rx=RegExp.prototype,vG=Qr("".charAt),aL=Qr("".charCodeAt),yG=Qr("".slice),oL=function(e){return function(t,n){var r,i,a=ud(Yl(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=qn.TypeError,lL=function(e,t){var n=e.exec;if(Bi(n)){var r=$n(n,e,t);return r!==null&&da(r),r}if(pl(e)==="RegExp")return $n(cy,e,t);throw _G("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var i=Ia(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,M,K,U){var re=Qr(f),$=m.exec;return $===cy||$===Rx.exec?a&&!U?{done:!0,value:s(m,M,K)}:{done:!0,value:re(M,m,K)}:{done:!1}});Pu(String.prototype,e,u[0]),Pu(Rx,i,u[1])}r&&La(Rx[i],"sham",!0)}("match",function(e,t,n){return[function(r){var i=Yl(this),a=r==null?void 0:sd(r,e);return a?$n(a,r,i):new RegExp(r)[e](ud(i))},function(r){var i=da(this),a=ud(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 M=ud(u[0]);f[m]=M,M===""&&(i.lastIndex=EG(a,XI(i.lastIndex),s)),m++}return m===0?null:f}]}),am({global:!0},{globalThis:qn});var xG=!Fi(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),uL=Yn("IE_PROTO"),Ix=qn.Object,wG=Ix.prototype,sm=xG?Ix.getPrototypeOf:function(e){var t=Hh(e);if(Va(t,uL))return t[uL];var n=t.constructor;return Bi(n)&&t instanceof n?n.prototype:t instanceof Ix?wG:null},TG=qn.String,SG=qn.TypeError,Gh=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 da(r),function(a){if(typeof a=="object"||Bi(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=qn.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=iy(n),m=Ex(r,f),M=Ex(i===void 0?f:i,f),K=CG(AG(M-m,0)),U=0;m<M;m++,U++)a=K,o=U,s=n[m],u=void 0,(u=Wh(o))in a?Iu.f(a,u,hl(0,s)):a[u]=s;return K.length=U,K}(DG(e,`
`),t),`
`);return e},kG=function(e,t){Bo(t)&&"cause"in t&&La(e,"cause",t.cause)},dL=Qr(Qr.bind),hL=function(e,t){return Uh(e),t===void 0?e:dL?dL(e,t):function(){return e.apply(t,arguments)}},Kh={},MG=Ia("iterator"),NG=Array.prototype,FG=Ia("iterator"),fL=function(e){if(e!=null)return sd(e,FG)||sd(e,"@@iterator")||Kh[sy(e)]},BG=qn.TypeError,pL=function(e,t,n){var r,i;da(e);try{if(!(r=sd(e,"return"))){if(t==="throw")throw n;return n}r=$n(r,e)}catch(a){i=!0,r=a}if(t==="throw")throw n;if(i)throw r;return da(r),n},jG=qn.TypeError,dy=function(e,t){this.stopped=e,this.result=t},mL=dy.prototype,UG=function(e,t,n){var r,i,a,o,s,u,f,m=n&&n.that,M=!(!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 dy(!0,te)},ee=function(te){return M?(da(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(jh(e)+" is not iterable");if(function(te){return te!==void 0&&(Kh.Array===te||NG[MG]===te)}(i)){for(a=0,o=iy(e);o>a;a++)if((s=ee(e[a]))&&ad(mL,s))return s;return new dy(!1)}r=function(te,J){var he=arguments.length<2?fL(te):J;if(Uh(he))return da($n(he,te));throw BG(jh(te)+" is not iterable")}(e,i)}for(u=r.next;!(f=$n(u,r)).done;){try{s=ee(f.value)}catch(te){pL(r,"throw",te)}if(typeof s=="object"&&s&&ad(mL,s))return s}return new dy(!1)},HG=function(e,t){return e===void 0?arguments.length<2?"":t:ud(e)},WG=!Fi(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",hl(1,7)),e.stack!==7)}),zG=Ia("toStringTag"),hy=qn.Error,GG=[].push,lm=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=ad(Px,this);Gh?n=Gh(new hy(void 0),i?sm(this):Px):(n=i?this:om(Px),La(n,zG,"Error")),La(n,"message",HG(t,"")),WG&&La(n,"stack",PG(n.stack,1)),kG(n,r);var a=[];return UG(e,GG,{that:a}),La(n,"errors",a),n};Gh?Gh(lm,hy):$I(lm,hy);var Px=lm.prototype=om(hy.prototype,{constructor:hl(1,lm),message:hl(1,""),name:hl(1,"AggregateError")});am({global:!0},{AggregateError:lm});var kx=Ia("unscopables"),Mx=Array.prototype;Mx[kx]==null&&Iu.f(Mx,kx,{configurable:!0,value:om(null)});var cd,gL,vL,Nx=function(e){Mx[kx][e]=!0},Fx=Ia("iterator"),yL=!1;[].keys&&("next"in(vL=[].keys())?(gL=sm(sm(vL)))!==Object.prototype&&(cd=gL):yL=!0);var KG=cd==null||Fi(function(){var e={};return cd[Fx].call(e)!==e});KG&&(cd={}),Bi(cd[Fx])||Pu(cd,Fx,function(){return this});var Bx={IteratorPrototype:cd,BUGGY_SAFARI_ITERATORS:yL},VG=Iu.f,bL=Ia("toStringTag"),EL=function(e,t,n){e&&!Va(e=n?e:e.prototype,bL)&&VG(e,bL,{configurable:!0,value:t})},YG=Bx.IteratorPrototype,XG=function(){return this},JG=yx.PROPER,QG=yx.CONFIGURABLE,_L=Bx.IteratorPrototype,fy=Bx.BUGGY_SAFARI_ITERATORS,um=Ia("iterator"),ZG=function(){return this},xL=function(e,t,n,r,i,a,o){!function(te,J,he,me){var _e=J+" Iterator";te.prototype=om(YG,{next:hl(+!me,he)}),EL(te,_e,!1),Kh[_e]=XG}(n,t,r);var s,u,f,m=function(te){if(te===i&&$)return $;if(!fy&&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)}},M=t+" Iterator",K=!1,U=e.prototype,re=U[um]||U["@@iterator"]||i&&U[i],$=!fy&&re||m(i),ee=t=="Array"&&U.entries||re;if(ee&&(s=sm(ee.call(new e)))!==Object.prototype&&s.next&&(sm(s)!==_L&&(Gh?Gh(s,_L):Bi(s[um])||Pu(s,um,ZG)),EL(s,M,!0)),JG&&i=="values"&&re&&re.name!=="values"&&(QG?La(U,"name","values"):(K=!0,$=function(){return $n(re,this)})),i)if(u={values:m("values"),keys:a?$:m("keys"),entries:m("entries")},o)for(f in u)(fy||K||!(f in U))&&Pu(U,f,u[f]);else am({target:t,proto:!0,forced:fy||K},u);return U[um]!==$&&Pu(U,um,$,{name:i}),Kh[t]=$,u},$G=qi.set,qG=qi.getterFor("Array Iterator"),cm=xL(Array,"Array",function(e,t){$G(this,{type:"Array Iterator",target:Ou(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");Kh.Arguments=Kh.Array,Nx("keys"),Nx("values"),Nx("entries");var eK=sL.charAt,tK=qi.set,nK=qi.getterFor("String Iterator");xL(String,"String",function(e){tK(this,{type:"String Iterator",string:ud(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,py={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=em("span").classList,wL=Ux&&Ux.constructor&&Ux.constructor.prototype,TL=wL===Object.prototype?void 0:wL,Hx=Ia("iterator"),SL=Ia("toStringTag"),Wx=cm.values,CL=function(e,t){if(e){if(e[Hx]!==Wx)try{La(e,Hx,Wx)}catch(r){e[Hx]=Wx}if(e[SL]||La(e,SL,t),py[t]){for(var n in cm)if(e[n]!==cm[n])try{La(e,n,cm[n])}catch(r){e[n]=cm[n]}}}};for(var zx in py)CL(qn[zx]&&qn[zx].prototype,zx);(CL(TL,"DOMTokenList"),typeof Se=="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()):Se&&((jx=Se.navigator)===null||jx===void 0?void 0:jx.userAgent.match("QQBrowser"))&&(AL(),OL());function AL(){typeof globalThis=="undefined"&&(window.globalThis=window)}function OL(){kh===void 0&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var DL,my=Array.isArray||function(e){return x(e)=="Array"},RL=function(){},rK=[],IL=we("Reflect","construct"),Gx=/^\s*(?:class|function)\b/,iK=h(Gx.exec),aK=!Gx.exec(RL),dm=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 dm(dm.call)||!dm(Object)||!dm(function(){e=!0})||e})?function(e){if(!c(e))return!1;switch(vr(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return aK||!!iK(Gx,yi(e))}:dm,sK=ve("species"),LL=V.Array,PL=function(e,t){return new(function(n){var r;return my(n)&&(r=n.constructor,(oK(r)&&(r===LL||my(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:my(e)};dn({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=Mn(a))>9007199254740991)throw ML("Maximum allowed index exceeded");for(n=0;n<i;n++,u++)n in a&&j0(s,u,a[n])}else{if(u>=9007199254740991)throw ML("Maximum allowed index exceeded");j0(s,u++,a)}return s.length=u,s}});var NL=nd.f,FL=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],BL={f:function(e){return FL&&x(e)=="Window"?function(t){try{return NL(t)}catch(n){return Je(FL)}}(e):NL(Q(e))}},hK=h([].slice),Kx={f:ve},fK=$t.f,ea=function(e){var t=ne.Symbol||(ne.Symbol={});Nt(t,e)||fK(t,e,{value:Kx.f(e)})},jL=h([].push),ku=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,M){for(var K,U,re=Jt(u),$=G(re),ee=en(f,m),te=Mn($),J=0,he=M||PL,me=t?he(u,te):n||o?he(u,0):void 0;te>J;J++)if((s||J in $)&&(U=ee(K=$[J],J,re),e))if(t)me[J]=U;else if(U)switch(e){case 3:return!0;case 5:return K;case 6:return J;case 2:jL(me,K)}else switch(e){case 4:return!1;case 7:jL(me,K)}return a?-1:r||i?i:me}},gy={forEach:ku(0),map:ku(1),filter:ku(2),some:ku(3),every:ku(4),find:ku(5),findIndex:ku(6),filterReject:ku(7)}.forEach,So=gn("hidden"),UL=ve("toPrimitive"),pK=la.set,HL=la.getterFor("Symbol"),Us=Object.prototype,Mu=V.Symbol,Nu=Mu&&Mu.prototype,WL=V.TypeError,Vx=V.QObject,hm=we("JSON","stringify"),zL=On.f,Fu=$t.f,GL=BL.f,mK=C.f,KL=h([].push),Zl=ft("symbols"),fm=ft("op-symbols"),Yx=ft("string-to-symbol-registry"),Xx=ft("symbol-to-string-registry"),gK=ft("wks"),Jx=!Vx||!Vx.prototype||!Vx.prototype.findChild,Qx=R&&d(function(){return ks(Fu({},"a",{get:function(){return Fu(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=zL(Us,t);r&&delete Us[t],Fu(e,t,n),r&&e!==Us&&Fu(Us,t,r)}:Fu,Zx=function(e,t){var n=Zl[e]=ks(Nu);return pK(n,{type:"Symbol",tag:e,description:t}),R||(n.description=t),n},vy=function(e,t,n){e===Us&&vy(fm,t,n),It(e);var r=Ie(t);return It(n),Nt(Zl,r)?(n.enumerable?(Nt(e,So)&&e[So][r]&&(e[So][r]=!1),n=ks(n,{enumerable:b(0,!1)})):(Nt(e,So)||Fu(e,So,b(1,{})),e[So][r]=!0),Qx(e,r,n)):Fu(e,r,n)},VL=function(e,t){It(e);var n=Q(t),r=Wp(n).concat($x(n));return gy(r,function(i){R&&!I(YL,n,i)||vy(e,i,n[i])}),e},YL=function(e){var t=Ie(e),n=I(mK,this,t);return!(this===Us&&Nt(Zl,t)&&!Nt(fm,t))&&(!(n||!Nt(this,t)||!Nt(Zl,t)||Nt(this,So)&&this[So][t])||n)},XL=function(e,t){var n=Q(e),r=Ie(t);if(n!==Us||!Nt(Zl,r)||Nt(fm,r)){var i=zL(n,r);return!i||!Nt(Zl,r)||Nt(n,So)&&n[So][r]||(i.enumerable=!0),i}},JL=function(e){var t=GL(Q(e)),n=[];return gy(t,function(r){Nt(Zl,r)||Nt(ja,r)||KL(n,r)}),n},$x=function(e){var t=e===Us,n=GL(t?fm:Q(e)),r=[];return gy(n,function(i){!Nt(Zl,i)||t&&!Nt(Us,i)||KL(r,Zl[i])}),r};if(w||(Nu=(Mu=function(){if(Ce(Nu,this))throw WL("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?ki(arguments[0]):void 0,t=mn(e),n=function(r){this===Us&&I(n,fm,r),Nt(this,So)&&Nt(this[So],t)&&(this[So][t]=!1),Qx(this,t,b(1,r))};return R&&Jx&&Qx(Us,t,{configurable:!0,set:n}),Zx(t,e)}).prototype,Mi(Nu,"toString",function(){return HL(this).tag}),Mi(Mu,"withoutSetter",function(e){return Zx(mn(e),e)}),C.f=YL,$t.f=vy,On.f=XL,nd.f=BL.f=JL,Ih.f=$x,Kx.f=function(e){return Zx(ve(e),e)},R&&Fu(Nu,"description",{configurable:!0,get:function(){return HL(this).description}})),dn({global:!0,wrap:!0,forced:!w,sham:!w},{Symbol:Mu}),gy(Wp(gK),function(e){ea(e)}),dn({target:"Symbol",stat:!0,forced:!w},{for:function(e){var t=ki(e);if(Nt(Yx,t))return Yx[t];var n=Mu(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}}),dn({target:"Object",stat:!0,forced:!w,sham:!R},{create:function(e,t){return t===void 0?ks(e):VL(ks(e),t)},defineProperty:vy,defineProperties:VL,getOwnPropertyDescriptor:XL}),dn({target:"Object",stat:!0,forced:!w},{getOwnPropertyNames:JL,getOwnPropertySymbols:$x}),dn({target:"Object",stat:!0,forced:d(function(){Ih.f(1)})},{getOwnPropertySymbols:function(e){return Ih.f(Jt(e))}}),hm){var vK=!w||d(function(){var e=Mu();return hm([e])!="[null]"||hm({a:e})!="{}"||hm(Object(e))!="{}"});dn({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 my(t)||(t=function(a,o){if(c(i)&&(o=I(i,this,a,o)),!ue(o))return o}),r[1]=t,y(hm,null,r)}})}if(!Nu[UL]){var yK=Nu.valueOf;Mi(Nu,UL,function(e){return I(yK,this)})}To(Mu,"Symbol"),ja[So]=!0,ea("asyncIterator"),ea("hasInstance"),ea("isConcatSpreadable"),ea("iterator"),ea("match"),ea("matchAll"),ea("replace"),ea("search"),ea("species"),ea("split"),ea("toPrimitive"),ea("toStringTag"),ea("unscopables"),To(V.JSON,"JSON",!0);var bK=ne.Symbol;ea("asyncDispose"),ea("dispose"),ea("matcher"),ea("metadata"),ea("observable"),ea("patternMatch"),ea("replaceAll");var yy=bK,EK=Kx.f("iterator"),_K=le(function(e){function t(n){return typeof yy=="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 yy=="function"&&r.constructor===yy&&r!==yy.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=tm.f,wK=Fi(function(){QL(1)});if(am({target:"Object",stat:!0,forced:!pi||wK,sham:!pi},{getOwnPropertyDescriptor:function(e,t){return QL(Ou(e),t)}}),(typeof Se=="undefined"?"undefined":xK(Se))==="object"){var TK=Object.getOwnPropertyDescriptor(Se,"window");Se.window&&!TK.set||(Se.window=Se,Se.requestAnimationFrame=function(){},Se.navigator={userAgent:""},Se.location={hostname:"0.0.0.0",port:0,protocol:"http:"},Se.btoa=function(){},Se.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),Se.document!=null&&Se.document.getElementsByTagName==null&&(Se.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 ro(e){var t,n;return ZL(e)!==!1&&((t=e.constructor)===void 0||ZL(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function Hs(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 dd(e){return!!e&&!!e[Ho]}function hd(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 pm(e,t,n){n===void 0&&(n=!1),Vh(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 Vh(e){var t=e[Ho];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 Vh(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function $L(e,t,n){var r=Vh(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 fd(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[Ho];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)||dd(e)||!hd(e)||(Vh(e)>1&&(e.set=e.add=e.clear=e.delete=SK),Object.freeze(e),t&&pm(e,function(n,r){return rw(r,!0)},!0)),e}function SK(){Hs(2)}function iw(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function $l(e){var t=LK[e];return t||Hs(18,e),t}function qL(){return mm}function aw(e,t){t&&($l("Patches"),e.u=[],e.s=[],e.v=t)}function by(e){ow(e),e.p.forEach(CK),e.p=null}function ow(e){e===mm&&(mm=e.l)}function eP(e){return mm={p:[],l:mm,h:e,m:!0,_:0}}function CK(e){var t=e[Ho];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||$l("ES5").S(t,e,r),r?(n[Ho].P&&(by(t),Hs(4)),hd(e)&&(e=Ey(t,e),t.l||_y(t,e)),t.u&&$l("Patches").M(n[Ho],e,t.u,t.s)):e=Ey(t,n,[]),by(t),t.u&&t.v(t.u,t.s),e!==oP?e:void 0}function Ey(e,t,n){if(iw(t))return t;var r=t[Ho];if(!r)return pm(t,function(a,o){return tP(e,r,t,a,o,n)},!0),t;if(r.A!==e)return t;if(!r.P)return _y(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;pm(r.i===3?new Set(i):i,function(a,o){return tP(e,r,i,a,o,n)}),_y(e,i,!1),n&&e.u&&$l("Patches").R(r,n,e.u,e.s)}return r.o}function tP(e,t,n,r,i,a){if(dd(i)){var o=Ey(e,i,a&&t&&t.i!==3&&!qx(t.D,r)?a.concat(r):void 0);if($L(n,r,o),!dd(o))return;e.m=!1}if(hd(i)&&!iw(i)){if(!e.h.F&&e._<1)return;Ey(e,i),t&&t.A.l||_y(e,i)}}function _y(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&rw(t,n)}function lw(e,t){var n=e[Ho];return(n?fd(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)?$l("MapSet").N(t,n):tw(t)?$l("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=xy;o&&(u=[s],f=wy);var m=Proxy.revocable(u,f),M=m.revoke,K=m.proxy;return s.k=K,s.j=M,K}(t,n):$l("ES5").J(t,n);return(n?n.A:qL()).p.push(r),r}function AK(e){return dd(e)||Hs(22,e),function t(n){if(!hd(n))return n;var r,i=n[Ho],a=Vh(n);if(i){if(!i.P&&(i.i<4||!$l("ES5").K(i)))return i.t;i.I=!0,r=rP(n,a),i.I=!1}else r=rP(n,a);return pm(r,function(o,s){i&&function(u,f){return Vh(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,mm,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",Ho=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={},xy={get:function(e,t){if(t===Ho)return e;var n=fd(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||!hd(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 fd(e)},ownKeys:function(e){return Reflect.ownKeys(fd(e))},set:function(e,t,n){var r=nP(fd(e),t);if(r==null?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=lw(fd(e),t),a=i==null?void 0:i[Ho];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=fd(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Hs(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Hs(12)}},wy={};pm(xy,function(e,t){wy[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),wy.deleteProperty=function(e,t){return xy.deleteProperty.call(this,e[0],t)},wy.set=function(e,t,n){return xy.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(J){var he;return(he=a).call.apply(he,[re,J].concat(ee))})}}var f;if(typeof a!="function"&&Hs(6),o!==void 0&&typeof o!="function"&&Hs(7),hd(i)){var m=eP(r),M=dw(r,i,void 0),K=!0;try{f=a(M),K=!1}finally{K?by(m):ow(m)}return typeof Promise!="undefined"&&f instanceof Promise?f.then(function(U){return aw(m,o),sw(U,m)},function(U){throw by(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);Hs(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),M=1;M<f;M++)m[M-1]=arguments[M];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){hd(n)||Hs(8),dd(n)&&(n=AK(n));var r=eP(this),i=dw(this,n,void 0);return i[Ho].C=!0,ow(r),i},t.finishDraft=function(n,r){var i=(n&&n[Ho]).A;return aw(i,r),sw(void 0,i)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!aP&&Hs(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=$l("Patches").$;return dd(n)?o(n,r):this.produce(n,function(s){return o(s,r)})},e}(),Wo=new PK,Ty=Wo.produce;Wo.produceWithPatches.bind(Wo),Wo.setAutoFreeze.bind(Wo),Wo.setUseProxies.bind(Wo),Wo.applyPatches.bind(Wo);var lP=Wo.createDraft.bind(Wo),uP=Wo.finishDraft.bind(Wo);function gl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sy=new WeakMap,gm=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 Cy(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){gl(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=Sy.get(e)||[],f=MK(t);for(var m of u)s(st.transform(m,t));for(var M of f)s(M);Sy.set(e,o),ct.transform(e,t),e.operations.push(t),Ee.normalize(e),t.type==="set_selection"&&(e.marks=null),gm.get(e)||(gm.set(e,!0),Promise.resolve().then(()=>{gm.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=Cy(Cy({},Ee.marks(e)||{}),{},{[t]:n});e.marks=i,gm.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?hn.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=Cy({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=hn.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=Cy({},Ee.marks(e)||{});delete r[t],e.marks=r,gm.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(hn.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 M of st.ancestors(s)){var K=st.transform(M,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:J}=e;return[...st.ancestors(J)];case"split_node":var{path:he}=e;return[...st.levels(he),st.next(he)];default:return[]}};function ql(e,t){if(e==null)return{};var n,r,i=function(o,s){if(o==null)return{};var u,f,m={},M=Object.keys(o);for(f=0;f<M.length;f++)u=M[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 fr,pw=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!t,r=t?UK(e):e,i=fr.None,a=fr.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],Yh(i,fr.ZWJ)&&Yh(a,fr.ExtPict)&&!nV(n?e.substring(0,o):e.substring(0,e.length-o)))break;if(Yh(i,fr.RI)&&Yh(a,fr.RI)&&!(s=s!==null?!s:!!n||iV(e.substring(0,e.length-o))))break;if(i!==fr.None&&a!==fr.None&&eV(i,a))break;o+=u.length}return o||1},NK=/\s/,FK=/[\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]/,BK=/['\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(BK.test(t)){var i=pw(n,r),[a,o]=mw(n,i,r);if(e(a,o,r))return!0}return!FK.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"}(fr||(fr={}));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=fr.Any;return e.search(zK)!==-1&&(n|=fr.Extend),t===8205&&(n|=fr.ZWJ),t>=127462&&t<=127487&&(n|=fr.RI),e.search(GK)!==-1&&(n|=fr.Prepend),e.search(KK)!==-1&&(n|=fr.SpacingMark),e.search(VK)!==-1&&(n|=fr.L),e.search(YK)!==-1&&(n|=fr.V),e.search(XK)!==-1&&(n|=fr.T),e.search(JK)!==-1&&(n|=fr.LV),e.search(QK)!==-1&&(n|=fr.LVT),e.search(ZK)!==-1&&(n|=fr.ExtPict),n};function Yh(e,t){return(e&t)!=0}var qK=[[fr.L,fr.L|fr.V|fr.LV|fr.LVT],[fr.LV|fr.V,fr.V|fr.T],[fr.LVT|fr.T,fr.T],[fr.Any,fr.Extend|fr.ZWJ],[fr.Any,fr.SpacingMark],[fr.Prepend,fr.Any],[fr.ZWJ,fr.ExtPict],[fr.RI,fr.RI]];function eV(e,t){return qK.findIndex(n=>Yh(e,n[0])&&Yh(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=>ro(e)&&hn.isNodeList(e.children)&&!Ee.isEditor(e),Nn={isAncestor:e=>ro(e)&&hn.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 Xh(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){gl(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,Xh(Xh({},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,Xh(Xh({},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 hn.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(!ro(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||ro(e.marks))&&(e.selection===null||_t.isRange(e.selection))&&hn.isNodeList(e.children)&&Bu.isOperationList(e.operations);return vP.set(e,n),n},isEnd(e,t,n){var r=Ee.end(e,n);return yr.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 yr.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[hn.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 hn.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 ql(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,M]=u,[,K]=f;st.isAncestor(K,M)&&(s=m)}}return ql(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=M=>f.children.includes(M)}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[hn.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"}),M=Ee.path(e,n,{edge:"end"});u=a?M:m,f=a?m:M}var K,U=hn.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 J=r==="lowest"?K:[$,ee];J&&(i?re.push(J):yield J),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=>Sy.get(a)||[];if(Ee.isNormalizing(e)){if(n){var i=Array.from(hn.nodes(e),a=>{var[,o]=a;return o});Sy.set(e,i)}r(e).length!==0&&Ee.withoutNormalizing(e,()=>{for(var a of r(e))if(hn.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 M=r(e).pop();if(hn.has(e,M)){var K=Ee.node(e,M);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]=hn.first(e,t);t=a}else if(i==="end"){var[,o]=hn.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)),yr.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath:(e,t)=>hn.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]=hn.last(e,t);i=a}else{var[,o]=hn.first(e,t);i=o}var s=hn.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,M="",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),J=st.isAncestor(ee,s.path)?s:Ee.start(e,ee);M=Ee.string(e,{anchor:J,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(M==="")break;K=me(M,r,i),M=mw(M,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(Ke){for(var rt=arguments.length>1&&arguments[1]!==void 0&&arguments[1],xt=0,Lt=!1;Ke.length>0;){var wt=pw(Ke,rt),[Yt,Ft]=mw(Ke,wt,rt);if(jK(Yt,Ft,rt))Lt=!0,xt+=wt;else{if(Lt)break;xt+=wt}Ke=Ft}return xt}(_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=M=>f.children.includes(M)}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,M]of Ee.nodes(e,{at:u,match:wn.isText,reverse:!0,voids:r}))if(f)f=!1;else if(m.text!==""||st.isBefore(M,s)){a={path:M,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,Xh(Xh({},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)||yr.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,hn={ancestor(e,t){var n=hn.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=[hn.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=hn.ancestor(e,t),{children:a}=i,o=r?a.length-1:0;r?o>=0:o<a.length;){var s=hn.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[hn.get(e,r),r]},descendant(e,t){var n=hn.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 hn.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 hn.nodes(e,t))Nn.isElement(n)&&(yield[n,r])},extractProps:e=>Nn.isAncestor(e)?ql(e,lV):ql(e,uV),first(e,t){for(var n=t.slice(),r=hn.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=Ty({children:e.children},r=>{var[i,a]=_t.edges(t),o=hn.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=hn.parent(r,s),f=s[s.length-1];u.children.splice(f,1)}if(st.equals(s,a.path)){var m=hn.leaf(r,s);m.text=m.text.slice(0,a.offset)}if(st.equals(s,i.path)){var M=hn.leaf(r,s);M.text=M.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=>hn.isNode(r));return yP.set(e,n),n},last(e,t){for(var n=t.slice(),r=hn.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=hn.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=hn.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(hn.has(e,f)){s=f,u=hn.get(e,s);continue}}r&&s[s.length-1]!==0?(s=st.previous(s),u=hn.get(e,s)):(s=st.parent(s),u=hn.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=hn.get(e,s)}},parent(e,t){var n=st.parent(t),r=hn.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(hn.string).join(""),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of hn.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 ha(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){gl(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 Bu={isNodeOperation:e=>Bu.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!ro(e))return!1;switch(e.type){case"insert_node":case"remove_node":return st.isPath(e.path)&&hn.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)&&ro(e.properties);case"move_node":return st.isPath(e.path)&&st.isPath(e.newPath);case"set_node":return st.isPath(e.path)&&ro(e.properties)&&ro(e.newProperties);case"set_selection":return e.properties===null&&_t.isRange(e.newProperties)||e.newProperties===null&&_t.isRange(e.properties)||ro(e.properties)&&ro(e.newProperties);case"split_node":return st.isPath(e.path)&&typeof e.position=="number"&&ro(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(t=>Bu.isOperation(t)),isSelectionOperation:e=>Bu.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Bu.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return ha(ha({},e),{},{type:"remove_node"});case"insert_text":return ha(ha({},e),{},{type:"remove_text"});case"merge_node":return ha(ha({},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 ha(ha({},e),{},{path:t,newPath:n});var r=st.transform(n,e),i=st.transform(st.next(n),e);return ha(ha({},e),{},{path:r,newPath:i});case"remove_node":return ha(ha({},e),{},{type:"insert_node"});case"remove_text":return ha(ha({},e),{},{type:"insert_text"});case"set_node":var{properties:a,newProperties:o}=e;return ha(ha({},e),{},{properties:o,newProperties:a});case"set_selection":var{properties:s,newProperties:u}=e;return ha(ha({},e),{},s==null?{properties:u,newProperties:null}:u==null?{properties:null,newProperties:s}:{properties:u,newProperties:s});case"split_node":return ha(ha({},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 Ty(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:M,newPath:K}=t;if(st.equals(M,K))return;if(st.isAncestor(M,r)||st.equals(M,r)){var U=K.slice();return st.endsBefore(M,K)&&M.length<K.length&&(U[M.length-1]-=1),U.concat(r.slice(M.length))}st.isSibling(M,K)&&(st.isAncestor(K,r)||st.equals(K,r))?st.endsBefore(M,r)?r[M.length-1]-=1:r[M.length-1]+=1:st.endsBefore(K,r)||st.equals(K,r)||st.isAncestor(K,r)?(st.endsBefore(M,r)&&(r[M.length-1]-=1),r[K.length-1]+=1):st.endsBefore(M,r)&&(st.equals(K,r)&&(r[K.length-1]+=1),r[M.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){gl(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 yr={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)=>yr.compare(e,t)===1,isBefore:(e,t)=>yr.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&st.equals(e.path,t.path),isPoint:e=>ro(e)&&typeof e.offset=="number"&&st.isPath(e.path),transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ty(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=yr.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)=>yr.equals(e.anchor,t.anchor)&&yr.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 yr.isBefore(n,i)&&yr.isAfter(r,a)}var[o,s]=_t.edges(e),u=!1,f=!1;return yr.isPoint(t)?(u=yr.compare(t,o)>=0,f=yr.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=ql(e,hV),[r,i]=_t.edges(e),[a,o]=_t.edges(t),s=yr.isBefore(r,a)?a:r,u=yr.isBefore(i,o)?i:o;return yr.isBefore(u,s)?null:function(f){for(var m=1;m<arguments.length;m++){var M=arguments[m]!=null?arguments[m]:{};m%2?xP(Object(M),!0).forEach(function(K){gl(f,K,M[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(M)):xP(Object(M)).forEach(function(K){Object.defineProperty(f,K,Object.getOwnPropertyDescriptor(M,K))})}return f}({anchor:s,focus:u},n)},isBackward(e){var{anchor:t,focus:n}=e;return yr.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return yr.equals(t,n)},isExpanded:e=>!_t.isCollapsed(e),isForward:e=>!_t.isBackward(e),isRange:e=>ro(e)&&yr.isPoint(e.anchor)&&yr.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 Ty(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=yr.transform(r.anchor,t,{affinity:i}),f=yr.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(ro(r)&&ro(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 eu(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){gl(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 ql(a,pV)}return wP(r?i(e):e,r?i(t):t)},isText:e=>ro(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=[eu({},e)];for(var r of t){var i=ql(r,mV),[a,o]=_t.edges(r),s=[],u=0;for(var f of n){var{length:m}=f.text,M=u;if(u+=m,a.offset<=M&&o.offset>=u)Object.assign(f,i),s.push(f);else if(a.offset!==o.offset&&(a.offset===u||o.offset===M)||a.offset>u||o.offset<M||o.offset===M&&M!==0)s.push(f);else{var K=f,U=void 0,re=void 0;if(o.offset<u){var $=o.offset-M;re=eu(eu({},K),{},{text:K.text.slice($)}),K=eu(eu({},K),{},{text:K.text.slice(0,$)})}if(a.offset>M){var ee=a.offset-M;U=eu(eu({},K),{},{text:K.text.slice(0,ee)}),K=eu(eu({},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 vm(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){gl(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=hn.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,M]of _t.points(i))i[M]=yr.transform(m,a);break;case"insert_text":var{path:K,offset:U,text:re}=a;if(re.length===0)break;var $=hn.leaf(r,K),ee=$.text.slice(0,U),te=$.text.slice(U);if($.text=ee+re+te,i)for(var[J,he]of _t.points(i))i[he]=yr.transform(J,a);break;case"merge_node":var{path:me}=a,_e=hn.get(r,me),ke=st.previous(me),De=hn.get(r,ke),Ke=hn.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(Ke.children.splice(rt,1),i)for(var[xt,Lt]of _t.points(i))i[Lt]=yr.transform(xt,a);break;case"move_node":var{path:wt,newPath:Yt}=a;if(st.isAncestor(wt,Yt))throw new Error("Cannot move a path [".concat(wt,"] to new path [").concat(Yt,"] because the destination is inside itself."));var Ft=hn.get(r,wt),jt=hn.parent(r,wt),Ht=wt[wt.length-1];jt.children.splice(Ht,1);var bn=st.transform(wt,a),Pn=hn.get(r,st.parent(bn)),Ln=bn[bn.length-1];if(Pn.children.splice(Ln,0,Ft),i)for(var[Dn,Ze]of _t.points(i))i[Ze]=yr.transform(Dn,a);break;case"remove_node":var{path:He}=a,ot=He[He.length-1];if(hn.parent(r,He).children.splice(ot,1),i)for(var[At,qt]of _t.points(i)){var Mt=yr.transform(At,a);if(i!=null&&Mt!=null)i[qt]=Mt;else{var Sn=void 0,Vn=void 0;for(var[tr,dr]of hn.texts(r)){if(st.compare(dr,He)!==-1){Vn=[tr,dr];break}Sn=[tr,dr]}var Ut=!1;Sn&&Vn&&(Ut=st.equals(Vn[1],He)?!st.hasPrevious(Vn[1]):st.common(Sn[1],He).length<st.common(Vn[1],He).length),Sn&&!Ut?(At.path=Sn[1],At.offset=Sn[0].text.length):Vn?(At.path=Vn[1],At.offset=0):i=null}}break;case"remove_text":var{path:Dr,offset:mr,text:zn}=a;if(zn.length===0)break;var gr=hn.leaf(r,Dr),Ki=gr.text.slice(0,mr),jr=gr.text.slice(mr+zn.length);if(gr.text=Ki+jr,i)for(var[ni,Ci]of _t.points(i))i[Ci]=yr.transform(ni,a);break;case"set_node":var{path:uo,properties:Nr,newProperties:Lo}=a;if(uo.length===0)throw new Error("Cannot set properties on the root node!");var tl=hn.get(r,uo);for(var jl in Lo){if(jl==="children"||jl==="text")throw new Error('Cannot set the "'.concat(jl,'" property of nodes!'));var Fp=Lo[jl];Fp==null?delete tl[jl]:tl[jl]=Fp}for(var Ch in Nr)Lo.hasOwnProperty(Ch)||delete tl[Ch];break;case"set_selection":var{newProperties:nl}=a;if(nl==null)i=nl;else{if(i==null){if(!_t.isRange(nl))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(nl)," when there is no current selection."));i=vm({},nl)}for(var Ul in nl){var yu=nl[Ul];if(yu==null){if(Ul==="anchor"||Ul==="focus")throw new Error('Cannot remove the "'.concat(Ul,'" selection property'));delete i[Ul]}else i[Ul]=yu}}break;case"split_node":var{path:co,position:ho,properties:fo}=a;if(co.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(co,"] because the root node cannot be split."));var Eo,Ba=hn.get(r,co),Ls=hn.parent(r,co),P0=co[co.length-1];if(wn.isText(Ba)){var Qc=Ba.text.slice(0,ho),bu=Ba.text.slice(ho);Ba.text=Qc,Eo=vm(vm({},fo),{},{text:bu})}else{var Bp=Ba.children.slice(0,ho),Ah=Ba.children.slice(ho);Ba.children=Bp,Eo=vm(vm({},fo),{},{children:Ah})}if(Ls.children.splice(P0+1,0,Eo),i)for(var[jp,rl]of _t.points(i))i[rl]=yr.transform(jp,a)}return i})(e,n,t)}finally{e.children=uP(e.children),e.selection=n?dd(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){gl(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(hn.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),M=Ee.pointRef(e,m);ct.delete(e,{at:o}),o=M.unref()}if(yr.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),J=o[o.length-1];if(i||!Ee.void(e,{at:te})){for(var he of t){var me=te.concat(J);J++,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)?Jh(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)),[M,K]=m,U=f[f.length-1],{length:re}=M.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),J=st.next(K);ct.splitNodes(e,{at:te,voids:i}),ct.moveNodes(e,{at:f,to:J,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}),M=Ee.previous(e,{at:r,match:n,voids:a,mode:o});if(m&&M){var[K,U]=m,[re,$]=M;if(U.length!==0&&$.length!==0){var ee,te,J=st.next($),he=st.common(U,$),me=st.isSibling(U,$),_e=Array.from(Ee.levels(e,{at:U}),rt=>{var[xt]=rt;return xt}).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 Ke=ql(K,vV);te=re.text.length,ee=Ke}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)));Ke=ql(K,yV),te=re.children.length,ee=Ke}me||ct.moveNodes(e,{at:U,to:J,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:J,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)?Jh(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 M=m.unref(),K=s.current;M.length!==0&&e.apply({type:"move_node",path:M,newPath:K}),s.current&&st.isSibling(K,M)&&st.isAfter(K,M)&&(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)?Jh(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[M]=Ee.node(e,m);e.apply({type:"remove_node",path:m,node:M})}}}})},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)?Jh(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,M]=_t.edges(i),K=o==="lowest"?"lowest":"highest",U=Ee.isEnd(e,M,M.path);ct.splitNodes(e,{at:M,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={},J={};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&&(J[me]=t[me]));he&&e.apply({type:"set_node",path:ee,properties:te,newProperties:J})}}}})},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 M=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 J=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,Ke]of Ee.levels(e,{at:_e,reverse:!0,voids:r})){var rt=!1;if(Ke.length<me.length||Ke.length===0||!r&&Ee.isVoid(e,De))break;var xt=M.current,Lt=Ee.isEnd(e,xt,Ke);if(s||!M||!Ee.isEdge(e,xt,Ke)){rt=!0;var wt=hn.extractProps(De);e.apply({type:"split_node",path:Ke,position:ke,properties:wt})}ke=Ke[Ke.length-1]+(rt||Lt?1:0)}if(t.at==null){var Yt=J.current||Ee.end(e,[]);ct.select(e,Yt)}M.unref(),J.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)?Jh(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 M of f)m(M);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)?Jh(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 M=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 M){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],[,J]=ee,[,he]=te;if(J.length===0&&he.length===0)return"continue";var me=st.equals(J,he)?st.parent(J):st.common(J,he),_e=Ee.range(e,J,he),ke=Ee.node(e,me),[De]=ke,Ke=me.length+1,rt=st.next(he.slice(0,Ke)),xt=AP(AP({},t),{},{children:[]});ct.insertNodes(e,xt,{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()},Jh=(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){gl(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 M=a?Ee.before(e,s,f):Ee.after(e,s,f);M&&(m.anchor=M)}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&&!yr.equals(t.anchor,n.anchor)||a==="focus"&&t.focus!=null&&!yr.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),yr.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[,M]=_t.edges(o),K=Ee.end(e,[]);yr.equals(M,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]),J=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,Ke=[];for(var rt of Ee.nodes(e,{at:o,voids:a})){var[xt,Lt]=rt;De&&st.compare(Lt,De)===0||(!a&&Ee.isVoid(e,xt)||!st.isCommon(Lt,U.path)&&!st.isCommon(Lt,re.path))&&(Ke.push(rt),De=Lt)}var wt=Array.from(Ke,Vn=>{var[,tr]=Vn;return Ee.pathRef(e,tr)}),Yt=Ee.pointRef(e,U),Ft=Ee.pointRef(e,re);if(!J&&!he){var jt=Yt.current,[Ht]=Ee.leaf(e,jt),{path:bn}=jt,{offset:Pn}=U,Ln=Ht.text.slice(Pn);Ln.length>0&&e.apply({type:"remove_text",path:bn,offset:Pn,text:Ln})}for(var Dn of wt){var Ze=Dn.unref();ct.removeNodes(e,{at:Ze,voids:a})}if(!me){var He=Ft.current,[ot]=Ee.leaf(e,He),{path:At}=He,qt=J?U.offset:0,Mt=ot.text.slice(qt,re.offset);Mt.length>0&&e.apply({type:"remove_text",path:At,offset:qt,text:Mt})}!J&&te&&Ft.current&&Yt.current&&ct.mergeNodes(e,{at:Ft.current,hanging:!0,voids:a});var Sn=n?Yt.unref()||Ft.unref():Ft.unref()||Yt.unref();t.at==null&&Sn&&ct.select(e,Sn)}}})},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}),[,M]=m,K=Ee.isStart(e,a,M),U=Ee.isEnd(e,a,M),re=K&&U,$=!K||K&&U,ee=!U,[,te]=hn.first({children:t},[]),[,J]=hn.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,J)&&Nn.isElement(ot)&&!e.isVoid(ot)&&!e.isInline(ot)))};for(var _e of hn.nodes({children:t},{pass:me}))me(_e)&&he.push(_e);var ke=[],De=[],Ke=[],rt=!0,xt=!1;for(var[Lt]of he)Nn.isElement(Lt)&&!e.isInline(Lt)?(rt=!1,xt=!0,De.push(Lt)):rt?ke.push(Lt):Ke.push(Lt);var[wt]=Ee.nodes(e,{at:a,match:He=>wn.isText(He)||Ee.isInline(e,He),mode:"highest",voids:i}),[,Yt]=wt,Ft=Ee.isStart(e,a,Yt),jt=Ee.isEnd(e,a,Yt),Ht=Ee.pathRef(e,U?st.next(M):M),bn=Ee.pathRef(e,jt?st.next(Yt):Yt),Pn=Ee.pathRef(e,M);ct.splitNodes(e,{at:a,match:He=>xt?Ee.isBlock(e,He):wn.isText(He)||Ee.isInline(e,He),mode:xt?"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:Pn.unref(),voids:i}),ct.insertNodes(e,De,{at:Ht.current,match:He=>Ee.isBlock(e,He),mode:"lowest",voids:i}),ct.insertNodes(e,Ke,{at:bn.current,match:He=>wn.isText(He)||Ee.isInline(e,He),mode:"highest",voids:i}),!n.at){var Dn;Dn=Ke.length>0?st.previous(bn.current):De.length>0?st.previous(Ht.current):st.previous(Ln.current);var Ze=Ee.end(e,Dn);ct.select(e,Ze)}Ln.unref(),Ht.unref(),bn.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 Ay(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){gl(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=Ay(Ay(Ay(Ay({},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,pd=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,FP,NV=Function.prototype,Oy=Object.prototype,Ew=pd["__core-js_shared__"],BP=function(){var e=/[^.]+$/.exec(Ew&&Ew.keys&&Ew.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),jP=NV.toString,Dy=Oy.hasOwnProperty,ym=Oy.toString,FV=RegExp("^"+jP.call(Dy).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),UP=pd.Symbol,_w=UP?UP.iterator:void 0,BV=Oy.propertyIsEnumerable,jV=(NP=Object.keys,FP=Object,function(e){return NP(FP(e))}),xw=bm(pd,"DataView"),ww=bm(pd,"Map"),Tw=bm(pd,"Promise"),Sw=bm(pd,"Set"),Cw=bm(pd,"WeakMap"),UV=gd(xw),HV=gd(ww),WV=gd(Tw),zV=gd(Sw),GV=gd(Cw);function KV(e,t){var n=HP(e)||function(o){return function(s){return GP(s)&&Aw(s)}(o)&&Dy.call(o,"callee")&&(!BV.call(o,"callee")||ym.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&&!Dy.call(e,a)||i&&(a=="length"||XV(a,r))||n.push(a);return n}function VV(e){if(!zP(e)||function(n){return!!BP&&BP 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)?FV:wV;return t.test(gd(e))}function YV(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||Oy,t!==r)return jV(e);var t,n,r,i=[];for(var a in Object(e))Dy.call(e,a)&&a!="constructor"&&i.push(a);return i}function bm(e,t){var n=function(r,i){return r==null?void 0:r[i]}(e,t);return VV(n)?n:void 0}var md=function(e){return ym.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 gd(e){if(e!=null){try{return jP.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(xw&&md(new xw(new ArrayBuffer(1)))!="[object DataView]"||ww&&md(new ww)!=gw||Tw&&md(Tw.resolve())!="[object Promise]"||Sw&&md(new Sw)!=vw||Cw&&md(new Cw)!="[object WeakMap]")&&(md=function(e){var t=ym.call(e),n=t=="[object Object]"?e.constructor:void 0,r=n?gd(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)?ym.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)&&ym.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=md(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 Em(){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 vd(){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 Ry(e,t){return Ry=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Ry(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&&Ry(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}}),Ry(r,n)},Iw(e)}var ju=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 Iy(e){e===void 0&&(e=[]);var t=[];return e.forEach(function(n){Array.isArray(n)?t.push.apply(t,Iy(n)):t.push(n)}),t}function XP(e,t){return Array.prototype.filter.call(e,t)}function Qe(e,t){var n=vd(),r=Em(),i=[];if(!t&&e instanceof ju)return e;if(!e)return new ju(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 M=[],K=m.querySelectorAll(f),U=0;U<K.length;U+=1)M.push(K[U]);return M}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)i.push(e);else if(Array.isArray(e)){if(e instanceof ju)return e;i=e}return new ju(function(f){for(var m=[],M=0;M<f.length;M+=1)m.indexOf(f[M])===-1&&m.push(f[M]);return m}(i))}function Qh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Iy(t.map(function(i){return i.split(" ")}));return this.forEach(function(i){var a;(a=i.classList).add.apply(a,r)}),this}function Zh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Iy(t.map(function(i){return i.split(" ")}));return this.forEach(function(i){var a;(a=i.classList).remove.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=Iy(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 hs(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 Ly(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function qh(){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 vl(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 yl(){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 J=Qe(ee).parents(),he=0;he<J.length;he+=1)Qe(J[he]).is(i)&&a.apply(J[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(" "),M=0;M<this.length;M+=1){var K=this[M];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 M=this[m],K=void 0;if(!i&&M.dom7Listeners?K=M.dom7Listeners[f]:i&&M.dom7LiveListeners&&(K=M.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?(M.removeEventListener(f,re.proxyListener,o),K.splice(U,1)):a||(M.removeEventListener(f,re.proxyListener,o),K.splice(U,1))}}return this}function Py(){var e=vd();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function ky(){var e=vd();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function QP(){if(this.length>0){var e=vd(),t=Em(),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 ef(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function My(){for(var e=vd(),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 Ny(e,t){var n,r=vd();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 Uu(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 By(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=vd(),i=Em(),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 ju){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}return!1}function fs(){for(var e,t=Em(),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 ju)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=Em();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 ju)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 tf(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 jy(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 nf(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 rf(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 af(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function of(){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=ju.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"),Hu=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 Uy=Object.prototype,Lw=Uy.hasOwnProperty,n5=Uy.toString,nY=Uy.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||Uy,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,M=!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||M&&he-f>=a}function ee(){var he=Mw();if($(he))return te(he);s=setTimeout(ee,function(me){var _e=t-(me-u);return M?_Y(_e,a-(me-f)):_e}(he))}function te(he){return s=void 0,K&&r?U(he):(r=i=void 0,o)}function J(){var he=Mw(),me=$(he);if(r=arguments,i=this,u=he,me){if(s===void 0)return re(u);if(M)return s=setTimeout(ee,t),U(u)}return s===void 0&&(s=setTimeout(ee,t)),o}return t=s5(t)||0,Hy(n)&&(m=!!n.leading,a=(M="maxWait"in n)?EY(s5(n.maxWait)||0,t):a,K="trailing"in n?!!n.trailing:K),J.cancel=function(){s!==void 0&&clearTimeout(s),f=0,r=u=i=s=void 0},J.flush=function(){return s===void 0?o:te(Mw())},J}function Hy(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(Hy(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Hy(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 yd=function(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError("Expected a function");return Hy(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 _m(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 Wy(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function Fw(e){return e===void 0}function zo(e){return e!==void 0}const l5=_m("",{},[],void 0,void 0);function xm(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 M of SY)for(const K of e){const U=K[M];U!==void 0&&n[M].push(U)}function i(M){const K=M.id?"#"+M.id:"",U=M.getAttribute("class"),re=U?"."+U.split(" ").join("."):"";return _m(r.tagName(M).toLowerCase()+K+re,{},[],void 0,M)}function a(M,K){return function(){if(--K==0){const U=r.parentNode(M);r.removeChild(U,M)}}}function o(M,K){var U,re;let $,ee=M.data;if(ee!==void 0){const he=(U=ee.hook)===null||U===void 0?void 0:U.init;zo(he)&&(he(M),ee=M.data)}const te=M.children,J=M.sel;if(J==="!")Fw(M.text)&&(M.text=""),M.elm=r.createComment(M.text);else if(J!==void 0){const he=J.indexOf("#"),me=J.indexOf(".",he),_e=he>0?he:J.length,ke=me>0?me:J.length,De=he!==-1||me!==-1?J.slice(0,Math.min(_e,ke)):J,Ke=M.elm=zo(ee)&&zo($=ee.ns)?r.createElementNS($,De,ee):r.createElement(De,ee);for(_e<ke&&Ke.setAttribute("id",J.slice(_e+1,ke)),me>0&&Ke.setAttribute("class",J.slice(ke+1).replace(/\./g," ")),$=0;$<n.create.length;++$)n.create[$](l5,M);if(Nw(te))for($=0;$<te.length;++$){const xt=te[$];xt!=null&&r.appendChild(Ke,o(xt,K))}else Wy(M.text)&&r.appendChild(Ke,r.createTextNode(M.text));const rt=M.data.hook;zo(rt)&&((re=rt.create)===null||re===void 0||re.call(rt,l5,M),rt.insert&&K.push(M))}else M.elm=r.createTextNode(M.text);return M.elm}function s(M,K,U,re,$,ee){for(;re<=$;++re){const te=U[re];te!=null&&r.insertBefore(M,o(te,ee),K)}}function u(M){var K,U;const re=M.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,M);for(let $=0;$<n.destroy.length;++$)n.destroy[$](M);if(M.children!==void 0)for(let $=0;$<M.children.length;++$){const ee=M.children[$];ee!=null&&typeof ee!="string"&&u(ee)}}}function f(M,K,U,re){for(var $,ee;U<=re;++U){let te,J;const he=K[U];if(he!=null)if(zo(he.sel)){u(he),te=n.remove.length+1,J=a(he.elm,te);for(let _e=0;_e<n.remove.length;++_e)n.remove[_e](he,J);const me=(ee=($=he==null?void 0:he.data)===null||$===void 0?void 0:$.hook)===null||ee===void 0?void 0:ee.remove;zo(me)?me(he,J):J()}else r.removeChild(M,he.elm)}}function m(M,K,U){var re,$,ee,te,J;const he=(re=K.data)===null||re===void 0?void 0:re.hook;($=he==null?void 0:he.prepatch)===null||$===void 0||$.call(he,M,K);const me=K.elm=M.elm,_e=M.children,ke=K.children;if(M!==K){if(K.data!==void 0){for(let De=0;De<n.update.length;++De)n.update[De](M,K);(te=(ee=K.data.hook)===null||ee===void 0?void 0:ee.update)===null||te===void 0||te.call(ee,M,K)}Fw(K.text)?zo(_e)&&zo(ke)?_e!==ke&&function(De,Ke,rt,xt){let Lt,wt,Yt,Ft,jt=0,Ht=0,bn=Ke.length-1,Pn=Ke[0],Ln=Ke[bn],Dn=rt.length-1,Ze=rt[0],He=rt[Dn];for(;jt<=bn&&Ht<=Dn;)Pn==null?Pn=Ke[++jt]:Ln==null?Ln=Ke[--bn]:Ze==null?Ze=rt[++Ht]:He==null?He=rt[--Dn]:xm(Pn,Ze)?(m(Pn,Ze,xt),Pn=Ke[++jt],Ze=rt[++Ht]):xm(Ln,He)?(m(Ln,He,xt),Ln=Ke[--bn],He=rt[--Dn]):xm(Pn,He)?(m(Pn,He,xt),r.insertBefore(De,Pn.elm,r.nextSibling(Ln.elm)),Pn=Ke[++jt],He=rt[--Dn]):xm(Ln,Ze)?(m(Ln,Ze,xt),r.insertBefore(De,Ln.elm,Pn.elm),Ln=Ke[--bn],Ze=rt[++Ht]):(Lt===void 0&&(Lt=TY(Ke,jt,bn)),wt=Lt[Ze.key],Fw(wt)?r.insertBefore(De,o(Ze,xt),Pn.elm):(Yt=Ke[wt],Yt.sel!==Ze.sel?r.insertBefore(De,o(Ze,xt),Pn.elm):(m(Yt,Ze,xt),Ke[wt]=void 0,r.insertBefore(De,Yt.elm,Pn.elm))),Ze=rt[++Ht]);(jt<=bn||Ht<=Dn)&&(jt>bn?(Ft=rt[Dn+1]==null?null:rt[Dn+1].elm,s(De,Ft,rt,Ht,Dn,xt)):f(De,Ke,jt,bn))}(me,_e,ke,U):zo(ke)?(zo(M.text)&&r.setTextContent(me,""),s(me,null,ke,0,ke.length-1,U)):zo(_e)?f(me,_e,0,_e.length-1):zo(M.text)&&r.setTextContent(me,""):M.text!==K.text&&(zo(_e)&&f(me,_e,0,_e.length-1),r.setTextContent(me,K.text)),(J=he==null?void 0:he.postpatch)===null||J===void 0||J.call(he,M,K)}}return function(M,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}(M)||(M=i(M)),xm(M,K)?m(M,K,ee):(re=M.elm,$=r.parentNode(re),o(K,ee),$!==null&&(r.insertBefore($,K.elm,r.nextSibling(re)),f($,[M],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 sf(e,t,n){let r,i,a,o={};if(n!==void 0?(t!==null&&(o=t),Nw(n)?r=n:Wy(n)?i=n.toString():n&&n.sel&&(r=[n])):t!=null&&(Nw(t)?r=t:Wy(t)?i=t.toString():t&&t.sel?r=[t]:o=t),r!==void 0)for(a=0;a<r.length;++a)Wy(r[a])&&(r[a]=_m(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),_m(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 Bw(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:Bw,update:Bw,destroy:Bw};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(_m(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function nr(e,t,...n){const r=y5(n,[]);return typeof e=="function"?e(t,r):r.length===1&&!r[0].sel&&r[0].text?sf(e,t,r[0].text):sf(e,t,r)}nr||(nr={});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",FY="[\\ud800-\\udfff]",E5="["+b5+"]",zy="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",_5="\\d+",BY="[\\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]",lf="[A-Z\\xc0-\\xd6\\xd8-\\xde]",S5="(?:"+x5+"|"+w5+")",jY="(?:"+lf+"|"+w5+")",C5="(?:"+zy+"|"+Uw+")?",A5="[\\ufe0e\\ufe0f]?"+C5+("(?:\\u200d(?:"+[T5,Hw,Ww].join("|")+")[\\ufe0e\\ufe0f]?"+C5+")*"),UY="(?:"+[BY,Hw,Ww].join("|")+")"+A5,HY="(?:"+[T5+zy+"?",zy,Hw,Ww,FY].join("|")+")",WY=RegExp("['\u2019]","g"),zY=RegExp(zy,"g"),GY=RegExp(Uw+"(?="+Uw+")|"+HY+A5,"g"),KY=RegExp([lf+"?"+x5+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[E5,lf,"$"].join("|")+")",jY+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[E5,lf+S5,"$"].join("|")+")",lf+"?"+S5+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",lf+"+(?:['\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 Gy(e){return e==null?"":eX(e)}for(var L5,nX=(L5=function(e,t,n){return t=t.toLowerCase(),e+(n?rX(Gy(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=Gy(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=Gy(t))&&t.replace(NY,ZY).replace(zY,"")}(e).replace(WY,"")),L5,"")}),P5,rX=(P5="toUpperCase",function(e){var t=O5(e=Gy(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},Ky=1;Ky<20;Ky++)Kw["f"+Ky]=111+Ky;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("+"),M=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 J=ee.value,he=J.endsWith("?")&&J.length>1;he&&(J=J.slice(0,-1));var me=N5(J),_e=Gw[me];if(J.length>1&&!_e&&!k5[J]&&!Kw[me])throw new TypeError('Unknown modifier: "'+J+'"');M!==1&&_e||(u?f.key=me:f.which=oX(J)),_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],M=void 0;if(m!=null&&((M=f==="key"&&u.key!=null?u.key.toLowerCase():f==="which"?m===91&&u.which===93?91:u.which:u[f])!=null||m!==!1)&&M!==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 F5(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 uf,B5=function(e,t,n){var r,i,a,o,s,u,f=0,m=!1,M=!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||M&&he-f>=a}function ee(){var he=Yw();if($(he))return te(he);s=setTimeout(ee,function(me){var _e=t-(me-u);return M?yX(_e,a-(me-f)):_e}(he))}function te(he){return s=void 0,K&&r?U(he):(r=i=void 0,o)}function J(){var he=Yw(),me=$(he);if(r=arguments,i=this,u=he,me){if(s===void 0)return re(u);if(M)return s=setTimeout(ee,t),U(u)}return s===void 0&&(s=setTimeout(ee,t)),o}return t=F5(t)||0,Xw(n)&&(m=!!n.leading,a=(M="maxWait"in n)?vX(F5(n.maxWait)||0,t):a,K="trailing"in n?!!n.trailing:K),J.cancel=function(){s!==void 0&&clearTimeout(s),f=0,r=u=i=s=void 0},J.flush=function(){return s===void 0?o:te(Yw())},J},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]",M="[object Object]",K="[object Promise]",U="[object RegExp]",re="[object Set]",$="[object String]",ee="[object Symbol]",te="[object WeakMap]",J="[object ArrayBuffer]",he="[object DataView]",me="[object Float32Array]",_e="[object Float64Array]",ke="[object Int8Array]",De="[object Int16Array]",Ke="[object Int32Array]",rt="[object Uint8Array]",xt="[object Uint8ClampedArray]",Lt="[object Uint16Array]",wt="[object Uint32Array]",Yt=/\w*$/,Ft=/^\[object .+?Constructor\]$/,jt=/^(?:0|[1-9]\d*)$/,Ht={};Ht[i]=Ht["[object Array]"]=Ht[J]=Ht[he]=Ht[a]=Ht[o]=Ht[me]=Ht[_e]=Ht[ke]=Ht[De]=Ht[Ke]=Ht[f]=Ht[m]=Ht[M]=Ht[U]=Ht[re]=Ht[$]=Ht[ee]=Ht[rt]=Ht[xt]=Ht[Lt]=Ht[wt]=!0,Ht["[object Error]"]=Ht[s]=Ht[te]=!1;var bn=typeof ae=="object"&&ae&&ae.Object===Object&&ae,Pn=typeof self=="object"&&self&&self.Object===Object&&self,Ln=bn||Pn||Function("return this")(),Dn=t&&!t.nodeType&&t,Ze=Dn&&e&&!e.nodeType&&e,He=Ze&&Ze.exports===Dn;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,pn,Rn){var Mr=-1,vi=tt?tt.length:0;for(Rn&&vi&&(pn=tt[++Mr]);++Mr<vi;)pn=St(pn,tt[Mr],Mr,tt);return pn}function Mt(tt){var St=!1;if(tt!=null&&typeof tt.toString!="function")try{St=!!(tt+"")}catch(pn){}return St}function Sn(tt){var St=-1,pn=Array(tt.size);return tt.forEach(function(Rn,Mr){pn[++St]=[Mr,Rn]}),pn}function Vn(tt,St){return function(pn){return tt(St(pn))}}function tr(tt){var St=-1,pn=Array(tt.size);return tt.forEach(function(Rn){pn[++St]=Rn}),pn}var dr=Array.prototype,Ut=Function.prototype,Dr=Object.prototype,mr=Ln["__core-js_shared__"],zn=function(){var tt=/[^.]+$/.exec(mr&&mr.keys&&mr.keys.IE_PROTO||"");return tt?"Symbol(src)_1."+tt:""}(),gr=Ut.toString,Ki=Dr.hasOwnProperty,jr=Dr.toString,ni=RegExp("^"+gr.call(Ki).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ci=He?Ln.Buffer:void 0,uo=Ln.Symbol,Nr=Ln.Uint8Array,Lo=Vn(Object.getPrototypeOf,Object),tl=Object.create,jl=Dr.propertyIsEnumerable,Fp=dr.splice,Ch=Object.getOwnPropertySymbols,nl=Ci?Ci.isBuffer:void 0,Ul=Vn(Object.keys,Object),yu=Hl(Ln,"DataView"),co=Hl(Ln,"Map"),ho=Hl(Ln,"Promise"),fo=Hl(Ln,"Set"),Eo=Hl(Ln,"WeakMap"),Ba=Hl(Object,"create"),Ls=zl(yu),P0=zl(co),Qc=zl(ho),bu=zl(fo),Bp=zl(Eo),Ah=uo?uo.prototype:void 0,jp=Ah?Ah.valueOf:void 0;function rl(tt){var St=-1,pn=tt?tt.length:0;for(this.clear();++St<pn;){var Rn=tt[St];this.set(Rn[0],Rn[1])}}function Ps(tt){var St=-1,pn=tt?tt.length:0;for(this.clear();++St<pn;){var Rn=tt[St];this.set(Rn[0],Rn[1])}}function Eu(tt){var St=-1,pn=tt?tt.length:0;for(this.clear();++St<pn;){var Rn=tt[St];this.set(Rn[0],Rn[1])}}function il(tt){this.__data__=new Ps(tt)}function Zc(tt,St){var pn=at(tt)||function(ii){return function(Wr){return function(Da){return!!Da&&typeof Da=="object"}(Wr)&&bt(Wr)}(ii)&&Ki.call(ii,"callee")&&(!jl.call(ii,"callee")||jr.call(ii)==i)}(tt)?function(ii,Wr){for(var Da=-1,po=Array(ii);++Da<ii;)po[Da]=Wr(Da);return po}(tt.length,String):[],Rn=pn.length,Mr=!!Rn;for(var vi in tt)!St&&!Ki.call(tt,vi)||Mr&&(vi=="length"||K_(vi,Rn))||pn.push(vi);return pn}function z_(tt,St,pn){var Rn=tt[St];Ki.call(tt,St)&&V_(Rn,pn)&&(pn!==void 0||St in tt)||(tt[St]=pn)}function ts(tt,St){for(var pn=tt.length;pn--;)if(V_(tt[pn][0],St))return pn;return-1}function k0(tt,St,pn,Rn,Mr,vi,ii){var Wr;if(Rn&&(Wr=vi?Rn(tt,Mr,vi,ii):Rn(tt)),Wr!==void 0)return Wr;if(!ri(tt))return tt;var Da=at(tt);if(Da){if(Wr=function(ir){var Jr=ir.length,oa=ir.constructor(Jr);return Jr&&typeof ir[0]=="string"&&Ki.call(ir,"index")&&(oa.index=ir.index,oa.input=ir.input),oa}(tt),!St)return function(ir,Jr){var oa=-1,Rr=ir.length;for(Jr||(Jr=Array(Rr));++oa<Rr;)Jr[oa]=ir[oa];return Jr}(tt,Wr)}else{var po=Wl(tt),Oh=po==s||po==u;if(un(tt))return function(ir,Jr){if(Jr)return ir.slice();var oa=new ir.constructor(ir.length);return ir.copy(oa),oa}(tt,St);if(po==M||po==i||Oh&&!vi){if(Mt(tt))return vi?tt:{};if(Wr=function(ir){return typeof ir.constructor!="function"||$c(ir)?{}:(Jr=Lo(ir),ri(Jr)?tl(Jr):{});var Jr}(Oh?{}:tt),!St)return function(ir,Jr){return G_(ir,M0(ir),Jr)}(tt,function(ir,Jr){return ir&&G_(Jr,Cr(Jr),ir)}(Wr,tt))}else{if(!Ht[po])return vi?tt:{};Wr=function(ir,Jr,oa,Rr){var zr=ir.constructor;switch(Jr){case J:return Up(ir);case a:case o:return new zr(+ir);case he:return function(Gr,Vi){var _o=Vi?Up(Gr.buffer):Gr.buffer;return new Gr.constructor(_o,Gr.byteOffset,Gr.byteLength)}(ir,Rr);case me:case _e:case ke:case De:case Ke:case rt:case xt:case Lt:case wt:return function(Gr,Vi){var _o=Vi?Up(Gr.buffer):Gr.buffer;return new Gr.constructor(_o,Gr.byteOffset,Gr.length)}(ir,Rr);case f:return function(Gr,Vi,_o){return qt(Vi?_o(Sn(Gr),!0):Sn(Gr),ot,new Gr.constructor)}(ir,Rr,oa);case m:case $:return new zr(ir);case U:return function(Gr){var Vi=new Gr.constructor(Gr.source,Yt.exec(Gr));return Vi.lastIndex=Gr.lastIndex,Vi}(ir);case re:return function(Gr,Vi,_o){return qt(Vi?_o(tr(Gr),!0):tr(Gr),At,new Gr.constructor)}(ir,Rr,oa);case ee:return function(Gr){return jp?Object(jp.call(Gr)):{}}(ir)}}(tt,po,k0,St)}}ii||(ii=new il);var wu=ii.get(tt);if(wu)return wu;if(ii.set(tt,Wr),!Da)var qc=pn?function(ir){return function(Jr,oa,Rr){var zr=oa(Jr);return at(Jr)?zr:function(Gr,Vi){for(var _o=-1,Po=Vi.length,al=Gr.length;++_o<Po;)Gr[al+_o]=Vi[_o];return Gr}(zr,Rr(Jr))}(ir,Cr,M0)}(tt):Cr(tt);return function(ir,Jr){for(var oa=-1,Rr=ir?ir.length:0;++oa<Rr&&Jr(ir[oa],oa,ir)!==!1;);}(qc||tt,function(ir,Jr){qc&&(ir=tt[Jr=ir]),z_(Wr,Jr,k0(ir,St,pn,Rn,Jr,tt,ii))}),Wr}function _u(tt){return!(!ri(tt)||function(St){return!!zn&&zn in St}(tt))&&(Kn(tt)||Mt(tt)?ni:Ft).test(zl(tt))}function Up(tt){var St=new tt.constructor(tt.byteLength);return new Nr(St).set(new Nr(tt)),St}function G_(tt,St,pn,Rn){pn||(pn={});for(var Mr=-1,vi=St.length;++Mr<vi;){var ii=St[Mr],Wr=Rn?Rn(pn[ii],tt[ii],ii,pn,tt):void 0;z_(pn,ii,Wr===void 0?tt[ii]:Wr)}return pn}function xu(tt,St){var pn,Rn,Mr=tt.__data__;return((Rn=typeof(pn=St))=="string"||Rn=="number"||Rn=="symbol"||Rn=="boolean"?pn!=="__proto__":pn===null)?Mr[typeof St=="string"?"string":"hash"]:Mr.map}function Hl(tt,St){var pn=function(Rn,Mr){return Rn==null?void 0:Rn[Mr]}(tt,St);return _u(pn)?pn:void 0}rl.prototype.clear=function(){this.__data__=Ba?Ba(null):{}},rl.prototype.delete=function(tt){return this.has(tt)&&delete this.__data__[tt]},rl.prototype.get=function(tt){var St=this.__data__;if(Ba){var pn=St[tt];return pn===n?void 0:pn}return Ki.call(St,tt)?St[tt]:void 0},rl.prototype.has=function(tt){var St=this.__data__;return Ba?St[tt]!==void 0:Ki.call(St,tt)},rl.prototype.set=function(tt,St){return this.__data__[tt]=Ba&&St===void 0?n:St,this},Ps.prototype.clear=function(){this.__data__=[]},Ps.prototype.delete=function(tt){var St=this.__data__,pn=ts(St,tt);return!(pn<0)&&(pn==St.length-1?St.pop():Fp.call(St,pn,1),!0)},Ps.prototype.get=function(tt){var St=this.__data__,pn=ts(St,tt);return pn<0?void 0:St[pn][1]},Ps.prototype.has=function(tt){return ts(this.__data__,tt)>-1},Ps.prototype.set=function(tt,St){var pn=this.__data__,Rn=ts(pn,tt);return Rn<0?pn.push([tt,St]):pn[Rn][1]=St,this},Eu.prototype.clear=function(){this.__data__={hash:new rl,map:new(co||Ps),string:new rl}},Eu.prototype.delete=function(tt){return xu(this,tt).delete(tt)},Eu.prototype.get=function(tt){return xu(this,tt).get(tt)},Eu.prototype.has=function(tt){return xu(this,tt).has(tt)},Eu.prototype.set=function(tt,St){return xu(this,tt).set(tt,St),this},il.prototype.clear=function(){this.__data__=new Ps},il.prototype.delete=function(tt){return this.__data__.delete(tt)},il.prototype.get=function(tt){return this.__data__.get(tt)},il.prototype.has=function(tt){return this.__data__.has(tt)},il.prototype.set=function(tt,St){var pn=this.__data__;if(pn instanceof Ps){var Rn=pn.__data__;if(!co||Rn.length<199)return Rn.push([tt,St]),this;pn=this.__data__=new Eu(Rn)}return pn.set(tt,St),this};var M0=Ch?Vn(Ch,Object):function(){return[]},Wl=function(tt){return jr.call(tt)};function K_(tt,St){return!!(St=St==null?r:St)&&(typeof tt=="number"||jt.test(tt))&&tt>-1&&tt%1==0&&tt<St}function $c(tt){var St=tt&&tt.constructor;return tt===(typeof St=="function"&&St.prototype||Dr)}function zl(tt){if(tt!=null){try{return gr.call(tt)}catch(St){}try{return tt+""}catch(St){}}return""}function V_(tt,St){return tt===St||tt!=tt&&St!=St}(yu&&Wl(new yu(new ArrayBuffer(1)))!=he||co&&Wl(new co)!=f||ho&&Wl(ho.resolve())!=K||fo&&Wl(new fo)!=re||Eo&&Wl(new Eo)!=te)&&(Wl=function(tt){var St=jr.call(tt),pn=St==M?tt.constructor:void 0,Rn=pn?zl(pn):void 0;if(Rn)switch(Rn){case Ls:return he;case P0:return f;case Qc:return K;case bu:return re;case Bp: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=nl||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 Cr(tt){return bt(tt)?Zc(tt):function(St){if(!$c(St))return Ul(St);var pn=[];for(var Rn in Object(St))Ki.call(St,Rn)&&Rn!="constructor"&&pn.push(Rn);return pn}(tt)}e.exports=function(tt){return k0(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=(uf=EX("apply"),class{constructor(e){Object.defineProperty(this,uf,{value:xX}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(U5(this,uf)[uf],this):U5(this,uf)[uf](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 M=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==="*"&&(M=M.concat(t[te])),U.length===2&&U[0]===te){M=M.concat(t[te]);break}}return M}(n);f.length&&function(m,M,K){for(var U=0,re=M.length;U<re&&M[U];U++)M[U].event=m,M[U].apply(M[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 Vy=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] [${Vy()}]`,...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] [${Vy()}]`,...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] [${Vy()}]`,...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] [${Vy()}]`,...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 jn(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 fa(e){return"__private_"+PX+++"_"+e}const{nanoid:kX}=$5,{justErrorsLogger:MX,debugLogger:NX}=Z5;class bl 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 FX extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Xa=fa("plugins"),wm=fa("storeUnsubscribe"),tu=fa("emitter"),bd=fa("preProcessors"),Ed=fa("uploaders"),nu=fa("postProcessors"),Tm=fa("checkRestrictions"),$w=fa("checkMinNumberOfFiles"),Sm=fa("checkRequiredMetaFieldsOnFile"),qw=fa("checkRequiredMetaFields"),Ta=fa("showOrLogErrorAndThrow"),Cm=fa("assertNewUploadAllowed"),Am=fa("checkAndCreateFileStateObject"),Om=fa("startIfAutoProceed"),eT=fa("addListeners"),Ws=fa("updateOnlineStatus"),ru=fa("createUpload"),tT=fa("getUpload"),_d=fa("removeUpload"),iu=fa("runUpload");q5=Symbol.for("uppy test: getPlugins"),ek=Symbol.for("uppy test: createUpload");class tk{constructor(e){Object.defineProperty(this,iu,{value:QX}),Object.defineProperty(this,_d,{value:JX}),Object.defineProperty(this,tT,{value:XX}),Object.defineProperty(this,ru,{value:YX}),Object.defineProperty(this,eT,{value:VX}),Object.defineProperty(this,Om,{value:KX}),Object.defineProperty(this,Am,{value:GX}),Object.defineProperty(this,Cm,{value:zX}),Object.defineProperty(this,Ta,{value:WX}),Object.defineProperty(this,qw,{value:HX}),Object.defineProperty(this,Sm,{value:UX}),Object.defineProperty(this,$w,{value:jX}),Object.defineProperty(this,Tm,{value:BX}),Object.defineProperty(this,Xa,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,wm,{writable:!0,value:void 0}),Object.defineProperty(this,tu,{writable:!0,value:z5()}),Object.defineProperty(this,bd,{writable:!0,value:new Set}),Object.defineProperty(this,Ed,{writable:!0,value:new Set}),Object.defineProperty(this,nu,{writable:!0,value:new Set}),Object.defineProperty(this,Ws,{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=yd(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}),jn(this,wm)[wm]=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),jn(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];jn(this,tu)[tu].emit(e,...n)}on(e,t){return jn(this,tu)[tu].on(e,t),this}once(e,t){return jn(this,tu)[tu].once(e,t),this}off(e,t){return jn(this,tu)[tu].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){jn(this,bd)[bd].add(e)}removePreProcessor(e){return jn(this,bd)[bd].delete(e)}addPostProcessor(e){jn(this,nu)[nu].add(e)}removePostProcessor(e){return jn(this,nu)[nu].delete(e)}addUploader(e){jn(this,Ed)[Ed].add(e)}removeUploader(e){return jn(this,Ed)[Ed].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),M=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:M,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 jn(this,Tm)[Tm](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){jn(this,Cm)[Cm](e);const{files:t}=this.getState();let n=jn(this,Am)[Am](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}`),jn(this,Om)[Om](),n.id}addFiles(e){jn(this,Cm)[Cm]();const t=kt({},this.getState().files),n=[],r=[];for(let i=0;i<e.length;i++)try{let a=jn(this,Am)[Am](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&&jn(this,Om)[Om](),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 M=r[m].fileIDs.filter(s);M.length!==0?a[m]=kt(kt({},r[m]),{fileIDs:M}):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=jn(this,ru)[ru](t,{forceAllowNewUpload:!0});return jn(this,iu)[iu](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=jn(this,ru)[ru]([e],{forceAllowNewUpload:!0});return jn(this,iu)[iu](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,M)=>m+M.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 jn(this,Xa)[Xa]?jn(this,Xa)[Xa][n.type].push(n):jn(this,Xa)[Xa][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(jn(this,Xa)[Xa])){const n=t.find(r=>r.id===e);if(n!=null)return n}}[q5](e){return jn(this,Xa)[Xa][e]}iteratePlugins(e){Object.values(jn(this,Xa)[Xa]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=jn(this,Xa)[Xa][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(),jn(this,wm)[wm](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window!="undefined"&&window.removeEventListener&&(window.removeEventListener("online",jn(this,Ws)[Ws]),window.removeEventListener("offline",jn(this,Ws)[Ws]))}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]?jn(this,iu)[iu](e):(jn(this,_d)[_d](e),Promise.reject(new Error("Nonexistent upload")))}[ek](){return jn(this,ru)[ru](...arguments)}addResultData(e,t){if(!jn(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=jn(this,Xa)[Xa].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(()=>{jn(this,$w)[$w](t),jn(this,qw)[qw](t)}).catch(r=>{jn(this,Ta)[Ta](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=jn(this,ru)[ru](a);return jn(this,iu)[iu](o)}).catch(r=>{jn(this,Ta)[Ta](r,{showInformer:!1})}))}}function BX(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 bl(`${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 bl(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 bl(this.i18n("exceedsSize",{size:Jw(i),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new bl(this.i18n("exceedsSize",{size:Jw(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new bl(this.i18n("inferiorSize",{size:Jw(r)}))}function jX(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new bl(`${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 bl(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(o),i.push(t[a]),jn(this,Ta)[Ta](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 jn(this,Sm)[Sm](r)});if(t.length)throw new FX(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&&jn(this,Ta)[Ta](new bl(this.i18n("noMoreFilesAllowed")),{file:e})}function GX(e,t){const n=function(M){var K;if(M.type)return M.type;const U=M.name?(K=X5(M.name).extension)==null?void 0:K.toLowerCase():null;return U&&U in J5?J5[U]:"application/octet-stream"}(t),r=function(M,K){return K.name?K.name:M.split("/")[0]==="image"?`${M.split("/")[0]}.${M.split("/")[1]}`:"noname"}(n,t),i=X5(r).extension,a=Boolean(t.isRemote),o=function(M){let K="uppy";return typeof M.name=="string"&&(K+=`-${Q5(M.name.toLowerCase())}`),M.type!==void 0&&(K+=`-${M.type}`),M.meta&&typeof M.meta.relativePath=="string"&&(K+=`-${Q5(M.meta.relativePath.toLowerCase())}`),M.data.size!==void 0&&(K+=`-${M.data.size}`),M.data.lastModified!==void 0&&(K+=`-${M.data.lastModified}`),K}(kt(kt({},t),{type:n}));if(this.checkIfFileAlreadyExists(o)){const M=new bl(this.i18n("noDuplicates",{fileName:r}));jn(this,Ta)[Ta](M,{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?jn(this,Ta)[Ta](new bl("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):typeof m=="object"&&m!==null&&(f=m);try{const M=Object.keys(e).map(K=>e[K]);jn(this,Tm)[Tm](f,M)}catch(M){jn(this,Ta)[Ta](M,{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}),jn(this,Ta)[Ta](i,{throwErr:!1})}else jn(this,Ta)[Ta](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:jn(this,nu)[nu].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&&jn(this,Sm)[Sm](t)}),typeof window!="undefined"&&window.addEventListener&&(window.addEventListener("online",jn(this,Ws)[Ws]),window.addEventListener("offline",jn(this,Ws)[Ws]),setTimeout(jn(this,Ws)[Ws],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=[...jn(this,bd)[bd],...jn(this,Ed)[Ed],...jn(this,nu)[nu]];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),jn(this,_d)[_d](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),jn(this,_d)[_d](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={},M=[],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,Sn={};for(Mt in He)Mt=="key"?At=He[Mt]:Mt=="ref"?qt=He[Mt]:Sn[Mt]=He[Mt];if(arguments.length>2&&(Sn.children=arguments.length>3?n.call(arguments,2):ot),typeof Ze=="function"&&Ze.defaultProps!=null)for(Mt in Ze.defaultProps)Sn[Mt]===void 0&&(Sn[Mt]=Ze.defaultProps[Mt]);return ee(Ze,Sn,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 J(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,Sn,Vn;He.__d&&(Sn=(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?[Sn]:null,At,Sn==null?he(Mt):Sn,Mt.__h),jt(At,Mt),Mt.__e!=Sn&&me(Mt)))})}function De(Ze,He,ot,At,qt,Mt,Sn,Vn,tr,dr){var Ut,Dr,mr,zn,gr,Ki,jr,ni=At&&At.__k||M,Ci=ni.length;for(ot.__k=[],Ut=0;Ut<He.length;Ut++)if((zn=ot.__k[Ut]=(zn=He[Ut])==null||typeof zn=="boolean"?null:typeof zn=="string"||typeof zn=="number"||typeof zn=="bigint"?ee(null,zn,null,null,zn):Array.isArray(zn)?ee(te,{children:zn},null,null,null):zn.__b>0?ee(zn.type,zn.props,zn.key,null,zn.__v):zn)!=null){if(zn.__=ot,zn.__b=ot.__b+1,(mr=ni[Ut])===null||mr&&zn.key==mr.key&&zn.type===mr.type)ni[Ut]=void 0;else for(Dr=0;Dr<Ci;Dr++){if((mr=ni[Dr])&&zn.key==mr.key&&zn.type===mr.type){ni[Dr]=void 0;break}mr=null}Ft(Ze,zn,mr=mr||m,qt,Mt,Sn,Vn,tr,dr),gr=zn.__e,(Dr=zn.ref)&&mr.ref!=Dr&&(jr||(jr=[]),mr.ref&&jr.push(mr.ref,null,zn),jr.push(Dr,zn.__c||gr,zn)),gr!=null?(Ki==null&&(Ki=gr),typeof zn.type=="function"&&zn.__k===mr.__k?zn.__d=tr=Ke(zn,tr,Ze):tr=rt(Ze,zn,mr,ni,gr,tr),typeof ot.type=="function"&&(ot.__d=tr)):tr&&mr.__e==tr&&tr.parentNode!=Ze&&(tr=he(mr))}for(ot.__e=Ki,Ut=Ci;Ut--;)ni[Ut]!=null&&(typeof ot.type=="function"&&ni[Ut].__e!=null&&ni[Ut].__e==ot.__d&&(ot.__d=he(At,Ut+1)),Pn(ni[Ut],ni[Ut]));if(jr)for(Ut=0;Ut<jr.length;Ut++)bn(jr[Ut],jr[++Ut],jr[++Ut])}function Ke(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"?Ke(At,He,ot):rt(ot,At,At,qt,At.__e,He));return He}function rt(Ze,He,ot,At,qt,Mt){var Sn,Vn,tr;if(He.__d!==void 0)Sn=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),Sn=null;else{for(Vn=Mt,tr=0;(Vn=Vn.nextSibling)&&tr<At.length;tr+=2)if(Vn==qt)break e;Ze.insertBefore(qt,Mt),Sn=Mt}return Sn!==void 0?Sn:qt.nextSibling}function xt(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||xt(Ze.style,He,"");if(ot)for(He in ot)At&&ot[He]===At[He]||xt(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:wt,Mt):Ze.removeEventListener(He,Mt?Yt:wt,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(Sn){}typeof ot=="function"||(ot!=null&&(ot!==!1||He[0]==="a"&&He[1]==="r")?Ze.setAttribute(He,ot):Ze.removeAttribute(He))}}function wt(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,Sn,Vn,tr){var dr,Ut,Dr,mr,zn,gr,Ki,jr,ni,Ci,uo,Nr=He.type;if(He.constructor!==void 0)return null;ot.__h!=null&&(tr=ot.__h,Vn=He.__e=ot.__e,He.__h=null,Mt=[Vn]),(dr=r.__b)&&dr(He);try{e:if(typeof Nr=="function"){if(jr=He.props,ni=(dr=Nr.contextType)&&At[dr.__c],Ci=dr?ni?ni.props.value:dr.__:At,ot.__c?Ki=(Ut=He.__c=ot.__c).__=Ut.__E:("prototype"in Nr&&Nr.prototype.render?He.__c=Ut=new Nr(jr,Ci):(He.__c=Ut=new J(jr,Ci),Ut.constructor=Nr,Ut.render=Ln),ni&&ni.sub(Ut),Ut.props=jr,Ut.state||(Ut.state={}),Ut.context=Ci,Ut.__n=At,Dr=Ut.__d=!0,Ut.__h=[]),Ut.__s==null&&(Ut.__s=Ut.state),Nr.getDerivedStateFromProps!=null&&(Ut.__s==Ut.state&&(Ut.__s=U({},Ut.__s)),U(Ut.__s,Nr.getDerivedStateFromProps(jr,Ut.__s))),mr=Ut.props,zn=Ut.state,Dr)Nr.getDerivedStateFromProps==null&&Ut.componentWillMount!=null&&Ut.componentWillMount(),Ut.componentDidMount!=null&&Ut.__h.push(Ut.componentDidMount);else{if(Nr.getDerivedStateFromProps==null&&jr!==mr&&Ut.componentWillReceiveProps!=null&&Ut.componentWillReceiveProps(jr,Ci),!Ut.__e&&Ut.shouldComponentUpdate!=null&&Ut.shouldComponentUpdate(jr,Ut.__s,Ci)===!1||He.__v===ot.__v){Ut.props=jr,Ut.state=Ut.__s,He.__v!==ot.__v&&(Ut.__d=!1),Ut.__v=He,He.__e=ot.__e,He.__k=ot.__k,He.__k.forEach(function(Lo){Lo&&(Lo.__=He)}),Ut.__h.length&&Sn.push(Ut);break e}Ut.componentWillUpdate!=null&&Ut.componentWillUpdate(jr,Ut.__s,Ci),Ut.componentDidUpdate!=null&&Ut.__h.push(function(){Ut.componentDidUpdate(mr,zn,gr)})}Ut.context=Ci,Ut.props=jr,Ut.state=Ut.__s,(dr=r.__r)&&dr(He),Ut.__d=!1,Ut.__v=He,Ut.__P=Ze,dr=Ut.render(Ut.props,Ut.state,Ut.context),Ut.state=Ut.__s,Ut.getChildContext!=null&&(At=U(U({},At),Ut.getChildContext())),Dr||Ut.getSnapshotBeforeUpdate==null||(gr=Ut.getSnapshotBeforeUpdate(mr,zn)),uo=dr!=null&&dr.type===te&&dr.key==null?dr.props.children:dr,De(Ze,Array.isArray(uo)?uo:[uo],He,ot,At,qt,Mt,Sn,Vn,tr),Ut.base=He.__e,He.__h=null,Ut.__h.length&&Sn.push(Ut),Ki&&(Ut.__E=Ut.__=null),Ut.__e=!1}else Mt==null&&He.__v===ot.__v?(He.__k=ot.__k,He.__e=ot.__e):He.__e=Ht(ot.__e,He,ot,At,qt,Mt,Sn,tr);(dr=r.diffed)&&dr(He)}catch(Lo){He.__v=null,(tr||Mt!=null)&&(He.__e=Vn,He.__h=!!tr,Mt[Mt.indexOf(Vn)]=null),r.__e(Lo,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 Ht(Ze,He,ot,At,qt,Mt,Sn,Vn){var tr,dr,Ut,Dr=ot.props,mr=He.props,zn=He.type,gr=0;if(zn==="svg"&&(qt=!0),Mt!=null){for(;gr<Mt.length;gr++)if((tr=Mt[gr])&&"setAttribute"in tr==!!zn&&(zn?tr.localName===zn:tr.nodeType===3)){Ze=tr,Mt[gr]=null;break}}if(Ze==null){if(zn===null)return document.createTextNode(mr);Ze=qt?document.createElementNS("http://www.w3.org/2000/svg",zn):document.createElement(zn,mr.is&&mr),Mt=null,Vn=!1}if(zn===null)Dr===mr||Vn&&Ze.data===mr||(Ze.data=mr);else{if(Mt=Mt&&n.call(Ze.childNodes),dr=(Dr=ot.props||m).dangerouslySetInnerHTML,Ut=mr.dangerouslySetInnerHTML,!Vn){if(Mt!=null)for(Dr={},gr=0;gr<Ze.attributes.length;gr++)Dr[Ze.attributes[gr].name]=Ze.attributes[gr].value;(Ut||dr)&&(Ut&&(dr&&Ut.__html==dr.__html||Ut.__html===Ze.innerHTML)||(Ze.innerHTML=Ut&&Ut.__html||""))}if(function(Ki,jr,ni,Ci,uo){var Nr;for(Nr in ni)Nr==="children"||Nr==="key"||Nr in jr||Lt(Ki,Nr,null,ni[Nr],Ci);for(Nr in jr)uo&&typeof jr[Nr]!="function"||Nr==="children"||Nr==="key"||Nr==="value"||Nr==="checked"||ni[Nr]===jr[Nr]||Lt(Ki,Nr,jr[Nr],ni[Nr],Ci)}(Ze,mr,Dr,qt,Vn),Ut)He.__k=[];else if(gr=He.props.children,De(Ze,Array.isArray(gr)?gr:[gr],He,ot,At,qt&&zn!=="foreignObject",Mt,Sn,Mt?Mt[0]:ot.__k&&he(ot,0),Vn),Mt!=null)for(gr=Mt.length;gr--;)Mt[gr]!=null&&re(Mt[gr]);Vn||("value"in mr&&(gr=mr.value)!==void 0&&(gr!==Dr.value||gr!==Ze.value||zn==="progress"&&!gr)&&Lt(Ze,"value",gr,Dr.value,!1),"checked"in mr&&(gr=mr.checked)!==void 0&&gr!==Ze.checked&&Lt(Ze,"checked",gr,Dr.checked,!1))}return Ze}function bn(Ze,He,ot){try{typeof Ze=="function"?Ze(He):Ze.current=He}catch(At){r.__e(At,ot)}}function Pn(Ze,He,ot){var At,qt;if(r.unmount&&r.unmount(Ze),(At=Ze.ref)&&(At.current&&At.current!==Ze.__e||bn(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]&&Pn(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 Dn(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=M.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},J.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))},J.prototype.forceUpdate=function(Ze){this.__v&&(this.__e=!0,Ze&&this.__h.push(Ze),_e(this))},J.prototype.render=te,o=[],s=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ke.__r=0,f=0,t.Component=J,t.Fragment=te,t.cloneElement=function(Ze,He,ot){var At,qt,Mt,Sn=U({},Ze.props);for(Mt in He)Mt=="key"?At=He[Mt]:Mt=="ref"?qt=He[Mt]:Sn[Mt]=He[Mt];return arguments.length>2&&(Sn.children=arguments.length>3?n.call(arguments,2):ot),ee(Ze.type,Sn,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(Sn){this.props.value!==Sn.value&&qt.some(_e)},this.sub=function(Sn){qt.push(Sn);var Vn=Sn.componentWillUnmount;Sn.componentWillUnmount=function(){qt.splice(qt.indexOf(Sn),1),Vn&&Vn.call(Sn)}}),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){Dn(He,ot,Ze)},t.isValidElement=a,t.options=r,t.render=Dn,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 Dm=eJ("updateUI");class ak extends nT{constructor(){super(...arguments),Object.defineProperty(this,Dm,{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,Dm)[Dm]=function(s){let u=null,f=null;return function(){for(var m=arguments.length,M=new Array(m),K=0;K<m;K++)M[K]=arguments[K];return f=M,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,Dm))[Dm])==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 Rm=nk,rJ=nk,iJ=tJ,aJ=nT,oJ=nJ;Rm.Uppy=rJ,Rm.UIPlugin=iJ,Rm.BasePlugin=aJ,Rm.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 Yy,Wu,El,zu,ok,uJ=lJ;function _l(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=(Wu=aT("getPostResponseFunc"),El=aT("getUrl"),zu=aT("errorHandler"),ok=Yy=class e{constructor(t,n){Object.defineProperty(this,zu,{value:hJ}),Object.defineProperty(this,El,{value:dJ}),Object.defineProperty(this,Wu,{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(_l(this,El)[El](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(_l(this,El)[El](t),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"})).then(_l(this,Wu)[Wu](n)).then(oT).catch(_l(this,zu)[zu]("get",t))}post(t,n,r){const i="post";return this.preflightAndHeaders(t).then(a=>iT(_l(this,El)[El](t),{method:i,headers:a,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(_l(this,Wu)[Wu](r)).then(oT).catch(_l(this,zu)[zu](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(_l(this,Wu)[Wu](r)).then(oT).catch(_l(this,zu)[zu](i,t))}},Yy.VERSION="2.0.4",Yy.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Yy.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} ${_l(this,El)[El](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()})},xl,Gu,ps,io,Xy;let sk,lk;function pa(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 Im(e){return"__private_"+pJ+++"_"+e}var mJ=(xl=Im("queued"),Gu=Im("emitter"),ps=Im("isOpen"),io=Im("socket"),Xy=Im("handleMessage"),sk=Symbol.for("uppy test: getSocket"),lk=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,xl,{writable:!0,value:[]}),Object.defineProperty(this,Gu,{writable:!0,value:z5()}),Object.defineProperty(this,ps,{writable:!0,value:!1}),Object.defineProperty(this,io,{writable:!0,value:void 0}),Object.defineProperty(this,Xy,{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 pa(this,ps)[ps]}[sk](){return pa(this,io)[io]}[lk](){return pa(this,xl)[xl]}open(){pa(this,io)[io]=new WebSocket(this.opts.target),pa(this,io)[io].onopen=()=>{for(pa(this,ps)[ps]=!0;pa(this,xl)[xl].length>0&&pa(this,ps)[ps];){const e=pa(this,xl)[xl].shift();this.send(e.action,e.payload)}},pa(this,io)[io].onclose=()=>{pa(this,ps)[ps]=!1},pa(this,io)[io].onmessage=pa(this,Xy)[Xy]}close(){var e;(e=pa(this,io)[io])==null||e.close()}send(e,t){pa(this,ps)[ps]?pa(this,io)[io].send(JSON.stringify({action:e,payload:t})):pa(this,xl)[xl].push({action:e,payload:t})}on(e,t){pa(this,Gu)[Gu].on(e,t)}emit(e,t){pa(this,Gu)[Gu].emit(e,t)}once(e,t){pa(this,Gu)[Gu].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},Ku,cf,vJ=yd(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 Lm(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=(Ku=uk("emitter"),cf=uk("events"),class{constructor(e){Object.defineProperty(this,Ku,{writable:!0,value:void 0}),Object.defineProperty(this,cf,{writable:!0,value:[]}),Lm(this,Ku)[Ku]=e}on(e,t){return Lm(this,cf)[cf].push([e,t]),Lm(this,Ku)[Ku].on(e,t)}remove(){for(const[e,t]of Lm(this,cf)[cf].splice(0))Lm(this,Ku)[Ku].off(e,t)}});function ms(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 Jy(e){return"__private_"+bJ+++"_"+e}var au=Jy("aliveTimer"),xd=Jy("isDone"),Pm=Jy("onTimedOut"),wd=Jy("timeout"),dk=class{constructor(e,t){Object.defineProperty(this,au,{writable:!0,value:void 0}),Object.defineProperty(this,xd,{writable:!0,value:!1}),Object.defineProperty(this,Pm,{writable:!0,value:void 0}),Object.defineProperty(this,wd,{writable:!0,value:void 0}),ms(this,wd)[wd]=e,ms(this,Pm)[Pm]=t}progress(){ms(this,xd)[xd]||ms(this,wd)[wd]>0&&(clearTimeout(ms(this,au)[au]),ms(this,au)[au]=setTimeout(ms(this,Pm)[Pm],ms(this,wd)[wd]))}done(){ms(this,xd)[xd]||(clearTimeout(ms(this,au)[au]),ms(this,au)[au]=null,ms(this,xd)[xd]=!0)}};function ma(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 Td(e){return"__private_"+EJ+++"_"+e}function _J(){return new Error("Cancelled")}var Go=Td("activeRequests"),bo=Td("queuedHandlers"),km=Td("call"),Mm=Td("queueNext"),lT=Td("next"),uT=Td("queue"),cT=Td("dequeue");function xJ(e){ma(this,Go)[Go]+=1;let t,n=!1;try{t=e()}catch(r){throw ma(this,Go)[Go]-=1,r}return{abort:()=>{n||(n=!0,ma(this,Go)[Go]-=1,t(),ma(this,Mm)[Mm]())},done:()=>{n||(n=!0,ma(this,Go)[Go]-=1,ma(this,Mm)[Mm]())}}}function wJ(){queueMicrotask(()=>ma(this,lT)[lT]())}function TJ(){if(ma(this,Go)[Go]>=this.limit)return;if(ma(this,bo)[bo].length===0)return;const e=ma(this,bo)[bo].shift(),t=ma(this,km)[km](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:()=>{ma(this,cT)[cT](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=ma(this,bo)[bo].findIndex(i=>n.priority>i.priority);return r===-1?ma(this,bo)[bo].push(n):ma(this,bo)[bo].splice(r,0,n),n}function CJ(e){const t=ma(this,bo)[bo].indexOf(e);t!==-1&&ma(this,bo)[bo].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,Mm,{value:wJ}),Object.defineProperty(this,km,{value:xJ}),Object.defineProperty(this,Go,{writable:!0,value:0}),Object.defineProperty(this,bo,{writable:!0,value:[]}),this.limit=typeof e!="number"||e===0?1/0:e}run(e,t){return ma(this,Go)[Go]<this.limit?ma(this,km)[km](e):ma(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,M;try{M=Promise.resolve(e(...i))}catch(K){M=Promise.reject(K)}return M.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 M=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,M),a(M)}),f=DJ();s.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${f} started`)}),s.upload.addEventListener("progress",M=>{this.uppy.log(`[XHRUpload] ${f} progress: ${M.loaded} / ${M.total}`),u.progress(),M.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:M.loaded,bytesTotal:M.total})}),s.addEventListener("load",M=>{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(M.target.status,s.responseText,s)){const $=r.getResponseData(s.responseText,s),ee=$[r.responseUrlFieldName],te={status:M.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:M.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 M=mk(s,r.getResponseError(s.responseText,s));return this.uppy.emit("upload-error",e,M),a(M)}),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 M=this.getOptions(e);return Object.keys(M.headers).forEach(K=>{s.setRequestHeader(K,M.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 M=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(m)[1];return`${/^http:\/\//i.test(m)?"ws":"wss"}://${M}`}(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 M=t.getResponseData(m.response.responseText,m.response),K=M[t.responseUrlFieldName],U={status:m.response.status,body:M,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 M=m.response,K=M?t.getResponseError(M.responseText,M):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(M=>{this.uppy.emit("upload-error",M,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(M=>{this.uppy.emit("upload-progress",M,{uploader:this,bytesUploaded:m.loaded/m.total*M.size,bytesTotal:M.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 M=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return M.request=s,f(M),n(M)}),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 Se!="undefined"?Se:typeof self!="undefined"?self:{};function Nm(e){var t={exports:{}};return e(t,t.exports),t.exports}var Vu,Qy,Zy=function(e){return e&&e.Math==Math&&e},on=Zy(typeof globalThis=="object"&&globalThis)||Zy(typeof window=="object"&&window)||Zy(typeof self=="object"&&self)||Zy(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},Yu=on["__core-js_shared__"]||hT("__core-js_shared__",{}),fT=Nm(function(e){(e.exports=function(t,n){return Yu[t]||(Yu[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),Wn=pT?function(e){return e&&NJ(mT,e)}:function(e){return e&&function(){return mT.apply(e,arguments)}},FJ=on.TypeError,gs=function(e){if(e==null)throw FJ("Can't call method on "+e);return e},BJ=on.Object,Xu=function(e){return BJ(gs(e))},jJ=Wn({}.hasOwnProperty),ta=Object.hasOwn||function(e,t){return jJ(Xu(e),t)},UJ=0,HJ=Math.random(),WJ=Wn(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},Sd=function(e,t){return arguments.length<2?zJ(on[e]):on[e]&&on[e][t]},df=Sd("navigator","userAgent")||"",bk=on.process,Ek=on.Deno,_k=bk&&bk.versions||Ek&&Ek.version,xk=_k&&_k.v8;xk&&(Qy=(Vu=xk.split("."))[0]>0&&Vu[0]<4?1:+(Vu[0]+Vu[1])),!Qy&&df&&(!(Vu=df.match(/Edge\/(\d+)/))||Vu[1]>=74)&&(Vu=df.match(/Chrome\/(\d+)/))&&(Qy=+Vu[1]);var Fm=Qy,Xr=function(e){try{return!!e()}catch(t){return!0}},vT=!!Object.getOwnPropertySymbols&&!Xr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Fm&&Fm<41}),yT=vT&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Bm=fT("wks"),Cd=on.Symbol,wk=Cd&&Cd.for,GJ=yT?Cd:Cd&&Cd.withoutSetter||gT,Oi=function(e){if(!ta(Bm,e)||!vT&&typeof Bm[e]!="string"){var t="Symbol."+e;vT&&ta(Cd,e)?Bm[e]=Cd[e]:Bm[e]=yT&&wk?wk(t):GJ(t)}return Bm[e]},Tk={};Tk[Oi("toStringTag")]="z";var bT=String(Tk)==="[object z]",Pa=!Xr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),di=function(e){return typeof e=="object"?e!==null:ei(e)},ET=on.document,KJ=di(ET)&&di(ET.createElement),jm=function(e){return KJ?ET.createElement(e):{}},Sk=!Pa&&!Xr(function(){return Object.defineProperty(jm("div"),"a",{get:function(){return 7}}).a!=7}),VJ=on.String,YJ=on.TypeError,na=function(e){if(di(e))return e;throw YJ(VJ(e)+" is not an object")},Um=Function.prototype.call,Fr=Um.bind?Um.bind(Um):function(){return Um.apply(Um,arguments)},Ad=Wn({}.isPrototypeOf),XJ=on.Object,_T=yT?function(e){return typeof e=="symbol"}:function(e){var t=Sd("Symbol");return ei(t)&&Ad(t.prototype,XJ(e))},JJ=on.String,$y=function(e){try{return JJ(e)}catch(t){return"Object"}},QJ=on.TypeError,Ju=function(e){if(ei(e))return e;throw QJ($y(e)+" is not a function")},Od=function(e,t){var n=e[t];return n==null?void 0:Ju(n)},ZJ=on.TypeError,$J=on.TypeError,qJ=Oi("toPrimitive"),xT=function(e){var t=function(n,r){if(!di(n)||_T(n))return n;var i,a=Od(n,qJ);if(a){if(r===void 0&&(r="default"),i=Fr(a,n,r),!di(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)&&!di(f=Fr(u,o)))return f;if(ei(u=o.valueOf)&&!di(f=Fr(u,o)))return f;if(s!=="string"&&ei(u=o.toString)&&!di(f=Fr(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,zs={f:Pa?Ck:function(e,t,n){if(na(e),t=xT(t),na(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}},qy=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Gs=Pa?function(e,t,n){return zs.f(e,t,qy(1,n))}:function(e,t,n){return e[t]=n,e},tQ=Wn(Function.toString);ei(Yu.inspectSource)||(Yu.inspectSource=function(e){return tQ(e)});var eb,Hm,tb,nb=Yu.inspectSource,Ak=on.WeakMap,Ok=ei(Ak)&&/native code/.test(nb(Ak)),Dk=fT("keys"),wT=function(e){return Dk[e]||(Dk[e]=gT(e))},rb={},TT=on.TypeError,nQ=on.WeakMap;if(Ok||Yu.state){var Dd=Yu.state||(Yu.state=new nQ),rQ=Wn(Dd.get),Rk=Wn(Dd.has),iQ=Wn(Dd.set);eb=function(e,t){if(Rk(Dd,e))throw new TT("Object already initialized");return t.facade=e,iQ(Dd,e,t),t},Hm=function(e){return rQ(Dd,e)||{}},tb=function(e){return Rk(Dd,e)}}else{var hf=wT("state");rb[hf]=!0,eb=function(e,t){if(ta(e,hf))throw new TT("Object already initialized");return t.facade=e,Gs(e,hf,t),t},Hm=function(e){return ta(e,hf)?e[hf]:{}},tb=function(e){return ta(e,hf)}}var ao={set:eb,get:Hm,has:tb,enforce:function(e){return tb(e)?Hm(e):eb(e,{})},getterFor:function(e){return function(t){var n;if(!di(t)||(n=Hm(t)).type!==e)throw TT("Incompatible receiver, "+e+" required");return n}}},Ik=Function.prototype,aQ=Pa&&Object.getOwnPropertyDescriptor,ST=ta(Ik,"name"),ff={EXISTS:ST,PROPER:ST&&function(){}.name==="something",CONFIGURABLE:ST&&(!Pa||Pa&&aQ(Ik,"name").configurable)},Co=Nm(function(e){var t=ff.CONFIGURABLE,n=ao.get,r=ao.enforce,i=String(String).split("String");(e.exports=function(a,o,s,u){var f,m=!!u&&!!u.unsafe,M=!!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")+"]"),(!ta(s,"name")||t&&s.name!==U)&&Gs(s,"name",U),(f=r(s)).source||(f.source=i.join(typeof U=="string"?U:""))),a!==on?(m?!K&&a[o]&&(M=!0):delete a[o],M?a[o]=s:Gs(a,o,s)):M?a[o]=s:hT(o,s)})(Function.prototype,"toString",function(){return ei(this)&&n(this).source||nb(this)})}),oQ=Wn({}.toString),sQ=Wn("".slice),Ks=function(e){return sQ(oQ(e),8,-1)},lQ=Oi("toStringTag"),uQ=on.Object,cQ=Ks(function(){return arguments}())=="Arguments",ib=bT?Ks: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?Ks(t):(r=Ks(t))=="Object"&&ei(t.callee)?"Arguments":r},dQ=bT?{}.toString:function(){return"[object "+ib(this)+"]"};bT||Co(Object.prototype,"toString",dQ,{unsafe:!0});var ab={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=jm("span").classList,Lk=CT&&CT.constructor&&CT.constructor.prototype,Pk=Lk===Object.prototype?void 0:Lk,kk=Wn(Wn.bind),Rd=function(e,t){return Ju(e),t===void 0?e:kk?kk(e,t):function(){return e.apply(t,arguments)}},AT=on.Object,hQ=Wn("".split),ob=Xr(function(){return!AT("z").propertyIsEnumerable(0)})?function(e){return Ks(e)=="String"?hQ(e,""):AT(e)}:AT,fQ=Math.ceil,pQ=Math.floor,Wm=function(e){var t=+e;return t!=t||t===0?0:(t>0?pQ:fQ)(t)},mQ=Math.min,pf=function(e){return e>0?mQ(Wm(e),9007199254740991):0},Id=function(e){return pf(e.length)},sb=Array.isArray||function(e){return Ks(e)=="Array"},Mk=function(){},gQ=[],Nk=Sd("Reflect","construct"),OT=/^\s*(?:class|function)\b/,vQ=Wn(OT.exec),yQ=!OT.exec(Mk),zm=function(e){if(!ei(e))return!1;try{return Nk(Mk,gQ,e),!0}catch(t){return!1}},lb=!Nk||Xr(function(){var e;return zm(zm.call)||!zm(Object)||!zm(function(){e=!0})||e})?function(e){if(!ei(e))return!1;switch(ib(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return yQ||!!vQ(OT,nb(e))}:zm,bQ=Oi("species"),Fk=on.Array,Bk=function(e,t){return new(function(n){var r;return sb(n)&&(r=n.constructor,(lb(r)&&(r===Fk||sb(r.prototype))||di(r)&&(r=r[bQ])===null)&&(r=void 0)),r===void 0?Fk:r}(e))(t===0?0:t)},jk=Wn([].push),Qu=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,M){for(var K,U,re=Xu(u),$=ob(re),ee=Rd(f,m),te=Id($),J=0,he=M||Bk,me=t?he(u,te):n||o?he(u,0):void 0;te>J;J++)if((s||J in $)&&(U=ee(K=$[J],J,re),e))if(t)me[J]=U;else if(U)switch(e){case 3:return!0;case 5:return K;case 6:return J;case 2:jk(me,K)}else switch(e){case 4:return!1;case 7:jk(me,K)}return a?-1:r||i?i:me}},mf={forEach:Qu(0),map:Qu(1),filter:Qu(2),some:Qu(3),every:Qu(4),find:Qu(5),findIndex:Qu(6),filterReject:Qu(7)},Uk=function(e,t){var n=[][e];return!!n&&Xr(function(){n.call(null,t||function(){throw 1},1)})},EQ=mf.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{Gs(e,"forEach",DT)}catch(t){e.forEach=DT}};for(var RT in ab)ab[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},Zu=function(e){return ob(gs(e))},Kk=Object.getOwnPropertyDescriptor,Gm={f:Pa?Kk:function(e,t){if(e=Zu(e),t=xT(t),Sk)try{return Kk(e,t)}catch(n){}if(ta(e,t))return qy(!Fr(Gk.f,e,t),e[t])}},xQ=Math.max,wQ=Math.min,gf=function(e,t){var n=Wm(e);return n<0?xQ(n+t,0):wQ(n,t)},Vk=function(e){return function(t,n,r){var i,a=Zu(t),o=Id(a),s=gf(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=Wn([].push),Jk=function(e,t){var n,r=Zu(e),i=0,a=[];for(n in r)!ta(rb,n)&&ta(r,n)&&Xk(a,n);for(;t.length>i;)ta(r,n=t[i++])&&(~TQ(a,n)||Xk(a,n));return a},ub=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],SQ=ub.concat("length","prototype"),Km={f:Object.getOwnPropertyNames||function(e){return Jk(e,SQ)}},Qk={f:Object.getOwnPropertySymbols},CQ=Wn([].concat),AQ=Sd("Reflect","ownKeys")||function(e){var t=Km.f(na(e)),n=Qk.f;return n?CQ(t,n(e)):t},OQ=function(e,t){for(var n=AQ(t),r=zs.f,i=Gm.f,a=0;a<n.length;a++){var o=n[a];ta(e,o)||r(e,o,i(t,o))}},DQ=/#|\.prototype\./,Vm=function(e,t){var n=IQ[RQ(e)];return n==PQ||n!=LQ&&(ei(t)?Xr(t):!!t)},RQ=Vm.normalize=function(e){return String(e).replace(DQ,".").toLowerCase()},IQ=Vm.data={},LQ=Vm.NATIVE="N",PQ=Vm.POLYFILL="P",Ym=Vm,kQ=Gm.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],!Ym(u?r:s+(f?".":"#")+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;OQ(a,i)}(e.sham||i&&i.sham)&&Gs(a,"sham",!0),Co(n,r,a,e)}},vf=Object.keys||function(e){return Jk(e,ub)},MQ=Xr(function(){vf(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 vf(Xu(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||Bu.isOperationList(e.redos[0]))&&(e.undos.length===0||Bu.isOperationList(e.undos[0]));var t,n,r}},IT=new WeakMap,LT=new WeakMap,yf={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=yf.isMerging(e);LT.set(e,!1),t(),LT.set(e,n)},withoutSaving(e,t){var n=yf.isSaving(e);IT.set(e,!1),t(),IT.set(e,n)}},FQ=on.String,ui=function(e){if(ib(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return FQ(e)},PT=function(){var e=na(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},BQ=ff.PROPER,kT=RegExp.prototype,$k=kT.toString,jQ=Wn(PT),UQ=Xr(function(){return $k.call({source:"a",flags:"b"})!="/a/b"}),HQ=BQ&&$k.name!="toString";(UQ||HQ)&&Co(RegExp.prototype,"toString",function(){var e=na(this),t=ui(e.source),n=e.flags;return"/"+t+"/"+ui(n===void 0&&Ad(kT,e)&&!("flags"in kT)?jQ(e):n)},{unsafe:!0});var cb,WQ=Pa?Object.defineProperties:function(e,t){na(e);for(var n,r=Zu(t),i=vf(t),a=i.length,o=0;a>o;)zs.f(e,n=i[o++],r[n]);return e},MT=Sd("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},db=function(){try{cb=new ActiveXObject("htmlfile")}catch(r){}var e,t;db=typeof document!="undefined"?document.domain&&cb?tM(cb):((t=jm("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(cb);for(var n=ub.length;n--;)delete db.prototype[ub[n]];return db()};rb[qk]=!0;var hb=Object.create||function(e,t){var n;return e!==null?(NT.prototype=na(e),n=new NT,NT.prototype=null,n[qk]=e):n=db(),t===void 0?n:WQ(n,t)},FT=Oi("unscopables"),BT=Array.prototype;BT[FT]==null&&zs.f(BT,FT,{configurable:!0,value:hb(null)});var Xm=function(e){BT[FT][e]=!0},zQ=Yk.includes;Di({target:"Array",proto:!0},{includes:function(e){return zQ(this,e,arguments.length>1?arguments[1]:void 0)}}),Xm("includes");var GQ=Oi("match"),jT=function(e){var t;return di(e)&&((t=e[GQ])!==void 0?!!t:Ks(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=Wn("".indexOf);Di({target:"String",proto:!0,forced:!HT("includes")},{includes:function(e){return!!~YQ(ui(gs(this)),ui(UT(e)),arguments.length>1?arguments[1]:void 0)}});var XQ=/"/g,JQ=Wn("".replace);Di({target:"String",proto:!0,forced:Xr(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=ui(gs(this)),r="<a",(r+=' name="'+JQ(ui(t),XQ,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var WT=function(e,t,n){var r,i;na(e);try{if(!(r=Od(e,"return"))){if(t==="throw")throw n;return n}r=Fr(r,e)}catch(a){i=!0,r=a}if(t==="throw")throw n;if(i)throw r;return na(r),n},QQ=function(e,t,n,r){try{return r?t(na(n)[0],n[1]):t(n)}catch(i){WT(e,"throw",i)}},bf={},ZQ=Oi("iterator"),$Q=Array.prototype,nM=function(e){return e!==void 0&&(bf.Array===e||$Q[ZQ]===e)},Jm=function(e,t,n){var r=xT(t);r in e?zs.f(e,r,qy(0,n)):e[r]=n},qQ=Oi("iterator"),zT=function(e){if(e!=null)return Od(e,qQ)||Od(e,"@@iterator")||bf[ib(e)]},eZ=on.TypeError,rM=function(e,t){var n=arguments.length<2?zT(e):t;if(Ju(n))return na(Fr(n,e));throw eZ($y(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=Xu(e),n=lb(this),r=arguments.length,i=r>1?arguments[1]:void 0,a=i!==void 0;a&&(i=Rd(i,r>2?arguments[2]:void 0));var o,s,u,f,m,M,K=zT(t),U=0;if(!K||this==iM&&nM(K))for(o=Id(t),s=n?new this(o):iM(o);o>U;U++)M=a?i(t[U],U):t[U],Jm(s,U,M);else for(m=(f=rM(t,K)).next,s=n?new this:[];!(u=Fr(m,f)).done;U++)M=a?QQ(f,i,[u.value,U],!0):u.value,Jm(s,U,M);return s.length=U,s}});var Ld,lM,uM,rZ=Wn("".charAt),cM=Wn("".charCodeAt),iZ=Wn("".slice),dM=function(e){return function(t,n){var r,i,a=ui(gs(t)),o=Wm(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=!Xr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),fM=wT("IE_PROTO"),KT=on.Object,oZ=KT.prototype,fb=aZ?KT.getPrototypeOf:function(e){var t=Xu(e);if(ta(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=fb(fb(uM)))!==Object.prototype&&(Ld=lM):pM=!0);var sZ=Ld==null||Xr(function(){var e={};return Ld[VT].call(e)!==e});sZ&&(Ld={}),ei(Ld[VT])||Co(Ld,VT,function(){return this});var YT={IteratorPrototype:Ld,BUGGY_SAFARI_ITERATORS:pM},lZ=zs.f,mM=Oi("toStringTag"),pb=function(e,t,n){e&&!ta(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,Ef=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Wn(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(r,i){return na(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=ff.PROPER,pZ=ff.CONFIGURABLE,gM=YT.IteratorPrototype,mb=YT.BUGGY_SAFARI_ITERATORS,Qm=Oi("iterator"),mZ=function(){return this},XT=function(e,t,n,r,i,a,o){!function(te,J,he,me){var _e=J+" Iterator";te.prototype=hb(uZ,{next:qy(1,he)}),pb(te,_e,!1),bf[_e]=cZ}(n,t,r);var s,u,f,m=function(te){if(te===i&&$)return $;if(!mb&&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)}},M=t+" Iterator",K=!1,U=e.prototype,re=U[Qm]||U["@@iterator"]||i&&U[i],$=!mb&&re||m(i),ee=t=="Array"&&U.entries||re;if(ee&&(s=fb(ee.call(new e)))!==Object.prototype&&s.next&&(fb(s)!==gM&&(Ef?Ef(s,gM):ei(s[Qm])||Co(s,Qm,mZ)),pb(s,M,!0)),fZ&&i=="values"&&re&&re.name!=="values"&&(pZ?Gs(U,"name","values"):(K=!0,$=function(){return Fr(re,this)})),i)if(u={values:m("values"),keys:a?$:m("keys"),entries:m("entries")},o)for(f in u)(mb||K||!(f in U))&&Co(U,f,u[f]);else Di({target:t,proto:!0,forced:mb||K},u);return U[Qm]!==$&&Co(U,Qm,$,{name:i}),bf[t]=$,u},gZ=hM.charAt,vZ=ao.set,yZ=ao.getterFor("String Iterator");XT(String,"String",function(e){vZ(this,{type:"String Iterator",string:ui(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=Gm.f,vM=Wn("".endsWith),EZ=Wn("".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=ui(gs(this));UT(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=n===void 0?r:_Z(pf(n),r),a=ui(e);return vM?vM(t,a,i):EZ(t,i-a.length,i)===a}});var wZ=Wn([].join),TZ=ob!=Object,SZ=Uk("join",",");Di({target:"Array",proto:!0,forced:TZ||!SZ},{join:function(e){return wZ(Zu(this),e===void 0?",":e)}});var CZ=Oi("species"),gb=function(e){return Fm>=51||!Xr(function(){var t=[];return(t.constructor={})[CZ]=function(){return{foo:1}},t[e](Boolean).foo!==1})},AZ=mf.map,OZ=gb("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=Xr(function(){var e=QT("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),DZ=ZT||Xr(function(){return!QT("a","y").sticky}),vb={BROKEN_CARET:ZT||Xr(function(){var e=QT("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:DZ,UNSUPPORTED_Y:ZT},RZ=on.RegExp,$T=Xr(function(){var e=RZ(".","s");return!(e.dotAll&&e.exec(`
`)&&e.flags==="s")}),IZ=on.RegExp,qT=Xr(function(){var e=IZ("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),LZ=ao.get,PZ=fT("native-string-replace",String.prototype.replace),yb=RegExp.prototype.exec,eS=yb,kZ=Wn("".charAt),MZ=Wn("".indexOf),NZ=Wn("".replace),tS=Wn("".slice),nS=function(){var e=/a/,t=/b*/g;return Fr(yb,e,"a"),Fr(yb,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),bM=vb.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=ui(e),M=f.raw;if(M)return M.lastIndex=u.lastIndex,t=Fr(eS,M,m),u.lastIndex=M.lastIndex,t;var K=f.groups,U=bM&&u.sticky,re=Fr(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=Fr(yb,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&&Fr(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=hb(null),a=0;a<K.length;a++)o[(s=K[a])[0]]=i[s[1]];return i});var Zm=eS;Di({target:"RegExp",proto:!0,forced:/./.exec!==Zm},{exec:Zm});var iS=Function.prototype,EM=iS.apply,FZ=iS.bind,_M=iS.call,aS=typeof Reflect=="object"&&Reflect.apply||(FZ?_M.bind(EM):function(){return _M.apply(EM,arguments)}),BZ=Oi("species"),oS=RegExp.prototype,sS=function(e,t,n,r){var i=Oi(e),a=!Xr(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),o=a&&!Xr(function(){var f=!1,m=/a/;return e==="split"&&((m={}).constructor={},m.constructor[BZ]=function(){return m},m.flags="",m[i]=/./[i]),m.exec=function(){return f=!0,null},m[i](""),!f});if(!a||!o||n){var s=Wn(/./[i]),u=t(i,""[e],function(f,m,M,K,U){var re=Wn(f),$=m.exec;return $===Zm||$===oS.exec?a&&!U?{done:!0,value:s(m,M,K)}:{done:!0,value:re(M,m,K)}:{done:!1}});Co(String.prototype,e,u[0]),Co(oS,i,u[1])}r&&Gs(oS[i],"sham",!0)},jZ=hM.charAt,lS=function(e,t,n){return t+(n?jZ(e,t).length:1)},UZ=Math.floor,uS=Wn("".charAt),HZ=Wn("".replace),cS=Wn("".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=Xu(i),u=WZ),HZ(a,u,function(f,m){var M;switch(uS(m,0)){case"$":return"$";case"&":return e;case"`":return cS(t,0,n);case"'":return cS(t,o);case"<":M=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}M=r[K-1]}return M===void 0?"":M})},KZ=on.TypeError,$m=function(e,t){var n=e.exec;if(ei(n)){var r=Fr(n,e,t);return r!==null&&na(r),r}if(Ks(e)==="RegExp")return Fr(Zm,e,t);throw KZ("RegExp#exec called on incompatible receiver")},dS=Oi("replace"),VZ=Math.max,YZ=Math.min,XZ=Wn([].concat),hS=Wn([].push),xM=Wn("".indexOf),wM=Wn("".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=gs(this),s=i==null?void 0:Od(i,dS);return s?Fr(s,i,o,a):Fr(t,ui(o),i,a)},function(i,a){var o=na(this),s=ui(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=ui(a));var m=o.global;if(m){var M=o.unicode;o.lastIndex=0}for(var K=[];;){var U=$m(o,s);if(U===null)break;if(hS(K,U),!m)break;ui(U[0])===""&&(o.lastIndex=lS(s,pf(o.lastIndex),M))}for(var re,$="",ee=0,te=0;te<K.length;te++){for(var J=ui((U=K[te])[0]),he=VZ(YZ(Wm(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([J],me,he,s);ke!==void 0&&hS(De,ke);var Ke=ui(aS(a,void 0,De))}else Ke=GZ(J,s,he,me,ke,a);he>=ee&&($+=wM(s,ee,he)+Ke,ee=he+J.length)}return $+wM(s,ee)}]},!!Xr(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 _f(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 vs=function(){return vs=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},vs.apply(this,arguments)};function ys(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 Br(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=ao.set,$Z=ao.getterFor("Array Iterator"),qm=XT(Array,"Array",function(e,t){ZZ(this,{type:"Array Iterator",target:Zu(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");bf.Arguments=bf.Array,Xm("keys"),Xm("values"),Xm("entries");var xf=function(e,t,n){for(var r in t)Co(e,r,t[r],n);return e},qZ=on.Array,e$=Math.max,mS=function(e,t,n){for(var r=Id(e),i=gf(t,r),a=gf(n===void 0?r:n,r),o=qZ(e$(a-i,0)),s=0;i<a;i++,s++)Jm(o,s,e[i]);return o.length=s,o},CM=Km.f,AM=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],t$={f:function(e){return AM&&Ks(e)=="Window"?function(t){try{return CM(t)}catch(n){return mS(AM)}}(e):CM(Zu(e))}},OM=Xr(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),bb=Object.isExtensible,Pd=Xr(function(){bb(1)})||OM?function(e){return!!di(e)&&(!OM||Ks(e)!="ArrayBuffer")&&(!bb||bb(e))}:bb,n$=!Xr(function(){return Object.isExtensible(Object.preventExtensions({}))}),Eb=Nm(function(e){var t=zs.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=Km.f,u=Wn([].splice),f={};f[r]=1,s(f).length&&(Km.f=function(m){for(var M=s(m),K=0,U=M.length;K<U;K++)if(M[K]===r){u(M,K,1);break}return M},Di({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:t$.f}))},fastKey:function(s,u){if(!di(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!ta(s,r)){if(!Pd(s))return"F";if(!u)return"E";a(s)}return s[r].objectID},getWeakData:function(s,u){if(!ta(s,r)){if(!Pd(s))return!0;if(!u)return!1;a(s)}return s[r].weakData},onFreeze:function(s){return n$&&n&&Pd(s)&&!ta(s,r)&&a(s),s}};rb[r]=!0}),r$=on.TypeError,_b=function(e,t){this.stopped=e,this.result=t},DM=_b.prototype,eg=function(e,t,n){var r,i,a,o,s,u,f,m=n&&n.that,M=!(!n||!n.AS_ENTRIES),K=!(!n||!n.IS_ITERATOR),U=!(!n||!n.INTERRUPTED),re=Rd(t,m),$=function(te){return r&&WT(r,"normal",te),new _b(!0,te)},ee=function(te){return M?(na(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$($y(e)+" is not iterable");if(nM(i)){for(a=0,o=Id(e);o>a;a++)if((s=ee(e[a]))&&Ad(DM,s))return s;return new _b(!1)}r=rM(e,i)}for(u=r.next;!(f=Fr(u,r)).done;){try{s=ee(f.value)}catch(te){WT(r,"throw",te)}if(typeof s=="object"&&s&&Ad(DM,s))return s}return new _b(!1)},i$=on.TypeError,xb=function(e,t){if(Ad(t,e))return e;throw i$("Incorrect invocation")},RM=function(e,t,n){var r,i;return Ef&&ei(r=t.constructor)&&r!==n&&di(i=r.prototype)&&i!==n.prototype&&Ef(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=Wn(s[ee]);Co(s,ee,ee=="add"?function(J){return te(this,J===0?0:J),this}:ee=="delete"?function(J){return!(i&&!di(J))&&te(this,J===0?0:J)}:ee=="get"?function(J){return i&&!di(J)?void 0:te(this,J===0?0:J)}:ee=="has"?function(J){return!(i&&!di(J))&&te(this,J===0?0:J)}:function(J,he){return te(this,J===0?0:J,he),this})};if(Ym(e,!ei(o)||!(i||s.forEach&&!Xr(function(){new o().entries().next()}))))u=n.getConstructor(t,e,r,a),Eb.enable();else if(Ym(e,!0)){var M=new u,K=M[a](i?{}:-0,1)!=M,U=Xr(function(){M.has(1)}),re=GT(function(ee){new o(ee)}),$=!i&&Xr(function(){for(var ee=new o,te=5;te--;)ee[a](te,te);return!ee.has(-0)});re||((u=t(function(ee,te){xb(ee,s);var J=RM(new o,ee,u);return te!=null&&eg(te,J[a],{that:J,AS_ENTRIES:r}),J})).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),pb(u,e),i||n.setStrong(u,e,r),u},wb=Eb.getWeakData,a$=ao.set,o$=ao.getterFor,s$=mf.find,l$=mf.findIndex,u$=Wn([].splice),c$=0,Tb=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 tg,PM={getConstructor:function(e,t,n,r){var i=e(function(u,f){xb(u,a),a$(u,{type:t,id:c$++,frozen:void 0}),f!=null&&eg(f,u[r],{that:u,AS_ENTRIES:n})}),a=i.prototype,o=o$(t),s=function(u,f,m){var M=o(u),K=wb(na(f),!0);return K===!0?Tb(M).set(f,m):K[M.id]=m,u};return xf(a,{delete:function(u){var f=o(this);if(!di(u))return!1;var m=wb(u);return m===!0?Tb(f).delete(u):m&&ta(m,f.id)&&delete m[f.id]},has:function(u){var f=o(this);if(!di(u))return!1;var m=wb(u);return m===!0?Tb(f).has(u):m&&ta(m,f.id)}}),xf(a,n?{get:function(u){var f=o(this);if(di(u)){var m=wb(u);return m===!0?Tb(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}},Sb=ao.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$){tg=PM.getConstructor(kM,"WeakMap",!0),Eb.enable();var ng=h$.prototype,MM=Wn(ng.delete),Cb=Wn(ng.has),NM=Wn(ng.get),FM=Wn(ng.set);xf(ng,{delete:function(e){if(di(e)&&!Pd(e)){var t=Sb(this);return t.frozen||(t.frozen=new tg),MM(this,e)||t.frozen.delete(e)}return MM(this,e)},has:function(e){if(di(e)&&!Pd(e)){var t=Sb(this);return t.frozen||(t.frozen=new tg),Cb(this,e)||t.frozen.has(e)}return Cb(this,e)},get:function(e){if(di(e)&&!Pd(e)){var t=Sb(this);return t.frozen||(t.frozen=new tg),Cb(this,e)?NM(this,e):t.frozen.get(e)}return NM(this,e)},set:function(e,t){if(di(e)&&!Pd(e)){var n=Sb(this);n.frozen||(n.frozen=new tg),Cb(this,e)?FM(this,e,t):n.frozen.set(e,t)}else FM(this,e,t);return this}})}var vS=Oi("iterator"),BM=Oi("toStringTag"),yS=qm.values,jM=function(e,t){if(e){if(e[vS]!==yS)try{Gs(e,vS,yS)}catch(r){e[vS]=yS}if(e[BM]||Gs(e,BM,t),ab[t]){for(var n in qm)if(e[n]!==qm[n])try{Gs(e,n,qm[n])}catch(r){e[n]=qm[n]}}}};for(var bS in ab)jM(on[bS]&&on[bS].prototype,bS);jM(Pk,"DOMTokenList");var ES=new WeakMap,_S=new WeakMap,xS=new WeakMap,Ab=new WeakMap,wS=new WeakMap,Ob=new WeakMap,TS=new WeakMap,SS=new WeakMap,Db=new WeakMap,UM=new WeakMap,HM=new WeakMap,WM=new WeakMap,zM=new WeakMap,rg=new WeakMap,wf=new WeakMap,CS=new WeakMap,Rb=new WeakMap,AS=new WeakMap,Ib=new WeakMap,Lb=new WeakMap,GM=new WeakMap,kd=new WeakMap,OS=new WeakMap,KM=new WeakMap,DS=new WeakMap,f$=mf.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)}}),Xm("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"];Ny&&(Qe.fn.css=Ny),fs&&(Qe.fn.append=fs),Qh&&(Qe.fn.addClass=Qh),Zh&&(Qe.fn.removeClass=Zh),$h&&(Qe.fn.hasClass=$h),yl&&(Qe.fn.on=yl),Hu&&(Qe.fn.focus=Hu),hs&&(Qe.fn.attr=hs),Ly&&(Qe.fn.removeAttr=Ly),ef&&(Qe.fn.hide=ef),My&&(Qe.fn.show=My),QP&&(Qe.fn.offset=QP),Py&&(Qe.fn.width=Py),ky&&(Qe.fn.height=ky),tf&&(Qe.fn.parent=tf),jy&&(Qe.fn.parents=jy),$P&&(Qe.fn.is=$P),qh&&(Qe.fn.dataset=qh),vl&&(Qe.fn.val=vl),By&&(Qe.fn.text=By),Uu&&(Qe.fn.html=Uu),rf&&(Qe.fn.children=rf),af&&(Qe.fn.remove=af),nf&&(Qe.fn.find=nf),Fy&&(Qe.fn.each=Fy),of&&(Qe.fn.empty=of);var wl,oo,RS=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Vs=function(e){return Md(e)&&e.nodeType===1},Md=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 Md(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;(Md(r=a)&&r.nodeType===8||Vs(a)&&a.childNodes.length===0||Vs(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 Br(JM(e,t,n),1)[0]},g$=function e(t){var n,r,i="";if(XM(t)&&t.nodeValue)return t.nodeValue;if(Vs(t)){try{for(var a=ys(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!==wl.ELEMENT_NODE?"":t.tagName.toLowerCase()}(oo=wl||(wl={}))[oo.ELEMENT_NODE=1]="ELEMENT_NODE",oo[oo.TEXT_NODE=3]="TEXT_NODE",oo[oo.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",oo[oo.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",oo[oo.COMMENT_NODE=8]="COMMENT_NODE",oo[oo.DOCUMENT_NODE=9]="DOCUMENT_NODE",oo[oo.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",oo[oo.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),ig=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 ag=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 og=!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=Lb.get(t);return n||(n=new SM,Lb.set(t,n)),n},setNewKey:function(e){var t=new SM;Lb.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var i=wf.get(r);if(i==null){if(Ee.isEditor(r))return n;break}var a=rg.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 wf.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 hn.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=Vs(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=Br(i?o:a,2),f=u[0],m=u[1],M=Br(i?a:o,2),K=M[0],U=M[1],re=!!(Vs(f)?f:f.parentElement).getAttribute("data-slate-zero-width"),$=!!(Vs(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=Br(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=ys(s),m=f.next();!m.done;m=f.next()){var M=m.value,K=M.childNodes[0];if(K!=null&&K.textContent!=null){var U=K.textContent.length,re=M.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=Vs(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Rb.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"}),M=f?Ee.before(e,m):Ee.after(e,m);if(M)return Ee.range(e,M)}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 M=s?m:Ge.toSlatePoint(e,[a,o],{exactMatch:u,suppressThrow:f});if(!M)return null;var K={anchor:m,focus:M};return _t.isExpanded(K)&&_t.isForward(K)&&Vs(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=Br(i?t:function(J){var he,me=Br(J,2),_e=me[0],ke=me[1];if(Vs(_e)&&_e.childNodes.length){var De=ke===_e.childNodes.length,Ke=De?ke-1:ke;for(_e=(he=Br(JM(_e,Ke,De?"backward":"forward"),2))[0],De=(Ke=he[1])<ke;Vs(_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,M=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([],Br(KP(ee.querySelectorAll("[data-slate-zero-width]")))),Br(KP(ee.querySelectorAll("[contenteditable=false]")))).forEach(function(J){J.parentNode.removeChild(J)}),M=ee.textContent.length,re=m}else K&&((U=K.querySelector("[data-slate-leaf]"))?(m=U.closest('[data-slate-node="text"]'),M=(re=U).textContent.length,re.querySelectorAll("[data-slate-zero-width]").forEach(function(J){M-=J.textContent.length})):M=1);re&&M===re.textContent.length&&(f.hasAttribute("data-slate-zero-width")||ig&&((r=re.textContent)===null||r===void 0?void 0:r.endsWith(`
`)))&&M--}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:M}},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 hn.string(t)}).join("")},getSelectedElems:function(e){var t,n,r=[],i=Ee.nodes(e,{universal:!0});try{for(var a=ys(i),o=a.next();!o.done;o=a.next()){var s=Br(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=Br(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=Br(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=Br(Ee.nodes(e,{match:function(i){return i===t},universal:!0}),1),r=n[0];return r!=null&&Br(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 Ab.get(e)||null},getHoverbar:function(e){return Ob.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=ys(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 M=ys(m),K=M.next();!K.done;K=M.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=M.return)&&i.call(M)}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=ys(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=Br(n,1)[0].children;return r.length===1&&r[0].text===""}},b$=1,$M={},sg={},E$=mf.filter,_$=gb("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=Wn("".replace),Pb="["+kS+"]",x$=RegExp("^"+Pb+Pb+"*"),w$=RegExp(Pb+Pb+"*$"),MS=function(e){return function(t){var n=ui(gs(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$=ff.PROPER,C$=T$.trim;Di({target:"String",proto:!0,forced:function(e){return Xr(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 lg,Tf,tN,FS,kb=on.Promise,nN=Oi("species"),BS=function(e){var t=Sd(e),n=zs.f;Pa&&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=na(e).constructor;return r===void 0||(n=na(r)[D$])==null?t:function(i){if(lb(i))return i;throw O$($y(i)+" is not a constructor")}(n)},iN=Wn([].slice),aN=/(?:ipad|iphone|ipod).*applewebkit/i.test(df),$u=Ks(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,ug={};try{lg=on.location}catch(e){}var zS=function(e){if(ta(ug,e)){var t=ug[e];delete ug[e],t()}},GS=function(e){return function(){zS(e)}},sN=function(e){zS(e.data)},lN=function(e){on.postMessage(L$(e),lg.protocol+"//"+lg.host)};jS&&US||(jS=function(e){var t=iN(arguments,1);return ug[++WS]=function(){aS(ei(e)?e:I$(e),void 0,t)},Tf(WS),WS},US=function(e){delete ug[e]},$u?Tf=function(e){R$.nextTick(GS(e))}:HS&&HS.now?Tf=function(e){HS.now(GS(e))}:oN&&!aN?(FS=(tN=new oN).port2,tN.port1.onmessage=sN,Tf=Rd(FS.postMessage,FS)):on.addEventListener&&ei(on.postMessage)&&!on.importScripts&&lg&&lg.protocol!=="file:"&&!Xr(lN)?(Tf=lN,on.addEventListener("message",sN,!1)):Tf="onreadystatechange"in jm("script")?function(e){MT.appendChild(jm("script")).onreadystatechange=function(){MT.removeChild(this),zS(e)}}:function(e){setTimeout(GS(e),0)});var cg,Nd,dg,Sf,KS,VS,YS,uN,cN={set:jS,clear:US},P$=/ipad|iphone|ipod/i.test(df)&&on.Pebble!==void 0,k$=/web0s(?!.*chrome)/i.test(df),M$=Gm.f,XS=cN.set,dN=on.MutationObserver||on.WebKitMutationObserver,hN=on.document,fN=on.process,Mb=on.Promise,pN=M$(on,"queueMicrotask"),mN=pN&&pN.value;mN||(cg=function(){var e,t;for($u&&(e=fN.domain)&&e.exit();Nd;){t=Nd.fn,Nd=Nd.next;try{t()}catch(n){throw Nd?Sf():dg=void 0,n}}dg=void 0,e&&e.enter()},aN||$u||k$||!dN||!hN?!P$&&Mb&&Mb.resolve?((YS=Mb.resolve(void 0)).constructor=Mb,uN=Rd(YS.then,YS),Sf=function(){uN(cg)}):$u?Sf=function(){fN.nextTick(cg)}:(XS=Rd(XS,on),Sf=function(){XS(cg)}):(KS=!0,VS=hN.createTextNode(""),new dN(cg).observe(VS,{characterData:!0}),Sf=function(){VS.data=KS=!KS}));var JS,gN,vN,yN,bN=mN||function(e){var t={fn:e,next:void 0};dg&&(dg.next=t),Nd||(Nd=t,Sf()),dg=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=Ju(t),this.reject=Ju(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}}},F$=typeof window=="object",EN=cN.set,B$=Oi("species"),Tl="Promise",_N=ao.getterFor(Tl),j$=ao.set,U$=ao.getterFor(Tl),Fd=kb&&kb.prototype,Sl=kb,hg=Fd,xN=on.TypeError,$S=on.document,qS=on.process,Cf=QS.f,H$=Cf,W$=!!($S&&$S.createEvent&&on.dispatchEvent),wN=ei(on.PromiseRejectionEvent),TN=!1,fg=Ym(Tl,function(){var e=nb(Sl),t=e!==String(Sl);if(!t&&Fm===66)return!0;if(Fm>=51&&/native code/.test(e))return!1;var n=new Sl(function(i){i(1)}),r=function(i){i(function(){},function(){})};return(n.constructor={})[B$]=r,!(TN=n.then(function(){})instanceof r)||!t&&F$&&!wN}),z$=fg||!GT(function(e){Sl.all(e).catch(function(){})}),SN=function(e){var t;return!(!di(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,M=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))?Fr(s,o,M,K):M(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){Fr(EN,on,function(){var t,n=e.facade,r=e.value;if(AN(e)&&(t=ZS(function(){$u?qS.emit("unhandledRejection",r,n):CN("unhandledrejection",n,r)}),e.rejection=$u||AN(e)?2:1,t.error))throw t.value})},AN=function(e){return e.rejection!==1&&!e.parent},K$=function(e){Fr(EN,on,function(){var t=e.facade;$u?qS.emit("rejectionHandled",t):CN("rejectionhandled",t,e.value)})},Af=function(e,t,n){return function(r){e(t,r,n)}},Of=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{Fr(r,t,Af(tC,i,e),Af(Of,i,e))}catch(a){Of(i,a,e)}}):(e.value=t,e.state=1,eC(e,!1))}catch(i){Of({done:!1},i,e)}}};if(fg&&(hg=(Sl=function(e){xb(this,hg),Ju(e),Fr(JS,this);var t=_N(this);try{e(Af(tC,t),Af(Of,t))}catch(n){Of(t,n)}}).prototype,(JS=function(e){j$(this,{type:Tl,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=xf(hg,{then:function(e,t){var n=U$(this),r=n.reactions,i=Cf(rN(this,Sl));return i.ok=!ei(e)||e,i.fail=ei(t)&&t,i.domain=$u?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=Af(tC,t),this.reject=Af(Of,t)},QS.f=Cf=function(e){return e===Sl||e===vN?new gN(e):H$(e)},ei(kb)&&Fd!==Object.prototype)){yN=Fd.then,TN||(Co(Fd,"then",function(e,t){var n=this;return new Sl(function(r,i){Fr(yN,n,r,i)}).then(e,t)},{unsafe:!0}),Co(Fd,"catch",hg.catch,{unsafe:!0}));try{delete Fd.constructor}catch(e){}Ef&&Ef(Fd,hg)}Di({global:!0,wrap:!0,forced:fg},{Promise:Sl}),pb(Sl,Tl,!1),BS(Tl),vN=Sd(Tl),Di({target:Tl,stat:!0,forced:fg},{reject:function(e){var t=Cf(this);return Fr(t.reject,void 0,e),t.promise}}),Di({target:Tl,stat:!0,forced:fg},{resolve:function(e){return function(t,n){if(na(t),di(n)&&n.constructor===t)return n;var r=QS.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),Di({target:Tl,stat:!0,forced:z$},{all:function(e){var t=this,n=Cf(t),r=n.resolve,i=n.reject,a=ZS(function(){var o=Ju(t.resolve),s=[],u=0,f=1;eg(e,function(m){var M=u++,K=!1;f++,Fr(o,t,m).then(function(U){K||(K=!0,s[M]=U,--f||r(s))},i)}),--f||r(s)});return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=Cf(t),r=n.reject,i=ZS(function(){var a=Ju(t.resolve);eg(e,function(o){Fr(a,t,o).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var Df=vb.UNSUPPORTED_Y,V$=Math.min,ON=[].push,Y$=Wn(/./.exec),Rf=Wn(ON),pg=Wn("".slice);function bs(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),M=m(n,f,r),K="";if(K=typeof M=="string"?M:M.html||"",u||NS.forEach(function(te){return K=te(n,K)}),typeof M=="string")return K;var U=M.prefix,re=U===void 0?"":U,$=M.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=ui(gs(this)),s=a===void 0?4294967295:a>>>0;if(s===0)return[];if(i===void 0)return[o];if(!jT(i))return Fr(t,o,i,s);for(var u,f,m,M=[],K=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),U=0,re=new RegExp(i.source,K+"g");(u=Fr(Zm,re,o))&&!((f=re.lastIndex)>U&&(Rf(M,pg(o,U,u.index)),u.length>1&&u.index<o.length&&aS(ON,M,mS(u,1)),m=u[0].length,U=f,M.length>=s));)re.lastIndex===u.index&&re.lastIndex++;return U===o.length?!m&&Y$(re,"")||Rf(M,""):Rf(M,pg(o,U)),M.length>s?mS(M,0,s):M}:"0".split(void 0,0).length?function(i,a){return i===void 0&&a===0?[]:Fr(t,this,i,a)}:t,[function(i,a){var o=gs(this),s=i==null?void 0:Od(i,e);return s?Fr(s,i,o,a):Fr(r,ui(o),i,a)},function(i,a){var o=na(this),s=ui(i),u=n(r,o,s,a,r!==t);if(u.done)return u.value;var f=rN(o,RegExp),m=o.unicode,M=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(Df?"g":"y"),K=new f(Df?"^(?:"+o.source+")":o,M),U=a===void 0?4294967295:a>>>0;if(U===0)return[];if(s.length===0)return $m(K,s)===null?[s]:[];for(var re=0,$=0,ee=[];$<s.length;){K.lastIndex=Df?0:$;var te,J=$m(K,Df?pg(s,$):s);if(J===null||(te=V$(pf(K.lastIndex+(Df?$:0)),s.length))===re)$=lS(s,$,m);else{if(Rf(ee,pg(s,re,$)),ee.length===U)return ee;for(var he=1;he<=J.length-1;he++)if(Rf(ee,J[he]),ee.length===U)return ee;$=re=te}}return Rf(ee,pg(s,re)),ee}]},!!Xr(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"}),Df);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=[],Nb={},X$=zs.f,J$=Km.f,Q$=ao.enforce,Z$=Oi("match"),ou=on.RegExp,If=ou.prototype,$$=on.SyntaxError,q$=Wn(PT),eq=Wn(If.exec),Fb=Wn("".charAt),MN=Wn("".replace),NN=Wn("".indexOf),tq=Wn("".slice),nq=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Bd=/a/g,rC=/a/g,rq=new ou(Bd)!==Bd,FN=vb.MISSED_STICKY,iq=vb.UNSUPPORTED_Y,aq=Pa&&(!rq||FN||$T||qT||Xr(function(){return rC[Z$]=!1,ou(Bd)!=Bd||ou(rC)==rC||ou(Bd,"i")!="/a/i"}));if(Ym("RegExp",aq)){for(var qu=function(e,t){var n,r,i,a,o,s,u=Ad(If,this),f=jT(e),m=t===void 0,M=[],K=e;if(!u&&f&&m&&e.constructor===qu)return e;if((f||Ad(If,e))&&(e=e.source,m&&(t="flags"in K?K.flags:q$(K))),e=e===void 0?"":ui(e),t=t===void 0?"":ui(t),K=e,$T&&"dotAll"in Bd&&(r=!!t&&NN(t,"s")>-1)&&(t=MN(t,/s/g,"")),n=t,FN&&"sticky"in Bd&&(i=!!t&&NN(t,"y")>-1)&&iq&&(t=MN(t,/y/g,"")),qT&&(a=function(U){for(var re,$=U.length,ee=0,te="",J=[],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===""||ta(he,De))throw new $$("Invalid capture group name");he[De]=!0,J[J.length]=[De,ke],_e=!1,De="";continue}_e?De+=re:te+=re}return[te,J]}(e),e=a[0],M=a[1]),o=RM(ou(e,t),u?this:If,qu),(r||i||M.length)&&(s=Q$(o),r&&(s.dotAll=!0,s.raw=qu(function(U){for(var re,$=U.length,ee=0,te="",J=!1;ee<=$;ee++)(re=Fb(U,ee))!=="\\"?J||re!=="."?(re==="["?J=!0:re==="]"&&(J=!1),te+=re):te+="[\\s\\S]":te+=re+Fb(U,++ee);return te}(e),n)),i&&(s.sticky=!0),M.length&&(s.groups=M)),e!==K)try{Gs(o,"source",K===""?"(?:)":K)}catch(U){}return o},oq=function(e){e in qu||X$(qu,e,{configurable:!0,get:function(){return ou[e]},set:function(t){ou[e]=t}})},BN=J$(ou),jN=0;BN.length>jN;)oq(BN[jN++]);If.constructor=qu,qu.prototype=If,Co(on,"RegExp",qu)}BS("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!==wl.ELEMENT_NODE){if(!(f.nodeType!==wl.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 M=oC(Qe(f),o);Array.isArray(M)?M.forEach(function(K){return s.push(K)}):s.push(M)}}),s)}(e,t),r=function(a){for(var o in Nb)if(a[0].matches(o))return Nb[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=zs.f,GN=Eb.fastKey,KN=ao.set,sC=ao.getterFor,cq={getConstructor:function(e,t,n,r){var i=e(function(f,m){xb(f,a),KN(f,{type:t,index:hb(null),first:void 0,last:void 0,size:0}),Pa||(f.size=0),m!=null&&eg(m,f[r],{that:f,AS_ENTRIES:n})}),a=i.prototype,o=sC(t),s=function(f,m,M){var K,U,re=o(f),$=u(f,m);return $?$.value=M:(re.last=$={index:U=GN(m,!0),key:m,value:M,previous:K=re.last,next:void 0,removed:!1},re.first||(re.first=$),K&&(K.next=$),Pa?re.size++:f.size++,U!=="F"&&(re.index[U]=$)),f},u=function(f,m){var M,K=o(f),U=GN(m);if(U!=="F")return K.index[U];for(M=K.first;M;M=M.next)if(M.key==m)return M};return xf(a,{clear:function(){for(var f=o(this),m=f.index,M=f.first;M;)M.removed=!0,M.previous&&(M.previous=M.previous.next=void 0),delete m[M.index],M=M.next;f.first=f.last=void 0,Pa?f.size=0:this.size=0},delete:function(f){var m=this,M=o(m),K=u(m,f);if(K){var U=K.next,re=K.previous;delete M.index[K.index],K.removed=!0,re&&(re.next=U),U&&(U.previous=re),M.first==K&&(M.first=U),M.last==K&&(M.last=re),Pa?M.size--:m.size--}return!!K},forEach:function(f){for(var m,M=o(this),K=Rd(f,arguments.length>1?arguments[1]:void 0);m=m?m.next:M.first;)for(K(m.value,m.key,this);m&&m.removed;)m=m.previous},has:function(f){return!!u(this,f)}}),xf(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)}}),Pa&&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),BS(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=Br(_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),M=m.cloneContents(),K=M.childNodes[0];if(M.childNodes.forEach(function(_e){_e.textContent&&_e.textContent.trim()!==""&&(K=_e)}),f){var U=Br(f,1)[0],re=m.cloneRange(),$=Ge.toDOMNode(t,U);re.setEndAfter($),M=re.cloneContents()}if(u&&(K=M.querySelector("[data-slate-spacer]")),Array.from(M.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),M.appendChild(ee),K=ee}var te=t.getFragment(),J=JSON.stringify(te),he=window.btoa(encodeURIComponent(J));K.setAttribute("data-slate-fragment",he),r.setData("application/x-slate-fragment",he);var me=M.ownerDocument.createElement("div");return me.appendChild(M),me.setAttribute("hidden","true"),M.ownerDocument.body.appendChild(me),r.setData("text/html",me.innerHTML),r.setData("text/plain",g$(me)),M.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 M=f.split(/\r\n|\r|\n/),K=!1;try{for(var U=ys(M),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},mg=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!!mg(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,gg=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},Bb=Nm(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],mg(n)?(i=gg.call(n,"c"),a=gg.call(n,"e"),o=gg.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],mg(r)?XN(r)?mg(i)?XN(i)||(s=i,i=void 0):i=void 0:(s=r,r=i=void 0):r=void 0,mg(n)?(a=gg.call(n,"c"),o=gg.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=Nm(function(e,t){var n,r,i,a,o,s,u,f=Function.prototype.apply,m=Function.prototype.call,M=Object.create,K=Object.defineProperty,U=Object.defineProperties,re=Object.prototype.hasOwnProperty,$={configurable:!0,enumerable:!1,writable:!0};n=function(ee,te){var J;return cC(te),re.call(this,"__ee__")?J=this.__ee__:(J=$.value=M(null),K(this,"__ee__",$),$.value=null),J[ee]?typeof J[ee]=="object"?J[ee].push(te):J[ee]=[J[ee],te]:J[ee]=te,this},r=function(ee,te){var J,he;return cC(te),he=this,n.call(this,ee,J=function(){i.call(he,ee,J),f.call(te,this,arguments)}),J.__eeOnceListener__=te,this},i=function(ee,te){var J,he,me,_e;if(cC(te),!re.call(this,"__ee__"))return this;if(!(J=this.__ee__)[ee])return this;if(typeof(he=J[ee])=="object")for(_e=0;me=he[_e];++_e)me!==te&&me.__eeOnceListener__!==te||(he.length===2?J[ee]=he[_e?0:1]:he.splice(_e,1));else he!==te&&he.__eeOnceListener__!==te||delete J[ee];return this},a=function(ee){var te,J,he,me,_e;if(re.call(this,"__ee__")&&(me=this.__ee__[ee]))if(typeof me=="object"){for(J=arguments.length,_e=new Array(J-1),te=1;te<J;++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(J=arguments.length,_e=new Array(J-1),te=1;te<J;++te)_e[te-1]=arguments[te];f.call(me,this,_e)}},o={on:n,once:r,off:i,emit:a},s={on:Bb(n),once:Bb(r),off:Bb(i),emit:Bb(a)},u=U({},s),e.exports=t=function(ee){return ee==null?M(u):U(Object(ee),s)},t.methods=o});function jb(e){var t=KM.get(e);return t==null&&(t=wq(),KM.set(e,t)),t}var Ub=new WeakMap;function ZN(e,t){var n=Ub.get(e);n==null&&(n=new Set,Ub.set(e,n)),n.add(t)}function Tq(e){return Ub.get(e)||new Set}function Sq(e){Ub.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={},M=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(M>s/2){var re=s-M;m.bottom=re+5+"px"}else{var $=M+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=Ib.get(t);if(o==null)return r;var s=o.getBoundingClientRect(),u=s.top,f=s.left,m=s.height,M=s.width;if(i){var K=function(De){var Ke=[];Ke.push(De);for(var rt=0;Ke.length>0;){var xt=Ke.pop();if(xt==null)break;if(++rt>1e4)break;var Lt=xt.nodeName;if(xt.nodeType===1){var wt=Lt.toLowerCase();if(p$.includes(wt)||wt==="iframe"||wt==="video")return xt;var Yt=xt.children||[],Ft=Yt.length;if(Ft)for(var jt=Ft-1;jt>=0;jt--)Ke.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,J=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>(J-M)/2?me.right=J-ke+5+"px":me.left=ke+M+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){bs(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,M=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 J=t.css("bottom"),he=parseInt(J.toString())-Math.abs(f);t.css("bottom",he+"px")}if($.indexOf("left")>=0&&(r=re+M-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=gb("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=Zu(this),o=Id(a),s=gf(e,o),u=gf(t===void 0?o:t,o);if(sb(a)&&(n=a.constructor,(lb(n)&&(n===mC||sb(n.prototype))||di(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&&Jm(r,i,a[s]);return r.length=i,r}});var Dq=Gm.f,$N=Wn("".startsWith),Rq=Wn("".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=ui(gs(this));UT(e);var n=pf(Iq(arguments.length>1?arguments[1]:void 0,t.length)),r=ui(e);return $N?$N(t,r,n):Rq(t,n,n+r.length)===r}});var Lf=Object.assign,e3=Object.defineProperty,Pq=Wn([].concat),t3=!Lf||Xr(function(){if(Pa&&Lf({b:1},Lf(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}),Lf({},e)[n]!=7||vf(Lf({},t)).join("")!=r})?function(e,t){for(var n=Xu(e),r=arguments.length,i=1,a=Qk.f,o=Gk.f;r>i;)for(var s,u=ob(arguments[i++]),f=a?Pq(vf(u),a(u)):vf(u),m=f.length,M=0;m>M;)s=f[M++],Pa&&!Fr(o,u,s)||(n[s]=u[s]);return n}:Lf;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,M){m.data==null&&(m.data={});var K=m.data;K.dataset==null&&(K.dataset={}),Object.assign(K.dataset,M)}(e,((o={})[f]=u,o)),void delete n[a]}!function(m,M){m.data==null&&(m.data={});var K=m.data;K.props==null&&(K.props={}),Object.assign(K.props,M)}(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 nr(n.isInline(e)?"span":"div",null,t)}function i3(e,t){return t===void 0&&(t=!1),nr("span",{"data-slate-string":!0},t?e+`
`:e)}function vC(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),nr("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?nr("br",null):null)}function yC(e,t,n,r){return rg.set(e,t),wf.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),M={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){M["data-slate-void"]=!0;var te=u?"span":"div",J=Br(hn.texts(i),1),he=Br(J[0],1)[0],me=nr(te,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},yC(he,0,i,a));ee=nr(te,{style:{position:"relative"}},ee,me),rg.set(he,0),wf.set(he,i)}return ee.data==null&&(ee.data={}),Object.assign(ee.data,M),f||u||(ee=function(_e,ke){var De=ke;return gC.forEach(function(Ke){De=Ke(_e,ke)}),De}(i,ee)),bs(function(){var _e=IS(m);_e!=null&&(AS.set(s,_e),Ib.set(i,_e),Rb.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]),M=wn.decorations(i,m),K=M.map(function($,ee){var te=function(J,he,me,_e,ke){he===void 0&&(he=!1);var De=J.text,Ke=Ge.findPath(ke,me),rt=st.parent(Ke);if(Ee.isEditor(_e))throw new Error("Text node "+JSON.stringify(me)+" parent is Editor");return ke.isVoid(_e)?vC(hn.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===M.length-1,i,a,o);return te=function(J,he){var me=he;return gC.forEach(function(_e){me=_e(J,me)}),me}($,te),nr("span",{"data-slate-leaf":!0},te)}),U=function($){return"w-e-text-"+$}(s.id),re=nr("span",{"data-slate-node":"text",id:U,key:s.id},K);return bs(function(){var $=IS(U);$!=null&&(AS.set(s,$),Ib.set(i,$),Rb.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),sf("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 M=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(M),e.$textArea=M,n=M[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),Ib.set(t,n),Rb.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 Hb(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(dr){return dr!==o};if(!a3(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,m=[],M=e;a3(M)&&u(M);){if((M=M.parentElement)===f){m.push(M);break}M!=null&&M===document.body&&bC(M)&&!bC(document.documentElement)||M!=null&&bC(M,s)&&m.push(M)}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,J=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,Ke=a==="center"?ke+J/2:a==="end"?me:ke,rt=[],xt=0;xt<m.length;xt++){var Lt=m[xt],wt=Lt.getBoundingClientRect(),Yt=wt.height,Ft=wt.width,jt=wt.top,Ht=wt.right,bn=wt.bottom,Pn=wt.left;if(r==="if-needed"&&he>=0&&ke>=0&&_e<=U&&me<=K&&he>=jt&&_e<=bn&&ke>=Pn&&me<=Ht)return rt;var Ln=getComputedStyle(Lt),Dn=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-Dn-He:0,Sn="offsetHeight"in Lt?Lt.offsetHeight-Lt.clientHeight-Ze-ot:0;if(f===Lt)At=i==="start"?De:i==="end"?De-U:i==="nearest"?Hb($,$+U,U,Ze,ot,$+De,$+De+te,te):De-U/2,qt=a==="start"?Ke:a==="center"?Ke-K/2:a==="end"?Ke-K:Hb(re,re+K,K,Dn,He,re+Ke,re+Ke+J,J),At=Math.max(0,At+$),qt=Math.max(0,qt+re);else{At=i==="start"?De-jt-Ze:i==="end"?De-bn+ot+Sn:i==="nearest"?Hb(jt,bn,Yt,Ze,ot+Sn,De,De+te,te):De-(jt+Yt/2)+Sn/2,qt=a==="start"?Ke-Pn-Dn:a==="center"?Ke-(Pn+Ft/2)+Mt/2:a==="end"?Ke-Ht+He+Mt:Hb(Pn,Ht,Ft,Dn,He+Mt,Ke,Ke+J,J);var Vn=Lt.scrollLeft,tr=Lt.scrollTop;De+=tr-(At=Math.max(0,Math.min(tr+At,Lt.scrollHeight-Yt+Sn))),Ke+=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 Es(e,t){return Md(t)&&Ge.hasDOMNode(e,t,{editable:!0})}function u3(e,t){if(e.getConfig().readOnly)return!1;var n=Pf(e,t)&&Ge.toSlateNode(e,t);return Ee.isVoid(e,n)}function Pf(e,t){return Md(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 M=a.anchorNode,K=a.anchorOffset;if(M===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(J,he){var me=!J.ownerDocument.documentElement.contains(J);if(l3(he)&&typeof he.behavior=="function")return he.behavior(me?[]:s3(J,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 Ke="scrollBehavior"in document.body.style;ke.forEach(function(rt){var xt=rt.el,Lt=rt.top,wt=rt.left;xt.scroll&&Ke?xt.scroll({top:Lt,left:wt,behavior:De}):(xt.scrollTop=Lt,xt.scrollLeft=wt)})})(s3(J,_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(){$&&ig&&s.focus(),e.isUpdatingSelection=!1})}else t.selection=Ge.toSlateRange(t,a,{exactMatch:!1,suppressThrow:!1})}}}var EC=new WeakMap,d3=new WeakMap,Fq={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"},Bq={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"]},Ti=function(e){var t=Fq[e],n=Bq[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:Ti("bold"),isCompose:Ti("compose"),isMoveBackward:Ti("moveBackward"),isMoveForward:Ti("moveForward"),isDeleteBackward:Ti("deleteBackward"),isDeleteForward:Ti("deleteForward"),isDeleteLineBackward:Ti("deleteLineBackward"),isDeleteLineForward:Ti("deleteLineForward"),isDeleteWordBackward:Ti("deleteWordBackward"),isDeleteWordForward:Ti("deleteWordForward"),isExtendBackward:Ti("extendBackward"),isExtendForward:Ti("extendForward"),isExtendLineBackward:Ti("extendLineBackward"),isExtendLineForward:Ti("extendLineForward"),isItalic:Ti("italic"),isMoveLineBackward:Ti("moveLineBackward"),isMoveLineForward:Ti("moveLineForward"),isMoveWordBackward:Ti("moveWordBackward"),isMoveWordForward:Ti("moveWordForward"),isRedo:Ti("redo"),isSplitBlock:Ti("splitBlock"),isTransposeCharacter:Ti("transposeCharacter"),isUndo:Ti("undo"),isTab:Ti("tab"),isSelectAll:Ti("selectAll")};function ga(e){e.preventDefault()}var Uq={beforeinput:function(e,t,n){var r=e,i=n.getConfig().readOnly;if(og&&!i&&Es(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=Br(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&&Es(n,r.target)){var o=Ge.findDocumentOrShadowRoot(n);if(a!==o.activeElement){var s=r.relatedTarget;if(!(s===Ge.toDOMNode(n,n)||Vs(s)&&s.hasAttribute("data-slate-spacer"))){if(s!=null&&Md(s)&&Ge.hasDOMNode(n,s)){var u=Ge.toSlateNode(n,s);if(Nn.isElement(u)&&!n.isVoid(u))return}if(ag){var f=o.getSelection();f==null||f.removeAllRanges()}kd.delete(n)}}}},focus:function(e,t,n){var r=Ge.toDOMNode(n,n),i=Ge.findDocumentOrShadowRoot(n);t.latestElement=i.activeElement,ig&&e.target!==r?r.focus():kd.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&Pf(n,e.target)&&Md(e.target)){var r=Ge.toSlateNode(n,e.target),i=Ge.findPath(n,r);if(Ee.hasPath(n,i)&&hn.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(Es(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(Es(n,r.target)){t.isComposing=!1;var i=n.selection;if(i!=null){(PS||ig)&&Ge.cleanExposedTexNodeInSelectionBlock(n);for(var a=_t.isBackward(i)?i.focus:i.anchor,o=Br(Ee.node(n,[a.path[0]]),1)[0],s=0;s<a.path.length;s++){var u=Br(Ee.node(n,a.path.slice(0,s+1)),1)[0];if(Nn.isElement(u)&&((ag||ig)&&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);ag||setTimeout(function(){var M=n.selection;if(M!=null){var K=d3.get(n);K!=null&&Ge.toDOMRange(n,M).startContainer!==K&&(K.textContent=EC.get(n)||"")}})}}}},compositionupdate:function(e,t,n){Es(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&Es(n,r.target)){if(function(o,s){var u=Ab.get(o),f=u&&u.getMenus(),m=Ob.get(o),M=m&&m.getMenus(),K=vs(vs({},f),M);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 ga(r),void n.handleTab();if(Ri.isRedo(r))return ga(r),void(typeof n.redo=="function"&&n.redo());if(Ri.isUndo(r))return ga(r),void(typeof n.undo=="function"&&n.undo());if(Ri.isMoveLineBackward(r))return ga(r),void ct.move(n,{unit:"line",reverse:!0});if(Ri.isMoveLineForward(r))return ga(r),void ct.move(n,{unit:"line"});if(Ri.isExtendLineBackward(r))return ga(r),void ct.move(n,{unit:"line",edge:"focus",reverse:!0});if(Ri.isExtendLineForward(r))return ga(r),void ct.move(n,{unit:"line",edge:"focus"});if(Ri.isMoveBackward(r))return ga(r),void(i&&_t.isCollapsed(i)?ct.move(n,{reverse:!0}):ct.collapse(n,{edge:"start"}));if(Ri.isMoveForward(r))return ga(r),void(i&&_t.isCollapsed(i)?ct.move(n):ct.collapse(n,{edge:"end"}));if(Ri.isMoveWordBackward(r))return ga(r),i&&_t.isExpanded(i)&&ct.collapse(n,{edge:"focus"}),void ct.move(n,{unit:"word",reverse:!0});if(Ri.isMoveWordForward(r))return ga(r),i&&_t.isExpanded(i)&&ct.collapse(n,{edge:"focus"}),void ct.move(n,{unit:"word"});if(Ri.isSelectAll(r))return ga(r),void n.selectAll();if(og){if((PS||ag)&&i&&(Ri.isDeleteBackward(r)||Ri.isDeleteForward(r))&&_t.isCollapsed(i)){var a=hn.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 ga(r);if(Ri.isSplitBlock(r))return ga(r),void Ee.insertBreak(n);if(Ri.isDeleteBackward(r))return ga(r),void(i&&_t.isExpanded(i)?Ee.deleteFragment(n,{direction:"backward"}):Ee.deleteBackward(n));if(Ri.isDeleteForward(r))return ga(r),void(i&&_t.isExpanded(i)?Ee.deleteFragment(n,{direction:"forward"}):Ee.deleteForward(n));if(Ri.isDeleteLineBackward(r))return ga(r),void(i&&_t.isExpanded(i)?Ee.deleteFragment(n,{direction:"backward"}):Ee.deleteBackward(n,{unit:"line"}));if(Ri.isDeleteLineForward(r))return ga(r),void(i&&_t.isExpanded(i)?Ee.deleteFragment(n,{direction:"forward"}):Ee.deleteForward(n,{unit:"line"}));if(Ri.isDeleteWordBackward(r))return ga(r),void(i&&_t.isExpanded(i)?Ee.deleteFragment(n,{direction:"backward"}):Ee.deleteBackward(n,{unit:"word"}));if(Ri.isDeleteWordForward(r))return ga(r),void(i&&_t.isExpanded(i)?Ee.deleteFragment(n,{direction:"forward"}):Ee.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!og&&!n.getConfig().readOnly&&Es(n,e.target)){e.preventDefault();var r=e.key;Ee.insertText(n,r)}},copy:function(e,t,n){var r=e;if(Es(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&&Es(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=hn.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&&Es(n,r.target)){var i=n.getConfig().customPaste;if(i&&i(n,r)===!1)return void DS.set(n,!1);if(!og||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(Pf(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(Pf(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&&Pf(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,i=r.dataTransfer;if(!n.getConfig().readOnly&&Pf(n,r.target)&&i!=null&&!(og&&ag&&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=yd(function(){var o=n.editorInstance;!function(s,u){var f=s.isComposing,m=s.isUpdatingSelection,M=s.isDraggingInternally;if(!(u.getConfig().readOnly||f||m||M)){var K=Ge.findDocumentOrShadowRoot(u),U=K.activeElement,re=Ge.toDOMNode(u,u),$=K.getSelection();if(U===re?(s.latestElement=U,kd.set(u,!0)):kd.delete(u),!$)return ct.deselect(u);var ee=$.anchorNode,te=$.focusNode,J=Es(u,ee)||u3(u,ee),he=Es(u,te)||u3(u,te);if(J&&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,bs(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",yd(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),bs(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=gs(this),a=r==null?void 0:Od(r,e);return a?Fr(a,r,i):new RegExp(r)[e](ui(i))},function(r){var i=na(this),a=ui(r),o=n(t,i,a);if(o.done)return o.value;if(!i.global)return $m(i,a);var s=i.unicode;i.lastIndex=0;for(var u,f=[],m=0;(u=$m(i,a))!==null;){var M=ui(u[0]);f[m]=M,M===""&&(i.lastIndex=lS(a,pf(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,M=m===void 0?"":m,K=this.$button;if(M){var U=Qe(M);_C(U),K.append(U)}else K.text(s);f3(K,M,s,f,r),r&&M&&K.append(Qe('<span class="title">'+s+"</span>")),o&&K.css("width",o+"px"),K.attr("data-menu-key",t),this.$elem.append(K),bs(function(){return i.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),Vo(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=Vo(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=Vo(this),n=this.$button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=Vo(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 _f(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),Db.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=Db.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=Db.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 _f(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 _f(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=Vo(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 _f(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=Db.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 Ko(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 kf(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 _f(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var n=Vo(this),r=this.menu.getModalPositionNode(n);return Nn.isElement(r)?fC(n,r,"modal"):hC(n)},t.prototype.handleModal=function(){var n=Vo(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=Vo(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 _f(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 M=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(M),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,M=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,M,r),this.$elem.append(K),this.menu=n,bs(function(){return i.init()})}return e.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),Vo(t).hidePanelOrModal(),t.trigger()})},e.prototype.trigger=function(){var t=this,n=Vo(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=Vo(this),r=this.menu;r.exec&&r.exec(n,t)},e.prototype.setSelectedValue=function(){var t=Vo(this),n=this.menu,r=n.getValue(t),i=function(s,u){for(var f=s.length,m="",M=0;M<f;M++){var K=s[M];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=Vo(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 Vo(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=B5(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),bs(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;bs(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=sg[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,M=m===void 0?[]:m,K=f||function($,ee){return Ge.checkNodeType(ee,s)},U=Br(Ee.nodes(t,{match:function($){return K(t,$)},universal:!0}),1),re=U[0];if(re!=null)return r=re[0],i=M,"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(rg.set(e,t),wf.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=Br(hn.texts(e),1),o=Br(a[0],1)[0];rg.set(o,0),wf.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 J=te,{apply:he}=J;return J.history={undos:[],redos:[]},J.redo=()=>{var{history:me}=J,{redos:_e}=me;if(_e.length>0){var ke=_e[_e.length-1];yf.withoutSaving(J,()=>{Ee.withoutNormalizing(J,()=>{for(var De of ke)J.apply(De)})}),me.redos.pop(),me.undos.push(ke)}},J.undo=()=>{var{history:me}=J,{undos:_e}=me;if(_e.length>0){var ke=_e[_e.length-1];yf.withoutSaving(J,()=>{Ee.withoutNormalizing(J,()=>{var De=ke.map(Bu.inverse).reverse();for(var Ke of De)J.apply(Ke)})}),me.redos.push(ke),me.undos.pop()}},J.apply=me=>{var{operations:_e,history:ke}=J,{undos:De}=ke,Ke=De[De.length-1],rt=Ke&&Ke[Ke.length-1],xt=((Ft,jt)=>!(!jt||Ft.type!=="set_selection"||jt.type!=="set_selection"))(me,rt),Lt=yf.isSaving(J),wt=yf.isMerging(J);if(Lt==null&&(Lt=((Ft,jt)=>Ft.type!=="set_selection"||Ft.properties!=null&&Ft.newProperties!=null)(me)),Lt){if(wt==null&&(wt=Ke!=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)||xt)),Ke&&wt)xt&&Ke.pop(),Ke.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)},J})(function(te){var J=te,he=J.insertText,me=J.insertNode,_e=J.insertFragment,ke=J.dangerouslyInsertHtml;return J.insertText=function(De){if(J.getConfig().maxLength){var Ke=Ge.getLeftLengthOfMaxLength(J);Ke<=0||(Ke<De.length?he(De.slice(0,Ke)):he(De))}else he(De)},J.insertNode=function(De){if(J.getConfig().maxLength){var Ke=Ge.getLeftLengthOfMaxLength(J);Ke<=0||Ke<hn.string(De).length||me(De)}else me(De)},J.insertFragment=function(De){if(J.getConfig().maxLength)if(De.length!==1)De.forEach(function(rt){J.insertNode(rt)});else{var Ke=De[0];if(Ge.getLeftLengthOfMaxLength(J)<hn.string(Ke).length)return;_e(De)}else _e(De)},J.dangerouslyInsertHtml=function(De,Ke){if(De===void 0&&(De=""),Ke===void 0&&(Ke=!1),De)if(J.getConfig().maxLength){var rt=Ge.getLeftLengthOfMaxLength(J);if(!(rt<=0)){var xt=document.createElement("div");xt.innerHTML=De;var Lt=Array.from(xt.childNodes).reduce(function(wt,Yt){var Ft=Yt.nodeType,jt=Yt.nodeName;return Yt?Ft===wl.TEXT_NODE?wt+(Yt.textContent||""):Ft===wl.ELEMENT_NODE?VN.has(jt.toLowerCase())?wt:wt+(Yt.textContent||""):wt:wt},"");rt<Lt.length||ke(De,Ke)}}else ke(De,Ke)},J}(function(te){var J=te;return J.on=function(he,me){var _e=jb(J);if(_e.on(he,me),he==="destroyed"&&ZN(J,me),he!=="destroyed"){var ke=function(){return _e.off(he,me)};_e.on("destroyed",ke),ZN(J,ke)}},J.once=function(he,me){jb(J).once(he,me)},J.off=function(he,me){jb(J).off(he,me)},J.emit=function(he){for(var me=[],_e=1;_e<arguments.length;_e++)me[_e-1]=arguments[_e];var ke=jb(J);ke.emit.apply(ke,pS([he],Br(me))),he==="destroyed"&&(Tq(J).forEach(function(De){return ke.off("destroyed",De)}),Sq(J))},J}(function(te){var J=te;return J.select=function(he){ct.select(J,he)},J.deselect=function(){var he=J.selection,me=Ge.findDocumentOrShadowRoot(J).getSelection();me&&me.rangeCount>0&&me.removeAllRanges(),he&&ct.deselect(te)},J.move=function(he,me){me===void 0&&(me=!1),he&&(he<0||ct.move(te,{distance:he,unit:"character",reverse:me}))},J.moveReverse=function(he){J.move(he,!0)},J.restoreSelection=function(){var he=OS.get(J);he!=null&&(J.focus(),ct.select(J,he))},J.getSelectionPosition=function(){return hC(J)},J.getNodePosition=function(he){return fC(J,he)},J.isSelectedAll=function(){var he=J.selection;if(he==null)return!1;var me=Br(_t.edges(he),2),_e=me[0],ke=me[1],De=Br(Ee.edges(J,[]),2),Ke=De[0],rt=De[1];return!(!yr.equals(_e,Ke)||!yr.equals(ke,rt))},J.selectAll=function(){var he=Ee.start(J,[]),me=Ee.end(J,[]);ct.select(J,{anchor:he,focus:me})},J}(function(te){var J=te,he=J.onChange,me=J.insertText,_e=J.apply,ke=J.deleteBackward;return J.insertText=function(De){J.getConfig().readOnly||me(De)},J.apply=function(De){var Ke,rt,xt,Lt,wt,Yt,Ft,jt,Ht=[];switch(De.type){case"insert_text":case"remove_text":case"set_node":try{for(var bn=ys(Ee.levels(J,{at:De.path})),Pn=bn.next();!Pn.done;Pn=bn.next()){var Ln=Br(Pn.value,2),Dn=Ln[0],Ze=Ln[1],He=Ge.findKey(J,Dn);Ht.push([Ze,He])}}catch(Dr){Ke={error:Dr}}finally{try{Pn&&!Pn.done&&(rt=bn.return)&&rt.call(bn)}finally{if(Ke)throw Ke.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var ot=ys(Ee.levels(J,{at:st.parent(De.path)})),At=ot.next();!At.done;At=ot.next()){var qt=Br(At.value,2);Dn=qt[0],Ze=qt[1],He=Ge.findKey(J,Dn),Ht.push([Ze,He])}}catch(Dr){xt={error:Dr}}finally{try{At&&!At.done&&(Lt=ot.return)&&Lt.call(ot)}finally{if(xt)throw xt.error}}break;case"move_node":try{for(var Mt=ys(Ee.levels(J,{at:st.common(st.parent(De.path),st.parent(De.newPath))})),Sn=Mt.next();!Sn.done;Sn=Mt.next()){var Vn=Br(Sn.value,2);Dn=Vn[0],Ze=Vn[1],He=Ge.findKey(J,Dn),Ht.push([Ze,He])}}catch(Dr){wt={error:Dr}}finally{try{Sn&&!Sn.done&&(Yt=Mt.return)&&Yt.call(Mt)}finally{if(wt)throw wt.error}}}_e(De);try{for(var tr=ys(Ht),dr=tr.next();!dr.done;dr=tr.next()){var Ut=Br(dr.value,2);Ze=Ut[0],He=Ut[1],Dn=Br(Ee.node(J,Ze),1)[0],Lb.set(Dn,He)}}catch(Dr){Ft={error:Dr}}finally{try{dr&&!dr.done&&(jt=tr.return)&&jt.call(tr)}finally{if(Ft)throw Ft.error}}},J.deleteBackward=function(De){if(De!=="line")return ke(De);if(te.selection&&_t.isCollapsed(te.selection)){var Ke=Ee.above(te,{match:function(wt){return Ee.isBlock(te,wt)},at:te.selection});if(Ke){var rt=Br(Ke,2)[1],xt=Ee.range(te,rt,te.selection.anchor),Lt=function(wt,Yt){var Ft=Ee.range(wt,_t.end(Yt)),jt=Array.from(Ee.positions(wt,{at:Yt})),Ht=0,bn=jt.length,Pn=Math.floor(bn/2);if(LN(wt,Ee.range(wt,jt[Ht]),Ft))return Ee.range(wt,jt[Ht],Ft);if(jt.length<2)return Ee.range(wt,jt[jt.length-1],Ft);for(;Pn!==jt.length&&Pn!==Ht;)LN(wt,Ee.range(wt,jt[Pn]),Ft)?bn=Pn:Ht=Pn,Pn=Math.floor((Ht+bn)/2);return Ee.range(wt,jt[bn],Ft)}(J,xt);_t.isCollapsed(Lt)||ct.delete(te,{at:Lt})}}},J.onChange=function(){var De=J.selection;De!=null&&OS.set(J,De),J.emit("change"),he()},J.handleTab=function(){J.insertText(" ")},J.getHtml=function(){var De=J.children;return(De===void 0?[]:De).map(function(Ke){return DN(Ke,J)}).join("")},J.getText=function(){var De=J.children;return(De===void 0?[]:De).map(function(Ke){return hn.string(Ke)}).join(`
`)},J.getSelectionText=function(){var De=J.selection;return De==null?"":Ee.string(te,De)},J.getElemsByType=function(De,Ke){var rt,xt;Ke===void 0&&(Ke=!1);var Lt=[],wt=Ee.nodes(J,{at:[],universal:!0});try{for(var Yt=ys(wt),Ft=Yt.next();!Ft.done;Ft=Yt.next()){var jt=Br(Ft.value,1)[0];if(Nn.isElement(jt)&&(Ke?jt.type.indexOf(De)>=0:jt.type===De)){var Ht=RN(Ge.findKey(J,jt).id);Lt.push(vs(vs({},jt),{id:Ht}))}}}catch(bn){rt={error:bn}}finally{try{Ft&&!Ft.done&&(xt=Yt.return)&&xt.call(Yt)}finally{if(rt)throw rt.error}}return Lt},J.getElemsByTypePrefix=function(De){return J.getElemsByType(De,!0)},J.isEmpty=function(){var De=J.children,Ke=De===void 0?[]:De;if(Ke.length>1)return!1;var rt=Ke[0];if(rt==null)return!0;if(Nn.isElement(rt)&&rt.type==="paragraph"){var xt=rt.children,Lt=xt===void 0?[]:xt;if(Lt.length>1)return!1;var wt=Lt[0];if(wt==null)return!0;if(wn.isText(wt)&&wt.text==="")return!0}return!1},J.clear=function(){ct.delete(J,{at:{anchor:Ee.start(J,[]),focus:Ee.end(J,[])}}),J.children.length===0&&ct.insertNodes(J,[{type:"paragraph",children:[{text:""}]}])},J.getParentNode=function(De){return Ge.getParentNode(J,De)},J.dangerouslyInsertHtml=function(De,Ke){if(De===void 0&&(De=""),Ke===void 0&&(Ke=!1),De){var rt=document.createElement("div");rt.innerHTML=De;var xt=Array.from(rt.childNodes);if(xt=xt.filter(function(Ft){var jt=Ft.nodeType,Ht=Ft.nodeName;return jt===wl.TEXT_NODE||jt===wl.ELEMENT_NODE&&!VN.has(Ht.toLowerCase())}),xt.length!==0){var Lt=J.selection;if(Lt!=null){var wt=null;Ge.isSelectedEmptyParagraph(J)&&!Ke&&(wt=[Lt.focus.path[0]]),rt.setAttribute("hidden","true"),document.body.appendChild(rt);var Yt=0;xt.forEach(function(Ft){var jt=Ft.nodeType,Ht=Ft.nodeName,bn=Ft.textContent,Pn=bn===void 0?"":bn;if(jt!==wl.TEXT_NODE)if(Ht!=="BR"){var Ln=Ft,Dn=!1;if(PN.includes(Ht.toLowerCase()))Dn=!0;else for(var Ze in Nb)if(Ln.matches(Ze)){Dn=!0;break}if(Dn){var He=oC(Qe(Ln),J);return Array.isArray(He)?(He.forEach(function(At){return YN(J,At)}),Yt++):(YN(J,He),Yt++),void(Ge.isSelectedVoidNode(J)&&J.move(1))}var ot=window.getComputedStyle(Ln).display;Ge.isSelectedEmptyParagraph(J)||ot.indexOf("inline")<0&&J.insertBreak(),J.dangerouslyInsertHtml(Ln.innerHTML,!0)}else J.insertText(`
`);else{if(!Pn||!Pn.trim())return;J.insertNode({text:Pn})}}),Yt&&wt&&Ge.isEmptyPath(J,wt)&&ct.removeNodes(J,{at:wt}),rt.remove()}}}},J.setHtml=function(De){De===void 0&&(De="");var Ke=J.isDisabled(),rt=J.isFocused(),xt=JSON.stringify(J.selection);J.enable(),J.focus(),J.clear();var Lt=zN(J,De);if(ct.insertFragment(J,Lt),rt||(J.deselect(),J.blur()),Ke&&(J.deselect(),J.disable()),J.isFocused())try{J.select(JSON.parse(xt))}catch(wt){J.select(Ee.start(J,[]))}},J}(function(te){var J=te;return J.getAllMenuKeys=function(){var he=[];for(var me in sg)he.push(me);return he},J.getConfig=function(){var he=UM.get(J);if(he==null)throw new Error("Can not get editor config");return he},J.getMenuConfig=function(he){var me=J.getConfig().MENU_CONF;return(me===void 0?{}:me)[he]||{}},J.alert=function(he,me){me===void 0&&(me="info");var _e=J.getConfig().customAlert;_e&&_e(he,me)},J}(function(te){var J=dq(kK());return J.id="wangEditor-"+b$++,J.isDestroyed=!1,J.isFullScreen=!1,J.focus=function(he){if(Ge.toDOMNode(J,J).focus({preventScroll:!0}),kd.set(J,!0),he){var me=Ee.end(J,[]);ct.select(J,me)}else{var _e=OS.get(J);_e?ct.select(J,_e):ct.select(J,Ee.start(J,[]))}},J.isFocused=function(){return!!kd.get(J)},J.blur=function(){Ge.toDOMNode(J,J).blur(),ct.deselect(J),kd.set(J,!1)},J.updateView=function(){Ge.getTextarea(J).changeViewState();var he=Ge.getToolbar(J);he&&he.changeToolbarState();var me=Ge.getHoverbar(J);me&&me.changeHoverbarState()},J.destroy=function(){if(!J.isDestroyed){var he=Ge.getTextarea(J);he.destroy(),ES.delete(J),_S.delete(he);var me=Ge.getToolbar(J);me&&(me.destroy(),Ab.delete(J),xS.delete(me));var _e=Ge.getHoverbar(J);_e&&(_e.destroy(),Ob.delete(J),wS.delete(_e)),J.isDestroyed=!0,J.emit("destroyed")}},J.scrollToElem=function(he){if(!J.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(J,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(J),Ke=De.$textAreaContainer,rt=De.$scroll,xt=_e.offset().top,Lt=Ke.offset().top;rt[0].scrollBy({top:xt-Lt,behavior:"smooth"})}},J.showProgressBar=function(he){he<1||Ge.getTextarea(J).changeProgress(he)},J.hidePanelOrModal=function(){var he=SS.get(J);he!=null&&he.forEach(function(me){return me.hide()})},J.enable=function(){J.getConfig().readOnly=!1,J.updateView()},J.disable=function(){J.getConfig().readOnly=!0,J.updateView()},J.isDisabled=function(){return J.getConfig().readOnly},J.toDOMNode=function(he){return Ge.toDOMNode(J,he)},J.fullScreen=function(){if(!J.isFullScreen){var he=null,me=Ge.getToolbar(J);me&&(he=me.$box);var _e=Ge.getTextarea(J).$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()),J.isFullScreen=!0,J.emit("fullScreen")}},J.unFullScreen=function(){if(J.isFullScreen){var he=Ge.getTextarea(J).$box.parent();setTimeout(function(){he.removeClass("w-e-full-screen-container"),J.isFullScreen=!1,J.emit("unFullScreen")},200)}},J.getEditableContainer=function(){return Ge.getTextarea(J).$textAreaContainer[0]},J}()))))));if(n&&function(te,J){return WN(te,"data-w-e-textarea",J)}(f,n))throw new Error("Repeated create editor by selector '"+n+"'");var m=function(te){te===void 0&&(te={});var J=j5($M),he={},me=te.MENU_CONF,_e=me===void 0?{}:me;return kw(J,function(ke,De){he[De]=vs(vs({},ke),_e[De]||{})}),delete te.MENU_CONF,vs({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 M=m.hoverbarKeys,K=M===void 0?{}:M;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(),bs(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),Ob.set(f,re)),f.on("change",function(){f.hidePanelOrModal()}),f.on("scroll",function(){f.hidePanelOrModal()})}else f.children.forEach(function(te,J){return v3(te,J,f,f)});var $=m.onCreated,ee=m.onDestroyed;return $&&f.on("created",function(){return $(f)}),ee&&f.on("destroyed",function(){return ee(f)}),bs(function(){return f.emit("created")}),f}var qq=gb("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=Xu(this),f=Id(u),m=gf(e,f),M=arguments.length;if(M===0?n=r=0:M===1?(n=0,r=f-m):(n=M-2,r=nee(tee(Wm(t),0),f-m)),f+n-r>9007199254740991)throw eee("Maximum allowed length exceeded");for(i=Bk(u,r),a=0;a<r;a++)(o=m+a)in u&&Jm(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=B5(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),bs(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,M=j5(o);u.keys.length>0&&(typeof u.keys=="string"&&(u.keys=[u.keys]),u.keys.forEach(function(re,$){M.splice(u.index+$,0,re)}));var K=M.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=sg[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=ff.EXISTS,aee=zs.f,y3=Function.prototype,oee=Wn(y3.toString),b3=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,see=Wn(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,M=e.metaWithUrl,K=M!==void 0&&M,U=e.headers,re=U===void 0?{}:U,$=e.withCredentials,ee=$!==void 0&&$,te=e.timeout,J=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,Ke=De===void 0?function(Yt,Ft,jt){console.error(Yt.name+" upload error",Ft,jt)}:De,rt=e.onProgress,xt=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=Br(Yt.split("#"),2),Ht=jt[0],bn=jt[1],Pn=[];kw(Ft,function(Dn,Ze){Pn.push(Ze+"="+Dn)});var Ln=Pn.join("&");return Ht=Ht.indexOf("?")>0?Ht+"&"+Ln:Ht+"?"+Ln,bn?Ht+"#"+bn:Ht}(Lt,m));var wt=new Rm({onBeforeUpload:me,restrictions:{maxFileSize:o,maxNumberOfFiles:u},meta:m}).use(kJ,{endpoint:Lt,headers:re,formData:!0,fieldName:i,bundle:!0,withCredentials:ee,timeout:J});return wt.on("upload-success",function(Yt,Ft){var jt=Ft.body,Ht=jt===void 0?{}:jt;try{ke(Yt,Ht)}catch(bn){console.error("wangEditor upload file - onSuccess error",bn)}wt.removeFile(Yt.id)}),wt.on("progress",function(Yt){Yt<1||xt(Yt)}),wt.on("upload-error",function(Yt,Ft,jt){try{Ke(Yt,Ft,jt)}catch(Ht){console.error("wangEditor upload file - onError error",Ht)}wt.removeFile(Yt.id)}),wt.on("restriction-failed",function(Yt,Ft){try{Ke(Yt,Ft)}catch(jt){console.error("wangEditor upload file - onError error",jt)}wt.removeFile(Yt.id)}),wt}function ec(e){return ec=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},ec(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 va(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 su(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 lu(e,t,n){return t&&_3(e.prototype,t),n&&_3(e,n),e}function jd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vg(e,t){if(t&&(ec(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jd(e)}function Mf(e){return Mf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Mf(e)}function SC(e,t){return SC=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},SC(e,t)}function Wb(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)}Pa&&!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)}},uu=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};su(this,e),this.init(t,n)}return lu(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,va({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),tc=function(){function e(){su(this,e),this.observers={}}return lu(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 yg(){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 zb(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=zb(e,n);return r!==void 0?r:zb(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 Nf(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 Gb=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 su(this,t),r=vg(this,Mf(t).call(this)),Gb&&tc.call(jd(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 Wb(t,tc),lu(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=zb(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=zb(this.data,u)||{};a?S3(f,i,o):f=va({},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"?va({},{},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 su(this,t),r=vg(this,Mf(t).call(this)),Gb&&tc.call(jd(r)),cee(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,jd(r)),r.options=i,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=uu.create("translator"),r}return Wb(t,tc),lu(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(ec(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],M=r.lng||this.language,K=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(M&&M.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,J=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(J)<0&&(typeof me!="string"||J!=="[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,$,va({},r,{ns:f})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(o){var De=J==="[object Array]",Ke=De?[]:{},rt=De?te:ee;for(var xt in $)if(Object.prototype.hasOwnProperty.call($,xt)){var Lt="".concat(rt).concat(o).concat(xt);Ke[xt]=this.translate(Lt,va({},r,{joinArrays:!1,ns:f})),Ke[xt]===Lt&&(Ke[xt]=$[xt])}$=Ke}}else if(_e&&typeof me=="string"&&J==="[object Array]")($=$.join(me))&&($=this.extendTranslation($,n,r,i));else{var wt=!1,Yt=!1,Ft=r.count!==void 0&&typeof r.count!="string",jt=t.hasDefaultValue(r),Ht=Ft?this.pluralResolver.getSuffix(M,r.count):"",bn=r["defaultValue".concat(Ht)]||r.defaultValue;!this.isValidLookup($)&&jt&&(wt=!0,$=bn),this.isValidLookup($)||(Yt=!0,$=u);var Pn=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Ln=Pn&&Yt?void 0:$,Dn=jt&&bn!==$&&this.options.updateMissing;if(Yt||wt||Dn){if(this.logger.log(Dn?"updateKey":"missingKey",M,m,u,Dn?bn:$),o){var Ze=this.resolve(u,va({},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,Sn,Vn){a.options.missingKeyHandler?a.options.missingKeyHandler(Mt,m,Sn,Dn?Vn:Ln,Dn,r):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(Mt,m,Sn,Dn?Vn:Ln,Dn,r),a.emit("missingKey",Mt,m,Sn,$)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Ft?He.forEach(function(Mt){a.pluralResolver.getSuffixes(Mt).forEach(function(Sn){qt([Mt],u+Sn,r["defaultValue".concat(Sn)]||bn)})}):qt(He,u,bn))}$=this.extendTranslation($,n,r,re,i),Yt&&$===u&&this.options.appendNamespaceToMissingKey&&($="".concat(m,":").concat(u)),(Yt||wt)&&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(va({},i,{interpolation:va({},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 M=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(M=va({},this.options.interpolation.defaultVariables,M)),n=this.interpolator.interpolate(n,M,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?va({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 M=u.extractFromKey(m,f),K=M.key;i=K;var U=M.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(J){if(!u.isValidLookup(r)){o=J;var he,me,_e=K,ke=[_e];for(u.i18nFormat&&u.i18nFormat.addLookupKeys?u.i18nFormat.addLookupKeys(ke,K,J,te,f):(re&&(he=u.pluralResolver.getSuffix(J,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(J,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){su(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=uu.create("languageUtils")}return lu(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]:{};su(this,e),this.languageUtils=t,this.options=n,this.logger=uu.create("pluralResolver"),this.rules=vee()}return lu(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]:{};su(this,e),this.logger=uu.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return lu(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?Nf(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Nf(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?Nf(n.nestingPrefix):n.nestingPrefixEscaped||Nf("$t("),this.nestingSuffix=n.nestingSuffix?Nf(n.nestingSuffix):n.nestingSuffixEscaped||Nf(")"),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 M=function($){if($.indexOf(u.formatSeparator)<0){var ee=T3(n,f,$);return u.alwaysFormat?u.format(ee,void 0,r,va({},i,n,{interpolationkey:$})):ee}var te=$.split(u.formatSeparator),J=te.shift().trim(),he=te.join(u.formatSeparator).trim();return u.format(T3(n,f,J),he,r,va({},i,n,{interpolationkey:J}))};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=M(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=va({},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=va({},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 M=r[1].split(this.formatSeparator).map(function(K){return K.trim()});r[1]=M.shift(),f=M,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,va({},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 su(this,t),a=vg(this,Mf(t).call(this)),Gb&&tc.call(jd(a)),a.backend=n,a.store=r,a.services=i,a.languageUtils=i.languageUtils,a.options=o,a.logger=uu.create("backendConnector"),a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(i,o.backend,o),a}return Wb(t,tc),lu(t,[{key:"queueLoad",value:function(n,r,i,a){var o=this,s=[],u=[],f=[],m=[];return n.forEach(function(M){var K=!0;r.forEach(function(U){var re="".concat(M,"|").concat(U);!i.reload&&o.store.hasResourceBundle(M,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(M)}),(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,M,K,U){var re=CC(m,M,Object),$=re.obj,ee=re.k;$[ee]=$[ee]||[],$[ee].push(K)}(f.loaded,[o],s),function(m,M){for(var K=m.indexOf(M);K!==-1;)m.splice(K,1),K=m.indexOf(M)}(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(M){u[m].indexOf(M)<0&&u[m].push(M)})}),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,va({},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(ec(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),ec(e[2])==="object"||ec(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 Kb(){}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(su(this,t),n=vg(this,Mf(t).call(this)),Gb&&tc.call(jd(n)),n.options=R3(r),n.services={},n.logger=uu,n.modules={external:[]},i&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,i),vg(n,jd(n));setTimeout(function(){n.init(r,i)},0)}return n}return Wb(t,tc),lu(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=va({},_ee(),this.options,R3(r)),this.format=this.options.interpolation.format,i||(i=Kb),!this.options.isClone){this.modules.logger?uu.init(a(this.modules.logger),this.options):uu.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=uu,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 M=yg(),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),M.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),M}},{key:"loadResources",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kb,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(M){s.indexOf(M)<0&&s.push(M)})};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=yg();return n||(n=this.languages),r||(r=this.options.ns),i||(i=Kb),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=yg();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,M){M?(i.language=M,i.languages=i.services.languageUtils.toResolveHierarchy(M),i.translator.changeLanguage(M),i.isLanguageChangingTo=void 0,i.emit("languageChanged",M),i.logger.log("languageChanged",M)):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(ec(f)!=="object"){for(var M=arguments.length,K=new Array(M>2?M-2:0),U=2;U<M;U++)K[U-2]=arguments[U];m=a.options.overloadTranslationOptionHandler([u,f].concat(K))}else m=va({},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,M){var K=r.services.backendConnector.state["".concat(m,"|").concat(M)];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=yg();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=yg();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]:Kb,a=va({},this.options,r,{isClone:!0}),o=new t(a),s=["store","services","language"];return s.forEach(function(u){o[u]=n[u]}),o.services=va({},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),M=1;M<f;M++)m[M-1]=arguments[M];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 Ao(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 fn=Ff.t.bind(Ff);Ao("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Ao("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 "+sy(this)+"]"};_x||Pu(Object.prototype,"toString",wee,{unsafe:!0});var I3=Array.isArray||function(e){return pl(e)=="Array"},L3=function(){},Tee=[],P3=ml("Reflect","construct"),OC=/^\s*(?:class|function)\b/,See=Qr(OC.exec),Cee=!OC.exec(L3),bg=function(e){if(!Bi(e))return!1;try{return P3(L3,Tee,e),!0}catch(t){return!1}},Aee=!P3||Fi(function(){var e;return bg(bg.call)||!bg(Object)||!bg(function(){e=!0})||e})?function(e){if(!Bi(e))return!1;switch(sy(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Cee||!!See(OC,rm(e))}:bg,Oee=Ia("species"),k3=qn.Array,Dee=function(e,t){return new(function(n){var r;return I3(n)&&(r=n.constructor,(Aee(r)&&(r===k3||I3(r.prototype))||Bo(r)&&(r=r[Oee])===null)&&(r=void 0)),r===void 0?k3:r}(e))(t===0?0:t)},M3=Qr([].push),nc=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,M){for(var K,U,re=Hh(u),$=z0(re),ee=hL(f,m),te=iy($),J=0,he=M||Dee,me=t?he(u,te):n||o?he(u,0):void 0;te>J;J++)if((s||J in $)&&(U=ee(K=$[J],J,re),e))if(t)me[J]=U;else if(U)switch(e){case 3:return!0;case 5:return K;case 6:return J;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:nc(0),map:nc(1),filter:nc(2),some:nc(3),every:nc(4),find:nc(5),findIndex:nc(6),filterReject:nc(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{La(e,"forEach",DC)}catch(t){e.forEach=DC}};for(var RC in py)py[RC]&&N3(qn[RC]&&qn[RC].prototype);N3(TL),Ao("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"}}),Ao("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 nr("p",null,t)}},Vb=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Se!="undefined"?Se:typeof self!="undefined"?self:{};function Yb(e){var t={exports:{}};return e(t,t.exports),t.exports}var rc,Xb,Jb=function(e){return e&&e.Math==Math&&e},pr=Jb(typeof globalThis=="object"&&globalThis)||Jb(typeof window=="object"&&window)||Jb(typeof self=="object"&&self)||Jb(typeof Vb=="object"&&Vb)||function(){return this}()||Function("return this")(),Ii=function(e){try{return!!e()}catch(t){return!0}},Ys=!Ii(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Eg=Function.prototype.call,zi=Eg.bind?Eg.bind(Eg):function(){return Eg.apply(Eg,arguments)},F3={}.propertyIsEnumerable,B3=Object.getOwnPropertyDescriptor,Pee=B3&&!F3.call({1:2},1)?function(e){var t=B3(this,e);return!!t&&t.enumerable}:F3,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),er=LC?function(e){return e&&kee(PC,e)}:function(e){return e&&function(){return PC.apply(e,arguments)}},Mee=er({}.toString),Nee=er("".slice),ic=function(e){return Nee(Mee(e),8,-1)},kC=pr.Object,Fee=er("".split),Qb=Ii(function(){return!kC("z").propertyIsEnumerable(0)})?function(e){return ic(e)=="String"?Fee(e,""):kC(e)}:kC,Bee=pr.TypeError,_s=function(e){if(e==null)throw Bee("Can't call method on "+e);return e},Bf=function(e){return Qb(_s(e))},Ja=function(e){return typeof e=="function"},xs=function(e){return typeof e=="object"?e!==null:Ja(e)},jee=function(e){return Ja(e)?e:void 0},_g=function(e,t){return arguments.length<2?jee(pr[e]):pr[e]&&pr[e][t]},H3=er({}.isPrototypeOf),MC=_g("navigator","userAgent")||"",W3=pr.process,z3=pr.Deno,G3=W3&&W3.versions||z3&&z3.version,K3=G3&&G3.v8;K3&&(Xb=(rc=K3.split("."))[0]>0&&rc[0]<4?1:+(rc[0]+rc[1])),!Xb&&MC&&(!(rc=MC.match(/Edge\/(\d+)/))||rc[1]>=74)&&(rc=MC.match(/Chrome\/(\d+)/))&&(Xb=+rc[1]);var NC=Xb,FC=!!Object.getOwnPropertySymbols&&!Ii(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&NC&&NC<41}),BC=FC&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Uee=pr.Object,jC=BC?function(e){return typeof e=="symbol"}:function(e){var t=_g("Symbol");return Ja(t)&&H3(t.prototype,Uee(e))},Hee=pr.String,V3=function(e){try{return Hee(e)}catch(t){return"Object"}},Wee=pr.TypeError,Y3=function(e){if(Ja(e))return e;throw Wee(V3(e)+" is not a function")},Zb=function(e,t){var n=e[t];return n==null?void 0:Y3(n)},zee=pr.TypeError,Gee=Object.defineProperty,UC=function(e,t){try{Gee(pr,e,{value:t,configurable:!0,writable:!0})}catch(n){pr[e]=t}return t},ac=pr["__core-js_shared__"]||UC("__core-js_shared__",{}),HC=Yb(function(e){(e.exports=function(t,n){return ac[t]||(ac[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Kee=pr.Object,xg=function(e){return Kee(_s(e))},Vee=er({}.hasOwnProperty),ws=Object.hasOwn||function(e,t){return Vee(xg(e),t)},Yee=0,Xee=Math.random(),Jee=er(1 .toString),X3=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Jee(++Yee+Xee,36)},wg=HC("wks"),Ud=pr.Symbol,J3=Ud&&Ud.for,Qee=BC?Ud:Ud&&Ud.withoutSetter||X3,Yo=function(e){if(!ws(wg,e)||!FC&&typeof wg[e]!="string"){var t="Symbol."+e;FC&&ws(Ud,e)?wg[e]=Ud[e]:wg[e]=BC&&J3?J3(t):Qee(t)}return wg[e]},Zee=pr.TypeError,$ee=Yo("toPrimitive"),WC=function(e){var t=function(n,r){if(!xs(n)||jC(n))return n;var i,a=Zb(n,$ee);if(a){if(r===void 0&&(r="default"),i=zi(a,n,r),!xs(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"&&Ja(u=o.toString)&&!xs(f=zi(u,o)))return f;if(Ja(u=o.valueOf)&&!xs(f=zi(u,o)))return f;if(s!=="string"&&Ja(u=o.toString)&&!xs(f=zi(u,o)))return f;throw zee("Can't convert object to primitive value")}(n,r)}(e,"string");return jC(t)?t:t+""},zC=pr.document,qee=xs(zC)&&xs(zC.createElement),GC=function(e){return qee?zC.createElement(e):{}},Q3=!Ys&&!Ii(function(){return Object.defineProperty(GC("div"),"a",{get:function(){return 7}}).a!=7}),Z3=Object.getOwnPropertyDescriptor,KC={f:Ys?Z3:function(e,t){if(e=Bf(e),t=WC(t),Q3)try{return Z3(e,t)}catch(n){}if(ws(e,t))return IC(!zi(j3.f,e,t),e[t])}},ete=pr.String,tte=pr.TypeError,Xo=function(e){if(xs(e))return e;throw tte(ete(e)+" is not an object")},nte=pr.TypeError,$3=Object.defineProperty,jf={f:Ys?$3:function(e,t,n){if(Xo(e),t=WC(t),Xo(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}},Uf=Ys?function(e,t,n){return jf.f(e,t,IC(1,n))}:function(e,t,n){return e[t]=n,e},rte=er(Function.toString);Ja(ac.inspectSource)||(ac.inspectSource=function(e){return rte(e)});var $b,Tg,qb,VC=ac.inspectSource,q3=pr.WeakMap,ite=Ja(q3)&&/native code/.test(VC(q3)),e8=HC("keys"),t8=function(e){return e8[e]||(e8[e]=X3(e))},YC={},XC=pr.TypeError,ate=pr.WeakMap;if(ite||ac.state){var Hd=ac.state||(ac.state=new ate),ote=er(Hd.get),n8=er(Hd.has),ste=er(Hd.set);$b=function(e,t){if(n8(Hd,e))throw new XC("Object already initialized");return t.facade=e,ste(Hd,e,t),t},Tg=function(e){return ote(Hd,e)||{}},qb=function(e){return n8(Hd,e)}}else{var Hf=t8("state");YC[Hf]=!0,$b=function(e,t){if(ws(e,Hf))throw new XC("Object already initialized");return t.facade=e,Uf(e,Hf,t),t},Tg=function(e){return ws(e,Hf)?e[Hf]:{}},qb=function(e){return ws(e,Hf)}}var JC={set:$b,get:Tg,has:qb,enforce:function(e){return qb(e)?Tg(e):$b(e,{})},getterFor:function(e){return function(t){var n;if(!xs(t)||(n=Tg(t)).type!==e)throw XC("Incompatible receiver, "+e+" required");return n}}},r8=Function.prototype,lte=Ys&&Object.getOwnPropertyDescriptor,QC=ws(r8,"name"),e1={EXISTS:QC,PROPER:QC&&function(){}.name==="something",CONFIGURABLE:QC&&(!Ys||Ys&&lte(r8,"name").configurable)},Sg=Yb(function(e){var t=e1.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,M=!!u&&!!u.enumerable,K=!!u&&!!u.noTargetGet,U=u&&u.name!==void 0?u.name:o;Ja(s)&&(String(U).slice(0,7)==="Symbol("&&(U="["+String(U).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ws(s,"name")||t&&s.name!==U)&&Uf(s,"name",U),(f=r(s)).source||(f.source=i.join(typeof U=="string"?U:""))),a!==pr?(m?!K&&a[o]&&(M=!0):delete a[o],M?a[o]=s:Uf(a,o,s)):M?a[o]=s:UC(o,s)})(Function.prototype,"toString",function(){return Ja(this)&&n(this).source||VC(this)})}),ute=Math.ceil,cte=Math.floor,Wf=function(e){var t=+e;return t!=t||t===0?0:(t>0?cte:ute)(t)},dte=Math.max,hte=Math.min,Cg=function(e,t){var n=Wf(e);return n<0?dte(n+t,0):hte(n,t)},fte=Math.min,Ag=function(e){return e>0?fte(Wf(e),9007199254740991):0},t1=function(e){return Ag(e.length)},i8=function(e){return function(t,n,r){var i,a=Bf(t),o=t1(a),s=Cg(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=er([].push),s8=function(e,t){var n,r=Bf(e),i=0,a=[];for(n in r)!ws(YC,n)&&ws(r,n)&&o8(a,n);for(;t.length>i;)ws(r,n=t[i++])&&(~pte(a,n)||o8(a,n));return a},n1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mte=n1.concat("length","prototype"),gte={f:Object.getOwnPropertyNames||function(e){return s8(e,mte)}},l8={f:Object.getOwnPropertySymbols},vte=er([].concat),yte=_g("Reflect","ownKeys")||function(e){var t=gte.f(Xo(e)),n=l8.f;return n?vte(t,n(e)):t},bte=function(e,t){for(var n=yte(t),r=jf.f,i=KC.f,a=0;a<n.length;a++){var o=n[a];ws(e,o)||r(e,o,i(t,o))}},Ete=/#|\.prototype\./,Og=function(e,t){var n=xte[_te(e)];return n==Tte||n!=wte&&(Ja(t)?Ii(t):!!t)},_te=Og.normalize=function(e){return String(e).replace(Ete,".").toLowerCase()},xte=Og.data={},wte=Og.NATIVE="N",Tte=Og.POLYFILL="P",Ste=Og,Cte=KC.f,Sa=function(e,t){var n,r,i,a,o,s=e.target,u=e.global,f=e.stat;if(n=u?pr:f?pr[s]||UC(s,{}):(pr[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)&&Uf(a,"sham",!0),Sg(n,r,a,e)}},u8=er(er.bind),r1=Array.isArray||function(e){return ic(e)=="Array"},c8={};c8[Yo("toStringTag")]="z";var ZC=String(c8)==="[object z]",Ate=Yo("toStringTag"),Ote=pr.Object,Dte=ic(function(){return arguments}())=="Arguments",$C=ZC?ic: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?ic(t):(r=ic(t))=="Object"&&Ja(t.callee)?"Arguments":r},d8=function(){},Rte=[],h8=_g("Reflect","construct"),qC=/^\s*(?:class|function)\b/,Ite=er(qC.exec),Lte=!qC.exec(d8),Dg=function(e){if(!Ja(e))return!1;try{return h8(d8,Rte,e),!0}catch(t){return!1}},e2=!h8||Ii(function(){var e;return Dg(Dg.call)||!Dg(Object)||!Dg(function(){e=!0})||e})?function(e){if(!Ja(e))return!1;switch($C(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Lte||!!Ite(qC,VC(e))}:Dg,Pte=Yo("species"),f8=pr.Array,kte=function(e,t){return new(function(n){var r;return r1(n)&&(r=n.constructor,(e2(r)&&(r===f8||r1(r.prototype))||xs(r)&&(r=r[Pte])===null)&&(r=void 0)),r===void 0?f8:r}(e))(t===0?0:t)},p8=er([].push),oc=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,M){for(var K,U,re=xg(u),$=Qb(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=t1($),J=0,he=M||kte,me=t?he(u,te):n||o?he(u,0):void 0;te>J;J++)if((s||J in $)&&(U=ee(K=$[J],J,re),e))if(t)me[J]=U;else if(U)switch(e){case 3:return!0;case 5:return K;case 6:return J;case 2:p8(me,K)}else switch(e){case 4:return!1;case 7:p8(me,K)}return a?-1:r||i?i:me}},i1={forEach:oc(0),map:oc(1),filter:oc(2),some:oc(3),every:oc(4),find:oc(5),findIndex:oc(6),filterReject:oc(7)},Mte=Yo("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=i1.filter;Sa({target:"Array",proto:!0,forced:!t2("filter")},{filter:function(e){return Nte(this,e,arguments.length>1?arguments[1]:void 0)}});var Fte=ZC?{}.toString:function(){return"[object "+$C(this)+"]"};ZC||Sg(Object.prototype,"toString",Fte,{unsafe:!0});var a1,Bte=pr.String,Li=function(e){if($C(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Bte(e)},m8=function(){var e=Xo(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=pr.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},zf=Object.keys||function(e){return s8(e,n1)},Ute=Ys?Object.defineProperties:function(e,t){Xo(e);for(var n,r=Bf(t),i=zf(t),a=i.length,o=0;a>o;)jf.f(e,n=i[o++],r[n]);return e},Hte=_g("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},o1=function(){try{a1=new ActiveXObject("htmlfile")}catch(r){}var e,t;o1=typeof document!="undefined"?document.domain&&a1?b8(a1):((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(a1);for(var n=n1.length;n--;)delete o1.prototype[n1[n]];return o1()};YC[v8]=!0;var E8,a2,_8=Object.create||function(e,t){var n;return e!==null?(i2.prototype=Xo(e),n=new i2,i2.prototype=null,n[v8]=e):n=o1(),t===void 0?n:Ute(n,t)},Wte=pr.RegExp,zte=Ii(function(){var e=Wte(".","s");return!(e.dotAll&&e.exec(`
`)&&e.flags==="s")}),Gte=pr.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),s1=RegExp.prototype.exec,o2=s1,Xte=er("".charAt),Jte=er("".indexOf),Qte=er("".replace),s2=er("".slice),l2=(a2=/b*/g,zi(s1,E8=/a/,"a"),zi(s1,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),M=f.raw;if(M)return M.lastIndex=u.lastIndex,t=zi(o2,M,m),u.lastIndex=M.lastIndex,t;var K=f.groups,U=x8&&u.sticky,re=zi(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=zi(s1,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&&zi(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 Rg=o2;Sa({target:"RegExp",proto:!0,forced:/./.exec!==Rg},{exec:Rg});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=Yo("species"),d2=RegExp.prototype,h2=function(e,t,n,r){var i=Yo(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=er(/./[i]),u=t(i,""[e],function(f,m,M,K,U){var re=er(f),$=m.exec;return $===Rg||$===d2.exec?a&&!U?{done:!0,value:s(m,M,K)}:{done:!0,value:re(M,m,K)}:{done:!1}});Sg(String.prototype,e,u[0]),Sg(d2,i,u[1])}r&&Uf(d2[i],"sham",!0)},qte=er("".charAt),C8=er("".charCodeAt),ene=er("".slice),A8=function(e){return function(t,n){var r,i,a=Li(_s(t)),o=Wf(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=er("".charAt),rne=er("".replace),m2=er("".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=xg(i),u=ine),rne(a,u,function(f,m){var M;switch(p2(m,0)){case"$":return"$";case"&":return e;case"`":return m2(t,0,n);case"'":return m2(t,o);case"<":M=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}M=r[K-1]}return M===void 0?"":M})},sne=pr.TypeError,Ig=function(e,t){var n=e.exec;if(Ja(n)){var r=zi(n,e,t);return r!==null&&Xo(r),r}if(ic(e)==="RegExp")return zi(Rg,e,t);throw sne("RegExp#exec called on incompatible receiver")},g2=Yo("replace"),lne=Math.max,une=Math.min,cne=er([].concat),v2=er([].push),O8=er("".indexOf),D8=er("".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=_s(this),s=i==null?void 0:Zb(i,g2);return s?zi(s,i,o,a):zi(t,Li(o),i,a)},function(i,a){var o=Xo(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=Ja(a);f||(a=Li(a));var m=o.global;if(m){var M=o.unicode;o.lastIndex=0}for(var K=[];;){var U=Ig(o,s);if(U===null)break;if(v2(K,U),!m)break;Li(U[0])===""&&(o.lastIndex=f2(s,Ag(o.lastIndex),M))}for(var re,$="",ee=0,te=0;te<K.length;te++){for(var J=Li((U=K[te])[0]),he=lne(une(Wf(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([J],me,he,s);ke!==void 0&&v2(De,ke);var Ke=Li(S8(a,void 0,De))}else Ke=one(J,s,he,me,ke,a);he>=ee&&($+=D8(s,ee,he)+Ke,ee=he+J.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=Yo("unscopables"),b2=Array.prototype;b2[y2]==null&&jf.f(b2,y2,{configurable:!0,value:_8(null)});var I8=function(e){b2[y2][e]=!0},hne=i1.find,L8=!0;"find"in[]&&Array(1).find(function(){L8=!1}),Sa({target:"Array",proto:!0,forced:L8},{find:function(e){return hne(this,e,arguments.length>1?arguments[1]:void 0)}}),I8("find");var fne=Yo("match"),P8=function(e){var t;return xs(e)&&((t=e[fne])!==void 0?!!t:ic(e)=="RegExp")},pne=pr.TypeError,mne=Yo("species"),k8=function(e,t,n){var r=WC(t);r in e?jf.f(e,r,IC(0,n)):e[r]=n},gne=pr.Array,vne=Math.max,M8=function(e,t,n){for(var r=t1(e),i=Cg(t,r),a=Cg(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},Gf=g8.UNSUPPORTED_Y,yne=Math.min,N8=[].push,bne=er(/./.exec),Kf=er(N8),Lg=er("".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(_s(this)),s=a===void 0?4294967295:a>>>0;if(s===0)return[];if(i===void 0)return[o];if(!P8(i))return zi(t,o,i,s);for(var u,f,m,M=[],K=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),U=0,re=new RegExp(i.source,K+"g");(u=zi(Rg,re,o))&&!((f=re.lastIndex)>U&&(Kf(M,Lg(o,U,u.index)),u.length>1&&u.index<o.length&&S8(N8,M,M8(u,1)),m=u[0].length,U=f,M.length>=s));)re.lastIndex===u.index&&re.lastIndex++;return U===o.length?!m&&bne(re,"")||Kf(M,""):Kf(M,Lg(o,U)),M.length>s?M8(M,0,s):M}:"0".split(void 0,0).length?function(i,a){return i===void 0&&a===0?[]:zi(t,this,i,a)}:t,[function(i,a){var o=_s(this),s=i==null?void 0:Zb(i,e);return s?zi(s,i,o,a):zi(r,Li(o),i,a)},function(i,a){var o=Xo(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=Xo(me).constructor;return De===void 0||(ke=Xo(De)[mne])==null?_e:function(Ke){if(e2(Ke))return Ke;throw pne(V3(Ke)+" is not a constructor")}(ke)}(o,RegExp),m=o.unicode,M=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(Gf?"g":"y"),K=new f(Gf?"^(?:"+o.source+")":o,M),U=a===void 0?4294967295:a>>>0;if(U===0)return[];if(s.length===0)return Ig(K,s)===null?[s]:[];for(var re=0,$=0,ee=[];$<s.length;){K.lastIndex=Gf?0:$;var te,J=Ig(K,Gf?Lg(s,$):s);if(J===null||(te=yne(Ag(K.lastIndex+(Gf?$:0)),s.length))===re)$=f2(s,$,m);else{if(Kf(ee,Lg(s,re,$)),ee.length===U)return ee;for(var he=1;he<=J.length-1;he++)if(Kf(ee,J[he]),ee.length===U)return ee;$=re=te}}return Kf(ee,Lg(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"}),Gf);var E2=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,F8=er("".replace),l1="["+E2+"]",Ene=RegExp("^"+l1+l1+"*"),_ne=RegExp(l1+l1+"*$"),_2=function(e){return function(t){var n=Li(_s(t));return 1&e&&(n=F8(n,Ene,"")),2&e&&(n=F8(n,_ne,"")),n}},xne={start:_2(1),end:_2(2),trim:_2(3)},wne=e1.PROPER,Tne=xne.trim;function x2(e){return Qe("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function Vf(e){return e.length===0?"":e[0].outerHTML}function Yf(e){return e.length?e[0].tagName.toLowerCase():""}function Xs(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}Sa({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)}}),Sa({global:!0},{globalThis:pr}),Ny&&(Qe.fn.css=Ny),fs&&(Qe.fn.append=fs),qP&&(Qe.fn.prepend=qP),Qh&&(Qe.fn.addClass=Qh),Zh&&(Qe.fn.removeClass=Zh),$h&&(Qe.fn.hasClass=$h),yl&&(Qe.fn.on=yl),JP&&(Qe.fn.off=JP),Hu&&(Qe.fn.focus=Hu),hs&&(Qe.fn.attr=hs),Ly&&(Qe.fn.removeAttr=Ly),ef&&(Qe.fn.hide=ef),My&&(Qe.fn.show=My),jy&&(Qe.fn.parents=jy),qh&&(Qe.fn.dataset=qh),vl&&(Qe.fn.val=vl),By&&(Qe.fn.text=By),Uu&&(Qe.fn.html=Uu),rf&&(Qe.fn.children=rf),af&&(Qe.fn.remove=af),nf&&(Qe.fn.find=nf),Py&&(Qe.fn.width=Py),ky&&(Qe.fn.height=ky),ZP&&(Qe.fn.filter=ZP),of&&(Qe.fn.empty=of);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 Si(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 sc=function(){return sc=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},sc.apply(this,arguments)};function lc(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(M){M(m)})).then(o,s)}u((r=r.apply(e,t||[])).next())})}function uc(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(M){m=[6,M],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 B8(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(hn.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=er("".replace),Pg=function(e,t,n,r){var i=Li(_s(e)),a="<"+t;return n!==""&&(a+=" "+n+'="'+One(Li(r),Ane,"&quot;")+'"'),a+">"+i+"</"+t+">"},kg=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 Wd(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}Sa({target:"String",proto:!0,forced:kg("bold")},{bold:function(){return Pg(this,"b","","")}}),Sa({target:"String",proto:!0,forced:kg("italics")},{italics:function(){return Pg(this,"i","","")}}),Sa({target:"String",proto:!0,forced:kg("sub")},{sub:function(){return Pg(this,"sub","","")}}),Sa({target:"String",proto:!0,forced:kg("sup")},{sup:function(){return Pg(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=i1.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{Uf(e,"forEach",C2)}catch(t){e.forEach=C2}};for(var A2 in U8)U8[A2]&&z8(pr[A2]&&pr[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),Sa({target:"Object",stat:!0,forced:Ii(function(){zf(1)})},{keys:function(e){return zf(xg(e))}});var zd=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>',Fne='<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>',Bne='<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=fn("textStyle.bold"),n.iconSvg=Lne,n.hotkey="mod+b",n}return Si(t,e),t}(zd),Qne=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="code",n.title=fn("textStyle.code"),n.iconSvg=Nne,n.hotkey="mod+e",n}return Si(t,e),t}(zd),Zne=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="italic",n.title=fn("textStyle.italic"),n.iconSvg=kne,n.hotkey="mod+i",n}return Si(t,e),t}(zd),$ne=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="through",n.title=fn("textStyle.through"),n.iconSvg=Mne,n.hotkey="mod+shift+x",n}return Si(t,e),t}(zd),qne=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="underline",n.title=fn("textStyle.underline"),n.iconSvg=Pne,n.hotkey="mod+u",n}return Si(t,e),t}(zd),ere=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=fn("textStyle.sub"),n.iconSvg=Xne,n.hotkey="",n}return Si(t,e),t}(zd),tre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=fn("textStyle.sup"),n.iconSvg=Yne,n.hotkey="",n}return Si(t,e),t}(zd),nre=function(){function e(){this.title=fn("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=B8(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=nr("strong",null,m)),o&&(m=nr("code",null,m)),i&&(m=nr("em",null,m)),a&&(m=nr("u",null,m)),s&&(m=nr("s",null,m)),u&&(m=nr("sub",null,m)),f&&(m=nr("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(Yf(n)==="br")return T2(e,"<br>");var r=n.html();return r=T2(e,r),n.html(r),Vf(n)},parseStyleHtml:function(e,t,n){var r=Qe(e);if(!wn.isText(t))return t;var i=t;return Wd(r,"b,strong")&&(i.bold=!0),Wd(r,"i,em")&&(i.italic=!0),Wd(r,"u")&&(i.underline=!0),Wd(r,"s,strike")&&(i.through=!0),Wd(r,"sub")&&(i.sub=!0),Wd(r,"sup")&&(i.sup=!0),Wd(r,"code")&&(i.code=!0),i}};function Mg(e){return function(t,n,r){return nr("h"+e,null,n)}}var ire={type:"header1",renderElem:Mg(1)},are={type:"header2",renderElem:Mg(2)},ore={type:"header3",renderElem:Mg(3)},sre={type:"header4",renderElem:Mg(4)},lre={type:"header5",renderElem:Mg(5)},ure=e1.PROPER,O2=RegExp.prototype,Y8=O2.toString,cre=er(m8),dre=Ii(function(){return Y8.call({source:"a",flags:"b"})!="/a/b"}),hre=ure&&Y8.name!="toString";(dre||hre)&&Sg(RegExp.prototype,"toString",function(){var e=Xo(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=pr.TypeError,X8=function(e){if(P8(e))throw fre("The method doesn't accept regular expressions");return e},pre=Yo("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=er("".startsWith),gre=er("".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})}Sa({target:"String",proto:!0,forced:!(!Z8&&(D2=mre(String.prototype,"startsWith"),D2&&!D2.writable)||Z8)},{startsWith:function(e){var t=Li(_s(this));X8(e);var n=Ag(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=fn("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:fn("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}(),Ng=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 Si(t,e),t}(Ng),Ere=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return Si(t,e),t}(Ng),_re=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return Si(t,e),t}(Ng),xre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return Si(t,e),t}(Ng),wre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return Si(t,e),t}(Ng),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 Bg(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:Bg(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:Bg(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:Bg(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:Bg(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:Bg(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}},Xf=Object.assign,t6=Object.defineProperty,Ire=er([].concat),n6=!Xf||Ii(function(){if(Ys&&Xf({b:1},Xf(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}),Xf({},e)[n]!=7||zf(Xf({},t)).join("")!=r})?function(e,t){for(var n=xg(e),r=arguments.length,i=1,a=l8.f,o=j3.f;r>i;)for(var s,u=Qb(arguments[i++]),f=a?Ire(zf(u),a(u)):zf(u),m=f.length,M=0;m>M;)s=f[M++],Ys&&!zi(o,u,s)||(n[s]=u[s]);return n}:Xf;function Gd(e,t){e.data==null&&(e.data={});var n=e.data;n.style==null&&(n.style={}),Object.assign(n.style,t)}Sa({target:"Object",stat:!0,forced:Object.assign!==n6},{assign:n6});var Lre={selector:"font",preParseHtml:function(e){var t=Qe(e);if(Yf(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 M=Qe(m).attr("data-value");M==="0"?Ee.removeMark(t,n):Ee.addMark(t,n,M)}}),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 M=Qe('<li data-value="'+f+'"></li>');a===f&&M.addClass("active"),M.append(m),i.append(M)});var s="";n==="color"&&(s=fn("color.default")),n==="bgColor"&&(s=fn("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=fn("color.color"),n.iconSvg=Fne,n.mark="color",n}return Si(t,e),t}(r6),kre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=fn("color.bgColor"),n.iconSvg=Bne,n.mark="bgColor",n}return Si(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&&Gd(a,{color:r}),i&&Gd(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)||Yf(n=Qe(t))!=="span")&&(n=Qe("<span>"+t+"</span>")),i&&n.css("color",i),a&&n.css("background-color",a),Vf(n)):t},preParseHtml:[Lre],parseStyleHtml:function(e,t,n){var r=Qe(e);if(!wn.isText(t))return t;var i=t,a=Xs(r,"color");a&&(i.color=a);var o=Xs(r,"background-color");return o||(o=Xs(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+)$/,Fre=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Bre=/^[^\s\.]+\.\S{2,}$/,jre=a8.includes;function u1(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 lc(this,void 0,void 0,function(){var i,a;return uc(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 lc(this,void 0,void 0,function(){var r;return uc(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 lc(this,void 0,void 0,function(){var r,i,a;return uc(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]}})})}Sa({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 nr("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 u1("w-e-insert-link")}var Wre=function(){function e(){this.title=fn("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(Ko(fn("link.text"),i),2),u=s[0],f=Qe(s[1]),m=Ur(Ko(fn("link.url"),a),2),M=m[0],K=Qe(m[1]),U=Ur(kf(o,fn("common.ok")),1)[0];if(this.$content==null){var re=Qe("<div></div>");re.on("click","#"+o,function(te){te.preventDefault();var J=re.find("#"+i).val(),he=re.find("#"+a).val();s6(t,J,he),t.hidePanelOrModal()}),this.$content=re}var $=this.$content;if($.empty(),$.append(u),$.append(M),$.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 u1("w-e-update-link")}var zre=function(){function e(){this.title=fn("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(Ko(fn("link.url"),n),2),a=i[0],o=Qe(i[1]),s=Ur(kf(r,fn("common.ok")),1)[0];if(this.$content==null){var u=Qe("<div></div>");u.on("click","button",function(M){M.preventDefault(),t.restoreSelection();var K=Ge.getSelectedNodeByType(t,"link"),U=K?hn.string(K):"",re=u.find("#"+n).val();!function($,ee,te){lc(this,void 0,void 0,function(){var J,he;return uc(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 J=me.sent(),he={url:R2(J)},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=fn("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=fn("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 M=m[1];return!(!M||!Fre.test(M)&&!Bre.test(M))}(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]):hn.string(s)===""?ct.removeNodes(i,{at:u}):r([s,u])},i}},Yre=er(1 .valueOf),Xre=pr.RangeError,Jre=pr.RangeError,c6=pr.String,d6=Math.floor,k2=er(function(e){var t=Li(_s(this)),n="",r=Wf(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=er("".slice),jg=er(1 .toFixed),Jf=function(e,t,n){return t===0?n:t%2==1?Jf(e,t-1,n*e):Jf(e*e,t/2,n)},Qf=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}Sa({target:"Number",proto:!0,forced:Ii(function(){return jg(8e-5,3)!=="0.000"||jg(.9,0)!=="1"||jg(1.255,2)!=="1.25"||jg(1000000000000000100,0)!=="1000000000000000128"})||!Ii(function(){jg({})})},{toFixed:function(e){var t,n,r,i,a=Yre(this),o=Wf(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 M=0,K=m;K>=4096;)M+=12,K/=4096;for(;K>=2;)M+=1,K/=2;return M}(a*Jf(2,69,1))-69)<0?a*Jf(2,-t,1):a/Jf(2,t,1),n*=4503599627370496,(t=52-t)>0){for(Qf(s,0,n),r=o;r>=7;)Qf(s,1e7,0),r-=7;for(Qf(s,Jf(10,r,1),0),r=t-1;r>=23;)M2(s,1<<23),r-=23;M2(s,1<<r),Qf(s,1,1),M2(s,2),f=f6(s)}else Qf(s,0,n),Qf(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,M=m.width,K=M===void 0?"":M,U=m.height,re=U===void 0?"":U,$=Ge.isNodeSelected(n,e),ee={};K&&(ee.width="100%"),re&&(ee.height="100%");var te=nr("img",{style:ee,src:i,alt:o,"data-href":u}),J=n.isDisabled();return $&&!J?function(he,me,_e,ke){var De=Qe("body"),Ke=p6(he,me),rt=ke.width,xt=ke.height,Lt=0,wt=0,Yt=0,Ft=!1,jt=null;function Ht(Dn){jt=function(){var ot=Qe("#"+Ke);if(ot.length===0)throw new Error("Cannot find image container elem");return ot}(),Lt=Dn;var Ze=jt.find("img");if(Ze.length===0)throw new Error("Cannot find image elem");wt=Ze.width(),Yt=Ze.height(),De.on("mousemove",bn),De.on("mouseup",Pn);var He=Ge.getHoverbar(he);He&&He.hideAndClean()}var bn=yd(function(Dn){Dn.preventDefault();var Ze=Dn.clientX,He=wt+(Ft?Lt-Ze:Ze-Lt),ot=Yt*(He/wt);jt!=null&&(He<=15||ot<=15||(jt.css("width",He+"px"),jt.css("height",ot+"px")))},100);function Pn(Dn){if(De.off("mousemove",bn),jt!=null){var Ze=jt.width().toFixed(2),He=jt.height().toFixed(2),ot={style:sc(sc({},me.style),{width:Ze+"px",height:He+"px"})};ct.setNodes(he,ot,{at:Ge.findPath(he,me)}),De.off("mouseup",Pn)}}var Ln={};return rt&&(Ln.width=rt),xt&&(Ln.height=xt),nr("div",{id:Ke,style:Ln,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(Dn){var Ze=Qe(Dn.target);Ze.hasClass("w-e-image-dragger")&&(Dn.preventDefault(),(Ze.hasClass("left-top")||Ze.hasClass("left-bottom"))&&(Ft=!0),Ht(Dn.clientX))}}},_e,nr("div",{className:"w-e-image-dragger left-top"}),nr("div",{className:"w-e-image-dragger right-top"}),nr("div",{className:"w-e-image-dragger left-bottom"}),nr("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,te,{width:K,height:re}):function(he,me,_e,ke){var De=ke.width,Ke=ke.height,rt={};return De&&(rt.width=De),Ke&&(rt.height=Ke),nr("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:Xs(r,"width"),height:Xs(r,"height")},children:[{text:""}]}}};function m6(e,t,n,r,i){return r===void 0&&(r=""),i===void 0&&(i=""),lc(this,void 0,void 0,function(){var a,o;return uc(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 lc(this,void 0,void 0,function(){var r;return uc(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 Kd(e,t,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),lc(this,void 0,void 0,function(){var i,a,o;return uc(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),c1(e)||(ct.insertNodes(e,a),(o=e.getMenuConfig("insertImage").onInsertedImage)&&o(a)),[2]}})})}function c1(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 d1(){return u1("w-e-insert-image")}var $re=function(){function e(){this.title=fn("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=d1(),this.altInputId=d1(),this.hrefInputId=d1(),this.buttonId=d1()}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 c1(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(Ko(fn("image.src"),i),2),f=u[0],m=Qe(u[1]),M=Ur(Ko(fn("image.desc"),a),2),K=M[0],U=Qe(M[1]),re=Ur(Ko(fn("image.link"),o),2),$=re[0],ee=Qe(re[1]),te=Ur(kf(s,fn("common.ok")),1)[0];if(this.$content==null){var J=Qe("<div></div>");J.on("click","#"+s,function(me){me.preventDefault();var _e=J.find("#"+i).val().trim(),ke=J.find("#"+a).val().trim(),De=J.find("#"+o).val().trim();n.insertImage(t,_e,ke,De),t.hidePanelOrModal()}),this.$content=J}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)||Kd(t,n,r,i))},e}(),qre=function(){function e(){this.title=fn("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 h1(){return u1("w-e-edit-image")}var eie=function(){function e(){this.title=fn("image.edit"),this.iconSvg=K8,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.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(Ko(fn("image.src"),i),2),m=f[0],M=Qe(f[1]),K=Ur(Ko(fn("image.desc"),a),2),U=K[0],re=Qe(K[1]),$=Ur(Ko(fn("image.link"),o),2),ee=$[0],te=Qe($[1]),J=Ur(kf(s,fn("common.ok")),1)[0];if(this.$content==null){var he=Qe("<div></div>");he.on("click","#"+s,function(Lt){Lt.preventDefault();var wt=he.find("#"+i).val(),Yt=he.find("#"+a).val(),Ft=he.find("#"+o).val();n.updateImage(t,wt,Yt,Ft),t.hidePanelOrModal()}),this.$content=he}var me=this.$content;me.empty(),me.append(m),me.append(U),me.append(ee),me.append(J);var _e=u,ke=_e.src,De=_e.alt,Ke=De===void 0?"":De,rt=_e.href,xt=rt===void 0?"":rt;return M.val(ke),re.val(Ke),te.val(xt),setTimeout(function(){M.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={}),lc(this,void 0,void 0,function(){var M,K,U,re,$,ee;return uc(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 M=te.sent(),(K=Ge.getSelectedNodeByType(o,"image"))==null||(U=K.style,re={src:M,alt:u,href:f,style:sc(sc({},U===void 0?{}:U),m)},ct.setNodes(o,re,{match:function(J){return Ge.checkNodeType(J,"image")}}),$=Ge.getSelectedNodeByType(o,"image"),(ee=o.getMenuConfig("editImage").onUpdatedImage)&&ee($)),[2]}})})}(t,n,r,i,a))},e}(),tie=function(){function e(){this.title=fn("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:sc(sc({},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 Si(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 Si(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 Si(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,M=m===void 0?"":m,K=f.height,U=K===void 0?"":K,re="";return M&&(re+="width: "+M+";"),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=nr("div",{style:{margin:"5px 0"}},nr("span",{contentEditable:!1,style:{marginRight:"0.5em"}},nr("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})}}})),nr("span",null,t));return i}},sie=function(){function e(){this.title=fn("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&&hn.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 nr("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=fn("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=er([].slice),mie=t2("slice"),gie=Yo("species"),F2=pr.Array,vie=Math.max;Sa({target:"Array",proto:!0,forced:!mie},{slice:function(e,t){var n,r,i,a=Bf(this),o=t1(a),s=Cg(e,o),u=Cg(t===void 0?o:t,o);if(r1(a)&&(n=a.constructor,(e2(n)&&(n===F2||r1(n.prototype))||xs(n)&&(n=n[gie])===null)&&(n=void 0),n===F2||n===void 0))return pie(a,s,u);for(r=new(n===void 0?F2: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(yr.equals(u,i.focus)){var f=hn.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=fn("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(Yf(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=er("".indexOf);Sa({target:"String",proto:!0,forced:!J8("includes")},{includes:function(e){return!!~wie(Li(_s(this)),Li(X8(e)),arguments.length>1?arguments[1]:void 0)}});var cc,f1,p1=function(e){return e&&e.Math==Math&&e},_r=p1(typeof globalThis=="object"&&globalThis)||p1(typeof window=="object"&&window)||p1(typeof self=="object"&&self)||p1(typeof Vb=="object"&&Vb)||function(){return this}()||Function("return this")(),B2=Function.prototype,y6=B2.apply,Tie=B2.bind,b6=B2.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),Gi=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"},Jo=function(e){try{return!!e()}catch(t){return!0}},Oo=!Jo(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ug=Function.prototype.call,Js=Ug.bind?Ug.bind(Ug):function(){return Ug.apply(Ug,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},Vd=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Aie=Gi({}.toString),Oie=Gi("".slice),Yd=function(e){return Oie(Aie(e),8,-1)},W2=_r.Object,Die=Gi("".split),T6=Jo(function(){return!W2("z").propertyIsEnumerable(0)})?function(e){return Yd(e)=="String"?Die(e,""):W2(e)}:W2,Rie=_r.TypeError,z2=function(e){if(e==null)throw Rie("Can't call method on "+e);return e},Cl=function(e){return T6(z2(e))},Ts=function(e){return typeof e=="object"?e!==null:Qa(e)},Ss={},S6=function(e){return Qa(e)?e:void 0},Hg=function(e,t){return arguments.length<2?S6(Ss[e])||S6(_r[e]):Ss[e]&&Ss[e][t]||_r[e]&&_r[e][t]},C6=Gi({}.isPrototypeOf),G2=Hg("navigator","userAgent")||"",A6=_r.process,O6=_r.Deno,D6=A6&&A6.versions||O6&&O6.version,R6=D6&&D6.v8;R6&&(f1=(cc=R6.split("."))[0]>0&&cc[0]<4?1:+(cc[0]+cc[1])),!f1&&G2&&(!(cc=G2.match(/Edge\/(\d+)/))||cc[1]>=74)&&(cc=G2.match(/Chrome\/(\d+)/))&&(f1=+cc[1]);var m1=f1,Al=!!Object.getOwnPropertySymbols&&!Jo(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&m1&&m1<41}),K2=Al&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Iie=_r.Object,Zf=K2?function(e){return typeof e=="symbol"}:function(e){var t=Hg("Symbol");return Qa(t)&&C6(t.prototype,Iie(e))},Lie=_r.String,Pie=_r.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=_r.TypeError,Mie=Object.defineProperty,dc=_r["__core-js_shared__"]||function(e,t){try{Mie(_r,e,{value:t,configurable:!0,writable:!0})}catch(n){_r[e]=t}return t}("__core-js_shared__",{}),Xd=Yb(function(e){(e.exports=function(t,n){return dc[t]||(dc[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Nie=_r.Object,Wg=function(e){return Nie(z2(e))},Fie=Gi({}.hasOwnProperty),Hr=Object.hasOwn||function(e,t){return Fie(Wg(e),t)},Bie=0,jie=Math.random(),Uie=Gi(1 .toString),g1=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Uie(++Bie+jie,36)},zg=Xd("wks"),Jd=_r.Symbol,L6=Jd&&Jd.for,Hie=K2?Jd:Jd&&Jd.withoutSetter||g1,Qo=function(e){if(!Hr(zg,e)||!Al&&typeof zg[e]!="string"){var t="Symbol."+e;Al&&Hr(Jd,e)?zg[e]=Jd[e]:zg[e]=K2&&L6?L6(t):Hie(t)}return zg[e]},Wie=_r.TypeError,zie=Qo("toPrimitive"),$f=function(e){var t=function(n,r){if(!Ts(n)||Zf(n))return n;var i,a,o=(i=n[zie])==null?void 0:I6(i);if(o){if(r===void 0&&(r="default"),a=Js(o,n,r),!Ts(a)||Zf(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)&&!Ts(m=Js(f,s)))return m;if(Qa(f=s.valueOf)&&!Ts(m=Js(f,s)))return m;if(u!=="string"&&Qa(f=s.toString)&&!Ts(m=Js(f,s)))return m;throw kie("Can't convert object to primitive value")}(n,r)}(e,"string");return Zf(t)?t:t+""},V2=_r.document,Gie=Ts(V2)&&Ts(V2.createElement),P6=function(e){return Gie?V2.createElement(e):{}},k6=!Oo&&!Jo(function(){return Object.defineProperty(P6("div"),"a",{get:function(){return 7}}).a!=7}),M6=Object.getOwnPropertyDescriptor,Y2={f:Oo?M6:function(e,t){if(e=Cl(e),t=$f(t),k6)try{return M6(e,t)}catch(n){}if(Hr(e,t))return Vd(!Js(H2.f,e,t),e[t])}},Kie=/#|\.prototype\./,Gg=function(e,t){var n=Yie[Vie(e)];return n==Jie||n!=Xie&&(Qa(t)?Jo(t):!!t)},Vie=Gg.normalize=function(e){return String(e).replace(Kie,".").toLowerCase()},Yie=Gg.data={},Xie=Gg.NATIVE="N",Jie=Gg.POLYFILL="P",Qie=Gg,N6=Gi(Gi.bind),F6=function(e,t){return I6(e),t===void 0?e:N6?N6(e,t):function(){return e.apply(t,arguments)}},Zie=_r.String,$ie=_r.TypeError,Qd=function(e){if(Ts(e))return e;throw $ie(Zie(e)+" is not an object")},qie=_r.TypeError,B6=Object.defineProperty,Zd={f:Oo?B6:function(e,t,n){if(Qd(e),t=$f(t),Qd(n),k6)try{return B6(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}},Ol=Oo?function(e,t,n){return Zd.f(e,t,Vd(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},hc=function(e,t){var n,r,i,a,o,s,u,f,m=e.target,M=e.global,K=e.stat,U=e.proto,re=M?_r:K?_r[m]:(_r[m]||{}).prototype,$=M?Ss:Ss[m]||Ol(Ss,m,{})[m],ee=$.prototype;for(i in t)n=!Qie(M?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?F6(a,_r):e.wrap&&n?tae(a):U&&Qa(a)?Gi(a):a,(e.sham||a&&a.sham||o&&o.sham)&&Ol(u,"sham",!0),Ol($,i,u),U&&(Hr(Ss,r=m+"Prototype")||Ol(Ss,r,{}),Ol(Ss[r],i,a),e.real&&ee&&!ee[i]&&Ol(ee,i,a)))},v1=Array.isArray||function(e){return Yd(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,y1=function(e){return(t=e.length)>0?iae(X2(t),9007199254740991):0;var t},J2=function(e,t,n){var r=$f(t);r in e?Zd.f(e,r,Vd(0,n)):e[r]=n},j6={};j6[Qo("toStringTag")]="z";var Q2=String(j6)==="[object z]",aae=Qo("toStringTag"),oae=_r.Object,sae=Yd(function(){return arguments}())=="Arguments",b1=Q2?Yd: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?Yd(t):(r=Yd(t))=="Object"&&Qa(t.callee)?"Arguments":r},lae=Gi(Function.toString);Qa(dc.inspectSource)||(dc.inspectSource=function(e){return lae(e)});var U6=dc.inspectSource,H6=function(){},uae=[],W6=Hg("Reflect","construct"),Z2=/^\s*(?:class|function)\b/,cae=Gi(Z2.exec),dae=!Z2.exec(H6),Kg=function(e){if(!Qa(e))return!1;try{return W6(H6,uae,e),!0}catch(t){return!1}},hae=!W6||Jo(function(){var e;return Kg(Kg.call)||!Kg(Object)||!Kg(function(){e=!0})||e})?function(e){if(!Qa(e))return!1;switch(b1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return dae||!!cae(Z2,U6(e))}:Kg,fae=Qo("species"),z6=_r.Array,G6=function(e,t){return new(function(n){var r;return v1(n)&&(r=n.constructor,(hae(r)&&(r===z6||v1(r.prototype))||Ts(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=_r.TypeError,mae=m1>=51||!Jo(function(){var e=[];return e[K6]=!1,e.concat()[0]!==e}),gae=m1>=51||!Jo(function(){var e=[];return(e.constructor={})[pae]=function(){return{foo:1}},e.concat(Boolean).foo!==1}),vae=function(e){if(!Ts(e))return!1;var t=e[K6];return t!==void 0?!!t:v1(e)};hc({target:"Array",proto:!0,forced:!mae||!gae},{concat:function(e){var t,n,r,i,a,o=Wg(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=y1(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 E1,yae=_r.String,_1=function(e){if(b1(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=Cl(t),o=y1(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)},Vg={},xae=_ae.indexOf,X6=Gi([].push),J6=function(e,t){var n,r=Cl(e),i=0,a=[];for(n in r)!Hr(Vg,n)&&Hr(r,n)&&X6(a,n);for(;t.length>i;)Hr(r,n=t[i++])&&(~xae(a,n)||X6(a,n));return a},x1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],q2=Object.keys||function(e){return J6(e,x1)},wae=Oo?Object.defineProperties:function(e,t){Qd(e);for(var n,r=Cl(t),i=q2(t),a=i.length,o=0;a>o;)Zd.f(e,n=i[o++],r[n]);return e},Tae=Hg("document","documentElement"),Q6=Xd("keys"),w1=function(e){return Q6[e]||(Q6[e]=g1(e))},Z6=w1("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},T1=function(){try{E1=new ActiveXObject("htmlfile")}catch(r){}var e,t;T1=typeof document!="undefined"?document.domain&&E1?q6(E1):((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(E1);for(var n=x1.length;n--;)delete T1.prototype[x1[n]];return T1()};Vg[Z6]=!0;var S1,Yg,C1,$d=Object.create||function(e,t){var n;return e!==null?(eA.prototype=Qd(e),n=new eA,eA.prototype=null,n[Z6]=e):n=T1(),t===void 0?n:wae(n,t)},Sae=x1.concat("length","prototype"),e7={f:Object.getOwnPropertyNames||function(e){return J6(e,Sae)}},Cae=_r.Array,Aae=Math.max,t7=e7.f,n7=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],r7={f:function(e){return n7&&Yd(e)=="Window"?function(t){try{return t7(t)}catch(n){return function(r,i,a){for(var o=y1(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(Cl(e))}},tA={f:Object.getOwnPropertySymbols},Oae=Gi([].slice),qf=function(e,t,n,r){r&&r.enumerable?e[t]=n:Ol(e,t,n)},nA={f:Qo},Dae=Zd.f,ra=function(e){var t=Ss.Symbol||(Ss.Symbol={});Hr(t,e)||Dae(t,e,{value:nA.f(e)})},Rae=Q2?{}.toString:function(){return"[object "+b1(this)+"]"},Iae=Zd.f,i7=Qo("toStringTag"),A1=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&&Ol(i,"toString",Rae)}},a7=_r.WeakMap,Lae=Qa(a7)&&/native code/.test(U6(a7)),rA=_r.TypeError,Pae=_r.WeakMap;if(Lae||dc.state){var qd=dc.state||(dc.state=new Pae),kae=Gi(qd.get),o7=Gi(qd.has),Mae=Gi(qd.set);S1=function(e,t){if(o7(qd,e))throw new rA("Object already initialized");return t.facade=e,Mae(qd,e,t),t},Yg=function(e){return kae(qd,e)||{}},C1=function(e){return o7(qd,e)}}else{var ep=w1("state");Vg[ep]=!0,S1=function(e,t){if(Hr(e,ep))throw new rA("Object already initialized");return t.facade=e,Ol(e,ep,t),t},Yg=function(e){return Hr(e,ep)?e[ep]:{}},C1=function(e){return Hr(e,ep)}}var tp={set:S1,get:Yg,has:C1,enforce:function(e){return C1(e)?Yg(e):S1(e,{})},getterFor:function(e){return function(t){var n;if(!Ts(t)||(n=Yg(t)).type!==e)throw rA("Incompatible receiver, "+e+" required");return n}}},s7=Gi([].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,M){for(var K,U,re=Wg(u),$=T6(re),ee=F6(f,m),te=y1($),J=0,he=M||G6,me=t?he(u,te):n||o?he(u,0):void 0;te>J;J++)if((s||J in $)&&(U=ee(K=$[J],J,re),e))if(t)me[J]=U;else if(U)switch(e){case 3:return!0;case 5:return K;case 6:return J;case 2:s7(me,K)}else switch(e){case 4:return!1;case 7:s7(me,K)}return a?-1:r||i?i:me}},O1=[fc(0),fc(1),fc(2),fc(3),fc(4),fc(5),fc(6),fc(7)][0],Do=w1("hidden"),l7=Qo("toPrimitive"),Nae=tp.set,u7=tp.getterFor("Symbol"),Qs=Object.prototype,pc=_r.Symbol,mc=pc&&pc.prototype,c7=_r.TypeError,iA=_r.QObject,Xg=Hg("JSON","stringify"),d7=Y2.f,gc=Zd.f,h7=r7.f,Fae=H2.f,f7=Gi([].push),cu=Xd("symbols"),Jg=Xd("op-symbols"),aA=Xd("string-to-symbol-registry"),oA=Xd("symbol-to-string-registry"),Bae=Xd("wks"),sA=!iA||!iA.prototype||!iA.prototype.findChild,lA=Oo&&Jo(function(){return $d(gc({},"a",{get:function(){return gc(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=d7(Qs,t);r&&delete Qs[t],gc(e,t,n),r&&e!==Qs&&gc(Qs,t,r)}:gc,uA=function(e,t){var n=cu[e]=$d(mc);return Nae(n,{type:"Symbol",tag:e,description:t}),Oo||(n.description=t),n},D1=function(e,t,n){e===Qs&&D1(Jg,t,n),Qd(e);var r=$f(t);return Qd(n),Hr(cu,r)?(n.enumerable?(Hr(e,Do)&&e[Do][r]&&(e[Do][r]=!1),n=$d(n,{enumerable:Vd(0,!1)})):(Hr(e,Do)||gc(e,Do,Vd(1,{})),e[Do][r]=!0),lA(e,r,n)):gc(e,r,n)},p7=function(e,t){Qd(e);var n=Cl(t),r=q2(n).concat(cA(n));return O1(r,function(i){Oo&&!Js(m7,n,i)||D1(e,i,n[i])}),e},m7=function(e){var t=$f(e),n=Js(Fae,this,t);return!(this===Qs&&Hr(cu,t)&&!Hr(Jg,t))&&(!(n||!Hr(this,t)||!Hr(cu,t)||Hr(this,Do)&&this[Do][t])||n)},g7=function(e,t){var n=Cl(e),r=$f(t);if(n!==Qs||!Hr(cu,r)||Hr(Jg,r)){var i=d7(n,r);return!i||!Hr(cu,r)||Hr(n,Do)&&n[Do][r]||(i.enumerable=!0),i}},v7=function(e){var t=h7(Cl(e)),n=[];return O1(t,function(r){Hr(cu,r)||Hr(Vg,r)||f7(n,r)}),n},cA=function(e){var t=e===Qs,n=h7(t?Jg:Cl(e)),r=[];return O1(n,function(i){!Hr(cu,i)||t&&!Hr(Qs,i)||f7(r,cu[i])}),r};if(Al||(mc=(pc=function(){if(C6(mc,this))throw c7("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?_1(arguments[0]):void 0,t=g1(e),n=function(r){this===Qs&&Js(n,Jg,r),Hr(this,Do)&&Hr(this[Do],t)&&(this[Do][t]=!1),lA(this,t,Vd(1,r))};return Oo&&sA&&lA(Qs,t,{configurable:!0,set:n}),uA(t,e)}).prototype,qf(mc,"toString",function(){return u7(this).tag}),qf(pc,"withoutSetter",function(e){return uA(g1(e),e)}),H2.f=m7,Zd.f=D1,Y2.f=g7,e7.f=r7.f=v7,tA.f=cA,nA.f=function(e){return uA(Qo(e),e)},Oo&&gc(mc,"description",{configurable:!0,get:function(){return u7(this).description}})),hc({global:!0,wrap:!0,forced:!Al,sham:!Al},{Symbol:pc}),O1(q2(Bae),function(e){ra(e)}),hc({target:"Symbol",stat:!0,forced:!Al},{for:function(e){var t=_1(e);if(Hr(aA,t))return aA[t];var n=pc(t);return aA[t]=n,oA[n]=t,n},keyFor:function(e){if(!Zf(e))throw c7(e+" is not a symbol");if(Hr(oA,e))return oA[e]},useSetter:function(){sA=!0},useSimple:function(){sA=!1}}),hc({target:"Object",stat:!0,forced:!Al,sham:!Oo},{create:function(e,t){return t===void 0?$d(e):p7($d(e),t)},defineProperty:D1,defineProperties:p7,getOwnPropertyDescriptor:g7}),hc({target:"Object",stat:!0,forced:!Al},{getOwnPropertyNames:v7,getOwnPropertySymbols:cA}),hc({target:"Object",stat:!0,forced:Jo(function(){tA.f(1)})},{getOwnPropertySymbols:function(e){return tA.f(Wg(e))}}),Xg){var jae=!Al||Jo(function(){var e=pc();return Xg([e])!="[null]"||Xg({a:e})!="{}"||Xg(Object(e))!="{}"});hc({target:"JSON",stat:!0,forced:jae},{stringify:function(e,t,n){var r=Oae(arguments),i=t;if((Ts(t)||e!==void 0)&&!Zf(e))return v1(t)||(t=function(a,o){if(Qa(i)&&(o=Js(i,this,a,o)),!Zf(o))return o}),r[1]=t,E6(Xg,null,r)}})}if(!mc[l7]){var Uae=mc.valueOf;qf(mc,l7,function(e){return Js(Uae,this)})}A1(pc,"Symbol"),Vg[Do]=!0,ra("asyncIterator"),ra("hasInstance"),ra("isConcatSpreadable"),ra("iterator"),ra("match"),ra("matchAll"),ra("replace"),ra("search"),ra("species"),ra("split"),ra("toPrimitive"),ra("toStringTag"),ra("unscopables"),A1(_r.JSON,"JSON",!0);var vc,y7,b7,Hae=Ss.Symbol,eh={},E7=Function.prototype,Wae=Oo&&Object.getOwnPropertyDescriptor,dA=Hr(E7,"name"),zae={EXISTS:dA,PROPER:dA&&function(){}.name==="something",CONFIGURABLE:dA&&(!Oo||Oo&&Wae(E7,"name").configurable)},Gae=!Jo(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),_7=w1("IE_PROTO"),hA=_r.Object,Kae=hA.prototype,fA=Gae?hA.getPrototypeOf:function(e){var t=Wg(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&&(vc=y7):x7=!0);var Vae=vc==null||Jo(function(){var e={};return vc[pA].call(e)!==e});vc=Vae?{}:$d(vc),Qa(vc[pA])||qf(vc,pA,function(){return this});var w7={IteratorPrototype:vc,BUGGY_SAFARI_ITERATORS:x7},Yae=w7.IteratorPrototype,Xae=function(){return this};_r.String,_r.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{Gi(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch(t){}}();var Jae=zae.PROPER,R1=w7.BUGGY_SAFARI_ITERATORS,mA=Qo("iterator"),Qae=function(){return this},T7=function(e,t,n,r,i,a,o){!function(te,J,he,me){var _e=J+" Iterator";te.prototype=$d(Yae,{next:Vd(1,he)}),A1(te,_e,!1,!0),eh[_e]=Xae}(n,t,r);var s,u,f,m=function(te){if(te===i&&$)return $;if(!R1&&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)}},M=t+" Iterator",K=!1,U=e.prototype,re=U[mA]||U["@@iterator"]||i&&U[i],$=!R1&&re||m(i),ee=t=="Array"&&U.entries||re;if(ee&&(s=fA(ee.call(new e)))!==Object.prototype&&s.next&&(A1(s,M,!0,!0),eh[M]=Qae),Jae&&i=="values"&&re&&re.name!=="values"&&(K=!0,$=function(){return Js(re,this)}),i)if(u={values:m("values"),keys:a?$:m("keys"),entries:m("entries")},o)for(f in u)(R1||K||!(f in U))&&qf(U,f,u[f]);else hc({target:t,proto:!0,forced:R1||K},u);return o&&U[mA]!==$&&qf(U,mA,$,{name:i}),eh[t]=$,u},Zae=tp.set,$ae=tp.getterFor("Array Iterator");T7(Array,"Array",function(e,t){Zae(this,{type:"Array Iterator",target:Cl(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"),eh.Arguments=eh.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=_r[gA],vA=C7&&C7.prototype;vA&&b1(vA)!==S7&&Ol(vA,S7,gA),eh[gA]=eh.Array}var qae=Hae;ra("asyncDispose"),ra("dispose"),ra("matcher"),ra("metadata"),ra("observable"),ra("patternMatch"),ra("replaceAll");var I1=qae,eoe=Gi("".charAt),A7=Gi("".charCodeAt),toe=Gi("".slice),O7=function(e){return function(t,n){var r,i,a=_1(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=tp.set,ioe=tp.getterFor("String Iterator");T7(String,"String",function(e){roe(this,{type:"String Iterator",string:_1(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=Yb(function(e){function t(n){return typeof I1=="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 I1=="function"&&r.constructor===I1&&r!==I1.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=e1.EXISTS,loe=jf.f,R7=Function.prototype,uoe=er(R7.toString),I7=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,coe=er(I7.exec);Ys&&!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=fn("fontSize.title"),n.iconSvg=jne,n.mark="fontSize",n}return Si(t,e),t.prototype.getOptions=function(n){var r=[],i=n.getMenuConfig(this.mark).fontSizeList,a=i===void 0?[]:i;r.push({text:fn("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=fn("fontFamily.title"),n.iconSvg=Une,n.mark="fontFamily",n.selectPanelWidth=150,n}return Si(t,e),t.prototype.getOptions=function(n){var r=[],i=n.getMenuConfig(this.mark).fontFamilyList,a=i===void 0?[]:i;r.push({text:fn("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&&Gd(a,{fontSize:r}),i&&Gd(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)||Yf(n=Qe(t))!=="span")&&(n=Qe("<span>"+t+"</span>")),i&&n.css("font-size",i),a&&n.css("font-family",a),Vf(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=Xs(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,M=Xs(r,"font-family").replace(/"/g,""),K=m.find(function(U){return U.value&&U.value===M})||m.includes(M);return M&&K&&(i.fontFamily=M),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=Xs(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=fn("indent.decrease"),n.iconSvg=Hne,n}return Si(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=fn("indent.increase"),n.iconSvg=Wne,n}return Si(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&&Gd(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),Vf(r)},preParseHtml:[poe],parseStyleHtml:function(e,t,n){var r=Qe(e);if(!Nn.isElement(t))return t;var i=t,a=Xs(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}}]},L1=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=fn("justify.left"),n.iconSvg=zne,n}return Si(t,e),t.prototype.exec=function(n,r){ct.setNodes(n,{textAlign:"left"},{match:function(i){return Nn.isElement(i)&&!n.isInline(i)}})},t}(L1),boe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=fn("justify.right"),n.iconSvg=Gne,n}return Si(t,e),t.prototype.exec=function(n,r){ct.setNodes(n,{textAlign:"right"},{match:function(i){return Nn.isElement(i)&&!n.isInline(i)}})},t}(L1),Eoe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=fn("justify.center"),n.iconSvg=Kne,n}return Si(t,e),t.prototype.exec=function(n,r){ct.setNodes(n,{textAlign:"center"},{match:function(i){return Nn.isElement(i)&&!n.isInline(i)}})},t}(L1),_oe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=fn("justify.justify"),n.iconSvg=Vne,n}return Si(t,e),t.prototype.exec=function(n,r){ct.setNodes(n,{textAlign:"justify"},{match:function(i){return Nn.isElement(i)&&!n.isInline(i)}})},t}(L1),xoe={renderStyle:function(e,t){if(!Nn.isElement(e))return t;var n=e.textAlign,r=t;return n&&Gd(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),Vf(r)},parseStyleHtml:function(e,t,n){var r=Qe(e);if(!Nn.isElement(t))return t;var i=t,a=Xs(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=fn("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:fn("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&&Gd(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),Vf(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=Xs(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=fn("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=fn("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 sf("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:Ge.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[sf("hr")])}},Doe=function(){function e(){this.title=fn("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=i1.map;Sa({target:"Array",proto:!0,forced:!t2("map")},{map:function(e){return Ioe(this,e,arguments.length>1?arguments[1]:void 0)}});var Loe=er([].join),Poe=Qb!=Object,koe=W8("join",",");Sa({target:"Array",proto:!0,forced:Poe||!koe},{join:function(e){return Loe(Bf(this),e===void 0?",":e)}});var Moe=function(){function e(){this.title=fn("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=hn.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(M){return t.children.includes(M)},universal:!0});try{for(var s=B8(o),u=s.next();!u.done;u=s.next()){var f=Ur(u.value,1)[0];f&&a.push(hn.string(f))}}catch(M){r={error:M}}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}};Sa({target:"String",proto:!0,forced:kg("anchor")},{anchor:function(e){return Pg(this,"a","name",e)}}),h2("match",function(e,t,n){return[function(r){var i=_s(this),a=r==null?void 0:Zb(r,e);return a?zi(a,r,i):new RegExp(r)[e](Li(i))},function(r){var i=Xo(this),a=Li(r),o=n(t,i,a);if(o.done)return o.value;if(!i.global)return Ig(i,a);var s=i.unicode;i.lastIndex=0;for(var u,f=[],m=0;(u=Ig(i,a))!==null;){var M=Li(u[0]);f[m]=M,M===""&&(i.lastIndex=f2(a,Ag(i.lastIndex),s)),m++}return m===0?null:f}]});var Foe={type:"pre",renderElem:function(e,t,n){return nr("pre",null,t)}},Boe={type:"code",renderElem:function(e,t,n){return nr("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 M=m.selection;if(M==null)return"";var K=hn.string(f),U=M.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:[Foe,Boe],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(Yf(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=fn("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=fn("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}}]}];Ao("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Ao("zh-CN",{listModule:{unOrderedList:"\u65E0\u5E8F\u5217\u8868",orderedList:"\u6709\u5E8F\u5217\u8868"}});var k7=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Se!="undefined"?Se:typeof self!="undefined"?self:{};function yA(e){var t={exports:{}};return e(t,t.exports),t.exports}var yc,P1,k1=function(e){return e&&e.Math==Math&&e},rr=k1(typeof globalThis=="object"&&globalThis)||k1(typeof window=="object"&&window)||k1(typeof self=="object"&&self)||k1(typeof k7=="object"&&k7)||function(){return this}()||Function("return this")(),M7=Function.prototype,bA=M7.bind,EA=M7.call,Koe=bA&&bA.bind(EA),Tr=bA?function(e){return e&&Koe(EA,e)}:function(e){return e&&function(){return EA.apply(e,arguments)}},ji=function(e){try{return!!e()}catch(t){return!0}},Voe=Tr({}.toString),Yoe=Tr("".slice),du=function(e){return Yoe(Voe(e),8,-1)},_A=rr.Object,Xoe=Tr("".split),N7=ji(function(){return!_A("z").propertyIsEnumerable(0)})?function(e){return du(e)=="String"?Xoe(e,""):_A(e)}:_A,Joe=rr.TypeError,M1=function(e){if(e==null)throw Joe("Can't call method on "+e);return e},np=function(e){return N7(M1(e))},Qoe=Object.defineProperty,xA=function(e,t){try{Qoe(rr,e,{value:t,configurable:!0,writable:!0})}catch(n){rr[e]=t}return t},bc=rr["__core-js_shared__"]||xA("__core-js_shared__",{}),wA=yA(function(e){(e.exports=function(t,n){return bc[t]||(bc[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Zoe=rr.Object,Qg=function(e){return Zoe(M1(e))},$oe=Tr({}.hasOwnProperty),Ca=Object.hasOwn||function(e,t){return $oe(Qg(e),t)},qoe=0,ese=Math.random(),tse=Tr(1 .toString),TA=function(e){return"Symbol("+(e===void 0?"":e)+")_"+tse(++qoe+ese,36)},Ui=function(e){return typeof e=="function"},nse=function(e){return Ui(e)?e:void 0},Zg=function(e,t){return arguments.length<2?nse(rr[e]):rr[e]&&rr[e][t]},SA=Zg("navigator","userAgent")||"",F7=rr.process,B7=rr.Deno,j7=F7&&F7.versions||B7&&B7.version,U7=j7&&j7.v8;U7&&(P1=(yc=U7.split("."))[0]>0&&yc[0]<4?1:+(yc[0]+yc[1])),!P1&&SA&&(!(yc=SA.match(/Edge\/(\d+)/))||yc[1]>=74)&&(yc=SA.match(/Chrome\/(\d+)/))&&(P1=+yc[1]);var N1,CA=P1,AA=!!Object.getOwnPropertySymbols&&!ji(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&CA&&CA<41}),OA=AA&&!Symbol.sham&&typeof Symbol.iterator=="symbol",$g=wA("wks"),th=rr.Symbol,H7=th&&th.for,rse=OA?th:th&&th.withoutSetter||TA,Za=function(e){if(!Ca($g,e)||!AA&&typeof $g[e]!="string"){var t="Symbol."+e;AA&&Ca(th,e)?$g[e]=th[e]:$g[e]=OA&&H7?H7(t):rse(t)}return $g[e]},Hi=function(e){return typeof e=="object"?e!==null:Ui(e)},ise=rr.String,ase=rr.TypeError,Ro=function(e){if(Hi(e))return e;throw ase(ise(e)+" is not an object")},Ec=!ji(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),DA=rr.document,ose=Hi(DA)&&Hi(DA.createElement),RA=function(e){return ose?DA.createElement(e):{}},W7=!Ec&&!ji(function(){return Object.defineProperty(RA("div"),"a",{get:function(){return 7}}).a!=7}),qg=Function.prototype.call,Aa=qg.bind?qg.bind(qg):function(){return qg.apply(qg,arguments)},F1=Tr({}.isPrototypeOf),sse=rr.Object,IA=OA?function(e){return typeof e=="symbol"}:function(e){var t=Zg("Symbol");return Ui(t)&&F1(t.prototype,sse(e))},lse=rr.String,LA=function(e){try{return lse(e)}catch(t){return"Object"}},use=rr.TypeError,PA=function(e){if(Ui(e))return e;throw use(LA(e)+" is not a function")},ev=function(e,t){var n=e[t];return n==null?void 0:PA(n)},cse=rr.TypeError,dse=rr.TypeError,hse=Za("toPrimitive"),kA=function(e){var t=function(n,r){if(!Hi(n)||IA(n))return n;var i,a=ev(n,hse);if(a){if(r===void 0&&(r="default"),i=Aa(a,n,r),!Hi(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"&&Ui(u=o.toString)&&!Hi(f=Aa(u,o)))return f;if(Ui(u=o.valueOf)&&!Hi(f=Aa(u,o)))return f;if(s!=="string"&&Ui(u=o.toString)&&!Hi(f=Aa(u,o)))return f;throw cse("Can't convert object to primitive value")}(n,r)}(e,"string");return IA(t)?t:t+""},fse=rr.TypeError,z7=Object.defineProperty,nh={f:Ec?z7:function(e,t,n){if(Ro(e),t=kA(t),Ro(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,tv=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=tv(e);return n<0?gse(n+t,0):vse(n,t)},yse=Math.min,G7=function(e){return e>0?yse(tv(e),9007199254740991):0},rp=function(e){return G7(e.length)},K7=function(e){return function(t,n,r){var i,a=np(t),o=rp(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)},B1={},bse=V7.indexOf,Y7=Tr([].push),X7=function(e,t){var n,r=np(e),i=0,a=[];for(n in r)!Ca(B1,n)&&Ca(r,n)&&Y7(a,n);for(;t.length>i;)Ca(r,n=t[i++])&&(~bse(a,n)||Y7(a,n));return a},j1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ese=Object.keys||function(e){return X7(e,j1)},_se=Ec?Object.defineProperties:function(e,t){Ro(e);for(var n,r=np(t),i=Ese(t),a=i.length,o=0;a>o;)nh.f(e,n=i[o++],r[n]);return e},xse=Zg("document","documentElement"),J7=wA("keys"),NA=function(e){return J7[e]||(J7[e]=TA(e))},Q7=NA("IE_PROTO"),FA=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},U1=function(){try{N1=new ActiveXObject("htmlfile")}catch(r){}var e,t;U1=typeof document!="undefined"?document.domain&&N1?$7(N1):((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(N1);for(var n=j1.length;n--;)delete U1.prototype[j1[n]];return U1()};B1[Q7]=!0;var BA=Object.create||function(e,t){var n;return e!==null?(FA.prototype=Ro(e),n=new FA,FA.prototype=null,n[Q7]=e):n=U1(),t===void 0?n:_se(n,t)},jA=Za("unscopables"),UA=Array.prototype;UA[jA]==null&&nh.f(UA,jA,{configurable:!0,value:BA(null)});var nv=function(e){UA[jA][e]=!0},ip={},wse=Tr(Function.toString);Ui(bc.inspectSource)||(bc.inspectSource=function(e){return wse(e)});var H1,rv,W1,HA=bc.inspectSource,q7=rr.WeakMap,e9=Ui(q7)&&/native code/.test(HA(q7)),z1=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_c=Ec?function(e,t,n){return nh.f(e,t,z1(1,n))}:function(e,t,n){return e[t]=n,e},WA=rr.TypeError,Tse=rr.WeakMap;if(e9||bc.state){var rh=bc.state||(bc.state=new Tse),Sse=Tr(rh.get),t9=Tr(rh.has),Cse=Tr(rh.set);H1=function(e,t){if(t9(rh,e))throw new WA("Object already initialized");return t.facade=e,Cse(rh,e,t),t},rv=function(e){return Sse(rh,e)||{}},W1=function(e){return t9(rh,e)}}else{var ap=NA("state");B1[ap]=!0,H1=function(e,t){if(Ca(e,ap))throw new WA("Object already initialized");return t.facade=e,_c(e,ap,t),t},rv=function(e){return Ca(e,ap)?e[ap]:{}},W1=function(e){return Ca(e,ap)}}var ih,n9,r9,Dl={set:H1,get:rv,has:W1,enforce:function(e){return W1(e)?rv(e):H1(e,{})},getterFor:function(e){return function(t){var n;if(!Hi(t)||(n=rv(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:Ec?o9:function(e,t){if(e=np(e),t=kA(t),W7)try{return o9(e,t)}catch(n){}if(Ca(e,t))return z1(!Aa(Ase.f,e,t),e[t])}},l9=Function.prototype,Ose=Ec&&Object.getOwnPropertyDescriptor,zA=Ca(l9,"name"),GA={EXISTS:zA,PROPER:zA&&function(){}.name==="something",CONFIGURABLE:zA&&(!Ec||Ec&&Ose(l9,"name").configurable)},Rl=yA(function(e){var t=GA.CONFIGURABLE,n=Dl.get,r=Dl.enforce,i=String(String).split("String");(e.exports=function(a,o,s,u){var f,m=!!u&&!!u.unsafe,M=!!u&&!!u.enumerable,K=!!u&&!!u.noTargetGet,U=u&&u.name!==void 0?u.name:o;Ui(s)&&(String(U).slice(0,7)==="Symbol("&&(U="["+String(U).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ca(s,"name")||t&&s.name!==U)&&_c(s,"name",U),(f=r(s)).source||(f.source=i.join(typeof U=="string"?U:""))),a!==rr?(m?!K&&a[o]&&(M=!0):delete a[o],M?a[o]=s:_c(a,o,s)):M?a[o]=s:xA(o,s)})(Function.prototype,"toString",function(){return Ui(this)&&n(this).source||HA(this)})}),Dse=j1.concat("length","prototype"),G1={f:Object.getOwnPropertyNames||function(e){return X7(e,Dse)}},Rse={f:Object.getOwnPropertySymbols},Ise=Tr([].concat),Lse=Zg("Reflect","ownKeys")||function(e){var t=G1.f(Ro(e)),n=Rse.f;return n?Ise(t,n(e)):t},Pse=function(e,t){for(var n=Lse(t),r=nh.f,i=s9.f,a=0;a<n.length;a++){var o=n[a];Ca(e,o)||r(e,o,i(t,o))}},kse=/#|\.prototype\./,iv=function(e,t){var n=Nse[Mse(e)];return n==Bse||n!=Fse&&(Ui(t)?ji(t):!!t)},Mse=iv.normalize=function(e){return String(e).replace(kse,".").toLowerCase()},Nse=iv.data={},Fse=iv.NATIVE="N",Bse=iv.POLYFILL="P",KA=iv,jse=s9.f,xc=function(e,t){var n,r,i,a,o,s=e.target,u=e.global,f=e.stat;if(n=u?rr:f?rr[s]||xA(s,{}):(rr[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)&&_c(a,"sham",!0),Rl(n,r,a,e)}},Use=!ji(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),u9=NA("IE_PROTO"),VA=rr.Object,Hse=VA.prototype,K1=Use?VA.getPrototypeOf:function(e){var t=Qg(e);if(Ca(t,u9))return t[u9];var n=t.constructor;return Ui(n)&&t instanceof n?n.prototype:t instanceof VA?Hse:null},YA=Za("iterator"),c9=!1;[].keys&&("next"in(r9=[].keys())?(n9=K1(K1(r9)))!==Object.prototype&&(ih=n9):c9=!0);var Wse=ih==null||ji(function(){var e={};return ih[YA].call(e)!==e});Wse&&(ih={}),Ui(ih[YA])||Rl(ih,YA,function(){return this});var XA={IteratorPrototype:ih,BUGGY_SAFARI_ITERATORS:c9},zse=nh.f,d9=Za("toStringTag"),JA=function(e,t,n){e&&!Ca(e=n?e:e.prototype,d9)&&zse(e,d9,{configurable:!0,value:t})},Gse=XA.IteratorPrototype,Kse=function(){return this},Vse=rr.String,Yse=rr.TypeError,V1=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Tr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(r,i){return Ro(r),function(a){if(typeof a=="object"||Ui(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,Y1=XA.BUGGY_SAFARI_ITERATORS,av=Za("iterator"),Qse=function(){return this},f9=function(e,t,n,r,i,a,o){!function(te,J,he,me){var _e=J+" Iterator";te.prototype=BA(Gse,{next:z1(1,he)}),JA(te,_e,!1),ip[_e]=Kse}(n,t,r);var s,u,f,m=function(te){if(te===i&&$)return $;if(!Y1&&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)}},M=t+" Iterator",K=!1,U=e.prototype,re=U[av]||U["@@iterator"]||i&&U[i],$=!Y1&&re||m(i),ee=t=="Array"&&U.entries||re;if(ee&&(s=K1(ee.call(new e)))!==Object.prototype&&s.next&&(K1(s)!==h9&&(V1?V1(s,h9):Ui(s[av])||Rl(s,av,Qse)),JA(s,M,!0)),Xse&&i=="values"&&re&&re.name!=="values"&&(Jse?_c(U,"name","values"):(K=!0,$=function(){return Aa(re,this)})),i)if(u={values:m("values"),keys:a?$:m("keys"),entries:m("entries")},o)for(f in u)(Y1||K||!(f in U))&&Rl(U,f,u[f]);else xc({target:t,proto:!0,forced:Y1||K},u);return U[av]!==$&&Rl(U,av,$,{name:i}),ip[t]=$,u},Zse=Dl.set,$se=Dl.getterFor("Array Iterator"),ov=f9(Array,"Array",function(e,t){Zse(this,{type:"Array Iterator",target:np(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");ip.Arguments=ip.Array,nv("keys"),nv("values"),nv("entries");var p9={};p9[Za("toStringTag")]="z";var QA=String(p9)==="[object z]",qse=Za("toStringTag"),ele=rr.Object,tle=du(function(){return arguments}())=="Arguments",X1=QA?du: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?du(t):(r=du(t))=="Object"&&Ui(t.callee)?"Arguments":r},nle=QA?{}.toString:function(){return"[object "+X1(this)+"]"};QA||Rl(Object.prototype,"toString",nle,{unsafe:!0});var rle=rr.String,hu=function(e){if(X1(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return rle(e)},ile=Tr("".charAt),m9=Tr("".charCodeAt),ale=Tr("".slice),g9=function(e){return function(t,n){var r,i,a=hu(M1(t)),o=tv(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=Dl.set,lle=Dl.getterFor("String Iterator");f9(String,"String",function(e){sle(this,{type:"String Iterator",string:hu(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)Rl(e,r,t[r],n);return e},ule=rr.Array,cle=Math.max,y9=G1.f,b9=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],dle={f:function(e){return b9&&du(e)=="Window"?function(t){try{return y9(t)}catch(n){return function(r,i,a){for(var o,s,u,f,m=rp(r),M=MA(void 0,m),K=MA(m,m),U=ule(cle(K-M,0)),re=0;M<K;M++,re++)o=U,s=re,u=r[M],(f=kA(s))in o?nh.f(o,f,z1(0,u)):o[f]=u;return U.length=re,U}(b9)}}(e):y9(np(e))}},E9=ji(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),J1=Object.isExtensible,ah=ji(function(){J1(1)})||E9?function(e){return!!Hi(e)&&(!E9||du(e)!="ArrayBuffer")&&(!J1||J1(e))}:J1,hle=!ji(function(){return Object.isExtensible(Object.preventExtensions({}))}),$A=yA(function(e){var t=nh.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=G1.f,u=Tr([].splice),f={};f[r]=1,s(f).length&&(G1.f=function(m){for(var M=s(m),K=0,U=M.length;K<U;K++)if(M[K]===r){u(M,K,1);break}return M},xc({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:dle.f}))},fastKey:function(s,u){if(!Hi(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Ca(s,r)){if(!ah(s))return"F";if(!u)return"E";a(s)}return s[r].objectID},getWeakData:function(s,u){if(!Ca(s,r)){if(!ah(s))return!0;if(!u)return!1;a(s)}return s[r].weakData},onFreeze:function(s){return hle&&n&&ah(s)&&!Ca(s,r)&&a(s),s}};B1[r]=!0}),_9=Tr(Tr.bind),qA=function(e,t){return PA(e),t===void 0?e:_9?_9(e,t):function(){return e.apply(t,arguments)}},fle=Za("iterator"),ple=Array.prototype,mle=Za("iterator"),x9=function(e){if(e!=null)return ev(e,mle)||ev(e,"@@iterator")||ip[X1(e)]},gle=rr.TypeError,w9=function(e,t,n){var r,i;Ro(e);try{if(!(r=ev(e,"return"))){if(t==="throw")throw n;return n}r=Aa(r,e)}catch(a){i=!0,r=a}if(t==="throw")throw n;if(i)throw r;return Ro(r),n},vle=rr.TypeError,Q1=function(e,t){this.stopped=e,this.result=t},T9=Q1.prototype,S9=function(e,t,n){var r,i,a,o,s,u,f,m,M=n&&n.that,K=!(!n||!n.AS_ENTRIES),U=!(!n||!n.IS_ITERATOR),re=!(!n||!n.INTERRUPTED),$=qA(t,M),ee=function(J){return r&&w9(r,"normal",J),new Q1(!0,J)},te=function(J){return K?(Ro(J),re?$(J[0],J[1],ee):$(J[0],J[1])):re?$(J,ee):$(J)};if(U)r=e;else{if(!(i=x9(e)))throw vle(LA(e)+" is not iterable");if((m=i)!==void 0&&(ip.Array===m||ple[fle]===m)){for(a=0,o=rp(e);o>a;a++)if((s=te(e[a]))&&F1(T9,s))return s;return new Q1(!1)}r=function(J,he){var me=arguments.length<2?x9(J):he;if(PA(me))return Ro(Aa(me,J));throw gle(LA(J)+" is not iterable")}(e,i)}for(u=r.next;!(f=Aa(u,r)).done;){try{s=te(f.value)}catch(J){w9(r,"throw",J)}if(typeof s=="object"&&s&&F1(T9,s))return s}return new Q1(!1)},yle=rr.TypeError,C9=function(e,t){if(F1(t,e))return e;throw yle("Incorrect invocation")},A9=Za("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 du(e)=="Array"},R9=function(){},Ele=[],I9=Zg("Reflect","construct"),tO=/^\s*(?:class|function)\b/,_le=Tr(tO.exec),xle=!tO.exec(R9),sv=function(e){if(!Ui(e))return!1;try{return I9(R9,Ele,e),!0}catch(t){return!1}},wle=!I9||ji(function(){var e;return sv(sv.call)||!sv(Object)||!sv(function(){e=!0})||e})?function(e){if(!Ui(e))return!1;switch(X1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return xle||!!_le(tO,HA(e))}:sv,Tle=Za("species"),L9=rr.Array,P9=function(e,t){return new(function(n){var r;return eO(n)&&(r=n.constructor,(wle(r)&&(r===L9||eO(r.prototype))||Hi(r)&&(r=r[Tle])===null)&&(r=void 0)),r===void 0?L9:r}(e))(t===0?0:t)},k9=Tr([].push),wc=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,M){for(var K,U,re=Qg(u),$=N7(re),ee=qA(f,m),te=rp($),J=0,he=M||P9,me=t?he(u,te):n||o?he(u,0):void 0;te>J;J++)if((s||J in $)&&(U=ee(K=$[J],J,re),e))if(t)me[J]=U;else if(U)switch(e){case 3:return!0;case 5:return K;case 6:return J;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:wc(0),map:wc(1),filter:wc(2),some:wc(3),every:wc(4),find:wc(5),findIndex:wc(6),filterReject:wc(7)},Z1=$A.getWeakData,Sle=Dl.set,Cle=Dl.getterFor,Ale=nO.find,Ole=nO.findIndex,Dle=Tr([].splice),Rle=0,$1=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 lv,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 M=o(u),K=Z1(Ro(f),!0);return K===!0?$1(M).set(f,m):K[M.id]=m,u};return ZA(a,{delete:function(u){var f=o(this);if(!Hi(u))return!1;var m=Z1(u);return m===!0?$1(f).delete(u):m&&Ca(m,f.id)&&delete m[f.id]},has:function(u){var f=o(this);if(!Hi(u))return!1;var m=Z1(u);return m===!0?$1(f).has(u):m&&Ca(m,f.id)}}),ZA(a,n?{get:function(u){var f=o(this);if(Hi(u)){var m=Z1(u);return m===!0?$1(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}},q1=Dl.enforce,Ile=!rr.ActiveXObject&&"ActiveXObject"in rr,F9=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=rr[e],s=o&&o.prototype,u=o,f={},m=function(ee){var te=Tr(s[ee]);Rl(s,ee,ee=="add"?function(J){return te(this,J===0?0:J),this}:ee=="delete"?function(J){return!(i&&!Hi(J))&&te(this,J===0?0:J)}:ee=="get"?function(J){return i&&!Hi(J)?void 0:te(this,J===0?0:J)}:ee=="has"?function(J){return!(i&&!Hi(J))&&te(this,J===0?0:J)}:function(J,he){return te(this,J===0?0:J,he),this})};if(KA(e,!Ui(o)||!(i||s.forEach&&!ji(function(){new o().entries().next()}))))u=n.getConstructor(t,e,r,a),$A.enable();else if(KA(e,!0)){var M=new u,K=M[a](i?{}:-0,1)!=M,U=ji(function(){M.has(1)}),re=function(ee,te){if(!O9)return!1;var J=!1;try{var he={};he[A9]=function(){return{next:function(){return{done:J=!0}}}},function(me){new o(me)}(he)}catch(me){}return J}(),$=!i&&ji(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 J=function(he,me,_e){var ke,De;return V1&&Ui(ke=me.constructor)&&ke!==_e&&Hi(De=ke.prototype)&&De!==_e.prototype&&V1(he,De),he}(new o,ee,u);return te!=null&&S9(te,J[a],{that:J,AS_ENTRIES:r}),J})).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,xc({global:!0,forced:u!=o},f),JA(u,e),i||n.setStrong(u,e,r),u}("WeakMap",F9,N9);if(e9&&Ile){lv=N9.getConstructor(F9,"WeakMap",!0),$A.enable();var uv=Lle.prototype,B9=Tr(uv.delete),eE=Tr(uv.has),j9=Tr(uv.get),U9=Tr(uv.set);ZA(uv,{delete:function(e){if(Hi(e)&&!ah(e)){var t=q1(this);return t.frozen||(t.frozen=new lv),B9(this,e)||t.frozen.delete(e)}return B9(this,e)},has:function(e){if(Hi(e)&&!ah(e)){var t=q1(this);return t.frozen||(t.frozen=new lv),eE(this,e)||t.frozen.has(e)}return eE(this,e)},get:function(e){if(Hi(e)&&!ah(e)){var t=q1(this);return t.frozen||(t.frozen=new lv),eE(this,e)?j9(this,e):t.frozen.get(e)}return j9(this,e)},set:function(e,t){if(Hi(e)&&!ah(e)){var n=q1(this);n.frozen||(n.frozen=new lv),eE(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=Za("iterator"),z9=Za("toStringTag"),oO=ov.values,G9=function(e,t){if(e){if(e[aO]!==oO)try{_c(e,aO,oO)}catch(r){e[aO]=oO}if(e[z9]||_c(e,z9,t),H9[t]){for(var n in ov)if(e[n]!==ov[n])try{_c(e,n,ov[n])}catch(r){e[n]=ov[n]}}}};for(var sO in H9)G9(rr[sO]&&rr[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(M,K){var U=K,re=U.type,$=U.level,ee=$===void 0?0:$,te=U.ordered,J=te!==void 0&&te;if(!J)return-1;var he=1,me=K,_e=Ge.findPath(M,me);if(_e[0]===0)return 1;for(;_e[0]>0;){var ke=st.previous(_e),De=Ee.node(M,ke);if(De==null)break;var Ke=De[0],rt=Ke.level,xt=rt===void 0?0:rt,Lt=Ke.type,wt=Ke.ordered;if(Lt!==re)break;if(xt<ee)break;if(xt===ee){if(wt!==J)break;he++}me=Ke,_e=ke}return he}(n,e);u=f+"."}else u=function(M){M===void 0&&(M=0);var K="";switch(M){case 0:K="\u2022";break;case 1:K="\u25E6";break;default:K="\u25AA"}return K}(a);var m=function(M){var K,U=M.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 nr("div",{style:s},nr("span",{contentEditable:!1,style:{marginRight:"0.5em",color:m},"data-w-e-reserve":!0},u),nr("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 cv(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;xc({target:"Array",proto:!0},{includes:function(e){return Mle(this,e,arguments.length>1?arguments[1]:void 0)}}),nv("includes");var X9,cO,Nle=function(){var e=Ro(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=rr.RegExp,hO=ji(function(){var e=dO("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Fle=hO||ji(function(){return!dO("a","y").sticky}),Ble={BROKEN_CARET:hO||ji(function(){var e=dO("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Fle,UNSUPPORTED_Y:hO},jle=rr.RegExp,Ule=ji(function(){var e=jle(".","s");return!(e.dotAll&&e.exec(`
`)&&e.flags==="s")}),Hle=rr.RegExp,Wle=ji(function(){var e=Hle("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),zle=Dl.get,Gle=wA("native-string-replace",String.prototype.replace),tE=RegExp.prototype.exec,fO=tE,Kle=Tr("".charAt),Vle=Tr("".indexOf),Yle=Tr("".replace),pO=Tr("".slice),mO=(cO=/b*/g,Aa(tE,X9=/a/,"a"),Aa(tE,cO,"a"),X9.lastIndex!==0||cO.lastIndex!==0),J9=Ble.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=hu(e),M=f.raw;if(M)return M.lastIndex=u.lastIndex,t=Aa(fO,M,m),u.lastIndex=M.lastIndex,t;var K=f.groups,U=J9&&u.sticky,re=Aa(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=Aa(tE,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&&Aa(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=BA(null),a=0;a<K.length;a++)o[(s=K[a])[0]]=i[s[1]];return i});var nE=fO;xc({target:"RegExp",proto:!0,forced:/./.exec!==nE},{exec:nE});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=fn("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=fn("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 M=f,K=M.type,U=M.ordered,re=U!==void 0&&U,$=M.level,ee=$===void 0?0:$,te=Ge.findPath(m,f);if(te[0]===0)return ee+1;var J=st.previous(te),he=Ee.node(m,J);if(!he)return 0;var me=cv(he,1)[0];if(Ge.getNodeType(me)!==K)return ee+1;var _e=me,ke=_e.ordered,De=ke!==void 0&&ke,Ke=_e.level,rt=Ke===void 0?0:Ke;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 M=f,K=M.type,U=M.ordered,re=U!==void 0&&U,$=M.level,ee=$===void 0?0:$,te=Ge.findPath(m,f);if(te[0]===m.children.length-1)return ee+1;var J=st.next(te),he=Ee.node(m,J);if(!he)return 0;var me=cv(he,1)[0];if(Ge.getNodeType(me)!==K)return ee+1;var _e=me,ke=_e.ordered,De=ke!==void 0&&ke,Ke=_e.level,rt=Ke===void 0?0:Ke;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=Za("species"),nue=nO.filter,rue=CA>=51||!ji(function(){var e=[];return(e.constructor={})[tue]=function(){return{foo:1}},e.filter(Boolean).foo!==1});xc({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)}),eF=(Za("species"),RegExp.prototype),oue=v9.charAt,sue=function(e,t,n){return t+(n?oue(e,t).length:1)},lue=Math.floor,yO=Tr("".charAt),uue=Tr("".replace),bO=Tr("".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=Qg(i),u=cue),uue(a,u,function(f,m){var M;switch(yO(m,0)){case"$":return"$";case"&":return e;case"`":return bO(t,0,n);case"'":return bO(t,o);case"<":M=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}M=r[K-1]}return M===void 0?"":M})},fue=rr.TypeError,pue=function(e,t){var n=e.exec;if(Ui(n)){var r=Aa(n,e,t);return r!==null&&Ro(r),r}if(du(e)==="RegExp")return Aa(nE,e,t);throw fue("RegExp#exec called on incompatible receiver")},EO=Za("replace"),mue=Math.max,gue=Math.min,vue=Tr([].concat),_O=Tr([].push),tF=Tr("".indexOf),nF=Tr("".slice),yue="a".replace(/./,"$0")==="$0",rF=!!/./[EO]&&/./[EO]("a","$0")==="";!function(e,t,n,r){var i=Za(e),a=!ji(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),o=a&&!ji(function(){var f=!1,m=/a/;return m.exec=function(){return f=!0,null},m[i](""),!f});if(!a||!o||n){var s=Tr(/./[i]),u=function(f,m,M){var K=rF?"$":"$0";return[function(U,re){var $=M1(this),ee=U==null?void 0:ev(U,EO);return ee?Aa(ee,U,$,re):Aa(m,hu($),U,re)},function(U,re){var $=Ro(this),ee=hu(U);if(typeof re=="string"&&tF(re,K)===-1&&tF(re,"$<")===-1){var te=M(m,$,ee,re);if(te.done)return te.value}var J=Ui(re);J||(re=hu(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;hu(ke[0])===""&&($.lastIndex=sue(ee,G7($.lastIndex),me))}for(var De,Ke="",rt=0,xt=0;xt<_e.length;xt++){for(var Lt=hu((ke=_e[xt])[0]),wt=mue(gue(tv(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(J){var Ht=vue([Lt],Yt,wt,ee);jt!==void 0&&_O(Ht,jt);var bn=hu(aue(re,void 0,Ht))}else bn=hue(Lt,ee,wt,Yt,jt,re);wt>=rt&&(Ke+=nF(ee,rt,wt)+bn,rt=wt+Lt.length)}return Ke+nF(ee,rt)}]}(0,""[e],function(f,m,M,K,U){var re=Tr(f),$=m.exec;return $===nE||$===eF.exec?a&&!U?{done:!0,value:s(m,M,K)}:{done:!0,value:re(M,m,K)}:{done:!1}});Rl(String.prototype,e,u[0]),Rl(eF,i,u[1])}}("replace",0,!!ji(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!yue||rF);var bue=rr.TypeError,iF=function(e,t,n,r,i,a,o,s){for(var u,f,m=i,M=0,K=!!o&&qA(o,s);M<r;){if(M in n){if(u=K?K(n[M],M,t):n[M],a>0&&eO(u))f=rp(u),m=iF(e,t,u,f,m,a-1)-1;else{if(m>=9007199254740991)throw bue("Exceed the acceptable array length");e[m]=u}m++}M++}return m},Eue=iF;function xO(e){return e.length?e[0].tagName.toLowerCase():""}xc({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Qg(this),n=rp(t),r=P9(t,0);return r.length=Eue(r,t,t,n,0,e===void 0?1:tv(e)),r}}),nv("flat"),xc({global:!0},{globalThis:rr}),fs&&(Qe.fn.append=fs),hs&&(Qe.fn.attr=hs),tf&&(Qe.fn.parent=tf);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 M=m.level,K=M===void 0?0:M;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=cv(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 J=V9(Y9(i)),he=J.next();!he.done;he=J.next()){var me=cv(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=J.return)&&u.call(J)}finally{if(s)throw s.error}}}else n()}else n()},i.normalizeNode=function(a){var o=cv(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}}}]},aF=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]",M="[object Number]",K="[object Object]",U="[object Promise]",re="[object RegExp]",$="[object Set]",ee="[object String]",te="[object Symbol]",J="[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[M]=De[K]=De[re]=De[$]=De[ee]=De[J]=!1;var Ke=typeof ae=="object"&&ae&&ae.Object===Object&&ae,rt=typeof self=="object"&&self&&self.Object===Object&&self,xt=Ke||rt||Function("return this")(),Lt=t&&!t.nodeType&&t,wt=Lt&&e&&!e.nodeType&&e,Yt=wt&&wt.exports===Lt,Ft=Yt&&Ke.process,jt=function(){try{return Ft&&Ft.binding&&Ft.binding("util")}catch(at){}}(),Ht=jt&&jt.isTypedArray;function bn(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 Pn(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 Dn=Array.prototype,Ze=Function.prototype,He=Object.prototype,ot=xt["__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:""}(),Sn=He.toString,Vn=RegExp("^"+At.call(qt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tr=Yt?xt.Buffer:void 0,dr=xt.Symbol,Ut=xt.Uint8Array,Dr=He.propertyIsEnumerable,mr=Dn.splice,zn=dr?dr.toStringTag:void 0,gr=Object.getOwnPropertySymbols,Ki=tr?tr.isBuffer:void 0,jr=function(at,bt){return function(un){return at(bt(un))}}(Object.keys,Object),ni=Zc(xt,"DataView"),Ci=Zc(xt,"Map"),uo=Zc(xt,"Promise"),Nr=Zc(xt,"Set"),Lo=Zc(xt,"WeakMap"),tl=Zc(Object,"create"),jl=_u(ni),Fp=_u(Ci),Ch=_u(uo),nl=_u(Nr),Ul=_u(Lo),yu=dr?dr.prototype:void 0,co=yu?yu.valueOf:void 0;function ho(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 fo(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 Eo(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 Ba(at){var bt=-1,un=at==null?0:at.length;for(this.__data__=new Eo;++bt<un;)this.add(at[bt])}function Ls(at){var bt=this.__data__=new fo(at);this.size=bt.size}function P0(at,bt){var un=xu(at),Kn=!un&&G_(at),ri=!un&&!Kn&&Hl(at),Cr=!un&&!Kn&&!ri&&zl(at),tt=un||Kn||ri||Cr,St=tt?function(Mr,vi){for(var ii=-1,Wr=Array(Mr);++ii<Mr;)Wr[ii]=vi(ii);return Wr}(at.length,String):[],pn=St.length;for(var Rn in at)!bt&&!qt.call(at,Rn)||tt&&(Rn=="length"||ri&&(Rn=="offset"||Rn=="parent")||Cr&&(Rn=="buffer"||Rn=="byteLength"||Rn=="byteOffset")||k0(Rn,pn))||St.push(Rn);return St}function Qc(at,bt){for(var un=at.length;un--;)if(Up(at[un][0],bt))return un;return-1}function bu(at){return at==null?at===void 0?"[object Undefined]":"[object Null]":zn&&zn in Object(at)?function(bt){var un=qt.call(bt,zn),Kn=bt[zn];try{bt[zn]=void 0;var ri=!0}catch(tt){}var Cr=Sn.call(bt);return ri&&(un?bt[zn]=Kn:delete bt[zn]),Cr}(at):function(bt){return Sn.call(bt)}(at)}function Bp(at){return $c(at)&&bu(at)==i}function Ah(at,bt,un,Kn,ri){return at===bt||(at==null||bt==null||!$c(at)&&!$c(bt)?at!=at&&bt!=bt:function(Cr,tt,St,pn,Rn,Mr){var vi=xu(Cr),ii=xu(tt),Wr=vi?a:ts(Cr),Da=ii?a:ts(tt),po=(Wr=Wr==i?K:Wr)==K,Oh=(Da=Da==i?K:Da)==K,wu=Wr==Da;if(wu&&Hl(Cr)){if(!Hl(tt))return!1;vi=!0,po=!1}if(wu&&!po)return Mr||(Mr=new Ls),vi||zl(Cr)?Ps(Cr,tt,St,pn,Rn,Mr):function(Rr,zr,Gr,Vi,_o,Po,al){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||!Po(new Ut(Rr),new Ut(zr)));case o:case s:case M:return Up(+Rr,+zr);case u:return Rr.name==zr.name&&Rr.message==zr.message;case re:case ee:return Rr==zr+"";case m:var ed=Pn;case $:var N0=1&Vi;if(ed||(ed=Ln),Rr.size!=zr.size&&!N0)return!1;var Y_=al.get(Rr);if(Y_)return Y_==zr;Vi|=2,al.set(Rr,zr);var Hp=Ps(ed(Rr),ed(zr),Vi,_o,Po,al);return al.delete(Rr),Hp;case te:if(co)return co.call(Rr)==co.call(zr)}return!1}(Cr,tt,Wr,St,pn,Rn,Mr);if(!(1&St)){var qc=po&&qt.call(Cr,"__wrapped__"),ir=Oh&&qt.call(tt,"__wrapped__");if(qc||ir){var Jr=qc?Cr.value():Cr,oa=ir?tt.value():tt;return Mr||(Mr=new Ls),Rn(Jr,oa,St,pn,Mr)}}return wu?(Mr||(Mr=new Ls),function(Rr,zr,Gr,Vi,_o,Po){var al=1&Gr,ed=Eu(Rr),N0=ed.length,Y_=Eu(zr).length;if(N0!=Y_&&!al)return!1;for(var Hp=N0;Hp--;){var Dh=ed[Hp];if(!(al?Dh in zr:qt.call(zr,Dh)))return!1}var Oz=Po.get(Rr);if(Oz&&Po.get(zr))return Oz==zr;var X_=!0;Po.set(Rr,zr),Po.set(zr,Rr);for(var KI=al;++Hp<N0;){var J_=Rr[Dh=ed[Hp]],Q_=zr[Dh];if(Vi)var Dz=al?Vi(Q_,J_,Dh,zr,Rr,Po):Vi(J_,Q_,Dh,Rr,zr,Po);if(!(Dz===void 0?J_===Q_||_o(J_,Q_,Gr,Vi,Po):Dz)){X_=!1;break}KI||(KI=Dh=="constructor")}if(X_&&!KI){var Z_=Rr.constructor,$_=zr.constructor;Z_==$_||!("constructor"in Rr)||!("constructor"in zr)||typeof Z_=="function"&&Z_ instanceof Z_&&typeof $_=="function"&&$_ instanceof $_||(X_=!1)}return Po.delete(Rr),Po.delete(zr),X_}(Cr,tt,St,pn,Rn,Mr)):!1}(at,bt,un,Kn,Ah,ri))}function jp(at){return!(!K_(at)||function(bt){return!!Mt&&Mt in bt}(at))&&(M0(at)?Vn:_e).test(_u(at))}function rl(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 Cr in Object(at))qt.call(at,Cr)&&Cr!="constructor"&&ri.push(Cr);return ri}function Ps(at,bt,un,Kn,ri,Cr){var tt=1&un,St=at.length,pn=bt.length;if(St!=pn&&!(tt&&pn>St))return!1;var Rn=Cr.get(at);if(Rn&&Cr.get(bt))return Rn==bt;var Mr=-1,vi=!0,ii=2&un?new Ba:void 0;for(Cr.set(at,bt),Cr.set(bt,at);++Mr<St;){var Wr=at[Mr],Da=bt[Mr];if(Kn)var po=tt?Kn(Da,Wr,Mr,bt,at,Cr):Kn(Wr,Da,Mr,at,bt,Cr);if(po!==void 0){if(po)continue;vi=!1;break}if(ii){if(!bn(bt,function(Oh,wu){if(qc=wu,!ii.has(qc)&&(Wr===Oh||ri(Wr,Oh,un,Kn,Cr)))return ii.push(wu);var qc})){vi=!1;break}}else if(Wr!==Da&&!ri(Wr,Da,un,Kn,Cr)){vi=!1;break}}return Cr.delete(at),Cr.delete(bt),vi}function Eu(at){return function(bt,un,Kn){var ri=un(bt);return xu(bt)?ri:function(Cr,tt){for(var St=-1,pn=tt.length,Rn=Cr.length;++St<pn;)Cr[Rn+St]=tt[St];return Cr}(ri,Kn(bt))}(at,V_,z_)}function il(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 Zc(at,bt){var un=function(Kn,ri){return Kn==null?void 0:Kn[ri]}(at,bt);return jp(un)?un:void 0}ho.prototype.clear=function(){this.__data__=tl?tl(null):{},this.size=0},ho.prototype.delete=function(at){var bt=this.has(at)&&delete this.__data__[at];return this.size-=bt?1:0,bt},ho.prototype.get=function(at){var bt=this.__data__;if(tl){var un=bt[at];return un===n?void 0:un}return qt.call(bt,at)?bt[at]:void 0},ho.prototype.has=function(at){var bt=this.__data__;return tl?bt[at]!==void 0:qt.call(bt,at)},ho.prototype.set=function(at,bt){var un=this.__data__;return this.size+=this.has(at)?0:1,un[at]=tl&&bt===void 0?n:bt,this},fo.prototype.clear=function(){this.__data__=[],this.size=0},fo.prototype.delete=function(at){var bt=this.__data__,un=Qc(bt,at);return!(un<0)&&(un==bt.length-1?bt.pop():mr.call(bt,un,1),--this.size,!0)},fo.prototype.get=function(at){var bt=this.__data__,un=Qc(bt,at);return un<0?void 0:bt[un][1]},fo.prototype.has=function(at){return Qc(this.__data__,at)>-1},fo.prototype.set=function(at,bt){var un=this.__data__,Kn=Qc(un,at);return Kn<0?(++this.size,un.push([at,bt])):un[Kn][1]=bt,this},Eo.prototype.clear=function(){this.size=0,this.__data__={hash:new ho,map:new(Ci||fo),string:new ho}},Eo.prototype.delete=function(at){var bt=il(this,at).delete(at);return this.size-=bt?1:0,bt},Eo.prototype.get=function(at){return il(this,at).get(at)},Eo.prototype.has=function(at){return il(this,at).has(at)},Eo.prototype.set=function(at,bt){var un=il(this,at),Kn=un.size;return un.set(at,bt),this.size+=un.size==Kn?0:1,this},Ba.prototype.add=Ba.prototype.push=function(at){return this.__data__.set(at,n),this},Ba.prototype.has=function(at){return this.__data__.has(at)},Ls.prototype.clear=function(){this.__data__=new fo,this.size=0},Ls.prototype.delete=function(at){var bt=this.__data__,un=bt.delete(at);return this.size=bt.size,un},Ls.prototype.get=function(at){return this.__data__.get(at)},Ls.prototype.has=function(at){return this.__data__.has(at)},Ls.prototype.set=function(at,bt){var un=this.__data__;if(un instanceof fo){var Kn=un.__data__;if(!Ci||Kn.length<199)return Kn.push([at,bt]),this.size=++un.size,this;un=this.__data__=new Eo(Kn)}return un.set(at,bt),this.size=un.size,this};var z_=gr?function(at){return at==null?[]:(at=Object(at),function(bt,un){for(var Kn=-1,ri=bt==null?0:bt.length,Cr=0,tt=[];++Kn<ri;){var St=bt[Kn];un(St,Kn,bt)&&(tt[Cr++]=St)}return tt}(gr(at),function(bt){return Dr.call(at,bt)}))}:function(){return[]},ts=bu;function k0(at,bt){return!!(bt=bt==null?r:bt)&&(typeof at=="number"||ke.test(at))&&at>-1&&at%1==0&&at<bt}function _u(at){if(at!=null){try{return At.call(at)}catch(bt){}try{return at+""}catch(bt){}}return""}function Up(at,bt){return at===bt||at!=at&&bt!=bt}(ni&&ts(new ni(new ArrayBuffer(1)))!=me||Ci&&ts(new Ci)!=m||uo&&ts(uo.resolve())!=U||Nr&&ts(new Nr)!=$||Lo&&ts(new Lo)!=J)&&(ts=function(at){var bt=bu(at),un=bt==K?at.constructor:void 0,Kn=un?_u(un):"";if(Kn)switch(Kn){case jl:return me;case Fp:return m;case Ch:return U;case nl:return $;case Ul:return J}return bt});var G_=Bp(function(){return arguments}())?Bp:function(at){return $c(at)&&qt.call(at,"callee")&&!Dr.call(at,"callee")},xu=Array.isArray,Hl=Ki||function(){return!1};function M0(at){if(!K_(at))return!1;var bt=bu(at);return bt==f||bt=="[object GeneratorFunction]"||bt=="[object AsyncFunction]"||bt=="[object Proxy]"}function Wl(at){return typeof at=="number"&&at>-1&&at%1==0&&at<=r}function K_(at){var bt=typeof at;return at!=null&&(bt=="object"||bt=="function")}function $c(at){return at!=null&&typeof at=="object"}var zl=Ht?function(at){return function(bt){return at(bt)}}(Ht):function(at){return $c(at)&&Wl(at.length)&&!!De[bu(at)]};function V_(at){return(bt=at)!=null&&Wl(bt.length)&&!M0(bt)?P0(at):rl(at);var bt}e.exports=function(at,bt){return Ah(at,bt)}});Ao("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"}}),Ao("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 oF=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Se!="undefined"?Se:typeof self!="undefined"?self:{};function sF(e){var t={exports:{}};return e(t,t.exports),t.exports}var Tc,rE,iE=function(e){return e&&e.Math==Math&&e},xr=iE(typeof globalThis=="object"&&globalThis)||iE(typeof window=="object"&&window)||iE(typeof self=="object"&&self)||iE(typeof oF=="object"&&oF)||function(){return this}()||Function("return this")(),ya=function(e){try{return!!e()}catch(t){return!0}},Sc=!ya(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),dv=Function.prototype.call,ba=dv.bind?dv.bind(dv):function(){return dv.apply(dv,arguments)},lF={}.propertyIsEnumerable,uF=Object.getOwnPropertyDescriptor,xue={f:uF&&!lF.call({1:2},1)?function(e){var t=uF(this,e);return!!t&&t.enumerable}:lF},wO=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},cF=Function.prototype,TO=cF.bind,SO=cF.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),Cc=function(e){return Sue(Tue(e),8,-1)},CO=xr.Object,Cue=Or("".split),dF=ya(function(){return!CO("z").propertyIsEnumerable(0)})?function(e){return Cc(e)=="String"?Cue(e,""):CO(e)}:CO,Aue=xr.TypeError,Ac=function(e){if(e==null)throw Aue("Can't call method on "+e);return e},hv=function(e){return dF(Ac(e))},$a=function(e){return typeof e=="function"},Cs=function(e){return typeof e=="object"?e!==null:$a(e)},Oue=function(e){return $a(e)?e:void 0},fv=function(e,t){return arguments.length<2?Oue(xr[e]):xr[e]&&xr[e][t]},hF=Or({}.isPrototypeOf),AO=fv("navigator","userAgent")||"",fF=xr.process,pF=xr.Deno,mF=fF&&fF.versions||pF&&pF.version,gF=mF&&mF.v8;gF&&(rE=(Tc=gF.split("."))[0]>0&&Tc[0]<4?1:+(Tc[0]+Tc[1])),!rE&&AO&&(!(Tc=AO.match(/Edge\/(\d+)/))||Tc[1]>=74)&&(Tc=AO.match(/Chrome\/(\d+)/))&&(rE=+Tc[1]);var OO=rE,DO=!!Object.getOwnPropertySymbols&&!ya(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=xr.Object,IO=RO?function(e){return typeof e=="symbol"}:function(e){var t=fv("Symbol");return $a(t)&&hF(t.prototype,Due(e))},Rue=xr.String,vF=function(e){try{return Rue(e)}catch(t){return"Object"}},Iue=xr.TypeError,yF=function(e){if($a(e))return e;throw Iue(vF(e)+" is not a function")},LO=function(e,t){var n=e[t];return n==null?void 0:yF(n)},Lue=xr.TypeError,Pue=Object.defineProperty,PO=function(e,t){try{Pue(xr,e,{value:t,configurable:!0,writable:!0})}catch(n){xr[e]=t}return t},Oc=xr["__core-js_shared__"]||PO("__core-js_shared__",{}),kO=sF(function(e){(e.exports=function(t,n){return Oc[t]||(Oc[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),kue=xr.Object,MO=function(e){return kue(Ac(e))},Mue=Or({}.hasOwnProperty),As=Object.hasOwn||function(e,t){return Mue(MO(e),t)},Nue=0,Fue=Math.random(),Bue=Or(1 .toString),bF=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Bue(++Nue+Fue,36)},pv=kO("wks"),oh=xr.Symbol,EF=oh&&oh.for,jue=RO?oh:oh&&oh.withoutSetter||bF,Os=function(e){if(!As(pv,e)||!DO&&typeof pv[e]!="string"){var t="Symbol."+e;DO&&As(oh,e)?pv[e]=oh[e]:pv[e]=RO&&EF?EF(t):jue(t)}return pv[e]},Uue=xr.TypeError,Hue=Os("toPrimitive"),NO=function(e){var t=function(n,r){if(!Cs(n)||IO(n))return n;var i,a=LO(n,Hue);if(a){if(r===void 0&&(r="default"),i=ba(a,n,r),!Cs(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"&&$a(u=o.toString)&&!Cs(f=ba(u,o)))return f;if($a(u=o.valueOf)&&!Cs(f=ba(u,o)))return f;if(s!=="string"&&$a(u=o.toString)&&!Cs(f=ba(u,o)))return f;throw Lue("Can't convert object to primitive value")}(n,r)}(e,"string");return IO(t)?t:t+""},FO=xr.document,Wue=Cs(FO)&&Cs(FO.createElement),BO=function(e){return Wue?FO.createElement(e):{}},_F=!Sc&&!ya(function(){return Object.defineProperty(BO("div"),"a",{get:function(){return 7}}).a!=7}),xF=Object.getOwnPropertyDescriptor,wF={f:Sc?xF:function(e,t){if(e=hv(e),t=NO(t),_F)try{return xF(e,t)}catch(n){}if(As(e,t))return wO(!ba(xue.f,e,t),e[t])}},zue=xr.String,Gue=xr.TypeError,Ds=function(e){if(Cs(e))return e;throw Gue(zue(e)+" is not an object")},Kue=xr.TypeError,TF=Object.defineProperty,mv={f:Sc?TF:function(e,t,n){if(Ds(e),t=NO(t),Ds(n),_F)try{return TF(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}},op=Sc?function(e,t,n){return mv.f(e,t,wO(1,n))}:function(e,t,n){return e[t]=n,e},Vue=Or(Function.toString);$a(Oc.inspectSource)||(Oc.inspectSource=function(e){return Vue(e)});var aE,gv,oE,jO=Oc.inspectSource,SF=xr.WeakMap,Yue=$a(SF)&&/native code/.test(jO(SF)),CF=kO("keys"),AF=function(e){return CF[e]||(CF[e]=bF(e))},UO={},HO=xr.TypeError,Xue=xr.WeakMap;if(Yue||Oc.state){var sh=Oc.state||(Oc.state=new Xue),Jue=Or(sh.get),OF=Or(sh.has),Que=Or(sh.set);aE=function(e,t){if(OF(sh,e))throw new HO("Object already initialized");return t.facade=e,Que(sh,e,t),t},gv=function(e){return Jue(sh,e)||{}},oE=function(e){return OF(sh,e)}}else{var sp=AF("state");UO[sp]=!0,aE=function(e,t){if(As(e,sp))throw new HO("Object already initialized");return t.facade=e,op(e,sp,t),t},gv=function(e){return As(e,sp)?e[sp]:{}},oE=function(e){return As(e,sp)}}var WO={set:aE,get:gv,has:oE,enforce:function(e){return oE(e)?gv(e):aE(e,{})},getterFor:function(e){return function(t){var n;if(!Cs(t)||(n=gv(t)).type!==e)throw HO("Incompatible receiver, "+e+" required");return n}}},DF=Function.prototype,Zue=Sc&&Object.getOwnPropertyDescriptor,zO=As(DF,"name"),GO={EXISTS:zO,PROPER:zO&&function(){}.name==="something",CONFIGURABLE:zO&&(!Sc||Sc&&Zue(DF,"name").configurable)},vv=sF(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,M=!!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")+"]"),(!As(s,"name")||t&&s.name!==U)&&op(s,"name",U),(f=r(s)).source||(f.source=i.join(typeof U=="string"?U:""))),a!==xr?(m?!K&&a[o]&&(M=!0):delete a[o],M?a[o]=s:op(a,o,s)):M?a[o]=s:PO(o,s)})(Function.prototype,"toString",function(){return $a(this)&&n(this).source||jO(this)})}),$ue=Math.ceil,que=Math.floor,sE=function(e){var t=+e;return t!=t||t===0?0:(t>0?que:$ue)(t)},ece=Math.max,tce=Math.min,yv=function(e,t){var n=sE(e);return n<0?ece(n+t,0):tce(n,t)},nce=Math.min,KO=function(e){return e>0?nce(sE(e),9007199254740991):0},lE=function(e){return KO(e.length)},RF=function(e){return function(t,n,r){var i,a=hv(t),o=lE(a),s=yv(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=(RF(!0),RF(!1)),IF=Or([].push),LF=function(e,t){var n,r=hv(e),i=0,a=[];for(n in r)!As(UO,n)&&As(r,n)&&IF(a,n);for(;t.length>i;)As(r,n=t[i++])&&(~rce(a,n)||IF(a,n));return a},uE=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ice=uE.concat("length","prototype"),ace={f:Object.getOwnPropertyNames||function(e){return LF(e,ice)}},oce={f:Object.getOwnPropertySymbols},sce=Or([].concat),lce=fv("Reflect","ownKeys")||function(e){var t=ace.f(Ds(e)),n=oce.f;return n?sce(t,n(e)):t},uce=function(e,t){for(var n=lce(t),r=mv.f,i=wF.f,a=0;a<n.length;a++){var o=n[a];As(e,o)||r(e,o,i(t,o))}},cce=/#|\.prototype\./,bv=function(e,t){var n=hce[dce(e)];return n==pce||n!=fce&&($a(t)?ya(t):!!t)},dce=bv.normalize=function(e){return String(e).replace(cce,".").toLowerCase()},hce=bv.data={},fce=bv.NATIVE="N",pce=bv.POLYFILL="P",mce=bv,gce=wF.f,Dc=function(e,t){var n,r,i,a,o,s=e.target,u=e.global,f=e.stat;if(n=u?xr:f?xr[s]||PO(s,{}):(xr[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)&&op(a,"sham",!0),vv(n,r,a,e)}},PF={};PF[Os("toStringTag")]="z";var VO=String(PF)==="[object z]",vce=Os("toStringTag"),yce=xr.Object,bce=Cc(function(){return arguments}())=="Arguments",YO=VO?Cc: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?Cc(t):(r=Cc(t))=="Object"&&$a(t.callee)?"Arguments":r},Ece=xr.String,so=function(e){if(YO(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Ece(e)},_ce=/"/g,xce=Or("".replace);Dc({target:"String",proto:!0,forced:ya(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=so(Ac(this)),r="<a",(r+=' name="'+xce(so(t),_ce,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var cE,kF=function(){var e=Ds(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=xr.RegExp,JO=ya(function(){var e=XO("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),wce=JO||ya(function(){return!XO("a","y").sticky}),MF={BROKEN_CARET:JO||ya(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 LF(e,uE)},Sce=Sc?Object.defineProperties:function(e,t){Ds(e);for(var n,r=hv(t),i=Tce(t),a=i.length,o=0;a>o;)mv.f(e,n=i[o++],r[n]);return e},Cce=fv("document","documentElement"),NF=AF("IE_PROTO"),QO=function(){},FF=function(e){return"<script>"+e+"</script>"},BF=function(e){e.write(FF("")),e.close();var t=e.parentWindow.Object;return e=null,t},dE=function(){try{cE=new ActiveXObject("htmlfile")}catch(r){}var e,t;dE=typeof document!="undefined"?document.domain&&cE?BF(cE):((t=BO("iframe")).style.display="none",Cce.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(FF("document.F=Object")),e.close(),e.F):BF(cE);for(var n=uE.length;n--;)delete dE.prototype[uE[n]];return dE()};UO[NF]=!0;var jF,ZO,UF=Object.create||function(e,t){var n;return e!==null?(QO.prototype=Ds(e),n=new QO,QO.prototype=null,n[NF]=e):n=dE(),t===void 0?n:Sce(n,t)},Ace=xr.RegExp,Oce=ya(function(){var e=Ace(".","s");return!(e.dotAll&&e.exec(`
`)&&e.flags==="s")}),Dce=xr.RegExp,Rce=ya(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),hE=RegExp.prototype.exec,$O=hE,Pce=Or("".charAt),kce=Or("".indexOf),Mce=Or("".replace),qO=Or("".slice),eD=(ZO=/b*/g,ba(hE,jF=/a/,"a"),ba(hE,ZO,"a"),jF.lastIndex!==0||ZO.lastIndex!==0),HF=MF.BROKEN_CARET,tD=/()??/.exec("")[1]!==void 0;(eD||tD||HF||Oce||Rce)&&($O=function(e){var t,n,r,i,a,o,s,u=this,f=Ice(u),m=so(e),M=f.raw;if(M)return M.lastIndex=u.lastIndex,t=ba($O,M,m),u.lastIndex=M.lastIndex,t;var K=f.groups,U=HF&&u.sticky,re=ba(kF,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=ba(hE,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&&ba(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=UF(null),a=0;a<K.length;a++)o[(s=K[a])[0]]=i[s[1]];return i});var Ev=$O;Dc({target:"RegExp",proto:!0,forced:/./.exec!==Ev},{exec:Ev});var fE=Array.isArray||function(e){return Cc(e)=="Array"},WF=function(){},Nce=[],zF=fv("Reflect","construct"),nD=/^\s*(?:class|function)\b/,Fce=Or(nD.exec),Bce=!nD.exec(WF),_v=function(e){if(!$a(e))return!1;try{return zF(WF,Nce,e),!0}catch(t){return!1}},rD=!zF||ya(function(){var e;return _v(_v.call)||!_v(Object)||!_v(function(){e=!0})||e})?function(e){if(!$a(e))return!1;switch(YO(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Bce||!!Fce(nD,jO(e))}:_v,GF=function(e,t,n){var r=NO(t);r in e?mv.f(e,r,wO(0,n)):e[r]=n},jce=Os("species"),iD=function(e){return OO>=51||!ya(function(){var t=[];return(t.constructor={})[jce]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Uce=Or([].slice),Hce=iD("slice"),Wce=Os("species"),aD=xr.Array,zce=Math.max;function Zs(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 KF(e){var t=e.selection;if(t==null)return!1;var n=Zs(Ee.nodes(e,{match:function(a){return Ge.checkNodeType(a,"table-cell")}}),1)[0];if(n){var r=Zs(n,2)[1],i=Ee.start(e,r);if(yr.equals(t.anchor,i))return!0}return!1}function VF(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],M=0;if(m)return m.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&M>=u.length&&(u=void 0),{value:u&&u[M++],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}Dc({target:"Array",proto:!0,forced:!Hce},{slice:function(e,t){var n,r,i,a=hv(this),o=lE(a),s=yv(e,o),u=yv(t===void 0?o:t,o);if(fE(a)&&(n=a.constructor,(rD(n)&&(n===aD||fE(n.prototype))||Cs(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&&GF(r,i,a[s]);return r.length=i,r}});var YF=Or(Or.bind),Gce=Os("species"),XF=xr.Array,Kce=function(e,t){return new(function(n){var r;return fE(n)&&(r=n.constructor,(rD(r)&&(r===XF||fE(r.prototype))||Cs(r)&&(r=r[Gce])===null)&&(r=void 0)),r===void 0?XF:r}(e))(t===0?0:t)},JF=Or([].push),Rc=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,M){for(var K,U,re=MO(u),$=dF(re),ee=function(_e,ke){return yF(_e),ke===void 0?_e:YF?YF(_e,ke):function(){return _e.apply(ke,arguments)}}(f,m),te=lE($),J=0,he=M||Kce,me=t?he(u,te):n||o?he(u,0):void 0;te>J;J++)if((s||J in $)&&(U=ee(K=$[J],J,re),e))if(t)me[J]=U;else if(U)switch(e){case 3:return!0;case 5:return K;case 6:return J;case 2:JF(me,K)}else switch(e){case 4:return!1;case 7:JF(me,K)}return a?-1:r||i?i:me}},pE={forEach:Rc(0),map:Rc(1),filter:Rc(2),some:Rc(3),every:Rc(4),find:Rc(5),findIndex:Rc(6),filterReject:Rc(7)},Vce=pE.map;Dc({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 mE(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function QF(e){return mE(e).every(function(t){return!!t.isHeader})}VO||vv(Object.prototype,"toString",Yce,{unsafe:!0});var Xce=GO.PROPER,oD=RegExp.prototype,ZF=oD.toString,Jce=Or(kF),Qce=ya(function(){return ZF.call({source:"a",flags:"b"})!="/a/b"}),Zce=Xce&&ZF.name!="toString";(Qce||Zce)&&vv(RegExp.prototype,"toString",function(){var e=Ds(this),t=so(e.source),n=e.flags;return"/"+t+"/"+so(n===void 0&&hF(oD,e)&&!("flags"in oD)?Jce(e):n)},{unsafe:!0});var sD=Os("unscopables"),lD=Array.prototype;lD[sD]==null&&mv.f(lD,sD,{configurable:!0,value:UF(null)});var $ce=pE.find,$F=!0;"find"in[]&&Array(1).find(function(){$F=!1}),Dc({target:"Array",proto:!0,forced:$F},{find:function(e){return $ce(this,e,arguments.length>1?arguments[1]:void 0)}}),lD[sD].find=!0;var uD=Function.prototype,qF=uD.apply,qce=uD.bind,eB=uD.call,tB=typeof Reflect=="object"&&Reflect.apply||(qce?eB.bind(qF):function(){return eB.apply(qF,arguments)}),ede=Os("species"),cD=RegExp.prototype,nB=function(e,t,n,r){var i=Os(e),a=!ya(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),o=a&&!ya(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,M,K,U){var re=Or(f),$=m.exec;return $===Ev||$===cD.exec?a&&!U?{done:!0,value:s(m,M,K)}:{done:!0,value:re(M,m,K)}:{done:!1}});vv(String.prototype,e,u[0]),vv(cD,i,u[1])}r&&op(cD[i],"sham",!0)},tde=Os("match"),nde=xr.TypeError,rde=Os("species"),ide=Or("".charAt),rB=Or("".charCodeAt),ade=Or("".slice),iB=function(e){return function(t,n){var r,i,a=so(Ac(t)),o=sE(n),s=a.length;return o<0||o>=s?e?"":void 0:(r=rB(a,o))<55296||r>56319||o+1===s||(i=rB(a,o+1))<56320||i>57343?e?ide(a,o):r:e?ade(a,o,o+2):i-56320+(r-55296<<10)+65536}},ode=(iB(!1),iB(!0)),aB=function(e,t,n){return t+(n?ode(e,t).length:1)},sde=xr.Array,lde=Math.max,oB=function(e,t,n){for(var r=lE(e),i=yv(t,r),a=yv(n===void 0?r:n,r),o=sde(lde(a-i,0)),s=0;i<a;i++,s++)GF(o,s,e[i]);return o.length=s,o},ude=xr.TypeError,dD=function(e,t){var n=e.exec;if($a(n)){var r=ba(n,e,t);return r!==null&&Ds(r),r}if(Cc(e)==="RegExp")return ba(Ev,e,t);throw ude("RegExp#exec called on incompatible receiver")},lp=MF.UNSUPPORTED_Y,cde=Math.min,sB=[].push,dde=Or(/./.exec),up=Or(sB),xv=Or("".slice);nB("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=so(Ac(this)),f=a===void 0?4294967295:a>>>0;if(f===0)return[];if(i===void 0)return[u];if(!Cs(o=i)||!((s=o[tde])!==void 0?s:Cc(o)=="RegExp"))return ba(t,u,i,f);for(var m,M,K,U=[],re=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),$=0,ee=new RegExp(i.source,re+"g");(m=ba(Ev,ee,u))&&!((M=ee.lastIndex)>$&&(up(U,xv(u,$,m.index)),m.length>1&&m.index<u.length&&tB(sB,U,oB(m,1)),K=m[0].length,$=M,U.length>=f));)ee.lastIndex===m.index&&ee.lastIndex++;return $===u.length?!K&&dde(ee,"")||up(U,""):up(U,xv(u,$)),U.length>f?oB(U,0,f):U}:"0".split(void 0,0).length?function(i,a){return i===void 0&&a===0?[]:ba(t,this,i,a)}:t,[function(i,a){var o=Ac(this),s=i==null?void 0:LO(i,e);return s?ba(s,i,o,a):ba(r,so(o),i,a)},function(i,a){var o=Ds(this),s=so(i),u=n(r,o,s,a,r!==t);if(u.done)return u.value;var f=function(me,_e){var ke,De=Ds(me).constructor;return De===void 0||(ke=Ds(De)[rde])==null?_e:function(Ke){if(rD(Ke))return Ke;throw nde(vF(Ke)+" is not a constructor")}(ke)}(o,RegExp),m=o.unicode,M=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(lp?"g":"y"),K=new f(lp?"^(?:"+o.source+")":o,M),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=lp?0:$;var te,J=dD(K,lp?xv(s,$):s);if(J===null||(te=cde(KO(K.lastIndex+(lp?$:0)),s.length))===re)$=aB(s,$,m);else{if(up(ee,xv(s,re,$)),ee.length===U)return ee;for(var he=1;he<=J.length-1;he++)if(up(ee,J[he]),ee.length===U)return ee;$=re=te}}return up(ee,xv(s,re)),ee}]},!!ya(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"}),lp);var hD=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,lB=Or("".replace),gE="["+hD+"]",hde=RegExp("^"+gE+gE+"*"),fde=RegExp(gE+gE+"*$"),fD=function(e){return function(t){var n=so(Ac(t));return 1&e&&(n=lB(n,hde,"")),2&e&&(n=lB(n,fde,"")),n}},pde={start:fD(1),end:fD(2),trim:fD(3)},mde=GO.PROPER,gde=pde.trim;function uB(e){return e.length?e[0].tagName.toLowerCase():""}Dc({target:"String",proto:!0,forced:function(e){return ya(function(){return!!hD[e]()||"\u200B\x85\u180E"[e]()!=="\u200B\x85\u180E"||mde&&hD[e].name!==e})}("trim")},{trim:function(){return gde(this)}}),Dc({global:!0},{globalThis:xr}),fs&&(Qe.fn.append=fs),yl&&(Qe.fn.on=yl),Hu&&(Qe.fn.focus=Hu),hs&&(Qe.fn.attr=hs),vl&&(Qe.fn.val=vl),Uu&&(Qe.fn.html=Uu),qh&&(Qe.fn.dataset=qh),Qh&&(Qe.fn.addClass=Qh),Zh&&(Qe.fn.removeClass=Zh),rf&&(Qe.fn.children=rf),Fy&&(Qe.fn.each=Fy),nf&&(Qe.fn.find=nf);var wv=!1,cB=0,dB=0,Tv=null,Sv=null,Cv=Qe("body");function hB(e){wv=!1,Sv=null,Tv=null,Cv.off("mousemove",fB),Cv.off("mouseup",hB)}Cv.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(),wv=!0;var n=e.clientX;cB=n;var r=t.getBoundingClientRect().width;dB=r,Cv.on("mousemove",fB),Cv.on("mouseup",hB)}});var fB=yd(function(e){if(wv&&Sv!=null&&Tv!=null){e.preventDefault();var t=e.clientX,n=dB+(t-cB);(n=Math.floor(100*n)/100)<30&&(n=30),ct.setNodes(Sv,{width:n.toString()},{at:Tv})}},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,M=f.focus,K=Ge.findPath(s,u),U=Ee.start(s,K),re=Ee.end(s,K),$=yr.compare(m,re)<=0&&yr.compare(m,U)>=0,ee=yr.compare(M,re)<=0&&yr.compare(M,U)>=0;return!!($&&ee&&st.equals(m.path.slice(0,3),M.path.slice(0,3)))}(n,e),i=e.width,a=i===void 0?"auto":i,o=nr("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)}}}},nr("table",{width:a,contentEditable:r},nr("colgroup",null,mE(e).map(function(s){var u=s.width;return nr("col",{width:u===void 0?"auto":u})})),nr("tbody",null,t)));return o}},yde={type:"table-row",renderElem:function(e,t,n){return nr("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&&mE($).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 nr("td",{colSpan:o,rowSpan:u},t);var M=nr(m?"th":"td",{colSpan:o,rowSpan:u,style:{borderRightWidth:"3px"},on:{mousemove:yd(function(K){var U=this.elm;if(U!=null){var re=U.getBoundingClientRect(),$=re.left,ee=re.width,te=re.top,J=re.height,he=K.clientX,me=K.clientY;wv||(he>$+ee-5&&he<$+ee&&me>te&&me<te+J?(U.style.cursor="col-resize",Sv=n,Tv=Ge.findPath(n,e)):wv||(U.style.cursor="auto",Sv=null,Tv=null))}},100)}},t);return M}},Ede={selector:"table",preParseHtml:function(e){var t=Qe(e);if(uB(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=pE.filter;Dc({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 M;switch(pD(m,0)){case"$":return"$";case"&":return e;case"`":return mD(t,0,n);case"'":return mD(t,o);case"<":M=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}M=r[K-1]}return M===void 0?"":M})},gD=Os("replace"),Ade=Math.max,Ode=Math.min,Dde=Or([].concat),vD=Or([].push),pB=Or("".indexOf),mB=Or("".slice),Rde="a".replace(/./,"$0")==="$0",gB=!!/./[gD]&&/./[gD]("a","$0")==="";nB("replace",function(e,t,n){var r=gB?"$":"$0";return[function(i,a){var o=Ac(this),s=i==null?void 0:LO(i,gD);return s?ba(s,i,o,a):ba(t,so(o),i,a)},function(i,a){var o=Ds(this),s=so(i);if(typeof a=="string"&&pB(a,r)===-1&&pB(a,"$<")===-1){var u=n(t,o,s,a);if(u.done)return u.value}var f=$a(a);f||(a=so(a));var m=o.global;if(m){var M=o.unicode;o.lastIndex=0}for(var K=[];;){var U=dD(o,s);if(U===null)break;if(vD(K,U),!m)break;so(U[0])===""&&(o.lastIndex=aB(s,KO(o.lastIndex),M))}for(var re,$="",ee=0,te=0;te<K.length;te++){for(var J=so((U=K[te])[0]),he=Ade(Ode(sE(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([J],me,he,s);ke!==void 0&&vD(De,ke);var Ke=so(tB(a,void 0,De))}else Ke=Cde(J,s,he,me,ke,a);he>=ee&&($+=mB(s,ee,he)+Ke,ee=he+J.length)}return $+mB(s,ee)}]},!!ya(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Rde||gB);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:uB(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 M=u[m];if(M){var K=M.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=fn("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 M=m.target;if(M!=null){var K=Qe(M).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),J=te.dataset(),he=J.x,me=J.y;he<=U&&me<=re?te.addClass("active"):te.removeClass("active")})})}}),f.on("click",function(m){m.preventDefault();var M=m.target;if(M!=null){var K=Qe(M).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 M=[],K=0;K<u;K++){var U={type:"table-cell",children:[{text:""}]};m===0&&(U.isHeader=!0),M.push(U)}f.push({type:"table-row",children:M})}return{type:"table",width:"auto",children:f}}(i,a);ct.insertNodes(t,o,{mode:"highest"})}},e}(),Mde=function(){function e(){this.title=fn("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=fn("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=Zs(Ee.nodes(t,{match:function(U){return Ge.checkNodeType(U,"table-cell")},universal:!0}),1),i=Zs(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 M=st.parent(o),K=st.next(M);ct.insertNodes(t,f,{at:K})}}},e}(),Fde=function(){function e(){this.title=fn("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=Zs(Ee.nodes(t,{match:function(u){return Ge.checkNodeType(u,"table-row")},universal:!0}),1),i=Zs(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}(),vB={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=BO("span").classList,yB=yD&&yD.constructor&&yD.constructor.prototype,Bde=yB===Object.prototype?void 0:yB,jde=pE.forEach,Ude=function(e,t){var n=[].forEach;return!!n&&ya(function(){n.call(null,function(){throw 1},1)})}(),bD=Ude?[].forEach:function(e){return jde(this,e,arguments.length>1?arguments[1]:void 0)},bB=function(e){if(e&&e.forEach!==bD)try{op(e,"forEach",bD)}catch(t){e.forEach=bD}};for(var ED in vB)vB[ED]&&bB(xr[ED]&&xr[ED].prototype);bB(Bde);var Hde=function(){function e(){this.title=fn("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=Zs(Ee.nodes(t,{match:function(f){return Ge.checkNodeType(f,"table-cell")},universal:!0}),1),i=Zs(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(M){var K=Ge.findPath(t,M);if(K.length===o.length&&aF(K.slice(-1),o.slice(-1))){var U={type:"table-cell",children:[{text:""}]};m===0&&QF(u)&&(U.isHeader=!0),ct.insertNodes(t,U,{at:K})}})})}}},e}(),Wde=function(){function e(){this.title=fn("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=Zs(Ee.nodes(t,{match:function(m){return Ge.checkNodeType(m,"table-cell")},universal:!0}),1),i=Zs(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(M){var K=Ge.findPath(t,M);K.length===o.length&&aF(K.slice(-1),o.slice(-1))&&ct.removeNodes(t,{at:K})})})}}},e}(),zde=function(){function e(){this.title=fn("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&&QF(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&&mE(i).forEach(function(a){return ct.setNodes(t,{isHeader:r},{at:Ge.findPath(t,a)})})}},e}(),Gde=function(){function e(){this.title=fn("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 Fde}},{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(!KF(u)){var m=u.selection;if(m){var M=Ee.before(u,m);if(M){var K=VF(u,M),U=VF(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 M=Ee.next(e);if(M)M[0]&&M[0].text&&(M=(f=Ee.above(e,{at:M[1]}))!==null&&f!==void 0?f:M),ct.select(e,M[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){KF(u)||r(f)},u.normalizeNode=function(f){var m=Zs(f,2),M=m[0],K=m[1];if(Ge.getNodeType(M)!=="table")return i([M,K]);if(Ge.isLastNode(u,M)){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 M=f.anchor,K=f.focus;if(st.equals(M.path.slice(0,3),K.path.slice(0,3)))if(hn.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}};Ao("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"}}),Ao("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 vE=function(){return vE=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},vE.apply(this,arguments)};function yE(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(M){M(m)})).then(o,s)}u((r=r.apply(e,t||[])).next())})}function bE(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(M){m=[6,M],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 lh(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,M){Promise.resolve(M).then(function(K){u({value:K,done:m})},f)}(o,s,(a=e[i](a)).done,a.value)})}}}var EB=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Se!="undefined"?Se:typeof self!="undefined"?self:{};function _D(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ic,EE,_E=function(e){return e&&e.Math==Math&&e},yn=_E(typeof globalThis=="object"&&globalThis)||_E(typeof window=="object"&&window)||_E(typeof self=="object"&&self)||_E(typeof EB=="object"&&EB)||function(){return this}()||Function("return this")(),hi=function(e){try{return!!e()}catch(t){return!0}},Il=!hi(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Av=Function.prototype.call,ci=Av.bind?Av.bind(Av):function(){return Av.apply(Av,arguments)},_B={}.propertyIsEnumerable,xB=Object.getOwnPropertyDescriptor,Yde={f:xB&&!_B.call({1:2},1)?function(e){var t=xB(this,e);return!!t&&t.enumerable}:_B},xE=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},wB=Function.prototype,xD=wB.bind,wD=wB.call,Xde=xD&&xD.bind(wD),cr=xD?function(e){return e&&Xde(wD,e)}:function(e){return e&&function(){return wD.apply(e,arguments)}},Jde=cr({}.toString),Qde=cr("".slice),Ll=function(e){return Qde(Jde(e),8,-1)},TD=yn.Object,Zde=cr("".split),SD=hi(function(){return!TD("z").propertyIsEnumerable(0)})?function(e){return Ll(e)=="String"?Zde(e,""):TD(e)}:TD,$de=yn.TypeError,Ov=function(e){if(e==null)throw $de("Can't call method on "+e);return e},Lc=function(e){return SD(Ov(e))},ti=function(e){return typeof e=="function"},mi=function(e){return typeof e=="object"?e!==null:ti(e)},qde=function(e){return ti(e)?e:void 0},uh=function(e,t){return arguments.length<2?qde(yn[e]):yn[e]&&yn[e][t]},Dv=cr({}.isPrototypeOf),cp=uh("navigator","userAgent")||"",TB=yn.process,SB=yn.Deno,CB=TB&&TB.versions||SB&&SB.version,AB=CB&&CB.v8;AB&&(EE=(Ic=AB.split("."))[0]>0&&Ic[0]<4?1:+(Ic[0]+Ic[1])),!EE&&cp&&(!(Ic=cp.match(/Edge\/(\d+)/))||Ic[1]>=74)&&(Ic=cp.match(/Chrome\/(\d+)/))&&(EE=+Ic[1]);var Rv=EE,CD=!!Object.getOwnPropertySymbols&&!hi(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Rv&&Rv<41}),AD=CD&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ehe=yn.Object,OD=AD?function(e){return typeof e=="symbol"}:function(e){var t=uh("Symbol");return ti(t)&&Dv(t.prototype,ehe(e))},the=yn.String,wE=function(e){try{return the(e)}catch(t){return"Object"}},nhe=yn.TypeError,Pc=function(e){if(ti(e))return e;throw nhe(wE(e)+" is not a function")},Iv=function(e,t){var n=e[t];return n==null?void 0:Pc(n)},rhe=yn.TypeError,ihe=Object.defineProperty,DD=function(e,t){try{ihe(yn,e,{value:t,configurable:!0,writable:!0})}catch(n){yn[e]=t}return t},kc=yn["__core-js_shared__"]||DD("__core-js_shared__",{}),RD=_D(function(e){(e.exports=function(t,n){return kc[t]||(kc[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),ahe=yn.Object,TE=function(e){return ahe(Ov(e))},ohe=cr({}.hasOwnProperty),Ea=Object.hasOwn||function(e,t){return ohe(TE(e),t)},she=0,lhe=Math.random(),uhe=cr(1 .toString),ID=function(e){return"Symbol("+(e===void 0?"":e)+")_"+uhe(++she+lhe,36)},Lv=RD("wks"),ch=yn.Symbol,OB=ch&&ch.for,che=AD?ch:ch&&ch.withoutSetter||ID,ia=function(e){if(!Ea(Lv,e)||!CD&&typeof Lv[e]!="string"){var t="Symbol."+e;CD&&Ea(ch,e)?Lv[e]=ch[e]:Lv[e]=AD&&OB?OB(t):che(t)}return Lv[e]},dhe=yn.TypeError,hhe=ia("toPrimitive"),LD=function(e){var t=function(n,r){if(!mi(n)||OD(n))return n;var i,a=Iv(n,hhe);if(a){if(r===void 0&&(r="default"),i=ci(a,n,r),!mi(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)&&!mi(f=ci(u,o)))return f;if(ti(u=o.valueOf)&&!mi(f=ci(u,o)))return f;if(s!=="string"&&ti(u=o.toString)&&!mi(f=ci(u,o)))return f;throw rhe("Can't convert object to primitive value")}(n,r)}(e,"string");return OD(t)?t:t+""},PD=yn.document,fhe=mi(PD)&&mi(PD.createElement),Pv=function(e){return fhe?PD.createElement(e):{}},DB=!Il&&!hi(function(){return Object.defineProperty(Pv("div"),"a",{get:function(){return 7}}).a!=7}),RB=Object.getOwnPropertyDescriptor,kD={f:Il?RB:function(e,t){if(e=Lc(e),t=LD(t),DB)try{return RB(e,t)}catch(n){}if(Ea(e,t))return xE(!ci(Yde.f,e,t),e[t])}},phe=yn.String,mhe=yn.TypeError,ka=function(e){if(mi(e))return e;throw mhe(phe(e)+" is not an object")},ghe=yn.TypeError,IB=Object.defineProperty,fu={f:Il?IB:function(e,t,n){if(ka(e),t=LD(t),ka(n),DB)try{return IB(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}},Mc=Il?function(e,t,n){return fu.f(e,t,xE(1,n))}:function(e,t,n){return e[t]=n,e},vhe=cr(Function.toString);ti(kc.inspectSource)||(kc.inspectSource=function(e){return vhe(e)});var SE,kv,CE,AE=kc.inspectSource,LB=yn.WeakMap,PB=ti(LB)&&/native code/.test(AE(LB)),kB=RD("keys"),MD=function(e){return kB[e]||(kB[e]=ID(e))},OE={},ND=yn.TypeError,yhe=yn.WeakMap;if(PB||kc.state){var dh=kc.state||(kc.state=new yhe),bhe=cr(dh.get),MB=cr(dh.has),Ehe=cr(dh.set);SE=function(e,t){if(MB(dh,e))throw new ND("Object already initialized");return t.facade=e,Ehe(dh,e,t),t},kv=function(e){return bhe(dh,e)||{}},CE=function(e){return MB(dh,e)}}else{var dp=MD("state");OE[dp]=!0,SE=function(e,t){if(Ea(e,dp))throw new ND("Object already initialized");return t.facade=e,Mc(e,dp,t),t},kv=function(e){return Ea(e,dp)?e[dp]:{}},CE=function(e){return Ea(e,dp)}}var Zo={set:SE,get:kv,has:CE,enforce:function(e){return CE(e)?kv(e):SE(e,{})},getterFor:function(e){return function(t){var n;if(!mi(t)||(n=kv(t)).type!==e)throw ND("Incompatible receiver, "+e+" required");return n}}},NB=Function.prototype,_he=Il&&Object.getOwnPropertyDescriptor,FD=Ea(NB,"name"),hp={EXISTS:FD,PROPER:FD&&function(){}.name==="something",CONFIGURABLE:FD&&(!Il||Il&&_he(NB,"name").configurable)},$o=_D(function(e){var t=hp.CONFIGURABLE,n=Zo.get,r=Zo.enforce,i=String(String).split("String");(e.exports=function(a,o,s,u){var f,m=!!u&&!!u.unsafe,M=!!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")+"]"),(!Ea(s,"name")||t&&s.name!==U)&&Mc(s,"name",U),(f=r(s)).source||(f.source=i.join(typeof U=="string"?U:""))),a!==yn?(m?!K&&a[o]&&(M=!0):delete a[o],M?a[o]=s:Mc(a,o,s)):M?a[o]=s:DD(o,s)})(Function.prototype,"toString",function(){return ti(this)&&n(this).source||AE(this)})}),xhe=Math.ceil,whe=Math.floor,DE=function(e){var t=+e;return t!=t||t===0?0:(t>0?whe:xhe)(t)},The=Math.max,She=Math.min,Mv=function(e,t){var n=DE(e);return n<0?The(n+t,0):She(n,t)},Che=Math.min,FB=function(e){return e>0?Che(DE(e),9007199254740991):0},Nv=function(e){return FB(e.length)},BB=function(e){return function(t,n,r){var i,a=Lc(t),o=Nv(a),s=Mv(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}},jB={includes:BB(!0),indexOf:BB(!1)},Ahe=jB.indexOf,UB=cr([].push),HB=function(e,t){var n,r=Lc(e),i=0,a=[];for(n in r)!Ea(OE,n)&&Ea(r,n)&&UB(a,n);for(;t.length>i;)Ea(r,n=t[i++])&&(~Ahe(a,n)||UB(a,n));return a},RE=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ohe=RE.concat("length","prototype"),IE={f:Object.getOwnPropertyNames||function(e){return HB(e,Ohe)}},Dhe={f:Object.getOwnPropertySymbols},Rhe=cr([].concat),Ihe=uh("Reflect","ownKeys")||function(e){var t=IE.f(ka(e)),n=Dhe.f;return n?Rhe(t,n(e)):t},Lhe=function(e,t){for(var n=Ihe(t),r=fu.f,i=kD.f,a=0;a<n.length;a++){var o=n[a];Ea(e,o)||r(e,o,i(t,o))}},Phe=/#|\.prototype\./,Fv=function(e,t){var n=Mhe[khe(e)];return n==Fhe||n!=Nhe&&(ti(t)?hi(t):!!t)},khe=Fv.normalize=function(e){return String(e).replace(Phe,".").toLowerCase()},Mhe=Fv.data={},Nhe=Fv.NATIVE="N",Fhe=Fv.POLYFILL="P",LE=Fv,Bhe=kD.f,Io=function(e,t){var n,r,i,a,o,s=e.target,u=e.global,f=e.stat;if(n=u?yn:f?yn[s]||DD(s,{}):(yn[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Bhe(n,r))&&o.value:n[r],!LE(u?r:s+(f?".":"#")+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Lhe(a,i)}(e.sham||i&&i.sham)&&Mc(a,"sham",!0),$o(n,r,a,e)}},WB={};WB[ia("toStringTag")]="z";var BD=String(WB)==="[object z]",jhe=ia("toStringTag"),Uhe=yn.Object,Hhe=Ll(function(){return arguments}())=="Arguments",PE=BD?Ll: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?Ll(t):(r=Ll(t))=="Object"&&ti(t.callee)?"Arguments":r},Whe=yn.String,Rs=function(e){if(PE(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`,zB=cr("".replace),kE="["+jD+"]",zhe=RegExp("^"+kE+kE+"*"),Ghe=RegExp(kE+kE+"*$"),UD=function(e){return function(t){var n=Rs(Ov(t));return 1&e&&(n=zB(n,zhe,"")),2&e&&(n=zB(n,Ghe,"")),n}},Khe={start:UD(1),end:UD(2),trim:UD(3)},Vhe=hp.PROPER,Yhe=Khe.trim;function GB(e){return e.length?e[0].tagName.toLowerCase():""}function KB(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}Io({target:"String",proto:!0,forced:hi(function(){return!!jD.trim()||"\u200B\x85\u180E".trim()!=="\u200B\x85\u180E"||Vhe&&jD.trim.name!=="trim"})},{trim:function(){return Yhe(this)}}),Io({global:!0},{globalThis:yn}),fs&&(Qe.fn.append=fs),yl&&(Qe.fn.on=yl),Hu&&(Qe.fn.focus=Hu),hs&&(Qe.fn.attr=hs),vl&&(Qe.fn.val=vl),Uu&&(Qe.fn.html=Uu),tf&&(Qe.fn.parent=tf),$h&&(Qe.fn.hasClass=$h),of&&(Qe.fn.empty=of);var ME,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,M=i.height,K=M===void 0?"auto":M,U=Ge.isNodeSelected(n,e);if(o.trim().indexOf("<iframe ")===0)r=nr("div",{className:"w-e-textarea-video-container","data-selected":U?"true":"",innerHTML:KB(o,m,K)});else{var re=nr("video",{poster:u,controls:!0},nr("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=nr("div",{className:"w-e-textarea-video-container","data-selected":U?"true":""},re)}return sf("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,M=`<div data-w-e-type="video" data-w-e-is-void>
`;return i.trim().indexOf("<iframe ")===0?M+=KB(i,u,m):M+='<video poster="'+o+'" controls="true" width="'+u+'" height="'+m+'"><source src="'+i+'" type="video/mp4"/></video>',M+`
</div>`}},Qhe=Object.keys||function(e){return HB(e,RE)},Zhe=Il?Object.defineProperties:function(e,t){ka(e);for(var n,r=Lc(t),i=Qhe(t),a=i.length,o=0;a>o;)fu.f(e,n=i[o++],r[n]);return e},HD=uh("document","documentElement"),VB=MD("IE_PROTO"),WD=function(){},YB=function(e){return"<script>"+e+"</script>"},XB=function(e){e.write(YB("")),e.close();var t=e.parentWindow.Object;return e=null,t},NE=function(){try{ME=new ActiveXObject("htmlfile")}catch(r){}var e,t;NE=typeof document!="undefined"?document.domain&&ME?XB(ME):((t=Pv("iframe")).style.display="none",HD.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(YB("document.F=Object")),e.close(),e.F):XB(ME);for(var n=RE.length;n--;)delete NE.prototype[RE[n]];return NE()};OE[VB]=!0;var zD=Object.create||function(e,t){var n;return e!==null?(WD.prototype=ka(e),n=new WD,WD.prototype=null,n[VB]=e):n=NE(),t===void 0?n:Zhe(n,t)},GD=ia("unscopables"),KD=Array.prototype;KD[GD]==null&&fu.f(KD,GD,{configurable:!0,value:zD(null)});var Bv=function(e){KD[GD][e]=!0},$he=jB.includes;Io({target:"Array",proto:!0},{includes:function(e){return $he(this,e,arguments.length>1?arguments[1]:void 0)}}),Bv("includes");var qhe={selector:"iframe,video,p",preParseHtml:function(e){var t=Qe(e),n=t;if(GB(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=GB(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]}},JB=cr(cr.bind),jv=function(e,t){return Pc(e),t===void 0?e:JB?JB(e,t):function(){return e.apply(t,arguments)}},FE=Array.isArray||function(e){return Ll(e)=="Array"},QB=function(){},efe=[],ZB=uh("Reflect","construct"),VD=/^\s*(?:class|function)\b/,tfe=cr(VD.exec),nfe=!VD.exec(QB),Uv=function(e){if(!ti(e))return!1;try{return ZB(QB,efe,e),!0}catch(t){return!1}},YD=!ZB||hi(function(){var e;return Uv(Uv.call)||!Uv(Object)||!Uv(function(){e=!0})||e})?function(e){if(!ti(e))return!1;switch(PE(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return nfe||!!tfe(VD,AE(e))}:Uv,rfe=ia("species"),$B=yn.Array,ife=function(e,t){return new(function(n){var r;return FE(n)&&(r=n.constructor,(YD(r)&&(r===$B||FE(r.prototype))||mi(r)&&(r=r[rfe])===null)&&(r=void 0)),r===void 0?$B:r}(e))(t===0?0:t)},qB=cr([].push),Nc=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,M){for(var K,U,re=TE(u),$=SD(re),ee=jv(f,m),te=Nv($),J=0,he=M||ife,me=t?he(u,te):n||o?he(u,0):void 0;te>J;J++)if((s||J in $)&&(U=ee(K=$[J],J,re),e))if(t)me[J]=U;else if(U)switch(e){case 3:return!0;case 5:return K;case 6:return J;case 2:qB(me,K)}else switch(e){case 4:return!1;case 7:qB(me,K)}return a?-1:r||i?i:me}},XD={forEach:Nc(0),map:Nc(1),filter:Nc(2),some:Nc(3),every:Nc(4),find:Nc(5),findIndex:Nc(6),filterReject:Nc(7)},afe=XD.find,ej=!0;"find"in[]&&Array(1).find(function(){ej=!1}),Io({target:"Array",proto:!0,forced:ej},{find:function(e){return afe(this,e,arguments.length>1?arguments[1]:void 0)}}),Bv("find");var ofe=BD?{}.toString:function(){return"[object "+PE(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:""}]}}BD||$o(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=ka(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=yn.RegExp,ZD=hi(function(){var e=QD("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),lfe=ZD||hi(function(){return!QD("a","y").sticky}),ufe={BROKEN_CARET:ZD||hi(function(){var e=QD("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:lfe,UNSUPPORTED_Y:ZD},cfe=yn.RegExp,dfe=hi(function(){var e=cfe(".","s");return!(e.dotAll&&e.exec(`
`)&&e.flags==="s")}),hfe=yn.RegExp,ffe=hi(function(){var e=hfe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),pfe=Zo.get,mfe=RD("native-string-replace",String.prototype.replace),BE=RegExp.prototype.exec,$D=BE,gfe=cr("".charAt),vfe=cr("".indexOf),yfe=cr("".replace),qD=cr("".slice),eR=(JD=/b*/g,ci(BE,nj=/a/,"a"),ci(BE,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=Rs(e),M=f.raw;if(M)return M.lastIndex=u.lastIndex,t=ci($D,M,m),u.lastIndex=M.lastIndex,t;var K=f.groups,U=ij&&u.sticky,re=ci(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=ci(BE,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&&ci(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 jE=$D;Io({target:"RegExp",proto:!0,forced:/./.exec!==jE},{exec:jE});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=(ia("species"),RegExp.prototype),Efe=cr("".charAt),uj=cr("".charCodeAt),_fe=cr("".slice),cj=function(e){return function(t,n){var r,i,a=Rs(Ov(t)),o=DE(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=cr("".charAt),Sfe=cr("".replace),iR=cr("".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=TE(i),u=Cfe),Sfe(a,u,function(f,m){var M;switch(rR(m,0)){case"$":return"$";case"&":return e;case"`":return iR(t,0,n);case"'":return iR(t,o);case"<":M=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}M=r[K-1]}return M===void 0?"":M})},Dfe=yn.TypeError,Rfe=function(e,t){var n=e.exec;if(ti(n)){var r=ci(n,e,t);return r!==null&&ka(r),r}if(Ll(e)==="RegExp")return ci(jE,e,t);throw Dfe("RegExp#exec called on incompatible receiver")},aR=ia("replace"),Ife=Math.max,Lfe=Math.min,Pfe=cr([].concat),oR=cr([].push),hj=cr("".indexOf),fj=cr("".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=ia(e),a=!hi(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),o=a&&!hi(function(){var f=!1,m=/a/;return m.exec=function(){return f=!0,null},m[i](""),!f});if(!a||!o||n){var s=cr(/./[i]),u=function(f,m,M){var K=pj?"$":"$0";return[function(U,re){var $=Ov(this),ee=U==null?void 0:Iv(U,aR);return ee?ci(ee,U,$,re):ci(m,Rs($),U,re)},function(U,re){var $=ka(this),ee=Rs(U);if(typeof re=="string"&&hj(re,K)===-1&&hj(re,"$<")===-1){var te=M(m,$,ee,re);if(te.done)return te.value}var J=ti(re);J||(re=Rs(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;Rs(ke[0])===""&&($.lastIndex=wfe(ee,FB($.lastIndex),me))}for(var De,Ke="",rt=0,xt=0;xt<_e.length;xt++){for(var Lt=Rs((ke=_e[xt])[0]),wt=Ife(Lfe(DE(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(J){var Ht=Pfe([Lt],Yt,wt,ee);jt!==void 0&&oR(Ht,jt);var bn=Rs(sj(re,void 0,Ht))}else bn=Ofe(Lt,ee,wt,Yt,jt,re);wt>=rt&&(Ke+=fj(ee,rt,wt)+bn,rt=wt+Lt.length)}return Ke+fj(ee,rt)}]}(0,""[e],function(f,m,M,K,U){var re=cr(f),$=m.exec;return $===jE||$===lj.exec?a&&!U?{done:!0,value:s(m,M,K)}:{done:!0,value:re(M,m,K)}:{done:!1}});$o(String.prototype,e,u[0]),$o(lj,i,u[1])}}("replace",0,!!hi(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!kfe||pj);var UE=yn.Promise,HE=function(e,t,n){for(var r in t)$o(e,r,t[r],n);return e},Mfe=yn.String,Nfe=yn.TypeError,fp=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=cr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(r,i){return ka(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),Ffe=fu.f,gj=ia("toStringTag"),WE=function(e,t,n){e&&!Ea(e=n?e:e.prototype,gj)&&Ffe(e,gj,{configurable:!0,value:t})},vj=ia("species"),Bfe=yn.TypeError,sR=function(e,t){if(Dv(t,e))return e;throw Bfe("Incorrect invocation")},pp={},jfe=ia("iterator"),Ufe=Array.prototype,Hfe=ia("iterator"),yj=function(e){if(e!=null)return Iv(e,Hfe)||Iv(e,"@@iterator")||pp[PE(e)]},Wfe=yn.TypeError,bj=function(e,t,n){var r,i;ka(e);try{if(!(r=Iv(e,"return"))){if(t==="throw")throw n;return n}r=ci(r,e)}catch(a){i=!0,r=a}if(t==="throw")throw n;if(i)throw r;return ka(r),n},zfe=yn.TypeError,zE=function(e,t){this.stopped=e,this.result=t},Ej=zE.prototype,GE=function(e,t,n){var r,i,a,o,s,u,f,m,M=n&&n.that,K=!(!n||!n.AS_ENTRIES),U=!(!n||!n.IS_ITERATOR),re=!(!n||!n.INTERRUPTED),$=jv(t,M),ee=function(J){return r&&bj(r,"normal",J),new zE(!0,J)},te=function(J){return K?(ka(J),re?$(J[0],J[1],ee):$(J[0],J[1])):re?$(J,ee):$(J)};if(U)r=e;else{if(!(i=yj(e)))throw zfe(wE(e)+" is not iterable");if((m=i)!==void 0&&(pp.Array===m||Ufe[jfe]===m)){for(a=0,o=Nv(e);o>a;a++)if((s=te(e[a]))&&Dv(Ej,s))return s;return new zE(!1)}r=function(J,he){var me=arguments.length<2?yj(J):he;if(Pc(me))return ka(ci(me,J));throw Wfe(wE(J)+" is not iterable")}(e,i)}for(u=r.next;!(f=ci(u,r)).done;){try{s=te(f.value)}catch(J){bj(r,"throw",J)}if(typeof s=="object"&&s&&Dv(Ej,s))return s}return new zE(!1)},_j=ia("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 Hv,mp,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=yn.TypeError,Vfe=ia("species"),Cj=cr([].slice),Aj=/(?:ipad|iphone|ipod).*applewebkit/i.test(cp),Fc=Ll(yn.process)=="process",uR=yn.setImmediate,cR=yn.clearImmediate,Yfe=yn.process,dR=yn.Dispatch,Xfe=yn.Function,Oj=yn.MessageChannel,Jfe=yn.String,hR=0,Wv={};try{Hv=yn.location}catch(e){}var fR=function(e){if(Ea(Wv,e)){var t=Wv[e];delete Wv[e],t()}},pR=function(e){return function(){fR(e)}},Dj=function(e){fR(e.data)},Rj=function(e){yn.postMessage(Jfe(e),Hv.protocol+"//"+Hv.host)};uR&&cR||(uR=function(e){var t=Cj(arguments,1);return Wv[++hR]=function(){sj(ti(e)?e:Xfe(e),void 0,t)},mp(hR),hR},cR=function(e){delete Wv[e]},Fc?mp=function(e){Yfe.nextTick(pR(e))}:dR&&dR.now?mp=function(e){dR.now(pR(e))}:Oj&&!Aj?(lR=(Tj=new Oj).port2,Tj.port1.onmessage=Dj,mp=jv(lR.postMessage,lR)):yn.addEventListener&&ti(yn.postMessage)&&!yn.importScripts&&Hv&&Hv.protocol!=="file:"&&!hi(Rj)?(mp=Rj,yn.addEventListener("message",Dj,!1)):mp="onreadystatechange"in Pv("script")?function(e){HD.appendChild(Pv("script")).onreadystatechange=function(){HD.removeChild(this),fR(e)}}:function(e){setTimeout(pR(e),0)});var zv,hh,Gv,gp,mR,gR,vR,Ij,Lj={set:uR,clear:cR},Qfe=/ipad|iphone|ipod/i.test(cp)&&yn.Pebble!==void 0,Zfe=/web0s(?!.*chrome)/i.test(cp),$fe=kD.f,yR=Lj.set,Pj=yn.MutationObserver||yn.WebKitMutationObserver,kj=yn.document,Mj=yn.process,KE=yn.Promise,Nj=$fe(yn,"queueMicrotask"),Fj=Nj&&Nj.value;Fj||(zv=function(){var e,t;for(Fc&&(e=Mj.domain)&&e.exit();hh;){t=hh.fn,hh=hh.next;try{t()}catch(n){throw hh?gp():Gv=void 0,n}}Gv=void 0,e&&e.enter()},Aj||Fc||Zfe||!Pj||!kj?!Qfe&&KE&&KE.resolve?((vR=KE.resolve(void 0)).constructor=KE,Ij=jv(vR.then,vR),gp=function(){Ij(zv)}):Fc?gp=function(){Mj.nextTick(zv)}:(yR=jv(yR,yn),gp=function(){yR(zv)}):(mR=!0,gR=kj.createTextNode(""),new Pj(zv).observe(gR,{characterData:!0}),gp=function(){gR.data=mR=!mR}));var bR,Bj,jj,Uj,Hj=Fj||function(e){var t={fn:e,next:void 0};Gv&&(Gv.next=t),hh||(hh=t,gp()),Gv=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=Pc(t),this.reject=Pc(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=ia("species"),pu="Promise",zj=Zo.getterFor(pu),npe=Zo.set,rpe=Zo.getterFor(pu),fh=UE&&UE.prototype,Pl=UE,Kv=fh,Gj=yn.TypeError,xR=yn.document,wR=yn.process,vp=ER.f,ipe=vp,ape=!!(xR&&xR.createEvent&&yn.dispatchEvent),Kj=ti(yn.PromiseRejectionEvent),Vj=!1,Vv=LE(pu,function(){var e=AE(Pl),t=e!==String(Pl);if(!t&&Rv===66)return!0;if(Rv>=51&&/native code/.test(e))return!1;var n=new Pl(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=Vv||!Sj(function(e){Pl.all(e).catch(function(){})}),Yj=function(e){var t;return!(!mi(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,M=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))?ci(s,o,M,K):M(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),yn.dispatchEvent(r)):r={promise:t,reason:n},!Kj&&(i=yn["on"+e])?i(r):e==="unhandledrejection"&&function(a,o){var s=yn.console;s&&s.error&&(arguments.length==1?s.error(a):s.error(a,o))}("Unhandled promise rejection",n)},spe=function(e){ci(Wj,yn,function(){var t,n=e.facade,r=e.value;if(Jj(e)&&(t=_R(function(){Fc?wR.emit("unhandledRejection",r,n):Xj("unhandledrejection",n,r)}),e.rejection=Fc||Jj(e)?2:1,t.error))throw t.value})},Jj=function(e){return e.rejection!==1&&!e.parent},lpe=function(e){ci(Wj,yn,function(){var t=e.facade;Fc?wR.emit("rejectionHandled",t):Xj("rejectionhandled",t,e.value)})},yp=function(e,t,n){return function(r){e(t,r,n)}},bp=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{ci(r,t,yp(SR,i,e),yp(bp,i,e))}catch(a){bp(i,a,e)}}):(e.value=t,e.state=1,TR(e,!1))}catch(i){bp({done:!1},i,e)}}};if(Vv&&(Kv=(Pl=function(e){sR(this,Kv),Pc(e),ci(bR,this);var t=zj(this);try{e(yp(SR,t),yp(bp,t))}catch(n){bp(t,n)}}).prototype,(bR=function(e){npe(this,{type:pu,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=HE(Kv,{then:function(e,t){var n=rpe(this),r=n.reactions,i=vp(function(a,o){var s,u=ka(a).constructor;return u===void 0||(s=ka(u)[Vfe])==null?o:function(f){if(YD(f))return f;throw Kfe(wE(f)+" is not a constructor")}(s)}(this,Pl));return i.ok=!ti(e)||e,i.fail=ti(t)&&t,i.domain=Fc?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)}}),Bj=function(){var e=new bR,t=zj(e);this.promise=e,this.resolve=yp(SR,t),this.reject=yp(bp,t)},ER.f=vp=function(e){return e===Pl||e===jj?new Bj(e):ipe(e)},ti(UE)&&fh!==Object.prototype)){Uj=fh.then,Vj||($o(fh,"then",function(e,t){var n=this;return new Pl(function(r,i){ci(Uj,n,r,i)}).then(e,t)},{unsafe:!0}),$o(fh,"catch",Kv.catch,{unsafe:!0}));try{delete fh.constructor}catch(e){}fp&&fp(fh,Kv)}function Yv(e,t,n){return n===void 0&&(n=""),yE(this,void 0,void 0,function(){var r,i,a,o,s,u,f;return bE(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")}Io({global:!0,wrap:!0,forced:Vv},{Promise:Pl}),WE(Pl,pu,!1),function(e){var t=uh("Promise"),n=fu.f;Il&&t&&!t[vj]&&n(t,vj,{configurable:!0,get:function(){return this}})}(),jj=uh(pu),Io({target:pu,stat:!0,forced:Vv},{reject:function(e){var t=vp(this);return ci(t.reject,void 0,e),t.promise}}),Io({target:pu,stat:!0,forced:Vv},{resolve:function(e){return function(t,n){if(ka(t),mi(n)&&n.constructor===t)return n;var r=ER.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),Io({target:pu,stat:!0,forced:ope},{all:function(e){var t=this,n=vp(t),r=n.resolve,i=n.reject,a=_R(function(){var o=Pc(t.resolve),s=[],u=0,f=1;GE(e,function(m){var M=u++,K=!1;f++,ci(o,t,m).then(function(U){K||(K=!0,s[M]=U,--f||r(s))},i)}),--f||r(s)});return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=vp(t),r=n.reject,i=_R(function(){var a=Pc(t.resolve);GE(e,function(o){ci(a,t,o).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var upe=function(){function e(){this.title=fn("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=lh(Ko(fn("videoModule.videoSrc"),i,fn("videoModule.videoSrcPlaceHolder")),2),u=s[0],f=s[1],m=lh(Ko(fn("videoModule.videoPoster"),a,fn("videoModule.videoPosterPlaceHolder")),2),M=m[0],K=m[1],U=Qe(f),re=Qe(K),$=lh(kf(o,fn("videoModule.ok")),1)[0];if(this.$content==null){var ee=Qe("<div></div>");ee.on("click","#"+o,function(J){return yE(n,void 0,void 0,function(){var he,me;return bE(this,function(_e){switch(_e.label){case 0:return J.preventDefault(),he=ee.find("#"+i).val().trim(),me=ee.find("#"+a).val().trim(),[4,Yv(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(M),te.append($),U.val(""),re.val(""),setTimeout(function(){U.focus()}),te[0]},e}(),cpe=cr([].join),dpe=SD!=Object,hpe=function(e,t){var n=[].join;return!!n&&hi(function(){n.call(null,",",1)})}();Io({target:"Array",proto:!0,forced:dpe||!hpe},{join:function(e){return cpe(Lc(this),e===void 0?",":e)}});var ph,Qj,Zj,fpe=!hi(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),$j=MD("IE_PROTO"),AR=yn.Object,ppe=AR.prototype,VE=fpe?AR.getPrototypeOf:function(e){var t=TE(e);if(Ea(t,$j))return t[$j];var n=t.constructor;return ti(n)&&t instanceof n?n.prototype:t instanceof AR?ppe:null},OR=ia("iterator"),qj=!1;[].keys&&("next"in(Zj=[].keys())?(Qj=VE(VE(Zj)))!==Object.prototype&&(ph=Qj):qj=!0);var mpe=ph==null||hi(function(){var e={};return ph[OR].call(e)!==e});mpe&&(ph={}),ti(ph[OR])||$o(ph,OR,function(){return this});var DR={IteratorPrototype:ph,BUGGY_SAFARI_ITERATORS:qj},gpe=DR.IteratorPrototype,vpe=function(){return this},ype=hp.PROPER,bpe=hp.CONFIGURABLE,eU=DR.IteratorPrototype,YE=DR.BUGGY_SAFARI_ITERATORS,Xv=ia("iterator"),Epe=function(){return this},tU=function(e,t,n,r,i,a,o){!function(te,J,he,me){var _e=J+" Iterator";te.prototype=zD(gpe,{next:xE(1,he)}),WE(te,_e,!1),pp[_e]=vpe}(n,t,r);var s,u,f,m=function(te){if(te===i&&$)return $;if(!YE&&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)}},M=t+" Iterator",K=!1,U=e.prototype,re=U[Xv]||U["@@iterator"]||i&&U[i],$=!YE&&re||m(i),ee=t=="Array"&&U.entries||re;if(ee&&(s=VE(ee.call(new e)))!==Object.prototype&&s.next&&(VE(s)!==eU&&(fp?fp(s,eU):ti(s[Xv])||$o(s,Xv,Epe)),WE(s,M,!0)),ype&&i=="values"&&re&&re.name!=="values"&&(bpe?Mc(U,"name","values"):(K=!0,$=function(){return ci(re,this)})),i)if(u={values:m("values"),keys:a?$:m("keys"),entries:m("entries")},o)for(f in u)(YE||K||!(f in U))&&$o(U,f,u[f]);else Io({target:t,proto:!0,forced:YE||K},u);return U[Xv]!==$&&$o(U,Xv,$,{name:i}),pp[t]=$,u},_pe=Zo.set,xpe=Zo.getterFor("Array Iterator"),Jv=tU(Array,"Array",function(e,t){_pe(this,{type:"Array Iterator",target:Lc(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");pp.Arguments=pp.Array,Bv("keys"),Bv("values"),Bv("entries");var wpe=dj.charAt,Tpe=Zo.set,Spe=Zo.getterFor("String Iterator");tU(String,"String",function(e){Tpe(this,{type:"String Iterator",string:Rs(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?fu.f(e,r,xE(0,n)):e[r]=n},Cpe=yn.Array,Ape=Math.max,rU=IE.f,iU=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ope={f:function(e){return iU&&Ll(e)=="Window"?function(t){try{return rU(t)}catch(n){return function(r,i,a){for(var o=Nv(r),s=Mv(void 0,o),u=Mv(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(Lc(e))}},aU=hi(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),XE=Object.isExtensible,mh=hi(function(){XE(1)})||aU?function(e){return!!mi(e)&&(!aU||Ll(e)!="ArrayBuffer")&&(!XE||XE(e))}:XE,Dpe=!hi(function(){return Object.isExtensible(Object.preventExtensions({}))}),RR=_D(function(e){var t=fu.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=IE.f,u=cr([].splice),f={};f[r]=1,s(f).length&&(IE.f=function(m){for(var M=s(m),K=0,U=M.length;K<U;K++)if(M[K]===r){u(M,K,1);break}return M},Io({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ope.f}))},fastKey:function(s,u){if(!mi(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Ea(s,r)){if(!mh(s))return"F";if(!u)return"E";a(s)}return s[r].objectID},getWeakData:function(s,u){if(!Ea(s,r)){if(!mh(s))return!0;if(!u)return!1;a(s)}return s[r].weakData},onFreeze:function(s){return Dpe&&n&&mh(s)&&!Ea(s,r)&&a(s),s}};OE[r]=!0}),JE=RR.getWeakData,Rpe=Zo.set,Ipe=Zo.getterFor,Lpe=XD.find,Ppe=XD.findIndex,kpe=cr([].splice),Mpe=0,QE=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 Qv,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&&GE(f,u[r],{that:u,AS_ENTRIES:n})}),a=i.prototype,o=Ipe(t),s=function(u,f,m){var M=o(u),K=JE(ka(f),!0);return K===!0?QE(M).set(f,m):K[M.id]=m,u};return HE(a,{delete:function(u){var f=o(this);if(!mi(u))return!1;var m=JE(u);return m===!0?QE(f).delete(u):m&&Ea(m,f.id)&&delete m[f.id]},has:function(u){var f=o(this);if(!mi(u))return!1;var m=JE(u);return m===!0?QE(f).has(u):m&&Ea(m,f.id)}}),HE(a,n?{get:function(u){var f=o(this);if(mi(u)){var m=JE(u);return m===!0?QE(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}},ZE=Zo.enforce,Npe=!yn.ActiveXObject&&"ActiveXObject"in yn,lU=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Fpe=function(e,t,n){var r=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,a=r?"set":"add",o=yn[e],s=o&&o.prototype,u=o,f={},m=function(ee){var te=cr(s[ee]);$o(s,ee,ee=="add"?function(J){return te(this,J===0?0:J),this}:ee=="delete"?function(J){return!(i&&!mi(J))&&te(this,J===0?0:J)}:ee=="get"?function(J){return i&&!mi(J)?void 0:te(this,J===0?0:J)}:ee=="has"?function(J){return!(i&&!mi(J))&&te(this,J===0?0:J)}:function(J,he){return te(this,J===0?0:J,he),this})};if(LE(e,!ti(o)||!(i||s.forEach&&!hi(function(){new o().entries().next()}))))u=n.getConstructor(t,e,r,a),RR.enable();else if(LE(e,!0)){var M=new u,K=M[a](i?{}:-0,1)!=M,U=hi(function(){M.has(1)}),re=Sj(function(ee){new o(ee)}),$=!i&&hi(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 J=function(he,me,_e){var ke,De;return fp&&ti(ke=me.constructor)&&ke!==_e&&mi(De=ke.prototype)&&De!==_e.prototype&&fp(he,De),he}(new o,ee,u);return te!=null&&GE(te,J[a],{that:J,AS_ENTRIES:r}),J})).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,Io({global:!0,forced:u!=o},f),WE(u,e),i||n.setStrong(u,e,r),u}("WeakMap",lU,sU);if(PB&&Npe){Qv=sU.getConstructor(lU,"WeakMap",!0),RR.enable();var Zv=Fpe.prototype,uU=cr(Zv.delete),$E=cr(Zv.has),cU=cr(Zv.get),dU=cr(Zv.set);HE(Zv,{delete:function(e){if(mi(e)&&!mh(e)){var t=ZE(this);return t.frozen||(t.frozen=new Qv),uU(this,e)||t.frozen.delete(e)}return uU(this,e)},has:function(e){if(mi(e)&&!mh(e)){var t=ZE(this);return t.frozen||(t.frozen=new Qv),$E(this,e)||t.frozen.has(e)}return $E(this,e)},get:function(e){if(mi(e)&&!mh(e)){var t=ZE(this);return t.frozen||(t.frozen=new Qv),$E(this,e)?cU(this,e):t.frozen.get(e)}return cU(this,e)},set:function(e,t){if(mi(e)&&!mh(e)){var n=ZE(this);n.frozen||(n.frozen=new Qv),$E(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=Pv("span").classList,fU=LR&&LR.constructor&&LR.constructor.prototype,Bpe=fU===Object.prototype?void 0:fU,PR=ia("iterator"),pU=ia("toStringTag"),kR=Jv.values,mU=function(e,t){if(e){if(e[PR]!==kR)try{Mc(e,PR,kR)}catch(r){e[PR]=kR}if(e[pU]||Mc(e,pU,t),hU[t]){for(var n in Jv)if(e[n]!==Jv[n])try{Mc(e,n,Jv[n])}catch(r){e[n]=Jv[n]}}}};for(var MR in hU)mU(yn[MR]&&yn[MR].prototype,MR);mU(Bpe,"DOMTokenList");var jpe=hp.EXISTS,Upe=fu.f,gU=Function.prototype,Hpe=cr(gU.toString),vU=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Wpe=cr(vU.exec);Il&&!jpe&&Upe(gU,"name",{configurable:!0,get:function(){try{return Wpe(vU,Hpe(this))[1]}catch(e){return""}}});var zpe=ia("species"),Gpe=Rv>=51||!hi(function(){var e=[];return(e.constructor={})[zpe]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),Kpe=ia("species"),NR=yn.Array,Vpe=Math.max;function yU(e){return e.getMenuConfig("uploadVideo")}Io({target:"Array",proto:!0,forced:!Gpe},{slice:function(e,t){var n,r,i,a=Lc(this),o=Nv(a),s=Mv(e,o),u=Mv(t===void 0?o:t,o);if(FE(a)&&(n=a.constructor,(YD(n)&&(n===NR||FE(n.prototype))||mi(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 yE(this,void 0,void 0,function(){var n,r,i,a;return bE(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,M=f.onProgress,K=f.onFailed,U=f.customInsert,re=f.onError;return u=E3(vE(vE({},f),{onProgress:function($){s.showProgressBar($),M&&M($)},onSuccess:function($,ee){if(U)return U(ee,function(Ke,rt){return Yv(s,Ke,rt)}),void m($,ee);var te=ee.errno,J=te===void 0?1:te,he=ee.data,me=he===void 0?{}:he;if(J===0){var _e=me.url,ke=_e===void 0?"":_e,De=me.poster;Yv(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=fn("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,M){return Yv(t,m,M)});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(M,K){var U,re;yE(this,void 0,void 0,function(){var $,ee,te,J,he,me;return bE(this,function(_e){switch(_e.label){case 0:if(K==null)return[2];$=Array.prototype.slice.call(K),ee=yU(M).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(J=_e.sent()).done?[3,8]:(he=J.value,ee?[4,ee(he,function(ke,De){return Yv(M,ke,De)})]:[3,5]);case 4:return _e.sent(),[3,7];case 5:return[4,Ype(M,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]),J&&!J.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=hp.PROPER,FR=RegExp.prototype,EU=FR.toString,Qpe=cr(rj),Zpe=hi(function(){return EU.call({source:"a",flags:"b"})!="/a/b"}),$pe=Jpe&&EU.name!="toString";function BR(){return mj("w-e-insert-video")}(Zpe||$pe)&&$o(RegExp.prototype,"toString",function(){var e=ka(this),t=Rs(e.source),n=e.flags;return"/"+t+"/"+Rs(n===void 0&&Dv(FR,e)&&!("flags"in FR)?Qpe(e):n)},{unsafe:!0});var qpe=function(){function e(){this.title=fn("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=BR(),this.heightInputId=BR(),this.buttonId=BR()}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=lh(Ko(fn("videoModule.width"),r,"auto"),2),s=o[0],u=Qe(o[1]),f=lh(Ko(fn("videoModule.height"),i,"auto"),2),m=f[0],M=Qe(f[1]),K=lh(kf(a,fn("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),Ke=parseInt(ke),rt=De?De.toString():"auto",xt=Ke?Ke.toString():"auto";t.restoreSelection(),ct.setNodes(t,{width:rt,height:xt},{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,J=$.height,he=J===void 0?"auto":J;return u.val(te),M.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=lh(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}};Ao("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Ao("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 Se!="undefined"?Se:typeof self!="undefined"?self:{};function jR(e){var t={exports:{}};return e(t,t.exports),t.exports}var Bc,qE,e_=function(e){return e&&e.Math==Math&&e},vn=e_(typeof globalThis=="object"&&globalThis)||e_(typeof window=="object"&&window)||e_(typeof self=="object"&&self)||e_(typeof _U=="object"&&_U)||function(){return this}()||Function("return this")(),gi=function(e){try{return!!e()}catch(t){return!0}},kl=!gi(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),$v=Function.prototype.call,Zr=$v.bind?$v.bind($v):function(){return $v.apply($v,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},t_=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),wr=UR?function(e){return e&&nme(HR,e)}:function(e){return e&&function(){return HR.apply(e,arguments)}},rme=wr({}.toString),ime=wr("".slice),$s=function(e){return ime(rme(e),8,-1)},WR=vn.Object,ame=wr("".split),zR=gi(function(){return!WR("z").propertyIsEnumerable(0)})?function(e){return $s(e)=="String"?ame(e,""):WR(e)}:WR,ome=vn.TypeError,qv=function(e){if(e==null)throw ome("Can't call method on "+e);return e},jc=function(e){return zR(qv(e))},oi=function(e){return typeof e=="function"},fi=function(e){return typeof e=="object"?e!==null:oi(e)},sme=function(e){return oi(e)?e:void 0},gh=function(e,t){return arguments.length<2?sme(vn[e]):vn[e]&&vn[e][t]},e0=wr({}.isPrototypeOf),Ep=gh("navigator","userAgent")||"",SU=vn.process,CU=vn.Deno,AU=SU&&SU.versions||CU&&CU.version,OU=AU&&AU.v8;OU&&(qE=(Bc=OU.split("."))[0]>0&&Bc[0]<4?1:+(Bc[0]+Bc[1])),!qE&&Ep&&(!(Bc=Ep.match(/Edge\/(\d+)/))||Bc[1]>=74)&&(Bc=Ep.match(/Chrome\/(\d+)/))&&(qE=+Bc[1]);var t0=qE,GR=!!Object.getOwnPropertySymbols&&!gi(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t0&&t0<41}),KR=GR&&!Symbol.sham&&typeof Symbol.iterator=="symbol",lme=vn.Object,VR=KR?function(e){return typeof e=="symbol"}:function(e){var t=gh("Symbol");return oi(t)&&e0(t.prototype,lme(e))},ume=vn.String,n_=function(e){try{return ume(e)}catch(t){return"Object"}},cme=vn.TypeError,Uc=function(e){if(oi(e))return e;throw cme(n_(e)+" is not a function")},n0=function(e,t){var n=e[t];return n==null?void 0:Uc(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},Hc=vn["__core-js_shared__"]||YR("__core-js_shared__",{}),XR=jR(function(e){(e.exports=function(t,n){return Hc[t]||(Hc[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(qv(e))},pme=wr({}.hasOwnProperty),_a=Object.hasOwn||function(e,t){return pme(JR(e),t)},mme=0,gme=Math.random(),vme=wr(1 .toString),QR=function(e){return"Symbol("+(e===void 0?"":e)+")_"+vme(++mme+gme,36)},r0=XR("wks"),vh=vn.Symbol,DU=vh&&vh.for,yme=KR?vh:vh&&vh.withoutSetter||QR,aa=function(e){if(!_a(r0,e)||!GR&&typeof r0[e]!="string"){var t="Symbol."+e;GR&&_a(vh,e)?r0[e]=vh[e]:r0[e]=KR&&DU?DU(t):yme(t)}return r0[e]},bme=vn.TypeError,Eme=aa("toPrimitive"),ZR=function(e){var t=function(n,r){if(!fi(n)||VR(n))return n;var i,a=n0(n,Eme);if(a){if(r===void 0&&(r="default"),i=Zr(a,n,r),!fi(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)&&!fi(f=Zr(u,o)))return f;if(oi(u=o.valueOf)&&!fi(f=Zr(u,o)))return f;if(s!=="string"&&oi(u=o.toString)&&!fi(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=fi($R)&&fi($R.createElement),i0=function(e){return _me?$R.createElement(e):{}},RU=!kl&&!gi(function(){return Object.defineProperty(i0("div"),"a",{get:function(){return 7}}).a!=7}),IU=Object.getOwnPropertyDescriptor,qR={f:kl?IU:function(e,t){if(e=jc(e),t=ZR(t),RU)try{return IU(e,t)}catch(n){}if(_a(e,t))return t_(!Zr(tme.f,e,t),e[t])}},xme=vn.String,wme=vn.TypeError,Ma=function(e){if(fi(e))return e;throw wme(xme(e)+" is not an object")},Tme=vn.TypeError,LU=Object.defineProperty,mu={f:kl?LU:function(e,t,n){if(Ma(e),t=ZR(t),Ma(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}},Ml=kl?function(e,t,n){return mu.f(e,t,t_(1,n))}:function(e,t,n){return e[t]=n,e},Sme=wr(Function.toString);oi(Hc.inspectSource)||(Hc.inspectSource=function(e){return Sme(e)});var r_,a0,i_,a_=Hc.inspectSource,PU=vn.WeakMap,kU=oi(PU)&&/native code/.test(a_(PU)),MU=XR("keys"),e4=function(e){return MU[e]||(MU[e]=QR(e))},o_={},t4=vn.TypeError,Cme=vn.WeakMap;if(kU||Hc.state){var yh=Hc.state||(Hc.state=new Cme),Ame=wr(yh.get),NU=wr(yh.has),Ome=wr(yh.set);r_=function(e,t){if(NU(yh,e))throw new t4("Object already initialized");return t.facade=e,Ome(yh,e,t),t},a0=function(e){return Ame(yh,e)||{}},i_=function(e){return NU(yh,e)}}else{var _p=e4("state");o_[_p]=!0,r_=function(e,t){if(_a(e,_p))throw new t4("Object already initialized");return t.facade=e,Ml(e,_p,t),t},a0=function(e){return _a(e,_p)?e[_p]:{}},i_=function(e){return _a(e,_p)}}var qo={set:r_,get:a0,has:i_,enforce:function(e){return i_(e)?a0(e):r_(e,{})},getterFor:function(e){return function(t){var n;if(!fi(t)||(n=a0(t)).type!==e)throw t4("Incompatible receiver, "+e+" required");return n}}},FU=Function.prototype,Dme=kl&&Object.getOwnPropertyDescriptor,n4=_a(FU,"name"),o0={EXISTS:n4,PROPER:n4&&function(){}.name==="something",CONFIGURABLE:n4&&(!kl||kl&&Dme(FU,"name").configurable)},es=jR(function(e){var t=o0.CONFIGURABLE,n=qo.get,r=qo.enforce,i=String(String).split("String");(e.exports=function(a,o,s,u){var f,m=!!u&&!!u.unsafe,M=!!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")+"]"),(!_a(s,"name")||t&&s.name!==U)&&Ml(s,"name",U),(f=r(s)).source||(f.source=i.join(typeof U=="string"?U:""))),a!==vn?(m?!K&&a[o]&&(M=!0):delete a[o],M?a[o]=s:Ml(a,o,s)):M?a[o]=s:YR(o,s)})(Function.prototype,"toString",function(){return oi(this)&&n(this).source||a_(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,s0=function(e,t){var n=r4(e);return n<0?Lme(n+t,0):Pme(n,t)},kme=Math.min,BU=function(e){return e>0?kme(r4(e),9007199254740991):0},l0=function(e){return BU(e.length)},jU=function(e){return function(t,n,r){var i,a=jc(t),o=l0(a),s=s0(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=wr([].push),HU=function(e,t){var n,r=jc(e),i=0,a=[];for(n in r)!_a(o_,n)&&_a(r,n)&&UU(a,n);for(;t.length>i;)_a(r,n=t[i++])&&(~Mme(a,n)||UU(a,n));return a},s_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nme=s_.concat("length","prototype"),l_={f:Object.getOwnPropertyNames||function(e){return HU(e,Nme)}},Fme={f:Object.getOwnPropertySymbols},Bme=wr([].concat),jme=gh("Reflect","ownKeys")||function(e){var t=l_.f(Ma(e)),n=Fme.f;return n?Bme(t,n(e)):t},Ume=function(e,t){for(var n=jme(t),r=mu.f,i=qR.f,a=0;a<n.length;a++){var o=n[a];_a(e,o)||r(e,o,i(t,o))}},Hme=/#|\.prototype\./,u0=function(e,t){var n=zme[Wme(e)];return n==Kme||n!=Gme&&(oi(t)?gi(t):!!t)},Wme=u0.normalize=function(e){return String(e).replace(Hme,".").toLowerCase()},zme=u0.data={},Gme=u0.NATIVE="N",Kme=u0.POLYFILL="P",u_=u0,Vme=qR.f,Nl=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],!u_(u?r:s+(f?".":"#")+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Ume(a,i)}(e.sham||i&&i.sham)&&Ml(a,"sham",!0),es(n,r,a,e)}},c_=Array.isArray||function(e){return $s(e)=="Array"},WU={};WU[aa("toStringTag")]="z";var i4=String(WU)==="[object z]",Yme=aa("toStringTag"),Xme=vn.Object,Jme=$s(function(){return arguments}())=="Arguments",d_=i4?$s: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?$s(t):(r=$s(t))=="Object"&&oi(t.callee)?"Arguments":r},zU=function(){},Qme=[],GU=gh("Reflect","construct"),a4=/^\s*(?:class|function)\b/,Zme=wr(a4.exec),$me=!a4.exec(zU),c0=function(e){if(!oi(e))return!1;try{return GU(zU,Qme,e),!0}catch(t){return!1}},o4=!GU||gi(function(){var e;return c0(c0.call)||!c0(Object)||!c0(function(){e=!0})||e})?function(e){if(!oi(e))return!1;switch(d_(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return $me||!!Zme(a4,a_(e))}:c0,KU=function(e,t,n){var r=ZR(t);r in e?mu.f(e,r,t_(0,n)):e[r]=n},qme=aa("species"),VU=wr([].slice),ege=t0>=51||!gi(function(){var e=[];return(e.constructor={})[qme]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),tge=aa("species"),s4=vn.Array,nge=Math.max;Nl({target:"Array",proto:!0,forced:!ege},{slice:function(e,t){var n,r,i,a=jc(this),o=l0(a),s=s0(e,o),u=s0(t===void 0?o:t,o);if(c_(a)&&(n=a.constructor,(o4(n)&&(n===s4||c_(n.prototype))||fi(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 "+d_(this)+"]"};i4||es(Object.prototype,"toString",rge,{unsafe:!0});var h_,ige=vn.String,Wc=function(e){if(d_(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ige(e)},YU=function(){var e=Ma(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=gi(function(){var e=l4("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),age=u4||gi(function(){return!l4("a","y").sticky}),XU={BROKEN_CARET:u4||gi(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,s_)},sge=kl?Object.defineProperties:function(e,t){Ma(e);for(var n,r=jc(t),i=oge(t),a=i.length,o=0;a>o;)mu.f(e,n=i[o++],r[n]);return e},c4=gh("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},f_=function(){try{h_=new ActiveXObject("htmlfile")}catch(r){}var e,t;f_=typeof document!="undefined"?document.domain&&h_?ZU(h_):((t=i0("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(h_);for(var n=s_.length;n--;)delete f_.prototype[s_[n]];return f_()};o_[JU]=!0;var $U,h4,f4=Object.create||function(e,t){var n;return e!==null?(d4.prototype=Ma(e),n=new d4,d4.prototype=null,n[JU]=e):n=f_(),t===void 0?n:sge(n,t)},lge=vn.RegExp,uge=gi(function(){var e=lge(".","s");return!(e.dotAll&&e.exec(`
`)&&e.flags==="s")}),cge=vn.RegExp,dge=gi(function(){var e=cge("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),hge=qo.get,fge=XR("native-string-replace",String.prototype.replace),p_=RegExp.prototype.exec,p4=p_,pge=wr("".charAt),mge=wr("".indexOf),gge=wr("".replace),m4=wr("".slice),g4=(h4=/b*/g,Zr(p_,$U=/a/,"a"),Zr(p_,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=Wc(e),M=f.raw;if(M)return M.lastIndex=u.lastIndex,t=Zr(p4,M,m),u.lastIndex=M.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(p_,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 d0=p4;Nl({target:"RegExp",proto:!0,forced:/./.exec!==d0},{exec:d0});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=aa("species"),b4=RegExp.prototype,bge=aa("match"),Ege=vn.TypeError,_ge=aa("species"),rH=function(e,t){var n,r=Ma(e).constructor;return r===void 0||(n=Ma(r)[_ge])==null?t:function(i){if(o4(i))return i;throw Ege(n_(i)+" is not a constructor")}(n)},xge=wr("".charAt),iH=wr("".charCodeAt),wge=wr("".slice),aH=function(e){return function(t,n){var r,i,a=Wc(qv(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=l0(e),i=s0(t,r),a=s0(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&&Ma(r),r}if($s(e)==="RegExp")return Zr(d0,e,t);throw Oge("RegExp#exec called on incompatible receiver")},xp=XU.UNSUPPORTED_Y,Dge=Math.min,lH=[].push,Rge=wr(/./.exec),wp=wr(lH),h0=wr("".slice);!function(e,t,n,r){var i=aa(e),a=!gi(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),o=a&&!gi(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=wr(/./[i]),u=function(f,m,M){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=Wc(qv(this)),J=re===void 0?4294967295:re>>>0;if(J===0)return[];if(U===void 0)return[te];if(!fi($=U)||!((ee=$[bge])!==void 0?ee:$s($)=="RegExp"))return Zr(m,te,U,J);for(var he,me,_e,ke=[],De=(U.ignoreCase?"i":"")+(U.multiline?"m":"")+(U.unicode?"u":"")+(U.sticky?"y":""),Ke=0,rt=new RegExp(U.source,De+"g");(he=Zr(d0,rt,te))&&!((me=rt.lastIndex)>Ke&&(wp(ke,h0(te,Ke,he.index)),he.length>1&&he.index<te.length&&nH(lH,ke,E4(he,1)),_e=he[0].length,Ke=me,ke.length>=J));)rt.lastIndex===he.index&&rt.lastIndex++;return Ke===te.length?!_e&&Rge(rt,"")||wp(ke,""):wp(ke,h0(te,Ke)),ke.length>J?E4(ke,0,J):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 $=qv(this),ee=U==null?void 0:n0(U,f);return ee?Zr(ee,U,$,re):Zr(K,Wc($),U,re)},function(U,re){var $=Ma(this),ee=Wc(U),te=M(K,$,ee,re,K!==m);if(te.done)return te.value;var J=rH($,RegExp),he=$.unicode,me=($.ignoreCase?"i":"")+($.multiline?"m":"")+($.unicode?"u":"")+(xp?"g":"y"),_e=new J(xp?"^(?:"+$.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,Ke=0,rt=[];Ke<ee.length;){_e.lastIndex=xp?0:Ke;var xt,Lt=sH(_e,xp?h0(ee,Ke):ee);if(Lt===null||(xt=Dge(BU(_e.lastIndex+(xp?Ke:0)),ee.length))===De)Ke=Sge(ee,Ke,he);else{if(wp(rt,h0(ee,De,Ke)),rt.length===ke)return rt;for(var wt=1;wt<=Lt.length-1;wt++)if(wp(rt,Lt[wt]),rt.length===ke)return rt;Ke=De=xt}}return wp(rt,h0(ee,De)),rt}]}(i,""[e],function(f,m,M,K,U){var re=wr(f),$=m.exec;return $===d0||$===b4.exec?a&&!U?{done:!0,value:s(m,M,K)}:{done:!0,value:re(M,m,K)}:{done:!1}});es(String.prototype,e,u[0]),es(b4,i,u[1])}r&&Ml(b4[i],"sham",!0)}("split",0,!!gi(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"}),xp);/*! *****************************************************************************
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 m_=function(){return m_=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},m_.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(M){M(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(M){m=[6,M],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,M){Promise.resolve(M).then(function(K){u({value:K,done:m})},f)}(o,s,(a=e[i](a)).done,a.value)})}}}var w4=aa("unscopables"),T4=Array.prototype;T4[w4]==null&&mu.f(T4,w4,{configurable:!0,value:f4(null)});var bh,uH,cH,S4=function(e){T4[w4][e]=!0},Tp={},Lge=!gi(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),dH=e4("IE_PROTO"),C4=vn.Object,Pge=C4.prototype,g_=Lge?C4.getPrototypeOf:function(e){var t=JR(e);if(_a(t,dH))return t[dH];var n=t.constructor;return oi(n)&&t instanceof n?n.prototype:t instanceof C4?Pge:null},A4=aa("iterator"),hH=!1;[].keys&&("next"in(cH=[].keys())?(uH=g_(g_(cH)))!==Object.prototype&&(bh=uH):hH=!0);var kge=bh==null||gi(function(){var e={};return bh[A4].call(e)!==e});kge&&(bh={}),oi(bh[A4])||es(bh,A4,function(){return this});var O4={IteratorPrototype:bh,BUGGY_SAFARI_ITERATORS:hH},Mge=mu.f,fH=aa("toStringTag"),v_=function(e,t,n){e&&!_a(e=n?e:e.prototype,fH)&&Mge(e,fH,{configurable:!0,value:t})},Nge=O4.IteratorPrototype,Fge=function(){return this},Bge=vn.String,jge=vn.TypeError,Sp=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=wr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(r,i){return Ma(r),function(a){if(typeof a=="object"||oi(a))return a;throw jge("Can't set "+Bge(a)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),Uge=o0.PROPER,Hge=o0.CONFIGURABLE,pH=O4.IteratorPrototype,y_=O4.BUGGY_SAFARI_ITERATORS,f0=aa("iterator"),Wge=function(){return this},mH=function(e,t,n,r,i,a,o){!function(te,J,he,me){var _e=J+" Iterator";te.prototype=f4(Nge,{next:t_(1,he)}),v_(te,_e,!1),Tp[_e]=Fge}(n,t,r);var s,u,f,m=function(te){if(te===i&&$)return $;if(!y_&&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)}},M=t+" Iterator",K=!1,U=e.prototype,re=U[f0]||U["@@iterator"]||i&&U[i],$=!y_&&re||m(i),ee=t=="Array"&&U.entries||re;if(ee&&(s=g_(ee.call(new e)))!==Object.prototype&&s.next&&(g_(s)!==pH&&(Sp?Sp(s,pH):oi(s[f0])||es(s,f0,Wge)),v_(s,M,!0)),Uge&&i=="values"&&re&&re.name!=="values"&&(Hge?Ml(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)(y_||K||!(f in U))&&es(U,f,u[f]);else Nl({target:t,proto:!0,forced:y_||K},u);return U[f0]!==$&&es(U,f0,$,{name:i}),Tp[t]=$,u},zge=qo.set,Gge=qo.getterFor("Array Iterator"),p0=mH(Array,"Array",function(e,t){zge(this,{type:"Array Iterator",target:jc(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");Tp.Arguments=Tp.Array,S4("keys"),S4("values"),S4("entries");var Kge=oH.charAt,Vge=qo.set,Yge=qo.getterFor("String Iterator");mH(String,"String",function(e){Vge(this,{type:"String Iterator",string:Wc(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 b_=function(e,t,n){for(var r in t)es(e,r,t[r],n);return e},gH=l_.f,vH=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Xge={f:function(e){return vH&&$s(e)=="Window"?function(t){try{return gH(t)}catch(n){return E4(vH)}}(e):gH(jc(e))}},yH=gi(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),E_=Object.isExtensible,Eh=gi(function(){E_(1)})||yH?function(e){return!!fi(e)&&(!yH||$s(e)!="ArrayBuffer")&&(!E_||E_(e))}:E_,Jge=!gi(function(){return Object.isExtensible(Object.preventExtensions({}))}),D4=jR(function(e){var t=mu.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=l_.f,u=wr([].splice),f={};f[r]=1,s(f).length&&(l_.f=function(m){for(var M=s(m),K=0,U=M.length;K<U;K++)if(M[K]===r){u(M,K,1);break}return M},Nl({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Xge.f}))},fastKey:function(s,u){if(!fi(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!_a(s,r)){if(!Eh(s))return"F";if(!u)return"E";a(s)}return s[r].objectID},getWeakData:function(s,u){if(!_a(s,r)){if(!Eh(s))return!0;if(!u)return!1;a(s)}return s[r].weakData},onFreeze:function(s){return Jge&&n&&Eh(s)&&!_a(s,r)&&a(s),s}};o_[r]=!0}),bH=wr(wr.bind),m0=function(e,t){return Uc(e),t===void 0?e:bH?bH(e,t):function(){return e.apply(t,arguments)}},Qge=aa("iterator"),Zge=Array.prototype,$ge=aa("iterator"),EH=function(e){if(e!=null)return n0(e,$ge)||n0(e,"@@iterator")||Tp[d_(e)]},qge=vn.TypeError,_H=function(e,t,n){var r,i;Ma(e);try{if(!(r=n0(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 Ma(r),n},eve=vn.TypeError,__=function(e,t){this.stopped=e,this.result=t},xH=__.prototype,x_=function(e,t,n){var r,i,a,o,s,u,f,m,M=n&&n.that,K=!(!n||!n.AS_ENTRIES),U=!(!n||!n.IS_ITERATOR),re=!(!n||!n.INTERRUPTED),$=m0(t,M),ee=function(J){return r&&_H(r,"normal",J),new __(!0,J)},te=function(J){return K?(Ma(J),re?$(J[0],J[1],ee):$(J[0],J[1])):re?$(J,ee):$(J)};if(U)r=e;else{if(!(i=EH(e)))throw eve(n_(e)+" is not iterable");if((m=i)!==void 0&&(Tp.Array===m||Zge[Qge]===m)){for(a=0,o=l0(e);o>a;a++)if((s=te(e[a]))&&e0(xH,s))return s;return new __(!1)}r=function(J,he){var me=arguments.length<2?EH(J):he;if(Uc(me))return Ma(Zr(me,J));throw qge(n_(J)+" is not iterable")}(e,i)}for(u=r.next;!(f=Zr(u,r)).done;){try{s=te(f.value)}catch(J){_H(r,"throw",J)}if(typeof s=="object"&&s&&e0(xH,s))return s}return new __(!1)},tve=vn.TypeError,R4=function(e,t){if(e0(t,e))return e;throw tve("Incorrect invocation")},wH=aa("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=aa("species"),AH=vn.Array,ive=function(e,t){return new(function(n){var r;return c_(n)&&(r=n.constructor,(o4(r)&&(r===AH||c_(r.prototype))||fi(r)&&(r=r[rve])===null)&&(r=void 0)),r===void 0?AH:r}(e))(t===0?0:t)},OH=wr([].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,M){for(var K,U,re=JR(u),$=zR(re),ee=m0(f,m),te=l0($),J=0,he=M||ive,me=t?he(u,te):n||o?he(u,0):void 0;te>J;J++)if((s||J in $)&&(U=ee(K=$[J],J,re),e))if(t)me[J]=U;else if(U)switch(e){case 3:return!0;case 5:return K;case 6:return J;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:zc(0),map:zc(1),filter:zc(2),some:zc(3),every:zc(4),find:zc(5),findIndex:zc(6),filterReject:zc(7)},w_=D4.getWeakData,ave=qo.set,ove=qo.getterFor,sve=I4.find,lve=I4.findIndex,uve=wr([].splice),cve=0,T_=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 g0,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&&x_(f,u[r],{that:u,AS_ENTRIES:n})}),a=i.prototype,o=ove(t),s=function(u,f,m){var M=o(u),K=w_(Ma(f),!0);return K===!0?T_(M).set(f,m):K[M.id]=m,u};return b_(a,{delete:function(u){var f=o(this);if(!fi(u))return!1;var m=w_(u);return m===!0?T_(f).delete(u):m&&_a(m,f.id)&&delete m[f.id]},has:function(u){var f=o(this);if(!fi(u))return!1;var m=w_(u);return m===!0?T_(f).has(u):m&&_a(m,f.id)}}),b_(a,n?{get:function(u){var f=o(this);if(fi(u)){var m=w_(u);return m===!0?T_(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}},S_=qo.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=wr(s[ee]);es(s,ee,ee=="add"?function(J){return te(this,J===0?0:J),this}:ee=="delete"?function(J){return!(i&&!fi(J))&&te(this,J===0?0:J)}:ee=="get"?function(J){return i&&!fi(J)?void 0:te(this,J===0?0:J)}:ee=="has"?function(J){return!(i&&!fi(J))&&te(this,J===0?0:J)}:function(J,he){return te(this,J===0?0:J,he),this})};if(u_(e,!oi(o)||!(i||s.forEach&&!gi(function(){new o().entries().next()}))))u=n.getConstructor(t,e,r,a),D4.enable();else if(u_(e,!0)){var M=new u,K=M[a](i?{}:-0,1)!=M,U=gi(function(){M.has(1)}),re=CH(function(ee){new o(ee)}),$=!i&&gi(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 J=function(he,me,_e){var ke,De;return Sp&&oi(ke=me.constructor)&&ke!==_e&&fi(De=ke.prototype)&&De!==_e.prototype&&Sp(he,De),he}(new o,ee,u);return te!=null&&x_(te,J[a],{that:J,AS_ENTRIES:r}),J})).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,Nl({global:!0,forced:u!=o},f),v_(u,e),i||n.setStrong(u,e,r),u}("WeakMap",IH,RH);if(kU&&dve){g0=RH.getConstructor(IH,"WeakMap",!0),D4.enable();var v0=hve.prototype,LH=wr(v0.delete),C_=wr(v0.has),PH=wr(v0.get),kH=wr(v0.set);b_(v0,{delete:function(e){if(fi(e)&&!Eh(e)){var t=S_(this);return t.frozen||(t.frozen=new g0),LH(this,e)||t.frozen.delete(e)}return LH(this,e)},has:function(e){if(fi(e)&&!Eh(e)){var t=S_(this);return t.frozen||(t.frozen=new g0),C_(this,e)||t.frozen.has(e)}return C_(this,e)},get:function(e){if(fi(e)&&!Eh(e)){var t=S_(this);return t.frozen||(t.frozen=new g0),C_(this,e)?PH(this,e):t.frozen.get(e)}return PH(this,e)},set:function(e,t){if(fi(e)&&!Eh(e)){var n=S_(this);n.frozen||(n.frozen=new g0),C_(this,e)?kH(this,e,t):n.frozen.set(e,t)}else kH(this,e,t);return this}})}var A_={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=i0("span").classList,MH=P4&&P4.constructor&&P4.constructor.prototype,NH=MH===Object.prototype?void 0:MH,k4=aa("iterator"),FH=aa("toStringTag"),M4=p0.values,BH=function(e,t){if(e){if(e[k4]!==M4)try{Ml(e,k4,M4)}catch(r){e[k4]=M4}if(e[FH]||Ml(e,FH,t),A_[t]){for(var n in p0)if(e[n]!==p0[n])try{Ml(e,n,p0[n])}catch(r){e[n]=p0[n]}}}};for(var N4 in A_)BH(vn[N4]&&vn[N4].prototype,N4);BH(NH,"DOMTokenList");var jH=function(e,t){var n=[][e];return!!n&&gi(function(){n.call(null,t||function(){throw 1},1)})},fve=I4.forEach,F4=jH("forEach")?[].forEach:function(e){return fve(this,e,arguments.length>1?arguments[1]:void 0)},UH=function(e){if(e&&e.forEach!==F4)try{Ml(e,"forEach",F4)}catch(t){e.forEach=F4}};for(var B4 in A_)A_[B4]&&UH(vn[B4]&&vn[B4].prototype);UH(NH);var y0,Cp,HH,j4,O_=vn.Promise,WH=aa("species"),zH=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ep),Gc=$s(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,b0={};try{y0=vn.location}catch(e){}var G4=function(e){if(_a(b0,e)){var t=b0[e];delete b0[e],t()}},K4=function(e){return function(){G4(e)}},KH=function(e){G4(e.data)},VH=function(e){vn.postMessage(gve(e),y0.protocol+"//"+y0.host)};U4&&H4||(U4=function(e){var t=VU(arguments,1);return b0[++z4]=function(){nH(oi(e)?e:mve(e),void 0,t)},Cp(z4),z4},H4=function(e){delete b0[e]},Gc?Cp=function(e){pve.nextTick(K4(e))}:W4&&W4.now?Cp=function(e){W4.now(K4(e))}:GH&&!zH?(j4=(HH=new GH).port2,HH.port1.onmessage=KH,Cp=m0(j4.postMessage,j4)):vn.addEventListener&&oi(vn.postMessage)&&!vn.importScripts&&y0&&y0.protocol!=="file:"&&!gi(VH)?(Cp=VH,vn.addEventListener("message",KH,!1)):Cp="onreadystatechange"in i0("script")?function(e){c4.appendChild(i0("script")).onreadystatechange=function(){c4.removeChild(this),G4(e)}}:function(e){setTimeout(K4(e),0)});var E0,_h,_0,Ap,V4,Y4,X4,YH,XH={set:U4,clear:H4},vve=/ipad|iphone|ipod/i.test(Ep)&&vn.Pebble!==void 0,yve=/web0s(?!.*chrome)/i.test(Ep),bve=qR.f,J4=XH.set,JH=vn.MutationObserver||vn.WebKitMutationObserver,QH=vn.document,ZH=vn.process,D_=vn.Promise,$H=bve(vn,"queueMicrotask"),qH=$H&&$H.value;qH||(E0=function(){var e,t;for(Gc&&(e=ZH.domain)&&e.exit();_h;){t=_h.fn,_h=_h.next;try{t()}catch(n){throw _h?Ap():_0=void 0,n}}_0=void 0,e&&e.enter()},zH||Gc||yve||!JH||!QH?!vve&&D_&&D_.resolve?((X4=D_.resolve(void 0)).constructor=D_,YH=m0(X4.then,X4),Ap=function(){YH(E0)}):Gc?Ap=function(){ZH.nextTick(E0)}:(J4=m0(J4,vn),Ap=function(){J4(E0)}):(V4=!0,Y4=QH.createTextNode(""),new JH(E0).observe(Y4,{characterData:!0}),Ap=function(){Y4.data=V4=!V4}));var Q4,eW,tW,nW,rW=qH||function(e){var t={fn:e,next:void 0};_0&&(_0.next=t),_h||(_h=t,Ap()),_0=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=Uc(t),this.reject=Uc(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=aa("species"),gu="Promise",aW=qo.getterFor(gu),wve=qo.set,Tve=qo.getterFor(gu),xh=O_&&O_.prototype,Fl=O_,x0=xh,oW=vn.TypeError,q4=vn.document,eI=vn.process,Op=Z4.f,Sve=Op,Cve=!!(q4&&q4.createEvent&&vn.dispatchEvent),sW=oi(vn.PromiseRejectionEvent),lW=!1,w0=u_(gu,function(){var e=a_(Fl),t=e!==String(Fl);if(!t&&t0===66)return!0;if(t0>=51&&/native code/.test(e))return!1;var n=new Fl(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=w0||!CH(function(e){Fl.all(e).catch(function(){})}),uW=function(e){var t;return!(!fi(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,M=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,M,K):M(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(){Gc?eI.emit("unhandledRejection",r,n):cW("unhandledrejection",n,r)}),e.rejection=Gc||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;Gc?eI.emit("rejectionHandled",t):cW("rejectionhandled",t,e.value)})},Dp=function(e,t,n){return function(r){e(t,r,n)}},Rp=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,Dp(nI,i,e),Dp(Rp,i,e))}catch(a){Rp(i,a,e)}}):(e.value=t,e.state=1,tI(e,!1))}catch(i){Rp({done:!1},i,e)}}};if(w0&&(x0=(Fl=function(e){R4(this,x0),Uc(e),Zr(Q4,this);var t=aW(this);try{e(Dp(nI,t),Dp(Rp,t))}catch(n){Rp(t,n)}}).prototype,(Q4=function(e){wve(this,{type:gu,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=b_(x0,{then:function(e,t){var n=Tve(this),r=n.reactions,i=Op(rH(this,Fl));return i.ok=!oi(e)||e,i.fail=oi(t)&&t,i.domain=Gc?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=Dp(nI,t),this.reject=Dp(Rp,t)},Z4.f=Op=function(e){return e===Fl||e===tW?new eW(e):Sve(e)},oi(O_)&&xh!==Object.prototype)){nW=xh.then,lW||(es(xh,"then",function(e,t){var n=this;return new Fl(function(r,i){Zr(nW,n,r,i)}).then(e,t)},{unsafe:!0}),es(xh,"catch",x0.catch,{unsafe:!0}));try{delete xh.constructor}catch(e){}Sp&&Sp(xh,x0)}Nl({global:!0,wrap:!0,forced:w0},{Promise:Fl}),v_(Fl,gu,!1),function(e){var t=gh("Promise"),n=mu.f;kl&&t&&!t[WH]&&n(t,WH,{configurable:!0,get:function(){return this}})}(),tW=gh(gu),Nl({target:gu,stat:!0,forced:w0},{reject:function(e){var t=Op(this);return Zr(t.reject,void 0,e),t.promise}}),Nl({target:gu,stat:!0,forced:w0},{resolve:function(e){return function(t,n){if(Ma(t),fi(n)&&n.constructor===t)return n;var r=Z4.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),Nl({target:gu,stat:!0,forced:Ave},{all:function(e){var t=this,n=Op(t),r=n.resolve,i=n.reject,a=$4(function(){var o=Uc(t.resolve),s=[],u=0,f=1;x_(e,function(m){var M=u++,K=!1;f++,Zr(o,t,m).then(function(U){K||(K=!0,s[M]=U,--f||r(s))},i)}),--f||r(s)});return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=Op(t),r=n.reject,i=$4(function(){var a=Uc(t.resolve);x_(e,function(o){Zr(a,t,o).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var Rve=o0.PROPER,rI=RegExp.prototype,hW=rI.toString,Ive=wr(YU),Lve=gi(function(){return hW.call({source:"a",flags:"b"})!="/a/b"}),Pve=Rve&&hW.name!="toString";(Lve||Pve)&&es(RegExp.prototype,"toString",function(){var e=Ma(this),t=Wc(e.source),n=e.flags;return"/"+t+"/"+Wc(n===void 0&&e0(rI,e)&&!("flags"in rI)?Ive(e):n)},{unsafe:!0});var kve=o0.EXISTS,Mve=mu.f,fW=Function.prototype,Nve=wr(fW.toString),pW=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Fve=wr(pW.exec);kl&&!kve&&Mve(fW,"name",{configurable:!0,get:function(){try{return Fve(pW,Nve(this))[1]}catch(e){return""}}});var mW=new WeakMap;function gW(e){return e.getMenuConfig("uploadImage")}function Bve(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;Kd(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,M=f.onProgress,K=f.onFailed,U=f.customInsert,re=f.onError;return u=E3(m_(m_({},f),{onProgress:function($){s.showProgressBar($),M&&M($)},onSuccess:function($,ee){if(U)return U(ee,function(xt,Lt,wt){return Kd(s,xt,Lt,wt)}),void m($,ee);var te=ee.errno,J=te===void 0?1:te,he=ee.data,me=he===void 0?{}:he;if(J===0){if(Array.isArray(me))me.forEach(function(xt){var Lt=xt.url,wt=Lt===void 0?"":Lt,Yt=xt.alt,Ft=Yt===void 0?"":Yt,jt=xt.href;Kd(s,wt,Ft,jt===void 0?"":jt)});else{var _e=me.url,ke=_e===void 0?"":_e,De=me.alt,Ke=De===void 0?"":De,rt=me.href;Kd(s,ke,Ke,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,M,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,M=m.size,s&&M<=s?[4,Bve(e,m)]:[3,5]);case 4:return U.sent(),[3,9];case 5:return o?[4,o(m,function(re,$,ee){return Kd(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=wr([].join),Hve=zR!=Object,Wve=jH("join",",");Nl({target:"Array",proto:!0,forced:Hve||!Wve},{join:function(e){return Uve(jc(this),e===void 0?",":e)}}),fs&&(Qe.fn.append=fs),yl&&(Qe.fn.on=yl),af&&(Qe.fn.remove=af),vl&&(Qe.fn.val=vl),t5&&(Qe.fn.click=t5),ef&&(Qe.fn.hide=ef);var zve=function(){function e(){this.title=fn("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 c1(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,M,K){return Kd(t,m,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;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(c1(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,M=u.call(o),K=[];try{for(;(s===void 0||s-- >0)&&!(f=M.next()).done;)K.push(f.value)}catch(U){m={error:U}}finally{try{f&&!f.done&&(u=M.return)&&u.call(M)}finally{if(m)throw m.error}}return K}(a.type.split("/"),1)[0]==="image"})?vW(e,i):t(r)}},n}};Ao("en",{highLightModule:{selectLang:"Language"}}),Ao("zh-CN",{highLightModule:{selectLang:"\u9009\u62E9\u8BED\u8A00"}});var R_=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Se!="undefined"?Se:typeof self!="undefined"?self:{};function iI(e){var t={exports:{}};return e(t,t.exports),t.exports}var Kc,I_,L_=function(e){return e&&e.Math==Math&&e},Sr=L_(typeof globalThis=="object"&&globalThis)||L_(typeof window=="object"&&window)||L_(typeof self=="object"&&self)||L_(typeof R_=="object"&&R_)||function(){return this}()||Function("return this")(),Kve=Object.defineProperty,aI=function(e,t){try{Kve(Sr,e,{value:t,configurable:!0,writable:!0})}catch(n){Sr[e]=t}return t},Vc=Sr["__core-js_shared__"]||aI("__core-js_shared__",{}),oI=iI(function(e){(e.exports=function(t,n){return Vc[t]||(Vc[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=Sr.TypeError,Ip=function(e){if(e==null)throw Yve("Can't call method on "+e);return e},Xve=Sr.Object,uI=function(e){return Xve(Ip(e))},Jve=$r({}.hasOwnProperty),Is=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)},lo=function(e){return typeof e=="function"},qve=function(e){return lo(e)?e:void 0},T0=function(e,t){return arguments.length<2?qve(Sr[e]):Sr[e]&&Sr[e][t]},cI=T0("navigator","userAgent")||"",EW=Sr.process,_W=Sr.Deno,xW=EW&&EW.versions||_W&&_W.version,wW=xW&&xW.v8;wW&&(I_=(Kc=wW.split("."))[0]>0&&Kc[0]<4?1:+(Kc[0]+Kc[1])),!I_&&cI&&(!(Kc=cI.match(/Edge\/(\d+)/))||Kc[1]>=74)&&(Kc=cI.match(/Chrome\/(\d+)/))&&(I_=+Kc[1]);var TW=I_,Na=function(e){try{return!!e()}catch(t){return!0}},dI=!!Object.getOwnPropertySymbols&&!Na(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&TW&&TW<41}),hI=dI&&!Symbol.sham&&typeof Symbol.iterator=="symbol",S0=oI("wks"),wh=Sr.Symbol,SW=wh&&wh.for,e0e=hI?wh:wh&&wh.withoutSetter||bW,Yc=function(e){if(!Is(S0,e)||!dI&&typeof S0[e]!="string"){var t="Symbol."+e;dI&&Is(wh,e)?S0[e]=wh[e]:S0[e]=hI&&SW?SW(t):e0e(t)}return S0[e]},CW={};CW[Yc("toStringTag")]="z";var fI=String(CW)==="[object z]",Bl=!Na(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),qs=function(e){return typeof e=="object"?e!==null:lo(e)},pI=Sr.document,t0e=qs(pI)&&qs(pI.createElement),mI=function(e){return t0e?pI.createElement(e):{}},AW=!Bl&&!Na(function(){return Object.defineProperty(mI("div"),"a",{get:function(){return 7}}).a!=7}),n0e=Sr.String,r0e=Sr.TypeError,el=function(e){if(qs(e))return e;throw r0e(n0e(e)+" is not an object")},C0=Function.prototype.call,Oa=C0.bind?C0.bind(C0):function(){return C0.apply(C0,arguments)},OW=$r({}.isPrototypeOf),i0e=Sr.Object,gI=hI?function(e){return typeof e=="symbol"}:function(e){var t=T0("Symbol");return lo(t)&&OW(t.prototype,i0e(e))},a0e=Sr.String,DW=function(e){try{return a0e(e)}catch(t){return"Object"}},o0e=Sr.TypeError,RW=function(e){if(lo(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=Sr.TypeError,l0e=Sr.TypeError,u0e=Yc("toPrimitive"),vI=function(e){var t=function(n,r){if(!qs(n)||gI(n))return n;var i,a=IW(n,u0e);if(a){if(r===void 0&&(r="default"),i=Oa(a,n,r),!qs(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"&&lo(u=o.toString)&&!qs(f=Oa(u,o)))return f;if(lo(u=o.valueOf)&&!qs(f=Oa(u,o)))return f;if(s!=="string"&&lo(u=o.toString)&&!qs(f=Oa(u,o)))return f;throw s0e("Can't convert object to primitive value")}(n,r)}(e,"string");return gI(t)?t:t+""},c0e=Sr.TypeError,LW=Object.defineProperty,P_={f:Bl?LW:function(e,t,n){if(el(e),t=vI(t),el(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}},Lp=Bl?function(e,t,n){return P_.f(e,t,yI(1,n))}:function(e,t,n){return e[t]=n,e},d0e=$r(Function.toString);lo(Vc.inspectSource)||(Vc.inspectSource=function(e){return d0e(e)});var k_,A0,M_,bI=Vc.inspectSource,PW=Sr.WeakMap,h0e=lo(PW)&&/native code/.test(bI(PW)),kW=oI("keys"),MW=function(e){return kW[e]||(kW[e]=bW(e))},EI={},_I=Sr.TypeError,f0e=Sr.WeakMap;if(h0e||Vc.state){var Th=Vc.state||(Vc.state=new f0e),p0e=$r(Th.get),NW=$r(Th.has),m0e=$r(Th.set);k_=function(e,t){if(NW(Th,e))throw new _I("Object already initialized");return t.facade=e,m0e(Th,e,t),t},A0=function(e){return p0e(Th,e)||{}},M_=function(e){return NW(Th,e)}}else{var Pp=MW("state");EI[Pp]=!0,k_=function(e,t){if(Is(e,Pp))throw new _I("Object already initialized");return t.facade=e,Lp(e,Pp,t),t},A0=function(e){return Is(e,Pp)?e[Pp]:{}},M_=function(e){return Is(e,Pp)}}var xI={set:k_,get:A0,has:M_,enforce:function(e){return M_(e)?A0(e):k_(e,{})},getterFor:function(e){return function(t){var n;if(!qs(t)||(n=A0(t)).type!==e)throw _I("Incompatible receiver, "+e+" required");return n}}},FW=Function.prototype,g0e=Bl&&Object.getOwnPropertyDescriptor,wI=Is(FW,"name"),BW={EXISTS:wI,PROPER:wI&&function(){}.name==="something",CONFIGURABLE:wI&&(!Bl||Bl&&g0e(FW,"name").configurable)},O0=iI(function(e){var t=BW.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,M=!!u&&!!u.enumerable,K=!!u&&!!u.noTargetGet,U=u&&u.name!==void 0?u.name:o;lo(s)&&(String(U).slice(0,7)==="Symbol("&&(U="["+String(U).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Is(s,"name")||t&&s.name!==U)&&Lp(s,"name",U),(f=r(s)).source||(f.source=i.join(typeof U=="string"?U:""))),a!==Sr?(m?!K&&a[o]&&(M=!0):delete a[o],M?a[o]=s:Lp(a,o,s)):M?a[o]=s:aI(o,s)})(Function.prototype,"toString",function(){return lo(this)&&n(this).source||bI(this)})}),v0e=$r({}.toString),y0e=$r("".slice),Xc=function(e){return y0e(v0e(e),8,-1)},b0e=Yc("toStringTag"),E0e=Sr.Object,_0e=Xc(function(){return arguments}())=="Arguments",TI=fI?Xc: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?Xc(t):(r=Xc(t))=="Object"&&lo(t.callee)?"Arguments":r},x0e=fI?{}.toString:function(){return"[object "+TI(this)+"]"};fI||O0(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=Sr.Object,T0e=$r("".split),AI=Na(function(){return!CI("z").propertyIsEnumerable(0)})?function(e){return Xc(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 Xc(e)=="Array"},KW=function(){},O0e=[],VW=T0("Reflect","construct"),RI=/^\s*(?:class|function)\b/,D0e=$r(RI.exec),R0e=!RI.exec(KW),D0=function(e){if(!lo(e))return!1;try{return VW(KW,O0e,e),!0}catch(t){return!1}},YW=!VW||Na(function(){var e;return D0(D0.call)||!D0(Object)||!D0(function(){e=!0})||e})?function(e){if(!lo(e))return!1;switch(TI(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return R0e||!!D0e(RI,bI(e))}:D0,I0e=Yc("species"),XW=Sr.Array,L0e=function(e,t){return new(function(n){var r;return GW(n)&&(r=n.constructor,(YW(r)&&(r===XW||GW(r.prototype))||qs(r)&&(r=r[I0e])===null)&&(r=void 0)),r===void 0?XW:r}(e))(t===0?0:t)},JW=$r([].push),Jc=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,M){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($),J=0,he=M||L0e,me=t?he(u,te):n||o?he(u,0):void 0;te>J;J++)if((s||J in $)&&(U=ee(K=$[J],J,re),e))if(t)me[J]=U;else if(U)switch(e){case 3:return!0;case 5:return K;case 6:return J;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=[Jc(0),Jc(1),Jc(2),Jc(3),Jc(4),Jc(5),Jc(6),Jc(7)][0],II=(jW=[].forEach)&&Na(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{Lp(e,"forEach",II)}catch(t){e.forEach=II}};for(var LI in UW)UW[LI]&&QW(Sr[LI]&&Sr[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},N_=function(e){return AI(Ip(e))},ez=Object.getOwnPropertyDescriptor,tz={f:Bl?ez:function(e,t){if(e=N_(e),t=vI(t),AW)try{return ez(e,t)}catch(n){}if(Is(e,t))return yI(!Oa(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=N_(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=N_(e),i=0,a=[];for(n in r)!Is(EI,n)&&Is(r,n)&&rz(a,n);for(;t.length>i;)Is(r,n=t[i++])&&(~N0e(a,n)||rz(a,n));return a},F_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],F0e=F_.concat("length","prototype"),B0e={f:Object.getOwnPropertyNames||function(e){return iz(e,F0e)}},az={f:Object.getOwnPropertySymbols},j0e=$r([].concat),U0e=T0("Reflect","ownKeys")||function(e){var t=B0e.f(el(e)),n=az.f;return n?j0e(t,n(e)):t},H0e=function(e,t){for(var n=U0e(t),r=P_.f,i=tz.f,a=0;a<n.length;a++){var o=n[a];Is(e,o)||r(e,o,i(t,o))}},W0e=/#|\.prototype\./,R0=function(e,t){var n=G0e[z0e(e)];return n==V0e||n!=K0e&&(lo(t)?Na(t):!!t)},z0e=R0.normalize=function(e){return String(e).replace(W0e,".").toLowerCase()},G0e=R0.data={},K0e=R0.NATIVE="N",V0e=R0.POLYFILL="P",Y0e=R0,X0e=tz.f,B_=function(e,t){var n,r,i,a,o,s=e.target,u=e.global,f=e.stat;if(n=u?Sr:f?Sr[s]||aI(s,{}):(Sr[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)&&Lp(a,"sham",!0),O0(n,r,a,e)}},j_=Object.keys||function(e){return iz(e,F_)},kp=Object.assign,oz=Object.defineProperty,J0e=$r([].concat),sz=!kp||Na(function(){if(Bl&&kp({b:1},kp(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}),kp({},e)[n]!=7||j_(kp({},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(j_(u),a(u)):j_(u),m=f.length,M=0;m>M;)s=f[M++],Bl&&!Oa(o,u,s)||(n[s]=u[s]);return n}:kp;B_({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,J){var he,me;switch(J=J||{},o.util.type(te)){case"Object":if(me=o.util.objId(te),J[me])return J[me];for(var _e in he={},J[me]=he,te)te.hasOwnProperty(_e)&&(he[_e]=ee(te[_e],J));return he;case"Array":return me=o.util.objId(te),J[me]?J[me]:(he=[],J[me]=he,te.forEach(function(ke,De){he[De]=ee(ke,J)}),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 J in te)if(te[J].src==ee)return te[J]}return null}},isActive:function(ee,te,J){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!!J}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(ee,te){var J=o.util.clone(o.languages[ee]);for(var he in te)J[he]=te[he];return J},insertBefore:function(ee,te,J,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 J)J.hasOwnProperty(De)&&(_e[De]=J[De]);J.hasOwnProperty(ke)||(_e[ke]=me[ke])}var Ke=he[ee];return he[ee]=_e,o.languages.DFS(o.languages,function(rt,xt){xt===Ke&&rt!=ee&&(this[rt]=_e)}),_e},DFS:function ee(te,J,he,me){me=me||{};var _e=o.util.objId;for(var ke in te)if(te.hasOwnProperty(ke)){J.call(te,ke,te[ke],he||ke);var De=te[ke],Ke=o.util.type(De);Ke!=="Object"||me[_e(De)]?Ke!=="Array"||me[_e(De)]||(me[_e(De)]=!0,ee(De,J,ke,me)):(me[_e(De)]=!0,ee(De,J,null,me))}}},plugins:{},highlightAll:function(ee,te){o.highlightAllUnder(document,ee,te)},highlightAllUnder:function(ee,te,J){var he={callback:J,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,J){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),J&&J.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(J&&J.call(ke.element));if(o.hooks.run("before-highlight",ke),ke.grammar)if(te&&n.Worker){var Ke=new Worker(o.filename);Ke.onmessage=function(rt){De(rt.data)},Ke.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,J){var he={code:ee,grammar:te,language:J};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 J=te.rest;if(J){for(var he in J)te[he]=J[he];delete te.rest}var me=new m;return M(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 J=o.hooks.all;J[ee]=J[ee]||[],J[ee].push(te)},run:function(ee,te){var J=o.hooks.all[ee];if(J&&J.length)for(var he,me=0;he=J[me++];)he(te)}},Token:s};function s(ee,te,J,he){this.type=ee,this.content=te,this.alias=J,this.length=0|(he||"").length}function u(ee,te,J,he){ee.lastIndex=te;var me=ee.exec(J);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,J,he,me,_e){for(var ke in J)if(J.hasOwnProperty(ke)&&J[ke]){var De=J[ke];De=Array.isArray(De)?De:[De];for(var Ke=0;Ke<De.length;++Ke){if(_e&&_e.cause==ke+","+Ke)return;var rt=De[Ke],xt=rt.inside,Lt=!!rt.lookbehind,wt=!!rt.greedy,Yt=rt.alias;if(wt&&!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,Ht=he.next,bn=me;Ht!==te.tail&&!(_e&&bn>=_e.reach);bn+=Ht.value.length,Ht=Ht.next){var Pn=Ht.value;if(te.length>ee.length)return;if(!(Pn instanceof s)){var Ln,Dn=1;if(wt){if(!(Ln=u(jt,bn,ee,Lt)))break;var Ze=Ln.index,He=Ln.index+Ln[0].length,ot=bn;for(ot+=Ht.value.length;Ze>=ot;)ot+=(Ht=Ht.next).value.length;if(bn=ot-=Ht.value.length,Ht.value instanceof s)continue;for(var At=Ht;At!==te.tail&&(ot<He||typeof At.value=="string");At=At.next)Dn++,ot+=At.value.length;Dn--,Pn=ee.slice(bn,ot),Ln.index-=bn}else if(!(Ln=u(jt,0,Pn,Lt)))continue;Ze=Ln.index;var qt=Ln[0],Mt=Pn.slice(0,Ze),Sn=Pn.slice(Ze+qt.length),Vn=bn+Pn.length;_e&&Vn>_e.reach&&(_e.reach=Vn);var tr=Ht.prev;if(Mt&&(tr=M(te,tr,Mt),bn+=Mt.length),K(te,tr,Dn),Ht=M(te,tr,new s(ke,xt?o.tokenize(qt,xt):qt,Yt,qt)),Sn&&M(te,Ht,Sn),Dn>1){var dr={cause:ke+","+Ke,reach:Vn};f(ee,te,J,Ht.prev,bn,dr),_e&&dr.reach>_e.reach&&(_e.reach=dr.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 M(ee,te,J){var he=te.next,me={value:J,prev:te,next:he};return te.next=me,he.prev=me,ee.length++,me}function K(ee,te,J){for(var he=te.next,me=0;me<J&&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,J){if(typeof te=="string")return te;if(Array.isArray(te)){var he="";return te.forEach(function(Ke){he+=ee(Ke,J)}),he}var me={type:te.type,content:ee(te.content,J),tag:"span",classes:["token",te.type],attributes:{},language:J},_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),J=te.language,he=te.code,me=te.immediateClose;n.postMessage(o.highlight(he,o.languages[J],J)),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),R_!==void 0&&(R_.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 M=f.getAttribute("data-src"),K=u.language;if(K==="none"){var U=(/\.(\w+)$/.exec(M)||[,"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",M,!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),M=0;f=m[M++];)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 M=u[m],K=!1;if(typeof M!="string"&&(M.type==="tag"&&M.content[0]&&M.content[0].type==="tag"?M.content[0].content[0].content==="</"?f.length>0&&f[f.length-1].tagName===o(M.content[0].content[1])&&f.pop():M.content[M.content.length-1].content==="/>"||f.push({tagName:o(M.content[0].content[1]),openedBraces:0}):f.length>0&&M.type==="punctuation"&&M.content==="{"?f[f.length-1].openedBraces++:f.length>0&&f[f.length-1].openedBraces>0&&M.type==="punctuation"&&M.content==="}"?f[f.length-1].openedBraces--:K=!0),(K||typeof M=="string")&&f.length>0&&f[f.length-1].openedBraces===0){var U=o(M);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)}M.content&&typeof M.content!="string"&&s(M.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)),M=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,[M,ee]),J=/\[\s*(?:,\s*)*\]/.source,he=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[te,J]),me=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[U,re,J]),_e=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[me]),ke=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[_e,te,J]),De={keyword:m,punctuation:/[<>()?,.:[\]]/},Ke=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,rt=/"(?:\\.|[^\\"\r\n])*"/.source,xt=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[xt]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[rt]),lookbehind:!0,greedy:!0},{pattern:RegExp(Ke),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+"|"+Ke,wt=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[Lt]),Yt=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[wt]),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 Ht=/:[^}\r\n]+/.source,bn=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[wt]),2),Pn=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[bn,Ht]),Ln=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[Lt]),2),Dn=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Ln,Ht]);function Ze(He,ot){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[He]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[ot,Ht]),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,[Pn]),lookbehind:!0,greedy:!0,inside:Ze(Pn,bn)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Dn]),lookbehind:!0,greedy:!0,inside:Ze(Dn,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(M){if(M&&typeof M!="string")for(var K=0,U=M.length;K<U;K++){var re=M[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"),J="language-"+(te=(/[a-z][\w-]*/i.exec(te)||[""])[0].toLowerCase());ee.alias?typeof ee.alias=="string"?ee.alias=[ee.alias,J]:ee.alias.push(J):ee.alias=[J]}}else m(re.content)}}(f.tokens)}),e.hooks.add("wrap",function(f){if(f.type==="code-block"){for(var m="",M=0,K=f.classes.length;M<K;M++){var U=f.classes[M],re=/language-(.+)/.exec(U);if(re){m=re[1];break}}var $=e.languages[m];if($)f.content=e.highlight(function(te){var J=te.replace(o,"");return J.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 U_,Z0e=Sr.String,vu=function(e){if(TI(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Z0e(e)},cz=function(){var e=el(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=Sr.RegExp,MI=Na(function(){var e=kI("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),$0e=MI||Na(function(){return!kI("a","y").sticky}),dz={BROKEN_CARET:MI||Na(function(){var e=kI("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:$0e,UNSUPPORTED_Y:MI},q0e=Bl?Object.defineProperties:function(e,t){el(e);for(var n,r=N_(t),i=j_(t),a=i.length,o=0;a>o;)P_.f(e,n=i[o++],r[n]);return e},eye=T0("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},H_=function(){try{U_=new ActiveXObject("htmlfile")}catch(r){}var e,t;H_=typeof document!="undefined"?document.domain&&U_?pz(U_):((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(U_);for(var n=F_.length;n--;)delete H_.prototype[F_[n]];return H_()};EI[hz]=!0;var mz,FI,tye=Object.create||function(e,t){var n;return e!==null?(NI.prototype=el(e),n=new NI,NI.prototype=null,n[hz]=e):n=H_(),t===void 0?n:q0e(n,t)},nye=Sr.RegExp,rye=Na(function(){var e=nye(".","s");return!(e.dotAll&&e.exec(`
`)&&e.flags==="s")}),iye=Sr.RegExp,aye=Na(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),W_=RegExp.prototype.exec,BI=W_,lye=$r("".charAt),uye=$r("".indexOf),cye=$r("".replace),jI=$r("".slice),UI=(FI=/b*/g,Oa(W_,mz=/a/,"a"),Oa(W_,FI,"a"),mz.lastIndex!==0||FI.lastIndex!==0),gz=dz.BROKEN_CARET,HI=/()??/.exec("")[1]!==void 0;(UI||HI||gz||rye||aye)&&(BI=function(e){var t,n,r,i,a,o,s,u=this,f=oye(u),m=vu(e),M=f.raw;if(M)return M.lastIndex=u.lastIndex,t=Oa(BI,M,m),u.lastIndex=M.lastIndex,t;var K=f.groups,U=gz&&u.sticky,re=Oa(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=Oa(W_,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&&Oa(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 I0=BI;B_({target:"RegExp",proto:!0,forced:/./.exec!==I0},{exec:I0});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=Yc("species"),zI=RegExp.prototype,pye=Yc("match"),mye=Sr.TypeError,gye=Yc("species"),vye=$r("".charAt),bz=$r("".charCodeAt),yye=$r("".slice),Ez=function(e){return function(t,n){var r,i,a=vu(Ip(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=Sr.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)),M=0;u<f;u++,M++)r=m,i=M,a=e[u],(o=vI(i))in r?P_.f(r,o,yI(0,a)):r[o]=a;return m.length=M,m},wye=Sr.TypeError,xz=function(e,t){var n=e.exec;if(lo(n)){var r=Oa(n,e,t);return r!==null&&el(r),r}if(Xc(e)==="RegExp")return Oa(I0,e,t);throw wye("RegExp#exec called on incompatible receiver")},Mp=dz.UNSUPPORTED_Y,Tye=Math.min,wz=[].push,Sye=$r(/./.exec),Np=$r(wz),L0=$r("".slice);!function(e,t,n,r){var i=Yc(e),a=!Na(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),o=a&&!Na(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,M){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=vu(Ip(this)),J=re===void 0?4294967295:re>>>0;if(J===0)return[];if(U===void 0)return[te];if(!qs($=U)||!((ee=$[pye])!==void 0?ee:Xc($)=="RegExp"))return Oa(m,te,U,J);for(var he,me,_e,ke=[],De=(U.ignoreCase?"i":"")+(U.multiline?"m":"")+(U.unicode?"u":"")+(U.sticky?"y":""),Ke=0,rt=new RegExp(U.source,De+"g");(he=Oa(I0,rt,te))&&!((me=rt.lastIndex)>Ke&&(Np(ke,L0(te,Ke,he.index)),he.length>1&&he.index<te.length&&hye(wz,ke,_z(he,1)),_e=he[0].length,Ke=me,ke.length>=J));)rt.lastIndex===he.index&&rt.lastIndex++;return Ke===te.length?!_e&&Sye(rt,"")||Np(ke,""):Np(ke,L0(te,Ke)),ke.length>J?_z(ke,0,J):ke}:"0".split(void 0,0).length?function(U,re){return U===void 0&&re===0?[]:Oa(m,this,U,re)}:m,[function(U,re){var $=Ip(this),ee=U==null?void 0:IW(U,f);return ee?Oa(ee,U,$,re):Oa(K,vu($),U,re)},function(U,re){var $=el(this),ee=vu(U),te=M(K,$,ee,re,K!==m);if(te.done)return te.value;var J=function(Yt,Ft){var jt,Ht=el(Yt).constructor;return Ht===void 0||(jt=el(Ht)[gye])==null?Ft:function(bn){if(YW(bn))return bn;throw mye(DW(bn)+" is not a constructor")}(jt)}($,RegExp),he=$.unicode,me=($.ignoreCase?"i":"")+($.multiline?"m":"")+($.unicode?"u":"")+(Mp?"g":"y"),_e=new J(Mp?"^(?:"+$.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,Ke=0,rt=[];Ke<ee.length;){_e.lastIndex=Mp?0:Ke;var xt,Lt=xz(_e,Mp?L0(ee,Ke):ee);if(Lt===null||(xt=Tye(zW(_e.lastIndex+(Mp?Ke:0)),ee.length))===De)Ke=Eye(ee,Ke,he);else{if(Np(rt,L0(ee,De,Ke)),rt.length===ke)return rt;for(var wt=1;wt<=Lt.length-1;wt++)if(Np(rt,Lt[wt]),rt.length===ke)return rt;Ke=De=xt}}return Np(rt,L0(ee,De)),rt}]}(i,""[e],function(f,m,M,K,U){var re=$r(f),$=m.exec;return $===I0||$===zI.exec?a&&!U?{done:!0,value:s(m,M,K)}:{done:!0,value:re(M,m,K)}:{done:!1}});O0(String.prototype,e,u[0]),O0(zI,i,u[1])}r&&Lp(zI[i],"sham",!0)}("split",0,!!Na(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"}),Mp),B_({global:!0},{globalThis:Sr}),hs&&(Qe.fn.attr=hs);var Cye=BW.PROPER,GI=RegExp.prototype,Tz=GI.toString,Aye=$r(cz),Oye=Na(function(){return Tz.call({source:"a",flags:"b"})!="/a/b"}),Dye=Cye&&Tz.name!="toString";(Oye||Dye)&&O0(RegExp.prototype,"toString",function(){var e=el(this),t=vu(e.source),n=e.flags;return"/"+t+"/"+vu(n===void 0&&OW(GI,e)&&!("flags"in GI)?Aye(e):n)},{unsafe:!0});var Rye=function(){function e(){this.title=fn("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);B_({target:"String",proto:!0,forced:Na(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=vu(Ip(this)),r="<a",(r+=' name="'+Pye(vu(t),Lye,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var Sz=function(e){var t,n,r,i=function(te,J){var he=typeof Symbol=="function"&&te[Symbol.iterator];if(!he)return te;var me,_e,ke=he.call(te),De=[];try{for(;(J===void 0||J-- >0)&&!(me=ke.next()).done;)De.push(me.value)}catch(Ke){_e={error:Ke}}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 J=Ge.getParentNode(null,te);if(J&&Ge.getNodeType(J)==="code"){var he=Ge.getParentNode(null,J);if(he&&Ge.getNodeType(he)==="pre")return J}return null}(a);if(u==null)return s;var f=u.language,m=f===void 0?"":f;if(!m)return s;var M=function(te,J){if(!J)return[];var he=lz.languages[J];return he?lz.tokenize(te.text,he):[]}(a,m),K=0;try{for(var U=function(te){var J=typeof Symbol=="function"&&Symbol.iterator,he=J&&te[J],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(J?"Object is not iterable.":"Symbol.iterator is not defined.")}(M),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},Wi=function(){return Wi=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},Wi.apply(this,arguments)},Fa=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=Wi(Wi({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=Wi(Wi({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=Wi(Wi({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=Wi(Wi({},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=vs(vs({},s),i||{});if(sg[a]!=null)throw new Error("Duplicated key '"+a+"' in menu items");sg[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;Nb[r]=i}(t)},e.registerParseStyleHtml=function(t){!function(n){nC.push(n)}(t)},e.registerModule=function(t){Sh(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 Sh(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 Fa.registerMenu(m)}),n&&n.forEach(function(m){return Fa.registerRenderElem(m)}),r&&Fa.registerRenderStyle(r),i&&i.forEach(function(m){return Fa.registerElemToHtml(m)}),a&&Fa.registerStyleToHtml(a),o&&o.forEach(function(m){return Fa.registerPreParseHtml(m)}),s&&s.forEach(function(m){return Fa.registerParseElemHtml(m)}),u&&Fa.registerParseStyleHtml(u),f&&Fa.registerPlugin(f)}Goe.forEach(function(e){return Sh(e)}),Sh(_ue),Sh(Kde),Sh(eme),Sh(Gve),Sh(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:Wi(Wi({},Az),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Fa.setEditorConfig(Wi(Wi({},kye),{decorate:Sz}));var Mye={hoverbarKeys:Az};Fa.setSimpleEditorConfig(Wi(Wi({},Mye),{decorate:Sz}));var Nye={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:fn("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:fn("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:fn("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:fn("editor.image"),iconSvg:Cz,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:fn("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"]};Fa.setToolbarConfig(Nye);var Fye={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:fn("editor.image"),iconSvg:Cz,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function Bye(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"?Fa.simpleEditorConfig:Fa.editorConfig,m=Wi(Wi({},f.hoverbarKeys||{}),s.hoverbarKeys||{});return $q({selector:n,config:Wi(Wi(Wi({},f),s),{hoverbarKeys:m}),content:i,html:a,plugins:Fa.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"?Fa.simpleToolbarConfig:Fa.toolbarConfig,u=function(f,m){if(f==null)throw new Error("Cannot create toolbar, because editor is null");var M=m.selector,K=m.config,U=K===void 0?{}:K;if(function(ee,te){return WN(ee,"data-w-e-toolbar",te)}(f,M))throw new Error("Repeated create toolbar by selector '"+M+"'");var re=vs({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},U||{}),$=new ree(M,re);return xS.set($,f),Ab.set(f,$),$}(n,{selector:t,config:Wi(Wi({},s),i)});return u}Fa.setSimpleToolbarConfig(Fye);var Gye={}}).call(this,ie("IyRk"))},z4EP:function(Ot,Ne){Ot.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"}}]);