ixbrl-viewer 1.4.37__py3-none-any.whl → 1.4.39__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ixbrl-viewer might be problematic. Click here for more details.

@@ -1,2 +1,2 @@
1
1
  /*! For license information please see ixbrlviewer.js.LICENSE.txt */
2
- (()=>{var t={987:t=>{t.exports="data:font/woff;charset=utf-8;base64,d09GRgABAAAAABAYAAsAAAAAHtAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAZwAAALqP5ZCZE9TLzIAAAKkAAAAQQAAAGBW70wtY21hcAAAAugAAAGHAAAEbsdhAF1nbHlmAAAEcAAACHYAABCUIGCWk2hlYWQAAAzoAAAAJwAAADZjKUTdaGhlYQAADRAAAAAZAAAAJAgLBEtobXR4AAANLAAAAB4AAADYcRgAAGxvY2EAAA1MAAAARQAAAG6fzJwobWF4cAAADZQAAAAdAAAAIAFKAKJuYW1lAAANtAAAATAAAAI6/H8bLXBvc3QAAA7kAAABMwAAAcJ4jnoReJxlkksyA2EUhU83ISLxCILQHXnodELSBFMjZZShBciEUqWMLMDAIqzCGgwswcACLMASfPdGqjy6q/q/j3PPvff8rUBSQQc6VXh2PrzQwu3o/k5VTWv8WP6nHdzeXI+Un3jkpv3MKwgfVVSsoS51r1e9BS/BZxiG5fA8vFOoGW2DK4CIVdOO6mr42SSX/xFtadd5VzWLnaqtHpiux7aJRSCbHutrisousy9oicgAu6kMq8ZZd3+gQ76xSpr7h1ikejxBmzNiHuuxphx440+ZtkLNUFd60JOe2epdH2xSUgemPZ/ZOhm+TyylvvgnN9ky9y/TxtunJk+mRzTxSJ3TEBnvnOZ/ZVK8hNuaYrKIWIJCbawUfIw2hT8dTMsCLKbhLkrUXL0GrDnfOQNdhK32rWUM0yYVXZ1g1akwlHXcYrNx7yrICLxptYQWPTCpa2yRZVcvolvHGTeo2fSbHPBa92OtU9V1OwG14Z7tl8Bj/0lVK8zcct6eb239yo6b3Kf1qsDfwsscZxsHbBO53g0mML59KjOqjr4AE181SXicY2BhkmCcwMDKwMA0jekMAwNDP4RmfM1gxMgBFGVgZWbACgLSXFMYDjDEv5JlAXFjWGIYFIA0I4oiAQAn9wm3AAAAeJy101lS21AQheFftjFgzDwaPOF5ABvbONtxkRGKzDM7yQKyoDxlEdoEOe3uBeSFq/p0pC5JLdXVBVaArFxIDpK/JNj4o2qyrGcpLOs5fuu8wBoZbQvueEgrj4+qLbjhPk2Wxz4SXVfglGc6PqfChA4NBnraiD6XXNFlSpMabWZUGdOjxZA6c651d0Zdc3q3PKvqt65nbVBkky222WGXPfY54JAjjjmhpE4lziircZ6nHvqeSacxuBj19R3dabPWnlXHvdawPr9+8t7/N4q2y/yKM5uDRTiXm1CR52EiL0JHXoaGvAoDeR3sb3kTRnIb+nIXLuU+XMnb0JV3YSrvQ1M+hJp8DG35FGbyOVTlSxjL19CTb6El38NQfoS6/AxzeQiawTRx9venGYdl1tlqSXPOVky64mwlpXmH5arDcs1hue6wLDhbYemGw7LobCbTTYfllsNy22G547DcdVjuOSz3HZYHDstDh+WRw/LYYXnisCw5LE8dlmduWS87rFZxlP8BfxlqVAB4nM1XTWwb1xF+8x65S1K7JJdLkSZVi9xdcZchXUrmr2S58spO7UoybCWobdmtYaeum9QHwWlVoDl5DzUMOLcGOhQJEiNBi8I6tD340KZAWTcXswbiAm1zSFH70kORU3MLYK477/FHkmtF7akhd2fez8y+2fdmvpklQPBHO6xNJEJgBGpaTaOdR4/aLrR9DzxKfC5BdpajLni+5xMq5CKcsJsoFyN5MkVcskwukqvEIz8i66hZTY1qSckyTLuh1Zu1gmFKOJCqGdUmDtgWWKb9Fag3Z1FyLySl2i794P8oD8ao4Yz2FsRx2+IGsEjWtrM+4ZS/cGNpqUEF9edptlDIcvKzZ7T873z+9GW+NW5hDLyxQmHMR8o8O9v1xEJI3aVG1xOrIe22e1o7kV2mqet5YhlBhmfGFPoLomLHsevNag5azWoqKdPIZ+HEWPj+/XBWD4P3WXgswTs4NDzrXzMq9IRCDNKppGQ6cHOLKCVbHjLUu9nXkyXTrh/qLZumu+qhnZ7QEwtN9tRbm3aiNn3KTsb1ApEAIXFikgr3rnGajFKzQutztGVGaXKcVudovUIt3ZEdOS2nW+mWQyPn33vt2LHX3vtNj52/8v7ry8uvv//nHrtyv/L225V33hGUtTflOHM35Tjzh4JIyX/YVPxcm5jTSkN6N2sO//3sdQif3cWQbv7RuRugnuPLS8KQRYxBRmQyQgxSJvOEFIzG8K9bFTAl2doefWwQmVyGx0wFkGHIJiW5hox2fA4L/Tt/aWRlbWXkUnF6ukgJ0pCu+kTVqdtt6+rdUGTy8GQkdFfV2y7/gdtaWGhNF7ueUEDazau6rtK8izyyJ2pMThrRPRFd3fTdCG6nIXywbpsx9CVTSubQNZLpcag2D4FgOOnQViesZyP37kXQpTqdcDioKErw3j3Bwuhxg4m+UCQQDAY6HU6xw91WrNfGPashZhFo1ifBdlq2I9vYwLUl2ZHktIQNtCCVllPpVgob1UPQbKWbLafZCpoVqM/heUMyCuy3gcANJfVCYWrVLo0aTWO0ZK9OFV5IKTd2mvD/2Fip1Va+ywl88F+pbJ1Yra+8wlVfWakP3+cOW0ccTuH7PIWzOj9pzWAXuqcnqtUJehupnEkgipfZetXqnrKqVYtuWNUu0TK0RNCPyJNH7C/MIwnikIPkRfIy+SF5HZ+McC5DFEzbAbvZgjlAUJ/hzoWDaRAHhIONAo7wrRMDczCJvmXtl7cO7n/m6GDwqTiS5Gj/9OfA4fNsIyT5k1JMi0v+nxRQ4CNZDXH4je9V/OeykIGKmjfGVXigRn0SkAOS9ICFQiEmgfxhIBT4ZkBm8nCIN4LPGKLRUFyRZAWXESwcz6kZ2INPzikZmlHzcXbKfzeENsxJEm7BlGqp8IEklRXFn91zLON/qKqKAneVvPY9xqSE9NcAE/wjxs4OGjsOwIKsxLWYIklqLIEMn5o5luFPzBzNqiJuaA9/RJ7GmAdrDCzNKpShwjDYZce2ehA0y3cNgxvDGnMCHhpuLzbGAWM9hj0MOItG2qIQcIFK+49/a/r4NSelKI3zR4vFo+cbucriy6+eDGmRUjr37Zny8Vk7KB+qL8xPVXLLV68u49a3UZO4zfNfLS4cDADqXEHVw8HVpZOvUipPTLXGmwulAwBL9f1fCx6+euvqMO653+Lr6KPoA3uhhXa2oHEBD9y4bYxDmq17/u/GT5a6p35eOjkO814fd1mnj3mo28JEn8EyRUeM1YxF5j32XLeNJnVdz+U9hjVL28O+N8RtsW4c65b9aMjQ2XBn9N3KFvrQOHBi5cQBo8+8RCaT6J7mlN7eEmMT8Mm+EwdMk0vNmObMCfg6yp3SMhmNbiQypa2hRwLDWkohX0KrvtyPY0Prrfp0UAcxorcJsEXfHStQggWB/w/exEqkzTsFjuDUHc6yNlYnpDf7BPmmLMpQb3OShLft8wiii07SZIzkiIXnVdOsUbw5l/tc3HgWWv9ezOPv4pbL4/licLP2E+I+QS8YMn4z3uEXIUGx/u9x/Qyu6GCFeZBjUB0hwDCjMKpt3xKs/LCJh4cboxlykhcVmNDAEA6Oe5VMMc+ctXxizZq8KmO8COyKOjBrdz3a7vLVC80CXn4eXJ6x/DZSaIOHOlwXS7ononYEpCCKO597P+GVGGrCT/WsjpcITWH/Q7R/L7HJNFlE6zEu03Mg0myMg+ZorcGzCoIm2qgPbGZbAbDW2FZJ0MjzR0fy8apr6UoplYILobFEYnT8xSNlu1EoNOzyyltrR46svfXLHlt5acNbWPA27vbYS/STkrIYS6VTsWQoFy8a5fjY3qSml/ZVTwhPaNg2XT6y9uav3uTqgpUXr238YePaYp9tyTc5Hj0FgfloWs/MGk8CrQFcQy+oei/TYBvgf5qzamfWrq+dqSE73LpUxG1AjItLCkQeP9y3dPn7l5f29dl1APW5S80ja2eqVdT5wemalfM/hWBQkhRDgQcHNkWRzQz3vMPcvs9m0VPREwd/nsHK0FChUeNOs8iThvA85MzV1VscyG4VpykHEBfDwb+FNQ0i43QRLvJHB/vP98Q3zz481ecRf/pQYfShIziAikHQ6lt8ML1DuzP4UOAfDVR8KfS+Fy5CW3ii8Mcd2u2eE/c+bNzhFw1SSnoO6W1jPMf3ffOLmuPvfEFy/Pr/Ncf3cuQbzOSeFwZHDgOb8WfvnIMYzTHTP3jnG/6/aK7v9//E89TJBGaPGfH9nYZUlKJ7Vag4yAY/RUkApiMOYQg4Dd7gPswr/wiLBuCNAAuEI4//FgkHWBB+HIgyzQj7qwnHZhO2k/BXw/lEOTORGV5sPRB6/HFIlcJhSQ0zKxwoJ7THH5vz8yYraIkuSQjBn/A8CSVO0eJ/A759E3sAAHicY2BkYGAA4por+uzx/DZfGbhZGDDB/wcsXGBxDgYmEAUApnwFMgB4nGNgZGBgYQABFhEwycXAyIAKzAAEeABjAAAAeJxjYGBgYOHCg0WgGMZnQKJFcOghYCY9AAD0CAGJAAB4nGNgAAIRBg2Gd4xcjGqMToxxjCsYXzH5MLUwvWEWYX7B4sGSwtLCco5VgjWCdQebClsR2yJ2NvZb7O84vEiHAKrKFR0AAAB4nGNgZGBgMGOYxsDFAAJMQMwFZv8H8xkAHYgB7QAAAHicdc9NSsNAHAXwl36JLYgouBNmJYKQtHXXhct256KL7pN0kqakmTCZfoGn8ASewiO48hSewqWv8b8oUjPkn9+8vAwEwCU+4OFweejV83A1cMbdr5vUlbhF34rb9L24Qz+Ku3jAk7iHa2Q8wWudM7nBi7iBC7yKm8zfxC36XdymP8Ud+kvcxQzf4h7uvOdsF9l8k+mttlOdrvPQHiVHnGlbZaZQA79/lE50oW3o9FxFe1Vt0qFziUqsWamxKZzOc6NKa5Y6dv7CuXIUBInkfmxW/LsdIljk2NAaW94WU84Ua6Yhd6c7p9NZPSsmBgUUBvDR/6c74SxqhXB8ztmPsOes2EsxZOqQcJ+wY7CixvW5h3bOZZiU9bslk5i5j0X9VYkRAq7kT99niyf9AMXJamZ4nG2OWVfbMBCF/RGymYRS1pa10JbdbG3h53AUWbF1kCVHlhP494QG8sR9mfudmbkz0UI0Uxx9rnsWaLBIkxZtOnSJWaJHn2W+sMJXVlljnQ022eIb39lmh1322OeAHxxyxE9+8ZtjTjjljHMuuCThimtuuOWOP/zlH/c8RLHw3k2S1E1sZ2brMpbCyNqI4HxP5mrsnf0/MAejhqH/AV5neYg/qC57UntpVCK9q6qldwhaPnWl0eXACZ82pXGVakiXdVNdKFtpZ1fmLilUMVC+83bSOJG2htoE5ZuZF2XemjW7RW2CToLI2q4ORlvVLL22oTOqVRWmIa1KCS/zaTFKhnZVF4XwL43pwuLbL+2J8FbbDIHHMeGRFEtNicQQyFGMGaLJqHhiQMGIF56j6BUyWm88AA=="},59:t=>{t.exports="data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiCiAgIHhtbG5zOmlua3NjYXBlPSJodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy9uYW1lc3BhY2VzL2lua3NjYXBlIgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmcyIgogICB4bWw6c3BhY2U9InByZXNlcnZlIgogICB3aWR0aD0iNTM2LjM2NDc1IgogICBoZWlnaHQ9IjE1MC4zMTAwMyIKICAgdmlld0JveD0iMCAwIDUzNi4zNjQ3MyAxNTAuMzEwMDMiCiAgIHNvZGlwb2RpOmRvY25hbWU9ImFyZWxsZS1sb2dvLnN2ZyIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMC45Mi41ICgyMDYwZWMxZjlmLCAyMDIwLTA0LTA4KSI+PG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhOCI+PHJkZjpSREY+PGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPjxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PjxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz48ZGM6dGl0bGU+PC9kYzp0aXRsZT48L2NjOldvcms+PC9yZGY6UkRGPjwvbWV0YWRhdGE+PGRlZnMKICAgICBpZD0iZGVmczYiPjxjbGlwUGF0aAogICAgICAgY2xpcFBhdGhVbml0cz0idXNlclNwYWNlT25Vc2UiCiAgICAgICBpZD0iY2xpcFBhdGgxOCI+PHBhdGgKICAgICAgICAgZD0iTSAwLDEyMiBIIDc2OC41MDUgViAwIEggMCBaIgogICAgICAgICBpZD0icGF0aDE2IgogICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiCiAgICAgYm9yZGVyb3BhY2l0eT0iMSIKICAgICBvYmplY3R0b2xlcmFuY2U9IjEwIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwIgogICAgIGd1aWRldG9sZXJhbmNlPSIxMCIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTg2NCIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSIxMDI0IgogICAgIGlkPSJuYW1lZHZpZXc0IgogICAgIHNob3dncmlkPSJmYWxzZSIKICAgICBpbmtzY2FwZTp6b29tPSIwLjcyMDIyOTUzIgogICAgIGlua3NjYXBlOmN4PSI3ODguNzIwNTgiCiAgICAgaW5rc2NhcGU6Y3k9Ii04NC40NDIyMDQiCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjU2IgogICAgIGlua3NjYXBlOndpbmRvdy15PSIyNyIKICAgICBpbmtzY2FwZTp3aW5kb3ctbWF4aW1pemVkPSIxIgogICAgIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9ImcxMCIKICAgICBmaXQtbWFyZ2luLXRvcD0iMCIKICAgICBmaXQtbWFyZ2luLWxlZnQ9IjAiCiAgICAgZml0LW1hcmdpbi1yaWdodD0iMCIKICAgICBmaXQtbWFyZ2luLWJvdHRvbT0iMCIgLz48ZwogICAgIGlkPSJnMTAiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpbmtzY2FwZTpsYWJlbD0iYXJlbGxlLWxvZ28iCiAgICAgdHJhbnNmb3JtPSJtYXRyaXgoMS4zMzMzMzMzLDAsMCwtMS4zMzMzMzMzLC0zLjY1MDgxNDEsMTU5LjMyNzc3KSI+PGcKICAgICAgIGlkPSJnMTIiPjxnCiAgICAgICAgIGlkPSJnMTQiCiAgICAgICAgIGNsaXAtcGF0aD0idXJsKCNjbGlwUGF0aDE4KSI+PGcKICAgICAgICAgICBpZD0iZzIwIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwOS42Njg5LDY3LjE2MzEpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAtMS41OTgsMi42NTMgLTcuMjkyLDUuOTg3IC04LjgwOCwxNS4zMDcgLTAuODA0LDQuOTQ5IDAuNTY5LDcuOTk0IDEuOTU1LDEyLjE4MSAxLjQ4OCw0LjQ3MSAtMS4wNTksNy4yNDQgLTUuMzgsNy40MDggLTguNjQ0LDAuMzMgLTMxLjkwNywtMi4yMTEgLTU3LjYzOCwxMS4yODggLTEwLjA2Niw1LjI4IC0xMC43NTksMy45MjIgLTcuMDc2LC0yLjU2NiA1LjY0NSwtOS45NTIgMTkuMzc4LC0xNS4zMzQgMzUuNjg3LC0xOC4wMDUgLTQ1LjM5Nyw5LjgyNSAtMTcuMTY2LC0yLjE3NCA1LjA5OCwtNy4xMjcgLTQxLjA1Niw4LjQ4NCAtMTUuNjI1LC0zLjAzNSA0LjQ0OCwtNi43MTEgLTM4LjQ3NSw2LjgyMSAtMTEuMzg3LC0yLjk3OCAxLjQ3NywtNS40MjggMy44NjIsLTAuNzM2IDEyLjM5MSwtMTMuMDI2IDE4LjA1NCwtMTAuMjczIDYuMzE3LDMuMDY5IDQuNDg4LDAuNjg5IDcuNDc5LDIuMDI2IEMgMC41NjYsMC40NTggMCwwIDAsMCIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOiNhYTExOGU7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmUiCiAgICAgICAgICAgICBpZD0icGF0aDIyIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzI0IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwOS42Njg5LDY3LjE2MzEpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAtMS41OTgsMi42NTMgLTcuMjkyLDUuOTg3IC04LjgwOCwxNS4zMDcgLTAuODA0LDQuOTQ5IDAuNTY5LDcuOTk0IDEuOTU1LDEyLjE4MSAxLjQ4OCw0LjQ3MSAtMS4wNTksNy4yNDQgLTUuMzgsNy40MDggLTguNjQ0LDAuMzMgLTMxLjkwNywtMi4yMTEgLTU3LjYzOCwxMS4yODggLTEwLjA2Niw1LjI4IC0xMC43NTksMy45MjIgLTcuMDc2LC0yLjU2NiA1LjY0NSwtOS45NTIgMTkuMzc4LC0xNS4zMzQgMzUuNjg3LC0xOC4wMDUgLTQ1LjM5Nyw5LjgyNSAtMTcuMTY2LC0yLjE3NCA1LjA5OCwtNy4xMjcgLTQxLjA1Niw4LjQ4NCAtMTUuNjI1LC0zLjAzNSA0LjQ0OCwtNi43MTEgLTM4LjQ3NSw2LjgyMSAtMTEuMzg3LC0yLjk3OCAxLjQ3NywtNS40MjggMy44NjIsLTAuNzM2IDEyLjM5MSwtMTMuMDI2IDE4LjA1NCwtMTAuMjczIDYuMzE3LDMuMDY5IDQuNDg4LDAuNjg5IDcuNDc5LDIuMDI2IEMgMC41NjYsMC40NTggMCwwIDAsMCBaIgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2ZmZmZmZjtzdHJva2Utd2lkdGg6MS4wMzEwMDAwMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoMjYiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnMjgiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTM3Ljg2MzMsNDMuMDIzNCkiPjxwYXRoCiAgICAgICAgICAgICBkPSJtIDAsMCBjIDAsLTE2LjcxMiAtMTMuNTQ4LC0zMC4yNjIgLTMwLjI2MywtMzAuMjYyIC0xNi43MTUsMCAtMzAuMjYzLDEzLjU1IC0zMC4yNjMsMzAuMjYyIDAsMTYuNzE0IDEzLjU0OCwzMC4yNjQgMzAuMjYzLDMwLjI2NCBDIC0xMy41NDgsMzAuMjY0IDAsMTYuNzE0IDAsMCIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmUiCiAgICAgICAgICAgICBpZD0icGF0aDMwIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzMyIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEzNy44NjMzLDQzLjAyMzQpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAwLC0xNi43MTIgLTEzLjU0OCwtMzAuMjYyIC0zMC4yNjMsLTMwLjI2MiAtMTYuNzE1LDAgLTMwLjI2MywxMy41NSAtMzAuMjYzLDMwLjI2MiAwLDE2LjcxNCAxMy41NDgsMzAuMjY0IDMwLjI2MywzMC4yNjQgQyAtMTMuNTQ4LDMwLjI2NCAwLDE2LjcxNCAwLDAgWiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDM0IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzM2IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEyNi4xNTcyLDEwLjQzMjYpIj48cGF0aAogICAgICAgICAgICAgZD0iTSAwLDAgMTMuNDUyLDYzLjU4NiBIIDI0LjQ1OCBMIDIyLjAxMiwtMS4yMjIgWiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmUiCiAgICAgICAgICAgICBpZD0icGF0aDM4IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzQwIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE0MCw3My42NzUzKSI+PHBhdGgKICAgICAgICAgICAgIGQ9Ik0gMCwwIC0xMy4wODYsLTYxLjU1MyIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDQyIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzQ0IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIwOC43ODcxLDQzLjAyMzQpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAwLC0xNi43MTIgLTEzLjU0OCwtMzAuMjYyIC0zMC4yNjUsLTMwLjI2MiAtMTYuNzEsMCAtMzAuMjYsMTMuNTUgLTMwLjI2LDMwLjI2MiAwLDE2LjcxNCAxMy41NSwzMC4yNjQgMzAuMjYsMzAuMjY0IEMgLTEzLjU0OCwzMC4yNjQgMCwxNi43MTQgMCwwIFoiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojYWExMThlO3N0cm9rZS13aWR0aDozLjgwNTAwMDA3O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICAgICAgaWQ9InBhdGg0NiIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc0OCIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNTAuNjE1Miw2NC4yMzczKSI+PHBhdGgKICAgICAgICAgICAgIGQ9Im0gMCwwIDguNTU4LC03LjMzOSAzOS4xMzIsMi40NDcgMTEuMDA2LDMuNjY5IDQuODksLTMxLjc5MyAtMjMuMjMyLC0yNC40NTggSCAxNC42NzMgbCAtMjMuODQ4LDI1LjY3OSB6IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGlkPSJwYXRoNTAiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnNTIiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTU3LjExOTEsNzMuNjc1MykiPjxwYXRoCiAgICAgICAgICAgICBkPSJNIDAsMCAtMTMuMDgzLC02MS41NTMiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojYWExMThlO3N0cm9rZS13aWR0aDozLjgwNTAwMDA3O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICAgICAgaWQ9InBhdGg1NCIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc1NiIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzMDIuNDA1MywxMTIuODcwMSkiPjxwYXRoCiAgICAgICAgICAgICBkPSJNIDAsMCAtMjEuNDEzLC0xMDAuNzQ4IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2FhMTE4ZTtzdHJva2Utd2lkdGg6My44MDUwMDAwNztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoNTgiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnNjAiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzIxLjk2ODgsMTEyLjg3MDEpIj48cGF0aAogICAgICAgICAgICAgZD0iTSAwLDAgLTIxLjQxMSwtMTAwLjc0OCIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDYyIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzY0IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM4Ni4wOTc3LDQzLjAyMzQpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAwLC0xNi43MTIgLTEzLjU0OCwtMzAuMjYyIC0zMC4yNjIsLTMwLjI2MiAtMTYuNzE3LDAgLTMwLjI2NCwxMy41NSAtMzAuMjY0LDMwLjI2MiAwLDE2LjcxNCAxMy41NDcsMzAuMjY0IDMwLjI2NCwzMC4yNjQgQyAtMTMuNTQ4LDMwLjI2NCAwLDE2LjcxNCAwLDAgWiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDY2IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzY4IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM3My4yODMyLDY4LjM1MjUpIj48cGF0aAogICAgICAgICAgICAgZD0iTSAwLDAgLTM2LjAyOSwtNDkuNTg2IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2FhMTE4ZTtzdHJva2Utd2lkdGg6My44MDUwMDAwNztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoNzAiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnNzIiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjcyLjM3NCw0My4wMjM0KSI+PHBhdGgKICAgICAgICAgICAgIGQ9Im0gMCwwIGMgMCwtMTYuNzEyIC0xMy41NDksLTMwLjI2MiAtMzAuMjYzLC0zMC4yNjIgLTE2LjcxMywwIC0zMC4yNjEsMTMuNTUgLTMwLjI2MSwzMC4yNjIgMCwxNi43MTQgMTMuNTQ4LDMwLjI2NCAzMC4yNjEsMzAuMjY0IEMgLTEzLjU0OSwzMC4yNjQgMCwxNi43MTQgMCwwIFoiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojYWExMThlO3N0cm9rZS13aWR0aDozLjgwNTAwMDA3O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICAgICAgaWQ9InBhdGg3NCIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc3NiIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNTkuNTU5Niw2OC4zNTI1KSI+PHBhdGgKICAgICAgICAgICAgIGQ9Ik0gMCwwIC0zNi4wMjYsLTQ5LjU4NiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDc4IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzgwIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI3NC43MzM0LDE3Ljc3MDUpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgLTE4LjM0Miw2LjExNCAxLjgzNiwzOC43MjEgNC44OSw3LjU0MiAxNC4wNjIsLTEyLjAyNCB6IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGlkPSJwYXRoODIiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnODQiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzg4LjI1MjksMTcuNTY1OSkiPjxwYXRoCiAgICAgICAgICAgICBkPSJtIDAsMCAtMTguMzQzLDYuMTE0IDEuODM3LDM4LjcyMSA0Ljg4OSw3LjU0MyAxNC4wNjMsLTEyLjAyNCB6IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGlkPSJwYXRoODYiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnODgiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOTcuMjYwNyw3Mi44NjUyKSI+PHBhdGgKICAgICAgICAgICAgIGQ9Im0gMCwwIGMgLTIuMTIxLDIuNzgyIC04LjUzOSw1LjIzOSAtMTEuMzksMTUuNTIxIC0xLjUxNCw1LjQ1OCAtMC4zNDgsOS4wNDggMC42OTcsMTMuOTIgMS4xMTcsNS4yMDUgLTIuMDg4LDguMDA0IC02Ljk2MSw3LjY1NiAtOS43NDQsLTAuNjk2IC0zNS41NTksLTYuNDE4IC02Ni4xMjIsNS41NjkgLTExLjk1Niw0LjY4OCAtMTAuNzY1LDQuMDY4IC03LjYzLC0zLjc1NSA0Ljk4NCwtMTIuNDM5IDI2LjUwNywtMjEuNzg5IDQ1LjE1MiwtMjIuNzc3IC0xMC4xMDYsMC45MDkgLTIyLjE0LDMuMTI5IC0yNS41MDIsNC4wMDEgLTEzLjUsMy41IDcsLTEzLjUgMzQuNTAyLC0xNC4yNTEgLTcuNDg0LDAuMjM3IC0xOS41OTgsMS40ODYgLTIyLjUsMi4yNSAtMTksNSA0LC0xMS45OTkgMzIuMjUsLTEzLjUwMiA0LjQzNiwtMC4yMzYgMTUuNzMxLC02Ljg5MiAyMS44NjksLTMuMjk1IDMuODM0LDIuMjQ2IDEuMzc5LDAuODAxIDMuODM0LDIuMjQ2IEMgMy44ODgsLTMuMDY4IDAsMCAwLDAiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDojNzdkMWM4O2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lIgogICAgICAgICAgICAgaWQ9InBhdGg5MCIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc5MiIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSg5Ny4yNjA3LDcyLjg2NTIpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAtMi4xMjEsMi43ODIgLTguNTM5LDUuMjM5IC0xMS4zOSwxNS41MjEgLTEuNTE0LDUuNDU4IC0wLjM0OCw5LjA0OCAwLjY5NywxMy45MiAxLjExNyw1LjIwNSAtMi4wODgsOC4wMDQgLTYuOTYxLDcuNjU2IC05Ljc0NCwtMC42OTYgLTM1LjU1OSwtNi40MTggLTY2LjEyMiw1LjU2OSAtMTEuOTU2LDQuNjg4IC0xMC43NjUsNC4wNjggLTcuNjMsLTMuNzU1IDQuOTg0LC0xMi40MzkgMjYuNTA3LC0yMS43ODkgNDUuMTUyLC0yMi43NzcgLTEwLjEwNiwwLjkwOSAtMjIuMTQsMy4xMjkgLTI1LjUwMiw0LjAwMSAtMTMuNSwzLjUgNywtMTMuNSAzNC41MDIsLTE0LjI1MSAtNy40ODQsMC4yMzcgLTE5LjU5OCwxLjQ4NiAtMjIuNSwyLjI1IC0xOSw1IDQsLTExLjk5OSAzMi4yNSwtMTMuNTAyIDQuNDM2LC0wLjIzNiAxNS43MzEsLTYuODkyIDIxLjg2OSwtMy4yOTUgMy44MzQsMi4yNDYgMS4zNzksMC44MDEgMy44MzQsMi4yNDYgQyAzLjg4OCwtMy4wNjggMCwwIDAsMCBaIgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2ZmZmZmZjtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoOTQiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48L2c+PC9nPjx0ZXh0CiAgICAgICB0cmFuc2Zvcm09Im1hdHJpeCgxLDAsMCwtMSwzODkuNDk5LDYyLjk5NjEpIgogICAgICAgc3R5bGU9ImZvbnQtdmFyaWFudDpub3JtYWw7Zm9udC13ZWlnaHQ6bm9ybWFsO2ZvbnQtc3RyZXRjaDpub3JtYWw7Zm9udC1zaXplOjE4cHg7Zm9udC1mYW1pbHk6J1RyZWJ1Y2hldCBNUyc7LWlua3NjYXBlLWZvbnQtc3BlY2lmaWNhdGlvbjpUcmVidWNoZXRNUzt3cml0aW5nLW1vZGU6bHItdGI7ZmlsbDojYWExMThlO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lIgogICAgICAgaWQ9InRleHQ5OCI+PHRzcGFuCiAgICAgICAgIHg9IjAiCiAgICAgICAgIHk9IjAiCiAgICAgICAgIGlkPSJ0c3Bhbjk2Ij7CrjwvdHNwYW4+PC90ZXh0Pgo8L2c+PC9zdmc+"},285:t=>{t.exports="data:image/vnd.microsoft.icon;charset=utf-8;base64,AAABAAEAEBAAAAEACABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAQAEAAAAAAAAAAAAAAAEAAAAAAADNm9sA6urFANvamwD7+/MA5cLuAPX04gDNzHUA+/v1APT04QDQz34AzMtxAOHhrQDe3aQA7+/TANbVjQDo6MAA/v79AM7NeQDn5rsA8/PdAPLy2wDi4a4A5uW6AO3tzgD5+fAA/v78APn57gD4+OwA9vbmAOXktgDc3J8A9fXkAOHgrADs2PEA5eW4AI4hqwDLym8A////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIyMlIyUlIyMlIyUjJSMjJQAjISMhJSMlJSMEIwQjISUlISMhIyUhIwAhIyEjISMAJSMjJSMjJSMjJSMlIyUjIyUlJSUlJSUlJSUjJSMlJSUlJSUlJSUlJSUlJSUcEiQdJSUlJSUlJRkNICQkJCQkJCUlJSUlByQkJCQkJCQkJAolJSUlGiIiIiIiIiQkJCQXJSUlJR8iAiQkJCQkJCQOJSUlJSQkBiQkJCQkJCQkFiUlJRAiIiIiIiQkJCQkJA8lJQMiAiQkJCQkJCQkJCQVJRgRJCQkJCQkJCQkJCQkDCUeJCQGAgEIBQcbBRMBAQMlCQsUJSUlJSUlJSUlJSUlJQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="},778:t=>{t.exports="data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDIyLjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMzQuOSAzMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTM0LjkgMzA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojNTk1OTU5O30KCS5zdDF7ZmlsbDojNjZDQzAwO30KPC9zdHlsZT4KPGc+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTYuMywyMS42aC0yLjR2LTEzaDIuNFYyMS42eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTIxLjMsMTMuNWMwLjItMC4yLDAuNC0wLjQsMC42LTAuNWMwLjItMC4yLDAuNC0wLjMsMC43LTAuNGMwLjItMC4xLDAuNS0wLjIsMC43LTAuM2MwLjMtMC4xLDAuNi0wLjEsMC45LTAuMQoJCWMwLjUsMCwxLDAuMSwxLjMsMC4zczAuNywwLjQsMSwwLjdzMC41LDAuNywwLjYsMS4xYzAuMSwwLjQsMC4yLDAuOSwwLjIsMS40djUuOWgtMi4ydi01LjljMC0wLjYtMC4xLTEtMC40LTEuM1MyNCwxNCwyMy41LDE0CgkJYy0wLjQsMC0wLjcsMC4xLTEuMSwwLjNjLTAuMywwLjItMC43LDAuNC0xLDAuN3Y2LjdoLTIuMnYtOS4yaDEuNGMwLjMsMCwwLjUsMC4xLDAuNiwwLjRMMjEuMywxMy41eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTMyLjEsOC4ydjEzLjRoLTIuMlY4LjJIMzIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0zNy4zLDkuN2MwLDAuMiwwLDAuNC0wLjEsMC41cy0wLjIsMC4zLTAuMywwLjRzLTAuMywwLjItMC41LDAuM2MtMC4yLDAuMS0wLjQsMC4xLTAuNiwwLjEKCQljLTAuMiwwLTAuNCwwLTAuNS0wLjFjLTAuMi0wLjEtMC4zLTAuMi0wLjQtMC4zcy0wLjItMC4zLTAuMy0wLjRjLTAuMS0wLjItMC4xLTAuMy0wLjEtMC41YzAtMC4yLDAtMC40LDAuMS0wLjYKCQljMC4xLTAuMiwwLjItMC4zLDAuMy0wLjVzMC4zLTAuMiwwLjQtMC4zczAuNC0wLjEsMC41LTAuMWMwLjIsMCwwLjQsMCwwLjYsMC4xYzAuMiwwLjEsMC4zLDAuMiwwLjUsMC4zczAuMiwwLjMsMC4zLDAuNQoJCVMzNy4zLDkuNSwzNy4zLDkuN3ogTTM2LjksMTIuNHY5LjJoLTIuMnYtOS4ySDM2Ljl6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDEuNywxMy41YzAuMi0wLjIsMC40LTAuNCwwLjYtMC41YzAuMi0wLjIsMC40LTAuMywwLjctMC40YzAuMi0wLjEsMC41LTAuMiwwLjctMC4zYzAuMy0wLjEsMC42LTAuMSwwLjktMC4xCgkJYzAuNSwwLDEsMC4xLDEuMywwLjNjMC40LDAuMiwwLjcsMC40LDEsMC43YzAuMywwLjMsMC41LDAuNywwLjYsMS4xczAuMiwwLjksMC4yLDEuNHY1LjloLTIuMnYtNS45YzAtMC42LTAuMS0xLTAuNC0xLjMKCQljLTAuMy0wLjMtMC43LTAuNS0xLjItMC41Yy0wLjQsMC0wLjcsMC4xLTEuMSwwLjNjLTAuMywwLjItMC43LDAuNC0xLDAuN3Y2LjdoLTIuMnYtOS4yaDEuNGMwLjMsMCwwLjUsMC4xLDAuNiwwLjRMNDEuNywxMy41eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTUxLjksMTcuM2MwLDAuNSwwLjEsMC45LDAuMywxLjJjMC4xLDAuMywwLjMsMC42LDAuNSwwLjlzMC41LDAuNCwwLjgsMC41czAuNiwwLjIsMSwwLjJjMC40LDAsMC43LDAsMC45LTAuMQoJCXMwLjUtMC4yLDAuNy0wLjNjMC4yLTAuMSwwLjQtMC4yLDAuNS0wLjNjMC4xLTAuMSwwLjMtMC4xLDAuNC0wLjFjMC4yLDAsMC4zLDAuMSwwLjQsMC4ybDAuNiwwLjhjLTAuMiwwLjMtMC41LDAuNS0wLjgsMC43CgkJcy0wLjYsMC40LTEsMC41Yy0wLjMsMC4xLTAuNywwLjItMSwwLjJzLTAuNywwLjEtMSwwLjFjLTAuNiwwLTEuMi0wLjEtMS44LTAuM2MtMC42LTAuMi0xLTAuNS0xLjQtMC45cy0wLjctMC45LTEtMS41CgkJYy0wLjItMC42LTAuNC0xLjMtMC40LTIuMWMwLTAuNiwwLjEtMS4yLDAuMy0xLjhjMC4yLTAuNiwwLjUtMSwwLjktMS40YzAuNC0wLjQsMC44LTAuNywxLjQtMWMwLjUtMC4yLDEuMi0wLjQsMS45LTAuNAoJCWMwLjYsMCwxLjEsMC4xLDEuNiwwLjNjMC41LDAuMiwwLjksMC41LDEuMywwLjhjMC40LDAuNCwwLjYsMC44LDAuOCwxLjNjMC4yLDAuNSwwLjMsMS4xLDAuMywxLjhjMCwwLjMsMCwwLjYtMC4xLDAuNwoJCWMtMC4xLDAuMS0wLjIsMC4yLTAuNCwwLjJINTEuOXogTTU2LjEsMTUuOWMwLTAuMywwLTAuNi0wLjEtMC44Yy0wLjEtMC4zLTAuMi0wLjUtMC40LTAuN2MtMC4yLTAuMi0wLjQtMC4zLTAuNi0wLjUKCQljLTAuMi0wLjEtMC41LTAuMi0wLjktMC4yYy0wLjYsMC0xLjEsMC4yLTEuNSwwLjVjLTAuNCwwLjQtMC42LDAuOS0wLjcsMS42SDU2LjF6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNzYuNSw4LjZsLTUuMywxM2gtMi4ybC01LjMtMTNoMS45YzAuMiwwLDAuNCwwLjEsMC41LDAuMnMwLjIsMC4yLDAuMywwLjRsMy4xLDcuOWMwLjEsMC4zLDAuMiwwLjUsMC4zLDAuOQoJCWMwLjEsMC4zLDAuMiwwLjYsMC4zLDFjMC4xLTAuMywwLjEtMC43LDAuMi0xczAuMi0wLjYsMC4zLTAuOWwzLjEtNy45YzAtMC4xLDAuMS0wLjMsMC4zLTAuNGMwLjEtMC4xLDAuMy0wLjIsMC41LTAuMkg3Ni41eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTgwLjcsOS43YzAsMC4yLDAsMC40LTAuMSwwLjVjLTAuMSwwLjItMC4yLDAuMy0wLjMsMC40Yy0wLjEsMC4xLTAuMywwLjItMC41LDAuM2MtMC4yLDAuMS0wLjQsMC4xLTAuNiwwLjEKCQljLTAuMiwwLTAuNCwwLTAuNS0wLjFjLTAuMi0wLjEtMC4zLTAuMi0wLjQtMC4zcy0wLjItMC4zLTAuMy0wLjRzLTAuMS0wLjMtMC4xLTAuNWMwLTAuMiwwLTAuNCwwLjEtMC42czAuMi0wLjMsMC4zLTAuNQoJCXMwLjMtMC4yLDAuNC0wLjNzMC40LTAuMSwwLjUtMC4xYzAuMiwwLDAuNCwwLDAuNiwwLjFzMC4zLDAuMiwwLjUsMC4zYzAuMSwwLjEsMC4yLDAuMywwLjMsMC41QzgwLjcsOS4zLDgwLjcsOS41LDgwLjcsOS43egoJCSBNODAuNCwxMi40djkuMmgtMi4ydi05LjJIODAuNHoiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik04NC43LDE3LjNjMCwwLjUsMC4xLDAuOSwwLjMsMS4yYzAuMSwwLjMsMC4zLDAuNiwwLjUsMC45czAuNSwwLjQsMC44LDAuNXMwLjYsMC4yLDEsMC4yYzAuNCwwLDAuNywwLDAuOS0wLjEKCQljMC4zLTAuMSwwLjUtMC4yLDAuNy0wLjNzMC40LTAuMiwwLjUtMC4zYzAuMS0wLjEsMC4zLTAuMSwwLjQtMC4xYzAuMiwwLDAuMywwLjEsMC40LDAuMmwwLjYsMC44Yy0wLjIsMC4zLTAuNSwwLjUtMC44LDAuNwoJCWMtMC4zLDAuMi0wLjYsMC40LTEsMC41Yy0wLjMsMC4xLTAuNywwLjItMSwwLjJjLTAuMywwLTAuNywwLjEtMSwwLjFjLTAuNiwwLTEuMi0wLjEtMS44LTAuM3MtMS0wLjUtMS40LTAuOQoJCWMtMC40LTAuNC0wLjctMC45LTEtMS41Yy0wLjItMC42LTAuNC0xLjMtMC40LTIuMWMwLTAuNiwwLjEtMS4yLDAuMy0xLjhjMC4yLTAuNiwwLjUtMSwwLjktMS40czAuOC0wLjcsMS40LTEKCQljMC41LTAuMiwxLjItMC40LDEuOS0wLjRjMC42LDAsMS4xLDAuMSwxLjYsMC4zYzAuNSwwLjIsMC45LDAuNSwxLjMsMC44YzAuNCwwLjQsMC42LDAuOCwwLjgsMS4zYzAuMiwwLjUsMC4zLDEuMSwwLjMsMS44CgkJYzAsMC4zLDAsMC42LTAuMSwwLjdjLTAuMSwwLjEtMC4yLDAuMi0wLjQsMC4ySDg0Ljd6IE04OSwxNS45YzAtMC4zLDAtMC42LTAuMS0wLjhjLTAuMS0wLjMtMC4yLTAuNS0wLjQtMC43CgkJYy0wLjItMC4yLTAuNC0wLjMtMC42LTAuNWMtMC4yLTAuMS0wLjUtMC4yLTAuOS0wLjJjLTAuNiwwLTEuMSwwLjItMS41LDAuNWMtMC40LDAuNC0wLjYsMC45LTAuNywxLjZIODl6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTA2LDEyLjRsLTIuOSw5LjJoLTEuOGMtMC4yLDAtMC4zLTAuMS0wLjQtMC40bC0xLjctNS4zYy0wLjEtMC4yLTAuMS0wLjQtMC4xLTAuNWMwLTAuMi0wLjEtMC40LTAuMS0wLjUKCQljMCwwLjItMC4xLDAuNC0wLjEsMC41cy0wLjEsMC40LTAuMSwwLjVMOTcsMjEuMmMtMC4xLDAuMy0wLjIsMC40LTAuNSwwLjRoLTEuN2wtMi45LTkuMmgxLjhjMC4yLDAsMC4zLDAsMC40LDAuMQoJCWMwLjEsMC4xLDAuMiwwLjIsMC4yLDAuM2wxLjMsNC45YzAuMSwwLjMsMC4xLDAuNSwwLjIsMC44YzAuMSwwLjMsMC4xLDAuNSwwLjEsMC44YzAuMS0wLjMsMC4xLTAuNSwwLjItMC44CgkJYzAuMS0wLjMsMC4yLTAuNSwwLjItMC44bDEuNS00LjljMC0wLjEsMC4xLTAuMiwwLjItMC4zYzAuMS0wLjEsMC4yLTAuMSwwLjQtMC4xaDFjMC4yLDAsMC4zLDAsMC40LDAuMWMwLjEsMC4xLDAuMiwwLjIsMC4yLDAuMwoJCWwxLjUsNC45YzAuMSwwLjMsMC4yLDAuNSwwLjIsMC44YzAuMSwwLjMsMC4xLDAuNSwwLjIsMC44YzAuMS0wLjUsMC4yLTEsMC4zLTEuNmwxLjQtNC45YzAtMC4xLDAuMS0wLjIsMC4yLTAuMwoJCWMwLjEtMC4xLDAuMi0wLjEsMC40LTAuMUgxMDZ6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTA5LjEsMTcuM2MwLDAuNSwwLjEsMC45LDAuMywxLjJjMC4xLDAuMywwLjMsMC42LDAuNSwwLjlzMC41LDAuNCwwLjgsMC41czAuNiwwLjIsMSwwLjIKCQljMC40LDAsMC43LDAsMC45LTAuMXMwLjUtMC4yLDAuNy0wLjNjMC4yLTAuMSwwLjQtMC4yLDAuNS0wLjNjMC4xLTAuMSwwLjMtMC4xLDAuNC0wLjFjMC4yLDAsMC4zLDAuMSwwLjQsMC4ybDAuNiwwLjgKCQljLTAuMiwwLjMtMC41LDAuNS0wLjgsMC43cy0wLjYsMC40LTEsMC41Yy0wLjMsMC4xLTAuNywwLjItMSwwLjJzLTAuNywwLjEtMSwwLjFjLTAuNiwwLTEuMi0wLjEtMS44LTAuM2MtMC42LTAuMi0xLTAuNS0xLjQtMC45CgkJcy0wLjctMC45LTEtMS41Yy0wLjItMC42LTAuNC0xLjMtMC40LTIuMWMwLTAuNiwwLjEtMS4yLDAuMy0xLjhjMC4yLTAuNiwwLjUtMSwwLjktMS40YzAuNC0wLjQsMC44LTAuNywxLjQtMQoJCWMwLjUtMC4yLDEuMi0wLjQsMS45LTAuNGMwLjYsMCwxLjEsMC4xLDEuNiwwLjNjMC41LDAuMiwwLjksMC41LDEuMywwLjhjMC40LDAuNCwwLjYsMC44LDAuOCwxLjNjMC4yLDAuNSwwLjMsMS4xLDAuMywxLjgKCQljMCwwLjMsMCwwLjYtMC4xLDAuN2MtMC4xLDAuMS0wLjIsMC4yLTAuNCwwLjJIMTA5LjF6IE0xMTMuNCwxNS45YzAtMC4zLDAtMC42LTAuMS0wLjhjLTAuMS0wLjMtMC4yLTAuNS0wLjQtMC43CgkJYy0wLjItMC4yLTAuNC0wLjMtMC42LTAuNWMtMC4yLTAuMS0wLjUtMC4yLTAuOS0wLjJjLTAuNiwwLTEuMSwwLjItMS41LDAuNWMtMC40LDAuNC0wLjYsMC45LTAuNywxLjZIMTEzLjR6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTE5LjYsMTRjMC4zLTAuNiwwLjYtMSwxLTEuM2MwLjQtMC4zLDAuOS0wLjUsMS40LTAuNWMwLjQsMCwwLjgsMC4xLDEsMC4zbC0wLjEsMS43YzAsMC4xLTAuMSwwLjItMC4xLDAuMgoJCWMtMC4xLDAtMC4xLDAuMS0wLjIsMC4xYy0wLjEsMC0wLjIsMC0wLjQsMGMtMC4yLDAtMC4zLDAtMC41LDBjLTAuMiwwLTAuNSwwLTAuNywwLjFzLTAuNCwwLjItMC41LDAuM2MtMC4yLDAuMS0wLjMsMC4zLTAuNCwwLjUKCQljLTAuMSwwLjItMC4yLDAuNC0wLjMsMC43djUuN2gtMi4ydi05LjJoMS4zYzAuMiwwLDAuNCwwLDAuNSwwLjFjMC4xLDAuMSwwLjIsMC4yLDAuMiwwLjRMMTE5LjYsMTR6Ii8+CjwvZz4KPC9zdmc+Cg=="},864:(t,e,n)=>{var i=n(758),r=n(935),s=n(62),o=n(987),a=r(i),l=s(o);a.push([t.id,`html {\n font-size: 62.5%;\n}\nbody {\n margin: 0;\n}\n@font-face {\n font-family: viewericons;\n src: url(${l});\n font-weight: normal;\n font-style: normal;\n}\n/* Styles common to both inspector and highlighting used within iframe */\n.linked-highlight-text {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n}\n.linked-highlight-cell {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\ninput[type="text"],\nselect,\nbutton {\n padding: 7px 5px;\n border: solid 1px #cbcbcb;\n border-radius: 5px;\n color: #595959;\n background-color: #fff;\n box-sizing: border-box;\n}\n.square-button-bare {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n}\n.square-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n.square-button:last-of-type {\n margin-right: 0;\n}\n.square-button:first-of-type {\n margin-left: 0;\n}\n.square-button.primary {\n color: #fff;\n border-color: #0085e6;\n background-color: #0094ff;\n}\n.wk-checkbox,\nlabel.checkbox {\n position: relative;\n padding-left: 2.2rem;\n cursor: pointer;\n user-select: none;\n line-height: 1.6rem;\n}\n.wk-checkbox input,\nlabel.checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n.wk-checkbox .checkmark,\nlabel.checkbox .checkmark {\n position: absolute;\n box-sizing: border-box;\n top: 0;\n left: 0;\n width: 1.6rem;\n height: 1.6rem;\n border-radius: 0.4rem;\n border: solid 0.1rem #cbcbcb;\n}\n.wk-checkbox input:checked ~ .checkmark::before,\nlabel.checkbox input:checked ~ .checkmark::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0.4rem;\n width: 0.4rem;\n height: 1.1rem;\n border: solid #026dce;\n border-width: 0 0.2rem 0.2rem 0;\n transform: rotate(45deg);\n}\ninput:disabled {\n background-color: #eee;\n}\n#ixv .dialog.chart {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n color: #595959;\n}\n#ixv .dialog.chart .chart-container {\n position: relative;\n width: 100%;\n}\n#ixv .dialog.chart .other-aspects {\n width: 100%;\n position: absolute;\n bottom: 0;\n}\n#ixv .dialog.chart .other-aspects .other-aspect {\n display: inline-block;\n padding: 5px 10px;\n margin: 10px;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.selected,\n#ixv .dialog.chart .other-aspects .other-aspect.addable {\n cursor: pointer;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.addable {\n color: #026dce;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.addable:hover {\n color: #0094ff;\n text-decoration: underline;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.selected {\n background-color: #0094ff;\n border-radius: 0.4rem;\n border: 0.1rem solid #0085e6;\n /* border: solid 1px #399; */\n color: #fff;\n}\n.dialog {\n z-index: 15;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border: solid 1px #000;\n background-color: #fff;\n display: none;\n}\n.dialog.full-screen {\n width: calc(100vw - 5em);\n height: calc(100vh - 5em);\n}\n.dialog.full-width {\n width: calc(100vw - 5em);\n}\n.dialog.message-box {\n max-width: 800px;\n width: 100%;\n}\n.dialog .contents {\n padding: 2rem;\n position: relative;\n box-sizing: border-box;\n height: 100%;\n width: 100%;\n}\n.dialog .contents > h2:first-child {\n margin-top: 0;\n}\n.dialog .close {\n position: absolute;\n top: 0;\n right: 0;\n padding: 1.8rem 2rem 0;\n font-size: 2.6rem;\n z-index: 20;\n cursor: pointer;\n line-height: 2.2rem;\n opacity: 0.2;\n}\n.dialog .close::before {\n content: "\\00d7";\n}\n.dialog .close:hover {\n opacity: 1;\n}\n.dialog .buttons button {\n border-radius: 0;\n min-width: 10rem;\n margin-right: 1.5rem;\n border: solid 0.1rem #cbcbcb;\n color: #595959;\n background-color: #f8f8f8;\n cursor: pointer;\n}\n.dialog .buttons button.dialog-button-primary {\n color: #fff;\n background-color: #66ca00;\n border: none;\n}\n#ixv #inspector .menu {\n position: absolute;\n right: 0;\n top: 0;\n line-height: 3.5rem;\n cursor: pointer;\n}\n#ixv #inspector .menu .menu-title {\n padding-right: 3.2rem;\n position: relative;\n}\n#ixv #inspector .menu .menu-title::after {\n font-family: viewericons;\n content: "\\ea04";\n font-size: 1.8rem;\n position: absolute;\n right: 1rem;\n}\n#ixv #inspector .menu .content-container {\n position: fixed;\n top: 8.3rem;\n right: 0;\n bottom: 0;\n display: none;\n z-index: 5;\n}\n#ixv #inspector .menu .content-container .content {\n line-height: initial;\n background: #fff;\n border: solid 1px #cbcbcb;\n max-height: 100%;\n overflow-y: auto;\n}\n#ixv #inspector .menu .content-container .content .group {\n border-bottom: solid 1px #cbcbcb;\n border-top: solid 1px #cbcbcb;\n}\n#ixv #inspector .menu .content-container .content .item {\n position: relative;\n padding: 10px 25px 10px 30px;\n white-space: nowrap;\n text-align: left;\n}\n#ixv #inspector .menu .content-container .content .item:hover {\n background: #cbcbcb;\n}\n#ixv #inspector .menu .content-container .content .item.menu-checkbox {\n cursor: pointer;\n user-select: none;\n position: relative;\n display: block;\n}\n#ixv #inspector .menu .content-container .content .item.menu-checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n#ixv #inspector .menu .content-container .content .item.menu-checkbox input:checked ~ .checkmark::before {\n font-family: viewericons;\n content: "\\ea1c";\n position: absolute;\n top: 1.1rem;\n left: 1rem;\n}\n#ixv #inspector .menu .content-container .content a.item {\n display: block;\n color: #595959;\n}\n#ixv #inspector .menu .content-container .content a.item:hover {\n text-decoration: none;\n}\n#ixv #inspector .toolbar-menu .menu-checkbox {\n position: relative;\n padding-left: 2.2rem;\n cursor: pointer;\n user-select: none;\n line-height: 1.6rem;\n margin-left: 1.8rem;\n}\n#ixv #inspector .toolbar-menu .menu-checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n#ixv #inspector .toolbar-menu .menu-checkbox .checkmark {\n position: absolute;\n box-sizing: border-box;\n top: 0;\n left: 0;\n width: 1.6rem;\n height: 1.6rem;\n border-radius: 0.4rem;\n border: solid 0.1rem #cbcbcb;\n}\n#ixv #inspector .toolbar-menu .menu-checkbox input:checked ~ .checkmark::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0.4rem;\n width: 0.4rem;\n height: 1.1rem;\n border: solid #026dce;\n border-width: 0 0.2rem 0.2rem 0;\n transform: rotate(45deg);\n}\n.accordian .card {\n margin-top: 0.4rem;\n background-color: #f8f8f8;\n}\n.accordian .card .card-body {\n display: none;\n padding-left: 1.6rem;\n padding-right: 1.6rem;\n padding-bottom: 0.8rem;\n}\n.accordian .card .card-body > h4:first-child {\n margin-top: 0.8rem;\n}\n.accordian .card .title {\n padding: 1.2rem 1.6rem;\n cursor: pointer;\n line-height: 1.8rem;\n}\n.accordian .card .title:hover {\n background-color: #f3f3f3;\n}\n.accordian .card.active {\n background-color: #f3f3f3;\n}\n.accordian .card.active .title {\n font-weight: bold;\n}\n.accordian .card.active .card-body {\n display: block;\n}\n#ixv .loader {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.85);\n z-index: 10;\n}\n#ixv .loader .text {\n padding-top: 80px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n color: #fff;\n font-size: large;\n font-family: sans-serif;\n}\n#ixv .loader.loading .text::after,\n#ixv .loader.loading .text::before {\n margin: 0 0 0 -30px;\n height: 60px;\n width: 60px;\n position: absolute;\n content: "";\n top: 0;\n left: 50%;\n border-radius: 500rem;\n border-style: solid;\n border-width: 3px;\n box-shadow: 0 0 0 1px transparent;\n}\n#ixv .loader.loading .text::before {\n border: 3px solid rgba(255, 255, 255, 0.1);\n}\n#ixv .loader.loading .text::after {\n -webkit-animation: loader 4s steps(64);\n animation: loader 4s steps(64);\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n border-color: #fff transparent transparent;\n}\n@keyframes loader {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.tab-area {\n background-color: #e3e3e3;\n width: 100%;\n box-sizing: border-box;\n border-bottom: solid 0.1rem #cbcbcb;\n display: flex;\n}\n.tab-area::after {\n content: "";\n clear: both;\n display: table;\n}\n.tab-area .tab {\n float: left;\n padding: 1.2rem;\n cursor: pointer;\n color: #444;\n border: solid 0.1rem #cbcbcb;\n border-top-left-radius: 0.6rem;\n border-top-right-radius: 0.6rem;\n margin-bottom: -0.1rem;\n flex-shrink: 1;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: 20em;\n}\n.tab-area .tab.active {\n padding: 1.2rem;\n border-bottom-color: #fff;\n background-color: #fff;\n border-top: solid 0.4rem #0085e6;\n}\n.tab-area .tab:not(.active) {\n padding-top: 1.5rem;\n}\n.block-list-item {\n margin: 0.5rem 0;\n padding: 0.3rem 0.9rem;\n background-color: #f8f8f8;\n cursor: pointer;\n position: relative;\n border-left: solid 0.4rem #f8f8f8;\n}\n.block-list-item > * {\n margin: 0.8rem 0;\n}\n.block-list-item > .tags {\n margin: 0.6rem 0;\n}\n.block-list-item:hover {\n background-color: #f3f3f3;\n}\n.block-list-item.selected {\n border-left: solid 0.4rem #0085e6;\n background-color: #f3f3f3;\n}\n.block-list-item.linked-highlight {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\n#ixv .dialog.validation-report {\n width: calc(100vw - 5em);\n}\n#ixv .dialog.validation-report table {\n display: block;\n margin: 2rem 0;\n border-collapse: collapse;\n max-height: calc(90vh - 150px);\n overflow-y: auto;\n}\n#ixv .dialog.validation-report table td,\n#ixv .dialog.validation-report table th {\n padding: 0.5rem;\n border: solid 0.1rem #cbcbcb;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace {\n border-spacing: 1rem 0;\n padding-bottom: 1.5rem;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace th.value-column {\n width: 8rem;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td {\n padding: 1rem 0;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.figure {\n text-align: right;\n white-space: nowrap;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace.calc11 td.icons,\n#ixv .dialog.calculation-inspector table.calculation-trace.calc11 th.icons {\n border-right: solid 1px;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace.has-icons td.icons,\n#ixv .dialog.calculation-inspector table.calculation-trace.has-icons th.icons {\n padding-right: 1rem;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace tr.total td.figure,\n#ixv .dialog.calculation-inspector table.calculation-trace tr.total td.line-item {\n border-top: solid 1px;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status .message {\n font-style: italic;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status .icon::before {\n position: relative;\n top: 0.1rem;\n padding-right: 0.1rem;\n font-weight: bold;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status.unchecked .icon::before {\n font-family: viewericons;\n content: "\\ea16";\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status.consistent .icon::before {\n font-family: viewericons;\n content: "\\ea09";\n color: #66ca00;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status.inconsistent .icon::before {\n font-family: viewericons;\n content: "\\ea08";\n color: #d8ae15;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace span.duplicate-facts::before {\n font-family: viewericons;\n content: "\\ea13";\n}\n#ixv .dialog.calculation-inspector table.calculation-trace:not(.calc11) td.calc11-only,\n#ixv .dialog.calculation-inspector table.calculation-trace:not(.calc11) th.calc11-only {\n display: none;\n}\n#ixv .dialog.text-block-viewer {\n max-width: 120rem;\n width: 90vw;\n height: 90vh;\n}\n#ixv .dialog.text-block-viewer .contents {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n#ixv .dialog.text-block-viewer .contents .title,\n#ixv .dialog.text-block-viewer .contents .buttons {\n flex-grow: 0;\n}\n#ixv .dialog.text-block-viewer .contents iframe {\n margin: 1.4rem 0;\n border: solid 1px #ccc;\n flex-grow: 1;\n width: 100%;\n height: 100%;\n}\n#ixv .dialog.text-block-viewer .contents .controls {\n height: 3.2rem;\n}\n#inspector .summary .body .total-facts-title,\n#inspector .summary .body .files-summary-title {\n font-weight: bold;\n}\n#inspector .summary .body .file-summary-container {\n display: flex;\n flex-flow: row wrap;\n}\n#inspector .summary .body .file-summary-container .files {\n flex: 1 1 auto;\n}\n#inspector .summary .body .tag-summary-body {\n overflow-x: auto;\n}\n#inspector .summary .body .tag-summary-body sup {\n font-size: 0.9rem;\n display: block;\n}\n#inspector .summary .body .tag-summary-body table {\n width: 100%;\n border-collapse: collapse;\n}\n#inspector .summary .body .tag-summary-body table td,\n#inspector .summary .body .tag-summary-body table th {\n padding: 0.2rem;\n text-align: left;\n}\n#inspector .summary .body .tag-summary-body table thead th {\n white-space: nowrap;\n position: relative;\n height: 10rem;\n}\n#inspector .summary .body .tag-summary-body table thead th.namespace {\n text-align: left;\n vertical-align: bottom;\n}\n#inspector .summary .body .tag-summary-body table thead th.figure {\n width: 5rem;\n}\n#inspector .summary .body .tag-summary-body table thead th.figure > div {\n position: absolute;\n transform: translate(100px, -50%) rotate(45deg) translate(-50%, 50%);\n text-align: right;\n width: 200px;\n right: 0;\n bottom: 0;\n}\n#inspector .summary .body .tag-summary-body table tbody th {\n font-weight: normal;\n}\n#inspector .summary .body .tag-summary-body table tbody tr,\n#inspector .summary .body .tag-summary-body table tfoot tr {\n transition: background-color 0.25s ease;\n}\n#inspector .summary .body .tag-summary-body table tbody tr:nth-child(odd),\n#inspector .summary .body .tag-summary-body table tfoot tr:nth-child(odd) {\n background-color: #f8f8f8;\n}\n#inspector .summary .body .tag-summary-body table tbody tr:hover,\n#inspector .summary .body .tag-summary-body table tfoot tr:hover {\n background-color: #e6e6e6;\n}\n#inspector .summary .body .tag-summary-body table tbody tr td.figure,\n#inspector .summary .body .tag-summary-body table tfoot tr td.figure {\n text-align: right;\n}\n#ixv {\n /* Specify these here, not on body in case the iXBRL document has its own\n * style attribute */\n}\n#ixv,\n#ixv table {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n color: #595959;\n font-size: 1.4rem;\n}\n#ixv #ixv-progress {\n position: fixed;\n top: 20px;\n left: 20px;\n width: 500px;\n height: 200px;\n background-color: #fff;\n border: solid #000 1px;\n text-align: center;\n}\n#ixv #viewer-pane {\n width: 75%;\n box-sizing: border-box;\n position: fixed;\n left: 0;\n top: 3.5rem;\n bottom: 0;\n z-index: 0;\n display: flex;\n flex-flow: column;\n /* This spacer stops drag events getting lost to the iframe */\n}\n#ixv #viewer-pane .ixds-tabs {\n display: none;\n flex: 0 1 auto;\n}\n#ixv #viewer-pane #iframe-container {\n position: relative;\n flex: 1 1 auto;\n}\n#ixv #viewer-pane #iframe-container > iframe {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n border: none;\n}\n#ixv #viewer-pane #iframe-container .zoom-in,\n#ixv #viewer-pane #iframe-container .zoom-out,\n#ixv #viewer-pane #iframe-container .print {\n position: absolute;\n right: 30px;\n width: 20px;\n height: 20px;\n border: solid 1px #bbb;\n background-color: rgba(225, 225, 225, 0.7);\n justify-content: center;\n display: flex;\n align-items: center;\n color: #777;\n cursor: pointer;\n user-select: none;\n}\n#ixv #viewer-pane #iframe-container .zoom-in {\n top: 15px;\n}\n#ixv #viewer-pane #iframe-container .zoom-out {\n top: 40px;\n}\n#ixv #viewer-pane #iframe-container .print {\n top: 75px;\n}\n#ixv #viewer-pane #iframe-container .print::after {\n font-family: viewericons;\n content: "\\ea15";\n font-size: 20px;\n}\n#ixv #viewer-pane #iframe-container .zoom-in:hover,\n#ixv #viewer-pane #iframe-container .zoom-out:hover,\n#ixv #viewer-pane #iframe-container .print:hover {\n background-color: rgba(128, 128, 128, 0.7);\n}\n#ixv #viewer-pane .resize {\n position: absolute;\n top: 0;\n width: 5px;\n right: -5px;\n bottom: 0;\n z-index: 20;\n}\n#ixv #viewer-pane .resize-spacer {\n position: absolute;\n top: 0;\n width: 3px;\n right: 0;\n bottom: 0;\n z-index: 20;\n}\n#ixv #top-bar {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size: 1.4rem;\n color: #595959;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n height: 3.5rem;\n border-bottom: solid 1px #ccc;\n z-index: 5;\n}\n#ixv #top-bar .header {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n height: 100%;\n}\n#ixv #top-bar .document-title {\n position: absolute;\n box-sizing: border-box;\n left: 160px;\n top: 0;\n padding-right: 1.6rem;\n padding-top: 1.3rem;\n border-right: solid 0.1rem #ccc;\n height: 3.5rem;\n overflow: hidden;\n}\n#ixv #top-bar .top-bar-controls {\n position: absolute;\n right: 1.8rem;\n top: 0;\n line-height: 3.5rem;\n}\n#ixv #top-bar .top-bar-controls * {\n vertical-align: middle;\n}\n#ixv #top-bar .top-bar-controls .content input {\n position: relative;\n top: -0.1rem;\n margin-right: 0.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key {\n margin-left: 0.6rem;\n margin-right: 1.5rem;\n position: relative;\n}\n#ixv #top-bar .top-bar-controls .highlight-key::before {\n font-family: viewericons;\n content: "\\ea16";\n font-size: 1.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content {\n position: absolute;\n top: 3.2rem;\n left: -2rem;\n background: #fff;\n border: solid 1px #595959;\n border-radius: 0.3rem;\n line-height: 1.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .arrow {\n position: absolute;\n top: 0;\n left: 1.1rem;\n width: 1.5rem;\n height: 1.5rem;\n border-top: solid 0.1rem #595959;\n border-left: solid 0.1rem #595959;\n transform: translate(50%, -50%) rotate(45deg);\n background: #fff;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item {\n white-space: nowrap;\n margin: 1rem;\n position: relative;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample {\n display: inline-block;\n width: 3.2rem;\n height: 1.6rem;\n margin-right: 1rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-0 {\n background: hsl(90, 69%, 85%);\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-1 {\n background: #eaa8ff;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-2 {\n background: hsl(48, 100%, 85%);\n}\n#ixv #top-bar .top-bar-controls .validation-warning {\n margin-left: 0.5rem;\n font-size: 1.6rem;\n display: none;\n cursor: pointer;\n}\n#ixv #top-bar .top-bar-controls .validation-warning::before {\n font-family: viewericons;\n content: "\\ea1d";\n}\n#ixv #inspector {\n display: flex;\n flex-direction: column;\n /* inspector body */\n width: 25%;\n position: absolute;\n top: 3.5rem;\n right: 0;\n bottom: 0;\n box-sizing: border-box;\n overflow: hidden;\n border-left: solid 0.1rem #cbcbcb;\n}\n#ixv #inspector h1,\n#ixv #inspector h2,\n#ixv #inspector h3 {\n font-weight: normal;\n border-bottom: solid 1px #cbcbcb;\n width: 100%;\n box-sizing: border-box;\n padding-bottom: 5px;\n color: #444444;\n}\n#ixv #inspector h2 {\n text-align: center;\n}\n#ixv #inspector h3 {\n font-size: 1.4rem;\n}\n#ixv #inspector h4 {\n font-weight: bold;\n color: #444444;\n margin-bottom: 1.4em;\n}\n#ixv #inspector #inspector-head {\n padding: 0;\n position: relative;\n border-bottom: solid 1px #cbcbcb;\n}\n#ixv #inspector #inspector-head .title {\n text-align: center;\n position: relative;\n border-bottom: solid 0.1rem #cbcbcb;\n}\n#ixv #inspector #inspector-head .title h1 {\n margin: 0.8rem 0;\n border: none;\n padding: 0;\n font-size: 1.8rem;\n line-height: 3.2rem;\n}\n#ixv #inspector #inspector-head .title .back {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n top: 0;\n left: 0;\n position: absolute;\n}\n#ixv #inspector #inspector-head .title .back::before {\n font-family: viewericons;\n content: "\\ea05";\n}\n#ixv #inspector #inspector-head .title .menu {\n top: 0;\n right: 0;\n position: absolute;\n}\n#ixv #inspector #inspector-head .title .menu .menu-title::before {\n font-family: viewericons;\n content: "\\ea0c";\n font-size: 2rem;\n}\n#ixv #inspector #inspector-head .controls {\n position: relative;\n height: 3.2rem;\n margin: 0.8rem 0.9rem;\n}\n#ixv #inspector #inspector-head .controls .search-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n position: absolute;\n top: 0;\n left: 7.7rem;\n}\n#ixv #inspector #inspector-head .controls .search-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .search-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .search-button::before {\n font-family: viewericons;\n content: "\\ea17";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .outline-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n position: absolute;\n top: 0;\n left: 3.6rem;\n}\n#ixv #inspector #inspector-head .controls .outline-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .outline-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .outline-button::before {\n font-family: viewericons;\n content: "\\ea14";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .summary-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n position: absolute;\n top: 0;\n left: 0;\n}\n#ixv #inspector #inspector-head .controls .summary-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .summary-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .summary-button::before {\n font-family: viewericons;\n content: "\\ea19";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .next-prev {\n position: absolute;\n top: 0;\n right: 0;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag,\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n position: relative;\n display: inline-block;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag:last-of-type,\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag:first-of-type,\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag::before {\n font-family: viewericons;\n content: "\\ea06";\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag::before {\n font-family: viewericons;\n content: "\\ea05";\n}\n#ixv #inspector #inspector-head .search-controls {\n margin: 0.8rem 0.9rem;\n}\n#ixv #inspector #inspector-head .search-controls .search-input {\n display: flex;\n padding: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-input input#ixbrl-search {\n flex-grow: 1;\n margin-right: 1rem;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle::before {\n font-family: viewericons;\n content: "\\ea10";\n}\n#ixv #inspector #inspector-head .search-controls:not(.show-filters) .search-filters {\n display: none;\n}\n#ixv #inspector #inspector-head .search-controls.show-filters .filter-toggle {\n color: #026dce;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters {\n position: relative;\n max-height: 60vh;\n overflow-y: auto;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .reset {\n cursor: pointer;\n color: #026dce;\n position: absolute;\n right: 0;\n top: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters h3 {\n border: none;\n font-weight: bold;\n padding-bottom: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n margin-bottom: 0.4em;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group .control-label {\n white-space: nowrap;\n margin-right: 2em;\n width: 6em;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group input,\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group select,\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group textarea {\n flex-basis: 12em;\n flex-grow: 2;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .control-label {\n font-weight: bold;\n margin-bottom: 0.6em;\n margin-top: 0.8em;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters select {\n width: 100%;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .checkboxes {\n display: flex;\n flex-wrap: wrap;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .checkboxes > div {\n margin: 1.2rem 0;\n flex-grow: 1;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .checkboxes > div input {\n vertical-align: middle;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-info {\n text-align: center;\n font-style: italic;\n font-size: 1.1rem;\n}\n#ixv #inspector .inspector-body {\n flex-grow: 1;\n width: 100%;\n position: relative;\n overflow: hidden;\n /* search results */\n}\n#ixv #inspector .inspector-body .no-fact-overlay,\n#ixv #inspector .inspector-body .no-outline-overlay {\n display: block;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 80%;\n text-align: center;\n color: #b2b2b2;\n}\n#ixv #inspector .inspector-body .no-fact-overlay .no-fact-overlay-icon::before,\n#ixv #inspector .inspector-body .no-outline-overlay .no-fact-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea1a";\n font-size: 10rem;\n}\n#ixv #inspector .inspector-body .no-fact-overlay .no-outline-overlay-icon::before,\n#ixv #inspector .inspector-body .no-outline-overlay .no-outline-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea14";\n font-size: 10rem;\n}\n#ixv #inspector .inspector-body .no-fact-overlay .title,\n#ixv #inspector .inspector-body .no-outline-overlay .title {\n font-size: x-large;\n}\n#ixv #inspector .inspector-body .inspector-body-fact {\n overflow-y: auto;\n height: 100%;\n position: relative;\n}\n#ixv #inspector .inspector-body .search-results {\n overflow-y: auto;\n height: 100%;\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay {\n transform: translate(-50%, -50%);\n position: absolute;\n top: 50%;\n left: 50%;\n color: #b2b2b2;\n width: 85%;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-icon {\n text-align: center;\n font-size: 10rem;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea17";\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-text {\n text-align: center;\n font-size: medium;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-text .title {\n font-size: x-large;\n}\n#ixv #inspector .inspector-body .search-results .select-icon {\n float: right;\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n cursor: pointer;\n color: #026dce;\n}\n#ixv #inspector .inspector-body .search-results .select-icon:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector .inspector-body .search-results .select-icon:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector .inspector-body .search-results .select-icon:first-of-type {\n margin-left: 0.5rem;\n}\n#ixv #inspector .inspector-body .search-results .select-icon::before {\n font-family: viewericons;\n content: "\\ea18";\n}\n#ixv #inspector .inspector-body .search-results .more-results {\n cursor: pointer;\n color: #026dce;\n padding: 1rem;\n text-align: center;\n}\n#ixv #inspector .inspector-body .outline {\n overflow-y: auto;\n height: 100%;\n}\n#ixv #inspector .inspector-body .summary {\n overflow-y: auto;\n height: 100%;\n}\n#ixv #inspector .inspector-body .body {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .std-label {\n margin-left: 30px;\n min-height: 20px;\n position: relative;\n}\n#ixv #inspector .std-label::before {\n color: #026dce;\n content: "\\2022";\n position: absolute;\n top: -5px;\n left: -20px;\n font-size: x-large;\n}\n#ixv #inspector #concept {\n margin-top: 20px;\n font-size: small;\n min-height: 25px;\n}\n#ixv #inspector #dimensions {\n margin-left: 2rem;\n margin-right: 2rem;\n margin-bottom: 1rem;\n}\n#ixv #inspector #dimensions .dimension {\n position: relative;\n margin: 1.5rem 0 1.5rem 1rem;\n}\n#ixv #inspector #dimensions .dimension::before {\n font-family: viewericons;\n content: "\\ea0d";\n color: #026dce;\n position: absolute;\n top: 0;\n left: -2.3rem;\n font-size: 120%;\n}\n#ixv #inspector #dimensions .dimension-value {\n position: relative;\n margin: 1.5rem 0 1.5rem 3.5rem;\n}\n#ixv #inspector #dimensions .dimension-value::before {\n font-family: viewericons;\n content: "\\ea0e";\n position: absolute;\n color: #026dce;\n top: 0;\n left: -2.3rem;\n font-size: 120%;\n}\n#ixv #inspector .analyse {\n cursor: pointer;\n padding-left: 0.7rem;\n color: #026dce;\n}\n#ixv #inspector .analyse::before {\n font-family: viewericons;\n content: "\\ea11";\n position: relative;\n top: 1px;\n}\n#ixv #inspector .inspector-body-fact .tags {\n position: absolute;\n top: 1.5rem;\n right: 0.9rem;\n}\n#ixv #inspector .target-document-tag {\n display: inline-block;\n text-transform: uppercase;\n font-weight: bold;\n background-color: #8a8a8a;\n padding: 0.15em 0.5em;\n color: #fff;\n border-radius: 0.3em;\n margin: 0.2rem 0.3rem 0.2rem 0;\n white-space: nowrap;\n}\n#ixv #inspector .hidden-fact-tag,\n#ixv #inspector .html-hidden-fact-tag {\n display: inline-block;\n text-transform: uppercase;\n font-weight: bold;\n background-color: #8a8a8a;\n padding: 0.15em 0.5em;\n color: #fff;\n border-radius: 0.3em;\n margin: 0.2rem 0.3rem 0.2rem 0;\n white-space: nowrap;\n}\n#ixv #inspector .hidden-fact-tag.html-hidden-fact-tag,\n#ixv #inspector .html-hidden-fact-tag.html-hidden-fact-tag {\n background-color: #c63018;\n}\n#ixv #inspector table.fact-properties {\n table-layout: fixed;\n width: 100%;\n}\n#ixv #inspector table.fact-properties th {\n width: 75px;\n text-align: right;\n padding-right: 20px;\n color: #444444;\n}\n#ixv #inspector table.fact-properties th,\n#ixv #inspector table.fact-properties td {\n padding-top: 2px;\n padding-bottom: 2px;\n}\n#ixv #inspector table.fact-properties tr.value .show-all {\n color: #026dce;\n cursor: pointer;\n}\n#ixv #inspector table.fact-properties tr.value:not(.truncated) .show-all {\n display: none;\n}\n#ixv #inspector table.fact-properties tr.value.text-block .expand-text-block {\n color: #026dce;\n cursor: pointer;\n}\n#ixv #inspector table.fact-properties tr.value.text-block .expand-text-block::before {\n font-family: viewericons;\n content: "\\ea1b";\n}\n#ixv #inspector table.fact-properties td {\n overflow: hidden;\n text-overflow: ellipsis;\n color: #7d7d7d;\n}\n#ixv #inspector table.fact-properties tr.uri > td {\n white-space: nowrap;\n}\n#ixv #inspector .duplicates {\n text-align: center;\n width: 100%;\n height: 3.2rem;\n line-height: 3.2rem;\n}\n#ixv #inspector .duplicates > * {\n vertical-align: middle;\n}\n#ixv #inspector .duplicates .text {\n margin: 0 5px;\n}\n#ixv #inspector .duplicates .next,\n#ixv #inspector .duplicates .prev {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n position: relative;\n display: inline-block;\n}\n#ixv #inspector .duplicates .prev::before {\n font-family: viewericons;\n content: "\\ea05";\n}\n#ixv #inspector .duplicates .next::before {\n font-family: viewericons;\n content: "\\ea06";\n}\n#ixv #inspector .concept td > div {\n display: flex;\n}\n#ixv #inspector .concept td > div span.text {\n white-space: nowrap;\n position: relative;\n flex-shrink: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n#ixv #inspector .concept td > div span.filler {\n width: 0.7rem;\n display: inline-block;\n flex-shrink: 1000;\n}\n#ixv #inspector .concept td > div span.copy-icon {\n flex-shrink: 0;\n}\n#ixv #inspector .documentation {\n margin-top: 10px;\n margin-left: 30px;\n font-style: italic;\n font-family: serif;\n}\n#ixv #inspector a {\n text-decoration: none;\n color: #026dce;\n}\n#ixv #inspector a:hover {\n text-decoration: underline;\n}\n#ixv #inspector .inspector-section {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .collapsible-section .collapsible-body {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .collapsible-section .collapsible-header {\n position: relative;\n padding-left: 12px;\n cursor: pointer;\n user-select: none;\n white-space: nowrap;\n}\n#ixv #inspector .collapsible-section .collapsible-header::before {\n font-family: viewericons;\n content: "\\ea06";\n font-size: 1.8rem;\n position: relative;\n top: 0.4rem;\n left: -0.3rem;\n transform: rotate(90deg);\n transition: all 0.25s ease;\n display: inline-block;\n}\n#ixv #inspector .collapsible-section .collapsible-header .collapsible-subheader {\n user-select: none;\n font-weight: normal;\n font-style: italic;\n font-size: 1.3rem;\n color: #7d7d7d;\n}\n#ixv #inspector .collapsible-section.collapsed .collapsible-header::before {\n transform: rotate(0);\n top: 0.3rem;\n left: -0.2rem;\n}\n#ixv #inspector .collapsible-section.collapsed .collapsible-subheader {\n color: #026dce;\n}\n#ixv #inspector .collapsible-section .footnote-details {\n display: none;\n}\n#ixv #inspector .collapsible-section .calculations .card .title {\n position: relative;\n}\n#ixv #inspector .collapsible-section .calculations .card .title .inconsistent-flag {\n padding-right: 0.75rem;\n position: relative;\n top: 0.2rem;\n color: #d8ae15;\n}\n#ixv #inspector .collapsible-section .calculations .card .title .inconsistent-flag::before {\n font-family: viewericons;\n content: "\\ea08";\n}\n#ixv #inspector .collapsible-section .calculations .card .title .consistent-flag {\n padding-right: 0.75rem;\n position: relative;\n top: 0.2rem;\n color: #66ca00;\n}\n#ixv #inspector .collapsible-section .calculations .card .title .consistent-flag::before {\n font-family: viewericons;\n content: "\\ea09";\n}\n#ixv #inspector .collapsible-section .calculations .card .title .unchecked-flag {\n padding-right: 0.5rem;\n position: relative;\n top: 0.2rem;\n}\n#ixv #inspector .collapsible-section .calculations .card .title .unchecked-flag::before {\n font-family: viewericons;\n content: "\\ea16";\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table {\n width: 100%;\n border-collapse: collapse;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item td {\n padding: 5px 0;\n line-height: 1.8rem;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item td.value {\n text-align: right;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item:not(.calc-fact-link, .total) .concept-name {\n color: #777;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link {\n cursor: pointer;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link .concept-name,\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link .value {\n color: #026dce;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.linked-highlight,\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link:hover {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.total td {\n border-top: solid 1px #cbcbcb;\n padding-bottom: 1.2rem;\n}\n#ixv #inspector .collapsible-section .calculations .calculation-details-link {\n color: #026dce;\n cursor: pointer;\n}\n#ixv #inspector .reset-multiselect {\n float: right;\n line-height: 0;\n position: relative;\n bottom: 1rem;\n cursor: pointer;\n}\n#ixv #inspector .reset-multiselect::after {\n font-family: viewericons;\n content: "\\ea0b";\n}\n#ixv #inspector:not(.no-fact-selected) .no-fact-overlay {\n display: none;\n}\n#ixv #inspector.no-fact-selected .fact-selected-only {\n display: none;\n}\n#ixv #inspector:not(.hidden-fact) .hidden-fact-tag {\n display: none;\n}\n#ixv #inspector:not(.html-hidden-fact) .html-hidden-fact-tag {\n display: none;\n}\n#ixv #inspector.search-mode #inspector-head .controls .search-button {\n color: #fff;\n border-color: #0085e6;\n background-color: #0094ff;\n}\n#ixv #inspector.outline-mode #inspector-head .controls .outline-button {\n color: #fff;\n border-color: #0085e6;\n background-color: #0094ff;\n}\n#ixv #inspector.summary-mode #inspector-head .controls .summary-button {\n color: #fff;\n border-color: #0085e6;\n background-color: #0094ff;\n}\n#ixv #inspector .powered-by {\n font-size: 1.2rem;\n text-align: center;\n flex-shrink: 0;\n background: #fff;\n width: 100%;\n height: 3rem;\n margin: 0;\n box-sizing: border-box;\n border-top: solid 0.1rem #cbcbcb;\n position: relative;\n}\n#ixv #inspector .powered-by img {\n box-sizing: border-box;\n height: 3rem;\n padding: 0.5rem;\n}\n#ixv #inspector .powered-by .version {\n position: absolute;\n top: 0;\n right: 5px;\n font-size: small;\n line-height: 3rem;\n color: #999;\n}\n#ixv #inspector:not(.search-mode) .search-mode-only {\n display: none;\n}\n#ixv #inspector:not(.outline-mode) .outline-mode-only {\n display: none;\n}\n#ixv #inspector:not(.summary-mode) .summary-mode-only {\n display: none;\n}\n#ixv #inspector.search-mode .fact-mode-only,\n#ixv #inspector.summary-mode .fact-mode-only,\n#ixv #inspector.outline-mode .fact-mode-only {\n display: none;\n}\n#ixv #inspector:not(.footnote-mode) .footnote-mode-only {\n display: none;\n}\n#ixv #inspector.footnote-mode .footnote-mode-off {\n display: none;\n}\n#ixv #inspector .failed-to-load-mask {\n display: none;\n}\n#ixv #inspector.failed-to-load .failed-to-load-mask {\n display: block;\n background-color: rgba(0, 0, 0, 0.5);\n position: absolute;\n width: 100%;\n height: 100%;\n}\n#ixv #inspector.search-ready .search-not-ready-only {\n display: none;\n}\n#ixv #inspector:not(.search-ready) .search-ready-only {\n display: none;\n}\n#ixv #inspector:not(.search-ready) .search-results {\n background-color: rgba(0, 0, 0, 0.5);\n}\n#ixv .fact-link {\n cursor: pointer;\n color: #026dce;\n}\n#ixv .fact-link:hover {\n outline: solid 0.125em #026dce;\n outline-offset: 0.0625em;\n}\n#ixv .fact-list .fact-list-item {\n margin: 0.5rem 0;\n padding: 0.3rem 0.9rem;\n background-color: #f8f8f8;\n cursor: pointer;\n position: relative;\n border-left: solid 0.4rem #f8f8f8;\n}\n#ixv .fact-list .fact-list-item > * {\n margin: 0.8rem 0;\n}\n#ixv .fact-list .fact-list-item > .tags {\n margin: 0.6rem 0;\n}\n#ixv .fact-list .fact-list-item:hover {\n background-color: #f3f3f3;\n}\n#ixv .fact-list .fact-list-item.selected {\n border-left: solid 0.4rem #0085e6;\n background-color: #f3f3f3;\n}\n#ixv .fact-list .fact-list-item.linked-highlight {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\n#ixv .fact-list .fact-list-item .title {\n color: #444444;\n font-weight: bold;\n}\n#ixv .fact-list .fact-list-item .dimension {\n color: #595959;\n margin: 0.6rem 0;\n}\n#ixv .fact-list .fact-list-item .hidden {\n display: inline-block;\n text-transform: uppercase;\n font-weight: bold;\n background-color: #8a8a8a;\n padding: 0.15em 0.5em;\n color: #fff;\n border-radius: 0.3em;\n margin: 0.2rem 0.3rem 0.2rem 0;\n white-space: nowrap;\n}\n#ixv .fact-list .fact-list-item.selected .title {\n font-weight: bold;\n}\n#ixv .fact-list .fact-list-item.selected .dimension {\n color: #595959;\n}\n#ixv .dialog-mask {\n background-color: rgba(0, 0, 0, 0.6);\n position: fixed;\n inset: 0;\n z-index: 10;\n display: none;\n}\n#ixv .popup-content {\n display: none;\n}\n#ixv .copy-icon {\n color: #026dce;\n border-radius: 0.3rem;\n}\n#ixv .copy-icon:active {\n background-color: #026dce;\n color: #fff;\n}\n#ixv .copy-icon::before {\n font-family: viewericons;\n content: "\\ea0a";\n cursor: pointer;\n}\n`,""]),t.exports=a},95:(t,e,n)=>{var i=n(758),r=n(935),s=n(62),o=n(987),a=r(i),l=s(o);a.push([t.id,`@font-face {\n font-family: viewericons;\n src: url(${l});\n font-weight: normal;\n font-style: normal;\n}\n/* Styles common to both inspector and highlighting used within iframe */\n.linked-highlight-text {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n}\n.linked-highlight-cell {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight) {\n background-color: hsl(90, 69%, 85%) !important;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-1 {\n background-color: #eaa8ff !important;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-2 {\n background-color: hsl(48, 100%, 85%) !important;\n}\n.review.review-highlight-untagged-numbers .review-untagged-number {\n background-color: #eaa8ff;\n}\n.review.review-highlight-untagged-dates .review-untagged-date {\n background-color: hsl(48, 100%, 85%);\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight) {\n background-color: hsl(90, 69%, 85%) !important;\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-1 {\n background-color: hsl(90, 69%, 85%) !important;\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-2 {\n background-color: hsl(90, 69%, 85%) !important;\n}\ndiv:not(.ixbrl-no-highlight).ixbrl-selected,\nspan:not(.ixbrl-no-highlight).ixbrl-selected {\n outline: solid 0.125em #0094ff;\n outline-offset: 0.0625em;\n}\ndiv:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\nspan:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\ndiv:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected),\nspan:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected) {\n outline: dashed 0.125em #0094ff;\n outline-offset: 0.0625em;\n}\n:not(.ixbrl-no-highlight).ixbrl-element,\n:not(.ixbrl-no-highlight).ixbrl-sub-element {\n cursor: pointer;\n}\n:not(.ixbrl-no-highlight).ixbrl-element.ixbrl-related,\n:not(.ixbrl-no-highlight).ixbrl-sub-element.ixbrl-related {\n outline: dashed 0.125em #0eb30e;\n}\n:not(.ixbrl-no-highlight).ixbrl-element.ixbrl-related:not(td, th),\n:not(.ixbrl-no-highlight).ixbrl-sub-element.ixbrl-related:not(td, th) {\n outline-offset: 0.0625em;\n}\ntd:not(.ixbrl-no-highlight).ixbrl-selected,\nth:not(.ixbrl-no-highlight).ixbrl-selected {\n outline: solid 0.125em #0094ff !important;\n outline-offset: -0.0625em !important;\n}\ntd:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\nth:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\ntd:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected),\nth:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected) {\n outline: dashed 0.125em #0094ff !important;\n outline-offset: -0.0625em !important;\n}\ntd.ixbrl-related,\nth.ixbrl-related {\n outline-offset: -0.0625em !important;\n}\n.ixbrl-related.ixbrl-linked-highlight:not(.ixbrl-no-highlight),\n.ixbrl-linked-highlight:not(.ixbrl-no-highlight) {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n}\ntd.ixbrl-related.ixbrl-linked-highlight:not(.ixbrl-no-highlight),\ntd.ixbrl-linked-highlight:not(.ixbrl-no-highlight) {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\ndiv.ixbrl-table-handle {\n position: absolute;\n left: 0;\n cursor: pointer;\n width: 0;\n height: 0;\n border: 0.4rem solid transparent;\n border-bottom-color: #66ca00;\n top: -0.8rem;\n}\ndiv.ixbrl-table-handle::after {\n content: "";\n position: absolute;\n left: -0.4rem;\n top: 0.4rem;\n width: 0;\n height: 0;\n border: 0.4rem solid transparent;\n border-top-color: #66ca00;\n}\ndiv.ixbrl-table-handle > span {\n display: none;\n white-space: nowrap;\n}\ndiv.ixbrl-table-handle:hover {\n border: none;\n color: #fff;\n transition: width 0.3s;\n width: 9rem;\n height: initial;\n left: -0.1rem;\n padding: 0;\n z-index: 1;\n}\ndiv.ixbrl-table-handle:hover::after {\n display: none;\n}\ndiv.ixbrl-table-handle:hover > span {\n border: solid 0.1rem #fff;\n font-family: sans-serif;\n display: block;\n padding: 0.7rem 1.5rem 0.7rem 2.5rem;\n background-color: #66ca00;\n}\ndiv.ixbrl-table-handle:hover > span::before {\n font-family: viewericons;\n content: "\\ea0f";\n position: absolute;\n left: 0.8rem;\n font-size: 1.2rem;\n}\n`,""]),t.exports=a},935:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,r,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(i)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(o[l]=!0)}for(var c=0;c<t.length;c++){var u=[].concat(t[c]);i&&o[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),e.push(u))}},e}},62:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},758:t=>{"use strict";t.exports=function(t){return t[1]}},60:function(t,e,n){var i,r;void 0===(r="function"==typeof(i=function(){"use strict";function e(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){a(i.response,e,n)},i.onerror=function(){console.error("could not download file")},i.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function r(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,o=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,n,o){var a=s.URL||s.webkitURL,l=document.createElement("a");n=n||t.name||"download",l.download=n,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?r(l):i(l.href)?e(t,n,o):r(l,l.target="_blank")):(l.href=a.createObjectURL(t),setTimeout((function(){a.revokeObjectURL(l.href)}),4e4),setTimeout((function(){r(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,s){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,s),n);else if(i(t))e(t,n,s);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout((function(){r(o)}))}}:function(t,n,i,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,n,i);var a="application/octet-stream"===t.type,l=/constructor/i.test(s.HTMLElement)||s.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&l||o)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},u.readAsDataURL(t)}else{var d=s.URL||s.webkitURL,h=d.createObjectURL(t);r?r.location=h:location.href=h,r=null,setTimeout((function(){d.revokeObjectURL(h)}),4e4)}});s.saveAs=a.saveAs=a,t.exports=a})?i.apply(e,[]):i)||(t.exports=r)},793:t=>{t.exports='\x3c!--\nSee COPYRIGHT.md for copyright information\n--\x3e\n\n<div class="fact-details">\n <h4 data-i18n="factDetails.concept">Concept</h4>\n <div class="std-label"></div>\n <div class="documentation"></div>\n <h4 id="dimensions-label" data-i18n="factDetails.dimensions">Dimensions</h4>\n <div id="dimensions"></div>\n <h4 data-i18n="factDetails.properties">Properties</h4>\n <table class="fact-properties">\n <tr class="period">\n <th data-i18n="factDetails.date">Date</th>\n <td></td>\n </tr>\n <tr class="value">\n <th data-i18n="factDetails.factValue">Fact Value</th>\n <td><span class="value"></span> <span class="show-all">[...]</span> <span class="expand-text-block"></span></td>\n </tr>\n <tr class="accuracy">\n <th data-i18n="factDetails.accuracy">Accuracy</th>\n <td></td>\n </tr>\n <tr class="scale">\n <th data-i18n="factDetails.scale">Scale</th>\n <td></td>\n </tr>\n <tr class="change">\n <th data-i18n="factDetails.change">Change</th>\n <td></td>\n </tr>\n <tr class="entity-identifier">\n <th data-i18n="factDetails.entity">Entity</th>\n <td></td>\n </tr>\n <tr class="concept">\n <th data-i18n="factDetails.concept">Concept</th>\n <td><div><span class="text"></span><span class="filler"></span><span class="clipboard-copy copy-icon"></span></div></td>\n </tr>\n </table>\n <div class="duplicates">\n <span class="prev"></span> \n <span class="text"></span> \n <span class="next"></span>\n </div>\n</div>\n'},643:t=>{t.exports='\x3c!--\nSee COPYRIGHT.md for copyright information\n--\x3e\n\n<div>\n <table class="fact-properties">\n <tr class="value">\n <th data-i18n="footnotes.footnote">Footnote</th>\n <td><span class="value"></span> <span class="show-all">[...]</span></td>\n </tr>\n </table>\n</div>\n'},87:(t,e,n)=>{var i=`\x3c!--\nSee COPYRIGHT.md for copyright information\n--\x3e\n\n<div id="ixv" xmlns="http://www.w3.org/1999/xhtml">\n <div class="loader loading">\n <span class="text" data-i18n="inspector.loadingViewer">Loading iXBRL Viewer</span>\n </div>\n <div id="top-bar">\n <img class="header" alt="Inline Viewer logo" src="${n(778)}"/>\n <div class="document-title"></div>\n <div class="top-bar-controls" id="toolbar-highlight-menu">\n <b data-i18n="inspector.highlight">Highlight:</b><span class="highlight-key popup-trigger"><div class="popup-content">\n <div class="arrow"></div>\n <div class="items"></div>\n </div></span><span class="content"></span>\n <span class="validation-warning" title="Report has validation errors"></span>\n </div>\n </div>\n <div id="inspector" class="no-fact-selected">\n <div id="inspector-head">\n <div class="title">\n <h1 class="footnote-mode-off" data-i18n="inspector.factProperties">Fact Properties</h1>\n <h1 class="footnote-mode-only" data-i18n="inspector.footnoteProperties">Footnote Properties</h1>\n <div class="back search-mode-only">\n </div>\n <div class="back summary-mode-only">\n </div>\n <div class="back outline-mode-only">\n </div>\n <div class="menu" id="display-options-menu">\n <div class="menu-title"></div>\n <div class="content-container">\n <div class="content"></div>\n </div>\n </div>\n </div>\n <div class="controls">\n <div class="summary-button" data-i18n="[title]inspector.documentSummary" title="Document summary">\n </div>\n <div class="outline-button" data-i18n="[title]inspector.documentOutline" title="Document outline">\n </div>\n <div class="search-button" data-i18n="[title]inspector.searchTitle" title="Search">\n </div>\n <div class="next-prev">\n <span class="ixbrl-prev-tag" data-i18n="[title]inspector.previousTag" title="Previous tag"></span><span class="ixbrl-next-tag" data-i18n="[title]inspector.nextTag" title="Next tag"></span>\n </div>\n </div>\n\n <div class="search-controls search-mode-only">\n <div class="search-input">\n <input id="ixbrl-search" type="text" aria-label="Search iXBRL report" disabled="disabled"/>\n <div class="filter-toggle"></div>\n </div>\n <div class="search-filters">\n <div class="reset" data-i18n="inspector.reset">Reset</div>\n <h3 data-i18n="inspector.filter">Filter</h3>\n <div class="filter-group">\n <div class="control-label" data-i18n="inspector.conceptType">\n Concept Type\n </div>\n <select id="search-filter-concept-type">\n <option value="*">-</option>\n <option value="numeric" data-i18n="inspector.numericOption">Numeric</option>\n <option value="text" data-i18n="inspector.textOption">Text</option>\n </select>\n </div>\n\n <div class="filter-group">\n <div class="control-label" data-i18n="inspector.factValue">\n Fact Value\n </div>\n <select id="search-filter-fact-value">\n <option value="*">-</option>\n <option value="negative" data-i18n="inspector.negative">Negative</option>\n <option value="positive" data-i18n="inspector.positive">Positive</option>\n </select>\n </div>\n\n <div class="checkboxes">\n <div>\n <label class="checkbox">\n <input id="search-hidden-fact-filter" type="checkbox" checked="checked"/> <span data-i18n="inspector.hiddenFacts">Hidden Facts</span>\n <span class="checkmark"></span>\n </label>\n </div>\n <div>\n <label class="checkbox">\n <input id="search-visible-fact-filter" type="checkbox" checked="checked"/> <span data-i18n="inspector.visibleFacts">Visible Facts</span>\n <span class="checkmark"></span>\n </label>\n </div>\n </div>\n\n <div id="search-filter-period" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <span data-i18n="inspector.period">Period</span>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body" style="display: none;">\n <span class="reset-multiselect"></span>\n <select multiple="multiple">\n </select>\n </div>\n </div>\n\n <div id="search-filter-namespaces" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <span data-i18n="inspector.namespaces">Namespaces</span>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body namespaces" style="display: none;">\n <span class="reset-multiselect"></span>\n <select multiple="multiple">\n </select>\n </div>\n </div>\n\n <div id="search-filter-target-document" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <span data-i18n="inspector.targetDocument">Target Document</span>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body target-document" style="display: none;">\n <span class="reset-multiselect"></span>\n <select multiple="multiple">\n </select>\n </div>\n </div>\n\n <div id="search-filter-units" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <span data-i18n="inspector.units">Units</span>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body units" style="display: none;">\n <span class="reset-multiselect"></span>\n <select multiple="multiple">\n </select>\n </div>\n </div>\n\n <div id="search-filter-scales" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <span data-i18n="inspector.scales">Scales</span>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body scales" style="display: none;">\n <span class="reset-multiselect"></span>\n <select multiple="multiple">\n </select>\n </div>\n </div>\n\n <div id="search-filter-dimension-type" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <span data-i18n="inspector.dimensions">Dimension Type</span>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body dimensions" style="display: none;">\n <span class="reset-multiselect"></span>\n <select multiple="multiple" size="2">\n <option value="explicit" data-i18n="inspector.explicitDimension">Explicit Dimensions</option>\n <option value="typed" data-i18n="inspector.typedDimensions">Typed Dimensions</option>\n </select>\n </div>\n </div>\n\n <div id="search-filter-calculations" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <span data-i18n="inspector.calculations">Calculations</span>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body calculations" style="display: none;">\n <span class="reset-multiselect"></span>\n <select multiple="multiple" size="2">\n <option value="summation" data-i18n="inspector.summation">Summation</option>\n <option value="contributor" data-i18n="inspector.contributor">Contributor</option>\n </select>\n </div>\n </div>\n\n <div class="filter-info">\n <span id="matching-facts-count">?</span>\n <span data-i18n="inspector.matchingFacts"> matching facts(s)</span>\n </div>\n </div>\n </div>\n </div> \x3c!-- inspector-head --\x3e\n\n <div class="inspector-body">\n <div class="fact-mode-only inspector-body-fact">\n <div class="no-fact-overlay">\n <div class="no-fact-overlay-icon"></div>\n <p class="title" data-i18n="inspector.noFactSelected">No Fact Selected</p>\n </div>\n <div class="fact-selected-only">\n <div class="tags">\n <div class="target-document-tag"></div>\n <div class="hidden-fact-tag" data-i18n="inspector.hiddenFact">Hidden Fact</div>\n <div class="html-hidden-fact-tag" data-i18n="inspector.concealedFact">Concealed Fact</div>\n </div>\n <div class="collapsible-section">\n <div class="fact-inspector collapsible-body">\n </div>\n </div>\n <div class="footnote-mode-off">\n <div class="collapsible-section anchoring">\n <h3 class="collapsible-header" data-i18n="inspector.anchoring">Anchoring</h3>\n <div class="collapsible-body">\n <h4 data-i18n="inspector.widerAnchor">Wider anchor</h4>\n <div class="anchors-wider">\n </div>\n <h4 data-i18n="inspector.narrowerAnchor">Narrower anchors</h4>\n <div class="anchors-narrower">\n </div>\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header" data-i18n="inspector.references">References</h3>\n <div class="collapsible-body references">\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header" data-i18n="inspector.calculations">Calculations</h3>\n <div class="collapsible-body calculations">\n <div class="tree"></div>\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header" data-i18n="inspector.footnotes">Footnotes</h3>\n <div class="collapsible-body footnotes fact-list">\n </div>\n </div>\n <div class="collapsible-section footnote-facts-section">\n <h3 class="collapsible-header" data-i18n="inspector.associatedFacts">Associated Facts</h3>\n <div class="collapsible-body footnote-facts fact-list">\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header" data-i18n="inspector.fact-groups">Sections</h3>\n <div class="collapsible-body fact-groups fact-list">\n </div>\n </div>\n </div>\n <div class="footnote-details footnote-mode-only">\n <div class="collapsible-section">\n <h3 class="collapsible-header" data-i18n="inspector.associatedFacts">Associated facts</h3>\n <div class="collapsible-body footnote-facts fact-list">\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div class="search-results search-mode-only">\n <div class="results fact-list">\n </div>\n <div class="search-overlay">\n <div class="search-overlay-icon"></div>\n <div class="search-overlay-text search-ready-only"><p class="title" data-i18n="inspector.factSearch">Fact Search</p><p class="text">Please enter some search terms</p></div>\n <div class="search-overlay-text search-not-ready-only"><p class="title" data-i18n="inspector.factSearch">Fact Search</p><p class="text">Please wait - building index...</p></div>\n </div>\n </div>\n\n <div class="outline outline-mode-only">\n <div class="no-outline-overlay">\n <div class="no-outline-overlay-icon"></div>\n <p class="title" data-i18n="inspector.outlineUnavailable">Outline Unavailable</p>\n </div>\n <div class="body">\n </div>\n </div>\n\n <div class="summary summary-mode-only">\n <div class="body">\n <div class="collapsible-section fact-summary">\n <h3 class="collapsible-header" data-i18n="inspector.summary.fact.header">Fact Summary</h3>\n <div class="collapsible-body">\n <div class="total-facts-value">\n <span class="total-facts-title" data-i18n="inspector.summary.fact.title">Total Facts:</span>\n </div>\n </div>\n </div>\n <div class="collapsible-section tag-summary">\n <h3 class="collapsible-header" data-i18n="inspector.summary.tag.header">Tag Summary</h3>\n <div class="collapsible-body">\n <div class="tag-summary-body">\n <table>\n <thead>\n <tr>\n <th scope="col" class="namespace"><div data-i18n="inspector.summary.tag.colNamespace">Namespace</div></th>\n <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colPrimaryItems">Primary Items</div></th>\n <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colDimensions">Dimensions</div></th>\n <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colMembers">Members</div></th>\n <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colTotal">Total</div></th>\n </tr>\n </thead>\n <tbody class="tag-summary-table-body">\n </tbody>\n <tfoot>\n <tr class="tag-summary-table-footer-row">\n <th scope="row" data-i18n="inspector.summary.tag.rowTotal">Total</th>\n </tr>\n </tfoot>\n </table>\n </div>\n </div>\n </div>\n <div class="collapsible-section files-summary">\n <h3 class="collapsible-header" data-i18n="inspector.summary.file.header">File Summary</h3>\n <div class="collapsible-body">\n <div class="file-summary-container">\n <div class="files inline-docs">\n <span class="files-summary-title" data-i18n="inspector.summary.file.inline">Inline Documents</span>\n <ul></ul>\n </div>\n <div class="files schemas">\n <span class="files-summary-title" data-i18n="inspector.summary.file.schemas">Schemas</span>\n <ul></ul>\n </div>\n <div class="files pres-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.presentation">Presentation Linkbases</span>\n <ul></ul>\n </div>\n <div class="files calc-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.calculations">Calculation Linkbases</span>\n <ul></ul>\n </div>\n <div class="files def-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.definitions">Definition Linkbases</span>\n <ul></ul>\n </div>\n <div class="files label-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.labels">Label Linkbases</span>\n <ul></ul>\n </div>\n <div class="files ref-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.references">Reference Linkbases</span>\n <ul></ul>\n </div>\n <div class="files other-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.other">Other Linkbases</span>\n <ul></ul>\n </div>\n </div>\n </div>\n </div>\n <div class="collapsible-section report-creation">\n <h3 class="collapsible-header" data-i18n="inspector.summary.reportCreation">Report Creation</h3>\n <div class="collapsible-body">\n <ul></ul>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n <div class="inspector-foot powered-by">\n <a href="https://arelle.org" target="_blank"><img alt="Arelle logo (opens in new window)" src="${n(59)}"/></a>\n <div class="version"></div>\n </div>\n <div class="failed-to-load-mask"></div>\n </div>\n <div class="dialog-mask">\n </div>\n <div id="dialog-container"></div>\n <div id="dialog-templates">\n <div class="dialog full-screen chart">\n <div class="close"></div>\n <div class="contents">\n <div class="chart-container"><canvas id="chart-canvas"></canvas></div>\n <div class="other-aspects"></div>\n </div>\n </div>\n <div class="dialog validation-report">\n <div class="close"></div>\n <div class="contents">\n <h2 data-i18n="inspector.validationResults">Validation results</h2>\n <table>\n <thead>\n <th data-i18n="inspector.validationSeverity">Severity</th>\n <th data-i18n="inspector.validationCode">Code</th>\n <th data-i18n="inspector.validationMessage">Message</th>\n </thead>\n <tbody>\n\n </tbody>\n </table>\n <div class="buttons">\n </div>\n </div>\n </div>\n <div class="dialog calculation-inspector">\n <div class="close"></div>\n <div class="contents">\n <h2 data-i18n="inspector.calculationDetails">Calculation details</h2>\n <table class="calculation-trace">\n <thead>\n <tr>\n <th class="weight"></th>\n <th class="line-item" data-i18n="calculation.concept">Concept</th>\n <th class="value-column" data-i18n="calculation.reported-value">Reported Value</th>\n <th class="icons"></th>\n <th class="value-column calc11-only" data-i18n="calculation.mininum">Minimum</th>\n <th class="value-column calc11-only" data-i18n="calculation.maximum">Maximum</th>\n </tr>\n </thead>\n <tbody>\n </tbody>\n <tfoot>\n <tr>\n <td colspan="6" class="status"><span class="icon"></span> <span class="message"></span></td>\n </tr>\n </tfoot>\n </table>\n <div class="buttons">\n </div>\n </div>\n </div>\n <div class="dialog text-block-viewer">\n <div class="close"></div>\n <div class="contents">\n <h2 class="title"></h2>\n <iframe id="text-block-viewer-iframe"></iframe>\n <div class="controls">\n <label class="checkbox">\n <input id="text-block-viewer-plain-text" type="checkbox"/> <span data-i18n="inspector.showTextOnly">Show text only</span>\n <span class="checkmark"></span>\n </label>\n </div>\n <div class="buttons">\n </div>\n </div>\n </div>\n <div class="dialog message-box">\n <div class="close"></div>\n <div class="contents">\n <h2 class="title"></h2>\n <div class="message">\n </div>\n <div class="buttons">\n </div>\n </div>\n </div>\n </div>\n <div id="viewer-pane">\n <div class="ixds-tabs"><div class="tab-area"></div></div>\n <div id="iframe-container">\n <div class="zoom-in">+</div>\n <div class="zoom-out">-</div>\n <div class="print" title="Print Document" data-i18n="[title]inspector.printDocument"></div>\n </div>\n <div class="resize"></div>\n <div class="resize-spacer"></div>\n </div>\n</div>\n`;t.exports=i},806:function(t,e,n){(t=n.nmd(t)).exports=function(){"use strict";function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function n(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,f(i.key),i)}}function o(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=c(t);if(e){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return d(t)}(this,n)}}function p(){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},p.apply(this,arguments)}function f(t){var e=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}var g=function(t){return!(!t||!t.Window)&&t instanceof t.Window},m=void 0,v=void 0;function y(t){m=t;var e=t.document.createTextNode("");e.ownerDocument!==t.document&&"function"==typeof t.wrap&&t.wrap(e)===e&&(t=t.wrap(t)),v=t}function b(t){return g(t)?t:(t.ownerDocument||t).defaultView||v.window}"undefined"!=typeof window&&window&&y(window);var x=function(t){return!!t&&"object"===i(t)},w=function(t){return"function"==typeof t},A=function(t){return t===v||g(t)},_=function(t){return x(t)&&11===t.nodeType},C=x,M=w,k=function(t){return"number"==typeof t},S=function(t){return"boolean"==typeof t},I=function(t){return"string"==typeof t},L=function(t){if(!t||"object"!==i(t))return!1;var e=b(t)||v;return/object|function/.test("undefined"==typeof Element?"undefined":i(Element))?t instanceof Element||t instanceof e.Element:1===t.nodeType&&"string"==typeof t.nodeName},D=function(t){return x(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},T=function(t){return x(t)&&void 0!==t.length&&w(t.splice)};function N(t){var e=t.interaction;if("drag"===e.prepared.name){var n=e.prepared.axis;"x"===n?(e.coords.cur.page.y=e.coords.start.page.y,e.coords.cur.client.y=e.coords.start.client.y,e.coords.velocity.client.y=0,e.coords.velocity.page.y=0):"y"===n&&(e.coords.cur.page.x=e.coords.start.page.x,e.coords.cur.client.x=e.coords.start.client.x,e.coords.velocity.client.x=0,e.coords.velocity.page.x=0)}}function O(t){var e=t.iEvent,n=t.interaction;if("drag"===n.prepared.name){var i=n.prepared.axis;if("x"===i||"y"===i){var r="x"===i?"y":"x";e.page[r]=n.coords.start.page[r],e.client[r]=n.coords.start.client[r],e.delta[r]=0}}}var j={id:"actions/drag",install:function(t){var e=t.actions,n=t.Interactable,i=t.defaults;n.prototype.draggable=j.draggable,e.map.drag=j,e.methodDict.drag="draggable",i.actions.drag=j.defaults},listeners:{"interactions:before-action-move":N,"interactions:action-resume":N,"interactions:action-move":O,"auto-start:check":function(t){var e=t.interaction,n=t.interactable,i=t.buttons,r=n.options.drag;if(r&&r.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||i&n.options.drag.mouseButtons))return t.action={name:"drag",axis:"start"===r.lockAxis?r.startAxis:r.lockAxis},!1}},draggable:function(t){return C(t)?(this.options.drag.enabled=!1!==t.enabled,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):S(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:N,move:O,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return 0===t.search("drag")}},E=j,z={init:function(t){var e=t;z.document=e.document,z.DocumentFragment=e.DocumentFragment||F,z.SVGElement=e.SVGElement||F,z.SVGSVGElement=e.SVGSVGElement||F,z.SVGElementInstance=e.SVGElementInstance||F,z.Element=e.Element||F,z.HTMLElement=e.HTMLElement||z.Element,z.Event=e.Event,z.Touch=e.Touch||F,z.PointerEvent=e.PointerEvent||e.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function F(){}var P=z,R={init:function(t){var e=P.Element,n=t.navigator||{};R.supportsTouch="ontouchstart"in t||M(t.DocumentTouch)&&P.document instanceof t.DocumentTouch,R.supportsPointerEvent=!1!==n.pointerEnabled&&!!P.PointerEvent,R.isIOS=/iP(hone|od|ad)/.test(n.platform),R.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),R.isIe9=/MSIE 9/.test(n.userAgent),R.isOperaMobile="Opera"===n.appName&&R.supportsTouch&&/Presto/.test(n.userAgent),R.prefixedMatchesSelector="matches"in e.prototype?"matches":"webkitMatchesSelector"in e.prototype?"webkitMatchesSelector":"mozMatchesSelector"in e.prototype?"mozMatchesSelector":"oMatchesSelector"in e.prototype?"oMatchesSelector":"msMatchesSelector",R.pEventTypes=R.supportsPointerEvent?P.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,R.wheelEvent=P.document&&"onmousewheel"in P.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},Y=R;function U(t,e){if(t.contains)return t.contains(e);for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function B(t,e){for(;L(t);){if(H(t,e))return t;t=W(t)}return null}function W(t){var e=t.parentNode;if(_(e)){for(;(e=e.host)&&_(e););return e}return e}function H(t,e){return v!==m&&(e=e.replace(/\/deep\//g," ")),t[Y.prefixedMatchesSelector](e)}var V=function(t){return t.parentNode||t.host};function Z(t,e){for(var n,i=[],r=t;(n=V(r))&&r!==e&&n!==r.ownerDocument;)i.unshift(r),r=n;return i}function G(t,e,n){for(;L(t);){if(H(t,e))return!0;if((t=W(t))===n)return H(t,e)}return!1}function Q(t){return t.correspondingUseElement||t}function J(t){var e=t instanceof P.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return e&&{left:e.left,right:e.right,top:e.top,bottom:e.bottom,width:e.width||e.right-e.left,height:e.height||e.bottom-e.top}}function X(t){var e,n=J(t);if(!Y.isIOS7&&n){var i={x:(e=(e=b(t))||v).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop};n.left+=i.x,n.right+=i.x,n.top+=i.y,n.bottom+=i.y}return n}function q(t){for(var e=[];t;)e.push(t),t=W(t);return e}function $(t){return!!I(t)&&(P.document.querySelector(t),!0)}function K(t,e){for(var n in e)t[n]=e[n];return t}function tt(t,e,n){return"parent"===t?W(n):"self"===t?e.getRect(n):B(n,t)}function et(t,e,n,i){var r=t;return I(r)?r=tt(r,e,n):M(r)&&(r=r.apply(void 0,i)),L(r)&&(r=X(r)),r}function nt(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function it(t){return!t||"x"in t&&"y"in t||((t=K({},t)).x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function rt(t,e,n){t.left&&(e.left+=n.x),t.right&&(e.right+=n.x),t.top&&(e.top+=n.y),t.bottom&&(e.bottom+=n.y),e.width=e.right-e.left,e.height=e.bottom-e.top}function st(t,e,n){var i=n&&t.options[n];return nt(et(i&&i.origin||t.options.origin,t,e,[t&&e]))||{x:0,y:0}}function ot(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(t){return!0},i=arguments.length>3?arguments[3]:void 0;if(i=i||{},I(t)&&-1!==t.search(" ")&&(t=at(t)),T(t))return t.forEach((function(t){return ot(t,e,n,i)})),i;if(C(t)&&(e=t,t=""),M(e)&&n(t))i[t]=i[t]||[],i[t].push(e);else if(T(e))for(var r=0,s=e;r<s.length;r++){var o=s[r];ot(t,o,n,i)}else if(C(e))for(var a in e)ot(at(a).map((function(e){return"".concat(t).concat(e)})),e[a],n,i);return i}function at(t){return t.trim().split(/ +/)}var lt=function(t,e){return Math.sqrt(t*t+e*e)},ct=["webkit","moz"];function ut(t,e){t.__set||(t.__set={});var n=function(n){if(ct.some((function(t){return 0===n.indexOf(t)})))return 1;"function"!=typeof t[n]&&"__set"!==n&&Object.defineProperty(t,n,{get:function(){return n in t.__set?t.__set[n]:t.__set[n]=e[n]},set:function(e){t.__set[n]=e},configurable:!0})};for(var i in e)n(i);return t}function dt(t,e){t.page=t.page||{},t.page.x=e.page.x,t.page.y=e.page.y,t.client=t.client||{},t.client.x=e.client.x,t.client.y=e.client.y,t.timeStamp=e.timeStamp}function ht(t){t.page.x=0,t.page.y=0,t.client.x=0,t.client.y=0}function pt(t){return t instanceof P.Event||t instanceof P.Touch}function ft(t,e,n){return t=t||"page",(n=n||{}).x=e[t+"X"],n.y=e[t+"Y"],n}function gt(t,e){return e=e||{x:0,y:0},Y.isOperaMobile&&pt(t)?(ft("screen",t,e),e.x+=window.scrollX,e.y+=window.scrollY):ft("page",t,e),e}function mt(t){return k(t.pointerId)?t.pointerId:t.identifier}function vt(t){var e=[];return T(t)?(e[0]=t[0],e[1]=t[1]):"touchend"===t.type?1===t.touches.length?(e[0]=t.touches[0],e[1]=t.changedTouches[0]):0===t.touches.length&&(e[0]=t.changedTouches[0],e[1]=t.changedTouches[1]):(e[0]=t.touches[0],e[1]=t.touches[1]),e}function yt(t){for(var e={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n<t.length;n++){var i=t[n];for(var r in e)e[r]+=i[r]}for(var s in e)e[s]/=t.length;return e}function bt(t){if(!t.length)return null;var e=vt(t),n=Math.min(e[0].pageX,e[1].pageX),i=Math.min(e[0].pageY,e[1].pageY),r=Math.max(e[0].pageX,e[1].pageX),s=Math.max(e[0].pageY,e[1].pageY);return{x:n,y:i,left:n,top:i,right:r,bottom:s,width:r-n,height:s-i}}function xt(t,e){var n=e+"X",i=e+"Y",r=vt(t),s=r[0][n]-r[1][n],o=r[0][i]-r[1][i];return lt(s,o)}function wt(t,e){var n=e+"X",i=e+"Y",r=vt(t),s=r[1][n]-r[0][n],o=r[1][i]-r[0][i];return 180*Math.atan2(o,s)/Math.PI}function At(t){return I(t.pointerType)?t.pointerType:k(t.pointerType)?[void 0,void 0,"touch","pen","mouse"][t.pointerType]:/touch/.test(t.type||"")||t instanceof P.Touch?"touch":"mouse"}function _t(t){var e=M(t.composedPath)?t.composedPath():t.path;return[Q(e?e[0]:t.target),Q(t.currentTarget)]}var Ct=function(){function t(e){r(this,t),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=e}return o(t,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),t}();Object.defineProperty(Ct.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Mt=function(t,e){for(var n=0;n<e.length;n++){var i=e[n];t.push(i)}return t},kt=function(t){return Mt([],t)},St=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n,t))return n;return-1},It=function(t,e){return t[St(t,e)]},Lt=function(t){l(n,t);var e=h(n);function n(t,i,s){var o;r(this,n),(o=e.call(this,i._interaction)).dropzone=void 0,o.dragEvent=void 0,o.relatedTarget=void 0,o.draggable=void 0,o.propagationStopped=!1,o.immediatePropagationStopped=!1;var a="dragleave"===s?t.prev:t.cur,l=a.element,c=a.dropzone;return o.type=s,o.target=l,o.currentTarget=l,o.dropzone=c,o.dragEvent=i,o.relatedTarget=i.target,o.draggable=i.interactable,o.timeStamp=i.timeStamp,o}return o(n,[{key:"reject",value:function(){var t=this,e=this._interaction.dropState;if("dropactivate"===this.type||this.dropzone&&e.cur.dropzone===this.dropzone&&e.cur.element===this.target)if(e.prev.dropzone=this.dropzone,e.prev.element=this.target,e.rejected=!0,e.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){var i=e.activeDrops,r=St(i,(function(e){var n=e.dropzone,i=e.element;return n===t.dropzone&&i===t.target}));e.activeDrops.splice(r,1);var s=new n(e,this.dragEvent,"dropdeactivate");s.dropzone=this.dropzone,s.target=this.target,this.dropzone.fire(s)}else this.dropzone.fire(new n(e,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),n}(Ct);function Dt(t,e){for(var n=0,i=t.slice();n<i.length;n++){var r=i[n],s=r.dropzone,o=r.element;e.dropzone=s,e.target=o,s.fire(e),e.propagationStopped=e.immediatePropagationStopped=!1}}function Tt(t,e){for(var n=function(t,e){for(var n=[],i=0,r=t.interactables.list;i<r.length;i++){var s=r[i];if(s.options.drop.enabled){var o=s.options.drop.accept;if(!(L(o)&&o!==e||I(o)&&!H(e,o)||M(o)&&!o({dropzone:s,draggableElement:e})))for(var a=0,l=s.getAllElements();a<l.length;a++){var c=l[a];c!==e&&n.push({dropzone:s,element:c,rect:s.getRect(c)})}}}return n}(t,e),i=0;i<n.length;i++){var r=n[i];r.rect=r.dropzone.getRect(r.element)}return n}function Nt(t,e,n){for(var i=t.dropState,r=t.interactable,s=t.element,o=[],a=0,l=i.activeDrops;a<l.length;a++){var c=l[a],u=c.dropzone,d=c.element,h=c.rect,p=u.dropCheck(e,n,r,s,d,h);o.push(p?d:null)}var f=function(t){for(var e,n,i,r=[],s=0;s<t.length;s++){var o=t[s],a=t[e];if(o&&s!==e)if(a){var l=V(o),c=V(a);if(l!==o.ownerDocument)if(c!==o.ownerDocument)if(l!==c){r=r.length?r:Z(a);var u=void 0;if(a instanceof P.HTMLElement&&o instanceof P.SVGElement&&!(o instanceof P.SVGSVGElement)){if(o===c)continue;u=o.ownerSVGElement}else u=o;for(var d=Z(u,a.ownerDocument),h=0;d[h]&&d[h]===r[h];)h++;var p=[d[h-1],d[h],r[h]];if(p[0])for(var f=p[0].lastChild;f;){if(f===p[1]){e=s,r=d;break}if(f===p[2])break;f=f.previousSibling}}else i=a,(parseInt(b(n=o).getComputedStyle(n).zIndex,10)||0)>=(parseInt(b(i).getComputedStyle(i).zIndex,10)||0)&&(e=s);else e=s}else e=s}return e}(o);return i.activeDrops[f]||null}function Ot(t,e,n){var i=t.dropState,r={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return"dragstart"===n.type&&(r.activate=new Lt(i,n,"dropactivate"),r.activate.target=null,r.activate.dropzone=null),"dragend"===n.type&&(r.deactivate=new Lt(i,n,"dropdeactivate"),r.deactivate.target=null,r.deactivate.dropzone=null),i.rejected||(i.cur.element!==i.prev.element&&(i.prev.dropzone&&(r.leave=new Lt(i,n,"dragleave"),n.dragLeave=r.leave.target=i.prev.element,n.prevDropzone=r.leave.dropzone=i.prev.dropzone),i.cur.dropzone&&(r.enter=new Lt(i,n,"dragenter"),n.dragEnter=i.cur.element,n.dropzone=i.cur.dropzone)),"dragend"===n.type&&i.cur.dropzone&&(r.drop=new Lt(i,n,"drop"),n.dropzone=i.cur.dropzone,n.relatedTarget=i.cur.element),"dragmove"===n.type&&i.cur.dropzone&&(r.move=new Lt(i,n,"dropmove"),n.dropzone=i.cur.dropzone)),r}function jt(t,e){var n=t.dropState,i=n.activeDrops,r=n.cur,s=n.prev;e.leave&&s.dropzone.fire(e.leave),e.enter&&r.dropzone.fire(e.enter),e.move&&r.dropzone.fire(e.move),e.drop&&r.dropzone.fire(e.drop),e.deactivate&&Dt(i,e.deactivate),n.prev.dropzone=r.dropzone,n.prev.element=r.element}function Et(t,e){var n=t.interaction,i=t.iEvent,r=t.event;if("dragmove"===i.type||"dragend"===i.type){var s=n.dropState;e.dynamicDrop&&(s.activeDrops=Tt(e,n.element));var o=i,a=Nt(n,o,r);s.rejected=s.rejected&&!!a&&a.dropzone===s.cur.dropzone&&a.element===s.cur.element,s.cur.dropzone=a&&a.dropzone,s.cur.element=a&&a.element,s.events=Ot(n,0,o)}}var zt={id:"actions/drop",install:function(t){var e=t.actions,n=t.interactStatic,i=t.Interactable,r=t.defaults;t.usePlugin(E),i.prototype.dropzone=function(t){return function(t,e){if(C(e)){if(t.options.drop.enabled=!1!==e.enabled,e.listeners){var n=ot(e.listeners),i=Object.keys(n).reduce((function(t,e){return t[/^(enter|leave)/.test(e)?"drag".concat(e):/^(activate|deactivate|move)/.test(e)?"drop".concat(e):e]=n[e],t}),{}),r=t.options.drop.listeners;r&&t.off(r),t.on(i),t.options.drop.listeners=i}return M(e.ondrop)&&t.on("drop",e.ondrop),M(e.ondropactivate)&&t.on("dropactivate",e.ondropactivate),M(e.ondropdeactivate)&&t.on("dropdeactivate",e.ondropdeactivate),M(e.ondragenter)&&t.on("dragenter",e.ondragenter),M(e.ondragleave)&&t.on("dragleave",e.ondragleave),M(e.ondropmove)&&t.on("dropmove",e.ondropmove),/^(pointer|center)$/.test(e.overlap)?t.options.drop.overlap=e.overlap:k(e.overlap)&&(t.options.drop.overlap=Math.max(Math.min(1,e.overlap),0)),"accept"in e&&(t.options.drop.accept=e.accept),"checker"in e&&(t.options.drop.checker=e.checker),t}return S(e)?(t.options.drop.enabled=e,t):t.options.drop}(this,t)},i.prototype.dropCheck=function(t,e,n,i,r,s){return function(t,e,n,i,r,s,o){var a=!1;if(!(o=o||t.getRect(s)))return!!t.options.drop.checker&&t.options.drop.checker(e,n,a,t,s,i,r);var l=t.options.drop.overlap;if("pointer"===l){var c=st(i,r,"drag"),u=gt(e);u.x+=c.x,u.y+=c.y;var d=u.x>o.left&&u.x<o.right,h=u.y>o.top&&u.y<o.bottom;a=d&&h}var p=i.getRect(r);if(p&&"center"===l){var f=p.left+p.width/2,g=p.top+p.height/2;a=f>=o.left&&f<=o.right&&g>=o.top&&g<=o.bottom}return p&&k(l)&&(a=Math.max(0,Math.min(o.right,p.right)-Math.max(o.left,p.left))*Math.max(0,Math.min(o.bottom,p.bottom)-Math.max(o.top,p.top))/(p.width*p.height)>=l),t.options.drop.checker&&(a=t.options.drop.checker(e,n,a,t,s,i,r)),a}(this,t,e,n,i,r,s)},n.dynamicDrop=function(e){return S(e)?(t.dynamicDrop=e,n):t.dynamicDrop},K(e.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),e.methodDict.drop="dropzone",t.dynamicDrop=!1,r.actions.drop=zt.defaults},listeners:{"interactions:before-action-start":function(t){var e=t.interaction;"drag"===e.prepared.name&&(e.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(t,e){var n=t.interaction,i=(t.event,t.iEvent);if("drag"===n.prepared.name){var r=n.dropState;r.activeDrops=[],r.events={},r.activeDrops=Tt(e,n.element),r.events=Ot(n,0,i),r.events.activate&&(Dt(r.activeDrops,r.events.activate),e.fire("actions/drop:start",{interaction:n,dragEvent:i}))}},"interactions:action-move":Et,"interactions:after-action-move":function(t,e){var n=t.interaction,i=t.iEvent;if("drag"===n.prepared.name){var r=n.dropState;jt(n,r.events),e.fire("actions/drop:move",{interaction:n,dragEvent:i}),r.events={}}},"interactions:action-end":function(t,e){if("drag"===t.interaction.prepared.name){var n=t.interaction,i=t.iEvent;Et(t,e),jt(n,n.dropState.events),e.fire("actions/drop:end",{interaction:n,dragEvent:i})}},"interactions:stop":function(t){var e=t.interaction;if("drag"===e.prepared.name){var n=e.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:Tt,getDrop:Nt,getDropEvents:Ot,fireDropEvents:jt,filterEventType:function(t){return 0===t.search("drag")||0===t.search("drop")},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Ft=zt;function Pt(t){var e=t.interaction,n=t.iEvent,i=t.phase;if("gesture"===e.prepared.name){var r=e.pointers.map((function(t){return t.pointer})),s="start"===i,o="end"===i,a=e.interactable.options.deltaSource;if(n.touches=[r[0],r[1]],s)n.distance=xt(r,a),n.box=bt(r),n.scale=1,n.ds=0,n.angle=wt(r,a),n.da=0,e.gesture.startDistance=n.distance,e.gesture.startAngle=n.angle;else if(o||e.pointers.length<2){var l=e.prevEvent;n.distance=l.distance,n.box=l.box,n.scale=l.scale,n.ds=0,n.angle=l.angle,n.da=0}else n.distance=xt(r,a),n.box=bt(r),n.scale=n.distance/e.gesture.startDistance,n.angle=wt(r,a),n.ds=n.scale-e.gesture.scale,n.da=n.angle-e.gesture.angle;e.gesture.distance=n.distance,e.gesture.angle=n.angle,k(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(e.gesture.scale=n.scale)}}var Rt={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var e=t.actions,n=t.Interactable,i=t.defaults;n.prototype.gesturable=function(t){return C(t)?(this.options.gesture.enabled=!1!==t.enabled,this.setPerAction("gesture",t),this.setOnEvents("gesture",t),this):S(t)?(this.options.gesture.enabled=t,this):this.options.gesture},e.map.gesture=Rt,e.methodDict.gesture="gesturable",i.actions.gesture=Rt.defaults},listeners:{"interactions:action-start":Pt,"interactions:action-move":Pt,"interactions:action-end":Pt,"interactions:new":function(t){t.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(t){if(!(t.interaction.pointers.length<2)){var e=t.interactable.options.gesture;if(e&&e.enabled)return t.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(t){return 0===t.search("gesture")}},Yt=Rt;function Ut(t,e,n,i,r,s,o){if(!e)return!1;if(!0===e){var a=k(s.width)?s.width:s.right-s.left,l=k(s.height)?s.height:s.bottom-s.top;if(o=Math.min(o,Math.abs(("left"===t||"right"===t?a:l)/2)),a<0&&("left"===t?t="right":"right"===t&&(t="left")),l<0&&("top"===t?t="bottom":"bottom"===t&&(t="top")),"left"===t){var c=a>=0?s.left:s.right;return n.x<c+o}if("top"===t){var u=l>=0?s.top:s.bottom;return n.y<u+o}if("right"===t)return n.x>(a>=0?s.right:s.left)-o;if("bottom"===t)return n.y>(l>=0?s.bottom:s.top)-o}return!!L(i)&&(L(e)?e===i:G(i,e,r))}function Bt(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.resizeAxes){var i=e;n.interactable.options.resize.square?("y"===n.resizeAxes?i.delta.x=i.delta.y:i.delta.y=i.delta.x,i.axes="xy"):(i.axes=n.resizeAxes,"x"===n.resizeAxes?i.delta.y=0:"y"===n.resizeAxes&&(i.delta.x=0))}}var Wt,Ht,Vt={id:"actions/resize",before:["actions/drag"],install:function(t){var e=t.actions,n=t.browser,i=t.Interactable,r=t.defaults;Vt.cursors=function(t){return t.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),Vt.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,i.prototype.resizable=function(e){return function(t,e,n){return C(e)?(t.options.resize.enabled=!1!==e.enabled,t.setPerAction("resize",e),t.setOnEvents("resize",e),I(e.axis)&&/^x$|^y$|^xy$/.test(e.axis)?t.options.resize.axis=e.axis:null===e.axis&&(t.options.resize.axis=n.defaults.actions.resize.axis),S(e.preserveAspectRatio)?t.options.resize.preserveAspectRatio=e.preserveAspectRatio:S(e.square)&&(t.options.resize.square=e.square),t):S(e)?(t.options.resize.enabled=e,t):t.options.resize}(this,e,t)},e.map.resize=Vt,e.methodDict.resize="resizable",r.actions.resize=Vt.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){!function(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=e,r=n.rect;n._rects={start:K({},r),corrected:K({},r),previous:K({},r),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},i.edges=n.prepared.edges,i.rect=n._rects.corrected,i.deltaRect=n._rects.delta}}(t),Bt(t)},"interactions:action-move":function(t){!function(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=e,r=n.interactable.options.resize.invert,s="reposition"===r||"negate"===r,o=n.rect,a=n._rects,l=a.start,c=a.corrected,u=a.delta,d=a.previous;if(K(d,c),s){if(K(c,o),"reposition"===r){if(c.top>c.bottom){var h=c.top;c.top=c.bottom,c.bottom=h}if(c.left>c.right){var p=c.left;c.left=c.right,c.right=p}}}else c.top=Math.min(o.top,l.bottom),c.bottom=Math.max(o.bottom,l.top),c.left=Math.min(o.left,l.right),c.right=Math.max(o.right,l.left);for(var f in c.width=c.right-c.left,c.height=c.bottom-c.top,c)u[f]=c[f]-d[f];i.edges=n.prepared.edges,i.rect=c,i.deltaRect=u}}(t),Bt(t)},"interactions:action-end":function(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=e;i.edges=n.prepared.edges,i.rect=n._rects.corrected,i.deltaRect=n._rects.delta}},"auto-start:check":function(t){var e=t.interaction,n=t.interactable,i=t.element,r=t.rect,s=t.buttons;if(r){var o=K({},e.coords.cur.page),a=n.options.resize;if(a&&a.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||s&a.mouseButtons)){if(C(a.edges)){var l={left:!1,right:!1,top:!1,bottom:!1};for(var c in l)l[c]=Ut(c,a.edges[c],o,e._latestPointer.eventTarget,i,r,a.margin||Vt.defaultMargin);l.left=l.left&&!l.right,l.top=l.top&&!l.bottom,(l.left||l.right||l.top||l.bottom)&&(t.action={name:"resize",edges:l})}else{var u="y"!==a.axis&&o.x>r.right-Vt.defaultMargin,d="x"!==a.axis&&o.y>r.bottom-Vt.defaultMargin;(u||d)&&(t.action={name:"resize",axes:(u?"x":"")+(d?"y":"")})}return!t.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(t){var e=t.edges,n=t.axis,i=t.name,r=Vt.cursors,s=null;if(n)s=r[i+n];else if(e){for(var o="",a=0,l=["top","bottom","left","right"];a<l.length;a++){var c=l[a];e[c]&&(o+=c)}s=r[o]}return s},filterEventType:function(t){return 0===t.search("resize")},defaultMargin:null},Zt=Vt,Gt={id:"actions",install:function(t){t.usePlugin(Yt),t.usePlugin(Zt),t.usePlugin(E),t.usePlugin(Ft)}},Qt=0,Jt=function(t){return Wt(t)},Xt=function(t){return Ht(t)},qt=function(t){if(Wt=t.requestAnimationFrame,Ht=t.cancelAnimationFrame,!Wt)for(var e=["ms","moz","webkit","o"],n=0;n<e.length;n++){var i=e[n];Wt=t["".concat(i,"RequestAnimationFrame")],Ht=t["".concat(i,"CancelAnimationFrame")]||t["".concat(i,"CancelRequestAnimationFrame")]}Wt=Wt&&Wt.bind(t),Ht=Ht&&Ht.bind(t),Wt||(Wt=function(e){var n=Date.now(),i=Math.max(0,16-(n-Qt)),r=t.setTimeout((function(){e(n+i)}),i);return Qt=n+i,r},Ht=function(t){return clearTimeout(t)})},$t={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(t){$t.isScrolling=!0,Xt($t.i),t.autoScroll=$t,$t.interaction=t,$t.prevTime=$t.now(),$t.i=Jt($t.scroll)},stop:function(){$t.isScrolling=!1,$t.interaction&&($t.interaction.autoScroll=null),Xt($t.i)},scroll:function(){var t=$t.interaction,e=t.interactable,n=t.element,i=t.prepared.name,r=e.options[i].autoScroll,s=Kt(r.container,e,n),o=$t.now(),a=(o-$t.prevTime)/1e3,l=r.speed*a;if(l>=1){var c={x:$t.x*l,y:$t.y*l};if(c.x||c.y){var u=te(s);A(s)?s.scrollBy(c.x,c.y):s&&(s.scrollLeft+=c.x,s.scrollTop+=c.y);var d=te(s),h={x:d.x-u.x,y:d.y-u.y};(h.x||h.y)&&e.fire({type:"autoscroll",target:n,interactable:e,delta:h,interaction:t,container:s})}$t.prevTime=o}$t.isScrolling&&(Xt($t.i),$t.i=Jt($t.scroll))},check:function(t,e){var n;return null==(n=t.options[e].autoScroll)?void 0:n.enabled},onInteractionMove:function(t){var e=t.interaction,n=t.pointer;if(e.interacting()&&$t.check(e.interactable,e.prepared.name))if(e.simulation)$t.x=$t.y=0;else{var i,r,s,o,a=e.interactable,l=e.element,c=e.prepared.name,u=a.options[c].autoScroll,d=Kt(u.container,a,l);if(A(d))o=n.clientX<$t.margin,i=n.clientY<$t.margin,r=n.clientX>d.innerWidth-$t.margin,s=n.clientY>d.innerHeight-$t.margin;else{var h=J(d);o=n.clientX<h.left+$t.margin,i=n.clientY<h.top+$t.margin,r=n.clientX>h.right-$t.margin,s=n.clientY>h.bottom-$t.margin}$t.x=r?1:o?-1:0,$t.y=s?1:i?-1:0,$t.isScrolling||($t.margin=u.margin,$t.speed=u.speed,$t.start(e))}}};function Kt(t,e,n){return(I(t)?tt(t,e,n):t)||b(n)}function te(t){return A(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var ee={id:"auto-scroll",install:function(t){var e=t.defaults,n=t.actions;t.autoScroll=$t,$t.now=function(){return t.now()},n.phaselessTypes.autoscroll=!0,e.perAction.autoScroll=$t.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,$t.stop(),$t.interaction&&($t.interaction=null)},"interactions:stop":$t.stop,"interactions:action-move":function(t){return $t.onInteractionMove(t)}}},ne=ee;function ie(t,e){var n=!1;return function(){return n||(v.console.warn(e),n=!0),t.apply(this,arguments)}}function re(t,e){return t.name=e.name,t.axis=e.axis,t.edges=e.edges,t}function se(t){return S(t)?(this.options.styleCursor=t,this):null===t?(delete this.options.styleCursor,this):this.options.styleCursor}function oe(t){return M(t)?(this.options.actionChecker=t,this):null===t?(delete this.options.actionChecker,this):this.options.actionChecker}var ae={id:"auto-start/interactableMethods",install:function(t){var e=t.Interactable;e.prototype.getAction=function(e,n,i,r){var s=function(t,e,n,i,r){var s=t.getRect(i),o={action:null,interactable:t,interaction:n,element:i,rect:s,buttons:e.buttons||{0:1,1:4,3:8,4:16}[e.button]};return r.fire("auto-start:check",o),o.action}(this,n,i,r,t);return this.options.actionChecker?this.options.actionChecker(e,n,s,this,r,i):s},e.prototype.ignoreFrom=ie((function(t){return this._backCompatOption("ignoreFrom",t)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),e.prototype.allowFrom=ie((function(t){return this._backCompatOption("allowFrom",t)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),e.prototype.actionChecker=oe,e.prototype.styleCursor=se}};function le(t,e,n,i,r){return e.testIgnoreAllow(e.options[t.name],n,i)&&e.options[t.name].enabled&&he(e,n,t,r)?t:null}function ce(t,e,n,i,r,s,o){for(var a=0,l=i.length;a<l;a++){var c=i[a],u=r[a],d=c.getAction(e,n,t,u);if(d){var h=le(d,c,u,s,o);if(h)return{action:h,interactable:c,element:u}}}return{action:null,interactable:null,element:null}}function ue(t,e,n,i,r){var s=[],o=[],a=i;function l(t){s.push(t),o.push(a)}for(;L(a);){s=[],o=[],r.interactables.forEachMatch(a,l);var c=ce(t,e,n,s,o,i,r);if(c.action&&!c.interactable.options[c.action.name].manualStart)return c;a=W(a)}return{action:null,interactable:null,element:null}}function de(t,e,n){var i=e.action,r=e.interactable,s=e.element;i=i||{name:null},t.interactable=r,t.element=s,re(t.prepared,i),t.rect=r&&i.name?r.getRect(s):null,ge(t,n),n.fire("autoStart:prepared",{interaction:t})}function he(t,e,n,i){var r=t.options,s=r[n.name].max,o=r[n.name].maxPerElement,a=i.autoStart.maxInteractions,l=0,c=0,u=0;if(!(s&&o&&a))return!1;for(var d=0,h=i.interactions.list;d<h.length;d++){var p=h[d],f=p.prepared.name;if(p.interacting()){if(++l>=a)return!1;if(p.interactable===t){if((c+=f===n.name?1:0)>=s)return!1;if(p.element===e&&(u++,f===n.name&&u>=o))return!1}}}return a>0}function pe(t,e){return k(t)?(e.autoStart.maxInteractions=t,this):e.autoStart.maxInteractions}function fe(t,e,n){var i=n.autoStart.cursorElement;i&&i!==t&&(i.style.cursor=""),t.ownerDocument.documentElement.style.cursor=e,t.style.cursor=e,n.autoStart.cursorElement=e?t:null}function ge(t,e){var n=t.interactable,i=t.element,r=t.prepared;if("mouse"===t.pointerType&&n&&n.options.styleCursor){var s="";if(r.name){var o=n.options[r.name].cursorChecker;s=M(o)?o(r,n,i,t._interacting):e.actions.map[r.name].getCursor(r)}fe(t.element,s||"",e)}else e.autoStart.cursorElement&&fe(e.autoStart.cursorElement,"",e)}var me={id:"auto-start/base",before:["actions"],install:function(t){var e=t.interactStatic,n=t.defaults;t.usePlugin(ae),n.base.actionChecker=null,n.base.styleCursor=!0,K(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),e.maxInteractions=function(e){return pe(e,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:he,cursorElement:null}},listeners:{"interactions:down":function(t,e){var n=t.interaction,i=t.pointer,r=t.event,s=t.eventTarget;n.interacting()||de(n,ue(n,i,r,s,e),e)},"interactions:move":function(t,e){!function(t,e){var n=t.interaction,i=t.pointer,r=t.event,s=t.eventTarget;"mouse"!==n.pointerType||n.pointerIsDown||n.interacting()||de(n,ue(n,i,r,s,e),e)}(t,e),function(t,e){var n=t.interaction;if(n.pointerIsDown&&!n.interacting()&&n.pointerWasMoved&&n.prepared.name){e.fire("autoStart:before-start",t);var i=n.interactable,r=n.prepared.name;r&&i&&(i.options[r].manualStart||!he(i,n.element,n.prepared,e)?n.stop():(n.start(n.prepared,i,n.element),ge(n,e)))}}(t,e)},"interactions:stop":function(t,e){var n=t.interaction,i=n.interactable;i&&i.options.styleCursor&&fe(n.element,"",e)}},maxInteractions:pe,withinInteractionLimit:he,validateAction:le},ve=me,ye={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,e){var n=t.interaction,i=t.eventTarget,r=t.dx,s=t.dy;if("drag"===n.prepared.name){var o=Math.abs(r),a=Math.abs(s),l=n.interactable.options.drag,c=l.startAxis,u=o>a?"x":o<a?"y":"xy";if(n.prepared.axis="start"===l.lockAxis?u[0]:l.lockAxis,"xy"!==u&&"xy"!==c&&c!==u){n.prepared.name=null;for(var d=i,h=function(t){if(t!==n.interactable){var r=n.interactable.options.drag;if(!r.manualStart&&t.testIgnoreAllow(r,d,i)){var s=t.getAction(n.downPointer,n.downEvent,n,d);if(s&&"drag"===s.name&&function(t,e){if(!e)return!1;var n=e.options.drag.startAxis;return"xy"===t||"xy"===n||n===t}(u,t)&&ve.validateAction(s,t,d,i,e))return t}}};L(d);){var p=e.interactables.forEachMatch(d,h);if(p){n.prepared.name="drag",n.interactable=p,n.element=d;break}d=W(d)}}}}}};function be(t){var e=t.prepared&&t.prepared.name;if(!e)return null;var n=t.interactable.options;return n[e].hold||n[e].delay}var xe={id:"auto-start/hold",install:function(t){var e=t.defaults;t.usePlugin(ve),e.perAction.hold=0,e.perAction.delay=0},listeners:{"interactions:new":function(t){t.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(t){var e=t.interaction,n=be(e);n>0&&(e.autoStartHoldTimer=setTimeout((function(){e.start(e.prepared,e.interactable,e.element)}),n))},"interactions:move":function(t){var e=t.interaction,n=t.duplicate;e.autoStartHoldTimer&&e.pointerWasMoved&&!n&&(clearTimeout(e.autoStartHoldTimer),e.autoStartHoldTimer=null)},"autoStart:before-start":function(t){var e=t.interaction;be(e)>0&&(e.prepared.name=null)}},getHoldDuration:be},we=xe,Ae={id:"auto-start",install:function(t){t.usePlugin(ve),t.usePlugin(we),t.usePlugin(ye)}},_e=function(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):S(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault};function Ce(t){var e=t.interaction,n=t.event;e.interactable&&e.interactable.checkAndPreventDefault(n)}var Me={id:"core/interactablePreventDefault",install:function(t){var e=t.Interactable;e.prototype.preventDefault=_e,e.prototype.checkAndPreventDefault=function(e){return function(t,e,n){var i=t.options.preventDefault;if("never"!==i)if("always"!==i){if(e.events.supportsPassive&&/^touch(start|move)$/.test(n.type)){var r=b(n.target).document,s=e.getDocOptions(r);if(!s||!s.events||!1!==s.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(n.type)||L(n.target)&&H(n.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||n.preventDefault()}else n.preventDefault()}(this,t,e)},t.interactions.docEvents.push({type:"dragstart",listener:function(e){for(var n=0,i=t.interactions.list;n<i.length;n++){var r=i[n];if(r.element&&(r.element===e.target||U(r.element,e.target)))return void r.interactable.checkAndPreventDefault(e)}}})},listeners:["down","move","up","cancel"].reduce((function(t,e){return t["interactions:".concat(e)]=Ce,t}),{})};function ke(t,e){if(e.phaselessTypes[t])return!0;for(var n in e.map)if(0===t.indexOf(n)&&t.substr(n.length)in e.phases)return!0;return!1}function Se(t){var e={};for(var n in t){var i=t[n];D(i)?e[n]=Se(i):T(i)?e[n]=kt(i):e[n]=i}return e}var Ie=function(){function t(e){r(this,t),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=e,this.result=Le(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return o(t,[{key:"start",value:function(t,e){var n,i,r=t.phase,s=this.interaction,o=function(t){var e=t.interactable.options[t.prepared.name],n=e.modifiers;return n&&n.length?n:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map((function(t){var n=e[t];return n&&n.enabled&&{options:n,methods:n._methods}})).filter((function(t){return!!t}))}(s);this.prepareStates(o),this.startEdges=K({},s.edges),this.edges=K({},this.startEdges),this.startOffset=(i=e,(n=s.rect)?{left:i.x-n.left,top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var a=this.fillArg({phase:r,pageCoords:e,preEnd:!1});return this.result=Le(),this.startAll(a),this.result=this.setAll(a)}},{key:"fillArg",value:function(t){var e=this.interaction;return t.interaction=e,t.interactable=e.interactable,t.element=e.element,t.rect||(t.rect=e.rect),t.edges||(t.edges=this.startEdges),t.startOffset=this.startOffset,t}},{key:"startAll",value:function(t){for(var e=0,n=this.states;e<n.length;e++){var i=n[e];i.methods.start&&(t.state=i,i.methods.start(t))}}},{key:"setAll",value:function(t){var e=t.phase,n=t.preEnd,i=t.skipModifiers,r=t.rect,s=t.edges;t.coords=K({},t.pageCoords),t.rect=K({},r),t.edges=K({},s);for(var o=i?this.states.slice(i):this.states,a=Le(t.coords,t.rect),l=0;l<o.length;l++){var c,u=o[l],d=u.options,h=K({},t.coords),p=null;null!=(c=u.methods)&&c.set&&this.shouldDo(d,n,e)&&(t.state=u,p=u.methods.set(t),rt(t.edges,t.rect,{x:t.coords.x-h.x,y:t.coords.y-h.y})),a.eventProps.push(p)}K(this.edges,t.edges),a.delta.x=t.coords.x-t.pageCoords.x,a.delta.y=t.coords.y-t.pageCoords.y,a.rectDelta.left=t.rect.left-r.left,a.rectDelta.right=t.rect.right-r.right,a.rectDelta.top=t.rect.top-r.top,a.rectDelta.bottom=t.rect.bottom-r.bottom;var f=this.result.coords,g=this.result.rect;if(f&&g){var m=a.rect.left!==g.left||a.rect.right!==g.right||a.rect.top!==g.top||a.rect.bottom!==g.bottom;a.changed=m||f.x!==a.coords.x||f.y!==a.coords.y}return a}},{key:"applyToInteraction",value:function(t){var e=this.interaction,n=t.phase,i=e.coords.cur,r=e.coords.start,s=this.result,o=this.startDelta,a=s.delta;"start"===n&&K(this.startDelta,s.delta);for(var l=0,c=[[r,o],[i,a]];l<c.length;l++){var u=c[l],d=u[0],h=u[1];d.page.x+=h.x,d.page.y+=h.y,d.client.x+=h.x,d.client.y+=h.y}var p=this.result.rectDelta,f=t.rect||e.rect;f.left+=p.left,f.right+=p.right,f.top+=p.top,f.bottom+=p.bottom,f.width=f.right-f.left,f.height=f.bottom-f.top}},{key:"setAndApply",value:function(t){var e=this.interaction,n=t.phase,i=t.preEnd,r=t.skipModifiers,s=this.setAll(this.fillArg({preEnd:i,phase:n,pageCoords:t.modifiedCoords||e.coords.cur.page}));if(this.result=s,!s.changed&&(!r||r<this.states.length)&&e.interacting())return!1;if(t.modifiedCoords){var o=e.coords.cur.page,a={x:t.modifiedCoords.x-o.x,y:t.modifiedCoords.y-o.y};s.coords.x+=a.x,s.coords.y+=a.y,s.delta.x+=a.x,s.delta.y+=a.y}this.applyToInteraction(t)}},{key:"beforeEnd",value:function(t){var e=t.interaction,n=t.event,i=this.states;if(i&&i.length){for(var r=!1,s=0;s<i.length;s++){var o=i[s];t.state=o;var a=o.options,l=o.methods,c=l.beforeEnd&&l.beforeEnd(t);if(c)return this.endResult=c,!1;r=r||!r&&this.shouldDo(a,!0,t.phase,!0)}r&&e.move({event:n,preEnd:!0})}}},{key:"stop",value:function(t){var e=t.interaction;if(this.states&&this.states.length){var n=K({states:this.states,interactable:e.interactable,element:e.element,rect:null},t);this.fillArg(n);for(var i=0,r=this.states;i<r.length;i++){var s=r[i];n.state=s,s.methods.stop&&s.methods.stop(n)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(t){this.states=[];for(var e=0;e<t.length;e++){var n=t[e],i=n.options,r=n.methods,s=n.name;this.states.push({options:i,methods:r,index:e,name:s})}return this.states}},{key:"restoreInteractionCoords",value:function(t){var e=t.interaction,n=e.coords,i=e.rect,r=e.modification;if(r.result){for(var s=r.startDelta,o=r.result,a=o.delta,l=o.rectDelta,c=0,u=[[n.start,s],[n.cur,a]];c<u.length;c++){var d=u[c],h=d[0],p=d[1];h.page.x-=p.x,h.page.y-=p.y,h.client.x-=p.x,h.client.y-=p.y}i.left-=l.left,i.right-=l.right,i.top-=l.top,i.bottom-=l.bottom}}},{key:"shouldDo",value:function(t,e,n,i){return!(!t||!1===t.enabled||i&&!t.endOnly||t.endOnly&&!e||"start"===n&&!t.setStart)}},{key:"copyFrom",value:function(t){this.startOffset=t.startOffset,this.startDelta=t.startDelta,this.startEdges=t.startEdges,this.edges=t.edges,this.states=t.states.map((function(t){return Se(t)})),this.result=Le(K({},t.result.coords),K({},t.result.rect))}},{key:"destroy",value:function(){for(var t in this)this[t]=null}}]),t}();function Le(t,e){return{rect:e,coords:t,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function De(t,e){var n=t.defaults,i={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},r=function(t){var r=t||{};for(var s in r.enabled=!1!==r.enabled,n)s in r||(r[s]=n[s]);var o={options:r,methods:i,name:e,enable:function(){return r.enabled=!0,o},disable:function(){return r.enabled=!1,o}};return o};return e&&"string"==typeof e&&(r._defaults=n,r._methods=i),r}function Te(t){var e=t.iEvent,n=t.interaction.modification.result;n&&(e.modifiers=n.eventProps)}var Ne={id:"modifiers/base",before:["actions"],install:function(t){t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(t){var e=t.interaction;e.modification=new Ie(e)},"interactions:before-action-start":function(t){var e=t.interaction,n=t.interaction.modification;n.start(t,e.coords.start.page),e.edges=n.edges,n.applyToInteraction(t)},"interactions:before-action-move":function(t){var e=t.interaction,n=e.modification,i=n.setAndApply(t);return e.edges=n.edges,i},"interactions:before-action-end":function(t){var e=t.interaction,n=e.modification,i=n.beforeEnd(t);return e.edges=n.startEdges,i},"interactions:action-start":Te,"interactions:action-move":Te,"interactions:action-end":Te,"interactions:after-action-start":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-move":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:stop":function(t){return t.interaction.modification.stop(t)}}},Oe=Ne,je={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Ee=function(t){l(n,t);var e=h(n);function n(t,i,s,o,a,l,c){var u;r(this,n),(u=e.call(this,t)).relatedTarget=null,u.screenX=void 0,u.screenY=void 0,u.button=void 0,u.buttons=void 0,u.ctrlKey=void 0,u.shiftKey=void 0,u.altKey=void 0,u.metaKey=void 0,u.page=void 0,u.client=void 0,u.delta=void 0,u.rect=void 0,u.x0=void 0,u.y0=void 0,u.t0=void 0,u.dt=void 0,u.duration=void 0,u.clientX0=void 0,u.clientY0=void 0,u.velocity=void 0,u.speed=void 0,u.swipe=void 0,u.axes=void 0,u.preEnd=void 0,a=a||t.element;var h=t.interactable,p=(h&&h.options||je).deltaSource,f=st(h,a,s),g="start"===o,m="end"===o,v=g?d(u):t.prevEvent,y=g?t.coords.start:m?{page:v.page,client:v.client,timeStamp:t.coords.cur.timeStamp}:t.coords.cur;return u.page=K({},y.page),u.client=K({},y.client),u.rect=K({},t.rect),u.timeStamp=y.timeStamp,m||(u.page.x-=f.x,u.page.y-=f.y,u.client.x-=f.x,u.client.y-=f.y),u.ctrlKey=i.ctrlKey,u.altKey=i.altKey,u.shiftKey=i.shiftKey,u.metaKey=i.metaKey,u.button=i.button,u.buttons=i.buttons,u.target=a,u.currentTarget=a,u.preEnd=l,u.type=c||s+(o||""),u.interactable=h,u.t0=g?t.pointers[t.pointers.length-1].downTime:v.t0,u.x0=t.coords.start.page.x-f.x,u.y0=t.coords.start.page.y-f.y,u.clientX0=t.coords.start.client.x-f.x,u.clientY0=t.coords.start.client.y-f.y,u.delta=g||m?{x:0,y:0}:{x:u[p].x-v[p].x,y:u[p].y-v[p].y},u.dt=t.coords.delta.timeStamp,u.duration=u.timeStamp-u.t0,u.velocity=K({},t.coords.velocity[p]),u.speed=lt(u.velocity.x,u.velocity.y),u.swipe=m||"inertiastart"===o?u.getSwipe():null,u}return o(n,[{key:"getSwipe",value:function(){var t=this._interaction;if(t.prevEvent.speed<600||this.timeStamp-t.prevEvent.timeStamp>150)return null;var e=180*Math.atan2(t.prevEvent.velocityY,t.prevEvent.velocityX)/Math.PI;e<0&&(e+=360);var n=112.5<=e&&e<247.5,i=202.5<=e&&e<337.5;return{up:i,down:!i&&22.5<=e&&e<157.5,left:n,right:!n&&(292.5<=e||e<67.5),angle:e,speed:t.prevEvent.speed,velocity:{x:t.prevEvent.velocityX,y:t.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),n}(Ct);Object.defineProperties(Ee.prototype,{pageX:{get:function(){return this.page.x},set:function(t){this.page.x=t}},pageY:{get:function(){return this.page.y},set:function(t){this.page.y=t}},clientX:{get:function(){return this.client.x},set:function(t){this.client.x=t}},clientY:{get:function(){return this.client.y},set:function(t){this.client.y=t}},dx:{get:function(){return this.delta.x},set:function(t){this.delta.x=t}},dy:{get:function(){return this.delta.y},set:function(t){this.delta.y=t}},velocityX:{get:function(){return this.velocity.x},set:function(t){this.velocity.x=t}},velocityY:{get:function(){return this.velocity.y},set:function(t){this.velocity.y=t}}});var ze=o((function t(e,n,i,s,o){r(this,t),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=e,this.pointer=n,this.event=i,this.downTime=s,this.downTarget=o})),Fe=function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t}({}),Pe=function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t}({}),Re=0,Ye=function(){function t(e){var n=this,i=e.pointerType,s=e.scopeFire;r(this,t),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=ie((function(t){this.move(t)}),"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Re++,this._scopeFire=s,this.pointerType=i;var o=this;this._proxy={};var a=function(t){Object.defineProperty(n._proxy,t,{get:function(){return o[t]}})};for(var l in Fe)a(l);var c=function(t){Object.defineProperty(n._proxy,t,{value:function(){return o[t].apply(o,arguments)}})};for(var u in Pe)c(u);this._scopeFire("interactions:new",{interaction:this})}return o(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(t,e,n){var i=this.updatePointer(t,e,n,!0),r=this.pointers[i];this._scopeFire("interactions:down",{pointer:t,event:e,eventTarget:n,pointerIndex:i,pointerInfo:r,type:"down",interaction:this})}},{key:"start",value:function(t,e,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===t.name?2:1)||!e.options[t.name].enabled)&&(re(this.prepared,t),this.interactable=e,this.element=n,this.rect=e.getRect(n),this.edges=this.prepared.edges?K({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(t,e,n){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(t,e,n,!1);var i,r,s=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(i=this.coords.cur.client.x-this.coords.start.client.x,r=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=lt(i,r)>this.pointerMoveTolerance);var o,a,l,c=this.getPointerIndex(t),u={pointer:t,pointerIndex:c,pointerInfo:this.pointers[c],event:e,type:"move",eventTarget:n,dx:i,dy:r,duplicate:s,interaction:this};s||(o=this.coords.velocity,a=this.coords.delta,l=Math.max(a.timeStamp/1e3,.001),o.page.x=a.page.x/l,o.page.y=a.page.y/l,o.client.x=a.client.x/l,o.client.y=a.client.y/l,o.timeStamp=l),this._scopeFire("interactions:move",u),s||this.simulation||(this.interacting()&&(u.type=null,this.move(u)),this.pointerWasMoved&&dt(this.coords.prev,this.coords.cur))}},{key:"move",value:function(t){t&&t.event||ht(this.coords.delta),(t=K({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},t||{})).phase="move",this._doPhase(t)}},{key:"pointerUp",value:function(t,e,n,i){var r=this.getPointerIndex(t);-1===r&&(r=this.updatePointer(t,e,n,!1));var s=/cancel$/i.test(e.type)?"cancel":"up";this._scopeFire("interactions:".concat(s),{pointer:t,pointerIndex:r,pointerInfo:this.pointers[r],event:e,eventTarget:n,type:s,curEventTarget:i,interaction:this}),this.simulation||this.end(e),this.removePointer(t,e)}},{key:"documentBlur",value:function(t){this.end(t),this._scopeFire("interactions:blur",{event:t,type:"blur",interaction:this})}},{key:"end",value:function(t){var e;this._ending=!0,t=t||this._latestPointer.event,this.interacting()&&(e=this._doPhase({event:t,interaction:this,phase:"end"})),this._ending=!1,!0===e&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(t){var e=mt(t);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:St(this.pointers,(function(t){return t.id===e}))}},{key:"getPointerInfo",value:function(t){return this.pointers[this.getPointerIndex(t)]}},{key:"updatePointer",value:function(t,e,n,i){var r,s,o,a=mt(t),l=this.getPointerIndex(t),c=this.pointers[l];return i=!1!==i&&(i||/(down|start)$/i.test(e.type)),c?c.pointer=t:(c=new ze(a,t,e,null,null),l=this.pointers.length,this.pointers.push(c)),function(t,e,n){var i=e.length>1?yt(e):e[0];gt(i,t.page),function(t,e){e=e||{},Y.isOperaMobile&&pt(t)?ft("screen",t,e):ft("client",t,e)}(i,t.client),t.timeStamp=n}(this.coords.cur,this.pointers.map((function(t){return t.pointer})),this._now()),r=this.coords.delta,s=this.coords.prev,o=this.coords.cur,r.page.x=o.page.x-s.page.x,r.page.y=o.page.y-s.page.y,r.client.x=o.client.x-s.client.x,r.client.y=o.client.y-s.client.y,r.timeStamp=o.timeStamp-s.timeStamp,i&&(this.pointerIsDown=!0,c.downTime=this.coords.cur.timeStamp,c.downTarget=n,ut(this.downPointer,t),this.interacting()||(dt(this.coords.start,this.coords.cur),dt(this.coords.prev,this.coords.cur),this.downEvent=e,this.pointerWasMoved=!1)),this._updateLatestPointer(t,e,n),this._scopeFire("interactions:update-pointer",{pointer:t,event:e,eventTarget:n,down:i,pointerInfo:c,pointerIndex:l,interaction:this}),l}},{key:"removePointer",value:function(t,e){var n=this.getPointerIndex(t);if(-1!==n){var i=this.pointers[n];this._scopeFire("interactions:remove-pointer",{pointer:t,event:e,eventTarget:null,pointerIndex:n,pointerInfo:i,interaction:this}),this.pointers.splice(n,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(t,e,n){this._latestPointer.pointer=t,this._latestPointer.event=e,this._latestPointer.eventTarget=n}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(t,e,n,i){return new Ee(this,t,this.prepared.name,e,this.element,n,i)}},{key:"_fireEvent",value:function(t){var e;null==(e=this.interactable)||e.fire(t),(!this.prevEvent||t.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=t)}},{key:"_doPhase",value:function(t){var e=t.event,n=t.phase,i=t.preEnd,r=t.type,s=this.rect;if(s&&"move"===n&&(rt(this.edges,s,this.coords.delta[this.interactable.options.deltaSource]),s.width=s.right-s.left,s.height=s.bottom-s.top),!1===this._scopeFire("interactions:before-action-".concat(n),t))return!1;var o=t.iEvent=this._createPreparedEvent(e,n,i,r);return this._scopeFire("interactions:action-".concat(n),t),"start"===n&&(this.prevEvent=o),this._fireEvent(o),this._scopeFire("interactions:after-action-".concat(n),t),!0}},{key:"_now",value:function(){return Date.now()}}]),t}();function Ue(t){Be(t.interaction)}function Be(t){if(!function(t){return!(!t.offset.pending.x&&!t.offset.pending.y)}(t))return!1;var e=t.offset.pending;return He(t.coords.cur,e),He(t.coords.delta,e),rt(t.edges,t.rect,e),e.x=0,e.y=0,!0}function We(t){var e=t.x,n=t.y;this.offset.pending.x+=e,this.offset.pending.y+=n,this.offset.total.x+=e,this.offset.total.y+=n}function He(t,e){var n=t.page,i=t.client,r=e.x,s=e.y;n.x+=r,n.y+=s,i.x+=r,i.y+=s}Pe.offsetBy="";var Ve={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=We},listeners:{"interactions:new":function(t){t.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(t){return function(t){t.pointerIsDown&&(He(t.coords.cur,t.offset.total),t.offset.pending.x=0,t.offset.pending.y=0)}(t.interaction)},"interactions:before-action-start":Ue,"interactions:before-action-move":Ue,"interactions:before-action-end":function(t){var e=t.interaction;if(Be(e))return e.move({offset:!0}),e.end(),!1},"interactions:stop":function(t){var e=t.interaction;e.offset.total.x=0,e.offset.total.y=0,e.offset.pending.x=0,e.offset.pending.y=0}}},Ze=Ve,Ge=function(){function t(e){r(this,t),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=e}return o(t,[{key:"start",value:function(t){var e=this.interaction,n=Qe(e);if(!n||!n.enabled)return!1;var i=e.coords.velocity.client,r=lt(i.x,i.y),s=this.modification||(this.modification=new Ie(e));if(s.copyFrom(e.modification),this.t0=e._now(),this.allowResume=n.allowResume,this.v0=r,this.currentOffset={x:0,y:0},this.startCoords=e.coords.cur.page,this.modifierArg=s.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-e.coords.cur.timeStamp<50&&r>n.minSpeed&&r>n.endSpeed)this.startInertia();else{if(s.result=s.setAll(this.modifierArg),!s.result.changed)return!1;this.startSmoothEnd()}return e.modification.result.rect=null,e.offsetBy(this.targetOffset),e._doPhase({interaction:e,event:t,phase:"inertiastart"}),e.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),e.modification.result.rect=null,this.active=!0,e.simulation=this,!0}},{key:"startInertia",value:function(){var t=this,e=this.interaction.coords.velocity.client,n=Qe(this.interaction),i=n.resistance,r=-Math.log(n.endSpeed/this.v0)/i;this.targetOffset={x:(e.x-r)/i,y:(e.y-r)/i},this.te=r,this.lambda_v0=i/this.v0,this.one_ve_v0=1-n.endSpeed/this.v0;var s=this.modification,o=this.modifierArg;o.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},s.result=s.setAll(o),s.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+s.result.delta.x,y:this.targetOffset.y+s.result.delta.y}),this.onNextFrame((function(){return t.inertiaTick()}))}},{key:"startSmoothEnd",value:function(){var t=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame((function(){return t.smoothEndTick()}))}},{key:"onNextFrame",value:function(t){var e=this;this.timeout=Jt((function(){e.active&&t()}))}},{key:"inertiaTick",value:function(){var t,e,n,i,r,s=this,o=this.interaction,a=Qe(o).resistance,l=(o._now()-this.t0)/1e3;if(l<this.te){var c,u=1-(Math.exp(-a*l)-this.lambda_v0)/this.one_ve_v0;this.isModified?(t=this.targetOffset.x,e=this.targetOffset.y,n=this.modifiedOffset.x,i=this.modifiedOffset.y,c={x:Xe(r=u,0,t,n),y:Xe(r,0,e,i)}):c={x:this.targetOffset.x*u,y:this.targetOffset.y*u};var d={x:c.x-this.currentOffset.x,y:c.y-this.currentOffset.y};this.currentOffset.x+=d.x,this.currentOffset.y+=d.y,o.offsetBy(d),o.move(),this.onNextFrame((function(){return s.inertiaTick()}))}else o.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var t=this,e=this.interaction,n=e._now()-this.t0,i=Qe(e).smoothEndDuration;if(n<i){var r={x:qe(n,0,this.targetOffset.x,i),y:qe(n,0,this.targetOffset.y,i)},s={x:r.x-this.currentOffset.x,y:r.y-this.currentOffset.y};this.currentOffset.x+=s.x,this.currentOffset.y+=s.y,e.offsetBy(s),e.move({skipModifiers:this.modifierCount}),this.onNextFrame((function(){return t.smoothEndTick()}))}else e.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(t){var e=t.pointer,n=t.event,i=t.eventTarget,r=this.interaction;r.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),r.updatePointer(e,n,i,!0),r._doPhase({interaction:r,event:n,phase:"resume"}),dt(r.coords.prev,r.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Xt(this.timeout)}}]),t}();function Qe(t){var e=t.interactable,n=t.prepared;return e&&e.options&&n.name&&e.options[n.name].inertia}var Je={id:"inertia",before:["modifiers","actions"],install:function(t){var e=t.defaults;t.usePlugin(Ze),t.usePlugin(Oe),t.actions.phases.inertiastart=!0,t.actions.phases.resume=!0,e.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(t){var e=t.interaction;e.inertia=new Ge(e)},"interactions:before-action-end":function(t){var e=t.interaction,n=t.event;return(!e._interacting||e.simulation||!e.inertia.start(n))&&null},"interactions:down":function(t){var e=t.interaction,n=t.eventTarget,i=e.inertia;if(i.active)for(var r=n;L(r);){if(r===e.element){i.resume(t);break}r=W(r)}},"interactions:stop":function(t){var e=t.interaction.inertia;e.active&&e.stop()},"interactions:before-action-resume":function(t){var e=t.interaction.modification;e.stop(t),e.start(t,t.interaction.coords.cur.page),e.applyToInteraction(t)},"interactions:before-action-inertiastart":function(t){return t.interaction.modification.setAndApply(t)},"interactions:action-resume":Te,"interactions:action-inertiastart":Te,"interactions:after-action-inertiastart":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-resume":function(t){return t.interaction.modification.restoreInteractionCoords(t)}}};function Xe(t,e,n,i){var r=1-t;return r*r*e+2*r*t*n+t*t*i}function qe(t,e,n,i){return-n*(t/=i)*(t-2)+e}var $e=Je;function Ke(t,e){for(var n=0;n<e.length;n++){var i=e[n];if(t.immediatePropagationStopped)break;i(t)}}var tn=function(){function t(e){r(this,t),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=K({},e||{})}return o(t,[{key:"fire",value:function(t){var e,n=this.global;(e=this.types[t.type])&&Ke(t,e),!t.propagationStopped&&n&&(e=n[t.type])&&Ke(t,e)}},{key:"on",value:function(t,e){var n=ot(t,e);for(t in n)this.types[t]=Mt(this.types[t]||[],n[t])}},{key:"off",value:function(t,e){var n=ot(t,e);for(t in n){var i=this.types[t];if(i&&i.length)for(var r=0,s=n[t];r<s.length;r++){var o=s[r],a=i.indexOf(o);-1!==a&&i.splice(a,1)}}}},{key:"getRect",value:function(t){return null}}]),t}(),en=function(){function t(e){r(this,t),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=e,ut(this,e)}return o(t,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),t}();function nn(t){return C(t)?{capture:!!t.capture,passive:!!t.passive}:{capture:!!t,passive:!1}}function rn(t,e){return t===e||("boolean"==typeof t?!!e.capture===t&&0==!!e.passive:!!t.capture==!!e.capture&&!!t.passive==!!e.passive)}var sn={id:"events",install:function(t){var e,n=[],i={},r=[],s={add:o,remove:a,addDelegate:function(t,e,n,s,a){var u=nn(a);if(!i[n]){i[n]=[];for(var d=0;d<r.length;d++){var h=r[d];o(h,n,l),o(h,n,c,!0)}}var p=i[n],f=It(p,(function(n){return n.selector===t&&n.context===e}));f||(f={selector:t,context:e,listeners:[]},p.push(f)),f.listeners.push({func:s,options:u})},removeDelegate:function(t,e,n,r,s){var o,u=nn(s),d=i[n],h=!1;if(d)for(o=d.length-1;o>=0;o--){var p=d[o];if(p.selector===t&&p.context===e){for(var f=p.listeners,g=f.length-1;g>=0;g--){var m=f[g];if(m.func===r&&rn(m.options,u)){f.splice(g,1),f.length||(d.splice(o,1),a(e,n,l),a(e,n,c,!0)),h=!0;break}}if(h)break}}},delegateListener:l,delegateUseCapture:c,delegatedEvents:i,documents:r,targets:n,supportsOptions:!1,supportsPassive:!1};function o(t,e,i,r){if(t.addEventListener){var o=nn(r),a=It(n,(function(e){return e.eventTarget===t}));a||(a={eventTarget:t,events:{}},n.push(a)),a.events[e]||(a.events[e]=[]),It(a.events[e],(function(t){return t.func===i&&rn(t.options,o)}))||(t.addEventListener(e,i,s.supportsOptions?o:o.capture),a.events[e].push({func:i,options:o}))}}function a(t,e,i,r){if(t.addEventListener&&t.removeEventListener){var o=St(n,(function(e){return e.eventTarget===t})),l=n[o];if(l&&l.events)if("all"!==e){var c=!1,u=l.events[e];if(u){if("all"===i){for(var d=u.length-1;d>=0;d--){var h=u[d];a(t,e,h.func,h.options)}return}for(var p=nn(r),f=0;f<u.length;f++){var g=u[f];if(g.func===i&&rn(g.options,p)){t.removeEventListener(e,i,s.supportsOptions?p:p.capture),u.splice(f,1),0===u.length&&(delete l.events[e],c=!0);break}}}c&&!Object.keys(l.events).length&&n.splice(o,1)}else for(e in l.events)l.events.hasOwnProperty(e)&&a(t,e,"all")}}function l(t,e){for(var n=nn(e),r=new en(t),s=i[t.type],o=_t(t)[0],a=o;L(a);){for(var l=0;l<s.length;l++){var c=s[l],u=c.selector,d=c.context;if(H(a,u)&&U(d,o)&&U(d,a)){var h=c.listeners;r.currentTarget=a;for(var p=0;p<h.length;p++){var f=h[p];rn(f.options,n)&&f.func(r)}}}a=W(a)}}function c(t){return l(t,!0)}return null==(e=t.document)||e.createElement("div").addEventListener("test",null,{get capture(){return s.supportsOptions=!0},get passive(){return s.supportsPassive=!0}}),t.events=s,s}},on={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(t){for(var e=0,n=on.methodOrder;e<n.length;e++){var i=n[e],r=on[i](t);if(r)return r}return null},simulationResume:function(t){var e=t.pointerType,n=t.eventType,i=t.eventTarget,r=t.scope;if(!/down|start/i.test(n))return null;for(var s=0,o=r.interactions.list;s<o.length;s++){var a=o[s],l=i;if(a.simulation&&a.simulation.allowResume&&a.pointerType===e)for(;l;){if(l===a.element)return a;l=W(l)}}return null},mouseOrPen:function(t){var e,n=t.pointerId,i=t.pointerType,r=t.eventType,s=t.scope;if("mouse"!==i&&"pen"!==i)return null;for(var o=0,a=s.interactions.list;o<a.length;o++){var l=a[o];if(l.pointerType===i){if(l.simulation&&!an(l,n))continue;if(l.interacting())return l;e||(e=l)}}if(e)return e;for(var c=0,u=s.interactions.list;c<u.length;c++){var d=u[c];if(!(d.pointerType!==i||/down/i.test(r)&&d.simulation))return d}return null},hasPointer:function(t){for(var e=t.pointerId,n=0,i=t.scope.interactions.list;n<i.length;n++){var r=i[n];if(an(r,e))return r}return null},idle:function(t){for(var e=t.pointerType,n=0,i=t.scope.interactions.list;n<i.length;n++){var r=i[n];if(1===r.pointers.length){var s=r.interactable;if(s&&(!s.options.gesture||!s.options.gesture.enabled))continue}else if(r.pointers.length>=2)continue;if(!r.interacting()&&e===r.pointerType)return r}return null}};function an(t,e){return t.pointers.some((function(t){return t.id===e}))}var ln=on,cn=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function un(t,e){return function(n){var i=e.interactions.list,r=At(n),s=_t(n),o=s[0],a=s[1],l=[];if(/^touch/.test(n.type)){e.prevTouchTime=e.now();for(var c=0,u=n.changedTouches;c<u.length;c++){var d=u[c],h={pointer:d,pointerId:mt(d),pointerType:r,eventType:n.type,eventTarget:o,curEventTarget:a,scope:e},p=dn(h);l.push([h.pointer,h.eventTarget,h.curEventTarget,p])}}else{var f=!1;if(!Y.supportsPointerEvent&&/mouse/.test(n.type)){for(var g=0;g<i.length&&!f;g++)f="mouse"!==i[g].pointerType&&i[g].pointerIsDown;f=f||e.now()-e.prevTouchTime<500||0===n.timeStamp}if(!f){var m={pointer:n,pointerId:mt(n),pointerType:r,eventType:n.type,curEventTarget:a,eventTarget:o,scope:e},v=dn(m);l.push([m.pointer,m.eventTarget,m.curEventTarget,v])}}for(var y=0;y<l.length;y++){var b=l[y],x=b[0],w=b[1],A=b[2];b[3][t](x,n,w,A)}}}function dn(t){var e=t.pointerType,n=t.scope,i={interaction:ln.search(t),searchDetails:t};return n.fire("interactions:find",i),i.interaction||n.interactions.new({pointerType:e})}function hn(t,e){var n=t.doc,i=t.scope,r=t.options,s=i.interactions.docEvents,o=i.events,a=o[e];for(var l in i.browser.isIOS&&!r.events&&(r.events={passive:!1}),o.delegatedEvents)a(n,l,o.delegateListener),a(n,l,o.delegateUseCapture,!0);for(var c=r&&r.events,u=0;u<s.length;u++){var d=s[u];a(n,d.type,d.listener,c)}}var pn={id:"core/interactions",install:function(t){for(var e={},n=0;n<cn.length;n++){var i=cn[n];e[i]=un(i,t)}var s,a=Y.pEventTypes;function c(){for(var e=0,n=t.interactions.list;e<n.length;e++){var i=n[e];if(i.pointerIsDown&&"touch"===i.pointerType&&!i._interacting)for(var r=function(){var e=o[s];t.documents.some((function(t){return U(t.doc,e.downTarget)}))||i.removePointer(e.pointer,e.event)},s=0,o=i.pointers;s<o.length;s++)r()}}(s=P.PointerEvent?[{type:a.down,listener:c},{type:a.down,listener:e.pointerDown},{type:a.move,listener:e.pointerMove},{type:a.up,listener:e.pointerUp},{type:a.cancel,listener:e.pointerUp}]:[{type:"mousedown",listener:e.pointerDown},{type:"mousemove",listener:e.pointerMove},{type:"mouseup",listener:e.pointerUp},{type:"touchstart",listener:c},{type:"touchstart",listener:e.pointerDown},{type:"touchmove",listener:e.pointerMove},{type:"touchend",listener:e.pointerUp},{type:"touchcancel",listener:e.pointerUp}]).push({type:"blur",listener:function(e){for(var n=0,i=t.interactions.list;n<i.length;n++)i[n].documentBlur(e)}}),t.prevTouchTime=0,t.Interaction=function(e){l(i,e);var n=h(i);function i(){return r(this,i),n.apply(this,arguments)}return o(i,[{key:"pointerMoveTolerance",get:function(){return t.interactions.pointerMoveTolerance},set:function(e){t.interactions.pointerMoveTolerance=e}},{key:"_now",value:function(){return t.now()}}]),i}(Ye),t.interactions={list:[],new:function(e){e.scopeFire=function(e,n){return t.fire(e,n)};var n=new t.Interaction(e);return t.interactions.list.push(n),n},listeners:e,docEvents:s,pointerMoveTolerance:1},t.usePlugin(Me)},listeners:{"scope:add-document":function(t){return hn(t,"add")},"scope:remove-document":function(t){return hn(t,"remove")},"interactable:unset":function(t,e){for(var n=t.interactable,i=e.interactions.list.length-1;i>=0;i--){var r=e.interactions.list[i];r.interactable===n&&(r.stop(),e.fire("interactions:destroy",{interaction:r}),r.destroy(),e.interactions.list.length>2&&e.interactions.list.splice(i,1))}}},onDocSignal:hn,doOnInteractions:un,methodNames:cn},fn=pn,gn=function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t}(gn||{}),mn=function(){function t(e,n,i,s){r(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new tn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=n.actions,this.target=e,this._context=n.context||i,this._win=b($(e)?this._context:e),this._doc=this._win.document,this._scopeEvents=s,this.set(n)}return o(t,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(t,e){return M(e.onstart)&&this.on("".concat(t,"start"),e.onstart),M(e.onmove)&&this.on("".concat(t,"move"),e.onmove),M(e.onend)&&this.on("".concat(t,"end"),e.onend),M(e.oninertiastart)&&this.on("".concat(t,"inertiastart"),e.oninertiastart),this}},{key:"updatePerActionListeners",value:function(t,e,n){var i,r=this,s=null==(i=this._actions.map[t])?void 0:i.filterEventType,o=function(t){return(null==s||s(t))&&ke(t,r._actions)};(T(e)||C(e))&&this._onOff(gn.Off,t,e,void 0,o),(T(n)||C(n))&&this._onOff(gn.On,t,n,void 0,o)}},{key:"setPerAction",value:function(t,e){var n=this._defaults;for(var i in e){var r=i,s=this.options[t],o=e[r];"listeners"===r&&this.updatePerActionListeners(t,s.listeners,o),T(o)?s[r]=kt(o):D(o)?(s[r]=K(s[r]||{},Se(o)),C(n.perAction[r])&&"enabled"in n.perAction[r]&&(s[r].enabled=!1!==o.enabled)):S(o)&&C(n.perAction[r])?s[r].enabled=o:s[r]=o}}},{key:"getRect",value:function(t){return t=t||(L(this.target)?this.target:null),I(this.target)&&(t=t||this._context.querySelector(this.target)),X(t)}},{key:"rectChecker",value:function(t){var e=this;return M(t)?(this.getRect=function(n){var i=K({},t.apply(e,n));return"width"in i||(i.width=i.right-i.left,i.height=i.bottom-i.top),i},this):null===t?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(t,e){if($(e)||C(e)){for(var n in this.options[t]=e,this._actions.map)this.options[n][t]=e;return this}return this.options[t]}},{key:"origin",value:function(t){return this._backCompatOption("origin",t)}},{key:"deltaSource",value:function(t){return"page"===t||"client"===t?(this.options.deltaSource=t,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var t=this.target;return I(t)?Array.from(this._context.querySelectorAll(t)):M(t)&&t.getAllElements?t.getAllElements():L(t)?[t]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(t){return this._context===t.ownerDocument||U(this._context,t)}},{key:"testIgnoreAllow",value:function(t,e,n){return!this.testIgnore(t.ignoreFrom,e,n)&&this.testAllow(t.allowFrom,e,n)}},{key:"testAllow",value:function(t,e,n){return!t||!!L(n)&&(I(t)?G(n,t,e):!!L(t)&&U(t,n))}},{key:"testIgnore",value:function(t,e,n){return!(!t||!L(n))&&(I(t)?G(n,t,e):!!L(t)&&U(t,n))}},{key:"fire",value:function(t){return this.events.fire(t),this}},{key:"_onOff",value:function(t,e,n,i,r){C(e)&&!T(e)&&(i=n,n=null);var s=ot(e,n,r);for(var o in s){"wheel"===o&&(o=Y.wheelEvent);for(var a=0,l=s[o];a<l.length;a++){var c=l[a];ke(o,this._actions)?this.events[t===gn.On?"on":"off"](o,c):I(this.target)?this._scopeEvents[t===gn.On?"addDelegate":"removeDelegate"](this.target,this._context,o,c,i):this._scopeEvents[t===gn.On?"add":"remove"](this.target,o,c,i)}}return this}},{key:"on",value:function(t,e,n){return this._onOff(gn.On,t,e,n)}},{key:"off",value:function(t,e,n){return this._onOff(gn.Off,t,e,n)}},{key:"set",value:function(t){var e=this._defaults;for(var n in C(t)||(t={}),this.options=Se(e.base),this._actions.methodDict){var i=n,r=this._actions.methodDict[i];this.options[i]={},this.setPerAction(i,K(K({},e.perAction),e.actions[i])),this[r](t[i])}for(var s in t)"getRect"!==s?M(this[s])&&this[s](t[s]):this.rectChecker(t.getRect);return this}},{key:"unset",value:function(){if(I(this.target))for(var t in this._scopeEvents.delegatedEvents)for(var e=this._scopeEvents.delegatedEvents[t],n=e.length-1;n>=0;n--){var i=e[n],r=i.selector,s=i.context,o=i.listeners;r===this.target&&s===this._context&&e.splice(n,1);for(var a=o.length-1;a>=0;a--)this._scopeEvents.removeDelegate(this.target,this._context,t,o[a][0],o[a][1])}else this._scopeEvents.remove(this.target,"all")}}]),t}(),vn=function(){function t(e){var n=this;r(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=e,e.addListeners({"interactable:unset":function(t){var e=t.interactable,i=e.target,r=I(i)?n.selectorMap[i]:i[n.scope.id],s=St(r,(function(t){return t===e}));r.splice(s,1)}})}return o(t,[{key:"new",value:function(t,e){e=K(e||{},{actions:this.scope.actions});var n=new this.scope.Interactable(t,e,this.scope.document,this.scope.events);return this.scope.addDocument(n._doc),this.list.push(n),I(t)?(this.selectorMap[t]||(this.selectorMap[t]=[]),this.selectorMap[t].push(n)):(n.target[this.scope.id]||Object.defineProperty(t,this.scope.id,{value:[],configurable:!0}),t[this.scope.id].push(n)),this.scope.fire("interactable:new",{target:t,options:e,interactable:n,win:this.scope._win}),n}},{key:"getExisting",value:function(t,e){var n=e&&e.context||this.scope.document,i=I(t),r=i?this.selectorMap[t]:t[this.scope.id];if(r)return It(r,(function(e){return e._context===n&&(i||e.inContext(t))}))}},{key:"forEachMatch",value:function(t,e){for(var n=0,i=this.list;n<i.length;n++){var r=i[n],s=void 0;if((I(r.target)?L(t)&&H(t,r.target):t===r.target)&&r.inContext(t)&&(s=e(r)),void 0!==s)return s}}}]),t}(),yn=function(){function t(){var e=this;r(this,t),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=Y,this.defaults=Se(je),this.Eventable=tn,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(t){var e=function e(n,i){var r=t.interactables.getExisting(n,i);return r||((r=t.interactables.new(n,i)).events.global=e.globalEvents),r};return e.getPointerAverage=yt,e.getTouchBBox=bt,e.getTouchDistance=xt,e.getTouchAngle=wt,e.getElementRect=X,e.getElementClientRect=J,e.matchesSelector=H,e.closest=B,e.globalEvents={},e.version="1.10.27",e.scope=t,e.use=function(t,e){return this.scope.usePlugin(t,e),this},e.isSet=function(t,e){return!!this.scope.interactables.get(t,e&&e.context)},e.on=ie((function(t,e,n){if(I(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),T(t)){for(var i=0,r=t;i<r.length;i++){var s=r[i];this.on(s,e,n)}return this}if(C(t)){for(var o in t)this.on(o,t[o],e);return this}return ke(t,this.scope.actions)?this.globalEvents[t]?this.globalEvents[t].push(e):this.globalEvents[t]=[e]:this.scope.events.add(this.scope.document,t,e,{options:n}),this}),"The interact.on() method is being deprecated"),e.off=ie((function(t,e,n){if(I(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),T(t)){for(var i=0,r=t;i<r.length;i++){var s=r[i];this.off(s,e,n)}return this}if(C(t)){for(var o in t)this.off(o,t[o],e);return this}var a;return ke(t,this.scope.actions)?t in this.globalEvents&&-1!==(a=this.globalEvents[t].indexOf(e))&&this.globalEvents[t].splice(a,1):this.scope.events.remove(this.scope.document,t,e,n),this}),"The interact.off() method is being deprecated"),e.debug=function(){return this.scope},e.supportsTouch=function(){return Y.supportsTouch},e.supportsPointerEvent=function(){return Y.supportsPointerEvent},e.stop=function(){for(var t=0,e=this.scope.interactions.list;t<e.length;t++)e[t].stop();return this},e.pointerMoveTolerance=function(t){return k(t)?(this.scope.interactions.pointerMoveTolerance=t,this):this.scope.interactions.pointerMoveTolerance},e.addDocument=function(t,e){this.scope.addDocument(t,e)},e.removeDocument=function(t){this.scope.removeDocument(t)},e}(this),this.InteractEvent=Ee,this.Interactable=void 0,this.interactables=new vn(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(t){return e.removeDocument(t.target)};var n=this;this.Interactable=function(t){l(i,t);var e=h(i);function i(){return r(this,i),e.apply(this,arguments)}return o(i,[{key:"_defaults",get:function(){return n.defaults}},{key:"set",value:function(t){return p(c(i.prototype),"set",this).call(this,t),n.fire("interactable:set",{options:t,interactable:this}),this}},{key:"unset",value:function(){p(c(i.prototype),"unset",this).call(this);var t=n.interactables.list.indexOf(this);t<0||(n.interactables.list.splice(t,1),n.fire("interactable:unset",{interactable:this}))}}]),i}(mn)}return o(t,[{key:"addListeners",value:function(t,e){this.listenerMaps.push({id:e,map:t})}},{key:"fire",value:function(t,e){for(var n=0,i=this.listenerMaps;n<i.length;n++){var r=i[n].map[t];if(r&&!1===r(e,this,t))return!1}}},{key:"init",value:function(t){return this.isInitialized?this:function(t,e){return t.isInitialized=!0,A(e)&&y(e),P.init(e),Y.init(e),qt(e),t.window=e,t.document=e.document,t.usePlugin(fn),t.usePlugin(sn),t}(this,t)}},{key:"pluginIsInstalled",value:function(t){var e=t.id;return e?!!this._plugins.map[e]:-1!==this._plugins.list.indexOf(t)}},{key:"usePlugin",value:function(t,e){if(!this.isInitialized)return this;if(this.pluginIsInstalled(t))return this;if(t.id&&(this._plugins.map[t.id]=t),this._plugins.list.push(t),t.install&&t.install(this,e),t.listeners&&t.before){for(var n=0,i=this.listenerMaps.length,r=t.before.reduce((function(t,e){return t[e]=!0,t[bn(e)]=!0,t}),{});n<i;n++){var s=this.listenerMaps[n].id;if(s&&(r[s]||r[bn(s)]))break}this.listenerMaps.splice(n,0,{id:t.id,map:t.listeners})}else t.listeners&&this.listenerMaps.push({id:t.id,map:t.listeners});return this}},{key:"addDocument",value:function(t,e){if(-1!==this.getDocIndex(t))return!1;var n=b(t);e=e?K({},e):{},this.documents.push({doc:t,options:e}),this.events.documents.push(t),t!==this.document&&this.events.add(n,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:t,window:n,scope:this,options:e})}},{key:"removeDocument",value:function(t){var e=this.getDocIndex(t),n=b(t),i=this.documents[e].options;this.events.remove(n,"unload",this.onWindowUnload),this.documents.splice(e,1),this.events.documents.splice(e,1),this.fire("scope:remove-document",{doc:t,window:n,scope:this,options:i})}},{key:"getDocIndex",value:function(t){for(var e=0;e<this.documents.length;e++)if(this.documents[e].doc===t)return e;return-1}},{key:"getDocOptions",value:function(t){var e=this.getDocIndex(t);return-1===e?null:this.documents[e].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),t}();function bn(t){return t&&t.replace(/\/.*$/,"")}var xn=new yn,wn=xn.interactStatic,An="undefined"!=typeof globalThis?globalThis:window;xn.init(An);var _n=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(t){var e=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter((function(e){var n=e[0],i=e[1];return n in t||i in t})),n=function(n,i){for(var r=t.range,s=t.limits,o=void 0===s?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:s,a=t.offset,l=void 0===a?{x:0,y:0}:a,c={range:r,grid:t,x:null,y:null},u=0;u<e.length;u++){var d=e[u],h=d[0],p=d[1],f=Math.round((n-l.x)/t[h]),g=Math.round((i-l.y)/t[p]);c[h]=Math.max(o.left,Math.min(o.right,f*t[h]+l.x)),c[p]=Math.max(o.top,Math.min(o.bottom,g*t[p]+l.y))}return c};return n.grid=t,n.coordFields=e,n}}),Cn={id:"snappers",install:function(t){var e=t.interactStatic;e.snappers=K(e.snappers||{},_n),e.createSnapGrid=e.snappers.grid}},Mn=Cn,kn={start:function(t){var e=t.state,i=t.rect,r=t.edges,s=t.pageCoords,o=e.options,a=o.ratio,l=o.enabled,c=e.options,u=c.equalDelta,d=c.modifiers;"preserve"===a&&(a=i.width/i.height),e.startCoords=K({},s),e.startRect=K({},i),e.ratio=a,e.equalDelta=u;var h=e.linkedEdges={top:r.top||r.left&&!r.bottom,left:r.left||r.top&&!r.right,bottom:r.bottom||r.right&&!r.top,right:r.right||r.bottom&&!r.left};if(e.xIsPrimaryAxis=!(!r.left&&!r.right),e.equalDelta){var p=(h.left?1:-1)*(h.top?1:-1);e.edgeSign={x:p,y:p}}else e.edgeSign={x:h.left?-1:1,y:h.top?-1:1};if(!1!==l&&K(r,h),null!=d&&d.length){var f=new Ie(t.interaction);f.copyFrom(t.interaction.modification),f.prepareStates(d),e.subModification=f,f.startAll(n({},t))}},set:function(t){var e=t.state,i=t.rect,r=t.coords,s=e.linkedEdges,o=K({},r),a=e.equalDelta?Sn:In;if(K(t.edges,s),a(e,e.xIsPrimaryAxis,r,i),!e.subModification)return null;var l=K({},i);rt(s,l,{x:r.x-o.x,y:r.y-o.y});var c=e.subModification.setAll(n(n({},t),{},{rect:l,edges:s,pageCoords:r,prevCoords:r,prevRect:l})),u=c.delta;return c.changed&&(a(e,Math.abs(u.x)>Math.abs(u.y),c.coords,c.rect),K(r,c.coords)),c.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Sn(t,e,n){var i=t.startCoords,r=t.edgeSign;e?n.y=i.y+(n.x-i.x)*r.y:n.x=i.x+(n.y-i.y)*r.x}function In(t,e,n,i){var r=t.startRect,s=t.startCoords,o=t.ratio,a=t.edgeSign;if(e){var l=i.width/o;n.y=s.y+(l-r.height)*a.y}else{var c=i.height*o;n.x=s.x+(c-r.width)*a.x}}var Ln=De(kn,"aspectRatio"),Dn=function(){};Dn._defaults={};var Tn=Dn;function Nn(t,e,n){return M(t)?et(t,e.interactable,e.element,[n.x,n.y,e]):et(t,e.interactable,e.element)}var On={start:function(t){var e=t.rect,n=t.startOffset,i=t.state,r=t.interaction,s=t.pageCoords,o=i.options,a=o.elementRect,l=K({left:0,top:0,right:0,bottom:0},o.offset||{});if(e&&a){var c=Nn(o.restriction,r,s);if(c){var u=c.right-c.left-e.width,d=c.bottom-c.top-e.height;u<0&&(l.left+=u,l.right+=u),d<0&&(l.top+=d,l.bottom+=d)}l.left+=n.left-e.width*a.left,l.top+=n.top-e.height*a.top,l.right+=n.right-e.width*(1-a.right),l.bottom+=n.bottom-e.height*(1-a.bottom)}i.offset=l},set:function(t){var e=t.coords,n=t.interaction,i=t.state,r=i.options,s=i.offset,o=Nn(r.restriction,n,e);if(o){var a=function(t){return!t||"left"in t&&"top"in t||((t=K({},t)).left=t.x||0,t.top=t.y||0,t.right=t.right||t.left+t.width,t.bottom=t.bottom||t.top+t.height),t}(o);e.x=Math.max(Math.min(a.right-s.right,e.x),a.left+s.left),e.y=Math.max(Math.min(a.bottom-s.bottom,e.y),a.top+s.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},jn=De(On,"restrict"),En={top:1/0,left:1/0,bottom:-1/0,right:-1/0},zn={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Fn(t,e){for(var n=0,i=["top","left","bottom","right"];n<i.length;n++){var r=i[n];r in t||(t[r]=e[r])}return t}var Pn={noInner:En,noOuter:zn,start:function(t){var e,n=t.interaction,i=t.startOffset,r=t.state,s=r.options;s&&(e=nt(Nn(s.offset,n,n.coords.start.page))),e=e||{x:0,y:0},r.offset={top:e.y+i.top,left:e.x+i.left,bottom:e.y-i.bottom,right:e.x-i.right}},set:function(t){var e=t.coords,n=t.edges,i=t.interaction,r=t.state,s=r.offset,o=r.options;if(n){var a=K({},e),l=Nn(o.inner,i,a)||{},c=Nn(o.outer,i,a)||{};Fn(l,En),Fn(c,zn),n.top?e.y=Math.min(Math.max(c.top+s.top,a.y),l.top+s.top):n.bottom&&(e.y=Math.max(Math.min(c.bottom+s.bottom,a.y),l.bottom+s.bottom)),n.left?e.x=Math.min(Math.max(c.left+s.left,a.x),l.left+s.left):n.right&&(e.x=Math.max(Math.min(c.right+s.right,a.x),l.right+s.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Rn=De(Pn,"restrictEdges"),Yn=K({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},On.defaults),Un=De({start:On.start,set:On.set,defaults:Yn},"restrictRect"),Bn={width:-1/0,height:-1/0},Wn={width:1/0,height:1/0},Hn=De({start:function(t){return Pn.start(t)},set:function(t){var e=t.interaction,n=t.state,i=t.rect,r=t.edges,s=n.options;if(r){var o=it(Nn(s.min,e,t.coords))||Bn,a=it(Nn(s.max,e,t.coords))||Wn;n.options={endOnly:s.endOnly,inner:K({},Pn.noInner),outer:K({},Pn.noOuter)},r.top?(n.options.inner.top=i.bottom-o.height,n.options.outer.top=i.bottom-a.height):r.bottom&&(n.options.inner.bottom=i.top+o.height,n.options.outer.bottom=i.top+a.height),r.left?(n.options.inner.left=i.right-o.width,n.options.outer.left=i.right-a.width):r.right&&(n.options.inner.right=i.left+o.width,n.options.outer.right=i.left+a.width),Pn.set(t),n.options=s}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Vn={start:function(t){var e,n=t.interaction,i=t.interactable,r=t.element,s=t.rect,o=t.state,a=t.startOffset,l=o.options,c=l.offsetWithOrigin?function(t){var e=t.interaction.element;return nt(et(t.state.options.origin,null,null,[e]))||st(t.interactable,e,t.interaction.prepared.name)}(t):{x:0,y:0};if("startCoords"===l.offset)e={x:n.coords.start.page.x,y:n.coords.start.page.y};else{var u=et(l.offset,i,r,[n]);(e=nt(u)||{x:0,y:0}).x+=c.x,e.y+=c.y}var d=l.relativePoints;o.offsets=s&&d&&d.length?d.map((function(t,n){return{index:n,relativePoint:t,x:a.left-s.width*t.x+e.x,y:a.top-s.height*t.y+e.y}})):[{index:0,relativePoint:null,x:e.x,y:e.y}]},set:function(t){var e=t.interaction,n=t.coords,i=t.state,r=i.options,s=i.offsets,o=st(e.interactable,e.element,e.prepared.name),a=K({},n),l=[];r.offsetWithOrigin||(a.x-=o.x,a.y-=o.y);for(var c=0,u=s;c<u.length;c++)for(var d=u[c],h=a.x-d.x,p=a.y-d.y,f=0,g=r.targets.length;f<g;f++){var m,v=r.targets[f];(m=M(v)?v(h,p,e._proxy,d,f):v)&&l.push({x:(k(m.x)?m.x:h)+d.x,y:(k(m.y)?m.y:p)+d.y,range:k(m.range)?m.range:r.range,source:v,index:f,offset:d})}for(var y={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},b=0;b<l.length;b++){var x=l[b],w=x.range,A=x.x-a.x,_=x.y-a.y,C=lt(A,_),S=C<=w;w===1/0&&y.inRange&&y.range!==1/0&&(S=!1),y.target&&!(S?y.inRange&&w!==1/0?C/w<y.distance/y.range:w===1/0&&y.range!==1/0||C<y.distance:!y.inRange&&C<y.distance)||(y.target=x,y.distance=C,y.range=w,y.inRange=S,y.delta.x=A,y.delta.y=_)}return y.inRange&&(n.x=y.target.x,n.y=y.target.y),i.closest=y,y},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Zn=De(Vn,"snap"),Gn={start:function(t){var e=t.state,n=t.edges,i=e.options;if(!n)return null;t.state={options:{targets:null,relativePoints:[{x:n.left?0:1,y:n.top?0:1}],offset:i.offset||"self",origin:{x:0,y:0},range:i.range}},e.targetFields=e.targetFields||[["width","height"],["x","y"]],Vn.start(t),e.offsets=t.state.offsets,t.state=e},set:function(t){var e=t.interaction,n=t.state,i=t.coords,r=n.options,s=n.offsets,o={x:i.x-s[0].x,y:i.y-s[0].y};n.options=K({},r),n.options.targets=[];for(var a=0,l=r.targets||[];a<l.length;a++){var c=l[a],u=void 0;if(u=M(c)?c(o.x,o.y,e):c){for(var d=0,h=n.targetFields;d<h.length;d++){var p=h[d],f=p[0],g=p[1];if(f in u||g in u){u.x=u[f],u.y=u[g];break}}n.options.targets.push(u)}}var m=Vn.set(t);return n.options=r,m},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Qn=De(Gn,"snapSize"),Jn={aspectRatio:Ln,restrictEdges:Rn,restrict:jn,restrictRect:Un,restrictSize:Hn,snapEdges:De({start:function(t){var e=t.edges;return e?(t.state.targetFields=t.state.targetFields||[[e.left?"left":"right",e.top?"top":"bottom"]],Gn.start(t)):null},set:Gn.set,defaults:K(Se(Gn.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Zn,snapSize:Qn,spring:Tn,avoid:Tn,transform:Tn,rubberband:Tn},Xn={id:"modifiers",install:function(t){var e=t.interactStatic;for(var n in t.usePlugin(Oe),t.usePlugin(Mn),e.modifiers=Jn,Jn){var i=Jn[n],r=i._defaults,s=i._methods;r._methods=s,t.defaults.perAction[n]=r}}},qn=Xn,$n=function(t){l(n,t);var e=h(n);function n(t,i,s,o,a,l){var c;if(r(this,n),ut(d(c=e.call(this,a)),s),s!==i&&ut(d(c),i),c.timeStamp=l,c.originalEvent=s,c.type=t,c.pointerId=mt(i),c.pointerType=At(i),c.target=o,c.currentTarget=null,"tap"===t){var u=a.getPointerIndex(i);c.dt=c.timeStamp-a.pointers[u].downTime;var h=c.timeStamp-a.tapTime;c.double=!!a.prevTap&&"doubletap"!==a.prevTap.type&&a.prevTap.target===c.target&&h<500}else"doubletap"===t&&(c.dt=i.timeStamp-a.tapTime,c.double=!0);return c}return o(n,[{key:"_subtractOrigin",value:function(t){var e=t.x,n=t.y;return this.pageX-=e,this.pageY-=n,this.clientX-=e,this.clientY-=n,this}},{key:"_addOrigin",value:function(t){var e=t.x,n=t.y;return this.pageX+=e,this.pageY+=n,this.clientX+=e,this.clientY+=n,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),n}(Ct),Kn={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(t){t.pointerEvents=Kn,t.defaults.actions.pointerEvents=Kn.defaults,K(t.actions.phaselessTypes,Kn.types)},listeners:{"interactions:new":function(t){var e=t.interaction;e.prevTap=null,e.tapTime=0},"interactions:update-pointer":function(t){var e=t.down,n=t.pointerInfo;!e&&n.hold||(n.hold={duration:1/0,timeout:null})},"interactions:move":function(t,e){var n=t.interaction,i=t.pointer,r=t.event,s=t.eventTarget;t.duplicate||n.pointerIsDown&&!n.pointerWasMoved||(n.pointerIsDown&&ni(t),ti({interaction:n,pointer:i,event:r,eventTarget:s,type:"move"},e))},"interactions:down":function(t,e){!function(t,e){for(var n=t.interaction,i=t.pointer,r=t.event,s=t.eventTarget,o=t.pointerIndex,a=n.pointers[o].hold,l=q(s),c={interaction:n,pointer:i,event:r,eventTarget:s,type:"hold",targets:[],path:l,node:null},u=0;u<l.length;u++){var d=l[u];c.node=d,e.fire("pointerEvents:collect-targets",c)}if(c.targets.length){for(var h=1/0,p=0,f=c.targets;p<f.length;p++){var g=f[p].eventable.options.holdDuration;g<h&&(h=g)}a.duration=h,a.timeout=setTimeout((function(){ti({interaction:n,eventTarget:s,pointer:i,event:r,type:"hold"},e)}),h)}}(t,e),ti(t,e)},"interactions:up":function(t,e){ni(t),ti(t,e),function(t,e){var n=t.interaction,i=t.pointer,r=t.event,s=t.eventTarget;n.pointerWasMoved||ti({interaction:n,eventTarget:s,pointer:i,event:r,type:"tap"},e)}(t,e)},"interactions:cancel":function(t,e){ni(t),ti(t,e)}},PointerEvent:$n,fire:ti,collectEventTargets:ei,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function ti(t,e){var n=t.interaction,i=t.pointer,r=t.event,s=t.eventTarget,o=t.type,a=t.targets,l=void 0===a?ei(t,e):a,c=new $n(o,i,r,s,n,e.now());e.fire("pointerEvents:new",{pointerEvent:c});for(var u={interaction:n,pointer:i,event:r,eventTarget:s,targets:l,type:o,pointerEvent:c},d=0;d<l.length;d++){var h=l[d];for(var p in h.props||{})c[p]=h.props[p];var f=st(h.eventable,h.node);if(c._subtractOrigin(f),c.eventable=h.eventable,c.currentTarget=h.node,h.eventable.fire(c),c._addOrigin(f),c.immediatePropagationStopped||c.propagationStopped&&d+1<l.length&&l[d+1].node!==c.currentTarget)break}if(e.fire("pointerEvents:fired",u),"tap"===o){var g=c.double?ti({interaction:n,pointer:i,event:r,eventTarget:s,type:"doubletap"},e):c;n.prevTap=g,n.tapTime=g.timeStamp}return c}function ei(t,e){var n=t.interaction,i=t.pointer,r=t.event,s=t.eventTarget,o=t.type,a=n.getPointerIndex(i),l=n.pointers[a];if("tap"===o&&(n.pointerWasMoved||!l||l.downTarget!==s))return[];for(var c=q(s),u={interaction:n,pointer:i,event:r,eventTarget:s,type:o,path:c,targets:[],node:null},d=0;d<c.length;d++){var h=c[d];u.node=h,e.fire("pointerEvents:collect-targets",u)}return"hold"===o&&(u.targets=u.targets.filter((function(t){var e,i;return t.eventable.options.holdDuration===(null==(e=n.pointers[a])||null==(i=e.hold)?void 0:i.duration)}))),u.targets}function ni(t){var e=t.interaction,n=t.pointerIndex,i=e.pointers[n].hold;i&&i.timeout&&(clearTimeout(i.timeout),i.timeout=null)}var ii=Object.freeze({__proto__:null,default:Kn});function ri(t){var e=t.interaction;e.holdIntervalHandle&&(clearInterval(e.holdIntervalHandle),e.holdIntervalHandle=null)}var si={id:"pointer-events/holdRepeat",install:function(t){t.usePlugin(Kn);var e=t.pointerEvents;e.defaults.holdRepeatInterval=0,e.types.holdrepeat=t.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce((function(t,e){return t["pointerEvents:".concat(e)]=ri,t}),{"pointerEvents:new":function(t){var e=t.pointerEvent;"hold"===e.type&&(e.count=(e.count||0)+1)},"pointerEvents:fired":function(t,e){var n=t.interaction,i=t.pointerEvent,r=t.eventTarget,s=t.targets;if("hold"===i.type&&s.length){var o=s[0].eventable.options.holdRepeatInterval;o<=0||(n.holdIntervalHandle=setTimeout((function(){e.pointerEvents.fire({interaction:n,eventTarget:r,type:"hold",pointer:i,event:i},e)}),o))}}})},oi=si,ai={id:"pointer-events/interactableTargets",install:function(t){var e=t.Interactable;e.prototype.pointerEvents=function(t){return K(this.events.options,t),this};var n=e.prototype._backCompatOption;e.prototype._backCompatOption=function(t,e){var i=n.call(this,t,e);return i===this&&(this.events.options[t]=e),i}},listeners:{"pointerEvents:collect-targets":function(t,e){var n=t.targets,i=t.node,r=t.type,s=t.eventTarget;e.interactables.forEachMatch(i,(function(t){var e=t.events,o=e.options;e.types[r]&&e.types[r].length&&t.testIgnoreAllow(o,i,s)&&n.push({node:i,eventable:e,props:{interactable:t}})}))},"interactable:new":function(t){var e=t.interactable;e.events.getRect=function(t){return e.getRect(t)}},"interactable:set":function(t,e){var n=t.interactable,i=t.options;K(n.events.options,e.pointerEvents.defaults),K(n.events.options,i.pointerEvents||{})}}},li=ai,ci={id:"pointer-events",install:function(t){t.usePlugin(ii),t.usePlugin(oi),t.usePlugin(li)}},ui=ci,di={id:"reflow",install:function(t){var e=t.Interactable;t.actions.phases.reflow=!0,e.prototype.reflow=function(e){return function(t,e,n){for(var i=t.getAllElements(),r=n.window.Promise,s=r?[]:null,o=function(){var o=i[a],l=t.getRect(o);if(!l)return 1;var c,u=It(n.interactions.list,(function(n){return n.interacting()&&n.interactable===t&&n.element===o&&n.prepared.name===e.name}));if(u)u.move(),s&&(c=u._reflowPromise||new r((function(t){u._reflowResolve=t})));else{var d=it(l),h=function(t){return{coords:t,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:d.x,y:d.y},client:{x:d.x,y:d.y},timeStamp:n.now()});c=function(t,e,n,i,r){var s=t.interactions.new({pointerType:"reflow"}),o={interaction:s,event:r,pointer:r,eventTarget:n,phase:"reflow"};s.interactable=e,s.element=n,s.prevEvent=r,s.updatePointer(r,r,n,!0),ht(s.coords.delta),re(s.prepared,i),s._doPhase(o);var a=t.window.Promise,l=a?new a((function(t){s._reflowResolve=t})):void 0;return s._reflowPromise=l,s.start(i,e,n),s._interacting?(s.move(o),s.end(r)):(s.stop(),s._reflowResolve()),s.removePointer(r,r),l}(n,t,o,e,h)}s&&s.push(c)},a=0;a<i.length&&!o();a++);return s&&r.all(s).then((function(){return t}))}(this,e,t)}},listeners:{"interactions:stop":function(t,e){var n=t.interaction;"reflow"===n.pointerType&&(n._reflowResolve&&n._reflowResolve(),function(t,e){t.splice(t.indexOf(e),1)}(e.interactions.list,n))}}},hi=di;if(wn.use(Me),wn.use(Ze),wn.use(ui),wn.use($e),wn.use(qn),wn.use(Ae),wn.use(Gt),wn.use(ne),wn.use(hi),wn.default=wn,"object"===i(t)&&t)try{t.exports=wn}catch(e){}return wn.default=wn,wn}()},194:(t,e)=>{"use strict";var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},i={tName:"t",i18nName:"i18n",handleName:"localize",selectorAttr:"data-i18n",targetAttr:"i18n-target",optionsAttr:"i18n-options",useOptionsAttr:!1,parseDefaultValueFromContent:!0};e.default={init:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,i,s){if(0!==i.length){var o="text";if(0===i.indexOf("[")){var a=i.split("]");i=a[1],o=a[0].substr(1,a[0].length-1)}if(i.indexOf(";")===i.length-1&&(i=i.substr(0,i.length-2)),"html"===o)e.html(t.t(i,u(s,e.html())));else if("text"===o)e.text(t.t(i,u(s,e.text())));else if("prepend"===o)e.prepend(t.t(i,u(s,e.html())));else if("append"===o)e.append(t.t(i,u(s,e.html())));else if(0===o.indexOf("data-")){var l=o.substr(5),c=t.t(i,u(s,e.data(l)));e.data(l,c),e.attr(o,c)}else e.attr(o,t.t(i,u(s,e.attr(o))))}function u(t,e){return r.parseDefaultValueFromContent?n({},t,{defaultValue:e}):t}}function o(t,i){var o=t.attr(r.selectorAttr);if(o||void 0===o||!1===o||(o=t.text()||t.val()),o){var a=t,l=t.data(r.targetAttr);if(l&&(a=t.find(l)||t),i||!0!==r.useOptionsAttr||(i=t.data(r.optionsAttr)),i=i||{},o.indexOf(";")>=0){var c=o.split(";");e.each(c,(function(t,e){""!==e&&s(a,e.trim(),i)}))}else s(a,o,i);if(!0===r.useOptionsAttr){var u={};delete(u=n({clone:u},i)).lng,t.data(r.optionsAttr,u)}}}r=n({},i,r),e[r.tName]=t.t.bind(t),e[r.i18nName]=t,e.fn[r.handleName]=function(t){return this.each((function(){o(e(this),t),e(this).find("["+r.selectorAttr+"]").each((function(){o(e(this),t)}))}))}}}},790:(t,e,n)=>{t.exports=n(194).default},651:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(i,r){"use strict";var s=[],o=Object.getPrototypeOf,a=s.slice,l=s.flat?function(t){return s.flat.call(t)}:function(t){return s.concat.apply([],t)},c=s.push,u=s.indexOf,d={},h=d.toString,p=d.hasOwnProperty,f=p.toString,g=f.call(Object),m={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},y=function(t){return null!=t&&t===t.window},b=i.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(t,e,n){var i,r,s=(n=n||b).createElement("script");if(s.text=t,e)for(i in x)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&s.setAttribute(i,r);n.head.appendChild(s).parentNode.removeChild(s)}function A(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?d[h.call(t)]||"object":typeof t}var _="3.7.1",C=/HTML$/i,M=function(t,e){return new M.fn.init(t,e)};function k(t){var e=!!t&&"length"in t&&t.length,n=A(t);return!v(t)&&!y(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function S(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}M.fn=M.prototype={jquery:_,constructor:M,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=M.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return M.each(this,t)},map:function(t){return this.pushStack(M.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(M.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(M.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:s.sort,splice:s.splice},M.extend=M.fn.extend=function(){var t,e,n,i,r,s,o=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[a]||{},a++),"object"==typeof o||v(o)||(o={}),a===l&&(o=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)i=t[e],"__proto__"!==e&&o!==i&&(c&&i&&(M.isPlainObject(i)||(r=Array.isArray(i)))?(n=o[e],s=r&&!Array.isArray(n)?[]:r||M.isPlainObject(n)?n:{},r=!1,o[e]=M.extend(c,s,i)):void 0!==i&&(o[e]=i));return o},M.extend({expando:"jQuery"+(_+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==h.call(t)||(e=o(t))&&("function"!=typeof(n=p.call(e,"constructor")&&e.constructor)||f.call(n)!==g))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){w(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(k(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},text:function(t){var e,n="",i=0,r=t.nodeType;if(!r)for(;e=t[i++];)n+=M.text(e);return 1===r||11===r?t.textContent:9===r?t.documentElement.textContent:3===r||4===r?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(k(Object(t))?M.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:u.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!C.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,s=t.length,o=!n;r<s;r++)!e(t[r],r)!==o&&i.push(t[r]);return i},map:function(t,e,n){var i,r,s=0,o=[];if(k(t))for(i=t.length;s<i;s++)null!=(r=e(t[s],s,n))&&o.push(r);else for(s in t)null!=(r=e(t[s],s,n))&&o.push(r);return l(o)},guid:1,support:m}),"function"==typeof Symbol&&(M.fn[Symbol.iterator]=s[Symbol.iterator]),M.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){d["[object "+e+"]"]=e.toLowerCase()}));var I=s.pop,L=s.sort,D=s.splice,T="[\\x20\\t\\r\\n\\f]",N=new RegExp("^"+T+"+|((?:^|[^\\\\])(?:\\\\.)*)"+T+"+$","g");M.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var O=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function j(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}M.escapeSelector=function(t){return(t+"").replace(O,j)};var E=b,z=c;!function(){var t,e,n,r,o,l,c,d,h,f,g=z,v=M.expando,y=0,b=0,x=tt(),w=tt(),A=tt(),_=tt(),C=function(t,e){return t===e&&(o=!0),0},k="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="(?:\\\\[\\da-fA-F]{1,6}"+T+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",j="\\["+T+"*("+O+")(?:"+T+"*([*^$|!~]?=)"+T+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+T+"*\\]",F=":("+O+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+j+")*)|.*)\\)|)",P=new RegExp(T+"+","g"),R=new RegExp("^"+T+"*,"+T+"*"),Y=new RegExp("^"+T+"*([>+~]|"+T+")"+T+"*"),U=new RegExp(T+"|>"),B=new RegExp(F),W=new RegExp("^"+O+"$"),H={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+T+"*(even|odd|(([+-]|)(\\d*)n|)"+T+"*(?:([+-]|)"+T+"*(\\d+)|))"+T+"*\\)|)","i"),bool:new RegExp("^(?:"+k+")$","i"),needsContext:new RegExp("^"+T+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+T+"*((?:-\\d)?\\d*)"+T+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,J=new RegExp("\\\\[\\da-fA-F]{1,6}"+T+"?|\\\\([^\\r\\n\\f])","g"),X=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},q=function(){lt()},$=ht((function(t){return!0===t.disabled&&S(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(s=a.call(E.childNodes),E.childNodes),s[E.childNodes.length].nodeType}catch(t){g={apply:function(t,e){z.apply(t,a.call(e))},call:function(t){z.apply(t,a.call(arguments,1))}}}function K(t,e,n,i){var r,s,o,a,c,u,p,f=e&&e.ownerDocument,y=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==y&&9!==y&&11!==y)return n;if(!i&&(lt(e),e=e||l,d)){if(11!==y&&(c=G.exec(t)))if(r=c[1]){if(9===y){if(!(o=e.getElementById(r)))return n;if(o.id===r)return g.call(n,o),n}else if(f&&(o=f.getElementById(r))&&K.contains(e,o)&&o.id===r)return g.call(n,o),n}else{if(c[2])return g.apply(n,e.getElementsByTagName(t)),n;if((r=c[3])&&e.getElementsByClassName)return g.apply(n,e.getElementsByClassName(r)),n}if(!(_[t+" "]||h&&h.test(t))){if(p=t,f=e,1===y&&(U.test(t)||Y.test(t))){for((f=Q.test(t)&&at(e.parentNode)||e)==e&&m.scope||((a=e.getAttribute("id"))?a=M.escapeSelector(a):e.setAttribute("id",a=v)),s=(u=ut(t)).length;s--;)u[s]=(a?"#"+a:":scope")+" "+dt(u[s]);p=u.join(",")}try{return g.apply(n,f.querySelectorAll(p)),n}catch(e){_(t,!0)}finally{a===v&&e.removeAttribute("id")}}}return yt(t.replace(N,"$1"),e,n,i)}function tt(){var t=[];return function n(i,r){return t.push(i+" ")>e.cacheLength&&delete n[t.shift()],n[i+" "]=r}}function et(t){return t[v]=!0,t}function nt(t){var e=l.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function it(t){return function(e){return S(e,"input")&&e.type===t}}function rt(t){return function(e){return(S(e,"input")||S(e,"button"))&&e.type===t}}function st(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&$(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ot(t){return et((function(e){return e=+e,et((function(n,i){for(var r,s=t([],n.length,e),o=s.length;o--;)n[r=s[o]]&&(n[r]=!(i[r]=n[r]))}))}))}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function lt(t){var n,i=t?t.ownerDocument||t:E;return i!=l&&9===i.nodeType&&i.documentElement?(c=(l=i).documentElement,d=!M.isXMLDoc(l),f=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&E!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",q),m.getById=nt((function(t){return c.appendChild(t).id=M.expando,!l.getElementsByName||!l.getElementsByName(M.expando).length})),m.disconnectedMatch=nt((function(t){return f.call(t,"*")})),m.scope=nt((function(){return l.querySelectorAll(":scope")})),m.cssHas=nt((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),m.getById?(e.filter.ID=function(t){var e=t.replace(J,X);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(J,X);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var n,i,r,s=e.getElementById(t);if(s){if((n=s.getAttributeNode("id"))&&n.value===t)return[s];for(r=e.getElementsByName(t),i=0;s=r[i++];)if((n=s.getAttributeNode("id"))&&n.value===t)return[s]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&d)return e.getElementsByClassName(t)},h=[],nt((function(t){var e;c.appendChild(t).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||h.push("\\["+T+"*(?:value|"+k+")"),t.querySelectorAll("[id~="+v+"-]").length||h.push("~="),t.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),t.querySelectorAll(":checked").length||h.push(":checked"),(e=l.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),c.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(e=l.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||h.push("\\["+T+"*name"+T+"*="+T+"*(?:''|\"\")")})),m.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),C=function(t,e){if(t===e)return o=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!m.sortDetached&&e.compareDocumentPosition(t)===n?t===l||t.ownerDocument==E&&K.contains(E,t)?-1:e===l||e.ownerDocument==E&&K.contains(E,e)?1:r?u.call(r,t)-u.call(r,e):0:4&n?-1:1)},l):l}for(t in K.matches=function(t,e){return K(t,null,null,e)},K.matchesSelector=function(t,e){if(lt(t),d&&!_[e+" "]&&(!h||!h.test(e)))try{var n=f.call(t,e);if(n||m.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){_(e,!0)}return K(e,l,null,[t]).length>0},K.contains=function(t,e){return(t.ownerDocument||t)!=l&&lt(t),M.contains(t,e)},K.attr=function(t,n){(t.ownerDocument||t)!=l&&lt(t);var i=e.attrHandle[n.toLowerCase()],r=i&&p.call(e.attrHandle,n.toLowerCase())?i(t,n,!d):void 0;return void 0!==r?r:t.getAttribute(n)},K.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},M.uniqueSort=function(t){var e,n=[],i=0,s=0;if(o=!m.sortStable,r=!m.sortStable&&a.call(t,0),L.call(t,C),o){for(;e=t[s++];)e===t[s]&&(i=n.push(s));for(;i--;)D.call(t,n[i],1)}return r=null,t},M.fn.uniqueSort=function(){return this.pushStack(M.uniqueSort(a.apply(this)))},e=M.expr={cacheLength:50,createPseudo:et,match:H,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(J,X),t[3]=(t[3]||t[4]||t[5]||"").replace(J,X),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||K.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&K.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return H.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&B.test(n)&&(e=ut(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(J,X).toLowerCase();return"*"===t?function(){return!0}:function(t){return S(t,e)}},CLASS:function(t){var e=x[t+" "];return e||(e=new RegExp("(^|"+T+")"+t+"("+T+"|$)"))&&x(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var r=K.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(P," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var s="nth"!==t.slice(0,3),o="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,u,d,h,p,f=s!==o?"nextSibling":"previousSibling",g=e.parentNode,m=a&&e.nodeName.toLowerCase(),b=!l&&!a,x=!1;if(g){if(s){for(;f;){for(d=e;d=d[f];)if(a?S(d,m):1===d.nodeType)return!1;p=f="only"===t&&!p&&"nextSibling"}return!0}if(p=[o?g.firstChild:g.lastChild],o&&b){for(x=(h=(c=(u=g[v]||(g[v]={}))[t]||[])[0]===y&&c[1])&&c[2],d=h&&g.childNodes[h];d=++h&&d&&d[f]||(x=h=0)||p.pop();)if(1===d.nodeType&&++x&&d===e){u[t]=[y,h,x];break}}else if(b&&(x=h=(c=(u=e[v]||(e[v]={}))[t]||[])[0]===y&&c[1]),!1===x)for(;(d=++h&&d&&d[f]||(x=h=0)||p.pop())&&(!(a?S(d,m):1===d.nodeType)||!++x||(b&&((u=d[v]||(d[v]={}))[t]=[y,x]),d!==e)););return(x-=r)===i||x%i==0&&x/i>=0}}},PSEUDO:function(t,n){var i,r=e.pseudos[t]||e.setFilters[t.toLowerCase()]||K.error("unsupported pseudo: "+t);return r[v]?r(n):r.length>1?(i=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var i,s=r(t,n),o=s.length;o--;)t[i=u.call(t,s[o])]=!(e[i]=s[o])})):function(t){return r(t,0,i)}):r}},pseudos:{not:et((function(t){var e=[],n=[],i=vt(t.replace(N,"$1"));return i[v]?et((function(t,e,n,r){for(var s,o=i(t,null,r,[]),a=t.length;a--;)(s=o[a])&&(t[a]=!(e[a]=s))})):function(t,r,s){return e[0]=t,i(e,null,s,n),e[0]=null,!n.pop()}})),has:et((function(t){return function(e){return K(t,e).length>0}})),contains:et((function(t){return t=t.replace(J,X),function(e){return(e.textContent||M.text(e)).indexOf(t)>-1}})),lang:et((function(t){return W.test(t||"")||K.error("unsupported lang: "+t),t=t.replace(J,X).toLowerCase(),function(e){var n;do{if(n=d?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===c},focus:function(t){return t===function(){try{return l.activeElement}catch(t){}}()&&l.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:st(!1),disabled:st(!0),checked:function(t){return S(t,"input")&&!!t.checked||S(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return Z.test(t.nodeName)},input:function(t){return V.test(t.nodeName)},button:function(t){return S(t,"input")&&"button"===t.type||S(t,"button")},text:function(t){var e;return S(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ot((function(){return[0]})),last:ot((function(t,e){return[e-1]})),eq:ot((function(t,e,n){return[n<0?n+e:n]})),even:ot((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:ot((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:ot((function(t,e,n){var i;for(i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t})),gt:ot((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=it(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=rt(t);function ct(){}function ut(t,n){var i,r,s,o,a,l,c,u=w[t+" "];if(u)return n?0:u.slice(0);for(a=t,l=[],c=e.preFilter;a;){for(o in i&&!(r=R.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(s=[])),i=!1,(r=Y.exec(a))&&(i=r.shift(),s.push({value:i,type:r[0].replace(N," ")}),a=a.slice(i.length)),e.filter)!(r=H[o].exec(a))||c[o]&&!(r=c[o](r))||(i=r.shift(),s.push({value:i,type:o,matches:r}),a=a.slice(i.length));if(!i)break}return n?a.length:a?K.error(t):w(t,l).slice(0)}function dt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function ht(t,e,n){var i=e.dir,r=e.next,s=r||i,o=n&&"parentNode"===s,a=b++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||o)return t(e,n,r);return!1}:function(e,n,l){var c,u,d=[y,a];if(l){for(;e=e[i];)if((1===e.nodeType||o)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||o)if(u=e[v]||(e[v]={}),r&&S(e,r))e=e[i]||e;else{if((c=u[s])&&c[0]===y&&c[1]===a)return d[2]=c[2];if(u[s]=d,d[2]=t(e,n,l))return!0}return!1}}function pt(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function ft(t,e,n,i,r){for(var s,o=[],a=0,l=t.length,c=null!=e;a<l;a++)(s=t[a])&&(n&&!n(s,i,r)||(o.push(s),c&&e.push(a)));return o}function gt(t,e,n,i,r,s){return i&&!i[v]&&(i=gt(i)),r&&!r[v]&&(r=gt(r,s)),et((function(s,o,a,l){var c,d,h,p,f=[],m=[],v=o.length,y=s||function(t,e,n){for(var i=0,r=e.length;i<r;i++)K(t,e[i],n);return n}(e||"*",a.nodeType?[a]:a,[]),b=!t||!s&&e?y:ft(y,f,t,a,l);if(n?n(b,p=r||(s?t:v||i)?[]:o,a,l):p=b,i)for(c=ft(p,m),i(c,[],a,l),d=c.length;d--;)(h=c[d])&&(p[m[d]]=!(b[m[d]]=h));if(s){if(r||t){if(r){for(c=[],d=p.length;d--;)(h=p[d])&&c.push(b[d]=h);r(null,p=[],c,l)}for(d=p.length;d--;)(h=p[d])&&(c=r?u.call(s,h):f[d])>-1&&(s[c]=!(o[c]=h))}}else p=ft(p===o?p.splice(v,p.length):p),r?r(null,o,p,l):g.apply(o,p)}))}function mt(t){for(var i,r,s,o=t.length,a=e.relative[t[0].type],l=a||e.relative[" "],c=a?1:0,d=ht((function(t){return t===i}),l,!0),h=ht((function(t){return u.call(i,t)>-1}),l,!0),p=[function(t,e,r){var s=!a&&(r||e!=n)||((i=e).nodeType?d(t,e,r):h(t,e,r));return i=null,s}];c<o;c++)if(r=e.relative[t[c].type])p=[ht(pt(p),r)];else{if((r=e.filter[t[c].type].apply(null,t[c].matches))[v]){for(s=++c;s<o&&!e.relative[t[s].type];s++);return gt(c>1&&pt(p),c>1&&dt(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(N,"$1"),r,c<s&&mt(t.slice(c,s)),s<o&&mt(t=t.slice(s)),s<o&&dt(t))}p.push(r)}return pt(p)}function vt(t,i){var r,s=[],o=[],a=A[t+" "];if(!a){for(i||(i=ut(t)),r=i.length;r--;)(a=mt(i[r]))[v]?s.push(a):o.push(a);a=A(t,function(t,i){var r=i.length>0,s=t.length>0,o=function(o,a,c,u,h){var p,f,m,v=0,b="0",x=o&&[],w=[],A=n,_=o||s&&e.find.TAG("*",h),C=y+=null==A?1:Math.random()||.1,k=_.length;for(h&&(n=a==l||a||h);b!==k&&null!=(p=_[b]);b++){if(s&&p){for(f=0,a||p.ownerDocument==l||(lt(p),c=!d);m=t[f++];)if(m(p,a||l,c)){g.call(u,p);break}h&&(y=C)}r&&((p=!m&&p)&&v--,o&&x.push(p))}if(v+=b,r&&b!==v){for(f=0;m=i[f++];)m(x,w,a,c);if(o){if(v>0)for(;b--;)x[b]||w[b]||(w[b]=I.call(u));w=ft(w)}g.apply(u,w),h&&!o&&w.length>0&&v+i.length>1&&M.uniqueSort(u)}return h&&(y=C,n=A),x};return r?et(o):o}(o,s)),a.selector=t}return a}function yt(t,n,i,r){var s,o,a,l,c,u="function"==typeof t&&t,h=!r&&ut(t=u.selector||t);if(i=i||[],1===h.length){if((o=h[0]=h[0].slice(0)).length>2&&"ID"===(a=o[0]).type&&9===n.nodeType&&d&&e.relative[o[1].type]){if(!(n=(e.find.ID(a.matches[0].replace(J,X),n)||[])[0]))return i;u&&(n=n.parentNode),t=t.slice(o.shift().value.length)}for(s=H.needsContext.test(t)?0:o.length;s--&&(a=o[s],!e.relative[l=a.type]);)if((c=e.find[l])&&(r=c(a.matches[0].replace(J,X),Q.test(o[0].type)&&at(n.parentNode)||n))){if(o.splice(s,1),!(t=r.length&&dt(o)))return g.apply(i,r),i;break}}return(u||vt(t,h))(r,n,!d,i,!n||Q.test(t)&&at(n.parentNode)||n),i}ct.prototype=e.filters=e.pseudos,e.setFilters=new ct,m.sortStable=v.split("").sort(C).join("")===v,lt(),m.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(l.createElement("fieldset"))})),M.find=K,M.expr[":"]=M.expr.pseudos,M.unique=M.uniqueSort,K.compile=vt,K.select=yt,K.setDocument=lt,K.tokenize=ut,K.escape=M.escapeSelector,K.getText=M.text,K.isXML=M.isXMLDoc,K.selectors=M.expr,K.support=M.support,K.uniqueSort=M.uniqueSort}();var F=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&M(t).is(n))break;i.push(t)}return i},P=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},R=M.expr.match.needsContext,Y=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function U(t,e,n){return v(e)?M.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?M.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?M.grep(t,(function(t){return u.call(e,t)>-1!==n})):M.filter(e,t,n)}M.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?M.find.matchesSelector(i,t)?[i]:[]:M.find.matches(t,M.grep(e,(function(t){return 1===t.nodeType})))},M.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(M(t).filter((function(){for(e=0;e<i;e++)if(M.contains(r[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)M.find(t,r[e],n);return i>1?M.uniqueSort(n):n},filter:function(t){return this.pushStack(U(this,t||[],!1))},not:function(t){return this.pushStack(U(this,t||[],!0))},is:function(t){return!!U(this,"string"==typeof t&&R.test(t)?M(t):t||[],!1).length}});var B,W=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(M.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||B,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:W.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof M?e[0]:e,M.merge(this,M.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),Y.test(i[1])&&M.isPlainObject(e))for(i in e)v(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=b.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==n.ready?n.ready(t):t(M):M.makeArray(t,this)}).prototype=M.fn,B=M(b);var H=/^(?:parents|prev(?:Until|All))/,V={children:!0,contents:!0,next:!0,prev:!0};function Z(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}M.fn.extend({has:function(t){var e=M(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(M.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,r=this.length,s=[],o="string"!=typeof t&&M(t);if(!R.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&M.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?M.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?u.call(M(t),this[0]):u.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(M.uniqueSort(M.merge(this.get(),M(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),M.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return F(t,"parentNode")},parentsUntil:function(t,e,n){return F(t,"parentNode",n)},next:function(t){return Z(t,"nextSibling")},prev:function(t){return Z(t,"previousSibling")},nextAll:function(t){return F(t,"nextSibling")},prevAll:function(t){return F(t,"previousSibling")},nextUntil:function(t,e,n){return F(t,"nextSibling",n)},prevUntil:function(t,e,n){return F(t,"previousSibling",n)},siblings:function(t){return P((t.parentNode||{}).firstChild,t)},children:function(t){return P(t.firstChild)},contents:function(t){return null!=t.contentDocument&&o(t.contentDocument)?t.contentDocument:(S(t,"template")&&(t=t.content||t),M.merge([],t.childNodes))}},(function(t,e){M.fn[t]=function(n,i){var r=M.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=M.filter(i,r)),this.length>1&&(V[t]||M.uniqueSort(r),H.test(t)&&r.reverse()),this.pushStack(r)}}));var G=/[^\x20\t\r\n\f]+/g;function Q(t){return t}function J(t){throw t}function X(t,e,n,i){var r;try{t&&v(r=t.promise)?r.call(t).done(e).fail(n):t&&v(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}M.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return M.each(t.match(G)||[],(function(t,n){e[n]=!0})),e}(t):M.extend({},t);var e,n,i,r,s=[],o=[],a=-1,l=function(){for(r=r||t.once,i=e=!0;o.length;a=-1)for(n=o.shift();++a<s.length;)!1===s[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=s.length,n=!1);t.memory||(n=!1),e=!1,r&&(s=n?[]:"")},c={add:function(){return s&&(n&&!e&&(a=s.length-1,o.push(n)),function e(n){M.each(n,(function(n,i){v(i)?t.unique&&c.has(i)||s.push(i):i&&i.length&&"string"!==A(i)&&e(i)}))}(arguments),n&&!e&&l()),this},remove:function(){return M.each(arguments,(function(t,e){for(var n;(n=M.inArray(e,s,n))>-1;)s.splice(n,1),n<=a&&a--})),this},has:function(t){return t?M.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return r=o=[],s=n="",this},disabled:function(){return!s},lock:function(){return r=o=[],n||e||(s=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],o.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},M.extend({Deferred:function(t){var e=[["notify","progress",M.Callbacks("memory"),M.Callbacks("memory"),2],["resolve","done",M.Callbacks("once memory"),M.Callbacks("once memory"),0,"resolved"],["reject","fail",M.Callbacks("once memory"),M.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return M.Deferred((function(n){M.each(e,(function(e,i){var r=v(t[i[4]])&&t[i[4]];s[i[1]]((function(){var t=r&&r.apply(this,arguments);t&&v(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,r){var s=0;function o(t,e,n,r){return function(){var a=this,l=arguments,c=function(){var i,c;if(!(t<s)){if((i=n.apply(a,l))===e.promise())throw new TypeError("Thenable self-resolution");c=i&&("object"==typeof i||"function"==typeof i)&&i.then,v(c)?r?c.call(i,o(s,e,Q,r),o(s,e,J,r)):(s++,c.call(i,o(s,e,Q,r),o(s,e,J,r),o(s,e,Q,e.notifyWith))):(n!==Q&&(a=void 0,l=[i]),(r||e.resolveWith)(a,l))}},u=r?c:function(){try{c()}catch(i){M.Deferred.exceptionHook&&M.Deferred.exceptionHook(i,u.error),t+1>=s&&(n!==J&&(a=void 0,l=[i]),e.rejectWith(a,l))}};t?u():(M.Deferred.getErrorHook?u.error=M.Deferred.getErrorHook():M.Deferred.getStackHook&&(u.error=M.Deferred.getStackHook()),i.setTimeout(u))}}return M.Deferred((function(i){e[0][3].add(o(0,i,v(r)?r:Q,i.notifyWith)),e[1][3].add(o(0,i,v(t)?t:Q)),e[2][3].add(o(0,i,v(n)?n:J))})).promise()},promise:function(t){return null!=t?M.extend(t,r):r}},s={};return M.each(e,(function(t,i){var o=i[2],a=i[5];r[i[1]]=o.add,a&&o.add((function(){n=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),o.add(i[3].fire),s[i[0]]=function(){return s[i[0]+"With"](this===s?void 0:this,arguments),this},s[i[0]+"With"]=o.fireWith})),r.promise(s),t&&t.call(s,s),s},when:function(t){var e=arguments.length,n=e,i=Array(n),r=a.call(arguments),s=M.Deferred(),o=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?a.call(arguments):n,--e||s.resolveWith(i,r)}};if(e<=1&&(X(t,s.done(o(n)).resolve,s.reject,!e),"pending"===s.state()||v(r[n]&&r[n].then)))return s.then();for(;n--;)X(r[n],o(n),s.reject);return s.promise()}});var q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;M.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&q.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},M.readyException=function(t){i.setTimeout((function(){throw t}))};var $=M.Deferred();function K(){b.removeEventListener("DOMContentLoaded",K),i.removeEventListener("load",K),M.ready()}M.fn.ready=function(t){return $.then(t).catch((function(t){M.readyException(t)})),this},M.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--M.readyWait:M.isReady)||(M.isReady=!0,!0!==t&&--M.readyWait>0||$.resolveWith(b,[M]))}}),M.ready.then=$.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout(M.ready):(b.addEventListener("DOMContentLoaded",K),i.addEventListener("load",K));var tt=function(t,e,n,i,r,s,o){var a=0,l=t.length,c=null==n;if("object"===A(n))for(a in r=!0,n)tt(t,e,a,n[a],!0,s,o);else if(void 0!==i&&(r=!0,v(i)||(o=!0),c&&(o?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(M(t),n)})),e))for(;a<l;a++)e(t[a],n,o?i:i.call(t[a],a,e(t[a],n)));return r?t:c?e.call(t):l?e(t[0],n):s},et=/^-ms-/,nt=/-([a-z])/g;function it(t,e){return e.toUpperCase()}function rt(t){return t.replace(et,"ms-").replace(nt,it)}var st=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function ot(){this.expando=M.expando+ot.uid++}ot.uid=1,ot.prototype={cache:function(t){var e=t[this.expando];return e||(e={},st(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[rt(e)]=n;else for(i in e)r[rt(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][rt(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(rt):(e=rt(e))in i?[e]:e.match(G)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||M.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!M.isEmptyObject(e)}};var at=new ot,lt=new ot,ct=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ut=/[A-Z]/g;function dt(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(ut,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ct.test(t)?JSON.parse(t):t)}(n)}catch(t){}lt.set(t,e,n)}else n=void 0;return n}M.extend({hasData:function(t){return lt.hasData(t)||at.hasData(t)},data:function(t,e,n){return lt.access(t,e,n)},removeData:function(t,e){lt.remove(t,e)},_data:function(t,e,n){return at.access(t,e,n)},_removeData:function(t,e){at.remove(t,e)}}),M.fn.extend({data:function(t,e){var n,i,r,s=this[0],o=s&&s.attributes;if(void 0===t){if(this.length&&(r=lt.get(s),1===s.nodeType&&!at.get(s,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(i=o[n].name).indexOf("data-")&&(i=rt(i.slice(5)),dt(s,i,r[i]));at.set(s,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){lt.set(this,t)})):tt(this,(function(e){var n;if(s&&void 0===e)return void 0!==(n=lt.get(s,t))||void 0!==(n=dt(s,t))?n:void 0;this.each((function(){lt.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){lt.remove(this,t)}))}}),M.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=at.get(t,e),n&&(!i||Array.isArray(n)?i=at.access(t,e,M.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=M.queue(t,e),i=n.length,r=n.shift(),s=M._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete s.stop,r.call(t,(function(){M.dequeue(t,e)}),s)),!i&&s&&s.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return at.get(t,n)||at.access(t,n,{empty:M.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",n])}))})}}),M.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?M.queue(this[0],t):void 0===e?this:this.each((function(){var n=M.queue(this,t,e);M._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&M.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){M.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=M.Deferred(),s=this,o=this.length,a=function(){--i||r.resolveWith(s,[s])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)(n=at.get(s[o],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(e)}});var ht=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pt=new RegExp("^(?:([+-])=|)("+ht+")([a-z%]*)$","i"),ft=["Top","Right","Bottom","Left"],gt=b.documentElement,mt=function(t){return M.contains(t.ownerDocument,t)},vt={composed:!0};gt.getRootNode&&(mt=function(t){return M.contains(t.ownerDocument,t)||t.getRootNode(vt)===t.ownerDocument});var yt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&mt(t)&&"none"===M.css(t,"display")};function bt(t,e,n,i){var r,s,o=20,a=i?function(){return i.cur()}:function(){return M.css(t,e,"")},l=a(),c=n&&n[3]||(M.cssNumber[e]?"":"px"),u=t.nodeType&&(M.cssNumber[e]||"px"!==c&&+l)&&pt.exec(M.css(t,e));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;o--;)M.style(t,e,u+c),(1-s)*(1-(s=a()/l||.5))<=0&&(o=0),u/=s;u*=2,M.style(t,e,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var xt={};function wt(t){var e,n=t.ownerDocument,i=t.nodeName,r=xt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=M.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),xt[i]=r,r)}function At(t,e){for(var n,i,r=[],s=0,o=t.length;s<o;s++)(i=t[s]).style&&(n=i.style.display,e?("none"===n&&(r[s]=at.get(i,"display")||null,r[s]||(i.style.display="")),""===i.style.display&&yt(i)&&(r[s]=wt(i))):"none"!==n&&(r[s]="none",at.set(i,"display",n)));for(s=0;s<o;s++)null!=r[s]&&(t[s].style.display=r[s]);return t}M.fn.extend({show:function(){return At(this,!0)},hide:function(){return At(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){yt(this)?M(this).show():M(this).hide()}))}});var _t,Ct,Mt=/^(?:checkbox|radio)$/i,kt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,St=/^$|^module$|\/(?:java|ecma)script/i;_t=b.createDocumentFragment().appendChild(b.createElement("div")),(Ct=b.createElement("input")).setAttribute("type","radio"),Ct.setAttribute("checked","checked"),Ct.setAttribute("name","t"),_t.appendChild(Ct),m.checkClone=_t.cloneNode(!0).cloneNode(!0).lastChild.checked,_t.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!_t.cloneNode(!0).lastChild.defaultValue,_t.innerHTML="<option></option>",m.option=!!_t.lastChild;var It={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Lt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&S(t,e)?M.merge([t],n):n}function Dt(t,e){for(var n=0,i=t.length;n<i;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}It.tbody=It.tfoot=It.colgroup=It.caption=It.thead,It.th=It.td,m.option||(It.optgroup=It.option=[1,"<select multiple='multiple'>","</select>"]);var Tt=/<|&#?\w+;/;function Nt(t,e,n,i,r){for(var s,o,a,l,c,u,d=e.createDocumentFragment(),h=[],p=0,f=t.length;p<f;p++)if((s=t[p])||0===s)if("object"===A(s))M.merge(h,s.nodeType?[s]:s);else if(Tt.test(s)){for(o=o||d.appendChild(e.createElement("div")),a=(kt.exec(s)||["",""])[1].toLowerCase(),l=It[a]||It._default,o.innerHTML=l[1]+M.htmlPrefilter(s)+l[2],u=l[0];u--;)o=o.lastChild;M.merge(h,o.childNodes),(o=d.firstChild).textContent=""}else h.push(e.createTextNode(s));for(d.textContent="",p=0;s=h[p++];)if(i&&M.inArray(s,i)>-1)r&&r.push(s);else if(c=mt(s),o=Lt(d.appendChild(s),"script"),c&&Dt(o),n)for(u=0;s=o[u++];)St.test(s.type||"")&&n.push(s);return d}var Ot=/^([^.]*)(?:\.(.+)|)/;function jt(){return!0}function Et(){return!1}function zt(t,e,n,i,r,s){var o,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)zt(t,a,n,i,e[a],s);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Et;else if(!r)return t;return 1===s&&(o=r,r=function(t){return M().off(t),o.apply(this,arguments)},r.guid=o.guid||(o.guid=M.guid++)),t.each((function(){M.event.add(this,e,r,i,n)}))}function Ft(t,e,n){n?(at.set(t,e,!1),M.event.add(t,e,{namespace:!1,handler:function(t){var n,i=at.get(this,e);if(1&t.isTrigger&&this[e]){if(i)(M.event.special[e]||{}).delegateType&&t.stopPropagation();else if(i=a.call(arguments),at.set(this,e,i),this[e](),n=at.get(this,e),at.set(this,e,!1),i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else i&&(at.set(this,e,M.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=jt)}})):void 0===at.get(t,e)&&M.event.add(t,e,jt)}M.event={global:{},add:function(t,e,n,i,r){var s,o,a,l,c,u,d,h,p,f,g,m=at.get(t);if(st(t))for(n.handler&&(n=(s=n).handler,r=s.selector),r&&M.find.matchesSelector(gt,r),n.guid||(n.guid=M.guid++),(l=m.events)||(l=m.events=Object.create(null)),(o=m.handle)||(o=m.handle=function(e){return void 0!==M&&M.event.triggered!==e.type?M.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(G)||[""]).length;c--;)p=g=(a=Ot.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=M.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=M.event.special[p]||{},u=M.extend({type:p,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&M.expr.match.needsContext.test(r),namespace:f.join(".")},s),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,f,o)||t.addEventListener&&t.addEventListener(p,o)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),M.event.global[p]=!0)},remove:function(t,e,n,i,r){var s,o,a,l,c,u,d,h,p,f,g,m=at.hasData(t)&&at.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(G)||[""]).length;c--;)if(p=g=(a=Ot.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=M.event.special[p]||{},h=l[p=(i?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=h.length;s--;)u=h[s],!r&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(s,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(t,u));o&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,f,m.handle)||M.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)M.event.remove(t,p+e[c],n,i,!0);M.isEmptyObject(l)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,s,o,a=new Array(arguments.length),l=M.event.fix(t),c=(at.get(this,"events")||Object.create(null))[l.type]||[],u=M.event.special[l.type]||{};for(a[0]=l,e=1;e<arguments.length;e++)a[e]=arguments[e];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(o=M.event.handlers.call(this,l,c),e=0;(r=o[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(s=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==s.namespace&&!l.rnamespace.test(s.namespace)||(l.handleObj=s,l.data=s.data,void 0!==(i=((M.event.special[s.origType]||{}).handle||s.handler).apply(r.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,r,s,o,a=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(s=[],o={},n=0;n<l;n++)void 0===o[r=(i=e[n]).selector+" "]&&(o[r]=i.needsContext?M(r,this).index(c)>-1:M.find(r,this,null,[c]).length),o[r]&&s.push(i);s.length&&a.push({elem:c,handlers:s})}return c=this,l<e.length&&a.push({elem:c,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(M.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[M.expando]?t:new M.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return Mt.test(e.type)&&e.click&&S(e,"input")&&Ft(e,"click",!0),!1},trigger:function(t){var e=this||t;return Mt.test(e.type)&&e.click&&S(e,"input")&&Ft(e,"click"),!0},_default:function(t){var e=t.target;return Mt.test(e.type)&&e.click&&S(e,"input")&&at.get(e,"click")||S(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},M.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},M.Event=function(t,e){if(!(this instanceof M.Event))return new M.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?jt:Et,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&M.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[M.expando]=!0},M.Event.prototype={constructor:M.Event,isDefaultPrevented:Et,isPropagationStopped:Et,isImmediatePropagationStopped:Et,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=jt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=jt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=jt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},M.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},M.event.addProp),M.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(b.documentMode){var n=at.get(this,"handle"),i=M.event.fix(t);i.type="focusin"===t.type?"focus":"blur",i.isSimulated=!0,n(t),i.target===i.currentTarget&&n(i)}else M.event.simulate(e,t.target,M.event.fix(t))}M.event.special[t]={setup:function(){var i;if(Ft(this,t,!0),!b.documentMode)return!1;(i=at.get(this,e))||this.addEventListener(e,n),at.set(this,e,(i||0)+1)},trigger:function(){return Ft(this,t),!0},teardown:function(){var t;if(!b.documentMode)return!1;(t=at.get(this,e)-1)?at.set(this,e,t):(this.removeEventListener(e,n),at.remove(this,e))},_default:function(e){return at.get(e.target,t)},delegateType:e},M.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,s=at.get(r,e);s||(b.documentMode?this.addEventListener(e,n):i.addEventListener(t,n,!0)),at.set(r,e,(s||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,s=at.get(r,e)-1;s?at.set(r,e,s):(b.documentMode?this.removeEventListener(e,n):i.removeEventListener(t,n,!0),at.remove(r,e))}}})),M.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){M.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||M.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}})),M.fn.extend({on:function(t,e,n,i){return zt(this,t,e,n,i)},one:function(t,e,n,i){return zt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,M(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Et),this.each((function(){M.event.remove(this,t,n,e)}))}});var Pt=/<script|<style|<link/i,Rt=/checked\s*(?:[^=]|=\s*.checked.)/i,Yt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ut(t,e){return S(t,"table")&&S(11!==e.nodeType?e:e.firstChild,"tr")&&M(t).children("tbody")[0]||t}function Bt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Wt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Ht(t,e){var n,i,r,s,o,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(r in at.remove(e,"handle events"),a)for(n=0,i=a[r].length;n<i;n++)M.event.add(e,r,a[r][n]);lt.hasData(t)&&(s=lt.access(t),o=M.extend({},s),lt.set(e,o))}}function Vt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Mt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Zt(t,e,n,i){e=l(e);var r,s,o,a,c,u,d=0,h=t.length,p=h-1,f=e[0],g=v(f);if(g||h>1&&"string"==typeof f&&!m.checkClone&&Rt.test(f))return t.each((function(r){var s=t.eq(r);g&&(e[0]=f.call(this,r,s.html())),Zt(s,e,n,i)}));if(h&&(s=(r=Nt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=s),s||i)){for(a=(o=M.map(Lt(r,"script"),Bt)).length;d<h;d++)c=r,d!==p&&(c=M.clone(c,!0,!0),a&&M.merge(o,Lt(c,"script"))),n.call(t[d],c,d);if(a)for(u=o[o.length-1].ownerDocument,M.map(o,Wt),d=0;d<a;d++)c=o[d],St.test(c.type||"")&&!at.access(c,"globalEval")&&M.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?M._evalUrl&&!c.noModule&&M._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace(Yt,""),c,u))}return t}function Gt(t,e,n){for(var i,r=e?M.filter(e,t):t,s=0;null!=(i=r[s]);s++)n||1!==i.nodeType||M.cleanData(Lt(i)),i.parentNode&&(n&&mt(i)&&Dt(Lt(i,"script")),i.parentNode.removeChild(i));return t}M.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,s,o,a=t.cloneNode(!0),l=mt(t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||M.isXMLDoc(t)))for(o=Lt(a),i=0,r=(s=Lt(t)).length;i<r;i++)Vt(s[i],o[i]);if(e)if(n)for(s=s||Lt(t),o=o||Lt(a),i=0,r=s.length;i<r;i++)Ht(s[i],o[i]);else Ht(t,a);return(o=Lt(a,"script")).length>0&&Dt(o,!l&&Lt(t,"script")),a},cleanData:function(t){for(var e,n,i,r=M.event.special,s=0;void 0!==(n=t[s]);s++)if(st(n)){if(e=n[at.expando]){if(e.events)for(i in e.events)r[i]?M.event.remove(n,i):M.removeEvent(n,i,e.handle);n[at.expando]=void 0}n[lt.expando]&&(n[lt.expando]=void 0)}}}),M.fn.extend({detach:function(t){return Gt(this,t,!0)},remove:function(t){return Gt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?M.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Zt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ut(this,t).appendChild(t)}))},prepend:function(){return Zt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ut(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Zt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Zt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(M.cleanData(Lt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return M.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Pt.test(t)&&!It[(kt.exec(t)||["",""])[1].toLowerCase()]){t=M.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(M.cleanData(Lt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Zt(this,arguments,(function(e){var n=this.parentNode;M.inArray(this,t)<0&&(M.cleanData(Lt(this)),n&&n.replaceChild(e,this))}),t)}}),M.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){M.fn[t]=function(t){for(var n,i=[],r=M(t),s=r.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),M(r[o])[e](n),c.apply(i,n.get());return this.pushStack(i)}}));var Qt=new RegExp("^("+ht+")(?!px)[a-z%]+$","i"),Jt=/^--/,Xt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},qt=function(t,e,n){var i,r,s={};for(r in e)s[r]=t.style[r],t.style[r]=e[r];for(r in i=n.call(t),e)t.style[r]=s[r];return i},$t=new RegExp(ft.join("|"),"i");function Kt(t,e,n){var i,r,s,o,a=Jt.test(e),l=t.style;return(n=n||Xt(t))&&(o=n.getPropertyValue(e)||n[e],a&&o&&(o=o.replace(N,"$1")||void 0),""!==o||mt(t)||(o=M.style(t,e)),!m.pixelBoxStyles()&&Qt.test(o)&&$t.test(e)&&(i=l.width,r=l.minWidth,s=l.maxWidth,l.minWidth=l.maxWidth=l.width=o,o=n.width,l.width=i,l.minWidth=r,l.maxWidth=s)),void 0!==o?o+"":o}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",gt.appendChild(c).appendChild(u);var t=i.getComputedStyle(u);n="1%"!==t.top,l=12===e(t.marginLeft),u.style.right="60%",o=36===e(t.right),r=36===e(t.width),u.style.position="absolute",s=12===e(u.offsetWidth/3),gt.removeChild(c),u=null}}function e(t){return Math.round(parseFloat(t))}var n,r,s,o,a,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,M.extend(m,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),o},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),s},reliableTrDimensions:function(){var t,e,n,r;return null==a&&(t=b.createElement("table"),e=b.createElement("tr"),n=b.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",gt.appendChild(t).appendChild(e).appendChild(n),r=i.getComputedStyle(e),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight,gt.removeChild(t)),a}}))}();var ee=["Webkit","Moz","ms"],ne=b.createElement("div").style,ie={};function re(t){return M.cssProps[t]||ie[t]||(t in ne?t:ie[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ee.length;n--;)if((t=ee[n]+e)in ne)return t}(t)||t)}var se=/^(none|table(?!-c[ea]).+)/,oe={position:"absolute",visibility:"hidden",display:"block"},ae={letterSpacing:"0",fontWeight:"400"};function le(t,e,n){var i=pt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function ce(t,e,n,i,r,s){var o="width"===e?1:0,a=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(c+=M.css(t,n+ft[o],!0,r)),i?("content"===n&&(l-=M.css(t,"padding"+ft[o],!0,r)),"margin"!==n&&(l-=M.css(t,"border"+ft[o]+"Width",!0,r))):(l+=M.css(t,"padding"+ft[o],!0,r),"padding"!==n?l+=M.css(t,"border"+ft[o]+"Width",!0,r):a+=M.css(t,"border"+ft[o]+"Width",!0,r));return!i&&s>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-l-a-.5))||0),l+c}function ue(t,e,n){var i=Xt(t),r=(!m.boxSizingReliable()||n)&&"border-box"===M.css(t,"boxSizing",!1,i),s=r,o=Kt(t,e,i),a="offset"+e[0].toUpperCase()+e.slice(1);if(Qt.test(o)){if(!n)return o;o="auto"}return(!m.boxSizingReliable()&&r||!m.reliableTrDimensions()&&S(t,"tr")||"auto"===o||!parseFloat(o)&&"inline"===M.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===M.css(t,"boxSizing",!1,i),(s=a in t)&&(o=t[a])),(o=parseFloat(o)||0)+ce(t,e,n||(r?"border":"content"),s,i,o)+"px"}function de(t,e,n,i,r){return new de.prototype.init(t,e,n,i,r)}M.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Kt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,s,o,a=rt(e),l=Jt.test(e),c=t.style;if(l||(e=re(a)),o=M.cssHooks[e]||M.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(r=o.get(t,!1,i))?r:c[e];"string"==(s=typeof n)&&(r=pt.exec(n))&&r[1]&&(n=bt(t,e,r),s="number"),null!=n&&n==n&&("number"!==s||l||(n+=r&&r[3]||(M.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),o&&"set"in o&&void 0===(n=o.set(t,n,i))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,i){var r,s,o,a=rt(e);return Jt.test(e)||(e=re(a)),(o=M.cssHooks[e]||M.cssHooks[a])&&"get"in o&&(r=o.get(t,!0,n)),void 0===r&&(r=Kt(t,e,i)),"normal"===r&&e in ae&&(r=ae[e]),""===n||n?(s=parseFloat(r),!0===n||isFinite(s)?s||0:r):r}}),M.each(["height","width"],(function(t,e){M.cssHooks[e]={get:function(t,n,i){if(n)return!se.test(M.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ue(t,e,i):qt(t,oe,(function(){return ue(t,e,i)}))},set:function(t,n,i){var r,s=Xt(t),o=!m.scrollboxSize()&&"absolute"===s.position,a=(o||i)&&"border-box"===M.css(t,"boxSizing",!1,s),l=i?ce(t,e,i,a,s):0;return a&&o&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(s[e])-ce(t,e,"border",!1,s)-.5)),l&&(r=pt.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=M.css(t,e)),le(0,n,l)}}})),M.cssHooks.marginLeft=te(m.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Kt(t,"marginLeft"))||t.getBoundingClientRect().left-qt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),M.each({margin:"",padding:"",border:"Width"},(function(t,e){M.cssHooks[t+e]={expand:function(n){for(var i=0,r={},s="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+ft[i]+e]=s[i]||s[i-2]||s[0];return r}},"margin"!==t&&(M.cssHooks[t+e].set=le)})),M.fn.extend({css:function(t,e){return tt(this,(function(t,e,n){var i,r,s={},o=0;if(Array.isArray(e)){for(i=Xt(t),r=e.length;o<r;o++)s[e[o]]=M.css(t,e[o],!1,i);return s}return void 0!==n?M.style(t,e,n):M.css(t,e)}),t,e,arguments.length>1)}}),M.Tween=de,de.prototype={constructor:de,init:function(t,e,n,i,r,s){this.elem=t,this.prop=n,this.easing=r||M.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=s||(M.cssNumber[n]?"":"px")},cur:function(){var t=de.propHooks[this.prop];return t&&t.get?t.get(this):de.propHooks._default.get(this)},run:function(t){var e,n=de.propHooks[this.prop];return this.options.duration?this.pos=e=M.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):de.propHooks._default.set(this),this}},de.prototype.init.prototype=de.prototype,de.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=M.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){M.fx.step[t.prop]?M.fx.step[t.prop](t):1!==t.elem.nodeType||!M.cssHooks[t.prop]&&null==t.elem.style[re(t.prop)]?t.elem[t.prop]=t.now:M.style(t.elem,t.prop,t.now+t.unit)}}},de.propHooks.scrollTop=de.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},M.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},M.fx=de.prototype.init,M.fx.step={};var he,pe,fe=/^(?:toggle|show|hide)$/,ge=/queueHooks$/;function me(){pe&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(me):i.setTimeout(me,M.fx.interval),M.fx.tick())}function ve(){return i.setTimeout((function(){he=void 0})),he=Date.now()}function ye(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=ft[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function be(t,e,n){for(var i,r=(xe.tweeners[e]||[]).concat(xe.tweeners["*"]),s=0,o=r.length;s<o;s++)if(i=r[s].call(n,e,t))return i}function xe(t,e,n){var i,r,s=0,o=xe.prefilters.length,a=M.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var e=he||ve(),n=Math.max(0,c.startTime+c.duration-e),i=1-(n/c.duration||0),s=0,o=c.tweens.length;s<o;s++)c.tweens[s].run(i);return a.notifyWith(t,[c,i,n]),i<1&&o?n:(o||a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:M.extend({},e),opts:M.extend(!0,{specialEasing:{},easing:M.easing._default},n),originalProperties:e,originalOptions:n,startTime:he||ve(),duration:n.duration,tweens:[],createTween:function(e,n){var i=M.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),u=c.props;for(function(t,e){var n,i,r,s,o;for(n in t)if(r=e[i=rt(n)],s=t[n],Array.isArray(s)&&(r=s[1],s=t[n]=s[0]),n!==i&&(t[i]=s,delete t[n]),(o=M.cssHooks[i])&&"expand"in o)for(n in s=o.expand(s),delete t[i],s)n in t||(t[n]=s[n],e[n]=r);else e[i]=r}(u,c.opts.specialEasing);s<o;s++)if(i=xe.prefilters[s].call(c,t,u,c.opts))return v(i.stop)&&(M._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return M.map(u,be,c),v(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),M.fx.timer(M.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}M.Animation=M.extend(xe,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return bt(n.elem,t,pt.exec(e),n),n}]},tweener:function(t,e){v(t)?(e=t,t=["*"]):t=t.match(G);for(var n,i=0,r=t.length;i<r;i++)n=t[i],xe.tweeners[n]=xe.tweeners[n]||[],xe.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,s,o,a,l,c,u,d="width"in e||"height"in e,h=this,p={},f=t.style,g=t.nodeType&&yt(t),m=at.get(t,"fxshow");for(i in n.queue||(null==(o=M._queueHooks(t,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,h.always((function(){h.always((function(){o.unqueued--,M.queue(t,"fx").length||o.empty.fire()}))}))),e)if(r=e[i],fe.test(r)){if(delete e[i],s=s||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;g=!0}p[i]=m&&m[i]||M.style(t,i)}if((l=!M.isEmptyObject(e))||!M.isEmptyObject(p))for(i in d&&1===t.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=m&&m.display)&&(c=at.get(t,"display")),"none"===(u=M.css(t,"display"))&&(c?u=c:(At([t],!0),c=t.style.display||c,u=M.css(t,"display"),At([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===M.css(t,"float")&&(l||(h.done((function(){f.display=c})),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=at.access(t,"fxshow",{display:c}),s&&(m.hidden=!g),g&&At([t],!0),h.done((function(){for(i in g||At([t]),at.remove(t,"fxshow"),p)M.style(t,i,p[i])}))),l=be(g?m[i]:0,i,h),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?xe.prefilters.unshift(t):xe.prefilters.push(t)}}),M.speed=function(t,e,n){var i=t&&"object"==typeof t?M.extend({},t):{complete:n||!n&&e||v(t)&&t,duration:t,easing:n&&e||e&&!v(e)&&e};return M.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in M.fx.speeds?i.duration=M.fx.speeds[i.duration]:i.duration=M.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&M.dequeue(this,i.queue)},i},M.fn.extend({fadeTo:function(t,e,n,i){return this.filter(yt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=M.isEmptyObject(t),s=M.speed(e,n,i),o=function(){var e=xe(this,M.extend({},t),s);(r||at.get(this,"finish"))&&e.stop(!0)};return o.finish=o,r||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",s=M.timers,o=at.get(this);if(r)o[r]&&o[r].stop&&i(o[r]);else for(r in o)o[r]&&o[r].stop&&ge.test(r)&&i(o[r]);for(r=s.length;r--;)s[r].elem!==this||null!=t&&s[r].queue!==t||(s[r].anim.stop(n),e=!1,s.splice(r,1));!e&&n||M.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=at.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],s=M.timers,o=i?i.length:0;for(n.finish=!0,M.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;e<o;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),M.each(["toggle","show","hide"],(function(t,e){var n=M.fn[e];M.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ye(e,!0),t,i,r)}})),M.each({slideDown:ye("show"),slideUp:ye("hide"),slideToggle:ye("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){M.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),M.timers=[],M.fx.tick=function(){var t,e=0,n=M.timers;for(he=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||M.fx.stop(),he=void 0},M.fx.timer=function(t){M.timers.push(t),M.fx.start()},M.fx.interval=13,M.fx.start=function(){pe||(pe=!0,me())},M.fx.stop=function(){pe=null},M.fx.speeds={slow:600,fast:200,_default:400},M.fn.delay=function(t,e){return t=M.fx&&M.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var r=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(r)}}))},function(){var t=b.createElement("input"),e=b.createElement("select").appendChild(b.createElement("option"));t.type="checkbox",m.checkOn=""!==t.value,m.optSelected=e.selected,(t=b.createElement("input")).value="t",t.type="radio",m.radioValue="t"===t.value}();var we,Ae=M.expr.attrHandle;M.fn.extend({attr:function(t,e){return tt(this,M.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){M.removeAttr(this,t)}))}}),M.extend({attr:function(t,e,n){var i,r,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?M.prop(t,e,n):(1===s&&M.isXMLDoc(t)||(r=M.attrHooks[e.toLowerCase()]||(M.expr.match.bool.test(e)?we:void 0)),void 0!==n?null===n?void M.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=M.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&S(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(G);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),we={set:function(t,e,n){return!1===e?M.removeAttr(t,n):t.setAttribute(n,n),n}},M.each(M.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=Ae[e]||M.find.attr;Ae[e]=function(t,e,i){var r,s,o=e.toLowerCase();return i||(s=Ae[o],Ae[o]=r,r=null!=n(t,e,i)?o:null,Ae[o]=s),r}}));var _e=/^(?:input|select|textarea|button)$/i,Ce=/^(?:a|area)$/i;function Me(t){return(t.match(G)||[]).join(" ")}function ke(t){return t.getAttribute&&t.getAttribute("class")||""}function Se(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(G)||[]}M.fn.extend({prop:function(t,e){return tt(this,M.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[M.propFix[t]||t]}))}}),M.extend({prop:function(t,e,n){var i,r,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&M.isXMLDoc(t)||(e=M.propFix[e]||e,r=M.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=M.find.attr(t,"tabindex");return e?parseInt(e,10):_e.test(t.nodeName)||Ce.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(M.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),M.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){M.propFix[this.toLowerCase()]=this})),M.fn.extend({addClass:function(t){var e,n,i,r,s,o;return v(t)?this.each((function(e){M(this).addClass(t.call(this,e,ke(this)))})):(e=Se(t)).length?this.each((function(){if(i=ke(this),n=1===this.nodeType&&" "+Me(i)+" "){for(s=0;s<e.length;s++)r=e[s],n.indexOf(" "+r+" ")<0&&(n+=r+" ");o=Me(n),i!==o&&this.setAttribute("class",o)}})):this},removeClass:function(t){var e,n,i,r,s,o;return v(t)?this.each((function(e){M(this).removeClass(t.call(this,e,ke(this)))})):arguments.length?(e=Se(t)).length?this.each((function(){if(i=ke(this),n=1===this.nodeType&&" "+Me(i)+" "){for(s=0;s<e.length;s++)for(r=e[s];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");o=Me(n),i!==o&&this.setAttribute("class",o)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,i,r,s,o=typeof t,a="string"===o||Array.isArray(t);return v(t)?this.each((function(n){M(this).toggleClass(t.call(this,n,ke(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=Se(t),this.each((function(){if(a)for(s=M(this),r=0;r<n.length;r++)i=n[r],s.hasClass(i)?s.removeClass(i):s.addClass(i);else void 0!==t&&"boolean"!==o||((i=ke(this))&&at.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":at.get(this,"__className__")||""))})))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+Me(ke(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ie=/\r/g;M.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=v(t),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,M(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=M.map(r,(function(t){return null==t?"":t+""}))),(e=M.valHooks[this.type]||M.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=M.valHooks[r.type]||M.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Ie,""):null==n?"":n:void 0}}),M.extend({valHooks:{option:{get:function(t){var e=M.find.attr(t,"value");return null!=e?e:Me(M.text(t))}},select:{get:function(t){var e,n,i,r=t.options,s=t.selectedIndex,o="select-one"===t.type,a=o?null:[],l=o?s+1:r.length;for(i=s<0?l:o?s:0;i<l;i++)if(((n=r[i]).selected||i===s)&&!n.disabled&&(!n.parentNode.disabled||!S(n.parentNode,"optgroup"))){if(e=M(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,i,r=t.options,s=M.makeArray(e),o=r.length;o--;)((i=r[o]).selected=M.inArray(M.valHooks.option.get(i),s)>-1)&&(n=!0);return n||(t.selectedIndex=-1),s}}}}),M.each(["radio","checkbox"],(function(){M.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=M.inArray(M(t).val(),e)>-1}},m.checkOn||(M.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Le=i.location,De={guid:Date.now()},Te=/\?/;M.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||M.error("Invalid XML: "+(n?M.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Ne=/^(?:focusinfocus|focusoutblur)$/,Oe=function(t){t.stopPropagation()};M.extend(M.event,{trigger:function(t,e,n,r){var s,o,a,l,c,u,d,h,f=[n||b],g=p.call(t,"type")?t.type:t,m=p.call(t,"namespace")?t.namespace.split("."):[];if(o=h=a=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!Ne.test(g+M.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(t=t[M.expando]?t:new M.Event(g,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:M.makeArray(e,[t]),d=M.event.special[g]||{},r||!d.trigger||!1!==d.trigger.apply(n,e))){if(!r&&!d.noBubble&&!y(n)){for(l=d.delegateType||g,Ne.test(l+g)||(o=o.parentNode);o;o=o.parentNode)f.push(o),a=o;a===(n.ownerDocument||b)&&f.push(a.defaultView||a.parentWindow||i)}for(s=0;(o=f[s++])&&!t.isPropagationStopped();)h=o,t.type=s>1?l:d.bindType||g,(u=(at.get(o,"events")||Object.create(null))[t.type]&&at.get(o,"handle"))&&u.apply(o,e),(u=c&&o[c])&&u.apply&&st(o)&&(t.result=u.apply(o,e),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),e)||!st(n)||c&&v(n[g])&&!y(n)&&((a=n[c])&&(n[c]=null),M.event.triggered=g,t.isPropagationStopped()&&h.addEventListener(g,Oe),n[g](),t.isPropagationStopped()&&h.removeEventListener(g,Oe),M.event.triggered=void 0,a&&(n[c]=a)),t.result}},simulate:function(t,e,n){var i=M.extend(new M.Event,n,{type:t,isSimulated:!0});M.event.trigger(i,null,e)}}),M.fn.extend({trigger:function(t,e){return this.each((function(){M.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return M.event.trigger(t,e,n,!0)}});var je=/\[\]$/,Ee=/\r?\n/g,ze=/^(?:submit|button|image|reset|file)$/i,Fe=/^(?:input|select|textarea|keygen)/i;function Pe(t,e,n,i){var r;if(Array.isArray(e))M.each(e,(function(e,r){n||je.test(t)?i(t,r):Pe(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)}));else if(n||"object"!==A(e))i(t,e);else for(r in e)Pe(t+"["+r+"]",e[r],n,i)}M.param=function(t,e){var n,i=[],r=function(t,e){var n=v(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!M.isPlainObject(t))M.each(t,(function(){r(this.name,this.value)}));else for(n in t)Pe(n,t[n],e,r);return i.join("&")},M.fn.extend({serialize:function(){return M.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=M.prop(this,"elements");return t?M.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!M(this).is(":disabled")&&Fe.test(this.nodeName)&&!ze.test(t)&&(this.checked||!Mt.test(t))})).map((function(t,e){var n=M(this).val();return null==n?null:Array.isArray(n)?M.map(n,(function(t){return{name:e.name,value:t.replace(Ee,"\r\n")}})):{name:e.name,value:n.replace(Ee,"\r\n")}})).get()}});var Re=/%20/g,Ye=/#.*$/,Ue=/([?&])_=[^&]*/,Be=/^(.*?):[ \t]*([^\r\n]*)$/gm,We=/^(?:GET|HEAD)$/,He=/^\/\//,Ve={},Ze={},Ge="*/".concat("*"),Qe=b.createElement("a");function Je(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,s=e.toLowerCase().match(G)||[];if(v(n))for(;i=s[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Xe(t,e,n,i){var r={},s=t===Ze;function o(a){var l;return r[a]=!0,M.each(t[a]||[],(function(t,a){var c=a(e,n,i);return"string"!=typeof c||s||r[c]?s?!(l=c):void 0:(e.dataTypes.unshift(c),o(c),!1)})),l}return o(e.dataTypes[0])||!r["*"]&&o("*")}function qe(t,e){var n,i,r=M.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&M.extend(!0,t,i),t}Qe.href=Le.href,M.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Le.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Le.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ge,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":M.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?qe(qe(t,M.ajaxSettings),e):qe(M.ajaxSettings,t)},ajaxPrefilter:Je(Ve),ajaxTransport:Je(Ze),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,s,o,a,l,c,u,d,h,p=M.ajaxSetup({},e),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?M(f):M.event,m=M.Deferred(),v=M.Callbacks("once memory"),y=p.statusCode||{},x={},w={},A="canceled",_={readyState:0,getResponseHeader:function(t){var e;if(c){if(!o)for(o={};e=Be.exec(s);)o[e[1].toLowerCase()+" "]=(o[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=o[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(t,e){return null==c&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,x[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)_.always(t[_.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||A;return n&&n.abort(e),C(0,e),this}};if(m.promise(_),p.url=((t||p.url||Le.href)+"").replace(He,Le.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(G)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Qe.protocol+"//"+Qe.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=M.param(p.data,p.traditional)),Xe(Ve,p,e,_),c)return _;for(d in(u=M.event&&p.global)&&0==M.active++&&M.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!We.test(p.type),r=p.url.replace(Ye,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Re,"+")):(h=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(Te.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Ue,"$1"),h=(Te.test(r)?"&":"?")+"_="+De.guid+++h),p.url=r+h),p.ifModified&&(M.lastModified[r]&&_.setRequestHeader("If-Modified-Since",M.lastModified[r]),M.etag[r]&&_.setRequestHeader("If-None-Match",M.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&_.setRequestHeader("Content-Type",p.contentType),_.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ge+"; q=0.01":""):p.accepts["*"]),p.headers)_.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,_,p)||c))return _.abort();if(A="abort",v.add(p.complete),_.done(p.success),_.fail(p.error),n=Xe(Ze,p,e,_)){if(_.readyState=1,u&&g.trigger("ajaxSend",[_,p]),c)return _;p.async&&p.timeout>0&&(a=i.setTimeout((function(){_.abort("timeout")}),p.timeout));try{c=!1,n.send(x,C)}catch(t){if(c)throw t;C(-1,t)}}else C(-1,"No Transport");function C(t,e,o,l){var d,h,b,x,w,A=e;c||(c=!0,a&&i.clearTimeout(a),n=void 0,s=l||"",_.readyState=t>0?4:0,d=t>=200&&t<300||304===t,o&&(x=function(t,e,n){for(var i,r,s,o,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)s=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){s=r;break}o||(o=r)}s=s||o}if(s)return s!==l[0]&&l.unshift(s),n[s]}(p,_,o)),!d&&M.inArray("script",p.dataTypes)>-1&&M.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),x=function(t,e,n,i){var r,s,o,a,l,c={},u=t.dataTypes.slice();if(u[1])for(o in t.converters)c[o.toLowerCase()]=t.converters[o];for(s=u.shift();s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=s,s=u.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(o=c[l+" "+s]||c["* "+s]))for(r in c)if((a=r.split(" "))[1]===s&&(o=c[l+" "+a[0]]||c["* "+a[0]])){!0===o?o=c[r]:!0!==c[r]&&(s=a[0],u.unshift(a[1]));break}if(!0!==o)if(o&&t.throws)e=o(e);else try{e=o(e)}catch(t){return{state:"parsererror",error:o?t:"No conversion from "+l+" to "+s}}}return{state:"success",data:e}}(p,x,_,d),d?(p.ifModified&&((w=_.getResponseHeader("Last-Modified"))&&(M.lastModified[r]=w),(w=_.getResponseHeader("etag"))&&(M.etag[r]=w)),204===t||"HEAD"===p.type?A="nocontent":304===t?A="notmodified":(A=x.state,h=x.data,d=!(b=x.error))):(b=A,!t&&A||(A="error",t<0&&(t=0))),_.status=t,_.statusText=(e||A)+"",d?m.resolveWith(f,[h,A,_]):m.rejectWith(f,[_,A,b]),_.statusCode(y),y=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[_,p,d?h:b]),v.fireWith(f,[_,A]),u&&(g.trigger("ajaxComplete",[_,p]),--M.active||M.event.trigger("ajaxStop")))}return _},getJSON:function(t,e,n){return M.get(t,e,n,"json")},getScript:function(t,e){return M.get(t,void 0,e,"script")}}),M.each(["get","post"],(function(t,e){M[e]=function(t,n,i,r){return v(n)&&(r=r||i,i=n,n=void 0),M.ajax(M.extend({url:t,type:e,dataType:r,data:n,success:i},M.isPlainObject(t)&&t))}})),M.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),M._evalUrl=function(t,e,n){return M.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){M.globalEval(t,e,n)}})},M.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=M(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return v(t)?this.each((function(e){M(this).wrapInner(t.call(this,e))})):this.each((function(){var e=M(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=v(t);return this.each((function(n){M(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){M(this).replaceWith(this.childNodes)})),this}}),M.expr.pseudos.hidden=function(t){return!M.expr.pseudos.visible(t)},M.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},M.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var $e={0:200,1223:204},Ke=M.ajaxSettings.xhr();m.cors=!!Ke&&"withCredentials"in Ke,m.ajax=Ke=!!Ke,M.ajaxTransport((function(t){var e,n;if(m.cors||Ke&&!t.crossDomain)return{send:function(r,s){var o,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];for(o in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(o,r[o]);e=function(t){return function(){e&&(e=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s($e[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),n=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout((function(){e&&n()}))},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),M.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),M.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return M.globalEval(t),t}}}),M.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),M.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=M("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),b.head.appendChild(e[0])},abort:function(){n&&n()}}}));var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;M.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||M.expando+"_"+De.guid++;return this[t]=!0,t}}),M.ajaxPrefilter("json jsonp",(function(t,e,n){var r,s,o,a=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(nn,"$1"+r):!1!==t.jsonp&&(t.url+=(Te.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||M.error(r+" was not called"),o[0]},t.dataTypes[0]="json",s=i[r],i[r]=function(){o=arguments},n.always((function(){void 0===s?M(i).removeProp(r):i[r]=s,t[r]&&(t.jsonpCallback=e.jsonpCallback,en.push(r)),o&&v(s)&&s(o[0]),o=s=void 0})),"script"})),m.createHTMLDocument=((tn=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===tn.childNodes.length),M.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(m.createHTMLDocument?((i=(e=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,e.head.appendChild(i)):e=b),s=!n&&[],(r=Y.exec(t))?[e.createElement(r[1])]:(r=Nt([t],e,s),s&&s.length&&M(s).remove(),M.merge([],r.childNodes)));var i,r,s},M.fn.load=function(t,e,n){var i,r,s,o=this,a=t.indexOf(" ");return a>-1&&(i=Me(t.slice(a)),t=t.slice(0,a)),v(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),o.length>0&&M.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){s=arguments,o.html(i?M("<div>").append(M.parseHTML(t)).find(i):t)})).always(n&&function(t,e){o.each((function(){n.apply(this,s||[t.responseText,e,t])}))}),this},M.expr.pseudos.animated=function(t){return M.grep(M.timers,(function(e){return t===e.elem})).length},M.offset={setOffset:function(t,e,n){var i,r,s,o,a,l,c=M.css(t,"position"),u=M(t),d={};"static"===c&&(t.style.position="relative"),a=u.offset(),s=M.css(t,"top"),l=M.css(t,"left"),("absolute"===c||"fixed"===c)&&(s+l).indexOf("auto")>-1?(o=(i=u.position()).top,r=i.left):(o=parseFloat(s)||0,r=parseFloat(l)||0),v(e)&&(e=e.call(t,n,M.extend({},a))),null!=e.top&&(d.top=e.top-a.top+o),null!=e.left&&(d.left=e.left-a.left+r),"using"in e?e.using.call(t,d):u.css(d)}},M.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){M.offset.setOffset(this,t,e)}));var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===M.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===M.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=M(t).offset()).top+=M.css(t,"borderTopWidth",!0),r.left+=M.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-M.css(i,"marginTop",!0),left:e.left-r.left-M.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===M.css(t,"position");)t=t.offsetParent;return t||gt}))}}),M.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;M.fn[t]=function(i){return tt(this,(function(t,i,r){var s;if(y(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===r)return s?s[e]:t[i];s?s.scrollTo(n?s.pageXOffset:r,n?r:s.pageYOffset):t[i]=r}),t,i,arguments.length)}})),M.each(["top","left"],(function(t,e){M.cssHooks[e]=te(m.pixelPosition,(function(t,n){if(n)return n=Kt(t,e),Qt.test(n)?M(t).position()[e]+"px":n}))})),M.each({Height:"height",Width:"width"},(function(t,e){M.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){M.fn[i]=function(r,s){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===s?"margin":"border");return tt(this,(function(e,n,r){var s;return y(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===r?M.css(e,n,a):M.style(e,n,r,a)}),e,o?r:void 0,o)}}))})),M.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){M.fn[e]=function(t){return this.on(e,t)}})),M.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),M.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){M.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;M.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),v(t))return i=a.call(arguments,2),r=function(){return t.apply(e||this,i.concat(a.call(arguments)))},r.guid=t.guid=t.guid||M.guid++,r},M.holdReady=function(t){t?M.readyWait++:M.ready(!0)},M.isArray=Array.isArray,M.parseJSON=JSON.parse,M.nodeName=S,M.isFunction=v,M.isWindow=y,M.camelCase=rt,M.type=A,M.now=Date.now,M.isNumeric=function(t){var e=M.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},M.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return M}.apply(e,[]))||(t.exports=n);var sn=i.jQuery,on=i.$;return M.noConflict=function(t){return i.$===M&&(i.$=on),t&&i.jQuery===M&&(i.jQuery=sn),M},void 0===r&&(i.jQuery=i.$=M),M}))},461:(t,e,n)=>{t.exports=function t(e,n,i){function r(o,a){if(!n[o]){if(!e[o]){if(s)return s(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[o]={exports:{}};e[o][0].call(c.exports,(function(t){return r(e[o][1][t]||t)}),c,c.exports,t,e,n,i)}return n[o].exports}for(var s=void 0,o=0;o<i.length;o++)r(i[o]);return r}({1:[function(t,e,n){"use strict";var i=t("./utils"),r=t("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(t){for(var e,n,r,o,a,l,c,u=[],d=0,h=t.length,p=h,f="string"!==i.getTypeOf(t);d<t.length;)p=h-d,r=f?(e=t[d++],n=d<h?t[d++]:0,d<h?t[d++]:0):(e=t.charCodeAt(d++),n=d<h?t.charCodeAt(d++):0,d<h?t.charCodeAt(d++):0),o=e>>2,a=(3&e)<<4|n>>4,l=1<p?(15&n)<<2|r>>6:64,c=2<p?63&r:64,u.push(s.charAt(o)+s.charAt(a)+s.charAt(l)+s.charAt(c));return u.join("")},n.decode=function(t){var e,n,i,o,a,l,c=0,u=0,d="data:";if(t.substr(0,5)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,p=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===s.charAt(64)&&p--,t.charAt(t.length-2)===s.charAt(64)&&p--,p%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=r.uint8array?new Uint8Array(0|p):new Array(0|p);c<t.length;)e=s.indexOf(t.charAt(c++))<<2|(o=s.indexOf(t.charAt(c++)))>>4,n=(15&o)<<4|(a=s.indexOf(t.charAt(c++)))>>2,i=(3&a)<<6|(l=s.indexOf(t.charAt(c++))),h[u++]=e,64!==a&&(h[u++]=n),64!==l&&(h[u++]=i);return h}},{"./support":30,"./utils":32}],2:[function(t,e,n){"use strict";var i=t("./external"),r=t("./stream/DataWorker"),s=t("./stream/Crc32Probe"),o=t("./stream/DataLengthProbe");function a(t,e,n,i,r){this.compressedSize=t,this.uncompressedSize=e,this.crc32=n,this.compression=i,this.compressedContent=r}a.prototype={getContentWorker:function(){var t=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new r(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(t,e,n){return t.pipe(new s).pipe(new o("uncompressedSize")).pipe(e.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression",e)},e.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,n){"use strict";var i=t("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,n){"use strict";var i=t("./utils"),r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==i.getTypeOf(t)?function(t,e,n){var i=r,s=0+n;t^=-1;for(var o=0;o<s;o++)t=t>>>8^i[255&(t^e[o])];return~t}(0|e,t,t.length):function(t,e,n){var i=r,s=0+n;t^=-1;for(var o=0;o<s;o++)t=t>>>8^i[255&(t^e.charCodeAt(o))];return~t}(0|e,t,t.length):0}},{"./utils":32}],5:[function(t,e,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(t,e,n){"use strict";var i;i="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:i}},{lie:37}],7:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=t("pako"),s=t("./utils"),o=t("./stream/GenericWorker"),a=i?"uint8array":"array";function l(t,e){o.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}n.magic="\b\0",s.inherits(l,o),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(a,t.data),!1)},l.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},n.compressWorker=function(t){return new l("Deflate",t)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,n){"use strict";function i(t,e){var n,i="";for(n=0;n<e;n++)i+=String.fromCharCode(255&t),t>>>=8;return i}function r(t,e,n,r,o,u){var d,h,p=t.file,f=t.compression,g=u!==a.utf8encode,m=s.transformTo("string",u(p.name)),v=s.transformTo("string",a.utf8encode(p.name)),y=p.comment,b=s.transformTo("string",u(y)),x=s.transformTo("string",a.utf8encode(y)),w=v.length!==p.name.length,A=x.length!==y.length,_="",C="",M="",k=p.dir,S=p.date,I={crc32:0,compressedSize:0,uncompressedSize:0};e&&!n||(I.crc32=t.crc32,I.compressedSize=t.compressedSize,I.uncompressedSize=t.uncompressedSize);var L=0;e&&(L|=8),g||!w&&!A||(L|=2048);var D=0,T=0;k&&(D|=16),"UNIX"===o?(T=798,D|=function(t,e){var n=t;return t||(n=e?16893:33204),(65535&n)<<16}(p.unixPermissions,k)):(T=20,D|=function(t){return 63&(t||0)}(p.dosPermissions)),d=S.getUTCHours(),d<<=6,d|=S.getUTCMinutes(),d<<=5,d|=S.getUTCSeconds()/2,h=S.getUTCFullYear()-1980,h<<=4,h|=S.getUTCMonth()+1,h<<=5,h|=S.getUTCDate(),w&&(C=i(1,1)+i(l(m),4)+v,_+="up"+i(C.length,2)+C),A&&(M=i(1,1)+i(l(b),4)+x,_+="uc"+i(M.length,2)+M);var N="";return N+="\n\0",N+=i(L,2),N+=f.magic,N+=i(d,2),N+=i(h,2),N+=i(I.crc32,4),N+=i(I.compressedSize,4),N+=i(I.uncompressedSize,4),N+=i(m.length,2),N+=i(_.length,2),{fileRecord:c.LOCAL_FILE_HEADER+N+m+_,dirRecord:c.CENTRAL_FILE_HEADER+i(T,2)+N+i(b.length,2)+"\0\0\0\0"+i(D,4)+i(r,4)+m+_+b}}var s=t("../utils"),o=t("../stream/GenericWorker"),a=t("../utf8"),l=t("../crc32"),c=t("../signature");function u(t,e,n,i){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(u,o),u.prototype.push=function(t){var e=t.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,o.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:n?(e+100*(n-i-1))/n:100}}))},u.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var n=r(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,n=r(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),e)this.push({data:function(t){return c.DATA_DESCRIPTOR+i(t.crc32,4)+i(t.compressedSize,4)+i(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var n=this.bytesWritten-t,r=function(t,e,n,r,o){var a=s.transformTo("string",o(r));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(t,2)+i(t,2)+i(e,4)+i(n,4)+i(a.length,2)+a}(this.dirRecords.length,n,t,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(t){var e=this._sources;if(!o.prototype.error.call(this,t))return!1;for(var n=0;n<e.length;n++)try{e[n].error(t)}catch(t){}return!0},u.prototype.lock=function(){o.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,n){"use strict";var i=t("../compressions"),r=t("./ZipFileWorker");n.generateWorker=function(t,e,n){var s=new r(e.streamFiles,n,e.platform,e.encodeFileName),o=0;try{t.forEach((function(t,n){o++;var r=function(t,e){var n=t||e,r=i[n];if(!r)throw new Error(n+" is not a valid compression method !");return r}(n.options.compression,e.compression),a=n.options.compressionOptions||e.compressionOptions||{},l=n.dir,c=n.date;n._compressWorker(r,a).withStreamInfo("file",{name:t,dir:l,date:c,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(s)})),s.entriesCount=o}catch(t){s.error(t)}return s}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,n){"use strict";function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new i;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(i.prototype=t("./object")).loadAsync=t("./load"),i.support=t("./support"),i.defaults=t("./defaults"),i.version="3.10.1",i.loadAsync=function(t,e){return(new i).loadAsync(t,e)},i.external=t("./external"),e.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,n){"use strict";var i=t("./utils"),r=t("./external"),s=t("./utf8"),o=t("./zipEntries"),a=t("./stream/Crc32Probe"),l=t("./nodejsUtils");function c(t){return new r.Promise((function(e,n){var i=t.decompressed.getContentWorker().pipe(new a);i.on("error",(function(t){n(t)})).on("end",(function(){i.streamInfo.crc32!==t.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}e.exports=function(t,e){var n=this;return e=i.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),l.isNode&&l.isStream(t)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var n=new o(e);return n.load(t),n})).then((function(t){var n=[r.Promise.resolve(t)],i=t.files;if(e.checkCRC32)for(var s=0;s<i.length;s++)n.push(c(i[s]));return r.Promise.all(n)})).then((function(t){for(var r=t.shift(),s=r.files,o=0;o<s.length;o++){var a=s[o],l=a.fileNameStr,c=i.resolve(a.fileNameStr);n.file(c,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:e.createFolders}),a.dir||(n.file(c).unsafeOriginalName=l)}return r.zipComment.length&&(n.comment=r.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,n){"use strict";var i=t("../utils"),r=t("../stream/GenericWorker");function s(t,e){r.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}i.inherits(s,r),s.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},s.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,n){"use strict";var i=t("readable-stream").Readable;function r(t,e,n){i.call(this,e),this._helper=t;var r=this;t.on("data",(function(t,e){r.push(t)||r._helper.pause(),n&&n(e)})).on("error",(function(t){r.emit("error",t)})).on("end",(function(){r.push(null)}))}t("../utils").inherits(r,i),r.prototype._read=function(){this._helper.resume()},e.exports=r},{"../utils":32,"readable-stream":16}],14:[function(t,e,n){"use strict";e.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(t,e){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(t,e);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new Buffer(t,e)},allocBuffer:function(t){if(Buffer.alloc)return Buffer.alloc(t);var e=new Buffer(t);return e.fill(0),e},isBuffer:function(t){return Buffer.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,n){"use strict";function i(t,e,n){var i,r=s.getTypeOf(e),a=s.extend(n||{},l);a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),"string"==typeof a.unixPermissions&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&16384&a.unixPermissions&&(a.dir=!0),a.dosPermissions&&16&a.dosPermissions&&(a.dir=!0),a.dir&&(t=g(t)),a.createFolders&&(i=f(t))&&m.call(this,i,!0);var d="string"===r&&!1===a.binary&&!1===a.base64;n&&void 0!==n.binary||(a.binary=!d),(e instanceof c&&0===e.uncompressedSize||a.dir||!e||0===e.length)&&(a.base64=!1,a.binary=!0,e="",a.compression="STORE",r="string");var v;v=e instanceof c||e instanceof o?e:h.isNode&&h.isStream(e)?new p(t,e):s.prepareContent(t,e,a.binary,a.optimizedBinaryString,a.base64);var y=new u(t,v,a);this.files[t]=y}var r=t("./utf8"),s=t("./utils"),o=t("./stream/GenericWorker"),a=t("./stream/StreamHelper"),l=t("./defaults"),c=t("./compressedObject"),u=t("./zipObject"),d=t("./generate"),h=t("./nodejsUtils"),p=t("./nodejs/NodejsStreamInputAdapter"),f=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},g=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},m=function(t,e){return e=void 0!==e?e:l.createFolders,t=g(t),this.files[t]||i.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function v(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,n,i;for(e in this.files)i=this.files[e],(n=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(n,i)},filter:function(t){var e=[];return this.forEach((function(n,i){t(n,i)&&e.push(i)})),e},file:function(t,e,n){if(1!==arguments.length)return t=this.root+t,i.call(this,t,e,n),this;if(v(t)){var r=t;return this.filter((function(t,e){return!e.dir&&r.test(t)}))}var s=this.files[this.root+t];return s&&!s.dir?s:null},folder:function(t){if(!t)return this;if(v(t))return this.filter((function(e,n){return n.dir&&t.test(e)}));var e=this.root+t,n=m.call(this,e),i=this.clone();return i.root=n.name,i},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var n=this.filter((function(e,n){return n.name.slice(0,t.length)===t})),i=0;i<n.length;i++)delete this.files[n[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,n={};try{if((n=s.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");s.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var i=n.comment||this.comment||"";e=d.generateWorker(this,n,i)}catch(t){(e=new o("error")).error(t)}return new a(e,n.type||"string",n.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,n){"use strict";e.exports=t("stream")},{stream:void 0}],17:[function(t,e,n){"use strict";var i=t("./DataReader");function r(t){i.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(r,i),r.prototype.byteAt=function(t){return this.data[this.zero+t]},r.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),r=t.charCodeAt(3),s=this.length-4;0<=s;--s)if(this.data[s]===e&&this.data[s+1]===n&&this.data[s+2]===i&&this.data[s+3]===r)return s-this.zero;return-1},r.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),r=t.charCodeAt(3),s=this.readData(4);return e===s[0]&&n===s[1]&&i===s[2]&&r===s[3]},r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],18:[function(t,e,n){"use strict";var i=t("../utils");function r(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,n=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(t){return i.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=r},{"../utils":32}],19:[function(t,e,n){"use strict";var i=t("./Uint8ArrayReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,n){"use strict";var i=t("./DataReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},r.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},r.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],21:[function(t,e,n){"use strict";var i=t("./ArrayReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,n){"use strict";var i=t("../utils"),r=t("../support"),s=t("./ArrayReader"),o=t("./StringReader"),a=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");e.exports=function(t){var e=i.getTypeOf(t);return i.checkSupport(e),"string"!==e||r.uint8array?"nodebuffer"===e?new a(t):r.uint8array?new l(i.transformTo("uint8array",t)):new s(i.transformTo("array",t)):new o(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,n){"use strict";var i=t("./GenericWorker"),r=t("../utils");function s(t){i.call(this,"ConvertWorker to "+t),this.destType=t}r.inherits(s,i),s.prototype.processChunk=function(t){this.push({data:r.transformTo(this.destType,t.data),meta:t.meta})},e.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,n){"use strict";var i=t("./GenericWorker"),r=t("../crc32");function s(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(s,i),s.prototype.processChunk=function(t){this.streamInfo.crc32=r(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./GenericWorker");function s(t){r.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}i.inherits(s,r),s.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}r.prototype.processChunk.call(this,t)},e.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./GenericWorker");function s(t){r.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=i.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}i.inherits(s,r),s.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,n){"use strict";function i(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=i},{}],29:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./ConvertWorker"),s=t("./GenericWorker"),o=t("../base64"),a=t("../support"),l=t("../external"),c=null;if(a.nodestream)try{c=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function u(t,e,n){var o=e;switch(e){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string"}try{this._internalType=o,this._outputType=e,this._mimeType=n,i.checkSupport(o),this._worker=t.pipe(new r(o)),t.lock()}catch(t){this._worker=new s("error"),this._worker.error(t)}}u.prototype={accumulate:function(t){return function(t,e){return new l.Promise((function(n,r){var s=[],a=t._internalType,l=t._outputType,c=t._mimeType;t.on("data",(function(t,n){s.push(t),e&&e(n)})).on("error",(function(t){s=[],r(t)})).on("end",(function(){try{var t=function(t,e,n){switch(t){case"blob":return i.newBlob(i.transformTo("arraybuffer",e),n);case"base64":return o.encode(e);default:return i.transformTo(t,e)}}(l,function(t,e){var n,i=0,r=null,s=0;for(n=0;n<e.length;n++)s+=e[n].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(r=new Uint8Array(s),n=0;n<e.length;n++)r.set(e[n],i),i+=e[n].length;return r;case"nodebuffer":return Buffer.concat(e);default:throw new Error("concat : unsupported type '"+t+"'")}}(a,s),c);n(t)}catch(t){r(t)}s=[]})).resume()}))}(this,t)},on:function(t,e){var n=this;return"data"===t?this._worker.on(t,(function(t){e.call(n,t.data,t.meta)})):this._worker.on(t,(function(){i.delay(e,arguments,n)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},t)}},e.exports=u},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,e,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var i=new ArrayBuffer(0);try{n.blob=0===new Blob([i],{type:"application/zip"}).size}catch(t){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(i),n.blob=0===r.getBlob("application/zip").size}catch(t){n.blob=!1}}}try{n.nodestream=!!t("readable-stream").Readable}catch(t){n.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,n){"use strict";for(var i=t("./utils"),r=t("./support"),s=t("./nodejsUtils"),o=t("./stream/GenericWorker"),a=new Array(256),l=0;l<256;l++)a[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){o.call(this,"utf-8 decode"),this.leftOver=null}function u(){o.call(this,"utf-8 encode")}a[254]=a[254]=1,n.utf8encode=function(t){return r.nodebuffer?s.newBufferFrom(t,"utf-8"):function(t){var e,n,i,s,o,a=t.length,l=0;for(s=0;s<a;s++)55296==(64512&(n=t.charCodeAt(s)))&&s+1<a&&56320==(64512&(i=t.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(i-56320),s++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=r.uint8array?new Uint8Array(l):new Array(l),s=o=0;o<l;s++)55296==(64512&(n=t.charCodeAt(s)))&&s+1<a&&56320==(64512&(i=t.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(i-56320),s++),n<128?e[o++]=n:(n<2048?e[o++]=192|n>>>6:(n<65536?e[o++]=224|n>>>12:(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63),e[o++]=128|n>>>6&63),e[o++]=128|63&n);return e}(t)},n.utf8decode=function(t){return r.nodebuffer?i.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,r,s,o=t.length,l=new Array(2*o);for(e=n=0;e<o;)if((r=t[e++])<128)l[n++]=r;else if(4<(s=a[r]))l[n++]=65533,e+=s-1;else{for(r&=2===s?31:3===s?15:7;1<s&&e<o;)r=r<<6|63&t[e++],s--;1<s?l[n++]=65533:r<65536?l[n++]=r:(r-=65536,l[n++]=55296|r>>10&1023,l[n++]=56320|1023&r)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),i.applyFromCharCode(l)}(t=i.transformTo(r.uint8array?"uint8array":"array",t))},i.inherits(c,o),c.prototype.processChunk=function(t){var e=i.transformTo(r.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var s=e;(e=new Uint8Array(s.length+this.leftOver.length)).set(this.leftOver,0),e.set(s,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var o=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+a[t[n]]>e?n:e}(e),l=e;o!==e.length&&(r.uint8array?(l=e.subarray(0,o),this.leftOver=e.subarray(o,e.length)):(l=e.slice(0,o),this.leftOver=e.slice(o,e.length))),this.push({data:n.utf8decode(l),meta:t.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=c,i.inherits(u,o),u.prototype.processChunk=function(t){this.push({data:n.utf8encode(t.data),meta:t.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,n){"use strict";var i=t("./support"),r=t("./base64"),s=t("./nodejsUtils"),o=t("./external");function a(t){return t}function l(t,e){for(var n=0;n<t.length;++n)e[n]=255&t.charCodeAt(n);return e}t("setimmediate"),n.newBlob=function(t,e){n.checkSupport("blob");try{return new Blob([t],{type:e})}catch(n){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(t),i.getBlob(e)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(t,e,n){var i=[],r=0,s=t.length;if(s<=n)return String.fromCharCode.apply(null,t);for(;r<s;)"array"===e||"nodebuffer"===e?i.push(String.fromCharCode.apply(null,t.slice(r,Math.min(r+n,s)))):i.push(String.fromCharCode.apply(null,t.subarray(r,Math.min(r+n,s)))),r+=n;return i.join("")},stringifyByChar:function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,s.allocBuffer(1)).length}catch(t){return!1}}()}};function u(t){var e=65536,i=n.getTypeOf(t),r=!0;if("uint8array"===i?r=c.applyCanBeUsed.uint8array:"nodebuffer"===i&&(r=c.applyCanBeUsed.nodebuffer),r)for(;1<e;)try{return c.stringifyByChunk(t,i,e)}catch(t){e=Math.floor(e/2)}return c.stringifyByChar(t)}function d(t,e){for(var n=0;n<t.length;n++)e[n]=t[n];return e}n.applyFromCharCode=u;var h={};h.string={string:a,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return h.string.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:function(t){return l(t,s.allocBuffer(t.length))}},h.array={string:u,array:a,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return s.newBufferFrom(t)}},h.arraybuffer={string:function(t){return u(new Uint8Array(t))},array:function(t){return d(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:a,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return s.newBufferFrom(new Uint8Array(t))}},h.uint8array={string:u,array:function(t){return d(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:a,nodebuffer:function(t){return s.newBufferFrom(t)}},h.nodebuffer={string:u,array:function(t){return d(t,new Array(t.length))},arraybuffer:function(t){return h.nodebuffer.uint8array(t).buffer},uint8array:function(t){return d(t,new Uint8Array(t.length))},nodebuffer:a},n.transformTo=function(t,e){if(e=e||"",!t)return e;n.checkSupport(t);var i=n.getTypeOf(e);return h[i][t](e)},n.resolve=function(t){for(var e=t.split("/"),n=[],i=0;i<e.length;i++){var r=e[i];"."===r||""===r&&0!==i&&i!==e.length-1||(".."===r?n.pop():n.push(r))}return n.join("/")},n.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":i.nodebuffer&&s.isBuffer(t)?"nodebuffer":i.uint8array&&t instanceof Uint8Array?"uint8array":i.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(t){if(!i[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(t){var e,n,i="";for(n=0;n<(t||"").length;n++)i+="\\x"+((e=t.charCodeAt(n))<16?"0":"")+e.toString(16).toUpperCase();return i},n.delay=function(t,e,n){setImmediate((function(){t.apply(n||null,e||[])}))},n.inherits=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n},n.extend=function(){var t,e,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===n[e]&&(n[e]=arguments[t][e]);return n},n.prepareContent=function(t,e,s,a,c){return o.Promise.resolve(e).then((function(t){return i.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new o.Promise((function(e,n){var i=new FileReader;i.onload=function(t){e(t.target.result)},i.onerror=function(t){n(t.target.error)},i.readAsArrayBuffer(t)})):t})).then((function(e){var u=n.getTypeOf(e);return u?("arraybuffer"===u?e=n.transformTo("uint8array",e):"string"===u&&(c?e=r.decode(e):s&&!0!==a&&(e=function(t){return l(t,i.uint8array?new Uint8Array(t.length):new Array(t.length))}(e))),e):o.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,e,n){"use strict";var i=t("./reader/readerFor"),r=t("./utils"),s=t("./signature"),o=t("./zipEntry"),a=t("./support");function l(t){this.files=[],this.loadOptions=t}l.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(e)+", expected "+r.pretty(t)+")")}},isSignature:function(t,e){var n=this.reader.index;this.reader.setIndex(t);var i=this.reader.readString(4)===e;return this.reader.setIndex(n),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=a.uint8array?"uint8array":"array",n=r.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,n,i=this.zip64EndOfCentralSize-44;0<i;)t=this.reader.readInt(2),e=this.reader.readInt(4),n=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(t=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var i=e-n;if(0<i)this.isSignature(e,s.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(t){this.reader=i(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,e,n){"use strict";var i=t("./reader/readerFor"),r=t("./utils"),s=t("./compressedObject"),o=t("./crc32"),a=t("./utf8"),l=t("./compressions"),c=t("./support");function u(t,e){this.options=t,this.loadOptions=e}u.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(t){var e,n;if(t.skip(22),this.fileNameLength=t.readInt(2),n=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in l)if(Object.prototype.hasOwnProperty.call(l,e)&&l[e].magic===t)return l[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=i(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,n,i,r=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<r;)e=t.readInt(2),n=t.readInt(2),i=t.readData(n),this.extraFields[e]={id:e,length:n,value:i};t.setIndex(r)},handleUTF8:function(){var t=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var n=r.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var s=r.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(s)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=i(t.value);return 1!==e.readInt(1)||o(this.fileName)!==e.readInt(4)?null:a.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=i(t.value);return 1!==e.readInt(1)||o(this.fileComment)!==e.readInt(4)?null:a.utf8decode(e.readData(t.length-5))}return null}},e.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,n){"use strict";function i(t,e,n){this.name=t,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=e,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var r=t("./stream/StreamHelper"),s=t("./stream/DataWorker"),o=t("./utf8"),a=t("./compressedObject"),l=t("./stream/GenericWorker");i.prototype={internalStream:function(t){var e=null,n="string";try{if(!t)throw new Error("No output type specified.");var i="string"===(n=t.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),e=this._decompressWorker();var s=!this._dataBinary;s&&!i&&(e=e.pipe(new o.Utf8EncodeWorker)),!s&&i&&(e=e.pipe(new o.Utf8DecodeWorker))}catch(t){(e=new l("error")).error(t)}return new r(e,n,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof a&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),a.createWorkerFrom(n,t,e)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof l?this._data:new s(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<c.length;d++)i.prototype[c[d]]=u;e.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,i){(function(t){"use strict";var n,i,r=t.MutationObserver||t.WebKitMutationObserver;if(r){var s=0,o=new r(u),a=t.document.createTextNode("");o.observe(a,{characterData:!0}),n=function(){a.data=s=++s%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){u(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(u,0)};else{var l=new t.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var c=[];function u(){var t,e;i=!0;for(var n=c.length;n;){for(e=c,c=[],t=-1;++t<n;)e[t]();n=c.length}i=!1}e.exports=function(t){1!==c.push(t)||i||n()}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,n){"use strict";var i=t("immediate");function r(){}var s={},o=["REJECTED"],a=["FULFILLED"],l=["PENDING"];function c(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,t!==r&&p(this,t)}function u(t,e,n){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(t,e,n){i((function(){var i;try{i=e(n)}catch(i){return s.reject(t,i)}i===t?s.reject(t,new TypeError("Cannot resolve promise with itself")):s.resolve(t,i)}))}function h(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function p(t,e){var n=!1;function i(e){n||(n=!0,s.reject(t,e))}function r(e){n||(n=!0,s.resolve(t,e))}var o=f((function(){e(r,i)}));"error"===o.status&&i(o.value)}function f(t,e){var n={};try{n.value=t(e),n.status="success"}catch(t){n.status="error",n.value=t}return n}(e.exports=c).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))},c.prototype.catch=function(t){return this.then(null,t)},c.prototype.then=function(t,e){if("function"!=typeof t&&this.state===a||"function"!=typeof e&&this.state===o)return this;var n=new this.constructor(r);return this.state!==l?d(n,this.state===a?t:e,this.outcome):this.queue.push(new u(n,t,e)),n},u.prototype.callFulfilled=function(t){s.resolve(this.promise,t)},u.prototype.otherCallFulfilled=function(t){d(this.promise,this.onFulfilled,t)},u.prototype.callRejected=function(t){s.reject(this.promise,t)},u.prototype.otherCallRejected=function(t){d(this.promise,this.onRejected,t)},s.resolve=function(t,e){var n=f(h,e);if("error"===n.status)return s.reject(t,n.value);var i=n.value;if(i)p(t,i);else{t.state=a,t.outcome=e;for(var r=-1,o=t.queue.length;++r<o;)t.queue[r].callFulfilled(e)}return t},s.reject=function(t,e){t.state=o,t.outcome=e;for(var n=-1,i=t.queue.length;++n<i;)t.queue[n].callRejected(e);return t},c.resolve=function(t){return t instanceof this?t:s.resolve(new this(r),t)},c.reject=function(t){var e=new this(r);return s.reject(e,t)},c.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,i=!1;if(!n)return this.resolve([]);for(var o=new Array(n),a=0,l=-1,c=new this(r);++l<n;)u(t[l],l);return c;function u(t,r){e.resolve(t).then((function(t){o[r]=t,++a!==n||i||(i=!0,s.resolve(c,o))}),(function(t){i||(i=!0,s.reject(c,t))}))}},c.race=function(t){if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var e=t.length,n=!1;if(!e)return this.resolve([]);for(var i,o=-1,a=new this(r);++o<e;)i=t[o],this.resolve(i).then((function(t){n||(n=!0,s.resolve(a,t))}),(function(t){n||(n=!0,s.reject(a,t))}));return a}},{immediate:36}],38:[function(t,e,n){"use strict";var i={};(0,t("./lib/utils/common").assign)(i,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,n){"use strict";var i=t("./zlib/deflate"),r=t("./utils/common"),s=t("./utils/strings"),o=t("./zlib/messages"),a=t("./zlib/zstream"),l=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=r.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==n)throw new Error(o[n]);if(e.header&&i.deflateSetHeader(this.strm,e.header),e.dictionary){var u;if(u="string"==typeof e.dictionary?s.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(n=i.deflateSetDictionary(this.strm,u)))throw new Error(o[n]);this._dict_set=!0}}function u(t,e){var n=new c(e);if(n.push(t,!0),n.err)throw n.msg||o[n.err];return n.result}c.prototype.push=function(t,e){var n,o,a=this.strm,c=this.options.chunkSize;if(this.ended)return!1;o=e===~~e?e:!0===e?4:0,"string"==typeof t?a.input=s.string2buf(t):"[object ArrayBuffer]"===l.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new r.Buf8(c),a.next_out=0,a.avail_out=c),1!==(n=i.deflate(a,o))&&0!==n)return this.onEnd(n),!(this.ended=!0);0!==a.avail_out&&(0!==a.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(s.buf2binstring(r.shrinkBuf(a.output,a.next_out))):this.onData(r.shrinkBuf(a.output,a.next_out)))}while((0<a.avail_in||0===a.avail_out)&&1!==n);return 4===o?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==o||(this.onEnd(0),!(a.avail_out=0))},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Deflate=c,n.deflate=u,n.deflateRaw=function(t,e){return(e=e||{}).raw=!0,u(t,e)},n.gzip=function(t,e){return(e=e||{}).gzip=!0,u(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,n){"use strict";var i=t("./zlib/inflate"),r=t("./utils/common"),s=t("./utils/strings"),o=t("./zlib/constants"),a=t("./zlib/messages"),l=t("./zlib/zstream"),c=t("./zlib/gzheader"),u=Object.prototype.toString;function d(t){if(!(this instanceof d))return new d(t);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&!(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=i.inflateInit2(this.strm,e.windowBits);if(n!==o.Z_OK)throw new Error(a[n]);this.header=new c,i.inflateGetHeader(this.strm,this.header)}function h(t,e){var n=new d(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}d.prototype.push=function(t,e){var n,a,l,c,d,h,p=this.strm,f=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;a=e===~~e?e:!0===e?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof t?p.input=s.binstring2buf(t):"[object ArrayBuffer]"===u.call(t)?p.input=new Uint8Array(t):p.input=t,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new r.Buf8(f),p.next_out=0,p.avail_out=f),(n=i.inflate(p,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&g&&(h="string"==typeof g?s.string2buf(g):"[object ArrayBuffer]"===u.call(g)?new Uint8Array(g):g,n=i.inflateSetDictionary(this.strm,h)),n===o.Z_BUF_ERROR&&!0===m&&(n=o.Z_OK,m=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);p.next_out&&(0!==p.avail_out&&n!==o.Z_STREAM_END&&(0!==p.avail_in||a!==o.Z_FINISH&&a!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=s.utf8border(p.output,p.next_out),c=p.next_out-l,d=s.buf2string(p.output,l),p.next_out=c,p.avail_out=f-c,c&&r.arraySet(p.output,p.output,l,c,0),this.onData(d)):this.onData(r.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(m=!0)}while((0<p.avail_in||0===p.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(a=o.Z_FINISH),a===o.Z_FINISH?(n=i.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):a!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(p.avail_out=0))},d.prototype.onData=function(t){this.chunks.push(t)},d.prototype.onEnd=function(t){t===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Inflate=d,n.inflate=h,n.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},n.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}}return t},n.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,n,i,r){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+i),r);else for(var s=0;s<i;s++)t[r+s]=e[n+s]},flattenChunks:function(t){var e,n,i,r,s,o;for(e=i=0,n=t.length;e<n;e++)i+=t[e].length;for(o=new Uint8Array(i),e=r=0,n=t.length;e<n;e++)s=t[e],o.set(s,r),r+=s.length;return o}},s={arraySet:function(t,e,n,i,r){for(var s=0;s<i;s++)t[r+s]=e[n+s]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,r)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,s))},n.setTyped(i)},{}],42:[function(t,e,n){"use strict";var i=t("./common"),r=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(t){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){s=!1}for(var o=new i.Buf8(256),a=0;a<256;a++)o[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function l(t,e){if(e<65537&&(t.subarray&&s||!t.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(t,e));for(var n="",o=0;o<e;o++)n+=String.fromCharCode(t[o]);return n}o[254]=o[254]=1,n.string2buf=function(t){var e,n,r,s,o,a=t.length,l=0;for(s=0;s<a;s++)55296==(64512&(n=t.charCodeAt(s)))&&s+1<a&&56320==(64512&(r=t.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(r-56320),s++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=new i.Buf8(l),s=o=0;o<l;s++)55296==(64512&(n=t.charCodeAt(s)))&&s+1<a&&56320==(64512&(r=t.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(r-56320),s++),n<128?e[o++]=n:(n<2048?e[o++]=192|n>>>6:(n<65536?e[o++]=224|n>>>12:(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63),e[o++]=128|n>>>6&63),e[o++]=128|63&n);return e},n.buf2binstring=function(t){return l(t,t.length)},n.binstring2buf=function(t){for(var e=new i.Buf8(t.length),n=0,r=e.length;n<r;n++)e[n]=t.charCodeAt(n);return e},n.buf2string=function(t,e){var n,i,r,s,a=e||t.length,c=new Array(2*a);for(n=i=0;n<a;)if((r=t[n++])<128)c[i++]=r;else if(4<(s=o[r]))c[i++]=65533,n+=s-1;else{for(r&=2===s?31:3===s?15:7;1<s&&n<a;)r=r<<6|63&t[n++],s--;1<s?c[i++]=65533:r<65536?c[i++]=r:(r-=65536,c[i++]=55296|r>>10&1023,c[i++]=56320|1023&r)}return l(c,i)},n.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+o[t[n]]>e?n:e}},{"./common":41}],43:[function(t,e,n){"use strict";e.exports=function(t,e,n,i){for(var r=65535&t,s=t>>>16&65535,o=0;0!==n;){for(n-=o=2e3<n?2e3:n;s=s+(r=r+e[i++]|0)|0,--o;);r%=65521,s%=65521}return r|s<<16}},{}],44:[function(t,e,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,n){"use strict";var i=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e,n,r){var s=i,o=r+n;t^=-1;for(var a=r;a<o;a++)t=t>>>8^s[255&(t^e[a])];return~t}},{}],46:[function(t,e,n){"use strict";var i,r=t("../utils/common"),s=t("./trees"),o=t("./adler32"),a=t("./crc32"),l=t("./messages"),c=-2,u=258,d=262,h=113;function p(t,e){return t.msg=l[e],e}function f(t){return(t<<1)-(4<t?9:0)}function g(t){for(var e=t.length;0<=--e;)t[e]=0}function m(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(r.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function v(t,e){s._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,m(t.strm)}function y(t,e){t.pending_buf[t.pending++]=e}function b(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function x(t,e){var n,i,r=t.max_chain_length,s=t.strstart,o=t.prev_length,a=t.nice_match,l=t.strstart>t.w_size-d?t.strstart-(t.w_size-d):0,c=t.window,h=t.w_mask,p=t.prev,f=t.strstart+u,g=c[s+o-1],m=c[s+o];t.prev_length>=t.good_match&&(r>>=2),a>t.lookahead&&(a=t.lookahead);do{if(c[(n=e)+o]===m&&c[n+o-1]===g&&c[n]===c[s]&&c[++n]===c[s+1]){s+=2,n++;do{}while(c[++s]===c[++n]&&c[++s]===c[++n]&&c[++s]===c[++n]&&c[++s]===c[++n]&&c[++s]===c[++n]&&c[++s]===c[++n]&&c[++s]===c[++n]&&c[++s]===c[++n]&&s<f);if(i=u-(f-s),s=f-u,o<i){if(t.match_start=e,a<=(o=i))break;g=c[s+o-1],m=c[s+o]}}}while((e=p[e&h])>l&&0!=--r);return o<=t.lookahead?o:t.lookahead}function w(t){var e,n,i,s,l,c,u,h,p,f,g=t.w_size;do{if(s=t.window_size-t.lookahead-t.strstart,t.strstart>=g+(g-d)){for(r.arraySet(t.window,t.window,g,g,0),t.match_start-=g,t.strstart-=g,t.block_start-=g,e=n=t.hash_size;i=t.head[--e],t.head[e]=g<=i?i-g:0,--n;);for(e=n=g;i=t.prev[--e],t.prev[e]=g<=i?i-g:0,--n;);s+=g}if(0===t.strm.avail_in)break;if(c=t.strm,u=t.window,h=t.strstart+t.lookahead,f=void 0,(p=s)<(f=c.avail_in)&&(f=p),n=0===f?0:(c.avail_in-=f,r.arraySet(u,c.input,c.next_in,f,h),1===c.state.wrap?c.adler=o(c.adler,u,f,h):2===c.state.wrap&&(c.adler=a(c.adler,u,f,h)),c.next_in+=f,c.total_in+=f,f),t.lookahead+=n,t.lookahead+t.insert>=3)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+3-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<d&&0!==t.strm.avail_in)}function A(t,e){for(var n,i;;){if(t.lookahead<d){if(w(t),t.lookahead<d&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-d&&(t.match_length=x(t,n)),t.match_length>=3)if(i=s._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=s._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}function _(t,e){for(var n,i,r;;){if(t.lookahead<d){if(w(t),t.lookahead<d&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-d&&(t.match_length=x(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&4096<t.strstart-t.match_start)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){for(r=t.strstart+t.lookahead-3,i=s._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(v(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((i=s._tr_tally(t,0,t.window[t.strstart-1]))&&v(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=s._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}function C(t,e,n,i,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=i,this.func=r}function M(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(1146),this.dyn_dtree=new r.Buf16(122),this.bl_tree=new r.Buf16(78),g(this.dyn_ltree),g(this.dyn_dtree),g(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(16),this.heap=new r.Buf16(573),g(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(573),g(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function k(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:h,t.adler=2===e.wrap?0:1,e.last_flush=0,s._tr_init(e),0):p(t,c)}function S(t){var e=k(t);return 0===e&&function(t){t.window_size=2*t.w_size,g(t.head),t.max_lazy_match=i[t.level].max_lazy,t.good_match=i[t.level].good_length,t.nice_match=i[t.level].nice_length,t.max_chain_length=i[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0}(t.state),e}function I(t,e,n,i,s,o){if(!t)return c;var a=1;if(-1===e&&(e=6),i<0?(a=0,i=-i):15<i&&(a=2,i-=16),s<1||9<s||8!==n||i<8||15<i||e<0||9<e||o<0||4<o)return p(t,c);8===i&&(i=9);var l=new M;return(t.state=l).strm=t,l.wrap=a,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=s+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<s+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=o,l.method=n,S(t)}i=[new C(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(w(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+n;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,v(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-d&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(v(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(v(t,!1),t.strm.avail_out),1)})),new C(4,4,8,4,A),new C(4,5,16,8,A),new C(4,6,32,32,A),new C(4,4,16,16,_),new C(8,16,32,32,_),new C(8,16,128,128,_),new C(8,32,128,256,_),new C(32,128,258,1024,_),new C(32,258,258,4096,_)],n.deflateInit=function(t,e){return I(t,e,8,15,8,0)},n.deflateInit2=I,n.deflateReset=S,n.deflateResetKeep=k,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?c:(t.state.gzhead=e,0):c},n.deflate=function(t,e){var n,r,o,l;if(!t||!t.state||5<e||e<0)return t?p(t,c):c;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||666===r.status&&4!==e)return p(t,0===t.avail_out?-5:c);if(r.strm=t,n=r.last_flush,r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,y(r,31),y(r,139),y(r,8),r.gzhead?(y(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),y(r,255&r.gzhead.time),y(r,r.gzhead.time>>8&255),y(r,r.gzhead.time>>16&255),y(r,r.gzhead.time>>24&255),y(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),y(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(y(r,255&r.gzhead.extra.length),y(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=a(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(y(r,0),y(r,0),y(r,0),y(r,0),y(r,0),y(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),y(r,3),r.status=h);else{var d=8+(r.w_bits-8<<4)<<8;d|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(d|=32),d+=31-d%31,r.status=h,b(r,d),0!==r.strstart&&(b(r,t.adler>>>16),b(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(o=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>o&&(t.adler=a(t.adler,r.pending_buf,r.pending-o,o)),m(t),o=r.pending,r.pending!==r.pending_buf_size));)y(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>o&&(t.adler=a(t.adler,r.pending_buf,r.pending-o,o)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(t.adler=a(t.adler,r.pending_buf,r.pending-o,o)),m(t),o=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,y(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>o&&(t.adler=a(t.adler,r.pending_buf,r.pending-o,o)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(t.adler=a(t.adler,r.pending_buf,r.pending-o,o)),m(t),o=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,y(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>o&&(t.adler=a(t.adler,r.pending_buf,r.pending-o,o)),0===l&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&m(t),r.pending+2<=r.pending_buf_size&&(y(r,255&t.adler),y(r,t.adler>>8&255),t.adler=0,r.status=h)):r.status=h),0!==r.pending){if(m(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&f(e)<=f(n)&&4!==e)return p(t,-5);if(666===r.status&&0!==t.avail_in)return p(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&666!==r.status){var x=2===r.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(w(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=s._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var n,i,r,o,a=t.window;;){if(t.lookahead<=u){if(w(t),t.lookahead<=u&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&0<t.strstart&&(i=a[r=t.strstart-1])===a[++r]&&i===a[++r]&&i===a[++r]){o=t.strstart+u;do{}while(i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&r<o);t.match_length=u-(o-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=s._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=s._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}(r,e):i[r.level].func(r,e);if(3!==x&&4!==x||(r.status=666),1===x||3===x)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===x&&(1===e?s._tr_align(r):5!==e&&(s._tr_stored_block(r,0,0,!1),3===e&&(g(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),m(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(y(r,255&t.adler),y(r,t.adler>>8&255),y(r,t.adler>>16&255),y(r,t.adler>>24&255),y(r,255&t.total_in),y(r,t.total_in>>8&255),y(r,t.total_in>>16&255),y(r,t.total_in>>24&255)):(b(r,t.adler>>>16),b(r,65535&t.adler)),m(t),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?0:1)},n.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&e!==h&&666!==e?p(t,c):(t.state=null,e===h?p(t,-3):0):c},n.deflateSetDictionary=function(t,e){var n,i,s,a,l,u,d,h,p=e.length;if(!t||!t.state)return c;if(2===(a=(n=t.state).wrap)||1===a&&42!==n.status||n.lookahead)return c;for(1===a&&(t.adler=o(t.adler,e,p,0)),n.wrap=0,p>=n.w_size&&(0===a&&(g(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new r.Buf8(n.w_size),r.arraySet(h,e,p-n.w_size,n.w_size,0),e=h,p=n.w_size),l=t.avail_in,u=t.next_in,d=t.input,t.avail_in=p,t.next_in=0,t.input=e,w(n);n.lookahead>=3;){for(i=n.strstart,s=n.lookahead-2;n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+3-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++,--s;);n.strstart=i,n.lookahead=2,w(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=u,t.input=d,t.avail_in=l,n.wrap=a,0},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,n){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,n){"use strict";e.exports=function(t,e){var n,i,r,s,o,a,l,c,u,d,h,p,f,g,m,v,y,b,x,w,A,_,C,M,k;n=t.state,i=t.next_in,M=t.input,r=i+(t.avail_in-5),s=t.next_out,k=t.output,o=s-(e-t.avail_out),a=s+(t.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,d=n.wnext,h=n.window,p=n.hold,f=n.bits,g=n.lencode,m=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;t:do{f<15&&(p+=M[i++]<<f,f+=8,p+=M[i++]<<f,f+=8),b=g[p&v];e:for(;;){if(p>>>=x=b>>>24,f-=x,0==(x=b>>>16&255))k[s++]=65535&b;else{if(!(16&x)){if(!(64&x)){b=g[(65535&b)+(p&(1<<x)-1)];continue e}if(32&x){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}w=65535&b,(x&=15)&&(f<x&&(p+=M[i++]<<f,f+=8),w+=p&(1<<x)-1,p>>>=x,f-=x),f<15&&(p+=M[i++]<<f,f+=8,p+=M[i++]<<f,f+=8),b=m[p&y];n:for(;;){if(p>>>=x=b>>>24,f-=x,!(16&(x=b>>>16&255))){if(!(64&x)){b=m[(65535&b)+(p&(1<<x)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(A=65535&b,f<(x&=15)&&(p+=M[i++]<<f,(f+=8)<x&&(p+=M[i++]<<f,f+=8)),l<(A+=p&(1<<x)-1)){t.msg="invalid distance too far back",n.mode=30;break t}if(p>>>=x,f-=x,(x=s-o)<A){if(u<(x=A-x)&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(C=h,(_=0)===d){if(_+=c-x,x<w){for(w-=x;k[s++]=h[_++],--x;);_=s-A,C=k}}else if(d<x){if(_+=c+d-x,(x-=d)<w){for(w-=x;k[s++]=h[_++],--x;);if(_=0,d<w){for(w-=x=d;k[s++]=h[_++],--x;);_=s-A,C=k}}}else if(_+=d-x,x<w){for(w-=x;k[s++]=h[_++],--x;);_=s-A,C=k}for(;2<w;)k[s++]=C[_++],k[s++]=C[_++],k[s++]=C[_++],w-=3;w&&(k[s++]=C[_++],1<w&&(k[s++]=C[_++]))}else{for(_=s-A;k[s++]=k[_++],k[s++]=k[_++],k[s++]=k[_++],2<(w-=3););w&&(k[s++]=k[_++],1<w&&(k[s++]=k[_++]))}break}}break}}while(i<r&&s<a);i-=w=f>>3,p&=(1<<(f-=w<<3))-1,t.next_in=i,t.next_out=s,t.avail_in=i<r?r-i+5:5-(i-r),t.avail_out=s<a?a-s+257:257-(s-a),n.hold=p,n.bits=f}},{}],49:[function(t,e,n){"use strict";var i=t("../utils/common"),r=t("./adler32"),s=t("./crc32"),o=t("./inffast"),a=t("./inftrees"),l=-2;function c(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new i.Buf32(852),e.distcode=e.distdyn=new i.Buf32(592),e.sane=1,e.back=-1,0):l}function h(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,d(t)):l}function p(t,e){var n,i;return t&&t.state?(i=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?l:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,h(t))):l}function f(t,e){var n,i;return t?(i=new u,(t.state=i).window=null,0!==(n=p(t,e))&&(t.state=null),n):l}var g,m,v=!0;function y(t){if(v){var e;for(g=new i.Buf32(512),m=new i.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(a(1,t.lens,0,288,g,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;a(2,t.lens,0,32,m,0,t.work,{bits:5}),v=!1}t.lencode=g,t.lenbits=9,t.distcode=m,t.distbits=5}function b(t,e,n,r){var s,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new i.Buf8(o.wsize)),r>=o.wsize?(i.arraySet(o.window,e,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(r<(s=o.wsize-o.wnext)&&(s=r),i.arraySet(o.window,e,n-r,s,o.wnext),(r-=s)?(i.arraySet(o.window,e,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=s,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=s))),0}n.inflateReset=h,n.inflateReset2=p,n.inflateResetKeep=d,n.inflateInit=function(t){return f(t,15)},n.inflateInit2=f,n.inflate=function(t,e){var n,u,d,h,p,f,g,m,v,x,w,A,_,C,M,k,S,I,L,D,T,N,O,j,E=0,z=new i.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return l;12===(n=t.state).mode&&(n.mode=13),p=t.next_out,d=t.output,g=t.avail_out,h=t.next_in,u=t.input,f=t.avail_in,m=n.hold,v=n.bits,x=f,w=g,N=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(2&n.wrap&&35615===m){z[n.check=0]=255&m,z[1]=m>>>8&255,n.check=s(n.check,z,2,0),v=m=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&m)<<8)+(m>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&m)){t.msg="unknown compression method",n.mode=30;break}if(v-=4,T=8+(15&(m>>>=4)),0===n.wbits)n.wbits=T;else if(T>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<T,t.adler=n.check=1,n.mode=512&m?10:12,v=m=0;break;case 2:for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(n.flags=m,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=m>>8&1),512&n.flags&&(z[0]=255&m,z[1]=m>>>8&255,n.check=s(n.check,z,2,0)),v=m=0,n.mode=3;case 3:for(;v<32;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.head&&(n.head.time=m),512&n.flags&&(z[0]=255&m,z[1]=m>>>8&255,z[2]=m>>>16&255,z[3]=m>>>24&255,n.check=s(n.check,z,4,0)),v=m=0,n.mode=4;case 4:for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.head&&(n.head.xflags=255&m,n.head.os=m>>8),512&n.flags&&(z[0]=255&m,z[1]=m>>>8&255,n.check=s(n.check,z,2,0)),v=m=0,n.mode=5;case 5:if(1024&n.flags){for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.length=m,n.head&&(n.head.extra_len=m),512&n.flags&&(z[0]=255&m,z[1]=m>>>8&255,n.check=s(n.check,z,2,0)),v=m=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(f<(A=n.length)&&(A=f),A&&(n.head&&(T=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),i.arraySet(n.head.extra,u,h,A,T)),512&n.flags&&(n.check=s(n.check,u,A,h)),f-=A,h+=A,n.length-=A),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===f)break t;for(A=0;T=u[h+A++],n.head&&T&&n.length<65536&&(n.head.name+=String.fromCharCode(T)),T&&A<f;);if(512&n.flags&&(n.check=s(n.check,u,A,h)),f-=A,h+=A,T)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===f)break t;for(A=0;T=u[h+A++],n.head&&T&&n.length<65536&&(n.head.comment+=String.fromCharCode(T)),T&&A<f;);if(512&n.flags&&(n.check=s(n.check,u,A,h)),f-=A,h+=A,T)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(m!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}v=m=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;v<32;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}t.adler=n.check=c(m),v=m=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=p,t.avail_out=g,t.next_in=h,t.avail_in=f,n.hold=m,n.bits=v,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){m>>>=7&v,v-=7&v,n.mode=27;break}for(;v<3;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}switch(n.last=1&m,v-=1,3&(m>>>=1)){case 0:n.mode=14;break;case 1:if(y(n),n.mode=20,6!==e)break;m>>>=2,v-=2;break t;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}m>>>=2,v-=2;break;case 14:for(m>>>=7&v,v-=7&v;v<32;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if((65535&m)!=(m>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&m,v=m=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(A=n.length){if(f<A&&(A=f),g<A&&(A=g),0===A)break t;i.arraySet(d,u,h,A,p),f-=A,h+=A,g-=A,p+=A,n.length-=A;break}n.mode=12;break;case 17:for(;v<14;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(n.nlen=257+(31&m),m>>>=5,v-=5,n.ndist=1+(31&m),m>>>=5,v-=5,n.ncode=4+(15&m),m>>>=4,v-=4,286<n.nlen||30<n.ndist){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;v<3;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.lens[F[n.have++]]=7&m,m>>>=3,v-=3}for(;n.have<19;)n.lens[F[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,O={bits:n.lenbits},N=a(0,n.lens,0,19,n.lencode,0,n.work,O),n.lenbits=O.bits,N){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;k=(E=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,S=65535&E,!((M=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(S<16)m>>>=M,v-=M,n.lens[n.have++]=S;else{if(16===S){for(j=M+2;v<j;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(m>>>=M,v-=M,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}T=n.lens[n.have-1],A=3+(3&m),m>>>=2,v-=2}else if(17===S){for(j=M+3;v<j;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}v-=M,T=0,A=3+(7&(m>>>=M)),m>>>=3,v-=3}else{for(j=M+7;v<j;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}v-=M,T=0,A=11+(127&(m>>>=M)),m>>>=7,v-=7}if(n.have+A>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;A--;)n.lens[n.have++]=T}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,O={bits:n.lenbits},N=a(1,n.lens,0,n.nlen,n.lencode,0,n.work,O),n.lenbits=O.bits,N){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,O={bits:n.distbits},N=a(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,O),n.distbits=O.bits,N){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(6<=f&&258<=g){t.next_out=p,t.avail_out=g,t.next_in=h,t.avail_in=f,n.hold=m,n.bits=v,o(t,w),p=t.next_out,d=t.output,g=t.avail_out,h=t.next_in,u=t.input,f=t.avail_in,m=n.hold,v=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;k=(E=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,S=65535&E,!((M=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(k&&!(240&k)){for(I=M,L=k,D=S;k=(E=n.lencode[D+((m&(1<<I+L)-1)>>I)])>>>16&255,S=65535&E,!(I+(M=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}m>>>=I,v-=I,n.back+=I}if(m>>>=M,v-=M,n.back+=M,n.length=S,0===k){n.mode=26;break}if(32&k){n.back=-1,n.mode=12;break}if(64&k){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&k,n.mode=22;case 22:if(n.extra){for(j=n.extra;v<j;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.length+=m&(1<<n.extra)-1,m>>>=n.extra,v-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;k=(E=n.distcode[m&(1<<n.distbits)-1])>>>16&255,S=65535&E,!((M=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(!(240&k)){for(I=M,L=k,D=S;k=(E=n.distcode[D+((m&(1<<I+L)-1)>>I)])>>>16&255,S=65535&E,!(I+(M=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}m>>>=I,v-=I,n.back+=I}if(m>>>=M,v-=M,n.back+=M,64&k){t.msg="invalid distance code",n.mode=30;break}n.offset=S,n.extra=15&k,n.mode=24;case 24:if(n.extra){for(j=n.extra;v<j;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.offset+=m&(1<<n.extra)-1,m>>>=n.extra,v-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===g)break t;if(A=w-g,n.offset>A){if((A=n.offset-A)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}_=A>n.wnext?(A-=n.wnext,n.wsize-A):n.wnext-A,A>n.length&&(A=n.length),C=n.window}else C=d,_=p-n.offset,A=n.length;for(g<A&&(A=g),g-=A,n.length-=A;d[p++]=C[_++],--A;);0===n.length&&(n.mode=21);break;case 26:if(0===g)break t;d[p++]=n.length,g--,n.mode=21;break;case 27:if(n.wrap){for(;v<32;){if(0===f)break t;f--,m|=u[h++]<<v,v+=8}if(w-=g,t.total_out+=w,n.total+=w,w&&(t.adler=n.check=n.flags?s(n.check,d,w,p-w):r(n.check,d,w,p-w)),w=g,(n.flags?m:c(m))!==n.check){t.msg="incorrect data check",n.mode=30;break}v=m=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;v<32;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(m!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}v=m=0}n.mode=29;case 29:N=1;break t;case 30:N=-3;break t;case 31:return-4;default:return l}return t.next_out=p,t.avail_out=g,t.next_in=h,t.avail_in=f,n.hold=m,n.bits=v,(n.wsize||w!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&b(t,t.output,t.next_out,w-t.avail_out)?(n.mode=31,-4):(x-=t.avail_in,w-=t.avail_out,t.total_in+=x,t.total_out+=w,n.total+=w,n.wrap&&w&&(t.adler=n.check=n.flags?s(n.check,d,w,t.next_out-w):r(n.check,d,w,t.next_out-w)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==x&&0===w||4===e)&&0===N&&(N=-5),N)},n.inflateEnd=function(t){if(!t||!t.state)return l;var e=t.state;return e.window&&(e.window=null),t.state=null,0},n.inflateGetHeader=function(t,e){var n;return t&&t.state&&2&(n=t.state).wrap?((n.head=e).done=!1,0):l},n.inflateSetDictionary=function(t,e){var n,i=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?l:11===n.mode&&r(1,e,i,0)!==n.check?-3:b(t,e,i,i)?(n.mode=31,-4):(n.havedict=1,0):l},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,n){"use strict";var i=t("../utils/common"),r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,n,l,c,u,d,h){var p,f,g,m,v,y,b,x,w,A=h.bits,_=0,C=0,M=0,k=0,S=0,I=0,L=0,D=0,T=0,N=0,O=null,j=0,E=new i.Buf16(16),z=new i.Buf16(16),F=null,P=0;for(_=0;_<=15;_++)E[_]=0;for(C=0;C<l;C++)E[e[n+C]]++;for(S=A,k=15;1<=k&&0===E[k];k--);if(k<S&&(S=k),0===k)return c[u++]=20971520,c[u++]=20971520,h.bits=1,0;for(M=1;M<k&&0===E[M];M++);for(S<M&&(S=M),_=D=1;_<=15;_++)if(D<<=1,(D-=E[_])<0)return-1;if(0<D&&(0===t||1!==k))return-1;for(z[1]=0,_=1;_<15;_++)z[_+1]=z[_]+E[_];for(C=0;C<l;C++)0!==e[n+C]&&(d[z[e[n+C]]++]=C);if(y=0===t?(O=F=d,19):1===t?(O=r,j-=257,F=s,P-=257,256):(O=o,F=a,-1),_=M,v=u,L=C=N=0,g=-1,m=(T=1<<(I=S))-1,1===t&&852<T||2===t&&592<T)return 1;for(;;){for(b=_-L,w=d[C]<y?(x=0,d[C]):d[C]>y?(x=F[P+d[C]],O[j+d[C]]):(x=96,0),p=1<<_-L,M=f=1<<I;c[v+(N>>L)+(f-=p)]=b<<24|x<<16|w,0!==f;);for(p=1<<_-1;N&p;)p>>=1;if(0!==p?(N&=p-1,N+=p):N=0,C++,0==--E[_]){if(_===k)break;_=e[n+d[C]]}if(S<_&&(N&m)!==g){for(0===L&&(L=S),v+=M,D=1<<(I=_-L);I+L<k&&!((D-=E[I+L])<=0);)I++,D<<=1;if(T+=1<<I,1===t&&852<T||2===t&&592<T)return 1;c[g=N&m]=S<<24|I<<16|v-u}}return 0!==N&&(c[v+N]=_-L<<24|64<<16),h.bits=S,0}},{"../utils/common":41}],51:[function(t,e,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,n){"use strict";var i=t("../utils/common");function r(t){for(var e=t.length;0<=--e;)t[e]=0}var s=256,o=286,a=30,l=15,c=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],u=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],h=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=new Array(576);r(p);var f=new Array(60);r(f);var g=new Array(512);r(g);var m=new Array(256);r(m);var v=new Array(29);r(v);var y,b,x,w=new Array(a);function A(t,e,n,i,r){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=t&&t.length}function _(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function C(t){return t<256?g[t]:g[256+(t>>>7)]}function M(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function k(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,M(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function S(t,e,n){k(t,n[2*e],n[2*e+1])}function I(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}function L(t,e,n){var i,r,s=new Array(16),o=0;for(i=1;i<=l;i++)s[i]=o=o+n[i-1]<<1;for(r=0;r<=e;r++){var a=t[2*r+1];0!==a&&(t[2*r]=I(s[a]++,a))}}function D(t){var e;for(e=0;e<o;e++)t.dyn_ltree[2*e]=0;for(e=0;e<a;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function T(t){8<t.bi_valid?M(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function N(t,e,n,i){var r=2*e,s=2*n;return t[r]<t[s]||t[r]===t[s]&&i[e]<=i[n]}function O(t,e,n){for(var i=t.heap[n],r=n<<1;r<=t.heap_len&&(r<t.heap_len&&N(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!N(e,i,t.heap[r],t.depth));)t.heap[n]=t.heap[r],n=r,r<<=1;t.heap[n]=i}function j(t,e,n){var i,r,o,a,l=0;if(0!==t.last_lit)for(;i=t.pending_buf[t.d_buf+2*l]<<8|t.pending_buf[t.d_buf+2*l+1],r=t.pending_buf[t.l_buf+l],l++,0===i?S(t,r,e):(S(t,(o=m[r])+s+1,e),0!==(a=c[o])&&k(t,r-=v[o],a),S(t,o=C(--i),n),0!==(a=u[o])&&k(t,i-=w[o],a)),l<t.last_lit;);S(t,256,e)}function E(t,e){var n,i,r,s=e.dyn_tree,o=e.stat_desc.static_tree,a=e.stat_desc.has_stree,c=e.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<c;n++)0!==s[2*n]?(t.heap[++t.heap_len]=u=n,t.depth[n]=0):s[2*n+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[r]=0,t.opt_len--,a&&(t.static_len-=o[2*r+1]);for(e.max_code=u,n=t.heap_len>>1;1<=n;n--)O(t,s,n);for(r=c;n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],O(t,s,1),i=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=i,s[2*r]=s[2*n]+s[2*i],t.depth[r]=(t.depth[n]>=t.depth[i]?t.depth[n]:t.depth[i])+1,s[2*n+1]=s[2*i+1]=r,t.heap[1]=r++,O(t,s,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,i,r,s,o,a,c=e.dyn_tree,u=e.max_code,d=e.stat_desc.static_tree,h=e.stat_desc.has_stree,p=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,g=e.stat_desc.max_length,m=0;for(s=0;s<=l;s++)t.bl_count[s]=0;for(c[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)g<(s=c[2*c[2*(i=t.heap[n])+1]+1]+1)&&(s=g,m++),c[2*i+1]=s,u<i||(t.bl_count[s]++,o=0,f<=i&&(o=p[i-f]),a=c[2*i],t.opt_len+=a*(s+o),h&&(t.static_len+=a*(d[2*i+1]+o)));if(0!==m){do{for(s=g-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[g]--,m-=2}while(0<m);for(s=g;0!==s;s--)for(i=t.bl_count[s];0!==i;)u<(r=t.heap[--n])||(c[2*r+1]!==s&&(t.opt_len+=(s-c[2*r+1])*c[2*r],c[2*r+1]=s),i--)}}(t,e),L(s,u,t.bl_count)}function z(t,e,n){var i,r,s=-1,o=e[1],a=0,l=7,c=4;for(0===o&&(l=138,c=3),e[2*(n+1)+1]=65535,i=0;i<=n;i++)r=o,o=e[2*(i+1)+1],++a<l&&r===o||(a<c?t.bl_tree[2*r]+=a:0!==r?(r!==s&&t.bl_tree[2*r]++,t.bl_tree[32]++):a<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=r,c=(a=0)===o?(l=138,3):r===o?(l=6,3):(l=7,4))}function F(t,e,n){var i,r,s=-1,o=e[1],a=0,l=7,c=4;for(0===o&&(l=138,c=3),i=0;i<=n;i++)if(r=o,o=e[2*(i+1)+1],!(++a<l&&r===o)){if(a<c)for(;S(t,r,t.bl_tree),0!=--a;);else 0!==r?(r!==s&&(S(t,r,t.bl_tree),a--),S(t,16,t.bl_tree),k(t,a-3,2)):a<=10?(S(t,17,t.bl_tree),k(t,a-3,3)):(S(t,18,t.bl_tree),k(t,a-11,7));s=r,c=(a=0)===o?(l=138,3):r===o?(l=6,3):(l=7,4)}}r(w);var P=!1;function R(t,e,n,r){k(t,0+(r?1:0),3),function(t,e,n){T(t),M(t,n),M(t,~n),i.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n)}n._tr_init=function(t){P||(function(){var t,e,n,i,r,s=new Array(16);for(i=n=0;i<28;i++)for(v[i]=n,t=0;t<1<<c[i];t++)m[n++]=i;for(m[n-1]=i,i=r=0;i<16;i++)for(w[i]=r,t=0;t<1<<u[i];t++)g[r++]=i;for(r>>=7;i<a;i++)for(w[i]=r<<7,t=0;t<1<<u[i]-7;t++)g[256+r++]=i;for(e=0;e<=l;e++)s[e]=0;for(t=0;t<=143;)p[2*t+1]=8,t++,s[8]++;for(;t<=255;)p[2*t+1]=9,t++,s[9]++;for(;t<=279;)p[2*t+1]=7,t++,s[7]++;for(;t<=287;)p[2*t+1]=8,t++,s[8]++;for(L(p,287,s),t=0;t<a;t++)f[2*t+1]=5,f[2*t]=I(t,5);y=new A(p,c,257,o,l),b=new A(f,u,0,a,l),x=new A(new Array(0),d,0,19,7)}(),P=!0),t.l_desc=new _(t.dyn_ltree,y),t.d_desc=new _(t.dyn_dtree,b),t.bl_desc=new _(t.bl_tree,x),t.bi_buf=0,t.bi_valid=0,D(t)},n._tr_stored_block=R,n._tr_flush_block=function(t,e,n,i){var r,o,a=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<s;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),E(t,t.l_desc),E(t,t.d_desc),a=function(t){var e;for(z(t,t.dyn_ltree,t.l_desc.max_code),z(t,t.dyn_dtree,t.d_desc.max_code),E(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*h[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=r&&(r=o)):r=o=n+5,n+4<=r&&-1!==e?R(t,e,n,i):4===t.strategy||o===r?(k(t,2+(i?1:0),3),j(t,p,f)):(k(t,4+(i?1:0),3),function(t,e,n,i){var r;for(k(t,e-257,5),k(t,n-1,5),k(t,i-4,4),r=0;r<i;r++)k(t,t.bl_tree[2*h[r]+1],3);F(t,t.dyn_ltree,e-1),F(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),j(t,t.dyn_ltree,t.dyn_dtree)),D(t),i&&T(t)},n._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(m[n]+s+1)]++,t.dyn_dtree[2*C(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){k(t,2,3),S(t,256,p),function(t){16===t.bi_valid?(M(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,e,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,i){(function(t){!function(t){"use strict";if(!t.setImmediate){var e,n,i,r,s=1,o={},a=!1,l=t.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(t);c=c&&c.setTimeout?c:t,e="[object process]"==={}.toString.call(t.process)?function(t){process.nextTick((function(){d(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(r="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",h,!1):t.attachEvent("onmessage",h),function(e){t.postMessage(r+e,"*")}):t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){d(t.data)},function(t){i.port2.postMessage(t)}):l&&"onreadystatechange"in l.createElement("script")?(n=l.documentElement,function(t){var e=l.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,n.removeChild(e),e=null},n.appendChild(e)}):function(t){setTimeout(d,0,t)},c.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var n=new Array(arguments.length-1),i=0;i<n.length;i++)n[i]=arguments[i+1];var r={callback:t,args:n};return o[s]=r,e(s),s++},c.clearImmediate=u}function u(t){delete o[t]}function d(t){if(a)setTimeout(d,0,t);else{var e=o[t];if(e){a=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(undefined,n)}}(e)}finally{u(t),a=!1}}}}function h(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(r)&&d(+e.data.slice(r.length))}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)},617:(t,e,n)=>{var i,r;!function(){var s,o,a,l,c,u,d,h,p,f,g,m,v,y,b,x,w,A,_,C,M,k,S,I,L,D,T,N,O,j,E=function(t){var e=new E.Builder;return e.pipeline.add(E.trimmer,E.stopWordFilter,E.stemmer),e.searchPipeline.add(E.stemmer),t.call(e,e),e.build()};E.version="2.3.9",E.utils={},E.utils.warn=(s=this,function(t){s.console&&console.warn&&console.warn(t)}),E.utils.asString=function(t){return null==t?"":t.toString()},E.utils.clone=function(t){if(null==t)return t;for(var e=Object.create(null),n=Object.keys(t),i=0;i<n.length;i++){var r=n[i],s=t[r];if(Array.isArray(s))e[r]=s.slice();else{if("string"!=typeof s&&"number"!=typeof s&&"boolean"!=typeof s)throw new TypeError("clone is not deep and does not support nested objects");e[r]=s}}return e},E.FieldRef=function(t,e,n){this.docRef=t,this.fieldName=e,this._stringValue=n},E.FieldRef.joiner="/",E.FieldRef.fromString=function(t){var e=t.indexOf(E.FieldRef.joiner);if(-1===e)throw"malformed field ref string";var n=t.slice(0,e),i=t.slice(e+1);return new E.FieldRef(i,n,t)},E.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+E.FieldRef.joiner+this.docRef),this._stringValue},E.Set=function(t){if(this.elements=Object.create(null),t){this.length=t.length;for(var e=0;e<this.length;e++)this.elements[t[e]]=!0}else this.length=0},E.Set.complete={intersect:function(t){return t},union:function(){return this},contains:function(){return!0}},E.Set.empty={intersect:function(){return this},union:function(t){return t},contains:function(){return!1}},E.Set.prototype.contains=function(t){return!!this.elements[t]},E.Set.prototype.intersect=function(t){var e,n,i,r=[];if(t===E.Set.complete)return this;if(t===E.Set.empty)return t;this.length<t.length?(e=this,n=t):(e=t,n=this),i=Object.keys(e.elements);for(var s=0;s<i.length;s++){var o=i[s];o in n.elements&&r.push(o)}return new E.Set(r)},E.Set.prototype.union=function(t){return t===E.Set.complete?E.Set.complete:t===E.Set.empty?this:new E.Set(Object.keys(this.elements).concat(Object.keys(t.elements)))},E.idf=function(t,e){var n=0;for(var i in t)"_index"!=i&&(n+=Object.keys(t[i]).length);var r=(e-n+.5)/(n+.5);return Math.log(1+Math.abs(r))},E.Token=function(t,e){this.str=t||"",this.metadata=e||{}},E.Token.prototype.toString=function(){return this.str},E.Token.prototype.update=function(t){return this.str=t(this.str,this.metadata),this},E.Token.prototype.clone=function(t){return t=t||function(t){return t},new E.Token(t(this.str,this.metadata),this.metadata)},E.tokenizer=function(t,e){if(null==t||null==t)return[];if(Array.isArray(t))return t.map((function(t){return new E.Token(E.utils.asString(t).toLowerCase(),E.utils.clone(e))}));for(var n=t.toString().toLowerCase(),i=n.length,r=[],s=0,o=0;s<=i;s++){var a=s-o;if(n.charAt(s).match(E.tokenizer.separator)||s==i){if(a>0){var l=E.utils.clone(e)||{};l.position=[o,a],l.index=r.length,r.push(new E.Token(n.slice(o,s),l))}o=s+1}}return r},E.tokenizer.separator=/[\s\-]+/,E.Pipeline=function(){this._stack=[]},E.Pipeline.registeredFunctions=Object.create(null),E.Pipeline.registerFunction=function(t,e){e in this.registeredFunctions&&E.utils.warn("Overwriting existing registered function: "+e),t.label=e,E.Pipeline.registeredFunctions[t.label]=t},E.Pipeline.warnIfFunctionNotRegistered=function(t){t.label&&t.label in this.registeredFunctions||E.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",t)},E.Pipeline.load=function(t){var e=new E.Pipeline;return t.forEach((function(t){var n=E.Pipeline.registeredFunctions[t];if(!n)throw new Error("Cannot load unregistered function: "+t);e.add(n)})),e},E.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(t){E.Pipeline.warnIfFunctionNotRegistered(t),this._stack.push(t)}),this)},E.Pipeline.prototype.after=function(t,e){E.Pipeline.warnIfFunctionNotRegistered(e);var n=this._stack.indexOf(t);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,e)},E.Pipeline.prototype.before=function(t,e){E.Pipeline.warnIfFunctionNotRegistered(e);var n=this._stack.indexOf(t);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,e)},E.Pipeline.prototype.remove=function(t){var e=this._stack.indexOf(t);-1!=e&&this._stack.splice(e,1)},E.Pipeline.prototype.run=function(t){for(var e=this._stack.length,n=0;n<e;n++){for(var i=this._stack[n],r=[],s=0;s<t.length;s++){var o=i(t[s],s,t);if(null!=o&&""!==o)if(Array.isArray(o))for(var a=0;a<o.length;a++)r.push(o[a]);else r.push(o)}t=r}return t},E.Pipeline.prototype.runString=function(t,e){var n=new E.Token(t,e);return this.run([n]).map((function(t){return t.toString()}))},E.Pipeline.prototype.reset=function(){this._stack=[]},E.Pipeline.prototype.toJSON=function(){return this._stack.map((function(t){return E.Pipeline.warnIfFunctionNotRegistered(t),t.label}))},E.Vector=function(t){this._magnitude=0,this.elements=t||[]},E.Vector.prototype.positionForIndex=function(t){if(0==this.elements.length)return 0;for(var e=0,n=this.elements.length/2,i=n-e,r=Math.floor(i/2),s=this.elements[2*r];i>1&&(s<t&&(e=r),s>t&&(n=r),s!=t);)i=n-e,r=e+Math.floor(i/2),s=this.elements[2*r];return s==t||s>t?2*r:s<t?2*(r+1):void 0},E.Vector.prototype.insert=function(t,e){this.upsert(t,e,(function(){throw"duplicate index"}))},E.Vector.prototype.upsert=function(t,e,n){this._magnitude=0;var i=this.positionForIndex(t);this.elements[i]==t?this.elements[i+1]=n(this.elements[i+1],e):this.elements.splice(i,0,t,e)},E.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var t=0,e=this.elements.length,n=1;n<e;n+=2){var i=this.elements[n];t+=i*i}return this._magnitude=Math.sqrt(t)},E.Vector.prototype.dot=function(t){for(var e=0,n=this.elements,i=t.elements,r=n.length,s=i.length,o=0,a=0,l=0,c=0;l<r&&c<s;)(o=n[l])<(a=i[c])?l+=2:o>a?c+=2:o==a&&(e+=n[l+1]*i[c+1],l+=2,c+=2);return e},E.Vector.prototype.similarity=function(t){return this.dot(t)/this.magnitude()||0},E.Vector.prototype.toArray=function(){for(var t=new Array(this.elements.length/2),e=1,n=0;e<this.elements.length;e+=2,n++)t[n]=this.elements[e];return t},E.Vector.prototype.toJSON=function(){return this.elements},E.stemmer=(o={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},a={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},d="^("+(c="[^aeiou][^aeiouy]*")+")?"+(u=(l="[aeiouy]")+"[aeiou]*")+c+"("+u+")?$",h="^("+c+")?"+u+c+u+c,p="^("+c+")?"+l,f=new RegExp("^("+c+")?"+u+c),g=new RegExp(h),m=new RegExp(d),v=new RegExp(p),y=/^(.+?)(ss|i)es$/,b=/^(.+?)([^s])s$/,x=/^(.+?)eed$/,w=/^(.+?)(ed|ing)$/,A=/.$/,_=/(at|bl|iz)$/,C=new RegExp("([^aeiouylsz])\\1$"),M=new RegExp("^"+c+l+"[^aeiouwxy]$"),k=/^(.+?[^aeiou])y$/,S=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,I=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,L=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,D=/^(.+?)(s|t)(ion)$/,T=/^(.+?)e$/,N=/ll$/,O=new RegExp("^"+c+l+"[^aeiouwxy]$"),j=function(t){var e,n,i,r,s,l,c;if(t.length<3)return t;if("y"==(i=t.substr(0,1))&&(t=i.toUpperCase()+t.substr(1)),s=b,(r=y).test(t)?t=t.replace(r,"$1$2"):s.test(t)&&(t=t.replace(s,"$1$2")),s=w,(r=x).test(t)){var u=r.exec(t);(r=f).test(u[1])&&(r=A,t=t.replace(r,""))}else s.test(t)&&(e=(u=s.exec(t))[1],(s=v).test(e)&&(l=C,c=M,(s=_).test(t=e)?t+="e":l.test(t)?(r=A,t=t.replace(r,"")):c.test(t)&&(t+="e")));return(r=k).test(t)&&(t=(e=(u=r.exec(t))[1])+"i"),(r=S).test(t)&&(e=(u=r.exec(t))[1],n=u[2],(r=f).test(e)&&(t=e+o[n])),(r=I).test(t)&&(e=(u=r.exec(t))[1],n=u[2],(r=f).test(e)&&(t=e+a[n])),s=D,(r=L).test(t)?(e=(u=r.exec(t))[1],(r=g).test(e)&&(t=e)):s.test(t)&&(e=(u=s.exec(t))[1]+u[2],(s=g).test(e)&&(t=e)),(r=T).test(t)&&(e=(u=r.exec(t))[1],s=m,l=O,((r=g).test(e)||s.test(e)&&!l.test(e))&&(t=e)),s=g,(r=N).test(t)&&s.test(t)&&(r=A,t=t.replace(r,"")),"y"==i&&(t=i.toLowerCase()+t.substr(1)),t},function(t){return t.update(j)}),E.Pipeline.registerFunction(E.stemmer,"stemmer"),E.generateStopWordFilter=function(t){var e=t.reduce((function(t,e){return t[e]=e,t}),{});return function(t){if(t&&e[t.toString()]!==t.toString())return t}},E.stopWordFilter=E.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),E.Pipeline.registerFunction(E.stopWordFilter,"stopWordFilter"),E.trimmer=function(t){return t.update((function(t){return t.replace(/^\W+/,"").replace(/\W+$/,"")}))},E.Pipeline.registerFunction(E.trimmer,"trimmer"),E.TokenSet=function(){this.final=!1,this.edges={},this.id=E.TokenSet._nextId,E.TokenSet._nextId+=1},E.TokenSet._nextId=1,E.TokenSet.fromArray=function(t){for(var e=new E.TokenSet.Builder,n=0,i=t.length;n<i;n++)e.insert(t[n]);return e.finish(),e.root},E.TokenSet.fromClause=function(t){return"editDistance"in t?E.TokenSet.fromFuzzyString(t.term,t.editDistance):E.TokenSet.fromString(t.term)},E.TokenSet.fromFuzzyString=function(t,e){for(var n=new E.TokenSet,i=[{node:n,editsRemaining:e,str:t}];i.length;){var r=i.pop();if(r.str.length>0){var s,o=r.str.charAt(0);o in r.node.edges?s=r.node.edges[o]:(s=new E.TokenSet,r.node.edges[o]=s),1==r.str.length&&(s.final=!0),i.push({node:s,editsRemaining:r.editsRemaining,str:r.str.slice(1)})}if(0!=r.editsRemaining){if("*"in r.node.edges)var a=r.node.edges["*"];else a=new E.TokenSet,r.node.edges["*"]=a;if(0==r.str.length&&(a.final=!0),i.push({node:a,editsRemaining:r.editsRemaining-1,str:r.str}),r.str.length>1&&i.push({node:r.node,editsRemaining:r.editsRemaining-1,str:r.str.slice(1)}),1==r.str.length&&(r.node.final=!0),r.str.length>=1){if("*"in r.node.edges)var l=r.node.edges["*"];else l=new E.TokenSet,r.node.edges["*"]=l;1==r.str.length&&(l.final=!0),i.push({node:l,editsRemaining:r.editsRemaining-1,str:r.str.slice(1)})}if(r.str.length>1){var c,u=r.str.charAt(0),d=r.str.charAt(1);d in r.node.edges?c=r.node.edges[d]:(c=new E.TokenSet,r.node.edges[d]=c),1==r.str.length&&(c.final=!0),i.push({node:c,editsRemaining:r.editsRemaining-1,str:u+r.str.slice(2)})}}}return n},E.TokenSet.fromString=function(t){for(var e=new E.TokenSet,n=e,i=0,r=t.length;i<r;i++){var s=t[i],o=i==r-1;if("*"==s)e.edges[s]=e,e.final=o;else{var a=new E.TokenSet;a.final=o,e.edges[s]=a,e=a}}return n},E.TokenSet.prototype.toArray=function(){for(var t=[],e=[{prefix:"",node:this}];e.length;){var n=e.pop(),i=Object.keys(n.node.edges),r=i.length;n.node.final&&(n.prefix.charAt(0),t.push(n.prefix));for(var s=0;s<r;s++){var o=i[s];e.push({prefix:n.prefix.concat(o),node:n.node.edges[o]})}}return t},E.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var t=this.final?"1":"0",e=Object.keys(this.edges).sort(),n=e.length,i=0;i<n;i++){var r=e[i];t=t+r+this.edges[r].id}return t},E.TokenSet.prototype.intersect=function(t){for(var e=new E.TokenSet,n=void 0,i=[{qNode:t,output:e,node:this}];i.length;){n=i.pop();for(var r=Object.keys(n.qNode.edges),s=r.length,o=Object.keys(n.node.edges),a=o.length,l=0;l<s;l++)for(var c=r[l],u=0;u<a;u++){var d=o[u];if(d==c||"*"==c){var h=n.node.edges[d],p=n.qNode.edges[c],f=h.final&&p.final,g=void 0;d in n.output.edges?(g=n.output.edges[d]).final=g.final||f:((g=new E.TokenSet).final=f,n.output.edges[d]=g),i.push({qNode:p,output:g,node:h})}}}return e},E.TokenSet.Builder=function(){this.previousWord="",this.root=new E.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},E.TokenSet.Builder.prototype.insert=function(t){var e,n=0;if(t<this.previousWord)throw new Error("Out of order word insertion");for(var i=0;i<t.length&&i<this.previousWord.length&&t[i]==this.previousWord[i];i++)n++;for(this.minimize(n),e=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child,i=n;i<t.length;i++){var r=new E.TokenSet,s=t[i];e.edges[s]=r,this.uncheckedNodes.push({parent:e,char:s,child:r}),e=r}e.final=!0,this.previousWord=t},E.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},E.TokenSet.Builder.prototype.minimize=function(t){for(var e=this.uncheckedNodes.length-1;e>=t;e--){var n=this.uncheckedNodes[e],i=n.child.toString();i in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[i]:(n.child._str=i,this.minimizedNodes[i]=n.child),this.uncheckedNodes.pop()}},E.Index=function(t){this.invertedIndex=t.invertedIndex,this.fieldVectors=t.fieldVectors,this.tokenSet=t.tokenSet,this.fields=t.fields,this.pipeline=t.pipeline},E.Index.prototype.search=function(t){return this.query((function(e){new E.QueryParser(t,e).parse()}))},E.Index.prototype.query=function(t){for(var e=new E.Query(this.fields),n=Object.create(null),i=Object.create(null),r=Object.create(null),s=Object.create(null),o=Object.create(null),a=0;a<this.fields.length;a++)i[this.fields[a]]=new E.Vector;for(t.call(e,e),a=0;a<e.clauses.length;a++){var l,c=e.clauses[a],u=E.Set.empty;l=c.usePipeline?this.pipeline.runString(c.term,{fields:c.fields}):[c.term];for(var d=0;d<l.length;d++){var h=l[d];c.term=h;var p=E.TokenSet.fromClause(c),f=this.tokenSet.intersect(p).toArray();if(0===f.length&&c.presence===E.Query.presence.REQUIRED){for(var g=0;g<c.fields.length;g++)s[T=c.fields[g]]=E.Set.empty;break}for(var m=0;m<f.length;m++){var v=f[m],y=this.invertedIndex[v],b=y._index;for(g=0;g<c.fields.length;g++){var x=y[T=c.fields[g]],w=Object.keys(x),A=v+"/"+T,_=new E.Set(w);if(c.presence==E.Query.presence.REQUIRED&&(u=u.union(_),void 0===s[T]&&(s[T]=E.Set.complete)),c.presence!=E.Query.presence.PROHIBITED){if(i[T].upsert(b,c.boost,(function(t,e){return t+e})),!r[A]){for(var C=0;C<w.length;C++){var M,k=w[C],S=new E.FieldRef(k,T),I=x[k];void 0===(M=n[S])?n[S]=new E.MatchData(v,T,I):M.add(v,T,I)}r[A]=!0}}else void 0===o[T]&&(o[T]=E.Set.empty),o[T]=o[T].union(_)}}}if(c.presence===E.Query.presence.REQUIRED)for(g=0;g<c.fields.length;g++)s[T=c.fields[g]]=s[T].intersect(u)}var L=E.Set.complete,D=E.Set.empty;for(a=0;a<this.fields.length;a++){var T;s[T=this.fields[a]]&&(L=L.intersect(s[T])),o[T]&&(D=D.union(o[T]))}var N=Object.keys(n),O=[],j=Object.create(null);if(e.isNegated())for(N=Object.keys(this.fieldVectors),a=0;a<N.length;a++){S=N[a];var z=E.FieldRef.fromString(S);n[S]=new E.MatchData}for(a=0;a<N.length;a++){var F=(z=E.FieldRef.fromString(N[a])).docRef;if(L.contains(F)&&!D.contains(F)){var P,R=this.fieldVectors[z],Y=i[z.fieldName].similarity(R);if(void 0!==(P=j[F]))P.score+=Y,P.matchData.combine(n[z]);else{var U={ref:F,score:Y,matchData:n[z]};j[F]=U,O.push(U)}}}return O.sort((function(t,e){return e.score-t.score}))},E.Index.prototype.toJSON=function(){var t=Object.keys(this.invertedIndex).sort().map((function(t){return[t,this.invertedIndex[t]]}),this),e=Object.keys(this.fieldVectors).map((function(t){return[t,this.fieldVectors[t].toJSON()]}),this);return{version:E.version,fields:this.fields,fieldVectors:e,invertedIndex:t,pipeline:this.pipeline.toJSON()}},E.Index.load=function(t){var e={},n={},i=t.fieldVectors,r=Object.create(null),s=t.invertedIndex,o=new E.TokenSet.Builder,a=E.Pipeline.load(t.pipeline);t.version!=E.version&&E.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+E.version+"' does not match serialized index '"+t.version+"'");for(var l=0;l<i.length;l++){var c=(d=i[l])[0],u=d[1];n[c]=new E.Vector(u)}for(l=0;l<s.length;l++){var d,h=(d=s[l])[0],p=d[1];o.insert(h),r[h]=p}return o.finish(),e.fields=t.fields,e.fieldVectors=n,e.invertedIndex=r,e.tokenSet=o.root,e.pipeline=a,new E.Index(e)},E.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=E.tokenizer,this.pipeline=new E.Pipeline,this.searchPipeline=new E.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},E.Builder.prototype.ref=function(t){this._ref=t},E.Builder.prototype.field=function(t,e){if(/\//.test(t))throw new RangeError("Field '"+t+"' contains illegal character '/'");this._fields[t]=e||{}},E.Builder.prototype.b=function(t){this._b=t<0?0:t>1?1:t},E.Builder.prototype.k1=function(t){this._k1=t},E.Builder.prototype.add=function(t,e){var n=t[this._ref],i=Object.keys(this._fields);this._documents[n]=e||{},this.documentCount+=1;for(var r=0;r<i.length;r++){var s=i[r],o=this._fields[s].extractor,a=o?o(t):t[s],l=this.tokenizer(a,{fields:[s]}),c=this.pipeline.run(l),u=new E.FieldRef(n,s),d=Object.create(null);this.fieldTermFrequencies[u]=d,this.fieldLengths[u]=0,this.fieldLengths[u]+=c.length;for(var h=0;h<c.length;h++){var p=c[h];if(null==d[p]&&(d[p]=0),d[p]+=1,null==this.invertedIndex[p]){var f=Object.create(null);f._index=this.termIndex,this.termIndex+=1;for(var g=0;g<i.length;g++)f[i[g]]=Object.create(null);this.invertedIndex[p]=f}null==this.invertedIndex[p][s][n]&&(this.invertedIndex[p][s][n]=Object.create(null));for(var m=0;m<this.metadataWhitelist.length;m++){var v=this.metadataWhitelist[m],y=p.metadata[v];null==this.invertedIndex[p][s][n][v]&&(this.invertedIndex[p][s][n][v]=[]),this.invertedIndex[p][s][n][v].push(y)}}}},E.Builder.prototype.calculateAverageFieldLengths=function(){for(var t=Object.keys(this.fieldLengths),e=t.length,n={},i={},r=0;r<e;r++){var s=E.FieldRef.fromString(t[r]),o=s.fieldName;i[o]||(i[o]=0),i[o]+=1,n[o]||(n[o]=0),n[o]+=this.fieldLengths[s]}var a=Object.keys(this._fields);for(r=0;r<a.length;r++){var l=a[r];n[l]=n[l]/i[l]}this.averageFieldLength=n},E.Builder.prototype.createFieldVectors=function(){for(var t={},e=Object.keys(this.fieldTermFrequencies),n=e.length,i=Object.create(null),r=0;r<n;r++){for(var s=E.FieldRef.fromString(e[r]),o=s.fieldName,a=this.fieldLengths[s],l=new E.Vector,c=this.fieldTermFrequencies[s],u=Object.keys(c),d=u.length,h=this._fields[o].boost||1,p=this._documents[s.docRef].boost||1,f=0;f<d;f++){var g,m,v,y=u[f],b=c[y],x=this.invertedIndex[y]._index;void 0===i[y]?(g=E.idf(this.invertedIndex[y],this.documentCount),i[y]=g):g=i[y],m=g*((this._k1+1)*b)/(this._k1*(1-this._b+this._b*(a/this.averageFieldLength[o]))+b),m*=h,m*=p,v=Math.round(1e3*m)/1e3,l.insert(x,v)}t[s]=l}this.fieldVectors=t},E.Builder.prototype.createTokenSet=function(){this.tokenSet=E.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},E.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new E.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},E.Builder.prototype.use=function(t){var e=Array.prototype.slice.call(arguments,1);e.unshift(this),t.apply(this,e)},E.MatchData=function(t,e,n){for(var i=Object.create(null),r=Object.keys(n||{}),s=0;s<r.length;s++){var o=r[s];i[o]=n[o].slice()}this.metadata=Object.create(null),void 0!==t&&(this.metadata[t]=Object.create(null),this.metadata[t][e]=i)},E.MatchData.prototype.combine=function(t){for(var e=Object.keys(t.metadata),n=0;n<e.length;n++){var i=e[n],r=Object.keys(t.metadata[i]);null==this.metadata[i]&&(this.metadata[i]=Object.create(null));for(var s=0;s<r.length;s++){var o=r[s],a=Object.keys(t.metadata[i][o]);null==this.metadata[i][o]&&(this.metadata[i][o]=Object.create(null));for(var l=0;l<a.length;l++){var c=a[l];null==this.metadata[i][o][c]?this.metadata[i][o][c]=t.metadata[i][o][c]:this.metadata[i][o][c]=this.metadata[i][o][c].concat(t.metadata[i][o][c])}}}},E.MatchData.prototype.add=function(t,e,n){if(!(t in this.metadata))return this.metadata[t]=Object.create(null),void(this.metadata[t][e]=n);if(e in this.metadata[t])for(var i=Object.keys(n),r=0;r<i.length;r++){var s=i[r];s in this.metadata[t][e]?this.metadata[t][e][s]=this.metadata[t][e][s].concat(n[s]):this.metadata[t][e][s]=n[s]}else this.metadata[t][e]=n},E.Query=function(t){this.clauses=[],this.allFields=t},E.Query.wildcard=new String("*"),E.Query.wildcard.NONE=0,E.Query.wildcard.LEADING=1,E.Query.wildcard.TRAILING=2,E.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},E.Query.prototype.clause=function(t){return"fields"in t||(t.fields=this.allFields),"boost"in t||(t.boost=1),"usePipeline"in t||(t.usePipeline=!0),"wildcard"in t||(t.wildcard=E.Query.wildcard.NONE),t.wildcard&E.Query.wildcard.LEADING&&t.term.charAt(0)!=E.Query.wildcard&&(t.term="*"+t.term),t.wildcard&E.Query.wildcard.TRAILING&&t.term.slice(-1)!=E.Query.wildcard&&(t.term=t.term+"*"),"presence"in t||(t.presence=E.Query.presence.OPTIONAL),this.clauses.push(t),this},E.Query.prototype.isNegated=function(){for(var t=0;t<this.clauses.length;t++)if(this.clauses[t].presence!=E.Query.presence.PROHIBITED)return!1;return!0},E.Query.prototype.term=function(t,e){if(Array.isArray(t))return t.forEach((function(t){this.term(t,E.utils.clone(e))}),this),this;var n=e||{};return n.term=t.toString(),this.clause(n),this},E.QueryParseError=function(t,e,n){this.name="QueryParseError",this.message=t,this.start=e,this.end=n},E.QueryParseError.prototype=new Error,E.QueryLexer=function(t){this.lexemes=[],this.str=t,this.length=t.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},E.QueryLexer.prototype.run=function(){for(var t=E.QueryLexer.lexText;t;)t=t(this)},E.QueryLexer.prototype.sliceString=function(){for(var t=[],e=this.start,n=this.pos,i=0;i<this.escapeCharPositions.length;i++)n=this.escapeCharPositions[i],t.push(this.str.slice(e,n)),e=n+1;return t.push(this.str.slice(e,this.pos)),this.escapeCharPositions.length=0,t.join("")},E.QueryLexer.prototype.emit=function(t){this.lexemes.push({type:t,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},E.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},E.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return E.QueryLexer.EOS;var t=this.str.charAt(this.pos);return this.pos+=1,t},E.QueryLexer.prototype.width=function(){return this.pos-this.start},E.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},E.QueryLexer.prototype.backup=function(){this.pos-=1},E.QueryLexer.prototype.acceptDigitRun=function(){var t,e;do{e=(t=this.next()).charCodeAt(0)}while(e>47&&e<58);t!=E.QueryLexer.EOS&&this.backup()},E.QueryLexer.prototype.more=function(){return this.pos<this.length},E.QueryLexer.EOS="EOS",E.QueryLexer.FIELD="FIELD",E.QueryLexer.TERM="TERM",E.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",E.QueryLexer.BOOST="BOOST",E.QueryLexer.PRESENCE="PRESENCE",E.QueryLexer.lexField=function(t){return t.backup(),t.emit(E.QueryLexer.FIELD),t.ignore(),E.QueryLexer.lexText},E.QueryLexer.lexTerm=function(t){if(t.width()>1&&(t.backup(),t.emit(E.QueryLexer.TERM)),t.ignore(),t.more())return E.QueryLexer.lexText},E.QueryLexer.lexEditDistance=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(E.QueryLexer.EDIT_DISTANCE),E.QueryLexer.lexText},E.QueryLexer.lexBoost=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(E.QueryLexer.BOOST),E.QueryLexer.lexText},E.QueryLexer.lexEOS=function(t){t.width()>0&&t.emit(E.QueryLexer.TERM)},E.QueryLexer.termSeparator=E.tokenizer.separator,E.QueryLexer.lexText=function(t){for(;;){var e=t.next();if(e==E.QueryLexer.EOS)return E.QueryLexer.lexEOS;if(92!=e.charCodeAt(0)){if(":"==e)return E.QueryLexer.lexField;if("~"==e)return t.backup(),t.width()>0&&t.emit(E.QueryLexer.TERM),E.QueryLexer.lexEditDistance;if("^"==e)return t.backup(),t.width()>0&&t.emit(E.QueryLexer.TERM),E.QueryLexer.lexBoost;if("+"==e&&1===t.width())return t.emit(E.QueryLexer.PRESENCE),E.QueryLexer.lexText;if("-"==e&&1===t.width())return t.emit(E.QueryLexer.PRESENCE),E.QueryLexer.lexText;if(e.match(E.QueryLexer.termSeparator))return E.QueryLexer.lexTerm}else t.escapeCharacter()}},E.QueryParser=function(t,e){this.lexer=new E.QueryLexer(t),this.query=e,this.currentClause={},this.lexemeIdx=0},E.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var t=E.QueryParser.parseClause;t;)t=t(this);return this.query},E.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},E.QueryParser.prototype.consumeLexeme=function(){var t=this.peekLexeme();return this.lexemeIdx+=1,t},E.QueryParser.prototype.nextClause=function(){var t=this.currentClause;this.query.clause(t),this.currentClause={}},E.QueryParser.parseClause=function(t){var e=t.peekLexeme();if(null!=e)switch(e.type){case E.QueryLexer.PRESENCE:return E.QueryParser.parsePresence;case E.QueryLexer.FIELD:return E.QueryParser.parseField;case E.QueryLexer.TERM:return E.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+e.type;throw e.str.length>=1&&(n+=" with value '"+e.str+"'"),new E.QueryParseError(n,e.start,e.end)}},E.QueryParser.parsePresence=function(t){var e=t.consumeLexeme();if(null!=e){switch(e.str){case"-":t.currentClause.presence=E.Query.presence.PROHIBITED;break;case"+":t.currentClause.presence=E.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+e.str+"'";throw new E.QueryParseError(n,e.start,e.end)}var i=t.peekLexeme();if(null==i)throw n="expecting term or field, found nothing",new E.QueryParseError(n,e.start,e.end);switch(i.type){case E.QueryLexer.FIELD:return E.QueryParser.parseField;case E.QueryLexer.TERM:return E.QueryParser.parseTerm;default:throw n="expecting term or field, found '"+i.type+"'",new E.QueryParseError(n,i.start,i.end)}}},E.QueryParser.parseField=function(t){var e=t.consumeLexeme();if(null!=e){if(-1==t.query.allFields.indexOf(e.str)){var n=t.query.allFields.map((function(t){return"'"+t+"'"})).join(", "),i="unrecognised field '"+e.str+"', possible fields: "+n;throw new E.QueryParseError(i,e.start,e.end)}t.currentClause.fields=[e.str];var r=t.peekLexeme();if(null==r)throw i="expecting term, found nothing",new E.QueryParseError(i,e.start,e.end);if(r.type===E.QueryLexer.TERM)return E.QueryParser.parseTerm;throw i="expecting term, found '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}},E.QueryParser.parseTerm=function(t){var e=t.consumeLexeme();if(null!=e){t.currentClause.term=e.str.toLowerCase(),-1!=e.str.indexOf("*")&&(t.currentClause.usePipeline=!1);var n=t.peekLexeme();if(null!=n)switch(n.type){case E.QueryLexer.TERM:return t.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return t.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return t.nextClause(),E.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+n.type+"'";throw new E.QueryParseError(i,n.start,n.end)}else t.nextClause()}},E.QueryParser.parseEditDistance=function(t){var e=t.consumeLexeme();if(null!=e){var n=parseInt(e.str,10);if(isNaN(n)){var i="edit distance must be numeric";throw new E.QueryParseError(i,e.start,e.end)}t.currentClause.editDistance=n;var r=t.peekLexeme();if(null!=r)switch(r.type){case E.QueryLexer.TERM:return t.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return t.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return t.nextClause(),E.QueryParser.parsePresence;default:throw i="Unexpected lexeme type '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}else t.nextClause()}},E.QueryParser.parseBoost=function(t){var e=t.consumeLexeme();if(null!=e){var n=parseInt(e.str,10);if(isNaN(n)){var i="boost must be numeric";throw new E.QueryParseError(i,e.start,e.end)}t.currentClause.boost=n;var r=t.peekLexeme();if(null!=r)switch(r.type){case E.QueryLexer.TERM:return t.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return t.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return t.nextClause(),E.QueryParser.parsePresence;default:throw i="Unexpected lexeme type '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}else t.nextClause()}},void 0===(r="function"==typeof(i=function(){return E})?i.call(e,n,e,t):i)||(t.exports=r)}()},420:function(t,e,n){(t=n.nmd(t)).exports=function(){"use strict";var e,n;function i(){return e.apply(null,arguments)}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(o(t,e))return!1;return!0}function l(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function d(t,e){var n,i=[],r=t.length;for(n=0;n<r;++n)i.push(e(t[n],n));return i}function h(t,e){for(var n in e)o(e,n)&&(t[n]=e[n]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function p(t,e,n,i){return Oe(t,e,n,i,!0).utc()}function f(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function g(t){var e=null,i=!1,r=t._d&&!isNaN(t._d.getTime());return r&&(e=f(t),i=n.call(e.parsedDateParts,(function(t){return null!=t})),r=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i),t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)),null!=Object.isFrozen&&Object.isFrozen(t)?r:(t._isValid=r,t._isValid)}function m(t){var e=p(NaN);return null!=t?h(f(e),t):f(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){var e,n=Object(this),i=n.length>>>0;for(e=0;e<i;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var v=i.momentProperties=[],y=!1;function b(t,e){var n,i,r,s=v.length;if(l(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),l(e._i)||(t._i=e._i),l(e._f)||(t._f=e._f),l(e._l)||(t._l=e._l),l(e._strict)||(t._strict=e._strict),l(e._tzm)||(t._tzm=e._tzm),l(e._isUTC)||(t._isUTC=e._isUTC),l(e._offset)||(t._offset=e._offset),l(e._pf)||(t._pf=f(e)),l(e._locale)||(t._locale=e._locale),s>0)for(n=0;n<s;n++)l(r=e[i=v[n]])||(t[i]=r);return t}function x(t){b(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,i.updateOffset(this),y=!1)}function w(t){return t instanceof x||null!=t&&null!=t._isAMomentObject}function A(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function _(t,e){var n=!0;return h((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){var r,s,a,l=[],c=arguments.length;for(s=0;s<c;s++){if(r="","object"==typeof arguments[s]){for(a in r+="\n["+s+"] ",arguments[0])o(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[s];l.push(r)}A(t+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var C,M={};function k(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),M[t]||(A(e),M[t]=!0)}function S(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function I(t,e){var n,i=h({},t);for(n in e)o(e,n)&&(s(t[n])&&s(e[n])?(i[n]={},h(i[n],t[n]),h(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)o(t,n)&&!o(e,n)&&s(t[n])&&(i[n]=h({},i[n]));return i}function L(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,C=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)o(t,e)&&n.push(e);return n};function D(t,e,n){var i=""+Math.abs(t),r=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var T=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,N=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,O={},j={};function E(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(j[t]=r),e&&(j[e[0]]=function(){return D(r.apply(this,arguments),e[1],e[2])}),n&&(j[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function z(t,e){return t.isValid()?(e=F(e,t.localeData()),O[e]=O[e]||function(t){var e,n,i,r=t.match(T);for(e=0,n=r.length;e<n;e++)j[r[e]]?r[e]=j[r[e]]:r[e]=(i=r[e]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(e){var i,s="";for(i=0;i<n;i++)s+=S(r[i])?r[i].call(e,t):r[i];return s}}(e),O[e](t)):t.localeData().invalidDate()}function F(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(N.lastIndex=0;n>=0&&N.test(t);)t=t.replace(N,i),N.lastIndex=0,n-=1;return t}var P={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function R(t){return"string"==typeof t?P[t]||P[t.toLowerCase()]:void 0}function Y(t){var e,n,i={};for(n in t)o(t,n)&&(e=R(n))&&(i[e]=t[n]);return i}var U={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var B,W=/\d/,H=/\d\d/,V=/\d{3}/,Z=/\d{4}/,G=/[+-]?\d{6}/,Q=/\d\d?/,J=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,q=/\d{1,3}/,$=/\d{1,4}/,K=/[+-]?\d{1,6}/,tt=/\d+/,et=/[+-]?\d+/,nt=/Z|[+-]\d\d:?\d\d/gi,it=/Z|[+-]\d\d(?::?\d\d)?/gi,rt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,st=/^[1-9]\d?/,ot=/^([1-9]\d|\d)/;function at(t,e,n){B[t]=S(e)?e:function(t,i){return t&&n?n:e}}function lt(t,e){return o(B,t)?B[t](e._strict,e._locale):new RegExp(ct(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,i,r){return e||n||i||r}))))}function ct(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ut(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function dt(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=ut(e)),n}B={};var ht={};function pt(t,e){var n,i,r=e;for("string"==typeof t&&(t=[t]),c(e)&&(r=function(t,n){n[e]=dt(t)}),i=t.length,n=0;n<i;n++)ht[t[n]]=r}function ft(t,e){pt(t,(function(t,n,i,r){i._w=i._w||{},e(t,i._w,i,r)}))}function gt(t,e,n){null!=e&&o(ht,t)&&ht[t](e,n._a,n,t)}function mt(t){return t%4==0&&t%100!=0||t%400==0}var vt=0,yt=1,bt=2,xt=3,wt=4,At=5,_t=6,Ct=7,Mt=8;function kt(t){return mt(t)?366:365}E("Y",0,0,(function(){var t=this.year();return t<=9999?D(t,4):"+"+t})),E(0,["YY",2],0,(function(){return this.year()%100})),E(0,["YYYY",4],0,"year"),E(0,["YYYYY",5],0,"year"),E(0,["YYYYYY",6,!0],0,"year"),at("Y",et),at("YY",Q,H),at("YYYY",$,Z),at("YYYYY",K,G),at("YYYYYY",K,G),pt(["YYYYY","YYYYYY"],vt),pt("YYYY",(function(t,e){e[vt]=2===t.length?i.parseTwoDigitYear(t):dt(t)})),pt("YY",(function(t,e){e[vt]=i.parseTwoDigitYear(t)})),pt("Y",(function(t,e){e[vt]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return dt(t)+(dt(t)>68?1900:2e3)};var St,It=Lt("FullYear",!0);function Lt(t,e){return function(n){return null!=n?(Tt(this,t,n),i.updateOffset(this,e),this):Dt(this,t)}}function Dt(t,e){if(!t.isValid())return NaN;var n=t._d,i=t._isUTC;switch(e){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Tt(t,e,n){var i,r,s,o,a;if(t.isValid()&&!isNaN(n)){switch(i=t._d,r=t._isUTC,e){case"Milliseconds":return void(r?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(r?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(r?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(r?i.setUTCHours(n):i.setHours(n));case"Date":return void(r?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}s=n,o=t.month(),a=29!==(a=t.date())||1!==o||mt(s)?a:28,r?i.setUTCFullYear(s,o,a):i.setFullYear(s,o,a)}}function Nt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n,i=(e%(n=12)+n)%n;return t+=(e-i)/12,1===i?mt(t)?29:28:31-i%7%2}St=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},E("M",["MM",2],"Mo",(function(){return this.month()+1})),E("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),E("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),at("M",Q,st),at("MM",Q,H),at("MMM",(function(t,e){return e.monthsShortRegex(t)})),at("MMMM",(function(t,e){return e.monthsRegex(t)})),pt(["M","MM"],(function(t,e){e[yt]=dt(t)-1})),pt(["MMM","MMMM"],(function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[yt]=r:f(n).invalidMonth=t}));var Ot="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),jt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Et=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,zt=rt,Ft=rt;function Pt(t,e,n){var i,r,s,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=p([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=St.call(this._shortMonthsParse,o))?r:null:-1!==(r=St.call(this._longMonthsParse,o))?r:null:"MMM"===e?-1!==(r=St.call(this._shortMonthsParse,o))||-1!==(r=St.call(this._longMonthsParse,o))?r:null:-1!==(r=St.call(this._longMonthsParse,o))||-1!==(r=St.call(this._shortMonthsParse,o))?r:null}function Rt(t,e){if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=dt(e);else if(!c(e=t.localeData().monthsParse(e)))return t;var n=e,i=t.date();return i=i<29?i:Math.min(i,Nt(t.year(),n)),t._isUTC?t._d.setUTCMonth(n,i):t._d.setMonth(n,i),t}function Yt(t){return null!=t?(Rt(this,t),i.updateOffset(this,!0),this):Dt(this,"Month")}function Ut(){function t(t,e){return e.length-t.length}var e,n,i,r,s=[],o=[],a=[];for(e=0;e<12;e++)n=p([2e3,e]),i=ct(this.monthsShort(n,"")),r=ct(this.months(n,"")),s.push(i),o.push(r),a.push(r),a.push(i);s.sort(t),o.sort(t),a.sort(t),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Bt(t,e,n,i,r,s,o){var a;return t<100&&t>=0?(a=new Date(t+400,e,n,i,r,s,o),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,i,r,s,o),a}function Wt(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Ht(t,e,n){var i=7+e-n;return-(7+Wt(t,0,i).getUTCDay()-e)%7+i-1}function Vt(t,e,n,i,r){var s,o,a=1+7*(e-1)+(7+n-i)%7+Ht(t,i,r);return a<=0?o=kt(s=t-1)+a:a>kt(t)?(s=t+1,o=a-kt(t)):(s=t,o=a),{year:s,dayOfYear:o}}function Zt(t,e,n){var i,r,s=Ht(t.year(),e,n),o=Math.floor((t.dayOfYear()-s-1)/7)+1;return o<1?i=o+Gt(r=t.year()-1,e,n):o>Gt(t.year(),e,n)?(i=o-Gt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=o),{week:i,year:r}}function Gt(t,e,n){var i=Ht(t,e,n),r=Ht(t+1,e,n);return(kt(t)-i+r)/7}E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),at("w",Q,st),at("ww",Q,H),at("W",Q,st),at("WW",Q,H),ft(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=dt(t)}));function Qt(t,e){return t.slice(e,7).concat(t.slice(0,e))}E("d",0,"do","day"),E("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),E("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),E("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),at("d",Q),at("e",Q),at("E",Q),at("dd",(function(t,e){return e.weekdaysMinRegex(t)})),at("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),at("dddd",(function(t,e){return e.weekdaysRegex(t)})),ft(["dd","ddd","dddd"],(function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:f(n).invalidWeekday=t})),ft(["d","e","E"],(function(t,e,n,i){e[i]=dt(t)}));var Jt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$t=rt,Kt=rt,te=rt;function ee(t,e,n){var i,r,s,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=St.call(this._weekdaysParse,o))?r:null:"ddd"===e?-1!==(r=St.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=St.call(this._minWeekdaysParse,o))?r:null:"dddd"===e?-1!==(r=St.call(this._weekdaysParse,o))||-1!==(r=St.call(this._shortWeekdaysParse,o))||-1!==(r=St.call(this._minWeekdaysParse,o))?r:null:"ddd"===e?-1!==(r=St.call(this._shortWeekdaysParse,o))||-1!==(r=St.call(this._weekdaysParse,o))||-1!==(r=St.call(this._minWeekdaysParse,o))?r:null:-1!==(r=St.call(this._minWeekdaysParse,o))||-1!==(r=St.call(this._weekdaysParse,o))||-1!==(r=St.call(this._shortWeekdaysParse,o))?r:null}function ne(){function t(t,e){return e.length-t.length}var e,n,i,r,s,o=[],a=[],l=[],c=[];for(e=0;e<7;e++)n=p([2e3,1]).day(e),i=ct(this.weekdaysMin(n,"")),r=ct(this.weekdaysShort(n,"")),s=ct(this.weekdays(n,"")),o.push(i),a.push(r),l.push(s),c.push(i),c.push(r),c.push(s);o.sort(t),a.sort(t),l.sort(t),c.sort(t),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function ie(){return this.hours()%12||12}function re(t,e){E(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function se(t,e){return e._meridiemParse}E("H",["HH",2],0,"hour"),E("h",["hh",2],0,ie),E("k",["kk",2],0,(function(){return this.hours()||24})),E("hmm",0,0,(function(){return""+ie.apply(this)+D(this.minutes(),2)})),E("hmmss",0,0,(function(){return""+ie.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)})),E("Hmm",0,0,(function(){return""+this.hours()+D(this.minutes(),2)})),E("Hmmss",0,0,(function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)})),re("a",!0),re("A",!1),at("a",se),at("A",se),at("H",Q,ot),at("h",Q,st),at("k",Q,st),at("HH",Q,H),at("hh",Q,H),at("kk",Q,H),at("hmm",J),at("hmmss",X),at("Hmm",J),at("Hmmss",X),pt(["H","HH"],xt),pt(["k","kk"],(function(t,e,n){var i=dt(t);e[xt]=24===i?0:i})),pt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),pt(["h","hh"],(function(t,e,n){e[xt]=dt(t),f(n).bigHour=!0})),pt("hmm",(function(t,e,n){var i=t.length-2;e[xt]=dt(t.substr(0,i)),e[wt]=dt(t.substr(i)),f(n).bigHour=!0})),pt("hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[xt]=dt(t.substr(0,i)),e[wt]=dt(t.substr(i,2)),e[At]=dt(t.substr(r)),f(n).bigHour=!0})),pt("Hmm",(function(t,e,n){var i=t.length-2;e[xt]=dt(t.substr(0,i)),e[wt]=dt(t.substr(i))})),pt("Hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[xt]=dt(t.substr(0,i)),e[wt]=dt(t.substr(i,2)),e[At]=dt(t.substr(r))}));var oe=Lt("Hours",!0);var ae,le={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ot,monthsShort:jt,week:{dow:0,doy:6},weekdays:Jt,weekdaysMin:qt,weekdaysShort:Xt,meridiemParse:/[ap]\.?m?\.?/i},ce={},ue={};function de(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n<i;n+=1)if(t[n]!==e[n])return n;return i}function he(t){return t?t.toLowerCase().replace("_","-"):t}function pe(e){var n=null;if(void 0===ce[e]&&t&&t.exports&&function(t){return!(!t||!t.match("^[^/\\\\]*$"))}(e))try{n=ae._abbr,Object(function(){var t=new Error("Cannot find module 'undefined'");throw t.code="MODULE_NOT_FOUND",t}()),fe(n)}catch(t){ce[e]=null}return ce[e]}function fe(t,e){var n;return t&&((n=l(e)?me(t):ge(t,e))?ae=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ae._abbr}function ge(t,e){if(null!==e){var n,i=le;if(e.abbr=t,null!=ce[t])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=ce[t]._config;else if(null!=e.parentLocale)if(null!=ce[e.parentLocale])i=ce[e.parentLocale]._config;else{if(null==(n=pe(e.parentLocale)))return ue[e.parentLocale]||(ue[e.parentLocale]=[]),ue[e.parentLocale].push({name:t,config:e}),null;i=n._config}return ce[t]=new L(I(i,e)),ue[t]&&ue[t].forEach((function(t){ge(t.name,t.config)})),fe(t),ce[t]}return delete ce[t],null}function me(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ae;if(!r(t)){if(e=pe(t))return e;t=[t]}return function(t){for(var e,n,i,r,s=0;s<t.length;){for(e=(r=he(t[s]).split("-")).length,n=(n=he(t[s+1]))?n.split("-"):null;e>0;){if(i=pe(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&de(r,n)>=e-1)break;e--}s++}return ae}(t)}function ve(t){var e,n=t._a;return n&&-2===f(t).overflow&&(e=n[yt]<0||n[yt]>11?yt:n[bt]<1||n[bt]>Nt(n[vt],n[yt])?bt:n[xt]<0||n[xt]>24||24===n[xt]&&(0!==n[wt]||0!==n[At]||0!==n[_t])?xt:n[wt]<0||n[wt]>59?wt:n[At]<0||n[At]>59?At:n[_t]<0||n[_t]>999?_t:-1,f(t)._overflowDayOfYear&&(e<vt||e>bt)&&(e=bt),f(t)._overflowWeeks&&-1===e&&(e=Ct),f(t)._overflowWeekday&&-1===e&&(e=Mt),f(t).overflow=e),t}var ye=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,be=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xe=/Z|[+-]\d\d(?::?\d\d)?/,we=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ae=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_e=/^\/?Date\((-?\d+)/i,Ce=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Me={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ke(t){var e,n,i,r,s,o,a=t._i,l=ye.exec(a)||be.exec(a),c=we.length,u=Ae.length;if(l){for(f(t).iso=!0,e=0,n=c;e<n;e++)if(we[e][1].exec(l[1])){r=we[e][0],i=!1!==we[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,n=u;e<n;e++)if(Ae[e][1].exec(l[3])){s=(l[2]||" ")+Ae[e][0];break}if(null==s)return void(t._isValid=!1)}if(!i&&null!=s)return void(t._isValid=!1);if(l[4]){if(!xe.exec(l[4]))return void(t._isValid=!1);o="Z"}t._f=r+(s||"")+(o||""),Te(t)}else t._isValid=!1}function Se(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Ie(t){var e,n,i,r,s,o,a,l,c=Ce.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(n=c[4],i=c[3],r=c[2],s=c[5],o=c[6],a=c[7],l=[Se(n),jt.indexOf(i),parseInt(r,10),parseInt(s,10),parseInt(o,10)],a&&l.push(parseInt(a,10)),e=l,!function(t,e,n){return!t||Xt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(f(n).weekdayMismatch=!0,n._isValid=!1,!1)}(c[1],e,t))return;t._a=e,t._tzm=function(t,e,n){if(t)return Me[t];if(e)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(c[8],c[9],c[10]),t._d=Wt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0}else t._isValid=!1}function Le(t,e,n){return null!=t?t:null!=e?e:n}function De(t){var e,n,r,s,o,a=[];if(!t._d){for(r=function(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[bt]&&null==t._a[yt]&&function(t){var e,n,i,r,s,o,a,l,c;null!=(e=t._w).GG||null!=e.W||null!=e.E?(s=1,o=4,n=Le(e.GG,t._a[vt],Zt(je(),1,4).year),i=Le(e.W,1),((r=Le(e.E,1))<1||r>7)&&(l=!0)):(s=t._locale._week.dow,o=t._locale._week.doy,c=Zt(je(),s,o),n=Le(e.gg,t._a[vt],c.year),i=Le(e.w,c.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+s,(e.e<0||e.e>6)&&(l=!0)):r=s),i<1||i>Gt(n,s,o)?f(t)._overflowWeeks=!0:null!=l?f(t)._overflowWeekday=!0:(a=Vt(n,i,r,s,o),t._a[vt]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(o=Le(t._a[vt],r[vt]),(t._dayOfYear>kt(o)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),n=Wt(o,0,t._dayOfYear),t._a[yt]=n.getUTCMonth(),t._a[bt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[xt]&&0===t._a[wt]&&0===t._a[At]&&0===t._a[_t]&&(t._nextDay=!0,t._a[xt]=0),t._d=(t._useUTC?Wt:Bt).apply(null,a),s=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[xt]=24),t._w&&void 0!==t._w.d&&t._w.d!==s&&(f(t).weekdayMismatch=!0)}}function Te(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],f(t).empty=!0;var e,n,r,s,o,a,l,c=""+t._i,u=c.length,d=0;for(l=(r=F(t._f,t._locale).match(T)||[]).length,e=0;e<l;e++)s=r[e],(n=(c.match(lt(s,t))||[])[0])&&((o=c.substr(0,c.indexOf(n))).length>0&&f(t).unusedInput.push(o),c=c.slice(c.indexOf(n)+n.length),d+=n.length),j[s]?(n?f(t).empty=!1:f(t).unusedTokens.push(s),gt(s,n,t)):t._strict&&!n&&f(t).unusedTokens.push(s);f(t).charsLeftOver=u-d,c.length>0&&f(t).unusedInput.push(c),t._a[xt]<=12&&!0===f(t).bigHour&&t._a[xt]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[xt]=function(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}(t._locale,t._a[xt],t._meridiem),null!==(a=f(t).era)&&(t._a[vt]=t._locale.erasConvertYear(a,t._a[vt])),De(t),ve(t)}else Ie(t);else ke(t)}function Ne(t){var e=t._i,n=t._f;return t._locale=t._locale||me(t._l),null===e||void 0===n&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),w(e)?new x(ve(e)):(u(e)?t._d=e:r(n)?function(t){var e,n,i,r,s,o,a=!1,l=t._f.length;if(0===l)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<l;r++)s=0,o=!1,e=b({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],Te(e),g(e)&&(o=!0),s+=f(e).charsLeftOver,s+=10*f(e).unusedTokens.length,f(e).score=s,a?s<i&&(i=s,n=e):(null==i||s<i||o)&&(i=s,n=e,o&&(a=!0));h(t,n||e)}(t):n?Te(t):function(t){var e=t._i;l(e)?t._d=new Date(i.now()):u(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=_e.exec(t._i);null===e?(ke(t),!1===t._isValid&&(delete t._isValid,Ie(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:i.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):r(e)?(t._a=d(e.slice(0),(function(t){return parseInt(t,10)})),De(t)):s(e)?function(t){if(!t._d){var e=Y(t._i),n=void 0===e.day?e.date:e.day;t._a=d([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),De(t)}}(t):c(e)?t._d=new Date(e):i.createFromInputFallback(t)}(t),g(t)||(t._d=null),t))}function Oe(t,e,n,i,o){var l,c={};return!0!==e&&!1!==e||(i=e,e=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(s(t)&&a(t)||r(t)&&0===t.length)&&(t=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=o,c._l=n,c._i=t,c._f=e,c._strict=i,(l=new x(ve(Ne(c))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function je(t,e,n,i){return Oe(t,e,n,i,!1)}i.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Ee=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=je.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()})),ze=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=je.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:m()}));function Fe(t,e){var n,i;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return je();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Pe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Re(t){var e=Y(t),n=e.year||0,i=e.quarter||0,r=e.month||0,s=e.week||e.isoWeek||0,a=e.day||0,l=e.hour||0,c=e.minute||0,u=e.second||0,d=e.millisecond||0;this._isValid=function(t){var e,n,i=!1,r=Pe.length;for(e in t)if(o(t,e)&&(-1===St.call(Pe,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<r;++n)if(t[Pe[n]]){if(i)return!1;parseFloat(t[Pe[n]])!==dt(t[Pe[n]])&&(i=!0)}return!0}(e),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*60*60,this._days=+a+7*s,this._months=+r+3*i+12*n,this._data={},this._locale=me(),this._bubble()}function Ye(t){return t instanceof Re}function Ue(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Be(t,e){E(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+D(~~(t/60),2)+e+D(~~t%60,2)}))}Be("Z",":"),Be("ZZ",""),at("Z",it),at("ZZ",it),pt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=He(it,t)}));var We=/([\+\-]|\d\d)/gi;function He(t,e){var n,i,r=(e||"").match(t);return null===r?null:0===(i=60*(n=((r[r.length-1]||[])+"").match(We)||["-",0,0])[1]+dt(n[2]))?0:"+"===n[0]?i:-i}function Ve(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(w(t)||u(t)?t.valueOf():je(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):je(t).local()}function Ze(t){return-Math.round(t._d.getTimezoneOffset())}function Ge(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Qe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Je=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Xe(t,e){var n,i,r,s,a,l,u=t,d=null;return Ye(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:c(t)||!isNaN(+t)?(u={},e?u[e]=+t:u.milliseconds=+t):(d=Qe.exec(t))?(n="-"===d[1]?-1:1,u={y:0,d:dt(d[bt])*n,h:dt(d[xt])*n,m:dt(d[wt])*n,s:dt(d[At])*n,ms:dt(Ue(1e3*d[_t]))*n}):(d=Je.exec(t))?(n="-"===d[1]?-1:1,u={y:qe(d[2],n),M:qe(d[3],n),w:qe(d[4],n),d:qe(d[5],n),h:qe(d[6],n),m:qe(d[7],n),s:qe(d[8],n)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(s=je(u.from),a=je(u.to),r=s.isValid()&&a.isValid()?(a=Ve(a,s),s.isBefore(a)?l=$e(s,a):((l=$e(a,s)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),i=new Re(u),Ye(t)&&o(t,"_locale")&&(i._locale=t._locale),Ye(t)&&o(t,"_isValid")&&(i._isValid=t._isValid),i}function qe(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function $e(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ke(t,e){return function(n,i){var r;return null===i||isNaN(+i)||(k(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),tn(this,Xe(n,i),t),this}}function tn(t,e,n,r){var s=e._milliseconds,o=Ue(e._days),a=Ue(e._months);t.isValid()&&(r=null==r||r,a&&Rt(t,Dt(t,"Month")+a*n),o&&Tt(t,"Date",Dt(t,"Date")+o*n),s&&t._d.setTime(t._d.valueOf()+s*n),r&&i.updateOffset(t,o||a))}Xe.fn=Re.prototype,Xe.invalid=function(){return Xe(NaN)};var en=Ke(1,"add"),nn=Ke(-1,"subtract");function rn(t){return"string"==typeof t||t instanceof String}function sn(t){return w(t)||u(t)||rn(t)||c(t)||function(t){var e=r(t),n=!1;return e&&(n=0===t.filter((function(e){return!c(e)&&rn(t)})).length),e&&n}(t)||function(t){var e,n,i=s(t)&&!a(t),r=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=l.length;for(e=0;e<c;e+=1)n=l[e],r=r||o(t,n);return i&&r}(t)||null==t}function on(t,e){if(t.date()<e.date())return-on(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(n+1,"months")-i)))||0}function an(t){var e;return void 0===t?this._locale._abbr:(null!=(e=me(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ln=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function cn(){return this._locale}var un=1e3,dn=6e4,hn=36e5,pn=126227808e5;function fn(t,e){return(t%e+e)%e}function gn(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-pn:new Date(t,e,n).valueOf()}function mn(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-pn:Date.UTC(t,e,n)}function vn(t,e){return e.erasAbbrRegex(t)}function yn(){var t,e,n,i,r,s=[],o=[],a=[],l=[],c=this.eras();for(t=0,e=c.length;t<e;++t)n=ct(c[t].name),i=ct(c[t].abbr),r=ct(c[t].narrow),o.push(n),s.push(i),a.push(r),l.push(n),l.push(i),l.push(r);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function bn(t,e){E(0,[t,t.length],0,e)}function xn(t,e,n,i,r){var s;return null==t?Zt(this,i,r).year:(e>(s=Gt(t,i,r))&&(e=s),wn.call(this,t,e,n,i,r))}function wn(t,e,n,i,r){var s=Vt(t,e,n,i,r),o=Wt(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}E("N",0,0,"eraAbbr"),E("NN",0,0,"eraAbbr"),E("NNN",0,0,"eraAbbr"),E("NNNN",0,0,"eraName"),E("NNNNN",0,0,"eraNarrow"),E("y",["y",1],"yo","eraYear"),E("y",["yy",2],0,"eraYear"),E("y",["yyy",3],0,"eraYear"),E("y",["yyyy",4],0,"eraYear"),at("N",vn),at("NN",vn),at("NNN",vn),at("NNNN",(function(t,e){return e.erasNameRegex(t)})),at("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),pt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,i){var r=n._locale.erasParse(t,i,n._strict);r?f(n).era=r:f(n).invalidEra=t})),at("y",tt),at("yy",tt),at("yyy",tt),at("yyyy",tt),at("yo",(function(t,e){return e._eraYearOrdinalRegex||tt})),pt(["y","yy","yyy","yyyy"],vt),pt(["yo"],(function(t,e,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[vt]=n._locale.eraYearOrdinalParse(t,r):e[vt]=parseInt(t,10)})),E(0,["gg",2],0,(function(){return this.weekYear()%100})),E(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),bn("gggg","weekYear"),bn("ggggg","weekYear"),bn("GGGG","isoWeekYear"),bn("GGGGG","isoWeekYear"),at("G",et),at("g",et),at("GG",Q,H),at("gg",Q,H),at("GGGG",$,Z),at("gggg",$,Z),at("GGGGG",K,G),at("ggggg",K,G),ft(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,i){e[i.substr(0,2)]=dt(t)})),ft(["gg","GG"],(function(t,e,n,r){e[r]=i.parseTwoDigitYear(t)})),E("Q",0,"Qo","quarter"),at("Q",W),pt("Q",(function(t,e){e[yt]=3*(dt(t)-1)})),E("D",["DD",2],"Do","date"),at("D",Q,st),at("DD",Q,H),at("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),pt(["D","DD"],bt),pt("Do",(function(t,e){e[bt]=dt(t.match(Q)[0])}));var An=Lt("Date",!0);E("DDD",["DDDD",3],"DDDo","dayOfYear"),at("DDD",q),at("DDDD",V),pt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=dt(t)})),E("m",["mm",2],0,"minute"),at("m",Q,ot),at("mm",Q,H),pt(["m","mm"],wt);var _n=Lt("Minutes",!1);E("s",["ss",2],0,"second"),at("s",Q,ot),at("ss",Q,H),pt(["s","ss"],At);var Cn,Mn,kn=Lt("Seconds",!1);for(E("S",0,0,(function(){return~~(this.millisecond()/100)})),E(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),E(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),E(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),E(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),E(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),E(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),at("S",q,W),at("SS",q,H),at("SSS",q,V),Cn="SSSS";Cn.length<=9;Cn+="S")at(Cn,tt);function Sn(t,e){e[_t]=dt(1e3*("0."+t))}for(Cn="S";Cn.length<=9;Cn+="S")pt(Cn,Sn);Mn=Lt("Milliseconds",!1),E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");var In=x.prototype;function Ln(t){return t}In.add=en,In.calendar=function(t,e){1===arguments.length&&(arguments[0]?sn(arguments[0])?(t=arguments[0],e=void 0):function(t){var e,n=s(t)&&!a(t),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)i=i||o(t,r[e]);return n&&i}(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||je(),r=Ve(n,this).startOf("day"),l=i.calendarFormat(this,r)||"sameElse",c=e&&(S(e[l])?e[l].call(this,n):e[l]);return this.format(c||this.localeData().calendar(l,this,je(n)))},In.clone=function(){return new x(this)},In.diff=function(t,e,n){var i,r,s;if(!this.isValid())return NaN;if(!(i=Ve(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=R(e)){case"year":s=on(this,i)/12;break;case"month":s=on(this,i);break;case"quarter":s=on(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-r)/864e5;break;case"week":s=(this-i-r)/6048e5;break;default:s=this-i}return n?s:ut(s)},In.endOf=function(t){var e,n;if(void 0===(t=R(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?mn:gn,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=hn-fn(e+(this._isUTC?0:this.utcOffset()*dn),hn)-1;break;case"minute":e=this._d.valueOf(),e+=dn-fn(e,dn)-1;break;case"second":e=this._d.valueOf(),e+=un-fn(e,un)-1}return this._d.setTime(e),i.updateOffset(this,!0),this},In.format=function(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=z(this,t);return this.localeData().postformat(e)},In.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||je(t).isValid())?Xe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},In.fromNow=function(t){return this.from(je(),t)},In.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||je(t).isValid())?Xe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},In.toNow=function(t){return this.to(je(),t)},In.get=function(t){return S(this[t=R(t)])?this[t]():this},In.invalidAt=function(){return f(this).overflow},In.isAfter=function(t,e){var n=w(t)?t:je(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=R(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},In.isBefore=function(t,e){var n=w(t)?t:je(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=R(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},In.isBetween=function(t,e,n,i){var r=w(t)?t:je(t),s=w(e)?e:je(e);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(s,n):!this.isAfter(s,n))},In.isSame=function(t,e){var n,i=w(t)?t:je(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=R(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},In.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},In.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},In.isValid=function(){return g(this)},In.lang=ln,In.locale=an,In.localeData=cn,In.max=ze,In.min=Ee,In.parsingFlags=function(){return h({},f(this))},In.set=function(t,e){if("object"==typeof t){var n,i=function(t){var e,n=[];for(e in t)o(t,e)&&n.push({unit:e,priority:U[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}(t=Y(t)),r=i.length;for(n=0;n<r;n++)this[i[n].unit](t[i[n].unit])}else if(S(this[t=R(t)]))return this[t](e);return this},In.startOf=function(t){var e,n;if(void 0===(t=R(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?mn:gn,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=fn(e+(this._isUTC?0:this.utcOffset()*dn),hn);break;case"minute":e=this._d.valueOf(),e-=fn(e,dn);break;case"second":e=this._d.valueOf(),e-=fn(e,un)}return this._d.setTime(e),i.updateOffset(this,!0),this},In.subtract=nn,In.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},In.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},In.toDate=function(){return new Date(this.valueOf())},In.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?z(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},In.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=r+'[")]',this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(In[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),In.toJSON=function(){return this.isValid()?this.toISOString():null},In.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},In.unix=function(){return Math.floor(this.valueOf()/1e3)},In.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},In.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},In.eraName=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].name;if(i[t].until<=n&&n<=i[t].since)return i[t].name}return""},In.eraNarrow=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].narrow;if(i[t].until<=n&&n<=i[t].since)return i[t].narrow}return""},In.eraAbbr=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].abbr;if(i[t].until<=n&&n<=i[t].since)return i[t].abbr}return""},In.eraYear=function(){var t,e,n,r,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t)if(n=s[t].since<=s[t].until?1:-1,r=this.clone().startOf("day").valueOf(),s[t].since<=r&&r<=s[t].until||s[t].until<=r&&r<=s[t].since)return(this.year()-i(s[t].since).year())*n+s[t].offset;return this.year()},In.year=It,In.isLeapYear=function(){return mt(this.year())},In.weekYear=function(t){return xn.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},In.isoWeekYear=function(t){return xn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},In.quarter=In.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},In.month=Yt,In.daysInMonth=function(){return Nt(this.year(),this.month())},In.week=In.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},In.isoWeek=In.isoWeeks=function(t){var e=Zt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},In.weeksInYear=function(){var t=this.localeData()._week;return Gt(this.year(),t.dow,t.doy)},In.weeksInWeekYear=function(){var t=this.localeData()._week;return Gt(this.weekYear(),t.dow,t.doy)},In.isoWeeksInYear=function(){return Gt(this.year(),1,4)},In.isoWeeksInISOWeekYear=function(){return Gt(this.isoWeekYear(),1,4)},In.date=An,In.day=In.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=Dt(this,"Day");return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},In.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},In.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},In.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},In.hour=In.hours=oe,In.minute=In.minutes=_n,In.second=In.seconds=kn,In.millisecond=In.milliseconds=Mn,In.utcOffset=function(t,e,n){var r,s=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=He(it,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=Ze(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),s!==t&&(!e||this._changeInProgress?tn(this,Xe(t-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:Ze(this)},In.utc=function(t){return this.utcOffset(0,t)},In.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ze(this),"m")),this},In.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=He(nt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},In.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?je(t).utcOffset():0,(this.utcOffset()-t)%60==0)},In.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},In.isLocal=function(){return!!this.isValid()&&!this._isUTC},In.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},In.isUtc=Ge,In.isUTC=Ge,In.zoneAbbr=function(){return this._isUTC?"UTC":""},In.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},In.dates=_("dates accessor is deprecated. Use date instead.",An),In.months=_("months accessor is deprecated. Use month instead",Yt),In.years=_("years accessor is deprecated. Use year instead",It),In.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),In.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var t,e={};return b(e,this),(e=Ne(e))._a?(t=e._isUTC?p(e._a):je(e._a),this._isDSTShifted=this.isValid()&&function(t,e,n){var i,r=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),o=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&dt(t[i])!==dt(e[i]))&&o++;return o+s}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Dn=L.prototype;function Tn(t,e,n,i){var r=me(),s=p().set(i,e);return r[n](s,t)}function Nn(t,e,n){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return Tn(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Tn(t,i,n,"month");return r}function On(t,e,n,i){"boolean"==typeof t?(c(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,c(e)&&(n=e,e=void 0),e=e||"");var r,s=me(),o=t?s._week.dow:0,a=[];if(null!=n)return Tn(e,(n+o)%7,i,"day");for(r=0;r<7;r++)a[r]=Tn(e,(r+o)%7,i,"day");return a}Dn.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return S(i)?i.call(e,n):i},Dn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(T).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Dn.invalidDate=function(){return this._invalidDate},Dn.ordinal=function(t){return this._ordinal.replace("%d",t)},Dn.preparse=Ln,Dn.postformat=Ln,Dn.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return S(r)?r(t,e,n,i):r.replace(/%d/i,t)},Dn.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return S(n)?n(e):n.replace(/%s/i,e)},Dn.set=function(t){var e,n;for(n in t)o(t,n)&&(S(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Dn.eras=function(t,e){var n,r,s,o=this._eras||me("en")._eras;for(n=0,r=o.length;n<r;++n)switch("string"==typeof o[n].since&&(s=i(o[n].since).startOf("day"),o[n].since=s.valueOf()),typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":s=i(o[n].until).startOf("day").valueOf(),o[n].until=s.valueOf()}return o},Dn.erasParse=function(t,e,n){var i,r,s,o,a,l=this.eras();for(t=t.toUpperCase(),i=0,r=l.length;i<r;++i)if(s=l[i].name.toUpperCase(),o=l[i].abbr.toUpperCase(),a=l[i].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(o===t)return l[i];break;case"NNNN":if(s===t)return l[i];break;case"NNNNN":if(a===t)return l[i]}else if([s,o,a].indexOf(t)>=0)return l[i]},Dn.erasConvertYear=function(t,e){var n=t.since<=t.until?1:-1;return void 0===e?i(t.since).year():i(t.since).year()+(e-t.offset)*n},Dn.erasAbbrRegex=function(t){return o(this,"_erasAbbrRegex")||yn.call(this),t?this._erasAbbrRegex:this._erasRegex},Dn.erasNameRegex=function(t){return o(this,"_erasNameRegex")||yn.call(this),t?this._erasNameRegex:this._erasRegex},Dn.erasNarrowRegex=function(t){return o(this,"_erasNarrowRegex")||yn.call(this),t?this._erasNarrowRegex:this._erasRegex},Dn.months=function(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Et).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone},Dn.monthsShort=function(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Et.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Dn.monthsParse=function(t,e,n){var i,r,s;if(this._monthsParseExact)return Pt.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},Dn.monthsRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||Ut.call(this),t?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Ft),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Dn.monthsShortRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||Ut.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=zt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Dn.week=function(t){return Zt(t,this._week.dow,this._week.doy).week},Dn.firstDayOfYear=function(){return this._week.doy},Dn.firstDayOfWeek=function(){return this._week.dow},Dn.weekdays=function(t,e){var n=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Qt(n,this._week.dow):t?n[t.day()]:n},Dn.weekdaysMin=function(t){return!0===t?Qt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Dn.weekdaysShort=function(t){return!0===t?Qt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Dn.weekdaysParse=function(t,e,n){var i,r,s;if(this._weekdaysParseExact)return ee.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},Dn.weekdaysRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=$t),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Dn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Kt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Dn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=te),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Dn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Dn.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},fe("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===dt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=_("moment.lang is deprecated. Use moment.locale instead.",fe),i.langData=_("moment.langData is deprecated. Use moment.localeData instead.",me);var jn=Math.abs;function En(t,e,n,i){var r=Xe(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function zn(t){return t<0?Math.floor(t):Math.ceil(t)}function Fn(t){return 4800*t/146097}function Pn(t){return 146097*t/4800}function Rn(t){return function(){return this.as(t)}}var Yn=Rn("ms"),Un=Rn("s"),Bn=Rn("m"),Wn=Rn("h"),Hn=Rn("d"),Vn=Rn("w"),Zn=Rn("M"),Gn=Rn("Q"),Qn=Rn("y"),Jn=Yn;function Xn(t){return function(){return this.isValid()?this._data[t]:NaN}}var qn=Xn("milliseconds"),$n=Xn("seconds"),Kn=Xn("minutes"),ti=Xn("hours"),ei=Xn("days"),ni=Xn("months"),ii=Xn("years");var ri=Math.round,si={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function oi(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}var ai=Math.abs;function li(t){return(t>0)-(t<0)||+t}function ci(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,r,s,o,a,l=ai(this._milliseconds)/1e3,c=ai(this._days),u=ai(this._months),d=this.asSeconds();return d?(t=ut(l/60),e=ut(t/60),l%=60,t%=60,n=ut(u/12),u%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",s=li(this._months)!==li(d)?"-":"",o=li(this._days)!==li(d)?"-":"",a=li(this._milliseconds)!==li(d)?"-":"",r+"P"+(n?s+n+"Y":"")+(u?s+u+"M":"")+(c?o+c+"D":"")+(e||t||l?"T":"")+(e?a+e+"H":"")+(t?a+t+"M":"")+(l?a+i+"S":"")):"P0D"}var ui=Re.prototype;return ui.isValid=function(){return this._isValid},ui.abs=function(){var t=this._data;return this._milliseconds=jn(this._milliseconds),this._days=jn(this._days),this._months=jn(this._months),t.milliseconds=jn(t.milliseconds),t.seconds=jn(t.seconds),t.minutes=jn(t.minutes),t.hours=jn(t.hours),t.months=jn(t.months),t.years=jn(t.years),this},ui.add=function(t,e){return En(this,t,e,1)},ui.subtract=function(t,e){return En(this,t,e,-1)},ui.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=R(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+Fn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Pn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},ui.asMilliseconds=Yn,ui.asSeconds=Un,ui.asMinutes=Bn,ui.asHours=Wn,ui.asDays=Hn,ui.asWeeks=Vn,ui.asMonths=Zn,ui.asQuarters=Gn,ui.asYears=Qn,ui.valueOf=Jn,ui._bubble=function(){var t,e,n,i,r,s=this._milliseconds,o=this._days,a=this._months,l=this._data;return s>=0&&o>=0&&a>=0||s<=0&&o<=0&&a<=0||(s+=864e5*zn(Pn(a)+o),o=0,a=0),l.milliseconds=s%1e3,t=ut(s/1e3),l.seconds=t%60,e=ut(t/60),l.minutes=e%60,n=ut(e/60),l.hours=n%24,o+=ut(n/24),a+=r=ut(Fn(o)),o-=zn(Pn(r)),i=ut(a/12),a%=12,l.days=o,l.months=a,l.years=i,this},ui.clone=function(){return Xe(this)},ui.get=function(t){return t=R(t),this.isValid()?this[t+"s"]():NaN},ui.milliseconds=qn,ui.seconds=$n,ui.minutes=Kn,ui.hours=ti,ui.days=ei,ui.weeks=function(){return ut(this.days()/7)},ui.months=ni,ui.years=ii,ui.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,s=si;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(s=Object.assign({},si,e),null!=e.s&&null==e.ss&&(s.ss=e.s-1)),i=function(t,e,n,i){var r=Xe(t).abs(),s=ri(r.as("s")),o=ri(r.as("m")),a=ri(r.as("h")),l=ri(r.as("d")),c=ri(r.as("M")),u=ri(r.as("w")),d=ri(r.as("y")),h=s<=n.ss&&["s",s]||s<n.s&&["ss",s]||o<=1&&["m"]||o<n.m&&["mm",o]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=e,h[3]=+t>0,h[4]=i,oi.apply(null,h)}(this,!r,s,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},ui.toISOString=ci,ui.toString=ci,ui.toJSON=ci,ui.locale=an,ui.localeData=cn,ui.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ci),ui.lang=ln,E("X",0,0,"unix"),E("x",0,0,"valueOf"),at("x",et),at("X",/[+-]?\d+(\.\d{1,3})?/),pt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),pt("x",(function(t,e,n){n._d=new Date(dt(t))})),i.version="2.30.1",e=je,i.fn=In,i.min=function(){return Fe("isBefore",[].slice.call(arguments,0))},i.max=function(){return Fe("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=p,i.unix=function(t){return je(1e3*t)},i.months=function(t,e){return Nn(t,e,"months")},i.isDate=u,i.locale=fe,i.invalid=m,i.duration=Xe,i.isMoment=w,i.weekdays=function(t,e,n){return On(t,e,n,"weekdays")},i.parseZone=function(){return je.apply(null,arguments).parseZone()},i.localeData=me,i.isDuration=Ye,i.monthsShort=function(t,e){return Nn(t,e,"monthsShort")},i.weekdaysMin=function(t,e,n){return On(t,e,n,"weekdaysMin")},i.defineLocale=ge,i.updateLocale=function(t,e){if(null!=e){var n,i,r=le;null!=ce[t]&&null!=ce[t].parentLocale?ce[t].set(I(ce[t]._config,e)):(null!=(i=pe(t))&&(r=i._config),e=I(r,e),null==i&&(e.abbr=t),(n=new L(e)).parentLocale=ce[t],ce[t]=n),fe(t)}else null!=ce[t]&&(null!=ce[t].parentLocale?(ce[t]=ce[t].parentLocale,t===fe()&&fe(t)):null!=ce[t]&&delete ce[t]);return ce[t]},i.locales=function(){return C(ce)},i.weekdaysShort=function(t,e,n){return On(t,e,n,"weekdaysShort")},i.normalizeUnits=R,i.relativeTimeRounding=function(t){return void 0===t?ri:"function"==typeof t&&(ri=t,!0)},i.relativeTimeThreshold=function(t,e){return void 0!==si[t]&&(void 0===e?si[t]:(si[t]=e,"s"===t&&(si.ss=e-1),!0))},i.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=In,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},85:t=>{"use strict";t.exports=JSON.parse('{"unitFormatGBP":"£","unitFormatUSD":"US $","unitFormatEUR":"€","unitFormatMXN":"MXN $","unitFormatUAH":"₴","centsUSD":"cents","centsEUR":"cents","centsAUD":"cents","centsZAR":"cents","centsMXN":"cents","centsGBP":"pence"}')},343:t=>{"use strict";t.exports=JSON.parse('{"Name":"Name","Number":"Number","IssueDate":"IssueDate","Paragraph":"Paragraph","Subparagraph":"Subparagraph","URI":"URI","URIDate":"URIDate","Note":"Note"}')},997:t=>{"use strict";t.exports=JSON.parse('{"calculation":{"calculated-total":"Calculated","concept":"Concept","consistent-duplicate-facts-present":"{{nfacts}} consistent duplicate facts present","does-not-bind":"Calculation does not bind","inconsistent-duplicate-facts-present":"{{nfacts}} inconsistent duplicate facts present","maximum":"Maximum","mininum":"Minimum","reported-total":"Reported","reported-value":"Reported value","useCalculations11":"Use Calculations v1.1"},"common":{"accuracyInfinite":"Infinite precision","none":"None","notApplicable":"n/a","unscaled":"Unscaled","unspecified":"Unspecified"},"factDetails":{"accuracy":"Accuracy","calculationIsConsistent":"Calculation is consistent","calculationIsInconsistent":"Calculation is inconsistent","calculationUnchecked":"Calculation not checked due to presence of duplicate facts","calculationUncheckedIncorrectVersion":"Calculation 1.1 relationships not checked in legacy calculation mode","change":"Change","changeFromIn":"From {{from}} in ","changePercentageDecrease":"{{decrease}}% decrease on ","changePercentageIncrease":"{{increase}}% increase on ","concept":"Concept","date":"Date","dimensions":"Dimensions","duplicatesCount":"{{current}} of {{total}}","entity":"Entity","factValue":"Fact Value","nonNumericFact":"non-numeric fact","noPriorFactInThisReport":"No prior fact in this report","noUnit":"<NOUNIT>","properties":"Properties","scale":"Scale","viewCalculationDetails":"View calculation details"},"footnotes":{"footnote":"Footnote"},"inspector":{"anchoring":"Anchoring","associatedFacts":"Associated facts","calculationDetails":"Calculation details","calculations":"Calculations","concealedFact":"Concealed fact","conceptType":"Concept Type","contributor":"Contributor","dimensions":"Dimension Type","documentOutline":"Document outline","documentSummary":"Document summary","explicitDimension":"Explicit Dimensions","fact-groups":"Sections","factProperties":"Fact Properties","factSearch":"Fact Search","factValue":"Fact Value","filter":"Filter","footnoteProperties":"Footnote Properties","footnotes":"Footnotes","hiddenFact":"Hidden Fact","hiddenFacts":"Hidden Facts","highlight":"Highlight","initializing":"Initializing","loadingViewer":"Loading iXBRL Viewer","matchingFacts":" matching facts(s)","namespaces":"Namespaces","narrowerAnchor":"Narrower anchors","negative":"Negative","nextTag":"Next tag","noFactSelected":"No Fact Selected","numericOption":"Numeric","outlineUnavailable":"Outline Unavailable","period":"Period","positive":"Positive","previousTag":"Previous tag","printDocument":"Print Document","references":"References","reset":"Reset","scales":"Scales","searchTitle":"Search","showTextOnly":"Show text only","summary":{"fact":{"header":"Fact Summary","title":"Total Facts:"},"file":{"calculations":"Calculation Linkbases","definitions":"Definition Linkbases","header":"File Summary","inline":"Inline Documents","labels":"Label Linkbases","other":"Other Linkbases","presentation":"Presentation Linkbases","references":"Reference Linkbases","schemas":"Schemas","reportCreation":"Report Creation"},"tag":{"colDimensions":"Dimensions","colMembers":"Members","colNamespace":"Namespace","colPrimaryItems":"Primary Items","colTotal":"Total","header":"Tag Summary","rowTotal":"Total"}},"summation":"Summation","targetDocument":"Target Document","textOption":"Text","typedDimensions":"Typed Dimensions","units":"Units","validationCode":"Code","validationMessage":"Message","validationResults":"Validation results","validationSeverity":"Severity","visibleFacts":"Visible Facts","widerAnchor":"Wider anchor"},"scale":{"0":"ones","1":"tens","2":"hundreds","3":"thousands","4":"ten thousands","5":"hundred thousands","6":"millions","7":"ten millions","8":"hundred millions","9":"billions","-3":"thousandths","-2":"hundredths","-1":"tenths"},"search":{"concealedFact":"Concealed fact","default":"default","hiddenFact":"Hidden fact","noMatchFound":"No match found","selected":"selected","showMoreResults":"Show more results","tryAgainDifferentKeywords":"Try again with different keywords"},"toolbar":{"xbrlElements":"XBRL Elements"}}')},476:t=>{"use strict";t.exports=JSON.parse('{"centsUSD":"centavos","centsEUR":"centavos","centsAUD":"centavos","centsZAR":"centavos","centsMXN":"centavos","centsGBP":"centavos"}')},6:t=>{"use strict";t.exports=JSON.parse('{"Name":"Nombre","Number":"Número","IssueDate":"Fecha de Emisión","Paragraph":"Párrafo","Subparagraph":"Subpárrafo","URI":"URI","URIDate":"Fecha de URI","Note":"Nota"}')},702:t=>{"use strict";t.exports=JSON.parse('{"calculation":{"calculated-total":"","concept":"","consistent-duplicate-facts-present":"","does-not-bind":"","inconsistent-duplicate-facts-present":"","maximum":"","mininum":"","reported-total":"","reported-value":"","useCalculations11":""},"common":{"accuracyInfinite":"Precisió infinita","none":"Ninguno","notApplicable":"n/d","unscaled":"Sin escala","unspecified":"Sin especificar"},"factDetails":{"accuracy":"Precisión","calculationIsConsistent":"","calculationIsInconsistent":"","calculationUnchecked":"","change":"Cambio","changeFromIn":"Anteriormente {{from}} en ","changePercentageDecrease":"{{decrease}}% menos que en ","changePercentageIncrease":"{{increase}}% más que en ","concept":"Concepto","date":"Fecha","dimensions":"Dimensiones","duplicatesCount":"{{current}} de {{total}}","entity":"Entidad","factValue":"Valor del hecho","nonNumericFact":"","noPriorFactInThisReport":"No hay un hecho previo","noUnit":"Sin unidad","properties":"Características","scale":"Escala","viewCalculationDetails":""},"footnotes":{"footnote":"Nota al pie de página"},"inspector":{"anchoring":"Anclaje","associatedFacts":"Hechos asociados","calculationDetails":"","calculations":"Cálculos","concealedFact":"","conceptType":"Tipo de concepto","contributor":"","dimensions":"","documentOutline":"","documentSummary":"","explicitDimension":"","fact-groups":"","factProperties":"Propiedades del hecho","factSearch":"Búsqueda de hechos","factValue":"","filter":"Filtro","footnoteProperties":"Propiedades de la nota al pie de página","footnotes":"Notas al pie de página","hiddenFact":"Hecho oculto","hiddenFacts":"Hechos ocultos","highlight":"Destacar","initializing":"","loadingViewer":"Preparando el visor iXBRL","matchingFacts":"","namespaces":"","narrowerAnchor":"Anclaje angosto","negative":"","nextTag":"","noFactSelected":"Ningún hecho seleccionado","numericOption":"Numérico","outlineUnavailable":"","period":"Periodo","positive":"","previousTag":"","printDocument":"","references":"Referencias","reset":"Limpiar","scales":"Escalas","searchTitle":"Búsqueda de hechos","showTextOnly":"","summary":{"fact":{"header":"","title":""},"file":{"calculations":"","definitions":"","header":"","inline":"","labels":"","other":"","presentation":"","references":"","schemas":"","reportCreation":""},"tag":{"colDimensions":"","colMembers":"","colNamespace":"","colPrimaryItems":"","colTotal":"","header":"","rowTotal":""}},"summation":"","targetDocument":"","textOption":"Texto","typedDimensions":"","units":"Unidads","validationCode":"","validationMessage":"","validationResults":"","validationSeverity":"","visibleFacts":"Hechos visibles","widerAnchor":"Anclaje amplio"},"scale":{"0":"unidades","1":"décimos","2":"cientos","3":"miles","4":"diez miles","5":"cien miles","6":"millones","7":"diez millones","8":"cien millones","9":"billones","-3":"milésimos","-2":"centésimos","-1":"décimas"},"search":{"concealedFact":"","default":"","hiddenFact":"Hecho oculto","noMatchFound":"No se encontró ninguna coincidencia","selected":"seleccionados","showMoreResults":"Mostrar más resultados","tryAgainDifferentKeywords":"Intente nuevamente con palabras clave diferentes"},"toolbar":{"xbrlElements":"Elementos XBRL"}}')}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={id:i,loaded:!1,exports:{}};return t[i].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{"use strict";var t=n(651),e=n.n(t),i=n(806),r=n.n(i);class s{constructor(t,e){this._c=t.concepts()[e]||{},this.name=e,this.report=t}referenceValuesAsString(){return this._c.r?this._c.r.flatMap((t=>t.map((t=>t[1])))).join(" "):""}references(){return this._c.r?this._c.r.map((t=>t.map((t=>({part:t[0],value:t[1]}))))):[]}isTypedDimension(){return"t"===this._c.d}isExplicitDimension(){return"e"===this._c.d}isDimension(){return"d"in this._c}isEnumeration(){return Boolean(this._c&&this._c.e)}label(){return this.report.getLabelOrName(this.name)}isTextBlock(){return Boolean(this._c.t)}typedDomainElement(){return this._c.td}}var o,a,l=n(420),c=n.n(l),u=9e15,d=1e9,h="0123456789abcdef",p="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",f="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",g={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-u,maxE:u,crypto:!1},m=!0,v="[DecimalError] ",y=v+"Invalid argument: ",b=v+"Precision limit exceeded",x=v+"crypto unavailable",w="[object Decimal]",A=Math.floor,_=Math.pow,C=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,M=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,k=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,S=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,I=1e7,L=p.length-1,D=f.length-1,T={toStringTag:w};function N(t){var e,n,i,r=t.length-1,s="",o=t[0];if(r>0){for(s+=o,e=1;e<r;e++)(n=7-(i=t[e]+"").length)&&(s+=W(n)),s+=i;(n=7-(i=(o=t[e])+"").length)&&(s+=W(n))}else if(0===o)return"0";for(;o%10==0;)o/=10;return s+o}function O(t,e,n){if(t!==~~t||t<e||t>n)throw Error(y+t)}function j(t,e,n,i){var r,s,o,a;for(s=t[0];s>=10;s/=10)--e;return--e<0?(e+=7,r=0):(r=Math.ceil((e+1)/7),e%=7),s=_(10,7-e),a=t[r]%s|0,null==i?e<3?(0==e?a=a/100|0:1==e&&(a=a/10|0),o=n<4&&99999==a||n>3&&49999==a||5e4==a||0==a):o=(n<4&&a+1==s||n>3&&a+1==s/2)&&(t[r+1]/s/100|0)==_(10,e-2)-1||(a==s/2||0==a)&&!(t[r+1]/s/100|0):e<4?(0==e?a=a/1e3|0:1==e?a=a/100|0:2==e&&(a=a/10|0),o=(i||n<4)&&9999==a||!i&&n>3&&4999==a):o=((i||n<4)&&a+1==s||!i&&n>3&&a+1==s/2)&&(t[r+1]/s/1e3|0)==_(10,e-3)-1,o}function E(t,e,n){for(var i,r,s=[0],o=0,a=t.length;o<a;){for(r=s.length;r--;)s[r]*=e;for(s[0]+=h.indexOf(t.charAt(o++)),i=0;i<s.length;i++)s[i]>n-1&&(void 0===s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}T.absoluteValue=T.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),F(t)},T.ceil=function(){return F(new this.constructor(this),this.e+1,2)},T.clampedTo=T.clamp=function(t,e){var n=this,i=n.constructor;if(t=new i(t),e=new i(e),!t.s||!e.s)return new i(NaN);if(t.gt(e))throw Error(y+e);return n.cmp(t)<0?t:n.cmp(e)>0?e:new i(n)},T.comparedTo=T.cmp=function(t){var e,n,i,r,s=this,o=s.d,a=(t=new s.constructor(t)).d,l=s.s,c=t.s;if(!o||!a)return l&&c?l!==c?l:o===a?0:!o^l<0?1:-1:NaN;if(!o[0]||!a[0])return o[0]?l:a[0]?-c:0;if(l!==c)return l;if(s.e!==t.e)return s.e>t.e^l<0?1:-1;for(e=0,n=(i=o.length)<(r=a.length)?i:r;e<n;++e)if(o[e]!==a[e])return o[e]>a[e]^l<0?1:-1;return i===r?0:i>r^l<0?1:-1},T.cosine=T.cos=function(){var t,e,n=this,i=n.constructor;return n.d?n.d[0]?(t=i.precision,e=i.rounding,i.precision=t+Math.max(n.e,n.sd())+7,i.rounding=1,n=function(t,e){var n,i,r;if(e.isZero())return e;(i=e.d.length)<32?r=(1/K(4,n=Math.ceil(i/3))).toString():(n=16,r="2.3283064365386962890625e-10"),t.precision+=n,e=$(t,1,e.times(r),new t(1));for(var s=n;s--;){var o=e.times(e);e=o.times(o).minus(o).times(8).plus(1)}return t.precision-=n,e}(i,tt(i,n)),i.precision=t,i.rounding=e,F(2==a||3==a?n.neg():n,t,e,!0)):new i(1):new i(NaN)},T.cubeRoot=T.cbrt=function(){var t,e,n,i,r,s,o,a,l,c,u=this,d=u.constructor;if(!u.isFinite()||u.isZero())return new d(u);for(m=!1,(s=u.s*_(u.s*u,1/3))&&Math.abs(s)!=1/0?i=new d(s.toString()):(n=N(u.d),(s=((t=u.e)-n.length+1)%3)&&(n+=1==s||-2==s?"0":"00"),s=_(n,1/3),t=A((t+1)/3)-(t%3==(t<0?-1:2)),(i=new d(n=s==1/0?"5e"+t:(n=s.toExponential()).slice(0,n.indexOf("e")+1)+t)).s=u.s),o=(t=d.precision)+3;;)if(c=(l=(a=i).times(a).times(a)).plus(u),i=z(c.plus(u).times(a),c.plus(l),o+2,1),N(a.d).slice(0,o)===(n=N(i.d)).slice(0,o)){if("9999"!=(n=n.slice(o-3,o+1))&&(r||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(F(i,t+1,1),e=!i.times(i).times(i).eq(u));break}if(!r&&(F(a,t+1,0),a.times(a).times(a).eq(u))){i=a;break}o+=4,r=1}return m=!0,F(i,t,d.rounding,e)},T.decimalPlaces=T.dp=function(){var t,e=this.d,n=NaN;if(e){if(n=7*((t=e.length-1)-A(this.e/7)),t=e[t])for(;t%10==0;t/=10)n--;n<0&&(n=0)}return n},T.dividedBy=T.div=function(t){return z(this,new this.constructor(t))},T.dividedToIntegerBy=T.divToInt=function(t){var e=this.constructor;return F(z(this,new e(t),0,1,1),e.precision,e.rounding)},T.equals=T.eq=function(t){return 0===this.cmp(t)},T.floor=function(){return F(new this.constructor(this),this.e+1,3)},T.greaterThan=T.gt=function(t){return this.cmp(t)>0},T.greaterThanOrEqualTo=T.gte=function(t){var e=this.cmp(t);return 1==e||0===e},T.hyperbolicCosine=T.cosh=function(){var t,e,n,i,r,s=this,o=s.constructor,a=new o(1);if(!s.isFinite())return new o(s.s?1/0:NaN);if(s.isZero())return a;n=o.precision,i=o.rounding,o.precision=n+Math.max(s.e,s.sd())+4,o.rounding=1,(r=s.d.length)<32?e=(1/K(4,t=Math.ceil(r/3))).toString():(t=16,e="2.3283064365386962890625e-10"),s=$(o,1,s.times(e),new o(1),!0);for(var l,c=t,u=new o(8);c--;)l=s.times(s),s=a.minus(l.times(u.minus(l.times(u))));return F(s,o.precision=n,o.rounding=i,!0)},T.hyperbolicSine=T.sinh=function(){var t,e,n,i,r=this,s=r.constructor;if(!r.isFinite()||r.isZero())return new s(r);if(e=s.precision,n=s.rounding,s.precision=e+Math.max(r.e,r.sd())+4,s.rounding=1,(i=r.d.length)<3)r=$(s,2,r,r,!0);else{t=(t=1.4*Math.sqrt(i))>16?16:0|t,r=$(s,2,r=r.times(1/K(5,t)),r,!0);for(var o,a=new s(5),l=new s(16),c=new s(20);t--;)o=r.times(r),r=r.times(a.plus(o.times(l.times(o).plus(c))))}return s.precision=e,s.rounding=n,F(r,e,n,!0)},T.hyperbolicTangent=T.tanh=function(){var t,e,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(t=i.precision,e=i.rounding,i.precision=t+7,i.rounding=1,z(n.sinh(),n.cosh(),i.precision=t,i.rounding=e)):new i(n.s)},T.inverseCosine=T.acos=function(){var t,e=this,n=e.constructor,i=e.abs().cmp(1),r=n.precision,s=n.rounding;return-1!==i?0===i?e.isNeg()?U(n,r,s):new n(0):new n(NaN):e.isZero()?U(n,r+4,s).times(.5):(n.precision=r+6,n.rounding=1,e=e.asin(),t=U(n,r+4,s).times(.5),n.precision=r,n.rounding=s,t.minus(e))},T.inverseHyperbolicCosine=T.acosh=function(){var t,e,n=this,i=n.constructor;return n.lte(1)?new i(n.eq(1)?0:NaN):n.isFinite()?(t=i.precision,e=i.rounding,i.precision=t+Math.max(Math.abs(n.e),n.sd())+4,i.rounding=1,m=!1,n=n.times(n).minus(1).sqrt().plus(n),m=!0,i.precision=t,i.rounding=e,n.ln()):new i(n)},T.inverseHyperbolicSine=T.asinh=function(){var t,e,n=this,i=n.constructor;return!n.isFinite()||n.isZero()?new i(n):(t=i.precision,e=i.rounding,i.precision=t+2*Math.max(Math.abs(n.e),n.sd())+6,i.rounding=1,m=!1,n=n.times(n).plus(1).sqrt().plus(n),m=!0,i.precision=t,i.rounding=e,n.ln())},T.inverseHyperbolicTangent=T.atanh=function(){var t,e,n,i,r=this,s=r.constructor;return r.isFinite()?r.e>=0?new s(r.abs().eq(1)?r.s/0:r.isZero()?r:NaN):(t=s.precision,e=s.rounding,i=r.sd(),Math.max(i,t)<2*-r.e-1?F(new s(r),t,e,!0):(s.precision=n=i-r.e,r=z(r.plus(1),new s(1).minus(r),n+t,1),s.precision=t+4,s.rounding=1,r=r.ln(),s.precision=t,s.rounding=e,r.times(.5))):new s(NaN)},T.inverseSine=T.asin=function(){var t,e,n,i,r=this,s=r.constructor;return r.isZero()?new s(r):(e=r.abs().cmp(1),n=s.precision,i=s.rounding,-1!==e?0===e?((t=U(s,n+4,i).times(.5)).s=r.s,t):new s(NaN):(s.precision=n+6,s.rounding=1,r=r.div(new s(1).minus(r.times(r)).sqrt().plus(1)).atan(),s.precision=n,s.rounding=i,r.times(2)))},T.inverseTangent=T.atan=function(){var t,e,n,i,r,s,o,a,l,c=this,u=c.constructor,d=u.precision,h=u.rounding;if(c.isFinite()){if(c.isZero())return new u(c);if(c.abs().eq(1)&&d+4<=D)return(o=U(u,d+4,h).times(.25)).s=c.s,o}else{if(!c.s)return new u(NaN);if(d+4<=D)return(o=U(u,d+4,h).times(.5)).s=c.s,o}for(u.precision=a=d+10,u.rounding=1,t=n=Math.min(28,a/7+2|0);t;--t)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(m=!1,e=Math.ceil(a/7),i=1,l=c.times(c),o=new u(c),r=c;-1!==t;)if(r=r.times(l),s=o.minus(r.div(i+=2)),r=r.times(l),void 0!==(o=s.plus(r.div(i+=2))).d[e])for(t=e;o.d[t]===s.d[t]&&t--;);return n&&(o=o.times(2<<n-1)),m=!0,F(o,u.precision=d,u.rounding=h,!0)},T.isFinite=function(){return!!this.d},T.isInteger=T.isInt=function(){return!!this.d&&A(this.e/7)>this.d.length-2},T.isNaN=function(){return!this.s},T.isNegative=T.isNeg=function(){return this.s<0},T.isPositive=T.isPos=function(){return this.s>0},T.isZero=function(){return!!this.d&&0===this.d[0]},T.lessThan=T.lt=function(t){return this.cmp(t)<0},T.lessThanOrEqualTo=T.lte=function(t){return this.cmp(t)<1},T.logarithm=T.log=function(t){var e,n,i,r,s,o,a,l,c=this,u=c.constructor,d=u.precision,h=u.rounding;if(null==t)t=new u(10),e=!0;else{if(n=(t=new u(t)).d,t.s<0||!n||!n[0]||t.eq(1))return new u(NaN);e=t.eq(10)}if(n=c.d,c.s<0||!n||!n[0]||c.eq(1))return new u(n&&!n[0]?-1/0:1!=c.s?NaN:n?0:1/0);if(e)if(n.length>1)s=!0;else{for(r=n[0];r%10==0;)r/=10;s=1!==r}if(m=!1,o=Q(c,a=d+5),i=e?Y(u,a+10):Q(t,a),j((l=z(o,i,a,1)).d,r=d,h))do{if(o=Q(c,a+=10),i=e?Y(u,a+10):Q(t,a),l=z(o,i,a,1),!s){+N(l.d).slice(r+1,r+15)+1==1e14&&(l=F(l,d+1,0));break}}while(j(l.d,r+=10,h));return m=!0,F(l,d,h)},T.minus=T.sub=function(t){var e,n,i,r,s,o,a,l,c,u,d,h,p=this,f=p.constructor;if(t=new f(t),!p.d||!t.d)return p.s&&t.s?p.d?t.s=-t.s:t=new f(t.d||p.s!==t.s?p:NaN):t=new f(NaN),t;if(p.s!=t.s)return t.s=-t.s,p.plus(t);if(c=p.d,h=t.d,a=f.precision,l=f.rounding,!c[0]||!h[0]){if(h[0])t.s=-t.s;else{if(!c[0])return new f(3===l?-0:0);t=new f(p)}return m?F(t,a,l):t}if(n=A(t.e/7),u=A(p.e/7),c=c.slice(),s=u-n){for((d=s<0)?(e=c,s=-s,o=h.length):(e=h,n=u,o=c.length),s>(i=Math.max(Math.ceil(a/7),o)+2)&&(s=i,e.length=1),e.reverse(),i=s;i--;)e.push(0);e.reverse()}else{for((d=(i=c.length)<(o=h.length))&&(o=i),i=0;i<o;i++)if(c[i]!=h[i]){d=c[i]<h[i];break}s=0}for(d&&(e=c,c=h,h=e,t.s=-t.s),o=c.length,i=h.length-o;i>0;--i)c[o++]=0;for(i=h.length;i>s;){if(c[--i]<h[i]){for(r=i;r&&0===c[--r];)c[r]=I-1;--c[r],c[i]+=I}c[i]-=h[i]}for(;0===c[--o];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(t.d=c,t.e=R(c,n),m?F(t,a,l):t):new f(3===l?-0:0)},T.modulo=T.mod=function(t){var e,n=this,i=n.constructor;return t=new i(t),!n.d||!t.s||t.d&&!t.d[0]?new i(NaN):!t.d||n.d&&!n.d[0]?F(new i(n),i.precision,i.rounding):(m=!1,9==i.modulo?(e=z(n,t.abs(),0,3,1)).s*=t.s:e=z(n,t,0,i.modulo,1),e=e.times(t),m=!0,n.minus(e))},T.naturalExponential=T.exp=function(){return G(this)},T.naturalLogarithm=T.ln=function(){return Q(this)},T.negated=T.neg=function(){var t=new this.constructor(this);return t.s=-t.s,F(t)},T.plus=T.add=function(t){var e,n,i,r,s,o,a,l,c,u,d=this,h=d.constructor;if(t=new h(t),!d.d||!t.d)return d.s&&t.s?d.d||(t=new h(t.d||d.s===t.s?d:NaN)):t=new h(NaN),t;if(d.s!=t.s)return t.s=-t.s,d.minus(t);if(c=d.d,u=t.d,a=h.precision,l=h.rounding,!c[0]||!u[0])return u[0]||(t=new h(d)),m?F(t,a,l):t;if(s=A(d.e/7),i=A(t.e/7),c=c.slice(),r=s-i){for(r<0?(n=c,r=-r,o=u.length):(n=u,i=s,o=c.length),r>(o=(s=Math.ceil(a/7))>o?s+1:o+1)&&(r=o,n.length=1),n.reverse();r--;)n.push(0);n.reverse()}for((o=c.length)-(r=u.length)<0&&(r=o,n=u,u=c,c=n),e=0;r;)e=(c[--r]=c[r]+u[r]+e)/I|0,c[r]%=I;for(e&&(c.unshift(e),++i),o=c.length;0==c[--o];)c.pop();return t.d=c,t.e=R(c,i),m?F(t,a,l):t},T.precision=T.sd=function(t){var e,n=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(y+t);return n.d?(e=B(n.d),t&&n.e+1>e&&(e=n.e+1)):e=NaN,e},T.round=function(){var t=this,e=t.constructor;return F(new e(t),t.e+1,e.rounding)},T.sine=T.sin=function(){var t,e,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(t=i.precision,e=i.rounding,i.precision=t+Math.max(n.e,n.sd())+7,i.rounding=1,n=function(t,e){var n,i=e.d.length;if(i<3)return e.isZero()?e:$(t,2,e,e);n=(n=1.4*Math.sqrt(i))>16?16:0|n,e=$(t,2,e=e.times(1/K(5,n)),e);for(var r,s=new t(5),o=new t(16),a=new t(20);n--;)r=e.times(e),e=e.times(s.plus(r.times(o.times(r).minus(a))));return e}(i,tt(i,n)),i.precision=t,i.rounding=e,F(a>2?n.neg():n,t,e,!0)):new i(NaN)},T.squareRoot=T.sqrt=function(){var t,e,n,i,r,s,o=this,a=o.d,l=o.e,c=o.s,u=o.constructor;if(1!==c||!a||!a[0])return new u(!c||c<0&&(!a||a[0])?NaN:a?o:1/0);for(m=!1,0==(c=Math.sqrt(+o))||c==1/0?(((e=N(a)).length+l)%2==0&&(e+="0"),c=Math.sqrt(e),l=A((l+1)/2)-(l<0||l%2),i=new u(e=c==1/0?"5e"+l:(e=c.toExponential()).slice(0,e.indexOf("e")+1)+l)):i=new u(c.toString()),n=(l=u.precision)+3;;)if(i=(s=i).plus(z(o,s,n+2,1)).times(.5),N(s.d).slice(0,n)===(e=N(i.d)).slice(0,n)){if("9999"!=(e=e.slice(n-3,n+1))&&(r||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(F(i,l+1,1),t=!i.times(i).eq(o));break}if(!r&&(F(s,l+1,0),s.times(s).eq(o))){i=s;break}n+=4,r=1}return m=!0,F(i,l,u.rounding,t)},T.tangent=T.tan=function(){var t,e,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(t=i.precision,e=i.rounding,i.precision=t+10,i.rounding=1,(n=n.sin()).s=1,n=z(n,new i(1).minus(n.times(n)).sqrt(),t+10,0),i.precision=t,i.rounding=e,F(2==a||4==a?n.neg():n,t,e,!0)):new i(NaN)},T.times=T.mul=function(t){var e,n,i,r,s,o,a,l,c,u=this,d=u.constructor,h=u.d,p=(t=new d(t)).d;if(t.s*=u.s,!(h&&h[0]&&p&&p[0]))return new d(!t.s||h&&!h[0]&&!p||p&&!p[0]&&!h?NaN:h&&p?0*t.s:t.s/0);for(n=A(u.e/7)+A(t.e/7),(l=h.length)<(c=p.length)&&(s=h,h=p,p=s,o=l,l=c,c=o),s=[],i=o=l+c;i--;)s.push(0);for(i=c;--i>=0;){for(e=0,r=l+i;r>i;)a=s[r]+p[i]*h[r-i-1]+e,s[r--]=a%I|0,e=a/I|0;s[r]=(s[r]+e)%I|0}for(;!s[--o];)s.pop();return e?++n:s.shift(),t.d=s,t.e=R(s,n),m?F(t,d.precision,d.rounding):t},T.toBinary=function(t,e){return et(this,2,t,e)},T.toDecimalPlaces=T.toDP=function(t,e){var n=this,i=n.constructor;return n=new i(n),void 0===t?n:(O(t,0,d),void 0===e?e=i.rounding:O(e,0,8),F(n,t+n.e+1,e))},T.toExponential=function(t,e){var n,i=this,r=i.constructor;return void 0===t?n=P(i,!0):(O(t,0,d),void 0===e?e=r.rounding:O(e,0,8),n=P(i=F(new r(i),t+1,e),!0,t+1)),i.isNeg()&&!i.isZero()?"-"+n:n},T.toFixed=function(t,e){var n,i,r=this,s=r.constructor;return void 0===t?n=P(r):(O(t,0,d),void 0===e?e=s.rounding:O(e,0,8),n=P(i=F(new s(r),t+r.e+1,e),!1,t+i.e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},T.toFraction=function(t){var e,n,i,r,s,o,a,l,c,u,d,h,p=this,f=p.d,g=p.constructor;if(!f)return new g(p);if(c=n=new g(1),i=l=new g(0),o=(s=(e=new g(i)).e=B(f)-p.e-1)%7,e.d[0]=_(10,o<0?7+o:o),null==t)t=s>0?e:c;else{if(!(a=new g(t)).isInt()||a.lt(c))throw Error(y+a);t=a.gt(e)?s>0?e:c:a}for(m=!1,a=new g(N(f)),u=g.precision,g.precision=s=7*f.length*2;d=z(a,e,0,1,1),1!=(r=n.plus(d.times(i))).cmp(t);)n=i,i=r,r=c,c=l.plus(d.times(r)),l=r,r=e,e=a.minus(d.times(r)),a=r;return r=z(t.minus(n),i,0,1,1),l=l.plus(r.times(c)),n=n.plus(r.times(i)),l.s=c.s=p.s,h=z(c,i,s,1).minus(p).abs().cmp(z(l,n,s,1).minus(p).abs())<1?[c,i]:[l,n],g.precision=u,m=!0,h},T.toHexadecimal=T.toHex=function(t,e){return et(this,16,t,e)},T.toNearest=function(t,e){var n=this,i=n.constructor;if(n=new i(n),null==t){if(!n.d)return n;t=new i(1),e=i.rounding}else{if(t=new i(t),void 0===e?e=i.rounding:O(e,0,8),!n.d)return t.s?n:t;if(!t.d)return t.s&&(t.s=n.s),t}return t.d[0]?(m=!1,n=z(n,t,0,e,1).times(t),m=!0,F(n)):(t.s=n.s,n=t),n},T.toNumber=function(){return+this},T.toOctal=function(t,e){return et(this,8,t,e)},T.toPower=T.pow=function(t){var e,n,i,r,s,o,a=this,l=a.constructor,c=+(t=new l(t));if(!(a.d&&t.d&&a.d[0]&&t.d[0]))return new l(_(+a,c));if((a=new l(a)).eq(1))return a;if(i=l.precision,s=l.rounding,t.eq(1))return F(a,i,s);if((e=A(t.e/7))>=t.d.length-1&&(n=c<0?-c:c)<=9007199254740991)return r=H(l,a,n,i),t.s<0?new l(1).div(r):F(r,i,s);if((o=a.s)<0){if(e<t.d.length-1)return new l(NaN);if(1&t.d[e]||(o=1),0==a.e&&1==a.d[0]&&1==a.d.length)return a.s=o,a}return(e=0!=(n=_(+a,c))&&isFinite(n)?new l(n+"").e:A(c*(Math.log("0."+N(a.d))/Math.LN10+a.e+1)))>l.maxE+1||e<l.minE-1?new l(e>0?o/0:0):(m=!1,l.rounding=a.s=1,n=Math.min(12,(e+"").length),(r=G(t.times(Q(a,i+n)),i)).d&&j((r=F(r,i+5,1)).d,i,s)&&(e=i+10,+N((r=F(G(t.times(Q(a,e+n)),e),e+5,1)).d).slice(i+1,i+15)+1==1e14&&(r=F(r,i+1,0))),r.s=o,m=!0,l.rounding=s,F(r,i,s))},T.toPrecision=function(t,e){var n,i=this,r=i.constructor;return void 0===t?n=P(i,i.e<=r.toExpNeg||i.e>=r.toExpPos):(O(t,1,d),void 0===e?e=r.rounding:O(e,0,8),n=P(i=F(new r(i),t,e),t<=i.e||i.e<=r.toExpNeg,t)),i.isNeg()&&!i.isZero()?"-"+n:n},T.toSignificantDigits=T.toSD=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(O(t,1,d),void 0===e?e=n.rounding:O(e,0,8)),F(new n(this),t,e)},T.toString=function(){var t=this,e=t.constructor,n=P(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+n:n},T.truncated=T.trunc=function(){return F(new this.constructor(this),this.e+1,1)},T.valueOf=T.toJSON=function(){var t=this,e=t.constructor,n=P(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+n:n};var z=function(){function t(t,e,n){var i,r=0,s=t.length;for(t=t.slice();s--;)i=t[s]*e+r,t[s]=i%n|0,r=i/n|0;return r&&t.unshift(r),t}function e(t,e,n,i){var r,s;if(n!=i)s=n>i?1:-1;else for(r=s=0;r<n;r++)if(t[r]!=e[r]){s=t[r]>e[r]?1:-1;break}return s}function n(t,e,n,i){for(var r=0;n--;)t[n]-=r,r=t[n]<e[n]?1:0,t[n]=r*i+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(i,r,s,a,l,c){var u,d,h,p,f,g,m,v,y,b,x,w,_,C,M,k,S,L,D,T,N=i.constructor,O=i.s==r.s?1:-1,j=i.d,E=r.d;if(!(j&&j[0]&&E&&E[0]))return new N(i.s&&r.s&&(j?!E||j[0]!=E[0]:E)?j&&0==j[0]||!E?0*O:O/0:NaN);for(c?(f=1,d=i.e-r.e):(c=I,f=7,d=A(i.e/f)-A(r.e/f)),D=E.length,S=j.length,b=(y=new N(O)).d=[],h=0;E[h]==(j[h]||0);h++);if(E[h]>(j[h]||0)&&d--,null==s?(C=s=N.precision,a=N.rounding):C=l?s+(i.e-r.e)+1:s,C<0)b.push(1),g=!0;else{if(C=C/f+2|0,h=0,1==D){for(p=0,E=E[0],C++;(h<S||p)&&C--;h++)M=p*c+(j[h]||0),b[h]=M/E|0,p=M%E|0;g=p||h<S}else{for((p=c/(E[0]+1)|0)>1&&(E=t(E,p,c),j=t(j,p,c),D=E.length,S=j.length),k=D,w=(x=j.slice(0,D)).length;w<D;)x[w++]=0;(T=E.slice()).unshift(0),L=E[0],E[1]>=c/2&&++L;do{p=0,(u=e(E,x,D,w))<0?(_=x[0],D!=w&&(_=_*c+(x[1]||0)),(p=_/L|0)>1?(p>=c&&(p=c-1),1==(u=e(m=t(E,p,c),x,v=m.length,w=x.length))&&(p--,n(m,D<v?T:E,v,c))):(0==p&&(u=p=1),m=E.slice()),(v=m.length)<w&&m.unshift(0),n(x,m,w,c),-1==u&&(u=e(E,x,D,w=x.length))<1&&(p++,n(x,D<w?T:E,w,c)),w=x.length):0===u&&(p++,x=[0]),b[h++]=p,u&&x[0]?x[w++]=j[k]||0:(x=[j[k]],w=1)}while((k++<S||void 0!==x[0])&&C--);g=void 0!==x[0]}b[0]||b.shift()}if(1==f)y.e=d,o=g;else{for(h=1,p=b[0];p>=10;p/=10)h++;y.e=h+d*f-1,F(y,l?s+y.e+1:s,a,g)}return y}}();function F(t,e,n,i){var r,s,o,a,l,c,u,d,h,p=t.constructor;t:if(null!=e){if(!(d=t.d))return t;for(r=1,a=d[0];a>=10;a/=10)r++;if((s=e-r)<0)s+=7,o=e,l=(u=d[h=0])/_(10,r-o-1)%10|0;else if((h=Math.ceil((s+1)/7))>=(a=d.length)){if(!i)break t;for(;a++<=h;)d.push(0);u=l=0,r=1,o=(s%=7)-7+1}else{for(u=a=d[h],r=1;a>=10;a/=10)r++;l=(o=(s%=7)-7+r)<0?0:u/_(10,r-o-1)%10|0}if(i=i||e<0||void 0!==d[h+1]||(o<0?u:u%_(10,r-o-1)),c=n<4?(l||i)&&(0==n||n==(t.s<0?3:2)):l>5||5==l&&(4==n||i||6==n&&(s>0?o>0?u/_(10,r-o):0:d[h-1])%10&1||n==(t.s<0?8:7)),e<1||!d[0])return d.length=0,c?(e-=t.e+1,d[0]=_(10,(7-e%7)%7),t.e=-e||0):d[0]=t.e=0,t;if(0==s?(d.length=h,a=1,h--):(d.length=h+1,a=_(10,7-s),d[h]=o>0?(u/_(10,r-o)%_(10,o)|0)*a:0),c)for(;;){if(0==h){for(s=1,o=d[0];o>=10;o/=10)s++;for(o=d[0]+=a,a=1;o>=10;o/=10)a++;s!=a&&(t.e++,d[0]==I&&(d[0]=1));break}if(d[h]+=a,d[h]!=I)break;d[h--]=0,a=1}for(s=d.length;0===d[--s];)d.pop()}return m&&(t.e>p.maxE?(t.d=null,t.e=NaN):t.e<p.minE&&(t.e=0,t.d=[0])),t}function P(t,e,n){if(!t.isFinite())return J(t);var i,r=t.e,s=N(t.d),o=s.length;return e?(n&&(i=n-o)>0?s=s.charAt(0)+"."+s.slice(1)+W(i):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(t.e<0?"e":"e+")+t.e):r<0?(s="0."+W(-r-1)+s,n&&(i=n-o)>0&&(s+=W(i))):r>=o?(s+=W(r+1-o),n&&(i=n-r-1)>0&&(s=s+"."+W(i))):((i=r+1)<o&&(s=s.slice(0,i)+"."+s.slice(i)),n&&(i=n-o)>0&&(r+1===o&&(s+="."),s+=W(i))),s}function R(t,e){var n=t[0];for(e*=7;n>=10;n/=10)e++;return e}function Y(t,e,n){if(e>L)throw m=!0,n&&(t.precision=n),Error(b);return F(new t(p),e,1,!0)}function U(t,e,n){if(e>D)throw Error(b);return F(new t(f),e,n,!0)}function B(t){var e=t.length-1,n=7*e+1;if(e=t[e]){for(;e%10==0;e/=10)n--;for(e=t[0];e>=10;e/=10)n++}return n}function W(t){for(var e="";t--;)e+="0";return e}function H(t,e,n,i){var r,s=new t(1),o=Math.ceil(i/7+4);for(m=!1;;){if(n%2&&nt((s=s.times(e)).d,o)&&(r=!0),0===(n=A(n/2))){n=s.d.length-1,r&&0===s.d[n]&&++s.d[n];break}nt((e=e.times(e)).d,o)}return m=!0,s}function V(t){return 1&t.d[t.d.length-1]}function Z(t,e,n){for(var i,r=new t(e[0]),s=0;++s<e.length;){if(!(i=new t(e[s])).s){r=i;break}r[n](i)&&(r=i)}return r}function G(t,e){var n,i,r,s,o,a,l,c=0,u=0,d=0,h=t.constructor,p=h.rounding,f=h.precision;if(!t.d||!t.d[0]||t.e>17)return new h(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(m=!1,l=f):l=e,a=new h(.03125);t.e>-2;)t=t.times(a),d+=5;for(l+=i=Math.log(_(2,d))/Math.LN10*2+5|0,n=s=o=new h(1),h.precision=l;;){if(s=F(s.times(t),l,1),n=n.times(++u),N((a=o.plus(z(s,n,l,1))).d).slice(0,l)===N(o.d).slice(0,l)){for(r=d;r--;)o=F(o.times(o),l,1);if(null!=e)return h.precision=f,o;if(!(c<3&&j(o.d,l-i,p,c)))return F(o,h.precision=f,p,m=!0);h.precision=l+=10,n=s=a=new h(1),u=0,c++}o=a}}function Q(t,e){var n,i,r,s,o,a,l,c,u,d,h,p=1,f=t,g=f.d,v=f.constructor,y=v.rounding,b=v.precision;if(f.s<0||!g||!g[0]||!f.e&&1==g[0]&&1==g.length)return new v(g&&!g[0]?-1/0:1!=f.s?NaN:g?0:f);if(null==e?(m=!1,u=b):u=e,v.precision=u+=10,i=(n=N(g)).charAt(0),!(Math.abs(s=f.e)<15e14))return c=Y(v,u+2,b).times(s+""),f=Q(new v(i+"."+n.slice(1)),u-10).plus(c),v.precision=b,null==e?F(f,b,y,m=!0):f;for(;i<7&&1!=i||1==i&&n.charAt(1)>3;)i=(n=N((f=f.times(t)).d)).charAt(0),p++;for(s=f.e,i>1?(f=new v("0."+n),s++):f=new v(i+"."+n.slice(1)),d=f,l=o=f=z(f.minus(1),f.plus(1),u,1),h=F(f.times(f),u,1),r=3;;){if(o=F(o.times(h),u,1),N((c=l.plus(z(o,new v(r),u,1))).d).slice(0,u)===N(l.d).slice(0,u)){if(l=l.times(2),0!==s&&(l=l.plus(Y(v,u+2,b).times(s+""))),l=z(l,new v(p),u,1),null!=e)return v.precision=b,l;if(!j(l.d,u-10,y,a))return F(l,v.precision=b,y,m=!0);v.precision=u+=10,c=o=f=z(d.minus(1),d.plus(1),u,1),h=F(f.times(f),u,1),r=a=1}l=c,r+=2}}function J(t){return String(t.s*t.s/0)}function X(t,e){var n,i,r;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(i=e.search(/e/i))>0?(n<0&&(n=i),n+=+e.slice(i+1),e=e.substring(0,i)):n<0&&(n=e.length),i=0;48===e.charCodeAt(i);i++);for(r=e.length;48===e.charCodeAt(r-1);--r);if(e=e.slice(i,r)){if(r-=i,t.e=n=n-i-1,t.d=[],i=(n+1)%7,n<0&&(i+=7),i<r){for(i&&t.d.push(+e.slice(0,i)),r-=7;i<r;)t.d.push(+e.slice(i,i+=7));i=7-(e=e.slice(i)).length}else i-=r;for(;i--;)e+="0";t.d.push(+e),m&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function q(t,e){var n,i,r,s,o,a,l,c,u;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),S.test(e))return X(t,e)}else if("Infinity"===e||"NaN"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(M.test(e))n=16,e=e.toLowerCase();else if(C.test(e))n=2;else{if(!k.test(e))throw Error(y+e);n=8}for((s=e.search(/p/i))>0?(l=+e.slice(s+1),e=e.substring(2,s)):e=e.slice(2),o=(s=e.indexOf("."))>=0,i=t.constructor,o&&(s=(a=(e=e.replace(".","")).length)-s,r=H(i,new i(n),s,2*s)),s=u=(c=E(e,n,I)).length-1;0===c[s];--s)c.pop();return s<0?new i(0*t.s):(t.e=R(c,u),t.d=c,m=!1,o&&(t=z(t,r,4*a)),l&&(t=t.times(Math.abs(l)<54?_(2,l):Wt.pow(2,l))),m=!0,t)}function $(t,e,n,i,r){var s,o,a,l,c=t.precision,u=Math.ceil(c/7);for(m=!1,l=n.times(n),a=new t(i);;){if(o=z(a.times(l),new t(e++*e++),c,1),a=r?i.plus(o):i.minus(o),i=z(o.times(l),new t(e++*e++),c,1),void 0!==(o=a.plus(i)).d[u]){for(s=u;o.d[s]===a.d[s]&&s--;);if(-1==s)break}s=a,a=i,i=o,o=s}return m=!0,o.d.length=u+1,o}function K(t,e){for(var n=t;--e;)n*=t;return n}function tt(t,e){var n,i=e.s<0,r=U(t,t.precision,1),s=r.times(.5);if((e=e.abs()).lte(s))return a=i?4:1,e;if((n=e.divToInt(r)).isZero())a=i?3:2;else{if((e=e.minus(n.times(r))).lte(s))return a=V(n)?i?2:3:i?4:1,e;a=V(n)?i?1:4:i?3:2}return e.minus(r).abs()}function et(t,e,n,i){var r,s,a,l,c,u,p,f,g,m=t.constructor,v=void 0!==n;if(v?(O(n,1,d),void 0===i?i=m.rounding:O(i,0,8)):(n=m.precision,i=m.rounding),t.isFinite()){for(v?(r=2,16==e?n=4*n-3:8==e&&(n=3*n-2)):r=e,(a=(p=P(t)).indexOf("."))>=0&&(p=p.replace(".",""),(g=new m(1)).e=p.length-a,g.d=E(P(g),10,r),g.e=g.d.length),s=c=(f=E(p,10,r)).length;0==f[--c];)f.pop();if(f[0]){if(a<0?s--:((t=new m(t)).d=f,t.e=s,f=(t=z(t,g,n,i,0,r)).d,s=t.e,u=o),a=f[n],l=r/2,u=u||void 0!==f[n+1],u=i<4?(void 0!==a||u)&&(0===i||i===(t.s<0?3:2)):a>l||a===l&&(4===i||u||6===i&&1&f[n-1]||i===(t.s<0?8:7)),f.length=n,u)for(;++f[--n]>r-1;)f[n]=0,n||(++s,f.unshift(1));for(c=f.length;!f[c-1];--c);for(a=0,p="";a<c;a++)p+=h.charAt(f[a]);if(v){if(c>1)if(16==e||8==e){for(a=16==e?4:3,--c;c%a;c++)p+="0";for(c=(f=E(p,r,e)).length;!f[c-1];--c);for(a=1,p="1.";a<c;a++)p+=h.charAt(f[a])}else p=p.charAt(0)+"."+p.slice(1);p=p+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)p="0"+p;p="0."+p}else if(++s>c)for(s-=c;s--;)p+="0";else s<c&&(p=p.slice(0,s)+"."+p.slice(s))}else p=v?"0p+0":"0";p=(16==e?"0x":2==e?"0b":8==e?"0o":"")+p}else p=J(t);return t.s<0?"-"+p:p}function nt(t,e){if(t.length>e)return t.length=e,!0}function it(t){return new this(t).abs()}function rt(t){return new this(t).acos()}function st(t){return new this(t).acosh()}function ot(t,e){return new this(t).plus(e)}function at(t){return new this(t).asin()}function lt(t){return new this(t).asinh()}function ct(t){return new this(t).atan()}function ut(t){return new this(t).atanh()}function dt(t,e){t=new this(t),e=new this(e);var n,i=this.precision,r=this.rounding,s=i+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(n=e.s<0?U(this,i,r):new this(0)).s=t.s:!t.d||e.isZero()?(n=U(this,s,1).times(.5)).s=t.s:e.s<0?(this.precision=s,this.rounding=1,n=this.atan(z(t,e,s,1)),e=U(this,s,1),this.precision=i,this.rounding=r,n=t.s<0?n.minus(e):n.plus(e)):n=this.atan(z(t,e,s,1)):(n=U(this,s,1).times(e.s>0?.25:.75)).s=t.s:n=new this(NaN),n}function ht(t){return new this(t).cbrt()}function pt(t){return F(t=new this(t),t.e+1,2)}function ft(t,e,n){return new this(t).clamp(e,n)}function gt(t){if(!t||"object"!=typeof t)throw Error(v+"Object expected");var e,n,i,r=!0===t.defaults,s=["precision",1,d,"rounding",0,8,"toExpNeg",-u,0,"toExpPos",0,u,"maxE",0,u,"minE",-u,0,"modulo",0,9];for(e=0;e<s.length;e+=3)if(n=s[e],r&&(this[n]=g[n]),void 0!==(i=t[n])){if(!(A(i)===i&&i>=s[e+1]&&i<=s[e+2]))throw Error(y+n+": "+i);this[n]=i}if(n="crypto",r&&(this[n]=g[n]),void 0!==(i=t[n])){if(!0!==i&&!1!==i&&0!==i&&1!==i)throw Error(y+n+": "+i);if(i){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(x);this[n]=!0}else this[n]=!1}return this}function mt(t){return new this(t).cos()}function vt(t){return new this(t).cosh()}function yt(t,e){return new this(t).div(e)}function bt(t){return new this(t).exp()}function xt(t){return F(t=new this(t),t.e+1,3)}function wt(){var t,e,n=new this(0);for(m=!1,t=0;t<arguments.length;)if((e=new this(arguments[t++])).d)n.d&&(n=n.plus(e.times(e)));else{if(e.s)return m=!0,new this(1/0);n=e}return m=!0,n.sqrt()}function At(t){return t instanceof Wt||t&&t.toStringTag===w||!1}function _t(t){return new this(t).ln()}function Ct(t,e){return new this(t).log(e)}function Mt(t){return new this(t).log(2)}function kt(t){return new this(t).log(10)}function St(){return Z(this,arguments,"lt")}function It(){return Z(this,arguments,"gt")}function Lt(t,e){return new this(t).mod(e)}function Dt(t,e){return new this(t).mul(e)}function Tt(t,e){return new this(t).pow(e)}function Nt(t){var e,n,i,r,s=0,o=new this(1),a=[];if(void 0===t?t=this.precision:O(t,1,d),i=Math.ceil(t/7),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(i));s<i;)(r=e[s])>=429e7?e[s]=crypto.getRandomValues(new Uint32Array(1))[0]:a[s++]=r%1e7;else{if(!crypto.randomBytes)throw Error(x);for(e=crypto.randomBytes(i*=4);s<i;)(r=e[s]+(e[s+1]<<8)+(e[s+2]<<16)+((127&e[s+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,s):(a.push(r%1e7),s+=4);s=i/4}else for(;s<i;)a[s++]=1e7*Math.random()|0;for(t%=7,(i=a[--s])&&t&&(r=_(10,7-t),a[s]=(i/r|0)*r);0===a[s];s--)a.pop();if(s<0)n=0,a=[0];else{for(n=-1;0===a[0];n-=7)a.shift();for(i=1,r=a[0];r>=10;r/=10)i++;i<7&&(n-=7-i)}return o.e=n,o.d=a,o}function Ot(t){return F(t=new this(t),t.e+1,this.rounding)}function jt(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function Et(t){return new this(t).sin()}function zt(t){return new this(t).sinh()}function Ft(t){return new this(t).sqrt()}function Pt(t,e){return new this(t).sub(e)}function Rt(){var t=0,e=arguments,n=new this(e[t]);for(m=!1;n.s&&++t<e.length;)n=n.plus(e[t]);return m=!0,F(n,this.precision,this.rounding)}function Yt(t){return new this(t).tan()}function Ut(t){return new this(t).tanh()}function Bt(t){return F(t=new this(t),t.e+1,1)}T[Symbol.for("nodejs.util.inspect.custom")]=T.toString,T[Symbol.toStringTag]="Decimal";var Wt=T.constructor=function t(e){var n,i,r;function s(t){var e,n,i,r=this;if(!(r instanceof s))return new s(t);if(r.constructor=s,At(t))return r.s=t.s,void(m?!t.d||t.e>s.maxE?(r.e=NaN,r.d=null):t.e<s.minE?(r.e=0,r.d=[0]):(r.e=t.e,r.d=t.d.slice()):(r.e=t.e,r.d=t.d?t.d.slice():t.d));if("number"==(i=typeof t)){if(0===t)return r.s=1/t<0?-1:1,r.e=0,void(r.d=[0]);if(t<0?(t=-t,r.s=-1):r.s=1,t===~~t&&t<1e7){for(e=0,n=t;n>=10;n/=10)e++;return void(m?e>s.maxE?(r.e=NaN,r.d=null):e<s.minE?(r.e=0,r.d=[0]):(r.e=e,r.d=[t]):(r.e=e,r.d=[t]))}return 0*t!=0?(t||(r.s=NaN),r.e=NaN,void(r.d=null)):X(r,t.toString())}if("string"!==i)throw Error(y+t);return 45===(n=t.charCodeAt(0))?(t=t.slice(1),r.s=-1):(43===n&&(t=t.slice(1)),r.s=1),S.test(t)?X(r,t):q(r,t)}if(s.prototype=T,s.ROUND_UP=0,s.ROUND_DOWN=1,s.ROUND_CEIL=2,s.ROUND_FLOOR=3,s.ROUND_HALF_UP=4,s.ROUND_HALF_DOWN=5,s.ROUND_HALF_EVEN=6,s.ROUND_HALF_CEIL=7,s.ROUND_HALF_FLOOR=8,s.EUCLID=9,s.config=s.set=gt,s.clone=t,s.isDecimal=At,s.abs=it,s.acos=rt,s.acosh=st,s.add=ot,s.asin=at,s.asinh=lt,s.atan=ct,s.atanh=ut,s.atan2=dt,s.cbrt=ht,s.ceil=pt,s.clamp=ft,s.cos=mt,s.cosh=vt,s.div=yt,s.exp=bt,s.floor=xt,s.hypot=wt,s.ln=_t,s.log=Ct,s.log10=kt,s.log2=Mt,s.max=St,s.min=It,s.mod=Lt,s.mul=Dt,s.pow=Tt,s.random=Nt,s.round=Ot,s.sign=jt,s.sin=Et,s.sinh=zt,s.sqrt=Ft,s.sub=Pt,s.sum=Rt,s.tan=Yt,s.tanh=Ut,s.trunc=Bt,void 0===e&&(e={}),e&&!0!==e.defaults)for(r=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],n=0;n<r.length;)e.hasOwnProperty(i=r[n++])||(e[i]=this[i]);return s.config(e),s}(g);p=new Wt(p),f=new Wt(f);const Ht=Wt,Vt=t=>"string"==typeof t,Zt=()=>{let t,e;const n=new Promise(((n,i)=>{t=n,e=i}));return n.resolve=t,n.reject=e,n},Gt=t=>null==t?"":""+t,Qt=/###/g,Jt=t=>t&&t.indexOf("###")>-1?t.replace(Qt,"."):t,Xt=t=>!t||Vt(t),qt=(t,e,n)=>{const i=Vt(e)?e.split("."):e;let r=0;for(;r<i.length-1;){if(Xt(t))return{};const e=Jt(i[r]);!t[e]&&n&&(t[e]=new n),t=Object.prototype.hasOwnProperty.call(t,e)?t[e]:{},++r}return Xt(t)?{}:{obj:t,k:Jt(i[r])}},$t=(t,e,n)=>{const{obj:i,k:r}=qt(t,e,Object);if(void 0!==i||1===e.length)return void(i[r]=n);let s=e[e.length-1],o=e.slice(0,e.length-1),a=qt(t,o,Object);for(;void 0===a.obj&&o.length;)s=`${o[o.length-1]}.${s}`,o=o.slice(0,o.length-1),a=qt(t,o,Object),a&&a.obj&&void 0!==a.obj[`${a.k}.${s}`]&&(a.obj=void 0);a.obj[`${a.k}.${s}`]=n},Kt=(t,e)=>{const{obj:n,k:i}=qt(t,e);if(n)return n[i]},te=(t,e,n)=>{for(const i in e)"__proto__"!==i&&"constructor"!==i&&(i in t?Vt(t[i])||t[i]instanceof String||Vt(e[i])||e[i]instanceof String?n&&(t[i]=e[i]):te(t[i],e[i],n):t[i]=e[i]);return t},ee=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var ne={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const ie=t=>Vt(t)?t.replace(/[&<>"'\/]/g,(t=>ne[t])):t,re=[" ",",","?","!",";"],se=new class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const e=this.regExpMap.get(t);if(void 0!==e)return e;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}(20),oe=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!t)return;if(t[e])return t[e];const i=e.split(n);let r=t;for(let t=0;t<i.length;){if(!r||"object"!=typeof r)return;let e,s="";for(let o=t;o<i.length;++o)if(o!==t&&(s+=n),s+=i[o],e=r[s],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&o<i.length-1)continue;t+=o-t+1;break}r=e}return r},ae=t=>t&&t.replace("_","-"),le={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class ce{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(t,e)}init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||le,this.options=e,this.debug=e.debug}log(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"log","",!0)}warn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","",!0)}error(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"error","")}deprecate(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(t,e,n,i){return i&&!this.debug?null:(Vt(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[e](t))}create(t){return new ce(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new ce(this.logger,t)}}var ue=new ce;class de{constructor(){this.observers={}}on(t,e){return t.split(" ").forEach((t=>{this.observers[t]||(this.observers[t]=new Map);const n=this.observers[t].get(e)||0;this.observers[t].set(e,n+1)})),this}off(t,e){this.observers[t]&&(e?this.observers[t].delete(e):delete this.observers[t])}emit(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this.observers[t]&&Array.from(this.observers[t].entries()).forEach((t=>{let[e,i]=t;for(let t=0;t<i;t++)e(...n)})),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach((e=>{let[i,r]=e;for(let e=0;e<r;e++)i.apply(i,[t,...n])}))}}class he extends de{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}getResource(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;t.indexOf(".")>-1?o=t.split("."):(o=[t,e],n&&(Array.isArray(n)?o.push(...n):Vt(n)&&r?o.push(...n.split(r)):o.push(n)));const a=Kt(this.data,o);return!a&&!e&&!n&&t.indexOf(".")>-1&&(t=o[0],e=o[1],n=o.slice(2).join(".")),!a&&s&&Vt(n)?oe(this.data&&this.data[t]&&this.data[t][e],n,r):a}addResource(t,e,n,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const s=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator;let o=[t,e];n&&(o=o.concat(s?n.split(s):n)),t.indexOf(".")>-1&&(o=t.split("."),i=e,e=o[1]),this.addNamespaces(e),$t(this.data,o,i),r.silent||this.emit("added",t,e,n,i)}addResources(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const i in n)(Vt(n[i])||Array.isArray(n[i]))&&this.addResource(t,e,i,n[i],{silent:!0});i.silent||this.emit("added",t,e,n)}addResourceBundle(t,e,n,i,r){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},o=[t,e];t.indexOf(".")>-1&&(o=t.split("."),i=n,n=e,e=o[1]),this.addNamespaces(e);let a=Kt(this.data,o)||{};s.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?te(a,n,r):a={...a,...n},$t(this.data,o,a),s.silent||this.emit("added",t,e,n)}removeResourceBundle(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}hasResourceBundle(t,e){return void 0!==this.getResource(t,e)}getResourceBundle(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(t,e)}:this.getResource(t,e)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find((t=>e[t]&&Object.keys(e[t]).length>0))}toJSON(){return this.data}}var pe={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,i,r){return t.forEach((t=>{this.processors[t]&&(e=this.processors[t].process(e,n,i,r))})),e}};const fe={};class ge extends de{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,i;super(),n=t,i=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((t=>{n[t]&&(i[t]=n[t])})),this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=ue.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==t)return!1;const n=this.resolve(t,e);return n&&void 0!==n.res}extractFromKey(t,e){let n=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const i=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator;let r=e.ns||this.options.defaultNS||[];const s=n&&t.indexOf(n)>-1,o=!(this.options.userDefinedKeySeparator||e.keySeparator||this.options.userDefinedNsSeparator||e.nsSeparator||((t,e,n)=>{e=e||"",n=n||"";const i=re.filter((t=>e.indexOf(t)<0&&n.indexOf(t)<0));if(0===i.length)return!0;const r=se.getRegExp(`(${i.map((t=>"?"===t?"\\?":t)).join("|")})`);let s=!r.test(t);if(!s){const e=t.indexOf(n);e>0&&!r.test(t.substring(0,e))&&(s=!0)}return s})(t,n,i));if(s&&!o){const e=t.match(this.interpolator.nestingRegexp);if(e&&e.length>0)return{key:t,namespaces:r};const s=t.split(n);(n!==i||n===i&&this.options.ns.indexOf(s[0])>-1)&&(r=s.shift()),t=s.join(i)}return Vt(r)&&(r=[r]),{key:t,namespaces:r}}translate(t,e,n){if("object"!=typeof e&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof e&&(e={...e}),e||(e={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);const i=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,r=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,{key:s,namespaces:o}=this.extractFromKey(t[t.length-1],e),a=o[o.length-1],l=e.lng||this.language,c=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(c){const t=e.nsSeparator||this.options.nsSeparator;return i?{res:`${a}${t}${s}`,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(e)}:`${a}${t}${s}`}return i?{res:s,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(e)}:s}const u=this.resolve(t,e);let d=u&&u.res;const h=u&&u.usedKey||s,p=u&&u.exactUsedKey||s,f=Object.prototype.toString.apply(d),g=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!Vt(d)&&"boolean"!=typeof d&&"number"!=typeof d;if(!(m&&d&&v&&["[object Number]","[object Function]","[object RegExp]"].indexOf(f)<0)||Vt(g)&&Array.isArray(d))if(m&&Vt(g)&&Array.isArray(d))d=d.join(g),d&&(d=this.extendTranslation(d,t,e,n));else{let i=!1,o=!1;const c=void 0!==e.count&&!Vt(e.count),h=ge.hasDefaultValue(e),p=c?this.pluralResolver.getSuffix(l,e.count,e):"",f=e.ordinal&&c?this.pluralResolver.getSuffix(l,e.count,{ordinal:!1}):"",g=c&&!e.ordinal&&0===e.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&e[`defaultValue${this.options.pluralSeparator}zero`]||e[`defaultValue${p}`]||e[`defaultValue${f}`]||e.defaultValue;!this.isValidLookup(d)&&h&&(i=!0,d=m),this.isValidLookup(d)||(o=!0,d=s);const v=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:d,y=h&&m!==d&&this.options.updateMissing;if(o||i||y){if(this.logger.log(y?"updateKey":"missingKey",l,a,s,y?m:d),r){const t=this.resolve(s,{...e,keySeparator:!1});t&&t.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.")}let t=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let e=0;e<n.length;e++)t.push(n[e]);else"all"===this.options.saveMissingTo?t=this.languageUtils.toResolveHierarchy(e.lng||this.language):t.push(e.lng||this.language);const i=(t,n,i)=>{const r=h&&i!==d?i:v;this.options.missingKeyHandler?this.options.missingKeyHandler(t,a,n,r,y,e):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(t,a,n,r,y,e),this.emit("missingKey",t,a,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?t.forEach((t=>{const n=this.pluralResolver.getSuffixes(t,e);g&&e[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach((n=>{i([t],s+n,e[`defaultValue${n}`]||m)}))})):i(t,s,m))}d=this.extendTranslation(d,t,e,u,n),o&&d===s&&this.options.appendNamespaceToMissingKey&&(d=`${a}:${s}`),(o||i)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${s}`:s,i?d:void 0):this.options.parseMissingKeyHandler(d))}else{if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,d,{...e,ns:o}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(u.res=t,u.usedParams=this.getUsedParamsDetails(e),u):t}if(r){const t=Array.isArray(d),n=t?[]:{},i=t?p:h;for(const t in d)if(Object.prototype.hasOwnProperty.call(d,t)){const s=`${i}${r}${t}`;n[t]=this.translate(s,{...e,joinArrays:!1,ns:o}),n[t]===s&&(n[t]=d[t])}d=n}}return i?(u.res=d,u.usedParams=this.getUsedParamsDetails(e),u):d}extendTranslation(t,e,n,i,r){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const o=Vt(t)&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(o){const e=t.match(this.interpolator.nestingRegexp);a=e&&e.length}let l=n.replace&&!Vt(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),t=this.interpolator.interpolate(t,l,n.lng||this.language||i.usedLng,n),o){const e=t.match(this.interpolator.nestingRegexp);a<(e&&e.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&i&&i.res&&(n.lng=this.language||i.usedLng),!1!==n.nest&&(t=this.interpolator.nest(t,(function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return r&&r[0]===i[0]&&!n.context?(s.logger.warn(`It seems you are nesting recursively key: ${i[0]} in key: ${e[0]}`),null):s.translate(...i,e)}),n)),n.interpolation&&this.interpolator.reset()}const o=n.postProcess||this.options.postProcess,a=Vt(o)?[o]:o;return null!=t&&a&&a.length&&!1!==n.applyPostProcessor&&(t=pe.handle(a,t,e,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let e,n,i,r,s,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Vt(t)&&(t=[t]),t.forEach((t=>{if(this.isValidLookup(e))return;const a=this.extractFromKey(t,o),l=a.key;n=l;let c=a.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==o.count&&!Vt(o.count),d=u&&!o.ordinal&&0===o.count&&this.pluralResolver.shouldUseIntlApi(),h=void 0!==o.context&&(Vt(o.context)||"number"==typeof o.context)&&""!==o.context,p=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);c.forEach((t=>{this.isValidLookup(e)||(s=t,!fe[`${p[0]}-${t}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(fe[`${p[0]}-${t}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${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!!!")),p.forEach((n=>{if(this.isValidLookup(e))return;r=n;const s=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(s,l,n,t,o);else{let t;u&&(t=this.pluralResolver.getSuffix(n,o.count,o));const e=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(s.push(l+t),o.ordinal&&0===t.indexOf(i)&&s.push(l+t.replace(i,this.options.pluralSeparator)),d&&s.push(l+e)),h){const n=`${l}${this.options.contextSeparator}${o.context}`;s.push(n),u&&(s.push(n+t),o.ordinal&&0===t.indexOf(i)&&s.push(n+t.replace(i,this.options.pluralSeparator)),d&&s.push(n+e))}}let a;for(;a=s.pop();)this.isValidLookup(e)||(i=a,e=this.getResource(n,t,a,o))})))}))})),{res:e,usedKey:n,exactUsedKey:i,usedLng:r,usedNS:s}}isValidLookup(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}getResource(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,n,i):this.resourceStore.getResource(t,e,n,i)}getUsedParamsDetails(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!Vt(t.replace);let i=n?t.replace:t;if(n&&void 0!==t.count&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!n){i={...i};for(const t of e)delete i[t]}return i}static hasDefaultValue(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&"defaultValue"===e.substring(0,12)&&void 0!==t[e])return!0;return!1}}const me=t=>t.charAt(0).toUpperCase()+t.slice(1);class ve{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ue.create("languageUtils")}getScriptPartFromCode(t){if(!(t=ae(t))||t.indexOf("-")<0)return null;const e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}getLanguagePartFromCode(t){if(!(t=ae(t))||t.indexOf("-")<0)return t;const e=t.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(t){if(Vt(t)&&t.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let e=Intl.getCanonicalLocales(t)[0];if(e&&this.options.lowerCaseLng&&(e=e.toLowerCase()),e)return e}catch(t){}const e=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map((t=>t.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=me(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=me(n[1].toLowerCase())),e.indexOf(n[2].toLowerCase())>-1&&(n[2]=me(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let e;return t.forEach((t=>{if(e)return;const n=this.formatLanguageCode(t);this.options.supportedLngs&&!this.isSupportedCode(n)||(e=n)})),!e&&this.options.supportedLngs&&t.forEach((t=>{if(e)return;const n=this.getLanguagePartFromCode(t);if(this.isSupportedCode(n))return e=n;e=this.options.supportedLngs.find((t=>t===n?t:t.indexOf("-")<0&&n.indexOf("-")<0?void 0:t.indexOf("-")>0&&n.indexOf("-")<0&&t.substring(0,t.indexOf("-"))===n||0===t.indexOf(n)&&n.length>1?t:void 0))})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}getFallbackCodes(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),Vt(t)&&(t=[t]),Array.isArray(t))return t;if(!e)return t.default||[];let n=t[e];return n||(n=t[this.getScriptPartFromCode(e)]),n||(n=t[this.formatLanguageCode(e)]),n||(n=t[this.getLanguagePartFromCode(e)]),n||(n=t.default),n||[]}toResolveHierarchy(t,e){const n=this.getFallbackCodes(e||this.options.fallbackLng||[],t),i=[],r=t=>{t&&(this.isSupportedCode(t)?i.push(t):this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`))};return Vt(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(t))):Vt(t)&&r(this.formatLanguageCode(t)),n.forEach((t=>{i.indexOf(t)<0&&r(this.formatLanguageCode(t))})),i}}let ye=[{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}],be={1:t=>Number(t>1),2:t=>Number(1!=t),3:t=>0,4:t=>Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2),5:t=>Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5),6:t=>Number(1==t?0:t>=2&&t<=4?1:2),7:t=>Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2),8:t=>Number(1==t?0:2==t?1:8!=t&&11!=t?2:3),9:t=>Number(t>=2),10:t=>Number(1==t?0:2==t?1:t<7?2:t<11?3:4),11:t=>Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3),12:t=>Number(t%10!=1||t%100==11),13:t=>Number(0!==t),14:t=>Number(1==t?0:2==t?1:3==t?2:3),15:t=>Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2),16:t=>Number(t%10==1&&t%100!=11?0:0!==t?1:2),17:t=>Number(1==t||t%10==1&&t%100!=11?0:1),18:t=>Number(0==t?0:1==t?1:2),19:t=>Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3),20:t=>Number(1==t?0:0==t||t%100>0&&t%100<20?1:2),21:t=>Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0),22:t=>Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)};const xe=["v1","v2","v3"],we=["v4"],Ae={zero:0,one:1,two:2,few:3,many:4,other:5};class _e{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=t,this.options=e,this.logger=ue.create("pluralResolver"),this.options.compatibilityJSON&&!we.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const t={};return ye.forEach((e=>{e.lngs.forEach((n=>{t[n]={numbers:e.nr,plurals:be[e.fc]}}))})),t})(),this.pluralRulesCache={}}addRule(t,e){this.rules[t]=e}clearCache(){this.pluralRulesCache={}}getRule(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{const n=ae("dev"===t?"en":t),i=e.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:n,type:i});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];const s=new Intl.PluralRules(n,{type:i});return this.pluralRulesCache[r]=s,s}catch(t){return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(t,e);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,n).map((t=>`${e}${t}`))}getSuffixes(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(t,e);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((t,e)=>Ae[t]-Ae[e])).map((t=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${t}`)):n.numbers.map((n=>this.getSuffix(t,n,e))):[]}getSuffix(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=this.getRule(t,n);return i?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(e)}`:this.getSuffixRetroCompatible(i,e):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,e){const n=t.noAbs?t.plurals(e):t.plurals(Math.abs(e));let i=t.numbers[n];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===i?i="plural":1===i&&(i=""));const r=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?`_plural_${i.toString()}`:r():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?r():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!xe.includes(this.options.compatibilityJSON)}}const Ce=function(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=((t,e,n)=>{const i=Kt(t,n);return void 0!==i?i:Kt(e,n)})(t,e,n);return!s&&r&&Vt(n)&&(s=oe(t,n,i),void 0===s&&(s=oe(e,n,i))),s},Me=t=>t.replace(/\$/g,"$$$$");class ke{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=ue.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(t=>t),this.init(t)}init(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:e,escapeValue:n,useRawValueToEscape:i,prefix:r,prefixEscaped:s,suffix:o,suffixEscaped:a,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:p,nestingSuffixEscaped:f,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:v}=t.interpolation;this.escape=void 0!==e?e:ie,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==i&&i,this.prefix=r?ee(r):s||"{{",this.suffix=o?ee(o):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?ee(d):h||ee("$t("),this.nestingSuffix=p?ee(p):f||ee(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(t,e)=>t&&t.source===e?(t.lastIndex=0,t):new RegExp(e,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,e,n,i){let r,s,o;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=t=>{if(t.indexOf(this.formatSeparator)<0){const r=Ce(e,a,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(r,void 0,n,{...i,...e,interpolationkey:t}):r}const r=t.split(this.formatSeparator),s=r.shift().trim(),o=r.join(this.formatSeparator).trim();return this.format(Ce(e,a,s,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...i,...e,interpolationkey:s})};this.resetRegExp();const c=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,u=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:t=>Me(t)},{regex:this.regexp,safeValue:t=>this.escapeValue?Me(this.escape(t)):Me(t)}].forEach((e=>{for(o=0;r=e.regex.exec(t);){const n=r[1].trim();if(s=l(n),void 0===s)if("function"==typeof c){const e=c(t,r,i);s=Vt(e)?e:""}else if(i&&Object.prototype.hasOwnProperty.call(i,n))s="";else{if(u){s=r[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${t}`),s=""}else Vt(s)||this.useRawValueToEscape||(s=Gt(s));const a=e.safeValue(s);if(t=t.replace(r[0],a),u?(e.regex.lastIndex+=s.length,e.regex.lastIndex-=r[0].length):e.regex.lastIndex=0,o++,o>=this.maxReplaces)break}})),t}nest(t,e){let n,i,r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=(t,e)=>{const n=this.nestingOptionsSeparator;if(t.indexOf(n)<0)return t;const i=t.split(new RegExp(`${n}[ ]*{`));let s=`{${i[1]}`;t=i[0],s=this.interpolate(s,r);const o=s.match(/'/g),a=s.match(/"/g);(o&&o.length%2==0&&!a||a.length%2!=0)&&(s=s.replace(/'/g,'"'));try{r=JSON.parse(s),e&&(r={...e,...r})}catch(e){return this.logger.warn(`failed parsing options string in nesting for key ${t}`,e),`${t}${n}${s}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,t};for(;n=this.nestingRegexp.exec(t);){let a=[];r={...s},r=r.replace&&!Vt(r.replace)?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const t=n[1].split(this.formatSeparator).map((t=>t.trim()));n[1]=t.shift(),a=t,l=!0}if(i=e(o.call(this,n[1].trim(),r),r),i&&n[0]===t&&!Vt(i))return i;Vt(i)||(i=Gt(i)),i||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${t}`),i=""),l&&(i=a.reduce(((t,e)=>this.format(t,e,s.lng,{...s,interpolationkey:n[1].trim()})),i.trim())),t=t.replace(n[0],i),this.regexp.lastIndex=0}return t}}const Se=t=>{const e={};return(n,i,r)=>{let s=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(s={...s,[r.interpolationkey]:void 0});const o=i+JSON.stringify(s);let a=e[o];return a||(a=t(ae(i),r),e[o]=a),a(n)}};class Ie{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=ue.create("formatter"),this.options=t,this.formats={number:Se(((t,e)=>{const n=new Intl.NumberFormat(t,{...e});return t=>n.format(t)})),currency:Se(((t,e)=>{const n=new Intl.NumberFormat(t,{...e,style:"currency"});return t=>n.format(t)})),datetime:Se(((t,e)=>{const n=new Intl.DateTimeFormat(t,{...e});return t=>n.format(t)})),relativetime:Se(((t,e)=>{const n=new Intl.RelativeTimeFormat(t,{...e});return t=>n.format(t,e.range||"day")})),list:Se(((t,e)=>{const n=new Intl.ListFormat(t,{...e});return t=>n.format(t)}))},this.init(t)}init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=e.interpolation.formatSeparator||","}add(t,e){this.formats[t.toLowerCase().trim()]=e}addCached(t,e){this.formats[t.toLowerCase().trim()]=Se(e)}format(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=e.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&r[0].indexOf(")")<0&&r.find((t=>t.indexOf(")")>-1))){const t=r.findIndex((t=>t.indexOf(")")>-1));r[0]=[r[0],...r.splice(1,t)].join(this.formatSeparator)}return r.reduce(((t,e)=>{const{formatName:r,formatOptions:s}=(t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const i=t.split("(");e=i[0].toLowerCase().trim();const r=i[1].substring(0,i[1].length-1);"currency"===e&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):"relativetime"===e&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach((t=>{if(t){const[e,...i]=t.split(":"),r=i.join(":").trim().replace(/^'+|'+$/g,""),s=e.trim();n[s]||(n[s]=r),"false"===r&&(n[s]=!1),"true"===r&&(n[s]=!0),isNaN(r)||(n[s]=parseInt(r,10))}}))}return{formatName:e,formatOptions:n}})(e);if(this.formats[r]){let e=t;try{const o=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},a=o.locale||o.lng||i.locale||i.lng||n;e=this.formats[r](t,a,{...s,...i,...o})}catch(t){this.logger.warn(t)}return e}return this.logger.warn(`there was no format function for ${r}`),t}),t)}}class Le extends de{constructor(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=t,this.store=e,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=ue.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,i.backend,i)}queueLoad(t,e,n,i){const r={},s={},o={},a={};return t.forEach((t=>{let i=!0;e.forEach((e=>{const o=`${t}|${e}`;!n.reload&&this.store.hasResourceBundle(t,e)?this.state[o]=2:this.state[o]<0||(1===this.state[o]?void 0===s[o]&&(s[o]=!0):(this.state[o]=1,i=!1,void 0===s[o]&&(s[o]=!0),void 0===r[o]&&(r[o]=!0),void 0===a[e]&&(a[e]=!0)))})),i||(o[t]=!0)})),(Object.keys(r).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(s),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(a)}}loaded(t,e,n){const i=t.split("|"),r=i[0],s=i[1];e&&this.emit("failedLoading",r,s,e),!e&&n&&this.store.addResourceBundle(r,s,n,void 0,void 0,{skipCopy:!0}),this.state[t]=e?-1:2,e&&n&&(this.state[t]=0);const o={};this.queue.forEach((n=>{((t,e,n)=>{const{obj:i,k:r}=qt(t,e,Object);i[r]=i[r]||[],i[r].push(n)})(n.loaded,[r],s),((t,e)=>{void 0!==t.pending[e]&&(delete t.pending[e],t.pendingCount--)})(n,t),e&&n.errors.push(e),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((t=>{o[t]||(o[t]={});const e=n.loaded[t];e.length&&e.forEach((e=>{void 0===o[t][e]&&(o[t][e]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",o),this.queue=this.queue.filter((t=>!t.done))}read(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:t,ns:e,fcName:n,tried:i,wait:r,callback:s});this.readingCalls++;const o=(o,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const t=this.waitingReads.shift();this.read(t.lng,t.ns,t.fcName,t.tried,t.wait,t.callback)}o&&a&&i<this.maxRetries?setTimeout((()=>{this.read.call(this,t,e,n,i+1,2*r,s)}),r):s(o,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(t,e,o);try{const n=a(t,e);n&&"function"==typeof n.then?n.then((t=>o(null,t))).catch(o):o(null,n)}catch(t){o(t)}}prepareLoading(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=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."),i&&i();Vt(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Vt(e)&&(e=[e]);const r=this.queueLoad(t,e,n,i);if(!r.toLoad.length)return r.pending.length||i(),null;r.toLoad.forEach((t=>{this.loadOne(t)}))}load(t,e,n){this.prepareLoading(t,e,{},n)}reload(t,e,n){this.prepareLoading(t,e,{reload:!0},n)}loadOne(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=t.split("|"),i=n[0],r=n[1];this.read(i,r,"read",void 0,void 0,((n,s)=>{n&&this.logger.warn(`${e}loading namespace ${r} for language ${i} failed`,n),!n&&s&&this.logger.log(`${e}loaded namespace ${r} for language ${i}`,s),this.loaded(t,n,s)}))}saveMissing(t,e,n,i,r){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e))this.logger.warn(`did not save key "${n}" as the namespace "${e}" 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!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const a={...s,isUpdate:r},l=this.backend.create.bind(this.backend);if(l.length<6)try{let r;r=5===l.length?l(t,e,n,i,a):l(t,e,n,i),r&&"function"==typeof r.then?r.then((t=>o(null,t))).catch(o):o(null,r)}catch(t){o(t)}else l(t,e,n,i,o,a)}t&&t[0]&&this.store.addResource(t[0],e,n,i)}}}const De=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!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:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if("object"==typeof t[1]&&(e=t[1]),Vt(t[1])&&(e.defaultValue=t[1]),Vt(t[2])&&(e.tDescription=t[2]),"object"==typeof t[2]||"object"==typeof t[3]){const n=t[3]||t[2];Object.keys(n).forEach((t=>{e[t]=n[t]}))}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Te=t=>(Vt(t.ns)&&(t.ns=[t.ns]),Vt(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),Vt(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),Ne=()=>{};class Oe extends de{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=Te(t),this.services={},this.logger=ue,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t=>{"function"==typeof n[t]&&(n[t]=n[t].bind(n))})),e&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,e),this;setTimeout((()=>{this.init(t,e)}),0)}}init(){var t=this;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof e&&(n=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&(Vt(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const i=De();this.options={...i,...this.options,...Te(e)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator);const r=t=>t?"function"==typeof t?new t:t:null;if(!this.options.isClone){let e;this.modules.logger?ue.init(r(this.modules.logger),this.options):ue.init(null,this.options),this.modules.formatter?e=this.modules.formatter:"undefined"!=typeof Intl&&(e=Ie);const n=new ve(this.options);this.store=new he(this.options.resources,this.options);const s=this.services;s.logger=ue,s.resourceStore=this.store,s.languageUtils=n,s.pluralResolver=new _e(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!e||this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format||(s.formatter=r(e),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new ke(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new Le(r(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t.emit(e,...i)})),this.modules.languageDetector&&(s.languageDetector=r(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=r(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new ge(this.services,this.options),this.translator.on("*",(function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t.emit(e,...i)})),this.modules.external.forEach((t=>{t.init&&t.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=Ne),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);t.length>0&&"dev"!==t[0]&&(this.options.lng=t[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((e=>{this[e]=function(){return t.store[e](...arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((e=>{this[e]=function(){return t.store[e](...arguments),t}}));const s=Zt(),o=()=>{const t=(t,e)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(e),n(t,e)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return t(null,this.t.bind(this));this.changeLanguage(this.options.lng,t)};return this.options.resources||!this.options.initImmediate?o():setTimeout(o,0),s}loadResources(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ne;const n=Vt(t)?t:this.language;if("function"==typeof t&&(e=t),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return e();const t=[],i=e=>{e&&"cimode"!==e&&this.services.languageUtils.toResolveHierarchy(e).forEach((e=>{"cimode"!==e&&t.indexOf(e)<0&&t.push(e)}))};n?i(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((t=>i(t))),this.options.preload&&this.options.preload.forEach((t=>i(t))),this.services.backendConnector.load(t,this.options.ns,(t=>{t||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),e(t)}))}else e(null)}reloadResources(t,e,n){const i=Zt();return"function"==typeof t&&(n=t,t=void 0),"function"==typeof e&&(n=e,e=void 0),t||(t=this.languages),e||(e=this.options.ns),n||(n=Ne),this.services.backendConnector.reload(t,e,(t=>{i.resolve(),n(t)})),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&pe.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}setResolvedLanguage(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(t,e){var n=this;this.isLanguageChangingTo=t;const i=Zt();this.emit("languageChanging",t);const r=t=>{this.language=t,this.languages=this.services.languageUtils.toResolveHierarchy(t),this.resolvedLanguage=void 0,this.setResolvedLanguage(t)},s=(t,s)=>{s?(r(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,i.resolve((function(){return n.t(...arguments)})),e&&e(t,(function(){return n.t(...arguments)}))},o=e=>{t||e||!this.services.languageDetector||(e=[]);const n=Vt(e)?e:this.services.languageUtils.getBestMatchFromCodes(e);n&&(this.language||r(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(t=>{s(t,n)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(t):o(this.services.languageDetector.detect()),i}getFixedT(t,e,n){var i=this;const r=function(t,e){let s;if("object"!=typeof e){for(var o=arguments.length,a=new Array(o>2?o-2:0),l=2;l<o;l++)a[l-2]=arguments[l];s=i.options.overloadTranslationOptionHandler([t,e].concat(a))}else s={...e};s.lng=s.lng||r.lng,s.lngs=s.lngs||r.lngs,s.ns=s.ns||r.ns,""!==s.keyPrefix&&(s.keyPrefix=s.keyPrefix||n||r.keyPrefix);const c=i.options.keySeparator||".";let u;return u=s.keyPrefix&&Array.isArray(t)?t.map((t=>`${s.keyPrefix}${c}${t}`)):s.keyPrefix?`${s.keyPrefix}${c}${t}`:t,i.t(u,s)};return Vt(t)?r.lng=t:r.lngs=t,r.ns=e,r.keyPrefix=n,r}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let e=arguments.length>1&&void 0!==arguments[1]?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;const n=e.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const s=(t,e)=>{const n=this.services.backendConnector.state[`${t}|${e}`];return-1===n||0===n||2===n};if(e.precheck){const t=e.precheck(this,s);if(void 0!==t)return t}return!(!this.hasResourceBundle(n,t)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!s(n,t)||i&&!s(r,t)))}loadNamespaces(t,e){const n=Zt();return this.options.ns?(Vt(t)&&(t=[t]),t.forEach((t=>{this.options.ns.indexOf(t)<0&&this.options.ns.push(t)})),this.loadResources((t=>{n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}loadLanguages(t,e){const n=Zt();Vt(t)&&(t=[t]);const i=this.options.preload||[],r=t.filter((t=>i.indexOf(t)<0&&this.services.languageUtils.isSupportedCode(t)));return r.length?(this.options.preload=i.concat(r),this.loadResources((t=>{n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const e=this.services&&this.services.languageUtils||new ve(De());return["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","ckb"].indexOf(e.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new Oe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ne;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},r=new Oe(i);return void 0===t.debug&&void 0===t.prefix||(r.logger=r.logger.clone(t)),["store","services","language"].forEach((t=>{r[t]=this[t]})),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},n&&(r.store=new he(this.store.data,i),r.services.resourceStore=r.store),r.translator=new ge(r.services,i),r.translator.on("*",(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];r.emit(t,...n)})),r.init(i,e),r.translator.options=i,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const je=Oe.createInstance();je.createInstance=Oe.createInstance,je.createInstance,je.dir,je.init,je.loadResources,je.reloadResources,je.use,je.changeLanguage,je.getFixedT,je.t,je.exists,je.setDefaultNamespace,je.hasLoadedNamespace,je.loadNamespaces,je.loadLanguages;const Ee="http://www.xbrl.org/2003/iso4217",ze="calc";function Fe(t,e){return t.hours()+t.minutes()+t.seconds()===0?(e&&(t=t.clone().subtract(1,"day")),t.format("D MMM Y")):t.format("D MMM Y HH:mm:ss")}function Pe(t,e){const n=Ht(t),i=(void 0===e?n.toFixed():n.toFixed(Math.max(0,e))).split(".");return i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),i.join(".")}function Re(t,e){const n=[],i=t.split(" ");let r="";return i.forEach(((t,s)=>{if(r.length>0){const o=r+" "+t;if(!(o.length>e))return s===i.length-1?void n.push(o):void(r=o);n.push(r),r=""}s!==i.length-1&&t.length<e?r=t:n.push(t)})),n}function Ye(t,e){let n=Re(t,e),i=n[0];return n.length>1&&(i+=" …"),i}function Ue(t){return t=t.replace(/^(\d{4,}-\d{2}-\d{2})(?!T|$)/,((t,e)=>e+"T00:00:00")),c().utc(t)}function Be(t,e,n){return t.hasOwnProperty(e)||(t[e]=n),t[e]}function We(t){setTimeout((function e(){t.next().done||setTimeout(e,0)}),0)}function He(t,e){return null==e?null:t.toString()+"-"+e}class Ve{constructor(t,e){this.reportSet=t,this._reportData=e,this._reverseRelationshipCache={}}availableLanguages(){if(!this._availableLanguages){this._availableLanguages=new Set;for(const t of Object.values(this._reportData.concepts))for(const e of Object.values(t.labels))for(const t of Object.keys(e))this._availableLanguages.add(t)}return this._availableLanguages}facts(){return this.reportSet.factsForReport(this)}targetDocument(){return this._reportData.target??null}getChildRelationships(t,e){const n={},i=this._reportData.rels[e]||{};for(const e in i)t in i[e]&&(n[e]=i[e][t]);return n}_reverseRelationships(t){if(!(t in this._reverseRelationshipCache)){const e={},n=this._reportData.rels[t]||{};for(const[t,i]of Object.entries(n))for(const[n,r]of Object.entries(i))for(const i of r)i.src=n,Be(Be(e,t,{}),i.t,[]).push(i);this._reverseRelationshipCache[t]=e}return this._reverseRelationshipCache[t]}getParentRelationships(t,e){const n={};for(const[i,r]of Object.entries(this._reverseRelationships(e)))t in r&&(n[i]=r[t]);return n}getParentRelationshipsInGroup(t,e,n){return(this._reverseRelationships(e)[n]||{})[t]||[]}dimensionDefault(t){for(const e of Object.values(this._reportData.rels["d-d"]||{}))if(t in e)return e[t][0].t}relationshipGroups(t){return Object.keys(this._reportData.rels[t]||{})}relationshipGroupRoots(t,e){const n=[];for(const i in this._reportData.rels[t][e])e in this.getParentRelationships(i,t)||n.push(i);return n}getAlignedFacts(t,e){const n=this.reportSet.facts(),i=[];e||(e={});for(const r of n)r.isAligned(t,e)&&i.push(r);return i}deduplicate(t){const e=[];for(const n of t){let t=!1;for(const i of e)i.isAligned(n,{})&&(t=!0);t||e.push(n)}return e}getConcept(t){return new s(this,t)}getRoleLabel(t){const e=this._reportData.roleDefs[t];if(void 0!==e){const t=e.en;if(null!=t)return t}return this.reportSet.roleMap()[t]}localDocuments(){return void 0===this._reportData.localDocs?{}:this._reportData.localDocs}qname(t){return this.reportSet.qname(t)}getScaleLabel(t,e){let n=je.t(`scale.${t}`,{defaultValue:"noName"});if(e&&e.isMonetary()&&-2===t){let t=e.value()??"";t&&(t=this.qname(t).localname),n=je.t(`currencies:cents${t}`,{defaultValue:n})}return"noName"===n?null:n}concepts(){return this._reportData.concepts}getLabel(t,e,n){e=e||"std";const i=this.reportSet.viewerOptions.language,r=this._reportData.concepts[t];if(void 0===r)return console.log("Attempt to get label for undefined concept: "+t),"<no label>";const s=r.labels[e];if(void 0!==s&&0!=Object.keys(s).length){let e;if(e=i&&s[i]?s[i]:s.en||s["en-us"]||s[Object.keys(s).sort()[0]],void 0===e)return;let r="";return n&&this.reportSet.viewerOptions.showPrefixes&&(r="("+this.qname(t).prefix+") "),r+=e,r}}getLabelOrName(t,e,n){const i=this.getLabel(t,e,n);return void 0===i?t:i}isCalculationContributor(t){return void 0===this._calculationContributors&&(this._reportData.rels?.calc?this._calculationContributors=new Set(Object.values(this._reportData.rels.calc).flatMap((t=>Object.values(t).flatMap((t=>t.map((t=>t.t))))))):this._calculationContributors=new Set),this._calculationContributors.has(t)}isCalculationSummation(t){return void 0===this._calculationSummations&&(this._reportData.rels?.calc?this._calculationSummations=new Set(Object.values(this._reportData.rels.calc).flatMap((t=>Object.keys(t)))):this._calculationSummations=new Set),this._calculationSummations.has(t)}softwareCredits(){return this._reportData.softwareCredits??[]}}class Ze{constructor(t){this._p=t}type(){if(this._p)return"f"==this._p?"f":this._p.includes("/")?"d":"i"}toString(){let t;return t=this._p?"f"===this._p?"None":this._p.includes("/")?Fe(this.from(),!1)+" to "+Fe(this.to(),!0):Fe(this.to(),!0):"Undefined",t}to(){return this._p&&"f"!==this._p?this._p.includes("/")?Ue(this._p.split("/")[1]):Ue(this._p):null}from(){return this._p&&this._p.includes("/")?Ue(this._p.split("/")[0]):null}isEquivalentDuration(t){const e=t.type(),n=this.type();if(!e||!n)return!1;if(e!==n)return!1;if("d"!==e)return!0;const i=t.to().toDate()-t.from().toDate(),r=this.to().toDate()-this.from().toDate();return Math.abs(i-r)<.1*(i+r)}key(){return this._p}}const Ge={"http://standards.iso.org/iso/17442":{name:"LEI",url:"https://search.gleif.org/#/record/%s"},"http://www.sec.gov/CIK":{name:"CIK",url:"https://www.sec.gov/cgi-bin/browse-edgar?CIK=%s"},"http://www.companieshouse.gov.uk/":{name:"UK CRN",url:"https://beta.companieshouse.gov.uk/company/%08d"},"https://www.minfin.gov.ua":{name:"EDRPOU"}};class Qe{static identifierURL(t){const e=Ge[t.namespace];if(void 0!==e&&void 0!==e.url){let n=e.url.replace("%s",t.localname);return n=n.replace(/%0(\d+)d/,((e,n)=>t.localname.padStart(n,"0"))),n}}static identifierNameForFact(t){const e=Ge[t.identifier().namespace];if(void 0!==e)return e.name}static readableName(t){const e=Ge[t.namespace];return void 0!==e?"["+e.name+"] "+t.localname:t.qname}static readableNameHTML(t){const e=Ge[t.namespace],n=document.createElement("span");if(void 0!==e){n.appendChild(document.createElement("span")).textContent="["+e.name+"] ";const i=Qe.identifierURL(t);if(void 0!==i){const e=n.appendChild(document.createElement("a"));e.textContent=t.localname,e.setAttribute("target","_blank"),e.setAttribute("href",i)}else n.appendChild(document.createElement("span")).textContent=t.localname}else n.textContent=t.qname;return n}}const Je={c:"Concept",e:"Entity",p:"Period",u:"Unit"};class Xe{constructor(t,e,n){this._aspect=t,this._value=e,this._report=n}name(){return this._aspect}label(){return Je[this._aspect]??this._report.getLabel(this._aspect)}value(){return this._value}equalTo(t){return void 0!==t&&this._aspect===t._aspect&&this._value===t._value}isTaxonomyDefined(){return this._aspect.includes(":")}isNil(){return null===this._value}valueLabel(t){return"c"===this._aspect?this._report.getLabel(this._value,t)||this._value:this.isTaxonomyDefined()?this._report.getConcept(this._aspect).isTypedDimension()?null===this._value?"nil":this._value:this._report.getLabel(this._value,t)||this._value:"u"===this._aspect?this._report.reportSet.getUnit(this._value).label():"p"===this._aspect?new Ze(this._value).toString():"e"===this._aspect?Qe.readableName(this._report.qname(this._value)):this._value}}class qe{constructor(t){this._aspectSet=t||[]}add(t){this._aspectSet.push(t)}uniqueValues(){let t={};for(const e of Object.values(this._aspectSet))t[e.value()]=e;return Object.values(t)}}class $e{constructor(t,e){this.a="object"==typeof t?t:new Ht(t),this.b="object"==typeof e?e:new Ht(e)}static fromFact(t){if(!t.isNumeric())return;const e=t.decimals();let n,i=0;void 0!==e&&(i=new Ht(10).pow(0-e).times(.5));const r=t.value();try{n=new Ht(r)}catch(t){if(t instanceof Error&&/DecimalError/.test(t.message))return;throw t}return new $e(n.minus(i),n.plus(i))}intersection(t){return $e.intersection(this,t)}static intersection(...t){if(t.includes(void 0)||0==t.length)return;const e=t.map((t=>t.a)),n=t.map((t=>t.b)),i=Ht.max(...e),r=Ht.min(...n);return r.lessThan(i)?void 0:new $e(i,r)}plus(t){return new $e(this.a.plus(t.a),this.b.plus(t.b))}times(t){return t>0?new $e(this.a.times(t),this.b.times(t)):new $e(this.b.times(t),this.a.times(t))}midpoint(){return Ht.add(this.a,this.b).div(2)}}class Ke{constructor(t,e,n){this.f=n,this.ixNode=t.reportSet.getIXNodeForItemId(e),this.report=t,this.vuid=e,this.linkedFacts=[],this._footnotes=[]}localId(){return function(t){return t.replace(/^\d+-/,"")}(this.vuid)}getLabel(t,e){return this.report.getLabel(this.f.a.c,t,e)}getLabelOrName(t,e){return this.report.getLabelOrName(this.f.a.c,t,e)}conceptName(){return this.f.a.c}concept(){return this.report.getConcept(this.f.a.c)}conceptQName(){return this.report.qname(this.f.a.c)}period(){return new Ze(this.f.a.p)}periodString(){return this.period().toString()}periodTo(){return this.period().to()}periodFrom(){return this.period().from()}value(){return this.f.v}readableValue(t){let n=void 0===t?this.f.v:t;if(this.isInvalidIXValue())n="Invalid value";else if(this.isNumeric()){const t=this.decimals();let e;e=this.isNil()?"nil":Pe(n,t),n=this.isMonetaryValue()?this.unitLabel()+" "+e:e+" "+this.unitLabel()}else if(this.isNil())n="nil";else if(this.isTextBlock()){const t=e()("<div>").append(e()(e().parseHTML(n,null,!1)));t.find("p, td, th, h1, h2, h3, h4, ol, ul, pre, blockquote, dl, div").append(document.createTextNode(" ")).prepend(document.createTextNode(" ")),n=t.text().replace(/[\u00a0\s]+/g," ").trim()}else if(this.isEnumeration()){const t=[];for(const e of n.split(" "))t.push(this.report.getLabelOrName(e,"std"));n=t.join(", ")}return n}unit(){if(void 0===this._unit){const t=this.aspect("u")?.value();if(!t)return;this._unit=this.report.reportSet.getUnit(t)}return this._unit}unitLabel(){return this.unit()?.label()??je.t("factDetails.noUnit")}getConceptPrefix(){return this.conceptName().split(":")[0]}isCalculationContributor(){return void 0===this._isCalculationContributor&&(this._isCalculationContributor=this.report.isCalculationContributor(this.f.a.c)),this._isCalculationContributor}isCalculationSummation(){return void 0===this._isCalculationSummation&&(this._isCalculationSummation=this.report.isCalculationSummation(this.f.a.c)),this._isCalculationSummation}isNumeric(){return void 0!==this.f.a.u}dimensions(){const t={};for(const[e,n]of Object.entries(this.f.a))e.indexOf(":")>-1&&(t[e]=n);return t}hasExplicitDimension(){return Object.keys(this.dimensions()).some((t=>!this.report.getConcept(t).isTypedDimension()))}hasTypedDimension(){return Object.keys(this.dimensions()).some((t=>this.report.getConcept(t).isTypedDimension()))}isMonetaryValue(){return this.unit()?.isMonetary()??!1}isTextBlock(){return this.concept().isTextBlock()}aspects(){return Object.keys(this.f.a).map((t=>this.aspect(t)))}aspect(t){return void 0===this._aspects&&(this._aspects={}),void 0===this._aspects[t]&&void 0!==this.f.a[t]&&(this._aspects[t]=new Xe(t,this.f.a[t],this.report)),this._aspects[t]}isAligned(t,e){if(Object.keys(this.f.a).length!=Object.keys(t.f.a).length)return!1;for(const n in this.f.a)if(e.hasOwnProperty(n)){if(null!==e[n])if(e[n].constructor===Array){if(!e[n].includes(this.f.a[n]))return!1}else if(this.f.a[n]!=e[n])return!1}else if(this.f.a[n]!=t.f.a[n])return!1;return!0}isEquivalentDuration(t){return this.period().isEquivalentDuration(t.period())}decimals(){return this.f.d}scale(){return this.ixNode.scale}duplicates(){return this.report.getAlignedFacts(this)}isNil(){return null===this.f.v}isNegative(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Ht(this.value()).isNegative()&&!this.isZero()}isPositive(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Ht(this.value()).isPositive()&&!this.isZero()}isZero(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Ht(this.value()).isZero()}isInvalidIXValue(){return"INVALID_IX_VALUE"==this.f.err}getScaleLabel(t,e=!1){return this.report.getScaleLabel(e?-t:t,this.unit())}readableAccuracy(){if(!this.isNumeric()||this.isNil())return je.t("common.notApplicable");const t=this.decimals();if(void 0===t)return je.t("common.accuracyInfinite");if(null===t)return je.t("common.unspecified");const e=this.getScaleLabel(t,!0);return null!=e?e:t.toString()}readableScale(){if(!this.isNumeric()||this.isNil())return je.t("common.notApplicable");const t=this.scale();if(null==t)return je.t("common.unscaled");const e=this.getScaleLabel(t);return null!=e?e:t.toString()}identifier(){return this.report.qname(this.f.a.e)}escaped(){return this.ixNode.escaped}isEnumeration(){return this.concept().isEnumeration()}addFootnote(t){this._footnotes.push(t)}footnotes(){return this._footnotes}isHidden(){return this.ixNode.isHidden}isHTMLHidden(){return this.ixNode.htmlHidden()}widerConcepts(){const t=[],n=this.report.getParentRelationships(this.conceptName(),"w-n");for(const i in n)t.push(...e().map(n[i],(t=>t.src)));return t}narrowerConcepts(){const t=[],n=this.report.getChildRelationships(this.conceptName(),"w-n");for(const i in n)t.push(...e().map(n[i],(t=>t.t)));return t}addLinkedFact(t){this.linkedFacts.push(t)}roundedValue(){Ht.rounding=Ht.ROUND_HALF_UP;const t=new Ht(this.value()),e=this.decimals();return void 0===e?t:t.mul(10**e).round().mul(10**(0-e))}isCompleteDuplicate(t){return this.value()===t.value()&&this.decimals()===t.decimals()}addLinkedFact(t){this.linkedFacts.push(t)}valueInterval(){return $e.fromFact(this)}isMorePrecise(t){return void 0!==t.decimals()&&(void 0===this.decimals()||this.decimals()>t.decimals())}targetDocument(){return this.report.targetDocument()}}class tn{constructor(t,e,n){this.vuid=e,this.linkedFacts=[],this.title=n,this.ixNode=t.reportSet.getIXNodeForItemId(e)}addLinkedFact(t){this.linkedFacts.push(t)}textContent(){return this.ixNode.textContent()}readableValue(){return this.textContent()}isTextBlock(){return!1}}class en{constructor(t,e){this._reportSet=t,this._value=e;const n=e.split(/[()]/gi).join("").split("/");this._numerators=n[0].split("*"),this._denominators=n.length>1?n[1].split("*"):[],this._isMonetary=0===this._denominators.length&&1===this._numerators.length&&this._reportSet.qname(this._numerators[0]).namespace===Ee,this._label=n.map((t=>{const e=t.split("*").map((t=>function(t,e){const n=t.qname(e);return n.namespace===Ee?e=je.t(`currencies:unitFormat${n.localname}`,{defaultValue:n.localname}):e.includes(":")&&(e=e.split(":")[1]),e}(this._reportSet,t))).join("*");return e.includes("*")?`(${e})`:e})).join("/")}isMonetary(){return this._isMonetary}label(){return this._label}value(){return this._value}}class nn{constructor(t,e){const n=e.split(":",2);this.localname=n[1],this.prefix=n[0],this.namespace=t[n[0]],this.qname=e}}function rn(){this.showPrefixes=!0,this.language=null}class sn{constructor(t){this._data=t,this._ixNodeMap={},this.viewerOptions=new rn}setIXNodeMap(t){this._ixNodeMap=t,this._initialize()}_initialize(){this._items={},this.reports=[];const t=Object.keys(this._ixNodeMap).filter((t=>this._ixNodeMap[t].footnote));t.sort(((t,e)=>this._ixNodeMap[t].docOrderindex-this._ixNodeMap[e].docOrderindex));for(const[e,n]of(this._data.sourceReports??[{targetReports:[this._data]}]).entries())for(const i of n.targetReports){const n=new Ve(this,i);this.reports.push(n);for(const[t,r]of Object.entries(i.facts)){const i=He(e,t);this._items[i]=new Ke(n,i,r)}for(const[n,r]of Object.entries(i.facts)){const i=He(e,n),s=this._items[i];(r.fn||[]).forEach((n=>{const i=He(e,n);var r=this._items[i];void 0===r&&(r=new tn(s.report,i,"Footnote "+(t.indexOf(i)+1)),this._items[i]=r),r.addLinkedFact(s),s.addFootnote(r)}))}}}availableLanguages(){return Array.from(this.reports.reduce(((t,e)=>new Set([...t,...e.availableLanguages()])),new Set))}getItemById(t){return this._items[t]}getIXNodeForItemId(t){return this._ixNodeMap[t]||{}}facts(){return Object.values(this._items).filter((t=>t instanceof Ke))}filingDocuments(){return this._data.filingDocuments}prefixMap(){return this._data.prefixes}namespaceGroups(){const t={};for(const e of this.facts())t[e.conceptQName().prefix]=(t[e.conceptQName().prefix]||0)+1;const e=Object.keys(t);return e.sort(((e,n)=>t[n]-t[e])),e}getUsedConceptPrefixes(){return void 0===this._usedPrefixes&&(this._usedPrefixes=new Set(Object.values(this._items).filter((t=>t instanceof Ke)).map((t=>t.getConceptPrefix())))),this._usedPrefixes}getSoftwareCredits(){let t=new Set(this.reports.flatMap((t=>t.softwareCredits())));return Array.from(t).sort()}getTargetDocuments(){return void 0===this._targetDocuments&&(this._targetDocuments=new Set(Object.values(this._items).filter((t=>t instanceof Ke)).map((t=>t.targetDocument())))),this._targetDocuments}getUsedUnits(){return void 0===this._usedUnits&&(this._usedUnits=new Set(Object.values(this._items).filter((t=>t instanceof Ke)).map((t=>t.unit()?.value())).filter((t=>t)).sort())),this._usedUnits}getUnit(t){return void 0===this._unitsMap&&(this._unitsMap={}),void 0===this._unitsMap[t]&&(this._unitsMap[t]=new en(this,t)),this._unitsMap[t]}getUsedScalesMap(){const t={};return Object.values(this._items).filter((t=>t instanceof Ke)).forEach((e=>{const n=e.scale();if(null!=n){n in t||(t[n]=new Set);const r=t[n],s=(i=e.getScaleLabel(n))?i.split(" ").map((t=>Array.from(t).map(((t,e)=>0===e?t.toUpperCase():t)).join(""))).join(" "):i;s&&!r.has(s)&&r.add(s)}var i})),t}roleMap(){return this._data.roles}qname(t){return new nn(this.prefixMap(),t)}reportsData(){return this._data.sourceReports?.flatMap((t=>t.targetReports))??[this._data]}reportFiles(){return(this._data.sourceReports??[this._data]).map(((t,e)=>(t.docSetFiles??[]).map((t=>({index:e,file:t}))))).flat()}isMultiDocumentViewer(){return this.reportFiles().length>1}usesAnchoring(){return this.reportsData().some((t=>void 0!==t.rels?.["w-n"]))}hasValidationErrors(){return void 0!==this._data.validation&&this._data.validation.length>0}validation(){return this._data.validation}factsForReport(t){return Object.values(this._items).filter((e=>e instanceof Ke&&e.report==t))}}function on(t){return"(?:"+t.join("|")+")"}function an(t){return"(?:"+t+")?"}function ln(t){return"(?:"+t+")*"}const cn=on(["$","¢","\\bUS$","€","£","¥","\\bC$","\\bA$","\\bNT$","\\bS$","₩","₱","₨","\\bkr","\\bFr.","\\bRM","\\bR$","\\bR"]).replace(/([$.])/g,"\\$1"),un="[  \t\n\r]",dn=un+"*",hn="[-—]",pn="(?:^|(?<=(?:[/“—([]|"+un+"|"+hn+")))",fn="(?:$|(?=(?:[/,.:;”—)\\]]|"+un+"|"+hn+")))",gn="(?:st|nd|rd|th)",mn="[123]?\\d"+gn+"?",vn="(?:jan|january|feb|february|mar|march|apr|april|may|jun|june|jul|july|aug|august|sep|september|sept|oct|october|nov|november|dec|december)",yn="(?:[01]?\\d)",bn="(?:19|20)\\d\\d",xn="year"+dn+bn,wn=vn+dn+mn+dn+","+dn+bn,An=bn+dn+vn+dn+mn,_n="\\d{4}-\\d{2}-\\d{2}",Cn=on([wn,An,vn+dn+bn,vn+dn+mn,_n]),Mn=(on([wn,An,_n]),"\\b"+on([Cn,bn,xn])+"\\b"),kn="\\d+"+dn+"months?",Sn="(?:\\b(?:zero|one|two|three|four(?:teen)?|five|six(?:ty|teen)?|seven(?:ty|teen)?|eight(?:y|een)?|nine(?:ty|teen)?|ten|eleven|twelve|thirteen|fifteen|twenty|thirty|forty|fifty)\\b)",In="section"+dn+"\\d{1,3}\\(?:?\\w\\)?",Ln="topic"+dn+"\\d{1,3}(?:\\.[\\w\\d])*",Dn="form"+dn+"\\d{1,2}-\\w",Tn="asc"+dn+"\\w\\d{1,3}(?:-\\w?\\d{1,3})*",Nn="item"+dn+"\\d{1,2}\\w?",On="rule"+dn+"\\d{1,3}\\w?(?:-\\d{1,3}\\w?)*",jn="note"+dn+"\\d{1,3}",En="level"+dn+"\\d{1,3}",zn="page"+dn+"\\d{1,3}",Fn="tier"+dn+"\\d{1,3}",Pn=on([Sn,"\\d+"])+dn+"months ended",Rn=on([In,Ln,Dn,Tn,Nn,On,jn,En,zn,Fn,Pn,yn+"/[0-3]?d/"+bn,yn+"/\\d\\d"]),Yn=on([an(dn+hn+dn),dn]),Un=Sn+ln(Yn+Sn),Bn=Un+ln(Yn+"(\\b(hundred|thousand|million|billion|trillion)\\b)"+an(Yn+Un)),Wn=on([on(["\\d{1,3}(?:,\\d{3})+","\\d+"])+an("\\.\\d+"),"\\.\\d+"]),Hn=on([an(cn+dn)+an("[-+(]"+dn)+an(cn+dn)+Wn+an(gn)+an(dn+on([cn,"\\%"]))+dn+"\\)?"+an(dn+on([cn,"\\%"])),Bn,"\\b(?:no|none)\\b","[-֊־‐-―﹘﹣]"]),Vn=pn+on(["("+Mn+")","("+Rn+")",kn,Hn])+fn,Zn=new RegExp(Vn,"gi");var Gn=n(461),Qn=n(60);function Jn(t,e){var n=e.attribute;return t=t.replace(Xn,"&amp;").replace(qn,"&gt;").replace($n,"&lt;"),n&&(t=t.replace(Kn,"&apos;").replace(ti,"&quot;")),t}var Xn=/&/g,qn=/>/g,$n=/</g,Kn=/'/g,ti=/"/g,ei=/((?:[\0-\x08\x0B\f\x0E-\x1F\uFFFD\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/g,ni=new RegExp("([\\x7F-\\x84]|[\\x86-\\x9F]|[\\uFDD0-\\uFDEF]|(?:\\uD83F[\\uDFFE\\uDFFF])|(?:\\uD87F[\\uDFFE\\uDFFF])|(?:\\uD8BF[\\uDFFE\\uDFFF])|(?:\\uD8FF[\\uDFFE\\uDFFF])|(?:\\uD93F[\\uDFFE\\uDFFF])|(?:\\uD97F[\\uDFFE\\uDFFF])|(?:\\uD9BF[\\uDFFE\\uDFFF])|(?:\\uD9FF[\\uDFFE\\uDFFF])|(?:\\uDA3F[\\uDFFE\\uDFFF])|(?:\\uDA7F[\\uDFFE\\uDFFF])|(?:\\uDABF[\\uDFFE\\uDFFF])|(?:\\uDAFF[\\uDFFE\\uDFFF])|(?:\\uDB3F[\\uDFFE\\uDFFF])|(?:\\uDB7F[\\uDFFE\\uDFFF])|(?:\\uDBBF[\\uDFFE\\uDFFF])|(?:\\uDBFF[\\uDFFE\\uDFFF])(?:[\\0-\\t\\x0B\\f\\x0E-\\u2027\\u202A-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]))","g");function ii(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).removeDiscouragedCharacters,n=void 0===e||e;return t=t.replace(ei,""),n&&(t=t.replace(ni,"")),t}function ri(t){return Jn(ii(t),{attribute:!0})}function si(t){return Jn(ii(t),{attribute:!1})}function oi(t){return Object.keys(t).map((function(e){return"".concat(e,'="').concat(ri(String(t[e])),'"')})).reduce((function(t,e){return t+" "+e}),"")}function ai(t,e){return"".concat(ci(t)).concat(e)}var li=26;function ci(t){if("number"!=typeof t)return"";var e=Math.floor(t/li),n=String.fromCharCode(97+t%li).toUpperCase();return 0===e?n:ci(e-1)+n}function ui(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function di(t,e,n,i,r,s){if(null===n&&!r)return"";var o={r:ai(e,t)};if(r&&(o.s=r),null===n)return"<c".concat(oi(o),"/>");if(i===Date&&!r)throw new Error('No "format" has been specified for a Date cell');n=function(t,e,n){switch(t){case String:if("string"!=typeof e)throw new Error("Invalid cell value: ".concat(e,". Expected a string"));return n(e);case Number:if("number"!=typeof e)throw new Error("Invalid cell value: ".concat(e,". Expected a number"));return String(e);case Date:if(!(e instanceof Date))throw new Error("Invalid cell value: ".concat(e,". Expected a Date"));return String(function(t){return t.getTime()/864e5+25569}(e));case Boolean:if("boolean"!=typeof e)throw new Error("Invalid cell value: ".concat(e,". Expected a boolean"));return e?"1":"0";case"Formula":if("string"!=typeof e)throw new Error("Invalid cell value: ".concat(e,". Expected a string"));return si(e);default:throw new Error("Unknown schema type: ".concat(t&&t.name||t))}}(i,n,s),(i=function(t){switch(t){case String:return"s";case Number:case Date:return;case Boolean:return"b";case"Formula":return"f";default:throw new Error("Unknown schema type: ".concat(t&&t.name||t))}}(i))&&(o.t=i);var a,l,c=function(t){var e=function(t){switch(t){case"inlineStr":return"<is><t>";case"f":return"<f>";default:return"<v>"}}(t),n=e.replace(hi,"</");return[e,n]}(i),u=(l=2,function(t){if(Array.isArray(t))return t}(a=c)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,s=[],o=!0,a=!1;try{for(n=n.call(t);!(o=(i=n.next()).done)&&(s.push(i.value),!e||s.length!==e);o=!0);}catch(t){a=!0,r=t}finally{try{o||null==n.return||n.return()}finally{if(a)throw r}}return s}}(a,l)||function(t,e){if(t){if("string"==typeof t)return ui(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ui(t,e):void 0}}(a,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=u[0],h=u[1];return"<c".concat(oi(o),">")+d+n+h+"</c>"}var hi=/</g;function pi(t){var e=t.align,n=t.alignVertical,i=t.textRotation,r=t.indent,s=t.wrap,o=t.fontFamily,a=t.fontSize,l=t.fontWeight,c=t.fontStyle,u=t.color,d=t.backgroundColor,h=t.borderColor,p=t.borderStyle,f=t.leftBorderColor,g=t.leftBorderStyle,m=t.rightBorderColor,v=t.rightBorderStyle,y=t.topBorderColor,b=t.topBorderStyle,x=t.bottomBorderColor,w=t.bottomBorderStyle;if(e||n||i||r||s||o||a||l||c||u||d||h||p||f||g||m||v||y||b||x||w)return function(t){var e={};for(var n in t)void 0!==t[n]&&(e[n]=t[n]);return e}({align:e,alignVertical:n,textRotation:i,indent:r,wrap:s,fontFamily:o,fontSize:a,fontWeight:l,fontStyle:c,color:u,backgroundColor:d,borderColor:h,borderStyle:p,leftBorderColor:f,leftBorderStyle:g,rightBorderColor:m,rightBorderStyle:v,topBorderColor:y,topBorderStyle:b,bottomBorderColor:x,bottomBorderStyle:w})}function fi(t){return fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fi(t)}function gi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function mi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?gi(Object(n),!0).forEach((function(e){vi(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function vi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var bi={fontWeight:"bold"};function xi(t,e){if(!t)return"";if(t.type!==Date||t.width||(t.width=14),!t.width)return"";var n=e+1;return'<col min="'.concat(n,'" max="').concat(n,'" width="').concat(t.width,'" customWidth="1"/>')}function wi(t){var e=t.data,n=t.rowIndex,i=t.columnIndex,r=t.span,s=t.rowSpan,o=t.cloneData,a=pi(e[n][i]);a&&(e=o());for(var l=n;l<=n+(s-1);){for(var c=i;c<=i+(r-1);){var u=e[l][c];if(l>n||c>i){if(null!=u)throw new Error("[write-excel-file] When using `span` or `rowSpan` parameters, all hidden overlapped cells should be represented by `null`s or `undefined`s. Cell at row ".concat(n+1," and column ").concat(i+1," is configured with `span` ").concat(r," and `rowSpan` ").concat(s,". Cell at row ").concat(l+1," and column ").concat(c+1," is neither `null` nor `undefined`: ").concat(JSON.stringify(u)));a&&(e[l][c]=a)}c++}l++}}function Ai(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function _i(t,e){var n=e.schema,i=e.columns,r=e.getHeaderStyle,s=e.getStyle,o=e.getSharedString,a=e.customFont,l=e.dateFormat,c=e.orientation,u=e.stickyRowsCount,d=e.stickyColumnsCount,h=e.showGridLines,p=e.rightToLeft,f=e.sheetId;!function(t,e){if(e.schema){if(!Array.isArray(t))throw new TypeError("Expected an array of objects")}else{if(!Array.isArray(t))throw new TypeError("Expected an array of arrays");if(t.length>0&&!Array.isArray(t[0]))throw new TypeError("Expected an array of arrays")}}(t,{schema:n});var g=function(t,e){var n=[];if(e.schema)return{data:t,mergedCells:n};for(var i=function(){t=t.slice();for(var e=0;e<t.length;)t[e]=t[e].slice(),e++;return i=function(){return t},t},r=0;r<t.length;){for(var s=t[r],o=0;o<s.length;){var a=s[o];if(a){var l=a.span,c=void 0===l?1:l,u=a.rowSpan,d=void 0===u?1:u;(c>1||d>1)&&(wi({data:t,rowIndex:r,columnIndex:o,span:c,rowSpan:d,cloneData:i}),n.push([[r,o],[r+(d?d-1:0),o+(c?c-1:0)]]))}o++}r++}return{data:t,mergedCells:n}}(t,{schema:n}),m=g.data,v=g.mergedCells;return'<?xml version="1.0" ?>\n<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main">{views}{columnsDescription}<sheetData>{data}</sheetData>{mergedCellsDescription}{layout}</worksheet>'.replace("{data}",function(t,e){var n=e.schema,i=e.getHeaderStyle,r=e.getStyle,s=e.getSharedString,o=e.customFont,a=e.dateFormat;if(n){for(var l,c=[],u=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return yi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(l=u()).done;)if(l.value.column){c=[n.map((function(t){return mi({type:String,value:t.column,align:t.align},i?i(t):bi)}))];break}t=c.concat(t.map((function(t){return n.map((function(e){return mi(mi({},e),{},{value:e.value(t)})}))})))}return t.map((function(t,e){return function(t,e,n){var i,r=n.getStyle,s=n.getSharedString,o=n.customFont,a=n.dateFormat,l=n.usesSchema,c=e+1,u=t.map((function(t,e){if(null==t)return"";var n,u=t.height,d=pi(t),h=t.type,p=t.value,f=t.format;if(function(t){return null==t||""===t}(p)?p=null:void 0===h&&(l||(h=function(t){switch(fi(t)){case"string":return String;case"number":return Number;case"boolean":return Boolean;default:if(t instanceof Date)return Date}}(p)),void 0===h&&(h=String,p=String(p))),f){if(h!==Date&&h!==Number&&"Formula"!==h)throw new Error('`format` can only be used on `Date`, `Number` or `"Formula"` cells')}else h===Date&&(f=a);return(f||o||d)&&(n=r(d||{},{format:f})),u&&(void 0===i||i<u)&&(i=u),di(c,e,p,h,n,s)})).join(""),d={r:c};return i&&(d.ht=i,d.customHeight=1),"<row".concat(oi(d),">")+u+"</row>"}(t,e,{getStyle:r,getSharedString:s,customFont:o,dateFormat:a,usesSchema:void 0!==n})})).join("")}(m,{schema:n,getHeaderStyle:r,getStyle:s,getSharedString:o,customFont:a,dateFormat:l})).replace("{views}",function(t){var e=t.stickyRowsCount,n=t.stickyColumnsCount,i=t.showGridLines,r=t.rightToLeft;if(!e&&!n&&!1!==i&&!r)return"";var s="",o={tabSelected:1,workbookViewId:0};!1===i&&(o.showGridLines=!1),r&&(o.rightToLeft=1);var a={ySplit:e||0,xSplit:n||0,topLeftCell:ai(n||0,(e||0)+1),activePane:"bottomRight",state:"frozen"};return s+="<sheetViews>",s+="<sheetView".concat(oi(o),">"),s+="<pane".concat(oi(a),"/>"),(s+="</sheetView>")+"</sheetViews>"}({stickyRowsCount:u,stickyColumnsCount:d,showGridLines:h,rightToLeft:p})).replace("{columnsDescription}",function(t){var e=t.schema,n=t.columns;if(e||n){var i=(e||n).map(xi).join("");if(i)return"<cols>".concat(i,"</cols>")}return""}({schema:n,columns:i})).replace("{mergedCellsDescription}",function(t){return 0===t.length?"":'<mergeCells count="'.concat(t.length,'">')+t.map((function(t){var e,n,i=(n=2,function(t){if(Array.isArray(t))return t}(e=t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,s=[],o=!0,a=!1;try{for(n=n.call(t);!(o=(i=n.next()).done)&&(s.push(i.value),!e||s.length!==e);o=!0);}catch(t){a=!0,r=t}finally{try{o||null==n.return||n.return()}finally{if(a)throw r}}return s}}(e,n)||function(t,e){if(t){if("string"==typeof t)return Ai(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ai(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),r=i[0],s=i[1],o=ai(r[1],r[0]+1)+":"+ai(s[1],s[0]+1);return'<mergeCell ref="'.concat(o,'"/>')})).join("")+"</mergeCells>"}(v)).replace("{layout}",function(t){var e=t.sheetId,n=t.orientation,i="";return n&&(i+="<pageMargins",i+=' left="'.concat(.7,'"'),i+=' right="'.concat(.7,'"'),i+=' top="'.concat(.75,'"'),i+=' bottom="'.concat(.75,'"'),i+=' header="'.concat(.3,'"'),i+=' footer="'.concat(.3,'"'),i+="/>"),n&&(i+="<pageSetup",i+=' paperSize="'.concat(9,'"'),i+=' orientation="'.concat(ri(n),'"'),i+=' r:id="rId'.concat(e,'"'),i+="/>"),i}({sheetId:f,orientation:c}))}function Ci(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Mi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Mi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function ki(t){if("#"!==t[0])throw new Error('Color "'.concat(t,'" must start with a "#"'));return"FF".concat(t.slice(1).toUpperCase())}function Si(t){if(!(t>=-90&&t<=90))throw new Error("Unsupported text rotation angle: ".concat(t,". Values from -90 to 90 are supported."));return t}function Ii(t){return t<0?90-t:t}function Li(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Di(){var t=[],e={};return{getSharedStringsXml:function(){return function(t){var e='<?xml version="1.0"?>';e+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">';for(var n,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Li(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Li(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(n=i()).done;){var r=n.value,s=r.trim().length===r.length?"":' xml:space="preserve"';e+="<si><t".concat(s,">"),e+=si(r),e+="</t></si>"}return e+"</sst>"}(t)},getSharedString:function(n){var i=e[n];return void 0===i&&(i=String(t.length),e[n]=i,t.push(n)),i}}}var Ti=/[\[\]\/\\:*?]+/;function Ni(t){if(!t)throw new Error("Sheet name can't be empty");if(t.length>31)throw new Error('Sheet name "'.concat(t,"\" can't be longer than 31 characters"));if(Ti.test(t))throw new Error('Sheet name "'.concat(t,'" contains illegal characters: []/\\:*?'))}function Oi(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return ji(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ji(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ji(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Ei=["fileName"];function zi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Fi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.fileName;return function(t,e){var n=e.sheet,i=e.sheets,r=e.schema,s=e.columns,o=e.headerStyle,a=e.getHeaderStyle,l=e.fontFamily,c=e.fontSize,u=e.orientation,d=e.stickyRowsCount,h=e.stickyColumnsCount,p=e.showGridLines,f=e.rightToLeft,g=e.dateFormat,m=new Gn;m.file("_rels/.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>'),m.file("[Content_Types].xml",'<?xml version="1.0" ?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default ContentType="application/xml" Extension="xml"/><Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet1.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" PartName="/xl/workbook.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" PartName="/xl/sharedStrings.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" PartName="/xl/styles.xml"/></Types>');var v=function(t){var e=t.data,n=t.sheetName,i=t.sheetNames,r=t.schema,s=t.columns,o=t.headerStyle,a=t.getHeaderStyle,l=t.fontFamily,c=t.fontSize,u=t.orientation,d=t.stickyRowsCount,h=t.stickyColumnsCount,p=t.showGridLines,f=t.rightToLeft,g=t.dateFormat,m=Di(),v=m.getSharedStringsXml,y=m.getSharedString,b=function(t){var e=t.fontFamily,n=t.fontSize,i=Boolean(e||n);void 0===e&&(e="Calibri"),void 0===n&&(n=12);var r=[],s={},o=[],a={},l=[],c={},u=[],d={},h=[],p={};function f(t,f){var g,m=t.align,v=t.alignVertical,y=t.textRotation,b=t.indent,x=t.wrap,w=t.fontFamily,A=t.fontSize,_=t.fontWeight,C=t.fontStyle,M=t.color,k=t.backgroundColor,S=t.borderColor,I=t.borderStyle,L=t.leftBorderColor,D=t.leftBorderStyle,T=t.rightBorderColor,N=t.rightBorderStyle,O=t.topBorderColor,j=t.topBorderStyle,E=t.bottomBorderColor,z=t.bottomBorderStyle,F=f.format,P="".concat(w||"-",":").concat(A||"-",":").concat(_||"-",":").concat(C||"-",":").concat(M||"-"),R=k||"-",Y="".concat(O||S||"-",":").concat(j||I||"-")+"/"+"".concat(T||S||"-",":").concat(N||I||"-")+"/"+"".concat(E||S||"-",":").concat(z||I||"-")+"/"+"".concat(L||S||"-",":").concat(D||I||"-"),U="".concat(m||"-","/").concat(v||"-","/").concat(y||"-","/").concat(b||"-","/").concat(x||"-","/").concat(F||"-","/").concat(P,"/").concat(R,"/").concat(Y),B=a[U];if(void 0!==B)return B;F&&void 0===(g=s[F])&&(g=s[F]=String(100+r.length),r.push(F));var W,H,V=i?0:void 0;return(w||A||_||C||M)&&void 0===(V=c[P])&&(V=c[P]=String(l.length),l.push({custom:!0,size:A||n,family:w||e,weight:_,style:C,color:M})),k&&void 0===(W=d[R])&&(W=d[R]=String(u.length),u.push({color:k})),(S||I||L||D||T||N||O||j||E||z)&&void 0===(H=p[Y])&&(H=p[Y]=String(h.length),h.push({left:{style:D||I,color:L||S},right:{style:N||I,color:T||S},top:{style:j||I,color:O||S},bottom:{style:z||I,color:E||S}})),o.push({fontId:V,fillId:W,borderId:H,align:m,alignVertical:v,textRotation:y,indent:b,wrap:x,formatId:g}),a[U]=String(o.length-1)}return l.push({size:n,family:e,custom:i}),c["-:-"]=0,u.push({}),d["-"]=0,h.push({left:{},right:{},top:{},bottom:{}}),p["-:-/-:-/-:-/-:-"]=0,u.push({gray125:!0}),f({},{}),{getStylesXml:function(){return function(t){var e=t.formats,n=t.styles,i=t.fonts,r=t.fills,s=t.borders,o='<?xml version="1.0" ?>';if(o+='<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">',e.length>0){o+='<numFmts count="'.concat(e.length,'">');for(var a=0;a<e.length;a++)o+='<numFmt numFmtId="'.concat(100+a,'" formatCode="').concat(ri(e[a]),'"/>');o+="</numFmts>"}o+='<fonts count="'.concat(i.length,'">');for(var l,c=Ci(i);!(l=c()).done;){var u=l.value,d=u.size,h=u.family,p=u.color,f=u.weight,g=u.style,m=u.custom;o+="<font>",o+='<sz val="'.concat(d,'"/>'),o+="<color ".concat(p?'rgb="'+ri(ki(p))+'"':'theme="1"',"/>"),o+='<name val="'.concat(ri(h),'"/>'),o+='<family val="2"/>',m||(o+='<scheme val="minor"/>'),"bold"===f&&(o+="<b/>"),"italic"===g&&(o+="<i/>"),o+="</font>"}o+="</fonts>",o+='<fills count="'.concat(r.length,'">');for(var v,y=Ci(r);!(v=y()).done;){var b=v.value,x=b.color,w=b.gray125;o+="<fill>",x?(o+='<patternFill patternType="solid">',o+='<fgColor rgb="'.concat(ri(ki(x)),'"/>'),o+='<bgColor indexed="64"/>',o+="</patternFill>"):o+=w?'<patternFill patternType="gray125"/>':'<patternFill patternType="none"/>',o+="</fill>"}o+="</fills>",o+='<borders count="'.concat(s.length,'">');for(var A,_=Ci(s);!(A=_()).done;){var C=A.value,M=C.left,k=C.right,S=C.top,I=C.bottom,L=function(t,e){var n=e.style,i=e.color;i&&!n&&(n="thin");var r=!!i;return"<".concat(t)+(n?' style="'.concat(ri(n),'"'):"")+(r?">":"/>")+(i?'<color rgb="'.concat(ri(ki(i)),'"/>'):"")+(r?"</".concat(t,">"):"")};o+="<border>",o+=L("left",M),o+=L("right",k),o+=L("top",S),o+=L("bottom",I),o+="<diagonal/>",o+="</border>"}o+="</borders>",o+='<cellXfs count="'.concat(n.length,'">');for(var D,T=Ci(n);!(D=T()).done;){var N=D.value,O=N.fontId,j=N.fillId,E=N.borderId,z=N.align,F=N.alignVertical,P=N.textRotation,R=N.indent,Y=N.wrap,U=N.formatId;o+="<xf "+[void 0!==U?'numFmtId="'.concat(U,'"'):void 0,void 0!==U?'applyNumberFormat="1"':void 0,void 0!==O?'fontId="'.concat(O,'"'):void 0,void 0!==O?'applyFont="1"':void 0,void 0!==j?'fillId="'.concat(j,'"'):void 0,void 0!==j?'applyFill="1"':void 0,void 0!==E?'borderId="'.concat(E,'"'):void 0,void 0!==E?'applyBorder="1"':void 0,z||F||P||R||Y?'applyAlignment="1"':void 0].filter((function(t){return t})).join(" ")+">"+(z||F||P||R||Y?"<alignment"+(z?' horizontal="'.concat(ri(z),'"'):"")+(F?' vertical="'.concat(ri(F),'"'):"")+(P?' textRotation="'.concat(Ii(Si(P)),'"'):"")+(R?' indent="'.concat(ri(String(R)),'"'):"")+(Y?' wrapText="1"':"")+"/>":"")+"</xf>"}return(o+="</cellXfs>")+"</styleSheet>"}({formats:r,styles:o,fonts:l,fills:u,borders:h})},getStyle:f}}({fontFamily:l,fontSize:c}),x=b.getStylesXml,w=b.getStyle;if(i&&s&&!Array.isArray(s[0]))throw new Error('In a "write multiple sheets" scenario, `columns` parameter must be an array of `columns` for each sheet.');i||(i=[n||"Sheet1"],e=[e],s&&(s=[s]),r&&(r=[r])),o&&!a&&(a=function(){return o});for(var A,_=Oi(i);!(A=_()).done;)Ni(A.value);for(var C,M=[],k=0,S=Oi(i);!(C=S()).done;)C.value,M.push(_i(e[k],{schema:r&&r[k],columns:s&&s[k],getHeaderStyle:a,getStyle:w,getSharedString:y,customFont:l||c,dateFormat:g,orientation:u,stickyRowsCount:d,stickyColumnsCount:h,showGridLines:p,rightToLeft:f,sheetId:k+1})),k++;return{sheets:i.map((function(t,e){return{id:e+1,name:t,data:M[e]}})),getSharedStringsXml:v,getStylesXml:x}}({data:t,sheetName:n,sheetNames:i,schema:r,columns:s,headerStyle:o,getHeaderStyle:a,fontFamily:l,fontSize:c,orientation:u,stickyRowsCount:d,stickyColumnsCount:h,showGridLines:p,rightToLeft:f,dateFormat:g}),y=v.sheets,b=v.getSharedStringsXml,x=v.getStylesXml,w=m.folder("xl");w.file("_rels/workbook.xml.rels",function(t){var e=t.sheets;return'<?xml version="1.0" ?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">'+e.map((function(t){var e=t.id;return'<Relationship Id="rId'.concat(e,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet').concat(e,'.xml"/>')})).join("")+'<Relationship Id="rId'.concat(e.length+1,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/>')+'<Relationship Id="rId'.concat(e.length+2,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>')+"</Relationships>"}({sheets:y})),w.file("workbook.xml",function(t){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"><workbookPr/>'+(t.stickyRowsCount||t.stickyColumnsCount?"<bookViews><workbookView/></bookViews>":"")+"<sheets>"+t.sheets.map((function(t){var e=t.id,n=t.name;return'<sheet name="'.concat(ri(n),'" sheetId="').concat(e,'" r:id="rId').concat(e,'"/>')})).join("")+"</sheets><definedNames/><calcPr/></workbook>"}({sheets:y,stickyRowsCount:d,stickyColumnsCount:h})),w.file("styles.xml",x()),w.file("sharedStrings.xml",b());for(var A,_=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return zi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(y);!(A=_()).done;){var C=A.value,M=C.id,k=C.data;w.file("worksheets/sheet".concat(M,".xml"),k)}return m.generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",compression:"deflate"})}(t,function(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},s=Object.keys(t);for(i=0;i<s.length;i++)n=s[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)n=s[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}(e,Ei)).then((function(t){return n?Qn.saveAs(t,n):t}))}class Pi{constructor(t,e){this._table=t,this._reportSet=e}static addHandles(t,n){e()("table",t).each((function(){const t=e()(this);if(t.find(".ixbrl-element").length>0){t.css("position","relative");const i=new Pi(t,n);e()('<div class="ixbrl-table-handle"><span>Export table</span></div>').appendTo(t).on("click",(()=>i.exportTable()))}}))}_getRawTable(){const t=this._table,n=this._reportSet;let i=0;const r=[];t.find("tr").each((function(){const t=[];e()(this).find("td:visible, th:visible").each((function(){const i=e()(this).attr("colspan");if(i)for(let e=0;e<i-1;e++)t.push({type:"static",value:""});const r=e()(this).find(".ixbrl-element").addBack(".ixbrl-element");let s=null;if(r.length>0){const t=r.first().data("ivids");s=n.getItemById(t)}if(s instanceof Ke){const n={type:"fact",fact:s},i=e()(this)[0];let o=r[0],a=o.textContent;for(;o!==i;)o=null!==o.previousSibling?o.previousSibling:o.parentNode,3==o.nodeType&&(a=o.textContent+a);null!==a.match(/[\(-]\s*\d/)&&(n.negative=!0),n.topBorder=null!==e()(this).css("border-top-style").match(/(solid|double)/),n.bottomBorder=null!==e()(this).css("border-bottom-style").match(/(solid|double)/),t.push(n)}else{const n=e()(this).text();t.push({type:"static",value:n})}})),t.length>i&&(i=t.length),r.push(t)}));for(const t of r)for(;t.length<i;)t.push({type:"static",value:""});return r}_getFactsInSlice(t){return t.filter((t=>"fact"===t.type)).map((t=>t.fact))}_getConstantAspectsForSlice(t,e){const n=this._getFactsInSlice(t);if(0==n.length)return null;const i=new Set;for(const t of n)for(const e of t.aspects())i.add(e.name());const r=new Map;for(const t of i){r.set(t,n[0].aspect(t));for(let e=1;e<n.length;e++)void 0!==r.get(t)&&r.get(t).equalTo(n[e].aspect(t))||r.delete(t)}return r}_writeTable(t){const e=[],n=[];for(const[i,r]of t.entries()){const t=[];for(const[e,i]of r.entries()){const r={};"fact"===i.type?(n[e]={width:18},r.value=Number(i.fact.value()),r.type=Number,r.format="#,##0",i.negative?r.value=-1*Math.abs(r.value):r.value=Math.abs(r.value),i.topBorder&&(r.topBorderStyle="medium",r.topBorderColor="#000000"),i.bottomBorder&&(r.bottomBorderStyle="medium",r.bottomBorderColor="#000000")):"aspectLabel"===i.type?(r.value=i.value,r.type=String):(r.value=i.value,r.type=String,r.color="#707070"),t.push(r)}e.push(t)}return{columns:n,data:e}}exportTable(){const t=this._getRawTable();let e=0;const n=[],i=new Set;for(const r of t){const t=this._getConstantAspectsForSlice(r);if(n.push(t),null!==t)for(const[e,n]of t)i.add(e);r.length>e&&(e=r.length)}const r=[],s=new Set;for(let n=0;n<e;n++){const e=t.map((t=>t[n])),i=this._getConstantAspectsForSlice(e);if(r.push(i),null!==i)for(const[t,e]of i)s.add(t)}const o=new Set(s);for(const t of s)for(const[e,n]of Object.entries(r))null===n||n.get(t)||o.delete(t);for(const t of s)i.delete(t);for(const n of s){const s=Array.from(i).map((()=>""));for(let t=0;t<e;t++){let e=(r[t]||new Map).get(n);void 0!==e&&(e=e.valueLabel("std")),s.push({type:"aspectLabel",value:e||""})}t.unshift(s)}for(let e=s.size;e<t.length;e++){const r=[];for(const t of i){let i=(n[e-s.size]||new Map).get(t);void 0!==i&&(i=i.valueLabel("std")),r.push({type:"aspectLabel",value:i||""})}t[e]=r.concat(t[e])}const a=this._writeTable(t);Fi(a.data,{columns:a.columns,fileName:"table.xlsx"})}}var Ri=0;class Yi{constructor(t,e,n){this.wrapperNodes=e,this.escaped=!1,this.continuations=[],this.docIndex=n,this.footnote=!1,this.id=t,this.isHidden=!1,this.docOrderindex=Ri++}continuationIds(){return this.continuations.map((t=>t.id))}chainIXIds(){return[this.id].concat(this.continuationIds())}textContent(){return[this].concat(this.continuations).map((t=>t.wrapperNodes.first().text())).join(" ")}htmlHidden(){return this.wrapperNodes.filter(":not(.ixbrl-no-highlight)").is(":hidden")||this.wrapperNodes.is(((t,n)=>function(t){const e=parseFloat(t.split(",")[3]);return!isNaN(e)&&e<.1}(e()(n).css("color"))))}}class Ui{constructor(){this.index=[]}addItem(t,e){this.index.push({vuid:t,docIndex:e})}getAdjacentItem(t,e){const n=this.index.findIndex((e=>e.vuid===t)),i=this.index.length;return this.index[(n+e+i)%i].vuid}getFirstInDocument(t){return this.index.filter((e=>e.docIndex===t))[0].vuid}getLastInDocument(t){return this.index.filter((e=>e.docIndex===t)).at(-1).vuid}}class Bi{constructor(t){this.node=e()("#dialog-templates").find(t).clone().appendTo("#ixv #dialog-container"),e()(".close",this.node).on("click",(()=>this.close())),e()(document).on("keyup",(t=>{27===t.which&&this.close()}))}addButton(t,n,i){const r=this.node.find(".buttons"),s=e()("<button></button>").text(t).addClass(n?"dialog-button-primary":"dialog-button-cancel");r.append(s),s.on("click",(()=>{i&&!i()||this.close()}))}close(){e()(".dialog-mask").hide(),this.node.remove()}show(){e()(".dialog-mask").show(),this.node.show()}}class Wi extends Bi{constructor(t,e,n,i){super(".dialog.message-box"),this.title=t,this.message=e,this.okText=n,this.cancelText=i}show(t,n){this.node.find(".title").text(this.title),this.node.find(".message").empty().append(this.message);const i=this.node.find(".buttons").empty(),r=e()("<button></button>").text(this.okText).addClass("dialog-button-primary");if(i.append(r),r.on("click",(()=>{this.close(),t&&t()})),this.cancelText){const t=e()("<button></button>").text(this.cancelText).addClass("dialog-button-cancel");i.append(t),t.on("click",(()=>{this.close(),n&&n()}))}super.show(this)}showAsync(){return new Promise(((t,e)=>{this.show((()=>t(!0)),(()=>t(!1)))}))}}class Hi extends Error{}function Vi(t){return-1==t.indexOf(":")?t:t.substring(t.indexOf(":")+1)}class Zi{constructor(t,n,i){this._iv=t,this._reportSet=i,this._iframes=n,this._contents=n.contents(),this.onSelect=e().Callbacks(),this.onMouseEnter=e().Callbacks(),this.onMouseLeave=e().Callbacks(),this._ixNodeMap={},this._docOrderItemIndex=new Ui,this._currentDocumentIndex=0}_checkContinuationCount(){const t=Object.keys(this.continuationOfMap).length;if(t>this._iv.options.continuationElementLimit){const n=e()("<div></div>").append(e()("<p></p>").text(`This document contains a very large number of iXBRL elements (found ${t} ix:continuation elements).`)).append(e()("<p></p>").text("You may experience performance problems viewing this document, or the viewer may not load at all.")).append(e()("<p></p>").text("Do you want to continue trying to load this document?"));return new Wi("Large document warning",n,"Continue","Cancel").showAsync().then((t=>{if(!t)throw new Hi("Too many continuations")}))}return Promise.resolve()}initialize(){return new Promise((async(t,n)=>{const i=this;i._buildContinuationMaps(),i._checkContinuationCount().catch((t=>{throw t})).then((()=>i._iv.setProgress("Pre-processing document"))).then((()=>{i._iframes.each((function(t){e()(this).data("selected",t==i._currentDocumentIndex);const n=e()(this).data("report-index");i._preProcessiXBRL(e()(this).contents().find("body").get(0),n,t)})),async function(){for(const[t,n]of i._iframes.toArray().entries()){const r=e()(n).contents().find("body").get(0);await i._iv.pluginPromise("preProcessiXBRL",r,t),i._iv.isReviewModeEnabled()&&await new Promise(((n,s)=>{i._iv.setProgress("Finding untagged numbers and dates").then((()=>{const s=e()(r).children(":visible");s.hide(),e()(r).addClass("review"),i._wrapUntaggedNumbers(e()(r),t,!1),s.show(),n()}))}))}}().then((()=>i._iv.setProgress("Preparing document"))).then((()=>{this._reportSet.setIXNodeMap(this._ixNodeMap),this._applyStyles(),this._bindHandlers(),this.scale=1,this._setTitle(0),this._addDocumentSetTabs(),t()}))})).catch((t=>n(t)))}))}_addDocumentSetTabs(){if(this._reportSet.isMultiDocumentViewer()){e()("#ixv .ixds-tabs").show();for(const[t,n]of this._reportSet.reportFiles().entries())e()('<div class="tab"></div>').text(n.file).prop("title",n.file).data("ix-doc-id",t).on("click",(()=>this.selectDocument(t))).appendTo(e()("#ixv #viewer-pane .ixds-tabs .tab-area"));e()("#ixv #viewer-pane .ixds-tabs .tab-area .tab").eq(0).addClass("active")}}_wrapNode(t){var n="<span>";const i=t.getElementsByTagName("*");for(var r=0;r<i.length;r++)if("block"===getComputedStyle(i[r]).getPropertyValue("display")){n="<div>";break}return e()(t).wrap(n),t.parentNode}_wrapUntaggedNumbers(t,n,i){const r=this,s=/(?:^|\s|;)-(?:sec|esef)-ix-hidden:\s*([^\s;]+)/;t.contents().each((function(){if(this.nodeType===Node.ELEMENT_NODE){const t=Vi(this.nodeName.toUpperCase());"NONFRACTION"===t||"NONNUMERIC"===t&&null!==this.getAttribute("format")||this.hasAttribute("style")&&this.getAttribute("style").match(s)||r._wrapUntaggedNumbers(e()(this),n,"NONNUMERIC"===t)}else if(this.nodeType===Node.TEXT_NODE){const n=this.nodeValue,r=e()("<div></div>");let s=0;!function(t,e){for(var n;null!==(n=Zn.exec(t));)e(n,void 0!==n[2],void 0!==n[1])}(n,(function(o,a,l){if(o.index>s&&r.append(document.createTextNode(n.substring(s,o.index))),a||i&&0===o.index&&o.index+o[0].length===n.length&&n===t.text())r.append(document.createTextNode(o[0]));else{const t=l?"review-untagged-date":"review-untagged-number";e()("<span></span>").text(o[0]).addClass(t).appendTo(r)}s=o.index+o[0].length})),s<n.length&&r.append(document.createTextNode(n.substring(s,n.length))),e()(this).replaceWith(r.contents())}}))}_showDocumentAndElement(t,n){if(this.selectDocument(t),void 0!==n&&""!=n)for(const i of[n,decodeURIComponent(n)]){const n=e().escapeSelector(i),r=this._iframes.eq(t).contents().find("#"+n+', a[name="'+n+'"]');if(r.length>0)return void this.showElement(r.eq(0))}}_updateLink(t){const n=e()(t).attr("href");if(void 0!==n){const[i,r]=n.split("#",2),s=this._reportSet.reportFiles().indexOf(i);n.includes("/")||-1==s?i&&e()(t).attr("target","_blank"):e()(t).on("click",(t=>{this._showDocumentAndElement(s,r),t.preventDefault()}))}}_findOrCreateWrapperNode(t,n){if(n)return e()(t).addClass("ixbrl-element-hidden");const i=t.closest("td,th"),r=[],s=e()(t).text();if(null!==i&&s.length>0){const t=e()(i).text(),n=t.indexOf(s),o=t.substring(0,n)+t.substring(n+s.length);/[0-9A-Za-z]/.test(o)||r.push(i)}0==r.length&&r.push(this._wrapNode(t));for(const t of r[0].querySelectorAll("*"))"absolute"===getComputedStyle(t).getPropertyValue("position")&&r.push(t);for(const[t,e]of r.entries())r.length>1&&e.classList.add("ixbrl-contains-absolute"),0==t?e.classList.add("ixbrl-element"):e.classList.add("ixbrl-sub-element");return e()(r)}_addIdToNode(t,e){const n=t.data("ivids")||[];n.push(e),t.data("ivids",n)}_buildContinuationMaps(){const t={},n={};this._iframes.each(((i,r)=>{const s=e()(r).data("report-index");e()(r).contents().find("body *").each(((e,i)=>{const r=Vi(i.nodeName).toUpperCase();if(["NONNUMERIC","NONFRACTION","FOOTNOTE","CONTINUATION"].includes(r)&&i.hasAttribute("id")){const e=He(s,i.getAttribute("id")),o=He(s,i.getAttribute("continuedAt"));null!==o&&(t[e]=o),"CONTINUATION"!=r&&(n[e]=[])}}))})),this.continuationOfMap={};for(const[e,r]of Object.entries(n))for(var i=e;void 0!==t[i];)i=t[i],r.push(i),void 0!==this.continuationOfMap[i]&&console.log("Continuation '"+i+"' is a continuation of multiple items."),this.continuationOfMap[i]=e;this.itemContinuationMap=n}_getOrCreateIXNode(t,e,n,i){let r=this._ixNodeMap[t];return r||(r=new Yi(t,e,n),this._ixNodeMap[t]=r,r.isHidden=i),r}_preProcessiXBRL(t,n,i,r){const s=Vi(t.nodeName).toUpperCase(),o="FOOTNOTE"===s,a="CONTINUATION"===s,l="NONNUMERIC"===s,c="NONFRACTION"===s,u=l||c;if(1===t.nodeType){const d=He(n,t.getAttribute("id"));if(u||o){if(t.hasAttribute("id")){let e=this._findOrCreateWrapperNode(t,r);this._addIdToNode(e.first(),d);let n=this._getOrCreateIXNode(d,e,i,r);if(this._docOrderItemIndex.addItem(d,i),c&&(e.addClass("ixbrl-element-nonfraction"),t.hasAttribute("scale"))){const e=Number(t.getAttribute("scale"));Number.isNaN(e)||0===e||(n.scale=e)}l&&(e.addClass("ixbrl-element-nonnumeric"),t.hasAttribute("escape")&&t.getAttribute("escape").match(/^(true|1)$/)&&(n.escaped=!0)),o&&(e.addClass("ixbrl-element-footnote"),n.footnote=!0)}}else if(a){if(t.hasAttribute("id")&&void 0!==this.continuationOfMap[d]){let e=this._findOrCreateWrapperNode(t,r);this._addIdToNode(e.first(),this.continuationOfMap[d]),this._getOrCreateIXNode(d,e,i,r),e.addClass("ixbrl-continuation")}}else if("HIDDEN"==s)r=!0;else{const r=He(n,function(t){if(t.hasAttribute("style")){const e=/(?:^|\s|;)-(?:sec|esef)-ix-hidden:\s*([^\s;]+)/,n=t.getAttribute("style").match(e);if(n)return n[1]}return null}(t));if(null!==r){let n=e()(t);n.addClass("ixbrl-element").data("ivids",[r]),this._docOrderItemIndex.addItem(r,i);const s=this._ixNodeMap[r];s?(s.wrapperNodes=n,s.docIndex=i):this._ixNodeMap[r]=new Yi(r,n,i)}"A"==s&&this._updateLink(t)}}this._preProcessChildNodes(t,n,i,r)}_preProcessChildNodes(t,e,n,i){for(const r of t.childNodes)this._preProcessiXBRL(r,e,n,i)}_applyStyles(){const t=e()("<style>").prop("type","text/css").text(n(95).toString()).appendTo(this._iframes.contents().find("head"));this._iv.callPluginMethod("updateViewerStyleElements",t)}contents(){return this._iframes.contents()}_selectAdjacentTag(t,e){var n;null!==e?(n=this._docOrderItemIndex.getAdjacentItem(e.vuid,t),this.showDocumentForItemId(n)):n=t>0?this._docOrderItemIndex.getFirstInDocument(this._currentDocumentIndex):this._docOrderItemIndex.getLastInDocument(this._currentDocumentIndex);const i=this.elementsForItemId(n);this.showElement(i),this.selectElement(n,this._ixIdsForElement(i))}_bindHandlers(){const t=this;e()(".ixbrl-element",this._contents).on("click",(function(n){n.stopPropagation(),t.selectElementByClick(e()(this))})).on("mouseenter",(function(n){t._mouseEnter(e()(this))})).on("mouseleave",(function(n){t._mouseLeave(e()(this))})),e()("body",this._contents).on("click",(()=>t.selectElement(null))),e()("#iframe-container .zoom-in").on("click",(()=>this.zoomIn())),e()("#iframe-container .zoom-out").on("click",(()=>this.zoomOut())),e()("#iframe-container .print").on("click",(()=>this.currentDocument().get(0).contentWindow.print())),Pi.addHandles(this._contents,this._reportSet)}selectNextTag(t){this._selectAdjacentTag(1,t)}selectPrevTag(t){this._selectAdjacentTag(-1,t)}intersect(t,e){const n={left:Math.max(t.left,e.left),top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom)};return n.width=n.right-n.left,n.height=n.bottom-n.top,n}isScrollableElement(t){const n=e()(t).css("overflow-y");if(t.clientHeight>0&&t.clientHeight<t.scrollHeight&&("auto"==n||"scroll"==n))return!0;const i=e()(t).css("overflow-x");return t.clientWidth>0&&t.clientWidth<t.scrollWidth&&("auto"==i||"scroll"==i)}isFullyVisible(t){var n=t.getBoundingClientRect();const i=t.getBoundingClientRect();for(var r=e()(t.parentElement);!r.is("body");){if(this.isScrollableElement(r[0])&&(n=this.intersect(n,r[0].getBoundingClientRect())),n.width<i.width||n.height<i.height)return!1;r=r.parent()}const s="CSS1Compat"!=t.ownerDocument.compatMode?r:r.closest("html").get(0);return n.left>0&&n.top>0&&n.right<s.clientWidth&&n.bottom<s.clientHeight}showElement(t){const e=t.filter(":not(.ixbrl-no-highlight)").get(0);this.isFullyVisible(e)||e.scrollIntoView({block:"center",inline:"center"})}clearHighlighting(){e()("body",this._iframes.contents()).find(".ixbrl-element, .ixbrl-sub-element").removeClass("ixbrl-selected").removeClass("ixbrl-related").removeClass("ixbrl-linked-highlight")}_ixIdsForElement(t){return t.data("ivids")}selectElement(t,e,n){null!==t?this.onSelect.fire(t,e,n):this.onSelect.fire(null)}selectElementByClick(t){let n=[];const i=this;let r;t.hasClass(".ixbrl-element")||(t=t.closest(".ixbrl-element")),t.parents(".ixbrl-element").addBack().each((function(){const s=i._ixIdsForElement(e()(this));n=n.concat(s),e()(this).text()==t.text()&&void 0===r&&(r=s[0])})),this.selectElement(r,n,!0)}_mouseEnter(t){const e=t.data("ivids")[0];this.onMouseEnter.fire(e)}_mouseLeave(t){const e=t.data("ivids")[0];this.onMouseLeave.fire(e)}highlightRelatedFact(t){this.changeItemClass(t.vuid,"ixbrl-related")}highlightRelatedFacts(t){for(const e of t)this.changeItemClass(e.vuid,"ixbrl-related")}clearRelatedHighlighting(t){e()(".ixbrl-related",this._contents).removeClass("ixbrl-related")}elementsForItemId(t){if(!(t in this._ixNodeMap))throw new Error(`Attempting to retrieve IXNode with missing key: ${t}`);return this._ixNodeMap[t].wrapperNodes}elementsForItemIds(t){return e()(t.map((t=>this.elementsForItemId(t).get())).flat())}changeItemClass(t,e,n){const i=this.elementsForItemIds([t].concat(this.itemContinuationMap[t]));n?i.removeClass(e):i.addClass(e)}highlightItem(t){this.clearHighlighting(),this.changeItemClass(t,"ixbrl-selected")}showItemById(t){if(null!==t){let e=this.elementsForItemId(t);this.showDocumentForItemId(t),e.length>0&&this.showElement(e)}}highlightAllTags(t,n){const i={};e().each(n,(function(t,e){i[e]=t%3}));const r=this._reportSet,s=this;t?(e()(".ixbrl-element",this._contents).addClass("ixbrl-highlight").each((function(){const t=e()(this).data("ivids").map((t=>s._ixNodeMap[t])).filter((t=>!t.footnote))[0];if(null!=t){const e=s.elementsForItemIds(t.chainIXIds()),n=i[r.getItemById(t.id).conceptQName().prefix];void 0!==n&&e.addClass("ixbrl-highlight-"+n)}})),e()(".ixbrl-sub-element",this._contents).addClass("ixbrl-highlight")):e()(".ixbrl-element, .ixbrl-sub-element",this._contents).removeClass(((t,e)=>(e.match(/(^|\s)ixbrl-highlight\S*/g)||[]).join(" ")))}_zoom(){const t=this._contents.scrollTop(),n=e()("html",this._contents).height();e()("body",this._contents).css("zoom",this.scale);const i=e()("html",this._contents).height();this._contents.scrollTop(i*t/n)}zoomIn(){this.scale*=1.1,this._zoom()}zoomOut(){this.scale/=1.1,this._zoom()}factsInSameTable(t){var n=[];return this.elementsForItemId(t.vuid).closest("table").find(".ixbrl-element").each((function(){n=n.concat(e()(this).data("ivids"))})),n}linkedHighlightFact(t){this.changeItemClass(t.vuid,"ixbrl-linked-highlight")}clearLinkedHighlightFact(t){this.changeItemClass(t.vuid,"ixbrl-linked-highlight",!0)}_setTitle(t){e()("#top-bar .document-title").text(e()("head title",this._iframes.eq(t).contents()).text())}showDocumentForItemId(t){this.selectDocument(this._ixNodeMap[t].docIndex)}currentDocument(){return this._iframes.eq(this._currentDocumentIndex)}selectDocument(t){this._currentDocumentIndex=t,e()("#ixv #viewer-pane .ixds-tabs .tab").removeClass("active").eq(t).addClass("active"),this._iframes.height(0).data("selected",!1).eq(t).height("100%").data("selected",!0),this._setTitle(t)}*postProcess(){for(const t of this._iframes.get()){const n=e()(t).contents().get(0).querySelectorAll(".ixbrl-contains-absolute");for(const[t,e]of n.entries())"inline"!==getComputedStyle(e).getPropertyValue("display")&&e.getBoundingClientRect().height,t%100==0&&(yield);for(const[t,e]of n.entries())"inline"!==getComputedStyle(e).getPropertyValue("display")&&0==e.getBoundingClientRect().height&&e.classList.add("ixbrl-no-highlight"),t%100==0&&(yield)}}postLoadAsync(){We(this.postProcess())}}var Gi=n(790),Qi=n.n(Gi),Ji=n(617),Xi=n.n(Ji);class qi{constructor(t){this._reportSet=t,this.ready=!1}*buildSearchIndex(t){var e=[],n={},i=this._reportSet.facts();this.periods={};for(var r=0;r<i.length;r++){var s=i[r],o={id:s.vuid},a=s.getLabel("std");for(var l in o.concept=s.conceptQName().localname,o.doc=s.getLabel("doc"),o.date=s.periodTo(),o.startDate=s.periodFrom(),n=s.dimensions())s.report.getConcept(l).isTypedDimension()?null!==n[l]&&(a+=" "+n[l]):a+=" "+s.report.getLabel(n[l],"std");o.label=a,o.ref=s.concept().referenceValuesAsString();const t=s.widerConcepts();t.length>0&&(o.widerConcept=s.report.qname(t[0]).localname,o.widerLabel=s.report.getLabel(t[0],"std"),o.widerDoc=s.report.getLabel(t[0],"doc")),e.push(o);var c=s.period();c&&(this.periods[c.key()]=c.toString()),r%100==0&&(yield)}const u=new(Xi().Builder);u.pipeline.add(Xi().trimmer,Xi().stopWordFilter,Xi().stemmer),u.searchPipeline.add(Xi().stemmer),u.ref("id"),u.field("label"),u.field("concept"),u.field("startDate"),u.field("date"),u.field("doc"),u.field("ref"),u.field("widerLabel"),u.field("widerDoc"),u.field("widerConcept");for(const[t,n]of e.entries())u.add(n),t%100==0&&(yield);this._searchIndex=u.build(),this.ready=!0,t()}visibilityFilter(t,e){return e.isHidden()?t.showHiddenFacts:t.showVisibleFacts}periodFilter(t,e){return 0===t.periodFilter.length||t.periodFilter.some((t=>e.period().key()===t))}conceptTypeFilter(t,e){return"*"===t.conceptTypeFilter||t.conceptTypeFilter===(e.isNumeric()?"numeric":"text")}dimensionTypeFilter(t,e){const n=t.dimensionTypeFilter.includes("typed"),i=t.dimensionTypeFilter.includes("explicit");return 0===t.dimensionTypeFilter.length||n&&e.hasTypedDimension()||i&&e.hasExplicitDimension()}factValueFilter(t,e){return"*"===t.factValueFilter||"positive"===t.factValueFilter&&e.isPositive()||"negative"===t.factValueFilter&&e.isNegative()}calculationsFilter(t,e){const n=t.calculationsFilter.includes("summation"),i=t.calculationsFilter.includes("contributor");return 0===t.calculationsFilter.length||n&&e.isCalculationSummation()||i&&e.isCalculationContributor()}namespacesFilter(t,e){return 0===t.namespacesFilter.length||t.namespacesFilter.some((t=>e.getConceptPrefix()===t))}unitsFilter(t,e){return 0===t.unitsFilter.length||t.unitsFilter.some((t=>e.unit()?.value()===t))}scalesFilter(t,e){return 0===t.scalesFilter.length||t.scalesFilter.some((t=>e.scale()===Number(t)))}targetDocumentFilter(t,e){return 0===t.targetDocumentFilter.length||t.targetDocumentFilter.some((t=>(e.targetDocument()??":default")===t))}search(t){if(!this.ready)return;const e=this._searchIndex.search(t.searchString),n=[],i=this,r=[this.visibilityFilter,this.periodFilter,this.conceptTypeFilter,this.dimensionTypeFilter,this.factValueFilter,this.calculationsFilter,this.namespacesFilter,this.unitsFilter,this.scalesFilter,this.targetDocumentFilter];return e.forEach(((e,s)=>{const o=i._reportSet.getItemById(e.ref);r.every((e=>e(t,o)))&&n.push({fact:o,score:e.score})})),n}}function $i(t){return t+.5|0}const Ki=(t,e,n)=>Math.max(Math.min(t,n),e);function tr(t){return Ki($i(2.55*t),0,255)}function er(t){return Ki($i(255*t),0,255)}function nr(t){return Ki($i(t/2.55)/100,0,1)}function ir(t){return Ki($i(100*t),0,100)}const rr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},sr=[..."0123456789ABCDEF"],or=t=>sr[15&t],ar=t=>sr[(240&t)>>4]+sr[15&t],lr=t=>(240&t)>>4==(15&t);const cr=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function ur(t,e,n){const i=e*Math.min(n,1-n),r=(e,r=(e+t/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function dr(t,e,n){const i=(i,r=(i+t/60)%6)=>n-n*e*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function hr(t,e,n){const i=ur(t,1,.5);let r;for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)i[r]*=1-e-n,i[r]+=e;return i}function pr(t){const e=t.r/255,n=t.g/255,i=t.b/255,r=Math.max(e,n,i),s=Math.min(e,n,i),o=(r+s)/2;let a,l,c;return r!==s&&(c=r-s,l=o>.5?c/(2-r-s):c/(r+s),a=function(t,e,n,i,r){return t===r?(e-n)/i+(e<n?6:0):e===r?(n-t)/i+2:(t-e)/i+4}(e,n,i,c,r),a=60*a+.5),[0|a,l||0,o]}function fr(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(er)}function gr(t,e,n){return fr(ur,t,e,n)}function mr(t){return(t%360+360)%360}const vr={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},yr={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let br;const xr=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,wr=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Ar=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function _r(t,e,n){if(t){let i=pr(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=gr(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Cr(t,e){return t?Object.assign(e||{},t):t}function Mr(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=er(t[3]))):(e=Cr(t,{r:0,g:0,b:0,a:1})).a=er(e.a),e}function kr(t){return"r"===t.charAt(0)?function(t){const e=xr.exec(t);let n,i,r,s=255;if(e){if(e[7]!==n){const t=+e[7];s=e[8]?tr(t):Ki(255*t,0,255)}return n=+e[1],i=+e[3],r=+e[5],n=255&(e[2]?tr(n):Ki(n,0,255)),i=255&(e[4]?tr(i):Ki(i,0,255)),r=255&(e[6]?tr(r):Ki(r,0,255)),{r:n,g:i,b:r,a:s}}}(t):function(t){const e=cr.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?tr(+e[5]):er(+e[5]));const r=mr(+e[2]),s=+e[3]/100,o=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return fr(hr,t,e,n)}(r,s,o):"hsv"===e[1]?function(t,e,n){return fr(dr,t,e,n)}(r,s,o):gr(r,s,o),{r:n[0],g:n[1],b:n[2],a:i}}(t)}class Sr{constructor(t){if(t instanceof Sr)return t;const e=typeof t;let n;var i,r,s;"object"===e?n=Mr(t):"string"===e&&(s=(i=t).length,"#"===i[0]&&(4===s||5===s?r={r:255&17*rr[i[1]],g:255&17*rr[i[2]],b:255&17*rr[i[3]],a:5===s?17*rr[i[4]]:255}:7!==s&&9!==s||(r={r:rr[i[1]]<<4|rr[i[2]],g:rr[i[3]]<<4|rr[i[4]],b:rr[i[5]]<<4|rr[i[6]],a:9===s?rr[i[7]]<<4|rr[i[8]]:255})),n=r||function(t){br||(br=function(){const t={},e=Object.keys(yr),n=Object.keys(vr);let i,r,s,o,a;for(i=0;i<e.length;i++){for(o=a=e[i],r=0;r<n.length;r++)s=n[r],a=a.replace(s,vr[s]);s=parseInt(yr[o],16),t[a]=[s>>16&255,s>>8&255,255&s]}return t}(),br.transparent=[0,0,0,0]);const e=br[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||kr(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Cr(this._rgb);return t&&(t.a=nr(t.a)),t}set rgb(t){this._rgb=Mr(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${nr(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?(t=this._rgb,e=(t=>lr(t.r)&&lr(t.g)&&lr(t.b)&&lr(t.a))(t)?or:ar,t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0):void 0;var t,e}hslString(){return this._valid?function(t){if(!t)return;const e=pr(t),n=e[0],i=ir(e[1]),r=ir(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${r}%, ${nr(t.a)})`:`hsl(${n}, ${i}%, ${r}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let r;const s=e===r?.5:e,o=2*s-1,a=n.a-i.a,l=((o*a==-1?o:(o+a)/(1+o*a))+1)/2;r=1-l,n.r=255&l*n.r+r*i.r+.5,n.g=255&l*n.g+r*i.g+.5,n.b=255&l*n.b+r*i.b+.5,n.a=s*n.a+(1-s)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=Ar(nr(t.r)),r=Ar(nr(t.g)),s=Ar(nr(t.b));return{r:er(wr(i+n*(Ar(nr(e.r))-i))),g:er(wr(r+n*(Ar(nr(e.g))-r))),b:er(wr(s+n*(Ar(nr(e.b))-s))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Sr(this.rgb)}alpha(t){return this._rgb.a=er(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=$i(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return _r(this._rgb,2,t),this}darken(t){return _r(this._rgb,2,-t),this}saturate(t){return _r(this._rgb,1,t),this}desaturate(t){return _r(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=pr(t);n[0]=mr(n[0]+e),n=gr(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}const Ir=(()=>{let t=0;return()=>t++})();function Lr(t){return null==t}function Dr(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function Tr(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function Nr(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function Or(t,e){return Nr(t)?t:e}function jr(t,e){return void 0===t?e:t}function Er(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function zr(t,e,n,i){let r,s,o;if(Dr(t))if(s=t.length,i)for(r=s-1;r>=0;r--)e.call(n,t[r],r);else for(r=0;r<s;r++)e.call(n,t[r],r);else if(Tr(t))for(o=Object.keys(t),s=o.length,r=0;r<s;r++)e.call(n,t[o[r]],o[r])}function Fr(t,e){let n,i,r,s;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(r=t[n],s=e[n],r.datasetIndex!==s.datasetIndex||r.index!==s.index)return!1;return!0}function Pr(t){if(Dr(t))return t.map(Pr);if(Tr(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let r=0;for(;r<i;++r)e[n[r]]=Pr(t[n[r]]);return e}return t}function Rr(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function Yr(t,e,n,i){if(!Rr(t))return;const r=e[t],s=n[t];Tr(r)&&Tr(s)?Ur(r,s,i):e[t]=Pr(s)}function Ur(t,e,n){const i=Dr(e)?e:[e],r=i.length;if(!Tr(t))return t;const s=(n=n||{}).merger||Yr;let o;for(let e=0;e<r;++e){if(o=i[e],!Tr(o))continue;const r=Object.keys(o);for(let e=0,i=r.length;e<i;++e)s(r[e],t,o,n)}return t}function Br(t,e){return Ur(t,e,{merger:Wr})}function Wr(t,e,n){if(!Rr(t))return;const i=e[t],r=n[t];Tr(i)&&Tr(r)?Br(i,r):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Pr(r))}const Hr={"":t=>t,x:t=>t.x,y:t=>t.y};function Vr(t,e){const n=Hr[e]||(Hr[e]=function(t){const e=function(t){const e=t.split("."),n=[];let i="";for(const t of e)i+=t,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function Zr(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Gr=t=>void 0!==t,Qr=t=>"function"==typeof t,Jr=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0},Xr=Math.PI,qr=2*Xr,$r=Number.POSITIVE_INFINITY,Kr=Xr/2,ts=Math.log10,es=Math.sign;function ns(t,e,n){return Math.abs(t-e)<n}function is(t){const e=Math.round(t);t=ns(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(ts(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function rs(t){return!isNaN(parseFloat(t))&&isFinite(t)}function ss(t){return t*(Xr/180)}function os(t){if(!Nr(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function as(t){return(t%qr+qr)%qr}function ls(t,e,n){return Math.max(e,Math.min(n,t))}function cs(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function us(t,e,n){n=n||(n=>t[n]<e);let i,r=t.length-1,s=0;for(;r-s>1;)i=s+r>>1,n(i)?s=i:r=i;return{lo:s,hi:r}}const ds=(t,e,n,i)=>us(t,n,i?i=>{const r=t[i][e];return r<n||r===n&&t[i+1][e]===n}:i=>t[i][e]<n),hs=(t,e,n)=>us(t,n,(i=>t[i][e]>=n)),ps=["push","pop","shift","splice","unshift"];function fs(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(e);-1!==r&&i.splice(r,1),i.length>0||(ps.forEach((e=>{delete t[e]})),delete t._chartjs)}const gs="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function ms(t,e){let n=[],i=!1;return function(...r){n=r,i||(i=!0,gs.call(window,(()=>{i=!1,t.apply(e,n)})))}}const vs=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,ys=t=>0===t||1===t,bs=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*qr/n),xs=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*qr/n)+1,ws={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*Kr),easeOutSine:t=>Math.sin(t*Kr),easeInOutSine:t=>-.5*(Math.cos(Xr*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>ys(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>ys(t)?t:bs(t,.075,.3),easeOutElastic:t=>ys(t)?t:xs(t,.075,.3),easeInOutElastic(t){const e=.1125;return ys(t)?t:t<.5?.5*bs(2*t,e,.45):.5+.5*xs(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-ws.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*ws.easeInBounce(2*t):.5*ws.easeOutBounce(2*t-1)+.5};function As(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function _s(t){return As(t)?t:new Sr(t)}function Cs(t){return As(t)?t:new Sr(t).saturate(.5).darken(.1).hexString()}const Ms=["x","y","borderWidth","radius","tension"],ks=["color","borderColor","backgroundColor"],Ss=new Map;function Is(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=Ss.get(n);return i||(i=new Intl.NumberFormat(t,e),Ss.set(n,i)),i}(e,n).format(t)}const Ls={values:t=>Dr(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let r,s=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(r="scientific"),s=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}(t,n)}const o=ts(Math.abs(s)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Is(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=n[e].significand||t/Math.pow(10,Math.floor(ts(t)));return[1,2,3,5,10,15].includes(i)||e>.8*n.length?Ls.numeric.call(this,t,e,n):""}};var Ds={formatters:Ls};const Ts=Object.create(null),Ns=Object.create(null);function Os(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function js(t,e,n){return"string"==typeof e?Ur(Os(t,e),n):Ur(Os(t,""),e)}class Es{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Cs(e.backgroundColor),this.hoverBorderColor=(t,e)=>Cs(e.borderColor),this.hoverColor=(t,e)=>Cs(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return js(this,t,e)}get(t){return Os(this,t)}describe(t,e){return js(Ns,t,e)}override(t,e){return js(Ts,t,e)}route(t,e,n,i){const r=Os(this,t),s=Os(this,n),o="_"+e;Object.defineProperties(r,{[o]:{value:r[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[o],e=s[i];return Tr(t)?Object.assign({},e,t):jr(t,e)},set(t){this[o]=t}}})}apply(t){t.forEach((t=>t(this)))}}var zs=new Es({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:ks},numbers:{type:"number",properties:Ms}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ds.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function Fs(t,e,n,i,r){let s=e[r];return s||(s=e[r]=t.measureText(r).width,n.push(r)),s>i&&(i=s),i}function Ps(t,e,n){const i=t.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((e-r)*i)/i+r}function Rs(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Ys(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Us(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Bs(t){t.restore()}function Ws(t,e,n,i,r){if(r.strikethrough||r.underline){const s=t.measureText(i),o=e-s.actualBoundingBoxLeft,a=e+s.actualBoundingBoxRight,l=n-s.actualBoundingBoxAscent,c=n+s.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=r.decorationWidth||2,t.moveTo(o,u),t.lineTo(a,u),t.stroke()}}function Hs(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function Vs(t,e,n,i,r,s={}){const o=Dr(e)?e:[e],a=s.strokeWidth>0&&""!==s.strokeColor;let l,c;for(t.save(),t.font=r.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),Lr(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,s),l=0;l<o.length;++l)c=o[l],s.backdrop&&Hs(t,s.backdrop),a&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),Lr(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(c,n,i,s.maxWidth)),t.fillText(c,n,i,s.maxWidth),Ws(t,n,i,c,s),i+=Number(r.lineHeight);t.restore()}function Zs(t,e){const{x:n,y:i,w:r,h:s,radius:o}=e;t.arc(n+o.topLeft,i+o.topLeft,o.topLeft,1.5*Xr,Xr,!0),t.lineTo(n,i+s-o.bottomLeft),t.arc(n+o.bottomLeft,i+s-o.bottomLeft,o.bottomLeft,Xr,Kr,!0),t.lineTo(n+r-o.bottomRight,i+s),t.arc(n+r-o.bottomRight,i+s-o.bottomRight,o.bottomRight,Kr,0,!0),t.lineTo(n+r,i+o.topRight),t.arc(n+r-o.topRight,i+o.topRight,o.topRight,0,-Kr,!0),t.lineTo(n+o.topLeft,i)}const Gs=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Qs=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Js(t,e){const n=(""+t).match(Gs);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}function Xs(t,e){const n={},i=Tr(e),r=i?Object.keys(e):e,s=Tr(t)?i?n=>jr(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of r)n[t]=+s(t)||0;return n}function qs(t){return Xs(t,{top:"y",right:"x",bottom:"y",left:"x"})}function $s(t){const e=qs(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ks(t,e){t=t||{},e=e||zs.font;let n=jr(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=jr(t.style,e.style);i&&!(""+i).match(Qs)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:jr(t.family,e.family),lineHeight:Js(jr(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:jr(t.weight,e.weight),string:""};return r.string=function(t){return!t||Lr(t.size)||Lr(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(r),r}function to(t,e,n,i){let r,s,o,a=!0;for(r=0,s=t.length;r<s;++r)if(o=t[r],void 0!==o&&(void 0!==e&&"function"==typeof o&&(o=o(e),a=!1),void 0!==n&&Dr(o)&&(o=o[n%o.length],a=!1),void 0!==o))return i&&!a&&(i.cacheable=!1),o}function eo(t,e){return Object.assign(Object.create(t),e)}function no(t,e=[""],n,i,r=()=>t[0]){const s=n||t;void 0===i&&(i=fo("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:s,_fallback:i,_getTarget:r,override:n=>no([n,...t],e,s,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>ao(n,i,(()=>function(t,e,n,i){let r;for(const s of e)if(r=fo(so(s,t),n),void 0!==r)return oo(t,r)?ho(n,i,t,r):r}(i,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>go(t).includes(e),ownKeys:t=>go(t),set(t,e,n){const i=t._storage||(t._storage=r());return t[e]=i[e]=n,delete t._keys,!0}})}function io(t,e,n,i){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:ro(t,i),setContext:e=>io(t,e,n,i),override:r=>io(t.override(r),e,n,i)};return new Proxy(r,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>ao(t,e,(()=>function(t,e,n){const{_proxy:i,_context:r,_subProxy:s,_descriptors:o}=t;let a=i[e];return Qr(a)&&o.isScriptable(e)&&(a=function(t,e,n,i){const{_proxy:r,_context:s,_subProxy:o,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(s,o||i);return a.delete(t),oo(t,l)&&(l=ho(r._scopes,r,t,l)),l}(e,a,t,n)),Dr(a)&&a.length&&(a=function(t,e,n,i){const{_proxy:r,_context:s,_subProxy:o,_descriptors:a}=n;if(void 0!==s.index&&i(t))return e[s.index%e.length];if(Tr(e[0])){const n=e,i=r._scopes.filter((t=>t!==n));e=[];for(const l of n){const n=ho(i,r,t,l);e.push(io(n,s,o&&o[t],a))}}return e}(e,a,t,o.isIndexable)),oo(e,a)&&(a=io(a,r,s&&s[e],o)),a}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function ro(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:n,indexable:i,isScriptable:Qr(n)?n:()=>n,isIndexable:Qr(i)?i:()=>i}}const so=(t,e)=>t?t+Zr(e):e,oo=(t,e)=>Tr(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function ao(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const i=n();return t[e]=i,i}function lo(t,e,n){return Qr(t)?t(e,n):t}const co=(t,e)=>!0===t?e:"string"==typeof t?Vr(e,t):void 0;function uo(t,e,n,i,r){for(const s of e){const e=co(n,s);if(e){t.add(e);const s=lo(e._fallback,n,r);if(void 0!==s&&s!==n&&s!==i)return s}else if(!1===e&&void 0!==i&&n!==i)return null}return!1}function ho(t,e,n,i){const r=e._rootScopes,s=lo(e._fallback,n,i),o=[...t,...r],a=new Set;a.add(i);let l=po(a,o,n,s||n,i);return null!==l&&(void 0===s||s===n||(l=po(a,o,s,l,i),null!==l))&&no(Array.from(a),[""],r,s,(()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const r=i[e];return Dr(r)&&Tr(n)?n:r||{}}(e,n,i)))}function po(t,e,n,i,r){for(;n;)n=uo(t,e,n,i,r);return n}function fo(t,e){for(const n of e){if(!n)continue;const e=n[t];if(void 0!==e)return e}}function go(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function mo(){return"undefined"!=typeof window&&"undefined"!=typeof document}function vo(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function yo(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}Number.EPSILON;const bo=t=>t.ownerDocument.defaultView.getComputedStyle(t,null),xo=["top","right","bottom","left"];function wo(t,e,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const s=xo[r];i[s]=parseFloat(t[e+"-"+s+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function Ao(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,r=bo(n),s="border-box"===r.boxSizing,o=wo(r,"padding"),a=wo(r,"border","width"),{x:l,y:c,box:u}=function(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:r,offsetY:s}=i;let o,a,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(r,s,t.target))o=r,a=s;else{const t=e.getBoundingClientRect();o=i.clientX-t.left,a=i.clientY-t.top,l=!0}return{x:o,y:a,box:l}}(t,n),d=o.left+(u&&a.left),h=o.top+(u&&a.top);let{width:p,height:f}=e;return s&&(p-=o.width+a.width,f-=o.height+a.height),{x:Math.round((l-d)/p*n.width/i),y:Math.round((c-h)/f*n.height/i)}}const _o=t=>Math.round(10*t)/10;function Co(t,e,n){const i=e||1,r=Math.floor(t.height*i),s=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||o.height!==r||o.width!==s)&&(t.currentDevicePixelRatio=i,o.height=r,o.width=s,t.ctx.setTransform(i,0,0,i,0,0),!0)}const Mo=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};mo()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function ko(t,e){const n=function(t,e){return bo(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}class So{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const r=e.listeners[i],s=e.duration;r.forEach((i=>i({chart:t,initial:e.initial,numSteps:s,currentStep:Math.min(n-e.start,s)})))}_refresh(){this._request||(this._running=!0,this._request=gs.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,i)=>{if(!n.running||!n.items.length)return;const r=n.items;let s,o=r.length-1,a=!1;for(;o>=0;--o)s=r[o],s._active?(s._total>n.duration&&(n.duration=s._total),s.tick(t),a=!0):(r[o]=r[r.length-1],r.pop());a&&(i.draw(),this._notify(i,n,t,"progress")),r.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=r.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Io=new So;const Lo="transparent",Do={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=_s(t||Lo),r=i.valid&&_s(e||Lo);return r&&r.valid?r.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class To{constructor(t,e,n,i){const r=e[n];i=to([t.to,i,r,t.from]);const s=to([t.from,r,i]);this._active=!0,this._fn=t.fn||Do[t.type||typeof s],this._easing=ws[t.easing]||ws.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],r=n-this._start,s=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=r,this._loop=!!t.loop,this._to=to([t.to,e,i,t.from]),this._from=to([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,r=this._from,s=this._loop,o=this._to;let a;if(this._active=r!==o&&(s||e<n),!this._active)return this._target[i]=o,void this._notify(!0);e<0?this._target[i]=r:(a=e/n%2,a=s&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[i]=this._fn(r,o,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}class No{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Tr(t))return;const e=Object.keys(zs.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const r=t[i];if(!Tr(r))return;const s={};for(const t of e)s[t]=r[t];(Dr(r.properties)&&r.properties||[i]).forEach((t=>{t!==i&&n.has(t)||n.set(t,s)}))}))}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}(t,n);if(!i)return[];const r=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const r=t[i[e]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),r}_createAnimations(t,e){const n=this._properties,i=[],r=t.$animations||(t.$animations={}),s=Object.keys(e),o=Date.now();let a;for(a=s.length-1;a>=0;--a){const l=s[a];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let u=r[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,o);continue}u.cancel()}d&&d.duration?(r[l]=u=new To(d,t,l,c),i.push(u)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(Io.add(this._chart,n),!0):void 0}}function Oo(t,e){const n=t&&t.options||{},i=n.reverse,r=void 0===n.min?e:0,s=void 0===n.max?e:0;return{start:i?s:r,end:i?r:s}}function jo(t,e){const n=[],i=t._getSortedDatasetMetas(e);let r,s;for(r=0,s=i.length;r<s;++r)n.push(i[r].index);return n}function Eo(t,e,n,i={}){const r=t.keys,s="single"===i.mode;let o,a,l,c;if(null!==e){for(o=0,a=r.length;o<a;++o){if(l=+r[o],l===n){if(i.all)continue;break}c=t.values[l],Nr(c)&&(s||0===e||es(e)===es(c))&&(e+=c)}return e}}function zo(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function Fo(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function Po(t,e,n,i){for(const r of e.getMatchingVisibleMetas(i).reverse()){const e=t[r.index];if(n&&e>0||!n&&e<0)return r.index}return null}function Ro(t,e){const{chart:n,_cachedMeta:i}=t,r=n._stacks||(n._stacks={}),{iScale:s,vScale:o,index:a}=i,l=s.axis,c=o.axis,u=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(s,o,i),d=e.length;let h;for(let t=0;t<d;++t){const n=e[t],{[l]:s,[c]:d}=n;h=(n._stacks||(n._stacks={}))[c]=Fo(r,u,s),h[a]=d,h._top=Po(h,o,!0,i.type),h._bottom=Po(h,o,!1,i.type),(h._visualValues||(h._visualValues={}))[a]=d}}function Yo(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function Uo(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n],void 0!==e[i]._visualValues&&void 0!==e[i]._visualValues[n]&&delete e[i]._visualValues[n]}}}const Bo=t=>"reset"===t||"none"===t,Wo=(t,e)=>e?t:Object.assign({},t);class Ho{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=zo(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Uo(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,r=e.xAxisID=jr(n.xAxisID,Yo(t,"x")),s=e.yAxisID=jr(n.yAxisID,Yo(t,"y")),o=e.rAxisID=jr(n.rAxisID,Yo(t,"r")),a=e.indexAxis,l=e.iAxisID=i(a,r,s,o),c=e.vAxisID=i(a,s,r,o);e.xScale=this.getScaleForId(r),e.yScale=this.getScaleForId(s),e.rScale=this.getScaleForId(o),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&fs(this._data,this),t._stacked&&Uo(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(Tr(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:n,vScale:i}=e,r="x"===n.axis?"x":"y",s="x"===i.axis?"x":"y",o=Object.keys(t),a=new Array(o.length);let l,c,u;for(l=0,c=o.length;l<c;++l)u=o[l],a[l]={[r]:u,[s]:t[u]};return a}(e,t)}else if(n!==e){if(n){fs(n,this);const t=this._cachedMeta;Uo(t),t._parsed=[]}e&&Object.isExtensible(e)&&((i=e)._chartjs?i._chartjs.listeners.push(this):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),ps.forEach((t=>{const e="_onData"+Zr(t),n=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...t){const r=n.apply(this,t);return i._chartjs.listeners.forEach((n=>{"function"==typeof n[e]&&n[e](...t)})),r}})})))),this._syncList=[],this._data=e}var i}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const r=e._stacked;e._stacked=zo(e.vScale,e),e.stack!==n.stack&&(i=!0,Uo(e),e.stack=n.stack),this._resyncElements(t),(i||r!==e._stacked)&&(Ro(this,e._parsed),e._stacked=zo(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:r,_stacked:s}=n,o=r.axis;let a,l,c,u=0===t&&e===i.length||n._sorted,d=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=Dr(i[t])?this.parseArrayData(n,i,t,e):Tr(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const r=()=>null===l[o]||d&&l[o]<d[o];for(a=0;a<e;++a)n._parsed[a+t]=l=c[a],u&&(r()&&(u=!1),d=l);n._sorted=u}s&&Ro(this,c)}parsePrimitiveData(t,e,n,i){const{iScale:r,vScale:s}=t,o=r.axis,a=s.axis,l=r.getLabels(),c=r===s,u=new Array(i);let d,h,p;for(d=0,h=i;d<h;++d)p=d+n,u[d]={[o]:c||r.parse(l[p],p),[a]:s.parse(e[p],p)};return u}parseArrayData(t,e,n,i){const{xScale:r,yScale:s}=t,o=new Array(i);let a,l,c,u;for(a=0,l=i;a<l;++a)c=a+n,u=e[c],o[a]={x:r.parse(u[0],c),y:s.parse(u[1],c)};return o}parseObjectData(t,e,n,i){const{xScale:r,yScale:s}=t,{xAxisKey:o="x",yAxisKey:a="y"}=this._parsing,l=new Array(i);let c,u,d,h;for(c=0,u=i;c<u;++c)d=c+n,h=e[d],l[c]={x:r.parse(Vr(h,o),d),y:s.parse(Vr(h,a),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,r=this._cachedMeta,s=e[t.axis];return Eo({keys:jo(i,!0),values:e._stacks[t.axis]._visualValues},s,r.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const r=n[e.axis];let s=null===r?NaN:r;const o=i&&n._stacks[e.axis];i&&o&&(i.values=o,s=Eo(i,r,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,r=n._sorted&&t===n.iScale,s=i.length,o=this._getOtherScale(t),a=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:jo(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(t){const{min:e,max:n,minDefined:i,maxDefined:r}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(o);let d,h;function p(){h=i[d];const e=h[o.axis];return!Nr(h[t.axis])||c>e||u<e}for(d=0;d<s&&(p()||(this.updateRangeFromParsed(l,t,h,a),!r));++d);if(r)for(d=s-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(l,t,h,a);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,r,s;for(i=0,r=e.length;i<r;++i)s=e[i][t.axis],Nr(s)&&n.push(s);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,r=this.getParsed(t);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:i?""+i.getLabelForValue(r[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,r;return Tr(t)?(e=t.top,n=t.right,i=t.bottom,r=t.left):e=n=i=r=t,{top:e,right:n,bottom:i,left:r,disabled:!1===t}}(jr(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=Oo(t,n),r=Oo(e,n);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],r=e.chartArea,s=[],o=this._drawStart||0,a=this._drawCount||i.length-o,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,r,o,a),c=o;c<o+a;++c){const e=i[c];e.hidden||(e.active&&l?s.push(e):e.draw(t,r))}for(c=0;c<s.length;++c)s[c].draw(t,r)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let r;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];r=e.$context||(e.$context=function(t,e,n){return eo(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),r.parsed=this.getParsed(t),r.raw=i.data[t],r.index=r.dataIndex=t}else r=this.$context||(this.$context=function(t,e){return eo(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!e,r.mode=n,r}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const i="active"===e,r=this._cachedDataOpts,s=t+"-"+e,o=r[s],a=this.enableOptionSharing&&Gr(n);if(o)return Wo(o,a);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),u=i?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),c),h=Object.keys(zs.elements[t]),p=l.resolveNamedOptions(d,h,(()=>this.getContext(n,i,e)),u);return p.$shared&&(p.$shared=a,r[s]=Object.freeze(Wo(p,a))),p}_resolveAnimations(t,e,n){const i=this.chart,r=this._cachedDataOpts,s=`animation-${e}`,o=r[s];if(o)return o;let a;if(!1!==i.options.animation){const i=this.chart.config,r=i.datasetAnimationScopeKeys(this._type,e),s=i.getOptionScopes(this.getDataset(),r);a=i.createResolver(s,this.getContext(t,n,e))}const l=new No(i,a&&a.animations);return a&&a._cacheable&&(r[s]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Bo(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,r=this.getSharedOptions(n),s=this.includeOptions(e,r)||r!==i;return this.updateSharedOptions(r,e,n),{sharedOptions:r,includeOptions:s}}updateElement(t,e,n,i){Bo(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!Bo(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const r=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(r)||r})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,r=e.length,s=Math.min(r,i);s&&this.parse(0,s),r>i?this._insertElements(i,r-i,t):r<i&&this._removeElements(r,i-r)}_insertElements(t,e,n=!0){const i=this._cachedMeta,r=i.data,s=t+e;let o;const a=t=>{for(t.length+=e,o=t.length-1;o>=s;o--)t[o]=t[o-e]};for(a(r),o=t;o<s;++o)r[o]=new this.dataElementType;this._parsing&&a(i._parsed),this.parse(t,e),n&&this.updateElements(r,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&Uo(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Vo(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,r=n.length;e<r;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=function(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}(i.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let i,r,s,o,a=e._length;const l=()=>{32767!==s&&-32768!==s&&(Gr(o)&&(a=Math.min(a,Math.abs(s-o)||a)),o=s)};for(i=0,r=n.length;i<r;++i)s=e.getPixelForValue(n[i]),l();for(o=void 0,i=0,r=e.ticks.length;i<r;++i)s=e.getPixelForTick(i),l();return a}function Zo(t,e,n,i){return Dr(t)?function(t,e,n,i){const r=n.parse(t[0],i),s=n.parse(t[1],i),o=Math.min(r,s),a=Math.max(r,s);let l=o,c=a;Math.abs(o)>Math.abs(a)&&(l=a,c=o),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:r,end:s,min:o,max:a}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function Go(t,e,n,i){const r=t.iScale,s=t.vScale,o=r.getLabels(),a=r===s,l=[];let c,u,d,h;for(c=n,u=n+i;c<u;++c)h=e[c],d={},d[r.axis]=a||r.parse(o[c],c),l.push(Zo(h,d,s,c));return l}function Qo(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Jo(t,e,n,i){let r=e.borderSkipped;const s={};if(!r)return void(t.borderSkipped=s);if(!0===r)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:o,end:a,reverse:l,top:c,bottom:u}=function(t){let e,n,i,r,s;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(r="end",s="start"):(r="start",s="end"),{start:n,end:i,reverse:e,top:r,bottom:s}}(t);"middle"===r&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?r=c:(n._bottom||0)===i?r=u:(s[Xo(u,o,a,l)]=!0,r=c)),s[Xo(r,o,a,l)]=!0,t.borderSkipped=s}function Xo(t,e,n,i){var r,s,o;return i?(o=n,t=qo(t=(r=t)===(s=e)?o:r===o?s:r,n,e)):t=qo(t,e,n),t}function qo(t,e,n){return"start"===t?e:"end"===t?n:t}function $o(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}class Ko extends Ho{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,n,i){return Go(t,e,n,i)}parseArrayData(t,e,n,i){return Go(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:r,vScale:s}=t,{xAxisKey:o="x",yAxisKey:a="y"}=this._parsing,l="x"===r.axis?o:a,c="x"===s.axis?o:a,u=[];let d,h,p,f;for(d=n,h=n+i;d<h;++d)f=e[d],p={},p[r.axis]=r.parse(Vr(f,l),d),u.push(Zo(Vr(f,c),p,s,d));return u}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const r=n._custom;r&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,r=this.getParsed(t),s=r._custom,o=Qo(s)?"["+s.start+", "+s.end+"]":""+i.getLabelForValue(r[i.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,i){const r="reset"===i,{index:s,_cachedMeta:{vScale:o}}=this,a=o.getBasePixel(),l=o.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(e,i);for(let h=e;h<e+n;h++){const e=this.getParsed(h),n=r||Lr(e[o.axis])?{base:a,head:a}:this._calculateBarValuePixels(h),p=this._calculateBarIndexPixels(h,c),f=(e._stacks||{})[o.axis],g={horizontal:l,base:n.base,enableBorderRadius:!f||Qo(e._custom)||s===f._top||s===f._bottom,x:l?n.head:p.center,y:l?p.center:n.head,height:l?p.size:Math.abs(n.size),width:l?Math.abs(n.size):p.size};d&&(g.options=u||this.resolveDataElementOptions(h,t[h].active?"active":i));const m=g.options||t[h].options;Jo(g,m,f,s),$o(g,m,c.ratio),this.updateElement(t[h],h,g,i)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),r=n.options.stacked,s=[],o=this._cachedMeta.controller.getParsed(e),a=o&&o[n.axis],l=t=>{const e=t._parsed.find((t=>t[n.axis]===a)),i=e&&e[t.vScale.axis];if(Lr(i)||isNaN(i))return!0};for(const n of i)if((void 0===e||!l(n))&&((!1===r||-1===s.indexOf(n.stack)||void 0===r&&void 0===n.stack)&&s.push(n.stack),n.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),r=void 0!==e?i.indexOf(e):-1;return-1===r?i.length-1:r}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let r,s;for(r=0,s=e.data.length;r<s;++r)i.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const o=t.barThickness;return{min:o||Vo(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:o?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n,index:i},options:{base:r,minBarLength:s}}=this,o=r||0,a=this.getParsed(t),l=a._custom,c=Qo(l);let u,d,h=a[e.axis],p=0,f=n?this.applyStack(e,a,n):h;f!==h&&(p=f-h,f=h),c&&(h=l.barStart,f=l.barEnd-l.barStart,0!==h&&es(h)!==es(l.barEnd)&&(p=0),p+=h);const g=Lr(r)||c?p:r;let m=e.getPixelForValue(g);if(u=this.chart.getDataVisibility(t)?e.getPixelForValue(p+f):m,d=u-m,Math.abs(d)<s){d=function(t,e,n){return 0!==t?es(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(d,e,o)*s,h===o&&(m-=d/2);const t=e.getPixelForDecimal(0),r=e.getPixelForDecimal(1),l=Math.min(t,r),p=Math.max(t,r);m=Math.max(Math.min(m,p),l),u=m+d,n&&!c&&(a._stacks[e.axis]._visualValues[i]=e.getValueForPixel(u)-e.getValueForPixel(m))}if(m===e.getPixelForValue(o)){const t=es(d)*e.getLineWidthForValue(o)/2;m+=t,d-=t}return{size:d,base:m,head:u,center:u+d/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,r=i.skipNull,s=jr(i.maxBarThickness,1/0);let o,a;if(e.grouped){const n=r?this._getStackCount(t):e.stackCount,l="flex"===i.barThickness?function(t,e,n,i){const r=e.pixels,s=r[t];let o=t>0?r[t-1]:null,a=t<r.length-1?r[t+1]:null;const l=n.categoryPercentage;null===o&&(o=s-(null===a?e.end-e.start:a-s)),null===a&&(a=s+s-o);const c=s-(s-Math.min(o,a))/2*l;return{chunk:Math.abs(a-o)/2*l/i,ratio:n.barPercentage,start:c}}(t,e,i,n):function(t,e,n,i){const r=n.barThickness;let s,o;return Lr(r)?(s=e.min*n.categoryPercentage,o=n.barPercentage):(s=r*i,o=1),{chunk:s/i,ratio:o,start:e.pixels[t]-s/2}}(t,e,i,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,r?t:void 0);o=l.start+l.chunk*c+l.chunk/2,a=Math.min(s,l.chunk*l.ratio)}else o=n.getPixelForValue(this.getParsed(t)[n.axis],t),a=Math.min(s,e.min*e.ratio);return{base:o-a/2,head:o+a/2,center:o,size:a}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let r=0;for(;r<i;++r)null===this.getParsed(r)[e.axis]||n[r].hidden||n[r].draw(this._ctx)}}function ta(t,e,n,i){const{controller:r,data:s,_sorted:o}=t,a=r._cachedMeta.iScale;if(a&&e===a.axis&&"r"!==e&&o&&s.length){const t=a._reversePixels?hs:ds;if(!i)return t(s,e,n);if(r._sharedOptions){const i=s[0],r="function"==typeof i.getRange&&i.getRange(e);if(r){const i=t(s,e,n-r),o=t(s,e,n+r);return{lo:i.lo,hi:o.hi}}}}return{lo:0,hi:s.length-1}}function ea(t,e,n,i,r){const s=t.getSortedVisibleDatasetMetas(),o=n[e];for(let t=0,n=s.length;t<n;++t){const{index:n,data:a}=s[t],{lo:l,hi:c}=ta(s[t],e,o,r);for(let t=l;t<=c;++t){const e=a[t];e.skip||i(e,n,t)}}}function na(t,e,n,i,r){const s=[];return r||t.isPointInArea(e)?(ea(t,n,e,(function(n,o,a){(r||Ys(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&s.push({element:n,datasetIndex:o,index:a})}),!0),s):s}function ia(t,e,n,i,r,s){return s||t.isPointInArea(e)?"r"!==n||i?function(t,e,n,i,r,s){let o=[];const a=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const r=e?Math.abs(t.x-i.x):0,s=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(s,2))}}(n);let l=Number.POSITIVE_INFINITY;return ea(t,n,e,(function(n,c,u){const d=n.inRange(e.x,e.y,r);if(i&&!d)return;const h=n.getCenterPoint(r);if(!s&&!t.isPointInArea(h)&&!d)return;const p=a(e,h);p<l?(o=[{element:n,datasetIndex:c,index:u}],l=p):p===l&&o.push({element:n,datasetIndex:c,index:u})})),o}(t,e,n,i,r,s):function(t,e,n,i){let r=[];return ea(t,n,e,(function(t,n,s){const{startAngle:o,endAngle:a}=t.getProps(["startAngle","endAngle"],i),{angle:l}=function(t,e){const n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i);let s=Math.atan2(i,n);return s<-.5*Xr&&(s+=qr),{angle:s,distance:r}}(t,{x:e.x,y:e.y});(function(t,e,n,i){const r=as(t),s=as(e),o=as(n),a=as(s-r),l=as(o-r),c=as(r-s),u=as(r-o);return r===s||r===o||i&&s===o||a>l&&c<u})(l,o,a)&&r.push({element:t,datasetIndex:n,index:s})})),r}(t,e,n,r):[]}function ra(t,e,n,i,r){const s=[],o="x"===n?"inXRange":"inYRange";let a=!1;return ea(t,n,e,((t,i,l)=>{t[o]&&t[o](e[n],r)&&(s.push({element:t,datasetIndex:i,index:l}),a=a||t.inRange(e.x,e.y,r))})),i&&!a?[]:s}var sa={evaluateInteractionItems:ea,modes:{index(t,e,n,i){const r=Ao(e,t),s=n.axis||"x",o=n.includeInvisible||!1,a=n.intersect?na(t,r,s,i,o):ia(t,r,s,!1,i,o),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=a[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,n,i){const r=Ao(e,t),s=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?na(t,r,s,i,o):ia(t,r,s,!1,i,o);if(a.length>0){const e=a[0].datasetIndex,n=t.getDatasetMeta(e).data;a=[];for(let t=0;t<n.length;++t)a.push({element:n[t],datasetIndex:e,index:t})}return a},point:(t,e,n,i)=>na(t,Ao(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const r=Ao(e,t),s=n.axis||"xy",o=n.includeInvisible||!1;return ia(t,r,s,n.intersect,i,o)},x:(t,e,n,i)=>ra(t,Ao(e,t),"x",n.intersect,i),y:(t,e,n,i)=>ra(t,Ao(e,t),"y",n.intersect,i)}};const oa=["left","top","right","bottom"];function aa(t,e){return t.filter((t=>t.pos===e))}function la(t,e){return t.filter((t=>-1===oa.indexOf(t.pos)&&t.box.axis===e))}function ca(t,e){return t.sort(((t,n)=>{const i=e?n:t,r=e?t:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight}))}function ua(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function da(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function ha(t,e,n,i){const{pos:r,box:s}=n,o=t.maxPadding;if(!Tr(r)){n.size&&(t[r]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?s.height:s.width),n.size=e.size/e.count,t[r]+=n.size}s.getPadding&&da(o,s.getPadding());const a=Math.max(0,e.outerWidth-ua(o,t,"left","right")),l=Math.max(0,e.outerHeight-ua(o,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function pa(t,e){const n=e.maxPadding;return function(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{i[t]=Math.max(e[t],n[t])})),i}(t?["left","right"]:["top","bottom"])}function fa(t,e,n,i){const r=[];let s,o,a,l,c,u;for(s=0,o=t.length,c=0;s<o;++s){a=t[s],l=a.box,l.update(a.width||e.w,a.height||e.h,pa(a.horizontal,e));const{same:o,other:d}=ha(e,n,a,i);c|=o&&r.length,u=u||d,l.fullSize||r.push(a)}return c&&fa(r,e,n,i)||u}function ga(t,e,n,i,r){t.top=n,t.left=e,t.right=e+i,t.bottom=n+r,t.width=i,t.height=r}function ma(t,e,n,i){const r=n.padding;let{x:s,y:o}=e;for(const a of t){const t=a.box,l=i[a.stack]||{count:1,placed:0,weight:1},c=a.stackWeight/l.weight||1;if(a.horizontal){const i=e.w*c,s=l.size||t.height;Gr(l.start)&&(o=l.start),t.fullSize?ga(t,r.left,o,n.outerWidth-r.right-r.left,s):ga(t,e.left+l.placed,o,i,s),l.start=o,l.placed+=i,o=t.bottom}else{const i=e.h*c,o=l.size||t.width;Gr(l.start)&&(s=l.start),t.fullSize?ga(t,s,r.top,o,n.outerHeight-r.bottom-r.top):ga(t,s,e.top+l.placed,o,i),l.start=s,l.placed+=i,s=t.right}}e.x=s,e.y=o}var va={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const r=$s(t.options.layout.padding),s=Math.max(e-r.width,0),o=Math.max(n-r.height,0),a=function(t){const e=function(t){const e=[];let n,i,r,s,o,a;for(n=0,i=(t||[]).length;n<i;++n)r=t[n],({position:s,options:{stack:o,stackWeight:a=1}}=r),e.push({index:n,box:r,pos:s,horizontal:r.isHorizontal(),weight:r.weight,stack:o&&s+o,stackWeight:a});return e}(t),n=ca(e.filter((t=>t.box.fullSize)),!0),i=ca(aa(e,"left"),!0),r=ca(aa(e,"right")),s=ca(aa(e,"top"),!0),o=ca(aa(e,"bottom")),a=la(e,"x"),l=la(e,"y");return{fullSize:n,leftAndTop:i.concat(s),rightAndBottom:r.concat(l).concat(o).concat(a),chartArea:aa(e,"chartArea"),vertical:i.concat(r).concat(l),horizontal:s.concat(o).concat(a)}}(t.boxes),l=a.vertical,c=a.horizontal;zr(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const u=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:r,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/u,hBoxMaxHeight:o/2}),h=Object.assign({},r);da(h,$s(i));const p=Object.assign({maxPadding:h,w:s,h:o,x:r.left,y:r.top},r),f=function(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:r}=n;if(!t||!oa.includes(i))continue;const s=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=r}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:r}=e;let s,o,a;for(s=0,o=t.length;s<o;++s){a=t[s];const{fullSize:o}=a.box,l=n[a.stack],c=l&&a.stackWeight/l.weight;a.horizontal?(a.width=c?c*i:o&&e.availableWidth,a.height=r):(a.width=i,a.height=c?c*r:o&&e.availableHeight)}return n}(l.concat(c),d);fa(a.fullSize,p,d,f),fa(l,p,d,f),fa(c,p,d,f)&&fa(l,p,d,f),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(p),ma(a.leftAndTop,p,d,f),p.x+=p.w,p.y+=p.h,ma(a.rightAndBottom,p,d,f),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},zr(a.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class ya{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class ba extends ya{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const xa="$chartjs",wa={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Aa=t=>null===t||""===t,_a=!!Mo&&{passive:!0};function Ca(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,_a)}function Ma(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function ka(t,e,n){const i=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Ma(n.addedNodes,i),e=e&&!Ma(n.removedNodes,i);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function Sa(t,e,n){const i=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Ma(n.removedNodes,i),e=e&&!Ma(n.addedNodes,i);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const Ia=new Map;let La=0;function Da(){const t=window.devicePixelRatio;t!==La&&(La=t,Ia.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function Ta(t,e,n){const i=t.canvas,r=i&&vo(i);if(!r)return;const s=ms(((t,e)=>{const i=r.clientWidth;n(t,e),i<r.clientWidth&&n()}),window),o=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||s(n,i)}));return o.observe(r),function(t,e){Ia.size||window.addEventListener("resize",Da),Ia.set(t,e)}(t,s),o}function Na(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){Ia.delete(t),Ia.size||window.removeEventListener("resize",Da)}(t)}function Oa(t,e,n){const i=t.canvas,r=ms((e=>{null!==t.ctx&&n(function(t,e){const n=wa[t.type]||t.type,{x:i,y:r}=Ao(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==r?r:null}}(e,t))}),t);return function(t,e,n){t&&t.addEventListener(e,n,_a)}(i,e,r),r}class ja extends ya{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[xa]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Aa(r)){const e=ko(t,"width");void 0!==e&&(t.width=e)}if(Aa(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=ko(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[xa])return!1;const n=e[xa].initial;["height","width"].forEach((t=>{const i=n[t];Lr(i)?e.removeAttribute(t):e.setAttribute(t,i)}));const i=n.style||{};return Object.keys(i).forEach((t=>{e.style[t]=i[t]})),e.width=e.width,delete e[xa],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),r={attach:ka,detach:Sa,resize:Ta}[e]||Oa;i[e]=r(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];i&&(({attach:Na,detach:Na,resize:Na}[e]||Ca)(t,e,i),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return function(t,e,n,i){const r=bo(t),s=wo(r,"margin"),o=yo(r.maxWidth,t,"clientWidth")||$r,a=yo(r.maxHeight,t,"clientHeight")||$r,l=function(t,e,n){let i,r;if(void 0===e||void 0===n){const s=t&&vo(t);if(s){const t=s.getBoundingClientRect(),o=bo(s),a=wo(o,"border","width"),l=wo(o,"padding");e=t.width-l.width-a.width,n=t.height-l.height-a.height,i=yo(o.maxWidth,s,"clientWidth"),r=yo(o.maxHeight,s,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||$r,maxHeight:r||$r}}(t,e,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const t=wo(r,"border","width"),e=wo(r,"padding");c-=e.width+t.width,u-=e.height+t.height}return c=Math.max(0,c-s.width),u=Math.max(0,i?c/i:u-s.height),c=_o(Math.min(c,o,l.maxWidth)),u=_o(Math.min(u,a,l.maxHeight)),c&&!u&&(u=_o(c/2)),(void 0!==e||void 0!==n)&&i&&l.height&&u>l.height&&(u=l.height,c=_o(Math.floor(u*i))),{width:c,height:u}}(t,e,n,i)}isAttached(t){const e=t&&vo(t);return!(!e||!e.isConnected)}}class Ea{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return rs(this.x)&&rs(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach((t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),i}}function za(t,e,n,i,r){const s=jr(i,0),o=Math.min(jr(r,t.length),t.length);let a,l,c,u=0;for(n=Math.ceil(n),r&&(a=r-i,n=a/Math.floor(a/n)),c=s;c<0;)u++,c=Math.round(s+u*n);for(l=Math.max(s,0);l<o;l++)l===c&&(e.push(t[l]),u++,c=Math.round(s+u*n))}const Fa=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n,Pa=(t,e)=>Math.min(e||t,t);function Ra(t,e){const n=[],i=t.length/e,r=t.length;let s=0;for(;s<r;s+=i)n.push(t[Math.floor(s)]);return n}function Ya(t,e,n){const i=t.ticks.length,r=Math.min(e,i-1),s=t._startPixel,o=t._endPixel,a=1e-6;let l,c=t.getPixelForTick(r);if(!(n&&(l=1===i?Math.max(c-s,o-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(r-1))/2,c+=r<e?l:-l,c<s-a||c>o+a)))return c}function Ua(t){return t.drawTicks?t.tickLength:0}function Ba(t,e){if(!t.display)return 0;const n=Ks(t.font,e),i=$s(t.padding);return(Dr(t.text)?t.text.length:1)*n.lineHeight+i.height}function Wa(t,e,n){let i=(t=>"start"===t?"left":"end"===t?"right":"center")(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class Ha extends Ea{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:i}=this;return t=Or(t,Number.POSITIVE_INFINITY),e=Or(e,Number.NEGATIVE_INFINITY),n=Or(n,Number.POSITIVE_INFINITY),i=Or(i,Number.NEGATIVE_INFINITY),{min:Or(t,n),max:Or(e,i),minDefined:Nr(t),maxDefined:Nr(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:r,maxDefined:s}=this.getUserBounds();if(r&&s)return{min:n,max:i};const o=this.getMatchingVisibleMetas();for(let a=0,l=o.length;a<l;++a)e=o[a].controller.getMinMax(this,t),r||(n=Math.min(n,e.min)),s||(i=Math.max(i,e.max));return n=s&&n>i?i:n,i=r&&n>i?n:i,{min:Or(n,Or(i,n)),max:Or(i,Or(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Er(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:r,ticks:s}=this.options,o=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:i,max:r}=t,s=(l=(r-i)/2,"string"==typeof(a=e)&&a.endsWith("%")?parseFloat(a)/100*l:+a),o=(t,e)=>n&&0===t?0:t+e;var a,l;return{min:o(i,-Math.abs(s)),max:o(r,s)}}(this,r,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=o<this.ticks.length;this._convertTicksToLabels(a?Ra(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||"auto"===s.source)&&(this.ticks=function(t,e){const n=t.options.ticks,i=function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),r=t._maxLength/n;return Math.floor(Math.min(i,r))}(t),r=Math.min(n.maxTicksLimit||i,i),s=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],o=s.length,a=s[0],l=s[o-1],c=[];if(o>r)return function(t,e,n,i){let r,s=0,o=n[0];for(i=Math.ceil(i),r=0;r<t.length;r++)r===o&&(e.push(t[r]),s++,o=n[s*i])}(e,c,s,o/r),c;const u=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),r=e.length/n;if(!i)return Math.max(r,1);const s=function(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i==0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}(i);for(let t=0,e=s.length-1;t<e;t++){const e=s[t];if(e>r)return e}return Math.max(r,1)}(s,e,r);if(o>0){let t,n;const i=o>1?Math.round((l-a)/(o-1)):null;for(za(e,c,u,Lr(i)?0:a-i,a),t=0,n=o-1;t<n;t++)za(e,c,u,s[t],s[t+1]);return za(e,c,u,l,Lr(i)?e.length:l+i),c}return za(e,c,u),c}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Er(this.options.afterUpdate,[this])}beforeSetDimensions(){Er(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Er(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Er(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Er(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,r;for(n=0,i=t.length;n<i;n++)r=t[n],r.label=Er(e.callback,[r.value,n,t],this)}afterTickToLabelConversion(){Er(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Er(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=Pa(this.ticks.length,t.ticks.maxTicksLimit),i=e.minRotation||0,r=e.maxRotation;let s,o,a,l=i;if(!this._isVisible()||!e.display||i>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,h=ls(this.chart.width-u,0,this.maxWidth);s=t.offset?this.maxWidth/n:h/(n-1),u+6>s&&(s=h/(n-(t.offset?.5:1)),o=this.maxHeight-Ua(t.grid)-e.padding-Ba(t.title,this.chart.options.font),a=Math.sqrt(u*u+d*d),l=Math.min(Math.asin(ls((c.highest.height+6)/s,-1,1)),Math.asin(ls(o/a,-1,1))-Math.asin(ls(d/a,-1,1)))*(180/Xr),l=Math.max(i,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){Er(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Er(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:r}}=this,s=this._isVisible(),o=this.isHorizontal();if(s){const s=Ba(i,e.options.font);if(o?(t.width=this.maxWidth,t.height=Ua(r)+s):(t.height=this.maxHeight,t.width=Ua(r)+s),n.display&&this.ticks.length){const{first:e,last:i,widest:r,highest:s}=this._getLabelSizes(),a=2*n.padding,l=ss(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(o){const e=n.mirror?0:u*r.width+c*s.height;t.height=Math.min(this.maxHeight,t.height+e+a)}else{const e=n.mirror?0:c*r.width+u*s.height;t.width=Math.min(this.maxWidth,t.width+e+a)}this._calculatePadding(e,i,u,c)}}this._handleMargins(),o?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,i){const{ticks:{align:r,padding:s},position:o}=this.options,a=0!==this.labelRotation,l="top"!==o&&"x"===this.axis;if(this.isHorizontal()){const o=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;a?l?(u=i*t.width,d=n*e.height):(u=n*t.height,d=i*e.width):"start"===r?d=e.width:"end"===r?u=t.width:"inner"!==r&&(u=t.width/2,d=e.width/2),this.paddingLeft=Math.max((u-o+s)*this.width/(this.width-o),0),this.paddingRight=Math.max((d-c+s)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===r?(n=0,i=t.height):"end"===r&&(n=e.height,i=0),this.paddingTop=n+s,this.paddingBottom=i+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Er(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)Lr(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=Ra(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,n){const{ctx:i,_longestTextCache:r}=this,s=[],o=[],a=Math.floor(e/Pa(e,n));let l,c,u,d,h,p,f,g,m,v,y,b=0,x=0;for(l=0;l<e;l+=a){if(d=t[l].label,h=this._resolveTickFontOptions(l),i.font=p=h.string,f=r[p]=r[p]||{data:{},gc:[]},g=h.lineHeight,m=v=0,Lr(d)||Dr(d)){if(Dr(d))for(c=0,u=d.length;c<u;++c)y=d[c],Lr(y)||Dr(y)||(m=Fs(i,f.data,f.gc,m,y),v+=g)}else m=Fs(i,f.data,f.gc,m,d),v=g;s.push(m),o.push(v),b=Math.max(m,b),x=Math.max(v,x)}!function(t,e){zr(t,(t=>{const n=t.gc,i=n.length/2;let r;if(i>e){for(r=0;r<i;++r)delete t.data[n[r]];n.splice(0,i)}}))}(r,e);const w=s.indexOf(b),A=o.indexOf(x),_=t=>({width:s[t]||0,height:o[t]||0});return{first:_(0),last:_(e-1),widest:_(w),highest:_(A),widths:s,heights:o}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return ls(this._alignToPixels?Ps(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return eo(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=eo(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=ss(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),r=this._getLabelSizes(),s=t.autoSkipPadding||0,o=r?r.widest.width+s:0,a=r?r.highest.height+s:0;return this.isHorizontal()?a*n>o*i?o/n:a/i:a*i<o*n?a/n:o/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:r,position:s,border:o}=i,a=r.offset,l=this.isHorizontal(),c=this.ticks.length+(a?1:0),u=Ua(r),d=[],h=o.setContext(this.getContext()),p=h.display?h.width:0,f=p/2,g=function(t){return Ps(n,t,p)};let m,v,y,b,x,w,A,_,C,M,k,S;if("top"===s)m=g(this.bottom),w=this.bottom-u,_=m-f,M=g(t.top)+f,S=t.bottom;else if("bottom"===s)m=g(this.top),M=t.top,S=g(t.bottom)-f,w=m+f,_=this.top+u;else if("left"===s)m=g(this.right),x=this.right-u,A=m-f,C=g(t.left)+f,k=t.right;else if("right"===s)m=g(this.left),C=t.left,k=g(t.right)-f,x=m+f,A=this.left+u;else if("x"===e){if("center"===s)m=g((t.top+t.bottom)/2+.5);else if(Tr(s)){const t=Object.keys(s)[0],e=s[t];m=g(this.chart.scales[t].getPixelForValue(e))}M=t.top,S=t.bottom,w=m+f,_=w+u}else if("y"===e){if("center"===s)m=g((t.left+t.right)/2);else if(Tr(s)){const t=Object.keys(s)[0],e=s[t];m=g(this.chart.scales[t].getPixelForValue(e))}x=m-f,A=x-u,C=t.left,k=t.right}const I=jr(i.ticks.maxTicksLimit,c),L=Math.max(1,Math.ceil(c/I));for(v=0;v<c;v+=L){const t=this.getContext(v),e=r.setContext(t),i=o.setContext(t),s=e.lineWidth,c=e.color,u=i.dash||[],h=i.dashOffset,p=e.tickWidth,f=e.tickColor,g=e.tickBorderDash||[],m=e.tickBorderDashOffset;y=Ya(this,v,a),void 0!==y&&(b=Ps(n,y,s),l?x=A=C=k=b:w=_=M=S=b,d.push({tx1:x,ty1:w,tx2:A,ty2:_,x1:C,y1:M,x2:k,y2:S,width:s,color:c,borderDash:u,borderDashOffset:h,tickWidth:p,tickColor:f,tickBorderDash:g,tickBorderDashOffset:m}))}return this._ticksLength=c,this._borderValue=m,d}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:r}=n,s=this.isHorizontal(),o=this.ticks,{align:a,crossAlign:l,padding:c,mirror:u}=r,d=Ua(n.grid),h=d+c,p=u?-c:h,f=-ss(this.labelRotation),g=[];let m,v,y,b,x,w,A,_,C,M,k,S,I="middle";if("top"===i)w=this.bottom-p,A=this._getXAxisLabelAlignment();else if("bottom"===i)w=this.top+p,A=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(d);A=t.textAlign,x=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(d);A=t.textAlign,x=t.x}else if("x"===e){if("center"===i)w=(t.top+t.bottom)/2+h;else if(Tr(i)){const t=Object.keys(i)[0],e=i[t];w=this.chart.scales[t].getPixelForValue(e)+h}A=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)x=(t.left+t.right)/2-h;else if(Tr(i)){const t=Object.keys(i)[0],e=i[t];x=this.chart.scales[t].getPixelForValue(e)}A=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===a?I="top":"end"===a&&(I="bottom"));const L=this._getLabelSizes();for(m=0,v=o.length;m<v;++m){y=o[m],b=y.label;const t=r.setContext(this.getContext(m));_=this.getPixelForTick(m)+r.labelOffset,C=this._resolveTickFontOptions(m),M=C.lineHeight,k=Dr(b)?b.length:1;const e=k/2,n=t.color,a=t.textStrokeColor,c=t.textStrokeWidth;let d,h=A;if(s?(x=_,"inner"===A&&(h=m===v-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),S="top"===i?"near"===l||0!==f?-k*M+M/2:"center"===l?-L.highest.height/2-e*M+M:-L.highest.height+M/2:"near"===l||0!==f?M/2:"center"===l?L.highest.height/2-e*M:L.highest.height-k*M,u&&(S*=-1),0===f||t.showLabelBackdrop||(x+=M/2*Math.sin(f))):(w=_,S=(1-k)*M/2),t.showLabelBackdrop){const e=$s(t.backdropPadding),n=L.heights[m],i=L.widths[m];let r=S-e.top,s=0-e.left;switch(I){case"middle":r-=n/2;break;case"bottom":r-=n}switch(A){case"center":s-=i/2;break;case"right":s-=i;break;case"inner":m===v-1?s-=i:m>0&&(s-=i/2)}d={left:s,top:r,width:i+e.width,height:n+e.height,color:t.backdropColor}}g.push({label:b,font:C,textOffset:S,options:{rotation:f,color:n,strokeColor:a,strokeWidth:c,textAlign:h,textBaseline:I,translation:[x,w],backdrop:d}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-ss(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:r}}=this.options,s=t+r,o=this._getLabelSizes().widest.width;let a,l;return"left"===e?i?(l=this.right+r,"near"===n?a="left":"center"===n?(a="center",l+=o/2):(a="right",l+=o)):(l=this.right-s,"near"===n?a="right":"center"===n?(a="center",l-=o/2):(a="left",l=this.left)):"right"===e?i?(l=this.left+r,"near"===n?a="right":"center"===n?(a="center",l-=o/2):(a="left",l-=o)):(l=this.left+s,"near"===n?a="left":"center"===n?(a="center",l+=o/2):(a="right",l=this.right)):a="right",{textAlign:a,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:r,height:s}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,r,s),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex((e=>e.value===t));return n>=0?e.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,s;const o=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(r=0,s=i.length;r<s;++r){const t=i[r];e.drawOnChartArea&&o({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&o({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:n,grid:i}}=this,r=n.setContext(this.getContext()),s=n.display?r.width:0;if(!s)return;const o=i.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=Ps(t,this.left,s)-s/2,c=Ps(t,this.right,o)+o/2,u=d=a):(u=Ps(t,this.top,s)-s/2,d=Ps(t,this.bottom,o)+o/2,l=c=a),e.save(),e.lineWidth=r.width,e.strokeStyle=r.color,e.beginPath(),e.moveTo(l,u),e.lineTo(c,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&Us(e,n);const i=this.getLabelItems(t);for(const t of i){const n=t.options,i=t.font;Vs(e,t.label,0,t.textOffset,i,n)}n&&Bs(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const r=Ks(n.font),s=$s(n.padding),o=n.align;let a=r.lineHeight/2;"bottom"===e||"center"===e||Tr(e)?(a+=s.bottom,Dr(n.text)&&(a+=r.lineHeight*(n.text.length-1))):a+=s.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(t,e,n,i){const{top:r,left:s,bottom:o,right:a,chart:l}=t,{chartArea:c,scales:u}=l;let d,h,p,f=0;const g=o-r,m=a-s;if(t.isHorizontal()){if(h=vs(i,s,a),Tr(n)){const t=Object.keys(n)[0],i=n[t];p=u[t].getPixelForValue(i)+g-e}else p="center"===n?(c.bottom+c.top)/2+g-e:Fa(t,n,e);d=a-s}else{if(Tr(n)){const t=Object.keys(n)[0],i=n[t];h=u[t].getPixelForValue(i)-m+e}else h="center"===n?(c.left+c.right)/2-m+e:Fa(t,n,e);p=vs(i,o,r),f="left"===n?-Kr:Kr}return{titleX:h,titleY:p,maxWidth:d,rotation:f}}(this,a,e,o);Vs(t,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:d,textAlign:Wa(o,e,i),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=jr(t.grid&&t.grid.z,-1),i=jr(t.border&&t.border.z,0);return this._isVisible()&&this.draw===Ha.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let r,s;for(r=0,s=e.length;r<s;++r){const s=e[r];s[n]!==this.id||t&&s.type!==t||i.push(s)}return i}_resolveTickFontOptions(t){return Ks(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Va{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,r=t.id,s=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+t);return r in i||(i[r]=t,function(t,e,n){const i=Ur(Object.create(null),[n?zs.get(n):{},zs.get(e),t.defaults]);zs.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((n=>{const i=n.split("."),r=i.pop(),s=[t].concat(i).join("."),o=e[n].split("."),a=o.pop(),l=o.join(".");zs.route(s,r,l,a)}))}(e,t.defaultRoutes),t.descriptors&&zs.describe(e,t.descriptors)}(t,s,n),this.override&&zs.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in zs[i]&&(delete zs[i][n],this.override&&delete Ts[n])}}class Za{constructor(){this.controllers=new Va(Ho,"datasets",!0),this.elements=new Va(Ea,"elements"),this.plugins=new Va(Object,"plugins"),this.scales=new Va(Ha,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach((e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):zr(e,(e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)}))}))}_exec(t,e,n){const i=Zr(t);Er(n["before"+i],[],n),e[t](n),Er(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}}var Ga=new Za;class Qa{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const r=i?this._descriptors(t).filter(i):this._descriptors(t),s=this._notify(r,t,e,n);return"afterDestroy"===e&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,e,n,i){i=i||{};for(const r of t){const t=r.plugin;if(!1===Er(t[n],[e,i,r.options],t)&&i.cancelable)return!1}return!0}invalidate(){Lr(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,i=jr(n.options&&n.options.plugins,{}),r=function(t){const e={},n=[],i=Object.keys(Ga.plugins.items);for(let t=0;t<i.length;t++)n.push(Ga.getPlugin(i[t]));const r=t.plugins||[];for(let t=0;t<r.length;t++){const i=r[t];-1===n.indexOf(i)&&(n.push(i),e[i.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},i,r){const s=[],o=t.getContext();for(const a of e){const e=a.id,l=Ja(i[e],r);null!==l&&s.push({plugin:a,options:Xa(t.config,{plugin:a,local:n[e]},l,o)})}return s}(t,r,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function Ja(t,e){return e||!1!==t?!0===t?{}:t:null}function Xa(t,{plugin:e,local:n},i,r){const s=t.pluginScopeKeys(e),o=t.getOptionScopes(i,s);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function qa(t,e){const n=zs.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function $a(t){if("x"===t||"y"===t||"r"===t)return t}function Ka(t,...e){if($a(t))return t;for(const i of e){const e=i.axis||("top"===(n=i.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.length>1&&$a(t[0].toLowerCase());if(e)return e}var n;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function tl(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function el(t){const e=t.options||(t.options={});e.plugins=jr(e.plugins,{}),e.scales=function(t,e){const n=Ts[t.type]||{scales:{}},i=e.scales||{},r=qa(t.type,e),s=Object.create(null);return Object.keys(i).forEach((e=>{const o=i[e];if(!Tr(o))return console.error(`Invalid scale configuration for scale: ${e}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const a=Ka(e,o,function(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(n.length)return tl(t,"x",n[0])||tl(t,"y",n[0])}return{}}(e,t),zs.scales[o.type]),l=function(t,e){return t===e?"_index_":"_value_"}(a,r),c=n.scales||{};s[e]=Br(Object.create(null),[{axis:a},o,c[a],c[l]])})),t.data.datasets.forEach((n=>{const r=n.type||t.type,o=n.indexAxis||qa(r,e),a=(Ts[r]||{}).scales||{};Object.keys(a).forEach((t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,o),r=n[e+"AxisID"]||e;s[r]=s[r]||Object.create(null),Br(s[r],[{axis:e},i[r],a[t]])}))})),Object.keys(s).forEach((t=>{const e=s[t];Br(e,[zs.scales[e.type],zs.scale])})),s}(t,e)}function nl(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const il=new Map,rl=new Set;function sl(t,e){let n=il.get(t);return n||(n=e(),il.set(t,n),rl.add(n)),n}const ol=(t,e,n)=>{const i=Vr(e,n);void 0!==i&&t.add(i)};class al{constructor(t){this._config=function(t){return(t=t||{}).data=nl(t.data),el(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=nl(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),el(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return sl(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return sl(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return sl(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return sl(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:r}=this,s=this._cachedScopes(t,n),o=s.get(e);if(o)return o;const a=new Set;e.forEach((e=>{t&&(a.add(t),e.forEach((e=>ol(a,t,e)))),e.forEach((t=>ol(a,i,t))),e.forEach((t=>ol(a,Ts[r]||{},t))),e.forEach((t=>ol(a,zs,t))),e.forEach((t=>ol(a,Ns,t)))}));const l=Array.from(a);return 0===l.length&&l.push(Object.create(null)),rl.has(e)&&s.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Ts[e]||{},zs.datasets[e]||{},{type:e},zs,Ns]}resolveNamedOptions(t,e,n,i=[""]){const r={$shared:!0},{resolver:s,subPrefixes:o}=ll(this._resolverCache,t,i);let a=s;(function(t,e){const{isScriptable:n,isIndexable:i}=ro(t);for(const r of e){const e=n(r),s=i(r),o=(s||e)&&t[r];if(e&&(Qr(o)||cl(o))||s&&Dr(o))return!0}return!1})(s,e)&&(r.$shared=!1,a=io(s,n=Qr(n)?n():n,this.createResolver(t,n,o)));for(const t of e)r[t]=a[t];return r}createResolver(t,e,n=[""],i){const{resolver:r}=ll(this._resolverCache,t,n);return Tr(e)?io(r,e,void 0,i):r}}function ll(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const r=n.join();let s=i.get(r);return s||(s={resolver:no(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},i.set(r,s)),s}const cl=t=>Tr(t)&&Object.getOwnPropertyNames(t).some((e=>Qr(t[e]))),ul=["top","bottom","left","right","chartArea"];function dl(t,e){return"top"===t||"bottom"===t||-1===ul.indexOf(t)&&"x"===e}function hl(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function pl(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Er(n&&n.onComplete,[t],e)}function fl(t){const e=t.chart,n=e.options.animation;Er(n&&n.onProgress,[t],e)}function gl(t){return mo()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const ml={},vl=t=>{const e=gl(t);return Object.values(ml).filter((t=>t.canvas===e)).pop()};function yl(t,e,n){const i=Object.keys(t);for(const r of i){const i=+r;if(i>=e){const s=t[r];delete t[r],(n>0||i>e)&&(t[i+n]=s)}}}function bl(t,e,n){return t.options.clip?t[n]:e[n]}class xl{static defaults=zs;static instances=ml;static overrides=Ts;static registry=Ga;static version="4.4.5";static getChart=vl;static register(...t){Ga.add(...t),wl()}static unregister(...t){Ga.remove(...t),wl()}constructor(t,e){const n=this.config=new al(e),i=gl(t),r=vl(i);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const s=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!mo()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?ba:ja}(i)),this.platform.updateConfig(n);const o=this.platform.acquireContext(i,s.aspectRatio),a=o&&o.canvas,l=a&&a.height,c=a&&a.width;this.id=Ir(),this.ctx=o,this.canvas=a,this.width=c,this.height=l,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Qa,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}((t=>this.update(t)),s.resizeDelay||0),this._dataChanges=[],ml[this.id]=this,o&&a?(Io.listen(this,"complete",pl),Io.listen(this,"progress",fl),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:i,_aspectRatio:r}=this;return Lr(t)?e&&r?r:i?n/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Ga}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Co(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Rs(this.canvas,this.ctx),this}stop(){return Io.stop(this),this}resize(t,e){Io.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,t,e,r),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,Co(this,o,!0)&&(this.notifyPlugins("resize",{size:s}),Er(n.onResize,[this,s],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){zr(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let r=[];e&&(r=r.concat(Object.keys(e).map((t=>{const n=e[t],i=Ka(t,n),r="r"===i,s="x"===i;return{options:n,dposition:r?"chartArea":s?"bottom":"left",dtype:r?"radialLinear":s?"category":"linear"}})))),zr(r,(e=>{const r=e.options,s=r.id,o=Ka(s,r),a=jr(r.type,e.dtype);void 0!==r.position&&dl(r.position,o)===dl(e.dposition)||(r.position=e.dposition),i[s]=!0;let l=null;s in n&&n[s].type===a?l=n[s]:(l=new(Ga.getScale(a))({id:s,type:a,ctx:this.ctx,chart:this}),n[l.id]=l),l.init(r,t)})),zr(i,((t,e)=>{t||delete n[e]})),zr(n,(t=>{va.configure(this,t,t.options),va.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(hl("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let r=this.getDatasetMeta(n);const s=i.type||this.config.type;if(r.type&&r.type!==s&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=s,r.indexAxis=i.indexAxis||qa(s,this.options),r.order=i.order||0,r.index=n,r.label=""+i.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const e=Ga.getController(s),{datasetElementType:i,dataElementType:o}=zs.datasets[s];Object.assign(e,{dataElementType:Ga.getElement(o),datasetElementType:i&&Ga.getElement(i)}),r.controller=new e(this,n),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){zr(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!i&&-1===r.indexOf(e);e.buildOrUpdateElements(n),s=Math.max(+e.getMaxOverflow(),s)}s=this._minPadding=n.layout.autoPadding?s:0,this._updateLayout(s),i||zr(r,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(hl("z","_idx"));const{_active:o,_lastEvent:a}=this;a?this._eventHandler(a,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){zr(this.scales,(t=>{va.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);Jr(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:r}of e)yl(t,i,"_removeElements"===n?-r:r)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),i=n(0);for(let t=1;t<e;t++)if(!Jr(i,n(t)))return;return Array.from(i).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;va.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],zr(this.boxes,(t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,Qr(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Io.has(this)?this.attached&&!Io.running(this)&&Io.start(this):(this.draw(),pl({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,r;for(i=0,r=e.length;i<r;++i){const r=e[i];t&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,i=!n.disabled,r=function(t,e){const{xScale:n,yScale:i}=t;return n&&i?{left:bl(n,e,"left"),right:bl(n,e,"right"),top:bl(i,e,"top"),bottom:bl(i,e,"bottom")}:e}(t,this.chartArea),s={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",s)&&(i&&Us(e,{left:!1===n.left?0:r.left-n.left,right:!1===n.right?this.width:r.right+n.right,top:!1===n.top?0:r.top-n.top,bottom:!1===n.bottom?this.height:r.bottom+n.bottom}),t.controller.draw(),i&&Bs(e),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return Ys(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const r=sa.modes[e];return"function"==typeof r?r(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter((t=>t&&t._dataset===e)).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=eo(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const i=n?"show":"hide",r=this.getDatasetMeta(t),s=r.controller._resolveAnimations(void 0,i);Gr(e)?(r.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),s.update(r,{visible:n}),this.update((e=>e.datasetIndex===t?i:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Io.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Rs(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete ml[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};zr(this.options.events,(t=>n(t,i)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},r=(t,e)=>{this.canvas&&this.resize(t,e)};let s;const o=()=>{i("attach",o),this.attached=!0,this.resize(),n("resize",r),n("detach",s)};s=()=>{this.attached=!1,i("resize",r),this._stop(),this._resize(0,0),n("attach",o)},e.isAttached(this.canvas)?o():s()}unbindEvents(){zr(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},zr(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let r,s,o,a;for("dataset"===e&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+i+"DatasetHoverStyle"]()),o=0,a=t.length;o<a;++o){s=t[o];const e=s&&this.getDatasetMeta(s.datasetIndex).controller;e&&e[i+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}));!Fr(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,n){const i=this.options.hover,r=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),s=r(e,t),o=n?t:r(t,e);s.length&&this.updateHoverStyle(s,i.mode,!1),o.length&&i.mode&&this.updateHoverStyle(o,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const r=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(r||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:r}=this,s=e,o=this._getActiveElements(t,i,n,s),a=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,a);n&&(this._lastEvent=null,Er(r.onHover,[t,o,this],this),a&&Er(r.onClick,[t,o,this],this));const c=!Fr(o,i);return(c||e)&&(this._active=o,this._updateHoverStyles(o,i,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,i)}}function wl(){return zr(xl.instances,(t=>t._plugins.invalidate()))}function Al(t,e){const{x:n,y:i,base:r,width:s,height:o}=t.getProps(["x","y","base","width","height"],e);let a,l,c,u,d;return t.horizontal?(d=o/2,a=Math.min(n,r),l=Math.max(n,r),c=i-d,u=i+d):(d=s/2,a=n-d,l=n+d,c=Math.min(i,r),u=Math.max(i,r)),{left:a,top:c,right:l,bottom:u}}function _l(t,e,n,i){return t?0:ls(e,n,i)}function Cl(t){const e=Al(t),n=e.right-e.left,i=e.bottom-e.top,r=function(t,e,n){const i=t.options.borderWidth,r=t.borderSkipped,s=qs(i);return{t:_l(r.top,s.top,0,n),r:_l(r.right,s.right,0,e),b:_l(r.bottom,s.bottom,0,n),l:_l(r.left,s.left,0,e)}}(t,n/2,i/2),s=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),r=t.options.borderRadius,s=function(t){return Xs(t,["topLeft","topRight","bottomLeft","bottomRight"])}(r),o=Math.min(e,n),a=t.borderSkipped,l=i||Tr(r);return{topLeft:_l(!l||a.top||a.left,s.topLeft,0,o),topRight:_l(!l||a.top||a.right,s.topRight,0,o),bottomLeft:_l(!l||a.bottom||a.left,s.bottomLeft,0,o),bottomRight:_l(!l||a.bottom||a.right,s.bottomRight,0,o)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:s},inner:{x:e.left+r.l,y:e.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,s.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(r.b,r.r))}}}}function Ml(t,e,n,i){const r=null===e,s=null===n,o=t&&!(r&&s)&&Al(t,i);return o&&(r||cs(e,o.left,o.right))&&(s||cs(n,o.top,o.bottom))}function kl(t,e){t.rect(e.x,e.y,e.w,e.h)}function Sl(t,e,n={}){const i=t.x!==n.x?-e:0,r=t.y!==n.y?-e:0,s=(t.x+t.w!==n.x+n.w?e:0)-i,o=(t.y+t.h!==n.y+n.h?e:0)-r;return{x:t.x+i,y:t.y+r,w:t.w+s,h:t.h+o,radius:t.radius}}class Il extends Ea{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:i}}=this,{inner:r,outer:s}=Cl(this),o=(a=s.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?Zs:kl;var a;t.save(),s.w===r.w&&s.h===r.h||(t.beginPath(),o(t,Sl(s,e,r)),t.clip(),o(t,Sl(r,-e,s)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),o(t,Sl(r,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return Ml(this,t,e,n)}inXRange(t,e){return Ml(this,t,null,e)}inYRange(t,e){return Ml(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:r}=this.getProps(["x","y","base","horizontal"],t);return{x:r?(e+i)/2:e,y:r?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}function Ll(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}new WeakMap;class Dl extends Ha{static id="category";static defaults={ticks:{callback:Ll}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Lr(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:ls(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:function(t,e,n,i){const r=t.indexOf(e);return-1===r?((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i):r!==t.lastIndexOf(e)?n:r}(n,t,jr(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let r=this.getLabels();r=0===t&&e===r.length-1?r:r.slice(t,e+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){return Ll.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Tl(t,e,{horizontal:n,minRotation:i}){const r=ss(i),s=(n?Math.sin(r):Math.cos(r))||.001,o=.75*e*(""+t).length;return Math.min(e/s,o)}class Nl extends Ha{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return Lr(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:r}=this;const s=t=>i=e?i:t,o=t=>r=n?r:t;if(t){const t=es(i),e=es(r);t<0&&e<0?o(0):t>0&&e>0&&s(0)}if(i===r){let e=0===r?1:Math.abs(.05*r);o(r+e),t||s(i-e)}this.min=i,this.max=r}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=function(t,e){const n=[],{bounds:i,step:r,min:s,max:o,precision:a,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=t,h=r||1,p=c-1,{min:f,max:g}=e,m=!Lr(s),v=!Lr(o),y=!Lr(l),b=(g-f)/(u+1);let x,w,A,_,C=is((g-f)/p/h)*h;if(C<1e-14&&!m&&!v)return[{value:f},{value:g}];_=Math.ceil(g/C)-Math.floor(f/C),_>p&&(C=is(_*C/p/h)*h),Lr(a)||(x=Math.pow(10,a),C=Math.ceil(C*x)/x),"ticks"===i?(w=Math.floor(f/C)*C,A=Math.ceil(g/C)*C):(w=f,A=g),m&&v&&r&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((o-s)/r,C/1e3)?(_=Math.round(Math.min((o-s)/C,c)),C=(o-s)/_,w=s,A=o):y?(w=m?s:w,A=v?o:A,_=l-1,C=(A-w)/_):(_=(A-w)/C,_=ns(_,Math.round(_),C/1e3)?Math.round(_):Math.ceil(_));const M=Math.max(os(C),os(w));x=Math.pow(10,Lr(a)?M:a),w=Math.round(w*x)/x,A=Math.round(A*x)/x;let k=0;for(m&&(d&&w!==s?(n.push({value:s}),w<s&&k++,ns(Math.round((w+k*C)*x)/x,s,Tl(s,b,t))&&k++):w<s&&k++);k<_;++k){const t=Math.round((w+k*C)*x)/x;if(v&&t>o)break;n.push({value:t})}return v&&d&&A!==o?n.length&&ns(n[n.length-1].value,o,Tl(o,b,t))?n[n.length-1].value=o:n.push({value:o}):v&&A!==o||n.push({value:A}),n}({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&function(t,e,n){let i,r,s;for(i=0,r=t.length;i<r;i++)s=t[i][n],isNaN(s)||(e.min=Math.min(e.min,s),e.max=Math.max(e.max,s))}(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return Is(t,this.chart.options.locale,this.options.ticks.format)}}class Ol extends Nl{static id="linear";static defaults={ticks:{callback:Ds.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Nr(t)?t:0,this.max=Nr(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=ss(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,r.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Ds.formatters.logarithmic,Ds.formatters.numeric;class jl extends Bi{constructor(){super(".dialog.chart")}_multiplierDescription(t){return{0:"",3:"'000s",6:"millions",9:"billions"}[t]}_chooseMultiplier(t){let e=Math.max(...t.map((t=>Math.abs(Number(t.value()))))),n=0;for(;e>=1e3&&n<9;)e/=1e3,n+=3;return n}dataSetColour(t){return["#66cc00","#0094ff","#fbad17"][t]}addAspect(t){this._analyseDims.push(t),this._showAnalyseDimensionChart()}removeAspect(t){this._analyseDims=this._analyseDims.filter((e=>e!=t)),this._showAnalyseDimensionChart()}analyseDimension(t,e){this._analyseFact=t,this._analyseDims=e,this._showAnalyseDimensionChart()}_showAnalyseDimensionChart(){const t=this._analyseFact,n=this._analyseDims,i=this.node;e()("canvas",i).remove(),e()("<canvas>").appendTo(e()(".chart-container",i)),this.show();const r={};n[0]&&(r[n[0]]=null),n[1]&&(r[n[1]]=null);const s=t.report.deduplicate(t.report.getAlignedFacts(t,r)),o=new qe,a=new qe;for(const t of s)n[0]&&o.add(t.aspect(n[0])),n[1]&&a.add(t.aspect(n[1]));const l=o.uniqueValues(),c=a.uniqueValues(),u=this._chooseMultiplier(s),d=t.unitLabel()+" "+this._multiplierDescription(u),h=[],p=[];for(let e=0;e<(n[0]?l.length:1);e++){h.push(n[0]?Re(l[e].valueLabel("std")||"",40):"");for(let i=0;i<(n[1]?c.length:1);i++){p[i]=p[i]||{label:n[1]?c[i].valueLabel():"",data:[],backgroundColor:this.dataSetColour(i),borderColor:this.dataSetColour(i)};const r={};n[0]&&(r[n[0]]=l[e].value()),n[1]&&(r[n[1]]=c[i].value());const s=t.report.getAlignedFacts(t,r);s.length>0?p[i].data[e]=s[0].value()/10**u:p[i].data[e]=0}}e()(".other-aspects",i).empty();const f=[];for(const r of t.aspects())if("c"!=r.name()){const t=e()("<div>").addClass("other-aspect").appendTo(e()(".other-aspects",i));n.includes(r.name())?t.addClass("selected").text(r.label()+": *").on("click",(()=>this.removeAspect(r.name()))):("u"!=r.name()&&f.push(r.valueLabel()),t.text(r.label()+": "+r.valueLabel()),n.length<2&&t.addClass("addable").on("click",(()=>this.addAspect(r.name()))))}n[1]||(n[0]||(h[0]=f.join(", ")),p[0].label=f.join(", ")),this.setChartSize();const g=e()("canvas",i);xl.register(Ko,Il,Dl,Ol);const m=new xl(g,{type:"bar",data:{labels:h,datasets:p},options:{responsive:!0,maintainAspectRatio:!1,scales:{y:{beginAtZero:!0,title:{display:!0,text:d}},x:{ticks:{autoSkip:!1}}}}});e()(window).on("resize",(()=>{this.setChartSize(),m.resize()}))}setChartSize(){const t=this.node,n=t.height()-e()(".other-aspects",this.node).outerHeight()-16;e()(".chart-container",t).height(n),e()("canvas",t).attr("height",n).height(n)}}class El{constructor(t,n){this._elt=t,n=n||{},this.type=n.type||"dropdown",t.find(".menu-title").on("click",(e=>{t.find(".content-container").toggle(),e.stopPropagation()})),e()("html").on("click",(n=>{0===e()(".content",t).find(e()(n.target)).length&&this.close()}))}reset(){this._elt.find(".content").empty()}close(){"dropdown"==this.type&&this._elt.find(".content-container").hide()}_add(t,n){if(void 0!==n){const i=this._elt.find(".content > div").filter((()=>e()(this).data("iv-menu-item-name")===n));if(void 0!==i&&i.length>0)return void i.after(t)}t.appendTo(this._elt.find(".content"))}addDownloadButton(t,n){const i=this,r=e()("<a></a>").addClass("item").attr({href:n}).text(t).on("click",(()=>i.close()));this._add(r)}addCheckboxItem(t,n,i,r,s){const o=this,a=e()("<label></label>").addClass("menu-checkbox").addClass("item").text(t).data("iv-menu-item-name",i).prepend(e()('<input type="checkbox"></input>').prop("checked",s).change((function(){n(e()(this).prop("checked")),o.close()}))).append(e()("<span></span>").addClass("checkmark"));this._add(a,r),s&&n(!0)}addCheckboxGroup(t,n,i,r,s,o){const a=this,l=e()('<div class="group"></div>').data("iv-menu-item-name",s);this._add(l,o);for(const o of t){const t=e()("<label></label>").addClass("menu-checkbox").addClass("item").text(n[o]).prepend(e()('<input type="radio"></input>').attr({name:s,value:o}).on("change",(function(){r(e()(this).val()),a.close()}))).append(e()("<span></span>").addClass("checkmark")).appendTo(l);o===i&&t.find("input").prop("checked",!0)}}}class zl{constructor(t){this._contents=e()('<div class="accordian"></div>'),this.onSelect=e().Callbacks(),this.options=t||{},this.options.onSelect&&this.onSelect.add(t.onSelect)}addCard(t,n,i,r){const s=this,o=e()('<div class="card"></div>').append(e()('<div class="title"></div>').append(t).on("click",(function(){var t=e()(this).closest(".card");t.hasClass("active")?s.options.alwaysOpen||t.removeClass("active"):(t.closest(".accordian").find(".card").removeClass("active"),t.addClass("active"),s.onSelect.fire(t.data("accordian-card-id")))}))).append(e()('<div class="card-body"></div>').append(n)).appendTo(this._contents);null!==r&&o.data("accordian-card-id",r),i&&o.addClass("active")}contents(){return this.options.alwaysOpen&&0==this._contents.find(".card.active").length&&this._contents.find(".card").first().addClass("active"),this.options.dissolveSingle&&1==this._contents.children().length?this._contents.children().first().find(".card-body"):this._contents}}class Fl{constructor(t){this.itemMap=new Map;for(const e of t??[])this.add(e)}add(t){this.itemMap.set(t.vuid,t)}items(){return Array.from(this.itemMap.values())}_allDimensions(){const t={},e=this.items().filter((t=>t instanceof Ke));for(const i of e){const e=Object.keys(i.dimensions());for(var n=0;n<e.length;n++)t[e[n]]=!0}return Object.keys(t)}minimallyUniqueLabel(t){if(!this._minimallyUniqueLabels){for(var e=this.items().filter((t=>t instanceof Ke)),n={},i=["c","p"].concat(this._allDimensions()),r=0;r<e.length;r++){var s=e[r];n[s.vuid]=[];for(var o=0;o<i.length;o++){var a=s.aspect(i[o]);n[s.vuid].push(a?a.valueLabel():null)}}var l={};for(o=0;o<i.length;o++){var c={};for(r=0;r<e.length;r++)c[n[e[r].vuid][o]]=!0;var u={};if(Object.keys(c).length>1){for(r=0;r<e.length;r++){var d=n[p=e[r].vuid][o],h=l[p]||[];null!==d&&h.push(d),h.length>0&&(l[p]=h,u[h.join(", ")]=!0)}if(Object.keys(u).length==e.length)break}}if(Object.keys(l).length<e.length)for(r=0;r<e.length;r++){var p=e[r].vuid;(h=l[p]||[]).unshift(n[p][0]),l[p]=h}this.items().filter((t=>t instanceof tn)).forEach((t=>{l[t.vuid]=[t.title]})),this._minimallyUniqueLabels=l}return this._minimallyUniqueLabels[t.vuid].join(", ")}isEmpty(){return 0==this.itemMap.size}valueIntersection(){const t=this.items().map((t=>$e.fromFact(t)));return $e.intersection(...t)}completeDuplicates(){return this.items().every((t=>t.isCompleteDuplicate(this.items()[0])))}isConsistent(){if(0==this.itemMap.size)return!0;const t=this.items().map((t=>$e.fromFact(t)));return void 0!==$e.intersection(...t)}size(){return this.itemMap.size}mostPrecise(){return this.items().reduce(((t,e)=>e.isMorePrecise(t)?e:t))}}class Pl extends Bi{constructor(){super(".dialog.validation-report"),this.addButton("Dismiss",!0)}displayErrors(t){const n=this.node.find("tbody");n.empty();for(const i of t)e()("<tr></tr>").append(e()("<td></td>").text(i.sev)).append(e()("<td></td>").text(i.code)).append(e()("<td></td>").text(i.msg)).appendTo(n)}}class Rl extends Bi{constructor(t){super(".dialog.text-block-viewer"),this.addButton("Dismiss",!0),this.fact=t,this.node.find("#text-block-viewer-plain-text").off("change.dialog").on("change.dialog",(t=>this.displayTextBlock(t.target.checked)))}htmlWrapString(t){return"<!DOCTYPE html><html><head><title></title></head><body>"+t+"</body></html>"}static canRender(t){return t.isTextBlock()&&t.escaped()}textOnly(){return this.node.find("#text-block-viewer-plain-text").prop("checked")}displayTextBlock(){const t=this.node.find("iframe").get(0),e=t.contentDocument||t.contentWindow.document;if(e.open(),this.textOnly()){const t=document.createElement("div");t.append(document.createTextNode(this.fact.readableValue())),e.write(this.htmlWrapString(t.outerHTML))}else e.write(this.htmlWrapString(this.fact.value()));e.close()}}class Yl{constructor(t,e){this.fact=t,this.calc11=e}calculationFacts(){const t=this.fact,e=t.report;if(!this._conceptToFact){const n={};for(const i of[ze,"calc11"]){const r=e.getChildRelationships(t.conceptName(),i);for(const[s,o]of Object.entries(r))Be(n,i,{}),n[i][s]={},o.length>0&&e.getAlignedFacts(t,{c:o.map((t=>t.t))}).forEach((t=>Be(n[i][s],t.conceptName(),new Fl).add(t)))}this._conceptToFact=n}return this._conceptToFact}hasCalculations(){const t=this.calculationFacts();return Object.keys(t).length>0}resolvedCalculations(){const t=[],e=this.calculationFacts();for(const[n,i]of Object.entries(e))for(const[e,r]of Object.entries(i))Object.keys(r).length>0&&t.push(this.resolvedCalculation(e,n));return t}bestELRForFactSet(t){const e=this.calculationFacts();let n="",i=-1;for(const[r,s]of Object.entries(e))for(const[e,r]of Object.entries(s)){let s=0;for(const[e,n]of Object.entries(r)){let e=0;for(const i of n.items())t.includes(i.vuid)&&(e=1);s+=e}s/Object.keys(r).length>i&&(i=s/Object.keys(r).length,n=e)}return n}resolvedCalculation(t,e){const n=this.calculationFacts()[e][t],i=this.fact.report,r=i.getChildRelationships(this.fact.conceptName(),e)[t],s=new(this.calc11?Wl:Hl)(t,this.fact,e);for(const t of r){const e=n[t.t]??new Fl;s.addRow(new Ul(i.getConcept(t.t),t.w,e))}return s}}class Ul{constructor(t,e,n){this.concept=t,this.weight=e,this.facts=n,this.weightSign=1==e?"+":-1==e?"-":e.toString()}contributionInterval(){const t=this.facts.valueIntersection();if(void 0!==t)return t.times(this.weight)}}class Bl{constructor(t,e,n){this.totalFact=e,this.totalFactSet=new Fl(e.report.getAlignedFacts(e)),this.elr=t,this.rows=[],this.relationshipVersion=n}addRow(t){this.rows.push(t)}binds(){return this.rows.some((t=>!t.facts.isEmpty()))}unchecked(){return!1}}class Wl extends Bl{calculatedTotalInterval(){let t=new $e(0,0);for(const e of this.rows)if(!e.facts.isEmpty()){const n=e.contributionInterval();if(void 0===n)return;t=t.plus(n)}return t}isConsistent(){const t=this.calculatedTotalInterval(),e=this.totalFactSet.valueIntersection();return void 0!==t&&void 0!==t.intersection(e)}}class Hl extends Bl{binds(){return this.relationshipVersion==ze&&super.binds()&&this.rows.every((t=>t.facts.completeDuplicates()))}unchecked(){return super.binds()&&!this.binds()}uncheckedDueToVersionMismatch(){return this.relationshipVersion!==ze}calculatedTotal(){let t=new Ht(0);for(const e of this.rows){if(!e.facts.isConsistent())return;e.facts.isEmpty()||(t=t.plus(e.facts.items()[0].roundedValue().times(e.weight)))}return t}isConsistent(){return this.calculatedTotal().equals(this.totalFact.roundedValue())}}class Vl extends Bi{constructor(){super(".dialog.calculation-inspector"),this.addButton("Dismiss",!0)}duplicateFactIcons(t){const n=e()("<td></td>").addClass("icons");return t.size()>1&&!t.completeDuplicates()&&(t.isConsistent()?n.append(e()("<span></span>").addClass("duplicate-facts").attr("title",je.t("calculation.consistent-duplicate-facts-present",{nfacts:t.size()}))):n.append(e()("<span></span>").addClass("duplicate-facts").attr("title",je.t("calculation.inconsistent-duplicate-facts-present",{nfacts:t.size()})))),n}populateCalc11Table(t,n){n.addClass("calc11");const i=n.find("tbody");let r=!1;for(const n of t.rows){let t="",s="",o="";if(!n.facts.isEmpty()){let e=n.facts.items()[0];const i=n.facts.valueIntersection();if(void 0===i)t="n/a",s="n/a",o="n/a";else{t=e.readableValue(i.midpoint().toNumber());const r=n.contributionInterval();s=e.readableValue(r.a.toNumber()),o=e.readableValue(r.b.toNumber())}}const a=this.duplicateFactIcons(n.facts);r=r||a.find("span").length>0,e()("<tr></tr>").append(e()("<td></td>").addClass("weight").text(n.weightSign)).append(e()("<td></td>").text(n.concept.label()).addClass("line-item")).append(e()("<td></td>").addClass("figure").text(t)).append(a).append(e()("<td></td>").addClass("figure").text(s)).append(e()("<td></td>").addClass("figure").text(o)).appendTo(i)}const s=t.totalFact,o=t.calculatedTotalInterval();e()("<tr></tr>").addClass("total").append(e()("<td></td>")).append(e()("<td></td>").text(`${s.concept().label()} (${je.t("calculation.calculated-total")})`).addClass("line-item")).append(e()("<td></td>").text(void 0===o?"n/a":s.readableValue(o.midpoint().toNumber())).addClass("figure")).append(e()("<td></td>").addClass("icons")).append(e()("<td></td>").text(void 0===o?"n/a":s.readableValue(o.a.toNumber())).addClass("figure")).append(e()("<td></td>").text(void 0===o?"n/a":s.readableValue(o.b.toNumber())).addClass("figure")).appendTo(i);const a=t.totalFactSet.valueIntersection(),l=this.duplicateFactIcons(t.totalFactSet);e()("<tr></tr>").append(e()("<td></td>")).append(e()("<td></td>").text(`${s.concept().label()} (${je.t("calculation.reported-total")})`).addClass("line-item")).append(e()("<td></td>").text(void 0===a?"n/a":s.readableValue(a.midpoint().toNumber())).addClass("figure")).append(l).append(e()("<td></td>").text(void 0===a?"n/a":s.readableValue(a.a.toNumber())).addClass("figure")).append(e()("<td></td>").text(void 0===a?"n/a":s.readableValue(a.b.toNumber())).addClass("figure")).appendTo(i),r&&n.addClass("has-icons")}populateLegacyCalcTable(t,n){n.removeClass("calc11");const i=n.find("tbody");let r=!1;for(const n of t.rows){let t="";if(!n.facts.isEmpty()){let e=n.facts.items()[0];t=void 0===n.facts.valueIntersection()?"Inconsistent duplicates":n.facts.completeDuplicates()?e.readableValue():"Duplicate facts"}const s=this.duplicateFactIcons(n.facts);r=r||s.find("span").length>0,e()("<tr></tr>").append(e()("<td></td>").addClass("weight").text(n.weightSign)).append(e()("<td></td>").text(n.concept.label()).addClass("line-item")).append(e()("<td></td>").addClass("figure").text(t)).append(s).appendTo(i)}const s=t.totalFact,o=t.calculatedTotal();e()("<tr></tr>").addClass("total").append(e()("<td></td>")).append(e()("<td></td>").text(`${s.concept().label()} (${je.t("calculation.calculated-total")})`).addClass("line-item")).append(e()("<td></td>").text(s.readableValue(o)).addClass("figure")).append(e()("<td></td>").addClass("icons")).appendTo(i),e()("<tr></tr>").append(e()("<td></td>")).append(e()("<td></td>").text(`${s.concept().label()} (${je.t("calculation.reported-total")})`).addClass("line-item")).append(e()("<td></td>").text(s.readableValue()).addClass("figure")).append(e()("<td></td>").addClass("icons")).appendTo(i),r&&n.addClass("has-icons")}displayCalculation(t){const e=this.node.find("table.calculation-trace");e.find("tbody").empty(),e.removeClass("has-icons"),t instanceof Wl?this.populateCalc11Table(t,e):this.populateLegacyCalcTable(t,e);const n=e.find("td.status");n.removeClass("inconsistent").removeClass("consistent").removeClass("unchecked"),t.unchecked()?n.addClass("unchecked").find(".message").text(je.t("calculation.does-not-bind")):t.isConsistent()?n.addClass("consistent").find(".message").text(je.t("factDetails.calculationIsConsistent")):n.addClass("inconsistent").find(".message").text(je.t("factDetails.calculationIsInconsistent"))}}class Zl{constructor(t){this._reportSet=t,this.outlines=t.reports.map((t=>new Gl(t)))}hasOutline(){return this.outlines.some((t=>Object.keys(t.sections).length>0))}sortedSections(){return this.outlines.flatMap((t=>t.sortedSections()))}groupsForFact(t){return this.outlines.find((e=>e.report==t.report)).groupsForFact(t)}}class Gl{constructor(t){this.report=t;const e=t.facts().sort(((t,e)=>t.ixNode.docOrderindex-e.ixNode.docOrderindex)),n={},i={},r={},s={};this._buildDimensionMap();const o=t.relationshipGroups("pres");for(const t of e)if(!t.isHidden())for(const e of o)this.factInGroup(t,e)?(e in n||(n[e]=0,i[e]=t),n[e]++):e in n&&((!(e in r)||r[e]<n[e])&&(r[e]=n[e],s[e]=i[e]),delete n[e],delete i[e]);for(const t in n)(!(t in r)||r[t]<n[t])&&(r[t]=n[t],s[t]=i[t]);this.sections=s}factInGroup(t,e){if(0==this.report.getParentRelationshipsInGroup(t.conceptName(),"pres",e).length)return!1;const n=t.dimensions(),i=this.dimensionMap[e];for(const[t,e]of Object.entries(i))if(e.typed){if(!(t in n))return!1}else if(t in n?!(n[t]in e.members):!e.allowDefault)return!1;return!0}_buildDimensionMap(){const t=this.report.relationshipGroups("pres");this.dimensionMap={};for(const e of t){this.dimensionMap[e]={};for(const t of this.report.relationshipGroupRoots("pres",e))this.buildDimensionMapFromSubTree("pres",e,null,t)}}buildDimensionMapFromSubTree(t,e,n,i){const r=this.report.getConcept(i);if(r.isTypedDimension())this.dimensionMap[e][i]={typed:!0};else{r.isExplicitDimension()&&(n=i,this.dimensionMap[e][n]={members:{},allowDefault:!1});var s=this.report.getChildRelationships(i,t);if(e in s)for(var o of s[e])n&&(this.report.dimensionDefault(n)==o.t?this.dimensionMap[e][n].allowDefault=!0:this.dimensionMap[e][n].members[o.t]=!0),this.buildDimensionMapFromSubTree(t,e,n,o.t)}}groupsForFact(t){const e=[];for(const n of this.report.relationshipGroups("pres"))this.factInGroup(t,n)&&e.push({elr:n,fact:this.sections[n],report:this.report});return e}hasOutline(){return Object.keys(this.sections).length>0}sortedSections(){const t=Object.keys(this.sections),e=/\(parenthetical\)\s*$/i;return t.filter((t=>!e.test(this.report.getRoleLabel(t)))).sort(((t,e)=>this.report.getRoleLabel(t).localeCompare(this.report.getRoleLabel(e)))).map((t=>({report:this.report,fact:this.sections[t],elr:t})))}}const Ql="dimensions",Jl="members",Xl="primaryItems",ql="total";class $l{constructor(){this._dimensions=new Set,this._members=new Set,this._primaryItems=new Set}addDimension(t){this._dimensions.add(t)}addMember(t){this._members.add(t)}addPrimaryItem(t){this._primaryItems.add(t)}getCounts(){return{[Ql]:this._dimensions.size,[Jl]:this._members.size,[Xl]:this._primaryItems.size,[ql]:this._dimensions.size+this._members.size+this._primaryItems.size}}}class Kl{constructor(){this._documentsByType={inline:new Set,schema:new Set,calcLinkbase:new Set,defLinkbase:new Set,labelLinkbase:new Set,presLinkbase:new Set,refLinkbase:new Set,unrecognizedLinkbase:new Set}}addDocument(t,e){for(const n of e){if(!(n in this._documentsByType))throw new Error(`Document ${t} with unrecognized type ${n}.`);this._documentsByType[n].add(t)}}getDocuments(){const t={};for(const[e,n]of Object.entries(this._documentsByType))t[e]=[...n].sort();return t}}class tc{constructor(t){this._reportSet=t}_getTagCounter(t,e){const n=e.indexOf(":");if(-1===n)throw new Error(`Element ${e} is not a concept.`);const i=e.substring(0,n);return t.has(i)||t.set(i,new $l),t.get(i)}_buildTagCounts(){const t=new Map;for(const e of this._reportSet.facts()){let n=this._getTagCounter(t,e.conceptName());n.addPrimaryItem(e.conceptName());for(const[i,r]of Object.entries(e.dimensions())){n=this._getTagCounter(t,i),n.addDimension(i);const s=e.report.getConcept(i);if(s.isTypedDimension()){const e=s.typedDomainElement();e&&(n=this._getTagCounter(t,e),n.addMember(e))}else n=this._getTagCounter(t,r),n.addMember(r)}}this._tagCounts=new Map([...t].map((([t,e])=>[t,e.getCounts()])))}_buildLocalFileSummary(){this._localFileSummary=new Kl;for(const[t,e]of this._reportSet.reports.flatMap((t=>Object.entries(t.localDocuments()))))this._localFileSummary.addDocument(t,e)}totalFacts(){return void 0===this._totalFacts&&(this._totalFacts=this._reportSet.facts().length),this._totalFacts}tagCounts(){return void 0===this._tagCounts&&this._buildTagCounts(),this._tagCounts}getLocalDocuments(){return void 0===this._localFileSummary&&this._buildLocalFileSummary(),this._localFileSummary.getDocuments()}getSoftwareCredits(){return this._reportSet.getSoftwareCredits()}}class ec{constructor(t){this._iv=t,this._viewerOptions=new rn,this._currentItem=null,this._useCalc11=!0}i18nInit(){return je.init({lng:this.preferredLanguages()[0],returnEmptyString:!1,fallbackLng:"en",debug:!1,resources:{en:{translation:n(997),referenceParts:n(343),currencies:n(85)},es:{translation:n(702),referenceParts:n(6),currencies:n(476)}}}).then((t=>{Qi().init(je,e(),{tName:"t",i18nName:"i18n",handleName:"localize",selectorAttr:"data-i18n",targetAttr:"i18n-target",useOptionsAttr:!1,parseDefaultValueFromContent:!0})}))}initialize(t,n){const i=this;return this._viewer=n,new Promise((function(n,r){i._chart=new jl,i._reportSet=t,i.i18nInit().then((r=>{e()(".collapsible-header").on("click",(function(){const t=e()(this).closest(".collapsible-section");t.toggleClass("collapsed"),t.hasClass("collapsed")?t.find(".collapsible-body").slideUp(250):(t.find(".collapsible-body").slideDown(250),t.hasClass("collapsible-only")&&t.siblings(".collapsible-section:not(.collapsed)").each((function(){const t=e()(this);t.addClass("collapsed"),t.find(".collapsible-body").slideUp(250)})))})),e()("#inspector .controls .search-button").on("click",(function(){e()(this).closest("#inspector").removeClass(["summary-mode","outline-mode"]).toggleClass("search-mode")})),e()("#inspector .controls .summary-button").on("click",(function(){e()(this).closest("#inspector").removeClass(["outline-mode","search-mode"]).toggleClass("summary-mode")})),e()("#inspector .controls .outline-button").on("click",(function(){e()(this).closest("#inspector").removeClass(["summary-mode","search-mode"]).toggleClass("outline-mode")})),e()("#inspector-head .back").on("click",(function(){e()(this).closest("#inspector").removeClass(["summary-mode","outline-mode","search-mode"])})),e()(".popup-trigger").on("mouseenter",(function(){e()(this).find(".popup-content").show()})).on("mouseleave",(function(){e()(this).find(".popup-content").hide()})),e()("#inspector").on("click",".clipboard-copy",(function(){navigator.clipboard.writeText(e()(this).data("cb-text"))})),i._toolbarMenu=new El(e()("#toolbar-highlight-menu")),i.buildToolbarHighlightMenu(),i._optionsMenu=new El(e()("#display-options-menu")),i.buildDisplayOptionsMenu(),e()("#ixv").localize(),e()(window).on("message",(t=>i.handleMessage(t))),t.viewerOptions=i._viewerOptions,i.summary=new tc(t),i.createSummary(),i.outline=new Zl(t),i.createOutline(),i._iv.setProgress(je.t("inspector.initializing")).then((()=>{i._search=new qi(t),i.buildDisplayOptionsMenu(),i.buildToolbarHighlightMenu(),i.buildHighlightKey(),i.setupValidationReportIcon(),i.initializeViewer(),n()}))}))}))}initializeViewer(){this._viewer.onSelect.add(((t,e,n)=>this.selectItem(t,e,n))),this._viewer.onMouseEnter.add((t=>this.viewerMouseEnter(t))),this._viewer.onMouseLeave.add((t=>this.viewerMouseLeave(t))),e()(".ixbrl-next-tag").on("click",(()=>this._viewer.selectNextTag(this._currentItem))),e()(".ixbrl-prev-tag").on("click",(()=>this._viewer.selectPrevTag(this._currentItem)))}postLoadAsync(){We(this._search.buildSearchIndex((()=>this.searchReady())))}handleFactDeepLink(){const t=location.hash.match(/^#f([0-9]+)?-(.*)$/);if(null!==t){const e=He(t[1]??0,t[2]);void 0!==this._reportSet.getItemById(e)&&this.selectItem(e)}}handleMessage(t){const e=t.originalEvent.data;let n;try{n=JSON.parse(e)}catch(t){return}if("SHOW_FACT"===n.task){let t=Number(n.docSetId);t||(t=0);const e=He(t,n.factId);this.selectItem(e)}else console.log("Not handling unsupported task message: "+e)}updateURLFragment(){this._currentItem?location.hash="#f"+this._currentItem.vuid.replace(/^0-/,"-"):location.hash=""}buildDisplayOptionsMenu(){if(this._optionsMenu.reset(),this._reportSet){const t=this.selectDefaultLanguage(),e=this._reportSet.availableLanguages(),n=new Intl.DisplayNames(this.preferredLanguages(),{type:"language"});this._optionsMenu.addCheckboxGroup(e,Object.fromEntries(e.map((t=>[t,n.of(t)]))),t,(t=>{this.setLanguage(t),this.update()}),"select-language"),this.setLanguage(t),this._reportSet.filingDocuments()&&this._optionsMenu.addDownloadButton("Download filing documents",this._reportSet.filingDocuments()),this._optionsMenu.addCheckboxItem(je.t("calculation.useCalculations11"),(t=>this.setCalculationMode(t)),"calculation-mode","select-language",this._useCalc11)}this._iv.callPluginMethod("extendDisplayOptionsMenu",this._optionsMenu)}buildToolbarHighlightMenu(){const t=this._iv;this._toolbarMenu.reset(),this._toolbarMenu.addCheckboxItem(je.t("toolbar.xbrlElements"),(t=>this.highlightAllTags(t)),"highlight-tags",null,this._iv.options.highlightTagsOnStartup),t.isReviewModeEnabled()&&(this._toolbarMenu.addCheckboxItem("Untagged Numbers",(function(e){const n=t.viewer.contents().find("body");e?n.addClass("review-highlight-untagged-numbers"):n.removeClass("review-highlight-untagged-numbers")}),"highlight-untagged-numbers","highlight-tags"),this._toolbarMenu.addCheckboxItem("Untagged Dates",(function(e){const n=t.viewer.contents().find("body");e?n.addClass("review-highlight-untagged-dates"):n.removeClass("review-highlight-untagged-dates")}),"highlight-untagged-dates","highlight-untagged-numbers")),this._iv.callPluginMethod("extendToolbarHighlightMenu",this._toolbarMenu)}buildHighlightKey(){let t;e()(".highlight-key .items").empty(),t=this._iv.isReviewModeEnabled()?["XBRL Elements","Untagged Numbers","Untagged Dates"]:this._reportSet.namespaceGroups(),this._iv.callPluginMethod("extendHighlightKey",t);for(const[n,i]of t.entries())e()("<div>").addClass("item").append(e()("<span></span>").addClass("sample").addClass("sample-"+n%3)).append(e()("<span></span>").text(i)).appendTo(e()(".highlight-key .items"))}setCalculationMode(t){this._useCalc11=t,this._currentItem instanceof Ke&&this.updateCalculation(this._currentItem)}highlightAllTags(t){this._viewer.highlightAllTags(t,this._reportSet.namespaceGroups())}factListRow(t){const n=e()('<div class="fact-list-item"></div>').on("click",(()=>this.selectItem(t.vuid))).on("dblclick",(()=>e()("#inspector").removeClass("search-mode"))).on("mousedown",(t=>{t.detail>1&&t.preventDefault()})).on("mouseenter",(()=>this._viewer.linkedHighlightFact(t))).on("mouseleave",(()=>this._viewer.clearLinkedHighlightFact(t))).data("ivid",t.vuid);e()('<div class="select-icon"></div>').on("click",(()=>{this.selectItem(t.vuid),e()("#inspector").removeClass("search-mode")})).appendTo(n),e()('<div class="title"></div>').text(t.getLabelOrName("std")).appendTo(n),e()('<div class="dimension"></div>').text(t.period().toString()).appendTo(n);for(const i of t.aspects())i.isTaxonomyDefined()&&!i.isNil()&&e()('<div class="dimension"></div>').text(i.valueLabel()).appendTo(n);const i=e()("<div></div>").addClass("tags").appendTo(n);return null!==t.targetDocument()&&e()('<div class="hidden"></div>').text(t.targetDocument()).appendTo(i),t.isHidden()?e()('<div class="hidden"></div>').text(je.t("search.hiddenFact")).appendTo(i):t.isHTMLHidden()&&e()('<div class="hidden"></div>').text(je.t("search.concealedFact")).appendTo(i),n}addResults(t,n,i){e()(".more-results",t).remove();for(var r=i;r<n.length;r++){if(r-i>=100){e()('<div class="more-results"></div>').text(je.t("search.showMoreResults")).on("click",(()=>this.addResults(t,n,r))).appendTo(t);break}this.factListRow(n[r].fact).appendTo(t)}}searchSpec(){const t={};return t.searchString=e()("#ixbrl-search").val(),t.showVisibleFacts=e()("#search-visible-fact-filter").prop("checked"),t.showHiddenFacts=e()("#search-hidden-fact-filter").prop("checked"),t.namespacesFilter=e()("#search-filter-namespaces select").val(),t.unitsFilter=e()("#search-filter-units select").val(),t.scalesFilter=e()("#search-filter-scales select").val(),t.periodFilter=e()("#search-filter-period select").val(),t.conceptTypeFilter=e()("#search-filter-concept-type").val(),t.factValueFilter=e()("#search-filter-fact-value").val(),t.calculationsFilter=e()("#search-filter-calculations select").val(),t.dimensionTypeFilter=e()("#search-filter-dimension-type select").val(),t.targetDocumentFilter=e()("#search-filter-target-document select").val(),t}setupSearchControls(t){const n=this;e()(".search-controls input, .search-controls select").on("change",(()=>this.search())),e()(".search-controls div.filter-toggle").on("click",(()=>e()(".search-controls").toggleClass("show-filters"))),e()(".search-controls .search-filters .reset").on("click",(()=>this.resetSearchFilters())),e()(".search-controls .search-filters .reset-multiselect").on("click",(function(){e()(this).siblings().children("select option:selected").prop("selected",!1),n.search()}));for(const t of Object.keys(this._search.periods))e()("<option>").attr("value",t).text(this._search.periods[t]).appendTo("#search-filter-period select");for(const t of this._reportSet.getUsedConceptPrefixes())e()("<option>").attr("value",t).text(`${t} (${this._reportSet.prefixMap()[t]})`).appendTo("#search-filter-namespaces select");const i=Array.from(this._reportSet.getTargetDocuments());if(1==i.length&&null==i[0])e()("#search-filter-target-document").hide();else for(const t of i)e()("<option>").attr("value",t??":default").text(t??`<${je.t("search.default")}>`).appendTo("#search-filter-target-document select");for(const t of this._reportSet.getUsedUnits())e()("<option>").attr("value",t).text(`${this._reportSet.getUnit(t)?.label()} (${t})`).appendTo("#search-filter-units select");const r=this._getScalesOptions();for(const t of Object.keys(r).sort())e()("<option>").attr("value",t).text(r[t]).appendTo("#search-filter-scales select")}_getScalesOptions(){const t={},e=this._reportSet.getUsedScalesMap();return Object.keys(e).sort().forEach((n=>{const i=Array.from(e[n]).sort();i.length>0?t[n]=i.join(", "):t[n]=n.toString()})),t}resetSearchFilters(){e()("#search-filter-period select option:selected").prop("selected",!1),e()("#search-filter-concept-type").val("*"),e()("#search-filter-fact-value").val("*"),e()("#search-filter-calculations select option:selected").prop("selected",!1),e()("#search-filter-dimension-type select option:selected").prop("selected",!1),e()("#search-hidden-fact-filter").prop("checked",!0),e()("#search-visible-fact-filter").prop("checked",!0),e()("#search-filter-namespaces select option:selected").prop("selected",!1),e()("#search-filter-target-document select option:selected").prop("selected",!1),e()("#search-filter-units select option:selected").prop("selected",!1),e()("#search-filter-scales select option:selected").prop("selected",!1),this.search()}searchReady(){this.setupSearchControls(),e()("#inspector").addClass("search-ready"),e()("#ixbrl-search").prop("disabled",!1),this.search()}search(){const t=this.searchSpec(),n=this._search.search(t);if(void 0===n)return;const i=e()("#inspector .search-results .results");e()("div",i).remove(),this._viewer.clearRelatedHighlighting();const r=e()("#inspector .search-results .search-overlay");n.length>0?(r.hide(),this.addResults(i,n,0)):(e()(".title",r).text(je.t("search.noMatchFound")),e()(".text",r).text(je.t("search.tryAgainDifferentKeywords")),r.show()),e()("#matching-facts-count").text(n.length),""!=t.searchString&&this._viewer.highlightRelatedFacts(n.map((t=>t.fact))),this.updateMultiSelectSubheader("search-filter-scales"),this.updateMultiSelectSubheader("search-filter-units"),this.updateMultiSelectSubheader("search-filter-namespaces"),this.updateMultiSelectSubheader("search-filter-target-document"),this.updateMultiSelectSubheader("search-filter-dimension-type"),this.updateMultiSelectSubheader("search-filter-calculations"),this.updateMultiSelectSubheader("search-filter-period")}updateMultiSelectSubheader(t){const n=e()(`#${t} .collapsible-subheader`),i=e()(`#${t} select option:selected`);if(1===i.length)n.text(` ${i.text()}`);else if(i.length>0){const r=e()(`#${t} select option`).length;n.text(` (${i.length}/${r} ${je.t("search.selected")})`)}else n.empty()}updateCalculation(t,n){e()(".calculations .tree").empty().append(this._calculationHTML(t))}createSummary(){const t=e()("#inspector .summary .body");this._populateFactSummary(t),this._populateTagSummary(t),this._populateFileSummary(t),this._populateReportCreation(t)}_populateFactSummary(t){const n=this.summary.totalFacts();e()("<span></span>").text(n).appendTo(t.find(".total-facts-value"))}_populateTagSummary(t){const n=t.find(".tag-summary-table-body"),i=this.summary.tagCounts();let r=0,s=0,o=0,a=0;for(const t of i.values())r+=t[Xl],s+=t[Ql],o+=t[Jl],a+=t[ql];function l(t,n,i){let r=0;i>0&&(r=n/i);let s=r.toLocaleString(void 0,{style:"percent"});s=` (${s})`,e()("<td></td>").text(n).addClass("figure").append(e()("<sup></sup>").text(s)).appendTo(t)}const c=[...i.entries()].sort(((t,e)=>t[0].localeCompare(e[0])));for(const[t,i]of c){const c=e()("<tr></tr>").appendTo(n);c.append(e()("<th></th>").attr("scope","row").text(t)),l(c,i[Xl],r),l(c,i[Ql],s),l(c,i[Jl],o),l(c,i[ql],a)}const u=t.find(".tag-summary-table-footer-row");l(u,r,r),l(u,s,s),l(u,o,o),l(u,a,a)}_populateFileSummary(t){const{inline:n,schema:i,calcLinkbase:r,defLinkbase:s,labelLinkbase:o,presLinkbase:a,refLinkbase:l,unrecognizedLinkbase:c}=this.summary.getLocalDocuments(),u=t.find(".files-summary");let d=0;function h(t,n){if(0===t.length)u.find(n).hide();else{const i=u.find(n+" ul");d+=1;for(const n of t)i.append(e()("<li></li>").text(n))}}h(n,".inline-docs"),h(i,".schemas"),h(a,".pres-links"),h(r,".calc-links"),h(s,".def-links"),h(o,".label-links"),h(l,".ref-links"),h(c,".other-links"),0==d&&u.hide()}_populateReportCreation(t){const n=this.summary.getSoftwareCredits(),i=t.find(".report-creation");if(n.length>0){const t=i.find("ul");for(const i of n)t.append(e()("<li></li>").text(i))}else i.hide()}createOutline(){if(this.outline.hasOutline()){e()(".outline .no-outline-overlay").hide();const t=e()('<div class="fact-list"></div>').appendTo(e()(".outline .body"));for(const n of this.outline.sortedSections())e()('<div class="fact-list-item"></div>').text(n.report.getRoleLabel(n.elr)).on("click",(()=>this.selectItem(n.fact.vuid))).on("dblclick",(()=>e()("#inspector").removeClass("outline-mode"))).on("mousedown",(t=>{t.detail>1&&t.preventDefault()})).appendTo(t)}}updateOutline(t){e()(".fact-groups").empty();for(const n of this.outline.groupsForFact(t))e()('<div class="fact-list-item"></div>').text(t.report.getRoleLabel(n.elr)).on("click",(()=>this.selectItem(n.fact.vuid))).appendTo(e()(".fact-groups"))}updateFootnotes(t){e()(".footnotes").empty().append(this._footnotesHTML(t)),t.linkedFacts.length>0?e()("#inspector .footnote-facts-section").show().find(".footnote-facts").empty().append(this._footnoteFactsHTML(t)):e()("#inspector .footnote-facts-section").hide()}_anchorList(t,n){const i=e()("<ul></ul>");if(n.length>0)for(const r of n){const n=t.report.getAlignedFacts(t,{c:r}),s=t.report.getLabel(r,"std",!0);e()("<li></li>").appendTo(i).append(this.factLinkHTML(s,n))}else e()("<li></li>").append(e()("<i></i>").text(je.t("common.none"))).appendTo(i);return i}updateAnchoring(t){this._reportSet.usesAnchoring()?(e()(".anchoring").show(),e()(".anchoring .collapsible-body .anchors-wider").empty().append(this._anchorList(t,t.widerConcepts())),e()(".anchoring .collapsible-body .anchors-narrower").empty().append(this._anchorList(t,t.narrowerConcepts()))):e()(".anchoring").hide()}_referencesHTML(t){const n=new zl;for(const[i,r]of t.concept().references().entries()){const t=e()("<span></span>").text(r[0].value),s=e()('<table class="fact-properties"><tbody></tbody></table>'),o=s.find("tbody");for(const t of r){const n=e()("<tr>").append(e()("<th></th>").text(je.t(`referenceParts:${t.part}`,{defaultValue:t.part}))).append(e()("<td></td>").text(t.value)).appendTo(o);"URI"==t.part&&(n.addClass("uri"),n.find("td").wrapInner(e()("<a>").attr("href",t.value)))}n.addCard(t,s,0==i)}return n.contents()}_calculationHTML(t,n){const i=new Yl(t,this._useCalc11);if(!i.hasCalculations())return"";const r=this._viewer.factsInSameTable(t),s=i.bestELRForFactSet(r),o=t.report,a=new zl;for(const n of i.resolvedCalculations()){const i=o.getRoleLabel(n.elr),r=e()("<div></div>"),l=e()("<table></table>").addClass("calculation-table").appendTo(r);for(const t of n.rows){const n=e()("<tr></tr>").addClass("item").append(e()("<td></td>").addClass("weight").text(t.weightSign+" ")).append(e()("<td></td>").addClass("concept-name").text(t.concept.label())).append(e()("<td></td>").addClass("value")).appendTo(l);t.facts.isEmpty()||(n.addClass("calc-fact-link"),n.addClass("calc-fact-link"),n.data("ivids",t.facts.items().map((t=>t.vuid))),n.on("click",(()=>this.selectItem(t.facts.items()[0].vuid))),n.on("mouseenter",(()=>t.facts.items().forEach((t=>this._viewer.linkedHighlightFact(t))))),n.on("mouseleave",(()=>t.facts.items().forEach((t=>this._viewer.clearLinkedHighlightFact(t))))),t.facts.items().forEach((t=>this._viewer.highlightRelatedFact(t))),n.find(".value").text(t.facts.mostPrecise().readableValue()))}e()("<tr></tr>").addClass("item").addClass("total").append(e()("<td></td>").addClass("weight")).append(e()("<td></td>").addClass("concept-name").text(t.concept().label())).append(e()("<td></td>").addClass("value").text(t.readableValue())).appendTo(l);const c=e()("<span></span>"),u=e()("<span></span>").append(c).append(e()("<span></span>").text(i)),d=e()("<span></span>"),h=e()("<span></span>").addClass("calculation-details-link").attr("title",je.t("factDetails.viewCalculationDetails")).text("details").on("click",(t=>{const e=new Vl;e.displayCalculation(n),e.show(),t.stopPropagation()}));e()("<p></p>").append(d).append(e()("<span></span>").text(" (")).append(h).append(e()("<span></span>").text(")")).appendTo(r),n.binds()?n.isConsistent()?(c.addClass("consistent-flag").attr("title",je.t("factDetails.calculationIsConsistent")),d.text(je.t("factDetails.calculationIsConsistent"))):(c.addClass("inconsistent-flag").attr("title",je.t("factDetails.calculationIsInconsistent")),d.text(je.t("factDetails.calculationIsInconsistent"))):n.unchecked()&&(c.addClass("unchecked-flag").attr("title",je.t("factDetails.calculationUnchecked")),n.uncheckedDueToVersionMismatch()?d.text(je.t("factDetails.calculationUncheckedIncorrectVersion")):d.text(je.t("factDetails.calculationUnchecked"))),a.addCard(u,r,n.elr==s)}return a.contents()}_footnotesHTML(t){const n=e()("<div></div>").addClass("fact-list");for(const i of t.footnotes())i instanceof tn?e()("<div></div>").addClass("block-list-item").text(Ye(i.textContent(),120)).on("mouseenter",(()=>this._viewer.linkedHighlightFact(i))).on("mouseleave",(()=>this._viewer.clearLinkedHighlightFact(i))).on("click",(()=>this.selectItem(i.vuid))).appendTo(n):i instanceof Ke&&n.append(this.factListRow(i));return n}viewerMouseEnter(t){e()(".calculations .item").filter(((n,i)=>(e()(i).data("ivids")??[]).includes(t))).addClass("linked-highlight"),e()("#inspector .search .results tr").filter(((n,i)=>e()(i).data("ivid")==t)).addClass("linked-highlight")}viewerMouseLeave(t){e()(".calculations .item").removeClass("linked-highlight"),e()("#inspector .search .results tr").removeClass("linked-highlight")}describeChange(t,e){if(e.value()>0==t.value()>0&&Math.abs(t.value())+Math.abs(e.value())>0){const n=100*(e.value()-t.value())/t.value();let i=0;return i=n>=0?je.t("factDetails.changePercentageIncrease",{increase:Pe(n,1)}):je.t("factDetails.changePercentageDecrease",{decrease:Pe(-1*n,1)}),i}return je.t("factDetails.changeFromIn",{from:t.readableValue()})}factLinkHTML(t,n){const i=e()("<span></span>").text(t);return n.length>0&&i.addClass("fact-link").on("click",(()=>this.selectItem(n[0].vuid))).on("mouseenter",(()=>n.forEach((t=>this._viewer.linkedHighlightFact(t))))).on("mouseleave",(()=>n.forEach((t=>this._viewer.clearLinkedHighlightFact(t))))),i}getPeriodIncrease(t){let n="";if(t.isNumeric()){const r=t.report.getAlignedFacts(t,{p:null});var i;if(t.periodTo())for(const e of r)e.periodTo()&&e.periodTo()<t.periodTo()&&(!i||e.periodTo()>i.periodTo())&&t.isEquivalentDuration(e)&&(i=e);if(i){const r=t.report.getAlignedFacts(i);n=e()("<span></span>").text(this.describeChange(i,t)).append(this.factLinkHTML(i.periodString(),r))}else n=e()("<i>").text(je.t("factDetails.noPriorFactInThisReport"))}else n=e()("<i>").text("n/a").attr("title",je.t("factDetails.nonNumericFact"));e()(".fact-properties tr.change td").html(n)}_updateValue(t,n,i){const r=t.readableValue(),s=e()("tr.value",i);let o=r;if(n)s.removeClass("truncated");else{const e=Re(r,120);e.length>1?(s.addClass("truncated"),s.find(".show-all").off("click").on("click",(()=>this._updateValue(t,!0,i)))):s.removeClass("truncated"),o=e[0]}Rl.canRender(t)?s.addClass("text-block").find(".expand-text-block").off().on("click",(()=>this.showTextBlock(t))):s.removeClass("text-block");const a=s.find("td .value").empty().text(o);t instanceof Ke&&(t.isNil()||t.isInvalidIXValue())&&a.wrapInner("<i></i>")}showTextBlock(t){const e=new Rl(t);e.displayTextBlock(),e.show()}_updateEntityIdentifier(t,n){e()("tr.entity-identifier td",n).empty().append(Qe.readableNameHTML(t.identifier()))}_footnoteFactsHTML(t){const n=e()("<div></div>");return t.linkedFacts.forEach((t=>{n.append(this.factListRow(t))})),n}_selectionSummaryAccordian(){const t=this._currentItem,i=new zl({onSelect:t=>this.switchItem(t),alwaysOpen:!0,dissolveSingle:!0}),r=new Fl(this._currentItemList);for(const s of this._currentItemList){let o;const a=r.minimallyUniqueLabel(s);if(s instanceof Ke){o=e()(n(793)),e()(".std-label",o).text(s.getLabelOrName("std",!0)),e()(".documentation",o).text(s.getLabel("doc")||""),e()("tr.concept td",o).find(".text").text(s.conceptName()).attr("title",s.conceptName()).end().find(".clipboard-copy").data("cb-text",s.conceptName()).end(),e()("tr.period td",o).text(s.periodString()),s.isNumeric()&&e()("tr.period td",o).append(e()("<span></span>").addClass("analyse").text("").on("click",(()=>this.analyseDimension(s,["p"])))),this._updateEntityIdentifier(s,o),this._updateValue(s,!1,o);const t=e()("tr.accuracy td",o).empty().append(s.readableAccuracy());s.isNumeric()&&!s.isNil()||t.wrapInner("<i></i>");const i=e()("tr.scale td",o).empty().append(s.readableScale());s.isNumeric()&&!s.isNil()||i.wrapInner("<i></i>"),e()("#dimensions",o).empty();const r=s.aspects().filter((t=>t.isTaxonomyDefined()));0===r.length&&e()("#dimensions-label",o).hide();for(const t of r){const n=e()('<div class="dimension"></div>').text(t.label()||t.name()).appendTo(e()("#dimensions",o));s.isNumeric()&&n.append(e()("<span></span>").addClass("analyse").text("").on("click",(()=>this.analyseDimension(s,[t.name()]))));const i=e()('<div class="dimension-value"></div>').text(t.valueLabel()).appendTo(n);t.isNil()&&i.wrapInner("<i></i>")}}else s instanceof tn&&(o=e()(n(643)),this._updateValue(s,!1,o));i.addCard(a,o,s.vuid==t.vuid,s.vuid)}return i}analyseDimension(t,e){(new jl).analyseDimension(t,e)}update(){const t=this._currentItem;if(t){if(e()("#inspector").removeClass("no-fact-selected").removeClass("hidden-fact").removeClass("html-hidden-fact"),e()("#inspector .fact-inspector").empty().append(this._selectionSummaryAccordian().contents()),t instanceof Ke){e()("#inspector").removeClass("footnote-mode"),this.updateCalculation(t),this.updateOutline(t),this.updateFootnotes(t),this.updateAnchoring(t),e()("div.references").empty().append(this._referencesHTML(t)),e()("#inspector .search-results .fact-list-item").removeClass("selected"),e()("#inspector .search-results .fact-list-item").filter(((n,i)=>e()(i).data("ivid")==t.vuid)).addClass("selected");const i=t.duplicates();let r=0;const s=i.length;for(var n=0;n<s;n++)t.vuid==i[n].vuid&&(r=n);e()(".duplicates .text").text(je.t("factDetails.duplicatesCount",{current:r+1,total:s})),e()(".duplicates .prev").off().on("click",(()=>this.selectItem(i[(r+s-1)%s].vuid))),e()(".duplicates .next").off().on("click",(()=>this.selectItem(i[(r+1)%s].vuid))),this.getPeriodIncrease(t),t.isHidden()?e()("#inspector").addClass("hidden-fact"):t.isHTMLHidden()&&e()("#inspector").addClass("html-hidden-fact");const o=t.targetDocument();null!==o?e()("#inspector .target-document-tag").text(o).show():e()("#inspector .target-document-tag").hide()}else t instanceof tn&&(e()("#inspector").addClass("footnote-mode"),e()("#inspector .footnote-details .footnote-facts").empty().append(this._footnoteFactsHTML(t)));e()(".fact-details").localize()}else e()("#inspector").removeClass("footnote-mode"),e()("#inspector").addClass("no-fact-selected");this.updateURLFragment()}selectItem(t,e,n){if(void 0===e)this._currentItemList=[this._reportSet.getItemById(t)];else{this._currentItemList=[];for(const t of e)this._currentItemList.push(this._reportSet.getItemById(t))}this.switchItem(t,n)}switchItem(t,e){null!==t?(this._currentItem=this._reportSet.getItemById(t),e||this._viewer.showItemById(t),this._viewer.highlightItem(t)):(this._currentItem=null,this._viewer.clearHighlighting()),this.update()}preferredLanguages(){const t=new URLSearchParams(window.location.search);if(t.has("lang"))return[t.get("lang")];const e=window.navigator.languages||[window.navigator.language||window.navigator.userLanguage];return 0!=e.length&&e[0]?e:["en"]}selectDefaultLanguage(){const t=this._reportSet.availableLanguages();for(const e of this.preferredLanguages())for(const n of t)if(n.toLowerCase()==e.toLowerCase())return n;return this._reportSet.availableLanguages()[0]}setLanguage(t){this._viewerOptions.language=t}showValidationReport(){const t=new Pl;t.displayErrors(this._reportSet.validation()),t.show()}setupValidationReportIcon(){this._reportSet.hasValidationErrors()&&e()("#ixv .validation-warning").show().on("click",(()=>this.showValidationReport()))}showValidationWarning(){if(this._reportSet.hasValidationErrors()){const t=e()("<div></div>").append("<p>This report contains <b>XBRL validation errors</b>. These errors may prevent this document from opening correctly in other XBRL software.</p>");new Wi("Validation errors",t,"View Details","Dismiss").show((()=>this.showValidationReport()))}}}class nc{constructor(t){this._features=new Set,this._plugins=[],this.inspector=new ec(this),this.viewer=null,t=t||{},this.options={continuationElementLimit:1e4,showValidationWarningOnStart:!1,...t}}registerPlugin(t){this._plugins.push(t)}callPluginMethod(t,...e){for(const n of this._plugins)"function"==typeof n[t]&&n[t](...e)}pluginPromise(t,...e){return new Promise(((n,i)=>{(async()=>{for(const n of this._plugins)"function"==typeof n[t]&&await n[t](...e)})().then((()=>{n()}))}))}setFeatures(t,e){const n={};t.forEach((t=>{n[t]=!0})),new URLSearchParams(e).forEach(((t,e)=>{!1!==n[e]&&(n[e]="false"!==t)})),this._features.size>0&&(this._features=new Set);for(const[t,e]of Object.entries(n))e&&this._features.add(t)}isFeatureEnabled(t){return this._features.has(t)}isReviewModeEnabled(){return this.isFeatureEnabled("review")}isViewerEnabled(){return"false"===(new URLSearchParams(window.location.search).get("disable-viewer")??"false")}_loadInspectorHTML(){e()(n(87)).prependTo("body");const t=n(864).toString();e()('<style id="ixv-style"></style>').prop("type","text/css").text(t).appendTo("head"),e()('<link id="ixv-favicon" type="image/x-icon" rel="shortcut icon" />').attr("href",n(285)).appendTo("head");try{e()(".inspector-foot .version").text("1.4.37")}catch(t){}}_reparentDocument(){const t=e()("#ixv #iframe-container"),n=e()('<iframe title="iXBRL document view"/>').data("report-index",0).appendTo(t)[0],i=n.contentDocument||n.contentWindow.document;i.open(),i.write("<!DOCTYPE html><html><head><title></title></head><body></body></html>"),i.close();let r=e()("title").text();r=""!=r?"Inline Viewer - "+r:"Inline Viewer",void 0===e()("html").attr("lang")&&e()("html").attr("lang","en-US"),e()("head").children().not("script").not("style#ixv-style").not("link#ixv-favicon").appendTo(e()(n).contents().find("head")),e()("<title>").text(r).appendTo(e()("head")),e()("body script").appendTo(e()("body"));const s=e()(n).contents().find("body");e()("body").children().not("script").not("#ixv").not(t).appendTo(s);for(const t of[...e()("body").prop("attributes")])s.attr(t.name,t.value),e()("body").removeAttr(t.name);return e()("body").removeAttr("style"),n}_getTaxonomyData(){for(let t=document.body.children.length-1;t>=0;t--){const e=document.body.children[t];if("SCRIPT"==e.tagName.toUpperCase()&&"application/x.ixbrl-viewer+json"==e.getAttribute("type"))return e.innerHTML}return null}_checkDocumentSetBrowserSupport(){"file:"==document.location.protocol&&alert("Displaying iXBRL document sets from local files is not supported. Please view the viewer files using a web server.")}load(){const t=this,n=this.inspector;setTimeout((function(){const i=e()("body").hasClass("ixv-stub-viewer");if(!t.isViewerEnabled()&&!i)return;t._loadInspectorHTML();let s=e()();const o=t._getTaxonomyData(),a=o&&JSON.parse(o);t.setFeatures(a&&a.features||[],window.location.search);const l=new sn(a);if(!t.isViewerEnabled())return void window.location.replace(l.reportFiles()[0].file);if(null===a)return e()("#ixv .loader .text").text("Error: Could not find viewer data"),void e()("#ixv .loader").removeClass("loading");i||(s=e()(t._reparentDocument()));const c=l.reportFiles();let u=!1;for(let t=i?0:1;t<c.length;t++){const n=e()("<iframe />").attr("src",c[t].file).data("report-index",c[t].index).appendTo("#ixv #iframe-container");s=s.add(n),u=!0}u&&t._checkDocumentSetBrowserSupport();const d=i?"Loading iXBRL Report":"Loading iXBRL Viewer";t.setProgress(d).then((()=>{let i=setInterval((function(){let o=!0;if(s.each((function(t){const n=this,i=n.contentDocument||n.contentWindow.document;("complete"!=i.readyState&&"interactive"!=i.readyState||0==e()(n).contents().find("body").children().length)&&(o=!1)})),o){clearInterval(i);const o=t.viewer=new Zi(t,s,l);o.initialize().then((()=>n.initialize(l,o))).then((()=>{r()("#viewer-pane").resizable({edges:{left:!1,right:".resize",bottom:!1,top:!1},restrictEdges:{outer:"parent",endOnly:!0},restrictSize:{min:{width:100}}}).on("resizestart",(()=>e()("#ixv").css("pointer-events","none"))).on("resizemove",(t=>{const n=t.target,i=100*t.rect.width/e()(n).parent().width();n.style.width=i+"%",e()("#inspector").css("width",100-i+"%")})).on("resizeend",(t=>e()("#ixv").css("pointer-events","auto"))),e()("#ixv .loader").remove(),n.handleFactDeepLink(),t.options.showValidationWarningOnStart&&n.showValidationWarning(),o.postLoadAsync(),n.postLoadAsync()})).catch((t=>{if(!(t instanceof Hi))throw t;e()("#ixv .loader").remove(),e()("#inspector").addClass("failed-to-load")}))}}),250)}))}),0)}setProgress(t){return new Promise(((n,i)=>{window.requestAnimationFrame((function(){console.log(`%c [Progress] ${t} `,"background: #77d1c8; color: black;"),e()("#ixv .loader .text").text(t),window.requestAnimationFrame((()=>n()))}))}))}}e()((()=>{new nc({showValidationWarningOnStart:!0}).load()}))})()})();
2
+ (()=>{var t={987:t=>{t.exports="data:font/woff;charset=utf-8;base64,d09GRgABAAAAABAYAAsAAAAAHtAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAZwAAALqP5ZCZE9TLzIAAAKkAAAAQQAAAGBW70wtY21hcAAAAugAAAGHAAAEbsdhAF1nbHlmAAAEcAAACHYAABCUIGCWk2hlYWQAAAzoAAAAJwAAADZjKUTdaGhlYQAADRAAAAAZAAAAJAgLBEtobXR4AAANLAAAAB4AAADYcRgAAGxvY2EAAA1MAAAARQAAAG6fzJwobWF4cAAADZQAAAAdAAAAIAFKAKJuYW1lAAANtAAAATAAAAI6/H8bLXBvc3QAAA7kAAABMwAAAcJ4jnoReJxlkksyA2EUhU83ISLxCILQHXnodELSBFMjZZShBciEUqWMLMDAIqzCGgwswcACLMASfPdGqjy6q/q/j3PPvff8rUBSQQc6VXh2PrzQwu3o/k5VTWv8WP6nHdzeXI+Un3jkpv3MKwgfVVSsoS51r1e9BS/BZxiG5fA8vFOoGW2DK4CIVdOO6mr42SSX/xFtadd5VzWLnaqtHpiux7aJRSCbHutrisousy9oicgAu6kMq8ZZd3+gQ76xSpr7h1ikejxBmzNiHuuxphx440+ZtkLNUFd60JOe2epdH2xSUgemPZ/ZOhm+TyylvvgnN9ky9y/TxtunJk+mRzTxSJ3TEBnvnOZ/ZVK8hNuaYrKIWIJCbawUfIw2hT8dTMsCLKbhLkrUXL0GrDnfOQNdhK32rWUM0yYVXZ1g1akwlHXcYrNx7yrICLxptYQWPTCpa2yRZVcvolvHGTeo2fSbHPBa92OtU9V1OwG14Z7tl8Bj/0lVK8zcct6eb239yo6b3Kf1qsDfwsscZxsHbBO53g0mML59KjOqjr4AE181SXicY2BhkmCcwMDKwMA0jekMAwNDP4RmfM1gxMgBFGVgZWbACgLSXFMYDjDEv5JlAXFjWGIYFIA0I4oiAQAn9wm3AAAAeJy101lS21AQheFftjFgzDwaPOF5ABvbONtxkRGKzDM7yQKyoDxlEdoEOe3uBeSFq/p0pC5JLdXVBVaArFxIDpK/JNj4o2qyrGcpLOs5fuu8wBoZbQvueEgrj4+qLbjhPk2Wxz4SXVfglGc6PqfChA4NBnraiD6XXNFlSpMabWZUGdOjxZA6c651d0Zdc3q3PKvqt65nbVBkky222WGXPfY54JAjjjmhpE4lziircZ6nHvqeSacxuBj19R3dabPWnlXHvdawPr9+8t7/N4q2y/yKM5uDRTiXm1CR52EiL0JHXoaGvAoDeR3sb3kTRnIb+nIXLuU+XMnb0JV3YSrvQ1M+hJp8DG35FGbyOVTlSxjL19CTb6El38NQfoS6/AxzeQiawTRx9venGYdl1tlqSXPOVky64mwlpXmH5arDcs1hue6wLDhbYemGw7LobCbTTYfllsNy22G547DcdVjuOSz3HZYHDstDh+WRw/LYYXnisCw5LE8dlmduWS87rFZxlP8BfxlqVAB4nM1XTWwb1xF+8x65S1K7JJdLkSZVi9xdcZchXUrmr2S58spO7UoybCWobdmtYaeum9QHwWlVoDl5DzUMOLcGOhQJEiNBi8I6tD340KZAWTcXswbiAm1zSFH70kORU3MLYK477/FHkmtF7akhd2fez8y+2fdmvpklQPBHO6xNJEJgBGpaTaOdR4/aLrR9DzxKfC5BdpajLni+5xMq5CKcsJsoFyN5MkVcskwukqvEIz8i66hZTY1qSckyTLuh1Zu1gmFKOJCqGdUmDtgWWKb9Fag3Z1FyLySl2i794P8oD8ao4Yz2FsRx2+IGsEjWtrM+4ZS/cGNpqUEF9edptlDIcvKzZ7T873z+9GW+NW5hDLyxQmHMR8o8O9v1xEJI3aVG1xOrIe22e1o7kV2mqet5YhlBhmfGFPoLomLHsevNag5azWoqKdPIZ+HEWPj+/XBWD4P3WXgswTs4NDzrXzMq9IRCDNKppGQ6cHOLKCVbHjLUu9nXkyXTrh/qLZumu+qhnZ7QEwtN9tRbm3aiNn3KTsb1ApEAIXFikgr3rnGajFKzQutztGVGaXKcVudovUIt3ZEdOS2nW+mWQyPn33vt2LHX3vtNj52/8v7ry8uvv//nHrtyv/L225V33hGUtTflOHM35Tjzh4JIyX/YVPxcm5jTSkN6N2sO//3sdQif3cWQbv7RuRugnuPLS8KQRYxBRmQyQgxSJvOEFIzG8K9bFTAl2doefWwQmVyGx0wFkGHIJiW5hox2fA4L/Tt/aWRlbWXkUnF6ukgJ0pCu+kTVqdtt6+rdUGTy8GQkdFfV2y7/gdtaWGhNF7ueUEDazau6rtK8izyyJ2pMThrRPRFd3fTdCG6nIXywbpsx9CVTSubQNZLpcag2D4FgOOnQViesZyP37kXQpTqdcDioKErw3j3Bwuhxg4m+UCQQDAY6HU6xw91WrNfGPashZhFo1ifBdlq2I9vYwLUl2ZHktIQNtCCVllPpVgob1UPQbKWbLafZCpoVqM/heUMyCuy3gcANJfVCYWrVLo0aTWO0ZK9OFV5IKTd2mvD/2Fip1Va+ywl88F+pbJ1Yra+8wlVfWakP3+cOW0ccTuH7PIWzOj9pzWAXuqcnqtUJehupnEkgipfZetXqnrKqVYtuWNUu0TK0RNCPyJNH7C/MIwnikIPkRfIy+SF5HZ+McC5DFEzbAbvZgjlAUJ/hzoWDaRAHhIONAo7wrRMDczCJvmXtl7cO7n/m6GDwqTiS5Gj/9OfA4fNsIyT5k1JMi0v+nxRQ4CNZDXH4je9V/OeykIGKmjfGVXigRn0SkAOS9ICFQiEmgfxhIBT4ZkBm8nCIN4LPGKLRUFyRZAWXESwcz6kZ2INPzikZmlHzcXbKfzeENsxJEm7BlGqp8IEklRXFn91zLON/qKqKAneVvPY9xqSE9NcAE/wjxs4OGjsOwIKsxLWYIklqLIEMn5o5luFPzBzNqiJuaA9/RJ7GmAdrDCzNKpShwjDYZce2ehA0y3cNgxvDGnMCHhpuLzbGAWM9hj0MOItG2qIQcIFK+49/a/r4NSelKI3zR4vFo+cbucriy6+eDGmRUjr37Zny8Vk7KB+qL8xPVXLLV68u49a3UZO4zfNfLS4cDADqXEHVw8HVpZOvUipPTLXGmwulAwBL9f1fCx6+euvqMO653+Lr6KPoA3uhhXa2oHEBD9y4bYxDmq17/u/GT5a6p35eOjkO814fd1mnj3mo28JEn8EyRUeM1YxF5j32XLeNJnVdz+U9hjVL28O+N8RtsW4c65b9aMjQ2XBn9N3KFvrQOHBi5cQBo8+8RCaT6J7mlN7eEmMT8Mm+EwdMk0vNmObMCfg6yp3SMhmNbiQypa2hRwLDWkohX0KrvtyPY0Prrfp0UAcxorcJsEXfHStQggWB/w/exEqkzTsFjuDUHc6yNlYnpDf7BPmmLMpQb3OShLft8wiii07SZIzkiIXnVdOsUbw5l/tc3HgWWv9ezOPv4pbL4/licLP2E+I+QS8YMn4z3uEXIUGx/u9x/Qyu6GCFeZBjUB0hwDCjMKpt3xKs/LCJh4cboxlykhcVmNDAEA6Oe5VMMc+ctXxizZq8KmO8COyKOjBrdz3a7vLVC80CXn4eXJ6x/DZSaIOHOlwXS7ononYEpCCKO597P+GVGGrCT/WsjpcITWH/Q7R/L7HJNFlE6zEu03Mg0myMg+ZorcGzCoIm2qgPbGZbAbDW2FZJ0MjzR0fy8apr6UoplYILobFEYnT8xSNlu1EoNOzyyltrR46svfXLHlt5acNbWPA27vbYS/STkrIYS6VTsWQoFy8a5fjY3qSml/ZVTwhPaNg2XT6y9uav3uTqgpUXr238YePaYp9tyTc5Hj0FgfloWs/MGk8CrQFcQy+oei/TYBvgf5qzamfWrq+dqSE73LpUxG1AjItLCkQeP9y3dPn7l5f29dl1APW5S80ja2eqVdT5wemalfM/hWBQkhRDgQcHNkWRzQz3vMPcvs9m0VPREwd/nsHK0FChUeNOs8iThvA85MzV1VscyG4VpykHEBfDwb+FNQ0i43QRLvJHB/vP98Q3zz481ecRf/pQYfShIziAikHQ6lt8ML1DuzP4UOAfDVR8KfS+Fy5CW3ii8Mcd2u2eE/c+bNzhFw1SSnoO6W1jPMf3ffOLmuPvfEFy/Pr/Ncf3cuQbzOSeFwZHDgOb8WfvnIMYzTHTP3jnG/6/aK7v9//E89TJBGaPGfH9nYZUlKJ7Vag4yAY/RUkApiMOYQg4Dd7gPswr/wiLBuCNAAuEI4//FgkHWBB+HIgyzQj7qwnHZhO2k/BXw/lEOTORGV5sPRB6/HFIlcJhSQ0zKxwoJ7THH5vz8yYraIkuSQjBn/A8CSVO0eJ/A759E3sAAHicY2BkYGAA4por+uzx/DZfGbhZGDDB/wcsXGBxDgYmEAUApnwFMgB4nGNgZGBgYQABFhEwycXAyIAKzAAEeABjAAAAeJxjYGBgYOHCg0WgGMZnQKJFcOghYCY9AAD0CAGJAAB4nGNgAAIRBg2Gd4xcjGqMToxxjCsYXzH5MLUwvWEWYX7B4sGSwtLCco5VgjWCdQebClsR2yJ2NvZb7O84vEiHAKrKFR0AAAB4nGNgZGBgMGOYxsDFAAJMQMwFZv8H8xkAHYgB7QAAAHicdc9NSsNAHAXwl36JLYgouBNmJYKQtHXXhct256KL7pN0kqakmTCZfoGn8ASewiO48hSewqWv8b8oUjPkn9+8vAwEwCU+4OFweejV83A1cMbdr5vUlbhF34rb9L24Qz+Ku3jAk7iHa2Q8wWudM7nBi7iBC7yKm8zfxC36XdymP8Ud+kvcxQzf4h7uvOdsF9l8k+mttlOdrvPQHiVHnGlbZaZQA79/lE50oW3o9FxFe1Vt0qFziUqsWamxKZzOc6NKa5Y6dv7CuXIUBInkfmxW/LsdIljk2NAaW94WU84Ua6Yhd6c7p9NZPSsmBgUUBvDR/6c74SxqhXB8ztmPsOes2EsxZOqQcJ+wY7CixvW5h3bOZZiU9bslk5i5j0X9VYkRAq7kT99niyf9AMXJamZ4nG2OWVfbMBCF/RGymYRS1pa10JbdbG3h53AUWbF1kCVHlhP494QG8sR9mfudmbkz0UI0Uxx9rnsWaLBIkxZtOnSJWaJHn2W+sMJXVlljnQ022eIb39lmh1322OeAHxxyxE9+8ZtjTjjljHMuuCThimtuuOWOP/zlH/c8RLHw3k2S1E1sZ2brMpbCyNqI4HxP5mrsnf0/MAejhqH/AV5neYg/qC57UntpVCK9q6qldwhaPnWl0eXACZ82pXGVakiXdVNdKFtpZ1fmLilUMVC+83bSOJG2htoE5ZuZF2XemjW7RW2CToLI2q4ORlvVLL22oTOqVRWmIa1KCS/zaTFKhnZVF4XwL43pwuLbL+2J8FbbDIHHMeGRFEtNicQQyFGMGaLJqHhiQMGIF56j6BUyWm88AA=="},59:t=>{t.exports="data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiCiAgIHhtbG5zOmlua3NjYXBlPSJodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy9uYW1lc3BhY2VzL2lua3NjYXBlIgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmcyIgogICB4bWw6c3BhY2U9InByZXNlcnZlIgogICB3aWR0aD0iNTM2LjM2NDc1IgogICBoZWlnaHQ9IjE1MC4zMTAwMyIKICAgdmlld0JveD0iMCAwIDUzNi4zNjQ3MyAxNTAuMzEwMDMiCiAgIHNvZGlwb2RpOmRvY25hbWU9ImFyZWxsZS1sb2dvLnN2ZyIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMC45Mi41ICgyMDYwZWMxZjlmLCAyMDIwLTA0LTA4KSI+PG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhOCI+PHJkZjpSREY+PGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPjxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PjxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz48ZGM6dGl0bGU+PC9kYzp0aXRsZT48L2NjOldvcms+PC9yZGY6UkRGPjwvbWV0YWRhdGE+PGRlZnMKICAgICBpZD0iZGVmczYiPjxjbGlwUGF0aAogICAgICAgY2xpcFBhdGhVbml0cz0idXNlclNwYWNlT25Vc2UiCiAgICAgICBpZD0iY2xpcFBhdGgxOCI+PHBhdGgKICAgICAgICAgZD0iTSAwLDEyMiBIIDc2OC41MDUgViAwIEggMCBaIgogICAgICAgICBpZD0icGF0aDE2IgogICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiCiAgICAgYm9yZGVyb3BhY2l0eT0iMSIKICAgICBvYmplY3R0b2xlcmFuY2U9IjEwIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwIgogICAgIGd1aWRldG9sZXJhbmNlPSIxMCIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTg2NCIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSIxMDI0IgogICAgIGlkPSJuYW1lZHZpZXc0IgogICAgIHNob3dncmlkPSJmYWxzZSIKICAgICBpbmtzY2FwZTp6b29tPSIwLjcyMDIyOTUzIgogICAgIGlua3NjYXBlOmN4PSI3ODguNzIwNTgiCiAgICAgaW5rc2NhcGU6Y3k9Ii04NC40NDIyMDQiCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjU2IgogICAgIGlua3NjYXBlOndpbmRvdy15PSIyNyIKICAgICBpbmtzY2FwZTp3aW5kb3ctbWF4aW1pemVkPSIxIgogICAgIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9ImcxMCIKICAgICBmaXQtbWFyZ2luLXRvcD0iMCIKICAgICBmaXQtbWFyZ2luLWxlZnQ9IjAiCiAgICAgZml0LW1hcmdpbi1yaWdodD0iMCIKICAgICBmaXQtbWFyZ2luLWJvdHRvbT0iMCIgLz48ZwogICAgIGlkPSJnMTAiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpbmtzY2FwZTpsYWJlbD0iYXJlbGxlLWxvZ28iCiAgICAgdHJhbnNmb3JtPSJtYXRyaXgoMS4zMzMzMzMzLDAsMCwtMS4zMzMzMzMzLC0zLjY1MDgxNDEsMTU5LjMyNzc3KSI+PGcKICAgICAgIGlkPSJnMTIiPjxnCiAgICAgICAgIGlkPSJnMTQiCiAgICAgICAgIGNsaXAtcGF0aD0idXJsKCNjbGlwUGF0aDE4KSI+PGcKICAgICAgICAgICBpZD0iZzIwIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwOS42Njg5LDY3LjE2MzEpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAtMS41OTgsMi42NTMgLTcuMjkyLDUuOTg3IC04LjgwOCwxNS4zMDcgLTAuODA0LDQuOTQ5IDAuNTY5LDcuOTk0IDEuOTU1LDEyLjE4MSAxLjQ4OCw0LjQ3MSAtMS4wNTksNy4yNDQgLTUuMzgsNy40MDggLTguNjQ0LDAuMzMgLTMxLjkwNywtMi4yMTEgLTU3LjYzOCwxMS4yODggLTEwLjA2Niw1LjI4IC0xMC43NTksMy45MjIgLTcuMDc2LC0yLjU2NiA1LjY0NSwtOS45NTIgMTkuMzc4LC0xNS4zMzQgMzUuNjg3LC0xOC4wMDUgLTQ1LjM5Nyw5LjgyNSAtMTcuMTY2LC0yLjE3NCA1LjA5OCwtNy4xMjcgLTQxLjA1Niw4LjQ4NCAtMTUuNjI1LC0zLjAzNSA0LjQ0OCwtNi43MTEgLTM4LjQ3NSw2LjgyMSAtMTEuMzg3LC0yLjk3OCAxLjQ3NywtNS40MjggMy44NjIsLTAuNzM2IDEyLjM5MSwtMTMuMDI2IDE4LjA1NCwtMTAuMjczIDYuMzE3LDMuMDY5IDQuNDg4LDAuNjg5IDcuNDc5LDIuMDI2IEMgMC41NjYsMC40NTggMCwwIDAsMCIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOiNhYTExOGU7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmUiCiAgICAgICAgICAgICBpZD0icGF0aDIyIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzI0IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwOS42Njg5LDY3LjE2MzEpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAtMS41OTgsMi42NTMgLTcuMjkyLDUuOTg3IC04LjgwOCwxNS4zMDcgLTAuODA0LDQuOTQ5IDAuNTY5LDcuOTk0IDEuOTU1LDEyLjE4MSAxLjQ4OCw0LjQ3MSAtMS4wNTksNy4yNDQgLTUuMzgsNy40MDggLTguNjQ0LDAuMzMgLTMxLjkwNywtMi4yMTEgLTU3LjYzOCwxMS4yODggLTEwLjA2Niw1LjI4IC0xMC43NTksMy45MjIgLTcuMDc2LC0yLjU2NiA1LjY0NSwtOS45NTIgMTkuMzc4LC0xNS4zMzQgMzUuNjg3LC0xOC4wMDUgLTQ1LjM5Nyw5LjgyNSAtMTcuMTY2LC0yLjE3NCA1LjA5OCwtNy4xMjcgLTQxLjA1Niw4LjQ4NCAtMTUuNjI1LC0zLjAzNSA0LjQ0OCwtNi43MTEgLTM4LjQ3NSw2LjgyMSAtMTEuMzg3LC0yLjk3OCAxLjQ3NywtNS40MjggMy44NjIsLTAuNzM2IDEyLjM5MSwtMTMuMDI2IDE4LjA1NCwtMTAuMjczIDYuMzE3LDMuMDY5IDQuNDg4LDAuNjg5IDcuNDc5LDIuMDI2IEMgMC41NjYsMC40NTggMCwwIDAsMCBaIgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2ZmZmZmZjtzdHJva2Utd2lkdGg6MS4wMzEwMDAwMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoMjYiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnMjgiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTM3Ljg2MzMsNDMuMDIzNCkiPjxwYXRoCiAgICAgICAgICAgICBkPSJtIDAsMCBjIDAsLTE2LjcxMiAtMTMuNTQ4LC0zMC4yNjIgLTMwLjI2MywtMzAuMjYyIC0xNi43MTUsMCAtMzAuMjYzLDEzLjU1IC0zMC4yNjMsMzAuMjYyIDAsMTYuNzE0IDEzLjU0OCwzMC4yNjQgMzAuMjYzLDMwLjI2NCBDIC0xMy41NDgsMzAuMjY0IDAsMTYuNzE0IDAsMCIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmUiCiAgICAgICAgICAgICBpZD0icGF0aDMwIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzMyIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEzNy44NjMzLDQzLjAyMzQpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAwLC0xNi43MTIgLTEzLjU0OCwtMzAuMjYyIC0zMC4yNjMsLTMwLjI2MiAtMTYuNzE1LDAgLTMwLjI2MywxMy41NSAtMzAuMjYzLDMwLjI2MiAwLDE2LjcxNCAxMy41NDgsMzAuMjY0IDMwLjI2MywzMC4yNjQgQyAtMTMuNTQ4LDMwLjI2NCAwLDE2LjcxNCAwLDAgWiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDM0IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzM2IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEyNi4xNTcyLDEwLjQzMjYpIj48cGF0aAogICAgICAgICAgICAgZD0iTSAwLDAgMTMuNDUyLDYzLjU4NiBIIDI0LjQ1OCBMIDIyLjAxMiwtMS4yMjIgWiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmUiCiAgICAgICAgICAgICBpZD0icGF0aDM4IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzQwIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE0MCw3My42NzUzKSI+PHBhdGgKICAgICAgICAgICAgIGQ9Ik0gMCwwIC0xMy4wODYsLTYxLjU1MyIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDQyIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzQ0IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIwOC43ODcxLDQzLjAyMzQpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAwLC0xNi43MTIgLTEzLjU0OCwtMzAuMjYyIC0zMC4yNjUsLTMwLjI2MiAtMTYuNzEsMCAtMzAuMjYsMTMuNTUgLTMwLjI2LDMwLjI2MiAwLDE2LjcxNCAxMy41NSwzMC4yNjQgMzAuMjYsMzAuMjY0IEMgLTEzLjU0OCwzMC4yNjQgMCwxNi43MTQgMCwwIFoiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojYWExMThlO3N0cm9rZS13aWR0aDozLjgwNTAwMDA3O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICAgICAgaWQ9InBhdGg0NiIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc0OCIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNTAuNjE1Miw2NC4yMzczKSI+PHBhdGgKICAgICAgICAgICAgIGQ9Im0gMCwwIDguNTU4LC03LjMzOSAzOS4xMzIsMi40NDcgMTEuMDA2LDMuNjY5IDQuODksLTMxLjc5MyAtMjMuMjMyLC0yNC40NTggSCAxNC42NzMgbCAtMjMuODQ4LDI1LjY3OSB6IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGlkPSJwYXRoNTAiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnNTIiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTU3LjExOTEsNzMuNjc1MykiPjxwYXRoCiAgICAgICAgICAgICBkPSJNIDAsMCAtMTMuMDgzLC02MS41NTMiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojYWExMThlO3N0cm9rZS13aWR0aDozLjgwNTAwMDA3O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICAgICAgaWQ9InBhdGg1NCIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc1NiIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzMDIuNDA1MywxMTIuODcwMSkiPjxwYXRoCiAgICAgICAgICAgICBkPSJNIDAsMCAtMjEuNDEzLC0xMDAuNzQ4IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2FhMTE4ZTtzdHJva2Utd2lkdGg6My44MDUwMDAwNztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoNTgiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnNjAiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzIxLjk2ODgsMTEyLjg3MDEpIj48cGF0aAogICAgICAgICAgICAgZD0iTSAwLDAgLTIxLjQxMSwtMTAwLjc0OCIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDYyIgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzY0IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM4Ni4wOTc3LDQzLjAyMzQpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAwLC0xNi43MTIgLTEzLjU0OCwtMzAuMjYyIC0zMC4yNjIsLTMwLjI2MiAtMTYuNzE3LDAgLTMwLjI2NCwxMy41NSAtMzAuMjY0LDMwLjI2MiAwLDE2LjcxNCAxMy41NDcsMzAuMjY0IDMwLjI2NCwzMC4yNjQgQyAtMTMuNTQ4LDMwLjI2NCAwLDE2LjcxNCAwLDAgWiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDY2IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzY4IgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM3My4yODMyLDY4LjM1MjUpIj48cGF0aAogICAgICAgICAgICAgZD0iTSAwLDAgLTM2LjAyOSwtNDkuNTg2IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2FhMTE4ZTtzdHJva2Utd2lkdGg6My44MDUwMDAwNztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoNzAiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnNzIiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjcyLjM3NCw0My4wMjM0KSI+PHBhdGgKICAgICAgICAgICAgIGQ9Im0gMCwwIGMgMCwtMTYuNzEyIC0xMy41NDksLTMwLjI2MiAtMzAuMjYzLC0zMC4yNjIgLTE2LjcxMywwIC0zMC4yNjEsMTMuNTUgLTMwLjI2MSwzMC4yNjIgMCwxNi43MTQgMTMuNTQ4LDMwLjI2NCAzMC4yNjEsMzAuMjY0IEMgLTEzLjU0OSwzMC4yNjQgMCwxNi43MTQgMCwwIFoiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojYWExMThlO3N0cm9rZS13aWR0aDozLjgwNTAwMDA3O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICAgICAgaWQ9InBhdGg3NCIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc3NiIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNTkuNTU5Niw2OC4zNTI1KSI+PHBhdGgKICAgICAgICAgICAgIGQ9Ik0gMCwwIC0zNi4wMjYsLTQ5LjU4NiIKICAgICAgICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNhYTExOGU7c3Ryb2tlLXdpZHRoOjMuODA1MDAwMDc7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICAgICAgICBpZD0icGF0aDc4IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz48L2c+PGcKICAgICAgICAgICBpZD0iZzgwIgogICAgICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI3NC43MzM0LDE3Ljc3MDUpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgLTE4LjM0Miw2LjExNCAxLjgzNiwzOC43MjEgNC44OSw3LjU0MiAxNC4wNjIsLTEyLjAyNCB6IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGlkPSJwYXRoODIiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnODQiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzg4LjI1MjksMTcuNTY1OSkiPjxwYXRoCiAgICAgICAgICAgICBkPSJtIDAsMCAtMTguMzQzLDYuMTE0IDEuODM3LDM4LjcyMSA0Ljg4OSw3LjU0MyAxNC4wNjMsLTEyLjAyNCB6IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGlkPSJwYXRoODYiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48ZwogICAgICAgICAgIGlkPSJnODgiCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOTcuMjYwNyw3Mi44NjUyKSI+PHBhdGgKICAgICAgICAgICAgIGQ9Im0gMCwwIGMgLTIuMTIxLDIuNzgyIC04LjUzOSw1LjIzOSAtMTEuMzksMTUuNTIxIC0xLjUxNCw1LjQ1OCAtMC4zNDgsOS4wNDggMC42OTcsMTMuOTIgMS4xMTcsNS4yMDUgLTIuMDg4LDguMDA0IC02Ljk2MSw3LjY1NiAtOS43NDQsLTAuNjk2IC0zNS41NTksLTYuNDE4IC02Ni4xMjIsNS41NjkgLTExLjk1Niw0LjY4OCAtMTAuNzY1LDQuMDY4IC03LjYzLC0zLjc1NSA0Ljk4NCwtMTIuNDM5IDI2LjUwNywtMjEuNzg5IDQ1LjE1MiwtMjIuNzc3IC0xMC4xMDYsMC45MDkgLTIyLjE0LDMuMTI5IC0yNS41MDIsNC4wMDEgLTEzLjUsMy41IDcsLTEzLjUgMzQuNTAyLC0xNC4yNTEgLTcuNDg0LDAuMjM3IC0xOS41OTgsMS40ODYgLTIyLjUsMi4yNSAtMTksNSA0LC0xMS45OTkgMzIuMjUsLTEzLjUwMiA0LjQzNiwtMC4yMzYgMTUuNzMxLC02Ljg5MiAyMS44NjksLTMuMjk1IDMuODM0LDIuMjQ2IDEuMzc5LDAuODAxIDMuODM0LDIuMjQ2IEMgMy44ODgsLTMuMDY4IDAsMCAwLDAiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDojNzdkMWM4O2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lIgogICAgICAgICAgICAgaWQ9InBhdGg5MCIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+PC9nPjxnCiAgICAgICAgICAgaWQ9Imc5MiIKICAgICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSg5Ny4yNjA3LDcyLjg2NTIpIj48cGF0aAogICAgICAgICAgICAgZD0ibSAwLDAgYyAtMi4xMjEsMi43ODIgLTguNTM5LDUuMjM5IC0xMS4zOSwxNS41MjEgLTEuNTE0LDUuNDU4IC0wLjM0OCw5LjA0OCAwLjY5NywxMy45MiAxLjExNyw1LjIwNSAtMi4wODgsOC4wMDQgLTYuOTYxLDcuNjU2IC05Ljc0NCwtMC42OTYgLTM1LjU1OSwtNi40MTggLTY2LjEyMiw1LjU2OSAtMTEuOTU2LDQuNjg4IC0xMC43NjUsNC4wNjggLTcuNjMsLTMuNzU1IDQuOTg0LC0xMi40MzkgMjYuNTA3LC0yMS43ODkgNDUuMTUyLC0yMi43NzcgLTEwLjEwNiwwLjkwOSAtMjIuMTQsMy4xMjkgLTI1LjUwMiw0LjAwMSAtMTMuNSwzLjUgNywtMTMuNSAzNC41MDIsLTE0LjI1MSAtNy40ODQsMC4yMzcgLTE5LjU5OCwxLjQ4NiAtMjIuNSwyLjI1IC0xOSw1IDQsLTExLjk5OSAzMi4yNSwtMTMuNTAyIDQuNDM2LC0wLjIzNiAxNS43MzEsLTYuODkyIDIxLjg2OSwtMy4yOTUgMy44MzQsMi4yNDYgMS4zNzksMC44MDEgMy44MzQsMi4yNDYgQyAzLjg4OCwtMy4wNjggMCwwIDAsMCBaIgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2ZmZmZmZjtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgICAgIGlkPSJwYXRoOTQiCiAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48L2c+PC9nPjx0ZXh0CiAgICAgICB0cmFuc2Zvcm09Im1hdHJpeCgxLDAsMCwtMSwzODkuNDk5LDYyLjk5NjEpIgogICAgICAgc3R5bGU9ImZvbnQtdmFyaWFudDpub3JtYWw7Zm9udC13ZWlnaHQ6bm9ybWFsO2ZvbnQtc3RyZXRjaDpub3JtYWw7Zm9udC1zaXplOjE4cHg7Zm9udC1mYW1pbHk6J1RyZWJ1Y2hldCBNUyc7LWlua3NjYXBlLWZvbnQtc3BlY2lmaWNhdGlvbjpUcmVidWNoZXRNUzt3cml0aW5nLW1vZGU6bHItdGI7ZmlsbDojYWExMThlO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lIgogICAgICAgaWQ9InRleHQ5OCI+PHRzcGFuCiAgICAgICAgIHg9IjAiCiAgICAgICAgIHk9IjAiCiAgICAgICAgIGlkPSJ0c3Bhbjk2Ij7CrjwvdHNwYW4+PC90ZXh0Pgo8L2c+PC9zdmc+"},285:t=>{t.exports="data:image/vnd.microsoft.icon;charset=utf-8;base64,AAABAAEAEBAAAAEACABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAQAEAAAAAAAAAAAAAAAEAAAAAAADNm9sA6urFANvamwD7+/MA5cLuAPX04gDNzHUA+/v1APT04QDQz34AzMtxAOHhrQDe3aQA7+/TANbVjQDo6MAA/v79AM7NeQDn5rsA8/PdAPLy2wDi4a4A5uW6AO3tzgD5+fAA/v78APn57gD4+OwA9vbmAOXktgDc3J8A9fXkAOHgrADs2PEA5eW4AI4hqwDLym8A////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIyMlIyUlIyMlIyUjJSMjJQAjISMhJSMlJSMEIwQjISUlISMhIyUhIwAhIyEjISMAJSMjJSMjJSMjJSMlIyUjIyUlJSUlJSUlJSUjJSMlJSUlJSUlJSUlJSUlJSUcEiQdJSUlJSUlJRkNICQkJCQkJCUlJSUlByQkJCQkJCQkJAolJSUlGiIiIiIiIiQkJCQXJSUlJR8iAiQkJCQkJCQOJSUlJSQkBiQkJCQkJCQkFiUlJRAiIiIiIiQkJCQkJA8lJQMiAiQkJCQkJCQkJCQVJRgRJCQkJCQkJCQkJCQkDCUeJCQGAgEIBQcbBRMBAQMlCQsUJSUlJSUlJSUlJSUlJQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="},778:t=>{t.exports="data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDIyLjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMzQuOSAzMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTM0LjkgMzA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojNTk1OTU5O30KCS5zdDF7ZmlsbDojNjZDQzAwO30KPC9zdHlsZT4KPGc+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTYuMywyMS42aC0yLjR2LTEzaDIuNFYyMS42eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTIxLjMsMTMuNWMwLjItMC4yLDAuNC0wLjQsMC42LTAuNWMwLjItMC4yLDAuNC0wLjMsMC43LTAuNGMwLjItMC4xLDAuNS0wLjIsMC43LTAuM2MwLjMtMC4xLDAuNi0wLjEsMC45LTAuMQoJCWMwLjUsMCwxLDAuMSwxLjMsMC4zczAuNywwLjQsMSwwLjdzMC41LDAuNywwLjYsMS4xYzAuMSwwLjQsMC4yLDAuOSwwLjIsMS40djUuOWgtMi4ydi01LjljMC0wLjYtMC4xLTEtMC40LTEuM1MyNCwxNCwyMy41LDE0CgkJYy0wLjQsMC0wLjcsMC4xLTEuMSwwLjNjLTAuMywwLjItMC43LDAuNC0xLDAuN3Y2LjdoLTIuMnYtOS4yaDEuNGMwLjMsMCwwLjUsMC4xLDAuNiwwLjRMMjEuMywxMy41eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTMyLjEsOC4ydjEzLjRoLTIuMlY4LjJIMzIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0zNy4zLDkuN2MwLDAuMiwwLDAuNC0wLjEsMC41cy0wLjIsMC4zLTAuMywwLjRzLTAuMywwLjItMC41LDAuM2MtMC4yLDAuMS0wLjQsMC4xLTAuNiwwLjEKCQljLTAuMiwwLTAuNCwwLTAuNS0wLjFjLTAuMi0wLjEtMC4zLTAuMi0wLjQtMC4zcy0wLjItMC4zLTAuMy0wLjRjLTAuMS0wLjItMC4xLTAuMy0wLjEtMC41YzAtMC4yLDAtMC40LDAuMS0wLjYKCQljMC4xLTAuMiwwLjItMC4zLDAuMy0wLjVzMC4zLTAuMiwwLjQtMC4zczAuNC0wLjEsMC41LTAuMWMwLjIsMCwwLjQsMCwwLjYsMC4xYzAuMiwwLjEsMC4zLDAuMiwwLjUsMC4zczAuMiwwLjMsMC4zLDAuNQoJCVMzNy4zLDkuNSwzNy4zLDkuN3ogTTM2LjksMTIuNHY5LjJoLTIuMnYtOS4ySDM2Ljl6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDEuNywxMy41YzAuMi0wLjIsMC40LTAuNCwwLjYtMC41YzAuMi0wLjIsMC40LTAuMywwLjctMC40YzAuMi0wLjEsMC41LTAuMiwwLjctMC4zYzAuMy0wLjEsMC42LTAuMSwwLjktMC4xCgkJYzAuNSwwLDEsMC4xLDEuMywwLjNjMC40LDAuMiwwLjcsMC40LDEsMC43YzAuMywwLjMsMC41LDAuNywwLjYsMS4xczAuMiwwLjksMC4yLDEuNHY1LjloLTIuMnYtNS45YzAtMC42LTAuMS0xLTAuNC0xLjMKCQljLTAuMy0wLjMtMC43LTAuNS0xLjItMC41Yy0wLjQsMC0wLjcsMC4xLTEuMSwwLjNjLTAuMywwLjItMC43LDAuNC0xLDAuN3Y2LjdoLTIuMnYtOS4yaDEuNGMwLjMsMCwwLjUsMC4xLDAuNiwwLjRMNDEuNywxMy41eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTUxLjksMTcuM2MwLDAuNSwwLjEsMC45LDAuMywxLjJjMC4xLDAuMywwLjMsMC42LDAuNSwwLjlzMC41LDAuNCwwLjgsMC41czAuNiwwLjIsMSwwLjJjMC40LDAsMC43LDAsMC45LTAuMQoJCXMwLjUtMC4yLDAuNy0wLjNjMC4yLTAuMSwwLjQtMC4yLDAuNS0wLjNjMC4xLTAuMSwwLjMtMC4xLDAuNC0wLjFjMC4yLDAsMC4zLDAuMSwwLjQsMC4ybDAuNiwwLjhjLTAuMiwwLjMtMC41LDAuNS0wLjgsMC43CgkJcy0wLjYsMC40LTEsMC41Yy0wLjMsMC4xLTAuNywwLjItMSwwLjJzLTAuNywwLjEtMSwwLjFjLTAuNiwwLTEuMi0wLjEtMS44LTAuM2MtMC42LTAuMi0xLTAuNS0xLjQtMC45cy0wLjctMC45LTEtMS41CgkJYy0wLjItMC42LTAuNC0xLjMtMC40LTIuMWMwLTAuNiwwLjEtMS4yLDAuMy0xLjhjMC4yLTAuNiwwLjUtMSwwLjktMS40YzAuNC0wLjQsMC44LTAuNywxLjQtMWMwLjUtMC4yLDEuMi0wLjQsMS45LTAuNAoJCWMwLjYsMCwxLjEsMC4xLDEuNiwwLjNjMC41LDAuMiwwLjksMC41LDEuMywwLjhjMC40LDAuNCwwLjYsMC44LDAuOCwxLjNjMC4yLDAuNSwwLjMsMS4xLDAuMywxLjhjMCwwLjMsMCwwLjYtMC4xLDAuNwoJCWMtMC4xLDAuMS0wLjIsMC4yLTAuNCwwLjJINTEuOXogTTU2LjEsMTUuOWMwLTAuMywwLTAuNi0wLjEtMC44Yy0wLjEtMC4zLTAuMi0wLjUtMC40LTAuN2MtMC4yLTAuMi0wLjQtMC4zLTAuNi0wLjUKCQljLTAuMi0wLjEtMC41LTAuMi0wLjktMC4yYy0wLjYsMC0xLjEsMC4yLTEuNSwwLjVjLTAuNCwwLjQtMC42LDAuOS0wLjcsMS42SDU2LjF6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNzYuNSw4LjZsLTUuMywxM2gtMi4ybC01LjMtMTNoMS45YzAuMiwwLDAuNCwwLjEsMC41LDAuMnMwLjIsMC4yLDAuMywwLjRsMy4xLDcuOWMwLjEsMC4zLDAuMiwwLjUsMC4zLDAuOQoJCWMwLjEsMC4zLDAuMiwwLjYsMC4zLDFjMC4xLTAuMywwLjEtMC43LDAuMi0xczAuMi0wLjYsMC4zLTAuOWwzLjEtNy45YzAtMC4xLDAuMS0wLjMsMC4zLTAuNGMwLjEtMC4xLDAuMy0wLjIsMC41LTAuMkg3Ni41eiIvPgoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTgwLjcsOS43YzAsMC4yLDAsMC40LTAuMSwwLjVjLTAuMSwwLjItMC4yLDAuMy0wLjMsMC40Yy0wLjEsMC4xLTAuMywwLjItMC41LDAuM2MtMC4yLDAuMS0wLjQsMC4xLTAuNiwwLjEKCQljLTAuMiwwLTAuNCwwLTAuNS0wLjFjLTAuMi0wLjEtMC4zLTAuMi0wLjQtMC4zcy0wLjItMC4zLTAuMy0wLjRzLTAuMS0wLjMtMC4xLTAuNWMwLTAuMiwwLTAuNCwwLjEtMC42czAuMi0wLjMsMC4zLTAuNQoJCXMwLjMtMC4yLDAuNC0wLjNzMC40LTAuMSwwLjUtMC4xYzAuMiwwLDAuNCwwLDAuNiwwLjFzMC4zLDAuMiwwLjUsMC4zYzAuMSwwLjEsMC4yLDAuMywwLjMsMC41QzgwLjcsOS4zLDgwLjcsOS41LDgwLjcsOS43egoJCSBNODAuNCwxMi40djkuMmgtMi4ydi05LjJIODAuNHoiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik04NC43LDE3LjNjMCwwLjUsMC4xLDAuOSwwLjMsMS4yYzAuMSwwLjMsMC4zLDAuNiwwLjUsMC45czAuNSwwLjQsMC44LDAuNXMwLjYsMC4yLDEsMC4yYzAuNCwwLDAuNywwLDAuOS0wLjEKCQljMC4zLTAuMSwwLjUtMC4yLDAuNy0wLjNzMC40LTAuMiwwLjUtMC4zYzAuMS0wLjEsMC4zLTAuMSwwLjQtMC4xYzAuMiwwLDAuMywwLjEsMC40LDAuMmwwLjYsMC44Yy0wLjIsMC4zLTAuNSwwLjUtMC44LDAuNwoJCWMtMC4zLDAuMi0wLjYsMC40LTEsMC41Yy0wLjMsMC4xLTAuNywwLjItMSwwLjJjLTAuMywwLTAuNywwLjEtMSwwLjFjLTAuNiwwLTEuMi0wLjEtMS44LTAuM3MtMS0wLjUtMS40LTAuOQoJCWMtMC40LTAuNC0wLjctMC45LTEtMS41Yy0wLjItMC42LTAuNC0xLjMtMC40LTIuMWMwLTAuNiwwLjEtMS4yLDAuMy0xLjhjMC4yLTAuNiwwLjUtMSwwLjktMS40czAuOC0wLjcsMS40LTEKCQljMC41LTAuMiwxLjItMC40LDEuOS0wLjRjMC42LDAsMS4xLDAuMSwxLjYsMC4zYzAuNSwwLjIsMC45LDAuNSwxLjMsMC44YzAuNCwwLjQsMC42LDAuOCwwLjgsMS4zYzAuMiwwLjUsMC4zLDEuMSwwLjMsMS44CgkJYzAsMC4zLDAsMC42LTAuMSwwLjdjLTAuMSwwLjEtMC4yLDAuMi0wLjQsMC4ySDg0Ljd6IE04OSwxNS45YzAtMC4zLDAtMC42LTAuMS0wLjhjLTAuMS0wLjMtMC4yLTAuNS0wLjQtMC43CgkJYy0wLjItMC4yLTAuNC0wLjMtMC42LTAuNWMtMC4yLTAuMS0wLjUtMC4yLTAuOS0wLjJjLTAuNiwwLTEuMSwwLjItMS41LDAuNWMtMC40LDAuNC0wLjYsMC45LTAuNywxLjZIODl6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTA2LDEyLjRsLTIuOSw5LjJoLTEuOGMtMC4yLDAtMC4zLTAuMS0wLjQtMC40bC0xLjctNS4zYy0wLjEtMC4yLTAuMS0wLjQtMC4xLTAuNWMwLTAuMi0wLjEtMC40LTAuMS0wLjUKCQljMCwwLjItMC4xLDAuNC0wLjEsMC41cy0wLjEsMC40LTAuMSwwLjVMOTcsMjEuMmMtMC4xLDAuMy0wLjIsMC40LTAuNSwwLjRoLTEuN2wtMi45LTkuMmgxLjhjMC4yLDAsMC4zLDAsMC40LDAuMQoJCWMwLjEsMC4xLDAuMiwwLjIsMC4yLDAuM2wxLjMsNC45YzAuMSwwLjMsMC4xLDAuNSwwLjIsMC44YzAuMSwwLjMsMC4xLDAuNSwwLjEsMC44YzAuMS0wLjMsMC4xLTAuNSwwLjItMC44CgkJYzAuMS0wLjMsMC4yLTAuNSwwLjItMC44bDEuNS00LjljMC0wLjEsMC4xLTAuMiwwLjItMC4zYzAuMS0wLjEsMC4yLTAuMSwwLjQtMC4xaDFjMC4yLDAsMC4zLDAsMC40LDAuMWMwLjEsMC4xLDAuMiwwLjIsMC4yLDAuMwoJCWwxLjUsNC45YzAuMSwwLjMsMC4yLDAuNSwwLjIsMC44YzAuMSwwLjMsMC4xLDAuNSwwLjIsMC44YzAuMS0wLjUsMC4yLTEsMC4zLTEuNmwxLjQtNC45YzAtMC4xLDAuMS0wLjIsMC4yLTAuMwoJCWMwLjEtMC4xLDAuMi0wLjEsMC40LTAuMUgxMDZ6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTA5LjEsMTcuM2MwLDAuNSwwLjEsMC45LDAuMywxLjJjMC4xLDAuMywwLjMsMC42LDAuNSwwLjlzMC41LDAuNCwwLjgsMC41czAuNiwwLjIsMSwwLjIKCQljMC40LDAsMC43LDAsMC45LTAuMXMwLjUtMC4yLDAuNy0wLjNjMC4yLTAuMSwwLjQtMC4yLDAuNS0wLjNjMC4xLTAuMSwwLjMtMC4xLDAuNC0wLjFjMC4yLDAsMC4zLDAuMSwwLjQsMC4ybDAuNiwwLjgKCQljLTAuMiwwLjMtMC41LDAuNS0wLjgsMC43cy0wLjYsMC40LTEsMC41Yy0wLjMsMC4xLTAuNywwLjItMSwwLjJzLTAuNywwLjEtMSwwLjFjLTAuNiwwLTEuMi0wLjEtMS44LTAuM2MtMC42LTAuMi0xLTAuNS0xLjQtMC45CgkJcy0wLjctMC45LTEtMS41Yy0wLjItMC42LTAuNC0xLjMtMC40LTIuMWMwLTAuNiwwLjEtMS4yLDAuMy0xLjhjMC4yLTAuNiwwLjUtMSwwLjktMS40YzAuNC0wLjQsMC44LTAuNywxLjQtMQoJCWMwLjUtMC4yLDEuMi0wLjQsMS45LTAuNGMwLjYsMCwxLjEsMC4xLDEuNiwwLjNjMC41LDAuMiwwLjksMC41LDEuMywwLjhjMC40LDAuNCwwLjYsMC44LDAuOCwxLjNjMC4yLDAuNSwwLjMsMS4xLDAuMywxLjgKCQljMCwwLjMsMCwwLjYtMC4xLDAuN2MtMC4xLDAuMS0wLjIsMC4yLTAuNCwwLjJIMTA5LjF6IE0xMTMuNCwxNS45YzAtMC4zLDAtMC42LTAuMS0wLjhjLTAuMS0wLjMtMC4yLTAuNS0wLjQtMC43CgkJYy0wLjItMC4yLTAuNC0wLjMtMC42LTAuNWMtMC4yLTAuMS0wLjUtMC4yLTAuOS0wLjJjLTAuNiwwLTEuMSwwLjItMS41LDAuNWMtMC40LDAuNC0wLjYsMC45LTAuNywxLjZIMTEzLjR6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTE5LjYsMTRjMC4zLTAuNiwwLjYtMSwxLTEuM2MwLjQtMC4zLDAuOS0wLjUsMS40LTAuNWMwLjQsMCwwLjgsMC4xLDEsMC4zbC0wLjEsMS43YzAsMC4xLTAuMSwwLjItMC4xLDAuMgoJCWMtMC4xLDAtMC4xLDAuMS0wLjIsMC4xYy0wLjEsMC0wLjIsMC0wLjQsMGMtMC4yLDAtMC4zLDAtMC41LDBjLTAuMiwwLTAuNSwwLTAuNywwLjFzLTAuNCwwLjItMC41LDAuM2MtMC4yLDAuMS0wLjMsMC4zLTAuNCwwLjUKCQljLTAuMSwwLjItMC4yLDAuNC0wLjMsMC43djUuN2gtMi4ydi05LjJoMS4zYzAuMiwwLDAuNCwwLDAuNSwwLjFjMC4xLDAuMSwwLjIsMC4yLDAuMiwwLjRMMTE5LjYsMTR6Ii8+CjwvZz4KPC9zdmc+Cg=="},864:(t,e,n)=>{var i=n(758),r=n(935),s=n(62),o=n(987),a=r(i),l=s(o);a.push([t.id,`html {\n font-size: 62.5%;\n}\nbody {\n margin: 0;\n}\n@font-face {\n font-family: viewericons;\n src: url(${l});\n font-weight: normal;\n font-style: normal;\n}\n/* Styles common to both inspector and highlighting used within iframe */\n.linked-highlight-text {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n}\n.linked-highlight-cell {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\ninput[type="text"],\nselect,\nbutton {\n padding: 7px 5px;\n border: solid 1px #cbcbcb;\n border-radius: 5px;\n color: #595959;\n background-color: #fff;\n box-sizing: border-box;\n}\n.square-button-bare {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n}\n.square-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n.square-button:last-of-type {\n margin-right: 0;\n}\n.square-button:first-of-type {\n margin-left: 0;\n}\n.square-button.primary {\n color: #fff;\n border-color: #0085e6;\n background-color: #0094ff;\n}\n.wk-checkbox,\nlabel.checkbox {\n position: relative;\n padding-left: 2.2rem;\n cursor: pointer;\n user-select: none;\n line-height: 1.6rem;\n}\n.wk-checkbox input,\nlabel.checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n.wk-checkbox .checkmark,\nlabel.checkbox .checkmark {\n position: absolute;\n box-sizing: border-box;\n top: 0;\n left: 0;\n width: 1.6rem;\n height: 1.6rem;\n border-radius: 0.4rem;\n border: solid 0.1rem #cbcbcb;\n}\n.wk-checkbox input:checked ~ .checkmark::before,\nlabel.checkbox input:checked ~ .checkmark::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0.4rem;\n width: 0.4rem;\n height: 1.1rem;\n border: solid #026dce;\n border-width: 0 0.2rem 0.2rem 0;\n transform: rotate(45deg);\n}\ninput:disabled {\n background-color: #eee;\n}\n#ixv .dialog.chart {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n color: #595959;\n}\n#ixv .dialog.chart .chart-container {\n position: relative;\n width: 100%;\n}\n#ixv .dialog.chart .other-aspects {\n width: 100%;\n position: absolute;\n bottom: 0;\n}\n#ixv .dialog.chart .other-aspects .other-aspect {\n display: inline-block;\n padding: 5px 10px;\n margin: 10px;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.selected,\n#ixv .dialog.chart .other-aspects .other-aspect.addable {\n cursor: pointer;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.addable {\n color: #026dce;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.addable:hover {\n color: #0094ff;\n text-decoration: underline;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.selected {\n background-color: #0094ff;\n border-radius: 0.4rem;\n border: 0.1rem solid #0085e6;\n /* border: solid 1px #399; */\n color: #fff;\n}\n.dialog {\n z-index: 15;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border: solid 1px #000;\n background-color: #fff;\n display: none;\n}\n.dialog.full-screen {\n width: calc(100vw - 5em);\n height: calc(100vh - 5em);\n}\n.dialog.full-width {\n width: calc(100vw - 5em);\n}\n.dialog.message-box {\n max-width: 800px;\n width: 100%;\n}\n.dialog .contents {\n padding: 2rem;\n position: relative;\n box-sizing: border-box;\n height: 100%;\n width: 100%;\n}\n.dialog .contents > h2:first-child {\n margin-top: 0;\n}\n.dialog .close {\n position: absolute;\n top: 0;\n right: 0;\n padding: 1.8rem 2rem 0;\n font-size: 2.6rem;\n z-index: 20;\n cursor: pointer;\n line-height: 2.2rem;\n opacity: 0.2;\n}\n.dialog .close::before {\n content: "\\00d7";\n}\n.dialog .close:hover {\n opacity: 1;\n}\n.dialog .buttons button {\n border-radius: 0;\n min-width: 10rem;\n margin-right: 1.5rem;\n border: solid 0.1rem #cbcbcb;\n color: #595959;\n background-color: #f8f8f8;\n cursor: pointer;\n}\n.dialog .buttons button.dialog-button-primary {\n color: #fff;\n background-color: #66ca00;\n border: none;\n}\n#ixv #inspector .menu {\n position: absolute;\n right: 0;\n top: 0;\n line-height: 3.5rem;\n cursor: pointer;\n}\n#ixv #inspector .menu .menu-title {\n padding-right: 3.2rem;\n position: relative;\n}\n#ixv #inspector .menu .menu-title::after {\n font-family: viewericons;\n content: "\\ea04";\n font-size: 1.8rem;\n position: absolute;\n right: 1rem;\n}\n#ixv #inspector .menu .content-container {\n position: fixed;\n top: 8.3rem;\n right: 0;\n bottom: 0;\n display: none;\n z-index: 5;\n}\n#ixv #inspector .menu .content-container .content {\n line-height: initial;\n background: #fff;\n border: solid 1px #cbcbcb;\n max-height: 100%;\n overflow-y: auto;\n}\n#ixv #inspector .menu .content-container .content .group {\n border-bottom: solid 1px #cbcbcb;\n border-top: solid 1px #cbcbcb;\n}\n#ixv #inspector .menu .content-container .content .item {\n position: relative;\n padding: 10px 25px 10px 30px;\n white-space: nowrap;\n text-align: left;\n}\n#ixv #inspector .menu .content-container .content .item:hover {\n background: #cbcbcb;\n}\n#ixv #inspector .menu .content-container .content .item.menu-checkbox {\n cursor: pointer;\n user-select: none;\n position: relative;\n display: block;\n}\n#ixv #inspector .menu .content-container .content .item.menu-checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n#ixv #inspector .menu .content-container .content .item.menu-checkbox input:checked ~ .checkmark::before {\n font-family: viewericons;\n content: "\\ea1c";\n position: absolute;\n top: 1.1rem;\n left: 1rem;\n}\n#ixv #inspector .menu .content-container .content a.item {\n display: block;\n color: #595959;\n}\n#ixv #inspector .menu .content-container .content a.item:hover {\n text-decoration: none;\n}\n#ixv #inspector .toolbar-menu .menu-checkbox {\n position: relative;\n padding-left: 2.2rem;\n cursor: pointer;\n user-select: none;\n line-height: 1.6rem;\n margin-left: 1.8rem;\n}\n#ixv #inspector .toolbar-menu .menu-checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n#ixv #inspector .toolbar-menu .menu-checkbox .checkmark {\n position: absolute;\n box-sizing: border-box;\n top: 0;\n left: 0;\n width: 1.6rem;\n height: 1.6rem;\n border-radius: 0.4rem;\n border: solid 0.1rem #cbcbcb;\n}\n#ixv #inspector .toolbar-menu .menu-checkbox input:checked ~ .checkmark::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0.4rem;\n width: 0.4rem;\n height: 1.1rem;\n border: solid #026dce;\n border-width: 0 0.2rem 0.2rem 0;\n transform: rotate(45deg);\n}\n.accordian .card {\n margin-top: 0.4rem;\n background-color: #f8f8f8;\n}\n.accordian .card .card-body {\n display: none;\n padding-left: 1.6rem;\n padding-right: 1.6rem;\n padding-bottom: 0.8rem;\n}\n.accordian .card .card-body > h4:first-child {\n margin-top: 0.8rem;\n}\n.accordian .card .title {\n padding: 1.2rem 1.6rem;\n cursor: pointer;\n line-height: 1.8rem;\n}\n.accordian .card .title:hover {\n background-color: #f3f3f3;\n}\n.accordian .card.active {\n background-color: #f3f3f3;\n}\n.accordian .card.active .title {\n font-weight: bold;\n}\n.accordian .card.active .card-body {\n display: block;\n}\n#ixv .loader {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.85);\n z-index: 10;\n}\n#ixv .loader .text {\n padding-top: 80px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n color: #fff;\n font-size: large;\n font-family: sans-serif;\n}\n#ixv .loader.loading .text::after,\n#ixv .loader.loading .text::before {\n margin: 0 0 0 -30px;\n height: 60px;\n width: 60px;\n position: absolute;\n content: "";\n top: 0;\n left: 50%;\n border-radius: 500rem;\n border-style: solid;\n border-width: 3px;\n box-shadow: 0 0 0 1px transparent;\n}\n#ixv .loader.loading .text::before {\n border: 3px solid rgba(255, 255, 255, 0.1);\n}\n#ixv .loader.loading .text::after {\n -webkit-animation: loader 4s steps(64);\n animation: loader 4s steps(64);\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n border-color: #fff transparent transparent;\n}\n@keyframes loader {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.tab-area {\n background-color: #e3e3e3;\n width: 100%;\n box-sizing: border-box;\n border-bottom: solid 0.1rem #cbcbcb;\n display: flex;\n}\n.tab-area::after {\n content: "";\n clear: both;\n display: table;\n}\n.tab-area .tab {\n float: left;\n padding: 1.2rem;\n cursor: pointer;\n color: #444;\n border: solid 0.1rem #cbcbcb;\n border-top-left-radius: 0.6rem;\n border-top-right-radius: 0.6rem;\n margin-bottom: -0.1rem;\n flex-shrink: 1;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: 20em;\n}\n.tab-area .tab.active {\n padding: 1.2rem;\n border-bottom-color: #fff;\n background-color: #fff;\n border-top: solid 0.4rem #0085e6;\n}\n.tab-area .tab:not(.active) {\n padding-top: 1.5rem;\n}\n.block-list-item {\n margin: 0.5rem 0;\n padding: 0.3rem 0.9rem;\n background-color: #f8f8f8;\n cursor: pointer;\n position: relative;\n border-left: solid 0.4rem #f8f8f8;\n}\n.block-list-item > * {\n margin: 0.8rem 0;\n}\n.block-list-item > .tags {\n margin: 0.6rem 0;\n}\n.block-list-item:hover {\n background-color: #f3f3f3;\n}\n.block-list-item.selected {\n border-left: solid 0.4rem #0085e6;\n background-color: #f3f3f3;\n}\n.block-list-item.linked-highlight {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\n#ixv .dialog.validation-report {\n width: calc(100vw - 5em);\n}\n#ixv .dialog.validation-report table {\n display: block;\n margin: 2rem 0;\n border-collapse: collapse;\n max-height: calc(90vh - 150px);\n overflow-y: auto;\n}\n#ixv .dialog.validation-report table td,\n#ixv .dialog.validation-report table th {\n padding: 0.5rem;\n border: solid 0.1rem #cbcbcb;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace {\n border-spacing: 1rem 0;\n padding-bottom: 1.5rem;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace th.value-column {\n width: 8rem;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td {\n padding: 1rem 0;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.figure {\n text-align: right;\n white-space: nowrap;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace.calc11 td.icons,\n#ixv .dialog.calculation-inspector table.calculation-trace.calc11 th.icons {\n border-right: solid 1px;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace.has-icons td.icons,\n#ixv .dialog.calculation-inspector table.calculation-trace.has-icons th.icons {\n padding-right: 1rem;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace tr.total td.figure,\n#ixv .dialog.calculation-inspector table.calculation-trace tr.total td.line-item {\n border-top: solid 1px;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status .message {\n font-style: italic;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status .icon::before {\n position: relative;\n top: 0.1rem;\n padding-right: 0.1rem;\n font-weight: bold;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status.unchecked .icon::before {\n font-family: viewericons;\n content: "\\ea16";\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status.consistent .icon::before {\n font-family: viewericons;\n content: "\\ea09";\n color: #66ca00;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status.inconsistent .icon::before {\n font-family: viewericons;\n content: "\\ea08";\n color: #d8ae15;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace span.duplicate-facts::before {\n font-family: viewericons;\n content: "\\ea13";\n}\n#ixv .dialog.calculation-inspector table.calculation-trace:not(.calc11) td.calc11-only,\n#ixv .dialog.calculation-inspector table.calculation-trace:not(.calc11) th.calc11-only {\n display: none;\n}\n#ixv .dialog.text-block-viewer {\n max-width: 120rem;\n width: 90vw;\n height: 90vh;\n}\n#ixv .dialog.text-block-viewer .contents {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n#ixv .dialog.text-block-viewer .contents .title,\n#ixv .dialog.text-block-viewer .contents .buttons {\n flex-grow: 0;\n}\n#ixv .dialog.text-block-viewer .contents iframe {\n margin: 1.4rem 0;\n border: solid 1px #ccc;\n flex-grow: 1;\n width: 100%;\n height: 100%;\n}\n#ixv .dialog.text-block-viewer .contents .controls {\n height: 3.2rem;\n}\n#inspector .summary .body .total-facts-title,\n#inspector .summary .body .files-summary-title {\n font-weight: bold;\n}\n#inspector .summary .body .file-summary-container {\n display: flex;\n flex-flow: row wrap;\n}\n#inspector .summary .body .file-summary-container .files {\n flex: 1 1 auto;\n}\n#inspector .summary .body .tag-summary-body {\n overflow-x: auto;\n}\n#inspector .summary .body .tag-summary-body sup {\n font-size: 0.9rem;\n display: block;\n}\n#inspector .summary .body .tag-summary-body table {\n width: 100%;\n border-collapse: collapse;\n}\n#inspector .summary .body .tag-summary-body table td,\n#inspector .summary .body .tag-summary-body table th {\n padding: 0.2rem;\n text-align: left;\n}\n#inspector .summary .body .tag-summary-body table thead th {\n white-space: nowrap;\n position: relative;\n height: 10rem;\n}\n#inspector .summary .body .tag-summary-body table thead th.namespace {\n text-align: left;\n vertical-align: bottom;\n}\n#inspector .summary .body .tag-summary-body table thead th.figure {\n width: 5rem;\n}\n#inspector .summary .body .tag-summary-body table thead th.figure > div {\n position: absolute;\n transform: translate(100px, -50%) rotate(45deg) translate(-50%, 50%);\n text-align: right;\n width: 200px;\n right: 0;\n bottom: 0;\n}\n#inspector .summary .body .tag-summary-body table tbody th {\n font-weight: normal;\n}\n#inspector .summary .body .tag-summary-body table tbody tr,\n#inspector .summary .body .tag-summary-body table tfoot tr {\n transition: background-color 0.25s ease;\n}\n#inspector .summary .body .tag-summary-body table tbody tr:nth-child(odd),\n#inspector .summary .body .tag-summary-body table tfoot tr:nth-child(odd) {\n background-color: #f8f8f8;\n}\n#inspector .summary .body .tag-summary-body table tbody tr:hover,\n#inspector .summary .body .tag-summary-body table tfoot tr:hover {\n background-color: #e6e6e6;\n}\n#inspector .summary .body .tag-summary-body table tbody tr td.figure,\n#inspector .summary .body .tag-summary-body table tfoot tr td.figure {\n text-align: right;\n}\n#ixv {\n /* Specify these here, not on body in case the iXBRL document has its own\n * style attribute */\n}\n#ixv,\n#ixv table {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n color: #595959;\n font-size: 1.4rem;\n}\n#ixv #ixv-progress {\n position: fixed;\n top: 20px;\n left: 20px;\n width: 500px;\n height: 200px;\n background-color: #fff;\n border: solid #000 1px;\n text-align: center;\n}\n#ixv #viewer-pane {\n width: 75%;\n box-sizing: border-box;\n position: fixed;\n left: 0;\n top: 3.5rem;\n bottom: 0;\n z-index: 0;\n display: flex;\n flex-flow: column;\n /* This spacer stops drag events getting lost to the iframe */\n}\n#ixv #viewer-pane .ixds-tabs {\n display: none;\n flex: 0 1 auto;\n}\n#ixv #viewer-pane #iframe-container {\n position: relative;\n flex: 1 1 auto;\n}\n#ixv #viewer-pane #iframe-container > iframe {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n border: none;\n}\n#ixv #viewer-pane #iframe-container .zoom-in,\n#ixv #viewer-pane #iframe-container .zoom-out,\n#ixv #viewer-pane #iframe-container .print {\n position: absolute;\n right: 30px;\n width: 20px;\n height: 20px;\n border: solid 1px #bbb;\n background-color: rgba(225, 225, 225, 0.7);\n justify-content: center;\n display: flex;\n align-items: center;\n color: #777;\n cursor: pointer;\n user-select: none;\n}\n#ixv #viewer-pane #iframe-container .zoom-in {\n top: 15px;\n}\n#ixv #viewer-pane #iframe-container .zoom-out {\n top: 40px;\n}\n#ixv #viewer-pane #iframe-container .print {\n top: 75px;\n}\n#ixv #viewer-pane #iframe-container .print::after {\n font-family: viewericons;\n content: "\\ea15";\n font-size: 20px;\n}\n#ixv #viewer-pane #iframe-container .zoom-in:hover,\n#ixv #viewer-pane #iframe-container .zoom-out:hover,\n#ixv #viewer-pane #iframe-container .print:hover {\n background-color: rgba(128, 128, 128, 0.7);\n}\n#ixv #viewer-pane .resize {\n position: absolute;\n top: 0;\n width: 5px;\n right: -5px;\n bottom: 0;\n z-index: 20;\n}\n#ixv #viewer-pane .resize-spacer {\n position: absolute;\n top: 0;\n width: 3px;\n right: 0;\n bottom: 0;\n z-index: 20;\n}\n#ixv #top-bar {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size: 1.4rem;\n color: #595959;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n height: 3.5rem;\n border-bottom: solid 1px #ccc;\n z-index: 5;\n}\n#ixv #top-bar .header {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n height: 100%;\n}\n#ixv #top-bar .document-title {\n position: absolute;\n box-sizing: border-box;\n left: 160px;\n top: 0;\n padding-right: 1.6rem;\n padding-top: 1.3rem;\n border-right: solid 0.1rem #ccc;\n height: 3.5rem;\n overflow: hidden;\n}\n#ixv #top-bar .top-bar-controls {\n position: absolute;\n right: 1.8rem;\n top: 0;\n line-height: 3.5rem;\n}\n#ixv #top-bar .top-bar-controls * {\n vertical-align: middle;\n}\n#ixv #top-bar .top-bar-controls .content input {\n position: relative;\n top: -0.1rem;\n margin-right: 0.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key {\n margin-left: 0.6rem;\n margin-right: 1.5rem;\n position: relative;\n}\n#ixv #top-bar .top-bar-controls .highlight-key::before {\n font-family: viewericons;\n content: "\\ea16";\n font-size: 1.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content {\n position: absolute;\n top: 3.2rem;\n left: -2rem;\n background: #fff;\n border: solid 1px #595959;\n border-radius: 0.3rem;\n line-height: 1.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .arrow {\n position: absolute;\n top: 0;\n left: 1.1rem;\n width: 1.5rem;\n height: 1.5rem;\n border-top: solid 0.1rem #595959;\n border-left: solid 0.1rem #595959;\n transform: translate(50%, -50%) rotate(45deg);\n background: #fff;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item {\n white-space: nowrap;\n margin: 1rem;\n position: relative;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample {\n display: inline-block;\n width: 3.2rem;\n height: 1.6rem;\n margin-right: 1rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-0 {\n background: hsl(90, 69%, 85%);\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-1 {\n background: #eaa8ff;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-2 {\n background: hsl(48, 100%, 85%);\n}\n#ixv #top-bar .top-bar-controls .validation-warning {\n margin-left: 0.5rem;\n font-size: 1.6rem;\n display: none;\n cursor: pointer;\n}\n#ixv #top-bar .top-bar-controls .validation-warning::before {\n font-family: viewericons;\n content: "\\ea1d";\n}\n#ixv #inspector {\n display: flex;\n flex-direction: column;\n /* inspector body */\n width: 25%;\n position: absolute;\n top: 3.5rem;\n right: 0;\n bottom: 0;\n box-sizing: border-box;\n overflow: hidden;\n border-left: solid 0.1rem #cbcbcb;\n}\n#ixv #inspector h1,\n#ixv #inspector h2,\n#ixv #inspector h3 {\n font-weight: normal;\n border-bottom: solid 1px #cbcbcb;\n width: 100%;\n box-sizing: border-box;\n padding-bottom: 5px;\n color: #444444;\n}\n#ixv #inspector h2 {\n text-align: center;\n}\n#ixv #inspector h3 {\n font-size: 1.4rem;\n}\n#ixv #inspector h4 {\n font-weight: bold;\n color: #444444;\n margin-bottom: 1.4em;\n}\n#ixv #inspector #inspector-head {\n padding: 0;\n position: relative;\n border-bottom: solid 1px #cbcbcb;\n}\n#ixv #inspector #inspector-head .title {\n text-align: center;\n position: relative;\n border-bottom: solid 0.1rem #cbcbcb;\n}\n#ixv #inspector #inspector-head .title h1 {\n margin: 0.8rem 0;\n border: none;\n padding: 0;\n font-size: 1.8rem;\n line-height: 3.2rem;\n}\n#ixv #inspector #inspector-head .title .back {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n top: 0;\n left: 0;\n position: absolute;\n}\n#ixv #inspector #inspector-head .title .back::before {\n font-family: viewericons;\n content: "\\ea05";\n}\n#ixv #inspector #inspector-head .title .menu {\n top: 0;\n right: 0;\n position: absolute;\n}\n#ixv #inspector #inspector-head .title .menu .menu-title::before {\n font-family: viewericons;\n content: "\\ea0c";\n font-size: 2rem;\n}\n#ixv #inspector #inspector-head .controls {\n position: relative;\n height: 3.2rem;\n margin: 0.8rem 0.9rem;\n}\n#ixv #inspector #inspector-head .controls .search-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n position: absolute;\n top: 0;\n left: 7.7rem;\n}\n#ixv #inspector #inspector-head .controls .search-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .search-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .search-button::before {\n font-family: viewericons;\n content: "\\ea17";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .outline-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n position: absolute;\n top: 0;\n left: 3.6rem;\n}\n#ixv #inspector #inspector-head .controls .outline-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .outline-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .outline-button::before {\n font-family: viewericons;\n content: "\\ea14";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .summary-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n position: absolute;\n top: 0;\n left: 0;\n}\n#ixv #inspector #inspector-head .controls .summary-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .summary-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .summary-button::before {\n font-family: viewericons;\n content: "\\ea19";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .next-prev {\n position: absolute;\n top: 0;\n right: 0;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag,\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n position: relative;\n display: inline-block;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag:last-of-type,\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag:first-of-type,\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag::before {\n font-family: viewericons;\n content: "\\ea06";\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag::before {\n font-family: viewericons;\n content: "\\ea05";\n}\n#ixv #inspector #inspector-head .search-controls {\n margin: 0.8rem 0.9rem;\n}\n#ixv #inspector #inspector-head .search-controls .search-input {\n display: flex;\n padding: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-input input#ixbrl-search {\n flex-grow: 1;\n margin-right: 1rem;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle::before {\n font-family: viewericons;\n content: "\\ea10";\n}\n#ixv #inspector #inspector-head .search-controls:not(.show-filters) .search-filters {\n display: none;\n}\n#ixv #inspector #inspector-head .search-controls.show-filters .filter-toggle {\n color: #026dce;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters {\n position: relative;\n max-height: 60vh;\n overflow-y: auto;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .reset {\n cursor: pointer;\n color: #026dce;\n position: absolute;\n right: 0;\n top: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters h3 {\n border: none;\n font-weight: bold;\n padding-bottom: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n margin-bottom: 0.4em;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group .control-label {\n white-space: nowrap;\n margin-right: 2em;\n width: 6em;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group input,\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group select,\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-group textarea {\n flex-basis: 12em;\n flex-grow: 2;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .control-label {\n font-weight: bold;\n margin-bottom: 0.6em;\n margin-top: 0.8em;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters select {\n width: 100%;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .checkboxes {\n display: flex;\n flex-wrap: wrap;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .checkboxes > div {\n margin: 1.2rem 0;\n flex-grow: 1;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .checkboxes > div input {\n vertical-align: middle;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .filter-info {\n text-align: center;\n font-style: italic;\n font-size: 1.1rem;\n}\n#ixv #inspector .inspector-body {\n flex-grow: 1;\n width: 100%;\n position: relative;\n overflow: hidden;\n /* search results */\n}\n#ixv #inspector .inspector-body .no-fact-overlay,\n#ixv #inspector .inspector-body .no-outline-overlay {\n display: block;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 80%;\n text-align: center;\n color: #b2b2b2;\n}\n#ixv #inspector .inspector-body .no-fact-overlay .no-fact-overlay-icon::before,\n#ixv #inspector .inspector-body .no-outline-overlay .no-fact-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea1a";\n font-size: 10rem;\n}\n#ixv #inspector .inspector-body .no-fact-overlay .no-outline-overlay-icon::before,\n#ixv #inspector .inspector-body .no-outline-overlay .no-outline-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea14";\n font-size: 10rem;\n}\n#ixv #inspector .inspector-body .no-fact-overlay .title,\n#ixv #inspector .inspector-body .no-outline-overlay .title {\n font-size: x-large;\n}\n#ixv #inspector .inspector-body .inspector-body-fact {\n overflow-y: auto;\n height: 100%;\n position: relative;\n}\n#ixv #inspector .inspector-body .search-results {\n overflow-y: auto;\n height: 100%;\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay {\n transform: translate(-50%, -50%);\n position: absolute;\n top: 50%;\n left: 50%;\n color: #b2b2b2;\n width: 85%;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-icon {\n text-align: center;\n font-size: 10rem;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea17";\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-text {\n text-align: center;\n font-size: medium;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-text .title {\n font-size: x-large;\n}\n#ixv #inspector .inspector-body .search-results .select-icon {\n float: right;\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem #cbcbcb;\n background-color: #f8f8f8;\n line-height: 3rem;\n margin: 0 0.5rem;\n cursor: pointer;\n color: #026dce;\n}\n#ixv #inspector .inspector-body .search-results .select-icon:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector .inspector-body .search-results .select-icon:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector .inspector-body .search-results .select-icon:first-of-type {\n margin-left: 0.5rem;\n}\n#ixv #inspector .inspector-body .search-results .select-icon::before {\n font-family: viewericons;\n content: "\\ea18";\n}\n#ixv #inspector .inspector-body .search-results .more-results {\n cursor: pointer;\n color: #026dce;\n padding: 1rem;\n text-align: center;\n}\n#ixv #inspector .inspector-body .outline {\n overflow-y: auto;\n height: 100%;\n}\n#ixv #inspector .inspector-body .summary {\n overflow-y: auto;\n height: 100%;\n}\n#ixv #inspector .inspector-body .body {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .std-label {\n margin-left: 30px;\n min-height: 20px;\n position: relative;\n}\n#ixv #inspector .std-label::before {\n color: #026dce;\n content: "\\2022";\n position: absolute;\n top: -5px;\n left: -20px;\n font-size: x-large;\n}\n#ixv #inspector #concept {\n margin-top: 20px;\n font-size: small;\n min-height: 25px;\n}\n#ixv #inspector #dimensions {\n margin-left: 2rem;\n margin-right: 2rem;\n margin-bottom: 1rem;\n}\n#ixv #inspector #dimensions .dimension {\n position: relative;\n margin: 1.5rem 0 1.5rem 1rem;\n}\n#ixv #inspector #dimensions .dimension::before {\n font-family: viewericons;\n content: "\\ea0d";\n color: #026dce;\n position: absolute;\n top: 0;\n left: -2.3rem;\n font-size: 120%;\n}\n#ixv #inspector #dimensions .dimension-value {\n position: relative;\n margin: 1.5rem 0 1.5rem 3.5rem;\n}\n#ixv #inspector #dimensions .dimension-value::before {\n font-family: viewericons;\n content: "\\ea0e";\n position: absolute;\n color: #026dce;\n top: 0;\n left: -2.3rem;\n font-size: 120%;\n}\n#ixv #inspector .analyse {\n cursor: pointer;\n padding-left: 0.7rem;\n color: #026dce;\n}\n#ixv #inspector .analyse::before {\n font-family: viewericons;\n content: "\\ea11";\n position: relative;\n top: 1px;\n}\n#ixv #inspector .inspector-body-fact .tags {\n position: absolute;\n top: 1.5rem;\n right: 0.9rem;\n}\n#ixv #inspector .target-document-tag {\n display: inline-block;\n text-transform: uppercase;\n font-weight: bold;\n background-color: #8a8a8a;\n padding: 0.15em 0.5em;\n color: #fff;\n border-radius: 0.3em;\n margin: 0.2rem 0.3rem 0.2rem 0;\n white-space: nowrap;\n}\n#ixv #inspector .hidden-fact-tag,\n#ixv #inspector .html-hidden-fact-tag {\n display: inline-block;\n text-transform: uppercase;\n font-weight: bold;\n background-color: #8a8a8a;\n padding: 0.15em 0.5em;\n color: #fff;\n border-radius: 0.3em;\n margin: 0.2rem 0.3rem 0.2rem 0;\n white-space: nowrap;\n}\n#ixv #inspector .hidden-fact-tag.html-hidden-fact-tag,\n#ixv #inspector .html-hidden-fact-tag.html-hidden-fact-tag {\n background-color: #c63018;\n}\n#ixv #inspector table.fact-properties {\n table-layout: fixed;\n width: 100%;\n}\n#ixv #inspector table.fact-properties th {\n width: 75px;\n text-align: right;\n padding-right: 20px;\n color: #444444;\n}\n#ixv #inspector table.fact-properties th,\n#ixv #inspector table.fact-properties td {\n padding-top: 2px;\n padding-bottom: 2px;\n}\n#ixv #inspector table.fact-properties tr.value .show-all {\n color: #026dce;\n cursor: pointer;\n}\n#ixv #inspector table.fact-properties tr.value:not(.truncated) .show-all {\n display: none;\n}\n#ixv #inspector table.fact-properties tr.value.text-block .expand-text-block {\n color: #026dce;\n cursor: pointer;\n}\n#ixv #inspector table.fact-properties tr.value.text-block .expand-text-block::before {\n font-family: viewericons;\n content: "\\ea1b";\n}\n#ixv #inspector table.fact-properties td {\n overflow: hidden;\n text-overflow: ellipsis;\n color: #7d7d7d;\n}\n#ixv #inspector table.fact-properties tr.uri > td {\n white-space: nowrap;\n}\n#ixv #inspector .duplicates {\n text-align: center;\n width: 100%;\n height: 3.2rem;\n line-height: 3.2rem;\n}\n#ixv #inspector .duplicates > * {\n vertical-align: middle;\n}\n#ixv #inspector .duplicates .text {\n margin: 0 5px;\n}\n#ixv #inspector .duplicates .next,\n#ixv #inspector .duplicates .prev {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: #595959;\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n position: relative;\n display: inline-block;\n}\n#ixv #inspector .duplicates .prev::before {\n font-family: viewericons;\n content: "\\ea05";\n}\n#ixv #inspector .duplicates .next::before {\n font-family: viewericons;\n content: "\\ea06";\n}\n#ixv #inspector .concept td > div {\n display: flex;\n}\n#ixv #inspector .concept td > div span.text {\n white-space: nowrap;\n position: relative;\n flex-shrink: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n#ixv #inspector .concept td > div span.filler {\n width: 0.7rem;\n display: inline-block;\n flex-shrink: 1000;\n}\n#ixv #inspector .concept td > div span.copy-icon {\n flex-shrink: 0;\n}\n#ixv #inspector .documentation {\n margin-top: 10px;\n margin-left: 30px;\n font-style: italic;\n font-family: serif;\n}\n#ixv #inspector a {\n text-decoration: none;\n color: #026dce;\n}\n#ixv #inspector a:hover {\n text-decoration: underline;\n}\n#ixv #inspector .inspector-section {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .collapsible-section .collapsible-body {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .collapsible-section .collapsible-header {\n position: relative;\n padding-left: 12px;\n cursor: pointer;\n user-select: none;\n white-space: nowrap;\n}\n#ixv #inspector .collapsible-section .collapsible-header::before {\n font-family: viewericons;\n content: "\\ea06";\n font-size: 1.8rem;\n position: relative;\n top: 0.4rem;\n left: -0.3rem;\n transform: rotate(90deg);\n transition: all 0.25s ease;\n display: inline-block;\n}\n#ixv #inspector .collapsible-section .collapsible-header .collapsible-subheader {\n user-select: none;\n font-weight: normal;\n font-style: italic;\n font-size: 1.3rem;\n color: #7d7d7d;\n}\n#ixv #inspector .collapsible-section.collapsed .collapsible-header::before {\n transform: rotate(0);\n top: 0.3rem;\n left: -0.2rem;\n}\n#ixv #inspector .collapsible-section.collapsed .collapsible-subheader {\n color: #026dce;\n}\n#ixv #inspector .collapsible-section .footnote-details {\n display: none;\n}\n#ixv #inspector .collapsible-section .calculations .card .title {\n position: relative;\n}\n#ixv #inspector .collapsible-section .calculations .card .title .inconsistent-flag {\n padding-right: 0.75rem;\n position: relative;\n top: 0.2rem;\n color: #d8ae15;\n}\n#ixv #inspector .collapsible-section .calculations .card .title .inconsistent-flag::before {\n font-family: viewericons;\n content: "\\ea08";\n}\n#ixv #inspector .collapsible-section .calculations .card .title .consistent-flag {\n padding-right: 0.75rem;\n position: relative;\n top: 0.2rem;\n color: #66ca00;\n}\n#ixv #inspector .collapsible-section .calculations .card .title .consistent-flag::before {\n font-family: viewericons;\n content: "\\ea09";\n}\n#ixv #inspector .collapsible-section .calculations .card .title .unchecked-flag {\n padding-right: 0.5rem;\n position: relative;\n top: 0.2rem;\n}\n#ixv #inspector .collapsible-section .calculations .card .title .unchecked-flag::before {\n font-family: viewericons;\n content: "\\ea16";\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table {\n width: 100%;\n border-collapse: collapse;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item td {\n padding: 5px 0;\n line-height: 1.8rem;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item td.value {\n text-align: right;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item:not(.calc-fact-link, .total) .concept-name {\n color: #777;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link {\n cursor: pointer;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link .concept-name,\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link .value {\n color: #026dce;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.linked-highlight,\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link:hover {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.total td {\n border-top: solid 1px #cbcbcb;\n padding-bottom: 1.2rem;\n}\n#ixv #inspector .collapsible-section .calculations .calculation-details-link {\n color: #026dce;\n cursor: pointer;\n}\n#ixv #inspector .reset-multiselect {\n float: right;\n line-height: 0;\n position: relative;\n bottom: 1rem;\n cursor: pointer;\n}\n#ixv #inspector .reset-multiselect::after {\n font-family: viewericons;\n content: "\\ea0b";\n}\n#ixv #inspector:not(.no-fact-selected) .no-fact-overlay {\n display: none;\n}\n#ixv #inspector.no-fact-selected .fact-selected-only {\n display: none;\n}\n#ixv #inspector:not(.hidden-fact) .hidden-fact-tag {\n display: none;\n}\n#ixv #inspector:not(.html-hidden-fact) .html-hidden-fact-tag {\n display: none;\n}\n#ixv #inspector.search-mode #inspector-head .controls .search-button {\n color: #fff;\n border-color: #0085e6;\n background-color: #0094ff;\n}\n#ixv #inspector.outline-mode #inspector-head .controls .outline-button {\n color: #fff;\n border-color: #0085e6;\n background-color: #0094ff;\n}\n#ixv #inspector.summary-mode #inspector-head .controls .summary-button {\n color: #fff;\n border-color: #0085e6;\n background-color: #0094ff;\n}\n#ixv #inspector .powered-by {\n font-size: 1.2rem;\n text-align: center;\n flex-shrink: 0;\n background: #fff;\n width: 100%;\n height: 3rem;\n margin: 0;\n box-sizing: border-box;\n border-top: solid 0.1rem #cbcbcb;\n position: relative;\n}\n#ixv #inspector .powered-by img {\n box-sizing: border-box;\n height: 3rem;\n padding: 0.5rem;\n}\n#ixv #inspector .powered-by .version {\n position: absolute;\n top: 0;\n right: 5px;\n font-size: small;\n line-height: 3rem;\n color: #999;\n}\n#ixv #inspector:not(.search-mode) .search-mode-only {\n display: none;\n}\n#ixv #inspector:not(.outline-mode) .outline-mode-only {\n display: none;\n}\n#ixv #inspector:not(.summary-mode) .summary-mode-only {\n display: none;\n}\n#ixv #inspector.search-mode .fact-mode-only,\n#ixv #inspector.summary-mode .fact-mode-only,\n#ixv #inspector.outline-mode .fact-mode-only {\n display: none;\n}\n#ixv #inspector:not(.footnote-mode) .footnote-mode-only {\n display: none;\n}\n#ixv #inspector.footnote-mode .footnote-mode-off {\n display: none;\n}\n#ixv #inspector .failed-to-load-mask {\n display: none;\n}\n#ixv #inspector.failed-to-load .failed-to-load-mask {\n display: block;\n background-color: rgba(0, 0, 0, 0.5);\n position: absolute;\n width: 100%;\n height: 100%;\n}\n#ixv #inspector.search-ready .search-not-ready-only {\n display: none;\n}\n#ixv #inspector:not(.search-ready) .search-ready-only {\n display: none;\n}\n#ixv #inspector:not(.search-ready) .search-results {\n background-color: rgba(0, 0, 0, 0.5);\n}\n#ixv .fact-link {\n cursor: pointer;\n color: #026dce;\n}\n#ixv .fact-link:hover {\n outline: solid 0.125em #026dce;\n outline-offset: 0.0625em;\n}\n#ixv .fact-list .fact-list-item {\n margin: 0.5rem 0;\n padding: 0.3rem 0.9rem;\n background-color: #f8f8f8;\n cursor: pointer;\n position: relative;\n border-left: solid 0.4rem #f8f8f8;\n}\n#ixv .fact-list .fact-list-item > * {\n margin: 0.8rem 0;\n}\n#ixv .fact-list .fact-list-item > .tags {\n margin: 0.6rem 0;\n}\n#ixv .fact-list .fact-list-item:hover {\n background-color: #f3f3f3;\n}\n#ixv .fact-list .fact-list-item.selected {\n border-left: solid 0.4rem #0085e6;\n background-color: #f3f3f3;\n}\n#ixv .fact-list .fact-list-item.linked-highlight {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\n#ixv .fact-list .fact-list-item .title {\n color: #444444;\n font-weight: bold;\n}\n#ixv .fact-list .fact-list-item .dimension {\n color: #595959;\n margin: 0.6rem 0;\n}\n#ixv .fact-list .fact-list-item .hidden {\n display: inline-block;\n text-transform: uppercase;\n font-weight: bold;\n background-color: #8a8a8a;\n padding: 0.15em 0.5em;\n color: #fff;\n border-radius: 0.3em;\n margin: 0.2rem 0.3rem 0.2rem 0;\n white-space: nowrap;\n}\n#ixv .fact-list .fact-list-item.selected .title {\n font-weight: bold;\n}\n#ixv .fact-list .fact-list-item.selected .dimension {\n color: #595959;\n}\n#ixv .dialog-mask {\n background-color: rgba(0, 0, 0, 0.6);\n position: fixed;\n inset: 0;\n z-index: 10;\n display: none;\n}\n#ixv .popup-content {\n display: none;\n}\n#ixv .copy-icon {\n color: #026dce;\n border-radius: 0.3rem;\n}\n#ixv .copy-icon:active {\n background-color: #026dce;\n color: #fff;\n}\n#ixv .copy-icon::before {\n font-family: viewericons;\n content: "\\ea0a";\n cursor: pointer;\n}\n`,""]),t.exports=a},95:(t,e,n)=>{var i=n(758),r=n(935),s=n(62),o=n(987),a=r(i),l=s(o);a.push([t.id,`@font-face {\n font-family: viewericons;\n src: url(${l});\n font-weight: normal;\n font-style: normal;\n}\n/* Styles common to both inspector and highlighting used within iframe */\n.linked-highlight-text {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n}\n.linked-highlight-cell {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight) {\n background-color: hsl(90, 69%, 85%) !important;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-1 {\n background-color: #eaa8ff !important;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-2 {\n background-color: hsl(48, 100%, 85%) !important;\n}\n.review.review-highlight-untagged-numbers .review-untagged-number {\n background-color: #eaa8ff;\n}\n.review.review-highlight-untagged-dates .review-untagged-date {\n background-color: hsl(48, 100%, 85%);\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight) {\n background-color: hsl(90, 69%, 85%) !important;\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-1 {\n background-color: hsl(90, 69%, 85%) !important;\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-2 {\n background-color: hsl(90, 69%, 85%) !important;\n}\ndiv:not(.ixbrl-no-highlight).ixbrl-selected,\nspan:not(.ixbrl-no-highlight).ixbrl-selected {\n outline: solid 0.125em #0094ff;\n outline-offset: 0.0625em;\n}\ndiv:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\nspan:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\ndiv:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected),\nspan:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected) {\n outline: dashed 0.125em #0094ff;\n outline-offset: 0.0625em;\n}\n:not(.ixbrl-no-highlight).ixbrl-element,\n:not(.ixbrl-no-highlight).ixbrl-sub-element {\n cursor: pointer;\n}\n:not(.ixbrl-no-highlight).ixbrl-element.ixbrl-related,\n:not(.ixbrl-no-highlight).ixbrl-sub-element.ixbrl-related {\n outline: dashed 0.125em #0eb30e;\n}\n:not(.ixbrl-no-highlight).ixbrl-element.ixbrl-related:not(td, th),\n:not(.ixbrl-no-highlight).ixbrl-sub-element.ixbrl-related:not(td, th) {\n outline-offset: 0.0625em;\n}\ntd:not(.ixbrl-no-highlight).ixbrl-selected,\nth:not(.ixbrl-no-highlight).ixbrl-selected {\n outline: solid 0.125em #0094ff !important;\n outline-offset: -0.0625em !important;\n}\ntd:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\nth:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\ntd:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected),\nth:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected) {\n outline: dashed 0.125em #0094ff !important;\n outline-offset: -0.0625em !important;\n}\ntd.ixbrl-related,\nth.ixbrl-related {\n outline-offset: -0.0625em !important;\n}\n.ixbrl-related.ixbrl-linked-highlight:not(.ixbrl-no-highlight),\n.ixbrl-linked-highlight:not(.ixbrl-no-highlight) {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n}\ntd.ixbrl-related.ixbrl-linked-highlight:not(.ixbrl-no-highlight),\ntd.ixbrl-linked-highlight:not(.ixbrl-no-highlight) {\n outline: dashed 0.125em #026dce;\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\ndiv.ixbrl-table-handle {\n position: absolute;\n left: 0;\n cursor: pointer;\n width: 0;\n height: 0;\n border: 0.4rem solid transparent;\n border-bottom-color: #66ca00;\n top: -0.8rem;\n}\ndiv.ixbrl-table-handle::after {\n content: "";\n position: absolute;\n left: -0.4rem;\n top: 0.4rem;\n width: 0;\n height: 0;\n border: 0.4rem solid transparent;\n border-top-color: #66ca00;\n}\ndiv.ixbrl-table-handle > span {\n display: none;\n white-space: nowrap;\n}\ndiv.ixbrl-table-handle:hover {\n border: none;\n color: #fff;\n transition: width 0.3s;\n width: 9rem;\n height: initial;\n left: -0.1rem;\n padding: 0;\n z-index: 1;\n}\ndiv.ixbrl-table-handle:hover::after {\n display: none;\n}\ndiv.ixbrl-table-handle:hover > span {\n border: solid 0.1rem #fff;\n font-family: sans-serif;\n display: block;\n padding: 0.7rem 1.5rem 0.7rem 2.5rem;\n background-color: #66ca00;\n}\ndiv.ixbrl-table-handle:hover > span::before {\n font-family: viewericons;\n content: "\\ea0f";\n position: absolute;\n left: 0.8rem;\n font-size: 1.2rem;\n}\n`,""]),t.exports=a},935:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,r,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(i)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(o[l]=!0)}for(var c=0;c<t.length;c++){var u=[].concat(t[c]);i&&o[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),e.push(u))}},e}},62:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},758:t=>{"use strict";t.exports=function(t){return t[1]}},60:function(t,e,n){var i,r;void 0===(r="function"==typeof(i=function(){"use strict";function e(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){a(i.response,e,n)},i.onerror=function(){console.error("could not download file")},i.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function r(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,o=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,n,o){var a=s.URL||s.webkitURL,l=document.createElement("a");n=n||t.name||"download",l.download=n,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?r(l):i(l.href)?e(t,n,o):r(l,l.target="_blank")):(l.href=a.createObjectURL(t),setTimeout((function(){a.revokeObjectURL(l.href)}),4e4),setTimeout((function(){r(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,s){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,s),n);else if(i(t))e(t,n,s);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout((function(){r(o)}))}}:function(t,n,i,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,n,i);var a="application/octet-stream"===t.type,l=/constructor/i.test(s.HTMLElement)||s.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&l||o)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},u.readAsDataURL(t)}else{var d=s.URL||s.webkitURL,h=d.createObjectURL(t);r?r.location=h:location.href=h,r=null,setTimeout((function(){d.revokeObjectURL(h)}),4e4)}});s.saveAs=a.saveAs=a,t.exports=a})?i.apply(e,[]):i)||(t.exports=r)},793:t=>{t.exports='\x3c!--\nSee COPYRIGHT.md for copyright information\n--\x3e\n\n<div class="fact-details">\n <h4 data-i18n="factDetails.concept">Concept</h4>\n <div class="std-label"></div>\n <div class="documentation"></div>\n <h4 id="dimensions-label" data-i18n="factDetails.dimensions">Dimensions</h4>\n <div id="dimensions"></div>\n <h4 data-i18n="factDetails.properties">Properties</h4>\n <table class="fact-properties">\n <tr class="period">\n <th data-i18n="factDetails.date">Date</th>\n <td></td>\n </tr>\n <tr class="value">\n <th data-i18n="factDetails.factValue">Fact Value</th>\n <td><span class="value"></span> <span class="show-all">[...]</span> <span class="expand-text-block"></span></td>\n </tr>\n <tr class="accuracy">\n <th data-i18n="factDetails.accuracy">Accuracy</th>\n <td></td>\n </tr>\n <tr class="scale">\n <th data-i18n="factDetails.scale">Scale</th>\n <td></td>\n </tr>\n <tr class="change">\n <th data-i18n="factDetails.change">Change</th>\n <td></td>\n </tr>\n <tr class="entity-identifier">\n <th data-i18n="factDetails.entity">Entity</th>\n <td></td>\n </tr>\n <tr class="concept">\n <th data-i18n="factDetails.concept">Concept</th>\n <td><div><span class="text"></span><span class="filler"></span><span class="clipboard-copy copy-icon"></span></div></td>\n </tr>\n </table>\n <div class="duplicates">\n <span class="prev"></span> \n <span class="text"></span> \n <span class="next"></span>\n </div>\n</div>\n'},643:t=>{t.exports='\x3c!--\nSee COPYRIGHT.md for copyright information\n--\x3e\n\n<div>\n <table class="fact-properties">\n <tr class="value">\n <th data-i18n="footnotes.footnote">Footnote</th>\n <td><span class="value"></span> <span class="show-all">[...]</span></td>\n </tr>\n </table>\n</div>\n'},87:(t,e,n)=>{var i=`\x3c!--\nSee COPYRIGHT.md for copyright information\n--\x3e\n\n<div id="ixv" xmlns="http://www.w3.org/1999/xhtml">\n <div class="loader loading">\n <span class="text" data-i18n="inspector.loadingViewer">Loading iXBRL Viewer</span>\n </div>\n <div id="top-bar">\n <img class="header" alt="Inline Viewer logo" src="${n(778)}"/>\n <div class="document-title"></div>\n <div class="top-bar-controls" id="toolbar-highlight-menu">\n <b data-i18n="inspector.highlight">Highlight:</b><span class="highlight-key popup-trigger"><div class="popup-content">\n <div class="arrow"></div>\n <div class="items"></div>\n </div></span><span class="content"></span>\n <span class="validation-warning" title="Report has validation errors"></span>\n </div>\n </div>\n <div id="inspector" class="no-fact-selected">\n <div id="inspector-head">\n <div class="title">\n <h1 class="footnote-mode-off" data-i18n="inspector.factProperties">Fact Properties</h1>\n <h1 class="footnote-mode-only" data-i18n="inspector.footnoteProperties">Footnote Properties</h1>\n <div class="back search-mode-only">\n </div>\n <div class="back summary-mode-only">\n </div>\n <div class="back outline-mode-only">\n </div>\n <div class="menu" id="display-options-menu">\n <div class="menu-title"></div>\n <div class="content-container">\n <div class="content"></div>\n </div>\n </div>\n </div>\n <div class="controls">\n <div class="summary-button" data-i18n="[title]inspector.documentSummary" title="Document summary">\n </div>\n <div class="outline-button" data-i18n="[title]inspector.documentOutline" title="Document outline">\n </div>\n <div class="search-button" data-i18n="[title]inspector.searchTitle" title="Search">\n </div>\n <div class="next-prev">\n <span class="ixbrl-prev-tag" data-i18n="[title]inspector.previousTag" title="Previous tag"></span><span class="ixbrl-next-tag" data-i18n="[title]inspector.nextTag" title="Next tag"></span>\n </div>\n </div>\n\n <div class="search-controls search-mode-only">\n <div class="search-input">\n <input id="ixbrl-search" type="text" aria-label="Search iXBRL report" disabled="disabled"/>\n <div class="filter-toggle"></div>\n </div>\n <div class="search-filters">\n <div class="reset" data-i18n="inspector.reset">Reset</div>\n <h3 data-i18n="inspector.filter">Filter</h3>\n <div class="filter-group">\n <div class="control-label" data-i18n="inspector.conceptType">\n Concept Type\n </div>\n <select id="search-filter-concept-type">\n <option value="*">-</option>\n <option value="numeric" data-i18n="inspector.numericOption">Numeric</option>\n <option value="text" data-i18n="inspector.textOption">Text</option>\n </select>\n </div>\n\n <div class="filter-group">\n <div class="control-label" data-i18n="inspector.factValue">\n Fact Value\n </div>\n <select id="search-filter-fact-value">\n <option value="*">-</option>\n <option value="negative" data-i18n="inspector.negative">Negative</option>\n <option value="positive" data-i18n="inspector.positive">Positive</option>\n </select>\n </div>\n\n <div class="checkboxes">\n <div>\n <label class="checkbox">\n <input id="search-hidden-fact-filter" type="checkbox" checked="checked"/> <span data-i18n="inspector.hiddenFacts">Hidden Facts</span>\n <span class="checkmark"></span>\n </label>\n </div>\n <div>\n <label class="checkbox">\n <input id="search-visible-fact-filter" type="checkbox" checked="checked"/> <span data-i18n="inspector.visibleFacts">Visible Facts</span>\n <span class="checkmark"></span>\n </label>\n </div>\n </div>\n\n <div id="search-filter-period" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <span data-i18n="inspector.period">Period</span>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body" style="display: none;">\n <span class="reset-multiselect"></span>\n <select multiple="multiple">\n </select>\n </div>\n </div>\n\n <div id="search-filter-namespaces" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <span data-i18n="inspector.namespaces">Namespaces</span>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body namespaces" style="display: none;">\n <span class="reset-multiselect"></span>\n <select multiple="multiple">\n </select>\n </div>\n </div>\n\n <div id="search-filter-target-document" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <span data-i18n="inspector.targetDocument">Target Document</span>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body target-document" style="display: none;">\n <span class="reset-multiselect"></span>\n <select multiple="multiple">\n </select>\n </div>\n </div>\n\n <div id="search-filter-units" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <span data-i18n="inspector.units">Units</span>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body units" style="display: none;">\n <span class="reset-multiselect"></span>\n <select multiple="multiple">\n </select>\n </div>\n </div>\n\n <div id="search-filter-scales" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <span data-i18n="inspector.scales">Scales</span>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body scales" style="display: none;">\n <span class="reset-multiselect"></span>\n <select multiple="multiple">\n </select>\n </div>\n </div>\n\n <div id="search-filter-dimension-type" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <span data-i18n="inspector.dimensions">Dimension Type</span>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body dimensions" style="display: none;">\n <span class="reset-multiselect"></span>\n <select multiple="multiple" size="2">\n <option value="explicit" data-i18n="inspector.explicitDimension">Explicit Dimensions</option>\n <option value="typed" data-i18n="inspector.typedDimensions">Typed Dimensions</option>\n </select>\n </div>\n </div>\n\n <div id="search-filter-calculations" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <span data-i18n="inspector.calculations">Calculations</span>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body calculations" style="display: none;">\n <span class="reset-multiselect"></span>\n <select multiple="multiple" size="2">\n <option value="summation" data-i18n="inspector.summation">Summation</option>\n <option value="contributor" data-i18n="inspector.contributor">Contributor</option>\n </select>\n </div>\n </div>\n\n <div class="filter-info">\n <span id="matching-facts-count">?</span>\n <span data-i18n="inspector.matchingFacts"> matching facts(s)</span>\n </div>\n </div>\n </div>\n </div> \x3c!-- inspector-head --\x3e\n\n <div class="inspector-body">\n <div class="fact-mode-only inspector-body-fact">\n <div class="no-fact-overlay">\n <div class="no-fact-overlay-icon"></div>\n <p class="title" data-i18n="inspector.noFactSelected">No Fact Selected</p>\n </div>\n <div class="fact-selected-only">\n <div class="tags">\n <div class="target-document-tag"></div>\n <div class="hidden-fact-tag" data-i18n="inspector.hiddenFact">Hidden Fact</div>\n <div class="html-hidden-fact-tag" data-i18n="inspector.concealedFact">Concealed Fact</div>\n </div>\n <div class="collapsible-section">\n <div class="fact-inspector collapsible-body">\n </div>\n </div>\n <div class="footnote-mode-off">\n <div class="collapsible-section anchoring">\n <h3 class="collapsible-header" data-i18n="inspector.anchoring">Anchoring</h3>\n <div class="collapsible-body">\n <h4 data-i18n="inspector.widerAnchor">Wider anchor</h4>\n <div class="anchors-wider">\n </div>\n <h4 data-i18n="inspector.narrowerAnchor">Narrower anchors</h4>\n <div class="anchors-narrower">\n </div>\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header" data-i18n="inspector.references">References</h3>\n <div class="collapsible-body references">\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header" data-i18n="inspector.calculations">Calculations</h3>\n <div class="collapsible-body calculations">\n <div class="tree"></div>\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header" data-i18n="inspector.footnotes">Footnotes</h3>\n <div class="collapsible-body footnotes fact-list">\n </div>\n </div>\n <div class="collapsible-section footnote-facts-section">\n <h3 class="collapsible-header" data-i18n="inspector.associatedFacts">Associated Facts</h3>\n <div class="collapsible-body footnote-facts fact-list">\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header" data-i18n="inspector.fact-groups">Sections</h3>\n <div class="collapsible-body fact-groups fact-list">\n </div>\n </div>\n </div>\n <div class="footnote-details footnote-mode-only">\n <div class="collapsible-section">\n <h3 class="collapsible-header" data-i18n="inspector.associatedFacts">Associated facts</h3>\n <div class="collapsible-body footnote-facts fact-list">\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div class="search-results search-mode-only">\n <div class="results fact-list">\n </div>\n <div class="search-overlay">\n <div class="search-overlay-icon"></div>\n <div class="search-overlay-text search-ready-only"><p class="title" data-i18n="inspector.factSearch">Fact Search</p><p class="text">Please enter some search terms</p></div>\n <div class="search-overlay-text search-not-ready-only"><p class="title" data-i18n="inspector.factSearch">Fact Search</p><p class="text">Please wait - building index...</p></div>\n </div>\n </div>\n\n <div class="outline outline-mode-only">\n <div class="no-outline-overlay">\n <div class="no-outline-overlay-icon"></div>\n <p class="title" data-i18n="inspector.outlineUnavailable">Outline Unavailable</p>\n </div>\n <div class="body">\n </div>\n </div>\n\n <div class="summary summary-mode-only">\n <div class="body">\n <div class="collapsible-section fact-summary">\n <h3 class="collapsible-header" data-i18n="inspector.summary.fact.header">Fact Summary</h3>\n <div class="collapsible-body">\n <div class="total-facts-value">\n <span class="total-facts-title" data-i18n="inspector.summary.fact.title">Total Facts:</span>\n </div>\n </div>\n </div>\n <div class="collapsible-section tag-summary">\n <h3 class="collapsible-header" data-i18n="inspector.summary.tag.header">Tag Summary</h3>\n <div class="collapsible-body">\n <div class="tag-summary-body">\n <table>\n <thead>\n <tr>\n <th scope="col" class="namespace"><div data-i18n="inspector.summary.tag.colNamespace">Namespace</div></th>\n <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colPrimaryItems">Primary Items</div></th>\n <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colDimensions">Dimensions</div></th>\n <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colMembers">Members</div></th>\n <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colTotal">Total</div></th>\n </tr>\n </thead>\n <tbody class="tag-summary-table-body">\n </tbody>\n <tfoot>\n <tr class="tag-summary-table-footer-row">\n <th scope="row" data-i18n="inspector.summary.tag.rowTotal">Total</th>\n </tr>\n </tfoot>\n </table>\n </div>\n </div>\n </div>\n <div class="collapsible-section files-summary">\n <h3 class="collapsible-header" data-i18n="inspector.summary.file.header">File Summary</h3>\n <div class="collapsible-body">\n <div class="file-summary-container">\n <div class="files inline-docs">\n <span class="files-summary-title" data-i18n="inspector.summary.file.inline">Inline Documents</span>\n <ul></ul>\n </div>\n <div class="files schemas">\n <span class="files-summary-title" data-i18n="inspector.summary.file.schemas">Schemas</span>\n <ul></ul>\n </div>\n <div class="files pres-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.presentation">Presentation Linkbases</span>\n <ul></ul>\n </div>\n <div class="files calc-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.calculations">Calculation Linkbases</span>\n <ul></ul>\n </div>\n <div class="files def-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.definitions">Definition Linkbases</span>\n <ul></ul>\n </div>\n <div class="files label-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.labels">Label Linkbases</span>\n <ul></ul>\n </div>\n <div class="files ref-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.references">Reference Linkbases</span>\n <ul></ul>\n </div>\n <div class="files other-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.other">Other Linkbases</span>\n <ul></ul>\n </div>\n </div>\n </div>\n </div>\n <div class="collapsible-section report-creation">\n <h3 class="collapsible-header" data-i18n="inspector.summary.reportCreation">Report Creation</h3>\n <div class="collapsible-body">\n <ul></ul>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n <div class="inspector-foot powered-by">\n <a href="https://arelle.org" target="_blank"><img alt="Arelle logo (opens in new window)" src="${n(59)}"/></a>\n <div class="version"></div>\n </div>\n <div class="failed-to-load-mask"></div>\n </div>\n <div class="dialog-mask">\n </div>\n <div id="dialog-container"></div>\n <div id="dialog-templates">\n <div class="dialog full-screen chart">\n <div class="close"></div>\n <div class="contents">\n <div class="chart-container"><canvas id="chart-canvas"></canvas></div>\n <div class="other-aspects"></div>\n </div>\n </div>\n <div class="dialog validation-report">\n <div class="close"></div>\n <div class="contents">\n <h2 data-i18n="inspector.validationResults">Validation results</h2>\n <table>\n <thead>\n <th data-i18n="inspector.validationSeverity">Severity</th>\n <th data-i18n="inspector.validationCode">Code</th>\n <th data-i18n="inspector.validationMessage">Message</th>\n </thead>\n <tbody>\n\n </tbody>\n </table>\n <div class="buttons">\n </div>\n </div>\n </div>\n <div class="dialog calculation-inspector">\n <div class="close"></div>\n <div class="contents">\n <h2 data-i18n="inspector.calculationDetails">Calculation details</h2>\n <table class="calculation-trace">\n <thead>\n <tr>\n <th class="weight"></th>\n <th class="line-item" data-i18n="calculation.concept">Concept</th>\n <th class="value-column" data-i18n="calculation.reported-value">Reported Value</th>\n <th class="icons"></th>\n <th class="value-column calc11-only" data-i18n="calculation.mininum">Minimum</th>\n <th class="value-column calc11-only" data-i18n="calculation.maximum">Maximum</th>\n </tr>\n </thead>\n <tbody>\n </tbody>\n <tfoot>\n <tr>\n <td colspan="6" class="status"><span class="icon"></span> <span class="message"></span></td>\n </tr>\n </tfoot>\n </table>\n <div class="buttons">\n </div>\n </div>\n </div>\n <div class="dialog text-block-viewer">\n <div class="close"></div>\n <div class="contents">\n <h2 class="title"></h2>\n <iframe id="text-block-viewer-iframe"></iframe>\n <div class="controls">\n <label class="checkbox">\n <input id="text-block-viewer-plain-text" type="checkbox"/> <span data-i18n="inspector.showTextOnly">Show text only</span>\n <span class="checkmark"></span>\n </label>\n </div>\n <div class="buttons">\n </div>\n </div>\n </div>\n <div class="dialog message-box">\n <div class="close"></div>\n <div class="contents">\n <h2 class="title"></h2>\n <div class="message">\n </div>\n <div class="buttons">\n </div>\n </div>\n </div>\n </div>\n <div id="viewer-pane">\n <div class="ixds-tabs"><div class="tab-area"></div></div>\n <div id="iframe-container">\n <div class="zoom-in">+</div>\n <div class="zoom-out">-</div>\n <div class="print" title="Print Document" data-i18n="[title]inspector.printDocument"></div>\n </div>\n <div class="resize"></div>\n <div class="resize-spacer"></div>\n </div>\n</div>\n`;t.exports=i},806:function(t,e,n){(t=n.nmd(t)).exports=function(){"use strict";function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function n(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,f(i.key),i)}}function o(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=c(t);if(e){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return d(t)}(this,n)}}function p(){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},p.apply(this,arguments)}function f(t){var e=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}var g=function(t){return!(!t||!t.Window)&&t instanceof t.Window},m=void 0,v=void 0;function y(t){m=t;var e=t.document.createTextNode("");e.ownerDocument!==t.document&&"function"==typeof t.wrap&&t.wrap(e)===e&&(t=t.wrap(t)),v=t}function b(t){return g(t)?t:(t.ownerDocument||t).defaultView||v.window}"undefined"!=typeof window&&window&&y(window);var x=function(t){return!!t&&"object"===i(t)},w=function(t){return"function"==typeof t},A=function(t){return t===v||g(t)},_=function(t){return x(t)&&11===t.nodeType},C=x,M=w,k=function(t){return"number"==typeof t},S=function(t){return"boolean"==typeof t},I=function(t){return"string"==typeof t},L=function(t){if(!t||"object"!==i(t))return!1;var e=b(t)||v;return/object|function/.test("undefined"==typeof Element?"undefined":i(Element))?t instanceof Element||t instanceof e.Element:1===t.nodeType&&"string"==typeof t.nodeName},D=function(t){return x(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},T=function(t){return x(t)&&void 0!==t.length&&w(t.splice)};function N(t){var e=t.interaction;if("drag"===e.prepared.name){var n=e.prepared.axis;"x"===n?(e.coords.cur.page.y=e.coords.start.page.y,e.coords.cur.client.y=e.coords.start.client.y,e.coords.velocity.client.y=0,e.coords.velocity.page.y=0):"y"===n&&(e.coords.cur.page.x=e.coords.start.page.x,e.coords.cur.client.x=e.coords.start.client.x,e.coords.velocity.client.x=0,e.coords.velocity.page.x=0)}}function O(t){var e=t.iEvent,n=t.interaction;if("drag"===n.prepared.name){var i=n.prepared.axis;if("x"===i||"y"===i){var r="x"===i?"y":"x";e.page[r]=n.coords.start.page[r],e.client[r]=n.coords.start.client[r],e.delta[r]=0}}}var j={id:"actions/drag",install:function(t){var e=t.actions,n=t.Interactable,i=t.defaults;n.prototype.draggable=j.draggable,e.map.drag=j,e.methodDict.drag="draggable",i.actions.drag=j.defaults},listeners:{"interactions:before-action-move":N,"interactions:action-resume":N,"interactions:action-move":O,"auto-start:check":function(t){var e=t.interaction,n=t.interactable,i=t.buttons,r=n.options.drag;if(r&&r.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||i&n.options.drag.mouseButtons))return t.action={name:"drag",axis:"start"===r.lockAxis?r.startAxis:r.lockAxis},!1}},draggable:function(t){return C(t)?(this.options.drag.enabled=!1!==t.enabled,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):S(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:N,move:O,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return 0===t.search("drag")}},E=j,z={init:function(t){var e=t;z.document=e.document,z.DocumentFragment=e.DocumentFragment||F,z.SVGElement=e.SVGElement||F,z.SVGSVGElement=e.SVGSVGElement||F,z.SVGElementInstance=e.SVGElementInstance||F,z.Element=e.Element||F,z.HTMLElement=e.HTMLElement||z.Element,z.Event=e.Event,z.Touch=e.Touch||F,z.PointerEvent=e.PointerEvent||e.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function F(){}var P=z,R={init:function(t){var e=P.Element,n=t.navigator||{};R.supportsTouch="ontouchstart"in t||M(t.DocumentTouch)&&P.document instanceof t.DocumentTouch,R.supportsPointerEvent=!1!==n.pointerEnabled&&!!P.PointerEvent,R.isIOS=/iP(hone|od|ad)/.test(n.platform),R.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),R.isIe9=/MSIE 9/.test(n.userAgent),R.isOperaMobile="Opera"===n.appName&&R.supportsTouch&&/Presto/.test(n.userAgent),R.prefixedMatchesSelector="matches"in e.prototype?"matches":"webkitMatchesSelector"in e.prototype?"webkitMatchesSelector":"mozMatchesSelector"in e.prototype?"mozMatchesSelector":"oMatchesSelector"in e.prototype?"oMatchesSelector":"msMatchesSelector",R.pEventTypes=R.supportsPointerEvent?P.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,R.wheelEvent=P.document&&"onmousewheel"in P.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},Y=R;function U(t,e){if(t.contains)return t.contains(e);for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function B(t,e){for(;L(t);){if(H(t,e))return t;t=W(t)}return null}function W(t){var e=t.parentNode;if(_(e)){for(;(e=e.host)&&_(e););return e}return e}function H(t,e){return v!==m&&(e=e.replace(/\/deep\//g," ")),t[Y.prefixedMatchesSelector](e)}var V=function(t){return t.parentNode||t.host};function Z(t,e){for(var n,i=[],r=t;(n=V(r))&&r!==e&&n!==r.ownerDocument;)i.unshift(r),r=n;return i}function G(t,e,n){for(;L(t);){if(H(t,e))return!0;if((t=W(t))===n)return H(t,e)}return!1}function Q(t){return t.correspondingUseElement||t}function J(t){var e=t instanceof P.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return e&&{left:e.left,right:e.right,top:e.top,bottom:e.bottom,width:e.width||e.right-e.left,height:e.height||e.bottom-e.top}}function X(t){var e,n=J(t);if(!Y.isIOS7&&n){var i={x:(e=(e=b(t))||v).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop};n.left+=i.x,n.right+=i.x,n.top+=i.y,n.bottom+=i.y}return n}function q(t){for(var e=[];t;)e.push(t),t=W(t);return e}function $(t){return!!I(t)&&(P.document.querySelector(t),!0)}function K(t,e){for(var n in e)t[n]=e[n];return t}function tt(t,e,n){return"parent"===t?W(n):"self"===t?e.getRect(n):B(n,t)}function et(t,e,n,i){var r=t;return I(r)?r=tt(r,e,n):M(r)&&(r=r.apply(void 0,i)),L(r)&&(r=X(r)),r}function nt(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function it(t){return!t||"x"in t&&"y"in t||((t=K({},t)).x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function rt(t,e,n){t.left&&(e.left+=n.x),t.right&&(e.right+=n.x),t.top&&(e.top+=n.y),t.bottom&&(e.bottom+=n.y),e.width=e.right-e.left,e.height=e.bottom-e.top}function st(t,e,n){var i=n&&t.options[n];return nt(et(i&&i.origin||t.options.origin,t,e,[t&&e]))||{x:0,y:0}}function ot(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(t){return!0},i=arguments.length>3?arguments[3]:void 0;if(i=i||{},I(t)&&-1!==t.search(" ")&&(t=at(t)),T(t))return t.forEach((function(t){return ot(t,e,n,i)})),i;if(C(t)&&(e=t,t=""),M(e)&&n(t))i[t]=i[t]||[],i[t].push(e);else if(T(e))for(var r=0,s=e;r<s.length;r++){var o=s[r];ot(t,o,n,i)}else if(C(e))for(var a in e)ot(at(a).map((function(e){return"".concat(t).concat(e)})),e[a],n,i);return i}function at(t){return t.trim().split(/ +/)}var lt=function(t,e){return Math.sqrt(t*t+e*e)},ct=["webkit","moz"];function ut(t,e){t.__set||(t.__set={});var n=function(n){if(ct.some((function(t){return 0===n.indexOf(t)})))return 1;"function"!=typeof t[n]&&"__set"!==n&&Object.defineProperty(t,n,{get:function(){return n in t.__set?t.__set[n]:t.__set[n]=e[n]},set:function(e){t.__set[n]=e},configurable:!0})};for(var i in e)n(i);return t}function dt(t,e){t.page=t.page||{},t.page.x=e.page.x,t.page.y=e.page.y,t.client=t.client||{},t.client.x=e.client.x,t.client.y=e.client.y,t.timeStamp=e.timeStamp}function ht(t){t.page.x=0,t.page.y=0,t.client.x=0,t.client.y=0}function pt(t){return t instanceof P.Event||t instanceof P.Touch}function ft(t,e,n){return t=t||"page",(n=n||{}).x=e[t+"X"],n.y=e[t+"Y"],n}function gt(t,e){return e=e||{x:0,y:0},Y.isOperaMobile&&pt(t)?(ft("screen",t,e),e.x+=window.scrollX,e.y+=window.scrollY):ft("page",t,e),e}function mt(t){return k(t.pointerId)?t.pointerId:t.identifier}function vt(t){var e=[];return T(t)?(e[0]=t[0],e[1]=t[1]):"touchend"===t.type?1===t.touches.length?(e[0]=t.touches[0],e[1]=t.changedTouches[0]):0===t.touches.length&&(e[0]=t.changedTouches[0],e[1]=t.changedTouches[1]):(e[0]=t.touches[0],e[1]=t.touches[1]),e}function yt(t){for(var e={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n<t.length;n++){var i=t[n];for(var r in e)e[r]+=i[r]}for(var s in e)e[s]/=t.length;return e}function bt(t){if(!t.length)return null;var e=vt(t),n=Math.min(e[0].pageX,e[1].pageX),i=Math.min(e[0].pageY,e[1].pageY),r=Math.max(e[0].pageX,e[1].pageX),s=Math.max(e[0].pageY,e[1].pageY);return{x:n,y:i,left:n,top:i,right:r,bottom:s,width:r-n,height:s-i}}function xt(t,e){var n=e+"X",i=e+"Y",r=vt(t),s=r[0][n]-r[1][n],o=r[0][i]-r[1][i];return lt(s,o)}function wt(t,e){var n=e+"X",i=e+"Y",r=vt(t),s=r[1][n]-r[0][n],o=r[1][i]-r[0][i];return 180*Math.atan2(o,s)/Math.PI}function At(t){return I(t.pointerType)?t.pointerType:k(t.pointerType)?[void 0,void 0,"touch","pen","mouse"][t.pointerType]:/touch/.test(t.type||"")||t instanceof P.Touch?"touch":"mouse"}function _t(t){var e=M(t.composedPath)?t.composedPath():t.path;return[Q(e?e[0]:t.target),Q(t.currentTarget)]}var Ct=function(){function t(e){r(this,t),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=e}return o(t,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),t}();Object.defineProperty(Ct.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Mt=function(t,e){for(var n=0;n<e.length;n++){var i=e[n];t.push(i)}return t},kt=function(t){return Mt([],t)},St=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n,t))return n;return-1},It=function(t,e){return t[St(t,e)]},Lt=function(t){l(n,t);var e=h(n);function n(t,i,s){var o;r(this,n),(o=e.call(this,i._interaction)).dropzone=void 0,o.dragEvent=void 0,o.relatedTarget=void 0,o.draggable=void 0,o.propagationStopped=!1,o.immediatePropagationStopped=!1;var a="dragleave"===s?t.prev:t.cur,l=a.element,c=a.dropzone;return o.type=s,o.target=l,o.currentTarget=l,o.dropzone=c,o.dragEvent=i,o.relatedTarget=i.target,o.draggable=i.interactable,o.timeStamp=i.timeStamp,o}return o(n,[{key:"reject",value:function(){var t=this,e=this._interaction.dropState;if("dropactivate"===this.type||this.dropzone&&e.cur.dropzone===this.dropzone&&e.cur.element===this.target)if(e.prev.dropzone=this.dropzone,e.prev.element=this.target,e.rejected=!0,e.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){var i=e.activeDrops,r=St(i,(function(e){var n=e.dropzone,i=e.element;return n===t.dropzone&&i===t.target}));e.activeDrops.splice(r,1);var s=new n(e,this.dragEvent,"dropdeactivate");s.dropzone=this.dropzone,s.target=this.target,this.dropzone.fire(s)}else this.dropzone.fire(new n(e,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),n}(Ct);function Dt(t,e){for(var n=0,i=t.slice();n<i.length;n++){var r=i[n],s=r.dropzone,o=r.element;e.dropzone=s,e.target=o,s.fire(e),e.propagationStopped=e.immediatePropagationStopped=!1}}function Tt(t,e){for(var n=function(t,e){for(var n=[],i=0,r=t.interactables.list;i<r.length;i++){var s=r[i];if(s.options.drop.enabled){var o=s.options.drop.accept;if(!(L(o)&&o!==e||I(o)&&!H(e,o)||M(o)&&!o({dropzone:s,draggableElement:e})))for(var a=0,l=s.getAllElements();a<l.length;a++){var c=l[a];c!==e&&n.push({dropzone:s,element:c,rect:s.getRect(c)})}}}return n}(t,e),i=0;i<n.length;i++){var r=n[i];r.rect=r.dropzone.getRect(r.element)}return n}function Nt(t,e,n){for(var i=t.dropState,r=t.interactable,s=t.element,o=[],a=0,l=i.activeDrops;a<l.length;a++){var c=l[a],u=c.dropzone,d=c.element,h=c.rect,p=u.dropCheck(e,n,r,s,d,h);o.push(p?d:null)}var f=function(t){for(var e,n,i,r=[],s=0;s<t.length;s++){var o=t[s],a=t[e];if(o&&s!==e)if(a){var l=V(o),c=V(a);if(l!==o.ownerDocument)if(c!==o.ownerDocument)if(l!==c){r=r.length?r:Z(a);var u=void 0;if(a instanceof P.HTMLElement&&o instanceof P.SVGElement&&!(o instanceof P.SVGSVGElement)){if(o===c)continue;u=o.ownerSVGElement}else u=o;for(var d=Z(u,a.ownerDocument),h=0;d[h]&&d[h]===r[h];)h++;var p=[d[h-1],d[h],r[h]];if(p[0])for(var f=p[0].lastChild;f;){if(f===p[1]){e=s,r=d;break}if(f===p[2])break;f=f.previousSibling}}else i=a,(parseInt(b(n=o).getComputedStyle(n).zIndex,10)||0)>=(parseInt(b(i).getComputedStyle(i).zIndex,10)||0)&&(e=s);else e=s}else e=s}return e}(o);return i.activeDrops[f]||null}function Ot(t,e,n){var i=t.dropState,r={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return"dragstart"===n.type&&(r.activate=new Lt(i,n,"dropactivate"),r.activate.target=null,r.activate.dropzone=null),"dragend"===n.type&&(r.deactivate=new Lt(i,n,"dropdeactivate"),r.deactivate.target=null,r.deactivate.dropzone=null),i.rejected||(i.cur.element!==i.prev.element&&(i.prev.dropzone&&(r.leave=new Lt(i,n,"dragleave"),n.dragLeave=r.leave.target=i.prev.element,n.prevDropzone=r.leave.dropzone=i.prev.dropzone),i.cur.dropzone&&(r.enter=new Lt(i,n,"dragenter"),n.dragEnter=i.cur.element,n.dropzone=i.cur.dropzone)),"dragend"===n.type&&i.cur.dropzone&&(r.drop=new Lt(i,n,"drop"),n.dropzone=i.cur.dropzone,n.relatedTarget=i.cur.element),"dragmove"===n.type&&i.cur.dropzone&&(r.move=new Lt(i,n,"dropmove"),n.dropzone=i.cur.dropzone)),r}function jt(t,e){var n=t.dropState,i=n.activeDrops,r=n.cur,s=n.prev;e.leave&&s.dropzone.fire(e.leave),e.enter&&r.dropzone.fire(e.enter),e.move&&r.dropzone.fire(e.move),e.drop&&r.dropzone.fire(e.drop),e.deactivate&&Dt(i,e.deactivate),n.prev.dropzone=r.dropzone,n.prev.element=r.element}function Et(t,e){var n=t.interaction,i=t.iEvent,r=t.event;if("dragmove"===i.type||"dragend"===i.type){var s=n.dropState;e.dynamicDrop&&(s.activeDrops=Tt(e,n.element));var o=i,a=Nt(n,o,r);s.rejected=s.rejected&&!!a&&a.dropzone===s.cur.dropzone&&a.element===s.cur.element,s.cur.dropzone=a&&a.dropzone,s.cur.element=a&&a.element,s.events=Ot(n,0,o)}}var zt={id:"actions/drop",install:function(t){var e=t.actions,n=t.interactStatic,i=t.Interactable,r=t.defaults;t.usePlugin(E),i.prototype.dropzone=function(t){return function(t,e){if(C(e)){if(t.options.drop.enabled=!1!==e.enabled,e.listeners){var n=ot(e.listeners),i=Object.keys(n).reduce((function(t,e){return t[/^(enter|leave)/.test(e)?"drag".concat(e):/^(activate|deactivate|move)/.test(e)?"drop".concat(e):e]=n[e],t}),{}),r=t.options.drop.listeners;r&&t.off(r),t.on(i),t.options.drop.listeners=i}return M(e.ondrop)&&t.on("drop",e.ondrop),M(e.ondropactivate)&&t.on("dropactivate",e.ondropactivate),M(e.ondropdeactivate)&&t.on("dropdeactivate",e.ondropdeactivate),M(e.ondragenter)&&t.on("dragenter",e.ondragenter),M(e.ondragleave)&&t.on("dragleave",e.ondragleave),M(e.ondropmove)&&t.on("dropmove",e.ondropmove),/^(pointer|center)$/.test(e.overlap)?t.options.drop.overlap=e.overlap:k(e.overlap)&&(t.options.drop.overlap=Math.max(Math.min(1,e.overlap),0)),"accept"in e&&(t.options.drop.accept=e.accept),"checker"in e&&(t.options.drop.checker=e.checker),t}return S(e)?(t.options.drop.enabled=e,t):t.options.drop}(this,t)},i.prototype.dropCheck=function(t,e,n,i,r,s){return function(t,e,n,i,r,s,o){var a=!1;if(!(o=o||t.getRect(s)))return!!t.options.drop.checker&&t.options.drop.checker(e,n,a,t,s,i,r);var l=t.options.drop.overlap;if("pointer"===l){var c=st(i,r,"drag"),u=gt(e);u.x+=c.x,u.y+=c.y;var d=u.x>o.left&&u.x<o.right,h=u.y>o.top&&u.y<o.bottom;a=d&&h}var p=i.getRect(r);if(p&&"center"===l){var f=p.left+p.width/2,g=p.top+p.height/2;a=f>=o.left&&f<=o.right&&g>=o.top&&g<=o.bottom}return p&&k(l)&&(a=Math.max(0,Math.min(o.right,p.right)-Math.max(o.left,p.left))*Math.max(0,Math.min(o.bottom,p.bottom)-Math.max(o.top,p.top))/(p.width*p.height)>=l),t.options.drop.checker&&(a=t.options.drop.checker(e,n,a,t,s,i,r)),a}(this,t,e,n,i,r,s)},n.dynamicDrop=function(e){return S(e)?(t.dynamicDrop=e,n):t.dynamicDrop},K(e.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),e.methodDict.drop="dropzone",t.dynamicDrop=!1,r.actions.drop=zt.defaults},listeners:{"interactions:before-action-start":function(t){var e=t.interaction;"drag"===e.prepared.name&&(e.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(t,e){var n=t.interaction,i=(t.event,t.iEvent);if("drag"===n.prepared.name){var r=n.dropState;r.activeDrops=[],r.events={},r.activeDrops=Tt(e,n.element),r.events=Ot(n,0,i),r.events.activate&&(Dt(r.activeDrops,r.events.activate),e.fire("actions/drop:start",{interaction:n,dragEvent:i}))}},"interactions:action-move":Et,"interactions:after-action-move":function(t,e){var n=t.interaction,i=t.iEvent;if("drag"===n.prepared.name){var r=n.dropState;jt(n,r.events),e.fire("actions/drop:move",{interaction:n,dragEvent:i}),r.events={}}},"interactions:action-end":function(t,e){if("drag"===t.interaction.prepared.name){var n=t.interaction,i=t.iEvent;Et(t,e),jt(n,n.dropState.events),e.fire("actions/drop:end",{interaction:n,dragEvent:i})}},"interactions:stop":function(t){var e=t.interaction;if("drag"===e.prepared.name){var n=e.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:Tt,getDrop:Nt,getDropEvents:Ot,fireDropEvents:jt,filterEventType:function(t){return 0===t.search("drag")||0===t.search("drop")},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Ft=zt;function Pt(t){var e=t.interaction,n=t.iEvent,i=t.phase;if("gesture"===e.prepared.name){var r=e.pointers.map((function(t){return t.pointer})),s="start"===i,o="end"===i,a=e.interactable.options.deltaSource;if(n.touches=[r[0],r[1]],s)n.distance=xt(r,a),n.box=bt(r),n.scale=1,n.ds=0,n.angle=wt(r,a),n.da=0,e.gesture.startDistance=n.distance,e.gesture.startAngle=n.angle;else if(o||e.pointers.length<2){var l=e.prevEvent;n.distance=l.distance,n.box=l.box,n.scale=l.scale,n.ds=0,n.angle=l.angle,n.da=0}else n.distance=xt(r,a),n.box=bt(r),n.scale=n.distance/e.gesture.startDistance,n.angle=wt(r,a),n.ds=n.scale-e.gesture.scale,n.da=n.angle-e.gesture.angle;e.gesture.distance=n.distance,e.gesture.angle=n.angle,k(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(e.gesture.scale=n.scale)}}var Rt={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var e=t.actions,n=t.Interactable,i=t.defaults;n.prototype.gesturable=function(t){return C(t)?(this.options.gesture.enabled=!1!==t.enabled,this.setPerAction("gesture",t),this.setOnEvents("gesture",t),this):S(t)?(this.options.gesture.enabled=t,this):this.options.gesture},e.map.gesture=Rt,e.methodDict.gesture="gesturable",i.actions.gesture=Rt.defaults},listeners:{"interactions:action-start":Pt,"interactions:action-move":Pt,"interactions:action-end":Pt,"interactions:new":function(t){t.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(t){if(!(t.interaction.pointers.length<2)){var e=t.interactable.options.gesture;if(e&&e.enabled)return t.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(t){return 0===t.search("gesture")}},Yt=Rt;function Ut(t,e,n,i,r,s,o){if(!e)return!1;if(!0===e){var a=k(s.width)?s.width:s.right-s.left,l=k(s.height)?s.height:s.bottom-s.top;if(o=Math.min(o,Math.abs(("left"===t||"right"===t?a:l)/2)),a<0&&("left"===t?t="right":"right"===t&&(t="left")),l<0&&("top"===t?t="bottom":"bottom"===t&&(t="top")),"left"===t){var c=a>=0?s.left:s.right;return n.x<c+o}if("top"===t){var u=l>=0?s.top:s.bottom;return n.y<u+o}if("right"===t)return n.x>(a>=0?s.right:s.left)-o;if("bottom"===t)return n.y>(l>=0?s.bottom:s.top)-o}return!!L(i)&&(L(e)?e===i:G(i,e,r))}function Bt(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.resizeAxes){var i=e;n.interactable.options.resize.square?("y"===n.resizeAxes?i.delta.x=i.delta.y:i.delta.y=i.delta.x,i.axes="xy"):(i.axes=n.resizeAxes,"x"===n.resizeAxes?i.delta.y=0:"y"===n.resizeAxes&&(i.delta.x=0))}}var Wt,Ht,Vt={id:"actions/resize",before:["actions/drag"],install:function(t){var e=t.actions,n=t.browser,i=t.Interactable,r=t.defaults;Vt.cursors=function(t){return t.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),Vt.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,i.prototype.resizable=function(e){return function(t,e,n){return C(e)?(t.options.resize.enabled=!1!==e.enabled,t.setPerAction("resize",e),t.setOnEvents("resize",e),I(e.axis)&&/^x$|^y$|^xy$/.test(e.axis)?t.options.resize.axis=e.axis:null===e.axis&&(t.options.resize.axis=n.defaults.actions.resize.axis),S(e.preserveAspectRatio)?t.options.resize.preserveAspectRatio=e.preserveAspectRatio:S(e.square)&&(t.options.resize.square=e.square),t):S(e)?(t.options.resize.enabled=e,t):t.options.resize}(this,e,t)},e.map.resize=Vt,e.methodDict.resize="resizable",r.actions.resize=Vt.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){!function(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=e,r=n.rect;n._rects={start:K({},r),corrected:K({},r),previous:K({},r),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},i.edges=n.prepared.edges,i.rect=n._rects.corrected,i.deltaRect=n._rects.delta}}(t),Bt(t)},"interactions:action-move":function(t){!function(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=e,r=n.interactable.options.resize.invert,s="reposition"===r||"negate"===r,o=n.rect,a=n._rects,l=a.start,c=a.corrected,u=a.delta,d=a.previous;if(K(d,c),s){if(K(c,o),"reposition"===r){if(c.top>c.bottom){var h=c.top;c.top=c.bottom,c.bottom=h}if(c.left>c.right){var p=c.left;c.left=c.right,c.right=p}}}else c.top=Math.min(o.top,l.bottom),c.bottom=Math.max(o.bottom,l.top),c.left=Math.min(o.left,l.right),c.right=Math.max(o.right,l.left);for(var f in c.width=c.right-c.left,c.height=c.bottom-c.top,c)u[f]=c[f]-d[f];i.edges=n.prepared.edges,i.rect=c,i.deltaRect=u}}(t),Bt(t)},"interactions:action-end":function(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=e;i.edges=n.prepared.edges,i.rect=n._rects.corrected,i.deltaRect=n._rects.delta}},"auto-start:check":function(t){var e=t.interaction,n=t.interactable,i=t.element,r=t.rect,s=t.buttons;if(r){var o=K({},e.coords.cur.page),a=n.options.resize;if(a&&a.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||s&a.mouseButtons)){if(C(a.edges)){var l={left:!1,right:!1,top:!1,bottom:!1};for(var c in l)l[c]=Ut(c,a.edges[c],o,e._latestPointer.eventTarget,i,r,a.margin||Vt.defaultMargin);l.left=l.left&&!l.right,l.top=l.top&&!l.bottom,(l.left||l.right||l.top||l.bottom)&&(t.action={name:"resize",edges:l})}else{var u="y"!==a.axis&&o.x>r.right-Vt.defaultMargin,d="x"!==a.axis&&o.y>r.bottom-Vt.defaultMargin;(u||d)&&(t.action={name:"resize",axes:(u?"x":"")+(d?"y":"")})}return!t.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(t){var e=t.edges,n=t.axis,i=t.name,r=Vt.cursors,s=null;if(n)s=r[i+n];else if(e){for(var o="",a=0,l=["top","bottom","left","right"];a<l.length;a++){var c=l[a];e[c]&&(o+=c)}s=r[o]}return s},filterEventType:function(t){return 0===t.search("resize")},defaultMargin:null},Zt=Vt,Gt={id:"actions",install:function(t){t.usePlugin(Yt),t.usePlugin(Zt),t.usePlugin(E),t.usePlugin(Ft)}},Qt=0,Jt=function(t){return Wt(t)},Xt=function(t){return Ht(t)},qt=function(t){if(Wt=t.requestAnimationFrame,Ht=t.cancelAnimationFrame,!Wt)for(var e=["ms","moz","webkit","o"],n=0;n<e.length;n++){var i=e[n];Wt=t["".concat(i,"RequestAnimationFrame")],Ht=t["".concat(i,"CancelAnimationFrame")]||t["".concat(i,"CancelRequestAnimationFrame")]}Wt=Wt&&Wt.bind(t),Ht=Ht&&Ht.bind(t),Wt||(Wt=function(e){var n=Date.now(),i=Math.max(0,16-(n-Qt)),r=t.setTimeout((function(){e(n+i)}),i);return Qt=n+i,r},Ht=function(t){return clearTimeout(t)})},$t={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(t){$t.isScrolling=!0,Xt($t.i),t.autoScroll=$t,$t.interaction=t,$t.prevTime=$t.now(),$t.i=Jt($t.scroll)},stop:function(){$t.isScrolling=!1,$t.interaction&&($t.interaction.autoScroll=null),Xt($t.i)},scroll:function(){var t=$t.interaction,e=t.interactable,n=t.element,i=t.prepared.name,r=e.options[i].autoScroll,s=Kt(r.container,e,n),o=$t.now(),a=(o-$t.prevTime)/1e3,l=r.speed*a;if(l>=1){var c={x:$t.x*l,y:$t.y*l};if(c.x||c.y){var u=te(s);A(s)?s.scrollBy(c.x,c.y):s&&(s.scrollLeft+=c.x,s.scrollTop+=c.y);var d=te(s),h={x:d.x-u.x,y:d.y-u.y};(h.x||h.y)&&e.fire({type:"autoscroll",target:n,interactable:e,delta:h,interaction:t,container:s})}$t.prevTime=o}$t.isScrolling&&(Xt($t.i),$t.i=Jt($t.scroll))},check:function(t,e){var n;return null==(n=t.options[e].autoScroll)?void 0:n.enabled},onInteractionMove:function(t){var e=t.interaction,n=t.pointer;if(e.interacting()&&$t.check(e.interactable,e.prepared.name))if(e.simulation)$t.x=$t.y=0;else{var i,r,s,o,a=e.interactable,l=e.element,c=e.prepared.name,u=a.options[c].autoScroll,d=Kt(u.container,a,l);if(A(d))o=n.clientX<$t.margin,i=n.clientY<$t.margin,r=n.clientX>d.innerWidth-$t.margin,s=n.clientY>d.innerHeight-$t.margin;else{var h=J(d);o=n.clientX<h.left+$t.margin,i=n.clientY<h.top+$t.margin,r=n.clientX>h.right-$t.margin,s=n.clientY>h.bottom-$t.margin}$t.x=r?1:o?-1:0,$t.y=s?1:i?-1:0,$t.isScrolling||($t.margin=u.margin,$t.speed=u.speed,$t.start(e))}}};function Kt(t,e,n){return(I(t)?tt(t,e,n):t)||b(n)}function te(t){return A(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var ee={id:"auto-scroll",install:function(t){var e=t.defaults,n=t.actions;t.autoScroll=$t,$t.now=function(){return t.now()},n.phaselessTypes.autoscroll=!0,e.perAction.autoScroll=$t.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,$t.stop(),$t.interaction&&($t.interaction=null)},"interactions:stop":$t.stop,"interactions:action-move":function(t){return $t.onInteractionMove(t)}}},ne=ee;function ie(t,e){var n=!1;return function(){return n||(v.console.warn(e),n=!0),t.apply(this,arguments)}}function re(t,e){return t.name=e.name,t.axis=e.axis,t.edges=e.edges,t}function se(t){return S(t)?(this.options.styleCursor=t,this):null===t?(delete this.options.styleCursor,this):this.options.styleCursor}function oe(t){return M(t)?(this.options.actionChecker=t,this):null===t?(delete this.options.actionChecker,this):this.options.actionChecker}var ae={id:"auto-start/interactableMethods",install:function(t){var e=t.Interactable;e.prototype.getAction=function(e,n,i,r){var s=function(t,e,n,i,r){var s=t.getRect(i),o={action:null,interactable:t,interaction:n,element:i,rect:s,buttons:e.buttons||{0:1,1:4,3:8,4:16}[e.button]};return r.fire("auto-start:check",o),o.action}(this,n,i,r,t);return this.options.actionChecker?this.options.actionChecker(e,n,s,this,r,i):s},e.prototype.ignoreFrom=ie((function(t){return this._backCompatOption("ignoreFrom",t)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),e.prototype.allowFrom=ie((function(t){return this._backCompatOption("allowFrom",t)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),e.prototype.actionChecker=oe,e.prototype.styleCursor=se}};function le(t,e,n,i,r){return e.testIgnoreAllow(e.options[t.name],n,i)&&e.options[t.name].enabled&&he(e,n,t,r)?t:null}function ce(t,e,n,i,r,s,o){for(var a=0,l=i.length;a<l;a++){var c=i[a],u=r[a],d=c.getAction(e,n,t,u);if(d){var h=le(d,c,u,s,o);if(h)return{action:h,interactable:c,element:u}}}return{action:null,interactable:null,element:null}}function ue(t,e,n,i,r){var s=[],o=[],a=i;function l(t){s.push(t),o.push(a)}for(;L(a);){s=[],o=[],r.interactables.forEachMatch(a,l);var c=ce(t,e,n,s,o,i,r);if(c.action&&!c.interactable.options[c.action.name].manualStart)return c;a=W(a)}return{action:null,interactable:null,element:null}}function de(t,e,n){var i=e.action,r=e.interactable,s=e.element;i=i||{name:null},t.interactable=r,t.element=s,re(t.prepared,i),t.rect=r&&i.name?r.getRect(s):null,ge(t,n),n.fire("autoStart:prepared",{interaction:t})}function he(t,e,n,i){var r=t.options,s=r[n.name].max,o=r[n.name].maxPerElement,a=i.autoStart.maxInteractions,l=0,c=0,u=0;if(!(s&&o&&a))return!1;for(var d=0,h=i.interactions.list;d<h.length;d++){var p=h[d],f=p.prepared.name;if(p.interacting()){if(++l>=a)return!1;if(p.interactable===t){if((c+=f===n.name?1:0)>=s)return!1;if(p.element===e&&(u++,f===n.name&&u>=o))return!1}}}return a>0}function pe(t,e){return k(t)?(e.autoStart.maxInteractions=t,this):e.autoStart.maxInteractions}function fe(t,e,n){var i=n.autoStart.cursorElement;i&&i!==t&&(i.style.cursor=""),t.ownerDocument.documentElement.style.cursor=e,t.style.cursor=e,n.autoStart.cursorElement=e?t:null}function ge(t,e){var n=t.interactable,i=t.element,r=t.prepared;if("mouse"===t.pointerType&&n&&n.options.styleCursor){var s="";if(r.name){var o=n.options[r.name].cursorChecker;s=M(o)?o(r,n,i,t._interacting):e.actions.map[r.name].getCursor(r)}fe(t.element,s||"",e)}else e.autoStart.cursorElement&&fe(e.autoStart.cursorElement,"",e)}var me={id:"auto-start/base",before:["actions"],install:function(t){var e=t.interactStatic,n=t.defaults;t.usePlugin(ae),n.base.actionChecker=null,n.base.styleCursor=!0,K(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),e.maxInteractions=function(e){return pe(e,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:he,cursorElement:null}},listeners:{"interactions:down":function(t,e){var n=t.interaction,i=t.pointer,r=t.event,s=t.eventTarget;n.interacting()||de(n,ue(n,i,r,s,e),e)},"interactions:move":function(t,e){!function(t,e){var n=t.interaction,i=t.pointer,r=t.event,s=t.eventTarget;"mouse"!==n.pointerType||n.pointerIsDown||n.interacting()||de(n,ue(n,i,r,s,e),e)}(t,e),function(t,e){var n=t.interaction;if(n.pointerIsDown&&!n.interacting()&&n.pointerWasMoved&&n.prepared.name){e.fire("autoStart:before-start",t);var i=n.interactable,r=n.prepared.name;r&&i&&(i.options[r].manualStart||!he(i,n.element,n.prepared,e)?n.stop():(n.start(n.prepared,i,n.element),ge(n,e)))}}(t,e)},"interactions:stop":function(t,e){var n=t.interaction,i=n.interactable;i&&i.options.styleCursor&&fe(n.element,"",e)}},maxInteractions:pe,withinInteractionLimit:he,validateAction:le},ve=me,ye={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,e){var n=t.interaction,i=t.eventTarget,r=t.dx,s=t.dy;if("drag"===n.prepared.name){var o=Math.abs(r),a=Math.abs(s),l=n.interactable.options.drag,c=l.startAxis,u=o>a?"x":o<a?"y":"xy";if(n.prepared.axis="start"===l.lockAxis?u[0]:l.lockAxis,"xy"!==u&&"xy"!==c&&c!==u){n.prepared.name=null;for(var d=i,h=function(t){if(t!==n.interactable){var r=n.interactable.options.drag;if(!r.manualStart&&t.testIgnoreAllow(r,d,i)){var s=t.getAction(n.downPointer,n.downEvent,n,d);if(s&&"drag"===s.name&&function(t,e){if(!e)return!1;var n=e.options.drag.startAxis;return"xy"===t||"xy"===n||n===t}(u,t)&&ve.validateAction(s,t,d,i,e))return t}}};L(d);){var p=e.interactables.forEachMatch(d,h);if(p){n.prepared.name="drag",n.interactable=p,n.element=d;break}d=W(d)}}}}}};function be(t){var e=t.prepared&&t.prepared.name;if(!e)return null;var n=t.interactable.options;return n[e].hold||n[e].delay}var xe={id:"auto-start/hold",install:function(t){var e=t.defaults;t.usePlugin(ve),e.perAction.hold=0,e.perAction.delay=0},listeners:{"interactions:new":function(t){t.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(t){var e=t.interaction,n=be(e);n>0&&(e.autoStartHoldTimer=setTimeout((function(){e.start(e.prepared,e.interactable,e.element)}),n))},"interactions:move":function(t){var e=t.interaction,n=t.duplicate;e.autoStartHoldTimer&&e.pointerWasMoved&&!n&&(clearTimeout(e.autoStartHoldTimer),e.autoStartHoldTimer=null)},"autoStart:before-start":function(t){var e=t.interaction;be(e)>0&&(e.prepared.name=null)}},getHoldDuration:be},we=xe,Ae={id:"auto-start",install:function(t){t.usePlugin(ve),t.usePlugin(we),t.usePlugin(ye)}},_e=function(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):S(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault};function Ce(t){var e=t.interaction,n=t.event;e.interactable&&e.interactable.checkAndPreventDefault(n)}var Me={id:"core/interactablePreventDefault",install:function(t){var e=t.Interactable;e.prototype.preventDefault=_e,e.prototype.checkAndPreventDefault=function(e){return function(t,e,n){var i=t.options.preventDefault;if("never"!==i)if("always"!==i){if(e.events.supportsPassive&&/^touch(start|move)$/.test(n.type)){var r=b(n.target).document,s=e.getDocOptions(r);if(!s||!s.events||!1!==s.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(n.type)||L(n.target)&&H(n.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||n.preventDefault()}else n.preventDefault()}(this,t,e)},t.interactions.docEvents.push({type:"dragstart",listener:function(e){for(var n=0,i=t.interactions.list;n<i.length;n++){var r=i[n];if(r.element&&(r.element===e.target||U(r.element,e.target)))return void r.interactable.checkAndPreventDefault(e)}}})},listeners:["down","move","up","cancel"].reduce((function(t,e){return t["interactions:".concat(e)]=Ce,t}),{})};function ke(t,e){if(e.phaselessTypes[t])return!0;for(var n in e.map)if(0===t.indexOf(n)&&t.substr(n.length)in e.phases)return!0;return!1}function Se(t){var e={};for(var n in t){var i=t[n];D(i)?e[n]=Se(i):T(i)?e[n]=kt(i):e[n]=i}return e}var Ie=function(){function t(e){r(this,t),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=e,this.result=Le(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return o(t,[{key:"start",value:function(t,e){var n,i,r=t.phase,s=this.interaction,o=function(t){var e=t.interactable.options[t.prepared.name],n=e.modifiers;return n&&n.length?n:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map((function(t){var n=e[t];return n&&n.enabled&&{options:n,methods:n._methods}})).filter((function(t){return!!t}))}(s);this.prepareStates(o),this.startEdges=K({},s.edges),this.edges=K({},this.startEdges),this.startOffset=(i=e,(n=s.rect)?{left:i.x-n.left,top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var a=this.fillArg({phase:r,pageCoords:e,preEnd:!1});return this.result=Le(),this.startAll(a),this.result=this.setAll(a)}},{key:"fillArg",value:function(t){var e=this.interaction;return t.interaction=e,t.interactable=e.interactable,t.element=e.element,t.rect||(t.rect=e.rect),t.edges||(t.edges=this.startEdges),t.startOffset=this.startOffset,t}},{key:"startAll",value:function(t){for(var e=0,n=this.states;e<n.length;e++){var i=n[e];i.methods.start&&(t.state=i,i.methods.start(t))}}},{key:"setAll",value:function(t){var e=t.phase,n=t.preEnd,i=t.skipModifiers,r=t.rect,s=t.edges;t.coords=K({},t.pageCoords),t.rect=K({},r),t.edges=K({},s);for(var o=i?this.states.slice(i):this.states,a=Le(t.coords,t.rect),l=0;l<o.length;l++){var c,u=o[l],d=u.options,h=K({},t.coords),p=null;null!=(c=u.methods)&&c.set&&this.shouldDo(d,n,e)&&(t.state=u,p=u.methods.set(t),rt(t.edges,t.rect,{x:t.coords.x-h.x,y:t.coords.y-h.y})),a.eventProps.push(p)}K(this.edges,t.edges),a.delta.x=t.coords.x-t.pageCoords.x,a.delta.y=t.coords.y-t.pageCoords.y,a.rectDelta.left=t.rect.left-r.left,a.rectDelta.right=t.rect.right-r.right,a.rectDelta.top=t.rect.top-r.top,a.rectDelta.bottom=t.rect.bottom-r.bottom;var f=this.result.coords,g=this.result.rect;if(f&&g){var m=a.rect.left!==g.left||a.rect.right!==g.right||a.rect.top!==g.top||a.rect.bottom!==g.bottom;a.changed=m||f.x!==a.coords.x||f.y!==a.coords.y}return a}},{key:"applyToInteraction",value:function(t){var e=this.interaction,n=t.phase,i=e.coords.cur,r=e.coords.start,s=this.result,o=this.startDelta,a=s.delta;"start"===n&&K(this.startDelta,s.delta);for(var l=0,c=[[r,o],[i,a]];l<c.length;l++){var u=c[l],d=u[0],h=u[1];d.page.x+=h.x,d.page.y+=h.y,d.client.x+=h.x,d.client.y+=h.y}var p=this.result.rectDelta,f=t.rect||e.rect;f.left+=p.left,f.right+=p.right,f.top+=p.top,f.bottom+=p.bottom,f.width=f.right-f.left,f.height=f.bottom-f.top}},{key:"setAndApply",value:function(t){var e=this.interaction,n=t.phase,i=t.preEnd,r=t.skipModifiers,s=this.setAll(this.fillArg({preEnd:i,phase:n,pageCoords:t.modifiedCoords||e.coords.cur.page}));if(this.result=s,!s.changed&&(!r||r<this.states.length)&&e.interacting())return!1;if(t.modifiedCoords){var o=e.coords.cur.page,a={x:t.modifiedCoords.x-o.x,y:t.modifiedCoords.y-o.y};s.coords.x+=a.x,s.coords.y+=a.y,s.delta.x+=a.x,s.delta.y+=a.y}this.applyToInteraction(t)}},{key:"beforeEnd",value:function(t){var e=t.interaction,n=t.event,i=this.states;if(i&&i.length){for(var r=!1,s=0;s<i.length;s++){var o=i[s];t.state=o;var a=o.options,l=o.methods,c=l.beforeEnd&&l.beforeEnd(t);if(c)return this.endResult=c,!1;r=r||!r&&this.shouldDo(a,!0,t.phase,!0)}r&&e.move({event:n,preEnd:!0})}}},{key:"stop",value:function(t){var e=t.interaction;if(this.states&&this.states.length){var n=K({states:this.states,interactable:e.interactable,element:e.element,rect:null},t);this.fillArg(n);for(var i=0,r=this.states;i<r.length;i++){var s=r[i];n.state=s,s.methods.stop&&s.methods.stop(n)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(t){this.states=[];for(var e=0;e<t.length;e++){var n=t[e],i=n.options,r=n.methods,s=n.name;this.states.push({options:i,methods:r,index:e,name:s})}return this.states}},{key:"restoreInteractionCoords",value:function(t){var e=t.interaction,n=e.coords,i=e.rect,r=e.modification;if(r.result){for(var s=r.startDelta,o=r.result,a=o.delta,l=o.rectDelta,c=0,u=[[n.start,s],[n.cur,a]];c<u.length;c++){var d=u[c],h=d[0],p=d[1];h.page.x-=p.x,h.page.y-=p.y,h.client.x-=p.x,h.client.y-=p.y}i.left-=l.left,i.right-=l.right,i.top-=l.top,i.bottom-=l.bottom}}},{key:"shouldDo",value:function(t,e,n,i){return!(!t||!1===t.enabled||i&&!t.endOnly||t.endOnly&&!e||"start"===n&&!t.setStart)}},{key:"copyFrom",value:function(t){this.startOffset=t.startOffset,this.startDelta=t.startDelta,this.startEdges=t.startEdges,this.edges=t.edges,this.states=t.states.map((function(t){return Se(t)})),this.result=Le(K({},t.result.coords),K({},t.result.rect))}},{key:"destroy",value:function(){for(var t in this)this[t]=null}}]),t}();function Le(t,e){return{rect:e,coords:t,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function De(t,e){var n=t.defaults,i={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},r=function(t){var r=t||{};for(var s in r.enabled=!1!==r.enabled,n)s in r||(r[s]=n[s]);var o={options:r,methods:i,name:e,enable:function(){return r.enabled=!0,o},disable:function(){return r.enabled=!1,o}};return o};return e&&"string"==typeof e&&(r._defaults=n,r._methods=i),r}function Te(t){var e=t.iEvent,n=t.interaction.modification.result;n&&(e.modifiers=n.eventProps)}var Ne={id:"modifiers/base",before:["actions"],install:function(t){t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(t){var e=t.interaction;e.modification=new Ie(e)},"interactions:before-action-start":function(t){var e=t.interaction,n=t.interaction.modification;n.start(t,e.coords.start.page),e.edges=n.edges,n.applyToInteraction(t)},"interactions:before-action-move":function(t){var e=t.interaction,n=e.modification,i=n.setAndApply(t);return e.edges=n.edges,i},"interactions:before-action-end":function(t){var e=t.interaction,n=e.modification,i=n.beforeEnd(t);return e.edges=n.startEdges,i},"interactions:action-start":Te,"interactions:action-move":Te,"interactions:action-end":Te,"interactions:after-action-start":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-move":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:stop":function(t){return t.interaction.modification.stop(t)}}},Oe=Ne,je={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Ee=function(t){l(n,t);var e=h(n);function n(t,i,s,o,a,l,c){var u;r(this,n),(u=e.call(this,t)).relatedTarget=null,u.screenX=void 0,u.screenY=void 0,u.button=void 0,u.buttons=void 0,u.ctrlKey=void 0,u.shiftKey=void 0,u.altKey=void 0,u.metaKey=void 0,u.page=void 0,u.client=void 0,u.delta=void 0,u.rect=void 0,u.x0=void 0,u.y0=void 0,u.t0=void 0,u.dt=void 0,u.duration=void 0,u.clientX0=void 0,u.clientY0=void 0,u.velocity=void 0,u.speed=void 0,u.swipe=void 0,u.axes=void 0,u.preEnd=void 0,a=a||t.element;var h=t.interactable,p=(h&&h.options||je).deltaSource,f=st(h,a,s),g="start"===o,m="end"===o,v=g?d(u):t.prevEvent,y=g?t.coords.start:m?{page:v.page,client:v.client,timeStamp:t.coords.cur.timeStamp}:t.coords.cur;return u.page=K({},y.page),u.client=K({},y.client),u.rect=K({},t.rect),u.timeStamp=y.timeStamp,m||(u.page.x-=f.x,u.page.y-=f.y,u.client.x-=f.x,u.client.y-=f.y),u.ctrlKey=i.ctrlKey,u.altKey=i.altKey,u.shiftKey=i.shiftKey,u.metaKey=i.metaKey,u.button=i.button,u.buttons=i.buttons,u.target=a,u.currentTarget=a,u.preEnd=l,u.type=c||s+(o||""),u.interactable=h,u.t0=g?t.pointers[t.pointers.length-1].downTime:v.t0,u.x0=t.coords.start.page.x-f.x,u.y0=t.coords.start.page.y-f.y,u.clientX0=t.coords.start.client.x-f.x,u.clientY0=t.coords.start.client.y-f.y,u.delta=g||m?{x:0,y:0}:{x:u[p].x-v[p].x,y:u[p].y-v[p].y},u.dt=t.coords.delta.timeStamp,u.duration=u.timeStamp-u.t0,u.velocity=K({},t.coords.velocity[p]),u.speed=lt(u.velocity.x,u.velocity.y),u.swipe=m||"inertiastart"===o?u.getSwipe():null,u}return o(n,[{key:"getSwipe",value:function(){var t=this._interaction;if(t.prevEvent.speed<600||this.timeStamp-t.prevEvent.timeStamp>150)return null;var e=180*Math.atan2(t.prevEvent.velocityY,t.prevEvent.velocityX)/Math.PI;e<0&&(e+=360);var n=112.5<=e&&e<247.5,i=202.5<=e&&e<337.5;return{up:i,down:!i&&22.5<=e&&e<157.5,left:n,right:!n&&(292.5<=e||e<67.5),angle:e,speed:t.prevEvent.speed,velocity:{x:t.prevEvent.velocityX,y:t.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),n}(Ct);Object.defineProperties(Ee.prototype,{pageX:{get:function(){return this.page.x},set:function(t){this.page.x=t}},pageY:{get:function(){return this.page.y},set:function(t){this.page.y=t}},clientX:{get:function(){return this.client.x},set:function(t){this.client.x=t}},clientY:{get:function(){return this.client.y},set:function(t){this.client.y=t}},dx:{get:function(){return this.delta.x},set:function(t){this.delta.x=t}},dy:{get:function(){return this.delta.y},set:function(t){this.delta.y=t}},velocityX:{get:function(){return this.velocity.x},set:function(t){this.velocity.x=t}},velocityY:{get:function(){return this.velocity.y},set:function(t){this.velocity.y=t}}});var ze=o((function t(e,n,i,s,o){r(this,t),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=e,this.pointer=n,this.event=i,this.downTime=s,this.downTarget=o})),Fe=function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t}({}),Pe=function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t}({}),Re=0,Ye=function(){function t(e){var n=this,i=e.pointerType,s=e.scopeFire;r(this,t),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=ie((function(t){this.move(t)}),"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Re++,this._scopeFire=s,this.pointerType=i;var o=this;this._proxy={};var a=function(t){Object.defineProperty(n._proxy,t,{get:function(){return o[t]}})};for(var l in Fe)a(l);var c=function(t){Object.defineProperty(n._proxy,t,{value:function(){return o[t].apply(o,arguments)}})};for(var u in Pe)c(u);this._scopeFire("interactions:new",{interaction:this})}return o(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(t,e,n){var i=this.updatePointer(t,e,n,!0),r=this.pointers[i];this._scopeFire("interactions:down",{pointer:t,event:e,eventTarget:n,pointerIndex:i,pointerInfo:r,type:"down",interaction:this})}},{key:"start",value:function(t,e,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===t.name?2:1)||!e.options[t.name].enabled)&&(re(this.prepared,t),this.interactable=e,this.element=n,this.rect=e.getRect(n),this.edges=this.prepared.edges?K({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(t,e,n){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(t,e,n,!1);var i,r,s=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(i=this.coords.cur.client.x-this.coords.start.client.x,r=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=lt(i,r)>this.pointerMoveTolerance);var o,a,l,c=this.getPointerIndex(t),u={pointer:t,pointerIndex:c,pointerInfo:this.pointers[c],event:e,type:"move",eventTarget:n,dx:i,dy:r,duplicate:s,interaction:this};s||(o=this.coords.velocity,a=this.coords.delta,l=Math.max(a.timeStamp/1e3,.001),o.page.x=a.page.x/l,o.page.y=a.page.y/l,o.client.x=a.client.x/l,o.client.y=a.client.y/l,o.timeStamp=l),this._scopeFire("interactions:move",u),s||this.simulation||(this.interacting()&&(u.type=null,this.move(u)),this.pointerWasMoved&&dt(this.coords.prev,this.coords.cur))}},{key:"move",value:function(t){t&&t.event||ht(this.coords.delta),(t=K({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},t||{})).phase="move",this._doPhase(t)}},{key:"pointerUp",value:function(t,e,n,i){var r=this.getPointerIndex(t);-1===r&&(r=this.updatePointer(t,e,n,!1));var s=/cancel$/i.test(e.type)?"cancel":"up";this._scopeFire("interactions:".concat(s),{pointer:t,pointerIndex:r,pointerInfo:this.pointers[r],event:e,eventTarget:n,type:s,curEventTarget:i,interaction:this}),this.simulation||this.end(e),this.removePointer(t,e)}},{key:"documentBlur",value:function(t){this.end(t),this._scopeFire("interactions:blur",{event:t,type:"blur",interaction:this})}},{key:"end",value:function(t){var e;this._ending=!0,t=t||this._latestPointer.event,this.interacting()&&(e=this._doPhase({event:t,interaction:this,phase:"end"})),this._ending=!1,!0===e&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(t){var e=mt(t);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:St(this.pointers,(function(t){return t.id===e}))}},{key:"getPointerInfo",value:function(t){return this.pointers[this.getPointerIndex(t)]}},{key:"updatePointer",value:function(t,e,n,i){var r,s,o,a=mt(t),l=this.getPointerIndex(t),c=this.pointers[l];return i=!1!==i&&(i||/(down|start)$/i.test(e.type)),c?c.pointer=t:(c=new ze(a,t,e,null,null),l=this.pointers.length,this.pointers.push(c)),function(t,e,n){var i=e.length>1?yt(e):e[0];gt(i,t.page),function(t,e){e=e||{},Y.isOperaMobile&&pt(t)?ft("screen",t,e):ft("client",t,e)}(i,t.client),t.timeStamp=n}(this.coords.cur,this.pointers.map((function(t){return t.pointer})),this._now()),r=this.coords.delta,s=this.coords.prev,o=this.coords.cur,r.page.x=o.page.x-s.page.x,r.page.y=o.page.y-s.page.y,r.client.x=o.client.x-s.client.x,r.client.y=o.client.y-s.client.y,r.timeStamp=o.timeStamp-s.timeStamp,i&&(this.pointerIsDown=!0,c.downTime=this.coords.cur.timeStamp,c.downTarget=n,ut(this.downPointer,t),this.interacting()||(dt(this.coords.start,this.coords.cur),dt(this.coords.prev,this.coords.cur),this.downEvent=e,this.pointerWasMoved=!1)),this._updateLatestPointer(t,e,n),this._scopeFire("interactions:update-pointer",{pointer:t,event:e,eventTarget:n,down:i,pointerInfo:c,pointerIndex:l,interaction:this}),l}},{key:"removePointer",value:function(t,e){var n=this.getPointerIndex(t);if(-1!==n){var i=this.pointers[n];this._scopeFire("interactions:remove-pointer",{pointer:t,event:e,eventTarget:null,pointerIndex:n,pointerInfo:i,interaction:this}),this.pointers.splice(n,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(t,e,n){this._latestPointer.pointer=t,this._latestPointer.event=e,this._latestPointer.eventTarget=n}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(t,e,n,i){return new Ee(this,t,this.prepared.name,e,this.element,n,i)}},{key:"_fireEvent",value:function(t){var e;null==(e=this.interactable)||e.fire(t),(!this.prevEvent||t.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=t)}},{key:"_doPhase",value:function(t){var e=t.event,n=t.phase,i=t.preEnd,r=t.type,s=this.rect;if(s&&"move"===n&&(rt(this.edges,s,this.coords.delta[this.interactable.options.deltaSource]),s.width=s.right-s.left,s.height=s.bottom-s.top),!1===this._scopeFire("interactions:before-action-".concat(n),t))return!1;var o=t.iEvent=this._createPreparedEvent(e,n,i,r);return this._scopeFire("interactions:action-".concat(n),t),"start"===n&&(this.prevEvent=o),this._fireEvent(o),this._scopeFire("interactions:after-action-".concat(n),t),!0}},{key:"_now",value:function(){return Date.now()}}]),t}();function Ue(t){Be(t.interaction)}function Be(t){if(!function(t){return!(!t.offset.pending.x&&!t.offset.pending.y)}(t))return!1;var e=t.offset.pending;return He(t.coords.cur,e),He(t.coords.delta,e),rt(t.edges,t.rect,e),e.x=0,e.y=0,!0}function We(t){var e=t.x,n=t.y;this.offset.pending.x+=e,this.offset.pending.y+=n,this.offset.total.x+=e,this.offset.total.y+=n}function He(t,e){var n=t.page,i=t.client,r=e.x,s=e.y;n.x+=r,n.y+=s,i.x+=r,i.y+=s}Pe.offsetBy="";var Ve={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=We},listeners:{"interactions:new":function(t){t.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(t){return function(t){t.pointerIsDown&&(He(t.coords.cur,t.offset.total),t.offset.pending.x=0,t.offset.pending.y=0)}(t.interaction)},"interactions:before-action-start":Ue,"interactions:before-action-move":Ue,"interactions:before-action-end":function(t){var e=t.interaction;if(Be(e))return e.move({offset:!0}),e.end(),!1},"interactions:stop":function(t){var e=t.interaction;e.offset.total.x=0,e.offset.total.y=0,e.offset.pending.x=0,e.offset.pending.y=0}}},Ze=Ve,Ge=function(){function t(e){r(this,t),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=e}return o(t,[{key:"start",value:function(t){var e=this.interaction,n=Qe(e);if(!n||!n.enabled)return!1;var i=e.coords.velocity.client,r=lt(i.x,i.y),s=this.modification||(this.modification=new Ie(e));if(s.copyFrom(e.modification),this.t0=e._now(),this.allowResume=n.allowResume,this.v0=r,this.currentOffset={x:0,y:0},this.startCoords=e.coords.cur.page,this.modifierArg=s.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-e.coords.cur.timeStamp<50&&r>n.minSpeed&&r>n.endSpeed)this.startInertia();else{if(s.result=s.setAll(this.modifierArg),!s.result.changed)return!1;this.startSmoothEnd()}return e.modification.result.rect=null,e.offsetBy(this.targetOffset),e._doPhase({interaction:e,event:t,phase:"inertiastart"}),e.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),e.modification.result.rect=null,this.active=!0,e.simulation=this,!0}},{key:"startInertia",value:function(){var t=this,e=this.interaction.coords.velocity.client,n=Qe(this.interaction),i=n.resistance,r=-Math.log(n.endSpeed/this.v0)/i;this.targetOffset={x:(e.x-r)/i,y:(e.y-r)/i},this.te=r,this.lambda_v0=i/this.v0,this.one_ve_v0=1-n.endSpeed/this.v0;var s=this.modification,o=this.modifierArg;o.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},s.result=s.setAll(o),s.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+s.result.delta.x,y:this.targetOffset.y+s.result.delta.y}),this.onNextFrame((function(){return t.inertiaTick()}))}},{key:"startSmoothEnd",value:function(){var t=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame((function(){return t.smoothEndTick()}))}},{key:"onNextFrame",value:function(t){var e=this;this.timeout=Jt((function(){e.active&&t()}))}},{key:"inertiaTick",value:function(){var t,e,n,i,r,s=this,o=this.interaction,a=Qe(o).resistance,l=(o._now()-this.t0)/1e3;if(l<this.te){var c,u=1-(Math.exp(-a*l)-this.lambda_v0)/this.one_ve_v0;this.isModified?(t=this.targetOffset.x,e=this.targetOffset.y,n=this.modifiedOffset.x,i=this.modifiedOffset.y,c={x:Xe(r=u,0,t,n),y:Xe(r,0,e,i)}):c={x:this.targetOffset.x*u,y:this.targetOffset.y*u};var d={x:c.x-this.currentOffset.x,y:c.y-this.currentOffset.y};this.currentOffset.x+=d.x,this.currentOffset.y+=d.y,o.offsetBy(d),o.move(),this.onNextFrame((function(){return s.inertiaTick()}))}else o.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var t=this,e=this.interaction,n=e._now()-this.t0,i=Qe(e).smoothEndDuration;if(n<i){var r={x:qe(n,0,this.targetOffset.x,i),y:qe(n,0,this.targetOffset.y,i)},s={x:r.x-this.currentOffset.x,y:r.y-this.currentOffset.y};this.currentOffset.x+=s.x,this.currentOffset.y+=s.y,e.offsetBy(s),e.move({skipModifiers:this.modifierCount}),this.onNextFrame((function(){return t.smoothEndTick()}))}else e.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(t){var e=t.pointer,n=t.event,i=t.eventTarget,r=this.interaction;r.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),r.updatePointer(e,n,i,!0),r._doPhase({interaction:r,event:n,phase:"resume"}),dt(r.coords.prev,r.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Xt(this.timeout)}}]),t}();function Qe(t){var e=t.interactable,n=t.prepared;return e&&e.options&&n.name&&e.options[n.name].inertia}var Je={id:"inertia",before:["modifiers","actions"],install:function(t){var e=t.defaults;t.usePlugin(Ze),t.usePlugin(Oe),t.actions.phases.inertiastart=!0,t.actions.phases.resume=!0,e.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(t){var e=t.interaction;e.inertia=new Ge(e)},"interactions:before-action-end":function(t){var e=t.interaction,n=t.event;return(!e._interacting||e.simulation||!e.inertia.start(n))&&null},"interactions:down":function(t){var e=t.interaction,n=t.eventTarget,i=e.inertia;if(i.active)for(var r=n;L(r);){if(r===e.element){i.resume(t);break}r=W(r)}},"interactions:stop":function(t){var e=t.interaction.inertia;e.active&&e.stop()},"interactions:before-action-resume":function(t){var e=t.interaction.modification;e.stop(t),e.start(t,t.interaction.coords.cur.page),e.applyToInteraction(t)},"interactions:before-action-inertiastart":function(t){return t.interaction.modification.setAndApply(t)},"interactions:action-resume":Te,"interactions:action-inertiastart":Te,"interactions:after-action-inertiastart":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-resume":function(t){return t.interaction.modification.restoreInteractionCoords(t)}}};function Xe(t,e,n,i){var r=1-t;return r*r*e+2*r*t*n+t*t*i}function qe(t,e,n,i){return-n*(t/=i)*(t-2)+e}var $e=Je;function Ke(t,e){for(var n=0;n<e.length;n++){var i=e[n];if(t.immediatePropagationStopped)break;i(t)}}var tn=function(){function t(e){r(this,t),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=K({},e||{})}return o(t,[{key:"fire",value:function(t){var e,n=this.global;(e=this.types[t.type])&&Ke(t,e),!t.propagationStopped&&n&&(e=n[t.type])&&Ke(t,e)}},{key:"on",value:function(t,e){var n=ot(t,e);for(t in n)this.types[t]=Mt(this.types[t]||[],n[t])}},{key:"off",value:function(t,e){var n=ot(t,e);for(t in n){var i=this.types[t];if(i&&i.length)for(var r=0,s=n[t];r<s.length;r++){var o=s[r],a=i.indexOf(o);-1!==a&&i.splice(a,1)}}}},{key:"getRect",value:function(t){return null}}]),t}(),en=function(){function t(e){r(this,t),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=e,ut(this,e)}return o(t,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),t}();function nn(t){return C(t)?{capture:!!t.capture,passive:!!t.passive}:{capture:!!t,passive:!1}}function rn(t,e){return t===e||("boolean"==typeof t?!!e.capture===t&&0==!!e.passive:!!t.capture==!!e.capture&&!!t.passive==!!e.passive)}var sn={id:"events",install:function(t){var e,n=[],i={},r=[],s={add:o,remove:a,addDelegate:function(t,e,n,s,a){var u=nn(a);if(!i[n]){i[n]=[];for(var d=0;d<r.length;d++){var h=r[d];o(h,n,l),o(h,n,c,!0)}}var p=i[n],f=It(p,(function(n){return n.selector===t&&n.context===e}));f||(f={selector:t,context:e,listeners:[]},p.push(f)),f.listeners.push({func:s,options:u})},removeDelegate:function(t,e,n,r,s){var o,u=nn(s),d=i[n],h=!1;if(d)for(o=d.length-1;o>=0;o--){var p=d[o];if(p.selector===t&&p.context===e){for(var f=p.listeners,g=f.length-1;g>=0;g--){var m=f[g];if(m.func===r&&rn(m.options,u)){f.splice(g,1),f.length||(d.splice(o,1),a(e,n,l),a(e,n,c,!0)),h=!0;break}}if(h)break}}},delegateListener:l,delegateUseCapture:c,delegatedEvents:i,documents:r,targets:n,supportsOptions:!1,supportsPassive:!1};function o(t,e,i,r){if(t.addEventListener){var o=nn(r),a=It(n,(function(e){return e.eventTarget===t}));a||(a={eventTarget:t,events:{}},n.push(a)),a.events[e]||(a.events[e]=[]),It(a.events[e],(function(t){return t.func===i&&rn(t.options,o)}))||(t.addEventListener(e,i,s.supportsOptions?o:o.capture),a.events[e].push({func:i,options:o}))}}function a(t,e,i,r){if(t.addEventListener&&t.removeEventListener){var o=St(n,(function(e){return e.eventTarget===t})),l=n[o];if(l&&l.events)if("all"!==e){var c=!1,u=l.events[e];if(u){if("all"===i){for(var d=u.length-1;d>=0;d--){var h=u[d];a(t,e,h.func,h.options)}return}for(var p=nn(r),f=0;f<u.length;f++){var g=u[f];if(g.func===i&&rn(g.options,p)){t.removeEventListener(e,i,s.supportsOptions?p:p.capture),u.splice(f,1),0===u.length&&(delete l.events[e],c=!0);break}}}c&&!Object.keys(l.events).length&&n.splice(o,1)}else for(e in l.events)l.events.hasOwnProperty(e)&&a(t,e,"all")}}function l(t,e){for(var n=nn(e),r=new en(t),s=i[t.type],o=_t(t)[0],a=o;L(a);){for(var l=0;l<s.length;l++){var c=s[l],u=c.selector,d=c.context;if(H(a,u)&&U(d,o)&&U(d,a)){var h=c.listeners;r.currentTarget=a;for(var p=0;p<h.length;p++){var f=h[p];rn(f.options,n)&&f.func(r)}}}a=W(a)}}function c(t){return l(t,!0)}return null==(e=t.document)||e.createElement("div").addEventListener("test",null,{get capture(){return s.supportsOptions=!0},get passive(){return s.supportsPassive=!0}}),t.events=s,s}},on={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(t){for(var e=0,n=on.methodOrder;e<n.length;e++){var i=n[e],r=on[i](t);if(r)return r}return null},simulationResume:function(t){var e=t.pointerType,n=t.eventType,i=t.eventTarget,r=t.scope;if(!/down|start/i.test(n))return null;for(var s=0,o=r.interactions.list;s<o.length;s++){var a=o[s],l=i;if(a.simulation&&a.simulation.allowResume&&a.pointerType===e)for(;l;){if(l===a.element)return a;l=W(l)}}return null},mouseOrPen:function(t){var e,n=t.pointerId,i=t.pointerType,r=t.eventType,s=t.scope;if("mouse"!==i&&"pen"!==i)return null;for(var o=0,a=s.interactions.list;o<a.length;o++){var l=a[o];if(l.pointerType===i){if(l.simulation&&!an(l,n))continue;if(l.interacting())return l;e||(e=l)}}if(e)return e;for(var c=0,u=s.interactions.list;c<u.length;c++){var d=u[c];if(!(d.pointerType!==i||/down/i.test(r)&&d.simulation))return d}return null},hasPointer:function(t){for(var e=t.pointerId,n=0,i=t.scope.interactions.list;n<i.length;n++){var r=i[n];if(an(r,e))return r}return null},idle:function(t){for(var e=t.pointerType,n=0,i=t.scope.interactions.list;n<i.length;n++){var r=i[n];if(1===r.pointers.length){var s=r.interactable;if(s&&(!s.options.gesture||!s.options.gesture.enabled))continue}else if(r.pointers.length>=2)continue;if(!r.interacting()&&e===r.pointerType)return r}return null}};function an(t,e){return t.pointers.some((function(t){return t.id===e}))}var ln=on,cn=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function un(t,e){return function(n){var i=e.interactions.list,r=At(n),s=_t(n),o=s[0],a=s[1],l=[];if(/^touch/.test(n.type)){e.prevTouchTime=e.now();for(var c=0,u=n.changedTouches;c<u.length;c++){var d=u[c],h={pointer:d,pointerId:mt(d),pointerType:r,eventType:n.type,eventTarget:o,curEventTarget:a,scope:e},p=dn(h);l.push([h.pointer,h.eventTarget,h.curEventTarget,p])}}else{var f=!1;if(!Y.supportsPointerEvent&&/mouse/.test(n.type)){for(var g=0;g<i.length&&!f;g++)f="mouse"!==i[g].pointerType&&i[g].pointerIsDown;f=f||e.now()-e.prevTouchTime<500||0===n.timeStamp}if(!f){var m={pointer:n,pointerId:mt(n),pointerType:r,eventType:n.type,curEventTarget:a,eventTarget:o,scope:e},v=dn(m);l.push([m.pointer,m.eventTarget,m.curEventTarget,v])}}for(var y=0;y<l.length;y++){var b=l[y],x=b[0],w=b[1],A=b[2];b[3][t](x,n,w,A)}}}function dn(t){var e=t.pointerType,n=t.scope,i={interaction:ln.search(t),searchDetails:t};return n.fire("interactions:find",i),i.interaction||n.interactions.new({pointerType:e})}function hn(t,e){var n=t.doc,i=t.scope,r=t.options,s=i.interactions.docEvents,o=i.events,a=o[e];for(var l in i.browser.isIOS&&!r.events&&(r.events={passive:!1}),o.delegatedEvents)a(n,l,o.delegateListener),a(n,l,o.delegateUseCapture,!0);for(var c=r&&r.events,u=0;u<s.length;u++){var d=s[u];a(n,d.type,d.listener,c)}}var pn={id:"core/interactions",install:function(t){for(var e={},n=0;n<cn.length;n++){var i=cn[n];e[i]=un(i,t)}var s,a=Y.pEventTypes;function c(){for(var e=0,n=t.interactions.list;e<n.length;e++){var i=n[e];if(i.pointerIsDown&&"touch"===i.pointerType&&!i._interacting)for(var r=function(){var e=o[s];t.documents.some((function(t){return U(t.doc,e.downTarget)}))||i.removePointer(e.pointer,e.event)},s=0,o=i.pointers;s<o.length;s++)r()}}(s=P.PointerEvent?[{type:a.down,listener:c},{type:a.down,listener:e.pointerDown},{type:a.move,listener:e.pointerMove},{type:a.up,listener:e.pointerUp},{type:a.cancel,listener:e.pointerUp}]:[{type:"mousedown",listener:e.pointerDown},{type:"mousemove",listener:e.pointerMove},{type:"mouseup",listener:e.pointerUp},{type:"touchstart",listener:c},{type:"touchstart",listener:e.pointerDown},{type:"touchmove",listener:e.pointerMove},{type:"touchend",listener:e.pointerUp},{type:"touchcancel",listener:e.pointerUp}]).push({type:"blur",listener:function(e){for(var n=0,i=t.interactions.list;n<i.length;n++)i[n].documentBlur(e)}}),t.prevTouchTime=0,t.Interaction=function(e){l(i,e);var n=h(i);function i(){return r(this,i),n.apply(this,arguments)}return o(i,[{key:"pointerMoveTolerance",get:function(){return t.interactions.pointerMoveTolerance},set:function(e){t.interactions.pointerMoveTolerance=e}},{key:"_now",value:function(){return t.now()}}]),i}(Ye),t.interactions={list:[],new:function(e){e.scopeFire=function(e,n){return t.fire(e,n)};var n=new t.Interaction(e);return t.interactions.list.push(n),n},listeners:e,docEvents:s,pointerMoveTolerance:1},t.usePlugin(Me)},listeners:{"scope:add-document":function(t){return hn(t,"add")},"scope:remove-document":function(t){return hn(t,"remove")},"interactable:unset":function(t,e){for(var n=t.interactable,i=e.interactions.list.length-1;i>=0;i--){var r=e.interactions.list[i];r.interactable===n&&(r.stop(),e.fire("interactions:destroy",{interaction:r}),r.destroy(),e.interactions.list.length>2&&e.interactions.list.splice(i,1))}}},onDocSignal:hn,doOnInteractions:un,methodNames:cn},fn=pn,gn=function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t}(gn||{}),mn=function(){function t(e,n,i,s){r(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new tn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=n.actions,this.target=e,this._context=n.context||i,this._win=b($(e)?this._context:e),this._doc=this._win.document,this._scopeEvents=s,this.set(n)}return o(t,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(t,e){return M(e.onstart)&&this.on("".concat(t,"start"),e.onstart),M(e.onmove)&&this.on("".concat(t,"move"),e.onmove),M(e.onend)&&this.on("".concat(t,"end"),e.onend),M(e.oninertiastart)&&this.on("".concat(t,"inertiastart"),e.oninertiastart),this}},{key:"updatePerActionListeners",value:function(t,e,n){var i,r=this,s=null==(i=this._actions.map[t])?void 0:i.filterEventType,o=function(t){return(null==s||s(t))&&ke(t,r._actions)};(T(e)||C(e))&&this._onOff(gn.Off,t,e,void 0,o),(T(n)||C(n))&&this._onOff(gn.On,t,n,void 0,o)}},{key:"setPerAction",value:function(t,e){var n=this._defaults;for(var i in e){var r=i,s=this.options[t],o=e[r];"listeners"===r&&this.updatePerActionListeners(t,s.listeners,o),T(o)?s[r]=kt(o):D(o)?(s[r]=K(s[r]||{},Se(o)),C(n.perAction[r])&&"enabled"in n.perAction[r]&&(s[r].enabled=!1!==o.enabled)):S(o)&&C(n.perAction[r])?s[r].enabled=o:s[r]=o}}},{key:"getRect",value:function(t){return t=t||(L(this.target)?this.target:null),I(this.target)&&(t=t||this._context.querySelector(this.target)),X(t)}},{key:"rectChecker",value:function(t){var e=this;return M(t)?(this.getRect=function(n){var i=K({},t.apply(e,n));return"width"in i||(i.width=i.right-i.left,i.height=i.bottom-i.top),i},this):null===t?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(t,e){if($(e)||C(e)){for(var n in this.options[t]=e,this._actions.map)this.options[n][t]=e;return this}return this.options[t]}},{key:"origin",value:function(t){return this._backCompatOption("origin",t)}},{key:"deltaSource",value:function(t){return"page"===t||"client"===t?(this.options.deltaSource=t,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var t=this.target;return I(t)?Array.from(this._context.querySelectorAll(t)):M(t)&&t.getAllElements?t.getAllElements():L(t)?[t]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(t){return this._context===t.ownerDocument||U(this._context,t)}},{key:"testIgnoreAllow",value:function(t,e,n){return!this.testIgnore(t.ignoreFrom,e,n)&&this.testAllow(t.allowFrom,e,n)}},{key:"testAllow",value:function(t,e,n){return!t||!!L(n)&&(I(t)?G(n,t,e):!!L(t)&&U(t,n))}},{key:"testIgnore",value:function(t,e,n){return!(!t||!L(n))&&(I(t)?G(n,t,e):!!L(t)&&U(t,n))}},{key:"fire",value:function(t){return this.events.fire(t),this}},{key:"_onOff",value:function(t,e,n,i,r){C(e)&&!T(e)&&(i=n,n=null);var s=ot(e,n,r);for(var o in s){"wheel"===o&&(o=Y.wheelEvent);for(var a=0,l=s[o];a<l.length;a++){var c=l[a];ke(o,this._actions)?this.events[t===gn.On?"on":"off"](o,c):I(this.target)?this._scopeEvents[t===gn.On?"addDelegate":"removeDelegate"](this.target,this._context,o,c,i):this._scopeEvents[t===gn.On?"add":"remove"](this.target,o,c,i)}}return this}},{key:"on",value:function(t,e,n){return this._onOff(gn.On,t,e,n)}},{key:"off",value:function(t,e,n){return this._onOff(gn.Off,t,e,n)}},{key:"set",value:function(t){var e=this._defaults;for(var n in C(t)||(t={}),this.options=Se(e.base),this._actions.methodDict){var i=n,r=this._actions.methodDict[i];this.options[i]={},this.setPerAction(i,K(K({},e.perAction),e.actions[i])),this[r](t[i])}for(var s in t)"getRect"!==s?M(this[s])&&this[s](t[s]):this.rectChecker(t.getRect);return this}},{key:"unset",value:function(){if(I(this.target))for(var t in this._scopeEvents.delegatedEvents)for(var e=this._scopeEvents.delegatedEvents[t],n=e.length-1;n>=0;n--){var i=e[n],r=i.selector,s=i.context,o=i.listeners;r===this.target&&s===this._context&&e.splice(n,1);for(var a=o.length-1;a>=0;a--)this._scopeEvents.removeDelegate(this.target,this._context,t,o[a][0],o[a][1])}else this._scopeEvents.remove(this.target,"all")}}]),t}(),vn=function(){function t(e){var n=this;r(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=e,e.addListeners({"interactable:unset":function(t){var e=t.interactable,i=e.target,r=I(i)?n.selectorMap[i]:i[n.scope.id],s=St(r,(function(t){return t===e}));r.splice(s,1)}})}return o(t,[{key:"new",value:function(t,e){e=K(e||{},{actions:this.scope.actions});var n=new this.scope.Interactable(t,e,this.scope.document,this.scope.events);return this.scope.addDocument(n._doc),this.list.push(n),I(t)?(this.selectorMap[t]||(this.selectorMap[t]=[]),this.selectorMap[t].push(n)):(n.target[this.scope.id]||Object.defineProperty(t,this.scope.id,{value:[],configurable:!0}),t[this.scope.id].push(n)),this.scope.fire("interactable:new",{target:t,options:e,interactable:n,win:this.scope._win}),n}},{key:"getExisting",value:function(t,e){var n=e&&e.context||this.scope.document,i=I(t),r=i?this.selectorMap[t]:t[this.scope.id];if(r)return It(r,(function(e){return e._context===n&&(i||e.inContext(t))}))}},{key:"forEachMatch",value:function(t,e){for(var n=0,i=this.list;n<i.length;n++){var r=i[n],s=void 0;if((I(r.target)?L(t)&&H(t,r.target):t===r.target)&&r.inContext(t)&&(s=e(r)),void 0!==s)return s}}}]),t}(),yn=function(){function t(){var e=this;r(this,t),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=Y,this.defaults=Se(je),this.Eventable=tn,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(t){var e=function e(n,i){var r=t.interactables.getExisting(n,i);return r||((r=t.interactables.new(n,i)).events.global=e.globalEvents),r};return e.getPointerAverage=yt,e.getTouchBBox=bt,e.getTouchDistance=xt,e.getTouchAngle=wt,e.getElementRect=X,e.getElementClientRect=J,e.matchesSelector=H,e.closest=B,e.globalEvents={},e.version="1.10.27",e.scope=t,e.use=function(t,e){return this.scope.usePlugin(t,e),this},e.isSet=function(t,e){return!!this.scope.interactables.get(t,e&&e.context)},e.on=ie((function(t,e,n){if(I(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),T(t)){for(var i=0,r=t;i<r.length;i++){var s=r[i];this.on(s,e,n)}return this}if(C(t)){for(var o in t)this.on(o,t[o],e);return this}return ke(t,this.scope.actions)?this.globalEvents[t]?this.globalEvents[t].push(e):this.globalEvents[t]=[e]:this.scope.events.add(this.scope.document,t,e,{options:n}),this}),"The interact.on() method is being deprecated"),e.off=ie((function(t,e,n){if(I(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),T(t)){for(var i=0,r=t;i<r.length;i++){var s=r[i];this.off(s,e,n)}return this}if(C(t)){for(var o in t)this.off(o,t[o],e);return this}var a;return ke(t,this.scope.actions)?t in this.globalEvents&&-1!==(a=this.globalEvents[t].indexOf(e))&&this.globalEvents[t].splice(a,1):this.scope.events.remove(this.scope.document,t,e,n),this}),"The interact.off() method is being deprecated"),e.debug=function(){return this.scope},e.supportsTouch=function(){return Y.supportsTouch},e.supportsPointerEvent=function(){return Y.supportsPointerEvent},e.stop=function(){for(var t=0,e=this.scope.interactions.list;t<e.length;t++)e[t].stop();return this},e.pointerMoveTolerance=function(t){return k(t)?(this.scope.interactions.pointerMoveTolerance=t,this):this.scope.interactions.pointerMoveTolerance},e.addDocument=function(t,e){this.scope.addDocument(t,e)},e.removeDocument=function(t){this.scope.removeDocument(t)},e}(this),this.InteractEvent=Ee,this.Interactable=void 0,this.interactables=new vn(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(t){return e.removeDocument(t.target)};var n=this;this.Interactable=function(t){l(i,t);var e=h(i);function i(){return r(this,i),e.apply(this,arguments)}return o(i,[{key:"_defaults",get:function(){return n.defaults}},{key:"set",value:function(t){return p(c(i.prototype),"set",this).call(this,t),n.fire("interactable:set",{options:t,interactable:this}),this}},{key:"unset",value:function(){p(c(i.prototype),"unset",this).call(this);var t=n.interactables.list.indexOf(this);t<0||(n.interactables.list.splice(t,1),n.fire("interactable:unset",{interactable:this}))}}]),i}(mn)}return o(t,[{key:"addListeners",value:function(t,e){this.listenerMaps.push({id:e,map:t})}},{key:"fire",value:function(t,e){for(var n=0,i=this.listenerMaps;n<i.length;n++){var r=i[n].map[t];if(r&&!1===r(e,this,t))return!1}}},{key:"init",value:function(t){return this.isInitialized?this:function(t,e){return t.isInitialized=!0,A(e)&&y(e),P.init(e),Y.init(e),qt(e),t.window=e,t.document=e.document,t.usePlugin(fn),t.usePlugin(sn),t}(this,t)}},{key:"pluginIsInstalled",value:function(t){var e=t.id;return e?!!this._plugins.map[e]:-1!==this._plugins.list.indexOf(t)}},{key:"usePlugin",value:function(t,e){if(!this.isInitialized)return this;if(this.pluginIsInstalled(t))return this;if(t.id&&(this._plugins.map[t.id]=t),this._plugins.list.push(t),t.install&&t.install(this,e),t.listeners&&t.before){for(var n=0,i=this.listenerMaps.length,r=t.before.reduce((function(t,e){return t[e]=!0,t[bn(e)]=!0,t}),{});n<i;n++){var s=this.listenerMaps[n].id;if(s&&(r[s]||r[bn(s)]))break}this.listenerMaps.splice(n,0,{id:t.id,map:t.listeners})}else t.listeners&&this.listenerMaps.push({id:t.id,map:t.listeners});return this}},{key:"addDocument",value:function(t,e){if(-1!==this.getDocIndex(t))return!1;var n=b(t);e=e?K({},e):{},this.documents.push({doc:t,options:e}),this.events.documents.push(t),t!==this.document&&this.events.add(n,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:t,window:n,scope:this,options:e})}},{key:"removeDocument",value:function(t){var e=this.getDocIndex(t),n=b(t),i=this.documents[e].options;this.events.remove(n,"unload",this.onWindowUnload),this.documents.splice(e,1),this.events.documents.splice(e,1),this.fire("scope:remove-document",{doc:t,window:n,scope:this,options:i})}},{key:"getDocIndex",value:function(t){for(var e=0;e<this.documents.length;e++)if(this.documents[e].doc===t)return e;return-1}},{key:"getDocOptions",value:function(t){var e=this.getDocIndex(t);return-1===e?null:this.documents[e].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),t}();function bn(t){return t&&t.replace(/\/.*$/,"")}var xn=new yn,wn=xn.interactStatic,An="undefined"!=typeof globalThis?globalThis:window;xn.init(An);var _n=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(t){var e=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter((function(e){var n=e[0],i=e[1];return n in t||i in t})),n=function(n,i){for(var r=t.range,s=t.limits,o=void 0===s?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:s,a=t.offset,l=void 0===a?{x:0,y:0}:a,c={range:r,grid:t,x:null,y:null},u=0;u<e.length;u++){var d=e[u],h=d[0],p=d[1],f=Math.round((n-l.x)/t[h]),g=Math.round((i-l.y)/t[p]);c[h]=Math.max(o.left,Math.min(o.right,f*t[h]+l.x)),c[p]=Math.max(o.top,Math.min(o.bottom,g*t[p]+l.y))}return c};return n.grid=t,n.coordFields=e,n}}),Cn={id:"snappers",install:function(t){var e=t.interactStatic;e.snappers=K(e.snappers||{},_n),e.createSnapGrid=e.snappers.grid}},Mn=Cn,kn={start:function(t){var e=t.state,i=t.rect,r=t.edges,s=t.pageCoords,o=e.options,a=o.ratio,l=o.enabled,c=e.options,u=c.equalDelta,d=c.modifiers;"preserve"===a&&(a=i.width/i.height),e.startCoords=K({},s),e.startRect=K({},i),e.ratio=a,e.equalDelta=u;var h=e.linkedEdges={top:r.top||r.left&&!r.bottom,left:r.left||r.top&&!r.right,bottom:r.bottom||r.right&&!r.top,right:r.right||r.bottom&&!r.left};if(e.xIsPrimaryAxis=!(!r.left&&!r.right),e.equalDelta){var p=(h.left?1:-1)*(h.top?1:-1);e.edgeSign={x:p,y:p}}else e.edgeSign={x:h.left?-1:1,y:h.top?-1:1};if(!1!==l&&K(r,h),null!=d&&d.length){var f=new Ie(t.interaction);f.copyFrom(t.interaction.modification),f.prepareStates(d),e.subModification=f,f.startAll(n({},t))}},set:function(t){var e=t.state,i=t.rect,r=t.coords,s=e.linkedEdges,o=K({},r),a=e.equalDelta?Sn:In;if(K(t.edges,s),a(e,e.xIsPrimaryAxis,r,i),!e.subModification)return null;var l=K({},i);rt(s,l,{x:r.x-o.x,y:r.y-o.y});var c=e.subModification.setAll(n(n({},t),{},{rect:l,edges:s,pageCoords:r,prevCoords:r,prevRect:l})),u=c.delta;return c.changed&&(a(e,Math.abs(u.x)>Math.abs(u.y),c.coords,c.rect),K(r,c.coords)),c.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Sn(t,e,n){var i=t.startCoords,r=t.edgeSign;e?n.y=i.y+(n.x-i.x)*r.y:n.x=i.x+(n.y-i.y)*r.x}function In(t,e,n,i){var r=t.startRect,s=t.startCoords,o=t.ratio,a=t.edgeSign;if(e){var l=i.width/o;n.y=s.y+(l-r.height)*a.y}else{var c=i.height*o;n.x=s.x+(c-r.width)*a.x}}var Ln=De(kn,"aspectRatio"),Dn=function(){};Dn._defaults={};var Tn=Dn;function Nn(t,e,n){return M(t)?et(t,e.interactable,e.element,[n.x,n.y,e]):et(t,e.interactable,e.element)}var On={start:function(t){var e=t.rect,n=t.startOffset,i=t.state,r=t.interaction,s=t.pageCoords,o=i.options,a=o.elementRect,l=K({left:0,top:0,right:0,bottom:0},o.offset||{});if(e&&a){var c=Nn(o.restriction,r,s);if(c){var u=c.right-c.left-e.width,d=c.bottom-c.top-e.height;u<0&&(l.left+=u,l.right+=u),d<0&&(l.top+=d,l.bottom+=d)}l.left+=n.left-e.width*a.left,l.top+=n.top-e.height*a.top,l.right+=n.right-e.width*(1-a.right),l.bottom+=n.bottom-e.height*(1-a.bottom)}i.offset=l},set:function(t){var e=t.coords,n=t.interaction,i=t.state,r=i.options,s=i.offset,o=Nn(r.restriction,n,e);if(o){var a=function(t){return!t||"left"in t&&"top"in t||((t=K({},t)).left=t.x||0,t.top=t.y||0,t.right=t.right||t.left+t.width,t.bottom=t.bottom||t.top+t.height),t}(o);e.x=Math.max(Math.min(a.right-s.right,e.x),a.left+s.left),e.y=Math.max(Math.min(a.bottom-s.bottom,e.y),a.top+s.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},jn=De(On,"restrict"),En={top:1/0,left:1/0,bottom:-1/0,right:-1/0},zn={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Fn(t,e){for(var n=0,i=["top","left","bottom","right"];n<i.length;n++){var r=i[n];r in t||(t[r]=e[r])}return t}var Pn={noInner:En,noOuter:zn,start:function(t){var e,n=t.interaction,i=t.startOffset,r=t.state,s=r.options;s&&(e=nt(Nn(s.offset,n,n.coords.start.page))),e=e||{x:0,y:0},r.offset={top:e.y+i.top,left:e.x+i.left,bottom:e.y-i.bottom,right:e.x-i.right}},set:function(t){var e=t.coords,n=t.edges,i=t.interaction,r=t.state,s=r.offset,o=r.options;if(n){var a=K({},e),l=Nn(o.inner,i,a)||{},c=Nn(o.outer,i,a)||{};Fn(l,En),Fn(c,zn),n.top?e.y=Math.min(Math.max(c.top+s.top,a.y),l.top+s.top):n.bottom&&(e.y=Math.max(Math.min(c.bottom+s.bottom,a.y),l.bottom+s.bottom)),n.left?e.x=Math.min(Math.max(c.left+s.left,a.x),l.left+s.left):n.right&&(e.x=Math.max(Math.min(c.right+s.right,a.x),l.right+s.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Rn=De(Pn,"restrictEdges"),Yn=K({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},On.defaults),Un=De({start:On.start,set:On.set,defaults:Yn},"restrictRect"),Bn={width:-1/0,height:-1/0},Wn={width:1/0,height:1/0},Hn=De({start:function(t){return Pn.start(t)},set:function(t){var e=t.interaction,n=t.state,i=t.rect,r=t.edges,s=n.options;if(r){var o=it(Nn(s.min,e,t.coords))||Bn,a=it(Nn(s.max,e,t.coords))||Wn;n.options={endOnly:s.endOnly,inner:K({},Pn.noInner),outer:K({},Pn.noOuter)},r.top?(n.options.inner.top=i.bottom-o.height,n.options.outer.top=i.bottom-a.height):r.bottom&&(n.options.inner.bottom=i.top+o.height,n.options.outer.bottom=i.top+a.height),r.left?(n.options.inner.left=i.right-o.width,n.options.outer.left=i.right-a.width):r.right&&(n.options.inner.right=i.left+o.width,n.options.outer.right=i.left+a.width),Pn.set(t),n.options=s}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Vn={start:function(t){var e,n=t.interaction,i=t.interactable,r=t.element,s=t.rect,o=t.state,a=t.startOffset,l=o.options,c=l.offsetWithOrigin?function(t){var e=t.interaction.element;return nt(et(t.state.options.origin,null,null,[e]))||st(t.interactable,e,t.interaction.prepared.name)}(t):{x:0,y:0};if("startCoords"===l.offset)e={x:n.coords.start.page.x,y:n.coords.start.page.y};else{var u=et(l.offset,i,r,[n]);(e=nt(u)||{x:0,y:0}).x+=c.x,e.y+=c.y}var d=l.relativePoints;o.offsets=s&&d&&d.length?d.map((function(t,n){return{index:n,relativePoint:t,x:a.left-s.width*t.x+e.x,y:a.top-s.height*t.y+e.y}})):[{index:0,relativePoint:null,x:e.x,y:e.y}]},set:function(t){var e=t.interaction,n=t.coords,i=t.state,r=i.options,s=i.offsets,o=st(e.interactable,e.element,e.prepared.name),a=K({},n),l=[];r.offsetWithOrigin||(a.x-=o.x,a.y-=o.y);for(var c=0,u=s;c<u.length;c++)for(var d=u[c],h=a.x-d.x,p=a.y-d.y,f=0,g=r.targets.length;f<g;f++){var m,v=r.targets[f];(m=M(v)?v(h,p,e._proxy,d,f):v)&&l.push({x:(k(m.x)?m.x:h)+d.x,y:(k(m.y)?m.y:p)+d.y,range:k(m.range)?m.range:r.range,source:v,index:f,offset:d})}for(var y={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},b=0;b<l.length;b++){var x=l[b],w=x.range,A=x.x-a.x,_=x.y-a.y,C=lt(A,_),S=C<=w;w===1/0&&y.inRange&&y.range!==1/0&&(S=!1),y.target&&!(S?y.inRange&&w!==1/0?C/w<y.distance/y.range:w===1/0&&y.range!==1/0||C<y.distance:!y.inRange&&C<y.distance)||(y.target=x,y.distance=C,y.range=w,y.inRange=S,y.delta.x=A,y.delta.y=_)}return y.inRange&&(n.x=y.target.x,n.y=y.target.y),i.closest=y,y},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Zn=De(Vn,"snap"),Gn={start:function(t){var e=t.state,n=t.edges,i=e.options;if(!n)return null;t.state={options:{targets:null,relativePoints:[{x:n.left?0:1,y:n.top?0:1}],offset:i.offset||"self",origin:{x:0,y:0},range:i.range}},e.targetFields=e.targetFields||[["width","height"],["x","y"]],Vn.start(t),e.offsets=t.state.offsets,t.state=e},set:function(t){var e=t.interaction,n=t.state,i=t.coords,r=n.options,s=n.offsets,o={x:i.x-s[0].x,y:i.y-s[0].y};n.options=K({},r),n.options.targets=[];for(var a=0,l=r.targets||[];a<l.length;a++){var c=l[a],u=void 0;if(u=M(c)?c(o.x,o.y,e):c){for(var d=0,h=n.targetFields;d<h.length;d++){var p=h[d],f=p[0],g=p[1];if(f in u||g in u){u.x=u[f],u.y=u[g];break}}n.options.targets.push(u)}}var m=Vn.set(t);return n.options=r,m},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Qn=De(Gn,"snapSize"),Jn={aspectRatio:Ln,restrictEdges:Rn,restrict:jn,restrictRect:Un,restrictSize:Hn,snapEdges:De({start:function(t){var e=t.edges;return e?(t.state.targetFields=t.state.targetFields||[[e.left?"left":"right",e.top?"top":"bottom"]],Gn.start(t)):null},set:Gn.set,defaults:K(Se(Gn.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Zn,snapSize:Qn,spring:Tn,avoid:Tn,transform:Tn,rubberband:Tn},Xn={id:"modifiers",install:function(t){var e=t.interactStatic;for(var n in t.usePlugin(Oe),t.usePlugin(Mn),e.modifiers=Jn,Jn){var i=Jn[n],r=i._defaults,s=i._methods;r._methods=s,t.defaults.perAction[n]=r}}},qn=Xn,$n=function(t){l(n,t);var e=h(n);function n(t,i,s,o,a,l){var c;if(r(this,n),ut(d(c=e.call(this,a)),s),s!==i&&ut(d(c),i),c.timeStamp=l,c.originalEvent=s,c.type=t,c.pointerId=mt(i),c.pointerType=At(i),c.target=o,c.currentTarget=null,"tap"===t){var u=a.getPointerIndex(i);c.dt=c.timeStamp-a.pointers[u].downTime;var h=c.timeStamp-a.tapTime;c.double=!!a.prevTap&&"doubletap"!==a.prevTap.type&&a.prevTap.target===c.target&&h<500}else"doubletap"===t&&(c.dt=i.timeStamp-a.tapTime,c.double=!0);return c}return o(n,[{key:"_subtractOrigin",value:function(t){var e=t.x,n=t.y;return this.pageX-=e,this.pageY-=n,this.clientX-=e,this.clientY-=n,this}},{key:"_addOrigin",value:function(t){var e=t.x,n=t.y;return this.pageX+=e,this.pageY+=n,this.clientX+=e,this.clientY+=n,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),n}(Ct),Kn={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(t){t.pointerEvents=Kn,t.defaults.actions.pointerEvents=Kn.defaults,K(t.actions.phaselessTypes,Kn.types)},listeners:{"interactions:new":function(t){var e=t.interaction;e.prevTap=null,e.tapTime=0},"interactions:update-pointer":function(t){var e=t.down,n=t.pointerInfo;!e&&n.hold||(n.hold={duration:1/0,timeout:null})},"interactions:move":function(t,e){var n=t.interaction,i=t.pointer,r=t.event,s=t.eventTarget;t.duplicate||n.pointerIsDown&&!n.pointerWasMoved||(n.pointerIsDown&&ni(t),ti({interaction:n,pointer:i,event:r,eventTarget:s,type:"move"},e))},"interactions:down":function(t,e){!function(t,e){for(var n=t.interaction,i=t.pointer,r=t.event,s=t.eventTarget,o=t.pointerIndex,a=n.pointers[o].hold,l=q(s),c={interaction:n,pointer:i,event:r,eventTarget:s,type:"hold",targets:[],path:l,node:null},u=0;u<l.length;u++){var d=l[u];c.node=d,e.fire("pointerEvents:collect-targets",c)}if(c.targets.length){for(var h=1/0,p=0,f=c.targets;p<f.length;p++){var g=f[p].eventable.options.holdDuration;g<h&&(h=g)}a.duration=h,a.timeout=setTimeout((function(){ti({interaction:n,eventTarget:s,pointer:i,event:r,type:"hold"},e)}),h)}}(t,e),ti(t,e)},"interactions:up":function(t,e){ni(t),ti(t,e),function(t,e){var n=t.interaction,i=t.pointer,r=t.event,s=t.eventTarget;n.pointerWasMoved||ti({interaction:n,eventTarget:s,pointer:i,event:r,type:"tap"},e)}(t,e)},"interactions:cancel":function(t,e){ni(t),ti(t,e)}},PointerEvent:$n,fire:ti,collectEventTargets:ei,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function ti(t,e){var n=t.interaction,i=t.pointer,r=t.event,s=t.eventTarget,o=t.type,a=t.targets,l=void 0===a?ei(t,e):a,c=new $n(o,i,r,s,n,e.now());e.fire("pointerEvents:new",{pointerEvent:c});for(var u={interaction:n,pointer:i,event:r,eventTarget:s,targets:l,type:o,pointerEvent:c},d=0;d<l.length;d++){var h=l[d];for(var p in h.props||{})c[p]=h.props[p];var f=st(h.eventable,h.node);if(c._subtractOrigin(f),c.eventable=h.eventable,c.currentTarget=h.node,h.eventable.fire(c),c._addOrigin(f),c.immediatePropagationStopped||c.propagationStopped&&d+1<l.length&&l[d+1].node!==c.currentTarget)break}if(e.fire("pointerEvents:fired",u),"tap"===o){var g=c.double?ti({interaction:n,pointer:i,event:r,eventTarget:s,type:"doubletap"},e):c;n.prevTap=g,n.tapTime=g.timeStamp}return c}function ei(t,e){var n=t.interaction,i=t.pointer,r=t.event,s=t.eventTarget,o=t.type,a=n.getPointerIndex(i),l=n.pointers[a];if("tap"===o&&(n.pointerWasMoved||!l||l.downTarget!==s))return[];for(var c=q(s),u={interaction:n,pointer:i,event:r,eventTarget:s,type:o,path:c,targets:[],node:null},d=0;d<c.length;d++){var h=c[d];u.node=h,e.fire("pointerEvents:collect-targets",u)}return"hold"===o&&(u.targets=u.targets.filter((function(t){var e,i;return t.eventable.options.holdDuration===(null==(e=n.pointers[a])||null==(i=e.hold)?void 0:i.duration)}))),u.targets}function ni(t){var e=t.interaction,n=t.pointerIndex,i=e.pointers[n].hold;i&&i.timeout&&(clearTimeout(i.timeout),i.timeout=null)}var ii=Object.freeze({__proto__:null,default:Kn});function ri(t){var e=t.interaction;e.holdIntervalHandle&&(clearInterval(e.holdIntervalHandle),e.holdIntervalHandle=null)}var si={id:"pointer-events/holdRepeat",install:function(t){t.usePlugin(Kn);var e=t.pointerEvents;e.defaults.holdRepeatInterval=0,e.types.holdrepeat=t.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce((function(t,e){return t["pointerEvents:".concat(e)]=ri,t}),{"pointerEvents:new":function(t){var e=t.pointerEvent;"hold"===e.type&&(e.count=(e.count||0)+1)},"pointerEvents:fired":function(t,e){var n=t.interaction,i=t.pointerEvent,r=t.eventTarget,s=t.targets;if("hold"===i.type&&s.length){var o=s[0].eventable.options.holdRepeatInterval;o<=0||(n.holdIntervalHandle=setTimeout((function(){e.pointerEvents.fire({interaction:n,eventTarget:r,type:"hold",pointer:i,event:i},e)}),o))}}})},oi=si,ai={id:"pointer-events/interactableTargets",install:function(t){var e=t.Interactable;e.prototype.pointerEvents=function(t){return K(this.events.options,t),this};var n=e.prototype._backCompatOption;e.prototype._backCompatOption=function(t,e){var i=n.call(this,t,e);return i===this&&(this.events.options[t]=e),i}},listeners:{"pointerEvents:collect-targets":function(t,e){var n=t.targets,i=t.node,r=t.type,s=t.eventTarget;e.interactables.forEachMatch(i,(function(t){var e=t.events,o=e.options;e.types[r]&&e.types[r].length&&t.testIgnoreAllow(o,i,s)&&n.push({node:i,eventable:e,props:{interactable:t}})}))},"interactable:new":function(t){var e=t.interactable;e.events.getRect=function(t){return e.getRect(t)}},"interactable:set":function(t,e){var n=t.interactable,i=t.options;K(n.events.options,e.pointerEvents.defaults),K(n.events.options,i.pointerEvents||{})}}},li=ai,ci={id:"pointer-events",install:function(t){t.usePlugin(ii),t.usePlugin(oi),t.usePlugin(li)}},ui=ci,di={id:"reflow",install:function(t){var e=t.Interactable;t.actions.phases.reflow=!0,e.prototype.reflow=function(e){return function(t,e,n){for(var i=t.getAllElements(),r=n.window.Promise,s=r?[]:null,o=function(){var o=i[a],l=t.getRect(o);if(!l)return 1;var c,u=It(n.interactions.list,(function(n){return n.interacting()&&n.interactable===t&&n.element===o&&n.prepared.name===e.name}));if(u)u.move(),s&&(c=u._reflowPromise||new r((function(t){u._reflowResolve=t})));else{var d=it(l),h=function(t){return{coords:t,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:d.x,y:d.y},client:{x:d.x,y:d.y},timeStamp:n.now()});c=function(t,e,n,i,r){var s=t.interactions.new({pointerType:"reflow"}),o={interaction:s,event:r,pointer:r,eventTarget:n,phase:"reflow"};s.interactable=e,s.element=n,s.prevEvent=r,s.updatePointer(r,r,n,!0),ht(s.coords.delta),re(s.prepared,i),s._doPhase(o);var a=t.window.Promise,l=a?new a((function(t){s._reflowResolve=t})):void 0;return s._reflowPromise=l,s.start(i,e,n),s._interacting?(s.move(o),s.end(r)):(s.stop(),s._reflowResolve()),s.removePointer(r,r),l}(n,t,o,e,h)}s&&s.push(c)},a=0;a<i.length&&!o();a++);return s&&r.all(s).then((function(){return t}))}(this,e,t)}},listeners:{"interactions:stop":function(t,e){var n=t.interaction;"reflow"===n.pointerType&&(n._reflowResolve&&n._reflowResolve(),function(t,e){t.splice(t.indexOf(e),1)}(e.interactions.list,n))}}},hi=di;if(wn.use(Me),wn.use(Ze),wn.use(ui),wn.use($e),wn.use(qn),wn.use(Ae),wn.use(Gt),wn.use(ne),wn.use(hi),wn.default=wn,"object"===i(t)&&t)try{t.exports=wn}catch(e){}return wn.default=wn,wn}()},194:(t,e)=>{"use strict";var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},i={tName:"t",i18nName:"i18n",handleName:"localize",selectorAttr:"data-i18n",targetAttr:"i18n-target",optionsAttr:"i18n-options",useOptionsAttr:!1,parseDefaultValueFromContent:!0};e.default={init:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,i,s){if(0!==i.length){var o="text";if(0===i.indexOf("[")){var a=i.split("]");i=a[1],o=a[0].substr(1,a[0].length-1)}if(i.indexOf(";")===i.length-1&&(i=i.substr(0,i.length-2)),"html"===o)e.html(t.t(i,u(s,e.html())));else if("text"===o)e.text(t.t(i,u(s,e.text())));else if("prepend"===o)e.prepend(t.t(i,u(s,e.html())));else if("append"===o)e.append(t.t(i,u(s,e.html())));else if(0===o.indexOf("data-")){var l=o.substr(5),c=t.t(i,u(s,e.data(l)));e.data(l,c),e.attr(o,c)}else e.attr(o,t.t(i,u(s,e.attr(o))))}function u(t,e){return r.parseDefaultValueFromContent?n({},t,{defaultValue:e}):t}}function o(t,i){var o=t.attr(r.selectorAttr);if(o||void 0===o||!1===o||(o=t.text()||t.val()),o){var a=t,l=t.data(r.targetAttr);if(l&&(a=t.find(l)||t),i||!0!==r.useOptionsAttr||(i=t.data(r.optionsAttr)),i=i||{},o.indexOf(";")>=0){var c=o.split(";");e.each(c,(function(t,e){""!==e&&s(a,e.trim(),i)}))}else s(a,o,i);if(!0===r.useOptionsAttr){var u={};delete(u=n({clone:u},i)).lng,t.data(r.optionsAttr,u)}}}r=n({},i,r),e[r.tName]=t.t.bind(t),e[r.i18nName]=t,e.fn[r.handleName]=function(t){return this.each((function(){o(e(this),t),e(this).find("["+r.selectorAttr+"]").each((function(){o(e(this),t)}))}))}}}},790:(t,e,n)=>{t.exports=n(194).default},651:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(i,r){"use strict";var s=[],o=Object.getPrototypeOf,a=s.slice,l=s.flat?function(t){return s.flat.call(t)}:function(t){return s.concat.apply([],t)},c=s.push,u=s.indexOf,d={},h=d.toString,p=d.hasOwnProperty,f=p.toString,g=f.call(Object),m={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},y=function(t){return null!=t&&t===t.window},b=i.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(t,e,n){var i,r,s=(n=n||b).createElement("script");if(s.text=t,e)for(i in x)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&s.setAttribute(i,r);n.head.appendChild(s).parentNode.removeChild(s)}function A(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?d[h.call(t)]||"object":typeof t}var _="3.7.1",C=/HTML$/i,M=function(t,e){return new M.fn.init(t,e)};function k(t){var e=!!t&&"length"in t&&t.length,n=A(t);return!v(t)&&!y(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function S(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}M.fn=M.prototype={jquery:_,constructor:M,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=M.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return M.each(this,t)},map:function(t){return this.pushStack(M.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(M.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(M.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:s.sort,splice:s.splice},M.extend=M.fn.extend=function(){var t,e,n,i,r,s,o=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[a]||{},a++),"object"==typeof o||v(o)||(o={}),a===l&&(o=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)i=t[e],"__proto__"!==e&&o!==i&&(c&&i&&(M.isPlainObject(i)||(r=Array.isArray(i)))?(n=o[e],s=r&&!Array.isArray(n)?[]:r||M.isPlainObject(n)?n:{},r=!1,o[e]=M.extend(c,s,i)):void 0!==i&&(o[e]=i));return o},M.extend({expando:"jQuery"+(_+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==h.call(t)||(e=o(t))&&("function"!=typeof(n=p.call(e,"constructor")&&e.constructor)||f.call(n)!==g))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){w(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(k(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},text:function(t){var e,n="",i=0,r=t.nodeType;if(!r)for(;e=t[i++];)n+=M.text(e);return 1===r||11===r?t.textContent:9===r?t.documentElement.textContent:3===r||4===r?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(k(Object(t))?M.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:u.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!C.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,s=t.length,o=!n;r<s;r++)!e(t[r],r)!==o&&i.push(t[r]);return i},map:function(t,e,n){var i,r,s=0,o=[];if(k(t))for(i=t.length;s<i;s++)null!=(r=e(t[s],s,n))&&o.push(r);else for(s in t)null!=(r=e(t[s],s,n))&&o.push(r);return l(o)},guid:1,support:m}),"function"==typeof Symbol&&(M.fn[Symbol.iterator]=s[Symbol.iterator]),M.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){d["[object "+e+"]"]=e.toLowerCase()}));var I=s.pop,L=s.sort,D=s.splice,T="[\\x20\\t\\r\\n\\f]",N=new RegExp("^"+T+"+|((?:^|[^\\\\])(?:\\\\.)*)"+T+"+$","g");M.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var O=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function j(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}M.escapeSelector=function(t){return(t+"").replace(O,j)};var E=b,z=c;!function(){var t,e,n,r,o,l,c,d,h,f,g=z,v=M.expando,y=0,b=0,x=tt(),w=tt(),A=tt(),_=tt(),C=function(t,e){return t===e&&(o=!0),0},k="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="(?:\\\\[\\da-fA-F]{1,6}"+T+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",j="\\["+T+"*("+O+")(?:"+T+"*([*^$|!~]?=)"+T+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+T+"*\\]",F=":("+O+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+j+")*)|.*)\\)|)",P=new RegExp(T+"+","g"),R=new RegExp("^"+T+"*,"+T+"*"),Y=new RegExp("^"+T+"*([>+~]|"+T+")"+T+"*"),U=new RegExp(T+"|>"),B=new RegExp(F),W=new RegExp("^"+O+"$"),H={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+T+"*(even|odd|(([+-]|)(\\d*)n|)"+T+"*(?:([+-]|)"+T+"*(\\d+)|))"+T+"*\\)|)","i"),bool:new RegExp("^(?:"+k+")$","i"),needsContext:new RegExp("^"+T+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+T+"*((?:-\\d)?\\d*)"+T+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,J=new RegExp("\\\\[\\da-fA-F]{1,6}"+T+"?|\\\\([^\\r\\n\\f])","g"),X=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},q=function(){lt()},$=ht((function(t){return!0===t.disabled&&S(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(s=a.call(E.childNodes),E.childNodes),s[E.childNodes.length].nodeType}catch(t){g={apply:function(t,e){z.apply(t,a.call(e))},call:function(t){z.apply(t,a.call(arguments,1))}}}function K(t,e,n,i){var r,s,o,a,c,u,p,f=e&&e.ownerDocument,y=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==y&&9!==y&&11!==y)return n;if(!i&&(lt(e),e=e||l,d)){if(11!==y&&(c=G.exec(t)))if(r=c[1]){if(9===y){if(!(o=e.getElementById(r)))return n;if(o.id===r)return g.call(n,o),n}else if(f&&(o=f.getElementById(r))&&K.contains(e,o)&&o.id===r)return g.call(n,o),n}else{if(c[2])return g.apply(n,e.getElementsByTagName(t)),n;if((r=c[3])&&e.getElementsByClassName)return g.apply(n,e.getElementsByClassName(r)),n}if(!(_[t+" "]||h&&h.test(t))){if(p=t,f=e,1===y&&(U.test(t)||Y.test(t))){for((f=Q.test(t)&&at(e.parentNode)||e)==e&&m.scope||((a=e.getAttribute("id"))?a=M.escapeSelector(a):e.setAttribute("id",a=v)),s=(u=ut(t)).length;s--;)u[s]=(a?"#"+a:":scope")+" "+dt(u[s]);p=u.join(",")}try{return g.apply(n,f.querySelectorAll(p)),n}catch(e){_(t,!0)}finally{a===v&&e.removeAttribute("id")}}}return yt(t.replace(N,"$1"),e,n,i)}function tt(){var t=[];return function n(i,r){return t.push(i+" ")>e.cacheLength&&delete n[t.shift()],n[i+" "]=r}}function et(t){return t[v]=!0,t}function nt(t){var e=l.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function it(t){return function(e){return S(e,"input")&&e.type===t}}function rt(t){return function(e){return(S(e,"input")||S(e,"button"))&&e.type===t}}function st(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&$(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ot(t){return et((function(e){return e=+e,et((function(n,i){for(var r,s=t([],n.length,e),o=s.length;o--;)n[r=s[o]]&&(n[r]=!(i[r]=n[r]))}))}))}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function lt(t){var n,i=t?t.ownerDocument||t:E;return i!=l&&9===i.nodeType&&i.documentElement?(c=(l=i).documentElement,d=!M.isXMLDoc(l),f=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&E!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",q),m.getById=nt((function(t){return c.appendChild(t).id=M.expando,!l.getElementsByName||!l.getElementsByName(M.expando).length})),m.disconnectedMatch=nt((function(t){return f.call(t,"*")})),m.scope=nt((function(){return l.querySelectorAll(":scope")})),m.cssHas=nt((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),m.getById?(e.filter.ID=function(t){var e=t.replace(J,X);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(J,X);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var n,i,r,s=e.getElementById(t);if(s){if((n=s.getAttributeNode("id"))&&n.value===t)return[s];for(r=e.getElementsByName(t),i=0;s=r[i++];)if((n=s.getAttributeNode("id"))&&n.value===t)return[s]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&d)return e.getElementsByClassName(t)},h=[],nt((function(t){var e;c.appendChild(t).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||h.push("\\["+T+"*(?:value|"+k+")"),t.querySelectorAll("[id~="+v+"-]").length||h.push("~="),t.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),t.querySelectorAll(":checked").length||h.push(":checked"),(e=l.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),c.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(e=l.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||h.push("\\["+T+"*name"+T+"*="+T+"*(?:''|\"\")")})),m.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),C=function(t,e){if(t===e)return o=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!m.sortDetached&&e.compareDocumentPosition(t)===n?t===l||t.ownerDocument==E&&K.contains(E,t)?-1:e===l||e.ownerDocument==E&&K.contains(E,e)?1:r?u.call(r,t)-u.call(r,e):0:4&n?-1:1)},l):l}for(t in K.matches=function(t,e){return K(t,null,null,e)},K.matchesSelector=function(t,e){if(lt(t),d&&!_[e+" "]&&(!h||!h.test(e)))try{var n=f.call(t,e);if(n||m.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){_(e,!0)}return K(e,l,null,[t]).length>0},K.contains=function(t,e){return(t.ownerDocument||t)!=l&&lt(t),M.contains(t,e)},K.attr=function(t,n){(t.ownerDocument||t)!=l&&lt(t);var i=e.attrHandle[n.toLowerCase()],r=i&&p.call(e.attrHandle,n.toLowerCase())?i(t,n,!d):void 0;return void 0!==r?r:t.getAttribute(n)},K.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},M.uniqueSort=function(t){var e,n=[],i=0,s=0;if(o=!m.sortStable,r=!m.sortStable&&a.call(t,0),L.call(t,C),o){for(;e=t[s++];)e===t[s]&&(i=n.push(s));for(;i--;)D.call(t,n[i],1)}return r=null,t},M.fn.uniqueSort=function(){return this.pushStack(M.uniqueSort(a.apply(this)))},e=M.expr={cacheLength:50,createPseudo:et,match:H,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(J,X),t[3]=(t[3]||t[4]||t[5]||"").replace(J,X),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||K.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&K.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return H.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&B.test(n)&&(e=ut(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(J,X).toLowerCase();return"*"===t?function(){return!0}:function(t){return S(t,e)}},CLASS:function(t){var e=x[t+" "];return e||(e=new RegExp("(^|"+T+")"+t+"("+T+"|$)"))&&x(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var r=K.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(P," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var s="nth"!==t.slice(0,3),o="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,u,d,h,p,f=s!==o?"nextSibling":"previousSibling",g=e.parentNode,m=a&&e.nodeName.toLowerCase(),b=!l&&!a,x=!1;if(g){if(s){for(;f;){for(d=e;d=d[f];)if(a?S(d,m):1===d.nodeType)return!1;p=f="only"===t&&!p&&"nextSibling"}return!0}if(p=[o?g.firstChild:g.lastChild],o&&b){for(x=(h=(c=(u=g[v]||(g[v]={}))[t]||[])[0]===y&&c[1])&&c[2],d=h&&g.childNodes[h];d=++h&&d&&d[f]||(x=h=0)||p.pop();)if(1===d.nodeType&&++x&&d===e){u[t]=[y,h,x];break}}else if(b&&(x=h=(c=(u=e[v]||(e[v]={}))[t]||[])[0]===y&&c[1]),!1===x)for(;(d=++h&&d&&d[f]||(x=h=0)||p.pop())&&(!(a?S(d,m):1===d.nodeType)||!++x||(b&&((u=d[v]||(d[v]={}))[t]=[y,x]),d!==e)););return(x-=r)===i||x%i==0&&x/i>=0}}},PSEUDO:function(t,n){var i,r=e.pseudos[t]||e.setFilters[t.toLowerCase()]||K.error("unsupported pseudo: "+t);return r[v]?r(n):r.length>1?(i=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var i,s=r(t,n),o=s.length;o--;)t[i=u.call(t,s[o])]=!(e[i]=s[o])})):function(t){return r(t,0,i)}):r}},pseudos:{not:et((function(t){var e=[],n=[],i=vt(t.replace(N,"$1"));return i[v]?et((function(t,e,n,r){for(var s,o=i(t,null,r,[]),a=t.length;a--;)(s=o[a])&&(t[a]=!(e[a]=s))})):function(t,r,s){return e[0]=t,i(e,null,s,n),e[0]=null,!n.pop()}})),has:et((function(t){return function(e){return K(t,e).length>0}})),contains:et((function(t){return t=t.replace(J,X),function(e){return(e.textContent||M.text(e)).indexOf(t)>-1}})),lang:et((function(t){return W.test(t||"")||K.error("unsupported lang: "+t),t=t.replace(J,X).toLowerCase(),function(e){var n;do{if(n=d?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===c},focus:function(t){return t===function(){try{return l.activeElement}catch(t){}}()&&l.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:st(!1),disabled:st(!0),checked:function(t){return S(t,"input")&&!!t.checked||S(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return Z.test(t.nodeName)},input:function(t){return V.test(t.nodeName)},button:function(t){return S(t,"input")&&"button"===t.type||S(t,"button")},text:function(t){var e;return S(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ot((function(){return[0]})),last:ot((function(t,e){return[e-1]})),eq:ot((function(t,e,n){return[n<0?n+e:n]})),even:ot((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:ot((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:ot((function(t,e,n){var i;for(i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t})),gt:ot((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=it(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=rt(t);function ct(){}function ut(t,n){var i,r,s,o,a,l,c,u=w[t+" "];if(u)return n?0:u.slice(0);for(a=t,l=[],c=e.preFilter;a;){for(o in i&&!(r=R.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(s=[])),i=!1,(r=Y.exec(a))&&(i=r.shift(),s.push({value:i,type:r[0].replace(N," ")}),a=a.slice(i.length)),e.filter)!(r=H[o].exec(a))||c[o]&&!(r=c[o](r))||(i=r.shift(),s.push({value:i,type:o,matches:r}),a=a.slice(i.length));if(!i)break}return n?a.length:a?K.error(t):w(t,l).slice(0)}function dt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function ht(t,e,n){var i=e.dir,r=e.next,s=r||i,o=n&&"parentNode"===s,a=b++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||o)return t(e,n,r);return!1}:function(e,n,l){var c,u,d=[y,a];if(l){for(;e=e[i];)if((1===e.nodeType||o)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||o)if(u=e[v]||(e[v]={}),r&&S(e,r))e=e[i]||e;else{if((c=u[s])&&c[0]===y&&c[1]===a)return d[2]=c[2];if(u[s]=d,d[2]=t(e,n,l))return!0}return!1}}function pt(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function ft(t,e,n,i,r){for(var s,o=[],a=0,l=t.length,c=null!=e;a<l;a++)(s=t[a])&&(n&&!n(s,i,r)||(o.push(s),c&&e.push(a)));return o}function gt(t,e,n,i,r,s){return i&&!i[v]&&(i=gt(i)),r&&!r[v]&&(r=gt(r,s)),et((function(s,o,a,l){var c,d,h,p,f=[],m=[],v=o.length,y=s||function(t,e,n){for(var i=0,r=e.length;i<r;i++)K(t,e[i],n);return n}(e||"*",a.nodeType?[a]:a,[]),b=!t||!s&&e?y:ft(y,f,t,a,l);if(n?n(b,p=r||(s?t:v||i)?[]:o,a,l):p=b,i)for(c=ft(p,m),i(c,[],a,l),d=c.length;d--;)(h=c[d])&&(p[m[d]]=!(b[m[d]]=h));if(s){if(r||t){if(r){for(c=[],d=p.length;d--;)(h=p[d])&&c.push(b[d]=h);r(null,p=[],c,l)}for(d=p.length;d--;)(h=p[d])&&(c=r?u.call(s,h):f[d])>-1&&(s[c]=!(o[c]=h))}}else p=ft(p===o?p.splice(v,p.length):p),r?r(null,o,p,l):g.apply(o,p)}))}function mt(t){for(var i,r,s,o=t.length,a=e.relative[t[0].type],l=a||e.relative[" "],c=a?1:0,d=ht((function(t){return t===i}),l,!0),h=ht((function(t){return u.call(i,t)>-1}),l,!0),p=[function(t,e,r){var s=!a&&(r||e!=n)||((i=e).nodeType?d(t,e,r):h(t,e,r));return i=null,s}];c<o;c++)if(r=e.relative[t[c].type])p=[ht(pt(p),r)];else{if((r=e.filter[t[c].type].apply(null,t[c].matches))[v]){for(s=++c;s<o&&!e.relative[t[s].type];s++);return gt(c>1&&pt(p),c>1&&dt(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(N,"$1"),r,c<s&&mt(t.slice(c,s)),s<o&&mt(t=t.slice(s)),s<o&&dt(t))}p.push(r)}return pt(p)}function vt(t,i){var r,s=[],o=[],a=A[t+" "];if(!a){for(i||(i=ut(t)),r=i.length;r--;)(a=mt(i[r]))[v]?s.push(a):o.push(a);a=A(t,function(t,i){var r=i.length>0,s=t.length>0,o=function(o,a,c,u,h){var p,f,m,v=0,b="0",x=o&&[],w=[],A=n,_=o||s&&e.find.TAG("*",h),C=y+=null==A?1:Math.random()||.1,k=_.length;for(h&&(n=a==l||a||h);b!==k&&null!=(p=_[b]);b++){if(s&&p){for(f=0,a||p.ownerDocument==l||(lt(p),c=!d);m=t[f++];)if(m(p,a||l,c)){g.call(u,p);break}h&&(y=C)}r&&((p=!m&&p)&&v--,o&&x.push(p))}if(v+=b,r&&b!==v){for(f=0;m=i[f++];)m(x,w,a,c);if(o){if(v>0)for(;b--;)x[b]||w[b]||(w[b]=I.call(u));w=ft(w)}g.apply(u,w),h&&!o&&w.length>0&&v+i.length>1&&M.uniqueSort(u)}return h&&(y=C,n=A),x};return r?et(o):o}(o,s)),a.selector=t}return a}function yt(t,n,i,r){var s,o,a,l,c,u="function"==typeof t&&t,h=!r&&ut(t=u.selector||t);if(i=i||[],1===h.length){if((o=h[0]=h[0].slice(0)).length>2&&"ID"===(a=o[0]).type&&9===n.nodeType&&d&&e.relative[o[1].type]){if(!(n=(e.find.ID(a.matches[0].replace(J,X),n)||[])[0]))return i;u&&(n=n.parentNode),t=t.slice(o.shift().value.length)}for(s=H.needsContext.test(t)?0:o.length;s--&&(a=o[s],!e.relative[l=a.type]);)if((c=e.find[l])&&(r=c(a.matches[0].replace(J,X),Q.test(o[0].type)&&at(n.parentNode)||n))){if(o.splice(s,1),!(t=r.length&&dt(o)))return g.apply(i,r),i;break}}return(u||vt(t,h))(r,n,!d,i,!n||Q.test(t)&&at(n.parentNode)||n),i}ct.prototype=e.filters=e.pseudos,e.setFilters=new ct,m.sortStable=v.split("").sort(C).join("")===v,lt(),m.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(l.createElement("fieldset"))})),M.find=K,M.expr[":"]=M.expr.pseudos,M.unique=M.uniqueSort,K.compile=vt,K.select=yt,K.setDocument=lt,K.tokenize=ut,K.escape=M.escapeSelector,K.getText=M.text,K.isXML=M.isXMLDoc,K.selectors=M.expr,K.support=M.support,K.uniqueSort=M.uniqueSort}();var F=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&M(t).is(n))break;i.push(t)}return i},P=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},R=M.expr.match.needsContext,Y=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function U(t,e,n){return v(e)?M.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?M.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?M.grep(t,(function(t){return u.call(e,t)>-1!==n})):M.filter(e,t,n)}M.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?M.find.matchesSelector(i,t)?[i]:[]:M.find.matches(t,M.grep(e,(function(t){return 1===t.nodeType})))},M.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(M(t).filter((function(){for(e=0;e<i;e++)if(M.contains(r[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)M.find(t,r[e],n);return i>1?M.uniqueSort(n):n},filter:function(t){return this.pushStack(U(this,t||[],!1))},not:function(t){return this.pushStack(U(this,t||[],!0))},is:function(t){return!!U(this,"string"==typeof t&&R.test(t)?M(t):t||[],!1).length}});var B,W=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(M.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||B,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:W.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof M?e[0]:e,M.merge(this,M.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),Y.test(i[1])&&M.isPlainObject(e))for(i in e)v(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=b.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==n.ready?n.ready(t):t(M):M.makeArray(t,this)}).prototype=M.fn,B=M(b);var H=/^(?:parents|prev(?:Until|All))/,V={children:!0,contents:!0,next:!0,prev:!0};function Z(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}M.fn.extend({has:function(t){var e=M(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(M.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,r=this.length,s=[],o="string"!=typeof t&&M(t);if(!R.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&M.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?M.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?u.call(M(t),this[0]):u.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(M.uniqueSort(M.merge(this.get(),M(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),M.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return F(t,"parentNode")},parentsUntil:function(t,e,n){return F(t,"parentNode",n)},next:function(t){return Z(t,"nextSibling")},prev:function(t){return Z(t,"previousSibling")},nextAll:function(t){return F(t,"nextSibling")},prevAll:function(t){return F(t,"previousSibling")},nextUntil:function(t,e,n){return F(t,"nextSibling",n)},prevUntil:function(t,e,n){return F(t,"previousSibling",n)},siblings:function(t){return P((t.parentNode||{}).firstChild,t)},children:function(t){return P(t.firstChild)},contents:function(t){return null!=t.contentDocument&&o(t.contentDocument)?t.contentDocument:(S(t,"template")&&(t=t.content||t),M.merge([],t.childNodes))}},(function(t,e){M.fn[t]=function(n,i){var r=M.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=M.filter(i,r)),this.length>1&&(V[t]||M.uniqueSort(r),H.test(t)&&r.reverse()),this.pushStack(r)}}));var G=/[^\x20\t\r\n\f]+/g;function Q(t){return t}function J(t){throw t}function X(t,e,n,i){var r;try{t&&v(r=t.promise)?r.call(t).done(e).fail(n):t&&v(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}M.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return M.each(t.match(G)||[],(function(t,n){e[n]=!0})),e}(t):M.extend({},t);var e,n,i,r,s=[],o=[],a=-1,l=function(){for(r=r||t.once,i=e=!0;o.length;a=-1)for(n=o.shift();++a<s.length;)!1===s[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=s.length,n=!1);t.memory||(n=!1),e=!1,r&&(s=n?[]:"")},c={add:function(){return s&&(n&&!e&&(a=s.length-1,o.push(n)),function e(n){M.each(n,(function(n,i){v(i)?t.unique&&c.has(i)||s.push(i):i&&i.length&&"string"!==A(i)&&e(i)}))}(arguments),n&&!e&&l()),this},remove:function(){return M.each(arguments,(function(t,e){for(var n;(n=M.inArray(e,s,n))>-1;)s.splice(n,1),n<=a&&a--})),this},has:function(t){return t?M.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return r=o=[],s=n="",this},disabled:function(){return!s},lock:function(){return r=o=[],n||e||(s=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],o.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},M.extend({Deferred:function(t){var e=[["notify","progress",M.Callbacks("memory"),M.Callbacks("memory"),2],["resolve","done",M.Callbacks("once memory"),M.Callbacks("once memory"),0,"resolved"],["reject","fail",M.Callbacks("once memory"),M.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return M.Deferred((function(n){M.each(e,(function(e,i){var r=v(t[i[4]])&&t[i[4]];s[i[1]]((function(){var t=r&&r.apply(this,arguments);t&&v(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,r){var s=0;function o(t,e,n,r){return function(){var a=this,l=arguments,c=function(){var i,c;if(!(t<s)){if((i=n.apply(a,l))===e.promise())throw new TypeError("Thenable self-resolution");c=i&&("object"==typeof i||"function"==typeof i)&&i.then,v(c)?r?c.call(i,o(s,e,Q,r),o(s,e,J,r)):(s++,c.call(i,o(s,e,Q,r),o(s,e,J,r),o(s,e,Q,e.notifyWith))):(n!==Q&&(a=void 0,l=[i]),(r||e.resolveWith)(a,l))}},u=r?c:function(){try{c()}catch(i){M.Deferred.exceptionHook&&M.Deferred.exceptionHook(i,u.error),t+1>=s&&(n!==J&&(a=void 0,l=[i]),e.rejectWith(a,l))}};t?u():(M.Deferred.getErrorHook?u.error=M.Deferred.getErrorHook():M.Deferred.getStackHook&&(u.error=M.Deferred.getStackHook()),i.setTimeout(u))}}return M.Deferred((function(i){e[0][3].add(o(0,i,v(r)?r:Q,i.notifyWith)),e[1][3].add(o(0,i,v(t)?t:Q)),e[2][3].add(o(0,i,v(n)?n:J))})).promise()},promise:function(t){return null!=t?M.extend(t,r):r}},s={};return M.each(e,(function(t,i){var o=i[2],a=i[5];r[i[1]]=o.add,a&&o.add((function(){n=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),o.add(i[3].fire),s[i[0]]=function(){return s[i[0]+"With"](this===s?void 0:this,arguments),this},s[i[0]+"With"]=o.fireWith})),r.promise(s),t&&t.call(s,s),s},when:function(t){var e=arguments.length,n=e,i=Array(n),r=a.call(arguments),s=M.Deferred(),o=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?a.call(arguments):n,--e||s.resolveWith(i,r)}};if(e<=1&&(X(t,s.done(o(n)).resolve,s.reject,!e),"pending"===s.state()||v(r[n]&&r[n].then)))return s.then();for(;n--;)X(r[n],o(n),s.reject);return s.promise()}});var q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;M.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&q.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},M.readyException=function(t){i.setTimeout((function(){throw t}))};var $=M.Deferred();function K(){b.removeEventListener("DOMContentLoaded",K),i.removeEventListener("load",K),M.ready()}M.fn.ready=function(t){return $.then(t).catch((function(t){M.readyException(t)})),this},M.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--M.readyWait:M.isReady)||(M.isReady=!0,!0!==t&&--M.readyWait>0||$.resolveWith(b,[M]))}}),M.ready.then=$.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout(M.ready):(b.addEventListener("DOMContentLoaded",K),i.addEventListener("load",K));var tt=function(t,e,n,i,r,s,o){var a=0,l=t.length,c=null==n;if("object"===A(n))for(a in r=!0,n)tt(t,e,a,n[a],!0,s,o);else if(void 0!==i&&(r=!0,v(i)||(o=!0),c&&(o?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(M(t),n)})),e))for(;a<l;a++)e(t[a],n,o?i:i.call(t[a],a,e(t[a],n)));return r?t:c?e.call(t):l?e(t[0],n):s},et=/^-ms-/,nt=/-([a-z])/g;function it(t,e){return e.toUpperCase()}function rt(t){return t.replace(et,"ms-").replace(nt,it)}var st=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function ot(){this.expando=M.expando+ot.uid++}ot.uid=1,ot.prototype={cache:function(t){var e=t[this.expando];return e||(e={},st(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[rt(e)]=n;else for(i in e)r[rt(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][rt(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(rt):(e=rt(e))in i?[e]:e.match(G)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||M.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!M.isEmptyObject(e)}};var at=new ot,lt=new ot,ct=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ut=/[A-Z]/g;function dt(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(ut,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ct.test(t)?JSON.parse(t):t)}(n)}catch(t){}lt.set(t,e,n)}else n=void 0;return n}M.extend({hasData:function(t){return lt.hasData(t)||at.hasData(t)},data:function(t,e,n){return lt.access(t,e,n)},removeData:function(t,e){lt.remove(t,e)},_data:function(t,e,n){return at.access(t,e,n)},_removeData:function(t,e){at.remove(t,e)}}),M.fn.extend({data:function(t,e){var n,i,r,s=this[0],o=s&&s.attributes;if(void 0===t){if(this.length&&(r=lt.get(s),1===s.nodeType&&!at.get(s,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(i=o[n].name).indexOf("data-")&&(i=rt(i.slice(5)),dt(s,i,r[i]));at.set(s,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){lt.set(this,t)})):tt(this,(function(e){var n;if(s&&void 0===e)return void 0!==(n=lt.get(s,t))||void 0!==(n=dt(s,t))?n:void 0;this.each((function(){lt.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){lt.remove(this,t)}))}}),M.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=at.get(t,e),n&&(!i||Array.isArray(n)?i=at.access(t,e,M.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=M.queue(t,e),i=n.length,r=n.shift(),s=M._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete s.stop,r.call(t,(function(){M.dequeue(t,e)}),s)),!i&&s&&s.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return at.get(t,n)||at.access(t,n,{empty:M.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",n])}))})}}),M.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?M.queue(this[0],t):void 0===e?this:this.each((function(){var n=M.queue(this,t,e);M._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&M.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){M.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=M.Deferred(),s=this,o=this.length,a=function(){--i||r.resolveWith(s,[s])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)(n=at.get(s[o],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(e)}});var ht=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pt=new RegExp("^(?:([+-])=|)("+ht+")([a-z%]*)$","i"),ft=["Top","Right","Bottom","Left"],gt=b.documentElement,mt=function(t){return M.contains(t.ownerDocument,t)},vt={composed:!0};gt.getRootNode&&(mt=function(t){return M.contains(t.ownerDocument,t)||t.getRootNode(vt)===t.ownerDocument});var yt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&mt(t)&&"none"===M.css(t,"display")};function bt(t,e,n,i){var r,s,o=20,a=i?function(){return i.cur()}:function(){return M.css(t,e,"")},l=a(),c=n&&n[3]||(M.cssNumber[e]?"":"px"),u=t.nodeType&&(M.cssNumber[e]||"px"!==c&&+l)&&pt.exec(M.css(t,e));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;o--;)M.style(t,e,u+c),(1-s)*(1-(s=a()/l||.5))<=0&&(o=0),u/=s;u*=2,M.style(t,e,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var xt={};function wt(t){var e,n=t.ownerDocument,i=t.nodeName,r=xt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=M.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),xt[i]=r,r)}function At(t,e){for(var n,i,r=[],s=0,o=t.length;s<o;s++)(i=t[s]).style&&(n=i.style.display,e?("none"===n&&(r[s]=at.get(i,"display")||null,r[s]||(i.style.display="")),""===i.style.display&&yt(i)&&(r[s]=wt(i))):"none"!==n&&(r[s]="none",at.set(i,"display",n)));for(s=0;s<o;s++)null!=r[s]&&(t[s].style.display=r[s]);return t}M.fn.extend({show:function(){return At(this,!0)},hide:function(){return At(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){yt(this)?M(this).show():M(this).hide()}))}});var _t,Ct,Mt=/^(?:checkbox|radio)$/i,kt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,St=/^$|^module$|\/(?:java|ecma)script/i;_t=b.createDocumentFragment().appendChild(b.createElement("div")),(Ct=b.createElement("input")).setAttribute("type","radio"),Ct.setAttribute("checked","checked"),Ct.setAttribute("name","t"),_t.appendChild(Ct),m.checkClone=_t.cloneNode(!0).cloneNode(!0).lastChild.checked,_t.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!_t.cloneNode(!0).lastChild.defaultValue,_t.innerHTML="<option></option>",m.option=!!_t.lastChild;var It={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Lt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&S(t,e)?M.merge([t],n):n}function Dt(t,e){for(var n=0,i=t.length;n<i;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}It.tbody=It.tfoot=It.colgroup=It.caption=It.thead,It.th=It.td,m.option||(It.optgroup=It.option=[1,"<select multiple='multiple'>","</select>"]);var Tt=/<|&#?\w+;/;function Nt(t,e,n,i,r){for(var s,o,a,l,c,u,d=e.createDocumentFragment(),h=[],p=0,f=t.length;p<f;p++)if((s=t[p])||0===s)if("object"===A(s))M.merge(h,s.nodeType?[s]:s);else if(Tt.test(s)){for(o=o||d.appendChild(e.createElement("div")),a=(kt.exec(s)||["",""])[1].toLowerCase(),l=It[a]||It._default,o.innerHTML=l[1]+M.htmlPrefilter(s)+l[2],u=l[0];u--;)o=o.lastChild;M.merge(h,o.childNodes),(o=d.firstChild).textContent=""}else h.push(e.createTextNode(s));for(d.textContent="",p=0;s=h[p++];)if(i&&M.inArray(s,i)>-1)r&&r.push(s);else if(c=mt(s),o=Lt(d.appendChild(s),"script"),c&&Dt(o),n)for(u=0;s=o[u++];)St.test(s.type||"")&&n.push(s);return d}var Ot=/^([^.]*)(?:\.(.+)|)/;function jt(){return!0}function Et(){return!1}function zt(t,e,n,i,r,s){var o,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)zt(t,a,n,i,e[a],s);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Et;else if(!r)return t;return 1===s&&(o=r,r=function(t){return M().off(t),o.apply(this,arguments)},r.guid=o.guid||(o.guid=M.guid++)),t.each((function(){M.event.add(this,e,r,i,n)}))}function Ft(t,e,n){n?(at.set(t,e,!1),M.event.add(t,e,{namespace:!1,handler:function(t){var n,i=at.get(this,e);if(1&t.isTrigger&&this[e]){if(i)(M.event.special[e]||{}).delegateType&&t.stopPropagation();else if(i=a.call(arguments),at.set(this,e,i),this[e](),n=at.get(this,e),at.set(this,e,!1),i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else i&&(at.set(this,e,M.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=jt)}})):void 0===at.get(t,e)&&M.event.add(t,e,jt)}M.event={global:{},add:function(t,e,n,i,r){var s,o,a,l,c,u,d,h,p,f,g,m=at.get(t);if(st(t))for(n.handler&&(n=(s=n).handler,r=s.selector),r&&M.find.matchesSelector(gt,r),n.guid||(n.guid=M.guid++),(l=m.events)||(l=m.events=Object.create(null)),(o=m.handle)||(o=m.handle=function(e){return void 0!==M&&M.event.triggered!==e.type?M.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(G)||[""]).length;c--;)p=g=(a=Ot.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=M.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=M.event.special[p]||{},u=M.extend({type:p,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&M.expr.match.needsContext.test(r),namespace:f.join(".")},s),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,f,o)||t.addEventListener&&t.addEventListener(p,o)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),M.event.global[p]=!0)},remove:function(t,e,n,i,r){var s,o,a,l,c,u,d,h,p,f,g,m=at.hasData(t)&&at.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(G)||[""]).length;c--;)if(p=g=(a=Ot.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=M.event.special[p]||{},h=l[p=(i?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=h.length;s--;)u=h[s],!r&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(s,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(t,u));o&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,f,m.handle)||M.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)M.event.remove(t,p+e[c],n,i,!0);M.isEmptyObject(l)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,s,o,a=new Array(arguments.length),l=M.event.fix(t),c=(at.get(this,"events")||Object.create(null))[l.type]||[],u=M.event.special[l.type]||{};for(a[0]=l,e=1;e<arguments.length;e++)a[e]=arguments[e];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(o=M.event.handlers.call(this,l,c),e=0;(r=o[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(s=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==s.namespace&&!l.rnamespace.test(s.namespace)||(l.handleObj=s,l.data=s.data,void 0!==(i=((M.event.special[s.origType]||{}).handle||s.handler).apply(r.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,r,s,o,a=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(s=[],o={},n=0;n<l;n++)void 0===o[r=(i=e[n]).selector+" "]&&(o[r]=i.needsContext?M(r,this).index(c)>-1:M.find(r,this,null,[c]).length),o[r]&&s.push(i);s.length&&a.push({elem:c,handlers:s})}return c=this,l<e.length&&a.push({elem:c,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(M.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[M.expando]?t:new M.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return Mt.test(e.type)&&e.click&&S(e,"input")&&Ft(e,"click",!0),!1},trigger:function(t){var e=this||t;return Mt.test(e.type)&&e.click&&S(e,"input")&&Ft(e,"click"),!0},_default:function(t){var e=t.target;return Mt.test(e.type)&&e.click&&S(e,"input")&&at.get(e,"click")||S(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},M.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},M.Event=function(t,e){if(!(this instanceof M.Event))return new M.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?jt:Et,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&M.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[M.expando]=!0},M.Event.prototype={constructor:M.Event,isDefaultPrevented:Et,isPropagationStopped:Et,isImmediatePropagationStopped:Et,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=jt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=jt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=jt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},M.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},M.event.addProp),M.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(b.documentMode){var n=at.get(this,"handle"),i=M.event.fix(t);i.type="focusin"===t.type?"focus":"blur",i.isSimulated=!0,n(t),i.target===i.currentTarget&&n(i)}else M.event.simulate(e,t.target,M.event.fix(t))}M.event.special[t]={setup:function(){var i;if(Ft(this,t,!0),!b.documentMode)return!1;(i=at.get(this,e))||this.addEventListener(e,n),at.set(this,e,(i||0)+1)},trigger:function(){return Ft(this,t),!0},teardown:function(){var t;if(!b.documentMode)return!1;(t=at.get(this,e)-1)?at.set(this,e,t):(this.removeEventListener(e,n),at.remove(this,e))},_default:function(e){return at.get(e.target,t)},delegateType:e},M.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,s=at.get(r,e);s||(b.documentMode?this.addEventListener(e,n):i.addEventListener(t,n,!0)),at.set(r,e,(s||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,s=at.get(r,e)-1;s?at.set(r,e,s):(b.documentMode?this.removeEventListener(e,n):i.removeEventListener(t,n,!0),at.remove(r,e))}}})),M.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){M.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||M.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}})),M.fn.extend({on:function(t,e,n,i){return zt(this,t,e,n,i)},one:function(t,e,n,i){return zt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,M(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Et),this.each((function(){M.event.remove(this,t,n,e)}))}});var Pt=/<script|<style|<link/i,Rt=/checked\s*(?:[^=]|=\s*.checked.)/i,Yt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ut(t,e){return S(t,"table")&&S(11!==e.nodeType?e:e.firstChild,"tr")&&M(t).children("tbody")[0]||t}function Bt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Wt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Ht(t,e){var n,i,r,s,o,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(r in at.remove(e,"handle events"),a)for(n=0,i=a[r].length;n<i;n++)M.event.add(e,r,a[r][n]);lt.hasData(t)&&(s=lt.access(t),o=M.extend({},s),lt.set(e,o))}}function Vt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Mt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Zt(t,e,n,i){e=l(e);var r,s,o,a,c,u,d=0,h=t.length,p=h-1,f=e[0],g=v(f);if(g||h>1&&"string"==typeof f&&!m.checkClone&&Rt.test(f))return t.each((function(r){var s=t.eq(r);g&&(e[0]=f.call(this,r,s.html())),Zt(s,e,n,i)}));if(h&&(s=(r=Nt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=s),s||i)){for(a=(o=M.map(Lt(r,"script"),Bt)).length;d<h;d++)c=r,d!==p&&(c=M.clone(c,!0,!0),a&&M.merge(o,Lt(c,"script"))),n.call(t[d],c,d);if(a)for(u=o[o.length-1].ownerDocument,M.map(o,Wt),d=0;d<a;d++)c=o[d],St.test(c.type||"")&&!at.access(c,"globalEval")&&M.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?M._evalUrl&&!c.noModule&&M._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace(Yt,""),c,u))}return t}function Gt(t,e,n){for(var i,r=e?M.filter(e,t):t,s=0;null!=(i=r[s]);s++)n||1!==i.nodeType||M.cleanData(Lt(i)),i.parentNode&&(n&&mt(i)&&Dt(Lt(i,"script")),i.parentNode.removeChild(i));return t}M.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,s,o,a=t.cloneNode(!0),l=mt(t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||M.isXMLDoc(t)))for(o=Lt(a),i=0,r=(s=Lt(t)).length;i<r;i++)Vt(s[i],o[i]);if(e)if(n)for(s=s||Lt(t),o=o||Lt(a),i=0,r=s.length;i<r;i++)Ht(s[i],o[i]);else Ht(t,a);return(o=Lt(a,"script")).length>0&&Dt(o,!l&&Lt(t,"script")),a},cleanData:function(t){for(var e,n,i,r=M.event.special,s=0;void 0!==(n=t[s]);s++)if(st(n)){if(e=n[at.expando]){if(e.events)for(i in e.events)r[i]?M.event.remove(n,i):M.removeEvent(n,i,e.handle);n[at.expando]=void 0}n[lt.expando]&&(n[lt.expando]=void 0)}}}),M.fn.extend({detach:function(t){return Gt(this,t,!0)},remove:function(t){return Gt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?M.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Zt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ut(this,t).appendChild(t)}))},prepend:function(){return Zt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ut(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Zt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Zt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(M.cleanData(Lt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return M.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Pt.test(t)&&!It[(kt.exec(t)||["",""])[1].toLowerCase()]){t=M.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(M.cleanData(Lt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Zt(this,arguments,(function(e){var n=this.parentNode;M.inArray(this,t)<0&&(M.cleanData(Lt(this)),n&&n.replaceChild(e,this))}),t)}}),M.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){M.fn[t]=function(t){for(var n,i=[],r=M(t),s=r.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),M(r[o])[e](n),c.apply(i,n.get());return this.pushStack(i)}}));var Qt=new RegExp("^("+ht+")(?!px)[a-z%]+$","i"),Jt=/^--/,Xt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},qt=function(t,e,n){var i,r,s={};for(r in e)s[r]=t.style[r],t.style[r]=e[r];for(r in i=n.call(t),e)t.style[r]=s[r];return i},$t=new RegExp(ft.join("|"),"i");function Kt(t,e,n){var i,r,s,o,a=Jt.test(e),l=t.style;return(n=n||Xt(t))&&(o=n.getPropertyValue(e)||n[e],a&&o&&(o=o.replace(N,"$1")||void 0),""!==o||mt(t)||(o=M.style(t,e)),!m.pixelBoxStyles()&&Qt.test(o)&&$t.test(e)&&(i=l.width,r=l.minWidth,s=l.maxWidth,l.minWidth=l.maxWidth=l.width=o,o=n.width,l.width=i,l.minWidth=r,l.maxWidth=s)),void 0!==o?o+"":o}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",gt.appendChild(c).appendChild(u);var t=i.getComputedStyle(u);n="1%"!==t.top,l=12===e(t.marginLeft),u.style.right="60%",o=36===e(t.right),r=36===e(t.width),u.style.position="absolute",s=12===e(u.offsetWidth/3),gt.removeChild(c),u=null}}function e(t){return Math.round(parseFloat(t))}var n,r,s,o,a,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,M.extend(m,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),o},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),s},reliableTrDimensions:function(){var t,e,n,r;return null==a&&(t=b.createElement("table"),e=b.createElement("tr"),n=b.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",gt.appendChild(t).appendChild(e).appendChild(n),r=i.getComputedStyle(e),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight,gt.removeChild(t)),a}}))}();var ee=["Webkit","Moz","ms"],ne=b.createElement("div").style,ie={};function re(t){return M.cssProps[t]||ie[t]||(t in ne?t:ie[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ee.length;n--;)if((t=ee[n]+e)in ne)return t}(t)||t)}var se=/^(none|table(?!-c[ea]).+)/,oe={position:"absolute",visibility:"hidden",display:"block"},ae={letterSpacing:"0",fontWeight:"400"};function le(t,e,n){var i=pt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function ce(t,e,n,i,r,s){var o="width"===e?1:0,a=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(c+=M.css(t,n+ft[o],!0,r)),i?("content"===n&&(l-=M.css(t,"padding"+ft[o],!0,r)),"margin"!==n&&(l-=M.css(t,"border"+ft[o]+"Width",!0,r))):(l+=M.css(t,"padding"+ft[o],!0,r),"padding"!==n?l+=M.css(t,"border"+ft[o]+"Width",!0,r):a+=M.css(t,"border"+ft[o]+"Width",!0,r));return!i&&s>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-l-a-.5))||0),l+c}function ue(t,e,n){var i=Xt(t),r=(!m.boxSizingReliable()||n)&&"border-box"===M.css(t,"boxSizing",!1,i),s=r,o=Kt(t,e,i),a="offset"+e[0].toUpperCase()+e.slice(1);if(Qt.test(o)){if(!n)return o;o="auto"}return(!m.boxSizingReliable()&&r||!m.reliableTrDimensions()&&S(t,"tr")||"auto"===o||!parseFloat(o)&&"inline"===M.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===M.css(t,"boxSizing",!1,i),(s=a in t)&&(o=t[a])),(o=parseFloat(o)||0)+ce(t,e,n||(r?"border":"content"),s,i,o)+"px"}function de(t,e,n,i,r){return new de.prototype.init(t,e,n,i,r)}M.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Kt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,s,o,a=rt(e),l=Jt.test(e),c=t.style;if(l||(e=re(a)),o=M.cssHooks[e]||M.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(r=o.get(t,!1,i))?r:c[e];"string"==(s=typeof n)&&(r=pt.exec(n))&&r[1]&&(n=bt(t,e,r),s="number"),null!=n&&n==n&&("number"!==s||l||(n+=r&&r[3]||(M.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),o&&"set"in o&&void 0===(n=o.set(t,n,i))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,i){var r,s,o,a=rt(e);return Jt.test(e)||(e=re(a)),(o=M.cssHooks[e]||M.cssHooks[a])&&"get"in o&&(r=o.get(t,!0,n)),void 0===r&&(r=Kt(t,e,i)),"normal"===r&&e in ae&&(r=ae[e]),""===n||n?(s=parseFloat(r),!0===n||isFinite(s)?s||0:r):r}}),M.each(["height","width"],(function(t,e){M.cssHooks[e]={get:function(t,n,i){if(n)return!se.test(M.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ue(t,e,i):qt(t,oe,(function(){return ue(t,e,i)}))},set:function(t,n,i){var r,s=Xt(t),o=!m.scrollboxSize()&&"absolute"===s.position,a=(o||i)&&"border-box"===M.css(t,"boxSizing",!1,s),l=i?ce(t,e,i,a,s):0;return a&&o&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(s[e])-ce(t,e,"border",!1,s)-.5)),l&&(r=pt.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=M.css(t,e)),le(0,n,l)}}})),M.cssHooks.marginLeft=te(m.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Kt(t,"marginLeft"))||t.getBoundingClientRect().left-qt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),M.each({margin:"",padding:"",border:"Width"},(function(t,e){M.cssHooks[t+e]={expand:function(n){for(var i=0,r={},s="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+ft[i]+e]=s[i]||s[i-2]||s[0];return r}},"margin"!==t&&(M.cssHooks[t+e].set=le)})),M.fn.extend({css:function(t,e){return tt(this,(function(t,e,n){var i,r,s={},o=0;if(Array.isArray(e)){for(i=Xt(t),r=e.length;o<r;o++)s[e[o]]=M.css(t,e[o],!1,i);return s}return void 0!==n?M.style(t,e,n):M.css(t,e)}),t,e,arguments.length>1)}}),M.Tween=de,de.prototype={constructor:de,init:function(t,e,n,i,r,s){this.elem=t,this.prop=n,this.easing=r||M.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=s||(M.cssNumber[n]?"":"px")},cur:function(){var t=de.propHooks[this.prop];return t&&t.get?t.get(this):de.propHooks._default.get(this)},run:function(t){var e,n=de.propHooks[this.prop];return this.options.duration?this.pos=e=M.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):de.propHooks._default.set(this),this}},de.prototype.init.prototype=de.prototype,de.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=M.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){M.fx.step[t.prop]?M.fx.step[t.prop](t):1!==t.elem.nodeType||!M.cssHooks[t.prop]&&null==t.elem.style[re(t.prop)]?t.elem[t.prop]=t.now:M.style(t.elem,t.prop,t.now+t.unit)}}},de.propHooks.scrollTop=de.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},M.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},M.fx=de.prototype.init,M.fx.step={};var he,pe,fe=/^(?:toggle|show|hide)$/,ge=/queueHooks$/;function me(){pe&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(me):i.setTimeout(me,M.fx.interval),M.fx.tick())}function ve(){return i.setTimeout((function(){he=void 0})),he=Date.now()}function ye(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=ft[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function be(t,e,n){for(var i,r=(xe.tweeners[e]||[]).concat(xe.tweeners["*"]),s=0,o=r.length;s<o;s++)if(i=r[s].call(n,e,t))return i}function xe(t,e,n){var i,r,s=0,o=xe.prefilters.length,a=M.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var e=he||ve(),n=Math.max(0,c.startTime+c.duration-e),i=1-(n/c.duration||0),s=0,o=c.tweens.length;s<o;s++)c.tweens[s].run(i);return a.notifyWith(t,[c,i,n]),i<1&&o?n:(o||a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:M.extend({},e),opts:M.extend(!0,{specialEasing:{},easing:M.easing._default},n),originalProperties:e,originalOptions:n,startTime:he||ve(),duration:n.duration,tweens:[],createTween:function(e,n){var i=M.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),u=c.props;for(function(t,e){var n,i,r,s,o;for(n in t)if(r=e[i=rt(n)],s=t[n],Array.isArray(s)&&(r=s[1],s=t[n]=s[0]),n!==i&&(t[i]=s,delete t[n]),(o=M.cssHooks[i])&&"expand"in o)for(n in s=o.expand(s),delete t[i],s)n in t||(t[n]=s[n],e[n]=r);else e[i]=r}(u,c.opts.specialEasing);s<o;s++)if(i=xe.prefilters[s].call(c,t,u,c.opts))return v(i.stop)&&(M._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return M.map(u,be,c),v(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),M.fx.timer(M.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}M.Animation=M.extend(xe,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return bt(n.elem,t,pt.exec(e),n),n}]},tweener:function(t,e){v(t)?(e=t,t=["*"]):t=t.match(G);for(var n,i=0,r=t.length;i<r;i++)n=t[i],xe.tweeners[n]=xe.tweeners[n]||[],xe.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,s,o,a,l,c,u,d="width"in e||"height"in e,h=this,p={},f=t.style,g=t.nodeType&&yt(t),m=at.get(t,"fxshow");for(i in n.queue||(null==(o=M._queueHooks(t,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,h.always((function(){h.always((function(){o.unqueued--,M.queue(t,"fx").length||o.empty.fire()}))}))),e)if(r=e[i],fe.test(r)){if(delete e[i],s=s||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;g=!0}p[i]=m&&m[i]||M.style(t,i)}if((l=!M.isEmptyObject(e))||!M.isEmptyObject(p))for(i in d&&1===t.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=m&&m.display)&&(c=at.get(t,"display")),"none"===(u=M.css(t,"display"))&&(c?u=c:(At([t],!0),c=t.style.display||c,u=M.css(t,"display"),At([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===M.css(t,"float")&&(l||(h.done((function(){f.display=c})),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=at.access(t,"fxshow",{display:c}),s&&(m.hidden=!g),g&&At([t],!0),h.done((function(){for(i in g||At([t]),at.remove(t,"fxshow"),p)M.style(t,i,p[i])}))),l=be(g?m[i]:0,i,h),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?xe.prefilters.unshift(t):xe.prefilters.push(t)}}),M.speed=function(t,e,n){var i=t&&"object"==typeof t?M.extend({},t):{complete:n||!n&&e||v(t)&&t,duration:t,easing:n&&e||e&&!v(e)&&e};return M.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in M.fx.speeds?i.duration=M.fx.speeds[i.duration]:i.duration=M.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&M.dequeue(this,i.queue)},i},M.fn.extend({fadeTo:function(t,e,n,i){return this.filter(yt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=M.isEmptyObject(t),s=M.speed(e,n,i),o=function(){var e=xe(this,M.extend({},t),s);(r||at.get(this,"finish"))&&e.stop(!0)};return o.finish=o,r||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",s=M.timers,o=at.get(this);if(r)o[r]&&o[r].stop&&i(o[r]);else for(r in o)o[r]&&o[r].stop&&ge.test(r)&&i(o[r]);for(r=s.length;r--;)s[r].elem!==this||null!=t&&s[r].queue!==t||(s[r].anim.stop(n),e=!1,s.splice(r,1));!e&&n||M.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=at.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],s=M.timers,o=i?i.length:0;for(n.finish=!0,M.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;e<o;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),M.each(["toggle","show","hide"],(function(t,e){var n=M.fn[e];M.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ye(e,!0),t,i,r)}})),M.each({slideDown:ye("show"),slideUp:ye("hide"),slideToggle:ye("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){M.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),M.timers=[],M.fx.tick=function(){var t,e=0,n=M.timers;for(he=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||M.fx.stop(),he=void 0},M.fx.timer=function(t){M.timers.push(t),M.fx.start()},M.fx.interval=13,M.fx.start=function(){pe||(pe=!0,me())},M.fx.stop=function(){pe=null},M.fx.speeds={slow:600,fast:200,_default:400},M.fn.delay=function(t,e){return t=M.fx&&M.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var r=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(r)}}))},function(){var t=b.createElement("input"),e=b.createElement("select").appendChild(b.createElement("option"));t.type="checkbox",m.checkOn=""!==t.value,m.optSelected=e.selected,(t=b.createElement("input")).value="t",t.type="radio",m.radioValue="t"===t.value}();var we,Ae=M.expr.attrHandle;M.fn.extend({attr:function(t,e){return tt(this,M.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){M.removeAttr(this,t)}))}}),M.extend({attr:function(t,e,n){var i,r,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?M.prop(t,e,n):(1===s&&M.isXMLDoc(t)||(r=M.attrHooks[e.toLowerCase()]||(M.expr.match.bool.test(e)?we:void 0)),void 0!==n?null===n?void M.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=M.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&S(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(G);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),we={set:function(t,e,n){return!1===e?M.removeAttr(t,n):t.setAttribute(n,n),n}},M.each(M.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=Ae[e]||M.find.attr;Ae[e]=function(t,e,i){var r,s,o=e.toLowerCase();return i||(s=Ae[o],Ae[o]=r,r=null!=n(t,e,i)?o:null,Ae[o]=s),r}}));var _e=/^(?:input|select|textarea|button)$/i,Ce=/^(?:a|area)$/i;function Me(t){return(t.match(G)||[]).join(" ")}function ke(t){return t.getAttribute&&t.getAttribute("class")||""}function Se(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(G)||[]}M.fn.extend({prop:function(t,e){return tt(this,M.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[M.propFix[t]||t]}))}}),M.extend({prop:function(t,e,n){var i,r,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&M.isXMLDoc(t)||(e=M.propFix[e]||e,r=M.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=M.find.attr(t,"tabindex");return e?parseInt(e,10):_e.test(t.nodeName)||Ce.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(M.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),M.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){M.propFix[this.toLowerCase()]=this})),M.fn.extend({addClass:function(t){var e,n,i,r,s,o;return v(t)?this.each((function(e){M(this).addClass(t.call(this,e,ke(this)))})):(e=Se(t)).length?this.each((function(){if(i=ke(this),n=1===this.nodeType&&" "+Me(i)+" "){for(s=0;s<e.length;s++)r=e[s],n.indexOf(" "+r+" ")<0&&(n+=r+" ");o=Me(n),i!==o&&this.setAttribute("class",o)}})):this},removeClass:function(t){var e,n,i,r,s,o;return v(t)?this.each((function(e){M(this).removeClass(t.call(this,e,ke(this)))})):arguments.length?(e=Se(t)).length?this.each((function(){if(i=ke(this),n=1===this.nodeType&&" "+Me(i)+" "){for(s=0;s<e.length;s++)for(r=e[s];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");o=Me(n),i!==o&&this.setAttribute("class",o)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,i,r,s,o=typeof t,a="string"===o||Array.isArray(t);return v(t)?this.each((function(n){M(this).toggleClass(t.call(this,n,ke(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=Se(t),this.each((function(){if(a)for(s=M(this),r=0;r<n.length;r++)i=n[r],s.hasClass(i)?s.removeClass(i):s.addClass(i);else void 0!==t&&"boolean"!==o||((i=ke(this))&&at.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":at.get(this,"__className__")||""))})))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+Me(ke(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ie=/\r/g;M.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=v(t),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,M(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=M.map(r,(function(t){return null==t?"":t+""}))),(e=M.valHooks[this.type]||M.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=M.valHooks[r.type]||M.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Ie,""):null==n?"":n:void 0}}),M.extend({valHooks:{option:{get:function(t){var e=M.find.attr(t,"value");return null!=e?e:Me(M.text(t))}},select:{get:function(t){var e,n,i,r=t.options,s=t.selectedIndex,o="select-one"===t.type,a=o?null:[],l=o?s+1:r.length;for(i=s<0?l:o?s:0;i<l;i++)if(((n=r[i]).selected||i===s)&&!n.disabled&&(!n.parentNode.disabled||!S(n.parentNode,"optgroup"))){if(e=M(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,i,r=t.options,s=M.makeArray(e),o=r.length;o--;)((i=r[o]).selected=M.inArray(M.valHooks.option.get(i),s)>-1)&&(n=!0);return n||(t.selectedIndex=-1),s}}}}),M.each(["radio","checkbox"],(function(){M.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=M.inArray(M(t).val(),e)>-1}},m.checkOn||(M.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Le=i.location,De={guid:Date.now()},Te=/\?/;M.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||M.error("Invalid XML: "+(n?M.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Ne=/^(?:focusinfocus|focusoutblur)$/,Oe=function(t){t.stopPropagation()};M.extend(M.event,{trigger:function(t,e,n,r){var s,o,a,l,c,u,d,h,f=[n||b],g=p.call(t,"type")?t.type:t,m=p.call(t,"namespace")?t.namespace.split("."):[];if(o=h=a=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!Ne.test(g+M.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(t=t[M.expando]?t:new M.Event(g,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:M.makeArray(e,[t]),d=M.event.special[g]||{},r||!d.trigger||!1!==d.trigger.apply(n,e))){if(!r&&!d.noBubble&&!y(n)){for(l=d.delegateType||g,Ne.test(l+g)||(o=o.parentNode);o;o=o.parentNode)f.push(o),a=o;a===(n.ownerDocument||b)&&f.push(a.defaultView||a.parentWindow||i)}for(s=0;(o=f[s++])&&!t.isPropagationStopped();)h=o,t.type=s>1?l:d.bindType||g,(u=(at.get(o,"events")||Object.create(null))[t.type]&&at.get(o,"handle"))&&u.apply(o,e),(u=c&&o[c])&&u.apply&&st(o)&&(t.result=u.apply(o,e),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),e)||!st(n)||c&&v(n[g])&&!y(n)&&((a=n[c])&&(n[c]=null),M.event.triggered=g,t.isPropagationStopped()&&h.addEventListener(g,Oe),n[g](),t.isPropagationStopped()&&h.removeEventListener(g,Oe),M.event.triggered=void 0,a&&(n[c]=a)),t.result}},simulate:function(t,e,n){var i=M.extend(new M.Event,n,{type:t,isSimulated:!0});M.event.trigger(i,null,e)}}),M.fn.extend({trigger:function(t,e){return this.each((function(){M.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return M.event.trigger(t,e,n,!0)}});var je=/\[\]$/,Ee=/\r?\n/g,ze=/^(?:submit|button|image|reset|file)$/i,Fe=/^(?:input|select|textarea|keygen)/i;function Pe(t,e,n,i){var r;if(Array.isArray(e))M.each(e,(function(e,r){n||je.test(t)?i(t,r):Pe(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)}));else if(n||"object"!==A(e))i(t,e);else for(r in e)Pe(t+"["+r+"]",e[r],n,i)}M.param=function(t,e){var n,i=[],r=function(t,e){var n=v(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!M.isPlainObject(t))M.each(t,(function(){r(this.name,this.value)}));else for(n in t)Pe(n,t[n],e,r);return i.join("&")},M.fn.extend({serialize:function(){return M.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=M.prop(this,"elements");return t?M.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!M(this).is(":disabled")&&Fe.test(this.nodeName)&&!ze.test(t)&&(this.checked||!Mt.test(t))})).map((function(t,e){var n=M(this).val();return null==n?null:Array.isArray(n)?M.map(n,(function(t){return{name:e.name,value:t.replace(Ee,"\r\n")}})):{name:e.name,value:n.replace(Ee,"\r\n")}})).get()}});var Re=/%20/g,Ye=/#.*$/,Ue=/([?&])_=[^&]*/,Be=/^(.*?):[ \t]*([^\r\n]*)$/gm,We=/^(?:GET|HEAD)$/,He=/^\/\//,Ve={},Ze={},Ge="*/".concat("*"),Qe=b.createElement("a");function Je(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,s=e.toLowerCase().match(G)||[];if(v(n))for(;i=s[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Xe(t,e,n,i){var r={},s=t===Ze;function o(a){var l;return r[a]=!0,M.each(t[a]||[],(function(t,a){var c=a(e,n,i);return"string"!=typeof c||s||r[c]?s?!(l=c):void 0:(e.dataTypes.unshift(c),o(c),!1)})),l}return o(e.dataTypes[0])||!r["*"]&&o("*")}function qe(t,e){var n,i,r=M.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&M.extend(!0,t,i),t}Qe.href=Le.href,M.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Le.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Le.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ge,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":M.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?qe(qe(t,M.ajaxSettings),e):qe(M.ajaxSettings,t)},ajaxPrefilter:Je(Ve),ajaxTransport:Je(Ze),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,s,o,a,l,c,u,d,h,p=M.ajaxSetup({},e),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?M(f):M.event,m=M.Deferred(),v=M.Callbacks("once memory"),y=p.statusCode||{},x={},w={},A="canceled",_={readyState:0,getResponseHeader:function(t){var e;if(c){if(!o)for(o={};e=Be.exec(s);)o[e[1].toLowerCase()+" "]=(o[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=o[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(t,e){return null==c&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,x[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)_.always(t[_.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||A;return n&&n.abort(e),C(0,e),this}};if(m.promise(_),p.url=((t||p.url||Le.href)+"").replace(He,Le.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(G)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Qe.protocol+"//"+Qe.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=M.param(p.data,p.traditional)),Xe(Ve,p,e,_),c)return _;for(d in(u=M.event&&p.global)&&0==M.active++&&M.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!We.test(p.type),r=p.url.replace(Ye,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Re,"+")):(h=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(Te.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Ue,"$1"),h=(Te.test(r)?"&":"?")+"_="+De.guid+++h),p.url=r+h),p.ifModified&&(M.lastModified[r]&&_.setRequestHeader("If-Modified-Since",M.lastModified[r]),M.etag[r]&&_.setRequestHeader("If-None-Match",M.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&_.setRequestHeader("Content-Type",p.contentType),_.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ge+"; q=0.01":""):p.accepts["*"]),p.headers)_.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,_,p)||c))return _.abort();if(A="abort",v.add(p.complete),_.done(p.success),_.fail(p.error),n=Xe(Ze,p,e,_)){if(_.readyState=1,u&&g.trigger("ajaxSend",[_,p]),c)return _;p.async&&p.timeout>0&&(a=i.setTimeout((function(){_.abort("timeout")}),p.timeout));try{c=!1,n.send(x,C)}catch(t){if(c)throw t;C(-1,t)}}else C(-1,"No Transport");function C(t,e,o,l){var d,h,b,x,w,A=e;c||(c=!0,a&&i.clearTimeout(a),n=void 0,s=l||"",_.readyState=t>0?4:0,d=t>=200&&t<300||304===t,o&&(x=function(t,e,n){for(var i,r,s,o,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)s=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){s=r;break}o||(o=r)}s=s||o}if(s)return s!==l[0]&&l.unshift(s),n[s]}(p,_,o)),!d&&M.inArray("script",p.dataTypes)>-1&&M.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),x=function(t,e,n,i){var r,s,o,a,l,c={},u=t.dataTypes.slice();if(u[1])for(o in t.converters)c[o.toLowerCase()]=t.converters[o];for(s=u.shift();s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=s,s=u.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(o=c[l+" "+s]||c["* "+s]))for(r in c)if((a=r.split(" "))[1]===s&&(o=c[l+" "+a[0]]||c["* "+a[0]])){!0===o?o=c[r]:!0!==c[r]&&(s=a[0],u.unshift(a[1]));break}if(!0!==o)if(o&&t.throws)e=o(e);else try{e=o(e)}catch(t){return{state:"parsererror",error:o?t:"No conversion from "+l+" to "+s}}}return{state:"success",data:e}}(p,x,_,d),d?(p.ifModified&&((w=_.getResponseHeader("Last-Modified"))&&(M.lastModified[r]=w),(w=_.getResponseHeader("etag"))&&(M.etag[r]=w)),204===t||"HEAD"===p.type?A="nocontent":304===t?A="notmodified":(A=x.state,h=x.data,d=!(b=x.error))):(b=A,!t&&A||(A="error",t<0&&(t=0))),_.status=t,_.statusText=(e||A)+"",d?m.resolveWith(f,[h,A,_]):m.rejectWith(f,[_,A,b]),_.statusCode(y),y=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[_,p,d?h:b]),v.fireWith(f,[_,A]),u&&(g.trigger("ajaxComplete",[_,p]),--M.active||M.event.trigger("ajaxStop")))}return _},getJSON:function(t,e,n){return M.get(t,e,n,"json")},getScript:function(t,e){return M.get(t,void 0,e,"script")}}),M.each(["get","post"],(function(t,e){M[e]=function(t,n,i,r){return v(n)&&(r=r||i,i=n,n=void 0),M.ajax(M.extend({url:t,type:e,dataType:r,data:n,success:i},M.isPlainObject(t)&&t))}})),M.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),M._evalUrl=function(t,e,n){return M.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){M.globalEval(t,e,n)}})},M.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=M(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return v(t)?this.each((function(e){M(this).wrapInner(t.call(this,e))})):this.each((function(){var e=M(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=v(t);return this.each((function(n){M(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){M(this).replaceWith(this.childNodes)})),this}}),M.expr.pseudos.hidden=function(t){return!M.expr.pseudos.visible(t)},M.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},M.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var $e={0:200,1223:204},Ke=M.ajaxSettings.xhr();m.cors=!!Ke&&"withCredentials"in Ke,m.ajax=Ke=!!Ke,M.ajaxTransport((function(t){var e,n;if(m.cors||Ke&&!t.crossDomain)return{send:function(r,s){var o,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];for(o in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(o,r[o]);e=function(t){return function(){e&&(e=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s($e[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),n=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout((function(){e&&n()}))},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),M.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),M.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return M.globalEval(t),t}}}),M.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),M.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=M("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),b.head.appendChild(e[0])},abort:function(){n&&n()}}}));var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;M.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||M.expando+"_"+De.guid++;return this[t]=!0,t}}),M.ajaxPrefilter("json jsonp",(function(t,e,n){var r,s,o,a=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(nn,"$1"+r):!1!==t.jsonp&&(t.url+=(Te.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||M.error(r+" was not called"),o[0]},t.dataTypes[0]="json",s=i[r],i[r]=function(){o=arguments},n.always((function(){void 0===s?M(i).removeProp(r):i[r]=s,t[r]&&(t.jsonpCallback=e.jsonpCallback,en.push(r)),o&&v(s)&&s(o[0]),o=s=void 0})),"script"})),m.createHTMLDocument=((tn=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===tn.childNodes.length),M.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(m.createHTMLDocument?((i=(e=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,e.head.appendChild(i)):e=b),s=!n&&[],(r=Y.exec(t))?[e.createElement(r[1])]:(r=Nt([t],e,s),s&&s.length&&M(s).remove(),M.merge([],r.childNodes)));var i,r,s},M.fn.load=function(t,e,n){var i,r,s,o=this,a=t.indexOf(" ");return a>-1&&(i=Me(t.slice(a)),t=t.slice(0,a)),v(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),o.length>0&&M.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){s=arguments,o.html(i?M("<div>").append(M.parseHTML(t)).find(i):t)})).always(n&&function(t,e){o.each((function(){n.apply(this,s||[t.responseText,e,t])}))}),this},M.expr.pseudos.animated=function(t){return M.grep(M.timers,(function(e){return t===e.elem})).length},M.offset={setOffset:function(t,e,n){var i,r,s,o,a,l,c=M.css(t,"position"),u=M(t),d={};"static"===c&&(t.style.position="relative"),a=u.offset(),s=M.css(t,"top"),l=M.css(t,"left"),("absolute"===c||"fixed"===c)&&(s+l).indexOf("auto")>-1?(o=(i=u.position()).top,r=i.left):(o=parseFloat(s)||0,r=parseFloat(l)||0),v(e)&&(e=e.call(t,n,M.extend({},a))),null!=e.top&&(d.top=e.top-a.top+o),null!=e.left&&(d.left=e.left-a.left+r),"using"in e?e.using.call(t,d):u.css(d)}},M.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){M.offset.setOffset(this,t,e)}));var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===M.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===M.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=M(t).offset()).top+=M.css(t,"borderTopWidth",!0),r.left+=M.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-M.css(i,"marginTop",!0),left:e.left-r.left-M.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===M.css(t,"position");)t=t.offsetParent;return t||gt}))}}),M.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;M.fn[t]=function(i){return tt(this,(function(t,i,r){var s;if(y(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===r)return s?s[e]:t[i];s?s.scrollTo(n?s.pageXOffset:r,n?r:s.pageYOffset):t[i]=r}),t,i,arguments.length)}})),M.each(["top","left"],(function(t,e){M.cssHooks[e]=te(m.pixelPosition,(function(t,n){if(n)return n=Kt(t,e),Qt.test(n)?M(t).position()[e]+"px":n}))})),M.each({Height:"height",Width:"width"},(function(t,e){M.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){M.fn[i]=function(r,s){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===s?"margin":"border");return tt(this,(function(e,n,r){var s;return y(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===r?M.css(e,n,a):M.style(e,n,r,a)}),e,o?r:void 0,o)}}))})),M.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){M.fn[e]=function(t){return this.on(e,t)}})),M.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),M.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){M.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;M.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),v(t))return i=a.call(arguments,2),r=function(){return t.apply(e||this,i.concat(a.call(arguments)))},r.guid=t.guid=t.guid||M.guid++,r},M.holdReady=function(t){t?M.readyWait++:M.ready(!0)},M.isArray=Array.isArray,M.parseJSON=JSON.parse,M.nodeName=S,M.isFunction=v,M.isWindow=y,M.camelCase=rt,M.type=A,M.now=Date.now,M.isNumeric=function(t){var e=M.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},M.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return M}.apply(e,[]))||(t.exports=n);var sn=i.jQuery,on=i.$;return M.noConflict=function(t){return i.$===M&&(i.$=on),t&&i.jQuery===M&&(i.jQuery=sn),M},void 0===r&&(i.jQuery=i.$=M),M}))},461:(t,e,n)=>{t.exports=function t(e,n,i){function r(o,a){if(!n[o]){if(!e[o]){if(s)return s(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[o]={exports:{}};e[o][0].call(c.exports,(function(t){return r(e[o][1][t]||t)}),c,c.exports,t,e,n,i)}return n[o].exports}for(var s=void 0,o=0;o<i.length;o++)r(i[o]);return r}({1:[function(t,e,n){"use strict";var i=t("./utils"),r=t("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(t){for(var e,n,r,o,a,l,c,u=[],d=0,h=t.length,p=h,f="string"!==i.getTypeOf(t);d<t.length;)p=h-d,r=f?(e=t[d++],n=d<h?t[d++]:0,d<h?t[d++]:0):(e=t.charCodeAt(d++),n=d<h?t.charCodeAt(d++):0,d<h?t.charCodeAt(d++):0),o=e>>2,a=(3&e)<<4|n>>4,l=1<p?(15&n)<<2|r>>6:64,c=2<p?63&r:64,u.push(s.charAt(o)+s.charAt(a)+s.charAt(l)+s.charAt(c));return u.join("")},n.decode=function(t){var e,n,i,o,a,l,c=0,u=0,d="data:";if(t.substr(0,5)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,p=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===s.charAt(64)&&p--,t.charAt(t.length-2)===s.charAt(64)&&p--,p%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=r.uint8array?new Uint8Array(0|p):new Array(0|p);c<t.length;)e=s.indexOf(t.charAt(c++))<<2|(o=s.indexOf(t.charAt(c++)))>>4,n=(15&o)<<4|(a=s.indexOf(t.charAt(c++)))>>2,i=(3&a)<<6|(l=s.indexOf(t.charAt(c++))),h[u++]=e,64!==a&&(h[u++]=n),64!==l&&(h[u++]=i);return h}},{"./support":30,"./utils":32}],2:[function(t,e,n){"use strict";var i=t("./external"),r=t("./stream/DataWorker"),s=t("./stream/Crc32Probe"),o=t("./stream/DataLengthProbe");function a(t,e,n,i,r){this.compressedSize=t,this.uncompressedSize=e,this.crc32=n,this.compression=i,this.compressedContent=r}a.prototype={getContentWorker:function(){var t=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new r(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(t,e,n){return t.pipe(new s).pipe(new o("uncompressedSize")).pipe(e.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression",e)},e.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,n){"use strict";var i=t("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,n){"use strict";var i=t("./utils"),r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==i.getTypeOf(t)?function(t,e,n){var i=r,s=0+n;t^=-1;for(var o=0;o<s;o++)t=t>>>8^i[255&(t^e[o])];return~t}(0|e,t,t.length):function(t,e,n){var i=r,s=0+n;t^=-1;for(var o=0;o<s;o++)t=t>>>8^i[255&(t^e.charCodeAt(o))];return~t}(0|e,t,t.length):0}},{"./utils":32}],5:[function(t,e,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(t,e,n){"use strict";var i;i="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:i}},{lie:37}],7:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=t("pako"),s=t("./utils"),o=t("./stream/GenericWorker"),a=i?"uint8array":"array";function l(t,e){o.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}n.magic="\b\0",s.inherits(l,o),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(a,t.data),!1)},l.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},n.compressWorker=function(t){return new l("Deflate",t)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,n){"use strict";function i(t,e){var n,i="";for(n=0;n<e;n++)i+=String.fromCharCode(255&t),t>>>=8;return i}function r(t,e,n,r,o,u){var d,h,p=t.file,f=t.compression,g=u!==a.utf8encode,m=s.transformTo("string",u(p.name)),v=s.transformTo("string",a.utf8encode(p.name)),y=p.comment,b=s.transformTo("string",u(y)),x=s.transformTo("string",a.utf8encode(y)),w=v.length!==p.name.length,A=x.length!==y.length,_="",C="",M="",k=p.dir,S=p.date,I={crc32:0,compressedSize:0,uncompressedSize:0};e&&!n||(I.crc32=t.crc32,I.compressedSize=t.compressedSize,I.uncompressedSize=t.uncompressedSize);var L=0;e&&(L|=8),g||!w&&!A||(L|=2048);var D=0,T=0;k&&(D|=16),"UNIX"===o?(T=798,D|=function(t,e){var n=t;return t||(n=e?16893:33204),(65535&n)<<16}(p.unixPermissions,k)):(T=20,D|=function(t){return 63&(t||0)}(p.dosPermissions)),d=S.getUTCHours(),d<<=6,d|=S.getUTCMinutes(),d<<=5,d|=S.getUTCSeconds()/2,h=S.getUTCFullYear()-1980,h<<=4,h|=S.getUTCMonth()+1,h<<=5,h|=S.getUTCDate(),w&&(C=i(1,1)+i(l(m),4)+v,_+="up"+i(C.length,2)+C),A&&(M=i(1,1)+i(l(b),4)+x,_+="uc"+i(M.length,2)+M);var N="";return N+="\n\0",N+=i(L,2),N+=f.magic,N+=i(d,2),N+=i(h,2),N+=i(I.crc32,4),N+=i(I.compressedSize,4),N+=i(I.uncompressedSize,4),N+=i(m.length,2),N+=i(_.length,2),{fileRecord:c.LOCAL_FILE_HEADER+N+m+_,dirRecord:c.CENTRAL_FILE_HEADER+i(T,2)+N+i(b.length,2)+"\0\0\0\0"+i(D,4)+i(r,4)+m+_+b}}var s=t("../utils"),o=t("../stream/GenericWorker"),a=t("../utf8"),l=t("../crc32"),c=t("../signature");function u(t,e,n,i){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(u,o),u.prototype.push=function(t){var e=t.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,o.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:n?(e+100*(n-i-1))/n:100}}))},u.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var n=r(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,n=r(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),e)this.push({data:function(t){return c.DATA_DESCRIPTOR+i(t.crc32,4)+i(t.compressedSize,4)+i(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var n=this.bytesWritten-t,r=function(t,e,n,r,o){var a=s.transformTo("string",o(r));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(t,2)+i(t,2)+i(e,4)+i(n,4)+i(a.length,2)+a}(this.dirRecords.length,n,t,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(t){var e=this._sources;if(!o.prototype.error.call(this,t))return!1;for(var n=0;n<e.length;n++)try{e[n].error(t)}catch(t){}return!0},u.prototype.lock=function(){o.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,n){"use strict";var i=t("../compressions"),r=t("./ZipFileWorker");n.generateWorker=function(t,e,n){var s=new r(e.streamFiles,n,e.platform,e.encodeFileName),o=0;try{t.forEach((function(t,n){o++;var r=function(t,e){var n=t||e,r=i[n];if(!r)throw new Error(n+" is not a valid compression method !");return r}(n.options.compression,e.compression),a=n.options.compressionOptions||e.compressionOptions||{},l=n.dir,c=n.date;n._compressWorker(r,a).withStreamInfo("file",{name:t,dir:l,date:c,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(s)})),s.entriesCount=o}catch(t){s.error(t)}return s}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,n){"use strict";function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new i;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(i.prototype=t("./object")).loadAsync=t("./load"),i.support=t("./support"),i.defaults=t("./defaults"),i.version="3.10.1",i.loadAsync=function(t,e){return(new i).loadAsync(t,e)},i.external=t("./external"),e.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,n){"use strict";var i=t("./utils"),r=t("./external"),s=t("./utf8"),o=t("./zipEntries"),a=t("./stream/Crc32Probe"),l=t("./nodejsUtils");function c(t){return new r.Promise((function(e,n){var i=t.decompressed.getContentWorker().pipe(new a);i.on("error",(function(t){n(t)})).on("end",(function(){i.streamInfo.crc32!==t.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}e.exports=function(t,e){var n=this;return e=i.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),l.isNode&&l.isStream(t)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var n=new o(e);return n.load(t),n})).then((function(t){var n=[r.Promise.resolve(t)],i=t.files;if(e.checkCRC32)for(var s=0;s<i.length;s++)n.push(c(i[s]));return r.Promise.all(n)})).then((function(t){for(var r=t.shift(),s=r.files,o=0;o<s.length;o++){var a=s[o],l=a.fileNameStr,c=i.resolve(a.fileNameStr);n.file(c,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:e.createFolders}),a.dir||(n.file(c).unsafeOriginalName=l)}return r.zipComment.length&&(n.comment=r.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,n){"use strict";var i=t("../utils"),r=t("../stream/GenericWorker");function s(t,e){r.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}i.inherits(s,r),s.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},s.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,n){"use strict";var i=t("readable-stream").Readable;function r(t,e,n){i.call(this,e),this._helper=t;var r=this;t.on("data",(function(t,e){r.push(t)||r._helper.pause(),n&&n(e)})).on("error",(function(t){r.emit("error",t)})).on("end",(function(){r.push(null)}))}t("../utils").inherits(r,i),r.prototype._read=function(){this._helper.resume()},e.exports=r},{"../utils":32,"readable-stream":16}],14:[function(t,e,n){"use strict";e.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(t,e){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(t,e);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new Buffer(t,e)},allocBuffer:function(t){if(Buffer.alloc)return Buffer.alloc(t);var e=new Buffer(t);return e.fill(0),e},isBuffer:function(t){return Buffer.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,n){"use strict";function i(t,e,n){var i,r=s.getTypeOf(e),a=s.extend(n||{},l);a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),"string"==typeof a.unixPermissions&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&16384&a.unixPermissions&&(a.dir=!0),a.dosPermissions&&16&a.dosPermissions&&(a.dir=!0),a.dir&&(t=g(t)),a.createFolders&&(i=f(t))&&m.call(this,i,!0);var d="string"===r&&!1===a.binary&&!1===a.base64;n&&void 0!==n.binary||(a.binary=!d),(e instanceof c&&0===e.uncompressedSize||a.dir||!e||0===e.length)&&(a.base64=!1,a.binary=!0,e="",a.compression="STORE",r="string");var v;v=e instanceof c||e instanceof o?e:h.isNode&&h.isStream(e)?new p(t,e):s.prepareContent(t,e,a.binary,a.optimizedBinaryString,a.base64);var y=new u(t,v,a);this.files[t]=y}var r=t("./utf8"),s=t("./utils"),o=t("./stream/GenericWorker"),a=t("./stream/StreamHelper"),l=t("./defaults"),c=t("./compressedObject"),u=t("./zipObject"),d=t("./generate"),h=t("./nodejsUtils"),p=t("./nodejs/NodejsStreamInputAdapter"),f=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},g=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},m=function(t,e){return e=void 0!==e?e:l.createFolders,t=g(t),this.files[t]||i.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function v(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,n,i;for(e in this.files)i=this.files[e],(n=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(n,i)},filter:function(t){var e=[];return this.forEach((function(n,i){t(n,i)&&e.push(i)})),e},file:function(t,e,n){if(1!==arguments.length)return t=this.root+t,i.call(this,t,e,n),this;if(v(t)){var r=t;return this.filter((function(t,e){return!e.dir&&r.test(t)}))}var s=this.files[this.root+t];return s&&!s.dir?s:null},folder:function(t){if(!t)return this;if(v(t))return this.filter((function(e,n){return n.dir&&t.test(e)}));var e=this.root+t,n=m.call(this,e),i=this.clone();return i.root=n.name,i},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var n=this.filter((function(e,n){return n.name.slice(0,t.length)===t})),i=0;i<n.length;i++)delete this.files[n[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,n={};try{if((n=s.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");s.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var i=n.comment||this.comment||"";e=d.generateWorker(this,n,i)}catch(t){(e=new o("error")).error(t)}return new a(e,n.type||"string",n.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,n){"use strict";e.exports=t("stream")},{stream:void 0}],17:[function(t,e,n){"use strict";var i=t("./DataReader");function r(t){i.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(r,i),r.prototype.byteAt=function(t){return this.data[this.zero+t]},r.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),r=t.charCodeAt(3),s=this.length-4;0<=s;--s)if(this.data[s]===e&&this.data[s+1]===n&&this.data[s+2]===i&&this.data[s+3]===r)return s-this.zero;return-1},r.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),r=t.charCodeAt(3),s=this.readData(4);return e===s[0]&&n===s[1]&&i===s[2]&&r===s[3]},r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],18:[function(t,e,n){"use strict";var i=t("../utils");function r(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,n=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(t){return i.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=r},{"../utils":32}],19:[function(t,e,n){"use strict";var i=t("./Uint8ArrayReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,n){"use strict";var i=t("./DataReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},r.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},r.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],21:[function(t,e,n){"use strict";var i=t("./ArrayReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,n){"use strict";var i=t("../utils"),r=t("../support"),s=t("./ArrayReader"),o=t("./StringReader"),a=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");e.exports=function(t){var e=i.getTypeOf(t);return i.checkSupport(e),"string"!==e||r.uint8array?"nodebuffer"===e?new a(t):r.uint8array?new l(i.transformTo("uint8array",t)):new s(i.transformTo("array",t)):new o(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,n){"use strict";var i=t("./GenericWorker"),r=t("../utils");function s(t){i.call(this,"ConvertWorker to "+t),this.destType=t}r.inherits(s,i),s.prototype.processChunk=function(t){this.push({data:r.transformTo(this.destType,t.data),meta:t.meta})},e.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,n){"use strict";var i=t("./GenericWorker"),r=t("../crc32");function s(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(s,i),s.prototype.processChunk=function(t){this.streamInfo.crc32=r(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./GenericWorker");function s(t){r.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}i.inherits(s,r),s.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}r.prototype.processChunk.call(this,t)},e.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./GenericWorker");function s(t){r.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=i.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}i.inherits(s,r),s.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,n){"use strict";function i(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=i},{}],29:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./ConvertWorker"),s=t("./GenericWorker"),o=t("../base64"),a=t("../support"),l=t("../external"),c=null;if(a.nodestream)try{c=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function u(t,e,n){var o=e;switch(e){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string"}try{this._internalType=o,this._outputType=e,this._mimeType=n,i.checkSupport(o),this._worker=t.pipe(new r(o)),t.lock()}catch(t){this._worker=new s("error"),this._worker.error(t)}}u.prototype={accumulate:function(t){return function(t,e){return new l.Promise((function(n,r){var s=[],a=t._internalType,l=t._outputType,c=t._mimeType;t.on("data",(function(t,n){s.push(t),e&&e(n)})).on("error",(function(t){s=[],r(t)})).on("end",(function(){try{var t=function(t,e,n){switch(t){case"blob":return i.newBlob(i.transformTo("arraybuffer",e),n);case"base64":return o.encode(e);default:return i.transformTo(t,e)}}(l,function(t,e){var n,i=0,r=null,s=0;for(n=0;n<e.length;n++)s+=e[n].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(r=new Uint8Array(s),n=0;n<e.length;n++)r.set(e[n],i),i+=e[n].length;return r;case"nodebuffer":return Buffer.concat(e);default:throw new Error("concat : unsupported type '"+t+"'")}}(a,s),c);n(t)}catch(t){r(t)}s=[]})).resume()}))}(this,t)},on:function(t,e){var n=this;return"data"===t?this._worker.on(t,(function(t){e.call(n,t.data,t.meta)})):this._worker.on(t,(function(){i.delay(e,arguments,n)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},t)}},e.exports=u},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,e,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var i=new ArrayBuffer(0);try{n.blob=0===new Blob([i],{type:"application/zip"}).size}catch(t){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(i),n.blob=0===r.getBlob("application/zip").size}catch(t){n.blob=!1}}}try{n.nodestream=!!t("readable-stream").Readable}catch(t){n.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,n){"use strict";for(var i=t("./utils"),r=t("./support"),s=t("./nodejsUtils"),o=t("./stream/GenericWorker"),a=new Array(256),l=0;l<256;l++)a[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){o.call(this,"utf-8 decode"),this.leftOver=null}function u(){o.call(this,"utf-8 encode")}a[254]=a[254]=1,n.utf8encode=function(t){return r.nodebuffer?s.newBufferFrom(t,"utf-8"):function(t){var e,n,i,s,o,a=t.length,l=0;for(s=0;s<a;s++)55296==(64512&(n=t.charCodeAt(s)))&&s+1<a&&56320==(64512&(i=t.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(i-56320),s++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=r.uint8array?new Uint8Array(l):new Array(l),s=o=0;o<l;s++)55296==(64512&(n=t.charCodeAt(s)))&&s+1<a&&56320==(64512&(i=t.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(i-56320),s++),n<128?e[o++]=n:(n<2048?e[o++]=192|n>>>6:(n<65536?e[o++]=224|n>>>12:(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63),e[o++]=128|n>>>6&63),e[o++]=128|63&n);return e}(t)},n.utf8decode=function(t){return r.nodebuffer?i.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,r,s,o=t.length,l=new Array(2*o);for(e=n=0;e<o;)if((r=t[e++])<128)l[n++]=r;else if(4<(s=a[r]))l[n++]=65533,e+=s-1;else{for(r&=2===s?31:3===s?15:7;1<s&&e<o;)r=r<<6|63&t[e++],s--;1<s?l[n++]=65533:r<65536?l[n++]=r:(r-=65536,l[n++]=55296|r>>10&1023,l[n++]=56320|1023&r)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),i.applyFromCharCode(l)}(t=i.transformTo(r.uint8array?"uint8array":"array",t))},i.inherits(c,o),c.prototype.processChunk=function(t){var e=i.transformTo(r.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var s=e;(e=new Uint8Array(s.length+this.leftOver.length)).set(this.leftOver,0),e.set(s,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var o=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+a[t[n]]>e?n:e}(e),l=e;o!==e.length&&(r.uint8array?(l=e.subarray(0,o),this.leftOver=e.subarray(o,e.length)):(l=e.slice(0,o),this.leftOver=e.slice(o,e.length))),this.push({data:n.utf8decode(l),meta:t.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=c,i.inherits(u,o),u.prototype.processChunk=function(t){this.push({data:n.utf8encode(t.data),meta:t.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,n){"use strict";var i=t("./support"),r=t("./base64"),s=t("./nodejsUtils"),o=t("./external");function a(t){return t}function l(t,e){for(var n=0;n<t.length;++n)e[n]=255&t.charCodeAt(n);return e}t("setimmediate"),n.newBlob=function(t,e){n.checkSupport("blob");try{return new Blob([t],{type:e})}catch(n){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(t),i.getBlob(e)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(t,e,n){var i=[],r=0,s=t.length;if(s<=n)return String.fromCharCode.apply(null,t);for(;r<s;)"array"===e||"nodebuffer"===e?i.push(String.fromCharCode.apply(null,t.slice(r,Math.min(r+n,s)))):i.push(String.fromCharCode.apply(null,t.subarray(r,Math.min(r+n,s)))),r+=n;return i.join("")},stringifyByChar:function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,s.allocBuffer(1)).length}catch(t){return!1}}()}};function u(t){var e=65536,i=n.getTypeOf(t),r=!0;if("uint8array"===i?r=c.applyCanBeUsed.uint8array:"nodebuffer"===i&&(r=c.applyCanBeUsed.nodebuffer),r)for(;1<e;)try{return c.stringifyByChunk(t,i,e)}catch(t){e=Math.floor(e/2)}return c.stringifyByChar(t)}function d(t,e){for(var n=0;n<t.length;n++)e[n]=t[n];return e}n.applyFromCharCode=u;var h={};h.string={string:a,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return h.string.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:function(t){return l(t,s.allocBuffer(t.length))}},h.array={string:u,array:a,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return s.newBufferFrom(t)}},h.arraybuffer={string:function(t){return u(new Uint8Array(t))},array:function(t){return d(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:a,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return s.newBufferFrom(new Uint8Array(t))}},h.uint8array={string:u,array:function(t){return d(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:a,nodebuffer:function(t){return s.newBufferFrom(t)}},h.nodebuffer={string:u,array:function(t){return d(t,new Array(t.length))},arraybuffer:function(t){return h.nodebuffer.uint8array(t).buffer},uint8array:function(t){return d(t,new Uint8Array(t.length))},nodebuffer:a},n.transformTo=function(t,e){if(e=e||"",!t)return e;n.checkSupport(t);var i=n.getTypeOf(e);return h[i][t](e)},n.resolve=function(t){for(var e=t.split("/"),n=[],i=0;i<e.length;i++){var r=e[i];"."===r||""===r&&0!==i&&i!==e.length-1||(".."===r?n.pop():n.push(r))}return n.join("/")},n.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":i.nodebuffer&&s.isBuffer(t)?"nodebuffer":i.uint8array&&t instanceof Uint8Array?"uint8array":i.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(t){if(!i[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(t){var e,n,i="";for(n=0;n<(t||"").length;n++)i+="\\x"+((e=t.charCodeAt(n))<16?"0":"")+e.toString(16).toUpperCase();return i},n.delay=function(t,e,n){setImmediate((function(){t.apply(n||null,e||[])}))},n.inherits=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n},n.extend=function(){var t,e,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===n[e]&&(n[e]=arguments[t][e]);return n},n.prepareContent=function(t,e,s,a,c){return o.Promise.resolve(e).then((function(t){return i.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new o.Promise((function(e,n){var i=new FileReader;i.onload=function(t){e(t.target.result)},i.onerror=function(t){n(t.target.error)},i.readAsArrayBuffer(t)})):t})).then((function(e){var u=n.getTypeOf(e);return u?("arraybuffer"===u?e=n.transformTo("uint8array",e):"string"===u&&(c?e=r.decode(e):s&&!0!==a&&(e=function(t){return l(t,i.uint8array?new Uint8Array(t.length):new Array(t.length))}(e))),e):o.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,e,n){"use strict";var i=t("./reader/readerFor"),r=t("./utils"),s=t("./signature"),o=t("./zipEntry"),a=t("./support");function l(t){this.files=[],this.loadOptions=t}l.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(e)+", expected "+r.pretty(t)+")")}},isSignature:function(t,e){var n=this.reader.index;this.reader.setIndex(t);var i=this.reader.readString(4)===e;return this.reader.setIndex(n),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=a.uint8array?"uint8array":"array",n=r.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,n,i=this.zip64EndOfCentralSize-44;0<i;)t=this.reader.readInt(2),e=this.reader.readInt(4),n=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(t=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var i=e-n;if(0<i)this.isSignature(e,s.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(t){this.reader=i(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,e,n){"use strict";var i=t("./reader/readerFor"),r=t("./utils"),s=t("./compressedObject"),o=t("./crc32"),a=t("./utf8"),l=t("./compressions"),c=t("./support");function u(t,e){this.options=t,this.loadOptions=e}u.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(t){var e,n;if(t.skip(22),this.fileNameLength=t.readInt(2),n=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in l)if(Object.prototype.hasOwnProperty.call(l,e)&&l[e].magic===t)return l[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=i(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,n,i,r=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<r;)e=t.readInt(2),n=t.readInt(2),i=t.readData(n),this.extraFields[e]={id:e,length:n,value:i};t.setIndex(r)},handleUTF8:function(){var t=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var n=r.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var s=r.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(s)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=i(t.value);return 1!==e.readInt(1)||o(this.fileName)!==e.readInt(4)?null:a.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=i(t.value);return 1!==e.readInt(1)||o(this.fileComment)!==e.readInt(4)?null:a.utf8decode(e.readData(t.length-5))}return null}},e.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,n){"use strict";function i(t,e,n){this.name=t,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=e,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var r=t("./stream/StreamHelper"),s=t("./stream/DataWorker"),o=t("./utf8"),a=t("./compressedObject"),l=t("./stream/GenericWorker");i.prototype={internalStream:function(t){var e=null,n="string";try{if(!t)throw new Error("No output type specified.");var i="string"===(n=t.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),e=this._decompressWorker();var s=!this._dataBinary;s&&!i&&(e=e.pipe(new o.Utf8EncodeWorker)),!s&&i&&(e=e.pipe(new o.Utf8DecodeWorker))}catch(t){(e=new l("error")).error(t)}return new r(e,n,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof a&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),a.createWorkerFrom(n,t,e)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof l?this._data:new s(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<c.length;d++)i.prototype[c[d]]=u;e.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,i){(function(t){"use strict";var n,i,r=t.MutationObserver||t.WebKitMutationObserver;if(r){var s=0,o=new r(u),a=t.document.createTextNode("");o.observe(a,{characterData:!0}),n=function(){a.data=s=++s%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){u(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(u,0)};else{var l=new t.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var c=[];function u(){var t,e;i=!0;for(var n=c.length;n;){for(e=c,c=[],t=-1;++t<n;)e[t]();n=c.length}i=!1}e.exports=function(t){1!==c.push(t)||i||n()}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,n){"use strict";var i=t("immediate");function r(){}var s={},o=["REJECTED"],a=["FULFILLED"],l=["PENDING"];function c(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,t!==r&&p(this,t)}function u(t,e,n){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(t,e,n){i((function(){var i;try{i=e(n)}catch(i){return s.reject(t,i)}i===t?s.reject(t,new TypeError("Cannot resolve promise with itself")):s.resolve(t,i)}))}function h(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function p(t,e){var n=!1;function i(e){n||(n=!0,s.reject(t,e))}function r(e){n||(n=!0,s.resolve(t,e))}var o=f((function(){e(r,i)}));"error"===o.status&&i(o.value)}function f(t,e){var n={};try{n.value=t(e),n.status="success"}catch(t){n.status="error",n.value=t}return n}(e.exports=c).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))},c.prototype.catch=function(t){return this.then(null,t)},c.prototype.then=function(t,e){if("function"!=typeof t&&this.state===a||"function"!=typeof e&&this.state===o)return this;var n=new this.constructor(r);return this.state!==l?d(n,this.state===a?t:e,this.outcome):this.queue.push(new u(n,t,e)),n},u.prototype.callFulfilled=function(t){s.resolve(this.promise,t)},u.prototype.otherCallFulfilled=function(t){d(this.promise,this.onFulfilled,t)},u.prototype.callRejected=function(t){s.reject(this.promise,t)},u.prototype.otherCallRejected=function(t){d(this.promise,this.onRejected,t)},s.resolve=function(t,e){var n=f(h,e);if("error"===n.status)return s.reject(t,n.value);var i=n.value;if(i)p(t,i);else{t.state=a,t.outcome=e;for(var r=-1,o=t.queue.length;++r<o;)t.queue[r].callFulfilled(e)}return t},s.reject=function(t,e){t.state=o,t.outcome=e;for(var n=-1,i=t.queue.length;++n<i;)t.queue[n].callRejected(e);return t},c.resolve=function(t){return t instanceof this?t:s.resolve(new this(r),t)},c.reject=function(t){var e=new this(r);return s.reject(e,t)},c.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,i=!1;if(!n)return this.resolve([]);for(var o=new Array(n),a=0,l=-1,c=new this(r);++l<n;)u(t[l],l);return c;function u(t,r){e.resolve(t).then((function(t){o[r]=t,++a!==n||i||(i=!0,s.resolve(c,o))}),(function(t){i||(i=!0,s.reject(c,t))}))}},c.race=function(t){if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var e=t.length,n=!1;if(!e)return this.resolve([]);for(var i,o=-1,a=new this(r);++o<e;)i=t[o],this.resolve(i).then((function(t){n||(n=!0,s.resolve(a,t))}),(function(t){n||(n=!0,s.reject(a,t))}));return a}},{immediate:36}],38:[function(t,e,n){"use strict";var i={};(0,t("./lib/utils/common").assign)(i,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,n){"use strict";var i=t("./zlib/deflate"),r=t("./utils/common"),s=t("./utils/strings"),o=t("./zlib/messages"),a=t("./zlib/zstream"),l=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=r.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==n)throw new Error(o[n]);if(e.header&&i.deflateSetHeader(this.strm,e.header),e.dictionary){var u;if(u="string"==typeof e.dictionary?s.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(n=i.deflateSetDictionary(this.strm,u)))throw new Error(o[n]);this._dict_set=!0}}function u(t,e){var n=new c(e);if(n.push(t,!0),n.err)throw n.msg||o[n.err];return n.result}c.prototype.push=function(t,e){var n,o,a=this.strm,c=this.options.chunkSize;if(this.ended)return!1;o=e===~~e?e:!0===e?4:0,"string"==typeof t?a.input=s.string2buf(t):"[object ArrayBuffer]"===l.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new r.Buf8(c),a.next_out=0,a.avail_out=c),1!==(n=i.deflate(a,o))&&0!==n)return this.onEnd(n),!(this.ended=!0);0!==a.avail_out&&(0!==a.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(s.buf2binstring(r.shrinkBuf(a.output,a.next_out))):this.onData(r.shrinkBuf(a.output,a.next_out)))}while((0<a.avail_in||0===a.avail_out)&&1!==n);return 4===o?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==o||(this.onEnd(0),!(a.avail_out=0))},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Deflate=c,n.deflate=u,n.deflateRaw=function(t,e){return(e=e||{}).raw=!0,u(t,e)},n.gzip=function(t,e){return(e=e||{}).gzip=!0,u(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,n){"use strict";var i=t("./zlib/inflate"),r=t("./utils/common"),s=t("./utils/strings"),o=t("./zlib/constants"),a=t("./zlib/messages"),l=t("./zlib/zstream"),c=t("./zlib/gzheader"),u=Object.prototype.toString;function d(t){if(!(this instanceof d))return new d(t);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&!(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=i.inflateInit2(this.strm,e.windowBits);if(n!==o.Z_OK)throw new Error(a[n]);this.header=new c,i.inflateGetHeader(this.strm,this.header)}function h(t,e){var n=new d(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}d.prototype.push=function(t,e){var n,a,l,c,d,h,p=this.strm,f=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;a=e===~~e?e:!0===e?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof t?p.input=s.binstring2buf(t):"[object ArrayBuffer]"===u.call(t)?p.input=new Uint8Array(t):p.input=t,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new r.Buf8(f),p.next_out=0,p.avail_out=f),(n=i.inflate(p,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&g&&(h="string"==typeof g?s.string2buf(g):"[object ArrayBuffer]"===u.call(g)?new Uint8Array(g):g,n=i.inflateSetDictionary(this.strm,h)),n===o.Z_BUF_ERROR&&!0===m&&(n=o.Z_OK,m=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);p.next_out&&(0!==p.avail_out&&n!==o.Z_STREAM_END&&(0!==p.avail_in||a!==o.Z_FINISH&&a!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=s.utf8border(p.output,p.next_out),c=p.next_out-l,d=s.buf2string(p.output,l),p.next_out=c,p.avail_out=f-c,c&&r.arraySet(p.output,p.output,l,c,0),this.onData(d)):this.onData(r.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(m=!0)}while((0<p.avail_in||0===p.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(a=o.Z_FINISH),a===o.Z_FINISH?(n=i.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):a!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(p.avail_out=0))},d.prototype.onData=function(t){this.chunks.push(t)},d.prototype.onEnd=function(t){t===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Inflate=d,n.inflate=h,n.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},n.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}}return t},n.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,n,i,r){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+i),r);else for(var s=0;s<i;s++)t[r+s]=e[n+s]},flattenChunks:function(t){var e,n,i,r,s,o;for(e=i=0,n=t.length;e<n;e++)i+=t[e].length;for(o=new Uint8Array(i),e=r=0,n=t.length;e<n;e++)s=t[e],o.set(s,r),r+=s.length;return o}},s={arraySet:function(t,e,n,i,r){for(var s=0;s<i;s++)t[r+s]=e[n+s]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,r)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,s))},n.setTyped(i)},{}],42:[function(t,e,n){"use strict";var i=t("./common"),r=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(t){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){s=!1}for(var o=new i.Buf8(256),a=0;a<256;a++)o[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function l(t,e){if(e<65537&&(t.subarray&&s||!t.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(t,e));for(var n="",o=0;o<e;o++)n+=String.fromCharCode(t[o]);return n}o[254]=o[254]=1,n.string2buf=function(t){var e,n,r,s,o,a=t.length,l=0;for(s=0;s<a;s++)55296==(64512&(n=t.charCodeAt(s)))&&s+1<a&&56320==(64512&(r=t.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(r-56320),s++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=new i.Buf8(l),s=o=0;o<l;s++)55296==(64512&(n=t.charCodeAt(s)))&&s+1<a&&56320==(64512&(r=t.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(r-56320),s++),n<128?e[o++]=n:(n<2048?e[o++]=192|n>>>6:(n<65536?e[o++]=224|n>>>12:(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63),e[o++]=128|n>>>6&63),e[o++]=128|63&n);return e},n.buf2binstring=function(t){return l(t,t.length)},n.binstring2buf=function(t){for(var e=new i.Buf8(t.length),n=0,r=e.length;n<r;n++)e[n]=t.charCodeAt(n);return e},n.buf2string=function(t,e){var n,i,r,s,a=e||t.length,c=new Array(2*a);for(n=i=0;n<a;)if((r=t[n++])<128)c[i++]=r;else if(4<(s=o[r]))c[i++]=65533,n+=s-1;else{for(r&=2===s?31:3===s?15:7;1<s&&n<a;)r=r<<6|63&t[n++],s--;1<s?c[i++]=65533:r<65536?c[i++]=r:(r-=65536,c[i++]=55296|r>>10&1023,c[i++]=56320|1023&r)}return l(c,i)},n.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+o[t[n]]>e?n:e}},{"./common":41}],43:[function(t,e,n){"use strict";e.exports=function(t,e,n,i){for(var r=65535&t,s=t>>>16&65535,o=0;0!==n;){for(n-=o=2e3<n?2e3:n;s=s+(r=r+e[i++]|0)|0,--o;);r%=65521,s%=65521}return r|s<<16}},{}],44:[function(t,e,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,n){"use strict";var i=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e,n,r){var s=i,o=r+n;t^=-1;for(var a=r;a<o;a++)t=t>>>8^s[255&(t^e[a])];return~t}},{}],46:[function(t,e,n){"use strict";var i,r=t("../utils/common"),s=t("./trees"),o=t("./adler32"),a=t("./crc32"),l=t("./messages"),c=-2,u=258,d=262,h=113;function p(t,e){return t.msg=l[e],e}function f(t){return(t<<1)-(4<t?9:0)}function g(t){for(var e=t.length;0<=--e;)t[e]=0}function m(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(r.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function v(t,e){s._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,m(t.strm)}function y(t,e){t.pending_buf[t.pending++]=e}function b(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function x(t,e){var n,i,r=t.max_chain_length,s=t.strstart,o=t.prev_length,a=t.nice_match,l=t.strstart>t.w_size-d?t.strstart-(t.w_size-d):0,c=t.window,h=t.w_mask,p=t.prev,f=t.strstart+u,g=c[s+o-1],m=c[s+o];t.prev_length>=t.good_match&&(r>>=2),a>t.lookahead&&(a=t.lookahead);do{if(c[(n=e)+o]===m&&c[n+o-1]===g&&c[n]===c[s]&&c[++n]===c[s+1]){s+=2,n++;do{}while(c[++s]===c[++n]&&c[++s]===c[++n]&&c[++s]===c[++n]&&c[++s]===c[++n]&&c[++s]===c[++n]&&c[++s]===c[++n]&&c[++s]===c[++n]&&c[++s]===c[++n]&&s<f);if(i=u-(f-s),s=f-u,o<i){if(t.match_start=e,a<=(o=i))break;g=c[s+o-1],m=c[s+o]}}}while((e=p[e&h])>l&&0!=--r);return o<=t.lookahead?o:t.lookahead}function w(t){var e,n,i,s,l,c,u,h,p,f,g=t.w_size;do{if(s=t.window_size-t.lookahead-t.strstart,t.strstart>=g+(g-d)){for(r.arraySet(t.window,t.window,g,g,0),t.match_start-=g,t.strstart-=g,t.block_start-=g,e=n=t.hash_size;i=t.head[--e],t.head[e]=g<=i?i-g:0,--n;);for(e=n=g;i=t.prev[--e],t.prev[e]=g<=i?i-g:0,--n;);s+=g}if(0===t.strm.avail_in)break;if(c=t.strm,u=t.window,h=t.strstart+t.lookahead,f=void 0,(p=s)<(f=c.avail_in)&&(f=p),n=0===f?0:(c.avail_in-=f,r.arraySet(u,c.input,c.next_in,f,h),1===c.state.wrap?c.adler=o(c.adler,u,f,h):2===c.state.wrap&&(c.adler=a(c.adler,u,f,h)),c.next_in+=f,c.total_in+=f,f),t.lookahead+=n,t.lookahead+t.insert>=3)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+3-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<d&&0!==t.strm.avail_in)}function A(t,e){for(var n,i;;){if(t.lookahead<d){if(w(t),t.lookahead<d&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-d&&(t.match_length=x(t,n)),t.match_length>=3)if(i=s._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=s._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}function _(t,e){for(var n,i,r;;){if(t.lookahead<d){if(w(t),t.lookahead<d&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-d&&(t.match_length=x(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&4096<t.strstart-t.match_start)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){for(r=t.strstart+t.lookahead-3,i=s._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(v(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((i=s._tr_tally(t,0,t.window[t.strstart-1]))&&v(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=s._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}function C(t,e,n,i,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=i,this.func=r}function M(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(1146),this.dyn_dtree=new r.Buf16(122),this.bl_tree=new r.Buf16(78),g(this.dyn_ltree),g(this.dyn_dtree),g(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(16),this.heap=new r.Buf16(573),g(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(573),g(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function k(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:h,t.adler=2===e.wrap?0:1,e.last_flush=0,s._tr_init(e),0):p(t,c)}function S(t){var e=k(t);return 0===e&&function(t){t.window_size=2*t.w_size,g(t.head),t.max_lazy_match=i[t.level].max_lazy,t.good_match=i[t.level].good_length,t.nice_match=i[t.level].nice_length,t.max_chain_length=i[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0}(t.state),e}function I(t,e,n,i,s,o){if(!t)return c;var a=1;if(-1===e&&(e=6),i<0?(a=0,i=-i):15<i&&(a=2,i-=16),s<1||9<s||8!==n||i<8||15<i||e<0||9<e||o<0||4<o)return p(t,c);8===i&&(i=9);var l=new M;return(t.state=l).strm=t,l.wrap=a,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=s+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<s+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=o,l.method=n,S(t)}i=[new C(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(w(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+n;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,v(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-d&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(v(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(v(t,!1),t.strm.avail_out),1)})),new C(4,4,8,4,A),new C(4,5,16,8,A),new C(4,6,32,32,A),new C(4,4,16,16,_),new C(8,16,32,32,_),new C(8,16,128,128,_),new C(8,32,128,256,_),new C(32,128,258,1024,_),new C(32,258,258,4096,_)],n.deflateInit=function(t,e){return I(t,e,8,15,8,0)},n.deflateInit2=I,n.deflateReset=S,n.deflateResetKeep=k,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?c:(t.state.gzhead=e,0):c},n.deflate=function(t,e){var n,r,o,l;if(!t||!t.state||5<e||e<0)return t?p(t,c):c;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||666===r.status&&4!==e)return p(t,0===t.avail_out?-5:c);if(r.strm=t,n=r.last_flush,r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,y(r,31),y(r,139),y(r,8),r.gzhead?(y(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),y(r,255&r.gzhead.time),y(r,r.gzhead.time>>8&255),y(r,r.gzhead.time>>16&255),y(r,r.gzhead.time>>24&255),y(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),y(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(y(r,255&r.gzhead.extra.length),y(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=a(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(y(r,0),y(r,0),y(r,0),y(r,0),y(r,0),y(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),y(r,3),r.status=h);else{var d=8+(r.w_bits-8<<4)<<8;d|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(d|=32),d+=31-d%31,r.status=h,b(r,d),0!==r.strstart&&(b(r,t.adler>>>16),b(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(o=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>o&&(t.adler=a(t.adler,r.pending_buf,r.pending-o,o)),m(t),o=r.pending,r.pending!==r.pending_buf_size));)y(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>o&&(t.adler=a(t.adler,r.pending_buf,r.pending-o,o)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(t.adler=a(t.adler,r.pending_buf,r.pending-o,o)),m(t),o=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,y(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>o&&(t.adler=a(t.adler,r.pending_buf,r.pending-o,o)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(t.adler=a(t.adler,r.pending_buf,r.pending-o,o)),m(t),o=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,y(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>o&&(t.adler=a(t.adler,r.pending_buf,r.pending-o,o)),0===l&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&m(t),r.pending+2<=r.pending_buf_size&&(y(r,255&t.adler),y(r,t.adler>>8&255),t.adler=0,r.status=h)):r.status=h),0!==r.pending){if(m(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&f(e)<=f(n)&&4!==e)return p(t,-5);if(666===r.status&&0!==t.avail_in)return p(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&666!==r.status){var x=2===r.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(w(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=s._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var n,i,r,o,a=t.window;;){if(t.lookahead<=u){if(w(t),t.lookahead<=u&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&0<t.strstart&&(i=a[r=t.strstart-1])===a[++r]&&i===a[++r]&&i===a[++r]){o=t.strstart+u;do{}while(i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&r<o);t.match_length=u-(o-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=s._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=s._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}(r,e):i[r.level].func(r,e);if(3!==x&&4!==x||(r.status=666),1===x||3===x)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===x&&(1===e?s._tr_align(r):5!==e&&(s._tr_stored_block(r,0,0,!1),3===e&&(g(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),m(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(y(r,255&t.adler),y(r,t.adler>>8&255),y(r,t.adler>>16&255),y(r,t.adler>>24&255),y(r,255&t.total_in),y(r,t.total_in>>8&255),y(r,t.total_in>>16&255),y(r,t.total_in>>24&255)):(b(r,t.adler>>>16),b(r,65535&t.adler)),m(t),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?0:1)},n.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&e!==h&&666!==e?p(t,c):(t.state=null,e===h?p(t,-3):0):c},n.deflateSetDictionary=function(t,e){var n,i,s,a,l,u,d,h,p=e.length;if(!t||!t.state)return c;if(2===(a=(n=t.state).wrap)||1===a&&42!==n.status||n.lookahead)return c;for(1===a&&(t.adler=o(t.adler,e,p,0)),n.wrap=0,p>=n.w_size&&(0===a&&(g(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new r.Buf8(n.w_size),r.arraySet(h,e,p-n.w_size,n.w_size,0),e=h,p=n.w_size),l=t.avail_in,u=t.next_in,d=t.input,t.avail_in=p,t.next_in=0,t.input=e,w(n);n.lookahead>=3;){for(i=n.strstart,s=n.lookahead-2;n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+3-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++,--s;);n.strstart=i,n.lookahead=2,w(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=u,t.input=d,t.avail_in=l,n.wrap=a,0},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,n){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,n){"use strict";e.exports=function(t,e){var n,i,r,s,o,a,l,c,u,d,h,p,f,g,m,v,y,b,x,w,A,_,C,M,k;n=t.state,i=t.next_in,M=t.input,r=i+(t.avail_in-5),s=t.next_out,k=t.output,o=s-(e-t.avail_out),a=s+(t.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,d=n.wnext,h=n.window,p=n.hold,f=n.bits,g=n.lencode,m=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;t:do{f<15&&(p+=M[i++]<<f,f+=8,p+=M[i++]<<f,f+=8),b=g[p&v];e:for(;;){if(p>>>=x=b>>>24,f-=x,0==(x=b>>>16&255))k[s++]=65535&b;else{if(!(16&x)){if(!(64&x)){b=g[(65535&b)+(p&(1<<x)-1)];continue e}if(32&x){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}w=65535&b,(x&=15)&&(f<x&&(p+=M[i++]<<f,f+=8),w+=p&(1<<x)-1,p>>>=x,f-=x),f<15&&(p+=M[i++]<<f,f+=8,p+=M[i++]<<f,f+=8),b=m[p&y];n:for(;;){if(p>>>=x=b>>>24,f-=x,!(16&(x=b>>>16&255))){if(!(64&x)){b=m[(65535&b)+(p&(1<<x)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(A=65535&b,f<(x&=15)&&(p+=M[i++]<<f,(f+=8)<x&&(p+=M[i++]<<f,f+=8)),l<(A+=p&(1<<x)-1)){t.msg="invalid distance too far back",n.mode=30;break t}if(p>>>=x,f-=x,(x=s-o)<A){if(u<(x=A-x)&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(C=h,(_=0)===d){if(_+=c-x,x<w){for(w-=x;k[s++]=h[_++],--x;);_=s-A,C=k}}else if(d<x){if(_+=c+d-x,(x-=d)<w){for(w-=x;k[s++]=h[_++],--x;);if(_=0,d<w){for(w-=x=d;k[s++]=h[_++],--x;);_=s-A,C=k}}}else if(_+=d-x,x<w){for(w-=x;k[s++]=h[_++],--x;);_=s-A,C=k}for(;2<w;)k[s++]=C[_++],k[s++]=C[_++],k[s++]=C[_++],w-=3;w&&(k[s++]=C[_++],1<w&&(k[s++]=C[_++]))}else{for(_=s-A;k[s++]=k[_++],k[s++]=k[_++],k[s++]=k[_++],2<(w-=3););w&&(k[s++]=k[_++],1<w&&(k[s++]=k[_++]))}break}}break}}while(i<r&&s<a);i-=w=f>>3,p&=(1<<(f-=w<<3))-1,t.next_in=i,t.next_out=s,t.avail_in=i<r?r-i+5:5-(i-r),t.avail_out=s<a?a-s+257:257-(s-a),n.hold=p,n.bits=f}},{}],49:[function(t,e,n){"use strict";var i=t("../utils/common"),r=t("./adler32"),s=t("./crc32"),o=t("./inffast"),a=t("./inftrees"),l=-2;function c(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new i.Buf32(852),e.distcode=e.distdyn=new i.Buf32(592),e.sane=1,e.back=-1,0):l}function h(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,d(t)):l}function p(t,e){var n,i;return t&&t.state?(i=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?l:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,h(t))):l}function f(t,e){var n,i;return t?(i=new u,(t.state=i).window=null,0!==(n=p(t,e))&&(t.state=null),n):l}var g,m,v=!0;function y(t){if(v){var e;for(g=new i.Buf32(512),m=new i.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(a(1,t.lens,0,288,g,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;a(2,t.lens,0,32,m,0,t.work,{bits:5}),v=!1}t.lencode=g,t.lenbits=9,t.distcode=m,t.distbits=5}function b(t,e,n,r){var s,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new i.Buf8(o.wsize)),r>=o.wsize?(i.arraySet(o.window,e,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(r<(s=o.wsize-o.wnext)&&(s=r),i.arraySet(o.window,e,n-r,s,o.wnext),(r-=s)?(i.arraySet(o.window,e,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=s,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=s))),0}n.inflateReset=h,n.inflateReset2=p,n.inflateResetKeep=d,n.inflateInit=function(t){return f(t,15)},n.inflateInit2=f,n.inflate=function(t,e){var n,u,d,h,p,f,g,m,v,x,w,A,_,C,M,k,S,I,L,D,T,N,O,j,E=0,z=new i.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return l;12===(n=t.state).mode&&(n.mode=13),p=t.next_out,d=t.output,g=t.avail_out,h=t.next_in,u=t.input,f=t.avail_in,m=n.hold,v=n.bits,x=f,w=g,N=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(2&n.wrap&&35615===m){z[n.check=0]=255&m,z[1]=m>>>8&255,n.check=s(n.check,z,2,0),v=m=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&m)<<8)+(m>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&m)){t.msg="unknown compression method",n.mode=30;break}if(v-=4,T=8+(15&(m>>>=4)),0===n.wbits)n.wbits=T;else if(T>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<T,t.adler=n.check=1,n.mode=512&m?10:12,v=m=0;break;case 2:for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(n.flags=m,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=m>>8&1),512&n.flags&&(z[0]=255&m,z[1]=m>>>8&255,n.check=s(n.check,z,2,0)),v=m=0,n.mode=3;case 3:for(;v<32;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.head&&(n.head.time=m),512&n.flags&&(z[0]=255&m,z[1]=m>>>8&255,z[2]=m>>>16&255,z[3]=m>>>24&255,n.check=s(n.check,z,4,0)),v=m=0,n.mode=4;case 4:for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.head&&(n.head.xflags=255&m,n.head.os=m>>8),512&n.flags&&(z[0]=255&m,z[1]=m>>>8&255,n.check=s(n.check,z,2,0)),v=m=0,n.mode=5;case 5:if(1024&n.flags){for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.length=m,n.head&&(n.head.extra_len=m),512&n.flags&&(z[0]=255&m,z[1]=m>>>8&255,n.check=s(n.check,z,2,0)),v=m=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(f<(A=n.length)&&(A=f),A&&(n.head&&(T=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),i.arraySet(n.head.extra,u,h,A,T)),512&n.flags&&(n.check=s(n.check,u,A,h)),f-=A,h+=A,n.length-=A),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===f)break t;for(A=0;T=u[h+A++],n.head&&T&&n.length<65536&&(n.head.name+=String.fromCharCode(T)),T&&A<f;);if(512&n.flags&&(n.check=s(n.check,u,A,h)),f-=A,h+=A,T)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===f)break t;for(A=0;T=u[h+A++],n.head&&T&&n.length<65536&&(n.head.comment+=String.fromCharCode(T)),T&&A<f;);if(512&n.flags&&(n.check=s(n.check,u,A,h)),f-=A,h+=A,T)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(m!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}v=m=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;v<32;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}t.adler=n.check=c(m),v=m=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=p,t.avail_out=g,t.next_in=h,t.avail_in=f,n.hold=m,n.bits=v,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){m>>>=7&v,v-=7&v,n.mode=27;break}for(;v<3;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}switch(n.last=1&m,v-=1,3&(m>>>=1)){case 0:n.mode=14;break;case 1:if(y(n),n.mode=20,6!==e)break;m>>>=2,v-=2;break t;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}m>>>=2,v-=2;break;case 14:for(m>>>=7&v,v-=7&v;v<32;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if((65535&m)!=(m>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&m,v=m=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(A=n.length){if(f<A&&(A=f),g<A&&(A=g),0===A)break t;i.arraySet(d,u,h,A,p),f-=A,h+=A,g-=A,p+=A,n.length-=A;break}n.mode=12;break;case 17:for(;v<14;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(n.nlen=257+(31&m),m>>>=5,v-=5,n.ndist=1+(31&m),m>>>=5,v-=5,n.ncode=4+(15&m),m>>>=4,v-=4,286<n.nlen||30<n.ndist){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;v<3;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.lens[F[n.have++]]=7&m,m>>>=3,v-=3}for(;n.have<19;)n.lens[F[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,O={bits:n.lenbits},N=a(0,n.lens,0,19,n.lencode,0,n.work,O),n.lenbits=O.bits,N){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;k=(E=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,S=65535&E,!((M=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(S<16)m>>>=M,v-=M,n.lens[n.have++]=S;else{if(16===S){for(j=M+2;v<j;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(m>>>=M,v-=M,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}T=n.lens[n.have-1],A=3+(3&m),m>>>=2,v-=2}else if(17===S){for(j=M+3;v<j;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}v-=M,T=0,A=3+(7&(m>>>=M)),m>>>=3,v-=3}else{for(j=M+7;v<j;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}v-=M,T=0,A=11+(127&(m>>>=M)),m>>>=7,v-=7}if(n.have+A>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;A--;)n.lens[n.have++]=T}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,O={bits:n.lenbits},N=a(1,n.lens,0,n.nlen,n.lencode,0,n.work,O),n.lenbits=O.bits,N){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,O={bits:n.distbits},N=a(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,O),n.distbits=O.bits,N){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(6<=f&&258<=g){t.next_out=p,t.avail_out=g,t.next_in=h,t.avail_in=f,n.hold=m,n.bits=v,o(t,w),p=t.next_out,d=t.output,g=t.avail_out,h=t.next_in,u=t.input,f=t.avail_in,m=n.hold,v=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;k=(E=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,S=65535&E,!((M=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(k&&!(240&k)){for(I=M,L=k,D=S;k=(E=n.lencode[D+((m&(1<<I+L)-1)>>I)])>>>16&255,S=65535&E,!(I+(M=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}m>>>=I,v-=I,n.back+=I}if(m>>>=M,v-=M,n.back+=M,n.length=S,0===k){n.mode=26;break}if(32&k){n.back=-1,n.mode=12;break}if(64&k){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&k,n.mode=22;case 22:if(n.extra){for(j=n.extra;v<j;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.length+=m&(1<<n.extra)-1,m>>>=n.extra,v-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;k=(E=n.distcode[m&(1<<n.distbits)-1])>>>16&255,S=65535&E,!((M=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(!(240&k)){for(I=M,L=k,D=S;k=(E=n.distcode[D+((m&(1<<I+L)-1)>>I)])>>>16&255,S=65535&E,!(I+(M=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}m>>>=I,v-=I,n.back+=I}if(m>>>=M,v-=M,n.back+=M,64&k){t.msg="invalid distance code",n.mode=30;break}n.offset=S,n.extra=15&k,n.mode=24;case 24:if(n.extra){for(j=n.extra;v<j;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.offset+=m&(1<<n.extra)-1,m>>>=n.extra,v-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===g)break t;if(A=w-g,n.offset>A){if((A=n.offset-A)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}_=A>n.wnext?(A-=n.wnext,n.wsize-A):n.wnext-A,A>n.length&&(A=n.length),C=n.window}else C=d,_=p-n.offset,A=n.length;for(g<A&&(A=g),g-=A,n.length-=A;d[p++]=C[_++],--A;);0===n.length&&(n.mode=21);break;case 26:if(0===g)break t;d[p++]=n.length,g--,n.mode=21;break;case 27:if(n.wrap){for(;v<32;){if(0===f)break t;f--,m|=u[h++]<<v,v+=8}if(w-=g,t.total_out+=w,n.total+=w,w&&(t.adler=n.check=n.flags?s(n.check,d,w,p-w):r(n.check,d,w,p-w)),w=g,(n.flags?m:c(m))!==n.check){t.msg="incorrect data check",n.mode=30;break}v=m=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;v<32;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(m!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}v=m=0}n.mode=29;case 29:N=1;break t;case 30:N=-3;break t;case 31:return-4;default:return l}return t.next_out=p,t.avail_out=g,t.next_in=h,t.avail_in=f,n.hold=m,n.bits=v,(n.wsize||w!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&b(t,t.output,t.next_out,w-t.avail_out)?(n.mode=31,-4):(x-=t.avail_in,w-=t.avail_out,t.total_in+=x,t.total_out+=w,n.total+=w,n.wrap&&w&&(t.adler=n.check=n.flags?s(n.check,d,w,t.next_out-w):r(n.check,d,w,t.next_out-w)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==x&&0===w||4===e)&&0===N&&(N=-5),N)},n.inflateEnd=function(t){if(!t||!t.state)return l;var e=t.state;return e.window&&(e.window=null),t.state=null,0},n.inflateGetHeader=function(t,e){var n;return t&&t.state&&2&(n=t.state).wrap?((n.head=e).done=!1,0):l},n.inflateSetDictionary=function(t,e){var n,i=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?l:11===n.mode&&r(1,e,i,0)!==n.check?-3:b(t,e,i,i)?(n.mode=31,-4):(n.havedict=1,0):l},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,n){"use strict";var i=t("../utils/common"),r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,n,l,c,u,d,h){var p,f,g,m,v,y,b,x,w,A=h.bits,_=0,C=0,M=0,k=0,S=0,I=0,L=0,D=0,T=0,N=0,O=null,j=0,E=new i.Buf16(16),z=new i.Buf16(16),F=null,P=0;for(_=0;_<=15;_++)E[_]=0;for(C=0;C<l;C++)E[e[n+C]]++;for(S=A,k=15;1<=k&&0===E[k];k--);if(k<S&&(S=k),0===k)return c[u++]=20971520,c[u++]=20971520,h.bits=1,0;for(M=1;M<k&&0===E[M];M++);for(S<M&&(S=M),_=D=1;_<=15;_++)if(D<<=1,(D-=E[_])<0)return-1;if(0<D&&(0===t||1!==k))return-1;for(z[1]=0,_=1;_<15;_++)z[_+1]=z[_]+E[_];for(C=0;C<l;C++)0!==e[n+C]&&(d[z[e[n+C]]++]=C);if(y=0===t?(O=F=d,19):1===t?(O=r,j-=257,F=s,P-=257,256):(O=o,F=a,-1),_=M,v=u,L=C=N=0,g=-1,m=(T=1<<(I=S))-1,1===t&&852<T||2===t&&592<T)return 1;for(;;){for(b=_-L,w=d[C]<y?(x=0,d[C]):d[C]>y?(x=F[P+d[C]],O[j+d[C]]):(x=96,0),p=1<<_-L,M=f=1<<I;c[v+(N>>L)+(f-=p)]=b<<24|x<<16|w,0!==f;);for(p=1<<_-1;N&p;)p>>=1;if(0!==p?(N&=p-1,N+=p):N=0,C++,0==--E[_]){if(_===k)break;_=e[n+d[C]]}if(S<_&&(N&m)!==g){for(0===L&&(L=S),v+=M,D=1<<(I=_-L);I+L<k&&!((D-=E[I+L])<=0);)I++,D<<=1;if(T+=1<<I,1===t&&852<T||2===t&&592<T)return 1;c[g=N&m]=S<<24|I<<16|v-u}}return 0!==N&&(c[v+N]=_-L<<24|64<<16),h.bits=S,0}},{"../utils/common":41}],51:[function(t,e,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,n){"use strict";var i=t("../utils/common");function r(t){for(var e=t.length;0<=--e;)t[e]=0}var s=256,o=286,a=30,l=15,c=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],u=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],h=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=new Array(576);r(p);var f=new Array(60);r(f);var g=new Array(512);r(g);var m=new Array(256);r(m);var v=new Array(29);r(v);var y,b,x,w=new Array(a);function A(t,e,n,i,r){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=t&&t.length}function _(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function C(t){return t<256?g[t]:g[256+(t>>>7)]}function M(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function k(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,M(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function S(t,e,n){k(t,n[2*e],n[2*e+1])}function I(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}function L(t,e,n){var i,r,s=new Array(16),o=0;for(i=1;i<=l;i++)s[i]=o=o+n[i-1]<<1;for(r=0;r<=e;r++){var a=t[2*r+1];0!==a&&(t[2*r]=I(s[a]++,a))}}function D(t){var e;for(e=0;e<o;e++)t.dyn_ltree[2*e]=0;for(e=0;e<a;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function T(t){8<t.bi_valid?M(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function N(t,e,n,i){var r=2*e,s=2*n;return t[r]<t[s]||t[r]===t[s]&&i[e]<=i[n]}function O(t,e,n){for(var i=t.heap[n],r=n<<1;r<=t.heap_len&&(r<t.heap_len&&N(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!N(e,i,t.heap[r],t.depth));)t.heap[n]=t.heap[r],n=r,r<<=1;t.heap[n]=i}function j(t,e,n){var i,r,o,a,l=0;if(0!==t.last_lit)for(;i=t.pending_buf[t.d_buf+2*l]<<8|t.pending_buf[t.d_buf+2*l+1],r=t.pending_buf[t.l_buf+l],l++,0===i?S(t,r,e):(S(t,(o=m[r])+s+1,e),0!==(a=c[o])&&k(t,r-=v[o],a),S(t,o=C(--i),n),0!==(a=u[o])&&k(t,i-=w[o],a)),l<t.last_lit;);S(t,256,e)}function E(t,e){var n,i,r,s=e.dyn_tree,o=e.stat_desc.static_tree,a=e.stat_desc.has_stree,c=e.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<c;n++)0!==s[2*n]?(t.heap[++t.heap_len]=u=n,t.depth[n]=0):s[2*n+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[r]=0,t.opt_len--,a&&(t.static_len-=o[2*r+1]);for(e.max_code=u,n=t.heap_len>>1;1<=n;n--)O(t,s,n);for(r=c;n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],O(t,s,1),i=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=i,s[2*r]=s[2*n]+s[2*i],t.depth[r]=(t.depth[n]>=t.depth[i]?t.depth[n]:t.depth[i])+1,s[2*n+1]=s[2*i+1]=r,t.heap[1]=r++,O(t,s,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,i,r,s,o,a,c=e.dyn_tree,u=e.max_code,d=e.stat_desc.static_tree,h=e.stat_desc.has_stree,p=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,g=e.stat_desc.max_length,m=0;for(s=0;s<=l;s++)t.bl_count[s]=0;for(c[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)g<(s=c[2*c[2*(i=t.heap[n])+1]+1]+1)&&(s=g,m++),c[2*i+1]=s,u<i||(t.bl_count[s]++,o=0,f<=i&&(o=p[i-f]),a=c[2*i],t.opt_len+=a*(s+o),h&&(t.static_len+=a*(d[2*i+1]+o)));if(0!==m){do{for(s=g-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[g]--,m-=2}while(0<m);for(s=g;0!==s;s--)for(i=t.bl_count[s];0!==i;)u<(r=t.heap[--n])||(c[2*r+1]!==s&&(t.opt_len+=(s-c[2*r+1])*c[2*r],c[2*r+1]=s),i--)}}(t,e),L(s,u,t.bl_count)}function z(t,e,n){var i,r,s=-1,o=e[1],a=0,l=7,c=4;for(0===o&&(l=138,c=3),e[2*(n+1)+1]=65535,i=0;i<=n;i++)r=o,o=e[2*(i+1)+1],++a<l&&r===o||(a<c?t.bl_tree[2*r]+=a:0!==r?(r!==s&&t.bl_tree[2*r]++,t.bl_tree[32]++):a<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=r,c=(a=0)===o?(l=138,3):r===o?(l=6,3):(l=7,4))}function F(t,e,n){var i,r,s=-1,o=e[1],a=0,l=7,c=4;for(0===o&&(l=138,c=3),i=0;i<=n;i++)if(r=o,o=e[2*(i+1)+1],!(++a<l&&r===o)){if(a<c)for(;S(t,r,t.bl_tree),0!=--a;);else 0!==r?(r!==s&&(S(t,r,t.bl_tree),a--),S(t,16,t.bl_tree),k(t,a-3,2)):a<=10?(S(t,17,t.bl_tree),k(t,a-3,3)):(S(t,18,t.bl_tree),k(t,a-11,7));s=r,c=(a=0)===o?(l=138,3):r===o?(l=6,3):(l=7,4)}}r(w);var P=!1;function R(t,e,n,r){k(t,0+(r?1:0),3),function(t,e,n){T(t),M(t,n),M(t,~n),i.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n)}n._tr_init=function(t){P||(function(){var t,e,n,i,r,s=new Array(16);for(i=n=0;i<28;i++)for(v[i]=n,t=0;t<1<<c[i];t++)m[n++]=i;for(m[n-1]=i,i=r=0;i<16;i++)for(w[i]=r,t=0;t<1<<u[i];t++)g[r++]=i;for(r>>=7;i<a;i++)for(w[i]=r<<7,t=0;t<1<<u[i]-7;t++)g[256+r++]=i;for(e=0;e<=l;e++)s[e]=0;for(t=0;t<=143;)p[2*t+1]=8,t++,s[8]++;for(;t<=255;)p[2*t+1]=9,t++,s[9]++;for(;t<=279;)p[2*t+1]=7,t++,s[7]++;for(;t<=287;)p[2*t+1]=8,t++,s[8]++;for(L(p,287,s),t=0;t<a;t++)f[2*t+1]=5,f[2*t]=I(t,5);y=new A(p,c,257,o,l),b=new A(f,u,0,a,l),x=new A(new Array(0),d,0,19,7)}(),P=!0),t.l_desc=new _(t.dyn_ltree,y),t.d_desc=new _(t.dyn_dtree,b),t.bl_desc=new _(t.bl_tree,x),t.bi_buf=0,t.bi_valid=0,D(t)},n._tr_stored_block=R,n._tr_flush_block=function(t,e,n,i){var r,o,a=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<s;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),E(t,t.l_desc),E(t,t.d_desc),a=function(t){var e;for(z(t,t.dyn_ltree,t.l_desc.max_code),z(t,t.dyn_dtree,t.d_desc.max_code),E(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*h[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=r&&(r=o)):r=o=n+5,n+4<=r&&-1!==e?R(t,e,n,i):4===t.strategy||o===r?(k(t,2+(i?1:0),3),j(t,p,f)):(k(t,4+(i?1:0),3),function(t,e,n,i){var r;for(k(t,e-257,5),k(t,n-1,5),k(t,i-4,4),r=0;r<i;r++)k(t,t.bl_tree[2*h[r]+1],3);F(t,t.dyn_ltree,e-1),F(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),j(t,t.dyn_ltree,t.dyn_dtree)),D(t),i&&T(t)},n._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(m[n]+s+1)]++,t.dyn_dtree[2*C(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){k(t,2,3),S(t,256,p),function(t){16===t.bi_valid?(M(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,e,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,i){(function(t){!function(t){"use strict";if(!t.setImmediate){var e,n,i,r,s=1,o={},a=!1,l=t.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(t);c=c&&c.setTimeout?c:t,e="[object process]"==={}.toString.call(t.process)?function(t){process.nextTick((function(){d(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(r="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",h,!1):t.attachEvent("onmessage",h),function(e){t.postMessage(r+e,"*")}):t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){d(t.data)},function(t){i.port2.postMessage(t)}):l&&"onreadystatechange"in l.createElement("script")?(n=l.documentElement,function(t){var e=l.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,n.removeChild(e),e=null},n.appendChild(e)}):function(t){setTimeout(d,0,t)},c.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var n=new Array(arguments.length-1),i=0;i<n.length;i++)n[i]=arguments[i+1];var r={callback:t,args:n};return o[s]=r,e(s),s++},c.clearImmediate=u}function u(t){delete o[t]}function d(t){if(a)setTimeout(d,0,t);else{var e=o[t];if(e){a=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(undefined,n)}}(e)}finally{u(t),a=!1}}}}function h(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(r)&&d(+e.data.slice(r.length))}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)},617:(t,e,n)=>{var i,r;!function(){var s,o,a,l,c,u,d,h,p,f,g,m,v,y,b,x,w,A,_,C,M,k,S,I,L,D,T,N,O,j,E=function(t){var e=new E.Builder;return e.pipeline.add(E.trimmer,E.stopWordFilter,E.stemmer),e.searchPipeline.add(E.stemmer),t.call(e,e),e.build()};E.version="2.3.9",E.utils={},E.utils.warn=(s=this,function(t){s.console&&console.warn&&console.warn(t)}),E.utils.asString=function(t){return null==t?"":t.toString()},E.utils.clone=function(t){if(null==t)return t;for(var e=Object.create(null),n=Object.keys(t),i=0;i<n.length;i++){var r=n[i],s=t[r];if(Array.isArray(s))e[r]=s.slice();else{if("string"!=typeof s&&"number"!=typeof s&&"boolean"!=typeof s)throw new TypeError("clone is not deep and does not support nested objects");e[r]=s}}return e},E.FieldRef=function(t,e,n){this.docRef=t,this.fieldName=e,this._stringValue=n},E.FieldRef.joiner="/",E.FieldRef.fromString=function(t){var e=t.indexOf(E.FieldRef.joiner);if(-1===e)throw"malformed field ref string";var n=t.slice(0,e),i=t.slice(e+1);return new E.FieldRef(i,n,t)},E.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+E.FieldRef.joiner+this.docRef),this._stringValue},E.Set=function(t){if(this.elements=Object.create(null),t){this.length=t.length;for(var e=0;e<this.length;e++)this.elements[t[e]]=!0}else this.length=0},E.Set.complete={intersect:function(t){return t},union:function(){return this},contains:function(){return!0}},E.Set.empty={intersect:function(){return this},union:function(t){return t},contains:function(){return!1}},E.Set.prototype.contains=function(t){return!!this.elements[t]},E.Set.prototype.intersect=function(t){var e,n,i,r=[];if(t===E.Set.complete)return this;if(t===E.Set.empty)return t;this.length<t.length?(e=this,n=t):(e=t,n=this),i=Object.keys(e.elements);for(var s=0;s<i.length;s++){var o=i[s];o in n.elements&&r.push(o)}return new E.Set(r)},E.Set.prototype.union=function(t){return t===E.Set.complete?E.Set.complete:t===E.Set.empty?this:new E.Set(Object.keys(this.elements).concat(Object.keys(t.elements)))},E.idf=function(t,e){var n=0;for(var i in t)"_index"!=i&&(n+=Object.keys(t[i]).length);var r=(e-n+.5)/(n+.5);return Math.log(1+Math.abs(r))},E.Token=function(t,e){this.str=t||"",this.metadata=e||{}},E.Token.prototype.toString=function(){return this.str},E.Token.prototype.update=function(t){return this.str=t(this.str,this.metadata),this},E.Token.prototype.clone=function(t){return t=t||function(t){return t},new E.Token(t(this.str,this.metadata),this.metadata)},E.tokenizer=function(t,e){if(null==t||null==t)return[];if(Array.isArray(t))return t.map((function(t){return new E.Token(E.utils.asString(t).toLowerCase(),E.utils.clone(e))}));for(var n=t.toString().toLowerCase(),i=n.length,r=[],s=0,o=0;s<=i;s++){var a=s-o;if(n.charAt(s).match(E.tokenizer.separator)||s==i){if(a>0){var l=E.utils.clone(e)||{};l.position=[o,a],l.index=r.length,r.push(new E.Token(n.slice(o,s),l))}o=s+1}}return r},E.tokenizer.separator=/[\s\-]+/,E.Pipeline=function(){this._stack=[]},E.Pipeline.registeredFunctions=Object.create(null),E.Pipeline.registerFunction=function(t,e){e in this.registeredFunctions&&E.utils.warn("Overwriting existing registered function: "+e),t.label=e,E.Pipeline.registeredFunctions[t.label]=t},E.Pipeline.warnIfFunctionNotRegistered=function(t){t.label&&t.label in this.registeredFunctions||E.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",t)},E.Pipeline.load=function(t){var e=new E.Pipeline;return t.forEach((function(t){var n=E.Pipeline.registeredFunctions[t];if(!n)throw new Error("Cannot load unregistered function: "+t);e.add(n)})),e},E.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(t){E.Pipeline.warnIfFunctionNotRegistered(t),this._stack.push(t)}),this)},E.Pipeline.prototype.after=function(t,e){E.Pipeline.warnIfFunctionNotRegistered(e);var n=this._stack.indexOf(t);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,e)},E.Pipeline.prototype.before=function(t,e){E.Pipeline.warnIfFunctionNotRegistered(e);var n=this._stack.indexOf(t);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,e)},E.Pipeline.prototype.remove=function(t){var e=this._stack.indexOf(t);-1!=e&&this._stack.splice(e,1)},E.Pipeline.prototype.run=function(t){for(var e=this._stack.length,n=0;n<e;n++){for(var i=this._stack[n],r=[],s=0;s<t.length;s++){var o=i(t[s],s,t);if(null!=o&&""!==o)if(Array.isArray(o))for(var a=0;a<o.length;a++)r.push(o[a]);else r.push(o)}t=r}return t},E.Pipeline.prototype.runString=function(t,e){var n=new E.Token(t,e);return this.run([n]).map((function(t){return t.toString()}))},E.Pipeline.prototype.reset=function(){this._stack=[]},E.Pipeline.prototype.toJSON=function(){return this._stack.map((function(t){return E.Pipeline.warnIfFunctionNotRegistered(t),t.label}))},E.Vector=function(t){this._magnitude=0,this.elements=t||[]},E.Vector.prototype.positionForIndex=function(t){if(0==this.elements.length)return 0;for(var e=0,n=this.elements.length/2,i=n-e,r=Math.floor(i/2),s=this.elements[2*r];i>1&&(s<t&&(e=r),s>t&&(n=r),s!=t);)i=n-e,r=e+Math.floor(i/2),s=this.elements[2*r];return s==t||s>t?2*r:s<t?2*(r+1):void 0},E.Vector.prototype.insert=function(t,e){this.upsert(t,e,(function(){throw"duplicate index"}))},E.Vector.prototype.upsert=function(t,e,n){this._magnitude=0;var i=this.positionForIndex(t);this.elements[i]==t?this.elements[i+1]=n(this.elements[i+1],e):this.elements.splice(i,0,t,e)},E.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var t=0,e=this.elements.length,n=1;n<e;n+=2){var i=this.elements[n];t+=i*i}return this._magnitude=Math.sqrt(t)},E.Vector.prototype.dot=function(t){for(var e=0,n=this.elements,i=t.elements,r=n.length,s=i.length,o=0,a=0,l=0,c=0;l<r&&c<s;)(o=n[l])<(a=i[c])?l+=2:o>a?c+=2:o==a&&(e+=n[l+1]*i[c+1],l+=2,c+=2);return e},E.Vector.prototype.similarity=function(t){return this.dot(t)/this.magnitude()||0},E.Vector.prototype.toArray=function(){for(var t=new Array(this.elements.length/2),e=1,n=0;e<this.elements.length;e+=2,n++)t[n]=this.elements[e];return t},E.Vector.prototype.toJSON=function(){return this.elements},E.stemmer=(o={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},a={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},d="^("+(c="[^aeiou][^aeiouy]*")+")?"+(u=(l="[aeiouy]")+"[aeiou]*")+c+"("+u+")?$",h="^("+c+")?"+u+c+u+c,p="^("+c+")?"+l,f=new RegExp("^("+c+")?"+u+c),g=new RegExp(h),m=new RegExp(d),v=new RegExp(p),y=/^(.+?)(ss|i)es$/,b=/^(.+?)([^s])s$/,x=/^(.+?)eed$/,w=/^(.+?)(ed|ing)$/,A=/.$/,_=/(at|bl|iz)$/,C=new RegExp("([^aeiouylsz])\\1$"),M=new RegExp("^"+c+l+"[^aeiouwxy]$"),k=/^(.+?[^aeiou])y$/,S=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,I=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,L=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,D=/^(.+?)(s|t)(ion)$/,T=/^(.+?)e$/,N=/ll$/,O=new RegExp("^"+c+l+"[^aeiouwxy]$"),j=function(t){var e,n,i,r,s,l,c;if(t.length<3)return t;if("y"==(i=t.substr(0,1))&&(t=i.toUpperCase()+t.substr(1)),s=b,(r=y).test(t)?t=t.replace(r,"$1$2"):s.test(t)&&(t=t.replace(s,"$1$2")),s=w,(r=x).test(t)){var u=r.exec(t);(r=f).test(u[1])&&(r=A,t=t.replace(r,""))}else s.test(t)&&(e=(u=s.exec(t))[1],(s=v).test(e)&&(l=C,c=M,(s=_).test(t=e)?t+="e":l.test(t)?(r=A,t=t.replace(r,"")):c.test(t)&&(t+="e")));return(r=k).test(t)&&(t=(e=(u=r.exec(t))[1])+"i"),(r=S).test(t)&&(e=(u=r.exec(t))[1],n=u[2],(r=f).test(e)&&(t=e+o[n])),(r=I).test(t)&&(e=(u=r.exec(t))[1],n=u[2],(r=f).test(e)&&(t=e+a[n])),s=D,(r=L).test(t)?(e=(u=r.exec(t))[1],(r=g).test(e)&&(t=e)):s.test(t)&&(e=(u=s.exec(t))[1]+u[2],(s=g).test(e)&&(t=e)),(r=T).test(t)&&(e=(u=r.exec(t))[1],s=m,l=O,((r=g).test(e)||s.test(e)&&!l.test(e))&&(t=e)),s=g,(r=N).test(t)&&s.test(t)&&(r=A,t=t.replace(r,"")),"y"==i&&(t=i.toLowerCase()+t.substr(1)),t},function(t){return t.update(j)}),E.Pipeline.registerFunction(E.stemmer,"stemmer"),E.generateStopWordFilter=function(t){var e=t.reduce((function(t,e){return t[e]=e,t}),{});return function(t){if(t&&e[t.toString()]!==t.toString())return t}},E.stopWordFilter=E.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),E.Pipeline.registerFunction(E.stopWordFilter,"stopWordFilter"),E.trimmer=function(t){return t.update((function(t){return t.replace(/^\W+/,"").replace(/\W+$/,"")}))},E.Pipeline.registerFunction(E.trimmer,"trimmer"),E.TokenSet=function(){this.final=!1,this.edges={},this.id=E.TokenSet._nextId,E.TokenSet._nextId+=1},E.TokenSet._nextId=1,E.TokenSet.fromArray=function(t){for(var e=new E.TokenSet.Builder,n=0,i=t.length;n<i;n++)e.insert(t[n]);return e.finish(),e.root},E.TokenSet.fromClause=function(t){return"editDistance"in t?E.TokenSet.fromFuzzyString(t.term,t.editDistance):E.TokenSet.fromString(t.term)},E.TokenSet.fromFuzzyString=function(t,e){for(var n=new E.TokenSet,i=[{node:n,editsRemaining:e,str:t}];i.length;){var r=i.pop();if(r.str.length>0){var s,o=r.str.charAt(0);o in r.node.edges?s=r.node.edges[o]:(s=new E.TokenSet,r.node.edges[o]=s),1==r.str.length&&(s.final=!0),i.push({node:s,editsRemaining:r.editsRemaining,str:r.str.slice(1)})}if(0!=r.editsRemaining){if("*"in r.node.edges)var a=r.node.edges["*"];else a=new E.TokenSet,r.node.edges["*"]=a;if(0==r.str.length&&(a.final=!0),i.push({node:a,editsRemaining:r.editsRemaining-1,str:r.str}),r.str.length>1&&i.push({node:r.node,editsRemaining:r.editsRemaining-1,str:r.str.slice(1)}),1==r.str.length&&(r.node.final=!0),r.str.length>=1){if("*"in r.node.edges)var l=r.node.edges["*"];else l=new E.TokenSet,r.node.edges["*"]=l;1==r.str.length&&(l.final=!0),i.push({node:l,editsRemaining:r.editsRemaining-1,str:r.str.slice(1)})}if(r.str.length>1){var c,u=r.str.charAt(0),d=r.str.charAt(1);d in r.node.edges?c=r.node.edges[d]:(c=new E.TokenSet,r.node.edges[d]=c),1==r.str.length&&(c.final=!0),i.push({node:c,editsRemaining:r.editsRemaining-1,str:u+r.str.slice(2)})}}}return n},E.TokenSet.fromString=function(t){for(var e=new E.TokenSet,n=e,i=0,r=t.length;i<r;i++){var s=t[i],o=i==r-1;if("*"==s)e.edges[s]=e,e.final=o;else{var a=new E.TokenSet;a.final=o,e.edges[s]=a,e=a}}return n},E.TokenSet.prototype.toArray=function(){for(var t=[],e=[{prefix:"",node:this}];e.length;){var n=e.pop(),i=Object.keys(n.node.edges),r=i.length;n.node.final&&(n.prefix.charAt(0),t.push(n.prefix));for(var s=0;s<r;s++){var o=i[s];e.push({prefix:n.prefix.concat(o),node:n.node.edges[o]})}}return t},E.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var t=this.final?"1":"0",e=Object.keys(this.edges).sort(),n=e.length,i=0;i<n;i++){var r=e[i];t=t+r+this.edges[r].id}return t},E.TokenSet.prototype.intersect=function(t){for(var e=new E.TokenSet,n=void 0,i=[{qNode:t,output:e,node:this}];i.length;){n=i.pop();for(var r=Object.keys(n.qNode.edges),s=r.length,o=Object.keys(n.node.edges),a=o.length,l=0;l<s;l++)for(var c=r[l],u=0;u<a;u++){var d=o[u];if(d==c||"*"==c){var h=n.node.edges[d],p=n.qNode.edges[c],f=h.final&&p.final,g=void 0;d in n.output.edges?(g=n.output.edges[d]).final=g.final||f:((g=new E.TokenSet).final=f,n.output.edges[d]=g),i.push({qNode:p,output:g,node:h})}}}return e},E.TokenSet.Builder=function(){this.previousWord="",this.root=new E.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},E.TokenSet.Builder.prototype.insert=function(t){var e,n=0;if(t<this.previousWord)throw new Error("Out of order word insertion");for(var i=0;i<t.length&&i<this.previousWord.length&&t[i]==this.previousWord[i];i++)n++;for(this.minimize(n),e=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child,i=n;i<t.length;i++){var r=new E.TokenSet,s=t[i];e.edges[s]=r,this.uncheckedNodes.push({parent:e,char:s,child:r}),e=r}e.final=!0,this.previousWord=t},E.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},E.TokenSet.Builder.prototype.minimize=function(t){for(var e=this.uncheckedNodes.length-1;e>=t;e--){var n=this.uncheckedNodes[e],i=n.child.toString();i in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[i]:(n.child._str=i,this.minimizedNodes[i]=n.child),this.uncheckedNodes.pop()}},E.Index=function(t){this.invertedIndex=t.invertedIndex,this.fieldVectors=t.fieldVectors,this.tokenSet=t.tokenSet,this.fields=t.fields,this.pipeline=t.pipeline},E.Index.prototype.search=function(t){return this.query((function(e){new E.QueryParser(t,e).parse()}))},E.Index.prototype.query=function(t){for(var e=new E.Query(this.fields),n=Object.create(null),i=Object.create(null),r=Object.create(null),s=Object.create(null),o=Object.create(null),a=0;a<this.fields.length;a++)i[this.fields[a]]=new E.Vector;for(t.call(e,e),a=0;a<e.clauses.length;a++){var l,c=e.clauses[a],u=E.Set.empty;l=c.usePipeline?this.pipeline.runString(c.term,{fields:c.fields}):[c.term];for(var d=0;d<l.length;d++){var h=l[d];c.term=h;var p=E.TokenSet.fromClause(c),f=this.tokenSet.intersect(p).toArray();if(0===f.length&&c.presence===E.Query.presence.REQUIRED){for(var g=0;g<c.fields.length;g++)s[T=c.fields[g]]=E.Set.empty;break}for(var m=0;m<f.length;m++){var v=f[m],y=this.invertedIndex[v],b=y._index;for(g=0;g<c.fields.length;g++){var x=y[T=c.fields[g]],w=Object.keys(x),A=v+"/"+T,_=new E.Set(w);if(c.presence==E.Query.presence.REQUIRED&&(u=u.union(_),void 0===s[T]&&(s[T]=E.Set.complete)),c.presence!=E.Query.presence.PROHIBITED){if(i[T].upsert(b,c.boost,(function(t,e){return t+e})),!r[A]){for(var C=0;C<w.length;C++){var M,k=w[C],S=new E.FieldRef(k,T),I=x[k];void 0===(M=n[S])?n[S]=new E.MatchData(v,T,I):M.add(v,T,I)}r[A]=!0}}else void 0===o[T]&&(o[T]=E.Set.empty),o[T]=o[T].union(_)}}}if(c.presence===E.Query.presence.REQUIRED)for(g=0;g<c.fields.length;g++)s[T=c.fields[g]]=s[T].intersect(u)}var L=E.Set.complete,D=E.Set.empty;for(a=0;a<this.fields.length;a++){var T;s[T=this.fields[a]]&&(L=L.intersect(s[T])),o[T]&&(D=D.union(o[T]))}var N=Object.keys(n),O=[],j=Object.create(null);if(e.isNegated())for(N=Object.keys(this.fieldVectors),a=0;a<N.length;a++){S=N[a];var z=E.FieldRef.fromString(S);n[S]=new E.MatchData}for(a=0;a<N.length;a++){var F=(z=E.FieldRef.fromString(N[a])).docRef;if(L.contains(F)&&!D.contains(F)){var P,R=this.fieldVectors[z],Y=i[z.fieldName].similarity(R);if(void 0!==(P=j[F]))P.score+=Y,P.matchData.combine(n[z]);else{var U={ref:F,score:Y,matchData:n[z]};j[F]=U,O.push(U)}}}return O.sort((function(t,e){return e.score-t.score}))},E.Index.prototype.toJSON=function(){var t=Object.keys(this.invertedIndex).sort().map((function(t){return[t,this.invertedIndex[t]]}),this),e=Object.keys(this.fieldVectors).map((function(t){return[t,this.fieldVectors[t].toJSON()]}),this);return{version:E.version,fields:this.fields,fieldVectors:e,invertedIndex:t,pipeline:this.pipeline.toJSON()}},E.Index.load=function(t){var e={},n={},i=t.fieldVectors,r=Object.create(null),s=t.invertedIndex,o=new E.TokenSet.Builder,a=E.Pipeline.load(t.pipeline);t.version!=E.version&&E.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+E.version+"' does not match serialized index '"+t.version+"'");for(var l=0;l<i.length;l++){var c=(d=i[l])[0],u=d[1];n[c]=new E.Vector(u)}for(l=0;l<s.length;l++){var d,h=(d=s[l])[0],p=d[1];o.insert(h),r[h]=p}return o.finish(),e.fields=t.fields,e.fieldVectors=n,e.invertedIndex=r,e.tokenSet=o.root,e.pipeline=a,new E.Index(e)},E.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=E.tokenizer,this.pipeline=new E.Pipeline,this.searchPipeline=new E.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},E.Builder.prototype.ref=function(t){this._ref=t},E.Builder.prototype.field=function(t,e){if(/\//.test(t))throw new RangeError("Field '"+t+"' contains illegal character '/'");this._fields[t]=e||{}},E.Builder.prototype.b=function(t){this._b=t<0?0:t>1?1:t},E.Builder.prototype.k1=function(t){this._k1=t},E.Builder.prototype.add=function(t,e){var n=t[this._ref],i=Object.keys(this._fields);this._documents[n]=e||{},this.documentCount+=1;for(var r=0;r<i.length;r++){var s=i[r],o=this._fields[s].extractor,a=o?o(t):t[s],l=this.tokenizer(a,{fields:[s]}),c=this.pipeline.run(l),u=new E.FieldRef(n,s),d=Object.create(null);this.fieldTermFrequencies[u]=d,this.fieldLengths[u]=0,this.fieldLengths[u]+=c.length;for(var h=0;h<c.length;h++){var p=c[h];if(null==d[p]&&(d[p]=0),d[p]+=1,null==this.invertedIndex[p]){var f=Object.create(null);f._index=this.termIndex,this.termIndex+=1;for(var g=0;g<i.length;g++)f[i[g]]=Object.create(null);this.invertedIndex[p]=f}null==this.invertedIndex[p][s][n]&&(this.invertedIndex[p][s][n]=Object.create(null));for(var m=0;m<this.metadataWhitelist.length;m++){var v=this.metadataWhitelist[m],y=p.metadata[v];null==this.invertedIndex[p][s][n][v]&&(this.invertedIndex[p][s][n][v]=[]),this.invertedIndex[p][s][n][v].push(y)}}}},E.Builder.prototype.calculateAverageFieldLengths=function(){for(var t=Object.keys(this.fieldLengths),e=t.length,n={},i={},r=0;r<e;r++){var s=E.FieldRef.fromString(t[r]),o=s.fieldName;i[o]||(i[o]=0),i[o]+=1,n[o]||(n[o]=0),n[o]+=this.fieldLengths[s]}var a=Object.keys(this._fields);for(r=0;r<a.length;r++){var l=a[r];n[l]=n[l]/i[l]}this.averageFieldLength=n},E.Builder.prototype.createFieldVectors=function(){for(var t={},e=Object.keys(this.fieldTermFrequencies),n=e.length,i=Object.create(null),r=0;r<n;r++){for(var s=E.FieldRef.fromString(e[r]),o=s.fieldName,a=this.fieldLengths[s],l=new E.Vector,c=this.fieldTermFrequencies[s],u=Object.keys(c),d=u.length,h=this._fields[o].boost||1,p=this._documents[s.docRef].boost||1,f=0;f<d;f++){var g,m,v,y=u[f],b=c[y],x=this.invertedIndex[y]._index;void 0===i[y]?(g=E.idf(this.invertedIndex[y],this.documentCount),i[y]=g):g=i[y],m=g*((this._k1+1)*b)/(this._k1*(1-this._b+this._b*(a/this.averageFieldLength[o]))+b),m*=h,m*=p,v=Math.round(1e3*m)/1e3,l.insert(x,v)}t[s]=l}this.fieldVectors=t},E.Builder.prototype.createTokenSet=function(){this.tokenSet=E.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},E.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new E.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},E.Builder.prototype.use=function(t){var e=Array.prototype.slice.call(arguments,1);e.unshift(this),t.apply(this,e)},E.MatchData=function(t,e,n){for(var i=Object.create(null),r=Object.keys(n||{}),s=0;s<r.length;s++){var o=r[s];i[o]=n[o].slice()}this.metadata=Object.create(null),void 0!==t&&(this.metadata[t]=Object.create(null),this.metadata[t][e]=i)},E.MatchData.prototype.combine=function(t){for(var e=Object.keys(t.metadata),n=0;n<e.length;n++){var i=e[n],r=Object.keys(t.metadata[i]);null==this.metadata[i]&&(this.metadata[i]=Object.create(null));for(var s=0;s<r.length;s++){var o=r[s],a=Object.keys(t.metadata[i][o]);null==this.metadata[i][o]&&(this.metadata[i][o]=Object.create(null));for(var l=0;l<a.length;l++){var c=a[l];null==this.metadata[i][o][c]?this.metadata[i][o][c]=t.metadata[i][o][c]:this.metadata[i][o][c]=this.metadata[i][o][c].concat(t.metadata[i][o][c])}}}},E.MatchData.prototype.add=function(t,e,n){if(!(t in this.metadata))return this.metadata[t]=Object.create(null),void(this.metadata[t][e]=n);if(e in this.metadata[t])for(var i=Object.keys(n),r=0;r<i.length;r++){var s=i[r];s in this.metadata[t][e]?this.metadata[t][e][s]=this.metadata[t][e][s].concat(n[s]):this.metadata[t][e][s]=n[s]}else this.metadata[t][e]=n},E.Query=function(t){this.clauses=[],this.allFields=t},E.Query.wildcard=new String("*"),E.Query.wildcard.NONE=0,E.Query.wildcard.LEADING=1,E.Query.wildcard.TRAILING=2,E.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},E.Query.prototype.clause=function(t){return"fields"in t||(t.fields=this.allFields),"boost"in t||(t.boost=1),"usePipeline"in t||(t.usePipeline=!0),"wildcard"in t||(t.wildcard=E.Query.wildcard.NONE),t.wildcard&E.Query.wildcard.LEADING&&t.term.charAt(0)!=E.Query.wildcard&&(t.term="*"+t.term),t.wildcard&E.Query.wildcard.TRAILING&&t.term.slice(-1)!=E.Query.wildcard&&(t.term=t.term+"*"),"presence"in t||(t.presence=E.Query.presence.OPTIONAL),this.clauses.push(t),this},E.Query.prototype.isNegated=function(){for(var t=0;t<this.clauses.length;t++)if(this.clauses[t].presence!=E.Query.presence.PROHIBITED)return!1;return!0},E.Query.prototype.term=function(t,e){if(Array.isArray(t))return t.forEach((function(t){this.term(t,E.utils.clone(e))}),this),this;var n=e||{};return n.term=t.toString(),this.clause(n),this},E.QueryParseError=function(t,e,n){this.name="QueryParseError",this.message=t,this.start=e,this.end=n},E.QueryParseError.prototype=new Error,E.QueryLexer=function(t){this.lexemes=[],this.str=t,this.length=t.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},E.QueryLexer.prototype.run=function(){for(var t=E.QueryLexer.lexText;t;)t=t(this)},E.QueryLexer.prototype.sliceString=function(){for(var t=[],e=this.start,n=this.pos,i=0;i<this.escapeCharPositions.length;i++)n=this.escapeCharPositions[i],t.push(this.str.slice(e,n)),e=n+1;return t.push(this.str.slice(e,this.pos)),this.escapeCharPositions.length=0,t.join("")},E.QueryLexer.prototype.emit=function(t){this.lexemes.push({type:t,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},E.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},E.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return E.QueryLexer.EOS;var t=this.str.charAt(this.pos);return this.pos+=1,t},E.QueryLexer.prototype.width=function(){return this.pos-this.start},E.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},E.QueryLexer.prototype.backup=function(){this.pos-=1},E.QueryLexer.prototype.acceptDigitRun=function(){var t,e;do{e=(t=this.next()).charCodeAt(0)}while(e>47&&e<58);t!=E.QueryLexer.EOS&&this.backup()},E.QueryLexer.prototype.more=function(){return this.pos<this.length},E.QueryLexer.EOS="EOS",E.QueryLexer.FIELD="FIELD",E.QueryLexer.TERM="TERM",E.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",E.QueryLexer.BOOST="BOOST",E.QueryLexer.PRESENCE="PRESENCE",E.QueryLexer.lexField=function(t){return t.backup(),t.emit(E.QueryLexer.FIELD),t.ignore(),E.QueryLexer.lexText},E.QueryLexer.lexTerm=function(t){if(t.width()>1&&(t.backup(),t.emit(E.QueryLexer.TERM)),t.ignore(),t.more())return E.QueryLexer.lexText},E.QueryLexer.lexEditDistance=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(E.QueryLexer.EDIT_DISTANCE),E.QueryLexer.lexText},E.QueryLexer.lexBoost=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(E.QueryLexer.BOOST),E.QueryLexer.lexText},E.QueryLexer.lexEOS=function(t){t.width()>0&&t.emit(E.QueryLexer.TERM)},E.QueryLexer.termSeparator=E.tokenizer.separator,E.QueryLexer.lexText=function(t){for(;;){var e=t.next();if(e==E.QueryLexer.EOS)return E.QueryLexer.lexEOS;if(92!=e.charCodeAt(0)){if(":"==e)return E.QueryLexer.lexField;if("~"==e)return t.backup(),t.width()>0&&t.emit(E.QueryLexer.TERM),E.QueryLexer.lexEditDistance;if("^"==e)return t.backup(),t.width()>0&&t.emit(E.QueryLexer.TERM),E.QueryLexer.lexBoost;if("+"==e&&1===t.width())return t.emit(E.QueryLexer.PRESENCE),E.QueryLexer.lexText;if("-"==e&&1===t.width())return t.emit(E.QueryLexer.PRESENCE),E.QueryLexer.lexText;if(e.match(E.QueryLexer.termSeparator))return E.QueryLexer.lexTerm}else t.escapeCharacter()}},E.QueryParser=function(t,e){this.lexer=new E.QueryLexer(t),this.query=e,this.currentClause={},this.lexemeIdx=0},E.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var t=E.QueryParser.parseClause;t;)t=t(this);return this.query},E.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},E.QueryParser.prototype.consumeLexeme=function(){var t=this.peekLexeme();return this.lexemeIdx+=1,t},E.QueryParser.prototype.nextClause=function(){var t=this.currentClause;this.query.clause(t),this.currentClause={}},E.QueryParser.parseClause=function(t){var e=t.peekLexeme();if(null!=e)switch(e.type){case E.QueryLexer.PRESENCE:return E.QueryParser.parsePresence;case E.QueryLexer.FIELD:return E.QueryParser.parseField;case E.QueryLexer.TERM:return E.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+e.type;throw e.str.length>=1&&(n+=" with value '"+e.str+"'"),new E.QueryParseError(n,e.start,e.end)}},E.QueryParser.parsePresence=function(t){var e=t.consumeLexeme();if(null!=e){switch(e.str){case"-":t.currentClause.presence=E.Query.presence.PROHIBITED;break;case"+":t.currentClause.presence=E.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+e.str+"'";throw new E.QueryParseError(n,e.start,e.end)}var i=t.peekLexeme();if(null==i)throw n="expecting term or field, found nothing",new E.QueryParseError(n,e.start,e.end);switch(i.type){case E.QueryLexer.FIELD:return E.QueryParser.parseField;case E.QueryLexer.TERM:return E.QueryParser.parseTerm;default:throw n="expecting term or field, found '"+i.type+"'",new E.QueryParseError(n,i.start,i.end)}}},E.QueryParser.parseField=function(t){var e=t.consumeLexeme();if(null!=e){if(-1==t.query.allFields.indexOf(e.str)){var n=t.query.allFields.map((function(t){return"'"+t+"'"})).join(", "),i="unrecognised field '"+e.str+"', possible fields: "+n;throw new E.QueryParseError(i,e.start,e.end)}t.currentClause.fields=[e.str];var r=t.peekLexeme();if(null==r)throw i="expecting term, found nothing",new E.QueryParseError(i,e.start,e.end);if(r.type===E.QueryLexer.TERM)return E.QueryParser.parseTerm;throw i="expecting term, found '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}},E.QueryParser.parseTerm=function(t){var e=t.consumeLexeme();if(null!=e){t.currentClause.term=e.str.toLowerCase(),-1!=e.str.indexOf("*")&&(t.currentClause.usePipeline=!1);var n=t.peekLexeme();if(null!=n)switch(n.type){case E.QueryLexer.TERM:return t.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return t.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return t.nextClause(),E.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+n.type+"'";throw new E.QueryParseError(i,n.start,n.end)}else t.nextClause()}},E.QueryParser.parseEditDistance=function(t){var e=t.consumeLexeme();if(null!=e){var n=parseInt(e.str,10);if(isNaN(n)){var i="edit distance must be numeric";throw new E.QueryParseError(i,e.start,e.end)}t.currentClause.editDistance=n;var r=t.peekLexeme();if(null!=r)switch(r.type){case E.QueryLexer.TERM:return t.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return t.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return t.nextClause(),E.QueryParser.parsePresence;default:throw i="Unexpected lexeme type '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}else t.nextClause()}},E.QueryParser.parseBoost=function(t){var e=t.consumeLexeme();if(null!=e){var n=parseInt(e.str,10);if(isNaN(n)){var i="boost must be numeric";throw new E.QueryParseError(i,e.start,e.end)}t.currentClause.boost=n;var r=t.peekLexeme();if(null!=r)switch(r.type){case E.QueryLexer.TERM:return t.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return t.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return t.nextClause(),E.QueryParser.parsePresence;default:throw i="Unexpected lexeme type '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}else t.nextClause()}},void 0===(r="function"==typeof(i=function(){return E})?i.call(e,n,e,t):i)||(t.exports=r)}()},420:function(t,e,n){(t=n.nmd(t)).exports=function(){"use strict";var e,n;function i(){return e.apply(null,arguments)}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(o(t,e))return!1;return!0}function l(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function d(t,e){var n,i=[],r=t.length;for(n=0;n<r;++n)i.push(e(t[n],n));return i}function h(t,e){for(var n in e)o(e,n)&&(t[n]=e[n]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function p(t,e,n,i){return Oe(t,e,n,i,!0).utc()}function f(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function g(t){var e=null,i=!1,r=t._d&&!isNaN(t._d.getTime());return r&&(e=f(t),i=n.call(e.parsedDateParts,(function(t){return null!=t})),r=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i),t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)),null!=Object.isFrozen&&Object.isFrozen(t)?r:(t._isValid=r,t._isValid)}function m(t){var e=p(NaN);return null!=t?h(f(e),t):f(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){var e,n=Object(this),i=n.length>>>0;for(e=0;e<i;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var v=i.momentProperties=[],y=!1;function b(t,e){var n,i,r,s=v.length;if(l(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),l(e._i)||(t._i=e._i),l(e._f)||(t._f=e._f),l(e._l)||(t._l=e._l),l(e._strict)||(t._strict=e._strict),l(e._tzm)||(t._tzm=e._tzm),l(e._isUTC)||(t._isUTC=e._isUTC),l(e._offset)||(t._offset=e._offset),l(e._pf)||(t._pf=f(e)),l(e._locale)||(t._locale=e._locale),s>0)for(n=0;n<s;n++)l(r=e[i=v[n]])||(t[i]=r);return t}function x(t){b(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,i.updateOffset(this),y=!1)}function w(t){return t instanceof x||null!=t&&null!=t._isAMomentObject}function A(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function _(t,e){var n=!0;return h((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){var r,s,a,l=[],c=arguments.length;for(s=0;s<c;s++){if(r="","object"==typeof arguments[s]){for(a in r+="\n["+s+"] ",arguments[0])o(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[s];l.push(r)}A(t+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var C,M={};function k(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),M[t]||(A(e),M[t]=!0)}function S(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function I(t,e){var n,i=h({},t);for(n in e)o(e,n)&&(s(t[n])&&s(e[n])?(i[n]={},h(i[n],t[n]),h(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)o(t,n)&&!o(e,n)&&s(t[n])&&(i[n]=h({},i[n]));return i}function L(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,C=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)o(t,e)&&n.push(e);return n};function D(t,e,n){var i=""+Math.abs(t),r=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var T=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,N=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,O={},j={};function E(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(j[t]=r),e&&(j[e[0]]=function(){return D(r.apply(this,arguments),e[1],e[2])}),n&&(j[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function z(t,e){return t.isValid()?(e=F(e,t.localeData()),O[e]=O[e]||function(t){var e,n,i,r=t.match(T);for(e=0,n=r.length;e<n;e++)j[r[e]]?r[e]=j[r[e]]:r[e]=(i=r[e]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(e){var i,s="";for(i=0;i<n;i++)s+=S(r[i])?r[i].call(e,t):r[i];return s}}(e),O[e](t)):t.localeData().invalidDate()}function F(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(N.lastIndex=0;n>=0&&N.test(t);)t=t.replace(N,i),N.lastIndex=0,n-=1;return t}var P={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function R(t){return"string"==typeof t?P[t]||P[t.toLowerCase()]:void 0}function Y(t){var e,n,i={};for(n in t)o(t,n)&&(e=R(n))&&(i[e]=t[n]);return i}var U={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var B,W=/\d/,H=/\d\d/,V=/\d{3}/,Z=/\d{4}/,G=/[+-]?\d{6}/,Q=/\d\d?/,J=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,q=/\d{1,3}/,$=/\d{1,4}/,K=/[+-]?\d{1,6}/,tt=/\d+/,et=/[+-]?\d+/,nt=/Z|[+-]\d\d:?\d\d/gi,it=/Z|[+-]\d\d(?::?\d\d)?/gi,rt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,st=/^[1-9]\d?/,ot=/^([1-9]\d|\d)/;function at(t,e,n){B[t]=S(e)?e:function(t,i){return t&&n?n:e}}function lt(t,e){return o(B,t)?B[t](e._strict,e._locale):new RegExp(ct(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,i,r){return e||n||i||r}))))}function ct(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ut(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function dt(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=ut(e)),n}B={};var ht={};function pt(t,e){var n,i,r=e;for("string"==typeof t&&(t=[t]),c(e)&&(r=function(t,n){n[e]=dt(t)}),i=t.length,n=0;n<i;n++)ht[t[n]]=r}function ft(t,e){pt(t,(function(t,n,i,r){i._w=i._w||{},e(t,i._w,i,r)}))}function gt(t,e,n){null!=e&&o(ht,t)&&ht[t](e,n._a,n,t)}function mt(t){return t%4==0&&t%100!=0||t%400==0}var vt=0,yt=1,bt=2,xt=3,wt=4,At=5,_t=6,Ct=7,Mt=8;function kt(t){return mt(t)?366:365}E("Y",0,0,(function(){var t=this.year();return t<=9999?D(t,4):"+"+t})),E(0,["YY",2],0,(function(){return this.year()%100})),E(0,["YYYY",4],0,"year"),E(0,["YYYYY",5],0,"year"),E(0,["YYYYYY",6,!0],0,"year"),at("Y",et),at("YY",Q,H),at("YYYY",$,Z),at("YYYYY",K,G),at("YYYYYY",K,G),pt(["YYYYY","YYYYYY"],vt),pt("YYYY",(function(t,e){e[vt]=2===t.length?i.parseTwoDigitYear(t):dt(t)})),pt("YY",(function(t,e){e[vt]=i.parseTwoDigitYear(t)})),pt("Y",(function(t,e){e[vt]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return dt(t)+(dt(t)>68?1900:2e3)};var St,It=Lt("FullYear",!0);function Lt(t,e){return function(n){return null!=n?(Tt(this,t,n),i.updateOffset(this,e),this):Dt(this,t)}}function Dt(t,e){if(!t.isValid())return NaN;var n=t._d,i=t._isUTC;switch(e){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Tt(t,e,n){var i,r,s,o,a;if(t.isValid()&&!isNaN(n)){switch(i=t._d,r=t._isUTC,e){case"Milliseconds":return void(r?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(r?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(r?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(r?i.setUTCHours(n):i.setHours(n));case"Date":return void(r?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}s=n,o=t.month(),a=29!==(a=t.date())||1!==o||mt(s)?a:28,r?i.setUTCFullYear(s,o,a):i.setFullYear(s,o,a)}}function Nt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n,i=(e%(n=12)+n)%n;return t+=(e-i)/12,1===i?mt(t)?29:28:31-i%7%2}St=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},E("M",["MM",2],"Mo",(function(){return this.month()+1})),E("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),E("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),at("M",Q,st),at("MM",Q,H),at("MMM",(function(t,e){return e.monthsShortRegex(t)})),at("MMMM",(function(t,e){return e.monthsRegex(t)})),pt(["M","MM"],(function(t,e){e[yt]=dt(t)-1})),pt(["MMM","MMMM"],(function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[yt]=r:f(n).invalidMonth=t}));var Ot="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),jt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Et=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,zt=rt,Ft=rt;function Pt(t,e,n){var i,r,s,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=p([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=St.call(this._shortMonthsParse,o))?r:null:-1!==(r=St.call(this._longMonthsParse,o))?r:null:"MMM"===e?-1!==(r=St.call(this._shortMonthsParse,o))||-1!==(r=St.call(this._longMonthsParse,o))?r:null:-1!==(r=St.call(this._longMonthsParse,o))||-1!==(r=St.call(this._shortMonthsParse,o))?r:null}function Rt(t,e){if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=dt(e);else if(!c(e=t.localeData().monthsParse(e)))return t;var n=e,i=t.date();return i=i<29?i:Math.min(i,Nt(t.year(),n)),t._isUTC?t._d.setUTCMonth(n,i):t._d.setMonth(n,i),t}function Yt(t){return null!=t?(Rt(this,t),i.updateOffset(this,!0),this):Dt(this,"Month")}function Ut(){function t(t,e){return e.length-t.length}var e,n,i,r,s=[],o=[],a=[];for(e=0;e<12;e++)n=p([2e3,e]),i=ct(this.monthsShort(n,"")),r=ct(this.months(n,"")),s.push(i),o.push(r),a.push(r),a.push(i);s.sort(t),o.sort(t),a.sort(t),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Bt(t,e,n,i,r,s,o){var a;return t<100&&t>=0?(a=new Date(t+400,e,n,i,r,s,o),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,i,r,s,o),a}function Wt(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Ht(t,e,n){var i=7+e-n;return-(7+Wt(t,0,i).getUTCDay()-e)%7+i-1}function Vt(t,e,n,i,r){var s,o,a=1+7*(e-1)+(7+n-i)%7+Ht(t,i,r);return a<=0?o=kt(s=t-1)+a:a>kt(t)?(s=t+1,o=a-kt(t)):(s=t,o=a),{year:s,dayOfYear:o}}function Zt(t,e,n){var i,r,s=Ht(t.year(),e,n),o=Math.floor((t.dayOfYear()-s-1)/7)+1;return o<1?i=o+Gt(r=t.year()-1,e,n):o>Gt(t.year(),e,n)?(i=o-Gt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=o),{week:i,year:r}}function Gt(t,e,n){var i=Ht(t,e,n),r=Ht(t+1,e,n);return(kt(t)-i+r)/7}E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),at("w",Q,st),at("ww",Q,H),at("W",Q,st),at("WW",Q,H),ft(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=dt(t)}));function Qt(t,e){return t.slice(e,7).concat(t.slice(0,e))}E("d",0,"do","day"),E("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),E("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),E("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),at("d",Q),at("e",Q),at("E",Q),at("dd",(function(t,e){return e.weekdaysMinRegex(t)})),at("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),at("dddd",(function(t,e){return e.weekdaysRegex(t)})),ft(["dd","ddd","dddd"],(function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:f(n).invalidWeekday=t})),ft(["d","e","E"],(function(t,e,n,i){e[i]=dt(t)}));var Jt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$t=rt,Kt=rt,te=rt;function ee(t,e,n){var i,r,s,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=St.call(this._weekdaysParse,o))?r:null:"ddd"===e?-1!==(r=St.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=St.call(this._minWeekdaysParse,o))?r:null:"dddd"===e?-1!==(r=St.call(this._weekdaysParse,o))||-1!==(r=St.call(this._shortWeekdaysParse,o))||-1!==(r=St.call(this._minWeekdaysParse,o))?r:null:"ddd"===e?-1!==(r=St.call(this._shortWeekdaysParse,o))||-1!==(r=St.call(this._weekdaysParse,o))||-1!==(r=St.call(this._minWeekdaysParse,o))?r:null:-1!==(r=St.call(this._minWeekdaysParse,o))||-1!==(r=St.call(this._weekdaysParse,o))||-1!==(r=St.call(this._shortWeekdaysParse,o))?r:null}function ne(){function t(t,e){return e.length-t.length}var e,n,i,r,s,o=[],a=[],l=[],c=[];for(e=0;e<7;e++)n=p([2e3,1]).day(e),i=ct(this.weekdaysMin(n,"")),r=ct(this.weekdaysShort(n,"")),s=ct(this.weekdays(n,"")),o.push(i),a.push(r),l.push(s),c.push(i),c.push(r),c.push(s);o.sort(t),a.sort(t),l.sort(t),c.sort(t),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function ie(){return this.hours()%12||12}function re(t,e){E(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function se(t,e){return e._meridiemParse}E("H",["HH",2],0,"hour"),E("h",["hh",2],0,ie),E("k",["kk",2],0,(function(){return this.hours()||24})),E("hmm",0,0,(function(){return""+ie.apply(this)+D(this.minutes(),2)})),E("hmmss",0,0,(function(){return""+ie.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)})),E("Hmm",0,0,(function(){return""+this.hours()+D(this.minutes(),2)})),E("Hmmss",0,0,(function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)})),re("a",!0),re("A",!1),at("a",se),at("A",se),at("H",Q,ot),at("h",Q,st),at("k",Q,st),at("HH",Q,H),at("hh",Q,H),at("kk",Q,H),at("hmm",J),at("hmmss",X),at("Hmm",J),at("Hmmss",X),pt(["H","HH"],xt),pt(["k","kk"],(function(t,e,n){var i=dt(t);e[xt]=24===i?0:i})),pt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),pt(["h","hh"],(function(t,e,n){e[xt]=dt(t),f(n).bigHour=!0})),pt("hmm",(function(t,e,n){var i=t.length-2;e[xt]=dt(t.substr(0,i)),e[wt]=dt(t.substr(i)),f(n).bigHour=!0})),pt("hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[xt]=dt(t.substr(0,i)),e[wt]=dt(t.substr(i,2)),e[At]=dt(t.substr(r)),f(n).bigHour=!0})),pt("Hmm",(function(t,e,n){var i=t.length-2;e[xt]=dt(t.substr(0,i)),e[wt]=dt(t.substr(i))})),pt("Hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[xt]=dt(t.substr(0,i)),e[wt]=dt(t.substr(i,2)),e[At]=dt(t.substr(r))}));var oe=Lt("Hours",!0);var ae,le={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ot,monthsShort:jt,week:{dow:0,doy:6},weekdays:Jt,weekdaysMin:qt,weekdaysShort:Xt,meridiemParse:/[ap]\.?m?\.?/i},ce={},ue={};function de(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n<i;n+=1)if(t[n]!==e[n])return n;return i}function he(t){return t?t.toLowerCase().replace("_","-"):t}function pe(e){var n=null;if(void 0===ce[e]&&t&&t.exports&&function(t){return!(!t||!t.match("^[^/\\\\]*$"))}(e))try{n=ae._abbr,Object(function(){var t=new Error("Cannot find module 'undefined'");throw t.code="MODULE_NOT_FOUND",t}()),fe(n)}catch(t){ce[e]=null}return ce[e]}function fe(t,e){var n;return t&&((n=l(e)?me(t):ge(t,e))?ae=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ae._abbr}function ge(t,e){if(null!==e){var n,i=le;if(e.abbr=t,null!=ce[t])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=ce[t]._config;else if(null!=e.parentLocale)if(null!=ce[e.parentLocale])i=ce[e.parentLocale]._config;else{if(null==(n=pe(e.parentLocale)))return ue[e.parentLocale]||(ue[e.parentLocale]=[]),ue[e.parentLocale].push({name:t,config:e}),null;i=n._config}return ce[t]=new L(I(i,e)),ue[t]&&ue[t].forEach((function(t){ge(t.name,t.config)})),fe(t),ce[t]}return delete ce[t],null}function me(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ae;if(!r(t)){if(e=pe(t))return e;t=[t]}return function(t){for(var e,n,i,r,s=0;s<t.length;){for(e=(r=he(t[s]).split("-")).length,n=(n=he(t[s+1]))?n.split("-"):null;e>0;){if(i=pe(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&de(r,n)>=e-1)break;e--}s++}return ae}(t)}function ve(t){var e,n=t._a;return n&&-2===f(t).overflow&&(e=n[yt]<0||n[yt]>11?yt:n[bt]<1||n[bt]>Nt(n[vt],n[yt])?bt:n[xt]<0||n[xt]>24||24===n[xt]&&(0!==n[wt]||0!==n[At]||0!==n[_t])?xt:n[wt]<0||n[wt]>59?wt:n[At]<0||n[At]>59?At:n[_t]<0||n[_t]>999?_t:-1,f(t)._overflowDayOfYear&&(e<vt||e>bt)&&(e=bt),f(t)._overflowWeeks&&-1===e&&(e=Ct),f(t)._overflowWeekday&&-1===e&&(e=Mt),f(t).overflow=e),t}var ye=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,be=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xe=/Z|[+-]\d\d(?::?\d\d)?/,we=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ae=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_e=/^\/?Date\((-?\d+)/i,Ce=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Me={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ke(t){var e,n,i,r,s,o,a=t._i,l=ye.exec(a)||be.exec(a),c=we.length,u=Ae.length;if(l){for(f(t).iso=!0,e=0,n=c;e<n;e++)if(we[e][1].exec(l[1])){r=we[e][0],i=!1!==we[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,n=u;e<n;e++)if(Ae[e][1].exec(l[3])){s=(l[2]||" ")+Ae[e][0];break}if(null==s)return void(t._isValid=!1)}if(!i&&null!=s)return void(t._isValid=!1);if(l[4]){if(!xe.exec(l[4]))return void(t._isValid=!1);o="Z"}t._f=r+(s||"")+(o||""),Te(t)}else t._isValid=!1}function Se(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Ie(t){var e,n,i,r,s,o,a,l,c=Ce.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(n=c[4],i=c[3],r=c[2],s=c[5],o=c[6],a=c[7],l=[Se(n),jt.indexOf(i),parseInt(r,10),parseInt(s,10),parseInt(o,10)],a&&l.push(parseInt(a,10)),e=l,!function(t,e,n){return!t||Xt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(f(n).weekdayMismatch=!0,n._isValid=!1,!1)}(c[1],e,t))return;t._a=e,t._tzm=function(t,e,n){if(t)return Me[t];if(e)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(c[8],c[9],c[10]),t._d=Wt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0}else t._isValid=!1}function Le(t,e,n){return null!=t?t:null!=e?e:n}function De(t){var e,n,r,s,o,a=[];if(!t._d){for(r=function(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[bt]&&null==t._a[yt]&&function(t){var e,n,i,r,s,o,a,l,c;null!=(e=t._w).GG||null!=e.W||null!=e.E?(s=1,o=4,n=Le(e.GG,t._a[vt],Zt(je(),1,4).year),i=Le(e.W,1),((r=Le(e.E,1))<1||r>7)&&(l=!0)):(s=t._locale._week.dow,o=t._locale._week.doy,c=Zt(je(),s,o),n=Le(e.gg,t._a[vt],c.year),i=Le(e.w,c.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+s,(e.e<0||e.e>6)&&(l=!0)):r=s),i<1||i>Gt(n,s,o)?f(t)._overflowWeeks=!0:null!=l?f(t)._overflowWeekday=!0:(a=Vt(n,i,r,s,o),t._a[vt]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(o=Le(t._a[vt],r[vt]),(t._dayOfYear>kt(o)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),n=Wt(o,0,t._dayOfYear),t._a[yt]=n.getUTCMonth(),t._a[bt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[xt]&&0===t._a[wt]&&0===t._a[At]&&0===t._a[_t]&&(t._nextDay=!0,t._a[xt]=0),t._d=(t._useUTC?Wt:Bt).apply(null,a),s=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[xt]=24),t._w&&void 0!==t._w.d&&t._w.d!==s&&(f(t).weekdayMismatch=!0)}}function Te(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],f(t).empty=!0;var e,n,r,s,o,a,l,c=""+t._i,u=c.length,d=0;for(l=(r=F(t._f,t._locale).match(T)||[]).length,e=0;e<l;e++)s=r[e],(n=(c.match(lt(s,t))||[])[0])&&((o=c.substr(0,c.indexOf(n))).length>0&&f(t).unusedInput.push(o),c=c.slice(c.indexOf(n)+n.length),d+=n.length),j[s]?(n?f(t).empty=!1:f(t).unusedTokens.push(s),gt(s,n,t)):t._strict&&!n&&f(t).unusedTokens.push(s);f(t).charsLeftOver=u-d,c.length>0&&f(t).unusedInput.push(c),t._a[xt]<=12&&!0===f(t).bigHour&&t._a[xt]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[xt]=function(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}(t._locale,t._a[xt],t._meridiem),null!==(a=f(t).era)&&(t._a[vt]=t._locale.erasConvertYear(a,t._a[vt])),De(t),ve(t)}else Ie(t);else ke(t)}function Ne(t){var e=t._i,n=t._f;return t._locale=t._locale||me(t._l),null===e||void 0===n&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),w(e)?new x(ve(e)):(u(e)?t._d=e:r(n)?function(t){var e,n,i,r,s,o,a=!1,l=t._f.length;if(0===l)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<l;r++)s=0,o=!1,e=b({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],Te(e),g(e)&&(o=!0),s+=f(e).charsLeftOver,s+=10*f(e).unusedTokens.length,f(e).score=s,a?s<i&&(i=s,n=e):(null==i||s<i||o)&&(i=s,n=e,o&&(a=!0));h(t,n||e)}(t):n?Te(t):function(t){var e=t._i;l(e)?t._d=new Date(i.now()):u(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=_e.exec(t._i);null===e?(ke(t),!1===t._isValid&&(delete t._isValid,Ie(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:i.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):r(e)?(t._a=d(e.slice(0),(function(t){return parseInt(t,10)})),De(t)):s(e)?function(t){if(!t._d){var e=Y(t._i),n=void 0===e.day?e.date:e.day;t._a=d([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),De(t)}}(t):c(e)?t._d=new Date(e):i.createFromInputFallback(t)}(t),g(t)||(t._d=null),t))}function Oe(t,e,n,i,o){var l,c={};return!0!==e&&!1!==e||(i=e,e=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(s(t)&&a(t)||r(t)&&0===t.length)&&(t=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=o,c._l=n,c._i=t,c._f=e,c._strict=i,(l=new x(ve(Ne(c))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function je(t,e,n,i){return Oe(t,e,n,i,!1)}i.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Ee=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=je.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()})),ze=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=je.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:m()}));function Fe(t,e){var n,i;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return je();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Pe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Re(t){var e=Y(t),n=e.year||0,i=e.quarter||0,r=e.month||0,s=e.week||e.isoWeek||0,a=e.day||0,l=e.hour||0,c=e.minute||0,u=e.second||0,d=e.millisecond||0;this._isValid=function(t){var e,n,i=!1,r=Pe.length;for(e in t)if(o(t,e)&&(-1===St.call(Pe,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<r;++n)if(t[Pe[n]]){if(i)return!1;parseFloat(t[Pe[n]])!==dt(t[Pe[n]])&&(i=!0)}return!0}(e),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*60*60,this._days=+a+7*s,this._months=+r+3*i+12*n,this._data={},this._locale=me(),this._bubble()}function Ye(t){return t instanceof Re}function Ue(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Be(t,e){E(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+D(~~(t/60),2)+e+D(~~t%60,2)}))}Be("Z",":"),Be("ZZ",""),at("Z",it),at("ZZ",it),pt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=He(it,t)}));var We=/([\+\-]|\d\d)/gi;function He(t,e){var n,i,r=(e||"").match(t);return null===r?null:0===(i=60*(n=((r[r.length-1]||[])+"").match(We)||["-",0,0])[1]+dt(n[2]))?0:"+"===n[0]?i:-i}function Ve(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(w(t)||u(t)?t.valueOf():je(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):je(t).local()}function Ze(t){return-Math.round(t._d.getTimezoneOffset())}function Ge(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Qe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Je=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Xe(t,e){var n,i,r,s,a,l,u=t,d=null;return Ye(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:c(t)||!isNaN(+t)?(u={},e?u[e]=+t:u.milliseconds=+t):(d=Qe.exec(t))?(n="-"===d[1]?-1:1,u={y:0,d:dt(d[bt])*n,h:dt(d[xt])*n,m:dt(d[wt])*n,s:dt(d[At])*n,ms:dt(Ue(1e3*d[_t]))*n}):(d=Je.exec(t))?(n="-"===d[1]?-1:1,u={y:qe(d[2],n),M:qe(d[3],n),w:qe(d[4],n),d:qe(d[5],n),h:qe(d[6],n),m:qe(d[7],n),s:qe(d[8],n)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(s=je(u.from),a=je(u.to),r=s.isValid()&&a.isValid()?(a=Ve(a,s),s.isBefore(a)?l=$e(s,a):((l=$e(a,s)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),i=new Re(u),Ye(t)&&o(t,"_locale")&&(i._locale=t._locale),Ye(t)&&o(t,"_isValid")&&(i._isValid=t._isValid),i}function qe(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function $e(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ke(t,e){return function(n,i){var r;return null===i||isNaN(+i)||(k(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),tn(this,Xe(n,i),t),this}}function tn(t,e,n,r){var s=e._milliseconds,o=Ue(e._days),a=Ue(e._months);t.isValid()&&(r=null==r||r,a&&Rt(t,Dt(t,"Month")+a*n),o&&Tt(t,"Date",Dt(t,"Date")+o*n),s&&t._d.setTime(t._d.valueOf()+s*n),r&&i.updateOffset(t,o||a))}Xe.fn=Re.prototype,Xe.invalid=function(){return Xe(NaN)};var en=Ke(1,"add"),nn=Ke(-1,"subtract");function rn(t){return"string"==typeof t||t instanceof String}function sn(t){return w(t)||u(t)||rn(t)||c(t)||function(t){var e=r(t),n=!1;return e&&(n=0===t.filter((function(e){return!c(e)&&rn(t)})).length),e&&n}(t)||function(t){var e,n,i=s(t)&&!a(t),r=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=l.length;for(e=0;e<c;e+=1)n=l[e],r=r||o(t,n);return i&&r}(t)||null==t}function on(t,e){if(t.date()<e.date())return-on(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(n+1,"months")-i)))||0}function an(t){var e;return void 0===t?this._locale._abbr:(null!=(e=me(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ln=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function cn(){return this._locale}var un=1e3,dn=6e4,hn=36e5,pn=126227808e5;function fn(t,e){return(t%e+e)%e}function gn(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-pn:new Date(t,e,n).valueOf()}function mn(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-pn:Date.UTC(t,e,n)}function vn(t,e){return e.erasAbbrRegex(t)}function yn(){var t,e,n,i,r,s=[],o=[],a=[],l=[],c=this.eras();for(t=0,e=c.length;t<e;++t)n=ct(c[t].name),i=ct(c[t].abbr),r=ct(c[t].narrow),o.push(n),s.push(i),a.push(r),l.push(n),l.push(i),l.push(r);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function bn(t,e){E(0,[t,t.length],0,e)}function xn(t,e,n,i,r){var s;return null==t?Zt(this,i,r).year:(e>(s=Gt(t,i,r))&&(e=s),wn.call(this,t,e,n,i,r))}function wn(t,e,n,i,r){var s=Vt(t,e,n,i,r),o=Wt(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}E("N",0,0,"eraAbbr"),E("NN",0,0,"eraAbbr"),E("NNN",0,0,"eraAbbr"),E("NNNN",0,0,"eraName"),E("NNNNN",0,0,"eraNarrow"),E("y",["y",1],"yo","eraYear"),E("y",["yy",2],0,"eraYear"),E("y",["yyy",3],0,"eraYear"),E("y",["yyyy",4],0,"eraYear"),at("N",vn),at("NN",vn),at("NNN",vn),at("NNNN",(function(t,e){return e.erasNameRegex(t)})),at("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),pt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,i){var r=n._locale.erasParse(t,i,n._strict);r?f(n).era=r:f(n).invalidEra=t})),at("y",tt),at("yy",tt),at("yyy",tt),at("yyyy",tt),at("yo",(function(t,e){return e._eraYearOrdinalRegex||tt})),pt(["y","yy","yyy","yyyy"],vt),pt(["yo"],(function(t,e,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[vt]=n._locale.eraYearOrdinalParse(t,r):e[vt]=parseInt(t,10)})),E(0,["gg",2],0,(function(){return this.weekYear()%100})),E(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),bn("gggg","weekYear"),bn("ggggg","weekYear"),bn("GGGG","isoWeekYear"),bn("GGGGG","isoWeekYear"),at("G",et),at("g",et),at("GG",Q,H),at("gg",Q,H),at("GGGG",$,Z),at("gggg",$,Z),at("GGGGG",K,G),at("ggggg",K,G),ft(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,i){e[i.substr(0,2)]=dt(t)})),ft(["gg","GG"],(function(t,e,n,r){e[r]=i.parseTwoDigitYear(t)})),E("Q",0,"Qo","quarter"),at("Q",W),pt("Q",(function(t,e){e[yt]=3*(dt(t)-1)})),E("D",["DD",2],"Do","date"),at("D",Q,st),at("DD",Q,H),at("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),pt(["D","DD"],bt),pt("Do",(function(t,e){e[bt]=dt(t.match(Q)[0])}));var An=Lt("Date",!0);E("DDD",["DDDD",3],"DDDo","dayOfYear"),at("DDD",q),at("DDDD",V),pt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=dt(t)})),E("m",["mm",2],0,"minute"),at("m",Q,ot),at("mm",Q,H),pt(["m","mm"],wt);var _n=Lt("Minutes",!1);E("s",["ss",2],0,"second"),at("s",Q,ot),at("ss",Q,H),pt(["s","ss"],At);var Cn,Mn,kn=Lt("Seconds",!1);for(E("S",0,0,(function(){return~~(this.millisecond()/100)})),E(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),E(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),E(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),E(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),E(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),E(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),at("S",q,W),at("SS",q,H),at("SSS",q,V),Cn="SSSS";Cn.length<=9;Cn+="S")at(Cn,tt);function Sn(t,e){e[_t]=dt(1e3*("0."+t))}for(Cn="S";Cn.length<=9;Cn+="S")pt(Cn,Sn);Mn=Lt("Milliseconds",!1),E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");var In=x.prototype;function Ln(t){return t}In.add=en,In.calendar=function(t,e){1===arguments.length&&(arguments[0]?sn(arguments[0])?(t=arguments[0],e=void 0):function(t){var e,n=s(t)&&!a(t),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)i=i||o(t,r[e]);return n&&i}(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||je(),r=Ve(n,this).startOf("day"),l=i.calendarFormat(this,r)||"sameElse",c=e&&(S(e[l])?e[l].call(this,n):e[l]);return this.format(c||this.localeData().calendar(l,this,je(n)))},In.clone=function(){return new x(this)},In.diff=function(t,e,n){var i,r,s;if(!this.isValid())return NaN;if(!(i=Ve(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=R(e)){case"year":s=on(this,i)/12;break;case"month":s=on(this,i);break;case"quarter":s=on(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-r)/864e5;break;case"week":s=(this-i-r)/6048e5;break;default:s=this-i}return n?s:ut(s)},In.endOf=function(t){var e,n;if(void 0===(t=R(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?mn:gn,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=hn-fn(e+(this._isUTC?0:this.utcOffset()*dn),hn)-1;break;case"minute":e=this._d.valueOf(),e+=dn-fn(e,dn)-1;break;case"second":e=this._d.valueOf(),e+=un-fn(e,un)-1}return this._d.setTime(e),i.updateOffset(this,!0),this},In.format=function(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=z(this,t);return this.localeData().postformat(e)},In.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||je(t).isValid())?Xe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},In.fromNow=function(t){return this.from(je(),t)},In.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||je(t).isValid())?Xe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},In.toNow=function(t){return this.to(je(),t)},In.get=function(t){return S(this[t=R(t)])?this[t]():this},In.invalidAt=function(){return f(this).overflow},In.isAfter=function(t,e){var n=w(t)?t:je(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=R(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},In.isBefore=function(t,e){var n=w(t)?t:je(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=R(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},In.isBetween=function(t,e,n,i){var r=w(t)?t:je(t),s=w(e)?e:je(e);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(s,n):!this.isAfter(s,n))},In.isSame=function(t,e){var n,i=w(t)?t:je(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=R(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},In.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},In.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},In.isValid=function(){return g(this)},In.lang=ln,In.locale=an,In.localeData=cn,In.max=ze,In.min=Ee,In.parsingFlags=function(){return h({},f(this))},In.set=function(t,e){if("object"==typeof t){var n,i=function(t){var e,n=[];for(e in t)o(t,e)&&n.push({unit:e,priority:U[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}(t=Y(t)),r=i.length;for(n=0;n<r;n++)this[i[n].unit](t[i[n].unit])}else if(S(this[t=R(t)]))return this[t](e);return this},In.startOf=function(t){var e,n;if(void 0===(t=R(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?mn:gn,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=fn(e+(this._isUTC?0:this.utcOffset()*dn),hn);break;case"minute":e=this._d.valueOf(),e-=fn(e,dn);break;case"second":e=this._d.valueOf(),e-=fn(e,un)}return this._d.setTime(e),i.updateOffset(this,!0),this},In.subtract=nn,In.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},In.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},In.toDate=function(){return new Date(this.valueOf())},In.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?z(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},In.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=r+'[")]',this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(In[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),In.toJSON=function(){return this.isValid()?this.toISOString():null},In.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},In.unix=function(){return Math.floor(this.valueOf()/1e3)},In.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},In.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},In.eraName=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].name;if(i[t].until<=n&&n<=i[t].since)return i[t].name}return""},In.eraNarrow=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].narrow;if(i[t].until<=n&&n<=i[t].since)return i[t].narrow}return""},In.eraAbbr=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].abbr;if(i[t].until<=n&&n<=i[t].since)return i[t].abbr}return""},In.eraYear=function(){var t,e,n,r,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t)if(n=s[t].since<=s[t].until?1:-1,r=this.clone().startOf("day").valueOf(),s[t].since<=r&&r<=s[t].until||s[t].until<=r&&r<=s[t].since)return(this.year()-i(s[t].since).year())*n+s[t].offset;return this.year()},In.year=It,In.isLeapYear=function(){return mt(this.year())},In.weekYear=function(t){return xn.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},In.isoWeekYear=function(t){return xn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},In.quarter=In.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},In.month=Yt,In.daysInMonth=function(){return Nt(this.year(),this.month())},In.week=In.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},In.isoWeek=In.isoWeeks=function(t){var e=Zt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},In.weeksInYear=function(){var t=this.localeData()._week;return Gt(this.year(),t.dow,t.doy)},In.weeksInWeekYear=function(){var t=this.localeData()._week;return Gt(this.weekYear(),t.dow,t.doy)},In.isoWeeksInYear=function(){return Gt(this.year(),1,4)},In.isoWeeksInISOWeekYear=function(){return Gt(this.isoWeekYear(),1,4)},In.date=An,In.day=In.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=Dt(this,"Day");return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},In.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},In.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},In.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},In.hour=In.hours=oe,In.minute=In.minutes=_n,In.second=In.seconds=kn,In.millisecond=In.milliseconds=Mn,In.utcOffset=function(t,e,n){var r,s=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=He(it,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=Ze(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),s!==t&&(!e||this._changeInProgress?tn(this,Xe(t-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:Ze(this)},In.utc=function(t){return this.utcOffset(0,t)},In.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ze(this),"m")),this},In.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=He(nt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},In.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?je(t).utcOffset():0,(this.utcOffset()-t)%60==0)},In.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},In.isLocal=function(){return!!this.isValid()&&!this._isUTC},In.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},In.isUtc=Ge,In.isUTC=Ge,In.zoneAbbr=function(){return this._isUTC?"UTC":""},In.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},In.dates=_("dates accessor is deprecated. Use date instead.",An),In.months=_("months accessor is deprecated. Use month instead",Yt),In.years=_("years accessor is deprecated. Use year instead",It),In.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),In.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var t,e={};return b(e,this),(e=Ne(e))._a?(t=e._isUTC?p(e._a):je(e._a),this._isDSTShifted=this.isValid()&&function(t,e,n){var i,r=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),o=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&dt(t[i])!==dt(e[i]))&&o++;return o+s}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Dn=L.prototype;function Tn(t,e,n,i){var r=me(),s=p().set(i,e);return r[n](s,t)}function Nn(t,e,n){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return Tn(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Tn(t,i,n,"month");return r}function On(t,e,n,i){"boolean"==typeof t?(c(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,c(e)&&(n=e,e=void 0),e=e||"");var r,s=me(),o=t?s._week.dow:0,a=[];if(null!=n)return Tn(e,(n+o)%7,i,"day");for(r=0;r<7;r++)a[r]=Tn(e,(r+o)%7,i,"day");return a}Dn.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return S(i)?i.call(e,n):i},Dn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(T).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Dn.invalidDate=function(){return this._invalidDate},Dn.ordinal=function(t){return this._ordinal.replace("%d",t)},Dn.preparse=Ln,Dn.postformat=Ln,Dn.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return S(r)?r(t,e,n,i):r.replace(/%d/i,t)},Dn.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return S(n)?n(e):n.replace(/%s/i,e)},Dn.set=function(t){var e,n;for(n in t)o(t,n)&&(S(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Dn.eras=function(t,e){var n,r,s,o=this._eras||me("en")._eras;for(n=0,r=o.length;n<r;++n)switch("string"==typeof o[n].since&&(s=i(o[n].since).startOf("day"),o[n].since=s.valueOf()),typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":s=i(o[n].until).startOf("day").valueOf(),o[n].until=s.valueOf()}return o},Dn.erasParse=function(t,e,n){var i,r,s,o,a,l=this.eras();for(t=t.toUpperCase(),i=0,r=l.length;i<r;++i)if(s=l[i].name.toUpperCase(),o=l[i].abbr.toUpperCase(),a=l[i].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(o===t)return l[i];break;case"NNNN":if(s===t)return l[i];break;case"NNNNN":if(a===t)return l[i]}else if([s,o,a].indexOf(t)>=0)return l[i]},Dn.erasConvertYear=function(t,e){var n=t.since<=t.until?1:-1;return void 0===e?i(t.since).year():i(t.since).year()+(e-t.offset)*n},Dn.erasAbbrRegex=function(t){return o(this,"_erasAbbrRegex")||yn.call(this),t?this._erasAbbrRegex:this._erasRegex},Dn.erasNameRegex=function(t){return o(this,"_erasNameRegex")||yn.call(this),t?this._erasNameRegex:this._erasRegex},Dn.erasNarrowRegex=function(t){return o(this,"_erasNarrowRegex")||yn.call(this),t?this._erasNarrowRegex:this._erasRegex},Dn.months=function(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Et).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone},Dn.monthsShort=function(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Et.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Dn.monthsParse=function(t,e,n){var i,r,s;if(this._monthsParseExact)return Pt.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},Dn.monthsRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||Ut.call(this),t?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Ft),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Dn.monthsShortRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||Ut.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=zt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Dn.week=function(t){return Zt(t,this._week.dow,this._week.doy).week},Dn.firstDayOfYear=function(){return this._week.doy},Dn.firstDayOfWeek=function(){return this._week.dow},Dn.weekdays=function(t,e){var n=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Qt(n,this._week.dow):t?n[t.day()]:n},Dn.weekdaysMin=function(t){return!0===t?Qt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Dn.weekdaysShort=function(t){return!0===t?Qt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Dn.weekdaysParse=function(t,e,n){var i,r,s;if(this._weekdaysParseExact)return ee.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},Dn.weekdaysRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=$t),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Dn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Kt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Dn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=te),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Dn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Dn.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},fe("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===dt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=_("moment.lang is deprecated. Use moment.locale instead.",fe),i.langData=_("moment.langData is deprecated. Use moment.localeData instead.",me);var jn=Math.abs;function En(t,e,n,i){var r=Xe(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function zn(t){return t<0?Math.floor(t):Math.ceil(t)}function Fn(t){return 4800*t/146097}function Pn(t){return 146097*t/4800}function Rn(t){return function(){return this.as(t)}}var Yn=Rn("ms"),Un=Rn("s"),Bn=Rn("m"),Wn=Rn("h"),Hn=Rn("d"),Vn=Rn("w"),Zn=Rn("M"),Gn=Rn("Q"),Qn=Rn("y"),Jn=Yn;function Xn(t){return function(){return this.isValid()?this._data[t]:NaN}}var qn=Xn("milliseconds"),$n=Xn("seconds"),Kn=Xn("minutes"),ti=Xn("hours"),ei=Xn("days"),ni=Xn("months"),ii=Xn("years");var ri=Math.round,si={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function oi(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}var ai=Math.abs;function li(t){return(t>0)-(t<0)||+t}function ci(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,r,s,o,a,l=ai(this._milliseconds)/1e3,c=ai(this._days),u=ai(this._months),d=this.asSeconds();return d?(t=ut(l/60),e=ut(t/60),l%=60,t%=60,n=ut(u/12),u%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",s=li(this._months)!==li(d)?"-":"",o=li(this._days)!==li(d)?"-":"",a=li(this._milliseconds)!==li(d)?"-":"",r+"P"+(n?s+n+"Y":"")+(u?s+u+"M":"")+(c?o+c+"D":"")+(e||t||l?"T":"")+(e?a+e+"H":"")+(t?a+t+"M":"")+(l?a+i+"S":"")):"P0D"}var ui=Re.prototype;return ui.isValid=function(){return this._isValid},ui.abs=function(){var t=this._data;return this._milliseconds=jn(this._milliseconds),this._days=jn(this._days),this._months=jn(this._months),t.milliseconds=jn(t.milliseconds),t.seconds=jn(t.seconds),t.minutes=jn(t.minutes),t.hours=jn(t.hours),t.months=jn(t.months),t.years=jn(t.years),this},ui.add=function(t,e){return En(this,t,e,1)},ui.subtract=function(t,e){return En(this,t,e,-1)},ui.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=R(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+Fn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Pn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},ui.asMilliseconds=Yn,ui.asSeconds=Un,ui.asMinutes=Bn,ui.asHours=Wn,ui.asDays=Hn,ui.asWeeks=Vn,ui.asMonths=Zn,ui.asQuarters=Gn,ui.asYears=Qn,ui.valueOf=Jn,ui._bubble=function(){var t,e,n,i,r,s=this._milliseconds,o=this._days,a=this._months,l=this._data;return s>=0&&o>=0&&a>=0||s<=0&&o<=0&&a<=0||(s+=864e5*zn(Pn(a)+o),o=0,a=0),l.milliseconds=s%1e3,t=ut(s/1e3),l.seconds=t%60,e=ut(t/60),l.minutes=e%60,n=ut(e/60),l.hours=n%24,o+=ut(n/24),a+=r=ut(Fn(o)),o-=zn(Pn(r)),i=ut(a/12),a%=12,l.days=o,l.months=a,l.years=i,this},ui.clone=function(){return Xe(this)},ui.get=function(t){return t=R(t),this.isValid()?this[t+"s"]():NaN},ui.milliseconds=qn,ui.seconds=$n,ui.minutes=Kn,ui.hours=ti,ui.days=ei,ui.weeks=function(){return ut(this.days()/7)},ui.months=ni,ui.years=ii,ui.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,s=si;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(s=Object.assign({},si,e),null!=e.s&&null==e.ss&&(s.ss=e.s-1)),i=function(t,e,n,i){var r=Xe(t).abs(),s=ri(r.as("s")),o=ri(r.as("m")),a=ri(r.as("h")),l=ri(r.as("d")),c=ri(r.as("M")),u=ri(r.as("w")),d=ri(r.as("y")),h=s<=n.ss&&["s",s]||s<n.s&&["ss",s]||o<=1&&["m"]||o<n.m&&["mm",o]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=e,h[3]=+t>0,h[4]=i,oi.apply(null,h)}(this,!r,s,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},ui.toISOString=ci,ui.toString=ci,ui.toJSON=ci,ui.locale=an,ui.localeData=cn,ui.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ci),ui.lang=ln,E("X",0,0,"unix"),E("x",0,0,"valueOf"),at("x",et),at("X",/[+-]?\d+(\.\d{1,3})?/),pt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),pt("x",(function(t,e,n){n._d=new Date(dt(t))})),i.version="2.30.1",e=je,i.fn=In,i.min=function(){return Fe("isBefore",[].slice.call(arguments,0))},i.max=function(){return Fe("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=p,i.unix=function(t){return je(1e3*t)},i.months=function(t,e){return Nn(t,e,"months")},i.isDate=u,i.locale=fe,i.invalid=m,i.duration=Xe,i.isMoment=w,i.weekdays=function(t,e,n){return On(t,e,n,"weekdays")},i.parseZone=function(){return je.apply(null,arguments).parseZone()},i.localeData=me,i.isDuration=Ye,i.monthsShort=function(t,e){return Nn(t,e,"monthsShort")},i.weekdaysMin=function(t,e,n){return On(t,e,n,"weekdaysMin")},i.defineLocale=ge,i.updateLocale=function(t,e){if(null!=e){var n,i,r=le;null!=ce[t]&&null!=ce[t].parentLocale?ce[t].set(I(ce[t]._config,e)):(null!=(i=pe(t))&&(r=i._config),e=I(r,e),null==i&&(e.abbr=t),(n=new L(e)).parentLocale=ce[t],ce[t]=n),fe(t)}else null!=ce[t]&&(null!=ce[t].parentLocale?(ce[t]=ce[t].parentLocale,t===fe()&&fe(t)):null!=ce[t]&&delete ce[t]);return ce[t]},i.locales=function(){return C(ce)},i.weekdaysShort=function(t,e,n){return On(t,e,n,"weekdaysShort")},i.normalizeUnits=R,i.relativeTimeRounding=function(t){return void 0===t?ri:"function"==typeof t&&(ri=t,!0)},i.relativeTimeThreshold=function(t,e){return void 0!==si[t]&&(void 0===e?si[t]:(si[t]=e,"s"===t&&(si.ss=e-1),!0))},i.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=In,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},85:t=>{"use strict";t.exports=JSON.parse('{"unitFormatGBP":"£","unitFormatUSD":"US $","unitFormatEUR":"€","unitFormatMXN":"MXN $","unitFormatUAH":"₴","centsUSD":"cents","centsEUR":"cents","centsAUD":"cents","centsZAR":"cents","centsMXN":"cents","centsGBP":"pence"}')},343:t=>{"use strict";t.exports=JSON.parse('{"Name":"Name","Number":"Number","IssueDate":"IssueDate","Paragraph":"Paragraph","Subparagraph":"Subparagraph","URI":"URI","URIDate":"URIDate","Note":"Note"}')},997:t=>{"use strict";t.exports=JSON.parse('{"calculation":{"calculated-total":"Calculated","concept":"Concept","consistent-duplicate-facts-present":"{{nfacts}} consistent duplicate facts present","does-not-bind":"Calculation does not bind","inconsistent-duplicate-facts-present":"{{nfacts}} inconsistent duplicate facts present","maximum":"Maximum","mininum":"Minimum","reported-total":"Reported","reported-value":"Reported value","useCalculations11":"Use Calculations v1.1"},"common":{"accuracyInfinite":"Infinite precision","none":"None","notApplicable":"n/a","unscaled":"Unscaled","unspecified":"Unspecified"},"factDetails":{"accuracy":"Accuracy","calculationIsConsistent":"Calculation is consistent","calculationIsInconsistent":"Calculation is inconsistent","calculationUnchecked":"Calculation not checked due to presence of duplicate facts","calculationUncheckedIncorrectVersion":"Calculation 1.1 relationships not checked in legacy calculation mode","change":"Change","changeFromIn":"From {{from}} in ","changePercentageDecrease":"{{decrease}}% decrease on ","changePercentageIncrease":"{{increase}}% increase on ","concept":"Concept","date":"Date","dimensions":"Dimensions","duplicatesCount":"{{current}} of {{total}}","entity":"Entity","factValue":"Fact Value","nonNumericFact":"non-numeric fact","noPriorFactInThisReport":"No prior fact in this report","noUnit":"<NOUNIT>","properties":"Properties","scale":"Scale","viewCalculationDetails":"View calculation details"},"footnotes":{"footnote":"Footnote"},"inspector":{"anchoring":"Anchoring","associatedFacts":"Associated facts","calculationDetails":"Calculation details","calculations":"Calculations","concealedFact":"Concealed fact","conceptType":"Concept Type","contributor":"Contributor","dimensions":"Dimension Type","documentOutline":"Document outline","documentSummary":"Document summary","explicitDimension":"Explicit Dimensions","fact-groups":"Sections","factProperties":"Fact Properties","factSearch":"Fact Search","factValue":"Fact Value","filter":"Filter","footnoteProperties":"Footnote Properties","footnotes":"Footnotes","hiddenFact":"Hidden Fact","hiddenFacts":"Hidden Facts","highlight":"Highlight","initializing":"Initializing","loadingViewer":"Loading iXBRL Viewer","matchingFacts":" matching facts(s)","namespaces":"Namespaces","narrowerAnchor":"Narrower anchors","negative":"Negative","nextTag":"Next tag","noFactSelected":"No Fact Selected","numericOption":"Numeric","outlineUnavailable":"Outline Unavailable","period":"Period","positive":"Positive","previousTag":"Previous tag","printDocument":"Print Document","references":"References","reset":"Reset","scales":"Scales","searchTitle":"Search","showTextOnly":"Show text only","summary":{"fact":{"header":"Fact Summary","title":"Total Facts:"},"file":{"calculations":"Calculation Linkbases","definitions":"Definition Linkbases","header":"File Summary","inline":"Inline Documents","labels":"Label Linkbases","other":"Other Linkbases","presentation":"Presentation Linkbases","references":"Reference Linkbases","schemas":"Schemas","reportCreation":"Report Creation"},"tag":{"colDimensions":"Dimensions","colMembers":"Members","colNamespace":"Namespace","colPrimaryItems":"Primary Items","colTotal":"Total","header":"Tag Summary","rowTotal":"Total"}},"summation":"Summation","targetDocument":"Target Document","textOption":"Text","typedDimensions":"Typed Dimensions","units":"Units","validationCode":"Code","validationMessage":"Message","validationResults":"Validation results","validationSeverity":"Severity","visibleFacts":"Visible Facts","widerAnchor":"Wider anchor"},"scale":{"0":"ones","1":"tens","2":"hundreds","3":"thousands","4":"ten thousands","5":"hundred thousands","6":"millions","7":"ten millions","8":"hundred millions","9":"billions","-3":"thousandths","-2":"hundredths","-1":"tenths"},"search":{"concealedFact":"Concealed fact","default":"default","hiddenFact":"Hidden fact","noMatchFound":"No match found","selected":"selected","showMoreResults":"Show more results","tryAgainDifferentKeywords":"Try again with different keywords"},"toolbar":{"xbrlElements":"XBRL Elements"}}')},476:t=>{"use strict";t.exports=JSON.parse('{"centsUSD":"centavos","centsEUR":"centavos","centsAUD":"centavos","centsZAR":"centavos","centsMXN":"centavos","centsGBP":"centavos"}')},6:t=>{"use strict";t.exports=JSON.parse('{"Name":"Nombre","Number":"Número","IssueDate":"Fecha de Emisión","Paragraph":"Párrafo","Subparagraph":"Subpárrafo","URI":"URI","URIDate":"Fecha de URI","Note":"Nota"}')},702:t=>{"use strict";t.exports=JSON.parse('{"calculation":{"calculated-total":"","concept":"","consistent-duplicate-facts-present":"","does-not-bind":"","inconsistent-duplicate-facts-present":"","maximum":"","mininum":"","reported-total":"","reported-value":"","useCalculations11":""},"common":{"accuracyInfinite":"Precisió infinita","none":"Ninguno","notApplicable":"n/d","unscaled":"Sin escala","unspecified":"Sin especificar"},"factDetails":{"accuracy":"Precisión","calculationIsConsistent":"","calculationIsInconsistent":"","calculationUnchecked":"","change":"Cambio","changeFromIn":"Anteriormente {{from}} en ","changePercentageDecrease":"{{decrease}}% menos que en ","changePercentageIncrease":"{{increase}}% más que en ","concept":"Concepto","date":"Fecha","dimensions":"Dimensiones","duplicatesCount":"{{current}} de {{total}}","entity":"Entidad","factValue":"Valor del hecho","nonNumericFact":"","noPriorFactInThisReport":"No hay un hecho previo","noUnit":"Sin unidad","properties":"Características","scale":"Escala","viewCalculationDetails":""},"footnotes":{"footnote":"Nota al pie de página"},"inspector":{"anchoring":"Anclaje","associatedFacts":"Hechos asociados","calculationDetails":"","calculations":"Cálculos","concealedFact":"","conceptType":"Tipo de concepto","contributor":"","dimensions":"","documentOutline":"","documentSummary":"","explicitDimension":"","fact-groups":"","factProperties":"Propiedades del hecho","factSearch":"Búsqueda de hechos","factValue":"","filter":"Filtro","footnoteProperties":"Propiedades de la nota al pie de página","footnotes":"Notas al pie de página","hiddenFact":"Hecho oculto","hiddenFacts":"Hechos ocultos","highlight":"Destacar","initializing":"","loadingViewer":"Preparando el visor iXBRL","matchingFacts":"","namespaces":"","narrowerAnchor":"Anclaje angosto","negative":"","nextTag":"","noFactSelected":"Ningún hecho seleccionado","numericOption":"Numérico","outlineUnavailable":"","period":"Periodo","positive":"","previousTag":"","printDocument":"","references":"Referencias","reset":"Limpiar","scales":"Escalas","searchTitle":"Búsqueda de hechos","showTextOnly":"","summary":{"fact":{"header":"","title":""},"file":{"calculations":"","definitions":"","header":"","inline":"","labels":"","other":"","presentation":"","references":"","schemas":"","reportCreation":""},"tag":{"colDimensions":"","colMembers":"","colNamespace":"","colPrimaryItems":"","colTotal":"","header":"","rowTotal":""}},"summation":"","targetDocument":"","textOption":"Texto","typedDimensions":"","units":"Unidads","validationCode":"","validationMessage":"","validationResults":"","validationSeverity":"","visibleFacts":"Hechos visibles","widerAnchor":"Anclaje amplio"},"scale":{"0":"unidades","1":"décimos","2":"cientos","3":"miles","4":"diez miles","5":"cien miles","6":"millones","7":"diez millones","8":"cien millones","9":"billones","-3":"milésimos","-2":"centésimos","-1":"décimas"},"search":{"concealedFact":"","default":"","hiddenFact":"Hecho oculto","noMatchFound":"No se encontró ninguna coincidencia","selected":"seleccionados","showMoreResults":"Mostrar más resultados","tryAgainDifferentKeywords":"Intente nuevamente con palabras clave diferentes"},"toolbar":{"xbrlElements":"Elementos XBRL"}}')}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={id:i,loaded:!1,exports:{}};return t[i].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{"use strict";var t=n(651),e=n.n(t),i=n(806),r=n.n(i);class s{constructor(t,e){this._c=t.concepts()[e]||{},this.name=e,this.report=t}referenceValuesAsString(){return this._c.r?this._c.r.flatMap((t=>t.map((t=>t[1])))).join(" "):""}references(){return this._c.r?this._c.r.map((t=>t.map((t=>({part:t[0],value:t[1]}))))):[]}isTypedDimension(){return"t"===this._c.d}isExplicitDimension(){return"e"===this._c.d}isDimension(){return"d"in this._c}isEnumeration(){return Boolean(this._c&&this._c.e)}label(){return this.report.getLabelOrName(this.name)}isTextBlock(){return Boolean(this._c.t)}typedDomainElement(){return this._c.td}}var o,a,l=n(420),c=n.n(l),u=9e15,d=1e9,h="0123456789abcdef",p="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",f="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",g={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-u,maxE:u,crypto:!1},m=!0,v="[DecimalError] ",y=v+"Invalid argument: ",b=v+"Precision limit exceeded",x=v+"crypto unavailable",w="[object Decimal]",A=Math.floor,_=Math.pow,C=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,M=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,k=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,S=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,I=1e7,L=p.length-1,D=f.length-1,T={toStringTag:w};function N(t){var e,n,i,r=t.length-1,s="",o=t[0];if(r>0){for(s+=o,e=1;e<r;e++)(n=7-(i=t[e]+"").length)&&(s+=W(n)),s+=i;(n=7-(i=(o=t[e])+"").length)&&(s+=W(n))}else if(0===o)return"0";for(;o%10==0;)o/=10;return s+o}function O(t,e,n){if(t!==~~t||t<e||t>n)throw Error(y+t)}function j(t,e,n,i){var r,s,o,a;for(s=t[0];s>=10;s/=10)--e;return--e<0?(e+=7,r=0):(r=Math.ceil((e+1)/7),e%=7),s=_(10,7-e),a=t[r]%s|0,null==i?e<3?(0==e?a=a/100|0:1==e&&(a=a/10|0),o=n<4&&99999==a||n>3&&49999==a||5e4==a||0==a):o=(n<4&&a+1==s||n>3&&a+1==s/2)&&(t[r+1]/s/100|0)==_(10,e-2)-1||(a==s/2||0==a)&&!(t[r+1]/s/100|0):e<4?(0==e?a=a/1e3|0:1==e?a=a/100|0:2==e&&(a=a/10|0),o=(i||n<4)&&9999==a||!i&&n>3&&4999==a):o=((i||n<4)&&a+1==s||!i&&n>3&&a+1==s/2)&&(t[r+1]/s/1e3|0)==_(10,e-3)-1,o}function E(t,e,n){for(var i,r,s=[0],o=0,a=t.length;o<a;){for(r=s.length;r--;)s[r]*=e;for(s[0]+=h.indexOf(t.charAt(o++)),i=0;i<s.length;i++)s[i]>n-1&&(void 0===s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}T.absoluteValue=T.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),F(t)},T.ceil=function(){return F(new this.constructor(this),this.e+1,2)},T.clampedTo=T.clamp=function(t,e){var n=this,i=n.constructor;if(t=new i(t),e=new i(e),!t.s||!e.s)return new i(NaN);if(t.gt(e))throw Error(y+e);return n.cmp(t)<0?t:n.cmp(e)>0?e:new i(n)},T.comparedTo=T.cmp=function(t){var e,n,i,r,s=this,o=s.d,a=(t=new s.constructor(t)).d,l=s.s,c=t.s;if(!o||!a)return l&&c?l!==c?l:o===a?0:!o^l<0?1:-1:NaN;if(!o[0]||!a[0])return o[0]?l:a[0]?-c:0;if(l!==c)return l;if(s.e!==t.e)return s.e>t.e^l<0?1:-1;for(e=0,n=(i=o.length)<(r=a.length)?i:r;e<n;++e)if(o[e]!==a[e])return o[e]>a[e]^l<0?1:-1;return i===r?0:i>r^l<0?1:-1},T.cosine=T.cos=function(){var t,e,n=this,i=n.constructor;return n.d?n.d[0]?(t=i.precision,e=i.rounding,i.precision=t+Math.max(n.e,n.sd())+7,i.rounding=1,n=function(t,e){var n,i,r;if(e.isZero())return e;(i=e.d.length)<32?r=(1/K(4,n=Math.ceil(i/3))).toString():(n=16,r="2.3283064365386962890625e-10"),t.precision+=n,e=$(t,1,e.times(r),new t(1));for(var s=n;s--;){var o=e.times(e);e=o.times(o).minus(o).times(8).plus(1)}return t.precision-=n,e}(i,tt(i,n)),i.precision=t,i.rounding=e,F(2==a||3==a?n.neg():n,t,e,!0)):new i(1):new i(NaN)},T.cubeRoot=T.cbrt=function(){var t,e,n,i,r,s,o,a,l,c,u=this,d=u.constructor;if(!u.isFinite()||u.isZero())return new d(u);for(m=!1,(s=u.s*_(u.s*u,1/3))&&Math.abs(s)!=1/0?i=new d(s.toString()):(n=N(u.d),(s=((t=u.e)-n.length+1)%3)&&(n+=1==s||-2==s?"0":"00"),s=_(n,1/3),t=A((t+1)/3)-(t%3==(t<0?-1:2)),(i=new d(n=s==1/0?"5e"+t:(n=s.toExponential()).slice(0,n.indexOf("e")+1)+t)).s=u.s),o=(t=d.precision)+3;;)if(c=(l=(a=i).times(a).times(a)).plus(u),i=z(c.plus(u).times(a),c.plus(l),o+2,1),N(a.d).slice(0,o)===(n=N(i.d)).slice(0,o)){if("9999"!=(n=n.slice(o-3,o+1))&&(r||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(F(i,t+1,1),e=!i.times(i).times(i).eq(u));break}if(!r&&(F(a,t+1,0),a.times(a).times(a).eq(u))){i=a;break}o+=4,r=1}return m=!0,F(i,t,d.rounding,e)},T.decimalPlaces=T.dp=function(){var t,e=this.d,n=NaN;if(e){if(n=7*((t=e.length-1)-A(this.e/7)),t=e[t])for(;t%10==0;t/=10)n--;n<0&&(n=0)}return n},T.dividedBy=T.div=function(t){return z(this,new this.constructor(t))},T.dividedToIntegerBy=T.divToInt=function(t){var e=this.constructor;return F(z(this,new e(t),0,1,1),e.precision,e.rounding)},T.equals=T.eq=function(t){return 0===this.cmp(t)},T.floor=function(){return F(new this.constructor(this),this.e+1,3)},T.greaterThan=T.gt=function(t){return this.cmp(t)>0},T.greaterThanOrEqualTo=T.gte=function(t){var e=this.cmp(t);return 1==e||0===e},T.hyperbolicCosine=T.cosh=function(){var t,e,n,i,r,s=this,o=s.constructor,a=new o(1);if(!s.isFinite())return new o(s.s?1/0:NaN);if(s.isZero())return a;n=o.precision,i=o.rounding,o.precision=n+Math.max(s.e,s.sd())+4,o.rounding=1,(r=s.d.length)<32?e=(1/K(4,t=Math.ceil(r/3))).toString():(t=16,e="2.3283064365386962890625e-10"),s=$(o,1,s.times(e),new o(1),!0);for(var l,c=t,u=new o(8);c--;)l=s.times(s),s=a.minus(l.times(u.minus(l.times(u))));return F(s,o.precision=n,o.rounding=i,!0)},T.hyperbolicSine=T.sinh=function(){var t,e,n,i,r=this,s=r.constructor;if(!r.isFinite()||r.isZero())return new s(r);if(e=s.precision,n=s.rounding,s.precision=e+Math.max(r.e,r.sd())+4,s.rounding=1,(i=r.d.length)<3)r=$(s,2,r,r,!0);else{t=(t=1.4*Math.sqrt(i))>16?16:0|t,r=$(s,2,r=r.times(1/K(5,t)),r,!0);for(var o,a=new s(5),l=new s(16),c=new s(20);t--;)o=r.times(r),r=r.times(a.plus(o.times(l.times(o).plus(c))))}return s.precision=e,s.rounding=n,F(r,e,n,!0)},T.hyperbolicTangent=T.tanh=function(){var t,e,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(t=i.precision,e=i.rounding,i.precision=t+7,i.rounding=1,z(n.sinh(),n.cosh(),i.precision=t,i.rounding=e)):new i(n.s)},T.inverseCosine=T.acos=function(){var t,e=this,n=e.constructor,i=e.abs().cmp(1),r=n.precision,s=n.rounding;return-1!==i?0===i?e.isNeg()?U(n,r,s):new n(0):new n(NaN):e.isZero()?U(n,r+4,s).times(.5):(n.precision=r+6,n.rounding=1,e=e.asin(),t=U(n,r+4,s).times(.5),n.precision=r,n.rounding=s,t.minus(e))},T.inverseHyperbolicCosine=T.acosh=function(){var t,e,n=this,i=n.constructor;return n.lte(1)?new i(n.eq(1)?0:NaN):n.isFinite()?(t=i.precision,e=i.rounding,i.precision=t+Math.max(Math.abs(n.e),n.sd())+4,i.rounding=1,m=!1,n=n.times(n).minus(1).sqrt().plus(n),m=!0,i.precision=t,i.rounding=e,n.ln()):new i(n)},T.inverseHyperbolicSine=T.asinh=function(){var t,e,n=this,i=n.constructor;return!n.isFinite()||n.isZero()?new i(n):(t=i.precision,e=i.rounding,i.precision=t+2*Math.max(Math.abs(n.e),n.sd())+6,i.rounding=1,m=!1,n=n.times(n).plus(1).sqrt().plus(n),m=!0,i.precision=t,i.rounding=e,n.ln())},T.inverseHyperbolicTangent=T.atanh=function(){var t,e,n,i,r=this,s=r.constructor;return r.isFinite()?r.e>=0?new s(r.abs().eq(1)?r.s/0:r.isZero()?r:NaN):(t=s.precision,e=s.rounding,i=r.sd(),Math.max(i,t)<2*-r.e-1?F(new s(r),t,e,!0):(s.precision=n=i-r.e,r=z(r.plus(1),new s(1).minus(r),n+t,1),s.precision=t+4,s.rounding=1,r=r.ln(),s.precision=t,s.rounding=e,r.times(.5))):new s(NaN)},T.inverseSine=T.asin=function(){var t,e,n,i,r=this,s=r.constructor;return r.isZero()?new s(r):(e=r.abs().cmp(1),n=s.precision,i=s.rounding,-1!==e?0===e?((t=U(s,n+4,i).times(.5)).s=r.s,t):new s(NaN):(s.precision=n+6,s.rounding=1,r=r.div(new s(1).minus(r.times(r)).sqrt().plus(1)).atan(),s.precision=n,s.rounding=i,r.times(2)))},T.inverseTangent=T.atan=function(){var t,e,n,i,r,s,o,a,l,c=this,u=c.constructor,d=u.precision,h=u.rounding;if(c.isFinite()){if(c.isZero())return new u(c);if(c.abs().eq(1)&&d+4<=D)return(o=U(u,d+4,h).times(.25)).s=c.s,o}else{if(!c.s)return new u(NaN);if(d+4<=D)return(o=U(u,d+4,h).times(.5)).s=c.s,o}for(u.precision=a=d+10,u.rounding=1,t=n=Math.min(28,a/7+2|0);t;--t)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(m=!1,e=Math.ceil(a/7),i=1,l=c.times(c),o=new u(c),r=c;-1!==t;)if(r=r.times(l),s=o.minus(r.div(i+=2)),r=r.times(l),void 0!==(o=s.plus(r.div(i+=2))).d[e])for(t=e;o.d[t]===s.d[t]&&t--;);return n&&(o=o.times(2<<n-1)),m=!0,F(o,u.precision=d,u.rounding=h,!0)},T.isFinite=function(){return!!this.d},T.isInteger=T.isInt=function(){return!!this.d&&A(this.e/7)>this.d.length-2},T.isNaN=function(){return!this.s},T.isNegative=T.isNeg=function(){return this.s<0},T.isPositive=T.isPos=function(){return this.s>0},T.isZero=function(){return!!this.d&&0===this.d[0]},T.lessThan=T.lt=function(t){return this.cmp(t)<0},T.lessThanOrEqualTo=T.lte=function(t){return this.cmp(t)<1},T.logarithm=T.log=function(t){var e,n,i,r,s,o,a,l,c=this,u=c.constructor,d=u.precision,h=u.rounding;if(null==t)t=new u(10),e=!0;else{if(n=(t=new u(t)).d,t.s<0||!n||!n[0]||t.eq(1))return new u(NaN);e=t.eq(10)}if(n=c.d,c.s<0||!n||!n[0]||c.eq(1))return new u(n&&!n[0]?-1/0:1!=c.s?NaN:n?0:1/0);if(e)if(n.length>1)s=!0;else{for(r=n[0];r%10==0;)r/=10;s=1!==r}if(m=!1,o=Q(c,a=d+5),i=e?Y(u,a+10):Q(t,a),j((l=z(o,i,a,1)).d,r=d,h))do{if(o=Q(c,a+=10),i=e?Y(u,a+10):Q(t,a),l=z(o,i,a,1),!s){+N(l.d).slice(r+1,r+15)+1==1e14&&(l=F(l,d+1,0));break}}while(j(l.d,r+=10,h));return m=!0,F(l,d,h)},T.minus=T.sub=function(t){var e,n,i,r,s,o,a,l,c,u,d,h,p=this,f=p.constructor;if(t=new f(t),!p.d||!t.d)return p.s&&t.s?p.d?t.s=-t.s:t=new f(t.d||p.s!==t.s?p:NaN):t=new f(NaN),t;if(p.s!=t.s)return t.s=-t.s,p.plus(t);if(c=p.d,h=t.d,a=f.precision,l=f.rounding,!c[0]||!h[0]){if(h[0])t.s=-t.s;else{if(!c[0])return new f(3===l?-0:0);t=new f(p)}return m?F(t,a,l):t}if(n=A(t.e/7),u=A(p.e/7),c=c.slice(),s=u-n){for((d=s<0)?(e=c,s=-s,o=h.length):(e=h,n=u,o=c.length),s>(i=Math.max(Math.ceil(a/7),o)+2)&&(s=i,e.length=1),e.reverse(),i=s;i--;)e.push(0);e.reverse()}else{for((d=(i=c.length)<(o=h.length))&&(o=i),i=0;i<o;i++)if(c[i]!=h[i]){d=c[i]<h[i];break}s=0}for(d&&(e=c,c=h,h=e,t.s=-t.s),o=c.length,i=h.length-o;i>0;--i)c[o++]=0;for(i=h.length;i>s;){if(c[--i]<h[i]){for(r=i;r&&0===c[--r];)c[r]=I-1;--c[r],c[i]+=I}c[i]-=h[i]}for(;0===c[--o];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(t.d=c,t.e=R(c,n),m?F(t,a,l):t):new f(3===l?-0:0)},T.modulo=T.mod=function(t){var e,n=this,i=n.constructor;return t=new i(t),!n.d||!t.s||t.d&&!t.d[0]?new i(NaN):!t.d||n.d&&!n.d[0]?F(new i(n),i.precision,i.rounding):(m=!1,9==i.modulo?(e=z(n,t.abs(),0,3,1)).s*=t.s:e=z(n,t,0,i.modulo,1),e=e.times(t),m=!0,n.minus(e))},T.naturalExponential=T.exp=function(){return G(this)},T.naturalLogarithm=T.ln=function(){return Q(this)},T.negated=T.neg=function(){var t=new this.constructor(this);return t.s=-t.s,F(t)},T.plus=T.add=function(t){var e,n,i,r,s,o,a,l,c,u,d=this,h=d.constructor;if(t=new h(t),!d.d||!t.d)return d.s&&t.s?d.d||(t=new h(t.d||d.s===t.s?d:NaN)):t=new h(NaN),t;if(d.s!=t.s)return t.s=-t.s,d.minus(t);if(c=d.d,u=t.d,a=h.precision,l=h.rounding,!c[0]||!u[0])return u[0]||(t=new h(d)),m?F(t,a,l):t;if(s=A(d.e/7),i=A(t.e/7),c=c.slice(),r=s-i){for(r<0?(n=c,r=-r,o=u.length):(n=u,i=s,o=c.length),r>(o=(s=Math.ceil(a/7))>o?s+1:o+1)&&(r=o,n.length=1),n.reverse();r--;)n.push(0);n.reverse()}for((o=c.length)-(r=u.length)<0&&(r=o,n=u,u=c,c=n),e=0;r;)e=(c[--r]=c[r]+u[r]+e)/I|0,c[r]%=I;for(e&&(c.unshift(e),++i),o=c.length;0==c[--o];)c.pop();return t.d=c,t.e=R(c,i),m?F(t,a,l):t},T.precision=T.sd=function(t){var e,n=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(y+t);return n.d?(e=B(n.d),t&&n.e+1>e&&(e=n.e+1)):e=NaN,e},T.round=function(){var t=this,e=t.constructor;return F(new e(t),t.e+1,e.rounding)},T.sine=T.sin=function(){var t,e,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(t=i.precision,e=i.rounding,i.precision=t+Math.max(n.e,n.sd())+7,i.rounding=1,n=function(t,e){var n,i=e.d.length;if(i<3)return e.isZero()?e:$(t,2,e,e);n=(n=1.4*Math.sqrt(i))>16?16:0|n,e=$(t,2,e=e.times(1/K(5,n)),e);for(var r,s=new t(5),o=new t(16),a=new t(20);n--;)r=e.times(e),e=e.times(s.plus(r.times(o.times(r).minus(a))));return e}(i,tt(i,n)),i.precision=t,i.rounding=e,F(a>2?n.neg():n,t,e,!0)):new i(NaN)},T.squareRoot=T.sqrt=function(){var t,e,n,i,r,s,o=this,a=o.d,l=o.e,c=o.s,u=o.constructor;if(1!==c||!a||!a[0])return new u(!c||c<0&&(!a||a[0])?NaN:a?o:1/0);for(m=!1,0==(c=Math.sqrt(+o))||c==1/0?(((e=N(a)).length+l)%2==0&&(e+="0"),c=Math.sqrt(e),l=A((l+1)/2)-(l<0||l%2),i=new u(e=c==1/0?"5e"+l:(e=c.toExponential()).slice(0,e.indexOf("e")+1)+l)):i=new u(c.toString()),n=(l=u.precision)+3;;)if(i=(s=i).plus(z(o,s,n+2,1)).times(.5),N(s.d).slice(0,n)===(e=N(i.d)).slice(0,n)){if("9999"!=(e=e.slice(n-3,n+1))&&(r||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(F(i,l+1,1),t=!i.times(i).eq(o));break}if(!r&&(F(s,l+1,0),s.times(s).eq(o))){i=s;break}n+=4,r=1}return m=!0,F(i,l,u.rounding,t)},T.tangent=T.tan=function(){var t,e,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(t=i.precision,e=i.rounding,i.precision=t+10,i.rounding=1,(n=n.sin()).s=1,n=z(n,new i(1).minus(n.times(n)).sqrt(),t+10,0),i.precision=t,i.rounding=e,F(2==a||4==a?n.neg():n,t,e,!0)):new i(NaN)},T.times=T.mul=function(t){var e,n,i,r,s,o,a,l,c,u=this,d=u.constructor,h=u.d,p=(t=new d(t)).d;if(t.s*=u.s,!(h&&h[0]&&p&&p[0]))return new d(!t.s||h&&!h[0]&&!p||p&&!p[0]&&!h?NaN:h&&p?0*t.s:t.s/0);for(n=A(u.e/7)+A(t.e/7),(l=h.length)<(c=p.length)&&(s=h,h=p,p=s,o=l,l=c,c=o),s=[],i=o=l+c;i--;)s.push(0);for(i=c;--i>=0;){for(e=0,r=l+i;r>i;)a=s[r]+p[i]*h[r-i-1]+e,s[r--]=a%I|0,e=a/I|0;s[r]=(s[r]+e)%I|0}for(;!s[--o];)s.pop();return e?++n:s.shift(),t.d=s,t.e=R(s,n),m?F(t,d.precision,d.rounding):t},T.toBinary=function(t,e){return et(this,2,t,e)},T.toDecimalPlaces=T.toDP=function(t,e){var n=this,i=n.constructor;return n=new i(n),void 0===t?n:(O(t,0,d),void 0===e?e=i.rounding:O(e,0,8),F(n,t+n.e+1,e))},T.toExponential=function(t,e){var n,i=this,r=i.constructor;return void 0===t?n=P(i,!0):(O(t,0,d),void 0===e?e=r.rounding:O(e,0,8),n=P(i=F(new r(i),t+1,e),!0,t+1)),i.isNeg()&&!i.isZero()?"-"+n:n},T.toFixed=function(t,e){var n,i,r=this,s=r.constructor;return void 0===t?n=P(r):(O(t,0,d),void 0===e?e=s.rounding:O(e,0,8),n=P(i=F(new s(r),t+r.e+1,e),!1,t+i.e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},T.toFraction=function(t){var e,n,i,r,s,o,a,l,c,u,d,h,p=this,f=p.d,g=p.constructor;if(!f)return new g(p);if(c=n=new g(1),i=l=new g(0),o=(s=(e=new g(i)).e=B(f)-p.e-1)%7,e.d[0]=_(10,o<0?7+o:o),null==t)t=s>0?e:c;else{if(!(a=new g(t)).isInt()||a.lt(c))throw Error(y+a);t=a.gt(e)?s>0?e:c:a}for(m=!1,a=new g(N(f)),u=g.precision,g.precision=s=7*f.length*2;d=z(a,e,0,1,1),1!=(r=n.plus(d.times(i))).cmp(t);)n=i,i=r,r=c,c=l.plus(d.times(r)),l=r,r=e,e=a.minus(d.times(r)),a=r;return r=z(t.minus(n),i,0,1,1),l=l.plus(r.times(c)),n=n.plus(r.times(i)),l.s=c.s=p.s,h=z(c,i,s,1).minus(p).abs().cmp(z(l,n,s,1).minus(p).abs())<1?[c,i]:[l,n],g.precision=u,m=!0,h},T.toHexadecimal=T.toHex=function(t,e){return et(this,16,t,e)},T.toNearest=function(t,e){var n=this,i=n.constructor;if(n=new i(n),null==t){if(!n.d)return n;t=new i(1),e=i.rounding}else{if(t=new i(t),void 0===e?e=i.rounding:O(e,0,8),!n.d)return t.s?n:t;if(!t.d)return t.s&&(t.s=n.s),t}return t.d[0]?(m=!1,n=z(n,t,0,e,1).times(t),m=!0,F(n)):(t.s=n.s,n=t),n},T.toNumber=function(){return+this},T.toOctal=function(t,e){return et(this,8,t,e)},T.toPower=T.pow=function(t){var e,n,i,r,s,o,a=this,l=a.constructor,c=+(t=new l(t));if(!(a.d&&t.d&&a.d[0]&&t.d[0]))return new l(_(+a,c));if((a=new l(a)).eq(1))return a;if(i=l.precision,s=l.rounding,t.eq(1))return F(a,i,s);if((e=A(t.e/7))>=t.d.length-1&&(n=c<0?-c:c)<=9007199254740991)return r=H(l,a,n,i),t.s<0?new l(1).div(r):F(r,i,s);if((o=a.s)<0){if(e<t.d.length-1)return new l(NaN);if(1&t.d[e]||(o=1),0==a.e&&1==a.d[0]&&1==a.d.length)return a.s=o,a}return(e=0!=(n=_(+a,c))&&isFinite(n)?new l(n+"").e:A(c*(Math.log("0."+N(a.d))/Math.LN10+a.e+1)))>l.maxE+1||e<l.minE-1?new l(e>0?o/0:0):(m=!1,l.rounding=a.s=1,n=Math.min(12,(e+"").length),(r=G(t.times(Q(a,i+n)),i)).d&&j((r=F(r,i+5,1)).d,i,s)&&(e=i+10,+N((r=F(G(t.times(Q(a,e+n)),e),e+5,1)).d).slice(i+1,i+15)+1==1e14&&(r=F(r,i+1,0))),r.s=o,m=!0,l.rounding=s,F(r,i,s))},T.toPrecision=function(t,e){var n,i=this,r=i.constructor;return void 0===t?n=P(i,i.e<=r.toExpNeg||i.e>=r.toExpPos):(O(t,1,d),void 0===e?e=r.rounding:O(e,0,8),n=P(i=F(new r(i),t,e),t<=i.e||i.e<=r.toExpNeg,t)),i.isNeg()&&!i.isZero()?"-"+n:n},T.toSignificantDigits=T.toSD=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(O(t,1,d),void 0===e?e=n.rounding:O(e,0,8)),F(new n(this),t,e)},T.toString=function(){var t=this,e=t.constructor,n=P(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+n:n},T.truncated=T.trunc=function(){return F(new this.constructor(this),this.e+1,1)},T.valueOf=T.toJSON=function(){var t=this,e=t.constructor,n=P(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+n:n};var z=function(){function t(t,e,n){var i,r=0,s=t.length;for(t=t.slice();s--;)i=t[s]*e+r,t[s]=i%n|0,r=i/n|0;return r&&t.unshift(r),t}function e(t,e,n,i){var r,s;if(n!=i)s=n>i?1:-1;else for(r=s=0;r<n;r++)if(t[r]!=e[r]){s=t[r]>e[r]?1:-1;break}return s}function n(t,e,n,i){for(var r=0;n--;)t[n]-=r,r=t[n]<e[n]?1:0,t[n]=r*i+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(i,r,s,a,l,c){var u,d,h,p,f,g,m,v,y,b,x,w,_,C,M,k,S,L,D,T,N=i.constructor,O=i.s==r.s?1:-1,j=i.d,E=r.d;if(!(j&&j[0]&&E&&E[0]))return new N(i.s&&r.s&&(j?!E||j[0]!=E[0]:E)?j&&0==j[0]||!E?0*O:O/0:NaN);for(c?(f=1,d=i.e-r.e):(c=I,f=7,d=A(i.e/f)-A(r.e/f)),D=E.length,S=j.length,b=(y=new N(O)).d=[],h=0;E[h]==(j[h]||0);h++);if(E[h]>(j[h]||0)&&d--,null==s?(C=s=N.precision,a=N.rounding):C=l?s+(i.e-r.e)+1:s,C<0)b.push(1),g=!0;else{if(C=C/f+2|0,h=0,1==D){for(p=0,E=E[0],C++;(h<S||p)&&C--;h++)M=p*c+(j[h]||0),b[h]=M/E|0,p=M%E|0;g=p||h<S}else{for((p=c/(E[0]+1)|0)>1&&(E=t(E,p,c),j=t(j,p,c),D=E.length,S=j.length),k=D,w=(x=j.slice(0,D)).length;w<D;)x[w++]=0;(T=E.slice()).unshift(0),L=E[0],E[1]>=c/2&&++L;do{p=0,(u=e(E,x,D,w))<0?(_=x[0],D!=w&&(_=_*c+(x[1]||0)),(p=_/L|0)>1?(p>=c&&(p=c-1),1==(u=e(m=t(E,p,c),x,v=m.length,w=x.length))&&(p--,n(m,D<v?T:E,v,c))):(0==p&&(u=p=1),m=E.slice()),(v=m.length)<w&&m.unshift(0),n(x,m,w,c),-1==u&&(u=e(E,x,D,w=x.length))<1&&(p++,n(x,D<w?T:E,w,c)),w=x.length):0===u&&(p++,x=[0]),b[h++]=p,u&&x[0]?x[w++]=j[k]||0:(x=[j[k]],w=1)}while((k++<S||void 0!==x[0])&&C--);g=void 0!==x[0]}b[0]||b.shift()}if(1==f)y.e=d,o=g;else{for(h=1,p=b[0];p>=10;p/=10)h++;y.e=h+d*f-1,F(y,l?s+y.e+1:s,a,g)}return y}}();function F(t,e,n,i){var r,s,o,a,l,c,u,d,h,p=t.constructor;t:if(null!=e){if(!(d=t.d))return t;for(r=1,a=d[0];a>=10;a/=10)r++;if((s=e-r)<0)s+=7,o=e,l=(u=d[h=0])/_(10,r-o-1)%10|0;else if((h=Math.ceil((s+1)/7))>=(a=d.length)){if(!i)break t;for(;a++<=h;)d.push(0);u=l=0,r=1,o=(s%=7)-7+1}else{for(u=a=d[h],r=1;a>=10;a/=10)r++;l=(o=(s%=7)-7+r)<0?0:u/_(10,r-o-1)%10|0}if(i=i||e<0||void 0!==d[h+1]||(o<0?u:u%_(10,r-o-1)),c=n<4?(l||i)&&(0==n||n==(t.s<0?3:2)):l>5||5==l&&(4==n||i||6==n&&(s>0?o>0?u/_(10,r-o):0:d[h-1])%10&1||n==(t.s<0?8:7)),e<1||!d[0])return d.length=0,c?(e-=t.e+1,d[0]=_(10,(7-e%7)%7),t.e=-e||0):d[0]=t.e=0,t;if(0==s?(d.length=h,a=1,h--):(d.length=h+1,a=_(10,7-s),d[h]=o>0?(u/_(10,r-o)%_(10,o)|0)*a:0),c)for(;;){if(0==h){for(s=1,o=d[0];o>=10;o/=10)s++;for(o=d[0]+=a,a=1;o>=10;o/=10)a++;s!=a&&(t.e++,d[0]==I&&(d[0]=1));break}if(d[h]+=a,d[h]!=I)break;d[h--]=0,a=1}for(s=d.length;0===d[--s];)d.pop()}return m&&(t.e>p.maxE?(t.d=null,t.e=NaN):t.e<p.minE&&(t.e=0,t.d=[0])),t}function P(t,e,n){if(!t.isFinite())return J(t);var i,r=t.e,s=N(t.d),o=s.length;return e?(n&&(i=n-o)>0?s=s.charAt(0)+"."+s.slice(1)+W(i):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(t.e<0?"e":"e+")+t.e):r<0?(s="0."+W(-r-1)+s,n&&(i=n-o)>0&&(s+=W(i))):r>=o?(s+=W(r+1-o),n&&(i=n-r-1)>0&&(s=s+"."+W(i))):((i=r+1)<o&&(s=s.slice(0,i)+"."+s.slice(i)),n&&(i=n-o)>0&&(r+1===o&&(s+="."),s+=W(i))),s}function R(t,e){var n=t[0];for(e*=7;n>=10;n/=10)e++;return e}function Y(t,e,n){if(e>L)throw m=!0,n&&(t.precision=n),Error(b);return F(new t(p),e,1,!0)}function U(t,e,n){if(e>D)throw Error(b);return F(new t(f),e,n,!0)}function B(t){var e=t.length-1,n=7*e+1;if(e=t[e]){for(;e%10==0;e/=10)n--;for(e=t[0];e>=10;e/=10)n++}return n}function W(t){for(var e="";t--;)e+="0";return e}function H(t,e,n,i){var r,s=new t(1),o=Math.ceil(i/7+4);for(m=!1;;){if(n%2&&nt((s=s.times(e)).d,o)&&(r=!0),0===(n=A(n/2))){n=s.d.length-1,r&&0===s.d[n]&&++s.d[n];break}nt((e=e.times(e)).d,o)}return m=!0,s}function V(t){return 1&t.d[t.d.length-1]}function Z(t,e,n){for(var i,r=new t(e[0]),s=0;++s<e.length;){if(!(i=new t(e[s])).s){r=i;break}r[n](i)&&(r=i)}return r}function G(t,e){var n,i,r,s,o,a,l,c=0,u=0,d=0,h=t.constructor,p=h.rounding,f=h.precision;if(!t.d||!t.d[0]||t.e>17)return new h(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(m=!1,l=f):l=e,a=new h(.03125);t.e>-2;)t=t.times(a),d+=5;for(l+=i=Math.log(_(2,d))/Math.LN10*2+5|0,n=s=o=new h(1),h.precision=l;;){if(s=F(s.times(t),l,1),n=n.times(++u),N((a=o.plus(z(s,n,l,1))).d).slice(0,l)===N(o.d).slice(0,l)){for(r=d;r--;)o=F(o.times(o),l,1);if(null!=e)return h.precision=f,o;if(!(c<3&&j(o.d,l-i,p,c)))return F(o,h.precision=f,p,m=!0);h.precision=l+=10,n=s=a=new h(1),u=0,c++}o=a}}function Q(t,e){var n,i,r,s,o,a,l,c,u,d,h,p=1,f=t,g=f.d,v=f.constructor,y=v.rounding,b=v.precision;if(f.s<0||!g||!g[0]||!f.e&&1==g[0]&&1==g.length)return new v(g&&!g[0]?-1/0:1!=f.s?NaN:g?0:f);if(null==e?(m=!1,u=b):u=e,v.precision=u+=10,i=(n=N(g)).charAt(0),!(Math.abs(s=f.e)<15e14))return c=Y(v,u+2,b).times(s+""),f=Q(new v(i+"."+n.slice(1)),u-10).plus(c),v.precision=b,null==e?F(f,b,y,m=!0):f;for(;i<7&&1!=i||1==i&&n.charAt(1)>3;)i=(n=N((f=f.times(t)).d)).charAt(0),p++;for(s=f.e,i>1?(f=new v("0."+n),s++):f=new v(i+"."+n.slice(1)),d=f,l=o=f=z(f.minus(1),f.plus(1),u,1),h=F(f.times(f),u,1),r=3;;){if(o=F(o.times(h),u,1),N((c=l.plus(z(o,new v(r),u,1))).d).slice(0,u)===N(l.d).slice(0,u)){if(l=l.times(2),0!==s&&(l=l.plus(Y(v,u+2,b).times(s+""))),l=z(l,new v(p),u,1),null!=e)return v.precision=b,l;if(!j(l.d,u-10,y,a))return F(l,v.precision=b,y,m=!0);v.precision=u+=10,c=o=f=z(d.minus(1),d.plus(1),u,1),h=F(f.times(f),u,1),r=a=1}l=c,r+=2}}function J(t){return String(t.s*t.s/0)}function X(t,e){var n,i,r;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(i=e.search(/e/i))>0?(n<0&&(n=i),n+=+e.slice(i+1),e=e.substring(0,i)):n<0&&(n=e.length),i=0;48===e.charCodeAt(i);i++);for(r=e.length;48===e.charCodeAt(r-1);--r);if(e=e.slice(i,r)){if(r-=i,t.e=n=n-i-1,t.d=[],i=(n+1)%7,n<0&&(i+=7),i<r){for(i&&t.d.push(+e.slice(0,i)),r-=7;i<r;)t.d.push(+e.slice(i,i+=7));i=7-(e=e.slice(i)).length}else i-=r;for(;i--;)e+="0";t.d.push(+e),m&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function q(t,e){var n,i,r,s,o,a,l,c,u;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),S.test(e))return X(t,e)}else if("Infinity"===e||"NaN"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(M.test(e))n=16,e=e.toLowerCase();else if(C.test(e))n=2;else{if(!k.test(e))throw Error(y+e);n=8}for((s=e.search(/p/i))>0?(l=+e.slice(s+1),e=e.substring(2,s)):e=e.slice(2),o=(s=e.indexOf("."))>=0,i=t.constructor,o&&(s=(a=(e=e.replace(".","")).length)-s,r=H(i,new i(n),s,2*s)),s=u=(c=E(e,n,I)).length-1;0===c[s];--s)c.pop();return s<0?new i(0*t.s):(t.e=R(c,u),t.d=c,m=!1,o&&(t=z(t,r,4*a)),l&&(t=t.times(Math.abs(l)<54?_(2,l):Wt.pow(2,l))),m=!0,t)}function $(t,e,n,i,r){var s,o,a,l,c=t.precision,u=Math.ceil(c/7);for(m=!1,l=n.times(n),a=new t(i);;){if(o=z(a.times(l),new t(e++*e++),c,1),a=r?i.plus(o):i.minus(o),i=z(o.times(l),new t(e++*e++),c,1),void 0!==(o=a.plus(i)).d[u]){for(s=u;o.d[s]===a.d[s]&&s--;);if(-1==s)break}s=a,a=i,i=o,o=s}return m=!0,o.d.length=u+1,o}function K(t,e){for(var n=t;--e;)n*=t;return n}function tt(t,e){var n,i=e.s<0,r=U(t,t.precision,1),s=r.times(.5);if((e=e.abs()).lte(s))return a=i?4:1,e;if((n=e.divToInt(r)).isZero())a=i?3:2;else{if((e=e.minus(n.times(r))).lte(s))return a=V(n)?i?2:3:i?4:1,e;a=V(n)?i?1:4:i?3:2}return e.minus(r).abs()}function et(t,e,n,i){var r,s,a,l,c,u,p,f,g,m=t.constructor,v=void 0!==n;if(v?(O(n,1,d),void 0===i?i=m.rounding:O(i,0,8)):(n=m.precision,i=m.rounding),t.isFinite()){for(v?(r=2,16==e?n=4*n-3:8==e&&(n=3*n-2)):r=e,(a=(p=P(t)).indexOf("."))>=0&&(p=p.replace(".",""),(g=new m(1)).e=p.length-a,g.d=E(P(g),10,r),g.e=g.d.length),s=c=(f=E(p,10,r)).length;0==f[--c];)f.pop();if(f[0]){if(a<0?s--:((t=new m(t)).d=f,t.e=s,f=(t=z(t,g,n,i,0,r)).d,s=t.e,u=o),a=f[n],l=r/2,u=u||void 0!==f[n+1],u=i<4?(void 0!==a||u)&&(0===i||i===(t.s<0?3:2)):a>l||a===l&&(4===i||u||6===i&&1&f[n-1]||i===(t.s<0?8:7)),f.length=n,u)for(;++f[--n]>r-1;)f[n]=0,n||(++s,f.unshift(1));for(c=f.length;!f[c-1];--c);for(a=0,p="";a<c;a++)p+=h.charAt(f[a]);if(v){if(c>1)if(16==e||8==e){for(a=16==e?4:3,--c;c%a;c++)p+="0";for(c=(f=E(p,r,e)).length;!f[c-1];--c);for(a=1,p="1.";a<c;a++)p+=h.charAt(f[a])}else p=p.charAt(0)+"."+p.slice(1);p=p+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)p="0"+p;p="0."+p}else if(++s>c)for(s-=c;s--;)p+="0";else s<c&&(p=p.slice(0,s)+"."+p.slice(s))}else p=v?"0p+0":"0";p=(16==e?"0x":2==e?"0b":8==e?"0o":"")+p}else p=J(t);return t.s<0?"-"+p:p}function nt(t,e){if(t.length>e)return t.length=e,!0}function it(t){return new this(t).abs()}function rt(t){return new this(t).acos()}function st(t){return new this(t).acosh()}function ot(t,e){return new this(t).plus(e)}function at(t){return new this(t).asin()}function lt(t){return new this(t).asinh()}function ct(t){return new this(t).atan()}function ut(t){return new this(t).atanh()}function dt(t,e){t=new this(t),e=new this(e);var n,i=this.precision,r=this.rounding,s=i+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(n=e.s<0?U(this,i,r):new this(0)).s=t.s:!t.d||e.isZero()?(n=U(this,s,1).times(.5)).s=t.s:e.s<0?(this.precision=s,this.rounding=1,n=this.atan(z(t,e,s,1)),e=U(this,s,1),this.precision=i,this.rounding=r,n=t.s<0?n.minus(e):n.plus(e)):n=this.atan(z(t,e,s,1)):(n=U(this,s,1).times(e.s>0?.25:.75)).s=t.s:n=new this(NaN),n}function ht(t){return new this(t).cbrt()}function pt(t){return F(t=new this(t),t.e+1,2)}function ft(t,e,n){return new this(t).clamp(e,n)}function gt(t){if(!t||"object"!=typeof t)throw Error(v+"Object expected");var e,n,i,r=!0===t.defaults,s=["precision",1,d,"rounding",0,8,"toExpNeg",-u,0,"toExpPos",0,u,"maxE",0,u,"minE",-u,0,"modulo",0,9];for(e=0;e<s.length;e+=3)if(n=s[e],r&&(this[n]=g[n]),void 0!==(i=t[n])){if(!(A(i)===i&&i>=s[e+1]&&i<=s[e+2]))throw Error(y+n+": "+i);this[n]=i}if(n="crypto",r&&(this[n]=g[n]),void 0!==(i=t[n])){if(!0!==i&&!1!==i&&0!==i&&1!==i)throw Error(y+n+": "+i);if(i){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(x);this[n]=!0}else this[n]=!1}return this}function mt(t){return new this(t).cos()}function vt(t){return new this(t).cosh()}function yt(t,e){return new this(t).div(e)}function bt(t){return new this(t).exp()}function xt(t){return F(t=new this(t),t.e+1,3)}function wt(){var t,e,n=new this(0);for(m=!1,t=0;t<arguments.length;)if((e=new this(arguments[t++])).d)n.d&&(n=n.plus(e.times(e)));else{if(e.s)return m=!0,new this(1/0);n=e}return m=!0,n.sqrt()}function At(t){return t instanceof Wt||t&&t.toStringTag===w||!1}function _t(t){return new this(t).ln()}function Ct(t,e){return new this(t).log(e)}function Mt(t){return new this(t).log(2)}function kt(t){return new this(t).log(10)}function St(){return Z(this,arguments,"lt")}function It(){return Z(this,arguments,"gt")}function Lt(t,e){return new this(t).mod(e)}function Dt(t,e){return new this(t).mul(e)}function Tt(t,e){return new this(t).pow(e)}function Nt(t){var e,n,i,r,s=0,o=new this(1),a=[];if(void 0===t?t=this.precision:O(t,1,d),i=Math.ceil(t/7),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(i));s<i;)(r=e[s])>=429e7?e[s]=crypto.getRandomValues(new Uint32Array(1))[0]:a[s++]=r%1e7;else{if(!crypto.randomBytes)throw Error(x);for(e=crypto.randomBytes(i*=4);s<i;)(r=e[s]+(e[s+1]<<8)+(e[s+2]<<16)+((127&e[s+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,s):(a.push(r%1e7),s+=4);s=i/4}else for(;s<i;)a[s++]=1e7*Math.random()|0;for(t%=7,(i=a[--s])&&t&&(r=_(10,7-t),a[s]=(i/r|0)*r);0===a[s];s--)a.pop();if(s<0)n=0,a=[0];else{for(n=-1;0===a[0];n-=7)a.shift();for(i=1,r=a[0];r>=10;r/=10)i++;i<7&&(n-=7-i)}return o.e=n,o.d=a,o}function Ot(t){return F(t=new this(t),t.e+1,this.rounding)}function jt(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function Et(t){return new this(t).sin()}function zt(t){return new this(t).sinh()}function Ft(t){return new this(t).sqrt()}function Pt(t,e){return new this(t).sub(e)}function Rt(){var t=0,e=arguments,n=new this(e[t]);for(m=!1;n.s&&++t<e.length;)n=n.plus(e[t]);return m=!0,F(n,this.precision,this.rounding)}function Yt(t){return new this(t).tan()}function Ut(t){return new this(t).tanh()}function Bt(t){return F(t=new this(t),t.e+1,1)}T[Symbol.for("nodejs.util.inspect.custom")]=T.toString,T[Symbol.toStringTag]="Decimal";var Wt=T.constructor=function t(e){var n,i,r;function s(t){var e,n,i,r=this;if(!(r instanceof s))return new s(t);if(r.constructor=s,At(t))return r.s=t.s,void(m?!t.d||t.e>s.maxE?(r.e=NaN,r.d=null):t.e<s.minE?(r.e=0,r.d=[0]):(r.e=t.e,r.d=t.d.slice()):(r.e=t.e,r.d=t.d?t.d.slice():t.d));if("number"==(i=typeof t)){if(0===t)return r.s=1/t<0?-1:1,r.e=0,void(r.d=[0]);if(t<0?(t=-t,r.s=-1):r.s=1,t===~~t&&t<1e7){for(e=0,n=t;n>=10;n/=10)e++;return void(m?e>s.maxE?(r.e=NaN,r.d=null):e<s.minE?(r.e=0,r.d=[0]):(r.e=e,r.d=[t]):(r.e=e,r.d=[t]))}return 0*t!=0?(t||(r.s=NaN),r.e=NaN,void(r.d=null)):X(r,t.toString())}if("string"!==i)throw Error(y+t);return 45===(n=t.charCodeAt(0))?(t=t.slice(1),r.s=-1):(43===n&&(t=t.slice(1)),r.s=1),S.test(t)?X(r,t):q(r,t)}if(s.prototype=T,s.ROUND_UP=0,s.ROUND_DOWN=1,s.ROUND_CEIL=2,s.ROUND_FLOOR=3,s.ROUND_HALF_UP=4,s.ROUND_HALF_DOWN=5,s.ROUND_HALF_EVEN=6,s.ROUND_HALF_CEIL=7,s.ROUND_HALF_FLOOR=8,s.EUCLID=9,s.config=s.set=gt,s.clone=t,s.isDecimal=At,s.abs=it,s.acos=rt,s.acosh=st,s.add=ot,s.asin=at,s.asinh=lt,s.atan=ct,s.atanh=ut,s.atan2=dt,s.cbrt=ht,s.ceil=pt,s.clamp=ft,s.cos=mt,s.cosh=vt,s.div=yt,s.exp=bt,s.floor=xt,s.hypot=wt,s.ln=_t,s.log=Ct,s.log10=kt,s.log2=Mt,s.max=St,s.min=It,s.mod=Lt,s.mul=Dt,s.pow=Tt,s.random=Nt,s.round=Ot,s.sign=jt,s.sin=Et,s.sinh=zt,s.sqrt=Ft,s.sub=Pt,s.sum=Rt,s.tan=Yt,s.tanh=Ut,s.trunc=Bt,void 0===e&&(e={}),e&&!0!==e.defaults)for(r=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],n=0;n<r.length;)e.hasOwnProperty(i=r[n++])||(e[i]=this[i]);return s.config(e),s}(g);p=new Wt(p),f=new Wt(f);const Ht=Wt,Vt=t=>"string"==typeof t,Zt=()=>{let t,e;const n=new Promise(((n,i)=>{t=n,e=i}));return n.resolve=t,n.reject=e,n},Gt=t=>null==t?"":""+t,Qt=/###/g,Jt=t=>t&&t.indexOf("###")>-1?t.replace(Qt,"."):t,Xt=t=>!t||Vt(t),qt=(t,e,n)=>{const i=Vt(e)?e.split("."):e;let r=0;for(;r<i.length-1;){if(Xt(t))return{};const e=Jt(i[r]);!t[e]&&n&&(t[e]=new n),t=Object.prototype.hasOwnProperty.call(t,e)?t[e]:{},++r}return Xt(t)?{}:{obj:t,k:Jt(i[r])}},$t=(t,e,n)=>{const{obj:i,k:r}=qt(t,e,Object);if(void 0!==i||1===e.length)return void(i[r]=n);let s=e[e.length-1],o=e.slice(0,e.length-1),a=qt(t,o,Object);for(;void 0===a.obj&&o.length;)s=`${o[o.length-1]}.${s}`,o=o.slice(0,o.length-1),a=qt(t,o,Object),a&&a.obj&&void 0!==a.obj[`${a.k}.${s}`]&&(a.obj=void 0);a.obj[`${a.k}.${s}`]=n},Kt=(t,e)=>{const{obj:n,k:i}=qt(t,e);if(n)return n[i]},te=(t,e,n)=>{for(const i in e)"__proto__"!==i&&"constructor"!==i&&(i in t?Vt(t[i])||t[i]instanceof String||Vt(e[i])||e[i]instanceof String?n&&(t[i]=e[i]):te(t[i],e[i],n):t[i]=e[i]);return t},ee=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var ne={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const ie=t=>Vt(t)?t.replace(/[&<>"'\/]/g,(t=>ne[t])):t,re=[" ",",","?","!",";"],se=new class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const e=this.regExpMap.get(t);if(void 0!==e)return e;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}(20),oe=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!t)return;if(t[e])return t[e];const i=e.split(n);let r=t;for(let t=0;t<i.length;){if(!r||"object"!=typeof r)return;let e,s="";for(let o=t;o<i.length;++o)if(o!==t&&(s+=n),s+=i[o],e=r[s],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&o<i.length-1)continue;t+=o-t+1;break}r=e}return r},ae=t=>t&&t.replace("_","-"),le={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class ce{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(t,e)}init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||le,this.options=e,this.debug=e.debug}log(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"log","",!0)}warn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","",!0)}error(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"error","")}deprecate(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(t,e,n,i){return i&&!this.debug?null:(Vt(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[e](t))}create(t){return new ce(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new ce(this.logger,t)}}var ue=new ce;class de{constructor(){this.observers={}}on(t,e){return t.split(" ").forEach((t=>{this.observers[t]||(this.observers[t]=new Map);const n=this.observers[t].get(e)||0;this.observers[t].set(e,n+1)})),this}off(t,e){this.observers[t]&&(e?this.observers[t].delete(e):delete this.observers[t])}emit(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this.observers[t]&&Array.from(this.observers[t].entries()).forEach((t=>{let[e,i]=t;for(let t=0;t<i;t++)e(...n)})),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach((e=>{let[i,r]=e;for(let e=0;e<r;e++)i.apply(i,[t,...n])}))}}class he extends de{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}getResource(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;t.indexOf(".")>-1?o=t.split("."):(o=[t,e],n&&(Array.isArray(n)?o.push(...n):Vt(n)&&r?o.push(...n.split(r)):o.push(n)));const a=Kt(this.data,o);return!a&&!e&&!n&&t.indexOf(".")>-1&&(t=o[0],e=o[1],n=o.slice(2).join(".")),!a&&s&&Vt(n)?oe(this.data&&this.data[t]&&this.data[t][e],n,r):a}addResource(t,e,n,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const s=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator;let o=[t,e];n&&(o=o.concat(s?n.split(s):n)),t.indexOf(".")>-1&&(o=t.split("."),i=e,e=o[1]),this.addNamespaces(e),$t(this.data,o,i),r.silent||this.emit("added",t,e,n,i)}addResources(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const i in n)(Vt(n[i])||Array.isArray(n[i]))&&this.addResource(t,e,i,n[i],{silent:!0});i.silent||this.emit("added",t,e,n)}addResourceBundle(t,e,n,i,r){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},o=[t,e];t.indexOf(".")>-1&&(o=t.split("."),i=n,n=e,e=o[1]),this.addNamespaces(e);let a=Kt(this.data,o)||{};s.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?te(a,n,r):a={...a,...n},$t(this.data,o,a),s.silent||this.emit("added",t,e,n)}removeResourceBundle(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}hasResourceBundle(t,e){return void 0!==this.getResource(t,e)}getResourceBundle(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(t,e)}:this.getResource(t,e)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find((t=>e[t]&&Object.keys(e[t]).length>0))}toJSON(){return this.data}}var pe={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,i,r){return t.forEach((t=>{this.processors[t]&&(e=this.processors[t].process(e,n,i,r))})),e}};const fe={};class ge extends de{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,i;super(),n=t,i=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((t=>{n[t]&&(i[t]=n[t])})),this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=ue.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==t)return!1;const n=this.resolve(t,e);return n&&void 0!==n.res}extractFromKey(t,e){let n=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const i=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator;let r=e.ns||this.options.defaultNS||[];const s=n&&t.indexOf(n)>-1,o=!(this.options.userDefinedKeySeparator||e.keySeparator||this.options.userDefinedNsSeparator||e.nsSeparator||((t,e,n)=>{e=e||"",n=n||"";const i=re.filter((t=>e.indexOf(t)<0&&n.indexOf(t)<0));if(0===i.length)return!0;const r=se.getRegExp(`(${i.map((t=>"?"===t?"\\?":t)).join("|")})`);let s=!r.test(t);if(!s){const e=t.indexOf(n);e>0&&!r.test(t.substring(0,e))&&(s=!0)}return s})(t,n,i));if(s&&!o){const e=t.match(this.interpolator.nestingRegexp);if(e&&e.length>0)return{key:t,namespaces:r};const s=t.split(n);(n!==i||n===i&&this.options.ns.indexOf(s[0])>-1)&&(r=s.shift()),t=s.join(i)}return Vt(r)&&(r=[r]),{key:t,namespaces:r}}translate(t,e,n){if("object"!=typeof e&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof e&&(e={...e}),e||(e={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);const i=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,r=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,{key:s,namespaces:o}=this.extractFromKey(t[t.length-1],e),a=o[o.length-1],l=e.lng||this.language,c=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(c){const t=e.nsSeparator||this.options.nsSeparator;return i?{res:`${a}${t}${s}`,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(e)}:`${a}${t}${s}`}return i?{res:s,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(e)}:s}const u=this.resolve(t,e);let d=u&&u.res;const h=u&&u.usedKey||s,p=u&&u.exactUsedKey||s,f=Object.prototype.toString.apply(d),g=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!Vt(d)&&"boolean"!=typeof d&&"number"!=typeof d;if(!(m&&d&&v&&["[object Number]","[object Function]","[object RegExp]"].indexOf(f)<0)||Vt(g)&&Array.isArray(d))if(m&&Vt(g)&&Array.isArray(d))d=d.join(g),d&&(d=this.extendTranslation(d,t,e,n));else{let i=!1,o=!1;const c=void 0!==e.count&&!Vt(e.count),h=ge.hasDefaultValue(e),p=c?this.pluralResolver.getSuffix(l,e.count,e):"",f=e.ordinal&&c?this.pluralResolver.getSuffix(l,e.count,{ordinal:!1}):"",g=c&&!e.ordinal&&0===e.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&e[`defaultValue${this.options.pluralSeparator}zero`]||e[`defaultValue${p}`]||e[`defaultValue${f}`]||e.defaultValue;!this.isValidLookup(d)&&h&&(i=!0,d=m),this.isValidLookup(d)||(o=!0,d=s);const v=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:d,y=h&&m!==d&&this.options.updateMissing;if(o||i||y){if(this.logger.log(y?"updateKey":"missingKey",l,a,s,y?m:d),r){const t=this.resolve(s,{...e,keySeparator:!1});t&&t.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.")}let t=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let e=0;e<n.length;e++)t.push(n[e]);else"all"===this.options.saveMissingTo?t=this.languageUtils.toResolveHierarchy(e.lng||this.language):t.push(e.lng||this.language);const i=(t,n,i)=>{const r=h&&i!==d?i:v;this.options.missingKeyHandler?this.options.missingKeyHandler(t,a,n,r,y,e):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(t,a,n,r,y,e),this.emit("missingKey",t,a,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?t.forEach((t=>{const n=this.pluralResolver.getSuffixes(t,e);g&&e[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach((n=>{i([t],s+n,e[`defaultValue${n}`]||m)}))})):i(t,s,m))}d=this.extendTranslation(d,t,e,u,n),o&&d===s&&this.options.appendNamespaceToMissingKey&&(d=`${a}:${s}`),(o||i)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${s}`:s,i?d:void 0):this.options.parseMissingKeyHandler(d))}else{if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,d,{...e,ns:o}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(u.res=t,u.usedParams=this.getUsedParamsDetails(e),u):t}if(r){const t=Array.isArray(d),n=t?[]:{},i=t?p:h;for(const t in d)if(Object.prototype.hasOwnProperty.call(d,t)){const s=`${i}${r}${t}`;n[t]=this.translate(s,{...e,joinArrays:!1,ns:o}),n[t]===s&&(n[t]=d[t])}d=n}}return i?(u.res=d,u.usedParams=this.getUsedParamsDetails(e),u):d}extendTranslation(t,e,n,i,r){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const o=Vt(t)&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(o){const e=t.match(this.interpolator.nestingRegexp);a=e&&e.length}let l=n.replace&&!Vt(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),t=this.interpolator.interpolate(t,l,n.lng||this.language||i.usedLng,n),o){const e=t.match(this.interpolator.nestingRegexp);a<(e&&e.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&i&&i.res&&(n.lng=this.language||i.usedLng),!1!==n.nest&&(t=this.interpolator.nest(t,(function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return r&&r[0]===i[0]&&!n.context?(s.logger.warn(`It seems you are nesting recursively key: ${i[0]} in key: ${e[0]}`),null):s.translate(...i,e)}),n)),n.interpolation&&this.interpolator.reset()}const o=n.postProcess||this.options.postProcess,a=Vt(o)?[o]:o;return null!=t&&a&&a.length&&!1!==n.applyPostProcessor&&(t=pe.handle(a,t,e,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let e,n,i,r,s,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Vt(t)&&(t=[t]),t.forEach((t=>{if(this.isValidLookup(e))return;const a=this.extractFromKey(t,o),l=a.key;n=l;let c=a.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==o.count&&!Vt(o.count),d=u&&!o.ordinal&&0===o.count&&this.pluralResolver.shouldUseIntlApi(),h=void 0!==o.context&&(Vt(o.context)||"number"==typeof o.context)&&""!==o.context,p=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);c.forEach((t=>{this.isValidLookup(e)||(s=t,!fe[`${p[0]}-${t}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(fe[`${p[0]}-${t}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${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!!!")),p.forEach((n=>{if(this.isValidLookup(e))return;r=n;const s=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(s,l,n,t,o);else{let t;u&&(t=this.pluralResolver.getSuffix(n,o.count,o));const e=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(s.push(l+t),o.ordinal&&0===t.indexOf(i)&&s.push(l+t.replace(i,this.options.pluralSeparator)),d&&s.push(l+e)),h){const n=`${l}${this.options.contextSeparator}${o.context}`;s.push(n),u&&(s.push(n+t),o.ordinal&&0===t.indexOf(i)&&s.push(n+t.replace(i,this.options.pluralSeparator)),d&&s.push(n+e))}}let a;for(;a=s.pop();)this.isValidLookup(e)||(i=a,e=this.getResource(n,t,a,o))})))}))})),{res:e,usedKey:n,exactUsedKey:i,usedLng:r,usedNS:s}}isValidLookup(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}getResource(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,n,i):this.resourceStore.getResource(t,e,n,i)}getUsedParamsDetails(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!Vt(t.replace);let i=n?t.replace:t;if(n&&void 0!==t.count&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!n){i={...i};for(const t of e)delete i[t]}return i}static hasDefaultValue(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&"defaultValue"===e.substring(0,12)&&void 0!==t[e])return!0;return!1}}const me=t=>t.charAt(0).toUpperCase()+t.slice(1);class ve{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ue.create("languageUtils")}getScriptPartFromCode(t){if(!(t=ae(t))||t.indexOf("-")<0)return null;const e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}getLanguagePartFromCode(t){if(!(t=ae(t))||t.indexOf("-")<0)return t;const e=t.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(t){if(Vt(t)&&t.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let e=Intl.getCanonicalLocales(t)[0];if(e&&this.options.lowerCaseLng&&(e=e.toLowerCase()),e)return e}catch(t){}const e=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map((t=>t.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=me(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=me(n[1].toLowerCase())),e.indexOf(n[2].toLowerCase())>-1&&(n[2]=me(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let e;return t.forEach((t=>{if(e)return;const n=this.formatLanguageCode(t);this.options.supportedLngs&&!this.isSupportedCode(n)||(e=n)})),!e&&this.options.supportedLngs&&t.forEach((t=>{if(e)return;const n=this.getLanguagePartFromCode(t);if(this.isSupportedCode(n))return e=n;e=this.options.supportedLngs.find((t=>t===n?t:t.indexOf("-")<0&&n.indexOf("-")<0?void 0:t.indexOf("-")>0&&n.indexOf("-")<0&&t.substring(0,t.indexOf("-"))===n||0===t.indexOf(n)&&n.length>1?t:void 0))})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}getFallbackCodes(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),Vt(t)&&(t=[t]),Array.isArray(t))return t;if(!e)return t.default||[];let n=t[e];return n||(n=t[this.getScriptPartFromCode(e)]),n||(n=t[this.formatLanguageCode(e)]),n||(n=t[this.getLanguagePartFromCode(e)]),n||(n=t.default),n||[]}toResolveHierarchy(t,e){const n=this.getFallbackCodes(e||this.options.fallbackLng||[],t),i=[],r=t=>{t&&(this.isSupportedCode(t)?i.push(t):this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`))};return Vt(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(t))):Vt(t)&&r(this.formatLanguageCode(t)),n.forEach((t=>{i.indexOf(t)<0&&r(this.formatLanguageCode(t))})),i}}let ye=[{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}],be={1:t=>Number(t>1),2:t=>Number(1!=t),3:t=>0,4:t=>Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2),5:t=>Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5),6:t=>Number(1==t?0:t>=2&&t<=4?1:2),7:t=>Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2),8:t=>Number(1==t?0:2==t?1:8!=t&&11!=t?2:3),9:t=>Number(t>=2),10:t=>Number(1==t?0:2==t?1:t<7?2:t<11?3:4),11:t=>Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3),12:t=>Number(t%10!=1||t%100==11),13:t=>Number(0!==t),14:t=>Number(1==t?0:2==t?1:3==t?2:3),15:t=>Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2),16:t=>Number(t%10==1&&t%100!=11?0:0!==t?1:2),17:t=>Number(1==t||t%10==1&&t%100!=11?0:1),18:t=>Number(0==t?0:1==t?1:2),19:t=>Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3),20:t=>Number(1==t?0:0==t||t%100>0&&t%100<20?1:2),21:t=>Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0),22:t=>Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)};const xe=["v1","v2","v3"],we=["v4"],Ae={zero:0,one:1,two:2,few:3,many:4,other:5};class _e{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=t,this.options=e,this.logger=ue.create("pluralResolver"),this.options.compatibilityJSON&&!we.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const t={};return ye.forEach((e=>{e.lngs.forEach((n=>{t[n]={numbers:e.nr,plurals:be[e.fc]}}))})),t})(),this.pluralRulesCache={}}addRule(t,e){this.rules[t]=e}clearCache(){this.pluralRulesCache={}}getRule(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{const n=ae("dev"===t?"en":t),i=e.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:n,type:i});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];const s=new Intl.PluralRules(n,{type:i});return this.pluralRulesCache[r]=s,s}catch(t){return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(t,e);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,n).map((t=>`${e}${t}`))}getSuffixes(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(t,e);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((t,e)=>Ae[t]-Ae[e])).map((t=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${t}`)):n.numbers.map((n=>this.getSuffix(t,n,e))):[]}getSuffix(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=this.getRule(t,n);return i?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(e)}`:this.getSuffixRetroCompatible(i,e):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,e){const n=t.noAbs?t.plurals(e):t.plurals(Math.abs(e));let i=t.numbers[n];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===i?i="plural":1===i&&(i=""));const r=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?`_plural_${i.toString()}`:r():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?r():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!xe.includes(this.options.compatibilityJSON)}}const Ce=function(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=((t,e,n)=>{const i=Kt(t,n);return void 0!==i?i:Kt(e,n)})(t,e,n);return!s&&r&&Vt(n)&&(s=oe(t,n,i),void 0===s&&(s=oe(e,n,i))),s},Me=t=>t.replace(/\$/g,"$$$$");class ke{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=ue.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(t=>t),this.init(t)}init(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:e,escapeValue:n,useRawValueToEscape:i,prefix:r,prefixEscaped:s,suffix:o,suffixEscaped:a,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:p,nestingSuffixEscaped:f,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:v}=t.interpolation;this.escape=void 0!==e?e:ie,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==i&&i,this.prefix=r?ee(r):s||"{{",this.suffix=o?ee(o):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?ee(d):h||ee("$t("),this.nestingSuffix=p?ee(p):f||ee(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(t,e)=>t&&t.source===e?(t.lastIndex=0,t):new RegExp(e,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,e,n,i){let r,s,o;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=t=>{if(t.indexOf(this.formatSeparator)<0){const r=Ce(e,a,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(r,void 0,n,{...i,...e,interpolationkey:t}):r}const r=t.split(this.formatSeparator),s=r.shift().trim(),o=r.join(this.formatSeparator).trim();return this.format(Ce(e,a,s,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...i,...e,interpolationkey:s})};this.resetRegExp();const c=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,u=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:t=>Me(t)},{regex:this.regexp,safeValue:t=>this.escapeValue?Me(this.escape(t)):Me(t)}].forEach((e=>{for(o=0;r=e.regex.exec(t);){const n=r[1].trim();if(s=l(n),void 0===s)if("function"==typeof c){const e=c(t,r,i);s=Vt(e)?e:""}else if(i&&Object.prototype.hasOwnProperty.call(i,n))s="";else{if(u){s=r[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${t}`),s=""}else Vt(s)||this.useRawValueToEscape||(s=Gt(s));const a=e.safeValue(s);if(t=t.replace(r[0],a),u?(e.regex.lastIndex+=s.length,e.regex.lastIndex-=r[0].length):e.regex.lastIndex=0,o++,o>=this.maxReplaces)break}})),t}nest(t,e){let n,i,r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=(t,e)=>{const n=this.nestingOptionsSeparator;if(t.indexOf(n)<0)return t;const i=t.split(new RegExp(`${n}[ ]*{`));let s=`{${i[1]}`;t=i[0],s=this.interpolate(s,r);const o=s.match(/'/g),a=s.match(/"/g);(o&&o.length%2==0&&!a||a.length%2!=0)&&(s=s.replace(/'/g,'"'));try{r=JSON.parse(s),e&&(r={...e,...r})}catch(e){return this.logger.warn(`failed parsing options string in nesting for key ${t}`,e),`${t}${n}${s}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,t};for(;n=this.nestingRegexp.exec(t);){let a=[];r={...s},r=r.replace&&!Vt(r.replace)?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const t=n[1].split(this.formatSeparator).map((t=>t.trim()));n[1]=t.shift(),a=t,l=!0}if(i=e(o.call(this,n[1].trim(),r),r),i&&n[0]===t&&!Vt(i))return i;Vt(i)||(i=Gt(i)),i||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${t}`),i=""),l&&(i=a.reduce(((t,e)=>this.format(t,e,s.lng,{...s,interpolationkey:n[1].trim()})),i.trim())),t=t.replace(n[0],i),this.regexp.lastIndex=0}return t}}const Se=t=>{const e={};return(n,i,r)=>{let s=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(s={...s,[r.interpolationkey]:void 0});const o=i+JSON.stringify(s);let a=e[o];return a||(a=t(ae(i),r),e[o]=a),a(n)}};class Ie{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=ue.create("formatter"),this.options=t,this.formats={number:Se(((t,e)=>{const n=new Intl.NumberFormat(t,{...e});return t=>n.format(t)})),currency:Se(((t,e)=>{const n=new Intl.NumberFormat(t,{...e,style:"currency"});return t=>n.format(t)})),datetime:Se(((t,e)=>{const n=new Intl.DateTimeFormat(t,{...e});return t=>n.format(t)})),relativetime:Se(((t,e)=>{const n=new Intl.RelativeTimeFormat(t,{...e});return t=>n.format(t,e.range||"day")})),list:Se(((t,e)=>{const n=new Intl.ListFormat(t,{...e});return t=>n.format(t)}))},this.init(t)}init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=e.interpolation.formatSeparator||","}add(t,e){this.formats[t.toLowerCase().trim()]=e}addCached(t,e){this.formats[t.toLowerCase().trim()]=Se(e)}format(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=e.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&r[0].indexOf(")")<0&&r.find((t=>t.indexOf(")")>-1))){const t=r.findIndex((t=>t.indexOf(")")>-1));r[0]=[r[0],...r.splice(1,t)].join(this.formatSeparator)}return r.reduce(((t,e)=>{const{formatName:r,formatOptions:s}=(t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const i=t.split("(");e=i[0].toLowerCase().trim();const r=i[1].substring(0,i[1].length-1);"currency"===e&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):"relativetime"===e&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach((t=>{if(t){const[e,...i]=t.split(":"),r=i.join(":").trim().replace(/^'+|'+$/g,""),s=e.trim();n[s]||(n[s]=r),"false"===r&&(n[s]=!1),"true"===r&&(n[s]=!0),isNaN(r)||(n[s]=parseInt(r,10))}}))}return{formatName:e,formatOptions:n}})(e);if(this.formats[r]){let e=t;try{const o=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},a=o.locale||o.lng||i.locale||i.lng||n;e=this.formats[r](t,a,{...s,...i,...o})}catch(t){this.logger.warn(t)}return e}return this.logger.warn(`there was no format function for ${r}`),t}),t)}}class Le extends de{constructor(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=t,this.store=e,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=ue.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,i.backend,i)}queueLoad(t,e,n,i){const r={},s={},o={},a={};return t.forEach((t=>{let i=!0;e.forEach((e=>{const o=`${t}|${e}`;!n.reload&&this.store.hasResourceBundle(t,e)?this.state[o]=2:this.state[o]<0||(1===this.state[o]?void 0===s[o]&&(s[o]=!0):(this.state[o]=1,i=!1,void 0===s[o]&&(s[o]=!0),void 0===r[o]&&(r[o]=!0),void 0===a[e]&&(a[e]=!0)))})),i||(o[t]=!0)})),(Object.keys(r).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(s),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(a)}}loaded(t,e,n){const i=t.split("|"),r=i[0],s=i[1];e&&this.emit("failedLoading",r,s,e),!e&&n&&this.store.addResourceBundle(r,s,n,void 0,void 0,{skipCopy:!0}),this.state[t]=e?-1:2,e&&n&&(this.state[t]=0);const o={};this.queue.forEach((n=>{((t,e,n)=>{const{obj:i,k:r}=qt(t,e,Object);i[r]=i[r]||[],i[r].push(n)})(n.loaded,[r],s),((t,e)=>{void 0!==t.pending[e]&&(delete t.pending[e],t.pendingCount--)})(n,t),e&&n.errors.push(e),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((t=>{o[t]||(o[t]={});const e=n.loaded[t];e.length&&e.forEach((e=>{void 0===o[t][e]&&(o[t][e]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",o),this.queue=this.queue.filter((t=>!t.done))}read(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:t,ns:e,fcName:n,tried:i,wait:r,callback:s});this.readingCalls++;const o=(o,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const t=this.waitingReads.shift();this.read(t.lng,t.ns,t.fcName,t.tried,t.wait,t.callback)}o&&a&&i<this.maxRetries?setTimeout((()=>{this.read.call(this,t,e,n,i+1,2*r,s)}),r):s(o,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(t,e,o);try{const n=a(t,e);n&&"function"==typeof n.then?n.then((t=>o(null,t))).catch(o):o(null,n)}catch(t){o(t)}}prepareLoading(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=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."),i&&i();Vt(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Vt(e)&&(e=[e]);const r=this.queueLoad(t,e,n,i);if(!r.toLoad.length)return r.pending.length||i(),null;r.toLoad.forEach((t=>{this.loadOne(t)}))}load(t,e,n){this.prepareLoading(t,e,{},n)}reload(t,e,n){this.prepareLoading(t,e,{reload:!0},n)}loadOne(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=t.split("|"),i=n[0],r=n[1];this.read(i,r,"read",void 0,void 0,((n,s)=>{n&&this.logger.warn(`${e}loading namespace ${r} for language ${i} failed`,n),!n&&s&&this.logger.log(`${e}loaded namespace ${r} for language ${i}`,s),this.loaded(t,n,s)}))}saveMissing(t,e,n,i,r){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e))this.logger.warn(`did not save key "${n}" as the namespace "${e}" 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!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const a={...s,isUpdate:r},l=this.backend.create.bind(this.backend);if(l.length<6)try{let r;r=5===l.length?l(t,e,n,i,a):l(t,e,n,i),r&&"function"==typeof r.then?r.then((t=>o(null,t))).catch(o):o(null,r)}catch(t){o(t)}else l(t,e,n,i,o,a)}t&&t[0]&&this.store.addResource(t[0],e,n,i)}}}const De=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!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:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if("object"==typeof t[1]&&(e=t[1]),Vt(t[1])&&(e.defaultValue=t[1]),Vt(t[2])&&(e.tDescription=t[2]),"object"==typeof t[2]||"object"==typeof t[3]){const n=t[3]||t[2];Object.keys(n).forEach((t=>{e[t]=n[t]}))}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Te=t=>(Vt(t.ns)&&(t.ns=[t.ns]),Vt(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),Vt(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),Ne=()=>{};class Oe extends de{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=Te(t),this.services={},this.logger=ue,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t=>{"function"==typeof n[t]&&(n[t]=n[t].bind(n))})),e&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,e),this;setTimeout((()=>{this.init(t,e)}),0)}}init(){var t=this;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof e&&(n=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&(Vt(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const i=De();this.options={...i,...this.options,...Te(e)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator);const r=t=>t?"function"==typeof t?new t:t:null;if(!this.options.isClone){let e;this.modules.logger?ue.init(r(this.modules.logger),this.options):ue.init(null,this.options),this.modules.formatter?e=this.modules.formatter:"undefined"!=typeof Intl&&(e=Ie);const n=new ve(this.options);this.store=new he(this.options.resources,this.options);const s=this.services;s.logger=ue,s.resourceStore=this.store,s.languageUtils=n,s.pluralResolver=new _e(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!e||this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format||(s.formatter=r(e),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new ke(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new Le(r(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t.emit(e,...i)})),this.modules.languageDetector&&(s.languageDetector=r(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=r(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new ge(this.services,this.options),this.translator.on("*",(function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t.emit(e,...i)})),this.modules.external.forEach((t=>{t.init&&t.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=Ne),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);t.length>0&&"dev"!==t[0]&&(this.options.lng=t[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((e=>{this[e]=function(){return t.store[e](...arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((e=>{this[e]=function(){return t.store[e](...arguments),t}}));const s=Zt(),o=()=>{const t=(t,e)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(e),n(t,e)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return t(null,this.t.bind(this));this.changeLanguage(this.options.lng,t)};return this.options.resources||!this.options.initImmediate?o():setTimeout(o,0),s}loadResources(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ne;const n=Vt(t)?t:this.language;if("function"==typeof t&&(e=t),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return e();const t=[],i=e=>{e&&"cimode"!==e&&this.services.languageUtils.toResolveHierarchy(e).forEach((e=>{"cimode"!==e&&t.indexOf(e)<0&&t.push(e)}))};n?i(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((t=>i(t))),this.options.preload&&this.options.preload.forEach((t=>i(t))),this.services.backendConnector.load(t,this.options.ns,(t=>{t||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),e(t)}))}else e(null)}reloadResources(t,e,n){const i=Zt();return"function"==typeof t&&(n=t,t=void 0),"function"==typeof e&&(n=e,e=void 0),t||(t=this.languages),e||(e=this.options.ns),n||(n=Ne),this.services.backendConnector.reload(t,e,(t=>{i.resolve(),n(t)})),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&pe.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}setResolvedLanguage(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(t,e){var n=this;this.isLanguageChangingTo=t;const i=Zt();this.emit("languageChanging",t);const r=t=>{this.language=t,this.languages=this.services.languageUtils.toResolveHierarchy(t),this.resolvedLanguage=void 0,this.setResolvedLanguage(t)},s=(t,s)=>{s?(r(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,i.resolve((function(){return n.t(...arguments)})),e&&e(t,(function(){return n.t(...arguments)}))},o=e=>{t||e||!this.services.languageDetector||(e=[]);const n=Vt(e)?e:this.services.languageUtils.getBestMatchFromCodes(e);n&&(this.language||r(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(t=>{s(t,n)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(t):o(this.services.languageDetector.detect()),i}getFixedT(t,e,n){var i=this;const r=function(t,e){let s;if("object"!=typeof e){for(var o=arguments.length,a=new Array(o>2?o-2:0),l=2;l<o;l++)a[l-2]=arguments[l];s=i.options.overloadTranslationOptionHandler([t,e].concat(a))}else s={...e};s.lng=s.lng||r.lng,s.lngs=s.lngs||r.lngs,s.ns=s.ns||r.ns,""!==s.keyPrefix&&(s.keyPrefix=s.keyPrefix||n||r.keyPrefix);const c=i.options.keySeparator||".";let u;return u=s.keyPrefix&&Array.isArray(t)?t.map((t=>`${s.keyPrefix}${c}${t}`)):s.keyPrefix?`${s.keyPrefix}${c}${t}`:t,i.t(u,s)};return Vt(t)?r.lng=t:r.lngs=t,r.ns=e,r.keyPrefix=n,r}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let e=arguments.length>1&&void 0!==arguments[1]?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;const n=e.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const s=(t,e)=>{const n=this.services.backendConnector.state[`${t}|${e}`];return-1===n||0===n||2===n};if(e.precheck){const t=e.precheck(this,s);if(void 0!==t)return t}return!(!this.hasResourceBundle(n,t)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!s(n,t)||i&&!s(r,t)))}loadNamespaces(t,e){const n=Zt();return this.options.ns?(Vt(t)&&(t=[t]),t.forEach((t=>{this.options.ns.indexOf(t)<0&&this.options.ns.push(t)})),this.loadResources((t=>{n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}loadLanguages(t,e){const n=Zt();Vt(t)&&(t=[t]);const i=this.options.preload||[],r=t.filter((t=>i.indexOf(t)<0&&this.services.languageUtils.isSupportedCode(t)));return r.length?(this.options.preload=i.concat(r),this.loadResources((t=>{n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const e=this.services&&this.services.languageUtils||new ve(De());return["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","ckb"].indexOf(e.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new Oe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ne;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},r=new Oe(i);return void 0===t.debug&&void 0===t.prefix||(r.logger=r.logger.clone(t)),["store","services","language"].forEach((t=>{r[t]=this[t]})),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},n&&(r.store=new he(this.store.data,i),r.services.resourceStore=r.store),r.translator=new ge(r.services,i),r.translator.on("*",(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];r.emit(t,...n)})),r.init(i,e),r.translator.options=i,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const je=Oe.createInstance();je.createInstance=Oe.createInstance,je.createInstance,je.dir,je.init,je.loadResources,je.reloadResources,je.use,je.changeLanguage,je.getFixedT,je.t,je.exists,je.setDefaultNamespace,je.hasLoadedNamespace,je.loadNamespaces,je.loadLanguages;const Ee="http://www.xbrl.org/2003/iso4217",ze="calc";function Fe(t,e){return t.hours()+t.minutes()+t.seconds()===0?(e&&(t=t.clone().subtract(1,"day")),t.format("D MMM Y")):t.format("D MMM Y HH:mm:ss")}function Pe(t,e){const n=Ht(t),i=(void 0===e?n.toFixed():n.toFixed(Math.max(0,e))).split(".");return i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),i.join(".")}function Re(t,e){const n=[],i=t.split(" ");let r="";return i.forEach(((t,s)=>{if(r.length>0){const o=r+" "+t;if(!(o.length>e))return s===i.length-1?void n.push(o):void(r=o);n.push(r),r=""}s!==i.length-1&&t.length<e?r=t:n.push(t)})),n}function Ye(t,e){let n=Re(t,e),i=n[0];return n.length>1&&(i+=" …"),i}function Ue(t){return t=t.replace(/^(\d{4,}-\d{2}-\d{2})(?!T|$)/,((t,e)=>e+"T00:00:00")),c().utc(t)}function Be(t,e,n){return t.hasOwnProperty(e)||(t[e]=n),t[e]}function We(t){setTimeout((function e(){t.next().done||setTimeout(e,0)}),0)}function He(t,e){return null==e?null:t.toString()+"-"+e}class Ve{constructor(t,e){this.reportSet=t,this._reportData=e,this._reverseRelationshipCache={}}availableLanguages(){if(!this._availableLanguages){this._availableLanguages=new Set;for(const t of Object.values(this._reportData.concepts))for(const e of Object.values(t.labels))for(const t of Object.keys(e))this._availableLanguages.add(t)}return this._availableLanguages}facts(){return this.reportSet.factsForReport(this)}targetDocument(){return this._reportData.target??null}getChildRelationships(t,e){const n={},i=this._reportData.rels[e]||{};for(const e in i)t in i[e]&&(n[e]=i[e][t]);return n}_reverseRelationships(t){if(!(t in this._reverseRelationshipCache)){const e={},n=this._reportData.rels[t]||{};for(const[t,i]of Object.entries(n))for(const[n,r]of Object.entries(i))for(const i of r)i.src=n,Be(Be(e,t,{}),i.t,[]).push(i);this._reverseRelationshipCache[t]=e}return this._reverseRelationshipCache[t]}getParentRelationships(t,e){const n={};for(const[i,r]of Object.entries(this._reverseRelationships(e)))t in r&&(n[i]=r[t]);return n}getParentRelationshipsInGroup(t,e,n){return(this._reverseRelationships(e)[n]||{})[t]||[]}dimensionDefault(t){for(const e of Object.values(this._reportData.rels["d-d"]||{}))if(t in e)return e[t][0].t}relationshipGroups(t){return Object.keys(this._reportData.rels[t]||{})}relationshipGroupRoots(t,e){const n=[];for(const i in this._reportData.rels[t][e])e in this.getParentRelationships(i,t)||n.push(i);return n}getAlignedFacts(t,e){const n=this.reportSet.facts(),i=[];e||(e={});for(const r of n)r.isAligned(t,e)&&i.push(r);return i}deduplicate(t){const e=[];for(const n of t){let t=!1;for(const i of e)i.isAligned(n,{})&&(t=!0);t||e.push(n)}return e}getConcept(t){return new s(this,t)}getRoleLabel(t){const e=this._reportData.roleDefs[t];if(void 0!==e){const t=e.en;if(null!=t)return t}return this.reportSet.roleMap()[t]}localDocuments(){return void 0===this._reportData.localDocs?{}:this._reportData.localDocs}qname(t){return this.reportSet.qname(t)}getScaleLabel(t,e){let n=je.t(`scale.${t}`,{defaultValue:"noName"});if(e&&e.isMonetary()&&-2===t){let t=e.value()??"";t&&(t=this.qname(t).localname),n=je.t(`currencies:cents${t}`,{defaultValue:n})}return"noName"===n?null:n}concepts(){return this._reportData.concepts}getLabel(t,e,n){e=e||"std";const i=this.reportSet.viewerOptions.language,r=this._reportData.concepts[t];if(void 0===r)return console.log("Attempt to get label for undefined concept: "+t),"<no label>";const s=r.labels[e];if(void 0!==s&&0!=Object.keys(s).length){let e;if(e=i&&s[i]?s[i]:s.en||s["en-us"]||s[Object.keys(s).sort()[0]],void 0===e)return;let r="";return n&&this.reportSet.viewerOptions.showPrefixes&&(r="("+this.qname(t).prefix+") "),r+=e,r}}getLabelOrName(t,e,n){const i=this.getLabel(t,e,n);return void 0===i?t:i}isCalculationContributor(t){return void 0===this._calculationContributors&&(this._reportData.rels?.calc?this._calculationContributors=new Set(Object.values(this._reportData.rels.calc).flatMap((t=>Object.values(t).flatMap((t=>t.map((t=>t.t))))))):this._calculationContributors=new Set),this._calculationContributors.has(t)}isCalculationSummation(t){return void 0===this._calculationSummations&&(this._reportData.rels?.calc?this._calculationSummations=new Set(Object.values(this._reportData.rels.calc).flatMap((t=>Object.keys(t)))):this._calculationSummations=new Set),this._calculationSummations.has(t)}softwareCredits(){return this._reportData.softwareCredits??[]}}class Ze{constructor(t){this._p=t}type(){if(this._p)return"f"==this._p?"f":this._p.includes("/")?"d":"i"}toString(){let t;return t=this._p?"f"===this._p?"None":this._p.includes("/")?Fe(this.from(),!1)+" to "+Fe(this.to(),!0):Fe(this.to(),!0):"Undefined",t}to(){return this._p&&"f"!==this._p?this._p.includes("/")?Ue(this._p.split("/")[1]):Ue(this._p):null}from(){return this._p&&this._p.includes("/")?Ue(this._p.split("/")[0]):null}isEquivalentDuration(t){const e=t.type(),n=this.type();if(!e||!n)return!1;if(e!==n)return!1;if("d"!==e)return!0;const i=t.to().toDate()-t.from().toDate(),r=this.to().toDate()-this.from().toDate();return Math.abs(i-r)<.1*(i+r)}key(){return this._p}}const Ge={"http://standards.iso.org/iso/17442":{name:"LEI",url:"https://search.gleif.org/#/record/%s"},"http://www.sec.gov/CIK":{name:"CIK",url:"https://www.sec.gov/cgi-bin/browse-edgar?CIK=%s"},"http://www.companieshouse.gov.uk/":{name:"UK CRN",url:"https://beta.companieshouse.gov.uk/company/%08d"},"https://www.minfin.gov.ua":{name:"EDRPOU"}};class Qe{static identifierURL(t){const e=Ge[t.namespace];if(void 0!==e&&void 0!==e.url){let n=e.url.replace("%s",t.localname);return n=n.replace(/%0(\d+)d/,((e,n)=>t.localname.padStart(n,"0"))),n}}static identifierNameForFact(t){const e=Ge[t.identifier().namespace];if(void 0!==e)return e.name}static readableName(t){const e=Ge[t.namespace];return void 0!==e?"["+e.name+"] "+t.localname:t.qname}static readableNameHTML(t){const e=Ge[t.namespace],n=document.createElement("span");if(void 0!==e){n.appendChild(document.createElement("span")).textContent="["+e.name+"] ";const i=Qe.identifierURL(t);if(void 0!==i){const e=n.appendChild(document.createElement("a"));e.textContent=t.localname,e.setAttribute("target","_blank"),e.setAttribute("href",i)}else n.appendChild(document.createElement("span")).textContent=t.localname}else n.textContent=t.qname;return n}}const Je={c:"Concept",e:"Entity",p:"Period",u:"Unit"};class Xe{constructor(t,e,n){this._aspect=t,this._value=e,this._report=n}name(){return this._aspect}label(){return Je[this._aspect]??this._report.getLabel(this._aspect)}value(){return this._value}equalTo(t){return void 0!==t&&this._aspect===t._aspect&&this._value===t._value}isTaxonomyDefined(){return this._aspect.includes(":")}isNil(){return null===this._value}valueLabel(t){return"c"===this._aspect?this._report.getLabel(this._value,t)||this._value:this.isTaxonomyDefined()?this._report.getConcept(this._aspect).isTypedDimension()?null===this._value?"nil":this._value:this._report.getLabel(this._value,t)||this._value:"u"===this._aspect?this._report.reportSet.getUnit(this._value).label():"p"===this._aspect?new Ze(this._value).toString():"e"===this._aspect?Qe.readableName(this._report.qname(this._value)):this._value}}class qe{constructor(t){this._aspectSet=t||[]}add(t){this._aspectSet.push(t)}uniqueValues(){let t={};for(const e of Object.values(this._aspectSet))t[e.value()]=e;return Object.values(t)}}class $e{constructor(t,e){this.a="object"==typeof t?t:new Ht(t),this.b="object"==typeof e?e:new Ht(e)}static fromFact(t){if(!t.isNumeric())return;const e=t.decimals();let n,i=0;void 0!==e&&(i=new Ht(10).pow(0-e).times(.5));const r=t.value();try{n=new Ht(r)}catch(t){if(t instanceof Error&&/DecimalError/.test(t.message))return;throw t}return new $e(n.minus(i),n.plus(i))}intersection(t){return $e.intersection(this,t)}static intersection(...t){if(t.includes(void 0)||0==t.length)return;const e=t.map((t=>t.a)),n=t.map((t=>t.b)),i=Ht.max(...e),r=Ht.min(...n);return r.lessThan(i)?void 0:new $e(i,r)}plus(t){return new $e(this.a.plus(t.a),this.b.plus(t.b))}times(t){return t>0?new $e(this.a.times(t),this.b.times(t)):new $e(this.b.times(t),this.a.times(t))}midpoint(){return Ht.add(this.a,this.b).div(2)}}class Ke{constructor(t,e,n){this.f=n,this.ixNode=t.reportSet.getIXNodeForItemId(e),this.report=t,this.vuid=e,this.linkedFacts=[],this._footnotes=[]}localId(){return function(t){return t.replace(/^\d+-/,"")}(this.vuid)}getLabel(t,e){return this.report.getLabel(this.f.a.c,t,e)}getLabelOrName(t,e){return this.report.getLabelOrName(this.f.a.c,t,e)}conceptName(){return this.f.a.c}concept(){return this.report.getConcept(this.f.a.c)}conceptQName(){return this.report.qname(this.f.a.c)}period(){return new Ze(this.f.a.p)}periodString(){return this.period().toString()}periodTo(){return this.period().to()}periodFrom(){return this.period().from()}value(){return this.f.v}readableValue(t){let n=void 0===t?this.f.v:t;if(this.isInvalidIXValue())n="Invalid value";else if(this.isNumeric()){const t=this.decimals();let e;e=this.isNil()?"nil":Pe(n,t),n=this.isMonetaryValue()?this.unitLabel()+" "+e:e+" "+this.unitLabel()}else if(this.isNil())n="nil";else if(this.isTextBlock()){const t=e()("<div>").append(e()(e().parseHTML(n,null,!1)));t.find("p, td, th, h1, h2, h3, h4, ol, ul, pre, blockquote, dl, div").append(document.createTextNode(" ")).prepend(document.createTextNode(" ")),n=t.text().replace(/[\u00a0\s]+/g," ").trim()}else if(this.isEnumeration()){const t=[];for(const e of n.split(" "))t.push(this.report.getLabelOrName(e,"std"));n=t.join(", ")}return n}unit(){if(void 0===this._unit){const t=this.aspect("u")?.value();if(!t)return;this._unit=this.report.reportSet.getUnit(t)}return this._unit}unitLabel(){return this.unit()?.label()??je.t("factDetails.noUnit")}getConceptPrefix(){return this.conceptName().split(":")[0]}isCalculationContributor(){return void 0===this._isCalculationContributor&&(this._isCalculationContributor=this.report.isCalculationContributor(this.f.a.c)),this._isCalculationContributor}isCalculationSummation(){return void 0===this._isCalculationSummation&&(this._isCalculationSummation=this.report.isCalculationSummation(this.f.a.c)),this._isCalculationSummation}isNumeric(){return void 0!==this.f.a.u}dimensions(){const t={};for(const[e,n]of Object.entries(this.f.a))e.indexOf(":")>-1&&(t[e]=n);return t}hasExplicitDimension(){return Object.keys(this.dimensions()).some((t=>!this.report.getConcept(t).isTypedDimension()))}hasTypedDimension(){return Object.keys(this.dimensions()).some((t=>this.report.getConcept(t).isTypedDimension()))}isMonetaryValue(){return this.unit()?.isMonetary()??!1}isTextBlock(){return this.concept().isTextBlock()}aspects(){return Object.keys(this.f.a).map((t=>this.aspect(t)))}aspect(t){return void 0===this._aspects&&(this._aspects={}),void 0===this._aspects[t]&&void 0!==this.f.a[t]&&(this._aspects[t]=new Xe(t,this.f.a[t],this.report)),this._aspects[t]}isAligned(t,e){if(Object.keys(this.f.a).length!=Object.keys(t.f.a).length)return!1;for(const n in this.f.a)if(e.hasOwnProperty(n)){if(null!==e[n])if(e[n].constructor===Array){if(!e[n].includes(this.f.a[n]))return!1}else if(this.f.a[n]!=e[n])return!1}else if(this.f.a[n]!=t.f.a[n])return!1;return!0}isEquivalentDuration(t){return this.period().isEquivalentDuration(t.period())}decimals(){return this.f.d}scale(){return this.ixNode.scale}duplicates(){return this.report.getAlignedFacts(this)}isNil(){return null===this.f.v}isNegative(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Ht(this.value()).isNegative()&&!this.isZero()}isPositive(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Ht(this.value()).isPositive()&&!this.isZero()}isZero(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Ht(this.value()).isZero()}isInvalidIXValue(){return"INVALID_IX_VALUE"==this.f.err}getScaleLabel(t,e=!1){return this.report.getScaleLabel(e?-t:t,this.unit())}readableAccuracy(){if(!this.isNumeric()||this.isNil())return je.t("common.notApplicable");const t=this.decimals();if(void 0===t)return je.t("common.accuracyInfinite");if(null===t)return je.t("common.unspecified");const e=this.getScaleLabel(t,!0);return null!=e?e:t.toString()}readableScale(){if(!this.isNumeric()||this.isNil())return je.t("common.notApplicable");const t=this.scale();if(null==t)return je.t("common.unscaled");const e=this.getScaleLabel(t);return null!=e?e:t.toString()}identifier(){return this.report.qname(this.f.a.e)}escaped(){return this.ixNode.escaped}isEnumeration(){return this.concept().isEnumeration()}addFootnote(t){this._footnotes.push(t)}footnotes(){return this._footnotes}isHidden(){return this.ixNode.isHidden}isHTMLHidden(){return this.ixNode.htmlHidden()}widerConcepts(){const t=[],n=this.report.getParentRelationships(this.conceptName(),"w-n");for(const i in n)t.push(...e().map(n[i],(t=>t.src)));return t}narrowerConcepts(){const t=[],n=this.report.getChildRelationships(this.conceptName(),"w-n");for(const i in n)t.push(...e().map(n[i],(t=>t.t)));return t}addLinkedFact(t){this.linkedFacts.push(t)}roundedValue(){Ht.rounding=Ht.ROUND_HALF_UP;const t=new Ht(this.value()),e=this.decimals();return void 0===e?t:t.mul(10**e).round().mul(10**(0-e))}isCompleteDuplicate(t){return this.value()===t.value()&&this.decimals()===t.decimals()}addLinkedFact(t){this.linkedFacts.push(t)}valueInterval(){return $e.fromFact(this)}isMorePrecise(t){return void 0!==t.decimals()&&(void 0===this.decimals()||this.decimals()>t.decimals())}targetDocument(){return this.report.targetDocument()}}class tn{constructor(t,e,n){this.vuid=e,this.linkedFacts=[],this.title=n,this.ixNode=t.reportSet.getIXNodeForItemId(e)}addLinkedFact(t){this.linkedFacts.push(t)}textContent(){return this.ixNode.textContent()}readableValue(){return this.textContent()}isTextBlock(){return!1}}class en{constructor(t,e){this._reportSet=t,this._value=e;const n=e.split(/[()]/gi).join("").split("/");this._numerators=n[0].split("*"),this._denominators=n.length>1?n[1].split("*"):[],this._isMonetary=0===this._denominators.length&&1===this._numerators.length&&this._reportSet.qname(this._numerators[0]).namespace===Ee,this._label=n.map((t=>{const e=t.split("*").map((t=>function(t,e){const n=t.qname(e);return n.namespace===Ee?e=je.t(`currencies:unitFormat${n.localname}`,{defaultValue:n.localname}):e.includes(":")&&(e=e.split(":")[1]),e}(this._reportSet,t))).join("*");return e.includes("*")?`(${e})`:e})).join("/")}isMonetary(){return this._isMonetary}label(){return this._label}value(){return this._value}}class nn{constructor(t,e){const n=e.split(":",2);this.localname=n[1],this.prefix=n[0],this.namespace=t[n[0]],this.qname=e}}function rn(){this.showPrefixes=!0,this.language=null}class sn{constructor(t){this._data=t,this._ixNodeMap={},this.viewerOptions=new rn}setIXNodeMap(t){this._ixNodeMap=t,this._initialize()}_initialize(){this._items={},this.reports=[];const t=Object.keys(this._ixNodeMap).filter((t=>this._ixNodeMap[t].footnote));t.sort(((t,e)=>this._ixNodeMap[t].docOrderindex-this._ixNodeMap[e].docOrderindex));for(const[e,n]of(this._data.sourceReports??[{targetReports:[this._data]}]).entries())for(const i of n.targetReports){const n=new Ve(this,i);this.reports.push(n);for(const[t,r]of Object.entries(i.facts)){const i=He(e,t);this._items[i]=new Ke(n,i,r)}for(const[n,r]of Object.entries(i.facts)){const i=He(e,n),s=this._items[i];(r.fn||[]).forEach((n=>{const i=He(e,n);var r=this._items[i];void 0===r&&(r=new tn(s.report,i,"Footnote "+(t.indexOf(i)+1)),this._items[i]=r),r.addLinkedFact(s),s.addFootnote(r)}))}}}availableLanguages(){return Array.from(this.reports.reduce(((t,e)=>new Set([...t,...e.availableLanguages()])),new Set))}getItemById(t){return this._items[t]}getIXNodeForItemId(t){return this._ixNodeMap[t]||{}}facts(){return Object.values(this._items).filter((t=>t instanceof Ke))}filingDocuments(){return this._data.filingDocuments}prefixMap(){return this._data.prefixes}namespaceGroups(){const t={};for(const e of this.facts())t[e.conceptQName().prefix]=(t[e.conceptQName().prefix]||0)+1;const e=Object.keys(t);return e.sort(((e,n)=>t[n]-t[e])),e}getUsedConceptPrefixes(){return void 0===this._usedPrefixes&&(this._usedPrefixes=new Set(Object.values(this._items).filter((t=>t instanceof Ke)).map((t=>t.getConceptPrefix())))),this._usedPrefixes}getSoftwareCredits(){let t=new Set(this.reports.flatMap((t=>t.softwareCredits())));return Array.from(t).sort()}getTargetDocuments(){return void 0===this._targetDocuments&&(this._targetDocuments=new Set(Object.values(this._items).filter((t=>t instanceof Ke)).map((t=>t.targetDocument())))),this._targetDocuments}getUsedUnits(){return void 0===this._usedUnits&&(this._usedUnits=new Set(Object.values(this._items).filter((t=>t instanceof Ke)).map((t=>t.unit()?.value())).filter((t=>t)).sort())),this._usedUnits}getUnit(t){return void 0===this._unitsMap&&(this._unitsMap={}),void 0===this._unitsMap[t]&&(this._unitsMap[t]=new en(this,t)),this._unitsMap[t]}getUsedScalesMap(){const t={};return Object.values(this._items).filter((t=>t instanceof Ke)).forEach((e=>{const n=e.scale();if(null!=n){n in t||(t[n]=new Set);const r=t[n],s=(i=e.getScaleLabel(n))?i.split(" ").map((t=>Array.from(t).map(((t,e)=>0===e?t.toUpperCase():t)).join(""))).join(" "):i;s&&!r.has(s)&&r.add(s)}var i})),t}roleMap(){return this._data.roles}qname(t){return new nn(this.prefixMap(),t)}reportsData(){return this._data.sourceReports?.flatMap((t=>t.targetReports))??[this._data]}reportFiles(){return(this._data.sourceReports??[this._data]).map(((t,e)=>(t.docSetFiles??[]).map((t=>({index:e,file:t}))))).flat()}isMultiDocumentViewer(){return this.reportFiles().length>1}usesAnchoring(){return this.reportsData().some((t=>void 0!==t.rels?.["w-n"]))}hasValidationErrors(){return void 0!==this._data.validation&&this._data.validation.length>0}validation(){return this._data.validation}factsForReport(t){return Object.values(this._items).filter((e=>e instanceof Ke&&e.report==t))}}function on(t){return"(?:"+t.join("|")+")"}function an(t){return"(?:"+t+")?"}function ln(t){return"(?:"+t+")*"}const cn=on(["$","¢","\\bUS$","€","£","¥","\\bC$","\\bA$","\\bNT$","\\bS$","₩","₱","₨","\\bkr","\\bFr.","\\bRM","\\bR$","\\bR"]).replace(/([$.])/g,"\\$1"),un="[  \t\n\r]",dn=un+"*",hn="[-—]",pn="(?:^|(?<=(?:[/“—([]|"+un+"|"+hn+")))",fn="(?:$|(?=(?:[/,.:;”—)\\]]|"+un+"|"+hn+")))",gn="(?:st|nd|rd|th)",mn="[123]?\\d"+gn+"?",vn="(?:jan|january|feb|february|mar|march|apr|april|may|jun|june|jul|july|aug|august|sep|september|sept|oct|october|nov|november|dec|december)",yn="(?:[01]?\\d)",bn="(?:19|20)\\d\\d",xn="year"+dn+bn,wn=vn+dn+mn+dn+","+dn+bn,An=bn+dn+vn+dn+mn,_n="\\d{4}-\\d{2}-\\d{2}",Cn=on([wn,An,vn+dn+bn,vn+dn+mn,_n]),Mn=(on([wn,An,_n]),"\\b"+on([Cn,bn,xn])+"\\b"),kn="\\d+"+dn+"months?",Sn="(?:\\b(?:zero|one|two|three|four(?:teen)?|five|six(?:ty|teen)?|seven(?:ty|teen)?|eight(?:y|een)?|nine(?:ty|teen)?|ten|eleven|twelve|thirteen|fifteen|twenty|thirty|forty|fifty)\\b)",In="section"+dn+"\\d{1,3}\\(?:?\\w\\)?",Ln="topic"+dn+"\\d{1,3}(?:\\.[\\w\\d])*",Dn="form"+dn+"\\d{1,2}-\\w",Tn="asc"+dn+"\\w\\d{1,3}(?:-\\w?\\d{1,3})*",Nn="item"+dn+"\\d{1,2}\\w?",On="rule"+dn+"\\d{1,3}\\w?(?:-\\d{1,3}\\w?)*",jn="note"+dn+"\\d{1,3}",En="level"+dn+"\\d{1,3}",zn="page"+dn+"\\d{1,3}",Fn="tier"+dn+"\\d{1,3}",Pn=on([Sn,"\\d+"])+dn+"months ended",Rn=on([In,Ln,Dn,Tn,Nn,On,jn,En,zn,Fn,Pn,yn+"/[0-3]?d/"+bn,yn+"/\\d\\d"]),Yn=on([an(dn+hn+dn),dn]),Un=Sn+ln(Yn+Sn),Bn=Un+ln(Yn+"(\\b(hundred|thousand|million|billion|trillion)\\b)"+an(Yn+Un)),Wn=on([on(["\\d{1,3}(?:,\\d{3})+","\\d+"])+an("\\.\\d+"),"\\.\\d+"]),Hn=on([an(cn+dn)+an("[-+(]"+dn)+an(cn+dn)+Wn+an(gn)+an(dn+on([cn,"\\%"]))+dn+"\\)?"+an(dn+on([cn,"\\%"])),Bn,"\\b(?:no|none)\\b","[-֊־‐-―﹘﹣]"]),Vn=pn+on(["("+Mn+")","("+Rn+")",kn,Hn])+fn,Zn=new RegExp(Vn,"gi");var Gn=n(461),Qn=n(60);function Jn(t,e){var n=e.attribute;return t=t.replace(Xn,"&amp;").replace(qn,"&gt;").replace($n,"&lt;"),n&&(t=t.replace(Kn,"&apos;").replace(ti,"&quot;")),t}var Xn=/&/g,qn=/>/g,$n=/</g,Kn=/'/g,ti=/"/g,ei=/((?:[\0-\x08\x0B\f\x0E-\x1F\uFFFD\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/g,ni=new RegExp("([\\x7F-\\x84]|[\\x86-\\x9F]|[\\uFDD0-\\uFDEF]|(?:\\uD83F[\\uDFFE\\uDFFF])|(?:\\uD87F[\\uDFFE\\uDFFF])|(?:\\uD8BF[\\uDFFE\\uDFFF])|(?:\\uD8FF[\\uDFFE\\uDFFF])|(?:\\uD93F[\\uDFFE\\uDFFF])|(?:\\uD97F[\\uDFFE\\uDFFF])|(?:\\uD9BF[\\uDFFE\\uDFFF])|(?:\\uD9FF[\\uDFFE\\uDFFF])|(?:\\uDA3F[\\uDFFE\\uDFFF])|(?:\\uDA7F[\\uDFFE\\uDFFF])|(?:\\uDABF[\\uDFFE\\uDFFF])|(?:\\uDAFF[\\uDFFE\\uDFFF])|(?:\\uDB3F[\\uDFFE\\uDFFF])|(?:\\uDB7F[\\uDFFE\\uDFFF])|(?:\\uDBBF[\\uDFFE\\uDFFF])|(?:\\uDBFF[\\uDFFE\\uDFFF])(?:[\\0-\\t\\x0B\\f\\x0E-\\u2027\\u202A-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]))","g");function ii(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).removeDiscouragedCharacters,n=void 0===e||e;return t=t.replace(ei,""),n&&(t=t.replace(ni,"")),t}function ri(t){return Jn(ii(t),{attribute:!0})}function si(t){return Jn(ii(t),{attribute:!1})}function oi(t){return Object.keys(t).map((function(e){return"".concat(e,'="').concat(ri(String(t[e])),'"')})).reduce((function(t,e){return t+" "+e}),"")}function ai(t,e){return"".concat(ci(t)).concat(e)}var li=26;function ci(t){if("number"!=typeof t)return"";var e=Math.floor(t/li),n=String.fromCharCode(97+t%li).toUpperCase();return 0===e?n:ci(e-1)+n}function ui(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function di(t,e,n,i,r,s){if(null===n&&!r)return"";var o={r:ai(e,t)};if(r&&(o.s=r),null===n)return"<c".concat(oi(o),"/>");if(i===Date&&!r)throw new Error('No "format" has been specified for a Date cell');n=function(t,e,n){switch(t){case String:if("string"!=typeof e)throw new Error("Invalid cell value: ".concat(e,". Expected a string"));return n(e);case Number:if("number"!=typeof e)throw new Error("Invalid cell value: ".concat(e,". Expected a number"));return String(e);case Date:if(!(e instanceof Date))throw new Error("Invalid cell value: ".concat(e,". Expected a Date"));return String(function(t){return t.getTime()/864e5+25569}(e));case Boolean:if("boolean"!=typeof e)throw new Error("Invalid cell value: ".concat(e,". Expected a boolean"));return e?"1":"0";case"Formula":if("string"!=typeof e)throw new Error("Invalid cell value: ".concat(e,". Expected a string"));return si(e);default:throw new Error("Unknown schema type: ".concat(t&&t.name||t))}}(i,n,s),(i=function(t){switch(t){case String:return"s";case Number:case Date:return;case Boolean:return"b";case"Formula":return"f";default:throw new Error("Unknown schema type: ".concat(t&&t.name||t))}}(i))&&(o.t=i);var a,l,c=function(t){var e=function(t){switch(t){case"inlineStr":return"<is><t>";case"f":return"<f>";default:return"<v>"}}(t),n=e.replace(hi,"</");return[e,n]}(i),u=(l=2,function(t){if(Array.isArray(t))return t}(a=c)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,s=[],o=!0,a=!1;try{for(n=n.call(t);!(o=(i=n.next()).done)&&(s.push(i.value),!e||s.length!==e);o=!0);}catch(t){a=!0,r=t}finally{try{o||null==n.return||n.return()}finally{if(a)throw r}}return s}}(a,l)||function(t,e){if(t){if("string"==typeof t)return ui(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ui(t,e):void 0}}(a,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=u[0],h=u[1];return"<c".concat(oi(o),">")+d+n+h+"</c>"}var hi=/</g;function pi(t){var e=t.align,n=t.alignVertical,i=t.textRotation,r=t.indent,s=t.wrap,o=t.fontFamily,a=t.fontSize,l=t.fontWeight,c=t.fontStyle,u=t.color,d=t.backgroundColor,h=t.borderColor,p=t.borderStyle,f=t.leftBorderColor,g=t.leftBorderStyle,m=t.rightBorderColor,v=t.rightBorderStyle,y=t.topBorderColor,b=t.topBorderStyle,x=t.bottomBorderColor,w=t.bottomBorderStyle;if(e||n||i||r||s||o||a||l||c||u||d||h||p||f||g||m||v||y||b||x||w)return function(t){var e={};for(var n in t)void 0!==t[n]&&(e[n]=t[n]);return e}({align:e,alignVertical:n,textRotation:i,indent:r,wrap:s,fontFamily:o,fontSize:a,fontWeight:l,fontStyle:c,color:u,backgroundColor:d,borderColor:h,borderStyle:p,leftBorderColor:f,leftBorderStyle:g,rightBorderColor:m,rightBorderStyle:v,topBorderColor:y,topBorderStyle:b,bottomBorderColor:x,bottomBorderStyle:w})}function fi(t){return fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fi(t)}function gi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function mi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?gi(Object(n),!0).forEach((function(e){vi(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function vi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var bi={fontWeight:"bold"};function xi(t,e){if(!t)return"";if(t.type!==Date||t.width||(t.width=14),!t.width)return"";var n=e+1;return'<col min="'.concat(n,'" max="').concat(n,'" width="').concat(t.width,'" customWidth="1"/>')}function wi(t){var e=t.data,n=t.rowIndex,i=t.columnIndex,r=t.span,s=t.rowSpan,o=t.cloneData,a=pi(e[n][i]);a&&(e=o());for(var l=n;l<=n+(s-1);){for(var c=i;c<=i+(r-1);){var u=e[l][c];if(l>n||c>i){if(null!=u)throw new Error("[write-excel-file] When using `span` or `rowSpan` parameters, all hidden overlapped cells should be represented by `null`s or `undefined`s. Cell at row ".concat(n+1," and column ").concat(i+1," is configured with `span` ").concat(r," and `rowSpan` ").concat(s,". Cell at row ").concat(l+1," and column ").concat(c+1," is neither `null` nor `undefined`: ").concat(JSON.stringify(u)));a&&(e[l][c]=a)}c++}l++}}function Ai(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function _i(t,e){var n=e.schema,i=e.columns,r=e.getHeaderStyle,s=e.getStyle,o=e.getSharedString,a=e.customFont,l=e.dateFormat,c=e.orientation,u=e.stickyRowsCount,d=e.stickyColumnsCount,h=e.showGridLines,p=e.rightToLeft,f=e.sheetId;!function(t,e){if(e.schema){if(!Array.isArray(t))throw new TypeError("Expected an array of objects")}else{if(!Array.isArray(t))throw new TypeError("Expected an array of arrays");if(t.length>0&&!Array.isArray(t[0]))throw new TypeError("Expected an array of arrays")}}(t,{schema:n});var g=function(t,e){var n=[];if(e.schema)return{data:t,mergedCells:n};for(var i=function(){t=t.slice();for(var e=0;e<t.length;)t[e]=t[e].slice(),e++;return i=function(){return t},t},r=0;r<t.length;){for(var s=t[r],o=0;o<s.length;){var a=s[o];if(a){var l=a.span,c=void 0===l?1:l,u=a.rowSpan,d=void 0===u?1:u;(c>1||d>1)&&(wi({data:t,rowIndex:r,columnIndex:o,span:c,rowSpan:d,cloneData:i}),n.push([[r,o],[r+(d?d-1:0),o+(c?c-1:0)]]))}o++}r++}return{data:t,mergedCells:n}}(t,{schema:n}),m=g.data,v=g.mergedCells;return'<?xml version="1.0" ?>\n<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main">{views}{columnsDescription}<sheetData>{data}</sheetData>{mergedCellsDescription}{layout}</worksheet>'.replace("{data}",function(t,e){var n=e.schema,i=e.getHeaderStyle,r=e.getStyle,s=e.getSharedString,o=e.customFont,a=e.dateFormat;if(n){for(var l,c=[],u=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return yi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(l=u()).done;)if(l.value.column){c=[n.map((function(t){return mi({type:String,value:t.column,align:t.align},i?i(t):bi)}))];break}t=c.concat(t.map((function(t){return n.map((function(e){return mi(mi({},e),{},{value:e.value(t)})}))})))}return t.map((function(t,e){return function(t,e,n){var i,r=n.getStyle,s=n.getSharedString,o=n.customFont,a=n.dateFormat,l=n.usesSchema,c=e+1,u=t.map((function(t,e){if(null==t)return"";var n,u=t.height,d=pi(t),h=t.type,p=t.value,f=t.format;if(function(t){return null==t||""===t}(p)?p=null:void 0===h&&(l||(h=function(t){switch(fi(t)){case"string":return String;case"number":return Number;case"boolean":return Boolean;default:if(t instanceof Date)return Date}}(p)),void 0===h&&(h=String,p=String(p))),f){if(h!==Date&&h!==Number&&"Formula"!==h)throw new Error('`format` can only be used on `Date`, `Number` or `"Formula"` cells')}else h===Date&&(f=a);return(f||o||d)&&(n=r(d||{},{format:f})),u&&(void 0===i||i<u)&&(i=u),di(c,e,p,h,n,s)})).join(""),d={r:c};return i&&(d.ht=i,d.customHeight=1),"<row".concat(oi(d),">")+u+"</row>"}(t,e,{getStyle:r,getSharedString:s,customFont:o,dateFormat:a,usesSchema:void 0!==n})})).join("")}(m,{schema:n,getHeaderStyle:r,getStyle:s,getSharedString:o,customFont:a,dateFormat:l})).replace("{views}",function(t){var e=t.stickyRowsCount,n=t.stickyColumnsCount,i=t.showGridLines,r=t.rightToLeft;if(!e&&!n&&!1!==i&&!r)return"";var s="",o={tabSelected:1,workbookViewId:0};!1===i&&(o.showGridLines=!1),r&&(o.rightToLeft=1);var a={ySplit:e||0,xSplit:n||0,topLeftCell:ai(n||0,(e||0)+1),activePane:"bottomRight",state:"frozen"};return s+="<sheetViews>",s+="<sheetView".concat(oi(o),">"),s+="<pane".concat(oi(a),"/>"),(s+="</sheetView>")+"</sheetViews>"}({stickyRowsCount:u,stickyColumnsCount:d,showGridLines:h,rightToLeft:p})).replace("{columnsDescription}",function(t){var e=t.schema,n=t.columns;if(e||n){var i=(e||n).map(xi).join("");if(i)return"<cols>".concat(i,"</cols>")}return""}({schema:n,columns:i})).replace("{mergedCellsDescription}",function(t){return 0===t.length?"":'<mergeCells count="'.concat(t.length,'">')+t.map((function(t){var e,n,i=(n=2,function(t){if(Array.isArray(t))return t}(e=t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,s=[],o=!0,a=!1;try{for(n=n.call(t);!(o=(i=n.next()).done)&&(s.push(i.value),!e||s.length!==e);o=!0);}catch(t){a=!0,r=t}finally{try{o||null==n.return||n.return()}finally{if(a)throw r}}return s}}(e,n)||function(t,e){if(t){if("string"==typeof t)return Ai(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ai(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),r=i[0],s=i[1],o=ai(r[1],r[0]+1)+":"+ai(s[1],s[0]+1);return'<mergeCell ref="'.concat(o,'"/>')})).join("")+"</mergeCells>"}(v)).replace("{layout}",function(t){var e=t.sheetId,n=t.orientation,i="";return n&&(i+="<pageMargins",i+=' left="'.concat(.7,'"'),i+=' right="'.concat(.7,'"'),i+=' top="'.concat(.75,'"'),i+=' bottom="'.concat(.75,'"'),i+=' header="'.concat(.3,'"'),i+=' footer="'.concat(.3,'"'),i+="/>"),n&&(i+="<pageSetup",i+=' paperSize="'.concat(9,'"'),i+=' orientation="'.concat(ri(n),'"'),i+=' r:id="rId'.concat(e,'"'),i+="/>"),i}({sheetId:f,orientation:c}))}function Ci(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Mi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Mi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function ki(t){if("#"!==t[0])throw new Error('Color "'.concat(t,'" must start with a "#"'));return"FF".concat(t.slice(1).toUpperCase())}function Si(t){if(!(t>=-90&&t<=90))throw new Error("Unsupported text rotation angle: ".concat(t,". Values from -90 to 90 are supported."));return t}function Ii(t){return t<0?90-t:t}function Li(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Di(){var t=[],e={};return{getSharedStringsXml:function(){return function(t){var e='<?xml version="1.0"?>';e+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">';for(var n,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Li(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Li(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(n=i()).done;){var r=n.value,s=r.trim().length===r.length?"":' xml:space="preserve"';e+="<si><t".concat(s,">"),e+=si(r),e+="</t></si>"}return e+"</sst>"}(t)},getSharedString:function(n){var i=e[n];return void 0===i&&(i=String(t.length),e[n]=i,t.push(n)),i}}}var Ti=/[\[\]\/\\:*?]+/;function Ni(t){if(!t)throw new Error("Sheet name can't be empty");if(t.length>31)throw new Error('Sheet name "'.concat(t,"\" can't be longer than 31 characters"));if(Ti.test(t))throw new Error('Sheet name "'.concat(t,'" contains illegal characters: []/\\:*?'))}function Oi(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return ji(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ji(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ji(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Ei=["fileName"];function zi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Fi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.fileName;return function(t,e){var n=e.sheet,i=e.sheets,r=e.schema,s=e.columns,o=e.headerStyle,a=e.getHeaderStyle,l=e.fontFamily,c=e.fontSize,u=e.orientation,d=e.stickyRowsCount,h=e.stickyColumnsCount,p=e.showGridLines,f=e.rightToLeft,g=e.dateFormat,m=new Gn;m.file("_rels/.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>'),m.file("[Content_Types].xml",'<?xml version="1.0" ?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default ContentType="application/xml" Extension="xml"/><Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet1.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" PartName="/xl/workbook.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" PartName="/xl/sharedStrings.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" PartName="/xl/styles.xml"/></Types>');var v=function(t){var e=t.data,n=t.sheetName,i=t.sheetNames,r=t.schema,s=t.columns,o=t.headerStyle,a=t.getHeaderStyle,l=t.fontFamily,c=t.fontSize,u=t.orientation,d=t.stickyRowsCount,h=t.stickyColumnsCount,p=t.showGridLines,f=t.rightToLeft,g=t.dateFormat,m=Di(),v=m.getSharedStringsXml,y=m.getSharedString,b=function(t){var e=t.fontFamily,n=t.fontSize,i=Boolean(e||n);void 0===e&&(e="Calibri"),void 0===n&&(n=12);var r=[],s={},o=[],a={},l=[],c={},u=[],d={},h=[],p={};function f(t,f){var g,m=t.align,v=t.alignVertical,y=t.textRotation,b=t.indent,x=t.wrap,w=t.fontFamily,A=t.fontSize,_=t.fontWeight,C=t.fontStyle,M=t.color,k=t.backgroundColor,S=t.borderColor,I=t.borderStyle,L=t.leftBorderColor,D=t.leftBorderStyle,T=t.rightBorderColor,N=t.rightBorderStyle,O=t.topBorderColor,j=t.topBorderStyle,E=t.bottomBorderColor,z=t.bottomBorderStyle,F=f.format,P="".concat(w||"-",":").concat(A||"-",":").concat(_||"-",":").concat(C||"-",":").concat(M||"-"),R=k||"-",Y="".concat(O||S||"-",":").concat(j||I||"-")+"/"+"".concat(T||S||"-",":").concat(N||I||"-")+"/"+"".concat(E||S||"-",":").concat(z||I||"-")+"/"+"".concat(L||S||"-",":").concat(D||I||"-"),U="".concat(m||"-","/").concat(v||"-","/").concat(y||"-","/").concat(b||"-","/").concat(x||"-","/").concat(F||"-","/").concat(P,"/").concat(R,"/").concat(Y),B=a[U];if(void 0!==B)return B;F&&void 0===(g=s[F])&&(g=s[F]=String(100+r.length),r.push(F));var W,H,V=i?0:void 0;return(w||A||_||C||M)&&void 0===(V=c[P])&&(V=c[P]=String(l.length),l.push({custom:!0,size:A||n,family:w||e,weight:_,style:C,color:M})),k&&void 0===(W=d[R])&&(W=d[R]=String(u.length),u.push({color:k})),(S||I||L||D||T||N||O||j||E||z)&&void 0===(H=p[Y])&&(H=p[Y]=String(h.length),h.push({left:{style:D||I,color:L||S},right:{style:N||I,color:T||S},top:{style:j||I,color:O||S},bottom:{style:z||I,color:E||S}})),o.push({fontId:V,fillId:W,borderId:H,align:m,alignVertical:v,textRotation:y,indent:b,wrap:x,formatId:g}),a[U]=String(o.length-1)}return l.push({size:n,family:e,custom:i}),c["-:-"]=0,u.push({}),d["-"]=0,h.push({left:{},right:{},top:{},bottom:{}}),p["-:-/-:-/-:-/-:-"]=0,u.push({gray125:!0}),f({},{}),{getStylesXml:function(){return function(t){var e=t.formats,n=t.styles,i=t.fonts,r=t.fills,s=t.borders,o='<?xml version="1.0" ?>';if(o+='<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">',e.length>0){o+='<numFmts count="'.concat(e.length,'">');for(var a=0;a<e.length;a++)o+='<numFmt numFmtId="'.concat(100+a,'" formatCode="').concat(ri(e[a]),'"/>');o+="</numFmts>"}o+='<fonts count="'.concat(i.length,'">');for(var l,c=Ci(i);!(l=c()).done;){var u=l.value,d=u.size,h=u.family,p=u.color,f=u.weight,g=u.style,m=u.custom;o+="<font>",o+='<sz val="'.concat(d,'"/>'),o+="<color ".concat(p?'rgb="'+ri(ki(p))+'"':'theme="1"',"/>"),o+='<name val="'.concat(ri(h),'"/>'),o+='<family val="2"/>',m||(o+='<scheme val="minor"/>'),"bold"===f&&(o+="<b/>"),"italic"===g&&(o+="<i/>"),o+="</font>"}o+="</fonts>",o+='<fills count="'.concat(r.length,'">');for(var v,y=Ci(r);!(v=y()).done;){var b=v.value,x=b.color,w=b.gray125;o+="<fill>",x?(o+='<patternFill patternType="solid">',o+='<fgColor rgb="'.concat(ri(ki(x)),'"/>'),o+='<bgColor indexed="64"/>',o+="</patternFill>"):o+=w?'<patternFill patternType="gray125"/>':'<patternFill patternType="none"/>',o+="</fill>"}o+="</fills>",o+='<borders count="'.concat(s.length,'">');for(var A,_=Ci(s);!(A=_()).done;){var C=A.value,M=C.left,k=C.right,S=C.top,I=C.bottom,L=function(t,e){var n=e.style,i=e.color;i&&!n&&(n="thin");var r=!!i;return"<".concat(t)+(n?' style="'.concat(ri(n),'"'):"")+(r?">":"/>")+(i?'<color rgb="'.concat(ri(ki(i)),'"/>'):"")+(r?"</".concat(t,">"):"")};o+="<border>",o+=L("left",M),o+=L("right",k),o+=L("top",S),o+=L("bottom",I),o+="<diagonal/>",o+="</border>"}o+="</borders>",o+='<cellXfs count="'.concat(n.length,'">');for(var D,T=Ci(n);!(D=T()).done;){var N=D.value,O=N.fontId,j=N.fillId,E=N.borderId,z=N.align,F=N.alignVertical,P=N.textRotation,R=N.indent,Y=N.wrap,U=N.formatId;o+="<xf "+[void 0!==U?'numFmtId="'.concat(U,'"'):void 0,void 0!==U?'applyNumberFormat="1"':void 0,void 0!==O?'fontId="'.concat(O,'"'):void 0,void 0!==O?'applyFont="1"':void 0,void 0!==j?'fillId="'.concat(j,'"'):void 0,void 0!==j?'applyFill="1"':void 0,void 0!==E?'borderId="'.concat(E,'"'):void 0,void 0!==E?'applyBorder="1"':void 0,z||F||P||R||Y?'applyAlignment="1"':void 0].filter((function(t){return t})).join(" ")+">"+(z||F||P||R||Y?"<alignment"+(z?' horizontal="'.concat(ri(z),'"'):"")+(F?' vertical="'.concat(ri(F),'"'):"")+(P?' textRotation="'.concat(Ii(Si(P)),'"'):"")+(R?' indent="'.concat(ri(String(R)),'"'):"")+(Y?' wrapText="1"':"")+"/>":"")+"</xf>"}return(o+="</cellXfs>")+"</styleSheet>"}({formats:r,styles:o,fonts:l,fills:u,borders:h})},getStyle:f}}({fontFamily:l,fontSize:c}),x=b.getStylesXml,w=b.getStyle;if(i&&s&&!Array.isArray(s[0]))throw new Error('In a "write multiple sheets" scenario, `columns` parameter must be an array of `columns` for each sheet.');i||(i=[n||"Sheet1"],e=[e],s&&(s=[s]),r&&(r=[r])),o&&!a&&(a=function(){return o});for(var A,_=Oi(i);!(A=_()).done;)Ni(A.value);for(var C,M=[],k=0,S=Oi(i);!(C=S()).done;)C.value,M.push(_i(e[k],{schema:r&&r[k],columns:s&&s[k],getHeaderStyle:a,getStyle:w,getSharedString:y,customFont:l||c,dateFormat:g,orientation:u,stickyRowsCount:d,stickyColumnsCount:h,showGridLines:p,rightToLeft:f,sheetId:k+1})),k++;return{sheets:i.map((function(t,e){return{id:e+1,name:t,data:M[e]}})),getSharedStringsXml:v,getStylesXml:x}}({data:t,sheetName:n,sheetNames:i,schema:r,columns:s,headerStyle:o,getHeaderStyle:a,fontFamily:l,fontSize:c,orientation:u,stickyRowsCount:d,stickyColumnsCount:h,showGridLines:p,rightToLeft:f,dateFormat:g}),y=v.sheets,b=v.getSharedStringsXml,x=v.getStylesXml,w=m.folder("xl");w.file("_rels/workbook.xml.rels",function(t){var e=t.sheets;return'<?xml version="1.0" ?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">'+e.map((function(t){var e=t.id;return'<Relationship Id="rId'.concat(e,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet').concat(e,'.xml"/>')})).join("")+'<Relationship Id="rId'.concat(e.length+1,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/>')+'<Relationship Id="rId'.concat(e.length+2,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>')+"</Relationships>"}({sheets:y})),w.file("workbook.xml",function(t){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"><workbookPr/>'+(t.stickyRowsCount||t.stickyColumnsCount?"<bookViews><workbookView/></bookViews>":"")+"<sheets>"+t.sheets.map((function(t){var e=t.id,n=t.name;return'<sheet name="'.concat(ri(n),'" sheetId="').concat(e,'" r:id="rId').concat(e,'"/>')})).join("")+"</sheets><definedNames/><calcPr/></workbook>"}({sheets:y,stickyRowsCount:d,stickyColumnsCount:h})),w.file("styles.xml",x()),w.file("sharedStrings.xml",b());for(var A,_=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return zi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(y);!(A=_()).done;){var C=A.value,M=C.id,k=C.data;w.file("worksheets/sheet".concat(M,".xml"),k)}return m.generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",compression:"deflate"})}(t,function(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},s=Object.keys(t);for(i=0;i<s.length;i++)n=s[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)n=s[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}(e,Ei)).then((function(t){return n?Qn.saveAs(t,n):t}))}class Pi{constructor(t,e){this._table=t,this._reportSet=e}static addHandles(t,n){e()("table",t).each((function(){const t=e()(this);if(t.find(".ixbrl-element").length>0){t.css("position","relative");const i=new Pi(t,n);e()('<div class="ixbrl-table-handle"><span>Export table</span></div>').appendTo(t).on("click",(()=>i.exportTable()))}}))}_getRawTable(){const t=this._table,n=this._reportSet;let i=0;const r=[];t.find("tr").each((function(){const t=[];e()(this).find("td:visible, th:visible").each((function(){const i=e()(this).attr("colspan");if(i)for(let e=0;e<i-1;e++)t.push({type:"static",value:""});const r=e()(this).find(".ixbrl-element").addBack(".ixbrl-element");let s=null;if(r.length>0){const t=r.first().data("ivids");s=n.getItemById(t)}if(s instanceof Ke){const n={type:"fact",fact:s},i=e()(this)[0];let o=r[0],a=o.textContent;for(;o!==i;)o=null!==o.previousSibling?o.previousSibling:o.parentNode,3==o.nodeType&&(a=o.textContent+a);null!==a.match(/[\(-]\s*\d/)&&(n.negative=!0),n.topBorder=null!==e()(this).css("border-top-style").match(/(solid|double)/),n.bottomBorder=null!==e()(this).css("border-bottom-style").match(/(solid|double)/),t.push(n)}else{const n=e()(this).text();t.push({type:"static",value:n})}})),t.length>i&&(i=t.length),r.push(t)}));for(const t of r)for(;t.length<i;)t.push({type:"static",value:""});return r}_getFactsInSlice(t){return t.filter((t=>"fact"===t.type)).map((t=>t.fact))}_getConstantAspectsForSlice(t,e){const n=this._getFactsInSlice(t);if(0==n.length)return null;const i=new Set;for(const t of n)for(const e of t.aspects())i.add(e.name());const r=new Map;for(const t of i){r.set(t,n[0].aspect(t));for(let e=1;e<n.length;e++)void 0!==r.get(t)&&r.get(t).equalTo(n[e].aspect(t))||r.delete(t)}return r}_writeTable(t){const e=[],n=[];for(const[i,r]of t.entries()){const t=[];for(const[e,i]of r.entries()){const r={};"fact"===i.type?(n[e]={width:18},r.value=Number(i.fact.value()),r.type=Number,r.format="#,##0",i.negative?r.value=-1*Math.abs(r.value):r.value=Math.abs(r.value),i.topBorder&&(r.topBorderStyle="medium",r.topBorderColor="#000000"),i.bottomBorder&&(r.bottomBorderStyle="medium",r.bottomBorderColor="#000000")):"aspectLabel"===i.type?(r.value=i.value,r.type=String):(r.value=i.value,r.type=String,r.color="#707070"),t.push(r)}e.push(t)}return{columns:n,data:e}}exportTable(){const t=this._getRawTable();let e=0;const n=[],i=new Set;for(const r of t){const t=this._getConstantAspectsForSlice(r);if(n.push(t),null!==t)for(const[e,n]of t)i.add(e);r.length>e&&(e=r.length)}const r=[],s=new Set;for(let n=0;n<e;n++){const e=t.map((t=>t[n])),i=this._getConstantAspectsForSlice(e);if(r.push(i),null!==i)for(const[t,e]of i)s.add(t)}const o=new Set(s);for(const t of s)for(const[e,n]of Object.entries(r))null===n||n.get(t)||o.delete(t);for(const t of s)i.delete(t);for(const n of s){const s=Array.from(i).map((()=>""));for(let t=0;t<e;t++){let e=(r[t]||new Map).get(n);void 0!==e&&(e=e.valueLabel("std")),s.push({type:"aspectLabel",value:e||""})}t.unshift(s)}for(let e=s.size;e<t.length;e++){const r=[];for(const t of i){let i=(n[e-s.size]||new Map).get(t);void 0!==i&&(i=i.valueLabel("std")),r.push({type:"aspectLabel",value:i||""})}t[e]=r.concat(t[e])}const a=this._writeTable(t);Fi(a.data,{columns:a.columns,fileName:"table.xlsx"})}}var Ri=0;class Yi{constructor(t,e,n){this.wrapperNodes=e,this.escaped=!1,this.continuations=[],this.docIndex=n,this.footnote=!1,this.id=t,this.isHidden=!1,this.docOrderindex=Ri++}continuationIds(){return this.continuations.map((t=>t.id))}chainIXIds(){return[this.id].concat(this.continuationIds())}textContent(){return[this].concat(this.continuations).map((t=>t.wrapperNodes.first().text())).join(" ")}htmlHidden(){return this.wrapperNodes.filter(":not(.ixbrl-no-highlight)").is(":hidden")||this.wrapperNodes.is(((t,n)=>function(t){const e=parseFloat(t.split(",")[3]);return!isNaN(e)&&e<.1}(e()(n).css("color"))))}}class Ui{constructor(){this.index=[]}addItem(t,e){this.index.push({vuid:t,docIndex:e})}getAdjacentItem(t,e){const n=this.index.findIndex((e=>e.vuid===t)),i=this.index.length;return this.index[(n+e+i)%i].vuid}getFirstInDocument(t){return this.index.filter((e=>e.docIndex===t))[0].vuid}getLastInDocument(t){return this.index.filter((e=>e.docIndex===t)).at(-1).vuid}}class Bi{constructor(t){this.node=e()("#dialog-templates").find(t).clone().appendTo("#ixv #dialog-container"),e()(".close",this.node).on("click",(()=>this.close())),e()(document).on("keyup",(t=>{27===t.which&&this.close()}))}addButton(t,n,i){const r=this.node.find(".buttons"),s=e()("<button></button>").text(t).addClass(n?"dialog-button-primary":"dialog-button-cancel");r.append(s),s.on("click",(()=>{i&&!i()||this.close()}))}close(){e()(".dialog-mask").hide(),this.node.remove()}show(){e()(".dialog-mask").show(),this.node.show()}}class Wi extends Bi{constructor(t,e,n,i){super(".dialog.message-box"),this.title=t,this.message=e,this.okText=n,this.cancelText=i}show(t,n){this.node.find(".title").text(this.title),this.node.find(".message").empty().append(this.message);const i=this.node.find(".buttons").empty(),r=e()("<button></button>").text(this.okText).addClass("dialog-button-primary");if(i.append(r),r.on("click",(()=>{this.close(),t&&t()})),this.cancelText){const t=e()("<button></button>").text(this.cancelText).addClass("dialog-button-cancel");i.append(t),t.on("click",(()=>{this.close(),n&&n()}))}super.show(this)}showAsync(){return new Promise(((t,e)=>{this.show((()=>t(!0)),(()=>t(!1)))}))}}class Hi extends Error{}function Vi(t){return-1==t.indexOf(":")?t:t.substring(t.indexOf(":")+1)}class Zi{constructor(t,n,i){this._iv=t,this._reportSet=i,this._iframes=n,this._contents=n.contents(),this.onSelect=e().Callbacks(),this.onMouseEnter=e().Callbacks(),this.onMouseLeave=e().Callbacks(),this._ixNodeMap={},this._docOrderItemIndex=new Ui,this._currentDocumentIndex=0}_checkContinuationCount(){const t=Object.keys(this.continuationOfMap).length;if(t>this._iv.options.continuationElementLimit){const n=e()("<div></div>").append(e()("<p></p>").text(`This document contains a very large number of iXBRL elements (found ${t} ix:continuation elements).`)).append(e()("<p></p>").text("You may experience performance problems viewing this document, or the viewer may not load at all.")).append(e()("<p></p>").text("Do you want to continue trying to load this document?"));return new Wi("Large document warning",n,"Continue","Cancel").showAsync().then((t=>{if(!t)throw new Hi("Too many continuations")}))}return Promise.resolve()}initialize(){return new Promise((async(t,n)=>{const i=this;i._buildContinuationMaps(),i._checkContinuationCount().catch((t=>{throw t})).then((()=>i._iv.setProgress("Pre-processing document"))).then((()=>{i._iframes.each((function(t){e()(this).data("selected",t==i._currentDocumentIndex);const n=e()(this).data("report-index");i._preProcessiXBRL(e()(this).contents().find("body").get(0),n,t)})),async function(){for(const[t,n]of i._iframes.toArray().entries()){const r=e()(n).contents().find("body").get(0);await i._iv.pluginPromise("preProcessiXBRL",r,t),i._iv.isReviewModeEnabled()&&await new Promise(((n,s)=>{i._iv.setProgress("Finding untagged numbers and dates").then((()=>{const s=e()(r).children(":visible");s.hide(),e()(r).addClass("review"),i._wrapUntaggedNumbers(e()(r),t,!1),s.show(),n()}))}))}}().then((()=>i._iv.setProgress("Preparing document"))).then((()=>{this._reportSet.setIXNodeMap(this._ixNodeMap),this._applyStyles(),this._bindHandlers(),this.scale=1,this._setTitle(0),this._addDocumentSetTabs(),t()}))})).catch((t=>n(t)))}))}_addDocumentSetTabs(){if(this._reportSet.isMultiDocumentViewer()){e()("#ixv .ixds-tabs").show();for(const[t,n]of this._reportSet.reportFiles().entries())e()('<div class="tab"></div>').text(n.file).prop("title",n.file).data("ix-doc-id",t).on("click",(()=>this.selectDocument(t))).appendTo(e()("#ixv #viewer-pane .ixds-tabs .tab-area"));e()("#ixv #viewer-pane .ixds-tabs .tab-area .tab").eq(0).addClass("active")}}_wrapNode(t){let n="<span>";if("block"===getComputedStyle(t).getPropertyValue("display"))n="<div>";else{const e=t.getElementsByTagName("*");for(var i=0;i<e.length;i++)if("block"===getComputedStyle(e[i]).getPropertyValue("display")){n="<div>";break}}return e()(t).wrap(n),t.parentNode}_wrapUntaggedNumbers(t,n,i){const r=this,s=/(?:^|\s|;)-(?:sec|esef)-ix-hidden:\s*([^\s;]+)/;t.contents().each((function(){if(this.nodeType===Node.ELEMENT_NODE){const t=Vi(this.nodeName.toUpperCase());"NONFRACTION"===t||"NONNUMERIC"===t&&null!==this.getAttribute("format")||this.hasAttribute("style")&&this.getAttribute("style").match(s)||r._wrapUntaggedNumbers(e()(this),n,"NONNUMERIC"===t)}else if(this.nodeType===Node.TEXT_NODE){const n=this.nodeValue,r=e()("<div></div>");let s=0;!function(t,e){for(var n;null!==(n=Zn.exec(t));)e(n,void 0!==n[2],void 0!==n[1])}(n,(function(o,a,l){if(o.index>s&&r.append(document.createTextNode(n.substring(s,o.index))),a||i&&0===o.index&&o.index+o[0].length===n.length&&n===t.text())r.append(document.createTextNode(o[0]));else{const t=l?"review-untagged-date":"review-untagged-number";e()("<span></span>").text(o[0]).addClass(t).appendTo(r)}s=o.index+o[0].length})),s<n.length&&r.append(document.createTextNode(n.substring(s,n.length))),e()(this).replaceWith(r.contents())}}))}_showDocumentAndElement(t,n){if(this.selectDocument(t),void 0!==n&&""!=n)for(const i of[n,decodeURIComponent(n)]){const n=e().escapeSelector(i),r=this._iframes.eq(t).contents().find("#"+n+', a[name="'+n+'"]');if(r.length>0)return void this.showElement(r.eq(0))}}_updateLink(t){const n=e()(t).attr("href");if(void 0!==n){const[i,r]=n.split("#",2),s=this._reportSet.reportFiles().indexOf(i);n.includes("/")||-1==s?i&&e()(t).attr("target","_blank"):e()(t).on("click",(t=>{this._showDocumentAndElement(s,r),t.preventDefault()}))}}_findOrCreateWrapperNode(t,n){if(n)return e()(t).addClass("ixbrl-element-hidden");const i=t.closest("td,th"),r=[],s=e()(t).text();if(null!==i&&s.length>0){const t=e()(i).text(),n=t.indexOf(s),o=t.substring(0,n)+t.substring(n+s.length);/[0-9A-Za-z]/.test(o)||r.push(i)}0==r.length&&r.push(this._wrapNode(t));for(const t of r[0].querySelectorAll("*"))"absolute"===getComputedStyle(t).getPropertyValue("position")&&r.push(t);for(const[t,e]of r.entries())r.length>1&&e.classList.add("ixbrl-contains-absolute"),0==t?e.classList.add("ixbrl-element"):e.classList.add("ixbrl-sub-element");return e()(r)}_addIdToNode(t,e){const n=t.data("ivids")||[];n.push(e),t.data("ivids",n)}_buildContinuationMaps(){const t={},n={};this._iframes.each(((i,r)=>{const s=e()(r).data("report-index");e()(r).contents().find("body *").each(((e,i)=>{const r=Vi(i.nodeName).toUpperCase();if(["NONNUMERIC","NONFRACTION","FOOTNOTE","CONTINUATION"].includes(r)&&i.hasAttribute("id")){const e=He(s,i.getAttribute("id")),o=He(s,i.getAttribute("continuedAt"));null!==o&&(t[e]=o),"CONTINUATION"!=r&&(n[e]=[])}}))})),this.continuationOfMap={};for(const[e,r]of Object.entries(n))for(var i=e;void 0!==t[i];)i=t[i],r.push(i),void 0!==this.continuationOfMap[i]&&console.log("Continuation '"+i+"' is a continuation of multiple items."),this.continuationOfMap[i]=e;this.itemContinuationMap=n}_getOrCreateIXNode(t,e,n,i){let r=this._ixNodeMap[t];return r||(r=new Yi(t,e,n),this._ixNodeMap[t]=r,r.isHidden=i),r}_preProcessiXBRL(t,e,n,i){const r=Vi(t.nodeName).toUpperCase(),s="FOOTNOTE"===r,o="CONTINUATION"===r,a="NONNUMERIC"===r,l="NONFRACTION"===r,c=a||l;if(1===t.nodeType){const u=He(e,t.getAttribute("id"));if(c||s){if(t.hasAttribute("id")){let e=this._findOrCreateWrapperNode(t,i);this._addIdToNode(e.first(),u);let r=this._getOrCreateIXNode(u,e,n,i);if(this._docOrderItemIndex.addItem(u,n),l&&(e.addClass("ixbrl-element-nonfraction"),t.hasAttribute("scale"))){const e=Number(t.getAttribute("scale"));Number.isNaN(e)||0===e||(r.scale=e)}a&&(e.addClass("ixbrl-element-nonnumeric"),t.hasAttribute("escape")&&t.getAttribute("escape").match(/^(true|1)$/)&&(r.escaped=!0)),s&&(e.addClass("ixbrl-element-footnote"),r.footnote=!0)}}else if(o){if(t.hasAttribute("id")&&void 0!==this.continuationOfMap[u]){let e=this._findOrCreateWrapperNode(t,i);this._addIdToNode(e.first(),this.continuationOfMap[u]),this._getOrCreateIXNode(u,e,n,i),e.addClass("ixbrl-continuation")}}else if("HIDDEN"==r)i=!0;else{const s=He(e,function(t){if(t.hasAttribute("style")){const e=/(?:^|\s|;)(?:-sec|-esef)?-ix-hidden:\s*([^\s;]+)/,n=t.getAttribute("style").match(e);if(n)return n[1]}return null}(t));if(null!==s){let e=this._findOrCreateWrapperNode(t,i);e.addClass("ixbrl-element").data("ivids",[s]),this._docOrderItemIndex.addItem(s,n);const r=this._ixNodeMap[s];r?(r.wrapperNodes=e,r.docIndex=n):this._ixNodeMap[s]=new Yi(s,e,n)}"A"==r&&this._updateLink(t)}}this._preProcessChildNodes(t,e,n,i)}_preProcessChildNodes(t,e,n,i){for(const r of t.childNodes)this._preProcessiXBRL(r,e,n,i)}_applyStyles(){const t=e()("<style>").prop("type","text/css").text(n(95).toString()).appendTo(this._iframes.contents().find("head"));this._iv.callPluginMethod("updateViewerStyleElements",t)}contents(){return this._iframes.contents()}_selectAdjacentTag(t,e){var n;null!==e?(n=this._docOrderItemIndex.getAdjacentItem(e.vuid,t),this.showDocumentForItemId(n)):n=t>0?this._docOrderItemIndex.getFirstInDocument(this._currentDocumentIndex):this._docOrderItemIndex.getLastInDocument(this._currentDocumentIndex);const i=this.elementsForItemId(n);this.showElement(i),this.selectElement(n,this._ixIdsForElement(i))}_bindHandlers(){const t=this;e()(".ixbrl-element",this._contents).on("click",(function(n){n.stopPropagation(),t.selectElementByClick(e()(this))})).on("mouseenter",(function(n){t._mouseEnter(e()(this))})).on("mouseleave",(function(n){t._mouseLeave(e()(this))})),e()("body",this._contents).on("click",(()=>t.selectElement(null))),e()("#iframe-container .zoom-in").on("click",(()=>this.zoomIn())),e()("#iframe-container .zoom-out").on("click",(()=>this.zoomOut())),e()("#iframe-container .print").on("click",(()=>this.currentDocument().get(0).contentWindow.print())),Pi.addHandles(this._contents,this._reportSet)}selectNextTag(t){this._selectAdjacentTag(1,t)}selectPrevTag(t){this._selectAdjacentTag(-1,t)}intersect(t,e){const n={left:Math.max(t.left,e.left),top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom)};return n.width=n.right-n.left,n.height=n.bottom-n.top,n}isScrollableElement(t){const n=e()(t).css("overflow-y");if(t.clientHeight>0&&t.clientHeight<t.scrollHeight&&("auto"==n||"scroll"==n))return!0;const i=e()(t).css("overflow-x");return t.clientWidth>0&&t.clientWidth<t.scrollWidth&&("auto"==i||"scroll"==i)}isFullyVisible(t){var n=t.getBoundingClientRect();const i=t.getBoundingClientRect();for(var r=e()(t.parentElement);!r.is("body");){if(this.isScrollableElement(r[0])&&(n=this.intersect(n,r[0].getBoundingClientRect())),n.width<i.width||n.height<i.height)return!1;r=r.parent()}const s="CSS1Compat"!=t.ownerDocument.compatMode?r:r.closest("html").get(0);return n.left>0&&n.top>0&&n.right<s.clientWidth&&n.bottom<s.clientHeight}showElement(t){const e=t.filter(":not(.ixbrl-no-highlight)").get(0);this.isFullyVisible(e)||e.scrollIntoView({block:"center",inline:"center"})}clearHighlighting(){e()("body",this._iframes.contents()).find(".ixbrl-element, .ixbrl-sub-element").removeClass("ixbrl-selected").removeClass("ixbrl-related").removeClass("ixbrl-linked-highlight")}_ixIdsForElement(t){return t.data("ivids")}selectElement(t,e,n){null!==t?this.onSelect.fire(t,e,n):this.onSelect.fire(null)}selectElementByClick(t){let n=[];const i=this;let r;t.hasClass(".ixbrl-element")||(t=t.closest(".ixbrl-element")),t.parents(".ixbrl-element").addBack().each((function(){const s=i._ixIdsForElement(e()(this));n=n.concat(s),e()(this).text()==t.text()&&void 0===r&&(r=s[0])})),this.selectElement(r,n,!0)}_mouseEnter(t){const e=t.data("ivids")[0];this.onMouseEnter.fire(e)}_mouseLeave(t){const e=t.data("ivids")[0];this.onMouseLeave.fire(e)}highlightRelatedFact(t){this.changeItemClass(t.vuid,"ixbrl-related")}highlightRelatedFacts(t){for(const e of t)this.changeItemClass(e.vuid,"ixbrl-related")}clearRelatedHighlighting(t){e()(".ixbrl-related",this._contents).removeClass("ixbrl-related")}elementsForItemId(t){if(!(t in this._ixNodeMap))throw new Error(`Attempting to retrieve IXNode with missing key: ${t}`);return this._ixNodeMap[t].wrapperNodes}elementsForItemIds(t){return e()(t.map((t=>this.elementsForItemId(t).get())).flat())}changeItemClass(t,e,n){const i=this.elementsForItemIds([t].concat(this.itemContinuationMap[t]));n?i.removeClass(e):i.addClass(e)}highlightItem(t){this.clearHighlighting(),this.changeItemClass(t,"ixbrl-selected")}showItemById(t){if(null!==t){let e=this.elementsForItemId(t);this.showDocumentForItemId(t),e.length>0&&this.showElement(e)}}highlightAllTags(t,n){const i={};e().each(n,(function(t,e){i[e]=t%3}));const r=this._reportSet,s=this;t?(e()(".ixbrl-element",this._contents).addClass("ixbrl-highlight").each((function(){const t=e()(this).data("ivids").map((t=>s._ixNodeMap[t])).filter((t=>!t.footnote))[0];if(null!=t){const e=s.elementsForItemIds(t.chainIXIds()),n=i[r.getItemById(t.id).conceptQName().prefix];void 0!==n&&e.addClass("ixbrl-highlight-"+n)}})),e()(".ixbrl-sub-element",this._contents).addClass("ixbrl-highlight")):e()(".ixbrl-element, .ixbrl-sub-element",this._contents).removeClass(((t,e)=>(e.match(/(^|\s)ixbrl-highlight\S*/g)||[]).join(" ")))}_zoom(){const t=this._contents.scrollTop(),n=e()("html",this._contents).height();e()("body",this._contents).css("zoom",this.scale);const i=e()("html",this._contents).height();this._contents.scrollTop(i*t/n)}zoomIn(){this.scale*=1.1,this._zoom()}zoomOut(){this.scale/=1.1,this._zoom()}factsInSameTable(t){var n=[];return this.elementsForItemId(t.vuid).closest("table").find(".ixbrl-element").each((function(){n=n.concat(e()(this).data("ivids"))})),n}linkedHighlightFact(t){this.changeItemClass(t.vuid,"ixbrl-linked-highlight")}clearLinkedHighlightFact(t){this.changeItemClass(t.vuid,"ixbrl-linked-highlight",!0)}_setTitle(t){e()("#top-bar .document-title").text(e()("head title",this._iframes.eq(t).contents()).text())}showDocumentForItemId(t){this.selectDocument(this._ixNodeMap[t].docIndex)}currentDocument(){return this._iframes.eq(this._currentDocumentIndex)}selectDocument(t){this._currentDocumentIndex=t,e()("#ixv #viewer-pane .ixds-tabs .tab").removeClass("active").eq(t).addClass("active"),this._iframes.height(0).data("selected",!1).eq(t).height("100%").data("selected",!0),this._setTitle(t)}*postProcess(){for(const t of this._iframes.get()){const n=e()(t).contents().get(0).querySelectorAll(".ixbrl-contains-absolute");for(const[t,e]of n.entries())"inline"!==getComputedStyle(e).getPropertyValue("display")&&e.getBoundingClientRect().height,t%100==0&&(yield);for(const[t,e]of n.entries())"inline"!==getComputedStyle(e).getPropertyValue("display")&&0==e.getBoundingClientRect().height&&e.classList.add("ixbrl-no-highlight"),t%100==0&&(yield)}}postLoadAsync(){We(this.postProcess())}}var Gi=n(790),Qi=n.n(Gi),Ji=n(617),Xi=n.n(Ji);class qi{constructor(t){this._reportSet=t,this.ready=!1}*buildSearchIndex(t){var e=[],n={},i=this._reportSet.facts();this.periods={};for(var r=0;r<i.length;r++){var s=i[r],o={id:s.vuid},a=s.getLabel("std");for(var l in o.concept=s.conceptQName().localname,o.doc=s.getLabel("doc"),o.date=s.periodTo(),o.startDate=s.periodFrom(),n=s.dimensions())s.report.getConcept(l).isTypedDimension()?null!==n[l]&&(a+=" "+n[l]):a+=" "+s.report.getLabel(n[l],"std");o.label=a,o.ref=s.concept().referenceValuesAsString();const t=s.widerConcepts();t.length>0&&(o.widerConcept=s.report.qname(t[0]).localname,o.widerLabel=s.report.getLabel(t[0],"std"),o.widerDoc=s.report.getLabel(t[0],"doc")),e.push(o);var c=s.period();c&&(this.periods[c.key()]=c.toString()),r%100==0&&(yield)}const u=new(Xi().Builder);u.pipeline.add(Xi().trimmer,Xi().stopWordFilter,Xi().stemmer),u.searchPipeline.add(Xi().stemmer),u.ref("id"),u.field("label"),u.field("concept"),u.field("startDate"),u.field("date"),u.field("doc"),u.field("ref"),u.field("widerLabel"),u.field("widerDoc"),u.field("widerConcept");for(const[t,n]of e.entries())u.add(n),t%100==0&&(yield);this._searchIndex=u.build(),this.ready=!0,t()}visibilityFilter(t,e){return e.isHidden()?t.showHiddenFacts:t.showVisibleFacts}periodFilter(t,e){return 0===t.periodFilter.length||t.periodFilter.some((t=>e.period().key()===t))}conceptTypeFilter(t,e){return"*"===t.conceptTypeFilter||t.conceptTypeFilter===(e.isNumeric()?"numeric":"text")}dimensionTypeFilter(t,e){const n=t.dimensionTypeFilter.includes("typed"),i=t.dimensionTypeFilter.includes("explicit");return 0===t.dimensionTypeFilter.length||n&&e.hasTypedDimension()||i&&e.hasExplicitDimension()}factValueFilter(t,e){return"*"===t.factValueFilter||"positive"===t.factValueFilter&&e.isPositive()||"negative"===t.factValueFilter&&e.isNegative()}calculationsFilter(t,e){const n=t.calculationsFilter.includes("summation"),i=t.calculationsFilter.includes("contributor");return 0===t.calculationsFilter.length||n&&e.isCalculationSummation()||i&&e.isCalculationContributor()}namespacesFilter(t,e){return 0===t.namespacesFilter.length||t.namespacesFilter.some((t=>e.getConceptPrefix()===t))}unitsFilter(t,e){return 0===t.unitsFilter.length||t.unitsFilter.some((t=>e.unit()?.value()===t))}scalesFilter(t,e){return 0===t.scalesFilter.length||t.scalesFilter.some((t=>e.scale()===Number(t)))}targetDocumentFilter(t,e){return 0===t.targetDocumentFilter.length||t.targetDocumentFilter.some((t=>(e.targetDocument()??":default")===t))}search(t){if(!this.ready)return;const e=this._searchIndex.search(t.searchString),n=[],i=this,r=[this.visibilityFilter,this.periodFilter,this.conceptTypeFilter,this.dimensionTypeFilter,this.factValueFilter,this.calculationsFilter,this.namespacesFilter,this.unitsFilter,this.scalesFilter,this.targetDocumentFilter];return e.forEach(((e,s)=>{const o=i._reportSet.getItemById(e.ref);r.every((e=>e(t,o)))&&n.push({fact:o,score:e.score})})),n}}function $i(t){return t+.5|0}const Ki=(t,e,n)=>Math.max(Math.min(t,n),e);function tr(t){return Ki($i(2.55*t),0,255)}function er(t){return Ki($i(255*t),0,255)}function nr(t){return Ki($i(t/2.55)/100,0,1)}function ir(t){return Ki($i(100*t),0,100)}const rr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},sr=[..."0123456789ABCDEF"],or=t=>sr[15&t],ar=t=>sr[(240&t)>>4]+sr[15&t],lr=t=>(240&t)>>4==(15&t);const cr=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function ur(t,e,n){const i=e*Math.min(n,1-n),r=(e,r=(e+t/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function dr(t,e,n){const i=(i,r=(i+t/60)%6)=>n-n*e*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function hr(t,e,n){const i=ur(t,1,.5);let r;for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)i[r]*=1-e-n,i[r]+=e;return i}function pr(t){const e=t.r/255,n=t.g/255,i=t.b/255,r=Math.max(e,n,i),s=Math.min(e,n,i),o=(r+s)/2;let a,l,c;return r!==s&&(c=r-s,l=o>.5?c/(2-r-s):c/(r+s),a=function(t,e,n,i,r){return t===r?(e-n)/i+(e<n?6:0):e===r?(n-t)/i+2:(t-e)/i+4}(e,n,i,c,r),a=60*a+.5),[0|a,l||0,o]}function fr(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(er)}function gr(t,e,n){return fr(ur,t,e,n)}function mr(t){return(t%360+360)%360}const vr={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},yr={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let br;const xr=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,wr=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Ar=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function _r(t,e,n){if(t){let i=pr(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=gr(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Cr(t,e){return t?Object.assign(e||{},t):t}function Mr(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=er(t[3]))):(e=Cr(t,{r:0,g:0,b:0,a:1})).a=er(e.a),e}function kr(t){return"r"===t.charAt(0)?function(t){const e=xr.exec(t);let n,i,r,s=255;if(e){if(e[7]!==n){const t=+e[7];s=e[8]?tr(t):Ki(255*t,0,255)}return n=+e[1],i=+e[3],r=+e[5],n=255&(e[2]?tr(n):Ki(n,0,255)),i=255&(e[4]?tr(i):Ki(i,0,255)),r=255&(e[6]?tr(r):Ki(r,0,255)),{r:n,g:i,b:r,a:s}}}(t):function(t){const e=cr.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?tr(+e[5]):er(+e[5]));const r=mr(+e[2]),s=+e[3]/100,o=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return fr(hr,t,e,n)}(r,s,o):"hsv"===e[1]?function(t,e,n){return fr(dr,t,e,n)}(r,s,o):gr(r,s,o),{r:n[0],g:n[1],b:n[2],a:i}}(t)}class Sr{constructor(t){if(t instanceof Sr)return t;const e=typeof t;let n;var i,r,s;"object"===e?n=Mr(t):"string"===e&&(s=(i=t).length,"#"===i[0]&&(4===s||5===s?r={r:255&17*rr[i[1]],g:255&17*rr[i[2]],b:255&17*rr[i[3]],a:5===s?17*rr[i[4]]:255}:7!==s&&9!==s||(r={r:rr[i[1]]<<4|rr[i[2]],g:rr[i[3]]<<4|rr[i[4]],b:rr[i[5]]<<4|rr[i[6]],a:9===s?rr[i[7]]<<4|rr[i[8]]:255})),n=r||function(t){br||(br=function(){const t={},e=Object.keys(yr),n=Object.keys(vr);let i,r,s,o,a;for(i=0;i<e.length;i++){for(o=a=e[i],r=0;r<n.length;r++)s=n[r],a=a.replace(s,vr[s]);s=parseInt(yr[o],16),t[a]=[s>>16&255,s>>8&255,255&s]}return t}(),br.transparent=[0,0,0,0]);const e=br[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||kr(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Cr(this._rgb);return t&&(t.a=nr(t.a)),t}set rgb(t){this._rgb=Mr(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${nr(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?(t=this._rgb,e=(t=>lr(t.r)&&lr(t.g)&&lr(t.b)&&lr(t.a))(t)?or:ar,t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0):void 0;var t,e}hslString(){return this._valid?function(t){if(!t)return;const e=pr(t),n=e[0],i=ir(e[1]),r=ir(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${r}%, ${nr(t.a)})`:`hsl(${n}, ${i}%, ${r}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let r;const s=e===r?.5:e,o=2*s-1,a=n.a-i.a,l=((o*a==-1?o:(o+a)/(1+o*a))+1)/2;r=1-l,n.r=255&l*n.r+r*i.r+.5,n.g=255&l*n.g+r*i.g+.5,n.b=255&l*n.b+r*i.b+.5,n.a=s*n.a+(1-s)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=Ar(nr(t.r)),r=Ar(nr(t.g)),s=Ar(nr(t.b));return{r:er(wr(i+n*(Ar(nr(e.r))-i))),g:er(wr(r+n*(Ar(nr(e.g))-r))),b:er(wr(s+n*(Ar(nr(e.b))-s))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Sr(this.rgb)}alpha(t){return this._rgb.a=er(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=$i(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return _r(this._rgb,2,t),this}darken(t){return _r(this._rgb,2,-t),this}saturate(t){return _r(this._rgb,1,t),this}desaturate(t){return _r(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=pr(t);n[0]=mr(n[0]+e),n=gr(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}const Ir=(()=>{let t=0;return()=>t++})();function Lr(t){return null==t}function Dr(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function Tr(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function Nr(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function Or(t,e){return Nr(t)?t:e}function jr(t,e){return void 0===t?e:t}function Er(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function zr(t,e,n,i){let r,s,o;if(Dr(t))if(s=t.length,i)for(r=s-1;r>=0;r--)e.call(n,t[r],r);else for(r=0;r<s;r++)e.call(n,t[r],r);else if(Tr(t))for(o=Object.keys(t),s=o.length,r=0;r<s;r++)e.call(n,t[o[r]],o[r])}function Fr(t,e){let n,i,r,s;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(r=t[n],s=e[n],r.datasetIndex!==s.datasetIndex||r.index!==s.index)return!1;return!0}function Pr(t){if(Dr(t))return t.map(Pr);if(Tr(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let r=0;for(;r<i;++r)e[n[r]]=Pr(t[n[r]]);return e}return t}function Rr(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function Yr(t,e,n,i){if(!Rr(t))return;const r=e[t],s=n[t];Tr(r)&&Tr(s)?Ur(r,s,i):e[t]=Pr(s)}function Ur(t,e,n){const i=Dr(e)?e:[e],r=i.length;if(!Tr(t))return t;const s=(n=n||{}).merger||Yr;let o;for(let e=0;e<r;++e){if(o=i[e],!Tr(o))continue;const r=Object.keys(o);for(let e=0,i=r.length;e<i;++e)s(r[e],t,o,n)}return t}function Br(t,e){return Ur(t,e,{merger:Wr})}function Wr(t,e,n){if(!Rr(t))return;const i=e[t],r=n[t];Tr(i)&&Tr(r)?Br(i,r):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Pr(r))}const Hr={"":t=>t,x:t=>t.x,y:t=>t.y};function Vr(t,e){const n=Hr[e]||(Hr[e]=function(t){const e=function(t){const e=t.split("."),n=[];let i="";for(const t of e)i+=t,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function Zr(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Gr=t=>void 0!==t,Qr=t=>"function"==typeof t,Jr=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0},Xr=Math.PI,qr=2*Xr,$r=Number.POSITIVE_INFINITY,Kr=Xr/2,ts=Math.log10,es=Math.sign;function ns(t,e,n){return Math.abs(t-e)<n}function is(t){const e=Math.round(t);t=ns(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(ts(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function rs(t){return!isNaN(parseFloat(t))&&isFinite(t)}function ss(t){return t*(Xr/180)}function os(t){if(!Nr(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function as(t){return(t%qr+qr)%qr}function ls(t,e,n){return Math.max(e,Math.min(n,t))}function cs(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function us(t,e,n){n=n||(n=>t[n]<e);let i,r=t.length-1,s=0;for(;r-s>1;)i=s+r>>1,n(i)?s=i:r=i;return{lo:s,hi:r}}const ds=(t,e,n,i)=>us(t,n,i?i=>{const r=t[i][e];return r<n||r===n&&t[i+1][e]===n}:i=>t[i][e]<n),hs=(t,e,n)=>us(t,n,(i=>t[i][e]>=n)),ps=["push","pop","shift","splice","unshift"];function fs(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(e);-1!==r&&i.splice(r,1),i.length>0||(ps.forEach((e=>{delete t[e]})),delete t._chartjs)}const gs="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function ms(t,e){let n=[],i=!1;return function(...r){n=r,i||(i=!0,gs.call(window,(()=>{i=!1,t.apply(e,n)})))}}const vs=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,ys=t=>0===t||1===t,bs=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*qr/n),xs=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*qr/n)+1,ws={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*Kr),easeOutSine:t=>Math.sin(t*Kr),easeInOutSine:t=>-.5*(Math.cos(Xr*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>ys(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>ys(t)?t:bs(t,.075,.3),easeOutElastic:t=>ys(t)?t:xs(t,.075,.3),easeInOutElastic(t){const e=.1125;return ys(t)?t:t<.5?.5*bs(2*t,e,.45):.5+.5*xs(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-ws.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*ws.easeInBounce(2*t):.5*ws.easeOutBounce(2*t-1)+.5};function As(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function _s(t){return As(t)?t:new Sr(t)}function Cs(t){return As(t)?t:new Sr(t).saturate(.5).darken(.1).hexString()}const Ms=["x","y","borderWidth","radius","tension"],ks=["color","borderColor","backgroundColor"],Ss=new Map;function Is(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=Ss.get(n);return i||(i=new Intl.NumberFormat(t,e),Ss.set(n,i)),i}(e,n).format(t)}const Ls={values:t=>Dr(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let r,s=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(r="scientific"),s=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}(t,n)}const o=ts(Math.abs(s)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Is(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=n[e].significand||t/Math.pow(10,Math.floor(ts(t)));return[1,2,3,5,10,15].includes(i)||e>.8*n.length?Ls.numeric.call(this,t,e,n):""}};var Ds={formatters:Ls};const Ts=Object.create(null),Ns=Object.create(null);function Os(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function js(t,e,n){return"string"==typeof e?Ur(Os(t,e),n):Ur(Os(t,""),e)}class Es{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Cs(e.backgroundColor),this.hoverBorderColor=(t,e)=>Cs(e.borderColor),this.hoverColor=(t,e)=>Cs(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return js(this,t,e)}get(t){return Os(this,t)}describe(t,e){return js(Ns,t,e)}override(t,e){return js(Ts,t,e)}route(t,e,n,i){const r=Os(this,t),s=Os(this,n),o="_"+e;Object.defineProperties(r,{[o]:{value:r[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[o],e=s[i];return Tr(t)?Object.assign({},e,t):jr(t,e)},set(t){this[o]=t}}})}apply(t){t.forEach((t=>t(this)))}}var zs=new Es({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:ks},numbers:{type:"number",properties:Ms}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ds.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function Fs(t,e,n,i,r){let s=e[r];return s||(s=e[r]=t.measureText(r).width,n.push(r)),s>i&&(i=s),i}function Ps(t,e,n){const i=t.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((e-r)*i)/i+r}function Rs(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Ys(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Us(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Bs(t){t.restore()}function Ws(t,e,n,i,r){if(r.strikethrough||r.underline){const s=t.measureText(i),o=e-s.actualBoundingBoxLeft,a=e+s.actualBoundingBoxRight,l=n-s.actualBoundingBoxAscent,c=n+s.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=r.decorationWidth||2,t.moveTo(o,u),t.lineTo(a,u),t.stroke()}}function Hs(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function Vs(t,e,n,i,r,s={}){const o=Dr(e)?e:[e],a=s.strokeWidth>0&&""!==s.strokeColor;let l,c;for(t.save(),t.font=r.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),Lr(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,s),l=0;l<o.length;++l)c=o[l],s.backdrop&&Hs(t,s.backdrop),a&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),Lr(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(c,n,i,s.maxWidth)),t.fillText(c,n,i,s.maxWidth),Ws(t,n,i,c,s),i+=Number(r.lineHeight);t.restore()}function Zs(t,e){const{x:n,y:i,w:r,h:s,radius:o}=e;t.arc(n+o.topLeft,i+o.topLeft,o.topLeft,1.5*Xr,Xr,!0),t.lineTo(n,i+s-o.bottomLeft),t.arc(n+o.bottomLeft,i+s-o.bottomLeft,o.bottomLeft,Xr,Kr,!0),t.lineTo(n+r-o.bottomRight,i+s),t.arc(n+r-o.bottomRight,i+s-o.bottomRight,o.bottomRight,Kr,0,!0),t.lineTo(n+r,i+o.topRight),t.arc(n+r-o.topRight,i+o.topRight,o.topRight,0,-Kr,!0),t.lineTo(n+o.topLeft,i)}const Gs=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Qs=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Js(t,e){const n=(""+t).match(Gs);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}function Xs(t,e){const n={},i=Tr(e),r=i?Object.keys(e):e,s=Tr(t)?i?n=>jr(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of r)n[t]=+s(t)||0;return n}function qs(t){return Xs(t,{top:"y",right:"x",bottom:"y",left:"x"})}function $s(t){const e=qs(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ks(t,e){t=t||{},e=e||zs.font;let n=jr(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=jr(t.style,e.style);i&&!(""+i).match(Qs)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:jr(t.family,e.family),lineHeight:Js(jr(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:jr(t.weight,e.weight),string:""};return r.string=function(t){return!t||Lr(t.size)||Lr(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(r),r}function to(t,e,n,i){let r,s,o,a=!0;for(r=0,s=t.length;r<s;++r)if(o=t[r],void 0!==o&&(void 0!==e&&"function"==typeof o&&(o=o(e),a=!1),void 0!==n&&Dr(o)&&(o=o[n%o.length],a=!1),void 0!==o))return i&&!a&&(i.cacheable=!1),o}function eo(t,e){return Object.assign(Object.create(t),e)}function no(t,e=[""],n,i,r=()=>t[0]){const s=n||t;void 0===i&&(i=fo("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:s,_fallback:i,_getTarget:r,override:n=>no([n,...t],e,s,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>ao(n,i,(()=>function(t,e,n,i){let r;for(const s of e)if(r=fo(so(s,t),n),void 0!==r)return oo(t,r)?ho(n,i,t,r):r}(i,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>go(t).includes(e),ownKeys:t=>go(t),set(t,e,n){const i=t._storage||(t._storage=r());return t[e]=i[e]=n,delete t._keys,!0}})}function io(t,e,n,i){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:ro(t,i),setContext:e=>io(t,e,n,i),override:r=>io(t.override(r),e,n,i)};return new Proxy(r,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>ao(t,e,(()=>function(t,e,n){const{_proxy:i,_context:r,_subProxy:s,_descriptors:o}=t;let a=i[e];return Qr(a)&&o.isScriptable(e)&&(a=function(t,e,n,i){const{_proxy:r,_context:s,_subProxy:o,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(s,o||i);return a.delete(t),oo(t,l)&&(l=ho(r._scopes,r,t,l)),l}(e,a,t,n)),Dr(a)&&a.length&&(a=function(t,e,n,i){const{_proxy:r,_context:s,_subProxy:o,_descriptors:a}=n;if(void 0!==s.index&&i(t))return e[s.index%e.length];if(Tr(e[0])){const n=e,i=r._scopes.filter((t=>t!==n));e=[];for(const l of n){const n=ho(i,r,t,l);e.push(io(n,s,o&&o[t],a))}}return e}(e,a,t,o.isIndexable)),oo(e,a)&&(a=io(a,r,s&&s[e],o)),a}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function ro(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:n,indexable:i,isScriptable:Qr(n)?n:()=>n,isIndexable:Qr(i)?i:()=>i}}const so=(t,e)=>t?t+Zr(e):e,oo=(t,e)=>Tr(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function ao(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const i=n();return t[e]=i,i}function lo(t,e,n){return Qr(t)?t(e,n):t}const co=(t,e)=>!0===t?e:"string"==typeof t?Vr(e,t):void 0;function uo(t,e,n,i,r){for(const s of e){const e=co(n,s);if(e){t.add(e);const s=lo(e._fallback,n,r);if(void 0!==s&&s!==n&&s!==i)return s}else if(!1===e&&void 0!==i&&n!==i)return null}return!1}function ho(t,e,n,i){const r=e._rootScopes,s=lo(e._fallback,n,i),o=[...t,...r],a=new Set;a.add(i);let l=po(a,o,n,s||n,i);return null!==l&&(void 0===s||s===n||(l=po(a,o,s,l,i),null!==l))&&no(Array.from(a),[""],r,s,(()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const r=i[e];return Dr(r)&&Tr(n)?n:r||{}}(e,n,i)))}function po(t,e,n,i,r){for(;n;)n=uo(t,e,n,i,r);return n}function fo(t,e){for(const n of e){if(!n)continue;const e=n[t];if(void 0!==e)return e}}function go(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function mo(){return"undefined"!=typeof window&&"undefined"!=typeof document}function vo(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function yo(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}Number.EPSILON;const bo=t=>t.ownerDocument.defaultView.getComputedStyle(t,null),xo=["top","right","bottom","left"];function wo(t,e,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const s=xo[r];i[s]=parseFloat(t[e+"-"+s+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function Ao(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,r=bo(n),s="border-box"===r.boxSizing,o=wo(r,"padding"),a=wo(r,"border","width"),{x:l,y:c,box:u}=function(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:r,offsetY:s}=i;let o,a,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(r,s,t.target))o=r,a=s;else{const t=e.getBoundingClientRect();o=i.clientX-t.left,a=i.clientY-t.top,l=!0}return{x:o,y:a,box:l}}(t,n),d=o.left+(u&&a.left),h=o.top+(u&&a.top);let{width:p,height:f}=e;return s&&(p-=o.width+a.width,f-=o.height+a.height),{x:Math.round((l-d)/p*n.width/i),y:Math.round((c-h)/f*n.height/i)}}const _o=t=>Math.round(10*t)/10;function Co(t,e,n){const i=e||1,r=Math.floor(t.height*i),s=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||o.height!==r||o.width!==s)&&(t.currentDevicePixelRatio=i,o.height=r,o.width=s,t.ctx.setTransform(i,0,0,i,0,0),!0)}const Mo=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};mo()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function ko(t,e){const n=function(t,e){return bo(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}class So{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const r=e.listeners[i],s=e.duration;r.forEach((i=>i({chart:t,initial:e.initial,numSteps:s,currentStep:Math.min(n-e.start,s)})))}_refresh(){this._request||(this._running=!0,this._request=gs.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,i)=>{if(!n.running||!n.items.length)return;const r=n.items;let s,o=r.length-1,a=!1;for(;o>=0;--o)s=r[o],s._active?(s._total>n.duration&&(n.duration=s._total),s.tick(t),a=!0):(r[o]=r[r.length-1],r.pop());a&&(i.draw(),this._notify(i,n,t,"progress")),r.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=r.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Io=new So;const Lo="transparent",Do={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=_s(t||Lo),r=i.valid&&_s(e||Lo);return r&&r.valid?r.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class To{constructor(t,e,n,i){const r=e[n];i=to([t.to,i,r,t.from]);const s=to([t.from,r,i]);this._active=!0,this._fn=t.fn||Do[t.type||typeof s],this._easing=ws[t.easing]||ws.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],r=n-this._start,s=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=r,this._loop=!!t.loop,this._to=to([t.to,e,i,t.from]),this._from=to([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,r=this._from,s=this._loop,o=this._to;let a;if(this._active=r!==o&&(s||e<n),!this._active)return this._target[i]=o,void this._notify(!0);e<0?this._target[i]=r:(a=e/n%2,a=s&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[i]=this._fn(r,o,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}class No{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Tr(t))return;const e=Object.keys(zs.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const r=t[i];if(!Tr(r))return;const s={};for(const t of e)s[t]=r[t];(Dr(r.properties)&&r.properties||[i]).forEach((t=>{t!==i&&n.has(t)||n.set(t,s)}))}))}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}(t,n);if(!i)return[];const r=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const r=t[i[e]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),r}_createAnimations(t,e){const n=this._properties,i=[],r=t.$animations||(t.$animations={}),s=Object.keys(e),o=Date.now();let a;for(a=s.length-1;a>=0;--a){const l=s[a];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let u=r[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,o);continue}u.cancel()}d&&d.duration?(r[l]=u=new To(d,t,l,c),i.push(u)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(Io.add(this._chart,n),!0):void 0}}function Oo(t,e){const n=t&&t.options||{},i=n.reverse,r=void 0===n.min?e:0,s=void 0===n.max?e:0;return{start:i?s:r,end:i?r:s}}function jo(t,e){const n=[],i=t._getSortedDatasetMetas(e);let r,s;for(r=0,s=i.length;r<s;++r)n.push(i[r].index);return n}function Eo(t,e,n,i={}){const r=t.keys,s="single"===i.mode;let o,a,l,c;if(null!==e){for(o=0,a=r.length;o<a;++o){if(l=+r[o],l===n){if(i.all)continue;break}c=t.values[l],Nr(c)&&(s||0===e||es(e)===es(c))&&(e+=c)}return e}}function zo(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function Fo(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function Po(t,e,n,i){for(const r of e.getMatchingVisibleMetas(i).reverse()){const e=t[r.index];if(n&&e>0||!n&&e<0)return r.index}return null}function Ro(t,e){const{chart:n,_cachedMeta:i}=t,r=n._stacks||(n._stacks={}),{iScale:s,vScale:o,index:a}=i,l=s.axis,c=o.axis,u=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(s,o,i),d=e.length;let h;for(let t=0;t<d;++t){const n=e[t],{[l]:s,[c]:d}=n;h=(n._stacks||(n._stacks={}))[c]=Fo(r,u,s),h[a]=d,h._top=Po(h,o,!0,i.type),h._bottom=Po(h,o,!1,i.type),(h._visualValues||(h._visualValues={}))[a]=d}}function Yo(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function Uo(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n],void 0!==e[i]._visualValues&&void 0!==e[i]._visualValues[n]&&delete e[i]._visualValues[n]}}}const Bo=t=>"reset"===t||"none"===t,Wo=(t,e)=>e?t:Object.assign({},t);class Ho{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=zo(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Uo(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,r=e.xAxisID=jr(n.xAxisID,Yo(t,"x")),s=e.yAxisID=jr(n.yAxisID,Yo(t,"y")),o=e.rAxisID=jr(n.rAxisID,Yo(t,"r")),a=e.indexAxis,l=e.iAxisID=i(a,r,s,o),c=e.vAxisID=i(a,s,r,o);e.xScale=this.getScaleForId(r),e.yScale=this.getScaleForId(s),e.rScale=this.getScaleForId(o),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&fs(this._data,this),t._stacked&&Uo(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(Tr(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:n,vScale:i}=e,r="x"===n.axis?"x":"y",s="x"===i.axis?"x":"y",o=Object.keys(t),a=new Array(o.length);let l,c,u;for(l=0,c=o.length;l<c;++l)u=o[l],a[l]={[r]:u,[s]:t[u]};return a}(e,t)}else if(n!==e){if(n){fs(n,this);const t=this._cachedMeta;Uo(t),t._parsed=[]}e&&Object.isExtensible(e)&&((i=e)._chartjs?i._chartjs.listeners.push(this):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),ps.forEach((t=>{const e="_onData"+Zr(t),n=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...t){const r=n.apply(this,t);return i._chartjs.listeners.forEach((n=>{"function"==typeof n[e]&&n[e](...t)})),r}})})))),this._syncList=[],this._data=e}var i}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const r=e._stacked;e._stacked=zo(e.vScale,e),e.stack!==n.stack&&(i=!0,Uo(e),e.stack=n.stack),this._resyncElements(t),(i||r!==e._stacked)&&(Ro(this,e._parsed),e._stacked=zo(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:r,_stacked:s}=n,o=r.axis;let a,l,c,u=0===t&&e===i.length||n._sorted,d=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=Dr(i[t])?this.parseArrayData(n,i,t,e):Tr(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const r=()=>null===l[o]||d&&l[o]<d[o];for(a=0;a<e;++a)n._parsed[a+t]=l=c[a],u&&(r()&&(u=!1),d=l);n._sorted=u}s&&Ro(this,c)}parsePrimitiveData(t,e,n,i){const{iScale:r,vScale:s}=t,o=r.axis,a=s.axis,l=r.getLabels(),c=r===s,u=new Array(i);let d,h,p;for(d=0,h=i;d<h;++d)p=d+n,u[d]={[o]:c||r.parse(l[p],p),[a]:s.parse(e[p],p)};return u}parseArrayData(t,e,n,i){const{xScale:r,yScale:s}=t,o=new Array(i);let a,l,c,u;for(a=0,l=i;a<l;++a)c=a+n,u=e[c],o[a]={x:r.parse(u[0],c),y:s.parse(u[1],c)};return o}parseObjectData(t,e,n,i){const{xScale:r,yScale:s}=t,{xAxisKey:o="x",yAxisKey:a="y"}=this._parsing,l=new Array(i);let c,u,d,h;for(c=0,u=i;c<u;++c)d=c+n,h=e[d],l[c]={x:r.parse(Vr(h,o),d),y:s.parse(Vr(h,a),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,r=this._cachedMeta,s=e[t.axis];return Eo({keys:jo(i,!0),values:e._stacks[t.axis]._visualValues},s,r.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const r=n[e.axis];let s=null===r?NaN:r;const o=i&&n._stacks[e.axis];i&&o&&(i.values=o,s=Eo(i,r,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,r=n._sorted&&t===n.iScale,s=i.length,o=this._getOtherScale(t),a=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:jo(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(t){const{min:e,max:n,minDefined:i,maxDefined:r}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(o);let d,h;function p(){h=i[d];const e=h[o.axis];return!Nr(h[t.axis])||c>e||u<e}for(d=0;d<s&&(p()||(this.updateRangeFromParsed(l,t,h,a),!r));++d);if(r)for(d=s-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(l,t,h,a);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,r,s;for(i=0,r=e.length;i<r;++i)s=e[i][t.axis],Nr(s)&&n.push(s);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,r=this.getParsed(t);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:i?""+i.getLabelForValue(r[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,r;return Tr(t)?(e=t.top,n=t.right,i=t.bottom,r=t.left):e=n=i=r=t,{top:e,right:n,bottom:i,left:r,disabled:!1===t}}(jr(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=Oo(t,n),r=Oo(e,n);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],r=e.chartArea,s=[],o=this._drawStart||0,a=this._drawCount||i.length-o,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,r,o,a),c=o;c<o+a;++c){const e=i[c];e.hidden||(e.active&&l?s.push(e):e.draw(t,r))}for(c=0;c<s.length;++c)s[c].draw(t,r)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let r;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];r=e.$context||(e.$context=function(t,e,n){return eo(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),r.parsed=this.getParsed(t),r.raw=i.data[t],r.index=r.dataIndex=t}else r=this.$context||(this.$context=function(t,e){return eo(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!e,r.mode=n,r}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const i="active"===e,r=this._cachedDataOpts,s=t+"-"+e,o=r[s],a=this.enableOptionSharing&&Gr(n);if(o)return Wo(o,a);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),u=i?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),c),h=Object.keys(zs.elements[t]),p=l.resolveNamedOptions(d,h,(()=>this.getContext(n,i,e)),u);return p.$shared&&(p.$shared=a,r[s]=Object.freeze(Wo(p,a))),p}_resolveAnimations(t,e,n){const i=this.chart,r=this._cachedDataOpts,s=`animation-${e}`,o=r[s];if(o)return o;let a;if(!1!==i.options.animation){const i=this.chart.config,r=i.datasetAnimationScopeKeys(this._type,e),s=i.getOptionScopes(this.getDataset(),r);a=i.createResolver(s,this.getContext(t,n,e))}const l=new No(i,a&&a.animations);return a&&a._cacheable&&(r[s]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Bo(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,r=this.getSharedOptions(n),s=this.includeOptions(e,r)||r!==i;return this.updateSharedOptions(r,e,n),{sharedOptions:r,includeOptions:s}}updateElement(t,e,n,i){Bo(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!Bo(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const r=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(r)||r})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,r=e.length,s=Math.min(r,i);s&&this.parse(0,s),r>i?this._insertElements(i,r-i,t):r<i&&this._removeElements(r,i-r)}_insertElements(t,e,n=!0){const i=this._cachedMeta,r=i.data,s=t+e;let o;const a=t=>{for(t.length+=e,o=t.length-1;o>=s;o--)t[o]=t[o-e]};for(a(r),o=t;o<s;++o)r[o]=new this.dataElementType;this._parsing&&a(i._parsed),this.parse(t,e),n&&this.updateElements(r,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&Uo(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Vo(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,r=n.length;e<r;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=function(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}(i.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let i,r,s,o,a=e._length;const l=()=>{32767!==s&&-32768!==s&&(Gr(o)&&(a=Math.min(a,Math.abs(s-o)||a)),o=s)};for(i=0,r=n.length;i<r;++i)s=e.getPixelForValue(n[i]),l();for(o=void 0,i=0,r=e.ticks.length;i<r;++i)s=e.getPixelForTick(i),l();return a}function Zo(t,e,n,i){return Dr(t)?function(t,e,n,i){const r=n.parse(t[0],i),s=n.parse(t[1],i),o=Math.min(r,s),a=Math.max(r,s);let l=o,c=a;Math.abs(o)>Math.abs(a)&&(l=a,c=o),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:r,end:s,min:o,max:a}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function Go(t,e,n,i){const r=t.iScale,s=t.vScale,o=r.getLabels(),a=r===s,l=[];let c,u,d,h;for(c=n,u=n+i;c<u;++c)h=e[c],d={},d[r.axis]=a||r.parse(o[c],c),l.push(Zo(h,d,s,c));return l}function Qo(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Jo(t,e,n,i){let r=e.borderSkipped;const s={};if(!r)return void(t.borderSkipped=s);if(!0===r)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:o,end:a,reverse:l,top:c,bottom:u}=function(t){let e,n,i,r,s;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(r="end",s="start"):(r="start",s="end"),{start:n,end:i,reverse:e,top:r,bottom:s}}(t);"middle"===r&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?r=c:(n._bottom||0)===i?r=u:(s[Xo(u,o,a,l)]=!0,r=c)),s[Xo(r,o,a,l)]=!0,t.borderSkipped=s}function Xo(t,e,n,i){var r,s,o;return i?(o=n,t=qo(t=(r=t)===(s=e)?o:r===o?s:r,n,e)):t=qo(t,e,n),t}function qo(t,e,n){return"start"===t?e:"end"===t?n:t}function $o(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}class Ko extends Ho{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,n,i){return Go(t,e,n,i)}parseArrayData(t,e,n,i){return Go(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:r,vScale:s}=t,{xAxisKey:o="x",yAxisKey:a="y"}=this._parsing,l="x"===r.axis?o:a,c="x"===s.axis?o:a,u=[];let d,h,p,f;for(d=n,h=n+i;d<h;++d)f=e[d],p={},p[r.axis]=r.parse(Vr(f,l),d),u.push(Zo(Vr(f,c),p,s,d));return u}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const r=n._custom;r&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,r=this.getParsed(t),s=r._custom,o=Qo(s)?"["+s.start+", "+s.end+"]":""+i.getLabelForValue(r[i.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,i){const r="reset"===i,{index:s,_cachedMeta:{vScale:o}}=this,a=o.getBasePixel(),l=o.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(e,i);for(let h=e;h<e+n;h++){const e=this.getParsed(h),n=r||Lr(e[o.axis])?{base:a,head:a}:this._calculateBarValuePixels(h),p=this._calculateBarIndexPixels(h,c),f=(e._stacks||{})[o.axis],g={horizontal:l,base:n.base,enableBorderRadius:!f||Qo(e._custom)||s===f._top||s===f._bottom,x:l?n.head:p.center,y:l?p.center:n.head,height:l?p.size:Math.abs(n.size),width:l?Math.abs(n.size):p.size};d&&(g.options=u||this.resolveDataElementOptions(h,t[h].active?"active":i));const m=g.options||t[h].options;Jo(g,m,f,s),$o(g,m,c.ratio),this.updateElement(t[h],h,g,i)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),r=n.options.stacked,s=[],o=this._cachedMeta.controller.getParsed(e),a=o&&o[n.axis],l=t=>{const e=t._parsed.find((t=>t[n.axis]===a)),i=e&&e[t.vScale.axis];if(Lr(i)||isNaN(i))return!0};for(const n of i)if((void 0===e||!l(n))&&((!1===r||-1===s.indexOf(n.stack)||void 0===r&&void 0===n.stack)&&s.push(n.stack),n.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),r=void 0!==e?i.indexOf(e):-1;return-1===r?i.length-1:r}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let r,s;for(r=0,s=e.data.length;r<s;++r)i.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const o=t.barThickness;return{min:o||Vo(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:o?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n,index:i},options:{base:r,minBarLength:s}}=this,o=r||0,a=this.getParsed(t),l=a._custom,c=Qo(l);let u,d,h=a[e.axis],p=0,f=n?this.applyStack(e,a,n):h;f!==h&&(p=f-h,f=h),c&&(h=l.barStart,f=l.barEnd-l.barStart,0!==h&&es(h)!==es(l.barEnd)&&(p=0),p+=h);const g=Lr(r)||c?p:r;let m=e.getPixelForValue(g);if(u=this.chart.getDataVisibility(t)?e.getPixelForValue(p+f):m,d=u-m,Math.abs(d)<s){d=function(t,e,n){return 0!==t?es(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(d,e,o)*s,h===o&&(m-=d/2);const t=e.getPixelForDecimal(0),r=e.getPixelForDecimal(1),l=Math.min(t,r),p=Math.max(t,r);m=Math.max(Math.min(m,p),l),u=m+d,n&&!c&&(a._stacks[e.axis]._visualValues[i]=e.getValueForPixel(u)-e.getValueForPixel(m))}if(m===e.getPixelForValue(o)){const t=es(d)*e.getLineWidthForValue(o)/2;m+=t,d-=t}return{size:d,base:m,head:u,center:u+d/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,r=i.skipNull,s=jr(i.maxBarThickness,1/0);let o,a;if(e.grouped){const n=r?this._getStackCount(t):e.stackCount,l="flex"===i.barThickness?function(t,e,n,i){const r=e.pixels,s=r[t];let o=t>0?r[t-1]:null,a=t<r.length-1?r[t+1]:null;const l=n.categoryPercentage;null===o&&(o=s-(null===a?e.end-e.start:a-s)),null===a&&(a=s+s-o);const c=s-(s-Math.min(o,a))/2*l;return{chunk:Math.abs(a-o)/2*l/i,ratio:n.barPercentage,start:c}}(t,e,i,n):function(t,e,n,i){const r=n.barThickness;let s,o;return Lr(r)?(s=e.min*n.categoryPercentage,o=n.barPercentage):(s=r*i,o=1),{chunk:s/i,ratio:o,start:e.pixels[t]-s/2}}(t,e,i,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,r?t:void 0);o=l.start+l.chunk*c+l.chunk/2,a=Math.min(s,l.chunk*l.ratio)}else o=n.getPixelForValue(this.getParsed(t)[n.axis],t),a=Math.min(s,e.min*e.ratio);return{base:o-a/2,head:o+a/2,center:o,size:a}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let r=0;for(;r<i;++r)null===this.getParsed(r)[e.axis]||n[r].hidden||n[r].draw(this._ctx)}}function ta(t,e,n,i){const{controller:r,data:s,_sorted:o}=t,a=r._cachedMeta.iScale;if(a&&e===a.axis&&"r"!==e&&o&&s.length){const t=a._reversePixels?hs:ds;if(!i)return t(s,e,n);if(r._sharedOptions){const i=s[0],r="function"==typeof i.getRange&&i.getRange(e);if(r){const i=t(s,e,n-r),o=t(s,e,n+r);return{lo:i.lo,hi:o.hi}}}}return{lo:0,hi:s.length-1}}function ea(t,e,n,i,r){const s=t.getSortedVisibleDatasetMetas(),o=n[e];for(let t=0,n=s.length;t<n;++t){const{index:n,data:a}=s[t],{lo:l,hi:c}=ta(s[t],e,o,r);for(let t=l;t<=c;++t){const e=a[t];e.skip||i(e,n,t)}}}function na(t,e,n,i,r){const s=[];return r||t.isPointInArea(e)?(ea(t,n,e,(function(n,o,a){(r||Ys(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&s.push({element:n,datasetIndex:o,index:a})}),!0),s):s}function ia(t,e,n,i,r,s){return s||t.isPointInArea(e)?"r"!==n||i?function(t,e,n,i,r,s){let o=[];const a=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const r=e?Math.abs(t.x-i.x):0,s=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(s,2))}}(n);let l=Number.POSITIVE_INFINITY;return ea(t,n,e,(function(n,c,u){const d=n.inRange(e.x,e.y,r);if(i&&!d)return;const h=n.getCenterPoint(r);if(!s&&!t.isPointInArea(h)&&!d)return;const p=a(e,h);p<l?(o=[{element:n,datasetIndex:c,index:u}],l=p):p===l&&o.push({element:n,datasetIndex:c,index:u})})),o}(t,e,n,i,r,s):function(t,e,n,i){let r=[];return ea(t,n,e,(function(t,n,s){const{startAngle:o,endAngle:a}=t.getProps(["startAngle","endAngle"],i),{angle:l}=function(t,e){const n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i);let s=Math.atan2(i,n);return s<-.5*Xr&&(s+=qr),{angle:s,distance:r}}(t,{x:e.x,y:e.y});(function(t,e,n,i){const r=as(t),s=as(e),o=as(n),a=as(s-r),l=as(o-r),c=as(r-s),u=as(r-o);return r===s||r===o||i&&s===o||a>l&&c<u})(l,o,a)&&r.push({element:t,datasetIndex:n,index:s})})),r}(t,e,n,r):[]}function ra(t,e,n,i,r){const s=[],o="x"===n?"inXRange":"inYRange";let a=!1;return ea(t,n,e,((t,i,l)=>{t[o]&&t[o](e[n],r)&&(s.push({element:t,datasetIndex:i,index:l}),a=a||t.inRange(e.x,e.y,r))})),i&&!a?[]:s}var sa={evaluateInteractionItems:ea,modes:{index(t,e,n,i){const r=Ao(e,t),s=n.axis||"x",o=n.includeInvisible||!1,a=n.intersect?na(t,r,s,i,o):ia(t,r,s,!1,i,o),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=a[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,n,i){const r=Ao(e,t),s=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?na(t,r,s,i,o):ia(t,r,s,!1,i,o);if(a.length>0){const e=a[0].datasetIndex,n=t.getDatasetMeta(e).data;a=[];for(let t=0;t<n.length;++t)a.push({element:n[t],datasetIndex:e,index:t})}return a},point:(t,e,n,i)=>na(t,Ao(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const r=Ao(e,t),s=n.axis||"xy",o=n.includeInvisible||!1;return ia(t,r,s,n.intersect,i,o)},x:(t,e,n,i)=>ra(t,Ao(e,t),"x",n.intersect,i),y:(t,e,n,i)=>ra(t,Ao(e,t),"y",n.intersect,i)}};const oa=["left","top","right","bottom"];function aa(t,e){return t.filter((t=>t.pos===e))}function la(t,e){return t.filter((t=>-1===oa.indexOf(t.pos)&&t.box.axis===e))}function ca(t,e){return t.sort(((t,n)=>{const i=e?n:t,r=e?t:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight}))}function ua(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function da(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function ha(t,e,n,i){const{pos:r,box:s}=n,o=t.maxPadding;if(!Tr(r)){n.size&&(t[r]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?s.height:s.width),n.size=e.size/e.count,t[r]+=n.size}s.getPadding&&da(o,s.getPadding());const a=Math.max(0,e.outerWidth-ua(o,t,"left","right")),l=Math.max(0,e.outerHeight-ua(o,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function pa(t,e){const n=e.maxPadding;return function(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{i[t]=Math.max(e[t],n[t])})),i}(t?["left","right"]:["top","bottom"])}function fa(t,e,n,i){const r=[];let s,o,a,l,c,u;for(s=0,o=t.length,c=0;s<o;++s){a=t[s],l=a.box,l.update(a.width||e.w,a.height||e.h,pa(a.horizontal,e));const{same:o,other:d}=ha(e,n,a,i);c|=o&&r.length,u=u||d,l.fullSize||r.push(a)}return c&&fa(r,e,n,i)||u}function ga(t,e,n,i,r){t.top=n,t.left=e,t.right=e+i,t.bottom=n+r,t.width=i,t.height=r}function ma(t,e,n,i){const r=n.padding;let{x:s,y:o}=e;for(const a of t){const t=a.box,l=i[a.stack]||{count:1,placed:0,weight:1},c=a.stackWeight/l.weight||1;if(a.horizontal){const i=e.w*c,s=l.size||t.height;Gr(l.start)&&(o=l.start),t.fullSize?ga(t,r.left,o,n.outerWidth-r.right-r.left,s):ga(t,e.left+l.placed,o,i,s),l.start=o,l.placed+=i,o=t.bottom}else{const i=e.h*c,o=l.size||t.width;Gr(l.start)&&(s=l.start),t.fullSize?ga(t,s,r.top,o,n.outerHeight-r.bottom-r.top):ga(t,s,e.top+l.placed,o,i),l.start=s,l.placed+=i,s=t.right}}e.x=s,e.y=o}var va={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const r=$s(t.options.layout.padding),s=Math.max(e-r.width,0),o=Math.max(n-r.height,0),a=function(t){const e=function(t){const e=[];let n,i,r,s,o,a;for(n=0,i=(t||[]).length;n<i;++n)r=t[n],({position:s,options:{stack:o,stackWeight:a=1}}=r),e.push({index:n,box:r,pos:s,horizontal:r.isHorizontal(),weight:r.weight,stack:o&&s+o,stackWeight:a});return e}(t),n=ca(e.filter((t=>t.box.fullSize)),!0),i=ca(aa(e,"left"),!0),r=ca(aa(e,"right")),s=ca(aa(e,"top"),!0),o=ca(aa(e,"bottom")),a=la(e,"x"),l=la(e,"y");return{fullSize:n,leftAndTop:i.concat(s),rightAndBottom:r.concat(l).concat(o).concat(a),chartArea:aa(e,"chartArea"),vertical:i.concat(r).concat(l),horizontal:s.concat(o).concat(a)}}(t.boxes),l=a.vertical,c=a.horizontal;zr(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const u=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:r,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/u,hBoxMaxHeight:o/2}),h=Object.assign({},r);da(h,$s(i));const p=Object.assign({maxPadding:h,w:s,h:o,x:r.left,y:r.top},r),f=function(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:r}=n;if(!t||!oa.includes(i))continue;const s=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=r}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:r}=e;let s,o,a;for(s=0,o=t.length;s<o;++s){a=t[s];const{fullSize:o}=a.box,l=n[a.stack],c=l&&a.stackWeight/l.weight;a.horizontal?(a.width=c?c*i:o&&e.availableWidth,a.height=r):(a.width=i,a.height=c?c*r:o&&e.availableHeight)}return n}(l.concat(c),d);fa(a.fullSize,p,d,f),fa(l,p,d,f),fa(c,p,d,f)&&fa(l,p,d,f),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(p),ma(a.leftAndTop,p,d,f),p.x+=p.w,p.y+=p.h,ma(a.rightAndBottom,p,d,f),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},zr(a.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class ya{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class ba extends ya{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const xa="$chartjs",wa={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Aa=t=>null===t||""===t,_a=!!Mo&&{passive:!0};function Ca(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,_a)}function Ma(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function ka(t,e,n){const i=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Ma(n.addedNodes,i),e=e&&!Ma(n.removedNodes,i);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function Sa(t,e,n){const i=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Ma(n.removedNodes,i),e=e&&!Ma(n.addedNodes,i);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const Ia=new Map;let La=0;function Da(){const t=window.devicePixelRatio;t!==La&&(La=t,Ia.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function Ta(t,e,n){const i=t.canvas,r=i&&vo(i);if(!r)return;const s=ms(((t,e)=>{const i=r.clientWidth;n(t,e),i<r.clientWidth&&n()}),window),o=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||s(n,i)}));return o.observe(r),function(t,e){Ia.size||window.addEventListener("resize",Da),Ia.set(t,e)}(t,s),o}function Na(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){Ia.delete(t),Ia.size||window.removeEventListener("resize",Da)}(t)}function Oa(t,e,n){const i=t.canvas,r=ms((e=>{null!==t.ctx&&n(function(t,e){const n=wa[t.type]||t.type,{x:i,y:r}=Ao(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==r?r:null}}(e,t))}),t);return function(t,e,n){t&&t.addEventListener(e,n,_a)}(i,e,r),r}class ja extends ya{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[xa]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Aa(r)){const e=ko(t,"width");void 0!==e&&(t.width=e)}if(Aa(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=ko(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[xa])return!1;const n=e[xa].initial;["height","width"].forEach((t=>{const i=n[t];Lr(i)?e.removeAttribute(t):e.setAttribute(t,i)}));const i=n.style||{};return Object.keys(i).forEach((t=>{e.style[t]=i[t]})),e.width=e.width,delete e[xa],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),r={attach:ka,detach:Sa,resize:Ta}[e]||Oa;i[e]=r(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];i&&(({attach:Na,detach:Na,resize:Na}[e]||Ca)(t,e,i),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return function(t,e,n,i){const r=bo(t),s=wo(r,"margin"),o=yo(r.maxWidth,t,"clientWidth")||$r,a=yo(r.maxHeight,t,"clientHeight")||$r,l=function(t,e,n){let i,r;if(void 0===e||void 0===n){const s=t&&vo(t);if(s){const t=s.getBoundingClientRect(),o=bo(s),a=wo(o,"border","width"),l=wo(o,"padding");e=t.width-l.width-a.width,n=t.height-l.height-a.height,i=yo(o.maxWidth,s,"clientWidth"),r=yo(o.maxHeight,s,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||$r,maxHeight:r||$r}}(t,e,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const t=wo(r,"border","width"),e=wo(r,"padding");c-=e.width+t.width,u-=e.height+t.height}return c=Math.max(0,c-s.width),u=Math.max(0,i?c/i:u-s.height),c=_o(Math.min(c,o,l.maxWidth)),u=_o(Math.min(u,a,l.maxHeight)),c&&!u&&(u=_o(c/2)),(void 0!==e||void 0!==n)&&i&&l.height&&u>l.height&&(u=l.height,c=_o(Math.floor(u*i))),{width:c,height:u}}(t,e,n,i)}isAttached(t){const e=t&&vo(t);return!(!e||!e.isConnected)}}class Ea{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return rs(this.x)&&rs(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach((t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),i}}function za(t,e,n,i,r){const s=jr(i,0),o=Math.min(jr(r,t.length),t.length);let a,l,c,u=0;for(n=Math.ceil(n),r&&(a=r-i,n=a/Math.floor(a/n)),c=s;c<0;)u++,c=Math.round(s+u*n);for(l=Math.max(s,0);l<o;l++)l===c&&(e.push(t[l]),u++,c=Math.round(s+u*n))}const Fa=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n,Pa=(t,e)=>Math.min(e||t,t);function Ra(t,e){const n=[],i=t.length/e,r=t.length;let s=0;for(;s<r;s+=i)n.push(t[Math.floor(s)]);return n}function Ya(t,e,n){const i=t.ticks.length,r=Math.min(e,i-1),s=t._startPixel,o=t._endPixel,a=1e-6;let l,c=t.getPixelForTick(r);if(!(n&&(l=1===i?Math.max(c-s,o-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(r-1))/2,c+=r<e?l:-l,c<s-a||c>o+a)))return c}function Ua(t){return t.drawTicks?t.tickLength:0}function Ba(t,e){if(!t.display)return 0;const n=Ks(t.font,e),i=$s(t.padding);return(Dr(t.text)?t.text.length:1)*n.lineHeight+i.height}function Wa(t,e,n){let i=(t=>"start"===t?"left":"end"===t?"right":"center")(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class Ha extends Ea{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:i}=this;return t=Or(t,Number.POSITIVE_INFINITY),e=Or(e,Number.NEGATIVE_INFINITY),n=Or(n,Number.POSITIVE_INFINITY),i=Or(i,Number.NEGATIVE_INFINITY),{min:Or(t,n),max:Or(e,i),minDefined:Nr(t),maxDefined:Nr(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:r,maxDefined:s}=this.getUserBounds();if(r&&s)return{min:n,max:i};const o=this.getMatchingVisibleMetas();for(let a=0,l=o.length;a<l;++a)e=o[a].controller.getMinMax(this,t),r||(n=Math.min(n,e.min)),s||(i=Math.max(i,e.max));return n=s&&n>i?i:n,i=r&&n>i?n:i,{min:Or(n,Or(i,n)),max:Or(i,Or(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Er(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:r,ticks:s}=this.options,o=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:i,max:r}=t,s=(l=(r-i)/2,"string"==typeof(a=e)&&a.endsWith("%")?parseFloat(a)/100*l:+a),o=(t,e)=>n&&0===t?0:t+e;var a,l;return{min:o(i,-Math.abs(s)),max:o(r,s)}}(this,r,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=o<this.ticks.length;this._convertTicksToLabels(a?Ra(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||"auto"===s.source)&&(this.ticks=function(t,e){const n=t.options.ticks,i=function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),r=t._maxLength/n;return Math.floor(Math.min(i,r))}(t),r=Math.min(n.maxTicksLimit||i,i),s=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],o=s.length,a=s[0],l=s[o-1],c=[];if(o>r)return function(t,e,n,i){let r,s=0,o=n[0];for(i=Math.ceil(i),r=0;r<t.length;r++)r===o&&(e.push(t[r]),s++,o=n[s*i])}(e,c,s,o/r),c;const u=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),r=e.length/n;if(!i)return Math.max(r,1);const s=function(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i==0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}(i);for(let t=0,e=s.length-1;t<e;t++){const e=s[t];if(e>r)return e}return Math.max(r,1)}(s,e,r);if(o>0){let t,n;const i=o>1?Math.round((l-a)/(o-1)):null;for(za(e,c,u,Lr(i)?0:a-i,a),t=0,n=o-1;t<n;t++)za(e,c,u,s[t],s[t+1]);return za(e,c,u,l,Lr(i)?e.length:l+i),c}return za(e,c,u),c}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Er(this.options.afterUpdate,[this])}beforeSetDimensions(){Er(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Er(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Er(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Er(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,r;for(n=0,i=t.length;n<i;n++)r=t[n],r.label=Er(e.callback,[r.value,n,t],this)}afterTickToLabelConversion(){Er(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Er(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=Pa(this.ticks.length,t.ticks.maxTicksLimit),i=e.minRotation||0,r=e.maxRotation;let s,o,a,l=i;if(!this._isVisible()||!e.display||i>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,h=ls(this.chart.width-u,0,this.maxWidth);s=t.offset?this.maxWidth/n:h/(n-1),u+6>s&&(s=h/(n-(t.offset?.5:1)),o=this.maxHeight-Ua(t.grid)-e.padding-Ba(t.title,this.chart.options.font),a=Math.sqrt(u*u+d*d),l=Math.min(Math.asin(ls((c.highest.height+6)/s,-1,1)),Math.asin(ls(o/a,-1,1))-Math.asin(ls(d/a,-1,1)))*(180/Xr),l=Math.max(i,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){Er(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Er(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:r}}=this,s=this._isVisible(),o=this.isHorizontal();if(s){const s=Ba(i,e.options.font);if(o?(t.width=this.maxWidth,t.height=Ua(r)+s):(t.height=this.maxHeight,t.width=Ua(r)+s),n.display&&this.ticks.length){const{first:e,last:i,widest:r,highest:s}=this._getLabelSizes(),a=2*n.padding,l=ss(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(o){const e=n.mirror?0:u*r.width+c*s.height;t.height=Math.min(this.maxHeight,t.height+e+a)}else{const e=n.mirror?0:c*r.width+u*s.height;t.width=Math.min(this.maxWidth,t.width+e+a)}this._calculatePadding(e,i,u,c)}}this._handleMargins(),o?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,i){const{ticks:{align:r,padding:s},position:o}=this.options,a=0!==this.labelRotation,l="top"!==o&&"x"===this.axis;if(this.isHorizontal()){const o=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;a?l?(u=i*t.width,d=n*e.height):(u=n*t.height,d=i*e.width):"start"===r?d=e.width:"end"===r?u=t.width:"inner"!==r&&(u=t.width/2,d=e.width/2),this.paddingLeft=Math.max((u-o+s)*this.width/(this.width-o),0),this.paddingRight=Math.max((d-c+s)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===r?(n=0,i=t.height):"end"===r&&(n=e.height,i=0),this.paddingTop=n+s,this.paddingBottom=i+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Er(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)Lr(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=Ra(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,n){const{ctx:i,_longestTextCache:r}=this,s=[],o=[],a=Math.floor(e/Pa(e,n));let l,c,u,d,h,p,f,g,m,v,y,b=0,x=0;for(l=0;l<e;l+=a){if(d=t[l].label,h=this._resolveTickFontOptions(l),i.font=p=h.string,f=r[p]=r[p]||{data:{},gc:[]},g=h.lineHeight,m=v=0,Lr(d)||Dr(d)){if(Dr(d))for(c=0,u=d.length;c<u;++c)y=d[c],Lr(y)||Dr(y)||(m=Fs(i,f.data,f.gc,m,y),v+=g)}else m=Fs(i,f.data,f.gc,m,d),v=g;s.push(m),o.push(v),b=Math.max(m,b),x=Math.max(v,x)}!function(t,e){zr(t,(t=>{const n=t.gc,i=n.length/2;let r;if(i>e){for(r=0;r<i;++r)delete t.data[n[r]];n.splice(0,i)}}))}(r,e);const w=s.indexOf(b),A=o.indexOf(x),_=t=>({width:s[t]||0,height:o[t]||0});return{first:_(0),last:_(e-1),widest:_(w),highest:_(A),widths:s,heights:o}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return ls(this._alignToPixels?Ps(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return eo(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=eo(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=ss(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),r=this._getLabelSizes(),s=t.autoSkipPadding||0,o=r?r.widest.width+s:0,a=r?r.highest.height+s:0;return this.isHorizontal()?a*n>o*i?o/n:a/i:a*i<o*n?a/n:o/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:r,position:s,border:o}=i,a=r.offset,l=this.isHorizontal(),c=this.ticks.length+(a?1:0),u=Ua(r),d=[],h=o.setContext(this.getContext()),p=h.display?h.width:0,f=p/2,g=function(t){return Ps(n,t,p)};let m,v,y,b,x,w,A,_,C,M,k,S;if("top"===s)m=g(this.bottom),w=this.bottom-u,_=m-f,M=g(t.top)+f,S=t.bottom;else if("bottom"===s)m=g(this.top),M=t.top,S=g(t.bottom)-f,w=m+f,_=this.top+u;else if("left"===s)m=g(this.right),x=this.right-u,A=m-f,C=g(t.left)+f,k=t.right;else if("right"===s)m=g(this.left),C=t.left,k=g(t.right)-f,x=m+f,A=this.left+u;else if("x"===e){if("center"===s)m=g((t.top+t.bottom)/2+.5);else if(Tr(s)){const t=Object.keys(s)[0],e=s[t];m=g(this.chart.scales[t].getPixelForValue(e))}M=t.top,S=t.bottom,w=m+f,_=w+u}else if("y"===e){if("center"===s)m=g((t.left+t.right)/2);else if(Tr(s)){const t=Object.keys(s)[0],e=s[t];m=g(this.chart.scales[t].getPixelForValue(e))}x=m-f,A=x-u,C=t.left,k=t.right}const I=jr(i.ticks.maxTicksLimit,c),L=Math.max(1,Math.ceil(c/I));for(v=0;v<c;v+=L){const t=this.getContext(v),e=r.setContext(t),i=o.setContext(t),s=e.lineWidth,c=e.color,u=i.dash||[],h=i.dashOffset,p=e.tickWidth,f=e.tickColor,g=e.tickBorderDash||[],m=e.tickBorderDashOffset;y=Ya(this,v,a),void 0!==y&&(b=Ps(n,y,s),l?x=A=C=k=b:w=_=M=S=b,d.push({tx1:x,ty1:w,tx2:A,ty2:_,x1:C,y1:M,x2:k,y2:S,width:s,color:c,borderDash:u,borderDashOffset:h,tickWidth:p,tickColor:f,tickBorderDash:g,tickBorderDashOffset:m}))}return this._ticksLength=c,this._borderValue=m,d}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:r}=n,s=this.isHorizontal(),o=this.ticks,{align:a,crossAlign:l,padding:c,mirror:u}=r,d=Ua(n.grid),h=d+c,p=u?-c:h,f=-ss(this.labelRotation),g=[];let m,v,y,b,x,w,A,_,C,M,k,S,I="middle";if("top"===i)w=this.bottom-p,A=this._getXAxisLabelAlignment();else if("bottom"===i)w=this.top+p,A=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(d);A=t.textAlign,x=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(d);A=t.textAlign,x=t.x}else if("x"===e){if("center"===i)w=(t.top+t.bottom)/2+h;else if(Tr(i)){const t=Object.keys(i)[0],e=i[t];w=this.chart.scales[t].getPixelForValue(e)+h}A=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)x=(t.left+t.right)/2-h;else if(Tr(i)){const t=Object.keys(i)[0],e=i[t];x=this.chart.scales[t].getPixelForValue(e)}A=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===a?I="top":"end"===a&&(I="bottom"));const L=this._getLabelSizes();for(m=0,v=o.length;m<v;++m){y=o[m],b=y.label;const t=r.setContext(this.getContext(m));_=this.getPixelForTick(m)+r.labelOffset,C=this._resolveTickFontOptions(m),M=C.lineHeight,k=Dr(b)?b.length:1;const e=k/2,n=t.color,a=t.textStrokeColor,c=t.textStrokeWidth;let d,h=A;if(s?(x=_,"inner"===A&&(h=m===v-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),S="top"===i?"near"===l||0!==f?-k*M+M/2:"center"===l?-L.highest.height/2-e*M+M:-L.highest.height+M/2:"near"===l||0!==f?M/2:"center"===l?L.highest.height/2-e*M:L.highest.height-k*M,u&&(S*=-1),0===f||t.showLabelBackdrop||(x+=M/2*Math.sin(f))):(w=_,S=(1-k)*M/2),t.showLabelBackdrop){const e=$s(t.backdropPadding),n=L.heights[m],i=L.widths[m];let r=S-e.top,s=0-e.left;switch(I){case"middle":r-=n/2;break;case"bottom":r-=n}switch(A){case"center":s-=i/2;break;case"right":s-=i;break;case"inner":m===v-1?s-=i:m>0&&(s-=i/2)}d={left:s,top:r,width:i+e.width,height:n+e.height,color:t.backdropColor}}g.push({label:b,font:C,textOffset:S,options:{rotation:f,color:n,strokeColor:a,strokeWidth:c,textAlign:h,textBaseline:I,translation:[x,w],backdrop:d}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-ss(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:r}}=this.options,s=t+r,o=this._getLabelSizes().widest.width;let a,l;return"left"===e?i?(l=this.right+r,"near"===n?a="left":"center"===n?(a="center",l+=o/2):(a="right",l+=o)):(l=this.right-s,"near"===n?a="right":"center"===n?(a="center",l-=o/2):(a="left",l=this.left)):"right"===e?i?(l=this.left+r,"near"===n?a="right":"center"===n?(a="center",l-=o/2):(a="left",l-=o)):(l=this.left+s,"near"===n?a="left":"center"===n?(a="center",l+=o/2):(a="right",l=this.right)):a="right",{textAlign:a,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:r,height:s}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,r,s),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex((e=>e.value===t));return n>=0?e.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,s;const o=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(r=0,s=i.length;r<s;++r){const t=i[r];e.drawOnChartArea&&o({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&o({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:n,grid:i}}=this,r=n.setContext(this.getContext()),s=n.display?r.width:0;if(!s)return;const o=i.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=Ps(t,this.left,s)-s/2,c=Ps(t,this.right,o)+o/2,u=d=a):(u=Ps(t,this.top,s)-s/2,d=Ps(t,this.bottom,o)+o/2,l=c=a),e.save(),e.lineWidth=r.width,e.strokeStyle=r.color,e.beginPath(),e.moveTo(l,u),e.lineTo(c,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&Us(e,n);const i=this.getLabelItems(t);for(const t of i){const n=t.options,i=t.font;Vs(e,t.label,0,t.textOffset,i,n)}n&&Bs(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const r=Ks(n.font),s=$s(n.padding),o=n.align;let a=r.lineHeight/2;"bottom"===e||"center"===e||Tr(e)?(a+=s.bottom,Dr(n.text)&&(a+=r.lineHeight*(n.text.length-1))):a+=s.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(t,e,n,i){const{top:r,left:s,bottom:o,right:a,chart:l}=t,{chartArea:c,scales:u}=l;let d,h,p,f=0;const g=o-r,m=a-s;if(t.isHorizontal()){if(h=vs(i,s,a),Tr(n)){const t=Object.keys(n)[0],i=n[t];p=u[t].getPixelForValue(i)+g-e}else p="center"===n?(c.bottom+c.top)/2+g-e:Fa(t,n,e);d=a-s}else{if(Tr(n)){const t=Object.keys(n)[0],i=n[t];h=u[t].getPixelForValue(i)-m+e}else h="center"===n?(c.left+c.right)/2-m+e:Fa(t,n,e);p=vs(i,o,r),f="left"===n?-Kr:Kr}return{titleX:h,titleY:p,maxWidth:d,rotation:f}}(this,a,e,o);Vs(t,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:d,textAlign:Wa(o,e,i),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=jr(t.grid&&t.grid.z,-1),i=jr(t.border&&t.border.z,0);return this._isVisible()&&this.draw===Ha.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let r,s;for(r=0,s=e.length;r<s;++r){const s=e[r];s[n]!==this.id||t&&s.type!==t||i.push(s)}return i}_resolveTickFontOptions(t){return Ks(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Va{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,r=t.id,s=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+t);return r in i||(i[r]=t,function(t,e,n){const i=Ur(Object.create(null),[n?zs.get(n):{},zs.get(e),t.defaults]);zs.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((n=>{const i=n.split("."),r=i.pop(),s=[t].concat(i).join("."),o=e[n].split("."),a=o.pop(),l=o.join(".");zs.route(s,r,l,a)}))}(e,t.defaultRoutes),t.descriptors&&zs.describe(e,t.descriptors)}(t,s,n),this.override&&zs.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in zs[i]&&(delete zs[i][n],this.override&&delete Ts[n])}}class Za{constructor(){this.controllers=new Va(Ho,"datasets",!0),this.elements=new Va(Ea,"elements"),this.plugins=new Va(Object,"plugins"),this.scales=new Va(Ha,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach((e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):zr(e,(e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)}))}))}_exec(t,e,n){const i=Zr(t);Er(n["before"+i],[],n),e[t](n),Er(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}}var Ga=new Za;class Qa{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const r=i?this._descriptors(t).filter(i):this._descriptors(t),s=this._notify(r,t,e,n);return"afterDestroy"===e&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,e,n,i){i=i||{};for(const r of t){const t=r.plugin;if(!1===Er(t[n],[e,i,r.options],t)&&i.cancelable)return!1}return!0}invalidate(){Lr(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,i=jr(n.options&&n.options.plugins,{}),r=function(t){const e={},n=[],i=Object.keys(Ga.plugins.items);for(let t=0;t<i.length;t++)n.push(Ga.getPlugin(i[t]));const r=t.plugins||[];for(let t=0;t<r.length;t++){const i=r[t];-1===n.indexOf(i)&&(n.push(i),e[i.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},i,r){const s=[],o=t.getContext();for(const a of e){const e=a.id,l=Ja(i[e],r);null!==l&&s.push({plugin:a,options:Xa(t.config,{plugin:a,local:n[e]},l,o)})}return s}(t,r,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function Ja(t,e){return e||!1!==t?!0===t?{}:t:null}function Xa(t,{plugin:e,local:n},i,r){const s=t.pluginScopeKeys(e),o=t.getOptionScopes(i,s);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function qa(t,e){const n=zs.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function $a(t){if("x"===t||"y"===t||"r"===t)return t}function Ka(t,...e){if($a(t))return t;for(const i of e){const e=i.axis||("top"===(n=i.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.length>1&&$a(t[0].toLowerCase());if(e)return e}var n;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function tl(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function el(t){const e=t.options||(t.options={});e.plugins=jr(e.plugins,{}),e.scales=function(t,e){const n=Ts[t.type]||{scales:{}},i=e.scales||{},r=qa(t.type,e),s=Object.create(null);return Object.keys(i).forEach((e=>{const o=i[e];if(!Tr(o))return console.error(`Invalid scale configuration for scale: ${e}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const a=Ka(e,o,function(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(n.length)return tl(t,"x",n[0])||tl(t,"y",n[0])}return{}}(e,t),zs.scales[o.type]),l=function(t,e){return t===e?"_index_":"_value_"}(a,r),c=n.scales||{};s[e]=Br(Object.create(null),[{axis:a},o,c[a],c[l]])})),t.data.datasets.forEach((n=>{const r=n.type||t.type,o=n.indexAxis||qa(r,e),a=(Ts[r]||{}).scales||{};Object.keys(a).forEach((t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,o),r=n[e+"AxisID"]||e;s[r]=s[r]||Object.create(null),Br(s[r],[{axis:e},i[r],a[t]])}))})),Object.keys(s).forEach((t=>{const e=s[t];Br(e,[zs.scales[e.type],zs.scale])})),s}(t,e)}function nl(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const il=new Map,rl=new Set;function sl(t,e){let n=il.get(t);return n||(n=e(),il.set(t,n),rl.add(n)),n}const ol=(t,e,n)=>{const i=Vr(e,n);void 0!==i&&t.add(i)};class al{constructor(t){this._config=function(t){return(t=t||{}).data=nl(t.data),el(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=nl(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),el(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return sl(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return sl(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return sl(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return sl(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:r}=this,s=this._cachedScopes(t,n),o=s.get(e);if(o)return o;const a=new Set;e.forEach((e=>{t&&(a.add(t),e.forEach((e=>ol(a,t,e)))),e.forEach((t=>ol(a,i,t))),e.forEach((t=>ol(a,Ts[r]||{},t))),e.forEach((t=>ol(a,zs,t))),e.forEach((t=>ol(a,Ns,t)))}));const l=Array.from(a);return 0===l.length&&l.push(Object.create(null)),rl.has(e)&&s.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Ts[e]||{},zs.datasets[e]||{},{type:e},zs,Ns]}resolveNamedOptions(t,e,n,i=[""]){const r={$shared:!0},{resolver:s,subPrefixes:o}=ll(this._resolverCache,t,i);let a=s;(function(t,e){const{isScriptable:n,isIndexable:i}=ro(t);for(const r of e){const e=n(r),s=i(r),o=(s||e)&&t[r];if(e&&(Qr(o)||cl(o))||s&&Dr(o))return!0}return!1})(s,e)&&(r.$shared=!1,a=io(s,n=Qr(n)?n():n,this.createResolver(t,n,o)));for(const t of e)r[t]=a[t];return r}createResolver(t,e,n=[""],i){const{resolver:r}=ll(this._resolverCache,t,n);return Tr(e)?io(r,e,void 0,i):r}}function ll(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const r=n.join();let s=i.get(r);return s||(s={resolver:no(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},i.set(r,s)),s}const cl=t=>Tr(t)&&Object.getOwnPropertyNames(t).some((e=>Qr(t[e]))),ul=["top","bottom","left","right","chartArea"];function dl(t,e){return"top"===t||"bottom"===t||-1===ul.indexOf(t)&&"x"===e}function hl(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function pl(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Er(n&&n.onComplete,[t],e)}function fl(t){const e=t.chart,n=e.options.animation;Er(n&&n.onProgress,[t],e)}function gl(t){return mo()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const ml={},vl=t=>{const e=gl(t);return Object.values(ml).filter((t=>t.canvas===e)).pop()};function yl(t,e,n){const i=Object.keys(t);for(const r of i){const i=+r;if(i>=e){const s=t[r];delete t[r],(n>0||i>e)&&(t[i+n]=s)}}}function bl(t,e,n){return t.options.clip?t[n]:e[n]}class xl{static defaults=zs;static instances=ml;static overrides=Ts;static registry=Ga;static version="4.4.5";static getChart=vl;static register(...t){Ga.add(...t),wl()}static unregister(...t){Ga.remove(...t),wl()}constructor(t,e){const n=this.config=new al(e),i=gl(t),r=vl(i);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const s=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!mo()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?ba:ja}(i)),this.platform.updateConfig(n);const o=this.platform.acquireContext(i,s.aspectRatio),a=o&&o.canvas,l=a&&a.height,c=a&&a.width;this.id=Ir(),this.ctx=o,this.canvas=a,this.width=c,this.height=l,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Qa,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}((t=>this.update(t)),s.resizeDelay||0),this._dataChanges=[],ml[this.id]=this,o&&a?(Io.listen(this,"complete",pl),Io.listen(this,"progress",fl),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:i,_aspectRatio:r}=this;return Lr(t)?e&&r?r:i?n/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Ga}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Co(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Rs(this.canvas,this.ctx),this}stop(){return Io.stop(this),this}resize(t,e){Io.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,t,e,r),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,Co(this,o,!0)&&(this.notifyPlugins("resize",{size:s}),Er(n.onResize,[this,s],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){zr(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let r=[];e&&(r=r.concat(Object.keys(e).map((t=>{const n=e[t],i=Ka(t,n),r="r"===i,s="x"===i;return{options:n,dposition:r?"chartArea":s?"bottom":"left",dtype:r?"radialLinear":s?"category":"linear"}})))),zr(r,(e=>{const r=e.options,s=r.id,o=Ka(s,r),a=jr(r.type,e.dtype);void 0!==r.position&&dl(r.position,o)===dl(e.dposition)||(r.position=e.dposition),i[s]=!0;let l=null;s in n&&n[s].type===a?l=n[s]:(l=new(Ga.getScale(a))({id:s,type:a,ctx:this.ctx,chart:this}),n[l.id]=l),l.init(r,t)})),zr(i,((t,e)=>{t||delete n[e]})),zr(n,(t=>{va.configure(this,t,t.options),va.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(hl("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let r=this.getDatasetMeta(n);const s=i.type||this.config.type;if(r.type&&r.type!==s&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=s,r.indexAxis=i.indexAxis||qa(s,this.options),r.order=i.order||0,r.index=n,r.label=""+i.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const e=Ga.getController(s),{datasetElementType:i,dataElementType:o}=zs.datasets[s];Object.assign(e,{dataElementType:Ga.getElement(o),datasetElementType:i&&Ga.getElement(i)}),r.controller=new e(this,n),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){zr(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!i&&-1===r.indexOf(e);e.buildOrUpdateElements(n),s=Math.max(+e.getMaxOverflow(),s)}s=this._minPadding=n.layout.autoPadding?s:0,this._updateLayout(s),i||zr(r,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(hl("z","_idx"));const{_active:o,_lastEvent:a}=this;a?this._eventHandler(a,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){zr(this.scales,(t=>{va.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);Jr(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:r}of e)yl(t,i,"_removeElements"===n?-r:r)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),i=n(0);for(let t=1;t<e;t++)if(!Jr(i,n(t)))return;return Array.from(i).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;va.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],zr(this.boxes,(t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,Qr(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Io.has(this)?this.attached&&!Io.running(this)&&Io.start(this):(this.draw(),pl({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,r;for(i=0,r=e.length;i<r;++i){const r=e[i];t&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,i=!n.disabled,r=function(t,e){const{xScale:n,yScale:i}=t;return n&&i?{left:bl(n,e,"left"),right:bl(n,e,"right"),top:bl(i,e,"top"),bottom:bl(i,e,"bottom")}:e}(t,this.chartArea),s={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",s)&&(i&&Us(e,{left:!1===n.left?0:r.left-n.left,right:!1===n.right?this.width:r.right+n.right,top:!1===n.top?0:r.top-n.top,bottom:!1===n.bottom?this.height:r.bottom+n.bottom}),t.controller.draw(),i&&Bs(e),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return Ys(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const r=sa.modes[e];return"function"==typeof r?r(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter((t=>t&&t._dataset===e)).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=eo(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const i=n?"show":"hide",r=this.getDatasetMeta(t),s=r.controller._resolveAnimations(void 0,i);Gr(e)?(r.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),s.update(r,{visible:n}),this.update((e=>e.datasetIndex===t?i:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Io.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Rs(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete ml[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};zr(this.options.events,(t=>n(t,i)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},r=(t,e)=>{this.canvas&&this.resize(t,e)};let s;const o=()=>{i("attach",o),this.attached=!0,this.resize(),n("resize",r),n("detach",s)};s=()=>{this.attached=!1,i("resize",r),this._stop(),this._resize(0,0),n("attach",o)},e.isAttached(this.canvas)?o():s()}unbindEvents(){zr(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},zr(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let r,s,o,a;for("dataset"===e&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+i+"DatasetHoverStyle"]()),o=0,a=t.length;o<a;++o){s=t[o];const e=s&&this.getDatasetMeta(s.datasetIndex).controller;e&&e[i+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}));!Fr(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,n){const i=this.options.hover,r=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),s=r(e,t),o=n?t:r(t,e);s.length&&this.updateHoverStyle(s,i.mode,!1),o.length&&i.mode&&this.updateHoverStyle(o,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const r=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(r||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:r}=this,s=e,o=this._getActiveElements(t,i,n,s),a=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,a);n&&(this._lastEvent=null,Er(r.onHover,[t,o,this],this),a&&Er(r.onClick,[t,o,this],this));const c=!Fr(o,i);return(c||e)&&(this._active=o,this._updateHoverStyles(o,i,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,i)}}function wl(){return zr(xl.instances,(t=>t._plugins.invalidate()))}function Al(t,e){const{x:n,y:i,base:r,width:s,height:o}=t.getProps(["x","y","base","width","height"],e);let a,l,c,u,d;return t.horizontal?(d=o/2,a=Math.min(n,r),l=Math.max(n,r),c=i-d,u=i+d):(d=s/2,a=n-d,l=n+d,c=Math.min(i,r),u=Math.max(i,r)),{left:a,top:c,right:l,bottom:u}}function _l(t,e,n,i){return t?0:ls(e,n,i)}function Cl(t){const e=Al(t),n=e.right-e.left,i=e.bottom-e.top,r=function(t,e,n){const i=t.options.borderWidth,r=t.borderSkipped,s=qs(i);return{t:_l(r.top,s.top,0,n),r:_l(r.right,s.right,0,e),b:_l(r.bottom,s.bottom,0,n),l:_l(r.left,s.left,0,e)}}(t,n/2,i/2),s=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),r=t.options.borderRadius,s=function(t){return Xs(t,["topLeft","topRight","bottomLeft","bottomRight"])}(r),o=Math.min(e,n),a=t.borderSkipped,l=i||Tr(r);return{topLeft:_l(!l||a.top||a.left,s.topLeft,0,o),topRight:_l(!l||a.top||a.right,s.topRight,0,o),bottomLeft:_l(!l||a.bottom||a.left,s.bottomLeft,0,o),bottomRight:_l(!l||a.bottom||a.right,s.bottomRight,0,o)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:s},inner:{x:e.left+r.l,y:e.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,s.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(r.b,r.r))}}}}function Ml(t,e,n,i){const r=null===e,s=null===n,o=t&&!(r&&s)&&Al(t,i);return o&&(r||cs(e,o.left,o.right))&&(s||cs(n,o.top,o.bottom))}function kl(t,e){t.rect(e.x,e.y,e.w,e.h)}function Sl(t,e,n={}){const i=t.x!==n.x?-e:0,r=t.y!==n.y?-e:0,s=(t.x+t.w!==n.x+n.w?e:0)-i,o=(t.y+t.h!==n.y+n.h?e:0)-r;return{x:t.x+i,y:t.y+r,w:t.w+s,h:t.h+o,radius:t.radius}}class Il extends Ea{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:i}}=this,{inner:r,outer:s}=Cl(this),o=(a=s.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?Zs:kl;var a;t.save(),s.w===r.w&&s.h===r.h||(t.beginPath(),o(t,Sl(s,e,r)),t.clip(),o(t,Sl(r,-e,s)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),o(t,Sl(r,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return Ml(this,t,e,n)}inXRange(t,e){return Ml(this,t,null,e)}inYRange(t,e){return Ml(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:r}=this.getProps(["x","y","base","horizontal"],t);return{x:r?(e+i)/2:e,y:r?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}function Ll(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}new WeakMap;class Dl extends Ha{static id="category";static defaults={ticks:{callback:Ll}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Lr(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:ls(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:function(t,e,n,i){const r=t.indexOf(e);return-1===r?((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i):r!==t.lastIndexOf(e)?n:r}(n,t,jr(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let r=this.getLabels();r=0===t&&e===r.length-1?r:r.slice(t,e+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){return Ll.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Tl(t,e,{horizontal:n,minRotation:i}){const r=ss(i),s=(n?Math.sin(r):Math.cos(r))||.001,o=.75*e*(""+t).length;return Math.min(e/s,o)}class Nl extends Ha{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return Lr(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:r}=this;const s=t=>i=e?i:t,o=t=>r=n?r:t;if(t){const t=es(i),e=es(r);t<0&&e<0?o(0):t>0&&e>0&&s(0)}if(i===r){let e=0===r?1:Math.abs(.05*r);o(r+e),t||s(i-e)}this.min=i,this.max=r}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=function(t,e){const n=[],{bounds:i,step:r,min:s,max:o,precision:a,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=t,h=r||1,p=c-1,{min:f,max:g}=e,m=!Lr(s),v=!Lr(o),y=!Lr(l),b=(g-f)/(u+1);let x,w,A,_,C=is((g-f)/p/h)*h;if(C<1e-14&&!m&&!v)return[{value:f},{value:g}];_=Math.ceil(g/C)-Math.floor(f/C),_>p&&(C=is(_*C/p/h)*h),Lr(a)||(x=Math.pow(10,a),C=Math.ceil(C*x)/x),"ticks"===i?(w=Math.floor(f/C)*C,A=Math.ceil(g/C)*C):(w=f,A=g),m&&v&&r&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((o-s)/r,C/1e3)?(_=Math.round(Math.min((o-s)/C,c)),C=(o-s)/_,w=s,A=o):y?(w=m?s:w,A=v?o:A,_=l-1,C=(A-w)/_):(_=(A-w)/C,_=ns(_,Math.round(_),C/1e3)?Math.round(_):Math.ceil(_));const M=Math.max(os(C),os(w));x=Math.pow(10,Lr(a)?M:a),w=Math.round(w*x)/x,A=Math.round(A*x)/x;let k=0;for(m&&(d&&w!==s?(n.push({value:s}),w<s&&k++,ns(Math.round((w+k*C)*x)/x,s,Tl(s,b,t))&&k++):w<s&&k++);k<_;++k){const t=Math.round((w+k*C)*x)/x;if(v&&t>o)break;n.push({value:t})}return v&&d&&A!==o?n.length&&ns(n[n.length-1].value,o,Tl(o,b,t))?n[n.length-1].value=o:n.push({value:o}):v&&A!==o||n.push({value:A}),n}({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&function(t,e,n){let i,r,s;for(i=0,r=t.length;i<r;i++)s=t[i][n],isNaN(s)||(e.min=Math.min(e.min,s),e.max=Math.max(e.max,s))}(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return Is(t,this.chart.options.locale,this.options.ticks.format)}}class Ol extends Nl{static id="linear";static defaults={ticks:{callback:Ds.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Nr(t)?t:0,this.max=Nr(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=ss(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,r.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Ds.formatters.logarithmic,Ds.formatters.numeric;class jl extends Bi{constructor(){super(".dialog.chart")}_multiplierDescription(t){return{0:"",3:"'000s",6:"millions",9:"billions"}[t]}_chooseMultiplier(t){let e=Math.max(...t.map((t=>Math.abs(Number(t.value()))))),n=0;for(;e>=1e3&&n<9;)e/=1e3,n+=3;return n}dataSetColour(t){return["#66cc00","#0094ff","#fbad17"][t]}addAspect(t){this._analyseDims.push(t),this._showAnalyseDimensionChart()}removeAspect(t){this._analyseDims=this._analyseDims.filter((e=>e!=t)),this._showAnalyseDimensionChart()}analyseDimension(t,e){this._analyseFact=t,this._analyseDims=e,this._showAnalyseDimensionChart()}_showAnalyseDimensionChart(){const t=this._analyseFact,n=this._analyseDims,i=this.node;e()("canvas",i).remove(),e()("<canvas>").appendTo(e()(".chart-container",i)),this.show();const r={};n[0]&&(r[n[0]]=null),n[1]&&(r[n[1]]=null);const s=t.report.deduplicate(t.report.getAlignedFacts(t,r)),o=new qe,a=new qe;for(const t of s)n[0]&&o.add(t.aspect(n[0])),n[1]&&a.add(t.aspect(n[1]));const l=o.uniqueValues(),c=a.uniqueValues(),u=this._chooseMultiplier(s),d=t.unitLabel()+" "+this._multiplierDescription(u),h=[],p=[];for(let e=0;e<(n[0]?l.length:1);e++){h.push(n[0]?Re(l[e].valueLabel("std")||"",40):"");for(let i=0;i<(n[1]?c.length:1);i++){p[i]=p[i]||{label:n[1]?c[i].valueLabel():"",data:[],backgroundColor:this.dataSetColour(i),borderColor:this.dataSetColour(i)};const r={};n[0]&&(r[n[0]]=l[e].value()),n[1]&&(r[n[1]]=c[i].value());const s=t.report.getAlignedFacts(t,r);s.length>0?p[i].data[e]=s[0].value()/10**u:p[i].data[e]=0}}e()(".other-aspects",i).empty();const f=[];for(const r of t.aspects())if("c"!=r.name()){const t=e()("<div>").addClass("other-aspect").appendTo(e()(".other-aspects",i));n.includes(r.name())?t.addClass("selected").text(r.label()+": *").on("click",(()=>this.removeAspect(r.name()))):("u"!=r.name()&&f.push(r.valueLabel()),t.text(r.label()+": "+r.valueLabel()),n.length<2&&t.addClass("addable").on("click",(()=>this.addAspect(r.name()))))}n[1]||(n[0]||(h[0]=f.join(", ")),p[0].label=f.join(", ")),this.setChartSize();const g=e()("canvas",i);xl.register(Ko,Il,Dl,Ol);const m=new xl(g,{type:"bar",data:{labels:h,datasets:p},options:{responsive:!0,maintainAspectRatio:!1,scales:{y:{beginAtZero:!0,title:{display:!0,text:d}},x:{ticks:{autoSkip:!1}}}}});e()(window).on("resize",(()=>{this.setChartSize(),m.resize()}))}setChartSize(){const t=this.node,n=t.height()-e()(".other-aspects",this.node).outerHeight()-16;e()(".chart-container",t).height(n),e()("canvas",t).attr("height",n).height(n)}}class El{constructor(t,n){this._elt=t,n=n||{},this.type=n.type||"dropdown",t.find(".menu-title").on("click",(e=>{t.find(".content-container").toggle(),e.stopPropagation()})),e()("html").on("click",(n=>{0===e()(".content",t).find(e()(n.target)).length&&this.close()}))}reset(){this._elt.find(".content").empty()}close(){"dropdown"==this.type&&this._elt.find(".content-container").hide()}_add(t,n){if(void 0!==n){const i=this._elt.find(".content > div").filter((()=>e()(this).data("iv-menu-item-name")===n));if(void 0!==i&&i.length>0)return void i.after(t)}t.appendTo(this._elt.find(".content"))}addDownloadButton(t,n){const i=this,r=e()("<a></a>").addClass("item").attr({href:n}).text(t).on("click",(()=>i.close()));this._add(r)}addCheckboxItem(t,n,i,r,s){const o=this,a=e()("<label></label>").addClass("menu-checkbox").addClass("item").text(t).data("iv-menu-item-name",i).prepend(e()('<input type="checkbox"></input>').prop("checked",s).change((function(){n(e()(this).prop("checked")),o.close()}))).append(e()("<span></span>").addClass("checkmark"));this._add(a,r),s&&n(!0)}addCheckboxGroup(t,n,i,r,s,o){const a=this,l=e()('<div class="group"></div>').data("iv-menu-item-name",s);this._add(l,o);for(const o of t){const t=e()("<label></label>").addClass("menu-checkbox").addClass("item").text(n[o]).prepend(e()('<input type="radio"></input>').attr({name:s,value:o}).on("change",(function(){r(e()(this).val()),a.close()}))).append(e()("<span></span>").addClass("checkmark")).appendTo(l);o===i&&t.find("input").prop("checked",!0)}}}class zl{constructor(t){this._contents=e()('<div class="accordian"></div>'),this.onSelect=e().Callbacks(),this.options=t||{},this.options.onSelect&&this.onSelect.add(t.onSelect)}addCard(t,n,i,r){const s=this,o=e()('<div class="card"></div>').append(e()('<div class="title"></div>').append(t).on("click",(function(){var t=e()(this).closest(".card");t.hasClass("active")?s.options.alwaysOpen||t.removeClass("active"):(t.closest(".accordian").find(".card").removeClass("active"),t.addClass("active"),s.onSelect.fire(t.data("accordian-card-id")))}))).append(e()('<div class="card-body"></div>').append(n)).appendTo(this._contents);null!==r&&o.data("accordian-card-id",r),i&&o.addClass("active")}contents(){return this.options.alwaysOpen&&0==this._contents.find(".card.active").length&&this._contents.find(".card").first().addClass("active"),this.options.dissolveSingle&&1==this._contents.children().length?this._contents.children().first().find(".card-body"):this._contents}}class Fl{constructor(t){this.itemMap=new Map;for(const e of t??[])this.add(e)}add(t){this.itemMap.set(t.vuid,t)}items(){return Array.from(this.itemMap.values())}_allDimensions(){const t={},e=this.items().filter((t=>t instanceof Ke));for(const i of e){const e=Object.keys(i.dimensions());for(var n=0;n<e.length;n++)t[e[n]]=!0}return Object.keys(t)}minimallyUniqueLabel(t){if(!this._minimallyUniqueLabels){for(var e=this.items().filter((t=>t instanceof Ke)),n={},i=["c","p"].concat(this._allDimensions()),r=0;r<e.length;r++){var s=e[r];n[s.vuid]=[];for(var o=0;o<i.length;o++){var a=s.aspect(i[o]);n[s.vuid].push(a?a.valueLabel():null)}}var l={};for(o=0;o<i.length;o++){var c={};for(r=0;r<e.length;r++)c[n[e[r].vuid][o]]=!0;var u={};if(Object.keys(c).length>1){for(r=0;r<e.length;r++){var d=n[p=e[r].vuid][o],h=l[p]||[];null!==d&&h.push(d),h.length>0&&(l[p]=h,u[h.join(", ")]=!0)}if(Object.keys(u).length==e.length)break}}if(Object.keys(l).length<e.length)for(r=0;r<e.length;r++){var p=e[r].vuid;(h=l[p]||[]).unshift(n[p][0]),l[p]=h}this.items().filter((t=>t instanceof tn)).forEach((t=>{l[t.vuid]=[t.title]})),this._minimallyUniqueLabels=l}return this._minimallyUniqueLabels[t.vuid].join(", ")}isEmpty(){return 0==this.itemMap.size}valueIntersection(){const t=this.items().map((t=>$e.fromFact(t)));return $e.intersection(...t)}completeDuplicates(){return this.items().every((t=>t.isCompleteDuplicate(this.items()[0])))}isConsistent(){if(0==this.itemMap.size)return!0;const t=this.items().map((t=>$e.fromFact(t)));return void 0!==$e.intersection(...t)}size(){return this.itemMap.size}mostPrecise(){return this.items().reduce(((t,e)=>e.isMorePrecise(t)?e:t))}}class Pl extends Bi{constructor(){super(".dialog.validation-report"),this.addButton("Dismiss",!0)}displayErrors(t){const n=this.node.find("tbody");n.empty();for(const i of t)e()("<tr></tr>").append(e()("<td></td>").text(i.sev)).append(e()("<td></td>").text(i.code)).append(e()("<td></td>").text(i.msg)).appendTo(n)}}class Rl extends Bi{constructor(t){super(".dialog.text-block-viewer"),this.addButton("Dismiss",!0),this.fact=t,this.node.find("#text-block-viewer-plain-text").off("change.dialog").on("change.dialog",(t=>this.displayTextBlock(t.target.checked)))}htmlWrapString(t){return"<!DOCTYPE html><html><head><title></title></head><body>"+t+"</body></html>"}static canRender(t){return t.isTextBlock()&&t.escaped()}textOnly(){return this.node.find("#text-block-viewer-plain-text").prop("checked")}displayTextBlock(){const t=this.node.find("iframe").get(0),e=t.contentDocument||t.contentWindow.document;if(e.open(),this.textOnly()){const t=document.createElement("div");t.append(document.createTextNode(this.fact.readableValue())),e.write(this.htmlWrapString(t.outerHTML))}else e.write(this.htmlWrapString(this.fact.value()));e.close()}}class Yl{constructor(t,e){this.fact=t,this.calc11=e}calculationFacts(){const t=this.fact,e=t.report;if(!this._conceptToFact){const n={};for(const i of[ze,"calc11"]){const r=e.getChildRelationships(t.conceptName(),i);for(const[s,o]of Object.entries(r))Be(n,i,{}),n[i][s]={},o.length>0&&e.getAlignedFacts(t,{c:o.map((t=>t.t))}).forEach((t=>Be(n[i][s],t.conceptName(),new Fl).add(t)))}this._conceptToFact=n}return this._conceptToFact}hasCalculations(){const t=this.calculationFacts();return Object.keys(t).length>0}resolvedCalculations(){const t=[],e=this.calculationFacts();for(const[n,i]of Object.entries(e))for(const[e,r]of Object.entries(i))Object.keys(r).length>0&&t.push(this.resolvedCalculation(e,n));return t}bestELRForFactSet(t){const e=this.calculationFacts();let n="",i=-1;for(const[r,s]of Object.entries(e))for(const[e,r]of Object.entries(s)){let s=0;for(const[e,n]of Object.entries(r)){let e=0;for(const i of n.items())t.includes(i.vuid)&&(e=1);s+=e}s/Object.keys(r).length>i&&(i=s/Object.keys(r).length,n=e)}return n}resolvedCalculation(t,e){const n=this.calculationFacts()[e][t],i=this.fact.report,r=i.getChildRelationships(this.fact.conceptName(),e)[t],s=new(this.calc11?Wl:Hl)(t,this.fact,e);for(const t of r){const e=n[t.t]??new Fl;s.addRow(new Ul(i.getConcept(t.t),t.w,e))}return s}}class Ul{constructor(t,e,n){this.concept=t,this.weight=e,this.facts=n,this.weightSign=1==e?"+":-1==e?"-":e.toString()}contributionInterval(){const t=this.facts.valueIntersection();if(void 0!==t)return t.times(this.weight)}}class Bl{constructor(t,e,n){this.totalFact=e,this.totalFactSet=new Fl(e.report.getAlignedFacts(e)),this.elr=t,this.rows=[],this.relationshipVersion=n}addRow(t){this.rows.push(t)}binds(){return this.rows.some((t=>!t.facts.isEmpty()))}unchecked(){return!1}}class Wl extends Bl{calculatedTotalInterval(){let t=new $e(0,0);for(const e of this.rows)if(!e.facts.isEmpty()){const n=e.contributionInterval();if(void 0===n)return;t=t.plus(n)}return t}isConsistent(){const t=this.calculatedTotalInterval(),e=this.totalFactSet.valueIntersection();return void 0!==t&&void 0!==t.intersection(e)}}class Hl extends Bl{binds(){return this.relationshipVersion==ze&&super.binds()&&this.rows.every((t=>t.facts.completeDuplicates()))}unchecked(){return super.binds()&&!this.binds()}uncheckedDueToVersionMismatch(){return this.relationshipVersion!==ze}calculatedTotal(){let t=new Ht(0);for(const e of this.rows){if(!e.facts.isConsistent())return;e.facts.isEmpty()||(t=t.plus(e.facts.items()[0].roundedValue().times(e.weight)))}return t}isConsistent(){return this.calculatedTotal().equals(this.totalFact.roundedValue())}}class Vl extends Bi{constructor(){super(".dialog.calculation-inspector"),this.addButton("Dismiss",!0)}duplicateFactIcons(t){const n=e()("<td></td>").addClass("icons");return t.size()>1&&!t.completeDuplicates()&&(t.isConsistent()?n.append(e()("<span></span>").addClass("duplicate-facts").attr("title",je.t("calculation.consistent-duplicate-facts-present",{nfacts:t.size()}))):n.append(e()("<span></span>").addClass("duplicate-facts").attr("title",je.t("calculation.inconsistent-duplicate-facts-present",{nfacts:t.size()})))),n}populateCalc11Table(t,n){n.addClass("calc11");const i=n.find("tbody");let r=!1;for(const n of t.rows){let t="",s="",o="";if(!n.facts.isEmpty()){let e=n.facts.items()[0];const i=n.facts.valueIntersection();if(void 0===i)t="n/a",s="n/a",o="n/a";else{t=e.readableValue(i.midpoint().toNumber());const r=n.contributionInterval();s=e.readableValue(r.a.toNumber()),o=e.readableValue(r.b.toNumber())}}const a=this.duplicateFactIcons(n.facts);r=r||a.find("span").length>0,e()("<tr></tr>").append(e()("<td></td>").addClass("weight").text(n.weightSign)).append(e()("<td></td>").text(n.concept.label()).addClass("line-item")).append(e()("<td></td>").addClass("figure").text(t)).append(a).append(e()("<td></td>").addClass("figure").text(s)).append(e()("<td></td>").addClass("figure").text(o)).appendTo(i)}const s=t.totalFact,o=t.calculatedTotalInterval();e()("<tr></tr>").addClass("total").append(e()("<td></td>")).append(e()("<td></td>").text(`${s.concept().label()} (${je.t("calculation.calculated-total")})`).addClass("line-item")).append(e()("<td></td>").text(void 0===o?"n/a":s.readableValue(o.midpoint().toNumber())).addClass("figure")).append(e()("<td></td>").addClass("icons")).append(e()("<td></td>").text(void 0===o?"n/a":s.readableValue(o.a.toNumber())).addClass("figure")).append(e()("<td></td>").text(void 0===o?"n/a":s.readableValue(o.b.toNumber())).addClass("figure")).appendTo(i);const a=t.totalFactSet.valueIntersection(),l=this.duplicateFactIcons(t.totalFactSet);e()("<tr></tr>").append(e()("<td></td>")).append(e()("<td></td>").text(`${s.concept().label()} (${je.t("calculation.reported-total")})`).addClass("line-item")).append(e()("<td></td>").text(void 0===a?"n/a":s.readableValue(a.midpoint().toNumber())).addClass("figure")).append(l).append(e()("<td></td>").text(void 0===a?"n/a":s.readableValue(a.a.toNumber())).addClass("figure")).append(e()("<td></td>").text(void 0===a?"n/a":s.readableValue(a.b.toNumber())).addClass("figure")).appendTo(i),r&&n.addClass("has-icons")}populateLegacyCalcTable(t,n){n.removeClass("calc11");const i=n.find("tbody");let r=!1;for(const n of t.rows){let t="";if(!n.facts.isEmpty()){let e=n.facts.items()[0];t=void 0===n.facts.valueIntersection()?"Inconsistent duplicates":n.facts.completeDuplicates()?e.readableValue():"Duplicate facts"}const s=this.duplicateFactIcons(n.facts);r=r||s.find("span").length>0,e()("<tr></tr>").append(e()("<td></td>").addClass("weight").text(n.weightSign)).append(e()("<td></td>").text(n.concept.label()).addClass("line-item")).append(e()("<td></td>").addClass("figure").text(t)).append(s).appendTo(i)}const s=t.totalFact,o=t.calculatedTotal();e()("<tr></tr>").addClass("total").append(e()("<td></td>")).append(e()("<td></td>").text(`${s.concept().label()} (${je.t("calculation.calculated-total")})`).addClass("line-item")).append(e()("<td></td>").text(s.readableValue(o)).addClass("figure")).append(e()("<td></td>").addClass("icons")).appendTo(i),e()("<tr></tr>").append(e()("<td></td>")).append(e()("<td></td>").text(`${s.concept().label()} (${je.t("calculation.reported-total")})`).addClass("line-item")).append(e()("<td></td>").text(s.readableValue()).addClass("figure")).append(e()("<td></td>").addClass("icons")).appendTo(i),r&&n.addClass("has-icons")}displayCalculation(t){const e=this.node.find("table.calculation-trace");e.find("tbody").empty(),e.removeClass("has-icons"),t instanceof Wl?this.populateCalc11Table(t,e):this.populateLegacyCalcTable(t,e);const n=e.find("td.status");n.removeClass("inconsistent").removeClass("consistent").removeClass("unchecked"),t.unchecked()?n.addClass("unchecked").find(".message").text(je.t("calculation.does-not-bind")):t.isConsistent()?n.addClass("consistent").find(".message").text(je.t("factDetails.calculationIsConsistent")):n.addClass("inconsistent").find(".message").text(je.t("factDetails.calculationIsInconsistent"))}}class Zl{constructor(t){this._reportSet=t,this.outlines=t.reports.map((t=>new Gl(t)))}hasOutline(){return this.outlines.some((t=>Object.keys(t.sections).length>0))}sortedSections(){return this.outlines.flatMap((t=>t.sortedSections()))}groupsForFact(t){return this.outlines.find((e=>e.report==t.report)).groupsForFact(t)}}class Gl{constructor(t){this.report=t;const e=t.facts().sort(((t,e)=>t.ixNode.docOrderindex-e.ixNode.docOrderindex)),n={},i={},r={},s={};this._buildDimensionMap();const o=t.relationshipGroups("pres");for(const t of e)if(!t.isHidden())for(const e of o)this.factInGroup(t,e)?(e in n||(n[e]=0,i[e]=t),n[e]++):e in n&&((!(e in r)||r[e]<n[e])&&(r[e]=n[e],s[e]=i[e]),delete n[e],delete i[e]);for(const t in n)(!(t in r)||r[t]<n[t])&&(r[t]=n[t],s[t]=i[t]);this.sections=s}factInGroup(t,e){if(0==this.report.getParentRelationshipsInGroup(t.conceptName(),"pres",e).length)return!1;const n=t.dimensions(),i=this.dimensionMap[e];for(const[t,e]of Object.entries(i))if(e.typed){if(!(t in n))return!1}else if(t in n?!(n[t]in e.members):!e.allowDefault)return!1;return!0}_buildDimensionMap(){const t=this.report.relationshipGroups("pres");this.dimensionMap={};for(const e of t){this.dimensionMap[e]={};for(const t of this.report.relationshipGroupRoots("pres",e))this.buildDimensionMapFromSubTree("pres",e,null,t)}}buildDimensionMapFromSubTree(t,e,n,i){const r=this.report.getConcept(i);if(r.isTypedDimension())this.dimensionMap[e][i]={typed:!0};else{r.isExplicitDimension()&&(n=i,this.dimensionMap[e][n]={members:{},allowDefault:!1});var s=this.report.getChildRelationships(i,t);if(e in s)for(var o of s[e])n&&(this.report.dimensionDefault(n)==o.t?this.dimensionMap[e][n].allowDefault=!0:this.dimensionMap[e][n].members[o.t]=!0),this.buildDimensionMapFromSubTree(t,e,n,o.t)}}groupsForFact(t){const e=[];for(const n of this.report.relationshipGroups("pres"))this.factInGroup(t,n)&&e.push({elr:n,fact:this.sections[n],report:this.report});return e}hasOutline(){return Object.keys(this.sections).length>0}sortedSections(){const t=Object.keys(this.sections),e=/\(parenthetical\)\s*$/i;return t.filter((t=>!e.test(this.report.getRoleLabel(t)))).sort(((t,e)=>this.report.getRoleLabel(t).localeCompare(this.report.getRoleLabel(e)))).map((t=>({report:this.report,fact:this.sections[t],elr:t})))}}const Ql="dimensions",Jl="members",Xl="primaryItems",ql="total";class $l{constructor(){this._dimensions=new Set,this._members=new Set,this._primaryItems=new Set}addDimension(t){this._dimensions.add(t)}addMember(t){this._members.add(t)}addPrimaryItem(t){this._primaryItems.add(t)}getCounts(){return{[Ql]:this._dimensions.size,[Jl]:this._members.size,[Xl]:this._primaryItems.size,[ql]:this._dimensions.size+this._members.size+this._primaryItems.size}}}class Kl{constructor(){this._documentsByType={inline:new Set,schema:new Set,calcLinkbase:new Set,defLinkbase:new Set,labelLinkbase:new Set,presLinkbase:new Set,refLinkbase:new Set,unrecognizedLinkbase:new Set}}addDocument(t,e){for(const n of e){if(!(n in this._documentsByType))throw new Error(`Document ${t} with unrecognized type ${n}.`);this._documentsByType[n].add(t)}}getDocuments(){const t={};for(const[e,n]of Object.entries(this._documentsByType))t[e]=[...n].sort();return t}}class tc{constructor(t){this._reportSet=t}_getTagCounter(t,e){const n=e.indexOf(":");if(-1===n)throw new Error(`Element ${e} is not a concept.`);const i=e.substring(0,n);return t.has(i)||t.set(i,new $l),t.get(i)}_buildTagCounts(){const t=new Map;for(const e of this._reportSet.facts()){let n=this._getTagCounter(t,e.conceptName());n.addPrimaryItem(e.conceptName());for(const[i,r]of Object.entries(e.dimensions())){n=this._getTagCounter(t,i),n.addDimension(i);const s=e.report.getConcept(i);if(s.isTypedDimension()){const e=s.typedDomainElement();e&&(n=this._getTagCounter(t,e),n.addMember(e))}else n=this._getTagCounter(t,r),n.addMember(r)}}this._tagCounts=new Map([...t].map((([t,e])=>[t,e.getCounts()])))}_buildLocalFileSummary(){this._localFileSummary=new Kl;for(const[t,e]of this._reportSet.reports.flatMap((t=>Object.entries(t.localDocuments()))))this._localFileSummary.addDocument(t,e)}totalFacts(){return void 0===this._totalFacts&&(this._totalFacts=this._reportSet.facts().length),this._totalFacts}tagCounts(){return void 0===this._tagCounts&&this._buildTagCounts(),this._tagCounts}getLocalDocuments(){return void 0===this._localFileSummary&&this._buildLocalFileSummary(),this._localFileSummary.getDocuments()}getSoftwareCredits(){return this._reportSet.getSoftwareCredits()}}class ec{constructor(t){this._iv=t,this._viewerOptions=new rn,this._currentItem=null,this._useCalc11=!0}i18nInit(){return je.init({lng:this.preferredLanguages()[0],returnEmptyString:!1,fallbackLng:"en",debug:!1,resources:{en:{translation:n(997),referenceParts:n(343),currencies:n(85)},es:{translation:n(702),referenceParts:n(6),currencies:n(476)}}}).then((t=>{Qi().init(je,e(),{tName:"t",i18nName:"i18n",handleName:"localize",selectorAttr:"data-i18n",targetAttr:"i18n-target",useOptionsAttr:!1,parseDefaultValueFromContent:!0})}))}initialize(t,n){const i=this;return this._viewer=n,new Promise((function(n,r){i._chart=new jl,i._reportSet=t,i.i18nInit().then((r=>{e()(".collapsible-header").on("click",(function(){const t=e()(this).closest(".collapsible-section");t.toggleClass("collapsed"),t.hasClass("collapsed")?t.find(".collapsible-body").slideUp(250):(t.find(".collapsible-body").slideDown(250),t.hasClass("collapsible-only")&&t.siblings(".collapsible-section:not(.collapsed)").each((function(){const t=e()(this);t.addClass("collapsed"),t.find(".collapsible-body").slideUp(250)})))})),e()("#inspector .controls .search-button").on("click",(function(){e()(this).closest("#inspector").removeClass(["summary-mode","outline-mode"]).toggleClass("search-mode")})),e()("#inspector .controls .summary-button").on("click",(function(){e()(this).closest("#inspector").removeClass(["outline-mode","search-mode"]).toggleClass("summary-mode")})),e()("#inspector .controls .outline-button").on("click",(function(){e()(this).closest("#inspector").removeClass(["summary-mode","search-mode"]).toggleClass("outline-mode")})),e()("#inspector-head .back").on("click",(function(){e()(this).closest("#inspector").removeClass(["summary-mode","outline-mode","search-mode"])})),e()(".popup-trigger").on("mouseenter",(function(){e()(this).find(".popup-content").show()})).on("mouseleave",(function(){e()(this).find(".popup-content").hide()})),e()("#inspector").on("click",".clipboard-copy",(function(){navigator.clipboard.writeText(e()(this).data("cb-text"))})),i._toolbarMenu=new El(e()("#toolbar-highlight-menu")),i.buildToolbarHighlightMenu(),i._optionsMenu=new El(e()("#display-options-menu")),i.buildDisplayOptionsMenu(),e()("#ixv").localize(),e()(window).on("message",(t=>i.handleMessage(t))),t.viewerOptions=i._viewerOptions,i.summary=new tc(t),i.createSummary(),i.outline=new Zl(t),i.createOutline(),i._iv.setProgress(je.t("inspector.initializing")).then((()=>{i._search=new qi(t),i.buildDisplayOptionsMenu(),i.buildToolbarHighlightMenu(),i.buildHighlightKey(),i.setupValidationReportIcon(),i.initializeViewer(),n()}))}))}))}initializeViewer(){this._viewer.onSelect.add(((t,e,n)=>this.selectItem(t,e,n))),this._viewer.onMouseEnter.add((t=>this.viewerMouseEnter(t))),this._viewer.onMouseLeave.add((t=>this.viewerMouseLeave(t))),e()(".ixbrl-next-tag").on("click",(()=>this._viewer.selectNextTag(this._currentItem))),e()(".ixbrl-prev-tag").on("click",(()=>this._viewer.selectPrevTag(this._currentItem)))}postLoadAsync(){We(this._search.buildSearchIndex((()=>this.searchReady())))}handleFactDeepLink(){const t=location.hash.match(/^#f([0-9]+)?-(.*)$/);if(null!==t){const e=He(t[1]??0,t[2]);void 0!==this._reportSet.getItemById(e)&&this.selectItem(e)}}handleMessage(t){const e=t.originalEvent.data;let n;try{n=JSON.parse(e)}catch(t){return}if("SHOW_FACT"===n.task){let t=Number(n.docSetId);t||(t=0);const e=He(t,n.factId);this.selectItem(e)}else console.log("Not handling unsupported task message: "+e)}updateURLFragment(){this._currentItem?location.hash="#f"+this._currentItem.vuid.replace(/^0-/,"-"):location.hash=""}buildDisplayOptionsMenu(){if(this._optionsMenu.reset(),this._reportSet){const t=this.selectDefaultLanguage(),e=this._reportSet.availableLanguages(),n=new Intl.DisplayNames(this.preferredLanguages(),{type:"language"});this._optionsMenu.addCheckboxGroup(e,Object.fromEntries(e.map((t=>[t,n.of(t)]))),t,(t=>{this.setLanguage(t),this.update()}),"select-language"),this.setLanguage(t),this._reportSet.filingDocuments()&&this._optionsMenu.addDownloadButton("Download filing documents",this._reportSet.filingDocuments()),this._optionsMenu.addCheckboxItem(je.t("calculation.useCalculations11"),(t=>this.setCalculationMode(t)),"calculation-mode","select-language",this._useCalc11)}this._iv.callPluginMethod("extendDisplayOptionsMenu",this._optionsMenu)}buildToolbarHighlightMenu(){const t=this._iv;this._toolbarMenu.reset(),this._toolbarMenu.addCheckboxItem(je.t("toolbar.xbrlElements"),(t=>this.highlightAllTags(t)),"highlight-tags",null,this._iv.options.highlightTagsOnStartup),t.isReviewModeEnabled()&&(this._toolbarMenu.addCheckboxItem("Untagged Numbers",(function(e){const n=t.viewer.contents().find("body");e?n.addClass("review-highlight-untagged-numbers"):n.removeClass("review-highlight-untagged-numbers")}),"highlight-untagged-numbers","highlight-tags"),this._toolbarMenu.addCheckboxItem("Untagged Dates",(function(e){const n=t.viewer.contents().find("body");e?n.addClass("review-highlight-untagged-dates"):n.removeClass("review-highlight-untagged-dates")}),"highlight-untagged-dates","highlight-untagged-numbers")),this._iv.callPluginMethod("extendToolbarHighlightMenu",this._toolbarMenu)}buildHighlightKey(){let t;e()(".highlight-key .items").empty(),t=this._iv.isReviewModeEnabled()?["XBRL Elements","Untagged Numbers","Untagged Dates"]:this._reportSet.namespaceGroups(),this._iv.callPluginMethod("extendHighlightKey",t);for(const[n,i]of t.entries())e()("<div>").addClass("item").append(e()("<span></span>").addClass("sample").addClass("sample-"+n%3)).append(e()("<span></span>").text(i)).appendTo(e()(".highlight-key .items"))}setCalculationMode(t){this._useCalc11=t,this._currentItem instanceof Ke&&this.updateCalculation(this._currentItem)}highlightAllTags(t){this._viewer.highlightAllTags(t,this._reportSet.namespaceGroups())}factListRow(t){const n=e()('<div class="fact-list-item"></div>').on("click",(()=>this.selectItem(t.vuid))).on("dblclick",(()=>e()("#inspector").removeClass("search-mode"))).on("mousedown",(t=>{t.detail>1&&t.preventDefault()})).on("mouseenter",(()=>this._viewer.linkedHighlightFact(t))).on("mouseleave",(()=>this._viewer.clearLinkedHighlightFact(t))).data("ivid",t.vuid);e()('<div class="select-icon"></div>').on("click",(()=>{this.selectItem(t.vuid),e()("#inspector").removeClass("search-mode")})).appendTo(n),e()('<div class="title"></div>').text(t.getLabelOrName("std")).appendTo(n),e()('<div class="dimension"></div>').text(t.period().toString()).appendTo(n);for(const i of t.aspects())i.isTaxonomyDefined()&&!i.isNil()&&e()('<div class="dimension"></div>').text(i.valueLabel()).appendTo(n);const i=e()("<div></div>").addClass("tags").appendTo(n);return null!==t.targetDocument()&&e()('<div class="hidden"></div>').text(t.targetDocument()).appendTo(i),t.isHidden()?e()('<div class="hidden"></div>').text(je.t("search.hiddenFact")).appendTo(i):t.isHTMLHidden()&&e()('<div class="hidden"></div>').text(je.t("search.concealedFact")).appendTo(i),n}addResults(t,n,i){e()(".more-results",t).remove();for(var r=i;r<n.length;r++){if(r-i>=100){e()('<div class="more-results"></div>').text(je.t("search.showMoreResults")).on("click",(()=>this.addResults(t,n,r))).appendTo(t);break}this.factListRow(n[r].fact).appendTo(t)}}searchSpec(){const t={};return t.searchString=e()("#ixbrl-search").val(),t.showVisibleFacts=e()("#search-visible-fact-filter").prop("checked"),t.showHiddenFacts=e()("#search-hidden-fact-filter").prop("checked"),t.namespacesFilter=e()("#search-filter-namespaces select").val(),t.unitsFilter=e()("#search-filter-units select").val(),t.scalesFilter=e()("#search-filter-scales select").val(),t.periodFilter=e()("#search-filter-period select").val(),t.conceptTypeFilter=e()("#search-filter-concept-type").val(),t.factValueFilter=e()("#search-filter-fact-value").val(),t.calculationsFilter=e()("#search-filter-calculations select").val(),t.dimensionTypeFilter=e()("#search-filter-dimension-type select").val(),t.targetDocumentFilter=e()("#search-filter-target-document select").val(),t}setupSearchControls(t){const n=this;e()(".search-controls input, .search-controls select").on("change",(()=>this.search())),e()(".search-controls div.filter-toggle").on("click",(()=>e()(".search-controls").toggleClass("show-filters"))),e()(".search-controls .search-filters .reset").on("click",(()=>this.resetSearchFilters())),e()(".search-controls .search-filters .reset-multiselect").on("click",(function(){e()(this).siblings().children("select option:selected").prop("selected",!1),n.search()}));for(const t of Object.keys(this._search.periods))e()("<option>").attr("value",t).text(this._search.periods[t]).appendTo("#search-filter-period select");for(const t of this._reportSet.getUsedConceptPrefixes())e()("<option>").attr("value",t).text(`${t} (${this._reportSet.prefixMap()[t]})`).appendTo("#search-filter-namespaces select");const i=Array.from(this._reportSet.getTargetDocuments());if(1==i.length&&null==i[0])e()("#search-filter-target-document").hide();else for(const t of i)e()("<option>").attr("value",t??":default").text(t??`<${je.t("search.default")}>`).appendTo("#search-filter-target-document select");for(const t of this._reportSet.getUsedUnits())e()("<option>").attr("value",t).text(`${this._reportSet.getUnit(t)?.label()} (${t})`).appendTo("#search-filter-units select");const r=this._getScalesOptions();for(const t of Object.keys(r).sort())e()("<option>").attr("value",t).text(r[t]).appendTo("#search-filter-scales select")}_getScalesOptions(){const t={},e=this._reportSet.getUsedScalesMap();return Object.keys(e).sort().forEach((n=>{const i=Array.from(e[n]).sort();i.length>0?t[n]=i.join(", "):t[n]=n.toString()})),t}resetSearchFilters(){e()("#search-filter-period select option:selected").prop("selected",!1),e()("#search-filter-concept-type").val("*"),e()("#search-filter-fact-value").val("*"),e()("#search-filter-calculations select option:selected").prop("selected",!1),e()("#search-filter-dimension-type select option:selected").prop("selected",!1),e()("#search-hidden-fact-filter").prop("checked",!0),e()("#search-visible-fact-filter").prop("checked",!0),e()("#search-filter-namespaces select option:selected").prop("selected",!1),e()("#search-filter-target-document select option:selected").prop("selected",!1),e()("#search-filter-units select option:selected").prop("selected",!1),e()("#search-filter-scales select option:selected").prop("selected",!1),this.search()}searchReady(){this.setupSearchControls(),e()("#inspector").addClass("search-ready"),e()("#ixbrl-search").prop("disabled",!1),this.search()}search(){const t=this.searchSpec(),n=this._search.search(t);if(void 0===n)return;const i=e()("#inspector .search-results .results");e()("div",i).remove(),this._viewer.clearRelatedHighlighting();const r=e()("#inspector .search-results .search-overlay");n.length>0?(r.hide(),this.addResults(i,n,0)):(e()(".title",r).text(je.t("search.noMatchFound")),e()(".text",r).text(je.t("search.tryAgainDifferentKeywords")),r.show()),e()("#matching-facts-count").text(n.length),""!=t.searchString&&this._viewer.highlightRelatedFacts(n.map((t=>t.fact))),this.updateMultiSelectSubheader("search-filter-scales"),this.updateMultiSelectSubheader("search-filter-units"),this.updateMultiSelectSubheader("search-filter-namespaces"),this.updateMultiSelectSubheader("search-filter-target-document"),this.updateMultiSelectSubheader("search-filter-dimension-type"),this.updateMultiSelectSubheader("search-filter-calculations"),this.updateMultiSelectSubheader("search-filter-period")}updateMultiSelectSubheader(t){const n=e()(`#${t} .collapsible-subheader`),i=e()(`#${t} select option:selected`);if(1===i.length)n.text(` ${i.text()}`);else if(i.length>0){const r=e()(`#${t} select option`).length;n.text(` (${i.length}/${r} ${je.t("search.selected")})`)}else n.empty()}updateCalculation(t,n){e()(".calculations .tree").empty().append(this._calculationHTML(t))}createSummary(){const t=e()("#inspector .summary .body");this._populateFactSummary(t),this._populateTagSummary(t),this._populateFileSummary(t),this._populateReportCreation(t)}_populateFactSummary(t){const n=this.summary.totalFacts();e()("<span></span>").text(n).appendTo(t.find(".total-facts-value"))}_populateTagSummary(t){const n=t.find(".tag-summary-table-body"),i=this.summary.tagCounts();let r=0,s=0,o=0,a=0;for(const t of i.values())r+=t[Xl],s+=t[Ql],o+=t[Jl],a+=t[ql];function l(t,n,i){let r=0;i>0&&(r=n/i);let s=r.toLocaleString(void 0,{style:"percent"});s=` (${s})`,e()("<td></td>").text(n).addClass("figure").append(e()("<sup></sup>").text(s)).appendTo(t)}const c=[...i.entries()].sort(((t,e)=>t[0].localeCompare(e[0])));for(const[t,i]of c){const c=e()("<tr></tr>").appendTo(n);c.append(e()("<th></th>").attr("scope","row").text(t)),l(c,i[Xl],r),l(c,i[Ql],s),l(c,i[Jl],o),l(c,i[ql],a)}const u=t.find(".tag-summary-table-footer-row");l(u,r,r),l(u,s,s),l(u,o,o),l(u,a,a)}_populateFileSummary(t){const{inline:n,schema:i,calcLinkbase:r,defLinkbase:s,labelLinkbase:o,presLinkbase:a,refLinkbase:l,unrecognizedLinkbase:c}=this.summary.getLocalDocuments(),u=t.find(".files-summary");let d=0;function h(t,n){if(0===t.length)u.find(n).hide();else{const i=u.find(n+" ul");d+=1;for(const n of t)i.append(e()("<li></li>").text(n))}}h(n,".inline-docs"),h(i,".schemas"),h(a,".pres-links"),h(r,".calc-links"),h(s,".def-links"),h(o,".label-links"),h(l,".ref-links"),h(c,".other-links"),0==d&&u.hide()}_populateReportCreation(t){const n=this.summary.getSoftwareCredits(),i=t.find(".report-creation");if(n.length>0){const t=i.find("ul");for(const i of n)t.append(e()("<li></li>").text(i))}else i.hide()}createOutline(){if(this.outline.hasOutline()){e()(".outline .no-outline-overlay").hide();const t=e()('<div class="fact-list"></div>').appendTo(e()(".outline .body"));for(const n of this.outline.sortedSections())e()('<div class="fact-list-item"></div>').text(n.report.getRoleLabel(n.elr)).on("click",(()=>this.selectItem(n.fact.vuid))).on("dblclick",(()=>e()("#inspector").removeClass("outline-mode"))).on("mousedown",(t=>{t.detail>1&&t.preventDefault()})).appendTo(t)}}updateOutline(t){e()(".fact-groups").empty();for(const n of this.outline.groupsForFact(t))e()('<div class="fact-list-item"></div>').text(t.report.getRoleLabel(n.elr)).on("click",(()=>this.selectItem(n.fact.vuid))).appendTo(e()(".fact-groups"))}updateFootnotes(t){e()(".footnotes").empty().append(this._footnotesHTML(t)),t.linkedFacts.length>0?e()("#inspector .footnote-facts-section").show().find(".footnote-facts").empty().append(this._footnoteFactsHTML(t)):e()("#inspector .footnote-facts-section").hide()}_anchorList(t,n){const i=e()("<ul></ul>");if(n.length>0)for(const r of n){const n=t.report.getAlignedFacts(t,{c:r}),s=t.report.getLabel(r,"std",!0);e()("<li></li>").appendTo(i).append(this.factLinkHTML(s,n))}else e()("<li></li>").append(e()("<i></i>").text(je.t("common.none"))).appendTo(i);return i}updateAnchoring(t){this._reportSet.usesAnchoring()?(e()(".anchoring").show(),e()(".anchoring .collapsible-body .anchors-wider").empty().append(this._anchorList(t,t.widerConcepts())),e()(".anchoring .collapsible-body .anchors-narrower").empty().append(this._anchorList(t,t.narrowerConcepts()))):e()(".anchoring").hide()}_referencesHTML(t){const n=new zl;for(const[i,r]of t.concept().references().entries()){const t=e()("<span></span>").text(r[0].value),s=e()('<table class="fact-properties"><tbody></tbody></table>'),o=s.find("tbody");for(const t of r){const n=e()("<tr>").append(e()("<th></th>").text(je.t(`referenceParts:${t.part}`,{defaultValue:t.part}))).append(e()("<td></td>").text(t.value)).appendTo(o);"URI"==t.part&&(n.addClass("uri"),n.find("td").wrapInner(e()("<a>").attr("href",t.value)))}n.addCard(t,s,0==i)}return n.contents()}_calculationHTML(t,n){const i=new Yl(t,this._useCalc11);if(!i.hasCalculations())return"";const r=this._viewer.factsInSameTable(t),s=i.bestELRForFactSet(r),o=t.report,a=new zl;for(const n of i.resolvedCalculations()){const i=o.getRoleLabel(n.elr),r=e()("<div></div>"),l=e()("<table></table>").addClass("calculation-table").appendTo(r);for(const t of n.rows){const n=e()("<tr></tr>").addClass("item").append(e()("<td></td>").addClass("weight").text(t.weightSign+" ")).append(e()("<td></td>").addClass("concept-name").text(t.concept.label())).append(e()("<td></td>").addClass("value")).appendTo(l);t.facts.isEmpty()||(n.addClass("calc-fact-link"),n.addClass("calc-fact-link"),n.data("ivids",t.facts.items().map((t=>t.vuid))),n.on("click",(()=>this.selectItem(t.facts.items()[0].vuid))),n.on("mouseenter",(()=>t.facts.items().forEach((t=>this._viewer.linkedHighlightFact(t))))),n.on("mouseleave",(()=>t.facts.items().forEach((t=>this._viewer.clearLinkedHighlightFact(t))))),t.facts.items().forEach((t=>this._viewer.highlightRelatedFact(t))),n.find(".value").text(t.facts.mostPrecise().readableValue()))}e()("<tr></tr>").addClass("item").addClass("total").append(e()("<td></td>").addClass("weight")).append(e()("<td></td>").addClass("concept-name").text(t.concept().label())).append(e()("<td></td>").addClass("value").text(t.readableValue())).appendTo(l);const c=e()("<span></span>"),u=e()("<span></span>").append(c).append(e()("<span></span>").text(i)),d=e()("<span></span>"),h=e()("<span></span>").addClass("calculation-details-link").attr("title",je.t("factDetails.viewCalculationDetails")).text("details").on("click",(t=>{const e=new Vl;e.displayCalculation(n),e.show(),t.stopPropagation()}));e()("<p></p>").append(d).append(e()("<span></span>").text(" (")).append(h).append(e()("<span></span>").text(")")).appendTo(r),n.binds()?n.isConsistent()?(c.addClass("consistent-flag").attr("title",je.t("factDetails.calculationIsConsistent")),d.text(je.t("factDetails.calculationIsConsistent"))):(c.addClass("inconsistent-flag").attr("title",je.t("factDetails.calculationIsInconsistent")),d.text(je.t("factDetails.calculationIsInconsistent"))):n.unchecked()&&(c.addClass("unchecked-flag").attr("title",je.t("factDetails.calculationUnchecked")),n.uncheckedDueToVersionMismatch()?d.text(je.t("factDetails.calculationUncheckedIncorrectVersion")):d.text(je.t("factDetails.calculationUnchecked"))),a.addCard(u,r,n.elr==s)}return a.contents()}_footnotesHTML(t){const n=e()("<div></div>").addClass("fact-list");for(const i of t.footnotes())i instanceof tn?e()("<div></div>").addClass("block-list-item").text(Ye(i.textContent(),120)).on("mouseenter",(()=>this._viewer.linkedHighlightFact(i))).on("mouseleave",(()=>this._viewer.clearLinkedHighlightFact(i))).on("click",(()=>this.selectItem(i.vuid))).appendTo(n):i instanceof Ke&&n.append(this.factListRow(i));return n}viewerMouseEnter(t){e()(".calculations .item").filter(((n,i)=>(e()(i).data("ivids")??[]).includes(t))).addClass("linked-highlight"),e()("#inspector .search .results tr").filter(((n,i)=>e()(i).data("ivid")==t)).addClass("linked-highlight")}viewerMouseLeave(t){e()(".calculations .item").removeClass("linked-highlight"),e()("#inspector .search .results tr").removeClass("linked-highlight")}describeChange(t,e){if(e.value()>0==t.value()>0&&Math.abs(t.value())+Math.abs(e.value())>0){const n=100*(e.value()-t.value())/t.value();let i=0;return i=n>=0?je.t("factDetails.changePercentageIncrease",{increase:Pe(n,1)}):je.t("factDetails.changePercentageDecrease",{decrease:Pe(-1*n,1)}),i}return je.t("factDetails.changeFromIn",{from:t.readableValue()})}factLinkHTML(t,n){const i=e()("<span></span>").text(t);return n.length>0&&i.addClass("fact-link").on("click",(()=>this.selectItem(n[0].vuid))).on("mouseenter",(()=>n.forEach((t=>this._viewer.linkedHighlightFact(t))))).on("mouseleave",(()=>n.forEach((t=>this._viewer.clearLinkedHighlightFact(t))))),i}getPeriodIncrease(t){let n="";if(t.isNumeric()){const r=t.report.getAlignedFacts(t,{p:null});var i;if(t.periodTo())for(const e of r)e.periodTo()&&e.periodTo()<t.periodTo()&&(!i||e.periodTo()>i.periodTo())&&t.isEquivalentDuration(e)&&(i=e);if(i){const r=t.report.getAlignedFacts(i);n=e()("<span></span>").text(this.describeChange(i,t)).append(this.factLinkHTML(i.periodString(),r))}else n=e()("<i>").text(je.t("factDetails.noPriorFactInThisReport"))}else n=e()("<i>").text("n/a").attr("title",je.t("factDetails.nonNumericFact"));e()(".fact-properties tr.change td").html(n)}_updateValue(t,n,i){const r=t.readableValue(),s=e()("tr.value",i);let o=r;if(n)s.removeClass("truncated");else{const e=Re(r,120);e.length>1?(s.addClass("truncated"),s.find(".show-all").off("click").on("click",(()=>this._updateValue(t,!0,i)))):s.removeClass("truncated"),o=e[0]}Rl.canRender(t)?s.addClass("text-block").find(".expand-text-block").off().on("click",(()=>this.showTextBlock(t))):s.removeClass("text-block");const a=s.find("td .value").empty().text(o);t instanceof Ke&&(t.isNil()||t.isInvalidIXValue())&&a.wrapInner("<i></i>")}showTextBlock(t){const e=new Rl(t);e.displayTextBlock(),e.show()}_updateEntityIdentifier(t,n){e()("tr.entity-identifier td",n).empty().append(Qe.readableNameHTML(t.identifier()))}_footnoteFactsHTML(t){const n=e()("<div></div>");return t.linkedFacts.forEach((t=>{n.append(this.factListRow(t))})),n}_selectionSummaryAccordian(){const t=this._currentItem,i=new zl({onSelect:t=>this.switchItem(t),alwaysOpen:!0,dissolveSingle:!0}),r=new Fl(this._currentItemList);for(const s of this._currentItemList){let o;const a=r.minimallyUniqueLabel(s);if(s instanceof Ke){o=e()(n(793)),e()(".std-label",o).text(s.getLabelOrName("std",!0)),e()(".documentation",o).text(s.getLabel("doc")||""),e()("tr.concept td",o).find(".text").text(s.conceptName()).attr("title",s.conceptName()).end().find(".clipboard-copy").data("cb-text",s.conceptName()).end(),e()("tr.period td",o).text(s.periodString()),s.isNumeric()&&e()("tr.period td",o).append(e()("<span></span>").addClass("analyse").text("").on("click",(()=>this.analyseDimension(s,["p"])))),this._updateEntityIdentifier(s,o),this._updateValue(s,!1,o);const t=e()("tr.accuracy td",o).empty().append(s.readableAccuracy());s.isNumeric()&&!s.isNil()||t.wrapInner("<i></i>");const i=e()("tr.scale td",o).empty().append(s.readableScale());s.isNumeric()&&!s.isNil()||i.wrapInner("<i></i>"),e()("#dimensions",o).empty();const r=s.aspects().filter((t=>t.isTaxonomyDefined()));0===r.length&&e()("#dimensions-label",o).hide();for(const t of r){const n=e()('<div class="dimension"></div>').text(t.label()||t.name()).appendTo(e()("#dimensions",o));s.isNumeric()&&n.append(e()("<span></span>").addClass("analyse").text("").on("click",(()=>this.analyseDimension(s,[t.name()]))));const i=e()('<div class="dimension-value"></div>').text(t.valueLabel()).appendTo(n);t.isNil()&&i.wrapInner("<i></i>")}}else s instanceof tn&&(o=e()(n(643)),this._updateValue(s,!1,o));i.addCard(a,o,s.vuid==t.vuid,s.vuid)}return i}analyseDimension(t,e){(new jl).analyseDimension(t,e)}update(){const t=this._currentItem;if(t){if(e()("#inspector").removeClass("no-fact-selected").removeClass("hidden-fact").removeClass("html-hidden-fact"),e()("#inspector .fact-inspector").empty().append(this._selectionSummaryAccordian().contents()),t instanceof Ke){e()("#inspector").removeClass("footnote-mode"),this.updateCalculation(t),this.updateOutline(t),this.updateFootnotes(t),this.updateAnchoring(t),e()("div.references").empty().append(this._referencesHTML(t)),e()("#inspector .search-results .fact-list-item").removeClass("selected"),e()("#inspector .search-results .fact-list-item").filter(((n,i)=>e()(i).data("ivid")==t.vuid)).addClass("selected");const i=t.duplicates();let r=0;const s=i.length;for(var n=0;n<s;n++)t.vuid==i[n].vuid&&(r=n);e()(".duplicates .text").text(je.t("factDetails.duplicatesCount",{current:r+1,total:s})),e()(".duplicates .prev").off().on("click",(()=>this.selectItem(i[(r+s-1)%s].vuid))),e()(".duplicates .next").off().on("click",(()=>this.selectItem(i[(r+1)%s].vuid))),this.getPeriodIncrease(t),t.isHidden()?e()("#inspector").addClass("hidden-fact"):t.isHTMLHidden()&&e()("#inspector").addClass("html-hidden-fact");const o=t.targetDocument();null!==o?e()("#inspector .target-document-tag").text(o).show():e()("#inspector .target-document-tag").hide()}else t instanceof tn&&(e()("#inspector").addClass("footnote-mode"),e()("#inspector .footnote-details .footnote-facts").empty().append(this._footnoteFactsHTML(t)));e()(".fact-details").localize()}else e()("#inspector").removeClass("footnote-mode"),e()("#inspector").addClass("no-fact-selected");this.updateURLFragment()}selectItem(t,e,n){if(void 0===e)this._currentItemList=[this._reportSet.getItemById(t)];else{this._currentItemList=[];for(const t of e)this._currentItemList.push(this._reportSet.getItemById(t))}this.switchItem(t,n)}switchItem(t,e){null!==t?(this._currentItem=this._reportSet.getItemById(t),e||this._viewer.showItemById(t),this._viewer.highlightItem(t)):(this._currentItem=null,this._viewer.clearHighlighting()),this.update()}preferredLanguages(){const t=new URLSearchParams(window.location.search);if(t.has("lang"))return[t.get("lang")];const e=window.navigator.languages||[window.navigator.language||window.navigator.userLanguage];return 0!=e.length&&e[0]?e:["en"]}selectDefaultLanguage(){const t=this._reportSet.availableLanguages();for(const e of this.preferredLanguages())for(const n of t)if(n.toLowerCase()==e.toLowerCase())return n;return this._reportSet.availableLanguages()[0]}setLanguage(t){this._viewerOptions.language=t}showValidationReport(){const t=new Pl;t.displayErrors(this._reportSet.validation()),t.show()}setupValidationReportIcon(){this._reportSet.hasValidationErrors()&&e()("#ixv .validation-warning").show().on("click",(()=>this.showValidationReport()))}showValidationWarning(){if(this._reportSet.hasValidationErrors()){const t=e()("<div></div>").append("<p>This report contains <b>XBRL validation errors</b>. These errors may prevent this document from opening correctly in other XBRL software.</p>");new Wi("Validation errors",t,"View Details","Dismiss").show((()=>this.showValidationReport()))}}}class nc{constructor(t){this._features=new Set,this._plugins=[],this.inspector=new ec(this),this.viewer=null,t=t||{},this.options={continuationElementLimit:1e4,showValidationWarningOnStart:!1,...t}}registerPlugin(t){this._plugins.push(t)}callPluginMethod(t,...e){for(const n of this._plugins)"function"==typeof n[t]&&n[t](...e)}pluginPromise(t,...e){return new Promise(((n,i)=>{(async()=>{for(const n of this._plugins)"function"==typeof n[t]&&await n[t](...e)})().then((()=>{n()}))}))}setFeatures(t,e){const n={};t.forEach((t=>{n[t]=!0})),new URLSearchParams(e).forEach(((t,e)=>{!1!==n[e]&&(n[e]="false"!==t)})),this._features.size>0&&(this._features=new Set);for(const[t,e]of Object.entries(n))e&&this._features.add(t)}isFeatureEnabled(t){return this._features.has(t)}isReviewModeEnabled(){return this.isFeatureEnabled("review")}isViewerEnabled(){return"false"===(new URLSearchParams(window.location.search).get("disable-viewer")??"false")}_loadInspectorHTML(){e()(n(87)).prependTo("body");const t=n(864).toString();e()('<style id="ixv-style"></style>').prop("type","text/css").text(t).appendTo("head"),e()('<link id="ixv-favicon" type="image/x-icon" rel="shortcut icon" />').attr("href",n(285)).appendTo("head");try{e()(".inspector-foot .version").text("1.4.39")}catch(t){}}_reparentDocument(){const t=e()("#ixv #iframe-container"),n=e()('<iframe title="iXBRL document view"/>').data("report-index",0).appendTo(t)[0],i=n.contentDocument||n.contentWindow.document;i.open(),i.write("<!DOCTYPE html><html><head><title></title></head><body></body></html>"),i.close();let r=e()("title").text();r=""!=r?"Inline Viewer - "+r:"Inline Viewer",void 0===e()("html").attr("lang")&&e()("html").attr("lang","en-US"),e()("head").children().not("script").not("style#ixv-style").not("link#ixv-favicon").appendTo(e()(n).contents().find("head")),e()("<title>").text(r).appendTo(e()("head")),e()("body script").appendTo(e()("body"));const s=e()(n).contents().find("body");e()("body").children().not("script").not("#ixv").not(t).appendTo(s);for(const t of[...e()("body").prop("attributes")])s.attr(t.name,t.value),e()("body").removeAttr(t.name);return e()("body").removeAttr("style"),n}_getTaxonomyData(){for(let t=document.body.children.length-1;t>=0;t--){const e=document.body.children[t];if("SCRIPT"==e.tagName.toUpperCase()&&"application/x.ixbrl-viewer+json"==e.getAttribute("type"))return e.innerHTML}return null}_checkDocumentSetBrowserSupport(){"file:"==document.location.protocol&&alert("Displaying iXBRL document sets from local files is not supported. Please view the viewer files using a web server.")}load(){const t=this,n=this.inspector;setTimeout((function(){const i=e()("body").hasClass("ixv-stub-viewer");if(!t.isViewerEnabled()&&!i)return;t._loadInspectorHTML();let s=e()();const o=t._getTaxonomyData(),a=o&&JSON.parse(o);t.setFeatures(a&&a.features||[],window.location.search);const l=new sn(a);if(!t.isViewerEnabled())return void window.location.replace(l.reportFiles()[0].file);if(null===a)return e()("#ixv .loader .text").text("Error: Could not find viewer data"),void e()("#ixv .loader").removeClass("loading");i||(s=e()(t._reparentDocument()));const c=l.reportFiles();let u=!1;for(let t=i?0:1;t<c.length;t++){const n=e()("<iframe />").attr("src",c[t].file).data("report-index",c[t].index).appendTo("#ixv #iframe-container");s=s.add(n),u=!0}u&&t._checkDocumentSetBrowserSupport();const d=i?"Loading iXBRL Report":"Loading iXBRL Viewer";t.setProgress(d).then((()=>{let i=setInterval((function(){let o=!0;if(s.each((function(t){const n=this,i=n.contentDocument||n.contentWindow.document;("complete"!=i.readyState&&"interactive"!=i.readyState||0==e()(n).contents().find("body").children().length)&&(o=!1)})),o){clearInterval(i);const o=t.viewer=new Zi(t,s,l);o.initialize().then((()=>n.initialize(l,o))).then((()=>{r()("#viewer-pane").resizable({edges:{left:!1,right:".resize",bottom:!1,top:!1},restrictEdges:{outer:"parent",endOnly:!0},restrictSize:{min:{width:100}}}).on("resizestart",(()=>e()("#ixv").css("pointer-events","none"))).on("resizemove",(t=>{const n=t.target,i=100*t.rect.width/e()(n).parent().width();n.style.width=i+"%",e()("#inspector").css("width",100-i+"%")})).on("resizeend",(t=>e()("#ixv").css("pointer-events","auto"))),e()("#ixv .loader").remove(),n.handleFactDeepLink(),t.options.showValidationWarningOnStart&&n.showValidationWarning(),o.postLoadAsync(),n.postLoadAsync()})).catch((t=>{if(!(t instanceof Hi))throw t;e()("#ixv .loader").remove(),e()("#inspector").addClass("failed-to-load")}))}}),250)}))}),0)}setProgress(t){return new Promise(((n,i)=>{window.requestAnimationFrame((function(){console.log(`%c [Progress] ${t} `,"background: #77d1c8; color: black;"),e()("#ixv .loader .text").text(t),window.requestAnimationFrame((()=>n()))}))}))}}e()((()=>{new nc({showValidationWarningOnStart:!0}).load()}))})()})();