@things-factory/reference-app 6.0.27 → 6.0.28
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.
- package/attachments/311f5a1f-9a28-4f45-b335-11f8bbb12317.png +0 -0
- package/attachments/4bff6789-9d9a-4b61-acfd-75e419eb9bf3.png +0 -0
- package/attachments/5f4b08bc-7574-461d-a54f-bd0462c3bd37.jpeg +0 -0
- package/attachments/8c562e28-85e9-4cff-a055-5a08a4e57b88.jpeg +0 -0
- package/attachments/a2f74466-cc49-47fb-8c2b-7b0cf23a644d.jpeg +0 -0
- package/attachments/da8aaec2-ad03-4eec-adfb-8a9812c8330a.jpeg +0 -0
- package/client/pages/data-set/data-set-list-page.js +1 -0
- package/config.development.js +7 -32
- package/config.production.js +55 -0
- package/db.sqlite +0 -0
- package/dist-client/033a8a362e39e81521c5.png +0 -0
- package/dist-client/04d0a0b4f98288ff2746.png +0 -0
- package/dist-client/0567329dce1421547133.png +0 -0
- package/dist-client/08bbd147bbaa98b332db.png +0 -0
- package/dist-client/0aed78d02c1b6c64de60.png +0 -0
- package/dist-client/1212.js +1 -0
- package/dist-client/1442.js +1 -0
- package/dist-client/1550.js +1 -0
- package/dist-client/1593.js +1 -0
- package/dist-client/1689.js +1 -0
- package/dist-client/1733.js +1 -0
- package/dist-client/1766.js +1 -0
- package/dist-client/190b9d948ce6d6a87e94.png +0 -0
- package/dist-client/1c0dbf70fa46fc25deb8.png +0 -0
- package/dist-client/1c555219c119d1c496df.png +0 -0
- package/dist-client/1f4e2dcff0657747fad0.png +0 -0
- package/dist-client/2098.js +1 -0
- package/dist-client/2142.js +1 -0
- package/dist-client/2265.js +1 -0
- package/dist-client/22cf3c62ad9582d39c28.png +0 -0
- package/dist-client/23bb06ca921d23b125ba.png +0 -0
- package/dist-client/2418.js +1 -0
- package/dist-client/2568.js +1 -0
- package/dist-client/258.js +1 -0
- package/dist-client/27c4af6600f89bc8aa4c.png +0 -0
- package/dist-client/2878.js +1 -0
- package/dist-client/2883.js +1 -0
- package/dist-client/2990.js +1 -0
- package/dist-client/2d144601a82af822ac30.png +0 -0
- package/dist-client/3098662927a30fdb8a4d.png +0 -0
- package/dist-client/3127ee8dd683ba59bd7b.png +0 -0
- package/dist-client/337c5d211682e431be6c.png +0 -0
- package/dist-client/3513.js +1 -0
- package/dist-client/3557.js +1 -0
- package/dist-client/3565.js +1 -0
- package/dist-client/3594.js +1 -0
- package/dist-client/3734.js +2 -0
- package/dist-client/3734.js.LICENSE.txt +11 -0
- package/dist-client/3746.js +1 -0
- package/dist-client/383.js +2 -0
- package/dist-client/383.js.LICENSE.txt +9 -0
- package/dist-client/3872.js +1 -0
- package/dist-client/3910.js +1 -0
- package/dist-client/3955.js +1 -0
- package/dist-client/4083.js +1 -0
- package/dist-client/411cbf41ec0faa4535ff.png +0 -0
- package/dist-client/4141.js +2 -0
- package/dist-client/4141.js.LICENSE.txt +11 -0
- package/dist-client/4162710af8eacb02b3d0.png +0 -0
- package/dist-client/4184cd4ea6a8d7349e21.png +0 -0
- package/dist-client/427c4cb716f8c30bbd1e.png +0 -0
- package/dist-client/4327.js +1 -0
- package/dist-client/4365cff2c5809bcf52d9.png +0 -0
- package/dist-client/4447.js +1 -0
- package/dist-client/4511.js +2 -0
- package/dist-client/4511.js.LICENSE.txt +345 -0
- package/dist-client/4516.js +1 -0
- package/dist-client/4575.js +1 -0
- package/dist-client/4820.js +1 -0
- package/dist-client/4e16d62bc1e459fc5b25.png +0 -0
- package/dist-client/5085.js +2 -0
- package/dist-client/5085.js.LICENSE.txt +11 -0
- package/dist-client/526ad807daa9d0c4a816.png +0 -0
- package/dist-client/5407.js +1 -0
- package/dist-client/5562.js +1 -0
- package/dist-client/556db371e2df3f29cea0.png +0 -0
- package/dist-client/55772bbc827ad7017d35.png +0 -0
- package/dist-client/5665.js +1 -0
- package/dist-client/5671.js +1 -0
- package/dist-client/574.js +2 -0
- package/dist-client/574.js.LICENSE.txt +11 -0
- package/dist-client/5761.js +1 -0
- package/dist-client/5824.js +1 -0
- package/dist-client/5873.js +1 -0
- package/dist-client/591.js +1 -0
- package/dist-client/5beb3d1071d94d67b73b.png +0 -0
- package/dist-client/5c45b501555a5bcaf6bd.png +0 -0
- package/dist-client/5e63fb5c3d72a5c3854d.png +0 -0
- package/dist-client/6067.js +1 -0
- package/dist-client/6100.js +1 -0
- package/dist-client/6163.js +1 -0
- package/dist-client/6204.js +1 -0
- package/dist-client/6264682326a8907cc922.png +0 -0
- package/dist-client/6283.js +1 -0
- package/dist-client/6331.js +1 -0
- package/dist-client/64224c44c766e71e3253.png +0 -0
- package/dist-client/6466.js +1 -0
- package/dist-client/6671.js +1 -0
- package/dist-client/6791e5773eac3f253e24.png +0 -0
- package/dist-client/689d645de355b5bf70e9.png +0 -0
- package/dist-client/68fa02818b287fa99811.png +0 -0
- package/dist-client/6955.js +2 -0
- package/dist-client/6955.js.LICENSE.txt +649 -0
- package/dist-client/6fbc47ded1e56a97b6a9.png +0 -0
- package/dist-client/70ef12050d5c2bc1d18b.png +0 -0
- package/dist-client/7263.js +1 -0
- package/dist-client/73d122c80f6803d982ae.png +0 -0
- package/dist-client/7462.js +1 -0
- package/dist-client/7471.js +2 -0
- package/dist-client/7471.js.LICENSE.txt +20 -0
- package/dist-client/7528.js +2 -0
- package/dist-client/7528.js.LICENSE.txt +29 -0
- package/dist-client/7566.js +1 -0
- package/dist-client/7627.js +1 -0
- package/dist-client/763.js +2 -0
- package/dist-client/763.js.LICENSE.txt +11 -0
- package/dist-client/77407838ded3346a802e.png +0 -0
- package/dist-client/7793.js +1 -0
- package/dist-client/7809.js +1 -0
- package/dist-client/7862.js +1 -0
- package/dist-client/7953.js +1 -0
- package/dist-client/7a8893ef51203b1d41ba.png +0 -0
- package/dist-client/7bcfa66864686ddce32a.png +0 -0
- package/dist-client/7ca1e30e518e350cff5a.png +0 -0
- package/dist-client/7d9596c5140e7290967f.png +0 -0
- package/dist-client/8085.js +1 -0
- package/dist-client/8184.js +1 -0
- package/dist-client/8299.js +1 -0
- package/dist-client/8317.js +1 -0
- package/dist-client/8645.js +1 -0
- package/dist-client/8653.js +1 -0
- package/dist-client/8654.js +1 -0
- package/dist-client/8695.js +1 -0
- package/dist-client/8733.js +2 -0
- package/dist-client/8733.js.LICENSE.txt +3 -0
- package/dist-client/8752.js +1 -0
- package/dist-client/8795.js +1 -0
- package/dist-client/8818.js +1 -0
- package/dist-client/8848.js +2 -0
- package/dist-client/8848.js.LICENSE.txt +11 -0
- package/dist-client/8852.js +1 -0
- package/dist-client/8957.js +1 -0
- package/dist-client/8cf3afd5f21703b894da.png +0 -0
- package/dist-client/8f04bd1494e66102676e.png +0 -0
- package/dist-client/8f778f433221cc09f419.png +0 -0
- package/dist-client/9041.js +1 -0
- package/dist-client/9092.js +1 -0
- package/dist-client/9193.js +2 -0
- package/dist-client/9193.js.LICENSE.txt +8 -0
- package/dist-client/9251.js +1 -0
- package/dist-client/9288819b91c1e64a752d.png +0 -0
- package/dist-client/9313.js +2 -0
- package/dist-client/9313.js.LICENSE.txt +6 -0
- package/dist-client/9454482d54ddf8bb8f60.png +0 -0
- package/dist-client/9550.js +1 -0
- package/dist-client/960ff955855910a0f418.png +0 -0
- package/dist-client/9659.js +1 -0
- package/dist-client/9726.js +1 -0
- package/dist-client/9864.js +1 -0
- package/dist-client/9a6591477d12befc59d2.png +0 -0
- package/dist-client/9bac8829b2e3a98d04f5.png +0 -0
- package/dist-client/9d136a4324aad2667a79.png +0 -0
- package/dist-client/9d14a3b8c05bd19fde84.png +0 -0
- package/dist-client/aa152d1b3d3fd105c1e6.png +0 -0
- package/dist-client/assets/data-report.jpg +0 -0
- package/dist-client/assets/data-samples.jpg +0 -0
- package/dist-client/assets/diagram.jpg +0 -0
- package/dist-client/assets/editorjs-demo.css +415 -0
- package/dist-client/assets/favicon.ico +0 -0
- package/dist-client/assets/glue-table-indices.png +0 -0
- package/dist-client/assets/helps/index.md +1 -0
- package/dist-client/assets/images/add-user-1.png +0 -0
- package/dist-client/assets/images/add-user-2.png +0 -0
- package/dist-client/assets/images/add-user-3.png +0 -0
- package/dist-client/assets/images/add-user-4.png +0 -0
- package/dist-client/assets/images/background-animation.json +1 -0
- package/dist-client/assets/images/bg-auth-ui.png +0 -0
- package/dist-client/assets/images/bg-blue.png +0 -0
- package/dist-client/assets/images/bg-green.png +0 -0
- package/dist-client/assets/images/bg-input-select.png +0 -0
- package/dist-client/assets/images/bg-rail.png +0 -0
- package/dist-client/assets/images/create-policy-1.png +0 -0
- package/dist-client/assets/images/create-policy-2.png +0 -0
- package/dist-client/assets/images/create-policy-3.png +0 -0
- package/dist-client/assets/images/create-s3-bucket-1.png +0 -0
- package/dist-client/assets/images/create-s3-bucket-2.png +0 -0
- package/dist-client/assets/images/forklift.png +0 -0
- package/dist-client/assets/images/hatiolab-logo.png +0 -0
- package/dist-client/assets/images/home.png +0 -0
- package/dist-client/assets/images/icon-activate.png +0 -0
- package/dist-client/assets/images/icon-backinfo.png +0 -0
- package/dist-client/assets/images/icon-brand.png +0 -0
- package/dist-client/assets/images/icon-close.png +0 -0
- package/dist-client/assets/images/icon-congratulations.png +0 -0
- package/dist-client/assets/images/icon-domain.png +0 -0
- package/dist-client/assets/images/icon-editor-gradient-direction.png +0 -0
- package/dist-client/assets/images/icon-mobile-brand.png +0 -0
- package/dist-client/assets/images/icon-nametag.png +0 -0
- package/dist-client/assets/images/icon-profile.png +0 -0
- package/dist-client/assets/images/icon-properties-label.png +0 -0
- package/dist-client/assets/images/icon-properties-line-type.png +0 -0
- package/dist-client/assets/images/icon-properties-table.png +0 -0
- package/dist-client/assets/images/icon-resource-select.png +0 -0
- package/dist-client/assets/images/icon-result.png +0 -0
- package/dist-client/assets/images/icon-setting.png +0 -0
- package/dist-client/assets/images/invitation.png +0 -0
- package/dist-client/assets/images/person.png +0 -0
- package/dist-client/assets/images/profile.png +0 -0
- package/dist-client/assets/images/spinner.png +0 -0
- package/dist-client/assets/manifest/apple-1024.png +0 -0
- package/dist-client/assets/manifest/apple-120.png +0 -0
- package/dist-client/assets/manifest/apple-152.png +0 -0
- package/dist-client/assets/manifest/apple-167.png +0 -0
- package/dist-client/assets/manifest/apple-180.png +0 -0
- package/dist-client/assets/manifest/apple-touch-icon.png +0 -0
- package/dist-client/assets/manifest/badge-128x128.png +0 -0
- package/dist-client/assets/manifest/chrome-splashscreen-icon-384x384.png +0 -0
- package/dist-client/assets/manifest/chrome-touch-icon-192x192.png +0 -0
- package/dist-client/assets/manifest/icon-128x128.png +0 -0
- package/dist-client/assets/manifest/icon-192x192.png +0 -0
- package/dist-client/assets/manifest/icon-512x512.png +0 -0
- package/dist-client/assets/manifest/icon-72x72.png +0 -0
- package/dist-client/assets/manifest/icon-96x96.png +0 -0
- package/dist-client/assets/manifest/image-metaog.png +0 -0
- package/dist-client/assets/manifest/maskable_icon.png +0 -0
- package/dist-client/assets/manifest/ms-icon-144x144.png +0 -0
- package/dist-client/assets/manifest/ms-touch-icon-144x144-precomposed.png +0 -0
- package/dist-client/assets/manifest.json +27 -0
- package/dist-client/auth/activate.js +2 -0
- package/dist-client/auth/activate.js.LICENSE.txt +162 -0
- package/dist-client/auth/checkin.js +2 -0
- package/dist-client/auth/checkin.js.LICENSE.txt +83 -0
- package/dist-client/auth/forgot-password.js +2 -0
- package/dist-client/auth/forgot-password.js.LICENSE.txt +122 -0
- package/dist-client/auth/reset-password.js +2 -0
- package/dist-client/auth/reset-password.js.LICENSE.txt +122 -0
- package/dist-client/auth/result.js +2 -0
- package/dist-client/auth/result.js.LICENSE.txt +93 -0
- package/dist-client/auth/signin.js +2 -0
- package/dist-client/auth/signin.js.LICENSE.txt +122 -0
- package/dist-client/auth/signup.js +2 -0
- package/dist-client/auth/signup.js.LICENSE.txt +122 -0
- package/dist-client/auth/unlock-user.js +2 -0
- package/dist-client/auth/unlock-user.js.LICENSE.txt +122 -0
- package/dist-client/b62c2497caa3978e4cdc.png +0 -0
- package/dist-client/b640388996621bd3040e.png +0 -0
- package/dist-client/bac71281339c69e63421.png +0 -0
- package/dist-client/bb346e05d6b711d2ed8d.png +0 -0
- package/dist-client/c077fa0074e73452db46.png +0 -0
- package/dist-client/c62cd64b1413e4d1e652.png +0 -0
- package/dist-client/c81c6f2c0e82b3796b6e.png +0 -0
- package/dist-client/c9269a93bb18ae06affd.png +0 -0
- package/dist-client/ccd36ed4e050b84e523c.png +0 -0
- package/dist-client/cf23c1dc8743cf26dc75.png +0 -0
- package/dist-client/d39c2ce57a8c38e27e56.png +0 -0
- package/dist-client/d40282055a8309c96c4c.png +0 -0
- package/dist-client/d74f294abfe31d14964e.png +0 -0
- package/dist-client/d9b6b3243cd4bf2e63a8.png +0 -0
- package/dist-client/daacdd8ee024ac5b0379.png +0 -0
- package/dist-client/de7b6dfdbf9dfde49467.png +0 -0
- package/dist-client/e3466c7d8a49da978517.png +0 -0
- package/dist-client/e3efea6b1e596f2ceda3.png +0 -0
- package/dist-client/e433275c03dc4c240f48.png +0 -0
- package/dist-client/e6b1f9447b8d520a2f21.png +0 -0
- package/dist-client/e8af6dc62316e5759a73.png +0 -0
- package/dist-client/e8f855ba4a7793d0e0a4.png +0 -0
- package/dist-client/ed4ff0096ff238659d69.png +0 -0
- package/dist-client/f157b0233d3f083166e3.png +0 -0
- package/dist-client/f7183d9fb4a53537e50b.png +0 -0
- package/dist-client/fa33c0372723348a71c5.png +0 -0
- package/dist-client/fcdcd3b1851ab73ff6a0.png +0 -0
- package/dist-client/fd251baa5700266586a0.png +0 -0
- package/dist-client/fe12850d008bc2190ee7.png +0 -0
- package/dist-client/fffbf4ec108e494462bb.png +0 -0
- package/dist-client/headless-scene-components.js +2 -0
- package/dist-client/headless-scene-components.js.LICENSE.txt +688 -0
- package/dist-client/helps/about/components.md +3 -0
- package/dist-client/helps/about/framework/redirection.md +45 -0
- package/dist-client/helps/about/framework/typegraphql.md +74 -0
- package/dist-client/helps/about/framework.md +10 -0
- package/dist-client/helps/about/modules.md +7 -0
- package/dist-client/helps/about/things-factory.en.md +255 -0
- package/dist-client/helps/about/things-factory.ko.md +258 -0
- package/dist-client/helps/auth/appliance.en.md +22 -0
- package/dist-client/helps/auth/appliance.ko.md +40 -0
- package/dist-client/helps/auth/application.en.md +33 -0
- package/dist-client/helps/auth/images/app-binding.png +0 -0
- package/dist-client/helps/auth/images/appliance-generate-key.png +0 -0
- package/dist-client/helps/auth/images/appliance-sandbox-auth-1.png +0 -0
- package/dist-client/helps/auth/images/appliance-sandbox-auth-2.png +0 -0
- package/dist-client/helps/auth/images/appliance-sandbox-auth-3.png +0 -0
- package/dist-client/helps/auth/images/application-hub.png +0 -0
- package/dist-client/helps/auth/images/authorization-postman.png +0 -0
- package/dist-client/helps/auth/images/create-button2.png +0 -0
- package/dist-client/helps/auth/images/create-role.png +0 -0
- package/dist-client/helps/auth/images/flowchart-appliance-registration.jpg +0 -0
- package/dist-client/helps/auth/images/flowchart-role-management.jpg +0 -0
- package/dist-client/helps/auth/images/flowchart-user-account.jpg +0 -0
- package/dist-client/helps/auth/images/invite-user.png +0 -0
- package/dist-client/helps/auth/images/owner-transfer-confirm.png +0 -0
- package/dist-client/helps/auth/images/owner-transfer.png +0 -0
- package/dist-client/helps/auth/images/postman.png +0 -0
- package/dist-client/helps/auth/images/register-appliance-new.png +0 -0
- package/dist-client/helps/auth/images/register-appliance.png +0 -0
- package/dist-client/helps/auth/images/register-application.png +0 -0
- package/dist-client/helps/auth/images/registered-role.png +0 -0
- package/dist-client/helps/auth/images/role-list.png +0 -0
- package/dist-client/helps/auth/images/role-privilage.png +0 -0
- package/dist-client/helps/auth/images/role-privileges.png +0 -0
- package/dist-client/helps/auth/images/save-button2.png +0 -0
- package/dist-client/helps/auth/images/save-button3.png +0 -0
- package/dist-client/helps/auth/images/transfer-owner.png +0 -0
- package/dist-client/helps/auth/images/update-roles.png +0 -0
- package/dist-client/helps/auth/images/user-delete.png +0 -0
- package/dist-client/helps/auth/images/user-error.png +0 -0
- package/dist-client/helps/auth/images/user-invite.png +0 -0
- package/dist-client/helps/auth/images/user-roles.png +0 -0
- package/dist-client/helps/auth/roles.en.md +59 -0
- package/dist-client/helps/auth/roles.ko.md +42 -0
- package/dist-client/helps/auth/users.en.md +33 -0
- package/dist-client/helps/auth/users.ko.md +54 -0
- package/dist-client/helps/board-modeller/accessor.ko.md +4 -0
- package/dist-client/helps/board-modeller/accessor.md +4 -0
- package/dist-client/helps/board-modeller/accessor.zh.md +4 -0
- package/dist-client/helps/board-modeller/data-binding.ko.md +100 -0
- package/dist-client/helps/board-modeller/data-binding.md +100 -0
- package/dist-client/helps/board-modeller/data-binding.zh.md +89 -0
- package/dist-client/helps/board-modeller/data-spread.ko.md +57 -0
- package/dist-client/helps/board-modeller/data-spread.md +57 -0
- package/dist-client/helps/board-modeller/data-spread.zh.md +55 -0
- package/dist-client/helps/board-modeller/effects/animation.ko.md +46 -0
- package/dist-client/helps/board-modeller/effects/animation.md +47 -0
- package/dist-client/helps/board-modeller/effects/animation.zh.md +47 -0
- package/dist-client/helps/board-modeller/effects/hover-event.ko.md +55 -0
- package/dist-client/helps/board-modeller/effects/hover-event.md +57 -0
- package/dist-client/helps/board-modeller/effects/hover-event.zh.md +55 -0
- package/dist-client/helps/board-modeller/effects/retention.ko.md +4 -0
- package/dist-client/helps/board-modeller/effects/retention.md +4 -0
- package/dist-client/helps/board-modeller/effects/retention.zh.md +4 -0
- package/dist-client/helps/board-modeller/effects/shadow.ko.md +18 -0
- package/dist-client/helps/board-modeller/effects/shadow.md +21 -0
- package/dist-client/helps/board-modeller/effects/shadow.zh.md +19 -0
- package/dist-client/helps/board-modeller/effects/tap-event.ko.md +86 -0
- package/dist-client/helps/board-modeller/effects/tap-event.md +74 -0
- package/dist-client/helps/board-modeller/effects/tap-event.zh.md +74 -0
- package/dist-client/helps/board-modeller/images/animation-01.gif +0 -0
- package/dist-client/helps/board-modeller/images/animation-02.gif +0 -0
- package/dist-client/helps/board-modeller/images/animation-03.gif +0 -0
- package/dist-client/helps/board-modeller/images/animation-04.gif +0 -0
- package/dist-client/helps/board-modeller/images/animation-05.gif +0 -0
- package/dist-client/helps/board-modeller/images/animation-06.gif +0 -0
- package/dist-client/helps/board-modeller/images/animation-07.gif +0 -0
- package/dist-client/helps/board-modeller/images/animation-08.gif +0 -0
- package/dist-client/helps/board-modeller/images/animation-09.gif +0 -0
- package/dist-client/helps/board-modeller/images/animation-10.gif +0 -0
- package/dist-client/helps/board-modeller/images/common-property-text-align-horizontal.png +0 -0
- package/dist-client/helps/board-modeller/images/common-property-text-align-vertical.png +0 -0
- package/dist-client/helps/board-modeller/images/common-property-text-margin.png +0 -0
- package/dist-client/helps/board-modeller/images/component-3D.png +0 -0
- package/dist-client/helps/board-modeller/images/component-arrow.png +0 -0
- package/dist-client/helps/board-modeller/images/component-chart-gauge.png +0 -0
- package/dist-client/helps/board-modeller/images/component-container.png +0 -0
- package/dist-client/helps/board-modeller/images/component-datasource.png +0 -0
- package/dist-client/helps/board-modeller/images/component-etc.png +0 -0
- package/dist-client/helps/board-modeller/images/component-form.png +0 -0
- package/dist-client/helps/board-modeller/images/component-gauge.png +0 -0
- package/dist-client/helps/board-modeller/images/component-image.png +0 -0
- package/dist-client/helps/board-modeller/images/component-iot.png +0 -0
- package/dist-client/helps/board-modeller/images/component-line.png +0 -0
- package/dist-client/helps/board-modeller/images/component-shape.png +0 -0
- package/dist-client/helps/board-modeller/images/component-table.png +0 -0
- package/dist-client/helps/board-modeller/images/component-text-media.png +0 -0
- package/dist-client/helps/board-modeller/images/component-toolbar.png +0 -0
- package/dist-client/helps/board-modeller/images/component-warehouse.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-02.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-03.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-04.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-05.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-06.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-07.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-08.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-09.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-10.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-11.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-12.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-13.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-14.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-15.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-16.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-17.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-18.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-19.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-20.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-21.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-22.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-23.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-24.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-25.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-26.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-27.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-28.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-29.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-30.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-31.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-32.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar.png +0 -0
- package/dist-client/helps/board-modeller/images/effect-property.png +0 -0
- package/dist-client/helps/board-modeller/images/hover-01.png +0 -0
- package/dist-client/helps/board-modeller/images/join-type-bevel.png +0 -0
- package/dist-client/helps/board-modeller/images/join-type-miter.png +0 -0
- package/dist-client/helps/board-modeller/images/join-type-round.png +0 -0
- package/dist-client/helps/board-modeller/images/modeler-layout-01.png +0 -0
- package/dist-client/helps/board-modeller/images/property-window.png +0 -0
- package/dist-client/helps/board-modeller/images/shadow-02.png +0 -0
- package/dist-client/helps/board-modeller/images/shadow-03.png +0 -0
- package/dist-client/helps/board-modeller/images/shadow-04.png +0 -0
- package/dist-client/helps/board-modeller/images/shadow-05.png +0 -0
- package/dist-client/helps/board-modeller/images/shape-property.png +0 -0
- package/dist-client/helps/board-modeller/images/specific-property.png +0 -0
- package/dist-client/helps/board-modeller/images/style-property.png +0 -0
- package/dist-client/helps/board-modeller/images/target-property.png +0 -0
- package/dist-client/helps/board-modeller/images/variable-property.png +0 -0
- package/dist-client/helps/board-modeller/initial-data.ko.md +8 -0
- package/dist-client/helps/board-modeller/initial-data.md +8 -0
- package/dist-client/helps/board-modeller/initial-data.zh.md +8 -0
- package/dist-client/helps/board-modeller/modeller.ko.md +244 -0
- package/dist-client/helps/board-modeller/modeller.md +206 -0
- package/dist-client/helps/board-modeller/modeller.zh.md +241 -0
- package/dist-client/helps/board-modeller/shapes/3dish.ko.md +17 -0
- package/dist-client/helps/board-modeller/shapes/3dish.md +17 -0
- package/dist-client/helps/board-modeller/shapes/3dish.zh.md +17 -0
- package/dist-client/helps/board-modeller/shapes/print-option.ko.md +26 -0
- package/dist-client/helps/board-modeller/shapes/print-option.md +26 -0
- package/dist-client/helps/board-modeller/shapes/print-option.zh.md +26 -0
- package/dist-client/helps/board-modeller/shapes/shapes.ko.md +19 -0
- package/dist-client/helps/board-modeller/shapes/shapes.md +21 -0
- package/dist-client/helps/board-modeller/shapes/shapes.zh.md +19 -0
- package/dist-client/helps/board-modeller/shapes/size.ko.md +8 -0
- package/dist-client/helps/board-modeller/shapes/size.md +8 -0
- package/dist-client/helps/board-modeller/shapes/size.zh.md +8 -0
- package/dist-client/helps/board-modeller/shapes/text-box.ko.md +16 -0
- package/dist-client/helps/board-modeller/shapes/text-box.md +16 -0
- package/dist-client/helps/board-modeller/shapes/text-box.zh.md +16 -0
- package/dist-client/helps/board-modeller/shapes/viewer-option.ko.md +9 -0
- package/dist-client/helps/board-modeller/shapes/viewer-option.md +9 -0
- package/dist-client/helps/board-modeller/shapes/viewer-option.zh.md +9 -0
- package/dist-client/helps/board-modeller/styles/fill-style.ko.md +18 -0
- package/dist-client/helps/board-modeller/styles/fill-style.md +18 -0
- package/dist-client/helps/board-modeller/styles/fill-style.zh.md +18 -0
- package/dist-client/helps/board-modeller/styles/line-style.ko.md +19 -0
- package/dist-client/helps/board-modeller/styles/line-style.md +23 -0
- package/dist-client/helps/board-modeller/styles/line-style.zh.md +19 -0
- package/dist-client/helps/board-modeller/styles/opacity.ko.md +3 -0
- package/dist-client/helps/board-modeller/styles/opacity.md +3 -0
- package/dist-client/helps/board-modeller/styles/opacity.zh.md +3 -0
- package/dist-client/helps/board-modeller/styles/text-style.ko.md +8 -0
- package/dist-client/helps/board-modeller/styles/text-style.md +8 -0
- package/dist-client/helps/board-modeller/styles/text-style.zh.md +8 -0
- package/dist-client/helps/components/oops-progress.md +73 -0
- package/dist-client/helps/contact/contact.md +160 -0
- package/dist-client/helps/dataset/data-archive.md +9 -0
- package/dist-client/helps/dataset/data-entry-list.md +2 -0
- package/dist-client/helps/dataset/data-key-set.md +10 -0
- package/dist-client/helps/dataset/data-ooc.md +11 -0
- package/dist-client/helps/dataset/data-report-list.md +4 -0
- package/dist-client/helps/dataset/data-sample-search.md +2 -0
- package/dist-client/helps/dataset/data-sample.md +11 -0
- package/dist-client/helps/dataset/data-sensor.md +13 -0
- package/dist-client/helps/dataset/data-set.md +28 -0
- package/dist-client/helps/dataset/ui/data-item-list.md +19 -0
- package/dist-client/helps/dataset/ui/data-key-item-list.md +2 -0
- package/dist-client/helps/index.md +1 -0
- package/dist-client/helps/integration/concept/connection.md +27 -0
- package/dist-client/helps/integration/concept/data-accessor.ko.md +11 -0
- package/dist-client/helps/integration/concept/data-accessor.md +11 -0
- package/dist-client/helps/integration/concept/data-accessor.zh.md +11 -0
- package/dist-client/helps/integration/concept/pending-queue.md +32 -0
- package/dist-client/helps/integration/concept/scenario-context.md +83 -0
- package/dist-client/helps/integration/concept/scenario-engine.md +10 -0
- package/dist-client/helps/integration/concept/scenario.md +4 -0
- package/dist-client/helps/integration/concept/task.md +25 -0
- package/dist-client/helps/integration/connector/mqtt-connector.md +17 -0
- package/dist-client/helps/integration/connector/mssql-connector.md +38 -0
- package/dist-client/helps/integration/connector/oracle-connector.md +66 -0
- package/dist-client/helps/integration/connector/postgresql-connector.md +34 -0
- package/dist-client/helps/integration/connector/sqlite-connector.md +17 -0
- package/dist-client/helps/integration/index.md +37 -0
- package/dist-client/helps/integration/task/book-up-scenario.md +24 -0
- package/dist-client/helps/integration/task/end.md +3 -0
- package/dist-client/helps/integration/task/floating-point.md +34 -0
- package/dist-client/helps/integration/task/goto.md +8 -0
- package/dist-client/helps/integration/task/graphql-mutate.md +44 -0
- package/dist-client/helps/integration/task/graphql-query.md +44 -0
- package/dist-client/helps/integration/task/local-graphql-mutate.md +44 -0
- package/dist-client/helps/integration/task/local-graphql-query.md +44 -0
- package/dist-client/helps/integration/task/log.md +14 -0
- package/dist-client/helps/integration/task/mqtt-publish.md +10 -0
- package/dist-client/helps/integration/task/mqtt-subscribe.md +15 -0
- package/dist-client/helps/integration/task/pick-pending-scenario.md +13 -0
- package/dist-client/helps/integration/task/publish.md +16 -0
- package/dist-client/helps/integration/task/script.md +39 -0
- package/dist-client/helps/integration/task/sleep.md +8 -0
- package/dist-client/helps/integration/task/throw.md +12 -0
- package/dist-client/helps/integration/task/variables.md +37 -0
- package/dist-client/helps/integration/ui/connection.md +16 -0
- package/dist-client/helps/integration/ui/crontab-editor.md +9 -0
- package/dist-client/helps/integration/ui/integration-monitor.md +29 -0
- package/dist-client/helps/integration/ui/scenario-detail.md +35 -0
- package/dist-client/helps/integration/ui/scenario.md +35 -0
- package/dist-client/helps/module/api.md +117 -0
- package/dist-client/helps/module/dashboard.md +27 -0
- package/dist-client/helps/module/help.md +40 -0
- package/dist-client/helps/module/lite-menu.md +112 -0
- package/dist-client/helps/module/notification-images/config-app-1.png +0 -0
- package/dist-client/helps/module/notification-images/config-app-2.png +0 -0
- package/dist-client/helps/module/notification-images/config-server-key.png +0 -0
- package/dist-client/helps/module/notification-images/config-service-account.png +0 -0
- package/dist-client/helps/module/notification-images/config-vapidkey-1.png +0 -0
- package/dist-client/helps/module/notification-images/config-vapidkey-2-get-public-key.png +0 -0
- package/dist-client/helps/module/notification-images/config-vapidkey-3-get-private-key.png +0 -0
- package/dist-client/helps/module/notification-images/element-notification-badge.png +0 -0
- package/dist-client/helps/module/notification-images/element-notification-list.png +0 -0
- package/dist-client/helps/module/notification-images/element-notification-setting-let.png +0 -0
- package/dist-client/helps/module/notification-images/push-test-on-chrome-1.png +0 -0
- package/dist-client/helps/module/notification-images/push-test-on-chrome-2.png +0 -0
- package/dist-client/helps/module/notification-images/push-test-on-firebase-1.png +0 -0
- package/dist-client/helps/module/notification-images/push-test-on-firebase-2.png +0 -0
- package/dist-client/helps/module/notification-images/push-test-on-firebase-3.png +0 -0
- package/dist-client/helps/module/notification-images/push-test-on-firebase-4.png +0 -0
- package/dist-client/helps/module/notification.md +161 -0
- package/dist-client/helps/oauth2-client/code-verifier.md +5 -0
- package/dist-client/helps/oauth2-client/credentials.md +160 -0
- package/dist-client/helps/oauth2-client/grant-type.md +33 -0
- package/dist-client/helps/organization/department.md +160 -0
- package/dist-client/helps/organization/employee.md +160 -0
- package/dist-client/helps/scene/component/analog-clock.ko.md +6 -0
- package/dist-client/helps/scene/component/analog-clock.md +8 -0
- package/dist-client/helps/scene/component/analog-clock.zh.md +6 -0
- package/dist-client/helps/scene/component/arrow.ko.md +9 -0
- package/dist-client/helps/scene/component/arrow.md +9 -0
- package/dist-client/helps/scene/component/arrow.zh.md +9 -0
- package/dist-client/helps/scene/component/audio.ko.md +1 -0
- package/dist-client/helps/scene/component/audio.md +1 -0
- package/dist-client/helps/scene/component/audio.zh.md +1 -0
- package/dist-client/helps/scene/component/both-arrow.ko.md +9 -0
- package/dist-client/helps/scene/component/both-arrow.md +9 -0
- package/dist-client/helps/scene/component/both-arrow.zh.md +9 -0
- package/dist-client/helps/scene/component/chartjs.ko.md +332 -0
- package/dist-client/helps/scene/component/chartjs.md +333 -0
- package/dist-client/helps/scene/component/chartjs.zh.md +331 -0
- package/dist-client/helps/scene/component/color-image.ko.md +9 -0
- package/dist-client/helps/scene/component/color-image.md +9 -0
- package/dist-client/helps/scene/component/color-image.zh.md +9 -0
- package/dist-client/helps/scene/component/container.ko.md +7 -0
- package/dist-client/helps/scene/component/container.md +9 -0
- package/dist-client/helps/scene/component/container.zh.md +8 -0
- package/dist-client/helps/scene/component/donut.ko.md +14 -0
- package/dist-client/helps/scene/component/donut.md +17 -0
- package/dist-client/helps/scene/component/donut.zh.md +18 -0
- package/dist-client/helps/scene/component/dotted-line.ko.md +7 -0
- package/dist-client/helps/scene/component/dotted-line.md +9 -0
- package/dist-client/helps/scene/component/dotted-line.zh.md +7 -0
- package/dist-client/helps/scene/component/ellipse.ko.md +11 -0
- package/dist-client/helps/scene/component/ellipse.md +11 -0
- package/dist-client/helps/scene/component/ellipse.zh.md +10 -0
- package/dist-client/helps/scene/component/gauge-circle.ko.md +168 -0
- package/dist-client/helps/scene/component/gauge-circle.md +167 -0
- package/dist-client/helps/scene/component/gauge-circle.zh.md +164 -0
- package/dist-client/helps/scene/component/gauge-horizon.ko.md +145 -0
- package/dist-client/helps/scene/component/gauge-horizon.md +145 -0
- package/dist-client/helps/scene/component/gauge-horizon.zh.md +145 -0
- package/dist-client/helps/scene/component/gauge-vertical.ko.md +12 -0
- package/dist-client/helps/scene/component/gauge-vertical.md +9 -0
- package/dist-client/helps/scene/component/gauge-vertical.zh.md +10 -0
- package/dist-client/helps/scene/component/gif-view.ko.md +10 -0
- package/dist-client/helps/scene/component/gif-view.md +10 -0
- package/dist-client/helps/scene/component/gif-view.zh.md +10 -0
- package/dist-client/helps/scene/component/global-ref.ko.md +1 -0
- package/dist-client/helps/scene/component/global-ref.md +1 -0
- package/dist-client/helps/scene/component/global-ref.zh.md +1 -0
- package/dist-client/helps/scene/component/gray-image.ko.md +9 -0
- package/dist-client/helps/scene/component/gray-image.md +9 -0
- package/dist-client/helps/scene/component/gray-image.zh.md +8 -0
- package/dist-client/helps/scene/component/indoor-map.ko.md +65 -0
- package/dist-client/helps/scene/component/indoor-map.md +65 -0
- package/dist-client/helps/scene/component/indoor-map.zh.md +65 -0
- package/dist-client/helps/scene/component/info-window.ko.md +1 -0
- package/dist-client/helps/scene/component/info-window.md +1 -0
- package/dist-client/helps/scene/component/info-window.zh.md +1 -0
- package/dist-client/helps/scene/component/input.ko.md +59 -0
- package/dist-client/helps/scene/component/input.md +59 -0
- package/dist-client/helps/scene/component/input.zh.md +58 -0
- package/dist-client/helps/scene/component/line.ko.md +9 -0
- package/dist-client/helps/scene/component/line.md +9 -0
- package/dist-client/helps/scene/component/line.zh.md +7 -0
- package/dist-client/helps/scene/component/local-ref.ko.md +1 -0
- package/dist-client/helps/scene/component/local-ref.md +1 -0
- package/dist-client/helps/scene/component/local-ref.zh.md +1 -0
- package/dist-client/helps/scene/component/marker.ko.md +15 -0
- package/dist-client/helps/scene/component/marker.md +15 -0
- package/dist-client/helps/scene/component/marker.zh.md +15 -0
- package/dist-client/helps/scene/component/news-ticker.ko.md +27 -0
- package/dist-client/helps/scene/component/news-ticker.md +27 -0
- package/dist-client/helps/scene/component/news-ticker.zh.md +27 -0
- package/dist-client/helps/scene/component/polygon.ko.md +9 -0
- package/dist-client/helps/scene/component/polygon.md +9 -0
- package/dist-client/helps/scene/component/polygon.zh.md +9 -0
- package/dist-client/helps/scene/component/polyline.ko.md +10 -0
- package/dist-client/helps/scene/component/polyline.md +10 -0
- package/dist-client/helps/scene/component/polyline.zh.md +10 -0
- package/dist-client/helps/scene/component/popup.ko.md +27 -0
- package/dist-client/helps/scene/component/popup.md +27 -0
- package/dist-client/helps/scene/component/progress-circle.ko.md +41 -0
- package/dist-client/helps/scene/component/progress-circle.md +42 -0
- package/dist-client/helps/scene/component/progress-circle.zh.md +39 -0
- package/dist-client/helps/scene/component/progress-horizontal.ko.md +37 -0
- package/dist-client/helps/scene/component/progress-horizontal.md +31 -0
- package/dist-client/helps/scene/component/progress-horizontal.zh.md +31 -0
- package/dist-client/helps/scene/component/progress-vertical.ko.md +23 -0
- package/dist-client/helps/scene/component/progress-vertical.md +24 -0
- package/dist-client/helps/scene/component/progress-vertical.zh.md +23 -0
- package/dist-client/helps/scene/component/rack.ko.md +17 -0
- package/dist-client/helps/scene/component/rack.md +15 -0
- package/dist-client/helps/scene/component/rack.zh.md +16 -0
- package/dist-client/helps/scene/component/random.ko.md +12 -0
- package/dist-client/helps/scene/component/random.md +11 -0
- package/dist-client/helps/scene/component/random.zh.md +11 -0
- package/dist-client/helps/scene/component/rect.ko.md +17 -0
- package/dist-client/helps/scene/component/rect.md +16 -0
- package/dist-client/helps/scene/component/rect.zh.md +16 -0
- package/dist-client/helps/scene/component/simple-switch.ko.md +20 -0
- package/dist-client/helps/scene/component/simple-switch.md +19 -0
- package/dist-client/helps/scene/component/simple-switch.zh.md +19 -0
- package/dist-client/helps/scene/component/star.ko.md +19 -0
- package/dist-client/helps/scene/component/star.md +19 -0
- package/dist-client/helps/scene/component/star.zh.md +19 -0
- package/dist-client/helps/scene/component/tab-container.ko.md +58 -0
- package/dist-client/helps/scene/component/tab-container.md +57 -0
- package/dist-client/helps/scene/component/tab-container.zh.md +59 -0
- package/dist-client/helps/scene/component/tab.ko.md +14 -0
- package/dist-client/helps/scene/component/tab.md +13 -0
- package/dist-client/helps/scene/component/tab.zh.md +13 -0
- package/dist-client/helps/scene/component/text-clock.ko.md +25 -0
- package/dist-client/helps/scene/component/text-clock.md +22 -0
- package/dist-client/helps/scene/component/text-clock.zh.md +22 -0
- package/dist-client/helps/scene/component/text.ko.md +9 -0
- package/dist-client/helps/scene/component/text.md +9 -0
- package/dist-client/helps/scene/component/text.zh.md +9 -0
- package/dist-client/helps/scene/component/top-rounded-ractangle.ko.md +15 -0
- package/dist-client/helps/scene/component/top-rounded-ractangle.md +15 -0
- package/dist-client/helps/scene/component/top-rounded-ractangle.zh.md +15 -0
- package/dist-client/helps/scene/component/triangle.ko.md +9 -0
- package/dist-client/helps/scene/component/triangle.md +9 -0
- package/dist-client/helps/scene/component/triangle.zh.md +9 -0
- package/dist-client/helps/scene/images/both-arrow-01.png +0 -0
- package/dist-client/helps/scene/images/button-evnet-mapping-01.png +0 -0
- package/dist-client/helps/scene/images/button-evnet-mapping-02.png +0 -0
- package/dist-client/helps/scene/images/button-evnet-mapping-03.png +0 -0
- package/dist-client/helps/scene/images/chart-bar-01.png +0 -0
- package/dist-client/helps/scene/images/chart-bar-02.png +0 -0
- package/dist-client/helps/scene/images/chart-bar-03.png +0 -0
- package/dist-client/helps/scene/images/chart-bar-08.png +0 -0
- package/dist-client/helps/scene/images/chart-bar-12.png +0 -0
- package/dist-client/helps/scene/images/chart-data-01.png +0 -0
- package/dist-client/helps/scene/images/chart-data-04.png +0 -0
- package/dist-client/helps/scene/images/chart-doughnut-01.png +0 -0
- package/dist-client/helps/scene/images/chart-horizontal-bar-01.png +0 -0
- package/dist-client/helps/scene/images/chart-line-01.png +0 -0
- package/dist-client/helps/scene/images/chart-mix-01.png +0 -0
- package/dist-client/helps/scene/images/chart-mix-02.png +0 -0
- package/dist-client/helps/scene/images/chart-pie-01.png +0 -0
- package/dist-client/helps/scene/images/chart-polar-01.png +0 -0
- package/dist-client/helps/scene/images/chart-radar-01.png +0 -0
- package/dist-client/helps/scene/images/clock-analog-01.png +0 -0
- package/dist-client/helps/scene/images/clock-text-01.png +0 -0
- package/dist-client/helps/scene/images/clock-text-02.png +0 -0
- package/dist-client/helps/scene/images/clock-text-03.png +0 -0
- package/dist-client/helps/scene/images/clock-text-04.png +0 -0
- package/dist-client/helps/scene/images/container-01.png +0 -0
- package/dist-client/helps/scene/images/container-03.png +0 -0
- package/dist-client/helps/scene/images/container-04.png +0 -0
- package/dist-client/helps/scene/images/dash-01.png +0 -0
- package/dist-client/helps/scene/images/donut-01.png +0 -0
- package/dist-client/helps/scene/images/donut-02.png +0 -0
- package/dist-client/helps/scene/images/ellipse-01.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-01.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-02.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-03.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-04.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-05.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-06.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-07.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-08.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-09.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-10.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-11.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-12.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-13.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-14.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-15.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-16.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-17.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-18.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-19.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-20.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-21.png +0 -0
- package/dist-client/helps/scene/images/gauge-horizontal-01.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-01.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-02.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-03.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-04.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-05.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-06.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-07.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-08.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-09.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-10.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-11.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-12.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-13.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-14.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-15.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-16.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-17.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-18.png +0 -0
- package/dist-client/helps/scene/images/half-round-rect-01.png +0 -0
- package/dist-client/helps/scene/images/half-round-rect-02.png +0 -0
- package/dist-client/helps/scene/images/indoor-button-finish-01.gif +0 -0
- package/dist-client/helps/scene/images/indoor-create-01.png +0 -0
- package/dist-client/helps/scene/images/indoor-create-02.png +0 -0
- package/dist-client/helps/scene/images/indoor-create-03.png +0 -0
- package/dist-client/helps/scene/images/indoor-setting-01.png +0 -0
- package/dist-client/helps/scene/images/line-01.png +0 -0
- package/dist-client/helps/scene/images/marker-01.png +0 -0
- package/dist-client/helps/scene/images/marker-02.png +0 -0
- package/dist-client/helps/scene/images/media-01.png +0 -0
- package/dist-client/helps/scene/images/media-02.png +0 -0
- package/dist-client/helps/scene/images/news_ticker_1.png +0 -0
- package/dist-client/helps/scene/images/news_ticker_2.png +0 -0
- package/dist-client/helps/scene/images/news_ticker_3.png +0 -0
- package/dist-client/helps/scene/images/news_ticker_video_1.gif +0 -0
- package/dist-client/helps/scene/images/news_ticker_video_2.gif +0 -0
- package/dist-client/helps/scene/images/polygon-01.png +0 -0
- package/dist-client/helps/scene/images/polyline-01.png +0 -0
- package/dist-client/helps/scene/images/progress-circle-01.png +0 -0
- package/dist-client/helps/scene/images/progress-circle-02.png +0 -0
- package/dist-client/helps/scene/images/progress-circle-03.png +0 -0
- package/dist-client/helps/scene/images/progress-circle-04.png +0 -0
- package/dist-client/helps/scene/images/progress-circle-05.png +0 -0
- package/dist-client/helps/scene/images/progress-horizontal-01.png +0 -0
- package/dist-client/helps/scene/images/progress-horizontal-02.png +0 -0
- package/dist-client/helps/scene/images/progress-horizontal-03.png +0 -0
- package/dist-client/helps/scene/images/progress-horizontal-04.png +0 -0
- package/dist-client/helps/scene/images/progress-vertical-01.png +0 -0
- package/dist-client/helps/scene/images/progress-vertical-02.png +0 -0
- package/dist-client/helps/scene/images/progress-vertical-03.png +0 -0
- package/dist-client/helps/scene/images/rect-01.png +0 -0
- package/dist-client/helps/scene/images/rect-02.png +0 -0
- package/dist-client/helps/scene/images/single-arrow-01.png +0 -0
- package/dist-client/helps/scene/images/star-01.png +0 -0
- package/dist-client/helps/scene/images/star-02.png +0 -0
- package/dist-client/helps/scene/images/star-03.png +0 -0
- package/dist-client/helps/scene/images/tab-button-finish-01.gif +0 -0
- package/dist-client/helps/scene/images/tab-container-03.png +0 -0
- package/dist-client/helps/scene/images/tab-container-create-01.png +0 -0
- package/dist-client/helps/scene/images/tab-container-create-02.png +0 -0
- package/dist-client/helps/scene/images/tab-container-create-03.png +0 -0
- package/dist-client/helps/scene/images/tab-container-setting-01.png +0 -0
- package/dist-client/helps/scene/images/text-01.png +0 -0
- package/dist-client/helps/scene/images/triangle-01.png +0 -0
- package/dist-client/helps/setting/images/confirm-button.PNG +0 -0
- package/dist-client/helps/setting/images/delete-button.png +0 -0
- package/dist-client/helps/setting/images/error-setting.png +0 -0
- package/dist-client/helps/setting/images/export-button.png +0 -0
- package/dist-client/helps/setting/images/flowchart-setting-management.jpg +0 -0
- package/dist-client/helps/setting/images/partner-setting.png +0 -0
- package/dist-client/helps/setting/images/partners-list.PNG +0 -0
- package/dist-client/helps/setting/images/save-button.png +0 -0
- package/dist-client/helps/setting/images/select-button.PNG +0 -0
- package/dist-client/helps/setting/images/setting-board.png +0 -0
- package/dist-client/helps/setting/images/upload-button.png +0 -0
- package/dist-client/helps/setting/partner-setting.en.md +19 -0
- package/dist-client/helps/setting/settings.en.md +26 -0
- package/dist-client/helps/setting/settings.ko.md +4 -0
- package/dist-client/index.html +40 -0
- package/dist-client/main.js +2 -0
- package/dist-client/main.js.LICENSE.txt +53 -0
- package/dist-client/modules.js +2 -0
- package/dist-client/modules.js.LICENSE.txt +3 -0
- package/dist-client/node_modules/@hatiolab/things-scene/babel.config.js +1 -0
- package/dist-client/node_modules/@hatiolab/things-scene/package.json +89 -0
- package/dist-client/node_modules/@hatiolab/things-scene/rollup.config.js +1 -0
- package/dist-client/node_modules/@hatiolab/things-scene/things-board.js +1 -0
- package/dist-client/node_modules/@hatiolab/things-scene/things-scene-ie.js +2 -0
- package/dist-client/node_modules/@hatiolab/things-scene/things-scene-ie.js.LICENSE.txt +3 -0
- package/dist-client/node_modules/@hatiolab/things-scene/things-scene-min.js +2 -0
- package/dist-client/node_modules/@hatiolab/things-scene/things-scene-min.js.LICENSE.txt +3 -0
- package/dist-client/node_modules/@hatiolab/things-scene/tsconfig.json +9 -0
- package/dist-client/node_modules/@webcomponents/webcomponentsjs/CHANGELOG.md +71 -0
- package/dist-client/node_modules/@webcomponents/webcomponentsjs/LICENSE.md +19 -0
- package/dist-client/node_modules/@webcomponents/webcomponentsjs/README.md +259 -0
- package/dist-client/node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js +2 -0
- package/dist-client/node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js.LICENSE.txt +9 -0
- package/dist-client/node_modules/@webcomponents/webcomponentsjs/package.json +51 -0
- package/dist-client/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.d.ts +175 -0
- package/dist-client/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js +2 -0
- package/dist-client/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js.LICENSE.txt +9 -0
- package/dist-client/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js.map +1 -0
- package/dist-client/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js +2 -0
- package/dist-client/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js.LICENSE.txt +9 -0
- package/dist-client/node_modules/web-animations-js/web-animations-next.min.js +1 -0
- package/dist-client/node_modules/web-animations-js/web-animations-next.min.js.map +1 -0
- package/dist-client/oauth2/oauth2-decision-error-page.js +2 -0
- package/dist-client/oauth2/oauth2-decision-error-page.js.LICENSE.txt +70 -0
- package/dist-client/oauth2/oauth2-decision-page.js +2 -0
- package/dist-client/oauth2/oauth2-decision-page.js.LICENSE.txt +104 -0
- package/dist-client/openapi/unstable/scenario.yaml +240 -0
- package/dist-client/openapi/unstable.yaml +41 -0
- package/dist-client/profile.js +1 -0
- package/dist-client/public/home.js +2 -0
- package/dist-client/public/home.js.LICENSE.txt +81 -0
- package/dist-client/scene-player.js +2 -0
- package/dist-client/scene-player.js.LICENSE.txt +822 -0
- package/dist-client/scene-viewer.js +2 -0
- package/dist-client/scene-viewer.js.LICENSE.txt +822 -0
- package/dist-client/service-worker.js +2 -0
- package/dist-client/service-worker.js.LICENSE.txt +6 -0
- package/dist-client/theme.css +17 -0
- package/dist-client/translations/en.json +1242 -0
- package/dist-client/translations/ko.json +1245 -0
- package/dist-client/translations/ms.json +1210 -0
- package/dist-client/translations/zh.json +1192 -0
- package/dist-client/views/auth-page.html +96 -0
- package/dist-client/views/dependencies-view-graphviz.html +75 -0
- package/dist-client/views/dependencies-view.html +139 -0
- package/dist-client/views/internal-board-full-feature-view.html +61 -0
- package/dist-client/views/internal-board-service-view.html +65 -0
- package/dist-client/views/internal-label-command-view.html +300 -0
- package/dist-client/views/oauth2-page.html +90 -0
- package/dist-client/views/public/home.html +87 -0
- package/dist-client/views/public/html-editor-editorjs.html +269 -0
- package/dist-client/views/public/html-editor-jodit.html +31 -0
- package/dist-client/views/public/html-editor-tui.html +54 -0
- package/dist-client/views/scenario-view.html +64 -0
- package/dist-client/views/template.html +21 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +24 -49
- package/logs/.18d091b2bdb152ebed6b3b89b64872d0259f255d-audit.json +20 -0
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +12 -32
- package/logs/application-2022-04-25-13.log +3 -0
- package/logs/application-2022-04-25-17.log +9 -0
- package/logs/application-2022-04-26-10.log +28 -0
- package/logs/application-2022-04-26-11.log +13 -0
- package/logs/application-2022-04-26-13.log +9 -0
- package/logs/application-2023-01-17-09.log +7 -0
- package/logs/application-2023-01-17-18.log +2 -0
- package/logs/application-2023-01-19-00.log +3 -0
- package/logs/application-2023-01-19-01.log +3 -0
- package/logs/application-2023-01-19-08.log +3 -0
- package/logs/application-2023-01-19-09.log +1 -0
- package/logs/application-2023-01-19-10.log +1 -0
- package/logs/application-2023-01-19-17.log +1 -0
- package/logs/connections-2022-04-18-20.log +0 -0
- package/logs/connections-2022-04-25-13.log +0 -0
- package/logs/connections-2022-04-25-17.log +0 -0
- package/logs/connections-2022-04-26-10.log +0 -0
- package/logs/connections-2022-04-26-11.log +0 -0
- package/logs/connections-2022-04-26-13.log +0 -0
- package/logs/connections-2023-01-17-09.log +0 -0
- package/logs/connections-2023-01-19-00.log +0 -0
- package/logs/connections-2023-01-19-01.log +0 -0
- package/logs/connections-2023-01-19-08.log +0 -0
- package/logs/system/.277b657c3d28ef3f7f13e894f05f9a5b78225124-audit.json +15 -0
- package/logs/system/.48785e489f583edb47e5bfd3d5cf6ac2a7e0bf3a-audit.json +15 -0
- package/logs/system/.4f2031dfc4e0de16454872a65d0a8b59646970f7-audit.json +15 -0
- package/logs/system/.6da447827b9a5ea2ccd1f5f28a0b784317582531-audit.json +20 -0
- package/logs/system/.8d440e4a6e875d88d938061d3d3037e6b0d7dc58-audit.json +15 -0
- package/logs/system/.b295089be805f3597aa7380952ce4f2670ac8e21-audit.json +20 -0
- package/logs/system/scenario-MAIN-2022-03-04-16.log +190 -0
- package/logs/system/scenario-PUBLISH-2022-03-16-13.log +8 -0
- package/logs/system/scenario-PUBLISH-2023-01-19-08.log +36 -0
- package/logs/system/scenario-SCALER-TEST-2022-02-25-11.log +14 -0
- package/logs/system/scenario-SCHEDULE-TESt-2022-03-02-12.log +66 -0
- package/logs/system/scenario-SCHEDULE-TESt-2022-03-02-13.log +1396 -0
- package/logs/system/scenario-pubsub-2-2022-04-11-23.log +12 -0
- package/logs/system/scenario-pubsub-2-2022-04-12-14.log +12 -0
- package/logs/system/scenario-pubsub-2022-04-11-23.log +277 -0
- package/package.json +34 -34
- package/attachments/03e21709-60c1-4796-bb0b-9920148ce2c6.png +0 -0
- package/attachments/1c5f7b4e-45f7-47dc-94e2-6d4aa04c331d.png +0 -0
- package/attachments/5c7f2330-a93d-4c48-bcca-6b2a10974386.png +0 -0
- package/attachments/97e18c62-6e73-4407-a062-276cd25de43a.png +0 -0
- package/attachments/9c6e1599-a4e2-483e-833d-c67e336b27e5.png +0 -0
- package/attachments/9d1d12ea-0140-46cc-8eba-b1ab475bfd98.png +0 -0
- package/attachments/a727d8fa-5afe-47b3-9b29-97a1f26637f3.png +0 -0
- package/attachments/b713c6b6-15e3-4c80-a288-b0e8eba5e091.png +0 -0
- package/attachments/c7b6e18b-fd21-49c5-8a38-9b2455957c2a.png +0 -0
- package/attachments/dabc0a7e-bb5b-46a3-b73c-d310c95f0832.png +0 -0
- package/attachments/f099313a-c616-4753-b2d7-33db2ac29b3b.png +0 -0
- package/attachments/f90a4af7-5555-4078-8960-2c978363ac42.png +0 -0
- package/logs/application-2023-03-19-07.log +0 -11
- package/logs/application-2023-03-19-08.log +0 -4
- package/logs/application-2023-03-19-10.log +0 -5
- package/logs/application-2023-03-19-11.log +0 -10
- package/logs/application-2023-03-19-12.log +0 -5
- package/logs/application-2023-03-19-16.log +0 -3
- package/logs/application-2023-03-19-19.log +0 -1
- package/logs/application-2023-03-19-20.log +0 -2
- package/logs/application-2023-03-19-21.log +0 -1
- package/logs/application-2023-03-21-03.log +0 -15
- package/logs/application-2023-03-21-04.log +0 -15
- package/logs/application-2023-03-21-12.log +0 -3
- package/logs/application-2023-03-21-13.log +0 -3
- /package/{attachments/92a49294-725c-445c-8fe3-98d328d6d0a5.png → dist-client/assets/images/image-api.png} +0 -0
- /package/{logs/connections-2023-03-13-10.log → dist-client/helps/scene/component/image-view.md} +0 -0
- /package/{logs/connections-2023-03-13-11.log → dist-client/theme.js} +0 -0
- /package/logs/{connections-2023-03-19-07.log → connections-2022-04-12-14.log} +0 -0
- /package/logs/{connections-2023-03-19-10.log → connections-2022-04-12-16.log} +0 -0
- /package/logs/{connections-2023-03-19-11.log → connections-2022-04-14-13.log} +0 -0
- /package/logs/{connections-2023-03-19-12.log → connections-2022-04-14-17.log} +0 -0
- /package/logs/{connections-2023-03-21-03.log → connections-2022-04-15-08.log} +0 -0
- /package/logs/{connections-2023-03-21-04.log → connections-2022-04-18-10.log} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see headless-scene-components.js.LICENSE.txt */
|
|
2
|
+
(()=>{var e={80427:(e,t,r)=>{"use strict";function n(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function i(e){return Math.min(1,Math.max(0,e))}function a(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function o(e){return e<=1?"".concat(100*Number(e),"%"):e}function s(e){return 1===e.length?"0"+e:String(e)}function l(e,t,r){e=n(e,255),t=n(t,255),r=n(r,255);var i=Math.max(e,t,r),a=Math.min(e,t,r),o=0,s=0,l=(i+a)/2;if(i===a)s=0,o=0;else{var u=i-a;switch(s=l>.5?u/(2-i-a):u/(i+a),i){case e:o=(t-r)/u+(t<r?6:0);break;case t:o=(r-e)/u+2;break;case r:o=(e-t)/u+4}o/=6}return{h:o,s,l}}function u(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*r*(t-e):r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function c(e,t,r){e=n(e,255),t=n(t,255),r=n(r,255);var i=Math.max(e,t,r),a=Math.min(e,t,r),o=0,s=i,l=i-a,u=0===i?0:l/i;if(i===a)o=0;else{switch(i){case e:o=(t-r)/l+(t<r?6:0);break;case t:o=(r-e)/l+2;break;case r:o=(e-t)/l+4}o/=6}return{h:o,s:u,v:s}}function d(e,t,r,n){var i=[s(Math.round(e).toString(16)),s(Math.round(t).toString(16)),s(Math.round(r).toString(16))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function h(e){return f(e)/255}function f(e){return parseInt(e,16)}r.d(t,{C:()=>b});var p={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var m="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),g="[\\s|\\(]+(".concat(m,")[,|\\s]+(").concat(m,")[,|\\s]+(").concat(m,")\\s*\\)?"),v="[\\s|\\(]+(".concat(m,")[,|\\s]+(").concat(m,")[,|\\s]+(").concat(m,")[,|\\s]+(").concat(m,")\\s*\\)?"),y={CSS_UNIT:new RegExp(m),rgb:new RegExp("rgb"+g),rgba:new RegExp("rgba"+v),hsl:new RegExp("hsl"+g),hsla:new RegExp("hsla"+v),hsv:new RegExp("hsv"+g),hsva:new RegExp("hsva"+v),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function _(e){return Boolean(y.CSS_UNIT.exec(String(e)))}var b=function(){function e(t,r){var i;if(void 0===t&&(t=""),void 0===r&&(r={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var s=function(e){var t,r,i,s={r:0,g:0,b:0},l=1,c=null,d=null,m=null,g=!1,v=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(p[e])e=p[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var r=y.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=y.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=y.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=y.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=y.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=y.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=y.hex8.exec(e))?{r:f(r[1]),g:f(r[2]),b:f(r[3]),a:h(r[4]),format:t?"name":"hex8"}:(r=y.hex6.exec(e))?{r:f(r[1]),g:f(r[2]),b:f(r[3]),format:t?"name":"hex"}:(r=y.hex4.exec(e))?{r:f(r[1]+r[1]),g:f(r[2]+r[2]),b:f(r[3]+r[3]),a:h(r[4]+r[4]),format:t?"name":"hex8"}:!!(r=y.hex3.exec(e))&&{r:f(r[1]+r[1]),g:f(r[2]+r[2]),b:f(r[3]+r[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(_(e.r)&&_(e.g)&&_(e.b)?(t=e.r,r=e.g,i=e.b,s={r:255*n(t,255),g:255*n(r,255),b:255*n(i,255)},g=!0,v="%"===String(e.r).substr(-1)?"prgb":"rgb"):_(e.h)&&_(e.s)&&_(e.v)?(c=o(e.s),d=o(e.v),s=function(e,t,r){e=6*n(e,360),t=n(t,100),r=n(r,100);var i=Math.floor(e),a=e-i,o=r*(1-t),s=r*(1-a*t),l=r*(1-(1-a)*t),u=i%6;return{r:255*[r,s,o,o,l,r][u],g:255*[l,r,r,s,o,o][u],b:255*[o,o,l,r,r,s][u]}}(e.h,c,d),g=!0,v="hsv"):_(e.h)&&_(e.s)&&_(e.l)&&(c=o(e.s),m=o(e.l),s=function(e,t,r){var i,a,o;if(e=n(e,360),t=n(t,100),r=n(r,100),0===t)a=r,o=r,i=r;else{var s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;i=u(l,s,e+1/3),a=u(l,s,e),o=u(l,s,e-1/3)}return{r:255*i,g:255*a,b:255*o}}(e.h,c,m),g=!0,v="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(l=e.a)),l=a(l),{ok:g,format:e.format||v,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:l}}(t);this.originalInput=t,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(i=r.format)&&void 0!==i?i:s.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=s.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,r=e.g/255,n=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=a(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=c(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=c(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(r,"%, ").concat(n,"%)"):"hsva(".concat(t,", ").concat(r,"%, ").concat(n,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=l(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=l(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(r,"%, ").concat(n,"%)"):"hsla(".concat(t,", ").concat(r,"%, ").concat(n,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),d(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,r,n,i){var a,o=[s(Math.round(e).toString(16)),s(Math.round(t).toString(16)),s(Math.round(r).toString(16)),s((a=n,Math.round(255*parseFloat(a)).toString(16)))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),r=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(r,")"):"rgba(".concat(e,", ").concat(t,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*n(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*n(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+d(this.r,this.g,this.b,!1),t=0,r=Object.entries(p);t<r.length;t++){var n=r[t],i=n[0];if(e===n[1])return i}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var r=!1,n=this.a<1&&this.a>=0;return t||!n||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=i(r.l),new e(r)},e.prototype.brighten=function(t){void 0===t&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-t/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-t/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-t/100*255))),new e(r)},e.prototype.darken=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=i(r.l),new e(r)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=i(r.s),new e(r)},e.prototype.saturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=i(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){void 0===r&&(r=50);var n=this.toRgb(),i=new e(t).toRgb(),a=r/100;return new e({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},e.prototype.analogous=function(t,r){void 0===t&&(t=6),void 0===r&&(r=30);var n=this.toHsl(),i=360/r,a=[this];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,a.push(new e(n));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var r=this.toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/t;t--;)o.push(new e({h:n,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb();return new e({r:n.r+(r.r-n.r)*r.a,g:n.g+(r.g-n.g)*r.a,b:n.b+(r.b-n.b)*r.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,i=[this],a=360/t,o=1;o<t;o++)i.push(new e({h:(n+o*a)%360,s:r.s,l:r.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}()},52864:(e,t,r)=>{"use strict";r(72583),r(757);var n=r(171),i=(r(84558),r(27820),r(94430)),a=r(56765),o=r(21095),s=r(51266);const l={id:"data-binder",beforeUpdate:function(e){e.data&&(e.data.rawData||(e.data.rawData=[]),e.data.rawData=function(e,t){if(!e)return null;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return s.warn("invalid chart data format",e),null}if(!(e instanceof Array))return e instanceof Object?e:null;if(0===e.length)return null;e[0].hasOwnProperty("__field1")&&(e=function(e){if(!e||0===e.length)return null;var t={},r=[];for(var n in e[0])t[n]=e[0][n];for(var i=1;i<e.length;i++){var a={},o=e[i];for(var s in t){var l=t[s],u=o[s];a[l]=u}r.push(a)}return r}(e));var r=t.data.labelDataKey,n=[];for(var i in t.data.datasets)n.push(t.data.datasets[Number(i)].dataKey);var a=[],o=[],l={seriesData:a,labelData:o};for(var u in e){var c=e[Number(u)];for(var d in o.push(c[r]),n)n[d]&&(a[d]||(a[d]=[]),isNaN(c[n[d]])&&(c[n[d]]=NaN),a[d].push(c[n[d]]))}return l}(e.data.rawData,e)||{seriesData:[],labelData:[]},e.data.rawData.seriesData,function(e){var t=e.data.rawData.labelData;e.config.data.labels=t||[]}(e),function(e){if(e.data.rawData){var t=e.data.rawData.seriesData;for(var r in t&&0!==t.length||(t=[null]),e.data.datasets)e.data.datasets[Number(r)].data=t[r]||[]}}(e))}};var u,c=r(80427);function d(e){if(e){var t,r,n,i=(e.data||{}).datasets||[],a=e.options||{},o=a.scales||{},s=a.legend||{},l=!1===a.tooltip?void 0:a.tooltips=a.tooltips||{},u=a.multiAxis,c=[!1,!1],d=Number(a.defaultFontSize),w=a.defaultFontFamily,T=a.defaultFontColor,L=a.theme;for(var S in function(e,t){switch(e){case"horizontalBar":t.scales||(t.scales={});break;case"radar":case"polarArea":t.defaultFontColor&&(t.scale.ticks.fontColor=t.defaultFontColor,t.scale.pointLabels?t.scale.pointLabels.fontColor=t.defaultFontColor:t.scale.pointLabels={fontColor:t.defaultFontColor}),t.scale.ticks.backdropColor=t.fillStyle?t.fillStyle:"#00ff0000";break;case"line":case"bar":if(t.scales||(t.scales={}),t.scales.yAxes||(t.scales.yAxes=[]),1===t.scales.yAxes.length){var r=t.scales.yAxes;r.push({position:"right",id:"right",display:t.multiAxis||!1,gridLines:{display:r[0]&&r[0].gridLines&&r[0].gridLines.display||!1},ticks:{beginAtZero:!1,callback:function(e,t,r){var n=e;return"number"==typeof n&&(n=n.toLocaleString()),n}}})}break;case"pie":case"doughnut":break;default:t.scale||(t.scale={})}}(e.type,a),i){var k=i[S];if(a.stacked&&!k.stack&&(k.stack="A"),"bar"==e.type){var x=o.xAxes&&o.xAxes[0].categorySpacing||0,E=o.xAxes&&o.xAxes[0].barSpacing||0;k.categoryPercentage=1-x||1,k.barPercentage=1-E||.8}else if("horizontalBar"==e.type){var D=o.yAxes&&o.yAxes[0].categorySpacing||0,A=o.yAxes&&o.yAxes[0].barSpacing||0;k.categoryPercentage=1-D||1,k.barPercentage=1-A||.8}b(k,e),u||"right"==k.yAxisID&&(k.yAxisID="left")}delete a.stacked;var O=i.filter((e=>"left"==e.yAxisID)),P=i.filter((e=>"right"==e.yAxisID));switch(O.forEach((e=>{O.filter((t=>e.stack==t.stack)).length>1&&(c[0]=!0)})),P.forEach((e=>{P.filter((t=>e.stack==t.stack)).length>1&&(c[1]=!0)})),n=c[0]||c[1],e.type){case"line":case"bar":case"horizontalBar":for(var R in t=o.xAxes||[],r=o.yAxes||[],"horizontalBar"==e.type&&(t=o.yAxes||[],r=o.xAxes||[]),t){var I=t[R];h(I,n),m(I,{fontSize:d,fontFamily:w}),g(I),v(I),p(I),y(I,L,T),M(I.ticks),I.gridLines.display=a.xGridLine}for(var Y in r){var C=r[Y];1==Y&&f(C,u),h(C,c[Y]),m(C,{fontSize:d,fontFamily:w}),g(C),p(C),y(C,L,T),M(C.ticks),0==Y&&(C.gridLines.display=a.yGridLine),1==Y&&(C.gridLines.display=a.y2ndGridLine)}break;case"pie":case"doughnut":break;default:m(a.scale||{},{fontSize:d,fontFamily:w})}!function(e,t){var{fontFamily:r,fontSize:n}=t;e.labels=e.labels?e.labels:{},e.labels.fontSize=n,r&&(e.labels.fontFamily=r)}(s,{fontSize:d,fontFamily:w}),s.labels&&(s.labels.boxWidth=15),function(e,t,r){var n=_(t);e.labels=e.labels?e.labels:{},e.labels.fontColor=r||n.clone().setAlpha(.5).toString()}(s,L,T),a.tooltip&&function(e,t){var{fontSize:r,fontFamily:n}=t;e.titleFontSize=e.bodyFontSize=e.footerFontSize=r,n&&(e.titleFontFamily=e.bodyFontFamily=e.footerFontFamily=n)}(l,{fontSize:d,fontFamily:w}),a.tooltip&&function(e){e.callbacks=e.callbacks||{},e.intersect=!1,e.mode="index",e.callbacks.label=function(e,t){var r,n,i,a,o,s,l=null===(n=null===(r=t.datasets)||void 0===r?void 0:r[e.datasetIndex||0].data)||void 0===n?void 0:n[e.index||0],u=(null===(i=t.datasets)||void 0===i?void 0:i[e.datasetIndex||0].label)||(null===(a=t.labels)||void 0===a?void 0:a[e.index||0]),c=Number(l);isNaN(c)||(l=c);var d=(null===(o=t.datasets)||void 0===o?void 0:o[e.datasetIndex||0].valuePrefix)||"",h=(null===(s=t.datasets)||void 0===s?void 0:s[e.datasetIndex||0].valueSuffix)||"";return"".concat(u,": ").concat(d+(null==l?void 0:l.toLocaleString())+h)}}(l)}}function h(e,t){e.stacked=t}function f(e,t){e.display=t}function p(e){e.scaleLabel||(e.scaleLabel={}),e.scaleLabel.labelString=e.axisTitle,e.scaleLabel.display=!!e.axisTitle}function m(e,t){var{fontSize:r,fontFamily:n}=t;e.ticks=e.ticks?e.ticks:{},e.ticks.fontSize=r,n&&(e.ticks.fontFamily=n),e.pointLabels={fontSize:r,fontFamily:n}}function g(e){e.ticks=e.ticks?e.ticks:{};var t=e.ticks.autoMin,r=e.ticks.autoMax;!0===t&&delete e.ticks.min,!0===r&&delete e.ticks.max}function v(e){e.ticks=e.ticks?e.ticks:{}}function y(e,t,r){var n=_(t);e.gridLines=e.gridLines?e.gridLines:{},e.gridLines&&(e.gridLines.zeroLineColor=n.clone().setAlpha(.5).toString(),e.gridLines.color=n.clone().setAlpha(.1).toString()),e.ticks=e.ticks?e.ticks:{},e.ticks.fontColor=r||n.clone().setAlpha(.5).toString()}function _(e){var t;return t="light"===e?"#fff":"#000",new c.C(t)}function b(e,t){var r=e.type||t.type,n="".concat(r," ").concat(e.yAxisID," ").concat(e.stack||e.dataKey),i=e.color?e.color:e.backgroundColor;switch(r){case"bar":case"horizontalBar":default:e.borderColor=e.backgroundColor=i;break;case"line":case"radar":i=e.color?e.color:e.borderColor,e.pointBackgroundColor=e.pointBorderColor=e.borderColor=e.backgroundColor=i,e.pointBorderWidth=.5*e.borderWidth,e.pointHoverRadius=e.pointRadius,null==e.fill&&(e.fill=!1)}e.stack=n}function M(e){e&&(e.callback=function(e,t,r){var n;if(n=Number.isNaN(Number(e))?e:Number(e).toLocaleString())return n})}function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}o.Chart.plugins.register(l);var S=class extends i.oi{firstUpdated(){this.initChart()}render(){return(0,i.dy)(u||(e=[" <canvas></canvas> "],t||(t=e.slice(0)),u=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))));var e,t}updated(e){(e.has("width")||e.has("height"))&&this.updateChartSize(),e.has("options")&&this.updateChartConfig(),e.has("data")&&(this._chart.data.rawData=this.data,this._chart.update())}initChart(){var{data:e,options:t,type:r}=this.options;t.maintainAspectRatio=!1,this.attachPluginOptions(t),d(this.options),this._chart=new o.Chart(this._canvas,{type:r,data:e,options:t}),this.updateChartSize(),this._initialized=!0}updateChartSize(){var e=Math.floor(this.width),t=Math.floor(this.height);this._canvas.style.width="".concat(e,"px"),this._canvas.style.height="".concat(t,"px");var r=()=>{0==this._canvas.offsetWidth||0==this._canvas.offsetHeight?requestAnimationFrame(r):this._chart.resize()};requestAnimationFrame(r)}updateChartConfig(){if(this._chart){var{data:e,options:t,type:r}=this.options;t.maintainAspectRatio=!1,this.attachPluginOptions(t),d(this.options),this._chart.type=r,this._chart.data=e,this._chart.options=t,this._chart.data.rawData=this.data,this._chart.update()}}attachPluginOptions(e){e.plugins||(e.plugins={}),this.attachDatalabelPluginOptions(e.plugins)}attachDatalabelPluginOptions(e){e.datalabels=T(T({},e.datalabels),{},{display:function(e){return!!e.dataset.displayValue},anchor:function(e){return e.dataset.dataLabelAnchor||"center"},color:function(e){return e.dataset.defaultFontColor||"#000"},font:function(e){return{size:e.dataset.defaultFontSize}},clamp:!0,formatter:function(e,t){var r=t.dataset.valuePrefix||"",n=t.dataset.valueSuffix||"";return null==e?e:r+String(e).toLocaleString()+n}})}};(0,n.gn)([(0,a.Cb)({type:Number})],S.prototype,"width",void 0),(0,n.gn)([(0,a.Cb)({type:Number})],S.prototype,"height",void 0),(0,n.gn)([(0,a.Cb)({type:Object})],S.prototype,"options",void 0),(0,n.gn)([(0,a.Cb)({type:Object})],S.prototype,"data",void 0),(0,n.gn)([(0,a.IO)("canvas")],S.prototype,"_canvas",void 0),S=(0,n.gn)([(0,a.Mo)("ox-chart")],S);var k=r(54207),x=r.n(k),E=r(83305);function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){O(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var P={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"chartjs",label:"",name:"chart"}],"value-property":"data",help:"scene/component/chartjs"};class R extends E.HTMLOverlayElement{constructor(){super(...arguments),this._isChartChanged=!1,this._isDataChanged=!1}get nature(){return P}get hasTextProperty(){return!1}get tagName(){return"ox-chart"}isShadowable(){return!1}createElement(){super.createElement();var{width:e,height:t}=this.bounds,r=this.element,n=this.data;r.width=e,r.height=t,this._setChartConfig(r),r.data=n}setElementProperties(e){this.set("lineWidth",0);var{chart:t}=this.state,{width:r,height:n}=this.bounds,i=this.data;try{e.width=r,e.height=n,t&&this._isChartChanged&&(this._setChartConfig(e),this._isChartChanged=!1),this._isDataChanged&&(e.data=i,this._isDataChanged=!1)}catch(e){(0,E.error)(e)}}_setChartConfig(e){var{chart:t,fontSize:r=12,fontFamily:n,fontColor:i,shadow:a}=this.state,{left:o=0,top:s=0,blurSize:l=0,color:u="transparent"}=a||{},c={defaultFontSize:r,defaultFontFamily:n,defaultFontColor:i},d={shadowOffsetX:o,shadowOffsetY:s,shadowBlur:l,shadowColor:u},h=x()(t);h.options=A(A(A({},h.options),c),{},{tooltips:!1}),h.data.datasets=h.data.datasets.map((e=>A(A({},e),d))),e.options=h}onchange(e,t){this._isChartChanged=!1,("chart"in e||"fontSize"in e||"fontFamily"in e||"fontColor"in e||"shadow"in e)&&(this._isChartChanged=!0),super.onchange(e,t)}onchangeData(e){this._isDataChanged=!0}}E.Component.register("chartjs",R)},80351:(e,t,r)=>{"use strict";var n=r(83305),i={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"number",label:"hour-width",name:"hourWidth",property:"hourWidth"},{type:"number",label:"minute-width",name:"minuteWidth",property:"minuteWidth"},{type:"number",label:"second-width",name:"secondWidth",property:"secondWidth"},{type:"checkbox",label:"needle-round",name:"needleRound",property:"needleRound"},{type:"checkbox",label:"show-second",name:"showSecond",property:"showSecond"},{type:"checkbox",label:"show-number",name:"showNumber",property:"showNumber"},{type:"number",label:"inner-circle-size",name:"innerCircleSize",property:"innerCircleSize"},{type:"color",label:"inner-circle-color",name:"innerCircleColor",property:"innerCircleColor"}],help:"scene/component/analog-clock"};function a(e,t,r,n,i){e.beginPath(),e.lineWidth=n,e.lineCap=i?"round":"square",e.moveTo(0,0),e.rotate(t),e.lineTo(0,-r),e.stroke(),e.rotate(-t)}class o extends n.Ellipse{is3dish(){return!1}_draw(e){var t,r,{cx:n,cy:i,rx:o,ry:s,fillStyle:l,strokeStyle:u,fontColor:c="#000",lineWidth:d,hourWidth:h,minuteWidth:f,secondWidth:p,needleRound:m=!1,showSecond:g=!0,showNumber:v=!0,innerCircleSize:y=5,innerCircleColor:_="#000"}=this.state;if(e.beginPath(),e.ellipse(n,i,Math.abs(o),Math.abs(s),0,0,2*Math.PI),e.fillStyle=l,e.strokeStyle=u,e.lineWidth=d||.1*o,this.drawFill(e),this.drawStroke(e),e.beginPath(),e.translate(n,i),e.scale(1,s/o),v)for(e.font=.15*o+"px arial",e.textBaseline="middle",e.textAlign="center",e.fillStyle=c,r=1;r<13;r++)t=r*Math.PI/6,e.rotate(t),e.translate(0,.85*-o),e.rotate(-t),e.fillText(r.toString(),0,0),e.rotate(t),e.translate(0,.85*o),e.rotate(-t);var b=new Date,M=b.getHours(),w=b.getMinutes(),T=b.getSeconds();a(e,M=(M%=12)*Math.PI/6+w*Math.PI/360+T*Math.PI/21600,.55*o,h||.07*o,m),a(e,w=w*Math.PI/30+T*Math.PI/1800,.8*o,f||.07*o,m),g&&a(e,T=T*Math.PI/30,.9*o,p||.02*o,m),e.beginPath(),y&&(e.ellipse(0,0,y,y,0,0,2*Math.PI),e.fillStyle=_,e.fill()),e.beginPath(),e.scale(1,o/s),e.translate(-n,-i);var L=setTimeout((function(e){e.invalidate(),clearTimeout(L)}),1e3,this)}get nature(){return i}}n.Component.register("clock-analog",o);var s=r(19231),l={name:"ko",weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),ordinal:function(e){return e},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},meridiem:function(e){return e<12?"오전":"오후"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"}};s.Z.locale(l,null,!0);var u={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,t){return"W"===t?e+"周":e+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,t){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1100?"上午":r<1300?"中午":r<1800?"下午":"晚上"}};s.Z.locale(u,null,!0);var c={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e){return e+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(e){return e<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};s.Z.locale(c,null,!0);var d=r(42872),h=/[+-]\d\d(?::?\d\d)?/g,f=/([+-]|\d\d)/g;s.Z.extend((function(e,t,r){var n=t.prototype;r.utc=function(e){var r={date:e,utc:!0,args:arguments};return new t(r)},n.utc=function(e){var t=r(this.toDate(),{locale:this.$L,utc:!0});return e?t.add(this.utcOffset(),d.KX):t},n.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var i=n.parse;n.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),i.call(this,e)};var a=n.init;n.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else a.call(this)};var o=n.utcOffset;n.utcOffset=function(e,t){var r=this.$utils().u;if(r(e))return this.$u?0:r(this.$offset)?o.call(this):this.$offset;if("string"==typeof e&&(e=function(e){void 0===e&&(e="");var t=e.match(h);if(!t)return null;var r=(""+t[0]).match(f)||["-",0,0],n=r[0],i=60*+r[1]+ +r[2];return 0===i?0:"+"===n?i:-i}(e),null===e))return this;var n=Math.abs(e)<=16?60*e:e,i=this;if(t)return i.$offset=n,i.$u=0===e,i;if(0!==e){var a=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(i=this.local().add(n+a,d.KX)).$offset=n,i.$x.$localOffset=a}else i=this.utc();return i};var s=n.format;n.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return s.call(this,t)},n.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-e*d.WN},n.isUTC=function(){return!!this.$u},n.toISOString=function(){return this.toDate().toISOString()},n.toString=function(){return this.toDate().toUTCString()};var l=n.toDate;n.toDate=function(e){return"s"===e&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var u=n.diff;n.diff=function(e,t,n){if(e&&this.$u===e.$u)return u.call(this,e,t,n);var i=this.local(),a=r(e).local();return u.call(i,a,t,n)}}));var p={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"time-format",name:"timeFormat"},{type:"checkbox",label:"is-local-time",name:"localTime"},{type:"number",label:"utc",name:"utc"},{type:"select",label:"week-language",name:"weekLanguage",property:{options:[{display:"English",value:"en"},{display:"Korean",value:"ko"},{display:"Chinese",value:"zh-cn"},{display:"Japanese",value:"ja"}]}}],help:"scene/component/clock-text"};class m extends n.Text{is3dish(){return!1}get nature(){return p}render(e){super.render(e),this._raf=requestAnimationFrame((()=>{setTimeout((()=>{this._timer()}),1e3)}))}_timer(){this.set("data",this._getTimeStamp())}_getTimeStamp(){var e=(0,s.Z)(),t=this.get("utc"),r=this.get("timeFormat")||"YYYY-MM-DD HH:mm:ss",n=this.get("weekLanguage");return this.get("weekLanguage")||(n="en"),this.get("localTime")?e.local().locale(n).format(r):e.utc().utcOffset(Number(t)).locale(n).format(r)}dispose(){super.dispose(),void 0!==this._raf&&cancelAnimationFrame(this._raf)}}n.Component.register("clock-text",m)},32471:(e,t,r)=>{"use strict";var n=r(85194),i=r(83305),a=r(51266),o={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"select",label:"method",name:"method",property:{options:[{display:"GET",value:"GET"},{display:"POST",value:"POST"}]}},{type:"string",label:"action",name:"action"},{type:"number",label:"period",name:"period"},{type:"string",label:"name",name:"name"},{type:"string",label:"authorization",name:"authorization"},{type:"select",label:"format",name:"format",property:{options:[{display:"JSON",value:"JSON"},{display:"XML",value:"XML"},{display:"TEXT",value:"TEXT"}]}},{type:"select",label:"content-type",name:"contentType",property:{options:[{display:"JSON",value:"application/json"},{display:"FORM",value:"application/x-www-form-urlencoded"},{display:"TEXT",value:"text/plain"}]}},{type:"checkbox",label:"with-credentials",name:"withCredentials"},{type:"checkbox",label:"submit-on-load",name:"submitOnLoad"},{type:"checkbox",label:"debug",name:"debug"}],"value-property":"action"};class s extends i.HTMLOverlayContainer{dispose(){super.dispose(),this._stopRepeater()}setElementProperties(e){var{action:t="",method:r="POST",name:n="",contentType:i=""}=this.state;e.action=t,e.method=r,e.contentType=i,e.name=n}get action(){return this.state.action}set action(e){this.setState("action",e),this._startRepeater()}get period(){return 1e3*this.state.period}set period(e){this.setState("period",e),this._startRepeater()}_startRepeater(){this._stopRepeater(),this.app.isViewMode&&this.period&&(this._repeatInterval=setInterval(this._submit.bind(this),this.period))}_stopRepeater(){this._repeatInterval&&clearInterval(this._repeatInterval)}_onload(e){var t,r=null===(t=e.target)||void 0===t?void 0:t.response;try{switch(this.get("format")){case"JSON":r=JSON.parse(r);break;case"XML":r=(0,n.xml2js)(r,{compact:!0})}this.state.debug&&a.log("[FORM-RESULT]",r),this.setState("data",r)}catch(e){a.error(e)}}oncreate_element(e){this.app.isViewMode&&(e.onsubmit=t=>{t.preventDefault();var r=e.action,n=new XMLHttpRequest,i=[].filter.call(e.elements,(function(e){return"radio"!=e.type&&"checkbox"!=e.type||e.checked})).filter((function(e){return!!e.name})).filter((function(e){return!e.disabled})).map((function(e){return encodeURIComponent(e.name)+"="+encodeURIComponent(e.value)})).join("&");return n.onloadend=this._onload.bind(this),"get"==e.method?n.open(e.method,r+"?"+i):n.open(e.method,r),e.contentType&&n.setRequestHeader("Content-Type",e.contentType),this.get("authorization")&&n.setRequestHeader("Authorization",this.get("authorization")),this.get("withCredentials")&&(n.withCredentials=!0),"get"==e.method?n.send():n.send(i),!1},this.getState("submitOnLoad")&&setTimeout(this._submit.bind(this),100),this._startRepeater())}_submit(){this.element.dispatchEvent(new Event("submit",{cancelable:!0}))}get nature(){return o}}i.Component.register("form",s);var l={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"legend",name:"legend"}]};class u extends i.HTMLOverlayContainer{setElementProperties(e){var{legend:t=""}=this.state;t?this.legendElement.textContent=t:(this._legendElement&&this.element.removeChild(this._legendElement),delete this._legendElement)}reposition(){super.reposition(),this.element.style.padding="revert"}get legendElement(){if(!this._legendElement){var e=document.createElement("legend");e.style.position="absolute",e.style.top="0",e.style.transform="translateY(-50%)",e.style.backgroundColor="inherit",this.element.appendChild(e),this._legendElement=e}return this._legendElement}get nature(){return l}}i.Component.register("fieldset",u);var c={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"value",name:"value"},{type:"number",label:"size",name:"size"},{type:"string",label:"name",name:"name"},{type:"checkbox",label:"submit-on-change",name:"submitOnChange"},{type:"checkbox",label:"copy-value-to-data",name:"copyValueToData"},{type:"string",label:"text-field",name:"textField"},{type:"string",label:"value-field",name:"valueField"},{type:"options",label:"options",name:"options",editor:{fullwidth:!0}}],"value-property":"value"};class d extends i.HTMLOverlayElement{get nature(){return c}buildOptions(){var e,{options:t=[],textField:r,valueField:n,value:i}=this.state;t instanceof Array||(t=[]),this.element.textContent="",t.map&&t.map(((t,i)=>{var a,o;return a=r?"(index)"==r?i:t&&t[r]||String.fromCharCode(160):t&&(t.text||t),o=n?"(index)"==n?i:t&&t[n]:t&&(t.value||t),void 0===e&&(e=o),o==this.value&&(e=this.value),{text:a,value:o}})).forEach((e=>{var t=document.createElement("option");t.value="string"==typeof e.value?e.value:JSON.stringify(e.value),t.text=e.text,this.element.appendChild(t)})),void 0!==e&&this.value!==e&&(this.value=JSON.stringify(e));var a=this.element;a.value!=this.value&&(a.value=this.value,a.dispatchEvent(new Event("change")))}createElement(){super.createElement(),this.buildOptions();var e=this.element;e.value=this.get("value")||"",e.onchange=t=>{this.set("value",e.value)}}setElementProperties(e){var{size:t,name:r}=this.state;e.size=t,e.name=r}onchange(e,t){super.onchange(e,t);var r=this.element;if("value"in e&&r){if(r.value=e.value,r.dispatchEvent(new CustomEvent("change",{detail:e.value})),this.get("copyValueToData"))try{this.data=JSON.parse(e.value)}catch(t){this.data=e.value}this.get("submitOnChange")&&r.form&&r.form.dispatchEvent(new Event("submit",{cancelable:!0}))}"options"in e&&this.buildOptions()}get options(){return this.getState("options")}set options(e){this.setState("options",e)}}i.Component.register("select",d);var h={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"name",name:"name"},{type:"string",label:"value",name:"text"},{type:"string",label:"placeholder",name:"placeholder"},{type:"checkbox",label:"readonly",name:"readonly"},{type:"checkbox",label:"disabled",name:"disabled"},{type:"number",label:"max-length",name:"maxlength"}],"value-property":"text"};class f extends i.HTMLOverlayElement{get nature(){return h}get tagName(){return"textarea"}createElement(){super.createElement();var e=this.element;e.style.resize="none",e.onchange=t=>{this.value=e.value}}setElementProperties(e){var{name:t="",placeholder:r="",disabled:n,readonly:a,maxlength:o}=this.state;try{e.name=t,e.placeholder=r,e.disabled=n,e.readOnly=a,e.maxLength=void 0===o?524288:o,e.value=this.value}catch(e){(0,i.error)(e)}this.data=this.value}}i.Component.register("textarea",f);var p={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"value",name:"text"}],"value-property":"text"};class m extends i.HTMLOverlayElement{get tagName(){return"button"}get nature(){return p}setElementProperties(e){this.element.textContent=this.value}}i.Component.register("button",m);var g={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"name",name:"name"},{type:"string",label:"value",name:"text"},{type:"string",label:"placeholder",name:"placeholder"},{type:"checkbox",label:"readonly",name:"readonly"},{type:"checkbox",label:"disabled",name:"disabled"},{type:"number",label:"max-length",name:"maxlength"},{type:"checkbox",label:"submit-on-change",name:"submitOnChange"},{type:"string",label:"next-input",name:"nextInput"},{type:"checkbox",label:"autofocus",name:"autofocus"},{type:"checkbox",label:"alltime-focus",name:"alltimeFocus"},{type:"number",label:"alltime-focus-pending",name:"alltimeFocusPending",placeholder:"milli-seconds"},{type:"checkbox",label:"hide-keyboard",name:"hideKeyboard"}],"value-property":"text",help:"scene/component/input"};class v extends i.HTMLOverlayElement{get nature(){return g}get tagName(){return"input"}get inputType(){return this.get("type").substr(6)}select(){this.element.select()}createElement(){if(super.createElement(),this.element.onchange=e=>{this.onInputChange(e)},this.app.isViewMode){var{alltimeFocus:e,hideKeyboard:t,alltimeFocusPending:r,autofocus:n}=this.state;this.element.onkeydown=e=>{this.onInputKeydown(e)},e&&this.element.addEventListener("focusout",(e=>{setTimeout((()=>{this.select()}),r&&0!=r?r:1e3)})),t&&this.element.addEventListener("focusin",(e=>{this.element.setAttribute("readonly",""),this.select(),requestAnimationFrame((()=>{this.element.removeAttribute("readonly")}))})),n&&requestAnimationFrame((()=>{this.select()}))}}setElementProperties(e){var{name:t="",placeholder:r="",disabled:n,readonly:a,maxlength:o,autofocus:s}=this.state;try{e.type=this.inputType,e.name=t,e.placeholder=r,e.disabled=n,e.readOnly=a,e.maxLength=void 0===o?524288:o,e.value=this.value,s&&e.setAttribute("autofocus","")}catch(e){(0,i.error)(e)}}onchange(e,t){super.onchange(e,t);var r=this.element,n=this.nature["value-property"];if(n&&n in e&&r){var{submitOnChange:i}=this.state,a=e[n];r.value=a,this.data=e[n],i&&r.form&&r.form.dispatchEvent(new Event("submit",{cancelable:!0}))}}getInputValue(){return this.element.value}onInputChange(e){var{englishOnly:t,selectAfterChange:r}=this.state,n=this.getInputValue();this.value=t?null==n?void 0:n.replace(/[^\x00-\x7F]/g,""):n,r&&requestAnimationFrame((()=>{this.select()}))}onInputKeydown(e){if("Enter"===e.key&&!e.isComposing){e.preventDefault(),this.element.dispatchEvent(new CustomEvent("change"));var{nextInput:t}=this.state;t&&setTimeout((()=>{var e=this.root.findById(t);e&&e.select&&e.select()}),100)}var{englishOnly:r}=this.state,n=this.element;if(r&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&/^Key/.test(e.code)){e.stopPropagation(),e.preventDefault();var i=e.shiftKey?e.code.charAt(3):e.code.charAt(3).toLowerCase(),a=n.value,o=n.selectionStart||0,s=n.selectionEnd||o;n.value=[a.substring(0,o),i,a.substring(s)].join(""),n.setSelectionRange(o+1,o+1)}}}["input-password","input-email","input-search","input-time","input-datetime-local","input-month","input-week"].forEach((e=>i.Component.register(e,v)));var y={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"value",name:"value"},{type:"number",label:"size",name:"size"},{type:"string",label:"name",name:"name"},{type:"checkbox",label:"checked",name:"checked"}],"value-property":"value"};i.Component.register("input-radio",class extends v{get nature(){return y}get tagName(){return"input"}get inputType(){return"radio"}createElement(){if(this.element=document.createElement("label"),this.element){var e=document.createElement("input");this.element.appendChild(e);var t=document.createElement("p");t.style.display="inline",t.innerHTML=this.get("text"),this.element.appendChild(t),this.setElementProperties(this.element),this.parent.isHTMLElement&&this.parent.isHTMLElement()?this.parent.element.appendChild(this.element):this.root.rootModel.overlay.appendChild(this.element),i.Component.reposition(this),this.oncreate_element&&this.oncreate_element(this.element)}}setElementProperties(e){var t=this.element.querySelector("text"),r=this.element.querySelector("input"),{text:n,checked:i,value:a}=this.state;t&&(t.textContent=n),r&&(r.checked=i,r.value=a),super.setElementProperties(r)}postrender(e){this.changeText(e)}changeText(e){this.text&&this.hasTextProperty&&this.element.querySelector("p")&&(this.element.querySelector("p").innerText=this.text)}});var _={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"value",name:"value"},{type:"number",label:"size",name:"size"},{type:"string",label:"name",name:"name"},{type:"checkbox",label:"checked",name:"checked"},{type:"checkbox",label:"submit-on-change",name:"submitOnChange"}],"value-property":"value"};i.Component.register("input-checkbox",class extends v{get nature(){return _}get tagName(){return"input"}get inputType(){return"checkbox"}get hasTextProperty(){return!0}createElement(){if(this.element=document.createElement("label"),this.element){var e=document.createElement("input");this.element.appendChild(e);var t=document.createTextNode(this.get("text"));this.element.appendChild(t),this.setElementProperties(this.element),this.parent.isHTMLElement&&this.parent.isHTMLElement()?this.parent.element.appendChild(this.element):this.root.rootModel.overlay.appendChild(this.element),i.Component.reposition(this),this.oncreate_element&&this.oncreate_element(this.element)}}setElementProperties(e){var t=this.element.querySelector("text"),r=this.element.querySelector("input"),{text:n,checked:i,value:a}=this.state;t&&(t.textContent=n),r&&(r.checked=i,r.value=a),super.setElementProperties(r)}});var b={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"src",name:"src"}],"value-property":"src"};class M extends i.HTMLOverlayElement{get src(){return this.getState("src")}set src(e){this.setState("src",e)}setElementProperties(e){var{src:t=""}=this.state;e.src!=t&&(e.src=t)}get nature(){return b}}i.Component.register("iframe",M);var w={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"src",name:"src"}],"value-property":"src"};class T extends i.HTMLOverlayElement{setElementProperties(e){var{src:t=""}=this.state;e.src!=t&&(e.src=t)}get src(){return this.get("src")}set src(e){this.set("src",e)}get nature(){return w}}i.Component.register("img",T);var L=r(88711),S=r.n(L);function k(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}var x={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"src",name:"src"},{type:"checkbox",label:"started",name:"started"},{type:"checkbox",label:"controls",name:"controls"}],"value-property":"src"};class E extends i.HTMLOverlayElement{oncreate_element(e){var t,r=this;return(t=function*(){var{src:t,started:n}=r.state;e.addEventListener("canplay",(()=>{r.started&&e.play()})),r.onchangesrc(t),r.onchangestarted(n)},function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(e){k(a,n,i,o,s,"next",e)}function s(e){k(a,n,i,o,s,"throw",e)}o(void 0)}))})()}dispose(){this.reset(),super.dispose()}reset(){this._hlsSupporter&&this._hlsSupporter.destroy(),delete this._hlsSupporter}onchange(e,t){super.onchange(e,t),"src"in e&&this.onchangesrc(e.src),"started"in e&&this.onchangestarted(e.started)}setElementProperties(e){var{controls:t}=this.state;t?e.setAttribute("controls",""):e.removeAttribute("controls")}onchangestarted(e){var t=this.element;e?4==t.readyState&&t.play():t.pause()}onchangesrc(e){this.reset();var t=this.element;t&&(t.src=e,e.endsWith(".m3u8")&&S().isSupported()&&(this._hlsSupporter=new(S()),this._hlsSupporter.loadSource(e),this._hlsSupporter.attachMedia(t),this._hlsSupporter.on(S().Events.MANIFEST_PARSED,(()=>{this.started&&t.play()}))))}get src(){return this.getState("src")}set src(e){this.setState("src",e)}get started(){return this.getState("started")}set started(e){this.setState("started",e)}get nature(){return x}}i.Component.register("video",E);var D={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"src",name:"src"},{type:"string",label:"mime-type",name:"mimetype"}],"value-property":"src"};class A extends i.HTMLOverlayElement{get src(){return this.getState("src")}set src(e){this.setState("src",e)}setElementProperties(e){var{src:t="",mimetype:r=""}=this.state;e.src!=t&&(e.src=t),e.type!=r&&(e.type=r)}get nature(){return D}}i.Component.register("embed",A);var O={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"href",name:"href",property:"href"},{type:"select",label:"target",name:"target",property:{options:[{display:"self",value:"_self"},{display:"blank",value:"_blank"},{display:"parent",value:"_parent"},{display:"top",value:"_top"}]}}],"value-property":"href"};class P extends i.HTMLOverlayContainer{get tagName(){return"a"}get href(){return this.get("href")}set href(e){this.set("href",e)}setElementProperties(e){var{href:t="",target:r}=this.state;e.href!=t&&(e.href=t),e.target=r,0==this.components.length&&(this.element.textContent=this.text||t)}get nature(){return O}}i.Component.register("link",P);var R={mutable:!1,resizable:!0,rotatable:!0};class I extends i.HTMLOverlayContainer{setElementProperties(e){e.textContent=this.text}get tagName(){return"div"}get nature(){return R}}i.Component.register("div",I);var Y={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"name",name:"name"},{type:"string",label:"value",name:"text"},{type:"string",label:"placeholder",name:"placeholder"},{type:"checkbox",label:"readonly",name:"readonly"},{type:"checkbox",label:"disabled",name:"disabled"},{type:"number",label:"max-length",name:"maxlength"},{type:"checkbox",label:"submit-on-change",name:"submitOnChange"},{type:"string",label:"next-input",name:"nextInput"},{type:"checkbox",label:"autofocus",name:"autofocus"},{type:"checkbox",label:"alltime-focus",name:"alltimeFocus"},{type:"number",label:"alltime-focus-pending",name:"alltimeFocusPending",placeholder:"milli-seconds"},{type:"checkbox",label:"hide-keyboard",name:"hideKeyboard"},{type:"checkbox",label:"english-only",name:"englishOnly"},{type:"checkbox",label:"select-after-change",name:"selectAfterChange"}],"value-property":"text",help:"scene/component/input"};class C extends v{get nature(){return Y}}["input-text"].forEach((e=>i.Component.register(e,C)));var F={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"name",name:"name"},{type:"number",label:"value",name:"text"},{type:"number",label:"min",name:"min"},{type:"number",label:"max",name:"max"},{type:"number",label:"step",name:"step"},{type:"string",label:"placeholder",name:"placeholder"},{type:"checkbox",label:"readonly",name:"readonly"},{type:"checkbox",label:"disabled",name:"disabled"},{type:"string",label:"next-input",name:"nextInput"},{type:"checkbox",label:"autofocus",name:"autofocus"},{type:"checkbox",label:"alltime-focus",name:"alltimeFocus"},{type:"number",label:"alltime-focus-pending",name:"alltimeFocusPending",placeholder:"milli-seconds"},{type:"checkbox",label:"submit-on-change",name:"submitOnChange"},{type:"checkbox",label:"hide-keyboard",name:"hideKeyboard"},{type:"checkbox",label:"select-after-change",name:"selectAfterChange"}],"value-property":"text"};class N extends v{get nature(){return F}setElementProperties(e){super.setElementProperties(e);var{min:t=0,max:r=100,step:n=1}=this.state;e.min=t,e.max=r,e.step=n}getInputValue(){return this.element.valueAsNumber}get text(){return this.getState("text")}set text(e){this.setState("text",e)}}i.Component.register("input-number",N),i.Component.register("input-range",N);var j={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"name",name:"name"},{type:"date",label:"value",name:"text"},{type:"date",label:"min",name:"min"},{type:"date",label:"max",name:"max"},{type:"checkbox",label:"submit-on-change",name:"submitOnChange"}],"value-property":"text"};i.Component.register("input-date",class extends v{get nature(){return j}setElementProperties(e){super.setElementProperties(e);var{min:t,max:r}=this.state;e.min=t,e.max=r}});var H={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"name",name:"name"},{type:"string",label:"value",name:"text"},{type:"checkbox",label:"multiple",name:"multiple"}],"value-property":"text"};i.Component.register("input-file",class extends v{get nature(){return H}setElementProperties(e){super.setElementProperties(e),e.multiple=!!this.state.multiple}});var B=r(93681),U={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"name",name:"name"},{type:"color",label:"value",name:"text",property:{withoutAlpha:!0,valueType:"hex"}},{type:"checkbox",label:"submit-on-change",name:"submitOnChange"}],"value-property":"text"};i.Component.register("input-color",class extends v{get nature(){return U}setElementProperties(e){this.value=(0,B.HA)(this.value||"#000000",{}).toHexString(!1),super.setElementProperties(e)}});var W={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"name",name:"name"},{type:"string",label:"value",name:"text"}],"value-property":"text"};class z extends v{get nature(){return W}setElementProperties(e){super.setElementProperties(e)}}i.Component.register("input-button",z),i.Component.register("input-submit",z),i.Component.register("input-reset",z);var G={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"checkbox",label:"submit-on-change",name:"submitOnChange"},{type:"checkbox",label:"copy-value-to-data",name:"copyValueToData"}],"value-property":"value"};class V extends i.HTMLOverlayContainer{get nature(){return G}get tagName(){return"div"}containable(e){return"input-radio"==e.model.type}setElementProperties(e){}oncreate_element(e){e.onchange=()=>{this.changeChecked()},requestAnimationFrame((()=>{var{id:t}=this.state;Array.prototype.slice.call(e.querySelectorAll('input[type="radio"]')).forEach((e=>e.setAttribute("name",t)))}))}onchange(e,t){super.onchange(e,t);var r=this.element;if("value"in e&&r){if(this.updateChecked(),this.get("copyValueToData"))try{this.data=JSON.parse(e.value)}catch(t){this.data=e.value}this.get("submitOnChange")&&"FORM"==r.parentElement.tagName&&r.parentElement.dispatchEvent(new Event("submit",{cancelable:!0}))}}changeChecked(){var{id:e}=this.state,t=this.element.querySelector('input[name="'.concat(e,'"]:checked'));t&&this.set("value",t.value)}updateChecked(){var{id:e,value:t}=this.state,r=this.element.querySelector('input[name="'.concat(e,'"][value="').concat(t,'"]:not(:checked)'));r&&(r.checked=!0)}}i.Component.register("radio-group",V);var K={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"textarea",label:"template",name:"template"},{type:"string",label:"apply-to",name:"applyTo"}]},q={type:"pattern",fitPattern:!0,image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAMFBMVEUAAAAdHR0AAAAAAAAAAAAREREODg4AAAATExMAAAAAAAAAAAAAAAAAAAAWFhYAAABtUS6TAAAAD3RSTlMArnboZDwVtVUHmMTU9CygGbkuAAABBklEQVR42u3Vy47DMAgFUMbE78f9/7+dqpVKFNUzwKqLnD0RvjGYbrdvF8tK9JBWieTRAO6tdQYyeWS8DfIYeONEdmlCLE+GOClkV3ASyC7gpPn+ouiODAdOeJkjHMAZF2OCE1eHK0BfkLXho5yU8XVsjKWKj7E1iya/44kvpcdLJa3LOdg3zIIr2fg7qEd4umYQXpJqiPZyVbQwsMXJtoq889CwkUknMT6ai5QOfBRcb4oY1fMmiBnV1TFk+YDooST6T30UM7a4h5hoS4r/wjnEusleLeiusPFKFwhXCx0GXHUjZBmrDJNRfQ2IYthDYv/grwmrqG1AtV0ShKuF+ONQ6Hb7Hr9EkkNRgwrYbAAAAABJRU5ErkJggg=="};class $ extends i.HTMLOverlayContainer{createElement(){super.createElement();var e=this.element;e.value=this.get("value")||"",e.onchange=t=>{this.set("value",e.value)}}dispose(){super.dispose(),this.targets&&this.targets.forEach((e=>e.shadowRoot.innerHTML="<slot></slot>")),delete this.targets}setElementProperties(e){e.innerHTML=this.state.template}reposition(){super.reposition();var e=this.targets||[],t=this.rootModel&&Array.prototype.slice.call(this.rootModel.overlay.querySelectorAll(this.state.applyTo));t&&t.forEach((t=>{try{!t.shadowRoot&&t.attachShadow({mode:"open"}),t.shadowRoot.innerHTML=this.state.template}catch(e){(0,i.error)(e)}var r=e.indexOf(t);r>=0&&e.splice(r,1)})),e.forEach((e=>e.shadowRoot.innerHTML="<slot></slot>")),this.targets=t}get tagName(){return"template"}get fillStyle(){return q}get nature(){return K}}i.Component.register("template",$)},85391:(e,t,r)=>{"use strict";var n=r(83305),i=[{type:"string",label:"value",name:"value",property:"value"},{type:"number",label:"start-value",name:"startValue",observe:function(e){this.parentNode.querySelector("[name=colorStops]").property.min=e},property:"startValue"},{type:"number",label:"end-value",name:"endValue",observe:function(e){this.parentNode.querySelector("[name=colorStops]").property.max=e},property:"endValue"},{type:"number",label:"step",name:"step",property:"step"},{type:"number",label:"step-text-size",name:"stepTextSize",property:"stepTextSize"},{type:"number",label:"sub-step",name:"subStep",property:"subStep"},{type:"number",label:"step-needle-size",name:"stepNeedleSize",property:"stepNeedleSize"},{type:"color",label:"step-fill-style",name:"stepFillStyle",property:"stepFillStyle"},{type:"solid-color-stops",label:"color-stops",name:"colorStops",property:{min:0,max:100}},{type:"legend",label:"",name:"toggleOption",property:{label:"Toggle Option"}},{type:"checkbox",label:"show-start-value",name:"showStartValue",property:"showStartValue"},{type:"checkbox",label:"show-end-value",name:"showEndValue",property:"showEndValue"},{type:"checkbox",label:"show-step-line",name:"showStepLine",property:"showStepLine"},{type:"checkbox",label:"show-step-text",name:"showStepText",property:"showStepText"},{type:"checkbox",label:"show-sub-step",name:"showSubStep",property:"showSubStep"},{type:"checkbox",label:"anim-from-base",name:"animFromBase"}],a={mutable:!1,resizable:!0,rotatable:!0,properties:[...i,{type:"number",label:"start-angle",name:"startAngle",property:"startAngle"},{type:"number",label:"end-angle",name:"endAngle",property:"endAngle"},{type:"color",label:"text-fill-style",name:"textFillStyle",property:"textFillStyle"},{type:"color",label:"needle-fill-style",name:"needleFillStyle",property:"needleFillStyle"},{type:"color",label:"inner-circle-fill-style",name:"innerCircleFillStyle",property:"innerCircleFillStyle"},{type:"checkbox",label:"in-text",name:"inText",property:"inText"}],help:"scene/component/gauge-circle"};function o(e,t,r,n){e.rotate(t),e.translate(0,-r),e.fillRect(0,.14*-r,n,.175*r),e.translate(0,r),e.rotate(-t)}function s(e,t,r,n){e.rotate(t),e.translate(0,-r),e.fillRect(0,.04*-r,n,.075*r),e.translate(0,r),e.rotate(-t)}function l(e,t,r,n){e.rotate(r),e.translate(0,.83*-n),e.rotate(-r),e.fillText(t,0,0),e.rotate(r),e.translate(0,.83*n),e.rotate(-r)}class u extends((0,n.ValueHolder)(n.Donut)){_draw(e){var{lineWidth:t=20,startValue:r,endValue:n,step:i,subStep:a,startAngle:u=0,endAngle:c=180,fontColor:d="black",showStepText:h=!0,showStartValue:f=!0,showEndValue:p=!0,showStepLine:m=!0,showSubStep:g=!0,inText:v=!0,colorStops:y,fillStyle:_,textFillStyle:b="black",needleFillStyle:M="black",innerCircleFillStyle:w="gray",stepNeedleSize:T=2,stepFillStyle:L,stepTextSize:S,cx:k,cy:x,rx:E,ry:D,ratio:A,animFromBase:O=!1}=this.state;r=Number(r),this.animOnValueChange(this.value,O,r);var P=.0174533/Math.PI,R=E/100*A,I=D/100*A,Y=(c-u)/180,C=n-r;if(u=u*P-.5,c=c*P-.5,e.translate(k,x),e.beginPath(),e.ellipse(0,0,Math.abs(E),Math.abs(D),0,u*Math.PI,c*Math.PI),this.drawStroke(e),e.ellipse(0,0,Math.abs(R),Math.abs(I),0,c*Math.PI,u*Math.PI,!0),e.closePath(),y){var F=0,N=0;e.moveTo(0,0),y.forEach((function(t,n,i){e.beginPath();var a=Math.max(Math.min(t.position-r,C),0),o=N||Math.PI*(u+Y*F/C);if(N=n===i.length-1?Math.PI*(u+Y):Math.PI*(u+Y*a/C),F>C||F>a)return!1;e.ellipse(0,0,Math.abs(E),Math.abs(D),0,o,N),e.ellipse(0,0,Math.abs(R),Math.abs(I),0,N,o,!0),e.fillStyle=t.color,e.fill(),F=a}))}e.scale(1,D/E),e.beginPath();var j=this.animValue;j=Math.max(Math.min(j,n),r);var H=Math.PI*(Y*(j-r)/C+u-.5);if(function(e,t,r){e.rotate(r),e.beginPath(),e.moveTo(.035*t,0),e.lineTo(0,.8*t),e.lineTo(.035*-t,0),e.lineTo(.015*-t,.2*-t),e.lineTo(.015*t,.2*-t),e.rotate(-r)}(e,E,H),e.fillStyle=M,e.fill(),e.beginPath(),e.ellipse(0,0,Math.abs(E)/15,Math.abs(E)/15,0,0,2*Math.PI),e.fillStyle=w,e.fill(),e.fillStyle=L,m){var B=C/i;o(e,Math.PI*(u+.5),.8*E,T);for(var U=1;U<B;U++){var W=Math.PI*(Y/B*U+u+.5);o(e,W,.8*E,T)}o(e,Math.PI*(c+.5),.8*E,T)}if(g)for(var z=C,G=1;G<=z;G++)if(G%i!=0&&G%a==0){var V=Math.PI*(Y/z*G+u+.5);s(e,V,.8*E,T)}e.fillStyle=b,e.font=E*S/50+"px arial",e.textBaseline="middle",e.textAlign="center";var K=v?.8:1.35;if(f&&l(e,r,Math.PI*(u+.5),E*K),p&&l(e,n,Math.PI*(c+.5),E*K),h)for(var q=C/i,$=1;$<q;$++){var J=r+i*$,X=Math.PI*(Y/q*$+u+.5);l(e,J,X,E*K)}e.scale(1,E/D),e.translate(-k,-x)}contains(e,t){var{cx:r,cy:n,rx:i,ry:a}=this.state,o=(e-r)/(2*i-.5),s=(t-n)/(2*a-.5);return o*o+s*s<.25}_post_draw(e){this.drawText(e)}get nature(){return a}}n.Component.register("gauge-circle",u);var c={mutable:!1,resizable:!0,rotatable:!0,properties:[...i,{type:"color",label:"text-fill-style",name:"textFillStyle",property:"textFillStyle"},{type:"color",label:"needle-fill-style",name:"needleFillStyle",property:"needleFillStyle"},{type:"number",label:"needle-size",name:"needleSize",property:"needleSize"}],help:"scene/component/gauge-vertical"};class d extends((0,n.ValueHolder)((0,n.RectPath)(n.Shape))){_draw(e){var{startValue:t,endValue:r,step:n,subStep:i,colorStops:a,needleFillStyle:o,stepFillStyle:s,textFillStyle:l,needleSize:u,stepNeedleSize:c,stepTextSize:d,showStepText:h=!0,showStartValue:f=!0,showEndValue:p=!0,showStepLine:m=!0,showSubStep:g=!0,width:v,height:y,top:_,left:b,animFromBase:M=!1}=this.state;t=Number(t),this.animOnValueChange(this.value,M,t);var w=r-t;if(e.translate(b,_),e.beginPath(),e.rect(0,0,v,y),this.drawFill(e),this.drawStroke(e),e.closePath(),a){var T=0;a.forEach((function(r,n,i){e.beginPath();var a,o=Math.max(Math.min(r.position-t,w),0),s=y*T/w;if(a=n===i.length-1||s+y*o/w?y-s:y-y*o/w,T>w||T>o)return!1;e.rect(0,y-s,v,-a),e.fillStyle=r.color,e.fill(),T=o}))}e.beginPath();var L=this.animValue;L=Math.max(Math.min(L,r),t);var S=y-(L-t)/w*y;if(u*=4,e.moveTo(1.05*v,S),e.lineTo(1.05*v+u,S+u/2),e.lineTo(1.05*v+u,S-u/2),e.fillStyle=o,e.fill(),e.closePath(),e.fillStyle=s,m){var k=w/n;e.fillRect(0,y,.06*y,c);for(var x=1;x<k;x++){var E=y/k*x;e.fillRect(0,E,.06*y,c)}e.fillRect(0,0,.06*y,c)}if(g){var D=w;e.fillRect(0,0,.027*y,c);for(var A=1;A<=D;A++)if(A%n!=0&&A%i==0){var O=y/D*A;e.fillRect(0,O,.027*y,c)}}var P=y*d/150;if(e.fillStyle=l,e.font=P+"px arial",e.textBaseline="middle",e.textAlign="center",f&&e.fillText(t,-P,y),p&&e.fillText(r,-P,0),h)for(var R=w/n,I=1;I<R;I++){var Y=t+Number(n)*I,C=y-y/R*I;e.fillText(Y,-P,C)}e.translate(-b,-_)}_post_draw(e){this.drawText(e)}get nature(){return c}}n.Component.register("gauge-vertical",d);var h={mutable:!1,resizable:!0,rotatable:!0,properties:[...i,{type:"color",label:"text-fill-style",name:"textFillStyle",property:"textFillStyle"},{type:"color",label:"needle-fill-style",name:"needleFillStyle",property:"needleFillStyle"},{type:"number",label:"needle-size",name:"needleSize",property:"needleSize"}],help:"scene/component/gauge-horizon"};class f extends((0,n.ValueHolder)((0,n.RectPath)(n.Shape))){_draw(e){var{startValue:t,endValue:r,step:n,subStep:i,colorStops:a,needleFillStyle:o,stepFillStyle:s,textFillStyle:l,needleSize:u,stepNeedleSize:c,stepTextSize:d,showStepText:h=!0,showStartValue:f=!0,showEndValue:p=!0,showStepLine:m=!0,showSubStep:g=!0,width:v,height:y,top:_,left:b,animFromBase:M=!1}=this.state;t=Number(t),this.animOnValueChange(this.value,M,t);var w=r-t;if(e.translate(b,_),e.beginPath(),e.rect(0,0,v,y),this.drawFill(e),this.drawStroke(e),e.closePath(),a){var T=0;a.forEach((function(r,n,i){e.beginPath();var a,o=Math.max(Math.min(r.position-t,w),0),s=v*T/w;if(a=n==i.length-1||s+v*o/w?v-s:v*o/w,T>w||T>o)return!1;e.rect(s,0,a,y),e.fillStyle=r.color,e.fill(),T=o}))}if(e.fillStyle=s,m){var L=w/n,S=.06*v;e.fillRect(0,y-S,c,S);for(var k=1;k<L;k++){var x=v/L*k;e.fillRect(x,y-S,c,S)}e.fillRect(v,y-S,c,S)}if(g){var E=w,D=.027*v;e.fillRect(0,y-D,c,D);for(var A=1;A<=E;A++)if(A%n!=0&&A%i==0){var O=v/E*A;e.fillRect(O,y-D,c,D)}}var P=v*d/150;if(e.fillStyle=l,e.font=P+"px arial",e.textBaseline="middle",e.textAlign="center",f&&e.fillText(t,0,y+.75*P),p&&e.fillText(r,v,y+.75*P),h)for(var R=w/n,I=1;I<R;I++){var Y=t+n*I,C=v/R*I;e.fillText(Y,C,y+.75*P)}e.beginPath();var F=this.animValue,N=((F=Math.max(Math.min(F,r),t))-t)/w*v;u*=4,e.moveTo(N,y+1.4*P),e.lineTo(N+u/2,y+u+1.4*P),e.lineTo(N-u/2,y+u+1.4*P),e.fillStyle=o,e.fill(),e.closePath(),e.translate(-b,-_)}_post_draw(e){this.drawText(e)}get nature(){return h}}n.Component.register("gauge-horizon",f)},50311:(e,t,r)=>{"use strict";var n=r(83305),i={ondragmove:function(e,t,r){var{left:n,width:i,height:o}=r.bounds,s=(r.transcoordP2S(e.x,e.y).x-n)/(i/2)*100;s=a(s,i,o),r.set({round:s})}};function a(e,t,r){var n=t>r?r/t*100:100;return e>=n?e=n:e<=0&&(e=0),e}class o extends n.Rect{is3dish(){return!1}_draw(e){var{top:t,left:r,width:n,height:i}=this.bounds,o=this.state.round;if(e.beginPath(),(o=a(o,n,i))>0){var s=o/100*(n/2);e.moveTo(r+s,t),e.lineTo(r+n-s,t),e.quadraticCurveTo(r+n,t,r+n,t+s),e.lineTo(r+n,t+i),e.lineTo(r,t+i),e.lineTo(r,t+s),e.quadraticCurveTo(r,t,r+s,t)}else e.rect(r,t,n,i);this.drawFill(e),this.drawStroke(e)}get controls(){var{top:e,left:t,width:r,height:n}=this.bounds,o=this.state.round;return[{x:t+r/2*((o=null==o?0:a(o,r,n))/100),y:e,handler:i}]}}n.Component.register("half-roundrect",o)},9175:(e,t,r)=>{"use strict";var n=r(83305),i={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"action",label:"remove",name:"remove",property:{icon:"remove_circle",action:function(e){var t=e.parent;t.removeComponent(e),t.set("activeIndex",0)}}}]};class a extends n.Container{get hasTextProperty(){return!1}get showMoveHandle(){return!1}get mutable(){return!1}get resizable(){return!1}get rotatable(){return!1}get nature(){return i}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}n.Component.register("floor",a);var u=25,c={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"action",label:"add-floor",name:"addFloor",property:{icon:"add_circle",action:e=>{e.addFloor()}}},{type:"number",label:"active index",name:"activeIndex"}],"value-property":"activeIndex",help:"scene/component/indoor-map"};class d extends n.Container{constructor(){super(...arguments),this._focused=!1}get nature(){return c}get layout(){return n.CardLayout}get layoutConfig(){return this.get("layoutConfig")}set layoutConfig(e){this.set("layoutConfig",e)}get activeFloor(){return this.components[this.get("layoutConfig").activeIndex]}get activeIndex(){return this.get("activeIndex")}set activeIndex(e){this.set("activeIndex",Number(e))}ready(){super.ready(),0==this.components.length&&this.addFloor()}postrender(e){if(!this.app.isViewMode&&this._focused){for(var{left:t,top:r,width:n,fillStyle:i}=this.state,a=0;a<this.components.length;a++){e.beginPath(),e.rect(t-u,r+25*a,u,25);var o=255-20*(a+1)%255;e.fillStyle=(s=o,l=o,1,"rgba(".concat(o,", ").concat(s,", ").concat(l,", ").concat(1,")")),e.fill(),e.closePath()}e.beginPath(),e.moveTo(t,r),e.lineTo(t-u,r),e.lineTo(t-u,r+25*this.components.length),e.lineTo(t,r+25*this.components.length),e.strokeStyle="#ccc",e.stroke(),e.closePath()}var s,l;super.postrender(e)}contains(e,t){var r=super.contains(e,t);if(this.app.isViewMode)return r;var{left:n,top:i,width:a}=this.bounds;return r=r||e<Math.max(n-u,n)&&e>Math.min(n-u,n)&&t<Math.max(i+25*this.size(),i)&&t>Math.min(i+25*this.size(),i),this._focused=!!r,this.invalidate(),r}onchange(e){"activeIndex"in e&&(this.layoutConfig=s(s({},this.layoutConfig),{},{activeIndex:e.activeIndex}))}onmouseup(e){var t=this.__down_point;if(delete this.__down_point,t&&t.x==e.offsetX&&t.y==e.offsetY){var r=this.transcoordC2S(e.offsetX,e.offsetY),{left:n,top:i}=this.state,a=r.x-n,o=r.y-i;a>0||(o/=25,o=Math.floor(o),this.layoutConfig||(this.layoutConfig={}),o>=this.components.length||this.set("activeIndex",o))}}onmousedown(e){this.__down_point={x:e.offsetX,y:e.offsetY}}addFloor(){var e=(255-20*(this.components.length+1)%255).toString(16),t=n.Model.compile({type:"floor",fillStyle:"#".concat(e).concat(e).concat(e),top:0,left:0,width:100,height:100});this.addComponent(t),this.set("activeIndex",this.components.length-1)}}n.Component.register("indoor-map",d);var h={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"number",label:"depth",name:"depth",property:"depth"},{type:"number",label:"shelves",name:"shelves",property:"shelves"},{type:"string",label:"location-pattern",name:"locPattern",placeholder:"{z}{s}-{u}-{sh}",property:"locPattern"},{type:"string",label:"zone",name:"zone",property:"zone"},{type:"string",label:"section",name:"section",property:"section"},{type:"string",label:"unit",name:"unit",property:"unit"},{type:"string",label:"shelf-pattern",name:"shelfPattern",placeholder:"#",property:"shelfPattern"}],help:"scene/component/rack"};class f extends((0,n.RectPath)(n.Component)){is3dish(){return!0}draw(e){var{left:t,top:r,width:n,height:i,strokeStyle:a,lineWidth:o,fillStyle:s,alpha:l=1}=this.state;e.beginPath(),e.rect(t,r,n,i),e.strokeStyle=a,e.lineWidth=o,e.globalAlpha=.4*l,e.stroke(),e.beginPath(),e.rect(t+.15*n,r+.15*i,.7*n,.7*i),e.fillStyle=s,e.globalAlpha=.5*l,e.fill(),e.beginPath(),e.moveTo(t,r),e.lineTo(t+n,r+i),e.moveTo(t,r+i),e.lineTo(t+n,r),e.strokeStyle=a,e.lineWidth=o,e.globalAlpha=.4*l,e.stroke()}get nature(){return h}get hasTextProperty(){return!1}}n.Component.register("rack",f)},25551:(e,t,r)=>{"use strict";var n,i,a,o=r(171),s=r(94430),l=r(56765);function u(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var c,d,h,f=class extends s.oi{constructor(){super(...arguments),this.isReverse=!1,this.duration=3e4,this.textData=""}get currentAnimation(){return this._anim}set currentAnimation(e){this._anim=e}get textLines(){return this.textData.split("\n")}render(){return(0,s.dy)(n||(n=u(['\n <div class="ticker-wrap">\n <div class="ticker">',"</div>\n </div>\n "])),this.textLines.map((e=>(0,s.dy)(i||(i=u([' <div class="ticker__item">',"</div> "])),e))))}updated(e){(e.has("textData")||e.has("duration")||e.has("isReverse")||e.has("isTextOverflowed"))&&(this.style.setProperty("--ox-news-ticker-wrapper-padding-left",this.isTextOverflowed?"100%":"0"),this.style.setProperty("--ox-news-ticker-container-padding-right",this.isTextOverflowed?"100%":"0"),this.startAnimation())}startAnimation(){this.stopAnimation(),this.isTextOverflowed&&(this.currentAnimation=this.animationTargetEl.animate([{transform:"translate3d(0, 0, 0)",visibility:"hidden"},{transform:"translate3d(-100%, 0, 0)",visibility:"visible"}],{duration:this.duration,iterations:1/0,direction:this.isReverse?"reverse":"normal"}))}stopAnimation(){this.currentAnimation&&this.currentAnimation.cancel()}};function p(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}f.styles=[(0,s.iv)(a||(a=u(["\n :host * {\n box-sizing: border-box;\n }\n\n :host .ticker-wrap {\n position: absolute;\n bottom: 0;\n width: 100%;\n overflow: hidden;\n height: 100%;\n background-color: rgba(#000, 0.9);\n padding-left: var(--ox-news-ticker-wrapper-padding-left);\n box-sizing: content-box;\n font-family: var(--ox-news-ticker-font-family);\n }\n\n :host .ticker-wrap .ticker {\n display: inline-block;\n min-width: 100%;\n text-align: var(--ox-news-ticker-text-align);\n height: 4rem;\n line-height: 4rem;\n white-space: nowrap;\n padding-right: var(--ox-news-ticker-container-padding-right);\n box-sizing: content-box;\n }\n\n :host .ticker-wrap .ticker__item {\n display: inline-block;\n font-size: var(--ox-news-ticker-font-size);\n color: var(--ox-news-ticker-font-color);\n }\n\n :host body {\n padding-bottom: 5rem;\n }\n :host h1,\n :host h2,\n :host p {\n padding: 0 5%;\n }\n "])))],(0,o.gn)([(0,l.Cb)({type:Boolean})],f.prototype,"isReverse",void 0),(0,o.gn)([(0,l.Cb)({type:Boolean})],f.prototype,"isTextOverflowed",void 0),(0,o.gn)([(0,l.Cb)({type:Number})],f.prototype,"duration",void 0),(0,o.gn)([(0,l.Cb)({type:String})],f.prototype,"textData",void 0),(0,o.gn)([(0,l.IO)(".ticker-wrap .ticker")],f.prototype,"animationTargetEl",void 0),f=(0,o.gn)([(0,l.Mo)("ox-news-ticker-horizontal")],f),r(72866);var m,g,v,y="cubic-bezier(1, 0, 0.5, 0)",_=class extends s.oi{constructor(){super(...arguments),this.isReverse=!1,this.duration=3e4,this.textData=""}get currentAnimation(){return this._anim}set currentAnimation(e){this._anim=e}get textLines(){return this.textData.split("\n")}render(){return(0,s.dy)(c||(c=p(['\n <div id="news_ticker">\n <ul>\n ',"\n </ul>\n </div>\n "])),this.textLines.map((e=>(0,s.dy)(d||(d=p([' <li><a href="#">',"</a></li> "])),e))))}updated(e){(e.has("textData")||e.has("duration")||e.has("isReverse"))&&this.startAnimation()}startAnimation(){this.stopAnimation();var e=this.createAnimationFrames();this.currentAnimation=this.animationTargetEl.animate(e,{duration:this.textLines.length*this.duration,iterations:1/0,direction:this.isReverse?"reverse":"normal"})}stopAnimation(){this.currentAnimation&&this.currentAnimation.cancel()}createAnimationFrames(){var e=this.textLines.length,t=this.textLines.map(((t,r)=>({transform:"translateY(".concat(-r/e*100,"%)"),offset:1/e*r,easing:y})));return t.push({transform:"translateY(0)",offset:1,easing:y}),t}};function b(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}_.styles=[(0,s.iv)(h||(h=p(["\n :host {\n display: block;\n overflow: hidden;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n }\n\n ul {\n margin: 0;\n padding: 0;\n list-style: none;\n white-space: nowrap;\n }\n\n #news_ticker {\n width: 100%;\n height: 100%;\n overflow: hidden;\n position: relative;\n }\n\n li {\n display: flex;\n height: 100%;\n align-items: center;\n overflow: hidden;\n text-align: var(--ox-news-ticker-text-align, left);\n }\n\n #news_ticker a {\n width: 100%;\n line-height: normal;\n color: var(--ox-news-ticker-font-color, black);\n text-decoration: none;\n font-size: var(--ox-news-ticker-font-size, 13px);\n }\n "])))],(0,o.gn)([(0,l.Cb)({type:Boolean})],_.prototype,"isReverse",void 0),(0,o.gn)([(0,l.Cb)({type:Number})],_.prototype,"duration",void 0),(0,o.gn)([(0,l.Cb)({type:String})],_.prototype,"textData",void 0),(0,o.gn)([(0,l.IO)("#news_ticker > ul")],_.prototype,"animationTargetEl",void 0),_=(0,o.gn)([(0,l.Mo)("ox-news-ticker-vertical")],_);var M=class extends s.oi{constructor(){super(...arguments),this.textData="",this.fontFamily="",this.fontColor="",this.fontSize="",this.textAlign="",this.isReverse=!1,this.isTextOverflowed=!1,this.duration=3e4}render(){return(0,s.dy)(m||(m=b(["\n ","\n "])),"vertical"==this.direction?(0,s.dy)(g||(g=b(["\n <ox-news-ticker-vertical\n .duration=","\n .isReverse=","\n .isTextOverflowed=","\n .textData=","\n ></ox-news-ticker-vertical>\n "])),this.duration,this.isReverse,this.isTextOverflowed,this.textData):(0,s.dy)(v||(v=b(["\n <ox-news-ticker-horizontal\n .duration=","\n .isReverse=","\n .isTextOverflowed=","\n .textData=","\n ></ox-news-ticker-horizontal>\n "])),this.duration,this.isReverse,this.isTextOverflowed,this.textData))}updated(){this.style.setProperty("--ox-news-ticker-font-family",this.fontFamily),this.style.setProperty("--ox-news-ticker-font-size",this.fontSize),this.style.setProperty("--ox-news-ticker-font-color",this.fontColor),this.style.setProperty("--ox-news-ticker-text-align",this.textAlign)}};(0,o.gn)([(0,l.Cb)({type:String})],M.prototype,"textData",void 0),(0,o.gn)([(0,l.Cb)({type:String})],M.prototype,"fontFamily",void 0),(0,o.gn)([(0,l.Cb)({type:String})],M.prototype,"fontColor",void 0),(0,o.gn)([(0,l.Cb)({type:String})],M.prototype,"fontSize",void 0),(0,o.gn)([(0,l.Cb)({type:String})],M.prototype,"textAlign",void 0),(0,o.gn)([(0,l.Cb)({type:Boolean})],M.prototype,"isReverse",void 0),(0,o.gn)([(0,l.Cb)({type:Boolean})],M.prototype,"isTextOverflowed",void 0),(0,o.gn)([(0,l.Cb)({type:String})],M.prototype,"direction",void 0),(0,o.gn)([(0,l.Cb)({type:Number})],M.prototype,"duration",void 0),M=(0,o.gn)([(0,l.Mo)("ox-news-ticker")],M);var w=r(83305),T={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"select",label:"direction",name:"direction",property:{options:[{display:"horizontal",value:"horizontal"},{display:"vertical",value:"vertical"}]}},{type:"checkbox",label:"reverse",name:"reverse"},{type:"number",label:"duration",name:"duration",placeholder:"seconds"}],help:"scene/component/news-ticker"};class L extends w.HTMLOverlayElement{get nature(){return T}get hasTextProperty(){return!0}get tagName(){return"ox-news-ticker"}createElement(){super.createElement(),this.setState("text","#{data}"),this.element.style.overflow="hidden"}setElementProperties(e){try{var{direction:t="horizontal",reverse:r,textAlign:n,fontColor:i="black",fontSize:a=13,font:o,duration:s=30}=this.state,l=this.text,u=r,c=this.isTextOverflowed,d=e;d.direction=t,d.duration=1e3*s,d.fontColor=i,d.fontFamily=o,d.fontSize="".concat(a,"px"),d.textAlign=n,d.isReverse=u,d.isTextOverflowed=c,d.textData=l}catch(e){(0,w.error)(e)}}get isTextOverflowed(){var{width:e}=this.bounds,t=document.createElement("span");t.style.font=this.font,t.style.position="fixed",t.style.left="-100%",t.style.visibility="none",t.textContent=this.text,document.body.appendChild(t);var r=e<t.getBoundingClientRect().width;return document.body.removeChild(t),r}}w.Component.register("news-ticker",L)},56852:(e,t,r)=>{"use strict";var n=r(83305),i={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"value",name:"value"},{type:"number",label:"start-angle",name:"startAngle"},{type:"number",label:"end-angle",name:"endAngle"},{type:"color",label:"blank-stroke-style",name:"blankStrokeStyle"},{type:"checkbox",label:"packman-style",name:"packmanStyle"},{type:"checkbox",label:"anim-from-base",name:"animFromBase"}],help:"scene/component/progress-circle"};class a extends((0,n.ValueHolder)(n.Ellipse)){_draw(e){var{startAngle:t=0,endAngle:r=360,lineWidth:n=20,blankStrokeStyle:i,cx:a,cy:o,rx:s,ry:l,packmanStyle:u=!1,animFromBase:c=!1}=this.state;this.animOnValueChange(this.value,c,0);var d=.0174533/Math.PI;e.beginPath(),this.drawStroke(e);var h=(t-90)*d*Math.PI,f=(r-90)*d*Math.PI;e.strokeStyle=i,e.ellipse(a,o,Math.abs(s),Math.abs(l),0,h,f),e.lineWidth=n,e.stroke();var p=Math.min(Math.max(this.animValue/100,0),100);e.beginPath(),u?(e.ellipse(a,o,Math.abs(s),Math.abs(l),0,h,h+(f-h)*p),e.lineTo(a,o)):e.ellipse(a,o,Math.abs(s),Math.abs(l),0,h,f),this.drawFill(e),e.closePath(),e.beginPath(),e.ellipse(a,o,Math.abs(s),Math.abs(l),0,h,h+(f-h)*p),this.drawStroke(e)}_post_draw(e){this.drawText(e)}get nature(){return i}}n.Component.register("progress-circle",a);var o={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"value",name:"value",property:"value"},{type:"color",label:"background-color",name:"backgroundColor",property:"backgroundColor"},{type:"checkbox",label:"anim-from-base",name:"animFromBase"}],help:"scene/component/progress-vertical"};class s extends((0,n.ValueHolder)((0,n.RectPath)(n.Shape))){_draw(e){var{top:t,left:r,height:n,width:i,backgroundColor:a="transparent",animFromBase:o=!1}=this.state;this.animOnValueChange(this.value,o,0),e.beginPath(),e.rect(r,t,i,n),e.fillStyle=a,e.fill(),e.beginPath();var s=n-n*Math.max(Math.min(this.animValue,100),0)/100;s=Math.max(Math.min(s,n),0),e.rect(r,t+s,i,n-s),this.drawFill(e),e.closePath(),e.beginPath(),e.rect(r,t,i,n)}_post_draw(e){this.drawStroke(e),this.drawText(e)}get nature(){return o}}n.Component.register("progress-vertical",s);var l={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"value",name:"value",property:"value"},{type:"color",label:"background-color",name:"backgroundColor",property:"backgroundColor"},{type:"checkbox",label:"reverse",name:"reverse",property:"reverse"},{type:"checkbox",label:"anim-from-base",name:"animFromBase"}],help:"scene/component/progress-horizontal"};class u extends((0,n.ValueHolder)((0,n.RectPath)(n.Shape))){_draw(e){var{top:t,left:r,height:n,width:i,backgroundColor:a="transparent",reverse:o,animFromBase:s=!1}=this.state;this.animOnValueChange(this.value,s,0),e.beginPath(),e.rect(r,t,i,n),e.fillStyle=a,e.fill(),e.beginPath();var l=i-i*Math.max(Math.min(this.animValue,100),0)/100;l=Math.max(Math.min(l,i),0),o?e.rect(r,t,i-l,n):e.rect(r+l,t,i-l,n),this.drawFill(e),e.closePath(),e.beginPath(),e.rect(r,t,i,n)}_post_draw(e){this.drawStroke(e),this.drawText(e)}get nature(){return l}}n.Component.register("progress-horizontal",u)},99358:(e,t,r)=>{"use strict";var n=r(83305),i={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"select",label:"format",name:"format",property:{options:["bool,character,floating,integer,letter,natural,string","paragraph,sentence,syllable,word","age,birthday,cf,cpf,first,gender,last,name,prefix,ssn,suffix","android_id,apple_token,bb_pin,wp7_anid,wp8_anid2,avatar,color","company,domain,email,fbid,google_analytics,hashtag,ip,ipv6,klout,profession,tld,twitter,url","address,altitude,areacode,city,coordinates,country,depth,geohash,latitude,longitude,phone,postal,province,state,street,zip","ampm,date,hammertime,hour,millisecond,minute,month,second,timestamp,timezone,weekday,year","cc,cc_type,currency,currency_pair,dollar,euro,exp,exp_month,exp_year","coin,d4,d6,d8,d10,d12,d20,d30,d100,guid,hash"].join(",").split(",").map((e=>({display:e,value:e})))}},{type:"number",label:"count",name:"count",placeholder:"1"},{type:"number",label:"period",name:"period",placeholder:"milli-seconds"}],help:"scene/component/random"};class a extends((0,n.RectPath)(n.Shape)){static get image(){return a._image||(a._image=new Image,a._image.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAAtFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABSe1G2AAAAO3RSTlMAA/sG7vXcIvjy4tLm14YJzWlkbhK6pX8aDwyqSTPJxZtEQBbAOyqRjHlNciYe6a51WrWWUjcun7JfVn5FXzIAAAjjSURBVHja7NrXdtpAGATgkUQTvdn0DjbV2In7vP975SLIlrIFLevEcKLvWseAhWbn3wWJRCKRSCQSiUQikUgkEolEIpFI/C/ajX0plSrtGztcskHP5YG7v8GlmswZ5q4cXCDnvco/XV/eJ6nUMpR4wWXprO4oV8cFaS99qqSauBTbsUuNMi7D0556fgcXoD/nUfc4d85DgTHcVXDWJHl7icHVFPJWLXO+q2J7maaBd5ynmxeXRqo4R9q8zWUKmRwFE5wdXd4WywMPgDcoFxl1hfOizVt/4yHgNXxGDHBGKo0M1QpZhGWjH7mHs9FsafO22kRUp8oQd4vzsLtNU6fYFiO6yJAxzsHxvF1DtI7EWRvfbvHKY+aQmZ9Vm+/PedwjcOyWpBx8Iy9ev/U9yHg+Py3xfbqNPGO5gtwVP7htfJdmK8WYbiF3q9hNWSxHxbRf6tWbsGCdt6IW5Fr8cIMPjwUGcuMtbNn32+OJVGbgBwLNPSNeF7Bgkbcmu3BjBqY4aJf4p9Gjg7/AWY9oqgq5qnBBp0SJTK2Cr7Yu8AQzyMzEEbFHubtWE1+pe82T3ENmIwztfSqlf2bxZWYFnqZYgahS5EEDB0NquL0BvkalylOVdZmV6uK3KY+Y9x3A3k+eri+WNPFT/uBRpTcPtp4o41/Xn7LZRb2Xpk56iqjpx/W5IApuGEfxvgM7PyhK3Xc/t+R8argNB5+chivOVC+Mx1/uYKFN0VUkV3cj6gwnCEzCV26DF3AZl3v9jJPVKBg7iPD21Mrcvj89P70vMwzZCw9/LFcTGFLf+FchQrwRjS2CNSpFM9UHD6eYC09dE4KdT0Ojz+VRUBzOqz7V8psuzAmLyBsk7qmkn4K9PKOG9fbvLGvlqZQqt2FqxKi8A4muTyOl4K88MCLTxwevkaZSbnwDM714Q8aYRuo4KDBs30XYtkSN1ylMrBg1hdQ7A0bHbhP9DyJmJeoMTUaWAaOakNrSxEqyD0EOxTjK+hSYjizym+9CrkMD6eC/8Xx0I7jOI1KtGeJ5Y1gOcl0auMXBNUN+QsIp8ZjcsZFFHpAVSGUZnxu88M5lyFbXLPT2T4hhE+dsps/4ejhYMqQAqRljGa0d6IglYgOpMuMbBM+VH2c7L8N4SvUKBJo3OYSMk2Fsc3myNwzGCLm7VRNas1y07Uk8njA1ekVt9RED4bj0bTb+sDt0IKiUGFtBkax1XbUwGFkGUMu6DGnZjfVvimBtKcueoas+lK71X4IN4yt6H+c9UXtIOT6NFR4cyD0zYhW5zluetGk3j3cstOApCoN40TEKXbeo0oDfUW7OPFjUaoFbh9RU+CLWswCcbW1EI0v1M1xwNI+nuRqkhhTk8vkcDbk7zRvcWKwiIncK5UJh70WXc+5CMw2Zy1eULdResC/VTFPCXyCqQRsrwHwwMDznbVEqV3PwqTumlaKjaPP2JkETuKPCsO8E19SKtDRVtHlr1ThDRn5c60/Xm55Pay1Vm7f1YNSV7fVUbd5S3jGKQHtzZZu30zDrgfZGX3t0JRy1LfiPvGrbvP2B4iv/kaW6zVvItQ338uytofBMC2PDPmvP/9XenSglDwMBAN4eQG25tYUiVgoIDodcgmDe/73+cQYtNW2SbTpY5s/3AM7ASHazu902II1LsptkOTOq28HOa+okkymkGubww6sjSgnn1Mw/NUkEWQdkZ/PXaLV5I4hs3jKHw3yz+QCb0OotiFk6BOkJaHQ2n7XVptm4YkvkwZEP6/LZfJlqteFDQOUOOT3CZFQJg9U8rlybdYFuCn7wBtDukV1KtjXj19VvwJflusxutfGdpK9EJ+DwTZJsPElvyHaQtQTT4PYz+XXACCqbr2twaVFmtNq4PEg0wdQBuUaW0EW/W05oqn3I1aS0O0QdkG8n9hVOSlSI7eqSJ44jl/fys/k3H2hzRquN40WyMq8vQYRH3/2Yh8yearXxhMzBGD4v2wwBKfmsGfgxfvKmDclMVB2QzyVxR+YhM8OHgZ1cD9wFQUPBs86MhdgTrt4iEdpDEBVQGWGiJjUIJJUoaU7uzwC/i30D7mWI7ROEQJOYQNqAMK0mdMl/voyUY2QNjPJQJUJsA8S1RQIx2BfZyZNsm8Zws30HmGx+kD5GMo1abTilEGJ6W0QdEGHNb0TAiWq1YegdAyJPNUQdEMM3+bnR+CLETgleud37/hgetg4YkZ+0GVKtNjTLfZ3fd7wytg4YwWbzreT5FBfbJZI3kXusxNpTJ7R3GWACciVHoOCyeXMPMdrgKzvBjm7KewEc+kC1Yg+KLMexa+OeXEkAFHw23/wZJ17WS/Fa34xcyTtk4VKx6HG9+Wy/ft/jdOMqH0R+i8+Q92eRs0ryWpBNIJpOj4i8u239vtV5fJPedIWvzTvwo0YkNT+N83EYblEDAvhsnmbn1qMvtTWIhDZn5B6vTZh6ANHwuITqAWJGAeKmj8rm+UMtryQ7cwERxmPjFchuLVrv65Vz7TIvSsxWG55vipbEJybJ6FGwML8HGR3mrHoDIodqnvlsw6RbbVJ6tvBTQ91jnpMxU/ofUE6op5z7GlD6z7mtKYCQbrVJamOeqH1Z5TTPB37+Wx83Folj7jZYDCyCUoFkd9S5Im3yTAhiy8yobhKELiSr0h0zeeHKOv/CO12hNUqIqLKAZCVEdoLQ2G9arVkFvSibry/yENkU/s5wK7VKaYZqtcmT36nkCCwM8ECa/NZsfGGErvgd4M/5azvTmM+0eKtEjZODv4m/6IVc7tp3kb2Sylv8V1QcT55O0pVmEHOwf7XaiqTC3G439eGHMbd+t9qKhblP2+xUzoGQygrmUDiNdo2ks4+DwaqW1GoroJRVdzf5boP9ivAVYvcm12JnkUS39yaTkfie0aK/8Kcn+GaDLRSe9hkI3ehvAf/KEsCNmHzoN/l6hgRdVqnCKe4LMxL4czv9znVb0nZwd+D2hC75UpjSSY5XFr2AWW+WhdxuAQoO2fmtrUkI0Z3XQr3wI5uHSvemDl1FURRFURRFURRFURRF+a/9A+ihoIIrt6BYAAAAAElFTkSuQmCC"),a._image}ready(){super.ready(),n.ScriptLoader.load(["https://chancejs.com/chance.min.js"]).then((()=>{this.app&&this.app.isViewMode&&this._initRandom()}),n.error)}dispose(){super.dispose(),this._stopRepeater()}random(){var{format:e,count:t=1}=this.state;e&&t&&(this.data=chance.n(chance[e],t))}_initRandom(){this._stopRepeater(),this._startRepeater()}_startRepeater(){var{period:e}=this.state;e=Number(e);var t=!0;e&&(this.repeatTimer=setInterval((()=>{t&&this.repeatTimer&&requestAnimationFrame((()=>{t=!0,this.random()})),t=!1}),e)),this.random()}_stopRepeater(){this.repeatTimer&&clearTimeout(this.repeatTimer),delete this.repeatTimer}_draw(e){var{left:t,top:r,width:n,height:i}=this.bounds;e.beginPath(),this.drawImage(e,a.image,t,r,n,i)}ondblclick(e){this.random()}get hasTextProperty(){return!1}get controls(){return[]}get nature(){return i}}n.Component.register("random",a)},30396:(e,t,r)=>{"use strict";var n,i,a=r(171),o=r(94430),s=r(56765);function l(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var u=class extends o.oi{constructor(){super(...arguments),this.round=!1,this.value=!1}render(){return(0,o.dy)(n||(n=l(['\n <label>\n <input type="checkbox" .checked='," />\n <span ?round=","></span>\n </label>\n "])),this.value,this.round)}firstUpdated(){this.renderRoot.addEventListener("change",(e=>{var t;this.value=null===(t=e.target)||void 0===t?void 0:t.checked,this.dispatchEvent(new CustomEvent("value-change",{detail:this.value}))}))}};u.styles=(0,o.iv)(i||(i=l(["\n /* The switch - the box around the slider */\n label {\n position: relative;\n display: inline-block;\n width: 100%;\n height: 100%;\n }\n\n /* Hide default HTML checkbox */\n label input {\n opacity: 0;\n width: 0;\n height: 0;\n }\n\n /* The slider */\n span {\n position: absolute;\n cursor: pointer;\n width: var(--ox-simple-switch-fullwidth);\n height: var(--ox-simple-switch-fullheight);\n top: calc(0 - var(--ox-simple-switch-thumbnail-size));\n left: 0;\n background-color: var(--ox-simple-switch-off-color, #ccc);\n -webkit-transition: 0.4s;\n transition: 0.4s;\n }\n\n span:before {\n position: absolute;\n content: '';\n height: calc(var(--ox-simple-switch-thumbnail-size) - 8px);\n width: calc(var(--ox-simple-switch-thumbnail-size) - 8px);\n left: 4px;\n top: 4px;\n background-color: var(--ox-simple-switch-thumbnail-color, white);\n -webkit-transition: 0.4s;\n transition: 0.4s;\n }\n\n input:checked + span {\n background-color: var(--ox-simple-switch-on-color, #2196f3);\n }\n\n input:checked + span:before {\n -webkit-transform: translateX(calc(var(--ox-simple-switch-fullwidth) - var(--ox-simple-switch-thumbnail-size)))\n translateY(calc(var(--ox-simple-switch-fullheight) - var(--ox-simple-switch-thumbnail-size)));\n -ms-transform: translateX(calc(var(--ox-simple-switch-fullwidth) - var(--ox-simple-switch-thumbnail-size)))\n translateY(calc(var(--ox-simple-switch-fullheight) - var(--ox-simple-switch-thumbnail-size)));\n transform: translateX(calc(var(--ox-simple-switch-fullwidth) - var(--ox-simple-switch-thumbnail-size)))\n translateY(calc(var(--ox-simple-switch-fullheight) - var(--ox-simple-switch-thumbnail-size)));\n }\n\n /* Rounded sliders */\n span[round] {\n border-radius: calc(var(--ox-simple-switch-thumbnail-size) / 2);\n }\n\n span[round]:before {\n border-radius: calc((var(--ox-simple-switch-thumbnail-size) - 8px) / 2);\n }\n "]))),(0,a.gn)([(0,s.Cb)({type:Boolean})],u.prototype,"round",void 0),(0,a.gn)([(0,s.Cb)({type:Boolean})],u.prototype,"value",void 0),u=(0,a.gn)([(0,s.Mo)("ox-simple-switch")],u);var c=r(83305),d={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"checkbox",label:"round",name:"round"},{type:"checkbox",label:"on/off",name:"data"},{type:"color",label:"on-color",name:"onColor"},{type:"color",label:"off-color",name:"offColor"},{type:"color",label:"thumbnail-color",name:"thumbnailColor"}],"value-property":"data",help:"scene/component/simple-switch"};class h extends c.HTMLOverlayElement{get nature(){return d}oncreate_element(e){e.addEventListener("value-change",(e=>{var t=e.detail;this.setState({data:t})}))}dispose(){super.dispose()}setElementProperties(e){var{round:t,data:r,onColor:n,offColor:i,thumbnailColor:a}=this.state;e.round=t,e.value="true"==String(r),n&&e.style.setProperty("--ox-simple-switch-on-color",n),i&&e.style.setProperty("--ox-simple-switch-off-color",i),a&&e.style.setProperty("--ox-simple-switch-thumbnail-color",a)}reposition(){super.reposition();var e=this.element;if(e){var{height:t,width:r}=this.bounds;e.style.setProperty("--ox-simple-switch-fullwidth","".concat(r,"px")),e.style.setProperty("--ox-simple-switch-fullheight","".concat(t,"px")),e.style.setProperty("--ox-simple-switch-thumbnail-size","".concat(Math.min(t,r),"px"))}}get tagName(){return"ox-simple-switch"}}c.Component.register("simple-switch",h)},78108:(e,t,r)=>{"use strict";var n=r(83305),i={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"action",label:"remove",name:"remove",property:{icon:"remove_circle",action:function(e){var t=e.parent;t.removeComponent(e),t.set("activeIndex",0)}}}]};class a extends n.Container{get hasTextProperty(){return!1}get showMoveHandle(){return!1}get mutable(){return!1}get resizable(){return!1}get rotatable(){return!1}get nature(){return i}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}n.Component.register("tab-card",a);var u=25,c={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"action",label:"add-card",name:"addCard",property:{icon:"add_circle",action:e=>{e.addCard()}}},{type:"number",label:"active index",name:"activeIndex"}],"value-property":"activeIndex",help:"scene/component/tab-container"};class d extends n.Container{constructor(){super(...arguments),this._focused=!1}get nature(){return c}get layout(){return n.CardLayout}get layoutConfig(){return this.get("layoutConfig")}set layoutConfig(e){this.set("layoutConfig",e)}get activeCard(){return this.components[this.get("layoutConfig").activeIndex]}get activeIndex(){return this.get("activeIndex")}set activeIndex(e){this.set("activeIndex",Number(e))}ready(){super.ready(),0==this.components.length&&this.addCard()}postrender(e){if(!this.app.isViewMode&&this._focused){for(var{left:t,top:r,width:n,fillStyle:i}=this.state,a=0;a<this.components.length;a++){e.beginPath(),e.rect(t-u,r+25*a,u,25);var o=255-20*(a+1)%255;e.fillStyle=(s=o,l=o,1,"rgba(".concat(o,", ").concat(s,", ").concat(l,", ").concat(1,")")),e.fill(),e.closePath()}e.beginPath(),e.moveTo(t,r),e.lineTo(t-u,r),e.lineTo(t-u,r+25*this.components.length),e.lineTo(t,r+25*this.components.length),e.strokeStyle="#ccc",e.stroke(),e.closePath()}var s,l;super.postrender(e)}contains(e,t){var r=super.contains(e,t);if(this.app.isViewMode)return r;var{left:n,top:i,width:a}=this.bounds;return r=r||e<Math.max(n-u,n)&&e>Math.min(n-u,n)&&t<Math.max(i+25*this.size(),i)&&t>Math.min(i+25*this.size(),i),this._focused=!!r,this.invalidate(),r}onchange(e){"activeIndex"in e&&(this.layoutConfig=s(s({},this.layoutConfig),{},{activeIndex:e.activeIndex}))}onmouseup(e){var t=this.__down_point;if(delete this.__down_point,t&&t.x==e.offsetX&&t.y==e.offsetY){var r=this.transcoordC2S(e.offsetX,e.offsetY),{left:n,top:i}=this.state,a=r.x-n,o=r.y-i;a>0||(o/=25,o=Math.floor(o),this.layoutConfig||(this.layoutConfig={}),o>=this.components.length||this.set("activeIndex",o))}}onmousedown(e){this.__down_point={x:e.offsetX,y:e.offsetY}}addCard(){var e=(255-20*(this.components.length+1)%255).toString(16),t=n.Model.compile({type:"tab-card",fillStyle:"#".concat(e).concat(e).concat(e),top:0,left:0,width:100,height:100});this.addComponent(t),this.set("activeIndex",this.components.length-1)}}n.Component.register("tab-container",d);var h={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"id-input",label:"tab-reference",name:"reference",property:{component:e=>["tab-container","indoor-map"].includes(e.model.type)}},{type:"number",label:"tab-active-index",name:"activeIndex",property:{min:0,step:1}},{type:"color",label:"active-fill-style",name:"activeFillStyle",property:"activeFillStyle"},{type:"color",label:"active-font-color",name:"activeFontColor",property:"activeFontColor"},{type:"color",label:"active-line-color",name:"activeLineColor",property:"activeLineColor"},{type:"number",label:"active-line-width",name:"activeLineWidth",property:"activeLineWidth"}]};class f extends n.Container{get layout(){var{width:e,height:t}=this.state;return e>=t?n.LinearHorizontalLayout:n.LinearVerticalLayout}get nature(){return h}get focusible(){return!1}get reference(){var{reference:e}=this.state;return e?(this._reference||(this._reference=this.root.findById(e),this._reference&&this._reference.on("change",this.onRefChanged,this)),this._reference):null}get labelHeight(){var e=this.reference.components.length,{height:t}=this.state;return e>0&&t/e||t}get activeIndex(){return this.get("activeIndex")}set reference(e){this.reference&&this.reference.off("change",this.onRefChanged,this),this._reference=null,this.model.reference=e}set activeIndex(e){this.set("activeIndex",e),this.reference&&(this.reference.activeIndex=e)}render(e){if(super.render(e),this.reference)this.size()!==this.reference.size()&&this.rebuildTabButtons();else for(var t=this.components.length-1;t>=0;t--){var r=this.components[t];this.removeComponent(r)}}postrender(e){super.postrender(e);var{left:t,top:r,width:n,fillStyle:i}=this.state;e.beginPath(),e.rect(t+n,r,25,25),e.fillStyle=(235,235,1,"rgba(".concat(235,", ").concat(235,", ").concat(235,", ").concat(1,")")),e.fill(),e.closePath()}contains(e,t){if(!this.app.isEditMode)return super.contains(e,t);if(super.contains(e,t))return!0;var{left:r,top:n,width:i}=this.bounds,a=r+i;return e<Math.max(a+25,a)&&e>Math.min(a+25,a)&&t<Math.max(n+25,n)&&t>Math.min(n+25,n)}dispose(){this.reference&&this.reference.off("change",this.onRefChanged,this),super.dispose()}rebuildTabButtons(){for(var{tabIndex:e=0,left:t,top:r,width:i,height:a,fillStyle:o,activeFillStyle:s,activeLineColor:l,activeLineWidth:u,strokeStyle:c,fontColor:d,activeFontColor:h,fontFamily:f,fontSize:p,lineHeight:m,italic:g,bold:v,lineWidth:y=0}=this.state,_=[],b=this.reference.components,M=(this.labelHeight,this.components.length-1);M>=0;M--)this.removeComponent(this.components[M]);for(var w=0;w<b.length;w++)if("tab-card"==b[w].model.type){var T=b[w].text||"";_.push(n.Model.compile({type:"tab-button",index:w,text:T||String(w+1),fillStyle:o||"transparent",activeFillStyle:s,activeLineColor:l,activeLineWidth:u,fontColor:d,activeFontColor:h||d,fontFamily:f,fontSize:p,lineHeight:m,italic:g,bold:v,strokeStyle:c,lineWidth:y,left:0,top:0,width:i,height:a}))}this.add(_),this.reflow(),this.activeIndex=this.state.activeIndex||0}setTabButtonsStyle(e){var t=this.components;for(var r in t)t[r].set(e)}onRefChanged(e,t,r){}onchange(e,t){e.hasOwnProperty("reference")&&(this.reference=e.reference,this.invalidate()),this.setTabButtonsStyle(e)}}n.Component.register("tab",f);class p extends((0,n.RectPath)(n.Component)){get index(){return this.model.index}get activated(){return this.parent.activeIndex===this.index}removed(e){this.dispose()}prerender(e){super.prerender(e);var{fillStyle:t,activeFillStyle:r,activeLineColor:n,activeLineWidth:i,fontColor:a,activeFontColor:o}=this.state;this.hasOwnProperty("_fillStyle")||(this._fillStyle=t),this.hasOwnProperty("_fontColor")||(this._fontColor=a),this.activated?(this.model.fillStyle=r,this.model.fontColor=o,this.model.strokeStyle=n,this.model.lineWidth=i):(this.model.fillStyle=this._fillStyle,this.model.fontColor=this._fontColor,this.model.strokeStyle=this._strokeStyle,this.model.lineWidth=this._lineWidth)}render(e){var{left:t=0,top:r=0,width:n,height:i}=this.bounds;e.beginPath(),e.rect(t,r,n,i),this.drawFill(e),this.drawStroke(e)}postrender(e){super.postrender(e),this.model.fillStyle=this._fillStyle,this.model.fontColor=this._fontColor,this.model.strokeStyle=this._strokeStyle,this.model.lineWidth=this._lineWidth,delete this._fillStyle,delete this._fontColor,delete this._strokeStyle,delete this._lineWidth}onclick(e){this.parent.activeIndex=this.index,this.parent.invalidate()}onchange(e){e.hasOwnProperty("fillStyle")&&(this._fillStyle=e.fillStyle),e.hasOwnProperty("fontColor")&&(this._fontColor=e.fontColor),e.hasOwnProperty("strokeStyle")&&(this._fontColor=e.fontColor),e.hasOwnProperty("lineWidth")&&(this._fontColor=e.fontColor),e.hasOwnProperty("text")&&this.parent.reference.getAt(this.index).set("text",e.text),this.invalidate()}}n.Component.register("tab-button",p)},24574:(e,t,r)=>{"use strict";var n=r(6591),i=r(51266);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var o,s,l=r(2795).codes,u=l.ERR_AMBIGUOUS_ARGUMENT,c=l.ERR_INVALID_ARG_TYPE,d=l.ERR_INVALID_ARG_VALUE,h=l.ERR_INVALID_RETURN_VALUE,f=l.ERR_MISSING_ARGS,p=r(48186),m=r(17396).inspect,g=r(17396).types,v=g.isPromise,y=g.isRegExp,_=Object.assign?Object.assign:r(43566).assign,b=Object.is?Object.is:r(95518);function M(){var e=r(79377);o=e.isDeepEqual,s=e.isDeepStrictEqual}new Map;var w=!1,T=e.exports=x,L={};function S(e){if(e.message instanceof Error)throw e.message;throw new p(e)}function k(e,t,r,n){if(!r){var i=!1;if(0===t)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var a=new p({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw a.generatedMessage=i,a}}function x(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];k.apply(void 0,[x,t.length].concat(t))}T.fail=function e(t,r,a,o,s){var l,u=arguments.length;if(0===u)l="Failed";else if(1===u)a=t,t=void 0;else{if(!1===w){w=!0;var c=n.emitWarning?n.emitWarning:i.warn.bind(i);c("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===u&&(o="!=")}if(a instanceof Error)throw a;var d={actual:t,expected:r,operator:void 0===o?"fail":o,stackStartFn:s||e};void 0!==a&&(d.message=a);var h=new p(d);throw l&&(h.message=l,h.generatedMessage=!0),h},T.AssertionError=p,T.ok=x,T.equal=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");t!=r&&S({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},T.notEqual=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");t==r&&S({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},T.deepEqual=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");void 0===o&&M(),o(t,r)||S({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},T.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");void 0===o&&M(),o(t,r)&&S({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},T.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");void 0===o&&M(),s(t,r)||S({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},T.notDeepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");void 0===o&&M(),s(t,r)&&S({actual:t,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:e})},T.strictEqual=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");b(t,r)||S({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},T.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");b(t,r)&&S({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var E=function e(t,r,n){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.forEach((function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&y(t[e])&&t[e].test(n[e])?i[e]=n[e]:i[e]=t[e])}))};function D(e,t,r,n,i,a){if(!(r in e)||!s(e[r],t[r])){if(!n){var o=new E(e,i),l=new E(t,i,e),u=new p({actual:o,expected:l,operator:"deepStrictEqual",stackStartFn:a});throw u.actual=e,u.expected=t,u.operator=a.name,u}S({actual:e,expected:t,message:n,operator:a.name,stackStartFn:a})}}function A(e,t,r,n){if("function"!=typeof t){if(y(t))return t.test(e);if(2===arguments.length)throw new c("expected",["Function","RegExp"],t);if("object"!==a(e)||null===e){var i=new p({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:n});throw i.operator=n.name,i}var s=Object.keys(t);if(t instanceof Error)s.push("name","message");else if(0===s.length)throw new d("error",t,"may not be an empty object");return void 0===o&&M(),s.forEach((function(i){"string"==typeof e[i]&&y(t[i])&&t[i].test(e[i])||D(e,t,i,r,s,n)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function O(e){if("function"!=typeof e)throw new c("fn","Function",e);try{e()}catch(e){return e}return L}function P(e){return v(e)||null!==e&&"object"===a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function R(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!P(t=e()))throw new h("instance of Promise","promiseFn",t)}else{if(!P(e))throw new c("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return L})).catch((function(e){return e}))}))}function I(e,t,r,n){if("string"==typeof r){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],r);if("object"===a(t)&&null!==t){if(t.message===r)throw new u("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new u("error/message",'The error "'.concat(t,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==a(r)&&"function"!=typeof r)throw new c("error",["Object","Error","Function","RegExp"],r);if(t===L){var i="";r&&r.name&&(i+=" (".concat(r.name,")")),i+=n?": ".concat(n):".";var o="rejects"===e.name?"rejection":"exception";S({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(o).concat(i),stackStartFn:e})}if(r&&!A(t,r,n,e))throw t}function Y(e,t,r,n){if(t!==L){if("string"==typeof r&&(n=r,r=void 0),!r||A(t,r)){var i=n?": ".concat(n):".",a="doesNotReject"===e.name?"rejection":"exception";S({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(a).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function C(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];k.apply(void 0,[C,t.length].concat(t))}T.throws=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];I.apply(void 0,[e,O(t)].concat(n))},T.rejects=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return R(t).then((function(t){return I.apply(void 0,[e,t].concat(n))}))},T.doesNotThrow=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];Y.apply(void 0,[e,O(t)].concat(n))},T.doesNotReject=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return R(t).then((function(t){return Y.apply(void 0,[e,t].concat(n))}))},T.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===a(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=m(t);var n=new p({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),i=t.stack;if("string"==typeof i){var o=i.split("\n");o.shift();for(var s=n.stack.split("\n"),l=0;l<o.length;l++){var u=s.indexOf(o[l]);if(-1!==u){s=s.slice(0,u);break}}n.stack="".concat(s.join("\n"),"\n").concat(o.join("\n"))}throw n}},T.strict=_(C,T,{equal:T.strictEqual,deepEqual:T.deepStrictEqual,notEqual:T.notStrictEqual,notDeepEqual:T.notDeepStrictEqual}),T.strict.strict=T.strict},48186:(e,t,r)=>{"use strict";var n=r(6591);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?s(e):t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){var t="function"==typeof Map?new Map:void 0;return l=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return c(e,arguments,h(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,e)},l(e)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function c(e,t,r){return c=u()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&d(i,r.prototype),i},c.apply(null,arguments)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}var p=r(17396).inspect,m=r(2795).codes.ERR_INVALID_ARG_TYPE;function g(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}var v="",y="",_="",b="",M={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function w(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function T(e){return p(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var L=function(e){function t(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==f(e)||null===e)throw new m("options","Object",e);var i=e.message,a=e.operator,l=e.stackStartFn,u=e.actual,c=e.expected,d=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)r=o(this,h(t).call(this,String(i)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(v="[34m",y="[32m",b="[39m",_="[31m"):(v="",y="",b="",_="")),"object"===f(u)&&null!==u&&"object"===f(c)&&null!==c&&"stack"in u&&u instanceof Error&&"stack"in c&&c instanceof Error&&(u=w(u),c=w(c)),"deepStrictEqual"===a||"strictEqual"===a)r=o(this,h(t).call(this,function(e,t,r){var i="",a="",o=0,s="",l=!1,u=T(e),c=u.split("\n"),d=T(t).split("\n"),h=0,p="";if("strictEqual"===r&&"object"===f(e)&&"object"===f(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===c.length&&1===d.length&&c[0]!==d[0]){var m=c[0].length+d[0].length;if(m<=10){if(!("object"===f(e)&&null!==e||"object"===f(t)&&null!==t||0===e&&0===t))return"".concat(M[r],"\n\n")+"".concat(c[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==r&&m<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;c[0][h]===d[0][h];)h++;h>2&&(p="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",h),"^"),h=0)}}for(var w=c[c.length-1],L=d[d.length-1];w===L&&(h++<2?s="\n ".concat(w).concat(s):i=w,c.pop(),d.pop(),0!==c.length&&0!==d.length);)w=c[c.length-1],L=d[d.length-1];var S=Math.max(c.length,d.length);if(0===S){var k=u.split("\n");if(k.length>30)for(k[26]="".concat(v,"...").concat(b);k.length>27;)k.pop();return"".concat(M.notIdentical,"\n\n").concat(k.join("\n"),"\n")}h>3&&(s="\n".concat(v,"...").concat(b).concat(s),l=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var x=0,E=M[r]+"\n".concat(y,"+ actual").concat(b," ").concat(_,"- expected").concat(b),D=" ".concat(v,"...").concat(b," Lines skipped");for(h=0;h<S;h++){var A=h-o;if(c.length<h+1)A>1&&h>2&&(A>4?(a+="\n".concat(v,"...").concat(b),l=!0):A>3&&(a+="\n ".concat(d[h-2]),x++),a+="\n ".concat(d[h-1]),x++),o=h,i+="\n".concat(_,"-").concat(b," ").concat(d[h]),x++;else if(d.length<h+1)A>1&&h>2&&(A>4?(a+="\n".concat(v,"...").concat(b),l=!0):A>3&&(a+="\n ".concat(c[h-2]),x++),a+="\n ".concat(c[h-1]),x++),o=h,a+="\n".concat(y,"+").concat(b," ").concat(c[h]),x++;else{var O=d[h],P=c[h],R=P!==O&&(!g(P,",")||P.slice(0,-1)!==O);R&&g(O,",")&&O.slice(0,-1)===P&&(R=!1,P+=","),R?(A>1&&h>2&&(A>4?(a+="\n".concat(v,"...").concat(b),l=!0):A>3&&(a+="\n ".concat(c[h-2]),x++),a+="\n ".concat(c[h-1]),x++),o=h,a+="\n".concat(y,"+").concat(b," ").concat(P),i+="\n".concat(_,"-").concat(b," ").concat(O),x+=2):(a+=i,i="",1!==A&&0!==h||(a+="\n ".concat(P),x++))}if(x>20&&h<S-2)return"".concat(E).concat(D,"\n").concat(a,"\n").concat(v,"...").concat(b).concat(i,"\n")+"".concat(v,"...").concat(b)}return"".concat(E).concat(l?D:"","\n").concat(a).concat(i).concat(s).concat(p)}(u,c,a)));else if("notDeepStrictEqual"===a||"notStrictEqual"===a){var p=M[a],L=T(u).split("\n");if("notStrictEqual"===a&&"object"===f(u)&&null!==u&&(p=M.notStrictEqualObject),L.length>30)for(L[26]="".concat(v,"...").concat(b);L.length>27;)L.pop();r=1===L.length?o(this,h(t).call(this,"".concat(p," ").concat(L[0]))):o(this,h(t).call(this,"".concat(p,"\n\n").concat(L.join("\n"),"\n")))}else{var S=T(u),k="",x=M[a];"notDeepEqual"===a||"notEqual"===a?(S="".concat(M[a],"\n\n").concat(S)).length>1024&&(S="".concat(S.slice(0,1021),"...")):(k="".concat(T(c)),S.length>512&&(S="".concat(S.slice(0,509),"...")),k.length>512&&(k="".concat(k.slice(0,509),"...")),"deepEqual"===a||"equal"===a?S="".concat(x,"\n\n").concat(S,"\n\nshould equal\n\n"):k=" ".concat(a," ").concat(k)),r=o(this,h(t).call(this,"".concat(S).concat(k)))}return Error.stackTraceLimit=d,r.generatedMessage=!i,Object.defineProperty(s(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=u,r.expected=c,r.operator=a,Error.captureStackTrace&&Error.captureStackTrace(s(r),l),r.stack,r.name="AssertionError",o(r)}var r,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),r=t,l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:p.custom,value:function(e,t){return p(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){i(e,t,r[t])}))}return e}({},t,{customInspect:!1,depth:0}))}}],l&&a(r.prototype,l),t}(l(Error));e.exports=L},2795:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var o,s,l={};function u(e,t,r){r||(r=Error);var o=function(r){function o(r,a,s){var l;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),l=function(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,i(o).call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,a,s))),l.code=e,l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(o,r),o}(r);l[e]=o}function c(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",(function(e,t,i){var a,s,l,u,d;if(void 0===o&&(o=r(24574)),o("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(s="not ",t.substr(0,s.length)===s)?(a="must not be",t=t.replace(/^not /,"")):a="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))l="The ".concat(e," ").concat(a," ").concat(c(t,"type"));else{var h=("number"!=typeof d&&(d=0),d+".".length>(u=e).length||-1===u.indexOf(".",d)?"argument":"property");l='The "'.concat(e,'" ').concat(h," ").concat(a," ").concat(c(t,"type"))}return l+". Received type ".concat(n(i))}),TypeError),u("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=r(17396));var i=s.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(i)}),TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),u("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===o&&(o=r(24574)),o(t.length>0,"At least one arg needs to be specified");var i="The ",a=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),a){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,a-1).join(", "),i+=", and ".concat(t[a-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=l},79377:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a=void 0!==/a/g.flags,o=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,r){return t.push([r,e])})),t},l=Object.is?Object.is:r(95518),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},c=Number.isNaN?Number.isNaN:r(62183);function d(e){return e.call.bind(e)}var h=d(Object.prototype.hasOwnProperty),f=d(Object.prototype.propertyIsEnumerable),p=d(Object.prototype.toString),m=r(17396).types,g=m.isAnyArrayBuffer,v=m.isArrayBufferView,y=m.isDate,_=m.isMap,b=m.isRegExp,M=m.isSet,w=m.isNativeError,T=m.isBoxedPrimitive,L=m.isNumberObject,S=m.isStringObject,k=m.isBooleanObject,x=m.isBigIntObject,E=m.isSymbolObject,D=m.isFloat32Array,A=m.isFloat64Array;function O(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function P(e){return Object.keys(e).filter(O).concat(u(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function R(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}function I(e,t,r,n){if(e===t)return 0!==e||!r||l(e,t);if(r){if("object"!==i(e))return"number"==typeof e&&c(e)&&c(t);if("object"!==i(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==i(e))return(null===t||"object"!==i(t))&&e==t;if(null===t||"object"!==i(t))return!1}var o,s,u,d,h=p(e);if(h!==p(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var f=P(e),m=P(t);return f.length===m.length&&C(e,t,r,n,1,f)}if("[object Object]"===h&&(!_(e)&&_(t)||!M(e)&&M(t)))return!1;if(y(e)){if(!y(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(b(e)){if(!b(t)||(u=e,d=t,!(a?u.source===d.source&&u.flags===d.flags:RegExp.prototype.toString.call(u)===RegExp.prototype.toString.call(d))))return!1}else if(w(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(v(e)){if(r||!D(e)&&!A(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===R(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}(e,t))return!1;var O=P(e),I=P(t);return O.length===I.length&&C(e,t,r,n,0,O)}if(M(e))return!(!M(t)||e.size!==t.size)&&C(e,t,r,n,2);if(_(e))return!(!_(t)||e.size!==t.size)&&C(e,t,r,n,3);if(g(e)){if(s=t,(o=e).byteLength!==s.byteLength||0!==R(new Uint8Array(o),new Uint8Array(s)))return!1}else if(T(e)&&!function(e,t){return L(e)?L(t)&&l(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):S(e)?S(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):k(e)?k(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):x(e)?x(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):E(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return C(e,t,r,n,0)}function Y(e,t){return t.filter((function(t){return f(e,t)}))}function C(e,t,r,n,i,a){if(5===arguments.length){a=Object.keys(e);var o=Object.keys(t);if(a.length!==o.length)return!1}for(var s=0;s<a.length;s++)if(!h(t,a[s]))return!1;if(r&&5===arguments.length){var l=u(e);if(0!==l.length){var c=0;for(s=0;s<l.length;s++){var d=l[s];if(f(e,d)){if(!f(t,d))return!1;a.push(d),c++}else if(f(t,d))return!1}var p=u(t);if(l.length!==p.length&&Y(t,p).length!==c)return!1}else{var m=u(t);if(0!==m.length&&0!==Y(t,m).length)return!1}}if(0===a.length&&(0===i||1===i&&0===e.length||0===e.size))return!0;if(void 0===n)n={val1:new Map,val2:new Map,position:0};else{var g=n.val1.get(e);if(void 0!==g){var v=n.val2.get(t);if(void 0!==v)return g===v}n.position++}n.val1.set(e,n.position),n.val2.set(t,n.position);var y=U(e,t,r,a,n,i);return n.val1.delete(e),n.val2.delete(t),y}function F(e,t,r,n){for(var i=o(e),a=0;a<i.length;a++){var s=i[a];if(I(t,s,r,n))return e.delete(s),!0}return!1}function N(e){switch(i(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(c(e))return!1}return!0}function j(e,t,r){var n=N(r);return null!=n?n:t.has(n)&&!e.has(n)}function H(e,t,r,n,i){var a=N(r);if(null!=a)return a;var o=t.get(a);return!(void 0===o&&!t.has(a)||!I(n,o,!1,i))&&!e.has(a)&&I(n,o,!1,i)}function B(e,t,r,n,i,a){for(var s=o(e),l=0;l<s.length;l++){var u=s[l];if(I(r,u,i,a)&&I(n,t.get(u),i,a))return e.delete(u),!0}return!1}function U(e,t,r,a,l,u){var c=0;if(2===u){if(!function(e,t,r,n){for(var a=null,s=o(e),l=0;l<s.length;l++){var u=s[l];if("object"===i(u)&&null!==u)null===a&&(a=new Set),a.add(u);else if(!t.has(u)){if(r)return!1;if(!j(e,t,u))return!1;null===a&&(a=new Set),a.add(u)}}if(null!==a){for(var c=o(t),d=0;d<c.length;d++){var h=c[d];if("object"===i(h)&&null!==h){if(!F(a,h,r,n))return!1}else if(!r&&!e.has(h)&&!F(a,h,r,n))return!1}return 0===a.size}return!0}(e,t,r,l))return!1}else if(3===u){if(!function(e,t,r,a){for(var o=null,l=s(e),u=0;u<l.length;u++){var c=n(l[u],2),d=c[0],h=c[1];if("object"===i(d)&&null!==d)null===o&&(o=new Set),o.add(d);else{var f=t.get(d);if(void 0===f&&!t.has(d)||!I(h,f,r,a)){if(r)return!1;if(!H(e,t,d,h,a))return!1;null===o&&(o=new Set),o.add(d)}}}if(null!==o){for(var p=s(t),m=0;m<p.length;m++){var g=n(p[m],2),v=(d=g[0],g[1]);if("object"===i(d)&&null!==d){if(!B(o,e,d,v,r,a))return!1}else if(!(r||e.has(d)&&I(e.get(d),v,!1,a)||B(o,e,d,v,!1,a)))return!1}return 0===o.size}return!0}(e,t,r,l))return!1}else if(1===u)for(;c<e.length;c++){if(!h(e,c)){if(h(t,c))return!1;for(var d=Object.keys(e);c<d.length;c++){var f=d[c];if(!h(t,f)||!I(e[f],t[f],r,l))return!1}return d.length===Object.keys(t).length}if(!h(t,c)||!I(e[c],t[c],r,l))return!1}for(c=0;c<a.length;c++){var p=a[c];if(!I(e[p],t[p],r,l))return!1}return!0}e.exports={isDeepEqual:function(e,t){return I(e,t,!1)},isDeepStrictEqual:function(e,t){return I(e,t,!0)}}},24104:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,a=l(e),o=a[0],s=a[1],u=new i(function(e,t,r){return 3*(t+r)/4-r}(0,o,s)),c=0,d=s>0?o-4:o;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=16383,s=0,l=n-i;s<l;s+=o)a.push(u(e,s,s+o>l?l:s+o));return 1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),a.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)r[o]=a[o],n[a.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function u(e,t,n){for(var i,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},47103:(e,t,r)=>{"use strict";var n=r(51266),i=r(24104),a=r(87040),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50;var s=2147483647;function l(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return h(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|g(e,t),n=l(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(U(e,Uint8Array)){var t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(U(e,ArrayBuffer)||e&&U(e.buffer,ArrayBuffer))return p(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(U(e,SharedArrayBuffer)||e&&U(e.buffer,SharedArrayBuffer)))return p(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return u.from(n,t,r);var i=function(e){if(u.isBuffer(e)){var t=0|m(e.length),r=l(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||W(e.length)?l(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function h(e){return d(e),l(e<0?0:0|m(e))}function f(e){for(var t=e.length<0?0:0|m(e.length),r=l(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function p(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,u.prototype),n}function m(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function g(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||U(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(e).length;default:if(i)return n?-1:j(e).length;t=(""+t).toLowerCase(),i=!0}}function v(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,r);case"utf8":case"utf-8":return x(this,t,r);case"ascii":return D(this,t,r);case"latin1":case"binary":return A(this,t,r);case"base64":return k(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function _(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),W(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){var a,o=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=r;a<s;a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(r+l>s&&(r=s-l),a=r;a>=0;a--){for(var d=!0,h=0;h<l;h++)if(u(e,a+h)!==u(t,h)){d=!1;break}if(d)return a}return-1}function M(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(t.substr(2*o,2),16);if(W(s))return o;e[r+o]=s}return o}function w(e,t,r,n){return B(j(t,e.length-r),e,r,n)}function T(e,t,r,n){return B(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function L(e,t,r,n){return B(H(t),e,r,n)}function S(e,t,r,n){return B(function(e,t){for(var r,n,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function k(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function x(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a,o,s,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(a=e[i+1]))&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=d}return function(e){var t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=E));return r}(n)}t.kMaxLength=s,u.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),u.TYPED_ARRAY_SUPPORT||void 0===n||"function"!=typeof n.error||n.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,r){return function(e,t,r){return d(e),e<=0?l(e):void 0!==t?"string"==typeof r?l(e).fill(t,r):l(e).fill(t):l(e)}(e,t,r)},u.allocUnsafe=function(e){return h(e)},u.allocUnsafeSlow=function(e){return h(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(U(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),U(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(U(a,Uint8Array))i+a.length>n.length?u.from(a).copy(n,i):Uint8Array.prototype.set.call(n,a,i);else{if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i)}i+=a.length}return n},u.byteLength=g,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},u.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?x(this,0,e):v.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,r,n,i){if(U(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),s=Math.min(a,o),l=this.slice(n,i),c=e.slice(t,r),d=0;d<s;++d)if(l[d]!==c[d]){a=l[d],o=c[d];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return _(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return _(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return M(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":case"latin1":case"binary":return T(this,e,t,r);case"base64":return L(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function D(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function A(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function O(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=z[e[a]];return i}function P(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function R(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,r,n,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function Y(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function C(e,t,r,n,i){return t=+t,r>>>=0,i||Y(e,0,r,4),a.write(e,t,r,n,23,4),r+4}function F(e,t,r,n,i){return t=+t,r>>>=0,i||Y(e,0,r,8),a.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),a.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),a.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),a.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),a.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||I(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||I(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);I(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);I(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeFloatLE=function(e,t,r){return C(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return F(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return F(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var o=u.isBuffer(e)?e:u.from(e,n),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-t;++a)this[a+t]=o[a%s]}return this};var N=/[^+/0-9A-Za-z-_]/g;function j(e,t){var r;t=t||1/0;for(var n=e.length,i=null,a=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function H(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function B(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function U(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function W(e){return e!=e}var z=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},62453:(e,t,r)=>{"use strict";var n=r(15803),i=r(47426),a=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&a(e,".prototype.")>-1?i(r):r}},47426:(e,t,r)=>{"use strict";var n=r(11442),i=r(15803),a=i("%Function.prototype.apply%"),o=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(o,a),l=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(n,o,arguments);if(l&&u){var r=l(t,"length");r.configurable&&u(t,"length",{value:1+c(0,e.length-(arguments.length-1))})}return t};var d=function(){return s(n,a,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},21095:function(e,t,r){var n=r(51266);e.exports=function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},r=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[t[n]]=n);var i=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in i)if(i.hasOwnProperty(a)){if(!("channels"in i[a]))throw new Error("missing channels property: "+a);if(!("labels"in i[a]))throw new Error("missing channel labels property: "+a);if(i[a].labels.length!==i[a].channels)throw new Error("channel and label counts mismatch: "+a);var o=i[a].channels,s=i[a].labels;delete i[a].channels,delete i[a].labels,Object.defineProperty(i[a],"channels",{value:o}),Object.defineProperty(i[a],"labels",{value:s})}i.rgb.hsl=function(e){var t,r,n=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o;return s===o?t=0:n===s?t=(i-a)/l:i===s?t=2+(a-n)/l:a===s&&(t=4+(n-i)/l),(t=Math.min(60*t,360))<0&&(t+=360),r=(o+s)/2,[t,100*(s===o?0:r<=.5?l/(s+o):l/(2-s-o)),100*r]},i.rgb.hsv=function(e){var t,r,n,i,a,o=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(o,s,l),c=u-Math.min(o,s,l),d=function(e){return(u-e)/6/c+.5};return 0===c?i=a=0:(a=c/u,t=d(o),r=d(s),n=d(l),o===u?i=n-r:s===u?i=1/3+t-n:l===u&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*a,100*u]},i.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2];return[i.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(r,n))*100,100*(n=1-1/255*Math.max(t,Math.max(r,n)))]},i.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,i=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-i)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},i.rgb.keyword=function(e){var n=r[e];if(n)return n;var i,a,o,s=1/0;for(var l in t)if(t.hasOwnProperty(l)){var u=(a=e,o=t[l],Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)+Math.pow(a[2]-o[2],2));u<s&&(s=u,i=l)}return i},i.keyword.rgb=function(e){return t[e]},i.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},i.rgb.lab=function(e){var t=i.rgb.xyz(e),r=t[0],n=t[1],a=t[2];return n/=100,a/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},i.hsl.rgb=function(e){var t,r,n,i,a,o=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[a=255*l,a,a];t=2*l-(r=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var u=0;u<3;u++)(n=o+1/3*-(u-1))<0&&n++,n>1&&n--,a=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,i[u]=255*a;return i},i.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,a=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,i*=a<=1?a:2-a,[t,100*(0===n?2*i/(a+i):2*r/(n+r)),(n+r)/2*100]},i.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*n*(1-r),s=255*n*(1-r*a),l=255*n*(1-r*(1-a));switch(n*=255,i){case 0:return[n,l,o];case 1:return[s,n,o];case 2:return[o,n,l];case 3:return[o,s,n];case 4:return[l,o,n];case 5:return[n,o,s]}},i.hsv.hsl=function(e){var t,r,n,i=e[0],a=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return n=(2-a)*o,r=a*s,[i,100*(r=(r/=(t=(2-a)*s)<=1?t:2-t)||0),100*(n/=2)]},i.hwb.rgb=function(e){var t,r,n,i,a,o,s,l=e[0]/360,u=e[1]/100,c=e[2]/100,d=u+c;switch(d>1&&(u/=d,c/=d),n=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(n=1-n),i=u+n*((r=1-c)-u),t){default:case 6:case 0:a=r,o=i,s=u;break;case 1:a=i,o=r,s=u;break;case 2:a=u,o=r,s=i;break;case 3:a=u,o=i,s=r;break;case 4:a=i,o=u,s=r;break;case 5:a=r,o=u,s=i}return[255*a,255*o,255*s]},i.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i))]},i.xyz.rgb=function(e){var t,r,n,i=e[0]/100,a=e[1]/100,o=e[2]/100;return r=-.9689*i+1.8758*a+.0415*o,n=.0557*i+-.204*a+1.057*o,t=(t=3.2406*i+-1.5372*a+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},i.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},i.lab.xyz=function(e){var t,r,n,i=e[0];t=e[1]/500+(r=(i+16)/116),n=r-e[2]/200;var a=Math.pow(r,3),o=Math.pow(t,3),s=Math.pow(n,3);return r=a>.008856?a:(r-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},i.lab.lch=function(e){var t,r=e[0],n=e[1],i=e[2];return(t=360*Math.atan2(i,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+i*i),t]},i.lch.lab=function(e){var t,r=e[0],n=e[1];return t=e[2]/360*2*Math.PI,[r,n*Math.cos(t),n*Math.sin(t)]},i.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],a=1 in arguments?arguments[1]:i.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var o=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===a&&(o+=60),o},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},i.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},i.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},i.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},i.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,i=e[2]/255,a=Math.max(Math.max(r,n),i),o=Math.min(Math.min(r,n),i),s=a-o;return t=s<=0?0:a===r?(n-i)/s%6:a===n?2+(i-r)/s:4+(r-n)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?o/(1-s):0)]},i.hsl.hcg=function(e){var t,r=e[1]/100,n=e[2]/100,i=0;return(t=n<.5?2*r*n:2*r*(1-n))<1&&(i=(n-.5*t)/(1-t)),[e[0],100*t,100*i]},i.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},i.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];var i,a=[0,0,0],o=t%1*6,s=o%1,l=1-s;switch(Math.floor(o)){case 0:a[0]=1,a[1]=s,a[2]=0;break;case 1:a[0]=l,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=s;break;case 3:a[0]=0,a[1]=l,a[2]=1;break;case 4:a[0]=s,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=l}return i=(1-r)*n,[255*(r*a[0]+i),255*(r*a[1]+i),255*(r*a[2]+i)]},i.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},i.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},i.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},i.hwb.hcg=function(e){var t=e[1]/100,r=1-e[2]/100,n=r-t,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=i.gray.hsv=function(e){return[0,0,e[0]]},i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function i(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,i=0;i<n;i++)e[t[i]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var i=n.pop(),a=Object.keys(r[i]),o=a.length,s=0;s<o;s++){var l=a[s],u=t[l];-1===u.distance&&(u.distance=t[i].distance+1,u.parent=i,n.unshift(l))}return t}function a(e,t){return function(r){return t(e(r))}}function o(e,t){for(var n=[t[e].parent,e],i=r[t[e].parent][e],o=t[e].parent;t[o].parent;)n.unshift(t[o].parent),i=a(r[t[o].parent][o],i),o=t[o].parent;return i.conversion=n,i}r.rgb,r.hsl,r.hsv,r.hwb,r.cmyk,r.xyz,r.lab,r.lch,r.hex,r.keyword,r.ansi16,r.ansi256,r.hcg,r.apple,r.gray;var s={};Object.keys(r).forEach((function(e){s[e]={},Object.defineProperty(s[e],"channels",{value:r[e].channels}),Object.defineProperty(s[e],"labels",{value:r[e].labels});var t=function(e){for(var t=i(e),r={},n=Object.keys(t),a=n.length,s=0;s<a;s++){var l=n[s];null!==t[l].parent&&(r[l]=o(l,t))}return r}(e);Object.keys(t).forEach((function(r){var n=t[r];s[e][r]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var n=r.length,i=0;i<n;i++)r[i]=Math.round(r[i]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(n),s[e][r].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))}));var l=s,u={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},c={getRgba:d,getHsla:h,getRgb:function(e){var t=d(e);return t&&t.slice(0,3)},getHsl:function(e){var t=h(e);return t&&t.slice(0,3)},getHwb:f,getAlpha:function(e){var t=d(e);return t||(t=h(e))||(t=f(e))?t[3]:void 0},hexString:function(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+y(e[0])+y(e[1])+y(e[2])+(t>=0&&t<1?y(Math.round(255*t)):"")},rgbString:function(e,t){return t<1||e[3]&&e[3]<1?p(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:p,percentString:function(e,t){return t<1||e[3]&&e[3]<1?m(e,t):"rgb("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%)"},percentaString:m,hslString:function(e,t){return t<1||e[3]&&e[3]<1?g(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:g,hwbString:function(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return _[e.slice(0,3)]}};function d(e){if(e){var t=[0,0,0],r=1,n=e.match(/^#([a-fA-F0-9]{3,4})$/i),i="";if(n){i=(n=n[1])[3];for(var a=0;a<t.length;a++)t[a]=parseInt(n[a]+n[a],16);i&&(r=Math.round(parseInt(i+i,16)/255*100)/100)}else if(n=e.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){for(i=n[2],n=n[1],a=0;a<t.length;a++)t[a]=parseInt(n.slice(2*a,2*a+2),16);i&&(r=Math.round(parseInt(i,16)/255*100)/100)}else if(n=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(a=0;a<t.length;a++)t[a]=parseInt(n[a+1]);r=parseFloat(n[4])}else if(n=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(a=0;a<t.length;a++)t[a]=Math.round(2.55*parseFloat(n[a+1]));r=parseFloat(n[4])}else if(n=e.match(/(\w+)/)){if("transparent"==n[1])return[0,0,0,0];if(!(t=u[n[1]]))return}for(a=0;a<t.length;a++)t[a]=v(t[a],0,255);return r=r||0==r?v(r,0,1):1,t[3]=r,t}}function h(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var r=parseFloat(t[4]);return[v(parseInt(t[1]),0,360),v(parseFloat(t[2]),0,100),v(parseFloat(t[3]),0,100),v(isNaN(r)?1:r,0,1)]}}}function f(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var r=parseFloat(t[4]);return[v(parseInt(t[1]),0,360),v(parseFloat(t[2]),0,100),v(parseFloat(t[3]),0,100),v(isNaN(r)?1:r,0,1)]}}}function p(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function m(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function g(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function v(e,t,r){return Math.min(Math.max(t,e),r)}function y(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var _={};for(var b in u)_[u[b]]=b;var M=function(e){return e instanceof M?e:this instanceof M?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof e?(t=c.getRgba(e))?this.setValues("rgb",t):(t=c.getHsla(e))?this.setValues("hsl",t):(t=c.getHwb(e))&&this.setValues("hwb",t):"object"==typeof e&&(void 0!==(t=e).r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t)))):new M(e);var t};M.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return c.hexString(this.values.rgb)},rgbString:function(){return c.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return c.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return c.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return c.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return c.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return c.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return c.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],r=0;r<e.length;r++){var n=e[r]/255;t[r]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,r=(t[0]+e)%360;return t[0]=r<0?360+r:r,this.setValues("hsl",t),this},mix:function(e,t){var r=this,n=e,i=void 0===t?.5:t,a=2*i-1,o=r.alpha()-n.alpha(),s=((a*o==-1?a:(a+o)/(1+a*o))+1)/2,l=1-s;return this.rgb(s*r.red()+l*n.red(),s*r.green()+l*n.green(),s*r.blue()+l*n.blue()).alpha(r.alpha()*i+n.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var e,t,r=new M,i=this.values,a=r.values;for(var o in i)i.hasOwnProperty(o)&&(e=i[o],"[object Array]"===(t={}.toString.call(e))?a[o]=e.slice(0):"[object Number]"===t?a[o]=e:n.error("unexpected color value:",e));return r}},M.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},M.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},M.prototype.getValues=function(e){for(var t=this.values,r={},n=0;n<e.length;n++)r[e.charAt(n)]=t[e][n];return 1!==t.alpha&&(r.a=t.alpha),r},M.prototype.setValues=function(e,t){var r,n,i=this.values,a=this.spaces,o=this.maxes,s=1;if(this.valid=!0,"alpha"===e)s=t;else if(t.length)i[e]=t.slice(0,e.length),s=t[e.length];else if(void 0!==t[e.charAt(0)]){for(r=0;r<e.length;r++)i[e][r]=t[e.charAt(r)];s=t.a}else if(void 0!==t[a[e][0]]){var u=a[e];for(r=0;r<e.length;r++)i[e][r]=t[u[r]];s=t.alpha}if(i.alpha=Math.max(0,Math.min(1,void 0===s?i.alpha:s)),"alpha"===e)return!1;for(r=0;r<e.length;r++)n=Math.max(0,Math.min(o[e][r],i[e][r])),i[e][r]=Math.round(n);for(var c in a)c!==e&&(i[c]=l[e][c](i[e]));return!0},M.prototype.setSpace=function(e,t){var r=t[0];return void 0===r?this.getValues(e):("number"==typeof r&&(r=Array.prototype.slice.call(t)),this.setValues(e,r),this)},M.prototype.setChannel=function(e,t,r){var n=this.values[e];return void 0===r?n[t]:(r===n[t]||(n[t]=r,this.setValues(e,n)),this)},"undefined"!=typeof window&&(window.Color=M);var w=M;function T(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}var L,S={noop:function(){},uid:(L=0,function(){return L++}),isNullOrUndef:function(e){return null==e},isArray:function(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},isFinite:function(e){return("number"==typeof e||e instanceof Number)&&isFinite(e)},valueOrDefault:function(e,t){return void 0===e?t:e},valueAtIndexOrDefault:function(e,t,r){return S.valueOrDefault(S.isArray(e)?e[t]:e,r)},callback:function(e,t,r){if(e&&"function"==typeof e.call)return e.apply(r,t)},each:function(e,t,r,n){var i,a,o;if(S.isArray(e))if(a=e.length,n)for(i=a-1;i>=0;i--)t.call(r,e[i],i);else for(i=0;i<a;i++)t.call(r,e[i],i);else if(S.isObject(e))for(a=(o=Object.keys(e)).length,i=0;i<a;i++)t.call(r,e[o[i]],o[i])},arrayEquals:function(e,t){var r,n,i,a;if(!e||!t||e.length!==t.length)return!1;for(r=0,n=e.length;r<n;++r)if(i=e[r],a=t[r],i instanceof Array&&a instanceof Array){if(!S.arrayEquals(i,a))return!1}else if(i!==a)return!1;return!0},clone:function(e){if(S.isArray(e))return e.map(S.clone);if(S.isObject(e)){for(var t=Object.create(e),r=Object.keys(e),n=r.length,i=0;i<n;++i)t[r[i]]=S.clone(e[r[i]]);return t}return e},_merger:function(e,t,r,n){if(T(e)){var i=t[e],a=r[e];S.isObject(i)&&S.isObject(a)?S.merge(i,a,n):t[e]=S.clone(a)}},_mergerIf:function(e,t,r){if(T(e)){var n=t[e],i=r[e];S.isObject(n)&&S.isObject(i)?S.mergeIf(n,i):t.hasOwnProperty(e)||(t[e]=S.clone(i))}},merge:function(e,t,r){var n,i,a,o,s,l=S.isArray(t)?t:[t],u=l.length;if(!S.isObject(e))return e;for(n=(r=r||{}).merger||S._merger,i=0;i<u;++i)if(t=l[i],S.isObject(t))for(s=0,o=(a=Object.keys(t)).length;s<o;++s)n(a[s],e,t,r);return e},mergeIf:function(e,t){return S.merge(e,t,{merger:S._mergerIf})},extend:Object.assign||function(e){return S.merge(e,[].slice.call(arguments,1),{merger:function(e,t,r){t[e]=r[e]}})},inherits:function(e){var t=this,r=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},n=function(){this.constructor=r};return n.prototype=t.prototype,r.prototype=new n,r.extend=S.inherits,e&&S.extend(r.prototype,e),r.__super__=t.prototype,r},_deprecated:function(e,t,r,i){void 0!==t&&n.warn(e+': "'+r+'" is deprecated. Please use "'+i+'" instead')}},k=S;S.callCallback=S.callback,S.indexOf=function(e,t,r){return Array.prototype.indexOf.call(e,t,r)},S.getValueOrDefault=S.valueOrDefault,S.getValueAtIndexOrDefault=S.valueAtIndexOrDefault;var x={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,r=0,n=1;return 0===e?0:1===e?1:(r||(r=.3),n<1?(n=1,t=r/4):t=r/(2*Math.PI)*Math.asin(1/n),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r))},easeOutElastic:function(e){var t=1.70158,r=0,n=1;return 0===e?0:1===e?1:(r||(r=.3),n<1?(n=1,t=r/4):t=r/(2*Math.PI)*Math.asin(1/n),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},easeInOutElastic:function(e){var t=1.70158,r=0,n=1;return 0===e?0:2==(e/=.5)?1:(r||(r=.45),n<1?(n=1,t=r/4):t=r/(2*Math.PI)*Math.asin(1/n),e<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-x.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*x.easeInBounce(2*e):.5*x.easeOutBounce(2*e-1)+.5}},E={effects:x};k.easingEffects=x;var D=Math.PI,A=D/180,O=2*D,P=D/2,R=D/4,I=2*D/3,Y={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,r,n,i,a){if(a){var o=Math.min(a,i/2,n/2),s=t+o,l=r+o,u=t+n-o,c=r+i-o;e.moveTo(t,l),s<u&&l<c?(e.arc(s,l,o,-D,-P),e.arc(u,l,o,-P,0),e.arc(u,c,o,0,P),e.arc(s,c,o,P,D)):s<u?(e.moveTo(s,r),e.arc(u,l,o,-P,P),e.arc(s,l,o,P,D+P)):l<c?(e.arc(s,l,o,-D,0),e.arc(s,c,o,0,D)):e.arc(s,l,o,-D,D),e.closePath(),e.moveTo(t,r)}else e.rect(t,r,n,i)},drawPoint:function(e,t,r,n,i,a){var o,s,l,u,c,d=(a||0)*A;if(t&&"object"==typeof t&&("[object HTMLImageElement]"===(o=t.toString())||"[object HTMLCanvasElement]"===o))return e.save(),e.translate(n,i),e.rotate(d),e.drawImage(t,-t.width/2,-t.height/2,t.width,t.height),void e.restore();if(!(isNaN(r)||r<=0)){switch(e.beginPath(),t){default:e.arc(n,i,r,0,O),e.closePath();break;case"triangle":e.moveTo(n+Math.sin(d)*r,i-Math.cos(d)*r),d+=I,e.lineTo(n+Math.sin(d)*r,i-Math.cos(d)*r),d+=I,e.lineTo(n+Math.sin(d)*r,i-Math.cos(d)*r),e.closePath();break;case"rectRounded":u=r-(c=.516*r),s=Math.cos(d+R)*u,l=Math.sin(d+R)*u,e.arc(n-s,i-l,c,d-D,d-P),e.arc(n+l,i-s,c,d-P,d),e.arc(n+s,i+l,c,d,d+P),e.arc(n-l,i+s,c,d+P,d+D),e.closePath();break;case"rect":if(!a){u=Math.SQRT1_2*r,e.rect(n-u,i-u,2*u,2*u);break}d+=R;case"rectRot":s=Math.cos(d)*r,l=Math.sin(d)*r,e.moveTo(n-s,i-l),e.lineTo(n+l,i-s),e.lineTo(n+s,i+l),e.lineTo(n-l,i+s),e.closePath();break;case"crossRot":d+=R;case"cross":s=Math.cos(d)*r,l=Math.sin(d)*r,e.moveTo(n-s,i-l),e.lineTo(n+s,i+l),e.moveTo(n+l,i-s),e.lineTo(n-l,i+s);break;case"star":s=Math.cos(d)*r,l=Math.sin(d)*r,e.moveTo(n-s,i-l),e.lineTo(n+s,i+l),e.moveTo(n+l,i-s),e.lineTo(n-l,i+s),d+=R,s=Math.cos(d)*r,l=Math.sin(d)*r,e.moveTo(n-s,i-l),e.lineTo(n+s,i+l),e.moveTo(n+l,i-s),e.lineTo(n-l,i+s);break;case"line":s=Math.cos(d)*r,l=Math.sin(d)*r,e.moveTo(n-s,i-l),e.lineTo(n+s,i+l);break;case"dash":e.moveTo(n,i),e.lineTo(n+Math.cos(d)*r,i+Math.sin(d)*r)}e.fill(),e.stroke()}},_isPointInArea:function(e,t){var r=1e-6;return e.x>t.left-r&&e.x<t.right+r&&e.y>t.top-r&&e.y<t.bottom+r},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,r,n){var i=r.steppedLine;if(i){if("middle"===i){var a=(t.x+r.x)/2;e.lineTo(a,n?r.y:t.y),e.lineTo(a,n?t.y:r.y)}else"after"===i&&!n||"after"!==i&&n?e.lineTo(t.x,r.y):e.lineTo(r.x,t.y);e.lineTo(r.x,r.y)}else r.tension?e.bezierCurveTo(n?t.controlPointPreviousX:t.controlPointNextX,n?t.controlPointPreviousY:t.controlPointNextY,n?r.controlPointNextX:r.controlPointPreviousX,n?r.controlPointNextY:r.controlPointPreviousY,r.x,r.y):e.lineTo(r.x,r.y)}},C=Y;k.clear=Y.clear,k.drawRoundedRectangle=function(e){e.beginPath(),Y.roundedRect.apply(Y,arguments)};var F={_set:function(e,t){return k.merge(this[e]||(this[e]={}),t)}};F._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var N=F,j=k.valueOrDefault;var H={toLineHeight:function(e,t){var r=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!r||"normal"===r[1])return 1.2*t;switch(e=+r[2],r[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,r,n,i;return k.isObject(e)?(t=+e.top||0,r=+e.right||0,n=+e.bottom||0,i=+e.left||0):t=r=n=i=+e||0,{top:t,right:r,bottom:n,left:i,height:t+n,width:i+r}},_parseFont:function(e){var t=N.global,r=j(e.fontSize,t.defaultFontSize),n={family:j(e.fontFamily,t.defaultFontFamily),lineHeight:k.options.toLineHeight(j(e.lineHeight,t.defaultLineHeight),r),size:r,style:j(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return n.string=function(e){return!e||k.isNullOrUndef(e.size)||k.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(n),n},resolve:function(e,t,r,n){var i,a,o,s=!0;for(i=0,a=e.length;i<a;++i)if(void 0!==(o=e[i])&&(void 0!==t&&"function"==typeof o&&(o=o(t),s=!1),void 0!==r&&k.isArray(o)&&(o=o[r],s=!1),void 0!==o))return n&&!s&&(n.cacheable=!1),o}},B={_factorize:function(e){var t,r=[],n=Math.sqrt(e);for(t=1;t<n;t++)e%t==0&&(r.push(t),r.push(e/t));return n===(0|n)&&r.push(n),r.sort((function(e,t){return e-t})).pop(),r},log10:Math.log10||function(e){var t=Math.log(e)*Math.LOG10E,r=Math.round(t);return e===Math.pow(10,r)?r:t}},U=B;k.log10=B.log10;var W=k,z=E,G=C,V=H,K=U,q={getRtlAdapter:function(e,t,r){return e?function(e,t){return{x:function(r){return e+e+t-r},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}}(t,r):{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}},overrideTextDirection:function(e,t){var r,n;"ltr"!==t&&"rtl"!==t||(n=[(r=e.canvas.style).getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",t,"important"),e.prevTextDirection=n)},restoreTextDirection:function(e){var t=e.prevTextDirection;void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}};W.easing=z,W.canvas=G,W.options=V,W.math=K,W.rtl=q;var $=function(e){W.extend(this,e),this.initialize.apply(this,arguments)};W.extend($.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=W.extend({},e._model)),e._start={},e},transition:function(e){var t=this,r=t._model,n=t._start,i=t._view;return r&&1!==e?(i||(i=t._view={}),n||(n=t._start={}),function(e,t,r,n){var i,a,o,s,l,u,c,d,h,f=Object.keys(r);for(i=0,a=f.length;i<a;++i)if(u=r[o=f[i]],t.hasOwnProperty(o)||(t[o]=u),(s=t[o])!==u&&"_"!==o[0]){if(e.hasOwnProperty(o)||(e[o]=s),(c=typeof u)==typeof(l=e[o]))if("string"===c){if((d=w(l)).valid&&(h=w(u)).valid){t[o]=h.mix(d,n).rgbString();continue}}else if(W.isFinite(l)&&W.isFinite(u)){t[o]=l+(u-l)*n;continue}t[o]=u}}(n,i,r,e),t):(t._view=W.extend({},r),t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return W.isNumber(this._model.x)&&W.isNumber(this._model.y)}}),$.extend=W.inherits;var J=$,X=J.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),Q=X;Object.defineProperty(X.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(X.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),N._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:W.noop,onComplete:W.noop}});var Z={animations:[],request:null,addAnimation:function(e,t,r,n){var i,a,o=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=r,n||(e.animating=!0),i=0,a=o.length;i<a;++i)if(o[i].chart===e)return void(o[i]=t);o.push(t),1===o.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=W.findIndex(this.animations,(function(t){return t.chart===e}));-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=W.requestAnimFrame.call(window,(function(){e.request=null,e.startDigest()})))},startDigest:function(){var e=this;e.advance(),e.animations.length>0&&e.requestAnimationFrame()},advance:function(){for(var e,t,r,n,i=this.animations,a=0;a<i.length;)t=(e=i[a]).chart,r=e.numSteps,n=Math.floor((Date.now()-e.startTime)/e.duration*r)+1,e.currentStep=Math.min(n,r),W.callback(e.render,[t,e],t),W.callback(e.onAnimationProgress,[e],t),e.currentStep>=r?(W.callback(e.onAnimationComplete,[e],t),t.animating=!1,i.splice(a,1)):++a}},ee=W.options.resolve,te=["push","pop","shift","splice","unshift"];function re(e,t){var r=e._chartjs;if(r){var n=r.listeners,i=n.indexOf(t);-1!==i&&n.splice(i,1),n.length>0||(te.forEach((function(t){delete e[t]})),delete e._chartjs)}}var ne=function(e,t){this.initialize(e,t)};W.extend(ne.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var r=this;r.chart=e,r.index=t,r.linkScales(),r.addElements(),r._type=r.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),r=e.chart,n=r.scales,i=e.getDataset(),a=r.options.scales;null!==t.xAxisID&&t.xAxisID in n&&!i.xAxisID||(t.xAxisID=i.xAxisID||a.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in n&&!i.yAxisID||(t.yAxisID=i.yAxisID||a.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&re(this._data,this)},createMetaDataset:function(){var e=this,t=e.datasetElementType;return t&&new t({_chart:e.chart,_datasetIndex:e.index})},createMetaData:function(e){var t=this,r=t.dataElementType;return r&&new r({_chart:t.chart,_datasetIndex:t.index,_index:e})},addElements:function(){var e,t,r=this,n=r.getMeta(),i=r.getDataset().data||[],a=n.data;for(e=0,t=i.length;e<t;++e)a[e]=a[e]||r.createMetaData(e);n.dataset=n.dataset||r.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e,t,r=this,n=r.getDataset(),i=n.data||(n.data=[]);r._data!==i&&(r._data&&re(r._data,r),i&&Object.isExtensible(i)&&(t=r,(e=i)._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),te.forEach((function(t){var r="onData"+t.charAt(0).toUpperCase()+t.slice(1),n=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),i=n.apply(this,t);return W.each(e._chartjs.listeners,(function(e){"function"==typeof e[r]&&e[r].apply(e,t)})),i}})})))),r._data=i),r.resyncElements()},_configure:function(){var e=this;e._config=W.merge(Object.create(null),[e.chart.options.datasets[e._type],e.getDataset()],{merger:function(e,t,r){"_meta"!==e&&"data"!==e&&W._merger(e,t,r)}})},_update:function(e){var t=this;t._configure(),t._cachedDataOpts=null,t.update(e)},update:W.noop,transition:function(e){for(var t=this.getMeta(),r=t.data||[],n=r.length,i=0;i<n;++i)r[i].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],r=t.length,n=0;for(e.dataset&&e.dataset.draw();n<r;++n)t[n].draw()},getStyle:function(e){var t,r=this,n=r.getMeta(),i=n.dataset;return r._configure(),i&&void 0===e?t=r._resolveDatasetElementOptions(i||{}):(e=e||0,t=r._resolveDataElementOptions(n.data[e]||{},e)),!1!==t.fill&&null!==t.fill||(t.backgroundColor=t.borderColor),t},_resolveDatasetElementOptions:function(e,t){var r,n,i,a,o=this,s=o.chart,l=o._config,u=e.custom||{},c=s.options.elements[o.datasetElementType.prototype._type]||{},d=o._datasetElementOptions,h={},f={chart:s,dataset:o.getDataset(),datasetIndex:o.index,hover:t};for(r=0,n=d.length;r<n;++r)i=d[r],a=t?"hover"+i.charAt(0).toUpperCase()+i.slice(1):i,h[i]=ee([u[a],l[a],c[a]],f);return h},_resolveDataElementOptions:function(e,t){var r=this,n=e&&e.custom,i=r._cachedDataOpts;if(i&&!n)return i;var a,o,s,l,u=r.chart,c=r._config,d=u.options.elements[r.dataElementType.prototype._type]||{},h=r._dataElementOptions,f={},p={chart:u,dataIndex:t,dataset:r.getDataset(),datasetIndex:r.index},m={cacheable:!n};if(n=n||{},W.isArray(h))for(o=0,s=h.length;o<s;++o)f[l=h[o]]=ee([n[l],c[l],d[l]],p,t,m);else for(o=0,s=(a=Object.keys(h)).length;o<s;++o)f[l=a[o]]=ee([n[l],c[h[l]],c[l],d[l]],p,t,m);return m.cacheable&&(r._cachedDataOpts=Object.freeze(f)),f},removeHoverStyle:function(e){W.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],r=e._index,n=e.custom||{},i=e._model,a=W.getHoverColor;e.$previousStyle={backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:i.borderWidth},i.backgroundColor=ee([n.hoverBackgroundColor,t.hoverBackgroundColor,a(i.backgroundColor)],void 0,r),i.borderColor=ee([n.hoverBorderColor,t.hoverBorderColor,a(i.borderColor)],void 0,r),i.borderWidth=ee([n.hoverBorderWidth,t.hoverBorderWidth,i.borderWidth],void 0,r)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var e,t,r,n,i,a,o=this.getMeta().dataset,s={};if(o){for(a=o._model,i=this._resolveDatasetElementOptions(o,!0),e=0,t=(n=Object.keys(i)).length;e<t;++e)s[r=n[e]]=a[r],a[r]=i[r];o.$previousStyle=s}},resyncElements:function(){var e=this,t=e.getMeta(),r=e.getDataset().data,n=t.data.length,i=r.length;i<n?t.data.splice(i,n-i):i>n&&e.insertElements(n,i-n)},insertElements:function(e,t){for(var r=0;r<t;++r)this.addElementAndReset(e+r)},onDataPush:function(){var e=arguments.length;this.insertElements(this.getDataset().data.length-e,e)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),ne.extend=W.inherits;var ie=ne,ae=2*Math.PI;function oe(e,t){var r=t.startAngle,n=t.endAngle,i=t.pixelMargin,a=i/t.outerRadius,o=t.x,s=t.y;e.beginPath(),e.arc(o,s,t.outerRadius,r-a,n+a),t.innerRadius>i?(a=i/t.innerRadius,e.arc(o,s,t.innerRadius-i,n+a,r-a,!0)):e.arc(o,s,i,n+Math.PI/2,r-Math.PI/2),e.closePath(),e.clip()}function se(e,t,r){var n="inner"===t.borderAlign;n?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),r.fullCircles&&function(e,t,r,n){var i,a=r.endAngle;for(n&&(r.endAngle=r.startAngle+ae,oe(e,r),r.endAngle=a,r.endAngle===r.startAngle&&r.fullCircles&&(r.endAngle+=ae,r.fullCircles--)),e.beginPath(),e.arc(r.x,r.y,r.innerRadius,r.startAngle+ae,r.startAngle,!0),i=0;i<r.fullCircles;++i)e.stroke();for(e.beginPath(),e.arc(r.x,r.y,t.outerRadius,r.startAngle,r.startAngle+ae),i=0;i<r.fullCircles;++i)e.stroke()}(e,t,r,n),n&&oe(e,r),e.beginPath(),e.arc(r.x,r.y,t.outerRadius,r.startAngle,r.endAngle),e.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),e.closePath(),e.stroke()}N._set("global",{elements:{arc:{backgroundColor:N.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var le=J.extend({_type:"arc",inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var r=this._view;if(r){for(var n=W.getAngleFromPoint(r,{x:e,y:t}),i=n.angle,a=n.distance,o=r.startAngle,s=r.endAngle;s<o;)s+=ae;for(;i>s;)i-=ae;for(;i<o;)i+=ae;var l=i>=o&&i<=s,u=a>=r.innerRadius&&a<=r.outerRadius;return l&&u}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,r=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*r,y:e.y+Math.sin(t)*r}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,r=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*r,y:e.y+Math.sin(t)*r}},draw:function(){var e,t=this._chart.ctx,r=this._view,n="inner"===r.borderAlign?.33:0,i={x:r.x,y:r.y,innerRadius:r.innerRadius,outerRadius:Math.max(r.outerRadius-n,0),pixelMargin:n,startAngle:r.startAngle,endAngle:r.endAngle,fullCircles:Math.floor(r.circumference/ae)};if(t.save(),t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,i.fullCircles){for(i.endAngle=i.startAngle+ae,t.beginPath(),t.arc(i.x,i.y,i.outerRadius,i.startAngle,i.endAngle),t.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),t.closePath(),e=0;e<i.fullCircles;++e)t.fill();i.endAngle=i.startAngle+r.circumference%ae}t.beginPath(),t.arc(i.x,i.y,i.outerRadius,i.startAngle,i.endAngle),t.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),t.closePath(),t.fill(),r.borderWidth&&se(t,r,i),t.restore()}}),ue=W.valueOrDefault,ce=N.global.defaultColor;N._set("global",{elements:{line:{tension:.4,backgroundColor:ce,borderWidth:3,borderColor:ce,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var de=J.extend({_type:"line",draw:function(){var e,t,r,n=this,i=n._view,a=n._chart.ctx,o=i.spanGaps,s=n._children.slice(),l=N.global,u=l.elements.line,c=-1,d=n._loop;if(s.length){if(n._loop){for(e=0;e<s.length;++e)if(t=W.previousItem(s,e),!s[e]._view.skip&&t._view.skip){s=s.slice(e).concat(s.slice(0,e)),d=o;break}d&&s.push(s[0])}for(a.save(),a.lineCap=i.borderCapStyle||u.borderCapStyle,a.setLineDash&&a.setLineDash(i.borderDash||u.borderDash),a.lineDashOffset=ue(i.borderDashOffset,u.borderDashOffset),a.lineJoin=i.borderJoinStyle||u.borderJoinStyle,a.lineWidth=ue(i.borderWidth,u.borderWidth),a.strokeStyle=i.borderColor||l.defaultColor,a.beginPath(),(r=s[0]._view).skip||(a.moveTo(r.x,r.y),c=0),e=1;e<s.length;++e)r=s[e]._view,t=-1===c?W.previousItem(s,e):s[c],r.skip||(c!==e-1&&!o||-1===c?a.moveTo(r.x,r.y):W.canvas.lineTo(a,t._view,r),c=e);d&&a.closePath(),a.stroke(),a.restore()}}}),he=W.valueOrDefault,fe=N.global.defaultColor;function pe(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}N._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:fe,borderColor:fe,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var me=J.extend({_type:"point",inRange:function(e,t){var r=this._view;return!!r&&Math.pow(e-r.x,2)+Math.pow(t-r.y,2)<Math.pow(r.hitRadius+r.radius,2)},inLabelRange:pe,inXRange:pe,inYRange:function(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius},getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,r=this._chart.ctx,n=t.pointStyle,i=t.rotation,a=t.radius,o=t.x,s=t.y,l=N.global,u=l.defaultColor;t.skip||(void 0===e||W.canvas._isPointInArea(t,e))&&(r.strokeStyle=t.borderColor||u,r.lineWidth=he(t.borderWidth,l.elements.point.borderWidth),r.fillStyle=t.backgroundColor||u,W.canvas.drawPoint(r,n,a,o,s,i))}}),ge=N.global.defaultColor;function ve(e){return e&&void 0!==e.width}function ye(e){var t,r,n,i,a;return ve(e)?(a=e.width/2,t=e.x-a,r=e.x+a,n=Math.min(e.y,e.base),i=Math.max(e.y,e.base)):(a=e.height/2,t=Math.min(e.x,e.base),r=Math.max(e.x,e.base),n=e.y-a,i=e.y+a),{left:t,top:n,right:r,bottom:i}}function _e(e,t,r){return e===t?r:e===r?t:e}function be(e,t,r){var n,i,a,o,s=e.borderWidth,l=function(e){var t=e.borderSkipped,r={};return t?(e.horizontal?e.base>e.x&&(t=_e(t,"left","right")):e.base<e.y&&(t=_e(t,"bottom","top")),r[t]=!0,r):r}(e);return W.isObject(s)?(n=+s.top||0,i=+s.right||0,a=+s.bottom||0,o=+s.left||0):n=i=a=o=+s||0,{t:l.top||n<0?0:n>r?r:n,r:l.right||i<0?0:i>t?t:i,b:l.bottom||a<0?0:a>r?r:a,l:l.left||o<0?0:o>t?t:o}}function Me(e,t,r){var n=null===t,i=null===r,a=!(!e||n&&i)&&ye(e);return a&&(n||t>=a.left&&t<=a.right)&&(i||r>=a.top&&r<=a.bottom)}N._set("global",{elements:{rectangle:{backgroundColor:ge,borderColor:ge,borderSkipped:"bottom",borderWidth:0}}});var we=J.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,r=function(e){var t=ye(e),r=t.right-t.left,n=t.bottom-t.top,i=be(e,r/2,n/2);return{outer:{x:t.left,y:t.top,w:r,h:n},inner:{x:t.left+i.l,y:t.top+i.t,w:r-i.l-i.r,h:n-i.t-i.b}}}(t),n=r.outer,i=r.inner;e.fillStyle=t.backgroundColor,e.fillRect(n.x,n.y,n.w,n.h),n.w===i.w&&n.h===i.h||(e.save(),e.beginPath(),e.rect(n.x,n.y,n.w,n.h),e.clip(),e.fillStyle=t.borderColor,e.rect(i.x,i.y,i.w,i.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return Me(this._view,e,t)},inLabelRange:function(e,t){var r=this._view;return ve(r)?Me(r,e,null):Me(r,null,t)},inXRange:function(e){return Me(this._view,e,null)},inYRange:function(e){return Me(this._view,null,e)},getCenterPoint:function(){var e,t,r=this._view;return ve(r)?(e=r.x,t=(r.y+r.base)/2):(e=(r.x+r.base)/2,t=r.y),{x:e,y:t}},getArea:function(){var e=this._view;return ve(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),Te={},Le=le,Se=de,ke=me,xe=we;Te.Arc=Le,Te.Line=Se,Te.Point=ke,Te.Rectangle=xe;var Ee=W._deprecated,De=W.valueOrDefault;function Ae(e,t,r){var n,i,a=r.barThickness,o=t.stackCount,s=t.pixels[e],l=W.isNullOrUndef(a)?function(e,t){var r,n,i,a,o=e._length;for(i=1,a=t.length;i<a;++i)o=Math.min(o,Math.abs(t[i]-t[i-1]));for(i=0,a=e.getTicks().length;i<a;++i)n=e.getPixelForTick(i),o=i>0?Math.min(o,Math.abs(n-r)):o,r=n;return o}(t.scale,t.pixels):-1;return W.isNullOrUndef(a)?(n=l*r.categoryPercentage,i=r.barPercentage):(n=a*o,i=1),{chunk:n/o,ratio:i,start:s-n/2}}N._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),N._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var Oe=ie.extend({dataElementType:Te.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,r=this;ie.prototype.initialize.apply(r,arguments),(e=r.getMeta()).stack=r.getDataset().stack,e.bar=!0,t=r._getIndexScale().options,Ee("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Ee("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Ee("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Ee("bar chart",r._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Ee("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,r,n=this,i=n.getMeta().data;for(n._ruler=n.getRuler(),t=0,r=i.length;t<r;++t)n.updateElement(i[t],t,e)},updateElement:function(e,t,r){var n=this,i=n.getMeta(),a=n.getDataset(),o=n._resolveDataElementOptions(e,t);e._xScale=n.getScaleForId(i.xAxisID),e._yScale=n.getScaleForId(i.yAxisID),e._datasetIndex=n.index,e._index=t,e._model={backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderSkipped:o.borderSkipped,borderWidth:o.borderWidth,datasetLabel:a.label,label:n.chart.data.labels[t]},W.isArray(a.data[t])&&(e._model.borderSkipped=null),n._updateElementGeometry(e,t,r,o),e.pivot()},_updateElementGeometry:function(e,t,r,n){var i=this,a=e._model,o=i._getValueScale(),s=o.getBasePixel(),l=o.isHorizontal(),u=i._ruler||i.getRuler(),c=i.calculateBarValuePixels(i.index,t,n),d=i.calculateBarIndexPixels(i.index,t,u,n);a.horizontal=l,a.base=r?s:c.base,a.x=l?r?s:c.head:d.center,a.y=l?d.center:r?s:c.head,a.height=l?d.size:void 0,a.width=l?void 0:d.size},_getStacks:function(e){var t,r,n=this._getIndexScale(),i=n._getMatchingVisibleMetas(this._type),a=n.options.stacked,o=i.length,s=[];for(t=0;t<o&&(r=i[t],(!1===a||-1===s.indexOf(r.stack)||void 0===a&&void 0===r.stack)&&s.push(r.stack),r.index!==e);++t);return s},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var r=this._getStacks(e),n=void 0!==t?r.indexOf(t):-1;return-1===n?r.length-1:n},getRuler:function(){var e,t,r=this,n=r._getIndexScale(),i=[];for(e=0,t=r.getMeta().data.length;e<t;++e)i.push(n.getPixelForValue(null,e,r.index));return{pixels:i,start:n._startPixel,end:n._endPixel,stackCount:r.getStackCount(),scale:n}},calculateBarValuePixels:function(e,t,r){var n,i,a,o,s,l,u,c=this,d=c.chart,h=c._getValueScale(),f=h.isHorizontal(),p=d.data.datasets,m=h._getMatchingVisibleMetas(c._type),g=h._parseValue(p[e].data[t]),v=r.minBarLength,y=h.options.stacked,_=c.getMeta().stack,b=void 0===g.start?0:g.max>=0&&g.min>=0?g.min:g.max,M=void 0===g.start?g.end:g.max>=0&&g.min>=0?g.max-g.min:g.min-g.max,w=m.length;if(y||void 0===y&&void 0!==_)for(n=0;n<w&&(i=m[n]).index!==e;++n)i.stack===_&&(a=void 0===(u=h._parseValue(p[i.index].data[t])).start?u.end:u.min>=0&&u.max>=0?u.max:u.min,(g.min<0&&a<0||g.max>=0&&a>0)&&(b+=a));return o=h.getPixelForValue(b),l=(s=h.getPixelForValue(b+M))-o,void 0!==v&&Math.abs(l)<v&&(l=v,s=M>=0&&!f||M<0&&f?o-v:o+v),{size:l,base:o,head:s,center:s+l/2}},calculateBarIndexPixels:function(e,t,r,n){var i="flex"===n.barThickness?function(e,t,r){var n,i=t.pixels,a=i[e],o=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null,l=r.categoryPercentage;return null===o&&(o=a-(null===s?t.end-t.start:s-a)),null===s&&(s=a+a-o),n=a-(a-Math.min(o,s))/2*l,{chunk:Math.abs(s-o)/2*l/t.stackCount,ratio:r.barPercentage,start:n}}(t,r,n):Ae(t,r,n),a=this.getStackIndex(e,this.getMeta().stack),o=i.start+i.chunk*a+i.chunk/2,s=Math.min(De(n.maxBarThickness,1/0),i.chunk*i.ratio);return{base:o-s/2,head:o+s/2,center:o,size:s}},draw:function(){var e=this,t=e.chart,r=e._getValueScale(),n=e.getMeta().data,i=e.getDataset(),a=n.length,o=0;for(W.canvas.clipArea(t.ctx,t.chartArea);o<a;++o){var s=r._parseValue(i.data[o]);isNaN(s.min)||isNaN(s.max)||n[o].draw()}W.canvas.unclipArea(t.ctx)},_resolveDataElementOptions:function(){var e=this,t=W.extend({},ie.prototype._resolveDataElementOptions.apply(e,arguments)),r=e._getIndexScale().options,n=e._getValueScale().options;return t.barPercentage=De(r.barPercentage,t.barPercentage),t.barThickness=De(r.barThickness,t.barThickness),t.categoryPercentage=De(r.categoryPercentage,t.categoryPercentage),t.maxBarThickness=De(r.maxBarThickness,t.maxBarThickness),t.minBarLength=De(n.minBarLength,t.minBarLength),t}}),Pe=W.valueOrDefault,Re=W.options.resolve;N._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var r=t.datasets[e.datasetIndex].label||"",n=t.datasets[e.datasetIndex].data[e.index];return r+": ("+e.xLabel+", "+e.yLabel+", "+n.r+")"}}}});var Ie=ie.extend({dataElementType:Te.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(e){var t=this,r=t.getMeta().data;W.each(r,(function(r,n){t.updateElement(r,n,e)}))},updateElement:function(e,t,r){var n=this,i=n.getMeta(),a=e.custom||{},o=n.getScaleForId(i.xAxisID),s=n.getScaleForId(i.yAxisID),l=n._resolveDataElementOptions(e,t),u=n.getDataset().data[t],c=n.index,d=r?o.getPixelForDecimal(.5):o.getPixelForValue("object"==typeof u?u:NaN,t,c),h=r?s.getBasePixel():s.getPixelForValue(u,t,c);e._xScale=o,e._yScale=s,e._options=l,e._datasetIndex=c,e._index=t,e._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,rotation:l.rotation,radius:r?0:l.radius,skip:a.skip||isNaN(d)||isNaN(h),x:d,y:h},e.pivot()},setHoverStyle:function(e){var t=e._model,r=e._options,n=W.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Pe(r.hoverBackgroundColor,n(r.backgroundColor)),t.borderColor=Pe(r.hoverBorderColor,n(r.borderColor)),t.borderWidth=Pe(r.hoverBorderWidth,r.borderWidth),t.radius=r.radius+r.hoverRadius},_resolveDataElementOptions:function(e,t){var r=this,n=r.chart,i=r.getDataset(),a=e.custom||{},o=i.data[t]||{},s=ie.prototype._resolveDataElementOptions.apply(r,arguments),l={chart:n,dataIndex:t,dataset:i,datasetIndex:r.index};return r._cachedDataOpts===s&&(s=W.extend({},s)),s.radius=Re([a.radius,o.r,r._config.radius,n.options.elements.point.radius],l,t),s}}),Ye=W.valueOrDefault,Ce=Math.PI,Fe=2*Ce,Ne=Ce/2;N._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t,r,n,i=document.createElement("ul"),a=e.data,o=a.datasets,s=a.labels;if(i.setAttribute("class",e.id+"-legend"),o.length)for(t=0,r=o[0].data.length;t<r;++t)(n=i.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[0].backgroundColor[t],s[t]&&n.appendChild(document.createTextNode(s[t]));return i.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(r,n){var i=e.getDatasetMeta(0),a=i.controller.getStyle(n);return{text:r,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,hidden:isNaN(t.datasets[0].data[n])||i.data[n].hidden,index:n}})):[]}},onClick:function(e,t){var r,n,i,a=t.index,o=this.chart;for(r=0,n=(o.data.datasets||[]).length;r<n;++r)(i=o.getDatasetMeta(r)).data[a]&&(i.data[a].hidden=!i.data[a].hidden);o.update()}},cutoutPercentage:50,rotation:-Ne,circumference:Fe,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var r=t.labels[e.index],n=": "+t.datasets[e.datasetIndex].data[e.index];return W.isArray(r)?(r=r.slice())[0]+=n:r+=n,r}}}});var je=ie.extend({dataElementType:Te.Arc,linkScales:W.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(e){for(var t=0,r=0;r<e;++r)this.chart.isDatasetVisible(r)&&++t;return t},update:function(e){var t,r,n,i,a=this,o=a.chart,s=o.chartArea,l=o.options,u=1,c=1,d=0,h=0,f=a.getMeta(),p=f.data,m=l.cutoutPercentage/100||0,g=l.circumference,v=a._getRingWeight(a.index);if(g<Fe){var y=l.rotation%Fe,_=(y+=y>=Ce?-Fe:y<-Ce?Fe:0)+g,b=Math.cos(y),M=Math.sin(y),w=Math.cos(_),T=Math.sin(_),L=y<=0&&_>=0||_>=Fe,S=y<=Ne&&_>=Ne||_>=Fe+Ne,k=y<=-Ne&&_>=-Ne||_>=Ce+Ne,x=y===-Ce||_>=Ce?-1:Math.min(b,b*m,w,w*m),E=k?-1:Math.min(M,M*m,T,T*m),D=L?1:Math.max(b,b*m,w,w*m),A=S?1:Math.max(M,M*m,T,T*m);u=(D-x)/2,c=(A-E)/2,d=-(D+x)/2,h=-(A+E)/2}for(n=0,i=p.length;n<i;++n)p[n]._options=a._resolveDataElementOptions(p[n],n);for(o.borderWidth=a.getMaxBorderWidth(),t=(s.right-s.left-o.borderWidth)/u,r=(s.bottom-s.top-o.borderWidth)/c,o.outerRadius=Math.max(Math.min(t,r)/2,0),o.innerRadius=Math.max(o.outerRadius*m,0),o.radiusLength=(o.outerRadius-o.innerRadius)/(a._getVisibleDatasetWeightTotal()||1),o.offsetX=d*o.outerRadius,o.offsetY=h*o.outerRadius,f.total=a.calculateTotal(),a.outerRadius=o.outerRadius-o.radiusLength*a._getRingWeightOffset(a.index),a.innerRadius=Math.max(a.outerRadius-o.radiusLength*v,0),n=0,i=p.length;n<i;++n)a.updateElement(p[n],n,e)},updateElement:function(e,t,r){var n=this,i=n.chart,a=i.chartArea,o=i.options,s=o.animation,l=(a.left+a.right)/2,u=(a.top+a.bottom)/2,c=o.rotation,d=o.rotation,h=n.getDataset(),f=r&&s.animateRotate||e.hidden?0:n.calculateCircumference(h.data[t])*(o.circumference/Fe),p=r&&s.animateScale?0:n.innerRadius,m=r&&s.animateScale?0:n.outerRadius,g=e._options||{};W.extend(e,{_datasetIndex:n.index,_index:t,_model:{backgroundColor:g.backgroundColor,borderColor:g.borderColor,borderWidth:g.borderWidth,borderAlign:g.borderAlign,x:l+i.offsetX,y:u+i.offsetY,startAngle:c,endAngle:d,circumference:f,outerRadius:m,innerRadius:p,label:W.valueAtIndexOrDefault(h.label,t,i.data.labels[t])}});var v=e._model;r&&s.animateRotate||(v.startAngle=0===t?o.rotation:n.getMeta().data[t-1]._model.endAngle,v.endAngle=v.startAngle+v.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),r=this.getMeta(),n=0;return W.each(r.data,(function(r,i){e=t.data[i],isNaN(e)||r.hidden||(n+=Math.abs(e))})),n},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?Fe*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,r,n,i,a,o,s,l,u=0,c=this.chart;if(!e)for(t=0,r=c.data.datasets.length;t<r;++t)if(c.isDatasetVisible(t)){e=(n=c.getDatasetMeta(t)).data,t!==this.index&&(a=n.controller);break}if(!e)return 0;for(t=0,r=e.length;t<r;++t)i=e[t],a?(a._configure(),o=a._resolveDataElementOptions(i,t)):o=i._options,"inner"!==o.borderAlign&&(s=o.borderWidth,u=(l=o.hoverBorderWidth)>(u=s>u?s:u)?l:u);return u},setHoverStyle:function(e){var t=e._model,r=e._options,n=W.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=Ye(r.hoverBackgroundColor,n(r.backgroundColor)),t.borderColor=Ye(r.hoverBorderColor,n(r.borderColor)),t.borderWidth=Ye(r.hoverBorderWidth,r.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(t+=this._getRingWeight(r));return t},_getRingWeight:function(e){return Math.max(Ye(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});N._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),N._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var He=Oe.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),Be=W.valueOrDefault,Ue=W.options.resolve,We=W.canvas._isPointInArea;function ze(e,t){var r=e&&e.options.ticks||{},n=r.reverse,i=void 0===r.min?t:0,a=void 0===r.max?t:0;return{start:n?a:i,end:n?i:a}}function Ge(e,t,r){var n=r/2,i=ze(e,n),a=ze(t,n);return{top:a.end,right:i.end,bottom:a.start,left:i.start}}function Ve(e){var t,r,n,i;return W.isObject(e)?(t=e.top,r=e.right,n=e.bottom,i=e.left):t=r=n=i=e,{top:t,right:r,bottom:n,left:i}}N._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var Ke=ie.extend({datasetElementType:Te.Line,dataElementType:Te.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(e){var t,r,n=this,i=n.getMeta(),a=i.dataset,o=i.data||[],s=n.chart.options,l=n._config,u=n._showLine=Be(l.showLine,s.showLines);for(n._xScale=n.getScaleForId(i.xAxisID),n._yScale=n.getScaleForId(i.yAxisID),u&&(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),a._scale=n._yScale,a._datasetIndex=n.index,a._children=o,a._model=n._resolveDatasetElementOptions(a),a.pivot()),t=0,r=o.length;t<r;++t)n.updateElement(o[t],t,e);for(u&&0!==a._model.tension&&n.updateBezierControlPoints(),t=0,r=o.length;t<r;++t)o[t].pivot()},updateElement:function(e,t,r){var n,i,a=this,o=a.getMeta(),s=e.custom||{},l=a.getDataset(),u=a.index,c=l.data[t],d=a._xScale,h=a._yScale,f=o.dataset._model,p=a._resolveDataElementOptions(e,t);n=d.getPixelForValue("object"==typeof c?c:NaN,t,u),i=r?h.getBasePixel():a.calculatePointY(c,t,u),e._xScale=d,e._yScale=h,e._options=p,e._datasetIndex=u,e._index=t,e._model={x:n,y:i,skip:s.skip||isNaN(n)||isNaN(i),radius:p.radius,pointStyle:p.pointStyle,rotation:p.rotation,backgroundColor:p.backgroundColor,borderColor:p.borderColor,borderWidth:p.borderWidth,tension:Be(s.tension,f?f.tension:0),steppedLine:!!f&&f.steppedLine,hitRadius:p.hitRadius}},_resolveDatasetElementOptions:function(e){var t=this,r=t._config,n=e.custom||{},i=t.chart.options,a=i.elements.line,o=ie.prototype._resolveDatasetElementOptions.apply(t,arguments);return o.spanGaps=Be(r.spanGaps,i.spanGaps),o.tension=Be(r.lineTension,a.tension),o.steppedLine=Ue([n.steppedLine,r.steppedLine,a.stepped]),o.clip=Ve(Be(r.clip,Ge(t._xScale,t._yScale,o.borderWidth))),o},calculatePointY:function(e,t,r){var n,i,a,o,s,l,u,c=this.chart,d=this._yScale,h=0,f=0;if(d.options.stacked){for(s=+d.getRightValue(e),u=(l=c._getSortedVisibleDatasetMetas()).length,n=0;n<u&&(a=l[n]).index!==r;++n)i=c.data.datasets[a.index],"line"===a.type&&a.yAxisID===d.id&&((o=+d.getRightValue(i.data[t]))<0?f+=o||0:h+=o||0);return s<0?d.getPixelForValue(f+s):d.getPixelForValue(h+s)}return d.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,r,n,i=this.chart,a=this.getMeta(),o=a.dataset._model,s=i.chartArea,l=a.data||[];function u(e,t,r){return Math.max(Math.min(e,r),t)}if(o.spanGaps&&(l=l.filter((function(e){return!e._model.skip}))),"monotone"===o.cubicInterpolationMode)W.splineCurveMonotone(l);else for(e=0,t=l.length;e<t;++e)r=l[e]._model,n=W.splineCurve(W.previousItem(l,e)._model,r,W.nextItem(l,e)._model,o.tension),r.controlPointPreviousX=n.previous.x,r.controlPointPreviousY=n.previous.y,r.controlPointNextX=n.next.x,r.controlPointNextY=n.next.y;if(i.options.elements.line.capBezierPoints)for(e=0,t=l.length;e<t;++e)r=l[e]._model,We(r,s)&&(e>0&&We(l[e-1]._model,s)&&(r.controlPointPreviousX=u(r.controlPointPreviousX,s.left,s.right),r.controlPointPreviousY=u(r.controlPointPreviousY,s.top,s.bottom)),e<l.length-1&&We(l[e+1]._model,s)&&(r.controlPointNextX=u(r.controlPointNextX,s.left,s.right),r.controlPointNextY=u(r.controlPointNextY,s.top,s.bottom)))},draw:function(){var e,t=this,r=t.chart,n=t.getMeta(),i=n.data||[],a=r.chartArea,o=r.canvas,s=0,l=i.length;for(t._showLine&&(e=n.dataset._model.clip,W.canvas.clipArea(r.ctx,{left:!1===e.left?0:a.left-e.left,right:!1===e.right?o.width:a.right+e.right,top:!1===e.top?0:a.top-e.top,bottom:!1===e.bottom?o.height:a.bottom+e.bottom}),n.dataset.draw(),W.canvas.unclipArea(r.ctx));s<l;++s)i[s].draw(a)},setHoverStyle:function(e){var t=e._model,r=e._options,n=W.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Be(r.hoverBackgroundColor,n(r.backgroundColor)),t.borderColor=Be(r.hoverBorderColor,n(r.borderColor)),t.borderWidth=Be(r.hoverBorderWidth,r.borderWidth),t.radius=Be(r.hoverRadius,r.radius)}}),qe=W.options.resolve;N._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t,r,n,i=document.createElement("ul"),a=e.data,o=a.datasets,s=a.labels;if(i.setAttribute("class",e.id+"-legend"),o.length)for(t=0,r=o[0].data.length;t<r;++t)(n=i.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[0].backgroundColor[t],s[t]&&n.appendChild(document.createTextNode(s[t]));return i.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(r,n){var i=e.getDatasetMeta(0),a=i.controller.getStyle(n);return{text:r,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,hidden:isNaN(t.datasets[0].data[n])||i.data[n].hidden,index:n}})):[]}},onClick:function(e,t){var r,n,i,a=t.index,o=this.chart;for(r=0,n=(o.data.datasets||[]).length;r<n;++r)(i=o.getDatasetMeta(r)).data[a].hidden=!i.data[a].hidden;o.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var $e=ie.extend({dataElementType:Te.Arc,linkScales:W.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,r,n,i=this,a=i.getDataset(),o=i.getMeta(),s=i.chart.options.startAngle||0,l=i._starts=[],u=i._angles=[],c=o.data;for(i._updateRadius(),o.count=i.countVisibleElements(),t=0,r=a.data.length;t<r;t++)l[t]=s,n=i._computeAngle(t),u[t]=n,s+=n;for(t=0,r=c.length;t<r;++t)c[t]._options=i._resolveDataElementOptions(c[t],t),i.updateElement(c[t],t,e)},_updateRadius:function(){var e=this,t=e.chart,r=t.chartArea,n=t.options,i=Math.min(r.right-r.left,r.bottom-r.top);t.outerRadius=Math.max(i/2,0),t.innerRadius=Math.max(n.cutoutPercentage?t.outerRadius/100*n.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,r){var n=this,i=n.chart,a=n.getDataset(),o=i.options,s=o.animation,l=i.scale,u=i.data.labels,c=l.xCenter,d=l.yCenter,h=o.startAngle,f=e.hidden?0:l.getDistanceFromCenterForValue(a.data[t]),p=n._starts[t],m=p+(e.hidden?0:n._angles[t]),g=s.animateScale?0:l.getDistanceFromCenterForValue(a.data[t]),v=e._options||{};W.extend(e,{_datasetIndex:n.index,_index:t,_scale:l,_model:{backgroundColor:v.backgroundColor,borderColor:v.borderColor,borderWidth:v.borderWidth,borderAlign:v.borderAlign,x:c,y:d,innerRadius:0,outerRadius:r?g:f,startAngle:r&&s.animateRotate?h:p,endAngle:r&&s.animateRotate?h:m,label:W.valueAtIndexOrDefault(u,t,u[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),r=0;return W.each(t.data,(function(t,n){isNaN(e.data[n])||t.hidden||r++})),r},setHoverStyle:function(e){var t=e._model,r=e._options,n=W.getHoverColor,i=W.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=i(r.hoverBackgroundColor,n(r.backgroundColor)),t.borderColor=i(r.hoverBorderColor,n(r.borderColor)),t.borderWidth=i(r.hoverBorderWidth,r.borderWidth)},_computeAngle:function(e){var t=this,r=this.getMeta().count,n=t.getDataset(),i=t.getMeta();if(isNaN(n.data[e])||i.data[e].hidden)return 0;var a={chart:t.chart,dataIndex:e,dataset:n,datasetIndex:t.index};return qe([t.chart.options.elements.arc.angle,2*Math.PI/r],a,e)}});N._set("pie",W.clone(N.doughnut)),N._set("pie",{cutoutPercentage:0});var Je=je,Xe=W.valueOrDefault;N._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var Qe=ie.extend({datasetElementType:Te.Line,dataElementType:Te.Point,linkScales:W.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,r,n=this,i=n.getMeta(),a=i.dataset,o=i.data||[],s=n.chart.scale,l=n._config;for(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),a._scale=s,a._datasetIndex=n.index,a._children=o,a._loop=!0,a._model=n._resolveDatasetElementOptions(a),a.pivot(),t=0,r=o.length;t<r;++t)n.updateElement(o[t],t,e);for(n.updateBezierControlPoints(),t=0,r=o.length;t<r;++t)o[t].pivot()},updateElement:function(e,t,r){var n=this,i=e.custom||{},a=n.getDataset(),o=n.chart.scale,s=o.getPointPositionForValue(t,a.data[t]),l=n._resolveDataElementOptions(e,t),u=n.getMeta().dataset._model,c=r?o.xCenter:s.x,d=r?o.yCenter:s.y;e._scale=o,e._options=l,e._datasetIndex=n.index,e._index=t,e._model={x:c,y:d,skip:i.skip||isNaN(c)||isNaN(d),radius:l.radius,pointStyle:l.pointStyle,rotation:l.rotation,backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,tension:Xe(i.tension,u?u.tension:0),hitRadius:l.hitRadius}},_resolveDatasetElementOptions:function(){var e=this,t=e._config,r=e.chart.options,n=ie.prototype._resolveDatasetElementOptions.apply(e,arguments);return n.spanGaps=Xe(t.spanGaps,r.spanGaps),n.tension=Xe(t.lineTension,r.elements.line.tension),n},updateBezierControlPoints:function(){var e,t,r,n,i=this.getMeta(),a=this.chart.chartArea,o=i.data||[];function s(e,t,r){return Math.max(Math.min(e,r),t)}for(i.dataset._model.spanGaps&&(o=o.filter((function(e){return!e._model.skip}))),e=0,t=o.length;e<t;++e)r=o[e]._model,n=W.splineCurve(W.previousItem(o,e,!0)._model,r,W.nextItem(o,e,!0)._model,r.tension),r.controlPointPreviousX=s(n.previous.x,a.left,a.right),r.controlPointPreviousY=s(n.previous.y,a.top,a.bottom),r.controlPointNextX=s(n.next.x,a.left,a.right),r.controlPointNextY=s(n.next.y,a.top,a.bottom)},setHoverStyle:function(e){var t=e._model,r=e._options,n=W.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Xe(r.hoverBackgroundColor,n(r.backgroundColor)),t.borderColor=Xe(r.hoverBorderColor,n(r.borderColor)),t.borderWidth=Xe(r.hoverBorderWidth,r.borderWidth),t.radius=Xe(r.hoverRadius,r.radius)}});N._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),N._set("global",{datasets:{scatter:{showLine:!1}}});var Ze={bar:Oe,bubble:Ie,doughnut:je,horizontalBar:He,line:Ke,polarArea:$e,pie:Je,radar:Qe,scatter:Ke};function et(e,t){return e.native?{x:e.x,y:e.y}:W.getRelativePosition(e,t)}function tt(e,t){var r,n,i,a,o,s,l=e._getSortedVisibleDatasetMetas();for(n=0,a=l.length;n<a;++n)for(i=0,o=(r=l[n].data).length;i<o;++i)(s=r[i])._view.skip||t(s)}function rt(e,t){var r=[];return tt(e,(function(e){e.inRange(t.x,t.y)&&r.push(e)})),r}function nt(e,t,r,n){var i=Number.POSITIVE_INFINITY,a=[];return tt(e,(function(e){if(!r||e.inRange(t.x,t.y)){var o=e.getCenterPoint(),s=n(t,o);s<i?(a=[e],i=s):s===i&&a.push(e)}})),a}function it(e){var t=-1!==e.indexOf("x"),r=-1!==e.indexOf("y");return function(e,n){var i=t?Math.abs(e.x-n.x):0,a=r?Math.abs(e.y-n.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(a,2))}}function at(e,t,r){var n=et(t,e);r.axis=r.axis||"x";var i=it(r.axis),a=r.intersect?rt(e,n):nt(e,n,!1,i),o=[];return a.length?(e._getSortedVisibleDatasetMetas().forEach((function(e){var t=e.data[a[0]._index];t&&!t._view.skip&&o.push(t)})),o):[]}var ot={modes:{single:function(e,t){var r=et(t,e),n=[];return tt(e,(function(e){if(e.inRange(r.x,r.y))return n.push(e),n})),n.slice(0,1)},label:at,index:at,dataset:function(e,t,r){var n=et(t,e);r.axis=r.axis||"xy";var i=it(r.axis),a=r.intersect?rt(e,n):nt(e,n,!1,i);return a.length>0&&(a=e.getDatasetMeta(a[0]._datasetIndex).data),a},"x-axis":function(e,t){return at(e,t,{intersect:!1})},point:function(e,t){return rt(e,et(t,e))},nearest:function(e,t,r){var n=et(t,e);r.axis=r.axis||"xy";var i=it(r.axis);return nt(e,n,r.intersect,i)},x:function(e,t,r){var n=et(t,e),i=[],a=!1;return tt(e,(function(e){e.inXRange(n.x)&&i.push(e),e.inRange(n.x,n.y)&&(a=!0)})),r.intersect&&!a&&(i=[]),i},y:function(e,t,r){var n=et(t,e),i=[],a=!1;return tt(e,(function(e){e.inYRange(n.y)&&i.push(e),e.inRange(n.x,n.y)&&(a=!0)})),r.intersect&&!a&&(i=[]),i}}},st=W.extend;function lt(e,t){return W.where(e,(function(e){return e.pos===t}))}function ut(e,t){return e.sort((function(e,r){var n=t?r:e,i=t?e:r;return n.weight===i.weight?n.index-i.index:n.weight-i.weight}))}function ct(e,t,r,n){return Math.max(e[r],t[r])+Math.max(e[n],t[n])}function dt(e,t,r){var n,i,a=r.box,o=e.maxPadding;if(r.size&&(e[r.pos]-=r.size),r.size=r.horizontal?a.height:a.width,e[r.pos]+=r.size,a.getPadding){var s=a.getPadding();o.top=Math.max(o.top,s.top),o.left=Math.max(o.left,s.left),o.bottom=Math.max(o.bottom,s.bottom),o.right=Math.max(o.right,s.right)}if(n=t.outerWidth-ct(o,e,"left","right"),i=t.outerHeight-ct(o,e,"top","bottom"),n!==e.w||i!==e.h){e.w=n,e.h=i;var l=r.horizontal?[n,e.w]:[i,e.h];return!(l[0]===l[1]||isNaN(l[0])&&isNaN(l[1]))}}function ht(e,t){var r,n=t.maxPadding;return r={left:0,top:0,right:0,bottom:0},(e?["left","right"]:["top","bottom"]).forEach((function(e){r[e]=Math.max(t[e],n[e])})),r}function ft(e,t,r){var n,i,a,o,s,l,u=[];for(n=0,i=e.length;n<i;++n)(o=(a=e[n]).box).update(a.width||t.w,a.height||t.h,ht(a.horizontal,t)),dt(t,r,a)&&(l=!0,u.length&&(s=!0)),o.fullWidth||u.push(a);return s&&ft(u,t,r)||l}function pt(e,t,r){var n,i,a,o,s=r.padding,l=t.x,u=t.y;for(n=0,i=e.length;n<i;++n)o=(a=e[n]).box,a.horizontal?(o.left=o.fullWidth?s.left:t.left,o.right=o.fullWidth?r.outerWidth-s.right:t.left+t.w,o.top=u,o.bottom=u+o.height,o.width=o.right-o.left,u=o.bottom):(o.left=l,o.right=l+o.width,o.top=t.top,o.bottom=t.top+t.h,o.height=o.bottom-o.top,l=o.right);t.x=l,t.y=u}N._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var mt,gt={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(){t.draw.apply(t,arguments)}}]},e.boxes.push(t)},removeBox:function(e,t){var r=e.boxes?e.boxes.indexOf(t):-1;-1!==r&&e.boxes.splice(r,1)},configure:function(e,t,r){for(var n,i=["fullWidth","position","weight"],a=i.length,o=0;o<a;++o)n=i[o],r.hasOwnProperty(n)&&(t[n]=r[n])},update:function(e,t,r){if(e){var n=e.options.layout||{},i=W.options.toPadding(n.padding),a=t-i.width,o=r-i.height,s=function(e){var t=function(e){var t,r,n,i=[];for(t=0,r=(e||[]).length;t<r;++t)n=e[t],i.push({index:t,box:n,pos:n.position,horizontal:n.isHorizontal(),weight:n.weight});return i}(e),r=ut(lt(t,"left"),!0),n=ut(lt(t,"right")),i=ut(lt(t,"top"),!0),a=ut(lt(t,"bottom"));return{leftAndTop:r.concat(i),rightAndBottom:n.concat(a),chartArea:lt(t,"chartArea"),vertical:r.concat(n),horizontal:i.concat(a)}}(e.boxes),l=s.vertical,u=s.horizontal,c=Object.freeze({outerWidth:t,outerHeight:r,padding:i,availableWidth:a,vBoxMaxWidth:a/2/l.length,hBoxMaxHeight:o/2}),d=st({maxPadding:st({},i),w:a,h:o,x:i.left,y:i.top},i);(function(e,t){var r,n,i;for(r=0,n=e.length;r<n;++r)(i=e[r]).width=i.horizontal?i.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,i.height=i.horizontal&&t.hBoxMaxHeight})(l.concat(u),c),ft(l,d,c),ft(u,d,c)&&ft(l,d,c),function(e){var t=e.maxPadding;function r(r){var n=Math.max(t[r]-e[r],0);return e[r]+=n,n}e.y+=r("top"),e.x+=r("left"),r("right"),r("bottom")}(d),pt(s.leftAndTop,d,c),d.x+=d.w,d.y+=d.h,pt(s.rightAndBottom,d,c),e.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h},W.each(s.chartArea,(function(t){var r=t.box;st(r,e.chartArea),r.update(d.w,d.h)}))}}},vt=(mt=Object.freeze({__proto__:null,default:"/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n"}))&&mt.default||mt,yt="$chartjs",_t="chartjs-",bt=_t+"size-monitor",Mt=_t+"render-monitor",wt=_t+"render-animation",Tt=["animationstart","webkitAnimationStart"],Lt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function St(e,t){var r=W.getStyle(e,t),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?Number(n[1]):void 0}var kt=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}()&&{passive:!0};function xt(e,t,r){e.addEventListener(t,r,kt)}function Et(e,t,r){e.removeEventListener(t,r,kt)}function Dt(e,t,r,n,i){return{type:e,chart:t,native:i||null,x:void 0!==r?r:null,y:void 0!==n?n:null}}function At(e){var t=document.createElement("div");return t.className=e||"",t}function Ot(e,t,r){var n,i,a,o,s=e[yt]||(e[yt]={}),l=s.resizer=function(e){var t=1e6,r=At(bt),n=At(bt+"-expand"),i=At(bt+"-shrink");n.appendChild(At()),i.appendChild(At()),r.appendChild(n),r.appendChild(i),r._reset=function(){n.scrollLeft=t,n.scrollTop=t,i.scrollLeft=t,i.scrollTop=t};var a=function(){r._reset(),e()};return xt(n,"scroll",a.bind(n,"expand")),xt(i,"scroll",a.bind(i,"shrink")),r}((n=function(){if(s.resizer){var n=r.options.maintainAspectRatio&&e.parentNode,i=n?n.clientWidth:0;t(Dt("resize",r)),n&&n.clientWidth<i&&r.canvas&&t(Dt("resize",r))}},a=!1,o=[],function(){o=Array.prototype.slice.call(arguments),i=i||this,a||(a=!0,W.requestAnimFrame.call(window,(function(){a=!1,n.apply(i,o)})))}));!function(e,t){var r=e[yt]||(e[yt]={}),n=r.renderProxy=function(e){e.animationName===wt&&t()};W.each(Tt,(function(t){xt(e,t,n)})),r.reflow=!!e.offsetParent,e.classList.add(Mt)}(e,(function(){if(s.resizer){var t=e.parentNode;t&&t!==l.parentNode&&t.insertBefore(l,t.firstChild),l._reset()}}))}function Pt(e){var t=e[yt]||{},r=t.resizer;delete t.resizer,function(e){var t=e[yt]||{},r=t.renderProxy;r&&(W.each(Tt,(function(t){Et(e,t,r)})),delete t.renderProxy),e.classList.remove(Mt)}(e),r&&r.parentNode&&r.parentNode.removeChild(r)}var Rt={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(e){if(!this.disableCSSInjection){var t=e.getRootNode?e.getRootNode():document;!function(e,t){var r=e[yt]||(e[yt]={});if(!r.containsStyles){r.containsStyles=!0,t="/* Chart.js */\n"+t;var n=document.createElement("style");n.setAttribute("type","text/css"),n.appendChild(document.createTextNode(t)),e.appendChild(n)}}(t.host?t:document.head,vt)}},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(this._ensureLoaded(e),function(e,t){var r=e.style,n=e.getAttribute("height"),i=e.getAttribute("width");if(e[yt]={initial:{height:n,width:i,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",null===i||""===i){var a=St(e,"width");void 0!==a&&(e.width=a)}if(null===n||""===n)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var o=St(e,"height");void 0!==a&&(e.height=o)}}(e,t),r):null},releaseContext:function(e){var t=e.canvas;if(t[yt]){var r=t[yt].initial;["height","width"].forEach((function(e){var n=r[e];W.isNullOrUndef(n)?t.removeAttribute(e):t.setAttribute(e,n)})),W.each(r.style||{},(function(e,r){t.style[r]=e})),t.width=t.width,delete t[yt]}},addEventListener:function(e,t,r){var n=e.canvas;if("resize"!==t){var i=r[yt]||(r[yt]={});xt(n,t,(i.proxies||(i.proxies={}))[e.id+"_"+t]=function(t){r(function(e,t){var r=Lt[e.type]||e.type,n=W.getRelativePosition(e,t);return Dt(r,t,n.x,n.y,e)}(t,e))})}else Ot(n,r,e)},removeEventListener:function(e,t,r){var n=e.canvas;if("resize"!==t){var i=((r[yt]||{}).proxies||{})[e.id+"_"+t];i&&Et(n,t,i)}else Pt(n)}};W.addEvent=xt,W.removeEvent=Et;var It=Rt._enabled?Rt:{acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}},Yt=W.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},It);N._set("global",{plugins:{}});var Ct={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach((function(e){-1===t.indexOf(e)&&t.push(e)})),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach((function(e){var r=t.indexOf(e);-1!==r&&t.splice(r,1)})),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,r){var n,i,a,o,s,l=this.descriptors(e),u=l.length;for(n=0;n<u;++n)if("function"==typeof(s=(a=(i=l[n]).plugin)[t])&&((o=[e].concat(r||[])).push(i.options),!1===s.apply(a,o)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var r=[],n=[],i=e&&e.config||{},a=i.options&&i.options.plugins||{};return this._plugins.concat(i.plugins||[]).forEach((function(e){if(-1===r.indexOf(e)){var t=e.id,i=a[t];!1!==i&&(!0===i&&(i=W.clone(N.global.plugins[t])),r.push(e),n.push({plugin:e,options:i||{}}))}})),t.descriptors=n,t.id=this._cacheId,n},_invalidate:function(e){delete e.$plugins}},Ft={constructors:{},defaults:{},registerScaleType:function(e,t,r){this.constructors[e]=t,this.defaults[e]=W.clone(r)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?W.merge(Object.create(null),[N.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){var r=this;r.defaults.hasOwnProperty(e)&&(r.defaults[e]=W.extend(r.defaults[e],t))},addScalesToLayout:function(e){W.each(e.scales,(function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,gt.addBox(e,t)}))}},Nt=W.valueOrDefault,jt=W.rtl.getRtlAdapter;N._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:W.noop,title:function(e,t){var r="",n=t.labels,i=n?n.length:0;if(e.length>0){var a=e[0];a.label?r=a.label:a.xLabel?r=a.xLabel:i>0&&a.index<i&&(r=n[a.index])}return r},afterTitle:W.noop,beforeBody:W.noop,beforeLabel:W.noop,label:function(e,t){var r=t.datasets[e.datasetIndex].label||"";return r&&(r+=": "),W.isNullOrUndef(e.value)?r+=e.yLabel:r+=e.value,r},labelColor:function(e,t){var r=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:r.borderColor,backgroundColor:r.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:W.noop,afterBody:W.noop,beforeFooter:W.noop,footer:W.noop,afterFooter:W.noop}}});var Ht={average:function(e){if(!e.length)return!1;var t,r,n=0,i=0,a=0;for(t=0,r=e.length;t<r;++t){var o=e[t];if(o&&o.hasValue()){var s=o.tooltipPosition();n+=s.x,i+=s.y,++a}}return{x:n/a,y:i/a}},nearest:function(e,t){var r,n,i,a=t.x,o=t.y,s=Number.POSITIVE_INFINITY;for(r=0,n=e.length;r<n;++r){var l=e[r];if(l&&l.hasValue()){var u=l.getCenterPoint(),c=W.distanceBetweenPoints(t,u);c<s&&(s=c,i=l)}}if(i){var d=i.tooltipPosition();a=d.x,o=d.y}return{x:a,y:o}}};function Bt(e,t){return t&&(W.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Ut(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Wt(e){var t=N.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Nt(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Nt(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Nt(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Nt(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Nt(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Nt(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Nt(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Nt(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Nt(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function zt(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function Gt(e){return Bt([],Ut(e))}var Vt=J.extend({initialize:function(){this._model=Wt(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options.callbacks,r=t.beforeTitle.apply(e,arguments),n=t.title.apply(e,arguments),i=t.afterTitle.apply(e,arguments),a=[];return a=Bt(a,Ut(r)),a=Bt(a,Ut(n)),Bt(a,Ut(i))},getBeforeBody:function(){return Gt(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var r=this,n=r._options.callbacks,i=[];return W.each(e,(function(e){var a={before:[],lines:[],after:[]};Bt(a.before,Ut(n.beforeLabel.call(r,e,t))),Bt(a.lines,n.label.call(r,e,t)),Bt(a.after,Ut(n.afterLabel.call(r,e,t))),i.push(a)})),i},getAfterBody:function(){return Gt(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,r=t.beforeFooter.apply(e,arguments),n=t.footer.apply(e,arguments),i=t.afterFooter.apply(e,arguments),a=[];return a=Bt(a,Ut(r)),a=Bt(a,Ut(n)),Bt(a,Ut(i))},update:function(e){var t,r,n,i,a,o,s,l,u,c,d=this,h=d._options,f=d._model,p=d._model=Wt(h),m=d._active,g=d._data,v={xAlign:f.xAlign,yAlign:f.yAlign},y={x:f.x,y:f.y},_={width:f.width,height:f.height},b={x:f.caretX,y:f.caretY};if(m.length){p.opacity=1;var M=[],w=[];b=Ht[h.position].call(d,m,d._eventPosition);var T=[];for(t=0,r=m.length;t<r;++t)T.push((n=m[t],i=void 0,a=void 0,o=void 0,s=void 0,l=void 0,u=void 0,c=void 0,i=n._xScale,a=n._yScale||n._scale,o=n._index,s=n._datasetIndex,l=n._chart.getDatasetMeta(s).controller,u=l._getIndexScale(),c=l._getValueScale(),{xLabel:i?i.getLabelForIndex(o,s):"",yLabel:a?a.getLabelForIndex(o,s):"",label:u?""+u.getLabelForIndex(o,s):"",value:c?""+c.getLabelForIndex(o,s):"",index:o,datasetIndex:s,x:n._model.x,y:n._model.y}));h.filter&&(T=T.filter((function(e){return h.filter(e,g)}))),h.itemSort&&(T=T.sort((function(e,t){return h.itemSort(e,t,g)}))),W.each(T,(function(e){M.push(h.callbacks.labelColor.call(d,e,d._chart)),w.push(h.callbacks.labelTextColor.call(d,e,d._chart))})),p.title=d.getTitle(T,g),p.beforeBody=d.getBeforeBody(T,g),p.body=d.getBody(T,g),p.afterBody=d.getAfterBody(T,g),p.footer=d.getFooter(T,g),p.x=b.x,p.y=b.y,p.caretPadding=h.caretPadding,p.labelColors=M,p.labelTextColors=w,p.dataPoints=T,y=function(e,t,r,n){var i=e.x,a=e.y,o=e.caretSize,s=e.caretPadding,l=e.cornerRadius,u=r.xAlign,c=r.yAlign,d=o+s,h=l+s;return"right"===u?i-=t.width:"center"===u&&((i-=t.width/2)+t.width>n.width&&(i=n.width-t.width),i<0&&(i=0)),"top"===c?a+=d:a-="bottom"===c?t.height+d:t.height/2,"center"===c?"left"===u?i+=d:"right"===u&&(i-=d):"left"===u?i-=h:"right"===u&&(i+=h),{x:i,y:a}}(p,_=function(e,t){var r=e._chart.ctx,n=2*t.yPadding,i=0,a=t.body,o=a.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);o+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,l=t.footer.length,u=t.titleFontSize,c=t.bodyFontSize,d=t.footerFontSize;n+=s*u,n+=s?(s-1)*t.titleSpacing:0,n+=s?t.titleMarginBottom:0,n+=o*c,n+=o?(o-1)*t.bodySpacing:0,n+=l?t.footerMarginTop:0,n+=l*d,n+=l?(l-1)*t.footerSpacing:0;var h=0,f=function(e){i=Math.max(i,r.measureText(e).width+h)};return r.font=W.fontString(u,t._titleFontStyle,t._titleFontFamily),W.each(t.title,f),r.font=W.fontString(c,t._bodyFontStyle,t._bodyFontFamily),W.each(t.beforeBody.concat(t.afterBody),f),h=t.displayColors?c+2:0,W.each(a,(function(e){W.each(e.before,f),W.each(e.lines,f),W.each(e.after,f)})),h=0,r.font=W.fontString(d,t._footerFontStyle,t._footerFontFamily),W.each(t.footer,f),{width:i+=2*t.xPadding,height:n}}(this,p),v=function(e,t){var r,n,i,a,o,s=e._model,l=e._chart,u=e._chart.chartArea,c="center",d="center";s.y<t.height?d="top":s.y>l.height-t.height&&(d="bottom");var h=(u.left+u.right)/2,f=(u.top+u.bottom)/2;"center"===d?(r=function(e){return e<=h},n=function(e){return e>h}):(r=function(e){return e<=t.width/2},n=function(e){return e>=l.width-t.width/2}),i=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},a=function(e){return e-t.width-s.caretSize-s.caretPadding<0},o=function(e){return e<=f?"top":"bottom"},r(s.x)?(c="left",i(s.x)&&(c="center",d=o(s.y))):n(s.x)&&(c="right",a(s.x)&&(c="center",d=o(s.y)));var p=e._options;return{xAlign:p.xAlign?p.xAlign:c,yAlign:p.yAlign?p.yAlign:d}}(this,_),d._chart)}else p.opacity=0;return p.xAlign=v.xAlign,p.yAlign=v.yAlign,p.x=y.x,p.y=y.y,p.width=_.width,p.height=_.height,p.caretX=b.x,p.caretY=b.y,d._model=p,e&&h.custom&&h.custom.call(d,p),d},drawCaret:function(e,t){var r=this._chart.ctx,n=this._view,i=this.getCaretPosition(e,t,n);r.lineTo(i.x1,i.y1),r.lineTo(i.x2,i.y2),r.lineTo(i.x3,i.y3)},getCaretPosition:function(e,t,r){var n,i,a,o,s,l,u=r.caretSize,c=r.cornerRadius,d=r.xAlign,h=r.yAlign,f=e.x,p=e.y,m=t.width,g=t.height;if("center"===h)s=p+g/2,"left"===d?(i=(n=f)-u,a=n,o=s+u,l=s-u):(i=(n=f+m)+u,a=n,o=s-u,l=s+u);else if("left"===d?(n=(i=f+c+u)-u,a=i+u):"right"===d?(n=(i=f+m-c-u)-u,a=i+u):(n=(i=r.caretX)-u,a=i+u),"top"===h)s=(o=p)-u,l=o;else{s=(o=p+g)+u,l=o;var v=a;a=n,n=v}return{x1:n,x2:i,x3:a,y1:o,y2:s,y3:l}},drawTitle:function(e,t,r){var n,i,a,o=t.title,s=o.length;if(s){var l=jt(t.rtl,t.x,t.width);for(e.x=zt(t,t._titleAlign),r.textAlign=l.textAlign(t._titleAlign),r.textBaseline="middle",n=t.titleFontSize,i=t.titleSpacing,r.fillStyle=t.titleFontColor,r.font=W.fontString(n,t._titleFontStyle,t._titleFontFamily),a=0;a<s;++a)r.fillText(o[a],l.x(e.x),e.y+n/2),e.y+=n+i,a+1===s&&(e.y+=t.titleMarginBottom-i)}},drawBody:function(e,t,r){var n,i,a,o,s,l,u,c,d=t.bodyFontSize,h=t.bodySpacing,f=t._bodyAlign,p=t.body,m=t.displayColors,g=0,v=m?zt(t,"left"):0,y=jt(t.rtl,t.x,t.width),_=function(t){r.fillText(t,y.x(e.x+g),e.y+d/2),e.y+=d+h},b=y.textAlign(f);for(r.textAlign=f,r.textBaseline="middle",r.font=W.fontString(d,t._bodyFontStyle,t._bodyFontFamily),e.x=zt(t,b),r.fillStyle=t.bodyFontColor,W.each(t.beforeBody,_),g=m&&"right"!==b?"center"===f?d/2+1:d+2:0,s=0,u=p.length;s<u;++s){for(n=p[s],i=t.labelTextColors[s],a=t.labelColors[s],r.fillStyle=i,W.each(n.before,_),l=0,c=(o=n.lines).length;l<c;++l){if(m){var M=y.x(v);r.fillStyle=t.legendColorBackground,r.fillRect(y.leftForLtr(M,d),e.y,d,d),r.lineWidth=1,r.strokeStyle=a.borderColor,r.strokeRect(y.leftForLtr(M,d),e.y,d,d),r.fillStyle=a.backgroundColor,r.fillRect(y.leftForLtr(y.xPlus(M,1),d-2),e.y+1,d-2,d-2),r.fillStyle=i}_(o[l])}W.each(n.after,_)}g=0,W.each(t.afterBody,_),e.y-=h},drawFooter:function(e,t,r){var n,i,a=t.footer,o=a.length;if(o){var s=jt(t.rtl,t.x,t.width);for(e.x=zt(t,t._footerAlign),e.y+=t.footerMarginTop,r.textAlign=s.textAlign(t._footerAlign),r.textBaseline="middle",n=t.footerFontSize,r.fillStyle=t.footerFontColor,r.font=W.fontString(n,t._footerFontStyle,t._footerFontFamily),i=0;i<o;++i)r.fillText(a[i],s.x(e.x),e.y+n/2),e.y+=n+t.footerSpacing}},drawBackground:function(e,t,r,n){r.fillStyle=t.backgroundColor,r.strokeStyle=t.borderColor,r.lineWidth=t.borderWidth;var i=t.xAlign,a=t.yAlign,o=e.x,s=e.y,l=n.width,u=n.height,c=t.cornerRadius;r.beginPath(),r.moveTo(o+c,s),"top"===a&&this.drawCaret(e,n),r.lineTo(o+l-c,s),r.quadraticCurveTo(o+l,s,o+l,s+c),"center"===a&&"right"===i&&this.drawCaret(e,n),r.lineTo(o+l,s+u-c),r.quadraticCurveTo(o+l,s+u,o+l-c,s+u),"bottom"===a&&this.drawCaret(e,n),r.lineTo(o+c,s+u),r.quadraticCurveTo(o,s+u,o,s+u-c),"center"===a&&"left"===i&&this.drawCaret(e,n),r.lineTo(o,s+c),r.quadraticCurveTo(o,s,o+c,s),r.closePath(),r.fill(),t.borderWidth>0&&r.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var r={width:t.width,height:t.height},n={x:t.x,y:t.y},i=Math.abs(t.opacity<.001)?0:t.opacity,a=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&a&&(e.save(),e.globalAlpha=i,this.drawBackground(n,t,e,r),n.y+=t.yPadding,W.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),W.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t,r=this,n=r._options;return r._lastActive=r._lastActive||[],"mouseout"===e.type?r._active=[]:(r._active=r._chart.getElementsAtEventForMode(e,n.mode,n),n.reverse&&r._active.reverse()),(t=!W.arrayEquals(r._active,r._lastActive))&&(r._lastActive=r._active,(n.enabled||n.custom)&&(r._eventPosition={x:e.x,y:e.y},r.update(!0),r.pivot())),t}}),Kt=Ht,qt=Vt;qt.positioners=Kt;var $t=W.valueOrDefault;function Jt(){return W.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,r,n){if("xAxes"===e||"yAxes"===e){var i,a,o,s=r[e].length;for(t[e]||(t[e]=[]),i=0;i<s;++i)o=r[e][i],a=$t(o.type,"xAxes"===e?"category":"linear"),i>=t[e].length&&t[e].push({}),!t[e][i].type||o.type&&o.type!==t[e][i].type?W.merge(t[e][i],[Ft.getScaleDefaults(a),o]):W.merge(t[e][i],o)}else W._merger(e,t,r,n)}})}function Xt(){return W.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,r,n){var i=t[e]||Object.create(null),a=r[e];"scales"===e?t[e]=Jt(i,a):"scale"===e?t[e]=W.merge(i,[Ft.getScaleDefaults(a.type),a]):W._merger(e,t,r,n)}})}function Qt(e){var t=e.options;W.each(e.scales,(function(t){gt.removeBox(e,t)})),t=Xt(N.global,N[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function Zt(e,t,r){var n,i=function(e){return e.id===n};do{n=t+r++}while(W.findIndex(e,i)>=0);return n}function er(e){return"top"===e||"bottom"===e}function tr(e,t){return function(r,n){return r[e]===n[e]?r[t]-n[t]:r[e]-n[e]}}N._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var rr=function(e,t){return this.construct(e,t),this};W.extend(rr.prototype,{construct:function(e,t){var r=this;t=function(e){var t=(e=e||Object.create(null)).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Xt(N.global,N[e.type],e.options||{}),e}(t);var i=Yt.acquireContext(e,t),a=i&&i.canvas,o=a&&a.height,s=a&&a.width;r.id=W.uid(),r.ctx=i,r.canvas=a,r.config=t,r.width=s,r.height=o,r.aspectRatio=o?s/o:null,r.options=t.options,r._bufferedRender=!1,r._layers=[],r.chart=r,r.controller=r,rr.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(e){r.config.data=e}}),i&&a?(r.initialize(),r.update()):n.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return Ct.notify(e,"beforeInit"),W.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),Ct.notify(e,"afterInit"),e},clear:function(){return W.canvas.clear(this),this},stop:function(){return Z.cancelAnimation(this),this},resize:function(e){var t=this,r=t.options,n=t.canvas,i=r.maintainAspectRatio&&t.aspectRatio||null,a=Math.max(0,Math.floor(W.getMaximumWidth(n))),o=Math.max(0,Math.floor(i?a/i:W.getMaximumHeight(n)));if((t.width!==a||t.height!==o)&&(n.width=t.width=a,n.height=t.height=o,n.style.width=a+"px",n.style.height=o+"px",W.retinaScale(t,r.devicePixelRatio),!e)){var s={width:a,height:o};Ct.notify(t,"resize",[s]),r.onResize&&r.onResize(t,s),t.stop(),t.update({duration:r.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},r=e.scale;W.each(t.xAxes,(function(e,r){e.id||(e.id=Zt(t.xAxes,"x-axis-",r))})),W.each(t.yAxes,(function(e,r){e.id||(e.id=Zt(t.yAxes,"y-axis-",r))})),r&&(r.id=r.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,r=e.scales||{},n=[],i=Object.keys(r).reduce((function(e,t){return e[t]=!1,e}),{});t.scales&&(n=n.concat((t.scales.xAxes||[]).map((function(e){return{options:e,dtype:"category",dposition:"bottom"}})),(t.scales.yAxes||[]).map((function(e){return{options:e,dtype:"linear",dposition:"left"}})))),t.scale&&n.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),W.each(n,(function(t){var n=t.options,a=n.id,o=$t(n.type,t.dtype);er(n.position)!==er(t.dposition)&&(n.position=t.dposition),i[a]=!0;var s=null;if(a in r&&r[a].type===o)(s=r[a]).options=n,s.ctx=e.ctx,s.chart=e;else{var l=Ft.getScaleConstructor(o);if(!l)return;s=new l({id:a,type:o,options:n,ctx:e.ctx,chart:e}),r[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)})),W.each(i,(function(e,t){e||delete r[t]})),e.scales=r,Ft.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,r=this,n=[],i=r.data.datasets;for(e=0,t=i.length;e<t;e++){var a=i[e],o=r.getDatasetMeta(e),s=a.type||r.config.type;if(o.type&&o.type!==s&&(r.destroyDatasetMeta(e),o=r.getDatasetMeta(e)),o.type=s,o.order=a.order||0,o.index=e,o.controller)o.controller.updateIndex(e),o.controller.linkScales();else{var l=Ze[o.type];if(void 0===l)throw new Error('"'+o.type+'" is not a chart type.');o.controller=new l(r,e),n.push(o.controller)}}return n},resetElements:function(){var e=this;W.each(e.data.datasets,(function(t,r){e.getDatasetMeta(r).controller.reset()}),e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t,r,n=this;if(e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),Qt(n),Ct._invalidate(n),!1!==Ct.notify(n,"beforeUpdate")){n.tooltip._data=n.data;var i=n.buildOrUpdateControllers();for(t=0,r=n.data.datasets.length;t<r;t++)n.getDatasetMeta(t).controller.buildOrUpdateElements();n.updateLayout(),n.options.animation&&n.options.animation.duration&&W.each(i,(function(e){e.reset()})),n.updateDatasets(),n.tooltip.initialize(),n.lastActive=[],Ct.notify(n,"afterUpdate"),n._layers.sort(tr("z","_idx")),n._bufferedRender?n._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:n.render(e)}},updateLayout:function(){var e=this;!1!==Ct.notify(e,"beforeLayout")&&(gt.update(this,this.width,this.height),e._layers=[],W.each(e.boxes,(function(t){t._configure&&t._configure(),e._layers.push.apply(e._layers,t._layers())}),e),e._layers.forEach((function(e,t){e._idx=t})),Ct.notify(e,"afterScaleUpdate"),Ct.notify(e,"afterLayout"))},updateDatasets:function(){var e=this;if(!1!==Ct.notify(e,"beforeDatasetsUpdate")){for(var t=0,r=e.data.datasets.length;t<r;++t)e.updateDataset(t);Ct.notify(e,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this,r=t.getDatasetMeta(e),n={meta:r,index:e};!1!==Ct.notify(t,"beforeDatasetUpdate",[n])&&(r.controller._update(),Ct.notify(t,"afterDatasetUpdate",[n]))},render:function(e){var t=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var r=t.options.animation,n=$t(e.duration,r&&r.duration),i=e.lazy;if(!1!==Ct.notify(t,"beforeRender")){var a=function(e){Ct.notify(t,"afterRender"),W.callback(r&&r.onComplete,[e],t)};if(r&&n){var o=new Q({numSteps:n/16.66,easing:e.easing||r.easing,render:function(e,t){var r=W.easing.effects[t.easing],n=t.currentStep,i=n/t.numSteps;e.draw(r(i),i,n)},onAnimationProgress:r.onProgress,onAnimationComplete:a});Z.addAnimation(t,o,n,i)}else t.draw(),a(new Q({numSteps:0,chart:t}));return t}},draw:function(e){var t,r,n=this;if(n.clear(),W.isNullOrUndef(e)&&(e=1),n.transition(e),!(n.width<=0||n.height<=0)&&!1!==Ct.notify(n,"beforeDraw",[e])){for(r=n._layers,t=0;t<r.length&&r[t].z<=0;++t)r[t].draw(n.chartArea);for(n.drawDatasets(e);t<r.length;++t)r[t].draw(n.chartArea);n._drawTooltip(e),Ct.notify(n,"afterDraw",[e])}},transition:function(e){for(var t=this,r=0,n=(t.data.datasets||[]).length;r<n;++r)t.isDatasetVisible(r)&&t.getDatasetMeta(r).controller.transition(e);t.tooltip.transition(e)},_getSortedDatasetMetas:function(e){var t,r,n=this,i=[];for(t=0,r=(n.data.datasets||[]).length;t<r;++t)e&&!n.isDatasetVisible(t)||i.push(n.getDatasetMeta(t));return i.sort(tr("order","index")),i},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var t,r,n=this;if(!1!==Ct.notify(n,"beforeDatasetsDraw",[e])){for(r=(t=n._getSortedVisibleDatasetMetas()).length-1;r>=0;--r)n.drawDataset(t[r],e);Ct.notify(n,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var r={meta:e,index:e.index,easingValue:t};!1!==Ct.notify(this,"beforeDatasetDraw",[r])&&(e.controller.draw(t),Ct.notify(this,"afterDatasetDraw",[r]))},_drawTooltip:function(e){var t=this,r=t.tooltip,n={tooltip:r,easingValue:e};!1!==Ct.notify(t,"beforeTooltipDraw",[n])&&(r.draw(),Ct.notify(t,"afterTooltipDraw",[n]))},getElementAtEvent:function(e){return ot.modes.single(this,e)},getElementsAtEvent:function(e){return ot.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return ot.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,r){var n=ot.modes[t];return"function"==typeof n?n(this,e,r):[]},getDatasetAtEvent:function(e){return ot.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this,r=t.data.datasets[e];r._meta||(r._meta={});var n=r._meta[t.id];return n||(n=r._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:r.order||0,index:e}),n},getVisibleDatasetCount:function(){for(var e=0,t=0,r=this.data.datasets.length;t<r;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,r=this.data.datasets[e],n=r._meta&&r._meta[t];n&&(n.controller.destroy(),delete r._meta[t])},destroy:function(){var e,t,r=this,n=r.canvas;for(r.stop(),e=0,t=r.data.datasets.length;e<t;++e)r.destroyDatasetMeta(e);n&&(r.unbindEvents(),W.canvas.clear(r),Yt.releaseContext(r.ctx),r.canvas=null,r.ctx=null),Ct.notify(r,"destroy"),delete rr.instances[r.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new qt({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},r=function(){e.eventHandler.apply(e,arguments)};W.each(e.options.events,(function(n){Yt.addEventListener(e,n,r),t[n]=r})),e.options.responsive&&(r=function(){e.resize()},Yt.addEventListener(e,"resize",r),t.resize=r)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,W.each(t,(function(t,r){Yt.removeEventListener(e,r,t)})))},updateHoverStyle:function(e,t,r){var n,i,a,o=r?"set":"remove";for(i=0,a=e.length;i<a;++i)(n=e[i])&&this.getDatasetMeta(n._datasetIndex).controller[o+"HoverStyle"](n);"dataset"===t&&this.getDatasetMeta(e[0]._datasetIndex).controller["_"+o+"DatasetHoverStyle"]()},eventHandler:function(e){var t=this,r=t.tooltip;if(!1!==Ct.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var n=t.handleEvent(e);r&&(n=r._start?r.handleEvent(e):n|r.handleEvent(e)),Ct.notify(t,"afterEvent",[e]);var i=t._bufferedRequest;return i?t.render(i):n&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t,r=this,n=r.options||{},i=n.hover;return r.lastActive=r.lastActive||[],"mouseout"===e.type?r.active=[]:r.active=r.getElementsAtEventForMode(e,i.mode,i),W.callback(n.onHover||n.hover.onHover,[e.native,r.active],r),"mouseup"!==e.type&&"click"!==e.type||n.onClick&&n.onClick.call(r,e.native,r.active),r.lastActive.length&&r.updateHoverStyle(r.lastActive,i.mode,!1),r.active.length&&i.mode&&r.updateHoverStyle(r.active,i.mode,!0),t=!W.arrayEquals(r.active,r.lastActive),r.lastActive=r.active,t}}),rr.instances={};var nr=rr;rr.Controller=rr,rr.types={},W.configMerge=Xt,W.scaleMerge=Jt;function ir(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function ar(e){this.options=e||{}}W.extend(ar.prototype,{formats:ir,parse:ir,format:ir,add:ir,diff:ir,startOf:ir,endOf:ir,_create:function(e){return e}}),ar.override=function(e){W.extend(ar.prototype,e)};var or={_date:ar},sr={formatters:{values:function(e){return W.isArray(e)?e:""+e},linear:function(e,t,r){var n=r.length>3?r[2]-r[1]:r[1]-r[0];Math.abs(n)>1&&e!==Math.floor(e)&&(n=e-Math.floor(e));var i=W.log10(Math.abs(n)),a="";if(0!==e)if(Math.max(Math.abs(r[0]),Math.abs(r[r.length-1]))<1e-4){var o=W.log10(Math.abs(e)),s=Math.floor(o)-Math.floor(i);s=Math.max(Math.min(s,20),0),a=e.toExponential(s)}else{var l=-1*Math.floor(i);l=Math.max(Math.min(l,20),0),a=e.toFixed(l)}else a="0";return a},logarithmic:function(e,t,r){var n=e/Math.pow(10,Math.floor(W.log10(e)));return 0===e?"0":1===n||2===n||5===n||0===t||t===r.length-1?e.toExponential():""}}},lr=W.isArray,ur=W.isNullOrUndef,cr=W.valueOrDefault,dr=W.valueAtIndexOrDefault;function hr(e,t,r){var n,i=e.getTicks().length,a=Math.min(t,i-1),o=e.getPixelForTick(a),s=e._startPixel,l=e._endPixel,u=1e-6;if(!(r&&(n=1===i?Math.max(o-s,l-o):0===t?(e.getPixelForTick(1)-o)/2:(o-e.getPixelForTick(a-1))/2,(o+=a<t?n:-n)<s-u||o>l+u)))return o}function fr(e,t,r,n){var i,a,o,s,l,u,c,d,h,f,p,m,g,v=r.length,y=[],_=[],b=[],M=0,w=0;for(i=0;i<v;++i){if(s=r[i].label,l=r[i].major?t.major:t.minor,e.font=u=l.string,c=n[u]=n[u]||{data:{},gc:[]},d=l.lineHeight,h=f=0,ur(s)||lr(s)){if(lr(s))for(a=0,o=s.length;a<o;++a)p=s[a],ur(p)||lr(p)||(h=W.measureText(e,c.data,c.gc,h,p),f+=d)}else h=W.measureText(e,c.data,c.gc,h,s),f=d;y.push(h),_.push(f),b.push(d/2),M=Math.max(h,M),w=Math.max(f,w)}function T(e){return{width:y[e]||0,height:_[e]||0,offset:b[e]||0}}return function(e,t){W.each(e,(function(e){var r,n=e.gc,i=n.length/2;if(i>t){for(r=0;r<i;++r)delete e.data[n[r]];n.splice(0,i)}}))}(n,v),m=y.indexOf(M),g=_.indexOf(w),{first:T(0),last:T(v-1),widest:T(m),highest:T(g)}}function pr(e){return e.drawTicks?e.tickMarkLength:0}function mr(e){var t,r;return e.display?(t=W.options._parseFont(e),r=W.options.toPadding(e.padding),t.lineHeight+r.height):0}function gr(e,t){return W.extend(W.options._parseFont({fontFamily:cr(t.fontFamily,e.fontFamily),fontSize:cr(t.fontSize,e.fontSize),fontStyle:cr(t.fontStyle,e.fontStyle),lineHeight:cr(t.lineHeight,e.lineHeight)}),{color:W.options.resolve([t.fontColor,e.fontColor,N.global.defaultFontColor])})}function vr(e){var t=gr(e,e.minor);return{minor:t,major:e.major.enabled?gr(e,e.major):t}}function yr(e){var t,r,n,i=[];for(r=0,n=e.length;r<n;++r)void 0!==(t=e[r])._index&&i.push(t);return i}function _r(e,t,r,n){var i,a,o,s,l=cr(r,0),u=Math.min(cr(n,e.length),e.length),c=0;for(t=Math.ceil(t),n&&(t=(i=n-r)/Math.floor(i/t)),s=l;s<0;)c++,s=Math.round(l+c*t);for(a=Math.max(l,0);a<u;a++)o=e[a],a===s?(o._index=a,c++,s=Math.round(l+c*t)):delete o.label}N._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:sr.formatters.values,minor:{},major:{}}});var br=J.extend({zeroLineIndex:0,getPadding:function(){var e=this;return{left:e.paddingLeft||0,top:e.paddingTop||0,right:e.paddingRight||0,bottom:e.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){W.callback(this.options.beforeUpdate,[this])},update:function(e,t,r){var n,i,a,o,s,l=this,u=l.options.ticks,c=u.sampleSize;if(l.beforeUpdate(),l.maxWidth=e,l.maxHeight=t,l.margins=W.extend({left:0,right:0,top:0,bottom:0},r),l._ticks=null,l.ticks=null,l._labelSizes=null,l._maxLabelLines=0,l.longestLabelWidth=0,l.longestTextCache=l.longestTextCache||{},l._gridLineItems=null,l._labelItems=null,l.beforeSetDimensions(),l.setDimensions(),l.afterSetDimensions(),l.beforeDataLimits(),l.determineDataLimits(),l.afterDataLimits(),l.beforeBuildTicks(),o=l.buildTicks()||[],(!(o=l.afterBuildTicks(o)||o)||!o.length)&&l.ticks)for(o=[],n=0,i=l.ticks.length;n<i;++n)o.push({value:l.ticks[n],major:!1});return l._ticks=o,s=c<o.length,a=l._convertTicksToLabels(s?function(e,t){for(var r=[],n=e.length/t,i=0,a=e.length;i<a;i+=n)r.push(e[Math.floor(i)]);return r}(o,c):o),l._configure(),l.beforeCalculateTickRotation(),l.calculateTickRotation(),l.afterCalculateTickRotation(),l.beforeFit(),l.fit(),l.afterFit(),l._ticksToDraw=u.display&&(u.autoSkip||"auto"===u.source)?l._autoSkip(o):o,s&&(a=l._convertTicksToLabels(l._ticksToDraw)),l.ticks=a,l.afterUpdate(),l.minSize},_configure:function(){var e,t,r=this,n=r.options.ticks.reverse;r.isHorizontal()?(e=r.left,t=r.right):(e=r.top,t=r.bottom,n=!n),r._startPixel=e,r._endPixel=t,r._reversePixels=n,r._length=t-e},afterUpdate:function(){W.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){W.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){W.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){W.callback(this.options.beforeDataLimits,[this])},determineDataLimits:W.noop,afterDataLimits:function(){W.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){W.callback(this.options.beforeBuildTicks,[this])},buildTicks:W.noop,afterBuildTicks:function(e){var t=this;return lr(e)&&e.length?W.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=W.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){W.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this,t=e.options.ticks;e.ticks=e.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){W.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){W.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e,t,r,n,i,a,o,s=this,l=s.options,u=l.ticks,c=s.getTicks().length,d=u.minRotation||0,h=u.maxRotation,f=d;!s._isVisible()||!u.display||d>=h||c<=1||!s.isHorizontal()?s.labelRotation=d:(t=(e=s._getLabelSizes()).widest.width,r=e.highest.height-e.highest.offset,n=Math.min(s.maxWidth,s.chart.width-t),t+6>(i=l.offset?s.maxWidth/c:n/(c-1))&&(i=n/(c-(l.offset?.5:1)),a=s.maxHeight-pr(l.gridLines)-u.padding-mr(l.scaleLabel),o=Math.sqrt(t*t+r*r),f=W.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/i,1)),Math.asin(Math.min(a/o,1))-Math.asin(r/o))),f=Math.max(d,Math.min(h,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){W.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){W.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},r=e.chart,n=e.options,i=n.ticks,a=n.scaleLabel,o=n.gridLines,s=e._isVisible(),l="bottom"===n.position,u=e.isHorizontal();if(u?t.width=e.maxWidth:s&&(t.width=pr(o)+mr(a)),u?s&&(t.height=pr(o)+mr(a)):t.height=e.maxHeight,i.display&&s){var c=vr(i),d=e._getLabelSizes(),h=d.first,f=d.last,p=d.widest,m=d.highest,g=.4*c.minor.lineHeight,v=i.padding;if(u){var y=0!==e.labelRotation,_=W.toRadians(e.labelRotation),b=Math.cos(_),M=Math.sin(_),w=M*p.width+b*(m.height-(y?m.offset:0))+(y?0:g);t.height=Math.min(e.maxHeight,t.height+w+v);var T,L,S=e.getPixelForTick(0)-e.left,k=e.right-e.getPixelForTick(e.getTicks().length-1);y?(T=l?b*h.width+M*h.offset:M*(h.height-h.offset),L=l?M*(f.height-f.offset):b*f.width+M*f.offset):(T=h.width/2,L=f.width/2),e.paddingLeft=Math.max((T-S)*e.width/(e.width-S),0)+3,e.paddingRight=Math.max((L-k)*e.width/(e.width-k),0)+3}else{var x=i.mirror?0:p.width+v+g;t.width=Math.min(e.maxWidth,t.width+x),e.paddingTop=h.height/2,e.paddingBottom=f.height/2}}e.handleMargins(),u?(e.width=e._length=r.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=r.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){W.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(ur(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,r,n,i=this;for(i.ticks=e.map((function(e){return e.value})),i.beforeTickToLabelConversion(),t=i.convertTicksToLabels(e)||i.ticks,i.afterTickToLabelConversion(),r=0,n=e.length;r<n;++r)e[r].label=t[r];return t},_getLabelSizes:function(){var e=this,t=e._labelSizes;return t||(e._labelSizes=t=fr(e.ctx,vr(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=t.widest.width),t},_parseValue:function(e){var t,r,n,i;return lr(e)?(t=+this.getRightValue(e[0]),r=+this.getRightValue(e[1]),n=Math.min(t,r),i=Math.max(t,r)):(t=void 0,r=e=+this.getRightValue(e),n=e,i=e),{min:n,max:i,start:t,end:r}},_getScaleLabel:function(e){var t=this._parseValue(e);return void 0!==t.start?"["+t.start+", "+t.end+"]":+this.getRightValue(e)},getLabelForIndex:W.noop,getPixelForValue:W.noop,getValueForPixel:W.noop,getPixelForTick:function(e){var t=this,r=t.options.offset,n=t._ticks.length,i=1/Math.max(n-(r?0:1),1);return e<0||e>n-1?null:t.getPixelForDecimal(e*i+(r?i/2:0))},getPixelForDecimal:function(e){var t=this;return t._reversePixels&&(e=1-e),t._startPixel+e*t._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,r=e.max;return e.beginAtZero?0:t<0&&r<0?r:t>0&&r>0?t:0},_autoSkip:function(e){var t,r,n,i,a=this,o=a.options.ticks,s=a._length,l=o.maxTicksLimit||s/a._tickSize()+1,u=o.major.enabled?function(e){var t,r,n=[];for(t=0,r=e.length;t<r;t++)e[t].major&&n.push(t);return n}(e):[],c=u.length,d=u[0],h=u[c-1];if(c>l)return function(e,t,r){var n,i,a=0,o=t[0];for(r=Math.ceil(r),n=0;n<e.length;n++)i=e[n],n===o?(i._index=n,o=t[++a*r]):delete i.label}(e,u,c/l),yr(e);if(n=function(e,t,r,n){var i,a,o,s,l=function(e){var t,r,n=e.length;if(n<2)return!1;for(r=e[0],t=1;t<n;++t)if(e[t]-e[t-1]!==r)return!1;return r}(e),u=(t.length-1)/n;if(!l)return Math.max(u,1);for(o=0,s=(i=W.math._factorize(l)).length-1;o<s;o++)if((a=i[o])>u)return a;return Math.max(u,1)}(u,e,0,l),c>0){for(t=0,r=c-1;t<r;t++)_r(e,n,u[t],u[t+1]);return i=c>1?(h-d)/(c-1):null,_r(e,n,W.isNullOrUndef(i)?0:d-i,d),_r(e,n,h,W.isNullOrUndef(i)?e.length:h+i),yr(e)}return _r(e,n),yr(e)},_tickSize:function(){var e=this,t=e.options.ticks,r=W.toRadians(e.labelRotation),n=Math.abs(Math.cos(r)),i=Math.abs(Math.sin(r)),a=e._getLabelSizes(),o=t.autoSkipPadding||0,s=a?a.widest.width+o:0,l=a?a.highest.height+o:0;return e.isHorizontal()?l*n>s*i?s/n:l/i:l*i<s*n?l/n:s/i},_isVisible:function(){var e,t,r,n=this,i=n.chart,a=n.options.display;if("auto"!==a)return!!a;for(e=0,t=i.data.datasets.length;e<t;++e)if(i.isDatasetVisible(e)&&((r=i.getDatasetMeta(e)).xAxisID===n.id||r.yAxisID===n.id))return!0;return!1},_computeGridLineItems:function(e){var t,r,n,i,a,o,s,l,u,c,d,h,f,p,m,g,v,y=this,_=y.chart,b=y.options,M=b.gridLines,w=b.position,T=M.offsetGridLines,L=y.isHorizontal(),S=y._ticksToDraw,k=S.length+(T?1:0),x=pr(M),E=[],D=M.drawBorder?dr(M.lineWidth,0,0):0,A=D/2,O=W._alignPixel,P=function(e){return O(_,e,D)};for("top"===w?(t=P(y.bottom),s=y.bottom-x,u=t-A,d=P(e.top)+A,f=e.bottom):"bottom"===w?(t=P(y.top),d=e.top,f=P(e.bottom)-A,s=t+A,u=y.top+x):"left"===w?(t=P(y.right),o=y.right-x,l=t-A,c=P(e.left)+A,h=e.right):(t=P(y.left),c=e.left,h=P(e.right)-A,o=t+A,l=y.left+x),r=0;r<k;++r)n=S[r]||{},ur(n.label)&&r<S.length||(r===y.zeroLineIndex&&b.offset===T?(p=M.zeroLineWidth,m=M.zeroLineColor,g=M.zeroLineBorderDash||[],v=M.zeroLineBorderDashOffset||0):(p=dr(M.lineWidth,r,1),m=dr(M.color,r,"rgba(0,0,0,0.1)"),g=M.borderDash||[],v=M.borderDashOffset||0),void 0!==(i=hr(y,n._index||r,T))&&(a=O(_,i,p),L?o=l=c=h=a:s=u=d=f=a,E.push({tx1:o,ty1:s,tx2:l,ty2:u,x1:c,y1:d,x2:h,y2:f,width:p,color:m,borderDash:g,borderDashOffset:v})));return E.ticksLength=k,E.borderValue=t,E},_computeLabelItems:function(){var e,t,r,n,i,a,o,s,l,u,c,d,h=this,f=h.options,p=f.ticks,m=f.position,g=p.mirror,v=h.isHorizontal(),y=h._ticksToDraw,_=vr(p),b=p.padding,M=pr(f.gridLines),w=-W.toRadians(h.labelRotation),T=[];for("top"===m?(a=h.bottom-M-b,o=w?"left":"center"):"bottom"===m?(a=h.top+M+b,o=w?"right":"center"):"left"===m?(i=h.right-(g?0:M)-b,o=g?"left":"right"):(i=h.left+(g?0:M)+b,o=g?"right":"left"),e=0,t=y.length;e<t;++e)n=(r=y[e]).label,ur(n)||(s=h.getPixelForTick(r._index||e)+p.labelOffset,u=(l=r.major?_.major:_.minor).lineHeight,c=lr(n)?n.length:1,v?(i=s,d="top"===m?((w?1:.5)-c)*u:(w?0:.5)*u):(a=s,d=(1-c)*u/2),T.push({x:i,y:a,rotation:w,label:n,font:l,textOffset:d,textAlign:o}));return T},_drawGrid:function(e){var t=this,r=t.options.gridLines;if(r.display){var n,i,a,o,s,l=t.ctx,u=t.chart,c=W._alignPixel,d=r.drawBorder?dr(r.lineWidth,0,0):0,h=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));for(a=0,o=h.length;a<o;++a)n=(s=h[a]).width,i=s.color,n&&i&&(l.save(),l.lineWidth=n,l.strokeStyle=i,l.setLineDash&&(l.setLineDash(s.borderDash),l.lineDashOffset=s.borderDashOffset),l.beginPath(),r.drawTicks&&(l.moveTo(s.tx1,s.ty1),l.lineTo(s.tx2,s.ty2)),r.drawOnChartArea&&(l.moveTo(s.x1,s.y1),l.lineTo(s.x2,s.y2)),l.stroke(),l.restore());if(d){var f,p,m,g,v=d,y=dr(r.lineWidth,h.ticksLength-1,1),_=h.borderValue;t.isHorizontal()?(f=c(u,t.left,v)-v/2,p=c(u,t.right,y)+y/2,m=g=_):(m=c(u,t.top,v)-v/2,g=c(u,t.bottom,y)+y/2,f=p=_),l.lineWidth=d,l.strokeStyle=dr(r.color,0),l.beginPath(),l.moveTo(f,m),l.lineTo(p,g),l.stroke()}}},_drawLabels:function(){var e=this;if(e.options.ticks.display){var t,r,n,i,a,o,s,l,u=e.ctx,c=e._labelItems||(e._labelItems=e._computeLabelItems());for(t=0,n=c.length;t<n;++t){if(o=(a=c[t]).font,u.save(),u.translate(a.x,a.y),u.rotate(a.rotation),u.font=o.string,u.fillStyle=o.color,u.textBaseline="middle",u.textAlign=a.textAlign,s=a.label,l=a.textOffset,lr(s))for(r=0,i=s.length;r<i;++r)u.fillText(""+s[r],0,l),l+=o.lineHeight;else u.fillText(s,0,l);u.restore()}}},_drawTitle:function(){var e=this,t=e.ctx,r=e.options,n=r.scaleLabel;if(n.display){var i,a,o=cr(n.fontColor,N.global.defaultFontColor),s=W.options._parseFont(n),l=W.options.toPadding(n.padding),u=s.lineHeight/2,c=r.position,d=0;if(e.isHorizontal())i=e.left+e.width/2,a="bottom"===c?e.bottom-u-l.bottom:e.top+u+l.top;else{var h="left"===c;i=h?e.left+u+l.top:e.right-u-l.top,a=e.top+e.height/2,d=h?-.5*Math.PI:.5*Math.PI}t.save(),t.translate(i,a),t.rotate(d),t.textAlign="center",t.textBaseline="middle",t.fillStyle=o,t.font=s.string,t.fillText(n.labelString,0,0),t.restore()}},draw:function(e){var t=this;t._isVisible()&&(t._drawGrid(e),t._drawTitle(),t._drawLabels())},_layers:function(){var e=this,t=e.options,r=t.ticks&&t.ticks.z||0,n=t.gridLines&&t.gridLines.z||0;return e._isVisible()&&r!==n&&e.draw===e._draw?[{z:n,draw:function(){e._drawGrid.apply(e,arguments),e._drawTitle.apply(e,arguments)}},{z:r,draw:function(){e._drawLabels.apply(e,arguments)}}]:[{z:r,draw:function(){e.draw.apply(e,arguments)}}]},_getMatchingVisibleMetas:function(e){var t=this,r=t.isHorizontal();return t.chart._getSortedVisibleDatasetMetas().filter((function(n){return(!e||n.type===e)&&(r?n.xAxisID===t.id:n.yAxisID===t.id)}))}});br.prototype._draw=br.prototype.draw;var Mr=br,wr=W.isNullOrUndef,Tr=Mr.extend({determineDataLimits:function(){var e,t=this,r=t._getLabels(),n=t.options.ticks,i=n.min,a=n.max,o=0,s=r.length-1;void 0!==i&&(e=r.indexOf(i))>=0&&(o=e),void 0!==a&&(e=r.indexOf(a))>=0&&(s=e),t.minIndex=o,t.maxIndex=s,t.min=r[o],t.max=r[s]},buildTicks:function(){var e=this,t=e._getLabels(),r=e.minIndex,n=e.maxIndex;e.ticks=0===r&&n===t.length-1?t:t.slice(r,n+1)},getLabelForIndex:function(e,t){var r=this,n=r.chart;return n.getDatasetMeta(t).controller._getValueScaleId()===r.id?r.getRightValue(n.data.datasets[t].data[e]):r._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,r=e.ticks;Mr.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),r&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(r.length-(t?0:1),1))},getPixelForValue:function(e,t,r){var n,i,a,o=this;return wr(t)||wr(r)||(e=o.chart.data.datasets[r].data[t]),wr(e)||(n=o.isHorizontal()?e.x:e.y),(void 0!==n||void 0!==e&&isNaN(t))&&(i=o._getLabels(),e=W.valueOrDefault(n,e),t=-1!==(a=i.indexOf(e))?a:t,isNaN(t)&&(t=e)),o.getPixelForDecimal((t-o._startValue)/o._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=this,r=Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange);return Math.min(Math.max(r,0),t.ticks.length-1)},getBasePixel:function(){return this.bottom}}),Lr={position:"bottom"};Tr._defaults=Lr;var Sr=W.noop,kr=W.isNullOrUndef;var xr=Mr.extend({getRightValue:function(e){return"string"==typeof e?+e:Mr.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var r=W.sign(e.min),n=W.sign(e.max);r<0&&n<0?e.max=0:r>0&&n>0&&(e.min=0)}var i=void 0!==t.min||void 0!==t.suggestedMin,a=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),i!==a&&e.min>=e.max&&(i?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this,r=t.options.ticks,n=r.stepSize,i=r.maxTicksLimit;return n?e=Math.ceil(t.max/n)-Math.floor(t.min/n)+1:(e=t._computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:Sr,buildTicks:function(){var e=this,t=e.options.ticks,r=e.getTickLimit(),n={maxTicks:r=Math.max(2,r),min:t.min,max:t.max,precision:t.precision,stepSize:W.valueOrDefault(t.fixedStepSize,t.stepSize)},i=e.ticks=function(e,t){var r,n,i,a,o=[],s=e.stepSize,l=s||1,u=e.maxTicks-1,c=e.min,d=e.max,h=e.precision,f=t.min,p=t.max,m=W.niceNum((p-f)/u/l)*l;if(m<1e-14&&kr(c)&&kr(d))return[f,p];(a=Math.ceil(p/m)-Math.floor(f/m))>u&&(m=W.niceNum(a*m/u/l)*l),s||kr(h)?r=Math.pow(10,W._decimalPlaces(m)):(r=Math.pow(10,h),m=Math.ceil(m*r)/r),n=Math.floor(f/m)*m,i=Math.ceil(p/m)*m,s&&(!kr(c)&&W.almostWhole(c/m,m/1e3)&&(n=c),!kr(d)&&W.almostWhole(d/m,m/1e3)&&(i=d)),a=(i-n)/m,a=W.almostEquals(a,Math.round(a),m/1e3)?Math.round(a):Math.ceil(a),n=Math.round(n*r)/r,i=Math.round(i*r)/r,o.push(kr(c)?n:c);for(var g=1;g<a;++g)o.push(Math.round((n+g*m)*r)/r);return o.push(kr(d)?i:d),o}(n,e);e.handleDirectionalChanges(),e.max=W.max(i),e.min=W.min(i),t.reverse?(i.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),Mr.prototype.convertTicksToLabels.call(e)},_configure:function(){var e,t=this,r=t.getTicks(),n=t.min,i=t.max;Mr.prototype._configure.call(t),t.options.offset&&r.length&&(n-=e=(i-n)/Math.max(r.length-1,1)/2,i+=e),t._startValue=n,t._endValue=i,t._valueRange=i-n}}),Er={position:"left",ticks:{callback:sr.formatters.linear}};function Dr(e,t,r,n){var i,a,o=e.options,s=function(e,t,r){var n=[r.type,void 0===t&&void 0===r.stack?r.index:"",r.stack].join(".");return void 0===e[n]&&(e[n]={pos:[],neg:[]}),e[n]}(t,o.stacked,r),l=s.pos,u=s.neg,c=n.length;for(i=0;i<c;++i)a=e._parseValue(n[i]),isNaN(a.min)||isNaN(a.max)||r.data[i].hidden||(l[i]=l[i]||0,u[i]=u[i]||0,o.relativePoints?l[i]=100:a.min<0||a.max<0?u[i]+=a.min:l[i]+=a.max)}function Ar(e,t,r){var n,i,a=r.length;for(n=0;n<a;++n)i=e._parseValue(r[n]),isNaN(i.min)||isNaN(i.max)||t.data[n].hidden||(e.min=Math.min(e.min,i.min),e.max=Math.max(e.max,i.max))}var Or=xr.extend({determineDataLimits:function(){var e,t,r,n,i=this,a=i.options,o=i.chart.data.datasets,s=i._getMatchingVisibleMetas(),l=a.stacked,u={},c=s.length;if(i.min=Number.POSITIVE_INFINITY,i.max=Number.NEGATIVE_INFINITY,void 0===l)for(e=0;!l&&e<c;++e)l=void 0!==(t=s[e]).stack;for(e=0;e<c;++e)r=o[(t=s[e]).index].data,l?Dr(i,u,t,r):Ar(i,t,r);W.each(u,(function(e){n=e.pos.concat(e.neg),i.min=Math.min(i.min,W.min(n)),i.max=Math.max(i.max,W.max(n))})),i.min=W.isFinite(i.min)&&!isNaN(i.min)?i.min:0,i.max=W.isFinite(i.max)&&!isNaN(i.max)?i.max:1,i.handleTickRangeOptions()},_computeTickLimit:function(){var e,t=this;return t.isHorizontal()?Math.ceil(t.width/40):(e=W.options._parseFont(t.options.ticks),Math.ceil(t.height/e.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this;return t.getPixelForDecimal((+t.getRightValue(e)-t._startValue)/t._valueRange)},getValueForPixel:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange},getPixelForTick:function(e){var t=this.ticksAsNumbers;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])}}),Pr=Er;Or._defaults=Pr;var Rr=W.valueOrDefault,Ir=W.math.log10;var Yr={position:"left",ticks:{callback:sr.formatters.logarithmic}};function Cr(e,t){return W.isFinite(e)&&e>=0?e:t}var Fr=Mr.extend({determineDataLimits:function(){var e,t,r,n,i,a,o=this,s=o.options,l=o.chart,u=l.data.datasets,c=o.isHorizontal();function d(e){return c?e.xAxisID===o.id:e.yAxisID===o.id}o.min=Number.POSITIVE_INFINITY,o.max=Number.NEGATIVE_INFINITY,o.minNotZero=Number.POSITIVE_INFINITY;var h=s.stacked;if(void 0===h)for(e=0;e<u.length;e++)if(t=l.getDatasetMeta(e),l.isDatasetVisible(e)&&d(t)&&void 0!==t.stack){h=!0;break}if(s.stacked||h){var f={};for(e=0;e<u.length;e++){var p=[(t=l.getDatasetMeta(e)).type,void 0===s.stacked&&void 0===t.stack?e:"",t.stack].join(".");if(l.isDatasetVisible(e)&&d(t))for(void 0===f[p]&&(f[p]=[]),i=0,a=(n=u[e].data).length;i<a;i++){var m=f[p];r=o._parseValue(n[i]),isNaN(r.min)||isNaN(r.max)||t.data[i].hidden||r.min<0||r.max<0||(m[i]=m[i]||0,m[i]+=r.max)}}W.each(f,(function(e){if(e.length>0){var t=W.min(e),r=W.max(e);o.min=Math.min(o.min,t),o.max=Math.max(o.max,r)}}))}else for(e=0;e<u.length;e++)if(t=l.getDatasetMeta(e),l.isDatasetVisible(e)&&d(t))for(i=0,a=(n=u[e].data).length;i<a;i++)r=o._parseValue(n[i]),isNaN(r.min)||isNaN(r.max)||t.data[i].hidden||r.min<0||r.max<0||(o.min=Math.min(r.min,o.min),o.max=Math.max(r.max,o.max),0!==r.min&&(o.minNotZero=Math.min(r.min,o.minNotZero)));o.min=W.isFinite(o.min)?o.min:null,o.max=W.isFinite(o.max)?o.max:null,o.minNotZero=W.isFinite(o.minNotZero)?o.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;e.min=Cr(t.min,e.min),e.max=Cr(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(Ir(e.min))-1),e.max=Math.pow(10,Math.floor(Ir(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(Ir(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(Ir(e.min))+1):10),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(Ir(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,r=!e.isHorizontal(),n={min:Cr(t.min),max:Cr(t.max)},i=e.ticks=function(e,t){var r,n,i=[],a=Rr(e.min,Math.pow(10,Math.floor(Ir(t.min)))),o=Math.floor(Ir(t.max)),s=Math.ceil(t.max/Math.pow(10,o));0===a?(r=Math.floor(Ir(t.minNotZero)),n=Math.floor(t.minNotZero/Math.pow(10,r)),i.push(a),a=n*Math.pow(10,r)):(r=Math.floor(Ir(a)),n=Math.floor(a/Math.pow(10,r)));var l=r<0?Math.pow(10,Math.abs(r)):1;do{i.push(a),10==++n&&(n=1,l=++r>=0?1:l),a=Math.round(n*Math.pow(10,r)*l)/l}while(r<o||r===o&&n<s);var u=Rr(e.max,a);return i.push(u),i}(n,e);e.max=W.max(i),e.min=W.min(i),t.reverse?(r=!r,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),r&&i.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),Mr.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){var t=this.tickValues;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(Ir(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,r=0;Mr.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),r=Rr(e.options.ticks.fontSize,N.global.defaultFontSize)/e._length),e._startValue=Ir(t),e._valueOffset=r,e._valueRange=(Ir(e.max)-Ir(t))/(1-r)},getPixelForValue:function(e){var t=this,r=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(r=(Ir(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(r)},getValueForPixel:function(e){var t=this,r=t.getDecimalForPixel(e);return 0===r&&0===t.min?0:Math.pow(10,t._startValue+(r-t._valueOffset)*t._valueRange)}}),Nr=Yr;Fr._defaults=Nr;var jr=W.valueOrDefault,Hr=W.valueAtIndexOrDefault,Br=W.options.resolve,Ur={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:sr.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function Wr(e){var t=e.ticks;return t.display&&e.display?jr(t.fontSize,N.global.defaultFontSize)+2*t.backdropPaddingY:0}function zr(e,t,r,n,i){return e===n||e===i?{start:t-r/2,end:t+r/2}:e<n||e>i?{start:t-r,end:t}:{start:t,end:t+r}}function Gr(e){return 0===e||180===e?"center":e<180?"left":"right"}function Vr(e,t,r,n){var i,a,o=r.y+n/2;if(W.isArray(t))for(i=0,a=t.length;i<a;++i)e.fillText(t[i],r.x,o),o+=n;else e.fillText(t,r.x,o)}function Kr(e,t,r){90===e||270===e?r.y-=t.h/2:(e>270||e<90)&&(r.y-=t.h)}function qr(e){return W.isNumber(e)?e:0}var $r=xr.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=Wr(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,r=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;W.each(t.data.datasets,(function(i,a){if(t.isDatasetVisible(a)){var o=t.getDatasetMeta(a);W.each(i.data,(function(t,i){var a=+e.getRightValue(t);isNaN(a)||o.data[i].hidden||(r=Math.min(a,r),n=Math.max(a,n))}))}})),e.min=r===Number.POSITIVE_INFINITY?0:r,e.max=n===Number.NEGATIVE_INFINITY?0:n,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Wr(this.options))},convertTicksToLabels:function(){var e=this;xr.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map((function(){var t=W.callback(e.options.pointLabels.callback,arguments,e);return t||0===t?t:""}))},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this,t=e.options;t.display&&t.pointLabels.display?function(e){var t,r,n,i=W.options._parseFont(e.options.pointLabels),a={l:0,r:e.width,t:0,b:e.height-e.paddingTop},o={};e.ctx.font=i.string,e._pointLabelSizes=[];var s,l,u,c=e.chart.data.labels.length;for(t=0;t<c;t++){n=e.getPointPosition(t,e.drawingArea+5),s=e.ctx,l=i.lineHeight,u=e.pointLabels[t],r=W.isArray(u)?{w:W.longestText(s,s.font,u),h:u.length*l}:{w:s.measureText(u).width,h:l},e._pointLabelSizes[t]=r;var d=e.getIndexAngle(t),h=W.toDegrees(d)%360,f=zr(h,n.x,r.w,0,180),p=zr(h,n.y,r.h,90,270);f.start<a.l&&(a.l=f.start,o.l=d),f.end>a.r&&(a.r=f.end,o.r=d),p.start<a.t&&(a.t=p.start,o.t=d),p.end>a.b&&(a.b=p.end,o.b=d)}e.setReductions(e.drawingArea,a,o)}(e):e.setCenterPoint(0,0,0,0)},setReductions:function(e,t,r){var n=this,i=t.l/Math.sin(r.l),a=Math.max(t.r-n.width,0)/Math.sin(r.r),o=-t.t/Math.cos(r.t),s=-Math.max(t.b-(n.height-n.paddingTop),0)/Math.cos(r.b);i=qr(i),a=qr(a),o=qr(o),s=qr(s),n.drawingArea=Math.min(Math.floor(e-(i+a)/2),Math.floor(e-(o+s)/2)),n.setCenterPoint(i,a,o,s)},setCenterPoint:function(e,t,r,n){var i=this,a=i.width-t-i.drawingArea,o=e+i.drawingArea,s=r+i.drawingArea,l=i.height-i.paddingTop-n-i.drawingArea;i.xCenter=Math.floor((o+a)/2+i.left),i.yCenter=Math.floor((s+l)/2+i.top+i.paddingTop)},getIndexAngle:function(e){var t=this.chart,r=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(r<0?r+360:r)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(W.isNullOrUndef(e))return NaN;var r=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*r:(e-t.min)*r},getPointPosition:function(e,t){var r=this,n=r.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(n)*t+r.xCenter,y:Math.sin(n)*t+r.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this,r=t.min,n=t.max;return t.getPointPositionForValue(e||0,t.beginAtZero?0:r<0&&n<0?n:r>0&&n>0?r:0)},_drawGrid:function(){var e,t,r,n=this,i=n.ctx,a=n.options,o=a.gridLines,s=a.angleLines,l=jr(s.lineWidth,o.lineWidth),u=jr(s.color,o.color);if(a.pointLabels.display&&function(e){var t=e.ctx,r=e.options,n=r.pointLabels,i=Wr(r),a=e.getDistanceFromCenterForValue(r.ticks.reverse?e.min:e.max),o=W.options._parseFont(n);t.save(),t.font=o.string,t.textBaseline="middle";for(var s=e.chart.data.labels.length-1;s>=0;s--){var l=0===s?i/2:0,u=e.getPointPosition(s,a+l+5),c=Hr(n.fontColor,s,N.global.defaultFontColor);t.fillStyle=c;var d=e.getIndexAngle(s),h=W.toDegrees(d);t.textAlign=Gr(h),Kr(h,e._pointLabelSizes[s],u),Vr(t,e.pointLabels[s],u,o.lineHeight)}t.restore()}(n),o.display&&W.each(n.ticks,(function(e,r){0!==r&&(t=n.getDistanceFromCenterForValue(n.ticksAsNumbers[r]),function(e,t,r,n){var i,a=e.ctx,o=t.circular,s=e.chart.data.labels.length,l=Hr(t.color,n-1),u=Hr(t.lineWidth,n-1);if((o||s)&&l&&u){if(a.save(),a.strokeStyle=l,a.lineWidth=u,a.setLineDash&&(a.setLineDash(t.borderDash||[]),a.lineDashOffset=t.borderDashOffset||0),a.beginPath(),o)a.arc(e.xCenter,e.yCenter,r,0,2*Math.PI);else{i=e.getPointPosition(0,r),a.moveTo(i.x,i.y);for(var c=1;c<s;c++)i=e.getPointPosition(c,r),a.lineTo(i.x,i.y)}a.closePath(),a.stroke(),a.restore()}}(n,o,t,r))})),s.display&&l&&u){for(i.save(),i.lineWidth=l,i.strokeStyle=u,i.setLineDash&&(i.setLineDash(Br([s.borderDash,o.borderDash,[]])),i.lineDashOffset=Br([s.borderDashOffset,o.borderDashOffset,0])),e=n.chart.data.labels.length-1;e>=0;e--)t=n.getDistanceFromCenterForValue(a.ticks.reverse?n.min:n.max),r=n.getPointPosition(e,t),i.beginPath(),i.moveTo(n.xCenter,n.yCenter),i.lineTo(r.x,r.y),i.stroke();i.restore()}},_drawLabels:function(){var e=this,t=e.ctx,r=e.options.ticks;if(r.display){var n,i,a=e.getIndexAngle(0),o=W.options._parseFont(r),s=jr(r.fontColor,N.global.defaultFontColor);t.save(),t.font=o.string,t.translate(e.xCenter,e.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",W.each(e.ticks,(function(a,l){(0!==l||r.reverse)&&(n=e.getDistanceFromCenterForValue(e.ticksAsNumbers[l]),r.showLabelBackdrop&&(i=t.measureText(a).width,t.fillStyle=r.backdropColor,t.fillRect(-i/2-r.backdropPaddingX,-n-o.size/2-r.backdropPaddingY,i+2*r.backdropPaddingX,o.size+2*r.backdropPaddingY)),t.fillStyle=s,t.fillText(a,0,-n))})),t.restore()}},_drawTitle:W.noop}),Jr=Ur;$r._defaults=Jr;var Xr=W._deprecated,Qr=W.options.resolve,Zr=W.valueOrDefault,en=Number.MIN_SAFE_INTEGER||-9007199254740991,tn=Number.MAX_SAFE_INTEGER||9007199254740991,rn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},nn=Object.keys(rn);function an(e,t){return e-t}function on(e){return W.valueOrDefault(e.time.min,e.ticks.min)}function sn(e){return W.valueOrDefault(e.time.max,e.ticks.max)}function ln(e,t,r,n){var i=function(e,t,r){for(var n,i,a,o=0,s=e.length-1;o>=0&&o<=s;){if(i=e[(n=o+s>>1)-1]||null,a=e[n],!i)return{lo:null,hi:a};if(a[t]<r)o=n+1;else{if(!(i[t]>r))return{lo:i,hi:a};s=n-1}}return{lo:a,hi:null}}(e,t,r),a=i.lo?i.hi?i.lo:e[e.length-2]:e[0],o=i.lo?i.hi?i.hi:e[e.length-1]:e[1],s=o[t]-a[t],l=s?(r-a[t])/s:0,u=(o[n]-a[n])*l;return a[n]+u}function un(e,t){var r=e._adapter,n=e.options.time,i=n.parser,a=i||n.format,o=t;return"function"==typeof i&&(o=i(o)),W.isFinite(o)||(o="string"==typeof a?r.parse(o,a):r.parse(o)),null!==o?+o:(i||"function"!=typeof a||(o=a(t),W.isFinite(o)||(o=r.parse(o))),o)}function cn(e,t){if(W.isNullOrUndef(t))return null;var r=e.options.time,n=un(e,e.getRightValue(t));return null===n||r.round&&(n=+e._adapter.startOf(n,r.round)),n}function dn(e,t,r,n){var i,a,o,s=nn.length;for(i=nn.indexOf(e);i<s-1;++i)if(o=(a=rn[nn[i]]).steps?a.steps:tn,a.common&&Math.ceil((r-t)/(o*a.size))<=n)return nn[i];return nn[s-1]}function hn(e,t,r){var n,i,a=[],o={},s=t.length;for(n=0;n<s;++n)o[i=t[n]]=n,a.push({value:i,major:!1});return 0!==s&&r?function(e,t,r,n){var i,a,o=e._adapter,s=+o.startOf(t[0].value,n),l=t[t.length-1].value;for(i=s;i<=l;i=+o.add(i,1,n))(a=r[i])>=0&&(t[a].major=!0);return t}(e,a,o,r):a}var fn=Mr.extend({initialize:function(){this.mergeTicksOptions(),Mr.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,r=t.time||(t.time={}),n=e._adapter=new or._date(t.adapters.date);return Xr("time scale",r.format,"time.format","time.parser"),Xr("time scale",r.min,"time.min","ticks.min"),Xr("time scale",r.max,"time.max","ticks.max"),W.mergeIf(r.displayFormats,n.formats()),Mr.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),Mr.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,r,n,i,a,o,s=this,l=s.chart,u=s._adapter,c=s.options,d=c.time.unit||"day",h=tn,f=en,p=[],m=[],g=[],v=s._getLabels();for(e=0,r=v.length;e<r;++e)g.push(cn(s,v[e]));for(e=0,r=(l.data.datasets||[]).length;e<r;++e)if(l.isDatasetVisible(e))if(i=l.data.datasets[e].data,W.isObject(i[0]))for(m[e]=[],t=0,n=i.length;t<n;++t)a=cn(s,i[t]),p.push(a),m[e][t]=a;else m[e]=g.slice(0),o||(p=p.concat(g),o=!0);else m[e]=[];g.length&&(h=Math.min(h,g[0]),f=Math.max(f,g[g.length-1])),p.length&&(p=r>1?function(e){var t,r,n,i={},a=[];for(t=0,r=e.length;t<r;++t)i[n=e[t]]||(i[n]=!0,a.push(n));return a}(p).sort(an):p.sort(an),h=Math.min(h,p[0]),f=Math.max(f,p[p.length-1])),h=cn(s,on(c))||h,f=cn(s,sn(c))||f,h=h===tn?+u.startOf(Date.now(),d):h,f=f===en?+u.endOf(Date.now(),d)+1:f,s.min=Math.min(h,f),s.max=Math.max(h+1,f),s._table=[],s._timestamps={data:p,datasets:m,labels:g}},buildTicks:function(){var e,t,r,n=this,i=n.min,a=n.max,o=n.options,s=o.ticks,l=o.time,u=n._timestamps,c=[],d=n.getLabelCapacity(i),h=s.source,f=o.distribution;for(u="data"===h||"auto"===h&&"series"===f?u.data:"labels"===h?u.labels:function(e,t,r,n){var i,a=e._adapter,o=e.options,s=o.time,l=s.unit||dn(s.minUnit,t,r,n),u=Qr([s.stepSize,s.unitStepSize,1]),c="week"===l&&s.isoWeekday,d=t,h=[];if(c&&(d=+a.startOf(d,"isoWeek",c)),d=+a.startOf(d,c?"day":l),a.diff(r,t,l)>1e5*u)throw t+" and "+r+" are too far apart with stepSize of "+u+" "+l;for(i=d;i<r;i=+a.add(i,u,l))h.push(i);return i!==r&&"ticks"!==o.bounds||h.push(i),h}(n,i,a,d),"ticks"===o.bounds&&u.length&&(i=u[0],a=u[u.length-1]),i=cn(n,on(o))||i,a=cn(n,sn(o))||a,e=0,t=u.length;e<t;++e)(r=u[e])>=i&&r<=a&&c.push(r);return n.min=i,n.max=a,n._unit=l.unit||(s.autoSkip?dn(l.minUnit,n.min,n.max,d):function(e,t,r,n,i){var a,o;for(a=nn.length-1;a>=nn.indexOf(r);a--)if(o=nn[a],rn[o].common&&e._adapter.diff(i,n,o)>=t-1)return o;return nn[r?nn.indexOf(r):0]}(n,c.length,l.minUnit,n.min,n.max)),n._majorUnit=s.major.enabled&&"year"!==n._unit?function(e){for(var t=nn.indexOf(e)+1,r=nn.length;t<r;++t)if(rn[nn[t]].common)return nn[t]}(n._unit):void 0,n._table=function(e,t,r,n){if("linear"===n||!e.length)return[{time:t,pos:0},{time:r,pos:1}];var i,a,o,s,l,u=[],c=[t];for(i=0,a=e.length;i<a;++i)(s=e[i])>t&&s<r&&c.push(s);for(c.push(r),i=0,a=c.length;i<a;++i)l=c[i+1],o=c[i-1],s=c[i],void 0!==o&&void 0!==l&&Math.round((l+o)/2)===s||u.push({time:s,pos:i/(a-1)});return u}(n._timestamps.data,i,a,f),n._offsets=function(e,t,r,n,i){var a,o,s=0,l=0;return i.offset&&t.length&&(a=ln(e,"time",t[0],"pos"),s=1===t.length?1-a:(ln(e,"time",t[1],"pos")-a)/2,o=ln(e,"time",t[t.length-1],"pos"),l=1===t.length?o:(o-ln(e,"time",t[t.length-2],"pos"))/2),{start:s,end:l,factor:1/(s+1+l)}}(n._table,c,0,0,o),s.reverse&&c.reverse(),hn(n,c,n._majorUnit)},getLabelForIndex:function(e,t){var r=this,n=r._adapter,i=r.chart.data,a=r.options.time,o=i.labels&&e<i.labels.length?i.labels[e]:"",s=i.datasets[t].data[e];return W.isObject(s)&&(o=r.getRightValue(s)),a.tooltipFormat?n.format(un(r,o),a.tooltipFormat):"string"==typeof o?o:n.format(un(r,o),a.displayFormats.datetime)},tickFormatFunction:function(e,t,r,n){var i=this,a=i._adapter,o=i.options,s=o.time.displayFormats,l=s[i._unit],u=i._majorUnit,c=s[u],d=r[t],h=o.ticks,f=u&&c&&d&&d.major,p=a.format(e,n||(f?c:l)),m=f?h.major:h.minor,g=Qr([m.callback,m.userCallback,h.callback,h.userCallback]);return g?g(p,t,r):p},convertTicksToLabels:function(e){var t,r,n=[];for(t=0,r=e.length;t<r;++t)n.push(this.tickFormatFunction(e[t].value,t,e));return n},getPixelForOffset:function(e){var t=this,r=t._offsets,n=ln(t._table,"time",e,"pos");return t.getPixelForDecimal((r.start+n)*r.factor)},getPixelForValue:function(e,t,r){var n=this,i=null;if(void 0!==t&&void 0!==r&&(i=n._timestamps.datasets[r][t]),null===i&&(i=cn(n,e)),null!==i)return n.getPixelForOffset(i)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,r=t._offsets,n=t.getDecimalForPixel(e)/r.factor-r.end,i=ln(t._table,"pos",n,"time");return t._adapter._create(i)},_getLabelSize:function(e){var t=this,r=t.options.ticks,n=t.ctx.measureText(e).width,i=W.toRadians(t.isHorizontal()?r.maxRotation:r.minRotation),a=Math.cos(i),o=Math.sin(i),s=Zr(r.fontSize,N.global.defaultFontSize);return{w:n*a+s*o,h:n*o+s*a}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var t=this,r=t.options.time,n=r.displayFormats,i=n[r.unit]||n.millisecond,a=t.tickFormatFunction(e,0,hn(t,[e],t._majorUnit),i),o=t._getLabelSize(a),s=Math.floor(t.isHorizontal()?t.width/o.w:t.height/o.h);return t.options.offset&&s--,s>0?s:1}}),pn={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};fn._defaults=pn;var mn={category:Tr,linear:Or,logarithmic:Fr,radialLinear:$r,time:fn},gn={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};or._date.override("function"==typeof e?{_id:"moment",formats:function(){return gn},parse:function(t,r){return"string"==typeof t&&"string"==typeof r?t=e(t,r):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,r){return e(t).format(r)},add:function(t,r,n){return e(t).add(r,n).valueOf()},diff:function(t,r,n){return e(t).diff(e(r),n)},startOf:function(t,r,n){return t=e(t),"isoWeek"===r?t.isoWeekday(n).valueOf():t.startOf(r).valueOf()},endOf:function(t,r){return e(t).endOf(r).valueOf()},_create:function(t){return e(t)}}:{}),N._set("global",{plugins:{filler:{propagate:!0}}});var vn={dataset:function(e){var t=e.fill,r=e.chart,n=r.getDatasetMeta(t),i=n&&r.isDatasetVisible(t)&&n.dataset._children||[],a=i.length||0;return a?function(e,t){return t<a&&i[t]._view||null}:null},boundary:function(e){var t=e.boundary,r=t?t.x:null,n=t?t.y:null;return W.isArray(t)?function(e,r){return t[r]}:function(e){return{x:null===r?e.x:r,y:null===n?e.y:n}}}};function yn(e,t,r){var n,i=e._model||{},a=i.fill;if(void 0===a&&(a=!!i.backgroundColor),!1===a||null===a)return!1;if(!0===a)return"origin";if(n=parseFloat(a,10),isFinite(n)&&Math.floor(n)===n)return"-"!==a[0]&&"+"!==a[0]||(n=t+n),!(n===t||n<0||n>=r)&&n;switch(a){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return a;default:return!1}}function _n(e){return(e.el._scale||{}).getPointPositionForValue?function(e){var t,r,n,i,a,o=e.el._scale,s=o.options,l=o.chart.data.labels.length,u=e.fill,c=[];if(!l)return null;for(t=s.ticks.reverse?o.max:o.min,r=s.ticks.reverse?o.min:o.max,n=o.getPointPositionForValue(0,t),i=0;i<l;++i)a="start"===u||"end"===u?o.getPointPositionForValue(i,"start"===u?t:r):o.getBasePosition(i),s.gridLines.circular&&(a.cx=n.x,a.cy=n.y,a.angle=o.getIndexAngle(i)-Math.PI/2),c.push(a);return c}(e):function(e){var t,r=e.el._model||{},n=e.el._scale||{},i=e.fill,a=null;if(isFinite(i))return null;if("start"===i?a=void 0===r.scaleBottom?n.bottom:r.scaleBottom:"end"===i?a=void 0===r.scaleTop?n.top:r.scaleTop:void 0!==r.scaleZero?a=r.scaleZero:n.getBasePixel&&(a=n.getBasePixel()),null!=a){if(void 0!==a.x&&void 0!==a.y)return a;if(W.isFinite(a))return{x:(t=n.isHorizontal())?a:null,y:t?null:a}}return null}(e)}function bn(e,t,r){var n,i=e[t].fill,a=[t];if(!r)return i;for(;!1!==i&&-1===a.indexOf(i);){if(!isFinite(i))return i;if(!(n=e[i]))return!1;if(n.visible)return i;a.push(i),i=n.fill}return!1}function Mn(e){var t=e.fill,r="dataset";return!1===t?null:(isFinite(t)||(r="boundary"),vn[r](e))}function wn(e){return e&&!e.skip}function Tn(e,t,r,n,i){var a,o,s,l;if(n&&i){for(e.moveTo(t[0].x,t[0].y),a=1;a<n;++a)W.canvas.lineTo(e,t[a-1],t[a]);if(void 0===r[0].angle)for(e.lineTo(r[i-1].x,r[i-1].y),a=i-1;a>0;--a)W.canvas.lineTo(e,r[a],r[a-1],!0);else for(o=r[0].cx,s=r[0].cy,l=Math.sqrt(Math.pow(r[0].x-o,2)+Math.pow(r[0].y-s,2)),a=i-1;a>0;--a)e.arc(o,s,l,r[a].angle,r[a-1].angle,!0)}}function Ln(e,t,r,n,i,a){var o,s,l,u,c,d,h,f,p=t.length,m=n.spanGaps,g=[],v=[],y=0,_=0;for(e.beginPath(),o=0,s=p;o<s;++o)c=r(u=t[l=o%p]._view,l,n),d=wn(u),h=wn(c),a&&void 0===f&&d&&(s=p+(f=o+1)),d&&h?(y=g.push(u),_=v.push(c)):y&&_&&(m?(d&&g.push(u),h&&v.push(c)):(Tn(e,g,v,y,_),y=_=0,g=[],v=[]));Tn(e,g,v,y,_),e.closePath(),e.fillStyle=i,e.fill()}var Sn={id:"filler",afterDatasetsUpdate:function(e,t){var r,n,i,a,o=(e.data.datasets||[]).length,s=t.propagate,l=[];for(n=0;n<o;++n)a=null,(i=(r=e.getDatasetMeta(n)).dataset)&&i._model&&i instanceof Te.Line&&(a={visible:e.isDatasetVisible(n),fill:yn(i,n,o),chart:e,el:i}),r.$filler=a,l.push(a);for(n=0;n<o;++n)(a=l[n])&&(a.fill=bn(l,n,s),a.boundary=_n(a),a.mapper=Mn(a))},beforeDatasetsDraw:function(e){var t,r,n,i,a,o,s,l=e._getSortedVisibleDatasetMetas(),u=e.ctx;for(r=l.length-1;r>=0;--r)(t=l[r].$filler)&&t.visible&&(i=(n=t.el)._view,a=n._children||[],o=t.mapper,s=i.backgroundColor||N.global.defaultColor,o&&s&&a.length&&(W.canvas.clipArea(u,e.chartArea),Ln(u,a,o,i,s,n._loop),W.canvas.unclipArea(u)))}},kn=W.rtl.getRtlAdapter,xn=W.noop,En=W.valueOrDefault;function Dn(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}N._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var r=t.datasetIndex,n=this.chart,i=n.getDatasetMeta(r);i.hidden=null===i.hidden?!n.data.datasets[r].hidden:null,n.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,r=e.options.legend||{},n=r.labels&&r.labels.usePointStyle;return e._getSortedDatasetMetas().map((function(r){var i=r.controller.getStyle(n?0:void 0);return{text:t[r.index].label,fillStyle:i.backgroundColor,hidden:!e.isDatasetVisible(r.index),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,rotation:i.rotation,datasetIndex:r.index}}),this)}}},legendCallback:function(e){var t,r,n,i=document.createElement("ul"),a=e.data.datasets;for(i.setAttribute("class",e.id+"-legend"),t=0,r=a.length;t<r;t++)(n=i.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[t].backgroundColor,a[t].label&&n.appendChild(document.createTextNode(a[t].label));return i.outerHTML}});var An=J.extend({initialize:function(e){var t=this;W.extend(t,e),t.legendHitBoxes=[],t._hoveredItem=null,t.doughnutMode=!1},beforeUpdate:xn,update:function(e,t,r){var n=this;return n.beforeUpdate(),n.maxWidth=e,n.maxHeight=t,n.margins=r,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:xn,beforeSetDimensions:xn,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:xn,beforeBuildLabels:xn,buildLabels:function(){var e=this,t=e.options.labels||{},r=W.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(r=r.filter((function(r){return t.filter(r,e.chart.data)}))),e.options.reverse&&r.reverse(),e.legendItems=r},afterBuildLabels:xn,beforeFit:xn,fit:function(){var e=this,t=e.options,r=t.labels,n=t.display,i=e.ctx,a=W.options._parseFont(r),o=a.size,s=e.legendHitBoxes=[],l=e.minSize,u=e.isHorizontal();if(u?(l.width=e.maxWidth,l.height=n?10:0):(l.width=n?10:0,l.height=e.maxHeight),n){if(i.font=a.string,u){var c=e.lineWidths=[0],d=0;i.textAlign="left",i.textBaseline="middle",W.each(e.legendItems,(function(e,t){var n=Dn(r,o)+o/2+i.measureText(e.text).width;(0===t||c[c.length-1]+n+2*r.padding>l.width)&&(d+=o+r.padding,c[c.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:n,height:o},c[c.length-1]+=n+r.padding})),l.height+=d}else{var h=r.padding,f=e.columnWidths=[],p=e.columnHeights=[],m=r.padding,g=0,v=0;W.each(e.legendItems,(function(e,t){var n=Dn(r,o)+o/2+i.measureText(e.text).width;t>0&&v+o+2*h>l.height&&(m+=g+r.padding,f.push(g),p.push(v),g=0,v=0),g=Math.max(g,n),v+=o+h,s[t]={left:0,top:0,width:n,height:o}})),m+=g,f.push(g),p.push(v),l.width+=m}e.width=l.width,e.height=l.height}else e.width=l.width=e.height=l.height=0},afterFit:xn,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,r=t.labels,n=N.global,i=n.defaultColor,a=n.elements.line,o=e.height,s=e.columnHeights,l=e.width,u=e.lineWidths;if(t.display){var c,d=kn(t.rtl,e.left,e.minSize.width),h=e.ctx,f=En(r.fontColor,n.defaultFontColor),p=W.options._parseFont(r),m=p.size;h.textAlign=d.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=p.string;var g=Dn(r,m),v=e.legendHitBoxes,y=function(e,n){switch(t.align){case"start":return r.padding;case"end":return e-n;default:return(e-n+r.padding)/2}},_=e.isHorizontal();c=_?{x:e.left+y(l,u[0]),y:e.top+r.padding,line:0}:{x:e.left+r.padding,y:e.top+y(o,s[0]),line:0},W.rtl.overrideTextDirection(e.ctx,t.textDirection);var b=m+r.padding;W.each(e.legendItems,(function(t,n){var f=h.measureText(t.text).width,p=g+m/2+f,M=c.x,w=c.y;d.setWidth(e.minSize.width),_?n>0&&M+p+r.padding>e.left+e.minSize.width&&(w=c.y+=b,c.line++,M=c.x=e.left+y(l,u[c.line])):n>0&&w+b>e.top+e.minSize.height&&(M=c.x=M+e.columnWidths[c.line]+r.padding,c.line++,w=c.y=e.top+y(o,s[c.line]));var T=d.x(M);(function(e,t,n){if(!(isNaN(g)||g<=0)){h.save();var o=En(n.lineWidth,a.borderWidth);if(h.fillStyle=En(n.fillStyle,i),h.lineCap=En(n.lineCap,a.borderCapStyle),h.lineDashOffset=En(n.lineDashOffset,a.borderDashOffset),h.lineJoin=En(n.lineJoin,a.borderJoinStyle),h.lineWidth=o,h.strokeStyle=En(n.strokeStyle,i),h.setLineDash&&h.setLineDash(En(n.lineDash,a.borderDash)),r&&r.usePointStyle){var s=g*Math.SQRT2/2,l=d.xPlus(e,g/2),u=t+m/2;W.canvas.drawPoint(h,n.pointStyle,s,l,u,n.rotation)}else h.fillRect(d.leftForLtr(e,g),t,g,m),0!==o&&h.strokeRect(d.leftForLtr(e,g),t,g,m);h.restore()}})(T,w,t),v[n].left=d.leftForLtr(T,v[n].width),v[n].top=w,function(e,t,r,n){var i=m/2,a=d.xPlus(e,g+i),o=t+i;h.fillText(r.text,a,o),r.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(a,o),h.lineTo(d.xPlus(a,n),o),h.stroke())}(T,w,t,f),_?c.x+=p+r.padding:c.y+=b})),W.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var r,n,i,a=this;if(e>=a.left&&e<=a.right&&t>=a.top&&t<=a.bottom)for(i=a.legendHitBoxes,r=0;r<i.length;++r)if(e>=(n=i[r]).left&&e<=n.left+n.width&&t>=n.top&&t<=n.top+n.height)return a.legendItems[r];return null},handleEvent:function(e){var t,r=this,n=r.options,i="mouseup"===e.type?"click":e.type;if("mousemove"===i){if(!n.onHover&&!n.onLeave)return}else{if("click"!==i)return;if(!n.onClick)return}t=r._getLegendItemAt(e.x,e.y),"click"===i?t&&n.onClick&&n.onClick.call(r,e.native,t):(n.onLeave&&t!==r._hoveredItem&&(r._hoveredItem&&n.onLeave.call(r,e.native,r._hoveredItem),r._hoveredItem=t),n.onHover&&t&&n.onHover.call(r,e.native,t))}});function On(e,t){var r=new An({ctx:e.ctx,options:t,chart:e});gt.configure(e,r,t),gt.addBox(e,r),e.legend=r}var Pn={id:"legend",_element:An,beforeInit:function(e){var t=e.options.legend;t&&On(e,t)},beforeUpdate:function(e){var t=e.options.legend,r=e.legend;t?(W.mergeIf(t,N.global.legend),r?(gt.configure(e,r,t),r.options=t):On(e,t)):r&&(gt.removeBox(e,r),delete e.legend)},afterEvent:function(e,t){var r=e.legend;r&&r.handleEvent(t)}},Rn=W.noop;N._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var In=J.extend({initialize:function(e){W.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:Rn,update:function(e,t,r){var n=this;return n.beforeUpdate(),n.maxWidth=e,n.maxHeight=t,n.margins=r,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:Rn,beforeSetDimensions:Rn,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Rn,beforeBuildLabels:Rn,buildLabels:Rn,afterBuildLabels:Rn,beforeFit:Rn,fit:function(){var e,t=this,r=t.options,n=t.minSize={},i=t.isHorizontal();r.display?(e=(W.isArray(r.text)?r.text.length:1)*W.options._parseFont(r).lineHeight+2*r.padding,t.width=n.width=i?t.maxWidth:e,t.height=n.height=i?e:t.maxHeight):t.width=n.width=t.height=n.height=0},afterFit:Rn,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,r=e.options;if(r.display){var n,i,a,o=W.options._parseFont(r),s=o.lineHeight,l=s/2+r.padding,u=0,c=e.top,d=e.left,h=e.bottom,f=e.right;t.fillStyle=W.valueOrDefault(r.fontColor,N.global.defaultFontColor),t.font=o.string,e.isHorizontal()?(i=d+(f-d)/2,a=c+l,n=f-d):(i="left"===r.position?d+l:f-l,a=c+(h-c)/2,n=h-c,u=Math.PI*("left"===r.position?-.5:.5)),t.save(),t.translate(i,a),t.rotate(u),t.textAlign="center",t.textBaseline="middle";var p=r.text;if(W.isArray(p))for(var m=0,g=0;g<p.length;++g)t.fillText(p[g],0,m,n),m+=s;else t.fillText(p,0,0,n);t.restore()}}});function Yn(e,t){var r=new In({ctx:e.ctx,options:t,chart:e});gt.configure(e,r,t),gt.addBox(e,r),e.titleBlock=r}var Cn={},Fn=Sn,Nn=Pn,jn={id:"title",_element:In,beforeInit:function(e){var t=e.options.title;t&&Yn(e,t)},beforeUpdate:function(e){var t=e.options.title,r=e.titleBlock;t?(W.mergeIf(t,N.global.title),r?(gt.configure(e,r,t),r.options=t):Yn(e,t)):r&&(gt.removeBox(e,r),delete e.titleBlock)}};for(var Hn in Cn.filler=Fn,Cn.legend=Nn,Cn.title=jn,nr.helpers=W,function(){function e(e,t,r){var n;return"string"==typeof e?(n=parseInt(e,10),-1!==e.indexOf("%")&&(n=n/100*t.parentNode[r])):n=e,n}function t(e){return null!=e&&"none"!==e}function r(r,n,i){var a=document.defaultView,o=W._getParentNode(r),s=a.getComputedStyle(r)[n],l=a.getComputedStyle(o)[n],u=t(s),c=t(l),d=Number.POSITIVE_INFINITY;return u||c?Math.min(u?e(s,r,i):d,c?e(l,o,i):d):"none"}W.where=function(e,t){if(W.isArray(e)&&Array.prototype.filter)return e.filter(t);var r=[];return W.each(e,(function(e){t(e)&&r.push(e)})),r},W.findIndex=Array.prototype.findIndex?function(e,t,r){return e.findIndex(t,r)}:function(e,t,r){r=void 0===r?e:r;for(var n=0,i=e.length;n<i;++n)if(t.call(r,e[n],n,e))return n;return-1},W.findNextWhere=function(e,t,r){W.isNullOrUndef(r)&&(r=-1);for(var n=r+1;n<e.length;n++){var i=e[n];if(t(i))return i}},W.findPreviousWhere=function(e,t,r){W.isNullOrUndef(r)&&(r=e.length);for(var n=r-1;n>=0;n--){var i=e[n];if(t(i))return i}},W.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},W.almostEquals=function(e,t,r){return Math.abs(e-t)<r},W.almostWhole=function(e,t){var r=Math.round(e);return r-t<=e&&r+t>=e},W.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},W.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},W.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},W.toRadians=function(e){return e*(Math.PI/180)},W.toDegrees=function(e){return e*(180/Math.PI)},W._decimalPlaces=function(e){if(W.isFinite(e)){for(var t=1,r=0;Math.round(e*t)/t!==e;)t*=10,r++;return r}},W.getAngleFromPoint=function(e,t){var r=t.x-e.x,n=t.y-e.y,i=Math.sqrt(r*r+n*n),a=Math.atan2(n,r);return a<-.5*Math.PI&&(a+=2*Math.PI),{angle:a,distance:i}},W.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},W.aliasPixel=function(e){return e%2==0?0:.5},W._alignPixel=function(e,t,r){var n=e.currentDevicePixelRatio,i=r/2;return Math.round((t-i)*n)/n+i},W.splineCurve=function(e,t,r,n){var i=e.skip?t:e,a=t,o=r.skip?t:r,s=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2)),l=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),u=s/(s+l),c=l/(s+l),d=n*(u=isNaN(u)?0:u),h=n*(c=isNaN(c)?0:c);return{previous:{x:a.x-d*(o.x-i.x),y:a.y-d*(o.y-i.y)},next:{x:a.x+h*(o.x-i.x),y:a.y+h*(o.y-i.y)}}},W.EPSILON=Number.EPSILON||1e-14,W.splineCurveMonotone=function(e){var t,r,n,i,a,o,s,l,u,c=(e||[]).map((function(e){return{model:e._model,deltaK:0,mK:0}})),d=c.length;for(t=0;t<d;++t)if(!(n=c[t]).model.skip){if(r=t>0?c[t-1]:null,(i=t<d-1?c[t+1]:null)&&!i.model.skip){var h=i.model.x-n.model.x;n.deltaK=0!==h?(i.model.y-n.model.y)/h:0}!r||r.model.skip?n.mK=n.deltaK:!i||i.model.skip?n.mK=r.deltaK:this.sign(r.deltaK)!==this.sign(n.deltaK)?n.mK=0:n.mK=(r.deltaK+n.deltaK)/2}for(t=0;t<d-1;++t)n=c[t],i=c[t+1],n.model.skip||i.model.skip||(W.almostEquals(n.deltaK,0,this.EPSILON)?n.mK=i.mK=0:(a=n.mK/n.deltaK,o=i.mK/n.deltaK,(l=Math.pow(a,2)+Math.pow(o,2))<=9||(s=3/Math.sqrt(l),n.mK=a*s*n.deltaK,i.mK=o*s*n.deltaK)));for(t=0;t<d;++t)(n=c[t]).model.skip||(r=t>0?c[t-1]:null,i=t<d-1?c[t+1]:null,r&&!r.model.skip&&(u=(n.model.x-r.model.x)/3,n.model.controlPointPreviousX=n.model.x-u,n.model.controlPointPreviousY=n.model.y-u*n.mK),i&&!i.model.skip&&(u=(i.model.x-n.model.x)/3,n.model.controlPointNextX=n.model.x+u,n.model.controlPointNextY=n.model.y+u*n.mK))},W.nextItem=function(e,t,r){return r?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},W.previousItem=function(e,t,r){return r?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},W.niceNum=function(e,t){var r=Math.floor(W.log10(e)),n=e/Math.pow(10,r);return(t?n<1.5?1:n<3?2:n<7?5:10:n<=1?1:n<=2?2:n<=5?5:10)*Math.pow(10,r)},W.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},W.getRelativePosition=function(e,t){var r,n,i=e.originalEvent||e,a=e.target||e.srcElement,o=a.getBoundingClientRect(),s=i.touches;s&&s.length>0?(r=s[0].clientX,n=s[0].clientY):(r=i.clientX,n=i.clientY);var l=parseFloat(W.getStyle(a,"padding-left")),u=parseFloat(W.getStyle(a,"padding-top")),c=parseFloat(W.getStyle(a,"padding-right")),d=parseFloat(W.getStyle(a,"padding-bottom")),h=o.right-o.left-l-c,f=o.bottom-o.top-u-d;return{x:r=Math.round((r-o.left-l)/h*a.width/t.currentDevicePixelRatio),y:n=Math.round((n-o.top-u)/f*a.height/t.currentDevicePixelRatio)}},W.getConstraintWidth=function(e){return r(e,"max-width","clientWidth")},W.getConstraintHeight=function(e){return r(e,"max-height","clientHeight")},W._calculatePadding=function(e,t,r){return(t=W.getStyle(e,t)).indexOf("%")>-1?r*parseInt(t,10)/100:parseInt(t,10)},W._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},W.getMaximumWidth=function(e){var t=W._getParentNode(e);if(!t)return e.clientWidth;var r=t.clientWidth,n=r-W._calculatePadding(t,"padding-left",r)-W._calculatePadding(t,"padding-right",r),i=W.getConstraintWidth(e);return isNaN(i)?n:Math.min(n,i)},W.getMaximumHeight=function(e){var t=W._getParentNode(e);if(!t)return e.clientHeight;var r=t.clientHeight,n=r-W._calculatePadding(t,"padding-top",r)-W._calculatePadding(t,"padding-bottom",r),i=W.getConstraintHeight(e);return isNaN(i)?n:Math.min(n,i)},W.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},W.retinaScale=function(e,t){var r=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==r){var n=e.canvas,i=e.height,a=e.width;n.height=i*r,n.width=a*r,e.ctx.scale(r,r),n.style.height||n.style.width||(n.style.height=i+"px",n.style.width=a+"px")}},W.fontString=function(e,t,r){return t+" "+e+"px "+r},W.longestText=function(e,t,r,n){var i=(n=n||{}).data=n.data||{},a=n.garbageCollect=n.garbageCollect||[];n.font!==t&&(i=n.data={},a=n.garbageCollect=[],n.font=t),e.font=t;var o,s,l,u,c,d=0,h=r.length;for(o=0;o<h;o++)if(null!=(u=r[o])&&!0!==W.isArray(u))d=W.measureText(e,i,a,d,u);else if(W.isArray(u))for(s=0,l=u.length;s<l;s++)null==(c=u[s])||W.isArray(c)||(d=W.measureText(e,i,a,d,c));var f=a.length/2;if(f>r.length){for(o=0;o<f;o++)delete i[a[o]];a.splice(0,f)}return d},W.measureText=function(e,t,r,n,i){var a=t[i];return a||(a=t[i]=e.measureText(i).width,r.push(i)),a>n&&(n=a),n},W.numberOfLabelLines=function(e){var t=1;return W.each(e,(function(e){W.isArray(e)&&e.length>t&&(t=e.length)})),t},W.color=w?function(e){return e instanceof CanvasGradient&&(e=N.global.defaultColor),w(e)}:function(e){return n.error("Color.js not found!"),e},W.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:W.color(e).saturate(.5).darken(.1).rgbString()}}(),nr._adapters=or,nr.Animation=Q,nr.animationService=Z,nr.controllers=Ze,nr.DatasetController=ie,nr.defaults=N,nr.Element=J,nr.elements=Te,nr.Interaction=ot,nr.layouts=gt,nr.platform=Yt,nr.plugins=Ct,nr.Scale=Mr,nr.scaleService=Ft,nr.Ticks=sr,nr.Tooltip=qt,nr.helpers.each(mn,(function(e,t){nr.scaleService.registerScaleType(t,e,e._defaults)})),Cn)Cn.hasOwnProperty(Hn)&&nr.plugins.register(Cn[Hn]);nr.platform.initialize();var Bn=nr;return"undefined"!=typeof window&&(window.Chart=nr),nr.Chart=nr,nr.Legend=Cn.legend._element,nr.Title=Cn.title._element,nr.pluginService=nr.plugins,nr.PluginBase=nr.Element.extend({}),nr.canvasHelpers=nr.helpers.canvas,nr.layoutService=nr.layouts,nr.LinearScaleBase=xr,nr.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(e){nr[e]=function(t,r){return new nr(t,nr.helpers.merge(r||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}})),Bn}(function(){try{return r(68945)}catch(e){}}())},84558:function(e,t,r){e.exports=function(e){"use strict";var t=(e=e&&e.hasOwnProperty("default")?e.default:e).helpers,r=function(){if("undefined"!=typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;if(e)return(e.deviceXDPI||1)/(e.logicalXDPI||1)}return 1}(),n={toTextLines:function(e){var r,n=[];for(e=[].concat(e);e.length;)"string"==typeof(r=e.pop())?n.unshift.apply(n,r.split("\n")):Array.isArray(r)?e.push.apply(e,r):t.isNullOrUndef(e)||n.unshift(""+r);return n},toFontString:function(e){return!e||t.isNullOrUndef(e.size)||t.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family},textSize:function(e,t,r){var n,i=[].concat(t),a=i.length,o=e.font,s=0;for(e.font=r.string,n=0;n<a;++n)s=Math.max(e.measureText(i[n]).width,s);return e.font=o,{height:a*r.lineHeight,width:s}},parseFont:function(r){var i=e.defaults.global,a=t.valueOrDefault(r.size,i.defaultFontSize),o={family:t.valueOrDefault(r.family,i.defaultFontFamily),lineHeight:t.options.toLineHeight(r.lineHeight,a),size:a,style:t.valueOrDefault(r.style,i.defaultFontStyle),weight:t.valueOrDefault(r.weight,null),string:""};return o.string=n.toFontString(o),o},bound:function(e,t,r){return Math.max(e,Math.min(t,r))},arrayDiff:function(e,t){var r,n,i,a,o=e.slice(),s=[];for(r=0,i=t.length;r<i;++r)a=t[r],-1===(n=o.indexOf(a))?s.push([a,1]):o.splice(n,1);for(r=0,i=o.length;r<i;++r)s.push([o[r],-1]);return s},rasterize:function(e){return Math.round(e*r)/r}};function i(e,t){var r=t.x,n=t.y;if(null===r)return{x:0,y:-1};if(null===n)return{x:1,y:0};var i=e.x-r,a=e.y-n,o=Math.sqrt(i*i+a*a);return{x:o?i/o:0,y:o?a/o:-1}}function a(e,t,r){var n=0;return e<r.left?n|=1:e>r.right&&(n|=2),t<r.top?n|=8:t>r.bottom&&(n|=4),n}function o(e,t){var r,n,i=t.anchor,o=e;return t.clamp&&(o=function(e,t){for(var r,n,i,o=e.x0,s=e.y0,l=e.x1,u=e.y1,c=a(o,s,t),d=a(l,u,t);c|d&&!(c&d);)8&(r=c||d)?(n=o+(l-o)*(t.top-s)/(u-s),i=t.top):4&r?(n=o+(l-o)*(t.bottom-s)/(u-s),i=t.bottom):2&r?(i=s+(u-s)*(t.right-o)/(l-o),n=t.right):1&r&&(i=s+(u-s)*(t.left-o)/(l-o),n=t.left),r===c?c=a(o=n,s=i,t):d=a(l=n,u=i,t);return{x0:o,x1:l,y0:s,y1:u}}(o,t.area)),"start"===i?(r=o.x0,n=o.y0):"end"===i?(r=o.x1,n=o.y1):(r=(o.x0+o.x1)/2,n=(o.y0+o.y1)/2),function(e,t,r,n,i){switch(i){case"center":r=n=0;break;case"bottom":r=0,n=1;break;case"right":r=1,n=0;break;case"left":r=-1,n=0;break;case"top":r=0,n=-1;break;case"start":r=-r,n=-n;break;case"end":break;default:i*=Math.PI/180,r=Math.cos(i),n=Math.sin(i)}return{x:e,y:t,vx:r,vy:n}}(r,n,e.vx,e.vy,t.align)}var s={arc:function(e,t){var r=(e.startAngle+e.endAngle)/2,n=Math.cos(r),i=Math.sin(r),a=e.innerRadius,s=e.outerRadius;return o({x0:e.x+n*a,y0:e.y+i*a,x1:e.x+n*s,y1:e.y+i*s,vx:n,vy:i},t)},point:function(e,t){var r=i(e,t.origin),n=r.x*e.radius,a=r.y*e.radius;return o({x0:e.x-n,y0:e.y-a,x1:e.x+n,y1:e.y+a,vx:r.x,vy:r.y},t)},rect:function(e,t){var r=i(e,t.origin),n=e.x,a=e.y,s=0,l=0;return e.horizontal?(n=Math.min(e.x,e.base),s=Math.abs(e.base-e.x)):(a=Math.min(e.y,e.base),l=Math.abs(e.base-e.y)),o({x0:n,y0:a+l,x1:n+s,y1:a,vx:r.x,vy:r.y},t)},fallback:function(e,t){var r=i(e,t.origin);return o({x0:e.x,y0:e.y,x1:e.x,y1:e.y,vx:r.x,vy:r.y},t)}},l=e.helpers,u=n.rasterize;function c(e){var t=e._model.horizontal,r=e._scale||t&&e._xScale||e._yScale;if(!r)return null;if(void 0!==r.xCenter&&void 0!==r.yCenter)return{x:r.xCenter,y:r.yCenter};var n=r.getBasePixel();return t?{x:n,y:null}:{x:null,y:n}}function d(e,t,r){var n=e.shadowBlur,i=r.stroked,a=u(r.x),o=u(r.y),s=u(r.w);i&&e.strokeText(t,a,o,s),r.filled&&(n&&i&&(e.shadowBlur=0),e.fillText(t,a,o,s),n&&i&&(e.shadowBlur=n))}var h=function(e,t,r,n){var i=this;i._config=e,i._index=n,i._model=null,i._rects=null,i._ctx=t,i._el=r};l.extend(h.prototype,{_modelize:function(t,r,i,a){var o,u=this,d=u._index,h=l.options.resolve,f=n.parseFont(h([i.font,{}],a,d)),p=h([i.color,e.defaults.global.defaultFontColor],a,d);return{align:h([i.align,"center"],a,d),anchor:h([i.anchor,"center"],a,d),area:a.chart.chartArea,backgroundColor:h([i.backgroundColor,null],a,d),borderColor:h([i.borderColor,null],a,d),borderRadius:h([i.borderRadius,0],a,d),borderWidth:h([i.borderWidth,0],a,d),clamp:h([i.clamp,!1],a,d),clip:h([i.clip,!1],a,d),color:p,display:t,font:f,lines:r,offset:h([i.offset,0],a,d),opacity:h([i.opacity,1],a,d),origin:c(u._el),padding:l.options.toPadding(h([i.padding,0],a,d)),positioner:(o=u._el,o instanceof e.elements.Arc?s.arc:o instanceof e.elements.Point?s.point:o instanceof e.elements.Rectangle?s.rect:s.fallback),rotation:h([i.rotation,0],a,d)*(Math.PI/180),size:n.textSize(u._ctx,r,f),textAlign:h([i.textAlign,"start"],a,d),textShadowBlur:h([i.textShadowBlur,0],a,d),textShadowColor:h([i.textShadowColor,p],a,d),textStrokeColor:h([i.textStrokeColor,p],a,d),textStrokeWidth:h([i.textStrokeWidth,0],a,d)}},update:function(e){var t,r,i,a=this,o=null,s=null,u=a._index,c=a._config,d=l.options.resolve([c.display,!0],e,u);d&&(t=e.dataset.data[u],r=l.valueOrDefault(l.callback(c.formatter,[t,e]),t),(i=l.isNullOrUndef(r)?[]:n.toTextLines(r)).length&&(s=function(e){var t=e.borderWidth||0,r=e.padding,n=e.size.height,i=e.size.width,a=-i/2,o=-n/2;return{frame:{x:a-r.left-t,y:o-r.top-t,w:i+r.width+2*t,h:n+r.height+2*t},text:{x:a,y:o,w:i,h:n}}}(o=a._modelize(d,i,c,e)))),a._model=o,a._rects=s},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,t){var r,i=e.ctx,a=this._model,o=this._rects;this.visible()&&(i.save(),a.clip&&(r=a.area,i.beginPath(),i.rect(r.left,r.top,r.right-r.left,r.bottom-r.top),i.clip()),i.globalAlpha=n.bound(0,a.opacity,1),i.translate(u(t.x),u(t.y)),i.rotate(a.rotation),function(e,t,r){var n=r.backgroundColor,i=r.borderColor,a=r.borderWidth;(n||i&&a)&&(e.beginPath(),l.canvas.roundedRect(e,u(t.x)+a/2,u(t.y)+a/2,u(t.w)-a,u(t.h)-a,r.borderRadius),e.closePath(),n&&(e.fillStyle=n,e.fill()),i&&a&&(e.strokeStyle=i,e.lineWidth=a,e.lineJoin="miter",e.stroke()))}(i,o.frame,a),function(e,t,r,n){var i,a=n.textAlign,o=n.color,s=!!o,l=n.font,u=t.length,c=n.textStrokeColor,h=n.textStrokeWidth,f=c&&h;if(u&&(s||f))for(r=function(e,t,r){var n=r.lineHeight,i=e.w,a=e.x;return"center"===t?a+=i/2:"end"!==t&&"right"!==t||(a+=i),{h:n,w:i,x:a,y:e.y+n/2}}(r,a,l),e.font=l.string,e.textAlign=a,e.textBaseline="middle",e.shadowBlur=n.textShadowBlur,e.shadowColor=n.textShadowColor,s&&(e.fillStyle=o),f&&(e.lineJoin="round",e.lineWidth=h,e.strokeStyle=c),i=0,u=t.length;i<u;++i)d(e,t[i],{stroked:f,filled:s,w:r.w,x:r.x,y:r.y+r.h*i})}(i,a.lines,o.text,a),i.restore())}});var f=e.helpers,p=Number.MIN_SAFE_INTEGER||-9007199254740991,m=Number.MAX_SAFE_INTEGER||9007199254740991;function g(e,t,r){var n=Math.cos(r),i=Math.sin(r),a=t.x,o=t.y;return{x:a+n*(e.x-a)-i*(e.y-o),y:o+i*(e.x-a)+n*(e.y-o)}}function v(e,t){var r,n,i,a,o,s=m,l=p,u=t.origin;for(r=0;r<e.length;++r)i=(n=e[r]).x-u.x,a=n.y-u.y,o=t.vx*i+t.vy*a,s=Math.min(s,o),l=Math.max(l,o);return{min:s,max:l}}function y(e,t){var r=t.x-e.x,n=t.y-e.y,i=Math.sqrt(r*r+n*n);return{vx:(t.x-e.x)/i,vy:(t.y-e.y)/i,origin:e,ln:i}}var _=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};function b(e,t,r){var n=t.positioner(e,t),i=n.vx,a=n.vy;if(!i&&!a)return{x:n.x,y:n.y};var o=r.w,s=r.h,l=t.rotation,u=Math.abs(o/2*Math.cos(l))+Math.abs(s/2*Math.sin(l)),c=Math.abs(o/2*Math.sin(l))+Math.abs(s/2*Math.cos(l)),d=1/Math.max(Math.abs(i),Math.abs(a));return u*=i*d,c*=a*d,u+=t.offset*i,c+=t.offset*a,{x:n.x+u,y:n.y+c}}f.extend(_.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,t,r){this._rotation=r,this._rect={x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},contains:function(e){var t=this,r=t._rect;return!((e=g(e,t.center(),-t._rotation)).x<r.x-1||e.y<r.y-1||e.x>r.x+r.w+2||e.y>r.y+r.h+2)},intersects:function(e){var t,r,n,i=this._points(),a=e._points(),o=[y(i[0],i[1]),y(i[0],i[3])];for(this._rotation!==e._rotation&&o.push(y(a[0],a[1]),y(a[0],a[3])),t=0;t<o.length;++t)if(r=v(i,o[t]),n=v(a,o[t]),r.max<n.min||n.max<r.min)return!1;return!0},_points:function(){var e=this,t=e._rect,r=e._rotation,n=e.center();return[g({x:t.x,y:t.y},n,r),g({x:t.x+t.w,y:t.y},n,r),g({x:t.x+t.w,y:t.y+t.h},n,r),g({x:t.x,y:t.y+t.h},n,r)]}});var M={prepare:function(e){var t,r,n,i,a,o=[];for(t=0,n=e.length;t<n;++t)for(r=0,i=e[t].length;r<i;++r)a=e[t][r],o.push(a),a.$layout={_box:new _,_hidable:!1,_visible:!0,_set:t,_idx:r};return o.sort((function(e,t){var r=e.$layout,n=t.$layout;return r._idx===n._idx?n._set-r._set:n._idx-r._idx})),this.update(o),o},update:function(e){var t,r,n,i,a,o=!1;for(t=0,r=e.length;t<r;++t)i=(n=e[t]).model(),(a=n.$layout)._hidable=i&&"auto"===i.display,a._visible=n.visible(),o|=a._hidable;o&&function(e){var t,r,n,i,a,o;for(t=0,r=e.length;t<r;++t)(i=(n=e[t]).$layout)._visible&&(a=n.geometry(),o=b(n._el._model,n.model(),a),i._box.update(o,a,n.rotation()));(function(e,t){var r,n,i,a;for(r=e.length-1;r>=0;--r)for(i=e[r].$layout,n=r-1;n>=0&&i._visible;--n)(a=e[n].$layout)._visible&&i._box.intersects(a._box)&&t(i,a)})(e,(function(e,t){var r=e._hidable,n=t._hidable;r&&n||n?t._visible=!1:r&&(e._visible=!1)}))}(e)},lookup:function(e,t){var r,n;for(r=e.length-1;r>=0;--r)if((n=e[r].$layout)&&n._visible&&n._box.contains(t))return e[r];return null},draw:function(e,t){var r,n,i,a,o,s;for(r=0,n=t.length;r<n;++r)(a=(i=t[r]).$layout)._visible&&(o=i.geometry(),s=b(i._el._view,i.model(),o),a._box.update(s,o,i.rotation()),i.draw(e,s))}},w=e.helpers,T={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:function(e){if(w.isNullOrUndef(e))return null;var t,r,n,i=e;if(w.isObject(e))if(w.isNullOrUndef(e.label))if(w.isNullOrUndef(e.r))for(i="",n=0,r=(t=Object.keys(e)).length;n<r;++n)i+=(0!==n?", ":"")+t[n]+": "+e[t[n]];else i=e.r;else i=e.label;return""+i},labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},L=e.helpers,S="$datalabels",k="$default";function x(e,t,r){if(t){var n,i=r.$context,a=r.$groups;t[a._set]&&(n=t[a._set][a._key])&&!0===L.callback(n,[i])&&(e[S]._dirty=!0,r.update(i))}}function E(e,t){var r,n,i=e[S],a=i._listeners;if(a.enter||a.leave){if("mousemove"===t.type)n=M.lookup(i._labels,t);else if("mouseout"!==t.type)return;r=i._hovered,i._hovered=n,function(e,t,r,n){var i,a;(r||n)&&(r?n?r!==n&&(a=i=!0):a=!0:i=!0,a&&x(e,t.leave,r),i&&x(e,t.enter,n))}(e,a,r,n)}}e.defaults.global.plugins.datalabels=T;var D={id:"datalabels",beforeInit:function(e){e[S]={_actives:[]}},beforeUpdate:function(e){var t=e[S];t._listened=!1,t._listeners={},t._datasets=[],t._labels=[]},afterDatasetUpdate:function(e,t,r){var n,i,a,o,s,l,u,c,d=t.index,f=e[S],p=f._datasets[d]=[],m=e.isDatasetVisible(d),g=e.data.datasets[d],v=function(e,t){var r,n,i=e.datalabels,a={},o=[];return!1===i?null:(!0===i&&(i={}),t=L.merge({},[t,i]),r=t.labels||{},n=Object.keys(r),delete t.labels,n.length?n.forEach((function(e){r[e]&&o.push(L.merge({},[t,r[e],{_key:e}]))})):o.push(t),a=o.reduce((function(e,t){return L.each(t.listeners||{},(function(r,n){e[n]=e[n]||{},e[n][t._key||k]=r})),delete t.listeners,e}),{}),{labels:o,listeners:a})}(g,r),y=t.meta.data||[],_=e.ctx;for(_.save(),n=0,a=y.length;n<a;++n)if((u=y[n])[S]=[],m&&u&&!u.hidden&&!u._model.skip)for(i=0,o=v.labels.length;i<o;++i)l=(s=v.labels[i])._key,(c=new h(s,_,u,n)).$groups={_set:d,_key:l||k},c.$context={active:!1,chart:e,dataIndex:n,dataset:g,datasetIndex:d},c.update(c.$context),u[S].push(c),p.push(c);_.restore(),L.merge(f._listeners,v.listeners,{merger:function(e,r,n){r[e]=r[e]||{},r[e][t.index]=n[e],f._listened=!0}})},afterUpdate:function(e,t){e[S]._labels=M.prepare(e[S]._datasets,t)},afterDatasetsDraw:function(e){M.draw(e,e[S]._labels)},beforeEvent:function(e,t){if(e[S]._listened)switch(t.type){case"mousemove":case"mouseout":E(e,t);break;case"click":!function(e,t){var r=e[S],n=r._listeners.click,i=n&&M.lookup(r._labels,t);i&&x(e,n,i)}(e,t)}},afterEvent:function(t){var r,i,a,o,s,l,u,c=t[S],d=c._actives,h=c._actives=t.lastActive||[],f=n.arrayDiff(d,h);for(r=0,i=f.length;r<i;++r)if((s=f[r])[1])for(a=0,o=(u=s[0][S]||[]).length;a<o;++a)(l=u[a]).$context.active=1===s[1],l.update(l.$context);(c._dirty||f.length)&&(M.update(c._labels),function(t){if(!t.animating){for(var r=e.animationService.animations,n=0,i=r.length;n<i;++n)if(r[n].chart===t)return;t.render({duration:1,lazy:!0})}}(t)),delete c._dirty}};return e.plugins.register(D),D}(r(21095))},27820:function(e,t,r){e.exports=function(e){"use strict";var t=(e=e&&e.hasOwnProperty("default")?e.default:e).helpers,r=t.options||{},n=t.extend(r,{resolve:r.resolve||function(e,r,n){var i,a,o;for(i=0,a=e.length;i<a;++i)if(void 0!==(o=e[i])&&(void 0!==r&&"function"==typeof o&&(o=o(r)),void 0!==n&&t.isArray(o)&&(o=o[n]),void 0!==o))return o}}),i=e.helpers,a=n.resolve,o=1e6;function s(e){return-1!==e.indexOf("Color")}var l={styleKeys:["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","bevelWidth","bevelHighlightColor","bevelShadowColor","innerGlowWidth","innerGlowColor","outerGlowWidth","outerGlowColor","backgroundOverlayColor","backgroundOverlayMode"],lineStyleKeys:["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","outerGlowWidth","outerGlowColor"],pointStyleKeys:["pointShadowOffsetX","pointShadowOffsetY","pointShadowBlur","pointShadowColor","pointBevelWidth","pointBevelHighlightColor","pointBevelShadowColor","pointInnerGlowWidth","pointInnerGlowColor","pointOuterGlowWidth","pointOuterGlowColor","pointBackgroundOverlayColor","pointBackgroundOverlayMode"],hoverStyleKeys:["hoverShadowOffsetX","hoverShadowOffsetY","hoverShadowBlur","hoverShadowColor","hoverBevelWidth","hoverBevelHighlightColor","hoverBevelShadowColor","hoverInnerGlowWidth","hoverInnerGlowColor","hoverOuterGlowWidth","hoverOuterGlowColor","hoverBackgroundOverlayColor","hoverBackgroundOverlayMode"],pointHoverStyleKeys:["pointHoverShadowOffsetX","pointHoverShadowOffsetY","pointHoverShadowBlur","pointHoverShadowColor","pointHoverBevelWidth","pointHoverBevelHighlightColor","pointHoverBevelShadowColor","pointHoverInnerGlowWidth","pointHoverInnerGlowColor","pointHoverOuterGlowWidth","pointHoverOuterGlowColor","pointHoverBackgroundOverlayColor","pointHoverBackgroundOverlayMode"],drawBackground:function(e,t){var r=e.borderWidth;e.borderWidth=0,t(),e.borderWidth=r},drawBorder:function(e,t){var r=e.backgroundColor;e.borderWidth&&(e.backgroundColor="rgba(0, 0, 0, 0)",t(),e.backgroundColor=r)},drawShadow:function(e,t,r,n){var i=e.ctx,a=e.currentDevicePixelRatio;i.save(),i.shadowOffsetX=(t.shadowOffsetX+o)*a,i.shadowOffsetY=t.shadowOffsetY*a,i.shadowBlur=t.shadowBlur*a,i.shadowColor=t.shadowColor,n&&(i.globalCompositeOperation="destination-over"),i.translate(-o,0),r(),i.restore()},setPath:function(e,t){e.save(),e.beginPath(),e.clip(),t(),e.restore()},drawBevel:function(e,t,r){var n,i,a=e.ctx,s=e.currentDevicePixelRatio,l=5*s/6,u=t.bevelWidth*l,c=t.borderWidth,d=t.parsedBorderWidth;u&&(n=this.opaque(t.borderColor)?d?{top:u+d.top*s,left:u+d.left*s,bottom:u+d.bottom*s,right:u+d.right*s}:{top:i=u+(c>0?c:0)*s/2,left:i,bottom:i,right:i}:{top:u,left:u,bottom:u,right:u},a.save(),this.setPath(a,r),a.clip(),a.translate(-o,0),this.setPath(a,r),a.rect(0,0,e.width,e.height),a.fillStyle="black",a.shadowOffsetX=o*s-n.right,a.shadowOffsetY=-n.bottom,a.shadowBlur=u,a.shadowColor=t.bevelShadowColor,navigator&&navigator.userAgent.match("Windows.+Firefox")||(a.globalCompositeOperation="source-atop"),a.fill("evenodd"),a.shadowOffsetX=o*s+n.left,a.shadowOffsetY=n.top,a.shadowColor=t.bevelHighlightColor,a.fill("evenodd"),a.restore())},drawGlow:function(e,t,r,n){var i=e.ctx,a=n?t.outerGlowWidth:t.innerGlowWidth,s=t.borderWidth,l=e.currentDevicePixelRatio;a&&(i.save(),this.setPath(i,r),n&&i.rect(0,0,e.width,e.height),i.clip("evenodd"),i.translate(-o,0),this.setPath(i,r),n||i.rect(0,0,e.width,e.height),i.lineWidth=s,i.strokeStyle="black",i.fillStyle="black",i.shadowOffsetX=o*l,i.shadowBlur=a*l,i.shadowColor=n?t.outerGlowColor:t.innerGlowColor,i.fill("evenodd"),s&&i.stroke(),i.restore())},drawInnerGlow:function(e,t,r){this.drawGlow(e,t,r)},drawOuterGlow:function(e,t,r){this.drawGlow(e,t,r,!0)},drawBackgroundOverlay:function(e,t,r){var n=e.ctx,i=t.backgroundOverlayColor;i&&(n.save(),this.setPath(n,r),n.fillStyle=i,n.globalCompositeOperation=t.backgroundOverlayMode,n.fill(),n.restore())},opaque:function(e){return i.color(e).alpha()>0},getHoverColor:function(e){return void 0!==e?i.getHoverColor(e):e},mergeStyle:function(e,t){if(void 0!==e&&void 0!==t)return this.styleKeys.forEach((function(r){e[r]=t[r]})),e},setHoverStyle:function(e,t){var r,n,i=this.styleKeys,a=this.hoverStyleKeys;if(void 0!==e&&void 0!==t){for(r=0,n=i.length;r<n;++r)e[i[r]]=t[a[r]];return e}},saveStyle:function(e){var t=e._model,r=e.$previousStyle;r&&this.mergeStyle(r,t)},resolveStyle:function(e,t,r,n){var i,o,l,u,c=this,d=e.chart,h=d.data.datasets[e.index],f=t.custom||{},p=c.styleKeys,m=c.hoverStyleKeys,g={},v={chart:d,dataIndex:r,dataset:h,datasetIndex:t._datasetIndex};for(i=0,o=p.length;i<o;++i)g[l=p[i]]=u=a([f[l],h[l],n[l]],v,r),g[l=m[i]]=a([f[l],h[l],n[l],s(l)?c.getHoverColor(u):u],v,r);return g},resolveLineStyle:function(e,t,r){var n,i,o,s=e.chart,l=s.data.datasets[e.index],u=t.custom||{},c=this.lineStyleKeys,d={},h={chart:s,dataset:l,datasetIndex:t._datasetIndex};for(n=0,i=c.length;n<i;++n)d[o=c[n]]=a([u[o],l[o],r[o]],h);return d},resolvePointStyle:function(e,t,r,n){var i,o,l,u,c=this,d=e.chart,h=d.data.datasets[e.index],f=t.custom||{},p=c.styleKeys,m=c.hoverStyleKeys,g=c.pointStyleKeys,v=c.pointHoverStyleKeys,y={},_={chart:d,dataIndex:r,dataset:h,datasetIndex:t._datasetIndex};for(i=0,o=p.length;i<o;++i)y[l=p[i]]=u=a([f[l],h[g[i]],h[l],n[l]],_,r),y[l=m[i]]=a([f[l],h[v[i]],n[l],s(l)?c.getHoverColor(u):u],_,r);return y}},u=e.helpers;function c(e,t){if(void 0===t)return e;var r=u.color(e);return r.alpha(t*r.alpha()).rgbaString()}var d=e.Tooltip,h=d.extend({initialize:function(){var e=this;d.prototype.initialize.apply(e,arguments),l.mergeStyle(e._model,e._options)},update:function(){var e=this;return d.prototype.update.apply(e,arguments),l.mergeStyle(e._model,e._options),e},drawBackground:function(e,t,r,n,i){var a=this,o=arguments,s=a._chart,h=u.extend({},t,{bevelHighlightColor:c(t.bevelHighlightColor,i),bevelShadowColor:c(t.bevelShadowColor,i),innerGlowColor:c(t.innerGlowColor,i),outerGlowColor:c(t.outerGlowColor,i)}),f=function(){d.prototype.drawBackground.apply(a,o)};l.drawShadow(s,t,f),l.opaque(t.backgroundColor)&&(l.drawBackground(t,f),l.drawBevel(s,h,f)),l.drawInnerGlow(s,h,f),l.drawOuterGlow(s,h,f),l.drawBorder(t,f)}}),f=e.elements.Rectangle,p=f.extend({draw:function(){var e=this,t=arguments,r=e._chart,n=e._view,i=function(){f.prototype.draw.apply(e,t)},a=function(){e.setPath()};l.drawShadow(r,n,i,!0),l.opaque(n.backgroundColor)&&(l.drawBackground(n,i),l.drawBackgroundOverlay(r,n,a),l.drawBevel(r,n,a)),l.drawInnerGlow(r,n,a),l.drawOuterGlow(r,n,a),l.drawBorder(n,i)},setPath:function(){var e,t,r,n,i=this._chart.ctx,a=this._view;void 0!==a.width?(e=a.x-a.width/2,r=a.width,t=Math.min(a.y,a.base),n=Math.abs(a.y-a.base)):(e=Math.min(a.x,a.base),r=Math.abs(a.x-a.base),t=a.y-a.height/2,n=a.height),i.rect(e,t,r,n)}}),m=e.helpers.extend;function g(e,t,r){return e===t?r:e===r?t:e}function v(e){var t,r,n,i,a,o,s=e.borderWidth,l=function(e){var t=e.borderSkipped,r={};return t?(e.horizontal?e.base>e.x&&(t=g(t,"left","right")):e.base<e.y&&(t=g(t,"bottom","top")),r[t]=!0,r):r}(e);return void 0!==e.width?(t=e.width/2,r=Math.abs(e.y-e.base)/2):(t=Math.abs(e.x-e.base)/2,r=e.height/2),null!==s&&"[object Object]"===Object.prototype.toString.call(s)?(n=+s.top||0,i=+s.right||0,a=+s.bottom||0,o=+s.left||0):n=i=a=o=+s||0,{top:l.top||n<0?0:n>r?r:n,right:l.right||i<0?0:i>t?t:i,bottom:l.bottom||a<0?0:a>r?r:a,left:l.left||o<0?0:o>t?t:o}}var y=e.controllers.bar,_=y.extend({dataElementType:p,updateElement:function(e,t){var r=this,n=l.resolveStyle(r,e,t,r.chart.options.elements.rectangle),i={};Object.defineProperty(e,"_model",{configurable:!0,get:function(){return i},set:function(e){m(i,e,n)}}),y.prototype.updateElement.apply(r,arguments),delete e._model,e._model=m(i,{parsedBorderWidth:v(i)}),e._styleOptions=n},setHoverStyle:function(e){var t=this;y.prototype.setHoverStyle.apply(t,arguments),l.saveStyle(e),l.setHoverStyle(e._model,e._styleOptions)},removeHoverStyle:function(e){var t=this;e.$previousStyle||l.mergeStyle(e._model,e._styleOptions),y.prototype.removeHoverStyle.apply(t,arguments)}}),b=e.helpers.canvas._isPointInArea||function(e,t){var r=1e-6;return e.x>t.left-r&&e.x<t.right+r&&e.y>t.top-r&&e.y<t.bottom+r},M=e.elements.Point,w=M.extend({draw:function(e){var t=this,r=arguments,n=t._chart,i=t._view,a=function(){M.prototype.draw.apply(t,r)};i.skip||void 0!==e&&!b(i,e)||(l.drawShadow(n,i,a,!0),l.opaque(i.backgroundColor)&&(l.drawBackground(i,a),l.drawBackgroundOverlay(n,i,a),l.drawBevel(n,i,a)),l.drawInnerGlow(n,i,a),l.drawOuterGlow(n,i,a),l.drawBorder(i,a))}}),T=e.helpers.extend,L=e.controllers.bubble,S=L.extend({dataElementType:w,updateElement:function(e,t){var r=this,n=l.resolveStyle(r,e,t,r.chart.options.elements.point),i={};Object.defineProperty(e,"_model",{configurable:!0,get:function(){return i},set:function(e){T(i,e,n)}}),L.prototype.updateElement.apply(r,arguments),delete e._model,e._model=i,e._styleOptions=n},setHoverStyle:function(e){var t=this;L.prototype.setHoverStyle.apply(t,arguments),l.saveStyle(e),l.setHoverStyle(e._model,e._styleOptions)},removeHoverStyle:function(e){var t=this;e.$previousStyle||l.mergeStyle(e._model,e._styleOptions),L.prototype.removeHoverStyle.apply(t,arguments)}}),k=e.helpers,x=e.elements.Arc,E=x.extend({draw:function(){var e=this,t=arguments,r=e._chart,n=e._view,i=function(){x.prototype.draw.apply(e,t)};l.drawShadow(r,n,i,!0),l.opaque(n.backgroundColor)&&(l.drawBackground(n,i),l.drawBackgroundOverlay(r,n,i),l.drawBevel(r,"inner"===n.borderAlign?k.extend({},n,{borderWidth:2*n.borderWidth}):n,i)),l.drawInnerGlow(r,n,i),l.drawOuterGlow(r,n,i),l.drawBorder(n,i)}}),D=e.defaults,A=e.helpers.extend,O=n.resolve;D.doughnut.legend.labels.generateLabels=D.pie.legend.labels.generateLabels=function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(r,n){var i=e.getDatasetMeta(0),a=t.datasets[0],o=i.data[n]||{},s=o.custom||{},u=e.options.elements.arc,c=O([s.backgroundColor,a.backgroundColor,u.backgroundColor],void 0,n),d=O([s.borderColor,a.borderColor,u.borderColor],void 0,n),h=O([s.borderWidth,a.borderWidth,u.borderWidth],void 0,n);return A({text:r,fillStyle:c,strokeStyle:d,lineWidth:h,hidden:isNaN(a.data[n])||i.data[n].hidden,index:n},l.resolveStyle(i.controller,o,n,u))})):[]};var P=e.controllers.doughnut,R=P.extend({dataElementType:E,updateElement:function(e,t){var r=this,n=l.resolveStyle(r,e,t,r.chart.options.elements.arc),i={};Object.defineProperty(e,"_model",{configurable:!0,get:function(){return i},set:function(e){A(i,e,n)}}),P.prototype.updateElement.apply(r,arguments),delete e._model,e._model=i,e._styleOptions=n},setHoverStyle:function(e){var t=this;P.prototype.setHoverStyle.apply(t,arguments),l.saveStyle(e),l.setHoverStyle(e._model,e._styleOptions)},removeHoverStyle:function(e){var t=this;e.$previousStyle||l.mergeStyle(e._model,e._styleOptions),P.prototype.removeHoverStyle.apply(t,arguments)}}),I=_.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID},getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}}),Y=e.elements.Line,C=Y.extend({draw:function(){var e=this,t=arguments,r=e._chart,n=e._view,i=function(){Y.prototype.draw.apply(e,t)};l.drawShadow(r,n,i),l.drawShadow(r,{shadowOffsetX:0,shadowOffsetY:0,shadowBlur:n.outerGlowWidth,shadowColor:n.outerGlowColor},i),l.drawBorder(n,i)}}),F=e.helpers.extend,N=e.controllers.line,j=N.extend({datasetElementType:C,dataElementType:w,update:function(){var e=this,t=e.getMeta().dataset,r=l.resolveLineStyle(e,t,e.chart.options.elements.line),n={};Object.defineProperty(t,"_model",{configurable:!0,get:function(){return n},set:function(e){F(n,e,r)}}),N.prototype.update.apply(e,arguments),delete t._model,t._model=n,t._styleOptions=r},updateElement:function(e,t){var r=this,n=l.resolvePointStyle(r,e,t,r.chart.options.elements.point);N.prototype.updateElement.apply(r,arguments),F(e._model,n),e._styleOptions=n},setHoverStyle:function(e){var t=this;N.prototype.setHoverStyle.apply(t,arguments),l.saveStyle(e),l.setHoverStyle(e._model,e._styleOptions)},removeHoverStyle:function(e){var t=this;e.$previousStyle||l.mergeStyle(e._model,e._styleOptions),N.prototype.removeHoverStyle.apply(t,arguments)}}),H=e.helpers.extend,B=n.resolve;e.defaults.polarArea.legend.labels.generateLabels=function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(r,n){var i=e.getDatasetMeta(0),a=t.datasets[0],o=i.data[n]||{},s=o.custom||{},u=e.options.elements.arc,c=B([s.backgroundColor,a.backgroundColor,u.backgroundColor],void 0,n),d=B([s.borderColor,a.borderColor,u.borderColor],void 0,n),h=B([s.borderWidth,a.borderWidth,u.borderWidth],void 0,n);return H({text:r,fillStyle:c,strokeStyle:d,lineWidth:h,hidden:isNaN(a.data[n])||i.data[n].hidden,index:n},l.resolveStyle(i.controller,o,n,u))})):[]};var U=e.controllers.polarArea,W=U.extend({dataElementType:E,updateElement:function(e,t){var r=this,n=l.resolveStyle(r,e,t,r.chart.options.elements.arc),i={};Object.defineProperty(e,"_model",{configurable:!0,get:function(){return i},set:function(e){H(i,e,n)}}),U.prototype.updateElement.apply(r,arguments),delete e._model,e._model=i,e._styleOptions=n},setHoverStyle:function(e){var t=this;U.prototype.setHoverStyle.apply(t,arguments),l.saveStyle(e),l.setHoverStyle(e._model,e._styleOptions)},removeHoverStyle:function(e){var t=this;e.$previousStyle||l.mergeStyle(e._model,e._styleOptions),U.prototype.removeHoverStyle.apply(t,arguments)}}),z=e.helpers.extend,G=e.controllers.radar,V=G.extend({datasetElementType:C,dataElementType:w,update:function(){var e=this,t=e.getMeta().dataset,r=l.resolveLineStyle(e,t,e.chart.options.elements.line),n={};Object.defineProperty(t,"_model",{configurable:!0,get:function(){return n},set:function(e){z(n,e,r)}}),G.prototype.update.apply(e,arguments),delete t._model,t._model=n,t._styleOptions=r},updateElement:function(e,t){var r=this,n=l.resolvePointStyle(r,e,t,r.chart.options.elements.point);G.prototype.updateElement.apply(r,arguments),z(e._model,n),e._styleOptions=n},setHoverStyle:function(e){var t=this;G.prototype.setHoverStyle.apply(t,arguments),l.saveStyle(e),l.setHoverStyle(e._model,e._styleOptions)},removeHoverStyle:function(e){var t=this;e.$previousStyle||l.mergeStyle(e._model,e._styleOptions),G.prototype.removeHoverStyle.apply(t,arguments)}}),K=e.defaults,q=e.helpers,$=e.layouts||e.layoutService,J=q.valueOrDefault||q.getValueOrDefault,X=q.valueAtIndexOrDefault||q.getValueAtIndexOrDefault,Q=q.mergeIf||function(e,t){return q.configMerge.call(this,t,e)},Z=q.extend;function ee(e,t,r){var n=e.ctx;l.drawShadow(e,t,r,!0),l.opaque(n.fillStyle)&&(n.save(),n.strokeStyle="rgba(0, 0, 0, 0)",r(),l.drawBackgroundOverlay(e,t,r),l.drawBevel(e,t,r),n.restore()),l.drawInnerGlow(e,t,r),l.drawOuterGlow(e,t,r),n.fillStyle="rgba(0, 0, 0, 0)",r(),n.restore()}K.global.legend.labels.generateLabels=function(e){var t=e.data,r=e.options.legend||{},n=r.labels&&r.labels.usePointStyle;return q.isArray(t.datasets)?t.datasets.map((function(t,r){var i,a,o=e.getDatasetMeta(r),s=o.controller,u=e.options.elements;return n?(i=o.data[0]||{},a=l.resolvePointStyle(s,i,r,u.point)):o.dataset?(i=o.dataset,a=l.resolveLineStyle(s,i,u.line)):(i=o.data[0]||{},a=l.resolveStyle(s,i,r,o.bar?u.rectangle:u.point)),Z({text:t.label,fillStyle:X(t.backgroundColor,0),hidden:!e.isDatasetVisible(r),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:r},a)}),this):[]};var te=e.Legend.extend({draw:function(){var t,r=this,n=r.chart,i=K.global,a=q.each,o=q.canvas.drawPoint,s=r.ctx;q.each=function(e,r){a(e,(function(e){var n,a,o=Object.keys(e);for(t={},n=0,a=o.length;n<a;n++)t[o[n]]=e[o[n]];t.borderColor=J(e.strokeStyle,i.defaultColor),t.borderWidth=J(e.lineWidth,i.elements.line.borderWidth),r.apply(null,arguments)}))},q.canvas.drawPoint=function(){var e=arguments;ee(n,t,(function(){o.apply(null,e)}))},s.strokeRect=function(){},s.fillRect=function(e,r,i,a){ee(n,t,(function(){s.beginPath(),s.rect(e,r,i,a),s.fill(),0!==t.borderWidth&&s.stroke()}))},e.Legend.prototype.draw.apply(r,arguments),q.each=a,q.canvas.drawPoint=o,delete s.fillRect,delete s.strokeRect}});function re(e,t){var r=new te({ctx:e.ctx,options:t,chart:e});$.configure(e,r,t),$.addBox(e,r),e.legend=r}var ne={id:"legend",_element:te,beforeInit:function(e){var t=e.options.legend;t&&re(e,t)},beforeUpdate:function(e){var t=e.options.legend,r=e.legend;t?(Q(t,K.global.legend),r?($.configure(e,r,t),r.options=t):re(e,t)):r&&($.removeBox(e,r),delete e.legend)},afterEvent:function(e,t){var r=e.legend;r&&r.handleEvent(t)}},ie=e.helpers,ae=e.layouts||e.layoutService,oe=e.plugins,se={bar:_,bubble:S,doughnut:R,horizontalBar:I,line:j,polarArea:W,pie:R,radar:V,scatter:j};function le(){var e=this,t=[];return ie.each(e.data.datasets,(function(r,n){var i=e.getDatasetMeta(n),a=r.type||e.config.type;if(i.type&&i.type!==a&&(e.destroyDatasetMeta(n),i=e.getDatasetMeta(n)),i.type=a,i.controller)i.controller.updateIndex(n),i.controller.linkScales();else{var o=se[i.type];if(void 0===o)throw new Error('"'+i.type+'" is not a chart type.');i.controller=new o(e,n),t.push(i.controller)}}),e),t}function ue(){var e=this;e.tooltip=new h({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)}var ce=oe.descriptors;oe.descriptors=function(e){var t=e._style;if(t){var r=e.$plugins||e._plugins||(e.$plugins=e._plugins={});if(r.id===this._cacheId)return r.descriptors;var n,i=this._plugins;this._plugins=i.map((function(e){return"legend"===e.id?ne:e}))}return n=ce.apply(this,arguments),t&&(this._plugins=i),n};var de={id:"style",beforeInit:function(e){e._style={},e.buildOrUpdateControllers=le,e.initToolTip=ue,e.legend&&(ae.removeBox(e,e.legend),delete e.legend),delete e.$plugins,delete e._plugins,oe.descriptors(e)}};return e.plugins.register(de),de}(r(21095))},51266:(e,t,r)=>{var n=r(17396),i=r(24574);function a(){return(new Date).getTime()}var o,s=Array.prototype.slice,l={};o=void 0!==r.g&&r.g.console?r.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var u=[[function(){},"log"],[function(){o.log.apply(o,arguments)},"info"],[function(){o.log.apply(o,arguments)},"warn"],[function(){o.warn.apply(o,arguments)},"error"],[function(e){l[e]=a()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var r=a()-t;o.log(e+": "+r+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=n.format.apply(null,arguments),o.error(e.stack)},"trace"],[function(e){o.log(n.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);i.ok(!1,n.format.apply(null,t))}},"assert"]],c=0;c<u.length;c++){var d=u[c],h=d[0],f=d[1];o[f]||(o[f]=h)}e.exports=o},74435:(e,t,r)=>{var n=r(76599),i=r(92756),a=TypeError;e.exports=function(e){if(n(e))return e;throw a(i(e)+" is not a function")}},63409:(e,t,r)=>{var n=r(60898),i=r(92756),a=TypeError;e.exports=function(e){if(n(e))return e;throw a(i(e)+" is not a constructor")}},75517:(e,t,r)=>{var n=r(76599),i=String,a=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw a("Can't set "+i(e)+" as a prototype")}},4634:(e,t,r)=>{var n=r(90026),i=r(79692),a=r(56973).f,o=n("unscopables"),s=Array.prototype;null==s[o]&&a(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}},83829:(e,t,r)=>{"use strict";var n=r(68214).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},96345:(e,t,r)=>{var n=r(29407),i=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw i("Incorrect invocation")}},45511:(e,t,r)=>{var n=r(91043),i=String,a=TypeError;e.exports=function(e){if(n(e))return e;throw a(i(e)+" is not an object")}},4651:e=>{e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},46144:(e,t,r)=>{var n=r(38898);e.exports=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},7353:(e,t,r)=>{"use strict";var n,i,a,o=r(4651),s=r(60909),l=r(80800),u=r(76599),c=r(91043),d=r(48613),h=r(2796),f=r(92756),p=r(19382),m=r(78993),g=r(56973).f,v=r(29407),y=r(21052),_=r(16907),b=r(90026),M=r(49386),w=r(44495),T=w.enforce,L=w.get,S=l.Int8Array,k=S&&S.prototype,x=l.Uint8ClampedArray,E=x&&x.prototype,D=S&&y(S),A=k&&y(k),O=Object.prototype,P=l.TypeError,R=b("toStringTag"),I=M("TYPED_ARRAY_TAG"),Y="TypedArrayConstructor",C=o&&!!_&&"Opera"!==h(l.opera),F=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},j={BigInt64Array:8,BigUint64Array:8},H=function(e){var t=y(e);if(c(t)){var r=L(t);return r&&d(r,Y)?r[Y]:H(t)}},B=function(e){if(!c(e))return!1;var t=h(e);return d(N,t)||d(j,t)};for(n in N)(a=(i=l[n])&&i.prototype)?T(a)[Y]=i:C=!1;for(n in j)(a=(i=l[n])&&i.prototype)&&(T(a)[Y]=i);if((!C||!u(D)||D===Function.prototype)&&(D=function(){throw P("Incorrect invocation")},C))for(n in N)l[n]&&_(l[n],D);if((!C||!A||A===O)&&(A=D.prototype,C))for(n in N)l[n]&&_(l[n].prototype,A);if(C&&y(E)!==A&&_(E,A),s&&!d(A,R))for(n in F=!0,g(A,R,{get:function(){return c(this)?this[I]:void 0}}),N)l[n]&&p(l[n],I,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:C,TYPED_ARRAY_TAG:F&&I,aTypedArray:function(e){if(B(e))return e;throw P("Target is not a typed array")},aTypedArrayConstructor:function(e){if(u(e)&&(!_||v(D,e)))return e;throw P(f(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(s){if(r)for(var i in N){var a=l[i];if(a&&d(a.prototype,e))try{delete a.prototype[e]}catch(r){try{a.prototype[e]=t}catch(e){}}}A[e]&&!r||m(A,e,r?t:C&&k[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,i;if(s){if(_){if(r)for(n in N)if((i=l[n])&&d(i,e))try{delete i[e]}catch(e){}if(D[e]&&!r)return;try{return m(D,e,r?t:C&&D[e]||t)}catch(e){}}for(n in N)!(i=l[n])||i[e]&&!r||m(i,e,t)}},getTypedArrayConstructor:H,isView:function(e){if(!c(e))return!1;var t=h(e);return"DataView"===t||d(N,t)||d(j,t)},isTypedArray:B,TypedArray:D,TypedArrayPrototype:A}},56704:(e,t,r)=>{"use strict";var n=r(80800),i=r(47497),a=r(60909),o=r(4651),s=r(2656),l=r(19382),u=r(10325),c=r(38898),d=r(96345),h=r(59802),f=r(43310),p=r(94841),m=r(20509),g=r(21052),v=r(16907),y=r(2107).f,_=r(56973).f,b=r(64230),M=r(28022),w=r(24198),T=r(44495),L=s.PROPER,S=s.CONFIGURABLE,k=T.get,x=T.set,E="ArrayBuffer",D="DataView",A="prototype",O="Wrong index",P=n[E],R=P,I=R&&R[A],Y=n[D],C=Y&&Y[A],F=Object.prototype,N=n.Array,j=n.RangeError,H=i(b),B=i([].reverse),U=m.pack,W=m.unpack,z=function(e){return[255&e]},G=function(e){return[255&e,e>>8&255]},V=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},K=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},q=function(e){return U(e,23,4)},$=function(e){return U(e,52,8)},J=function(e,t){_(e[A],t,{get:function(){return k(this)[t]}})},X=function(e,t,r,n){var i=p(r),a=k(e);if(i+t>a.byteLength)throw j(O);var o=k(a.buffer).bytes,s=i+a.byteOffset,l=M(o,s,s+t);return n?l:B(l)},Q=function(e,t,r,n,i,a){var o=p(r),s=k(e);if(o+t>s.byteLength)throw j(O);for(var l=k(s.buffer).bytes,u=o+s.byteOffset,c=n(+i),d=0;d<t;d++)l[u+d]=c[a?d:t-d-1]};if(o){var Z=L&&P.name!==E;if(c((function(){P(1)}))&&c((function(){new P(-1)}))&&!c((function(){return new P,new P(1.5),new P(NaN),1!=P.length||Z&&!S})))Z&&S&&l(P,"name",E);else{(R=function(e){return d(this,I),new P(p(e))})[A]=I;for(var ee,te=y(P),re=0;te.length>re;)(ee=te[re++])in R||l(R,ee,P[ee]);I.constructor=R}v&&g(C)!==F&&v(C,F);var ne=new Y(new R(2)),ie=i(C.setInt8);ne.setInt8(0,2147483648),ne.setInt8(1,2147483649),!ne.getInt8(0)&&ne.getInt8(1)||u(C,{setInt8:function(e,t){ie(this,e,t<<24>>24)},setUint8:function(e,t){ie(this,e,t<<24>>24)}},{unsafe:!0})}else I=(R=function(e){d(this,I);var t=p(e);x(this,{bytes:H(N(t),0),byteLength:t}),a||(this.byteLength=t)})[A],C=(Y=function(e,t,r){d(this,C),d(e,I);var n=k(e).byteLength,i=h(t);if(i<0||i>n)throw j("Wrong offset");if(i+(r=void 0===r?n-i:f(r))>n)throw j("Wrong length");x(this,{buffer:e,byteLength:r,byteOffset:i}),a||(this.buffer=e,this.byteLength=r,this.byteOffset=i)})[A],a&&(J(R,"byteLength"),J(Y,"buffer"),J(Y,"byteLength"),J(Y,"byteOffset")),u(C,{getInt8:function(e){return X(this,1,e)[0]<<24>>24},getUint8:function(e){return X(this,1,e)[0]},getInt16:function(e){var t=X(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=X(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return K(X(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return K(X(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return W(X(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return W(X(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Q(this,1,e,z,t)},setUint8:function(e,t){Q(this,1,e,z,t)},setInt16:function(e,t){Q(this,2,e,G,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Q(this,2,e,G,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Q(this,4,e,V,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Q(this,4,e,V,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Q(this,4,e,q,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Q(this,8,e,$,t,arguments.length>2?arguments[2]:void 0)}});w(R,E),w(Y,D),e.exports={ArrayBuffer:R,DataView:Y}},31482:(e,t,r)=>{"use strict";var n=r(46640),i=r(39211),a=r(19720),o=r(34982),s=Math.min;e.exports=[].copyWithin||function(e,t){var r=n(this),l=a(r),u=i(e,l),c=i(t,l),d=arguments.length>2?arguments[2]:void 0,h=s((void 0===d?l:i(d,l))-c,l-u),f=1;for(c<u&&u<c+h&&(f=-1,c+=h-1,u+=h-1);h-- >0;)c in r?r[u]=r[c]:o(r,u),u+=f,c+=f;return r}},64230:(e,t,r)=>{"use strict";var n=r(46640),i=r(39211),a=r(19720);e.exports=function(e){for(var t=n(this),r=a(t),o=arguments.length,s=i(o>1?arguments[1]:void 0,r),l=o>2?arguments[2]:void 0,u=void 0===l?r:i(l,r);u>s;)t[s++]=e;return t}},824:(e,t,r)=>{"use strict";var n=r(54292).forEach,i=r(36919)("forEach");e.exports=i?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},43305:(e,t,r)=>{var n=r(19720);e.exports=function(e,t){for(var r=0,i=n(t),a=new e(i);i>r;)a[r]=t[r++];return a}},72353:(e,t,r)=>{"use strict";var n=r(66365),i=r(98004),a=r(46640),o=r(77655),s=r(53658),l=r(60898),u=r(19720),c=r(23500),d=r(38816),h=r(33706),f=Array;e.exports=function(e){var t=a(e),r=l(this),p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m;g&&(m=n(m,p>2?arguments[2]:void 0));var v,y,_,b,M,w,T=h(t),L=0;if(!T||this===f&&s(T))for(v=u(t),y=r?new this(v):f(v);v>L;L++)w=g?m(t[L],L):t[L],c(y,L,w);else for(M=(b=d(t,T)).next,y=r?new this:[];!(_=i(M,b)).done;L++)w=g?o(b,m,[_.value,L],!0):_.value,c(y,L,w);return y.length=L,y}},67830:(e,t,r)=>{var n=r(46603),i=r(39211),a=r(19720),o=function(e){return function(t,r,o){var s,l=n(t),u=a(l),c=i(o,u);if(e&&r!=r){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===r)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},86060:(e,t,r)=>{var n=r(66365),i=r(34783),a=r(46640),o=r(19720),s=function(e){var t=1==e;return function(r,s,l){for(var u,c=a(r),d=i(c),h=n(s,l),f=o(d);f-- >0;)if(h(u=d[f],f,c))switch(e){case 0:return u;case 1:return f}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},54292:(e,t,r)=>{var n=r(66365),i=r(47497),a=r(34783),o=r(46640),s=r(19720),l=r(17983),u=i([].push),c=function(e){var t=1==e,r=2==e,i=3==e,c=4==e,d=6==e,h=7==e,f=5==e||d;return function(p,m,g,v){for(var y,_,b=o(p),M=a(b),w=n(m,g),T=s(M),L=0,S=v||l,k=t?S(p,T):r||h?S(p,0):void 0;T>L;L++)if((f||L in M)&&(_=w(y=M[L],L,b),e))if(t)k[L]=_;else if(_)switch(e){case 3:return!0;case 5:return y;case 6:return L;case 2:u(k,y)}else switch(e){case 4:return!1;case 7:u(k,y)}return d?-1:i||c?c:k}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},3931:(e,t,r)=>{"use strict";var n=r(49356),i=r(46603),a=r(59802),o=r(19720),s=r(36919),l=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),h=c||!d;e.exports=h?function(e){if(c)return n(u,this,arguments)||0;var t=i(this),r=o(t),s=r-1;for(arguments.length>1&&(s=l(s,a(arguments[1]))),s<0&&(s=r+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:u},31785:(e,t,r)=>{var n=r(38898),i=r(90026),a=r(87903),o=i("species");e.exports=function(e){return a>=51||!n((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},36919:(e,t,r)=>{"use strict";var n=r(38898);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},63741:(e,t,r)=>{var n=r(74435),i=r(46640),a=r(34783),o=r(19720),s=TypeError,l=function(e){return function(t,r,l,u){n(r);var c=i(t),d=a(c),h=o(c),f=e?h-1:0,p=e?-1:1;if(l<2)for(;;){if(f in d){u=d[f],f+=p;break}if(f+=p,e?f<0:h<=f)throw s("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=p)f in d&&(u=r(u,d[f],f,c));return u}};e.exports={left:l(!1),right:l(!0)}},20587:(e,t,r)=>{"use strict";var n=r(60909),i=r(38283),a=TypeError,o=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(i(e)&&!o(e,"length").writable)throw a("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},28022:(e,t,r)=>{var n=r(39211),i=r(19720),a=r(23500),o=Array,s=Math.max;e.exports=function(e,t,r){for(var l=i(e),u=n(t,l),c=n(void 0===r?l:r,l),d=o(s(c-u,0)),h=0;u<c;u++,h++)a(d,h,e[u]);return d.length=h,d}},87097:(e,t,r)=>{var n=r(47497);e.exports=n([].slice)},34027:(e,t,r)=>{var n=r(28022),i=Math.floor,a=function(e,t){var r=e.length,l=i(r/2);return r<8?o(e,t):s(e,a(n(e,0,l),t),a(n(e,l),t),t)},o=function(e,t){for(var r,n,i=e.length,a=1;a<i;){for(n=a,r=e[a];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==a++&&(e[n]=r)}return e},s=function(e,t,r,n){for(var i=t.length,a=r.length,o=0,s=0;o<i||s<a;)e[o+s]=o<i&&s<a?n(t[o],r[s])<=0?t[o++]:r[s++]:o<i?t[o++]:r[s++];return e};e.exports=a},42678:(e,t,r)=>{var n=r(38283),i=r(60898),a=r(91043),o=r(90026)("species"),s=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(i(t)&&(t===s||n(t.prototype))||a(t)&&null===(t=t[o]))&&(t=void 0)),void 0===t?s:t}},17983:(e,t,r)=>{var n=r(42678);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},77003:e=>{for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r={},n=0;n<66;n++)r[t.charAt(n)]=n;e.exports={itoc:t,ctoi:r}},77655:(e,t,r)=>{var n=r(45511),i=r(15772);e.exports=function(e,t,r,a){try{return a?t(n(r)[0],r[1]):t(r)}catch(t){i(e,"throw",t)}}},82257:(e,t,r)=>{var n=r(90026)("iterator"),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[n]=function(){return this},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var a={};a[n]=function(){return{next:function(){return{done:r=!0}}}},e(a)}catch(e){}return r}},54518:(e,t,r)=>{var n=r(47497),i=n({}.toString),a=n("".slice);e.exports=function(e){return a(i(e),8,-1)}},2796:(e,t,r)=>{var n=r(23026),i=r(76599),a=r(54518),o=r(90026)("toStringTag"),s=Object,l="Arguments"==a(function(){return arguments}());e.exports=n?a:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=s(e),o))?r:l?a(t):"Object"==(n=a(t))&&i(t.callee)?"Arguments":n}},46633:(e,t,r)=>{"use strict";var n=r(56973).f,i=r(79692),a=r(10325),o=r(66365),s=r(96345),l=r(98522),u=r(72842),c=r(85011),d=r(70788),h=r(72538),f=r(60909),p=r(82194).fastKey,m=r(44495),g=m.set,v=m.getterFor;e.exports={getConstructor:function(e,t,r,c){var d=e((function(e,n){s(e,h),g(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),f||(e.size=0),l(n)||u(n,e[c],{that:e,AS_ENTRIES:r})})),h=d.prototype,m=v(t),y=function(e,t,r){var n,i,a=m(e),o=_(e,t);return o?o.value=r:(a.last=o={index:i=p(t,!0),key:t,value:r,previous:n=a.last,next:void 0,removed:!1},a.first||(a.first=o),n&&(n.next=o),f?a.size++:e.size++,"F"!==i&&(a.index[i]=o)),e},_=function(e,t){var r,n=m(e),i=p(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return a(h,{clear:function(){for(var e=m(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=this,r=m(t),n=_(t,e);if(n){var i=n.next,a=n.previous;delete r.index[n.index],n.removed=!0,a&&(a.next=i),i&&(i.previous=a),r.first==n&&(r.first=i),r.last==n&&(r.last=a),f?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=m(this),n=o(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!_(this,e)}}),a(h,r?{get:function(e){var t=_(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),f&&n(h,"size",{get:function(){return m(this).size}}),d},setStrong:function(e,t,r){var n=t+" Iterator",i=v(t),a=v(n);c(e,t,(function(e,t){g(this,{type:n,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=a(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?d("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,d(void 0,!0))}),r?"entries":"values",!r,!0),h(t)}}},76538:(e,t,r)=>{"use strict";var n=r(47497),i=r(10325),a=r(82194).getWeakData,o=r(96345),s=r(45511),l=r(98522),u=r(91043),c=r(72842),d=r(54292),h=r(48613),f=r(44495),p=f.set,m=f.getterFor,g=d.find,v=d.findIndex,y=n([].splice),_=0,b=function(e){return e.frozen||(e.frozen=new M)},M=function(){this.entries=[]},w=function(e,t){return g(e.entries,(function(e){return e[0]===t}))};M.prototype={get:function(e){var t=w(this,e);if(t)return t[1]},has:function(e){return!!w(this,e)},set:function(e,t){var r=w(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,(function(t){return t[0]===e}));return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,r,n){var d=e((function(e,i){o(e,f),p(e,{type:t,id:_++,frozen:void 0}),l(i)||c(i,e[n],{that:e,AS_ENTRIES:r})})),f=d.prototype,g=m(t),v=function(e,t,r){var n=g(e),i=a(s(t),!0);return!0===i?b(n).set(t,r):i[n.id]=r,e};return i(f,{delete:function(e){var t=g(this);if(!u(e))return!1;var r=a(e);return!0===r?b(t).delete(e):r&&h(r,t.id)&&delete r[t.id]},has:function(e){var t=g(this);if(!u(e))return!1;var r=a(e);return!0===r?b(t).has(e):r&&h(r,t.id)}}),i(f,r?{get:function(e){var t=g(this);if(u(e)){var r=a(e);return!0===r?b(t).get(e):r?r[t.id]:void 0}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),d}}},39216:(e,t,r)=>{"use strict";var n=r(98646),i=r(80800),a=r(47497),o=r(28046),s=r(78993),l=r(82194),u=r(72842),c=r(96345),d=r(76599),h=r(98522),f=r(91043),p=r(38898),m=r(82257),g=r(24198),v=r(38754);e.exports=function(e,t,r){var y=-1!==e.indexOf("Map"),_=-1!==e.indexOf("Weak"),b=y?"set":"add",M=i[e],w=M&&M.prototype,T=M,L={},S=function(e){var t=a(w[e]);s(w,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(_&&!f(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return _&&!f(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(_&&!f(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(o(e,!d(M)||!(_||w.forEach&&!p((function(){(new M).entries().next()})))))T=r.getConstructor(t,e,y,b),l.enable();else if(o(e,!0)){var k=new T,x=k[b](_?{}:-0,1)!=k,E=p((function(){k.has(1)})),D=m((function(e){new M(e)})),A=!_&&p((function(){for(var e=new M,t=5;t--;)e[b](t,t);return!e.has(-0)}));D||((T=t((function(e,t){c(e,w);var r=v(new M,e,T);return h(t)||u(t,r[b],{that:r,AS_ENTRIES:y}),r}))).prototype=w,w.constructor=T),(E||A)&&(S("delete"),S("has"),y&&S("get")),(A||x)&&S(b),_&&w.clear&&delete w.clear}return L[e]=T,n({global:!0,constructor:!0,forced:T!=M},L),g(T,e),_||r.setStrong(T,e,y),T}},34327:(e,t,r)=>{var n=r(48613),i=r(48872),a=r(63276),o=r(56973);e.exports=function(e,t,r){for(var s=i(t),l=o.f,u=a.f,c=0;c<s.length;c++){var d=s[c];n(e,d)||r&&n(r,d)||l(e,d,u(t,d))}}},35899:(e,t,r)=>{var n=r(90026)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},36760:(e,t,r)=>{var n=r(38898);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},13242:(e,t,r)=>{var n=r(47497),i=r(58401),a=r(82518),o=/"/g,s=n("".replace);e.exports=function(e,t,r,n){var l=a(i(e)),u="<"+t;return""!==r&&(u+=" "+r+'="'+s(a(n),o,""")+'"'),u+">"+l+"</"+t+">"}},70788:e=>{e.exports=function(e,t){return{value:e,done:t}}},19382:(e,t,r)=>{var n=r(60909),i=r(56973),a=r(95398);e.exports=n?function(e,t,r){return i.f(e,t,a(1,r))}:function(e,t,r){return e[t]=r,e}},95398:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},23500:(e,t,r)=>{"use strict";var n=r(77369),i=r(56973),a=r(95398);e.exports=function(e,t,r){var o=n(t);o in e?i.f(e,o,a(0,r)):e[o]=r}},244:(e,t,r)=>{"use strict";var n=r(47497),i=r(38898),a=r(1274).start,o=RangeError,s=isFinite,l=Math.abs,u=Date.prototype,c=u.toISOString,d=n(u.getTime),h=n(u.getUTCDate),f=n(u.getUTCFullYear),p=n(u.getUTCHours),m=n(u.getUTCMilliseconds),g=n(u.getUTCMinutes),v=n(u.getUTCMonth),y=n(u.getUTCSeconds);e.exports=i((function(){return"0385-07-25T07:06:39.999Z"!=c.call(new Date(-50000000000001))}))||!i((function(){c.call(new Date(NaN))}))?function(){if(!s(d(this)))throw o("Invalid time value");var e=this,t=f(e),r=m(e),n=t<0?"-":t>9999?"+":"";return n+a(l(t),n?6:4,0)+"-"+a(v(e)+1,2,0)+"-"+a(h(e),2,0)+"T"+a(p(e),2,0)+":"+a(g(e),2,0)+":"+a(y(e),2,0)+"."+a(r,3,0)+"Z"}:c},43427:(e,t,r)=>{"use strict";var n=r(45511),i=r(50083),a=TypeError;e.exports=function(e){if(n(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw a("Incorrect hint");return i(this,e)}},10159:(e,t,r)=>{var n=r(99645),i=r(56973);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),i.f(e,t,r)}},78993:(e,t,r)=>{var n=r(76599),i=r(56973),a=r(99645),o=r(16577);e.exports=function(e,t,r,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(n(r)&&a(r,u,s),s.global)l?e[t]=r:o(t,r);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},10325:(e,t,r)=>{var n=r(78993);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},16577:(e,t,r)=>{var n=r(80800),i=Object.defineProperty;e.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},34982:(e,t,r)=>{"use strict";var n=r(92756),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw i("Cannot delete property "+n(t)+" of "+n(e))}},60909:(e,t,r)=>{var n=r(38898);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},99929:e=>{var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},64764:(e,t,r)=>{var n=r(80800),i=r(91043),a=n.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},31621:e=>{var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},86940:e=>{e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},40742:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},77395:(e,t,r)=>{var n=r(64764)("span").classList,i=n&&n.constructor&&n.constructor.prototype;e.exports=i===Object.prototype?void 0:i},38964:(e,t,r)=>{var n=r(97670).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},59826:(e,t,r)=>{var n=r(26803),i=r(29040);e.exports=!n&&!i&&"object"==typeof window&&"object"==typeof document},38875:e=>{e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},26803:e=>{e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},29423:(e,t,r)=>{var n=r(97670);e.exports=/MSIE|Trident/.test(n)},71595:(e,t,r)=>{var n=r(97670);e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},99364:(e,t,r)=>{var n=r(97670);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},29040:(e,t,r)=>{var n=r(6591),i=r(54518);e.exports=void 0!==n&&"process"==i(n)},99411:(e,t,r)=>{var n=r(97670);e.exports=/web0s(?!.*chrome)/i.test(n)},97670:e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},87903:(e,t,r)=>{var n,i,a=r(80800),o=r(97670),s=a.process,l=a.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(i=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(i=+n[1]),e.exports=i},69870:(e,t,r)=>{var n=r(97670).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},1836:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},86179:(e,t,r)=>{var n=r(47497),i=Error,a=n("".replace),o=String(i("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(o);e.exports=function(e,t){if(l&&"string"==typeof e&&!i.prepareStackTrace)for(;t--;)e=a(e,s,"");return e}},76835:(e,t,r)=>{var n=r(19382),i=r(86179),a=r(67610),o=Error.captureStackTrace;e.exports=function(e,t,r,s){a&&(o?o(e,t):n(e,"stack",i(r,s)))}},67610:(e,t,r)=>{var n=r(38898),i=r(95398);e.exports=!n((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},50668:(e,t,r)=>{"use strict";var n=r(60909),i=r(38898),a=r(45511),o=r(79692),s=r(24506),l=Error.prototype.toString,u=i((function(){if(n){var e=o(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==l.call(e))return!0}return"2: 1"!==l.call({message:1,name:2})||"Error"!==l.call({})}));e.exports=u?function(){var e=a(this),t=s(e.name,"Error"),r=s(e.message);return t?r?t+": "+r:t:r}:l},98646:(e,t,r)=>{var n=r(80800),i=r(63276).f,a=r(19382),o=r(78993),s=r(16577),l=r(34327),u=r(28046);e.exports=function(e,t){var r,c,d,h,f,p=e.target,m=e.global,g=e.stat;if(r=m?n:g?n[p]||s(p,{}):(n[p]||{}).prototype)for(c in t){if(h=t[c],d=e.dontCallGetSet?(f=i(r,c))&&f.value:r[c],!u(m?c:p+(g?".":"#")+c,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&a(h,"sham",!0),o(r,c,h,e)}}},38898:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},36633:(e,t,r)=>{"use strict";r(39707);var n=r(22536),i=r(78993),a=r(64226),o=r(38898),s=r(90026),l=r(19382),u=s("species"),c=RegExp.prototype;e.exports=function(e,t,r,d){var h=s(e),f=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=f&&!o((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[h]=/./[h]),r.exec=function(){return t=!0,null},r[h](""),!t}));if(!f||!p||r){var m=n(/./[h]),g=t(h,""[e],(function(e,t,r,i,o){var s=n(e),l=t.exec;return l===a||l===c.exec?f&&!o?{done:!0,value:m(t,r,i)}:{done:!0,value:s(r,t,i)}:{done:!1}}));i(String.prototype,e,g[0]),i(c,h,g[1])}d&&l(c[h],"sham",!0)}},35131:(e,t,r)=>{"use strict";var n=r(38283),i=r(19720),a=r(31621),o=r(66365),s=function(e,t,r,l,u,c,d,h){for(var f,p,m=u,g=0,v=!!d&&o(d,h);g<l;)g in r&&(f=v?v(r[g],g,t):r[g],c>0&&n(f)?(p=i(f),m=s(e,t,f,p,m,c-1)-1):(a(m+1),e[m]=f),m++),g++;return m};e.exports=s},29025:(e,t,r)=>{var n=r(38898);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},49356:(e,t,r)=>{var n=r(73985),i=Function.prototype,a=i.apply,o=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(a):function(){return o.apply(a,arguments)})},66365:(e,t,r)=>{var n=r(22536),i=r(74435),a=r(73985),o=n(n.bind);e.exports=function(e,t){return i(e),void 0===t?e:a?o(e,t):function(){return e.apply(t,arguments)}}},73985:(e,t,r)=>{var n=r(38898);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},31754:(e,t,r)=>{"use strict";var n=r(47497),i=r(74435),a=r(91043),o=r(48613),s=r(87097),l=r(73985),u=Function,c=n([].concat),d=n([].join),h={},f=function(e,t,r){if(!o(h,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";h[t]=u("C,a","return new C("+d(n,",")+")")}return h[t](e,r)};e.exports=l?u.bind:function(e){var t=i(this),r=t.prototype,n=s(arguments,1),o=function(){var r=c(n,s(arguments));return this instanceof o?f(t,r.length,r):t.apply(e,r)};return a(r)&&(o.prototype=r),o}},98004:(e,t,r)=>{var n=r(73985),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},2656:(e,t,r)=>{var n=r(60909),i=r(48613),a=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,s=i(a,"name"),l=s&&"something"===function(){}.name,u=s&&(!n||n&&o(a,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},22536:(e,t,r)=>{var n=r(54518),i=r(47497);e.exports=function(e){if("Function"===n(e))return i(e)}},47497:(e,t,r)=>{var n=r(73985),i=Function.prototype,a=i.call,o=n&&i.bind.bind(a,a);e.exports=n?o:function(e){return function(){return a.apply(e,arguments)}}},14817:(e,t,r)=>{var n=r(80800),i=r(76599),a=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(n[e]):n[e]&&n[e][t]}},33706:(e,t,r)=>{var n=r(2796),i=r(74287),a=r(98522),o=r(42536),s=r(90026)("iterator");e.exports=function(e){if(!a(e))return i(e,s)||i(e,"@@iterator")||o[n(e)]}},38816:(e,t,r)=>{var n=r(98004),i=r(74435),a=r(45511),o=r(92756),s=r(33706),l=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(i(r))return a(n(r,e));throw l(o(e)+" is not iterable")}},74287:(e,t,r)=>{var n=r(74435),i=r(98522);e.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},74979:(e,t,r)=>{var n=r(47497),i=r(46640),a=Math.floor,o=n("".charAt),s=n("".replace),l=n("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,d,h){var f=r+e.length,p=n.length,m=c;return void 0!==d&&(d=i(d),m=u),s(h,m,(function(i,s){var u;switch(o(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,r);case"'":return l(t,f);case"<":u=d[l(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>p){var h=a(c/10);return 0===h?i:h<=p?void 0===n[h-1]?o(s,1):n[h-1]+o(s,1):i}u=n[c-1]}return void 0===u?"":u}))}},80800:(e,t,r)=>{var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},48613:(e,t,r)=>{var n=r(47497),i=r(46640),a=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},20555:e=>{e.exports={}},34066:(e,t,r)=>{var n=r(51266);e.exports=function(e,t){try{1==arguments.length?n.error(e):n.error(e,t)}catch(e){}}},47876:(e,t,r)=>{var n=r(14817);e.exports=n("document","documentElement")},5393:(e,t,r)=>{var n=r(60909),i=r(38898),a=r(64764);e.exports=!n&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},20509:e=>{var t=Array,r=Math.abs,n=Math.pow,i=Math.floor,a=Math.log,o=Math.LN2;e.exports={pack:function(e,s,l){var u,c,d,h=t(l),f=8*l-s-1,p=(1<<f)-1,m=p>>1,g=23===s?n(2,-24)-n(2,-77):0,v=e<0||0===e&&1/e<0?1:0,y=0;for((e=r(e))!=e||e===1/0?(c=e!=e?1:0,u=p):(u=i(a(e)/o),e*(d=n(2,-u))<1&&(u--,d*=2),(e+=u+m>=1?g/d:g*n(2,1-m))*d>=2&&(u++,d/=2),u+m>=p?(c=0,u=p):u+m>=1?(c=(e*d-1)*n(2,s),u+=m):(c=e*n(2,m-1)*n(2,s),u=0));s>=8;)h[y++]=255&c,c/=256,s-=8;for(u=u<<s|c,f+=s;f>0;)h[y++]=255&u,u/=256,f-=8;return h[--y]|=128*v,h},unpack:function(e,t){var r,i=e.length,a=8*i-t-1,o=(1<<a)-1,s=o>>1,l=a-7,u=i-1,c=e[u--],d=127&c;for(c>>=7;l>0;)d=256*d+e[u--],l-=8;for(r=d&(1<<-l)-1,d>>=-l,l+=t;l>0;)r=256*r+e[u--],l-=8;if(0===d)d=1-s;else{if(d===o)return r?NaN:c?-1/0:1/0;r+=n(2,t),d-=s}return(c?-1:1)*r*n(2,d-t)}}},34783:(e,t,r)=>{var n=r(47497),i=r(38898),a=r(54518),o=Object,s=n("".split);e.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?s(e,""):o(e)}:o},38754:(e,t,r)=>{var n=r(76599),i=r(91043),a=r(16907);e.exports=function(e,t,r){var o,s;return a&&n(o=t.constructor)&&o!==r&&i(s=o.prototype)&&s!==r.prototype&&a(e,s),e}},90735:(e,t,r)=>{var n=r(47497),i=r(76599),a=r(73414),o=n(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),e.exports=a.inspectSource},22429:(e,t,r)=>{var n=r(91043),i=r(19382);e.exports=function(e,t){n(t)&&"cause"in t&&i(e,"cause",t.cause)}},82194:(e,t,r)=>{var n=r(98646),i=r(47497),a=r(20555),o=r(91043),s=r(48613),l=r(56973).f,u=r(2107),c=r(9677),d=r(58410),h=r(49386),f=r(29025),p=!1,m=h("meta"),g=0,v=function(e){l(e,m,{value:{objectID:"O"+g++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},p=!0;var e=u.f,t=i([].splice),r={};r[m]=1,e(r).length&&(u.f=function(r){for(var n=e(r),i=0,a=n.length;i<a;i++)if(n[i]===m){t(n,i,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,m)){if(!d(e))return"F";if(!t)return"E";v(e)}return e[m].objectID},getWeakData:function(e,t){if(!s(e,m)){if(!d(e))return!0;if(!t)return!1;v(e)}return e[m].weakData},onFreeze:function(e){return f&&p&&d(e)&&!s(e,m)&&v(e),e}};a[m]=!0},44495:(e,t,r)=>{var n,i,a,o=r(13282),s=r(80800),l=r(91043),u=r(19382),c=r(48613),d=r(73414),h=r(91544),f=r(20555),p="Object already initialized",m=s.TypeError,g=s.WeakMap;if(o||d.state){var v=d.state||(d.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,n=function(e,t){if(v.has(e))throw m(p);return t.facade=e,v.set(e,t),t},i=function(e){return v.get(e)||{}},a=function(e){return v.has(e)}}else{var y=h("state");f[y]=!0,n=function(e,t){if(c(e,y))throw m(p);return t.facade=e,u(e,y,t),t},i=function(e){return c(e,y)?e[y]:{}},a=function(e){return c(e,y)}}e.exports={set:n,get:i,has:a,enforce:function(e){return a(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=i(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return r}}}},53658:(e,t,r)=>{var n=r(90026),i=r(42536),a=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[a]===e)}},38283:(e,t,r)=>{var n=r(54518);e.exports=Array.isArray||function(e){return"Array"==n(e)}},31095:(e,t,r)=>{var n=r(2796);e.exports=function(e){var t=n(e);return"BigInt64Array"==t||"BigUint64Array"==t}},76599:(e,t,r)=>{var n=r(99929),i=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},60898:(e,t,r)=>{var n=r(47497),i=r(38898),a=r(76599),o=r(2796),s=r(14817),l=r(90735),u=function(){},c=[],d=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=n(h.exec),p=!h.exec(u),m=function(e){if(!a(e))return!1;try{return d(u,c,e),!0}catch(e){return!1}},g=function(e){if(!a(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(h,l(e))}catch(e){return!0}};g.sham=!0,e.exports=!d||i((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?g:m},26810:(e,t,r)=>{var n=r(48613);e.exports=function(e){return void 0!==e&&(n(e,"value")||n(e,"writable"))}},28046:(e,t,r)=>{var n=r(38898),i=r(76599),a=/#|\.prototype\./,o=function(e,t){var r=l[s(e)];return r==c||r!=u&&(i(t)?n(t):!!t)},s=o.normalize=function(e){return String(e).replace(a,".").toLowerCase()},l=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},46514:(e,t,r)=>{var n=r(91043),i=Math.floor;e.exports=Number.isInteger||function(e){return!n(e)&&isFinite(e)&&i(e)===e}},98522:e=>{e.exports=function(e){return null==e}},91043:(e,t,r)=>{var n=r(76599),i=r(99929),a=i.all;e.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===a}:function(e){return"object"==typeof e?null!==e:n(e)}},20781:e=>{e.exports=!1},18609:(e,t,r)=>{var n=r(91043),i=r(54518),a=r(90026)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},29611:(e,t,r)=>{var n=r(14817),i=r(76599),a=r(29407),o=r(22674),s=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&a(t.prototype,s(e))}},72842:(e,t,r)=>{var n=r(66365),i=r(98004),a=r(45511),o=r(92756),s=r(53658),l=r(19720),u=r(29407),c=r(38816),d=r(33706),h=r(15772),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;e.exports=function(e,t,r){var g,v,y,_,b,M,w,T=r&&r.that,L=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),k=!(!r||!r.IS_ITERATOR),x=!(!r||!r.INTERRUPTED),E=n(t,T),D=function(e){return g&&h(g,"normal",e),new p(!0,e)},A=function(e){return L?(a(e),x?E(e[0],e[1],D):E(e[0],e[1])):x?E(e,D):E(e)};if(S)g=e.iterator;else if(k)g=e;else{if(!(v=d(e)))throw f(o(e)+" is not iterable");if(s(v)){for(y=0,_=l(e);_>y;y++)if((b=A(e[y]))&&u(m,b))return b;return new p(!1)}g=c(e,v)}for(M=S?e.next:g.next;!(w=i(M,g)).done;){try{b=A(w.value)}catch(e){h(g,"throw",e)}if("object"==typeof b&&b&&u(m,b))return b}return new p(!1)}},15772:(e,t,r)=>{var n=r(98004),i=r(45511),a=r(74287);e.exports=function(e,t,r){var o,s;i(e);try{if(!(o=a(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){s=!0,o=e}if("throw"===t)throw r;if(s)throw o;return i(o),r}},48298:(e,t,r)=>{"use strict";var n=r(75592).IteratorPrototype,i=r(79692),a=r(95398),o=r(24198),s=r(42536),l=function(){return this};e.exports=function(e,t,r,u){var c=t+" Iterator";return e.prototype=i(n,{next:a(+!u,r)}),o(e,c,!1,!0),s[c]=l,e}},85011:(e,t,r)=>{"use strict";var n=r(98646),i=r(98004),a=r(20781),o=r(2656),s=r(76599),l=r(48298),u=r(21052),c=r(16907),d=r(24198),h=r(19382),f=r(78993),p=r(90026),m=r(42536),g=r(75592),v=o.PROPER,y=o.CONFIGURABLE,_=g.IteratorPrototype,b=g.BUGGY_SAFARI_ITERATORS,M=p("iterator"),w="keys",T="values",L="entries",S=function(){return this};e.exports=function(e,t,r,o,p,g,k){l(r,t,o);var x,E,D,A=function(e){if(e===p&&Y)return Y;if(!b&&e in R)return R[e];switch(e){case w:case T:case L:return function(){return new r(this,e)}}return function(){return new r(this)}},O=t+" Iterator",P=!1,R=e.prototype,I=R[M]||R["@@iterator"]||p&&R[p],Y=!b&&I||A(p),C="Array"==t&&R.entries||I;if(C&&(x=u(C.call(new e)))!==Object.prototype&&x.next&&(a||u(x)===_||(c?c(x,_):s(x[M])||f(x,M,S)),d(x,O,!0,!0),a&&(m[O]=S)),v&&p==T&&I&&I.name!==T&&(!a&&y?h(R,"name",T):(P=!0,Y=function(){return i(I,this)})),p)if(E={values:A(T),keys:g?Y:A(w),entries:A(L)},k)for(D in E)(b||P||!(D in R))&&f(R,D,E[D]);else n({target:t,proto:!0,forced:b||P},E);return a&&!k||R[M]===Y||f(R,M,Y,{name:p}),m[t]=Y,E}},75592:(e,t,r)=>{"use strict";var n,i,a,o=r(38898),s=r(76599),l=r(91043),u=r(79692),c=r(21052),d=r(78993),h=r(90026),f=r(20781),p=h("iterator"),m=!1;[].keys&&("next"in(a=[].keys())?(i=c(c(a)))!==Object.prototype&&(n=i):m=!0),!l(n)||o((function(){var e={};return n[p].call(e)!==e}))?n={}:f&&(n=u(n)),s(n[p])||d(n,p,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},42536:e=>{e.exports={}},19720:(e,t,r)=>{var n=r(43310);e.exports=function(e){return n(e.length)}},99645:(e,t,r)=>{var n=r(47497),i=r(38898),a=r(76599),o=r(48613),s=r(60909),l=r(2656).CONFIGURABLE,u=r(90735),c=r(44495),d=c.enforce,h=c.get,f=String,p=Object.defineProperty,m=n("".slice),g=n("".replace),v=n([].join),y=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),_=String(String).split("String"),b=e.exports=function(e,t,r){"Symbol("===m(f(t),0,7)&&(t="["+g(f(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&r&&o(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return o(n,"source")||(n.source=v(_,"string"==typeof t?t:"")),e};Function.prototype.toString=b((function(){return a(this)&&h(this).source||u(this)}),"toString")},29760:(e,t,r)=>{var n=r(47497),i=Map.prototype;e.exports={Map,set:n(i.set),get:n(i.get),has:n(i.has),remove:n(i.delete),proto:i}},31698:e=>{var t=Math.expm1,r=Math.exp;e.exports=!t||t(10)>22025.465794806718||t(10)<22025.465794806718||-2e-17!=t(-2e-17)?function(e){var t=+e;return 0==t?t:t>-1e-6&&t<1e-6?t+t*t/2:r(t)-1}:t},16001:(e,t,r)=>{var n=r(14489),i=Math.abs,a=Math.pow,o=a(2,-52),s=a(2,-23),l=a(2,127)*(2-s),u=a(2,-126);e.exports=Math.fround||function(e){var t,r,a=+e,c=i(a),d=n(a);return c<u?d*function(e){return e+1/o-1/o}(c/u/s)*u*s:(r=(t=(1+s/o)*c)-(t-c))>l||r!=r?d*(1/0):d*r}},86018:e=>{var t=Math.log,r=Math.LOG10E;e.exports=Math.log10||function(e){return t(e)*r}},80840:e=>{var t=Math.log;e.exports=Math.log1p||function(e){var r=+e;return r>-1e-8&&r<1e-8?r-r*r/2:t(1+r)}},14489:e=>{e.exports=Math.sign||function(e){var t=+e;return 0==t||t!=t?t:t<0?-1:1}},16612:e=>{var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},89332:(e,t,r)=>{var n,i,a,o,s,l=r(80800),u=r(66365),c=r(63276).f,d=r(55767).set,h=r(98409),f=r(99364),p=r(71595),m=r(99411),g=r(29040),v=l.MutationObserver||l.WebKitMutationObserver,y=l.document,_=l.process,b=l.Promise,M=c(l,"queueMicrotask"),w=M&&M.value;if(!w){var T=new h,L=function(){var e,t;for(g&&(e=_.domain)&&e.exit();t=T.get();)try{t()}catch(e){throw T.head&&n(),e}e&&e.enter()};f||g||m||!v||!y?!p&&b&&b.resolve?((o=b.resolve(void 0)).constructor=b,s=u(o.then,o),n=function(){s(L)}):g?n=function(){_.nextTick(L)}:(d=u(d,l),n=function(){d(L)}):(i=!0,a=y.createTextNode(""),new v(L).observe(a,{characterData:!0}),n=function(){a.data=i=!i}),w=function(e){T.head||n(),T.add(e)}}e.exports=w},97845:(e,t,r)=>{"use strict";var n=r(74435),i=TypeError,a=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw i("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new a(e)}},24506:(e,t,r)=>{var n=r(82518);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},36131:(e,t,r)=>{var n=r(18609),i=TypeError;e.exports=function(e){if(n(e))throw i("The method doesn't accept regular expressions");return e}},61066:(e,t,r)=>{var n=r(80800).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&n(e)}},50219:(e,t,r)=>{var n=r(80800),i=r(38898),a=r(47497),o=r(82518),s=r(93444).trim,l=r(62326),u=a("".charAt),c=n.parseFloat,d=n.Symbol,h=d&&d.iterator,f=1/c(l+"-0")!=-1/0||h&&!i((function(){c(Object(h))}));e.exports=f?function(e){var t=s(o(e)),r=c(t);return 0===r&&"-"==u(t,0)?-0:r}:c},52585:(e,t,r)=>{var n=r(80800),i=r(38898),a=r(47497),o=r(82518),s=r(93444).trim,l=r(62326),u=n.parseInt,c=n.Symbol,d=c&&c.iterator,h=/^[+-]?0x/i,f=a(h.exec),p=8!==u(l+"08")||22!==u(l+"0x16")||d&&!i((function(){u(Object(d))}));e.exports=p?function(e,t){var r=s(o(e));return u(r,t>>>0||(f(h,r)?16:10))}:u},7738:(e,t,r)=>{"use strict";var n=r(60909),i=r(47497),a=r(98004),o=r(38898),s=r(73555),l=r(52610),u=r(68858),c=r(46640),d=r(34783),h=Object.assign,f=Object.defineProperty,p=i([].concat);e.exports=!h||o((function(){if(n&&1!==h({b:1},h(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach((function(e){t[e]=e})),7!=h({},e)[r]||s(h({},t)).join("")!=i}))?function(e,t){for(var r=c(e),i=arguments.length,o=1,h=l.f,f=u.f;i>o;)for(var m,g=d(arguments[o++]),v=h?p(s(g),h(g)):s(g),y=v.length,_=0;y>_;)m=v[_++],n&&!a(f,g,m)||(r[m]=g[m]);return r}:h},79692:(e,t,r)=>{var n,i=r(45511),a=r(83110),o=r(1836),s=r(20555),l=r(47876),u=r(64764),c=r(91544),d="prototype",h="script",f=c("IE_PROTO"),p=function(){},m=function(e){return"<"+h+">"+e+"</"+h+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;v="undefined"!=typeof document?document.domain&&n?g(n):(t=u("iframe"),r="java"+h+":",t.style.display="none",l.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(n);for(var i=o.length;i--;)delete v[d][o[i]];return v()};s[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p[d]=i(e),r=new p,p[d]=null,r[f]=e):r=v(),void 0===t?r:a.f(r,t)}},83110:(e,t,r)=>{var n=r(60909),i=r(82089),a=r(56973),o=r(45511),s=r(46603),l=r(73555);t.f=n&&!i?Object.defineProperties:function(e,t){o(e);for(var r,n=s(t),i=l(t),u=i.length,c=0;u>c;)a.f(e,r=i[c++],n[r]);return e}},56973:(e,t,r)=>{var n=r(60909),i=r(5393),a=r(82089),o=r(45511),s=r(77369),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",f="writable";t.f=n?a?function(e,t,r){if(o(e),t=s(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&f in r&&!r[f]){var n=c(e,t);n&&n[f]&&(e[t]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:d in r?r[d]:n[d],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(o(e),t=s(t),o(r),i)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},63276:(e,t,r)=>{var n=r(60909),i=r(98004),a=r(68858),o=r(95398),s=r(46603),l=r(77369),u=r(48613),c=r(5393),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=s(e),t=l(t),c)try{return d(e,t)}catch(e){}if(u(e,t))return o(!i(a.f,e,t),e[t])}},9677:(e,t,r)=>{var n=r(54518),i=r(46603),a=r(2107).f,o=r(28022),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==n(e)?function(e){try{return a(e)}catch(e){return o(s)}}(e):a(i(e))}},2107:(e,t,r)=>{var n=r(27967),i=r(1836).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},52610:(e,t)=>{t.f=Object.getOwnPropertySymbols},21052:(e,t,r)=>{var n=r(48613),i=r(76599),a=r(46640),o=r(91544),s=r(36760),l=o("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=a(e);if(n(t,l))return t[l];var r=t.constructor;return i(r)&&t instanceof r?r.prototype:t instanceof u?c:null}},58410:(e,t,r)=>{var n=r(38898),i=r(91043),a=r(54518),o=r(46144),s=Object.isExtensible,l=n((function(){s(1)}));e.exports=l||o?function(e){return!!i(e)&&(!o||"ArrayBuffer"!=a(e))&&(!s||s(e))}:s},29407:(e,t,r)=>{var n=r(47497);e.exports=n({}.isPrototypeOf)},27967:(e,t,r)=>{var n=r(47497),i=r(48613),a=r(46603),o=r(67830).indexOf,s=r(20555),l=n([].push);e.exports=function(e,t){var r,n=a(e),u=0,c=[];for(r in n)!i(s,r)&&i(n,r)&&l(c,r);for(;t.length>u;)i(n,r=t[u++])&&(~o(c,r)||l(c,r));return c}},73555:(e,t,r)=>{var n=r(27967),i=r(1836);e.exports=Object.keys||function(e){return n(e,i)}},68858:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},41191:(e,t,r)=>{"use strict";var n=r(20781),i=r(80800),a=r(38898),o=r(69870);e.exports=n||!a((function(){if(!(o&&o<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete i[e]}}))},16907:(e,t,r)=>{var n=r(47497),i=r(45511),a=r(75517);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return i(r),a(n),t?e(r,n):r.__proto__=n,r}}():void 0)},23102:(e,t,r)=>{var n=r(60909),i=r(47497),a=r(73555),o=r(46603),s=i(r(68858).f),l=i([].push),u=function(e){return function(t){for(var r,i=o(t),u=a(i),c=u.length,d=0,h=[];c>d;)r=u[d++],n&&!s(i,r)||l(h,e?[r,i[r]]:i[r]);return h}};e.exports={entries:u(!0),values:u(!1)}},64542:(e,t,r)=>{"use strict";var n=r(23026),i=r(2796);e.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},50083:(e,t,r)=>{var n=r(98004),i=r(76599),a=r(91043),o=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&i(r=e.toString)&&!a(s=n(r,e)))return s;if(i(r=e.valueOf)&&!a(s=n(r,e)))return s;if("string"!==t&&i(r=e.toString)&&!a(s=n(r,e)))return s;throw o("Can't convert object to primitive value")}},48872:(e,t,r)=>{var n=r(14817),i=r(47497),a=r(2107),o=r(52610),s=r(45511),l=i([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=a.f(s(e)),r=o.f;return r?l(t,r(e)):t}},44871:(e,t,r)=>{var n=r(80800);e.exports=n},25291:e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},90204:(e,t,r)=>{var n=r(80800),i=r(42670),a=r(76599),o=r(28046),s=r(90735),l=r(90026),u=r(59826),c=r(26803),d=r(20781),h=r(87903),f=i&&i.prototype,p=l("species"),m=!1,g=a(n.PromiseRejectionEvent),v=o("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===h)return!0;if(d&&(!f.catch||!f.finally))return!0;if(!h||h<51||!/native code/.test(e)){var r=new i((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[p]=n,!(m=r.then((function(){}))instanceof n))return!0}return!t&&(u||c)&&!g}));e.exports={CONSTRUCTOR:v,REJECTION_EVENT:g,SUBCLASSING:m}},42670:(e,t,r)=>{var n=r(80800);e.exports=n.Promise},75856:(e,t,r)=>{var n=r(45511),i=r(91043),a=r(97845);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=a.f(e);return(0,r.resolve)(t),r.promise}},30703:(e,t,r)=>{var n=r(42670),i=r(82257),a=r(90204).CONSTRUCTOR;e.exports=a||!i((function(e){n.all(e).then(void 0,(function(){}))}))},56668:(e,t,r)=>{var n=r(56973).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},98409:e=>{var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},18692:(e,t,r)=>{var n=r(98004),i=r(45511),a=r(76599),o=r(54518),s=r(64226),l=TypeError;e.exports=function(e,t){var r=e.exec;if(a(r)){var u=n(r,e,t);return null!==u&&i(u),u}if("RegExp"===o(e))return n(s,e,t);throw l("RegExp#exec called on incompatible receiver")}},64226:(e,t,r)=>{"use strict";var n,i,a=r(98004),o=r(47497),s=r(82518),l=r(14704),u=r(4622),c=r(29829),d=r(79692),h=r(44495).get,f=r(61523),p=r(10158),m=c("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,v=g,y=o("".charAt),_=o("".indexOf),b=o("".replace),M=o("".slice),w=(i=/b*/g,a(g,n=/a/,"a"),a(g,i,"a"),0!==n.lastIndex||0!==i.lastIndex),T=u.BROKEN_CARET,L=void 0!==/()??/.exec("")[1];(w||L||T||f||p)&&(v=function(e){var t,r,n,i,o,u,c,f=this,p=h(f),S=s(e),k=p.raw;if(k)return k.lastIndex=f.lastIndex,t=a(v,k,S),f.lastIndex=k.lastIndex,t;var x=p.groups,E=T&&f.sticky,D=a(l,f),A=f.source,O=0,P=S;if(E&&(D=b(D,"y",""),-1===_(D,"g")&&(D+="g"),P=M(S,f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==y(S,f.lastIndex-1))&&(A="(?: "+A+")",P=" "+P,O++),r=new RegExp("^(?:"+A+")",D)),L&&(r=new RegExp("^"+A+"$(?!\\s)",D)),w&&(n=f.lastIndex),i=a(g,E?r:f,P),E?i?(i.input=M(i.input,O),i[0]=M(i[0],O),i.index=f.lastIndex,f.lastIndex+=i[0].length):f.lastIndex=0:w&&i&&(f.lastIndex=f.global?i.index+i[0].length:n),L&&i&&i.length>1&&a(m,i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&x)for(i.groups=u=d(null),o=0;o<x.length;o++)u[(c=x[o])[0]]=i[c[1]];return i}),e.exports=v},14704:(e,t,r)=>{"use strict";var n=r(45511);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},17328:(e,t,r)=>{var n=r(98004),i=r(48613),a=r(29407),o=r(14704),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!a(s,e)?t:n(o,e)}},4622:(e,t,r)=>{var n=r(38898),i=r(80800).RegExp,a=n((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),o=a||n((function(){return!i("a","y").sticky})),s=a||n((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:o,UNSUPPORTED_Y:a}},61523:(e,t,r)=>{var n=r(38898),i=r(80800).RegExp;e.exports=n((function(){var e=i(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},10158:(e,t,r)=>{var n=r(38898),i=r(80800).RegExp;e.exports=n((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},58401:(e,t,r)=>{var n=r(98522),i=TypeError;e.exports=function(e){if(n(e))throw i("Can't call method on "+e);return e}},20824:e=>{e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},97739:(e,t,r)=>{"use strict";var n,i=r(80800),a=r(49356),o=r(76599),s=r(38875),l=r(97670),u=r(87097),c=r(67539),d=i.Function,h=/MSIE .\./.test(l)||s&&((n=i.Bun.version.split(".")).length<3||0==n[0]&&(n[1]<3||3==n[1]&&0==n[2]));e.exports=function(e,t){var r=t?2:1;return h?function(n,i){var s=c(arguments.length,1)>r,l=o(n)?n:d(n),h=s?u(arguments,r):[],f=s?function(){a(l,this,h)}:l;return t?e(f,i):e(f)}:e}},49146:(e,t,r)=>{var n=r(47497),i=Set.prototype;e.exports={Set,add:n(i.add),has:n(i.has),remove:n(i.delete),proto:i,$has:i.has,$keys:i.keys}},72538:(e,t,r)=>{"use strict";var n=r(14817),i=r(56973),a=r(90026),o=r(60909),s=a("species");e.exports=function(e){var t=n(e),r=i.f;o&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},24198:(e,t,r)=>{var n=r(56973).f,i=r(48613),a=r(90026)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!i(e,a)&&n(e,a,{configurable:!0,value:t})}},91544:(e,t,r)=>{var n=r(29829),i=r(49386),a=n("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},73414:(e,t,r)=>{var n=r(80800),i=r(16577),a="__core-js_shared__",o=n[a]||i(a,{});e.exports=o},29829:(e,t,r)=>{var n=r(20781),i=r(73414);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.27.2",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"})},73370:(e,t,r)=>{var n=r(45511),i=r(63409),a=r(98522),o=r(90026)("species");e.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||a(r=n(s)[o])?t:i(r)}},31373:(e,t,r)=>{var n=r(38898);e.exports=function(e){return n((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},68214:(e,t,r)=>{var n=r(47497),i=r(59802),a=r(82518),o=r(58401),s=n("".charAt),l=n("".charCodeAt),u=n("".slice),c=function(e){return function(t,r){var n,c,d=a(o(t)),h=i(r),f=d.length;return h<0||h>=f?e?"":void 0:(n=l(d,h))<55296||n>56319||h+1===f||(c=l(d,h+1))<56320||c>57343?e?s(d,h):n:e?u(d,h,h+2):c-56320+(n-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},40796:(e,t,r)=>{var n=r(97670);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},1274:(e,t,r)=>{var n=r(47497),i=r(43310),a=r(82518),o=r(81968),s=r(58401),l=n(o),u=n("".slice),c=Math.ceil,d=function(e){return function(t,r,n){var o,d,h=a(s(t)),f=i(r),p=h.length,m=void 0===n?" ":a(n);return f<=p||""==m?h:((d=l(m,c((o=f-p)/m.length))).length>o&&(d=u(d,0,o)),e?h+d:d+h)}};e.exports={start:d(!1),end:d(!0)}},30629:(e,t,r)=>{var n=r(47497),i=2147483647,a=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",l=RangeError,u=n(o.exec),c=Math.floor,d=String.fromCharCode,h=n("".charCodeAt),f=n([].join),p=n([].push),m=n("".replace),g=n("".split),v=n("".toLowerCase),y=function(e){return e+22+75*(e<26)},_=function(e,t,r){var n=0;for(e=r?c(e/700):e>>1,e+=c(e/t);e>455;)e=c(e/35),n+=36;return c(n+36*e/(e+38))},b=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=h(e,r++);if(i>=55296&&i<=56319&&r<n){var a=h(e,r++);56320==(64512&a)?p(t,((1023&i)<<10)+(1023&a)+65536):(p(t,i),r--)}else p(t,i)}return t}(e);var r,n,a=e.length,o=128,u=0,m=72;for(r=0;r<e.length;r++)(n=e[r])<128&&p(t,d(n));var g=t.length,v=g;for(g&&p(t,"-");v<a;){var b=i;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<b&&(b=n);var M=v+1;if(b-o>c((i-u)/M))throw l(s);for(u+=(b-o)*M,o=b,r=0;r<e.length;r++){if((n=e[r])<o&&++u>i)throw l(s);if(n==o){for(var w=u,T=36;;){var L=T<=m?1:T>=m+26?26:T-m;if(w<L)break;var S=w-L,k=36-L;p(t,d(y(L+S%k))),w=c(S/k),T+=36}p(t,d(y(w))),m=_(u,M,v==g),u=0,v++}}u++,o++}return f(t,"")};e.exports=function(e){var t,r,n=[],i=g(m(v(e),o,"."),".");for(t=0;t<i.length;t++)r=i[t],p(n,u(a,r)?"xn--"+b(r):r);return f(n,".")}},81968:(e,t,r)=>{"use strict";var n=r(59802),i=r(82518),a=r(58401),o=RangeError;e.exports=function(e){var t=i(a(this)),r="",s=n(e);if(s<0||s==1/0)throw o("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(r+=t);return r}},84886:(e,t,r)=>{"use strict";var n=r(93444).end,i=r(85536);e.exports=i("trimEnd")?function(){return n(this)}:"".trimEnd},85536:(e,t,r)=>{var n=r(2656).PROPER,i=r(38898),a=r(62326);e.exports=function(e){return i((function(){return!!a[e]()||"
"!=="
"[e]()||n&&a[e].name!==e}))}},30397:(e,t,r)=>{"use strict";var n=r(93444).start,i=r(85536);e.exports=i("trimStart")?function(){return n(this)}:"".trimStart},93444:(e,t,r)=>{var n=r(47497),i=r(58401),a=r(82518),o=r(62326),s=n("".replace),l="["+o+"]",u=RegExp("^"+l+l+"*"),c=RegExp(l+l+"*$"),d=function(e){return function(t){var r=a(i(t));return 1&e&&(r=s(r,u,"")),2&e&&(r=s(r,c,"")),r}};e.exports={start:d(1),end:d(2),trim:d(3)}},88322:(e,t,r)=>{var n=r(87903),i=r(38898);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},42008:(e,t,r)=>{var n=r(98004),i=r(14817),a=r(90026),o=r(78993);e.exports=function(){var e=i("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,s=a("toPrimitive");t&&!t[s]&&o(t,s,(function(e){return n(r,this)}),{arity:1})}},85732:(e,t,r)=>{var n=r(88322);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},55767:(e,t,r)=>{var n,i,a,o,s=r(80800),l=r(49356),u=r(66365),c=r(76599),d=r(48613),h=r(38898),f=r(47876),p=r(87097),m=r(64764),g=r(67539),v=r(99364),y=r(29040),_=s.setImmediate,b=s.clearImmediate,M=s.process,w=s.Dispatch,T=s.Function,L=s.MessageChannel,S=s.String,k=0,x={},E="onreadystatechange";h((function(){n=s.location}));var D=function(e){if(d(x,e)){var t=x[e];delete x[e],t()}},A=function(e){return function(){D(e)}},O=function(e){D(e.data)},P=function(e){s.postMessage(S(e),n.protocol+"//"+n.host)};_&&b||(_=function(e){g(arguments.length,1);var t=c(e)?e:T(e),r=p(arguments,1);return x[++k]=function(){l(t,void 0,r)},i(k),k},b=function(e){delete x[e]},y?i=function(e){M.nextTick(A(e))}:w&&w.now?i=function(e){w.now(A(e))}:L&&!v?(o=(a=new L).port2,a.port1.onmessage=O,i=u(o.postMessage,o)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!h(P)?(i=P,s.addEventListener("message",O,!1)):i=E in m("script")?function(e){f.appendChild(m("script"))[E]=function(){f.removeChild(this),D(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:_,clear:b}},91090:(e,t,r)=>{var n=r(47497);e.exports=n(1..valueOf)},39211:(e,t,r)=>{var n=r(59802),i=Math.max,a=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):a(r,t)}},99750:(e,t,r)=>{var n=r(61736),i=TypeError;e.exports=function(e){var t=n(e,"number");if("number"==typeof t)throw i("Can't convert number to bigint");return BigInt(t)}},94841:(e,t,r)=>{var n=r(59802),i=r(43310),a=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=i(t);if(t!==r)throw a("Wrong length or index");return r}},46603:(e,t,r)=>{var n=r(34783),i=r(58401);e.exports=function(e){return n(i(e))}},59802:(e,t,r)=>{var n=r(16612);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},43310:(e,t,r)=>{var n=r(59802),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},46640:(e,t,r)=>{var n=r(58401),i=Object;e.exports=function(e){return i(n(e))}},15009:(e,t,r)=>{var n=r(35767),i=RangeError;e.exports=function(e,t){var r=n(e);if(r%t)throw i("Wrong offset");return r}},35767:(e,t,r)=>{var n=r(59802),i=RangeError;e.exports=function(e){var t=n(e);if(t<0)throw i("The argument can't be less than 0");return t}},61736:(e,t,r)=>{var n=r(98004),i=r(91043),a=r(29611),o=r(74287),s=r(50083),l=r(90026),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!i(e)||a(e))return e;var r,l=o(e,c);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!i(r)||a(r))return r;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},77369:(e,t,r)=>{var n=r(61736),i=r(29611);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},23026:(e,t,r)=>{var n={};n[r(90026)("toStringTag")]="z",e.exports="[object z]"===String(n)},82518:(e,t,r)=>{var n=r(2796),i=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},15946:(e,t,r)=>{var n=r(29040);e.exports=function(e){try{if(n)return Function('return require("'+e+'")')()}catch(e){}}},92756:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},52087:(e,t,r)=>{"use strict";var n=r(98646),i=r(80800),a=r(98004),o=r(60909),s=r(43489),l=r(7353),u=r(56704),c=r(96345),d=r(95398),h=r(19382),f=r(46514),p=r(43310),m=r(94841),g=r(15009),v=r(77369),y=r(48613),_=r(2796),b=r(91043),M=r(29611),w=r(79692),T=r(29407),L=r(16907),S=r(2107).f,k=r(15159),x=r(54292).forEach,E=r(72538),D=r(56973),A=r(63276),O=r(44495),P=r(38754),R=O.get,I=O.set,Y=O.enforce,C=D.f,F=A.f,N=Math.round,j=i.RangeError,H=u.ArrayBuffer,B=H.prototype,U=u.DataView,W=l.NATIVE_ARRAY_BUFFER_VIEWS,z=l.TYPED_ARRAY_TAG,G=l.TypedArray,V=l.TypedArrayPrototype,K=l.aTypedArrayConstructor,q=l.isTypedArray,$="BYTES_PER_ELEMENT",J="Wrong length",X=function(e,t){K(e);for(var r=0,n=t.length,i=new e(n);n>r;)i[r]=t[r++];return i},Q=function(e,t){C(e,t,{get:function(){return R(this)[t]}})},Z=function(e){var t;return T(B,e)||"ArrayBuffer"==(t=_(e))||"SharedArrayBuffer"==t},ee=function(e,t){return q(e)&&!M(t)&&t in e&&f(+t)&&t>=0},te=function(e,t){return t=v(t),ee(e,t)?d(2,e[t]):F(e,t)},re=function(e,t,r){return t=v(t),!(ee(e,t)&&b(r)&&y(r,"value"))||y(r,"get")||y(r,"set")||r.configurable||y(r,"writable")&&!r.writable||y(r,"enumerable")&&!r.enumerable?C(e,t,r):(e[t]=r.value,e)};o?(W||(A.f=te,D.f=re,Q(V,"buffer"),Q(V,"byteOffset"),Q(V,"byteLength"),Q(V,"length")),n({target:"Object",stat:!0,forced:!W},{getOwnPropertyDescriptor:te,defineProperty:re}),e.exports=function(e,t,r){var o=e.match(/\d+$/)[0]/8,l=e+(r?"Clamped":"")+"Array",u="get"+e,d="set"+e,f=i[l],v=f,y=v&&v.prototype,_={},M=function(e,t){C(e,t,{get:function(){return function(e,t){var r=R(e);return r.view[u](t*o+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var i=R(e);r&&(n=(n=N(n))<0?0:n>255?255:255&n),i.view[d](t*o+i.byteOffset,n,!0)}(this,t,e)},enumerable:!0})};W?s&&(v=t((function(e,t,r,n){return c(e,y),P(b(t)?Z(t)?void 0!==n?new f(t,g(r,o),n):void 0!==r?new f(t,g(r,o)):new f(t):q(t)?X(v,t):a(k,v,t):new f(m(t)),e,v)})),L&&L(v,G),x(S(f),(function(e){e in v||h(v,e,f[e])})),v.prototype=y):(v=t((function(e,t,r,n){c(e,y);var i,s,l,u=0,d=0;if(b(t)){if(!Z(t))return q(t)?X(v,t):a(k,v,t);i=t,d=g(r,o);var h=t.byteLength;if(void 0===n){if(h%o)throw j(J);if((s=h-d)<0)throw j(J)}else if((s=p(n)*o)+d>h)throw j(J);l=s/o}else l=m(t),i=new H(s=l*o);for(I(e,{buffer:i,byteOffset:d,byteLength:s,length:l,view:new U(i)});u<l;)M(e,u++)})),L&&L(v,G),y=v.prototype=w(V)),y.constructor!==v&&h(y,"constructor",v),Y(y).TypedArrayConstructor=v,z&&h(y,z,l);var T=v!=f;_[l]=v,n({global:!0,constructor:!0,forced:T,sham:!W},_),$ in v||h(v,$,o),$ in y||h(y,$,o),E(l)}):e.exports=function(){}},43489:(e,t,r)=>{var n=r(80800),i=r(38898),a=r(82257),o=r(7353).NATIVE_ARRAY_BUFFER_VIEWS,s=n.ArrayBuffer,l=n.Int8Array;e.exports=!o||!i((function(){l(1)}))||!i((function(){new l(-1)}))||!a((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||i((function(){return 1!==new l(new s(2),1,void 0).length}))},23445:(e,t,r)=>{var n=r(43305),i=r(50056);e.exports=function(e,t){return n(i(e),t)}},15159:(e,t,r)=>{var n=r(66365),i=r(98004),a=r(63409),o=r(46640),s=r(19720),l=r(38816),u=r(33706),c=r(53658),d=r(31095),h=r(7353).aTypedArrayConstructor,f=r(99750);e.exports=function(e){var t,r,p,m,g,v,y,_,b=a(this),M=o(e),w=arguments.length,T=w>1?arguments[1]:void 0,L=void 0!==T,S=u(M);if(S&&!c(S))for(_=(y=l(M,S)).next,M=[];!(v=i(_,y)).done;)M.push(v.value);for(L&&w>2&&(T=n(T,arguments[2])),r=s(M),p=new(h(b))(r),m=d(p),t=0;r>t;t++)g=L?T(M[t],t):M[t],p[t]=m?f(g):+g;return p}},50056:(e,t,r)=>{var n=r(7353),i=r(73370),a=n.aTypedArrayConstructor,o=n.getTypedArrayConstructor;e.exports=function(e){return a(i(e,o(e)))}},49386:(e,t,r)=>{var n=r(47497),i=0,a=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++i+a,36)}},1380:(e,t,r)=>{var n=r(38898),i=r(90026),a=r(20781),o=i("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},22674:(e,t,r)=>{var n=r(88322);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},82089:(e,t,r)=>{var n=r(60909),i=r(38898);e.exports=n&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},67539:e=>{var t=TypeError;e.exports=function(e,r){if(e<r)throw t("Not enough arguments");return e}},13282:(e,t,r)=>{var n=r(80800),i=r(76599),a=n.WeakMap;e.exports=i(a)&&/native code/.test(String(a))},53833:(e,t,r)=>{var n=r(44871),i=r(48613),a=r(35223),o=r(56973).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});i(t,e)||o(t,e,{value:a.f(e)})}},35223:(e,t,r)=>{var n=r(90026);t.f=n},90026:(e,t,r)=>{var n=r(80800),i=r(29829),a=r(48613),o=r(49386),s=r(88322),l=r(22674),u=n.Symbol,c=i("wks"),d=l?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return a(c,e)||(c[e]=s&&a(u,e)?u[e]:d("Symbol."+e)),c[e]}},62326:e=>{e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},91817:(e,t,r)=>{"use strict";var n=r(14817),i=r(48613),a=r(19382),o=r(29407),s=r(16907),l=r(34327),u=r(56668),c=r(38754),d=r(24506),h=r(22429),f=r(76835),p=r(60909),m=r(20781);e.exports=function(e,t,r,g){var v="stackTraceLimit",y=g?2:1,_=e.split("."),b=_[_.length-1],M=n.apply(null,_);if(M){var w=M.prototype;if(!m&&i(w,"cause")&&delete w.cause,!r)return M;var T=n("Error"),L=t((function(e,t){var r=d(g?t:e,void 0),n=g?new M(e):new M;return void 0!==r&&a(n,"message",r),f(n,L,n.stack,2),this&&o(w,this)&&c(n,this,L),arguments.length>y&&h(n,arguments[y]),n}));if(L.prototype=w,"Error"!==b?s?s(L,T):l(L,T,{name:!0}):p&&v in M&&(u(L,M,v),u(L,M,"prepareStackTrace")),l(L,M),!m)try{w.name!==b&&a(w,"name",b),w.constructor=L}catch(e){}return L}}},72989:(e,t,r)=>{var n=r(98646),i=r(14817),a=r(49356),o=r(38898),s=r(91817),l="AggregateError",u=i(l),c=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],l,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:c},{AggregateError:s(l,(function(e){return function(t,r){return a(e,this,arguments)}}),c,!0)})},97322:(e,t,r)=>{"use strict";var n=r(98646),i=r(29407),a=r(21052),o=r(16907),s=r(34327),l=r(79692),u=r(19382),c=r(95398),d=r(22429),h=r(76835),f=r(72842),p=r(24506),m=r(90026)("toStringTag"),g=Error,v=[].push,y=function(e,t){var r,n=i(_,this);o?r=o(g(),n?a(this):_):(r=n?this:l(_),u(r,m,"Error")),void 0!==t&&u(r,"message",p(t)),h(r,y,r.stack,1),arguments.length>2&&d(r,arguments[2]);var s=[];return f(e,v,{that:s}),u(r,"errors",s),r};o?o(y,g):s(y,g,{name:!0});var _=y.prototype=l(g.prototype,{constructor:c(1,y),message:c(1,""),name:c(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:y})},20387:(e,t,r)=>{r(97322)},61045:(e,t,r)=>{"use strict";var n=r(98646),i=r(80800),a=r(56704),o=r(72538),s="ArrayBuffer",l=a[s];n({global:!0,constructor:!0,forced:i[s]!==l},{ArrayBuffer:l}),o(s)},95276:(e,t,r)=>{var n=r(98646),i=r(7353);n({target:"ArrayBuffer",stat:!0,forced:!i.NATIVE_ARRAY_BUFFER_VIEWS},{isView:i.isView})},92412:(e,t,r)=>{"use strict";var n=r(98646),i=r(22536),a=r(38898),o=r(56704),s=r(45511),l=r(39211),u=r(43310),c=r(73370),d=o.ArrayBuffer,h=o.DataView,f=h.prototype,p=i(d.prototype.slice),m=i(f.getUint8),g=i(f.setUint8);n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:a((function(){return!new d(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(p&&void 0===t)return p(s(this),e);for(var r=s(this).byteLength,n=l(e,r),i=l(void 0===t?r:t,r),a=new(c(this,d))(u(i-n)),o=new h(this),f=new h(a),v=0;n<i;)g(f,v++,m(o,n++));return a}})},66991:(e,t,r)=>{"use strict";var n=r(98646),i=r(46640),a=r(19720),o=r(59802),s=r(4634);n({target:"Array",proto:!0},{at:function(e){var t=i(this),r=a(t),n=o(e),s=n>=0?n:r+n;return s<0||s>=r?void 0:t[s]}}),s("at")},10837:(e,t,r)=>{"use strict";var n=r(98646),i=r(38898),a=r(38283),o=r(91043),s=r(46640),l=r(19720),u=r(31621),c=r(23500),d=r(17983),h=r(31785),f=r(90026),p=r(87903),m=f("isConcatSpreadable"),g=p>=51||!i((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),v=function(e){if(!o(e))return!1;var t=e[m];return void 0!==t?!!t:a(e)};n({target:"Array",proto:!0,arity:1,forced:!g||!h("concat")},{concat:function(e){var t,r,n,i,a,o=s(this),h=d(o,0),f=0;for(t=-1,n=arguments.length;t<n;t++)if(v(a=-1===t?o:arguments[t]))for(i=l(a),u(f+i),r=0;r<i;r++,f++)r in a&&c(h,f,a[r]);else u(f+1),c(h,f++,a);return h.length=f,h}})},22464:(e,t,r)=>{var n=r(98646),i=r(31482),a=r(4634);n({target:"Array",proto:!0},{copyWithin:i}),a("copyWithin")},93485:(e,t,r)=>{"use strict";var n=r(98646),i=r(54292).every;n({target:"Array",proto:!0,forced:!r(36919)("every")},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},63137:(e,t,r)=>{var n=r(98646),i=r(64230),a=r(4634);n({target:"Array",proto:!0},{fill:i}),a("fill")},40879:(e,t,r)=>{"use strict";var n=r(98646),i=r(54292).filter;n({target:"Array",proto:!0,forced:!r(31785)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},72116:(e,t,r)=>{"use strict";var n=r(98646),i=r(54292).findIndex,a=r(4634),o="findIndex",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),n({target:"Array",proto:!0,forced:s},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(o)},98531:(e,t,r)=>{"use strict";var n=r(98646),i=r(86060).findLastIndex,a=r(4634);n({target:"Array",proto:!0},{findLastIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("findLastIndex")},32860:(e,t,r)=>{"use strict";var n=r(98646),i=r(86060).findLast,a=r(4634);n({target:"Array",proto:!0},{findLast:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("findLast")},58810:(e,t,r)=>{"use strict";var n=r(98646),i=r(54292).find,a=r(4634),o="find",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),n({target:"Array",proto:!0,forced:s},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(o)},14605:(e,t,r)=>{"use strict";var n=r(98646),i=r(35131),a=r(74435),o=r(46640),s=r(19720),l=r(17983);n({target:"Array",proto:!0},{flatMap:function(e){var t,r=o(this),n=s(r);return a(e),(t=l(r,0)).length=i(t,r,r,n,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},79841:(e,t,r)=>{"use strict";var n=r(98646),i=r(35131),a=r(46640),o=r(19720),s=r(59802),l=r(17983);n({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=a(this),r=o(t),n=l(t,0);return n.length=i(n,t,t,r,0,void 0===e?1:s(e)),n}})},86767:(e,t,r)=>{"use strict";var n=r(98646),i=r(824);n({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},50192:(e,t,r)=>{var n=r(98646),i=r(72353);n({target:"Array",stat:!0,forced:!r(82257)((function(e){Array.from(e)}))},{from:i})},79943:(e,t,r)=>{"use strict";var n=r(98646),i=r(67830).includes,a=r(38898),o=r(4634);n({target:"Array",proto:!0,forced:a((function(){return!Array(1).includes()}))},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},84992:(e,t,r)=>{"use strict";var n=r(98646),i=r(22536),a=r(67830).indexOf,o=r(36919),s=i([].indexOf),l=!!s&&1/s([1],1,-0)<0;n({target:"Array",proto:!0,forced:l||!o("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return l?s(this,e,t)||0:a(this,e,t)}})},67622:(e,t,r)=>{r(98646)({target:"Array",stat:!0},{isArray:r(38283)})},2357:(e,t,r)=>{"use strict";var n=r(46603),i=r(4634),a=r(42536),o=r(44495),s=r(56973).f,l=r(85011),u=r(70788),c=r(20781),d=r(60909),h="Array Iterator",f=o.set,p=o.getterFor(h);e.exports=l(Array,"Array",(function(e,t){f(this,{type:h,target:n(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,u(void 0,!0)):u("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values");var m=a.Arguments=a.Array;if(i("keys"),i("values"),i("entries"),!c&&d&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(e){}},28117:(e,t,r)=>{"use strict";var n=r(98646),i=r(47497),a=r(34783),o=r(46603),s=r(36919),l=i([].join);n({target:"Array",proto:!0,forced:a!=Object||!s("join",",")},{join:function(e){return l(o(this),void 0===e?",":e)}})},34784:(e,t,r)=>{var n=r(98646),i=r(3931);n({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},69550:(e,t,r)=>{"use strict";var n=r(98646),i=r(54292).map;n({target:"Array",proto:!0,forced:!r(31785)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},8654:(e,t,r)=>{"use strict";var n=r(98646),i=r(38898),a=r(60898),o=r(23500),s=Array;n({target:"Array",stat:!0,forced:i((function(){function e(){}return!(s.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,r=new(a(this)?this:s)(t);t>e;)o(r,e,arguments[e++]);return r.length=t,r}})},72922:(e,t,r)=>{"use strict";var n=r(98646),i=r(46640),a=r(19720),o=r(20587),s=r(31621);n({target:"Array",proto:!0,arity:1,forced:r(38898)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=i(this),r=a(t),n=arguments.length;s(r+n);for(var l=0;l<n;l++)t[r]=arguments[l],r++;return o(t,r),r}})},30320:(e,t,r)=>{"use strict";var n=r(98646),i=r(63741).right,a=r(36919),o=r(87903);n({target:"Array",proto:!0,forced:!r(29040)&&o>79&&o<83||!a("reduceRight")},{reduceRight:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},48:(e,t,r)=>{"use strict";var n=r(98646),i=r(63741).left,a=r(36919),o=r(87903);n({target:"Array",proto:!0,forced:!r(29040)&&o>79&&o<83||!a("reduce")},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},86619:(e,t,r)=>{"use strict";var n=r(98646),i=r(47497),a=r(38283),o=i([].reverse),s=[1,2];n({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),o(this)}})},13474:(e,t,r)=>{"use strict";var n=r(98646),i=r(38283),a=r(60898),o=r(91043),s=r(39211),l=r(19720),u=r(46603),c=r(23500),d=r(90026),h=r(31785),f=r(87097),p=h("slice"),m=d("species"),g=Array,v=Math.max;n({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var r,n,d,h=u(this),p=l(h),y=s(e,p),_=s(void 0===t?p:t,p);if(i(h)&&(r=h.constructor,(a(r)&&(r===g||i(r.prototype))||o(r)&&null===(r=r[m]))&&(r=void 0),r===g||void 0===r))return f(h,y,_);for(n=new(void 0===r?g:r)(v(_-y,0)),d=0;y<_;y++,d++)y in h&&c(n,d,h[y]);return n.length=d,n}})},66287:(e,t,r)=>{"use strict";var n=r(98646),i=r(54292).some;n({target:"Array",proto:!0,forced:!r(36919)("some")},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},90565:(e,t,r)=>{"use strict";var n=r(98646),i=r(47497),a=r(74435),o=r(46640),s=r(19720),l=r(34982),u=r(82518),c=r(38898),d=r(34027),h=r(36919),f=r(38964),p=r(29423),m=r(87903),g=r(69870),v=[],y=i(v.sort),_=i(v.push),b=c((function(){v.sort(void 0)})),M=c((function(){v.sort(null)})),w=h("sort"),T=!c((function(){if(m)return m<70;if(!(f&&f>3)){if(p)return!0;if(g)return g<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)v.push({k:t+n,v:r})}for(v.sort((function(e,t){return t.v-e.v})),n=0;n<v.length;n++)t=v[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));n({target:"Array",proto:!0,forced:b||!M||!w||!T},{sort:function(e){void 0!==e&&a(e);var t=o(this);if(T)return void 0===e?y(t):y(t,e);var r,n,i=[],c=s(t);for(n=0;n<c;n++)n in t&&_(i,t[n]);for(d(i,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:u(t)>u(r)?1:-1}}(e)),r=s(i),n=0;n<r;)t[n]=i[n++];for(;n<c;)l(t,n++);return t}})},90573:(e,t,r)=>{r(72538)("Array")},87125:(e,t,r)=>{"use strict";var n=r(98646),i=r(46640),a=r(39211),o=r(59802),s=r(19720),l=r(20587),u=r(31621),c=r(17983),d=r(23500),h=r(34982),f=r(31785)("splice"),p=Math.max,m=Math.min;n({target:"Array",proto:!0,forced:!f},{splice:function(e,t){var r,n,f,g,v,y,_=i(this),b=s(_),M=a(e,b),w=arguments.length;for(0===w?r=n=0:1===w?(r=0,n=b-M):(r=w-2,n=m(p(o(t),0),b-M)),u(b+r-n),f=c(_,n),g=0;g<n;g++)(v=M+g)in _&&d(f,g,_[v]);if(f.length=n,r<n){for(g=M;g<b-n;g++)y=g+r,(v=g+n)in _?_[y]=_[v]:h(_,y);for(g=b;g>b-n+r;g--)h(_,g-1)}else if(r>n)for(g=b-n;g>M;g--)y=g+r-1,(v=g+n-1)in _?_[y]=_[v]:h(_,y);for(g=0;g<r;g++)_[g+M]=arguments[g+2];return l(_,b-n+r),f}})},22510:(e,t,r)=>{r(4634)("flatMap")},17802:(e,t,r)=>{r(4634)("flat")},29388:(e,t,r)=>{"use strict";var n=r(98646),i=r(46640),a=r(19720),o=r(20587),s=r(34982),l=r(31621);n({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=i(this),r=a(t),n=arguments.length;if(n){l(r+n);for(var u=r;u--;){var c=u+n;u in t?t[c]=t[u]:s(t,c)}for(var d=0;d<n;d++)t[d]=arguments[d]}return o(t,r+n)}})},56532:(e,t,r)=>{var n=r(98646),i=r(56704);n({global:!0,constructor:!0,forced:!r(4651)},{DataView:i.DataView})},54195:(e,t,r)=>{r(56532)},64592:(e,t,r)=>{"use strict";var n=r(98646),i=r(47497),a=r(38898)((function(){return 120!==new Date(16e11).getYear()})),o=i(Date.prototype.getFullYear);n({target:"Date",proto:!0,forced:a},{getYear:function(){return o(this)-1900}})},39381:(e,t,r)=>{var n=r(98646),i=r(47497),a=Date,o=i(a.prototype.getTime);n({target:"Date",stat:!0},{now:function(){return o(new a)}})},20283:(e,t,r)=>{"use strict";var n=r(98646),i=r(47497),a=r(59802),o=Date.prototype,s=i(o.getTime),l=i(o.setFullYear);n({target:"Date",proto:!0},{setYear:function(e){s(this);var t=a(e);return l(this,0<=t&&t<=99?t+1900:t)}})},73556:(e,t,r)=>{r(98646)({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},66773:(e,t,r)=>{var n=r(98646),i=r(244);n({target:"Date",proto:!0,forced:Date.prototype.toISOString!==i},{toISOString:i})},88616:(e,t,r)=>{"use strict";var n=r(98646),i=r(38898),a=r(46640),o=r(61736);n({target:"Date",proto:!0,arity:1,forced:i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=a(this),r=o(t,"number");return"number"!=typeof r||isFinite(r)?t.toISOString():null}})},71525:(e,t,r)=>{var n=r(48613),i=r(78993),a=r(43427),o=r(90026)("toPrimitive"),s=Date.prototype;n(s,o)||i(s,o,a)},52171:(e,t,r)=>{var n=r(47497),i=r(78993),a=Date.prototype,o="Invalid Date",s="toString",l=n(a[s]),u=n(a.getTime);String(new Date(NaN))!=o&&i(a,s,(function(){var e=u(this);return e==e?l(this):o}))},92156:(e,t,r)=>{var n=r(98646),i=r(80800),a=r(49356),o=r(91817),s="WebAssembly",l=i[s],u=7!==Error("e",{cause:7}).cause,c=function(e,t){var r={};r[e]=o(e,t,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},d=function(e,t){if(l&&l[e]){var r={};r[e]=o(s+"."+e,t,u),n({target:s,stat:!0,constructor:!0,arity:1,forced:u},r)}};c("Error",(function(e){return function(t){return a(e,this,arguments)}})),c("EvalError",(function(e){return function(t){return a(e,this,arguments)}})),c("RangeError",(function(e){return function(t){return a(e,this,arguments)}})),c("ReferenceError",(function(e){return function(t){return a(e,this,arguments)}})),c("SyntaxError",(function(e){return function(t){return a(e,this,arguments)}})),c("TypeError",(function(e){return function(t){return a(e,this,arguments)}})),c("URIError",(function(e){return function(t){return a(e,this,arguments)}})),d("CompileError",(function(e){return function(t){return a(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return a(e,this,arguments)}})),d("RuntimeError",(function(e){return function(t){return a(e,this,arguments)}}))},99189:(e,t,r)=>{var n=r(78993),i=r(50668),a=Error.prototype;a.toString!==i&&n(a,"toString",i)},80003:(e,t,r)=>{"use strict";var n=r(98646),i=r(47497),a=r(82518),o=i("".charAt),s=i("".charCodeAt),l=i(/./.exec),u=i(1..toString),c=i("".toUpperCase),d=/[\w*+\-./@]/,h=function(e,t){for(var r=u(e,16);r.length<t;)r="0"+r;return r};n({global:!0},{escape:function(e){for(var t,r,n=a(e),i="",u=n.length,f=0;f<u;)t=o(n,f++),l(d,t)?i+=t:i+=(r=s(t,0))<256?"%"+h(r,2):"%u"+c(h(r,4));return i}})},63008:(e,t,r)=>{var n=r(98646),i=r(31754);n({target:"Function",proto:!0,forced:Function.bind!==i},{bind:i})},82617:(e,t,r)=>{"use strict";var n=r(76599),i=r(91043),a=r(56973),o=r(21052),s=r(90026),l=r(99645),u=s("hasInstance"),c=Function.prototype;u in c||a.f(c,u,{value:l((function(e){if(!n(this)||!i(e))return!1;var t=this.prototype;if(!i(t))return e instanceof this;for(;e=o(e);)if(t===e)return!0;return!1}),u)})},26232:(e,t,r)=>{var n=r(60909),i=r(2656).EXISTS,a=r(47497),o=r(56973).f,s=Function.prototype,l=a(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=a(u.exec);n&&!i&&o(s,"name",{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(e){return""}}})},35196:(e,t,r)=>{var n=r(98646),i=r(80800);n({global:!0,forced:i.globalThis!==i},{globalThis:i})},82833:(e,t,r)=>{var n=r(98646),i=r(14817),a=r(49356),o=r(98004),s=r(47497),l=r(38898),u=r(38283),c=r(76599),d=r(91043),h=r(29611),f=r(87097),p=r(88322),m=i("JSON","stringify"),g=s(/./.exec),v=s("".charAt),y=s("".charCodeAt),_=s("".replace),b=s(1..toString),M=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,T=/^[\uDC00-\uDFFF]$/,L=!p||l((function(){var e=i("Symbol")();return"[null]"!=m([e])||"{}"!=m({a:e})||"{}"!=m(Object(e))})),S=l((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),k=function(e,t){var r=f(arguments),n=t;if((d(t)||void 0!==e)&&!h(e))return u(t)||(t=function(e,t){if(c(n)&&(t=o(n,this,e,t)),!h(t))return t}),r[1]=t,a(m,null,r)},x=function(e,t,r){var n=v(r,t-1),i=v(r,t+1);return g(w,e)&&!g(T,i)||g(T,e)&&!g(w,n)?"\\u"+b(y(e,0),16):e};m&&n({target:"JSON",stat:!0,arity:3,forced:L||S},{stringify:function(e,t,r){var n=f(arguments),i=a(L?k:m,null,n);return S&&"string"==typeof i?_(i,M,x):i}})},52768:(e,t,r)=>{var n=r(80800);r(24198)(n.JSON,"JSON",!0)},12678:(e,t,r)=>{"use strict";r(39216)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(46633))},22247:(e,t,r)=>{r(12678)},97754:(e,t,r)=>{var n=r(98646),i=r(80840),a=Math.acosh,o=Math.log,s=Math.sqrt,l=Math.LN2;n({target:"Math",stat:!0,forced:!a||710!=Math.floor(a(Number.MAX_VALUE))||a(1/0)!=1/0},{acosh:function(e){var t=+e;return t<1?NaN:t>94906265.62425156?o(t)+l:i(t-1+s(t-1)*s(t+1))}})},74382:(e,t,r)=>{var n=r(98646),i=Math.asinh,a=Math.log,o=Math.sqrt;n({target:"Math",stat:!0,forced:!(i&&1/i(0)>0)},{asinh:function e(t){var r=+t;return isFinite(r)&&0!=r?r<0?-e(-r):a(r+o(r*r+1)):r}})},20850:(e,t,r)=>{var n=r(98646),i=Math.atanh,a=Math.log;n({target:"Math",stat:!0,forced:!(i&&1/i(-0)<0)},{atanh:function(e){var t=+e;return 0==t?t:a((1+t)/(1-t))/2}})},25066:(e,t,r)=>{var n=r(98646),i=r(14489),a=Math.abs,o=Math.pow;n({target:"Math",stat:!0},{cbrt:function(e){var t=+e;return i(t)*o(a(t),1/3)}})},7499:(e,t,r)=>{var n=r(98646),i=Math.floor,a=Math.log,o=Math.LOG2E;n({target:"Math",stat:!0},{clz32:function(e){var t=e>>>0;return t?31-i(a(t+.5)*o):32}})},85435:(e,t,r)=>{var n=r(98646),i=r(31698),a=Math.cosh,o=Math.abs,s=Math.E;n({target:"Math",stat:!0,forced:!a||a(710)===1/0},{cosh:function(e){var t=i(o(e)-1)+1;return(t+1/(t*s*s))*(s/2)}})},11306:(e,t,r)=>{var n=r(98646),i=r(31698);n({target:"Math",stat:!0,forced:i!=Math.expm1},{expm1:i})},16163:(e,t,r)=>{r(98646)({target:"Math",stat:!0},{fround:r(16001)})},52365:(e,t,r)=>{var n=r(98646),i=Math.hypot,a=Math.abs,o=Math.sqrt;n({target:"Math",stat:!0,arity:2,forced:!!i&&i(1/0,NaN)!==1/0},{hypot:function(e,t){for(var r,n,i=0,s=0,l=arguments.length,u=0;s<l;)u<(r=a(arguments[s++]))?(i=i*(n=u/r)*n+1,u=r):i+=r>0?(n=r/u)*n:r;return u===1/0?1/0:u*o(i)}})},28345:(e,t,r)=>{var n=r(98646),i=r(38898),a=Math.imul;n({target:"Math",stat:!0,forced:i((function(){return-5!=a(4294967295,5)||2!=a.length}))},{imul:function(e,t){var r=65535,n=+e,i=+t,a=r&n,o=r&i;return 0|a*o+((r&n>>>16)*o+a*(r&i>>>16)<<16>>>0)}})},6617:(e,t,r)=>{r(98646)({target:"Math",stat:!0},{log10:r(86018)})},2183:(e,t,r)=>{r(98646)({target:"Math",stat:!0},{log1p:r(80840)})},70183:(e,t,r)=>{var n=r(98646),i=Math.log,a=Math.LN2;n({target:"Math",stat:!0},{log2:function(e){return i(e)/a}})},91235:(e,t,r)=>{r(98646)({target:"Math",stat:!0},{sign:r(14489)})},65153:(e,t,r)=>{var n=r(98646),i=r(38898),a=r(31698),o=Math.abs,s=Math.exp,l=Math.E;n({target:"Math",stat:!0,forced:i((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(e){var t=+e;return o(t)<1?(a(t)-a(-t))/2:(s(t-1)-s(-t-1))*(l/2)}})},8882:(e,t,r)=>{var n=r(98646),i=r(31698),a=Math.exp;n({target:"Math",stat:!0},{tanh:function(e){var t=+e,r=i(t),n=i(-t);return r==1/0?1:n==1/0?-1:(r-n)/(a(t)+a(-t))}})},71646:(e,t,r)=>{r(24198)(Math,"Math",!0)},96983:(e,t,r)=>{r(98646)({target:"Math",stat:!0},{trunc:r(16612)})},28402:(e,t,r)=>{"use strict";var n=r(98646),i=r(20781),a=r(60909),o=r(80800),s=r(44871),l=r(47497),u=r(28046),c=r(48613),d=r(38754),h=r(29407),f=r(29611),p=r(61736),m=r(38898),g=r(2107).f,v=r(63276).f,y=r(56973).f,_=r(91090),b=r(93444).trim,M="Number",w=o[M],T=s[M],L=w.prototype,S=o.TypeError,k=l("".slice),x=l("".charCodeAt),E=function(e){var t=p(e,"number");return"bigint"==typeof t?t:D(t)},D=function(e){var t,r,n,i,a,o,s,l,u=p(e,"number");if(f(u))throw S("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=b(u),43===(t=x(u,0))||45===t){if(88===(r=x(u,2))||120===r)return NaN}else if(48===t){switch(x(u,1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+u}for(o=(a=k(u,2)).length,s=0;s<o;s++)if((l=x(a,s))<48||l>i)return NaN;return parseInt(a,n)}return+u},A=u(M,!w(" 0o1")||!w("0b1")||w("+0x1")),O=function(e){return h(L,e)&&m((function(){_(e)}))},P=function(e){var t=arguments.length<1?0:w(E(e));return O(this)?d(Object(t),this,P):t};P.prototype=L,A&&!i&&(L.constructor=P),n({global:!0,constructor:!0,wrap:!0,forced:A},{Number:P});var R=function(e,t){for(var r,n=a?g(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;n.length>i;i++)c(t,r=n[i])&&!c(e,r)&&y(e,r,v(t,r))};i&&T&&R(s[M],T),(A||i)&&R(s[M],w)},99037:(e,t,r)=>{r(98646)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},85277:(e,t,r)=>{r(98646)({target:"Number",stat:!0},{isFinite:r(61066)})},46146:(e,t,r)=>{r(98646)({target:"Number",stat:!0},{isInteger:r(46514)})},77272:(e,t,r)=>{r(98646)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},93047:(e,t,r)=>{var n=r(98646),i=r(46514),a=Math.abs;n({target:"Number",stat:!0},{isSafeInteger:function(e){return i(e)&&a(e)<=9007199254740991}})},38361:(e,t,r)=>{r(98646)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},90362:(e,t,r)=>{r(98646)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},36768:(e,t,r)=>{var n=r(98646),i=r(50219);n({target:"Number",stat:!0,forced:Number.parseFloat!=i},{parseFloat:i})},81674:(e,t,r)=>{var n=r(98646),i=r(52585);n({target:"Number",stat:!0,forced:Number.parseInt!=i},{parseInt:i})},82002:(e,t,r)=>{"use strict";var n=r(98646),i=r(47497),a=r(59802),o=r(91090),s=r(81968),l=r(86018),u=r(38898),c=RangeError,d=String,h=isFinite,f=Math.abs,p=Math.floor,m=Math.pow,g=Math.round,v=i(1..toExponential),y=i(s),_=i("".slice),b="-6.9000e-11"===v(-69e-12,4)&&"1.25e+0"===v(1.255,2)&&"1.235e+4"===v(12345,3)&&"3e+1"===v(25,0);n({target:"Number",proto:!0,forced:!b||!(u((function(){v(1,1/0)}))&&u((function(){v(1,-1/0)})))||!!u((function(){v(1/0,1/0),v(NaN,1/0)}))},{toExponential:function(e){var t=o(this);if(void 0===e)return v(t);var r=a(e);if(!h(t))return String(t);if(r<0||r>20)throw c("Incorrect fraction digits");if(b)return v(t,r);var n="",i="",s=0,u="",M="";if(t<0&&(n="-",t=-t),0===t)s=0,i=y("0",r+1);else{var w=l(t);s=p(w);var T=0,L=m(10,s-r);2*t>=(2*(T=g(t/L))+1)*L&&(T+=1),T>=m(10,r+1)&&(T/=10,s+=1),i=d(T)}return 0!==r&&(i=_(i,0,1)+"."+_(i,1)),0===s?(u="+",M="0"):(u=s>0?"+":"-",M=d(f(s))),n+(i+"e")+u+M}})},37591:(e,t,r)=>{"use strict";var n=r(98646),i=r(47497),a=r(59802),o=r(91090),s=r(81968),l=r(38898),u=RangeError,c=String,d=Math.floor,h=i(s),f=i("".slice),p=i(1..toFixed),m=function(e,t,r){return 0===t?r:t%2==1?m(e,t-1,r*e):m(e*e,t/2,r)},g=function(e,t,r){for(var n=-1,i=r;++n<6;)i+=t*e[n],e[n]=i%1e7,i=d(i/1e7)},v=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=d(n/t),n=n%t*1e7},y=function(e){for(var t=6,r="";--t>=0;)if(""!==r||0===t||0!==e[t]){var n=c(e[t]);r=""===r?n:r+h("0",7-n.length)+n}return r};n({target:"Number",proto:!0,forced:l((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!l((function(){p({})}))},{toFixed:function(e){var t,r,n,i,s=o(this),l=a(e),d=[0,0,0,0,0,0],p="",_="0";if(l<0||l>20)throw u("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return c(s);if(s<0&&(p="-",s=-s),s>1e-21)if(r=(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(s*m(2,69,1))-69)<0?s*m(2,-t,1):s/m(2,t,1),r*=4503599627370496,(t=52-t)>0){for(g(d,0,r),n=l;n>=7;)g(d,1e7,0),n-=7;for(g(d,m(10,n,1),0),n=t-1;n>=23;)v(d,1<<23),n-=23;v(d,1<<n),g(d,1,1),v(d,2),_=y(d)}else g(d,0,r),g(d,1<<-t,0),_=y(d)+h("0",l);return l>0?p+((i=_.length)<=l?"0."+h("0",l-i)+_:f(_,0,i-l)+"."+f(_,i-l)):p+_}})},53713:(e,t,r)=>{"use strict";var n=r(98646),i=r(47497),a=r(38898),o=r(91090),s=i(1..toPrecision);n({target:"Number",proto:!0,forced:a((function(){return"1"!==s(1,void 0)}))||!a((function(){s({})}))},{toPrecision:function(e){return void 0===e?s(o(this)):s(o(this),e)}})},47189:(e,t,r)=>{var n=r(98646),i=r(7738);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},21508:(e,t,r)=>{r(98646)({target:"Object",stat:!0,sham:!r(60909)},{create:r(79692)})},94914:(e,t,r)=>{"use strict";var n=r(98646),i=r(60909),a=r(41191),o=r(74435),s=r(46640),l=r(56973);i&&n({target:"Object",proto:!0,forced:a},{__defineGetter__:function(e,t){l.f(s(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},33306:(e,t,r)=>{var n=r(98646),i=r(60909),a=r(83110).f;n({target:"Object",stat:!0,forced:Object.defineProperties!==a,sham:!i},{defineProperties:a})},93319:(e,t,r)=>{var n=r(98646),i=r(60909),a=r(56973).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==a,sham:!i},{defineProperty:a})},85365:(e,t,r)=>{"use strict";var n=r(98646),i=r(60909),a=r(41191),o=r(74435),s=r(46640),l=r(56973);i&&n({target:"Object",proto:!0,forced:a},{__defineSetter__:function(e,t){l.f(s(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},70223:(e,t,r)=>{var n=r(98646),i=r(23102).entries;n({target:"Object",stat:!0},{entries:function(e){return i(e)}})},52777:(e,t,r)=>{var n=r(98646),i=r(29025),a=r(38898),o=r(91043),s=r(82194).onFreeze,l=Object.freeze;n({target:"Object",stat:!0,forced:a((function(){l(1)})),sham:!i},{freeze:function(e){return l&&o(e)?l(s(e)):e}})},42194:(e,t,r)=>{var n=r(98646),i=r(72842),a=r(23500);n({target:"Object",stat:!0},{fromEntries:function(e){var t={};return i(e,(function(e,r){a(t,e,r)}),{AS_ENTRIES:!0}),t}})},90461:(e,t,r)=>{var n=r(98646),i=r(38898),a=r(46603),o=r(63276).f,s=r(60909);n({target:"Object",stat:!0,forced:!s||i((function(){o(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(a(e),t)}})},12418:(e,t,r)=>{var n=r(98646),i=r(60909),a=r(48872),o=r(46603),s=r(63276),l=r(23500);n({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,r,n=o(e),i=s.f,u=a(n),c={},d=0;u.length>d;)void 0!==(r=i(n,t=u[d++]))&&l(c,t,r);return c}})},40440:(e,t,r)=>{var n=r(98646),i=r(38898),a=r(9677).f;n({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:a})},99822:(e,t,r)=>{var n=r(98646),i=r(88322),a=r(38898),o=r(52610),s=r(46640);n({target:"Object",stat:!0,forced:!i||a((function(){o.f(1)}))},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(s(e)):[]}})},57017:(e,t,r)=>{var n=r(98646),i=r(38898),a=r(46640),o=r(21052),s=r(36760);n({target:"Object",stat:!0,forced:i((function(){o(1)})),sham:!s},{getPrototypeOf:function(e){return o(a(e))}})},35048:(e,t,r)=>{r(98646)({target:"Object",stat:!0},{hasOwn:r(48613)})},65578:(e,t,r)=>{var n=r(98646),i=r(58410);n({target:"Object",stat:!0,forced:Object.isExtensible!==i},{isExtensible:i})},1466:(e,t,r)=>{var n=r(98646),i=r(38898),a=r(91043),o=r(54518),s=r(46144),l=Object.isFrozen;n({target:"Object",stat:!0,forced:s||i((function(){l(1)}))},{isFrozen:function(e){return!a(e)||!(!s||"ArrayBuffer"!=o(e))||!!l&&l(e)}})},87647:(e,t,r)=>{var n=r(98646),i=r(38898),a=r(91043),o=r(54518),s=r(46144),l=Object.isSealed;n({target:"Object",stat:!0,forced:s||i((function(){l(1)}))},{isSealed:function(e){return!a(e)||!(!s||"ArrayBuffer"!=o(e))||!!l&&l(e)}})},68270:(e,t,r)=>{r(98646)({target:"Object",stat:!0},{is:r(20824)})},5622:(e,t,r)=>{var n=r(98646),i=r(46640),a=r(73555);n({target:"Object",stat:!0,forced:r(38898)((function(){a(1)}))},{keys:function(e){return a(i(e))}})},53258:(e,t,r)=>{"use strict";var n=r(98646),i=r(60909),a=r(41191),o=r(46640),s=r(77369),l=r(21052),u=r(63276).f;i&&n({target:"Object",proto:!0,forced:a},{__lookupGetter__:function(e){var t,r=o(this),n=s(e);do{if(t=u(r,n))return t.get}while(r=l(r))}})},24938:(e,t,r)=>{"use strict";var n=r(98646),i=r(60909),a=r(41191),o=r(46640),s=r(77369),l=r(21052),u=r(63276).f;i&&n({target:"Object",proto:!0,forced:a},{__lookupSetter__:function(e){var t,r=o(this),n=s(e);do{if(t=u(r,n))return t.set}while(r=l(r))}})},87302:(e,t,r)=>{var n=r(98646),i=r(91043),a=r(82194).onFreeze,o=r(29025),s=r(38898),l=Object.preventExtensions;n({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!o},{preventExtensions:function(e){return l&&i(e)?l(a(e)):e}})},98924:(e,t,r)=>{"use strict";var n=r(60909),i=r(10159),a=r(91043),o=r(46640),s=r(58401),l=Object.getPrototypeOf,u=Object.setPrototypeOf,c=Object.prototype,d="__proto__";if(n&&l&&u&&!(d in c))try{i(c,d,{configurable:!0,get:function(){return l(o(this))},set:function(e){var t=s(this);(a(e)||null===e)&&a(t)&&u(t,e)}})}catch(e){}},55992:(e,t,r)=>{var n=r(98646),i=r(91043),a=r(82194).onFreeze,o=r(29025),s=r(38898),l=Object.seal;n({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!o},{seal:function(e){return l&&i(e)?l(a(e)):e}})},40890:(e,t,r)=>{r(98646)({target:"Object",stat:!0},{setPrototypeOf:r(16907)})},51151:(e,t,r)=>{var n=r(23026),i=r(78993),a=r(64542);n||i(Object.prototype,"toString",a,{unsafe:!0})},68570:(e,t,r)=>{var n=r(98646),i=r(23102).values;n({target:"Object",stat:!0},{values:function(e){return i(e)}})},40247:(e,t,r)=>{var n=r(98646),i=r(50219);n({global:!0,forced:parseFloat!=i},{parseFloat:i})},52833:(e,t,r)=>{var n=r(98646),i=r(52585);n({global:!0,forced:parseInt!=i},{parseInt:i})},50521:(e,t,r)=>{"use strict";var n=r(98646),i=r(98004),a=r(74435),o=r(97845),s=r(25291),l=r(72842);n({target:"Promise",stat:!0,forced:r(30703)},{allSettled:function(e){var t=this,r=o.f(t),n=r.resolve,u=r.reject,c=s((function(){var r=a(t.resolve),o=[],s=0,u=1;l(e,(function(e){var a=s++,l=!1;u++,i(r,t,e).then((function(e){l||(l=!0,o[a]={status:"fulfilled",value:e},--u||n(o))}),(function(e){l||(l=!0,o[a]={status:"rejected",reason:e},--u||n(o))}))})),--u||n(o)}));return c.error&&u(c.value),r.promise}})},27802:(e,t,r)=>{"use strict";var n=r(98646),i=r(98004),a=r(74435),o=r(97845),s=r(25291),l=r(72842);n({target:"Promise",stat:!0,forced:r(30703)},{all:function(e){var t=this,r=o.f(t),n=r.resolve,u=r.reject,c=s((function(){var r=a(t.resolve),o=[],s=0,c=1;l(e,(function(e){var a=s++,l=!1;c++,i(r,t,e).then((function(e){l||(l=!0,o[a]=e,--c||n(o))}),u)})),--c||n(o)}));return c.error&&u(c.value),r.promise}})},35413:(e,t,r)=>{"use strict";var n=r(98646),i=r(98004),a=r(74435),o=r(14817),s=r(97845),l=r(25291),u=r(72842),c=r(30703),d="No one promise resolved";n({target:"Promise",stat:!0,forced:c},{any:function(e){var t=this,r=o("AggregateError"),n=s.f(t),c=n.resolve,h=n.reject,f=l((function(){var n=a(t.resolve),o=[],s=0,l=1,f=!1;u(e,(function(e){var a=s++,u=!1;l++,i(n,t,e).then((function(e){u||f||(f=!0,c(e))}),(function(e){u||f||(u=!0,o[a]=e,--l||h(new r(o,d)))}))})),--l||h(new r(o,d))}));return f.error&&h(f.value),n.promise}})},25537:(e,t,r)=>{"use strict";var n=r(98646),i=r(20781),a=r(90204).CONSTRUCTOR,o=r(42670),s=r(14817),l=r(76599),u=r(78993),c=o&&o.prototype;if(n({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&l(o)){var d=s("Promise").prototype.catch;c.catch!==d&&u(c,"catch",d,{unsafe:!0})}},86936:(e,t,r)=>{"use strict";var n,i,a,o=r(98646),s=r(20781),l=r(29040),u=r(80800),c=r(98004),d=r(78993),h=r(16907),f=r(24198),p=r(72538),m=r(74435),g=r(76599),v=r(91043),y=r(96345),_=r(73370),b=r(55767).set,M=r(89332),w=r(34066),T=r(25291),L=r(98409),S=r(44495),k=r(42670),x=r(90204),E=r(97845),D="Promise",A=x.CONSTRUCTOR,O=x.REJECTION_EVENT,P=x.SUBCLASSING,R=S.getterFor(D),I=S.set,Y=k&&k.prototype,C=k,F=Y,N=u.TypeError,j=u.document,H=u.process,B=E.f,U=B,W=!!(j&&j.createEvent&&u.dispatchEvent),z="unhandledrejection",G=function(e){var t;return!(!v(e)||!g(t=e.then))&&t},V=function(e,t){var r,n,i,a=t.value,o=1==t.state,s=o?e.ok:e.fail,l=e.resolve,u=e.reject,d=e.domain;try{s?(o||(2===t.rejection&&X(t),t.rejection=1),!0===s?r=a:(d&&d.enter(),r=s(a),d&&(d.exit(),i=!0)),r===e.promise?u(N("Promise-chain cycle")):(n=G(r))?c(n,r,l,u):l(r)):u(a)}catch(e){d&&!i&&d.exit(),u(e)}},K=function(e,t){e.notified||(e.notified=!0,M((function(){for(var r,n=e.reactions;r=n.get();)V(r,e);e.notified=!1,t&&!e.rejection&&$(e)})))},q=function(e,t,r){var n,i;W?((n=j.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!O&&(i=u["on"+e])?i(n):e===z&&w("Unhandled promise rejection",r)},$=function(e){c(b,u,(function(){var t,r=e.facade,n=e.value;if(J(e)&&(t=T((function(){l?H.emit("unhandledRejection",n,r):q(z,r,n)})),e.rejection=l||J(e)?2:1,t.error))throw t.value}))},J=function(e){return 1!==e.rejection&&!e.parent},X=function(e){c(b,u,(function(){var t=e.facade;l?H.emit("rejectionHandled",t):q("rejectionhandled",t,e.value)}))},Q=function(e,t,r){return function(n){e(t,n,r)}},Z=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,K(e,!0))},ee=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw N("Promise can't be resolved itself");var n=G(t);n?M((function(){var r={done:!1};try{c(n,t,Q(ee,r,e),Q(Z,r,e))}catch(t){Z(r,t,e)}})):(e.value=t,e.state=1,K(e,!1))}catch(t){Z({done:!1},t,e)}}};if(A&&(F=(C=function(e){y(this,F),m(e),c(n,this);var t=R(this);try{e(Q(ee,t),Q(Z,t))}catch(e){Z(t,e)}}).prototype,(n=function(e){I(this,{type:D,done:!1,notified:!1,parent:!1,reactions:new L,rejection:!1,state:0,value:void 0})}).prototype=d(F,"then",(function(e,t){var r=R(this),n=B(_(this,C));return r.parent=!0,n.ok=!g(e)||e,n.fail=g(t)&&t,n.domain=l?H.domain:void 0,0==r.state?r.reactions.add(n):M((function(){V(n,r)})),n.promise})),i=function(){var e=new n,t=R(e);this.promise=e,this.resolve=Q(ee,t),this.reject=Q(Z,t)},E.f=B=function(e){return e===C||void 0===e?new i(e):U(e)},!s&&g(k)&&Y!==Object.prototype)){a=Y.then,P||d(Y,"then",(function(e,t){var r=this;return new C((function(e,t){c(a,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete Y.constructor}catch(e){}h&&h(Y,F)}o({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:C}),f(C,D,!1,!0),p(D)},39134:(e,t,r)=>{"use strict";var n=r(98646),i=r(20781),a=r(42670),o=r(38898),s=r(14817),l=r(76599),u=r(73370),c=r(75856),d=r(78993),h=a&&a.prototype;if(n({target:"Promise",proto:!0,real:!0,forced:!!a&&o((function(){h.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,s("Promise")),r=l(e);return this.then(r?function(r){return c(t,e()).then((function(){return r}))}:e,r?function(r){return c(t,e()).then((function(){throw r}))}:e)}}),!i&&l(a)){var f=s("Promise").prototype.finally;h.finally!==f&&d(h,"finally",f,{unsafe:!0})}},9317:(e,t,r)=>{r(86936),r(27802),r(25537),r(54683),r(18762),r(59159)},54683:(e,t,r)=>{"use strict";var n=r(98646),i=r(98004),a=r(74435),o=r(97845),s=r(25291),l=r(72842);n({target:"Promise",stat:!0,forced:r(30703)},{race:function(e){var t=this,r=o.f(t),n=r.reject,u=s((function(){var o=a(t.resolve);l(e,(function(e){i(o,t,e).then(r.resolve,n)}))}));return u.error&&n(u.value),r.promise}})},18762:(e,t,r)=>{"use strict";var n=r(98646),i=r(98004),a=r(97845);n({target:"Promise",stat:!0,forced:r(90204).CONSTRUCTOR},{reject:function(e){var t=a.f(this);return i(t.reject,void 0,e),t.promise}})},59159:(e,t,r)=>{"use strict";var n=r(98646),i=r(14817),a=r(20781),o=r(42670),s=r(90204).CONSTRUCTOR,l=r(75856),u=i("Promise"),c=a&&!s;n({target:"Promise",stat:!0,forced:a||s},{resolve:function(e){return l(c&&this===u?o:this,e)}})},49898:(e,t,r)=>{var n=r(98646),i=r(49356),a=r(74435),o=r(45511);n({target:"Reflect",stat:!0,forced:!r(38898)((function(){Reflect.apply((function(){}))}))},{apply:function(e,t,r){return i(a(e),t,o(r))}})},78222:(e,t,r)=>{var n=r(98646),i=r(14817),a=r(49356),o=r(31754),s=r(63409),l=r(45511),u=r(91043),c=r(79692),d=r(38898),h=i("Reflect","construct"),f=Object.prototype,p=[].push,m=d((function(){function e(){}return!(h((function(){}),[],e)instanceof e)})),g=!d((function(){h((function(){}))})),v=m||g;n({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(e,t){s(e),l(t);var r=arguments.length<3?e:s(arguments[2]);if(g&&!m)return h(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return a(p,n,t),new(a(o,e,n))}var i=r.prototype,d=c(u(i)?i:f),v=a(e,d,t);return u(v)?v:d}})},47433:(e,t,r)=>{var n=r(98646),i=r(60909),a=r(45511),o=r(77369),s=r(56973);n({target:"Reflect",stat:!0,forced:r(38898)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!i},{defineProperty:function(e,t,r){a(e);var n=o(t);a(r);try{return s.f(e,n,r),!0}catch(e){return!1}}})},15602:(e,t,r)=>{var n=r(98646),i=r(45511),a=r(63276).f;n({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var r=a(i(e),t);return!(r&&!r.configurable)&&delete e[t]}})},91761:(e,t,r)=>{var n=r(98646),i=r(60909),a=r(45511),o=r(63276);n({target:"Reflect",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(e,t){return o.f(a(e),t)}})},14767:(e,t,r)=>{var n=r(98646),i=r(45511),a=r(21052);n({target:"Reflect",stat:!0,sham:!r(36760)},{getPrototypeOf:function(e){return a(i(e))}})},71502:(e,t,r)=>{var n=r(98646),i=r(98004),a=r(91043),o=r(45511),s=r(26810),l=r(63276),u=r(21052);n({target:"Reflect",stat:!0},{get:function e(t,r){var n,c,d=arguments.length<3?t:arguments[2];return o(t)===d?t[r]:(n=l.f(t,r))?s(n)?n.value:void 0===n.get?void 0:i(n.get,d):a(c=u(t))?e(c,r,d):void 0}})},96895:(e,t,r)=>{r(98646)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},36103:(e,t,r)=>{var n=r(98646),i=r(45511),a=r(58410);n({target:"Reflect",stat:!0},{isExtensible:function(e){return i(e),a(e)}})},82012:(e,t,r)=>{r(98646)({target:"Reflect",stat:!0},{ownKeys:r(48872)})},2300:(e,t,r)=>{var n=r(98646),i=r(14817),a=r(45511);n({target:"Reflect",stat:!0,sham:!r(29025)},{preventExtensions:function(e){a(e);try{var t=i("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}})},1754:(e,t,r)=>{var n=r(98646),i=r(45511),a=r(75517),o=r(16907);o&&n({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){i(e),a(t);try{return o(e,t),!0}catch(e){return!1}}})},18139:(e,t,r)=>{var n=r(98646),i=r(98004),a=r(45511),o=r(91043),s=r(26810),l=r(38898),u=r(56973),c=r(63276),d=r(21052),h=r(95398);n({target:"Reflect",stat:!0,forced:l((function(){var e=function(){},t=u.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)}))},{set:function e(t,r,n){var l,f,p,m=arguments.length<4?t:arguments[3],g=c.f(a(t),r);if(!g){if(o(f=d(t)))return e(f,r,n,m);g=h(0)}if(s(g)){if(!1===g.writable||!o(m))return!1;if(l=c.f(m,r)){if(l.get||l.set||!1===l.writable)return!1;l.value=n,u.f(m,r,l)}else u.f(m,r,h(0,n))}else{if(void 0===(p=g.set))return!1;i(p,m,n)}return!0}})},15107:(e,t,r)=>{var n=r(98646),i=r(80800),a=r(24198);n({global:!0},{Reflect:{}}),a(i.Reflect,"Reflect",!0)},61821:(e,t,r)=>{var n=r(60909),i=r(80800),a=r(47497),o=r(28046),s=r(38754),l=r(19382),u=r(2107).f,c=r(29407),d=r(18609),h=r(82518),f=r(17328),p=r(4622),m=r(56668),g=r(78993),v=r(38898),y=r(48613),_=r(44495).enforce,b=r(72538),M=r(90026),w=r(61523),T=r(10158),L=M("match"),S=i.RegExp,k=S.prototype,x=i.SyntaxError,E=a(k.exec),D=a("".charAt),A=a("".replace),O=a("".indexOf),P=a("".slice),R=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,I=/a/g,Y=/a/g,C=new S(I)!==I,F=p.MISSED_STICKY,N=p.UNSUPPORTED_Y;if(o("RegExp",n&&(!C||F||w||T||v((function(){return Y[L]=!1,S(I)!=I||S(Y)==Y||"/a/i"!=S(I,"i")}))))){for(var j=function(e,t){var r,n,i,a,o,u,p=c(k,this),m=d(e),g=void 0===t,v=[],b=e;if(!p&&m&&g&&e.constructor===j)return e;if((m||c(k,e))&&(e=e.source,g&&(t=f(b))),e=void 0===e?"":h(e),t=void 0===t?"":h(t),b=e,w&&"dotAll"in I&&(n=!!t&&O(t,"s")>-1)&&(t=A(t,/s/g,"")),r=t,F&&"sticky"in I&&(i=!!t&&O(t,"y")>-1)&&N&&(t=A(t,/y/g,"")),T&&(a=function(e){for(var t,r=e.length,n=0,i="",a=[],o={},s=!1,l=!1,u=0,c="";n<=r;n++){if("\\"===(t=D(e,n)))t+=D(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:E(R,P(e,n+1))&&(n+=2,l=!0),i+=t,u++;continue;case">"===t&&l:if(""===c||y(o,c))throw new x("Invalid capture group name");o[c]=!0,a[a.length]=[c,u],l=!1,c="";continue}l?c+=t:i+=t}return[i,a]}(e),e=a[0],v=a[1]),o=s(S(e,t),p?this:k,j),(n||i||v.length)&&(u=_(o),n&&(u.dotAll=!0,u.raw=j(function(e){for(var t,r=e.length,n=0,i="",a=!1;n<=r;n++)"\\"!==(t=D(e,n))?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),i+=t):i+="[\\s\\S]":i+=t+D(e,++n);return i}(e),r)),i&&(u.sticky=!0),v.length&&(u.groups=v)),e!==b)try{l(o,"source",""===b?"(?:)":b)}catch(e){}return o},H=u(S),B=0;H.length>B;)m(j,S,H[B++]);k.constructor=j,j.prototype=k,g(i,"RegExp",j,{constructor:!0})}b("RegExp")},77933:(e,t,r)=>{var n=r(60909),i=r(61523),a=r(54518),o=r(10159),s=r(44495).get,l=RegExp.prototype,u=TypeError;n&&i&&o(l,"dotAll",{configurable:!0,get:function(){if(this!==l){if("RegExp"===a(this))return!!s(this).dotAll;throw u("Incompatible receiver, RegExp required")}}})},39707:(e,t,r)=>{"use strict";var n=r(98646),i=r(64226);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},97111:(e,t,r)=>{var n=r(80800),i=r(60909),a=r(10159),o=r(14704),s=r(38898),l=n.RegExp,u=l.prototype;i&&s((function(){var e=!0;try{l(".","d")}catch(t){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",i=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in e&&(a.hasIndices="d"),a)i(o,a[o]);return Object.getOwnPropertyDescriptor(u,"flags").get.call(t)!==n||r!==n}))&&a(u,"flags",{configurable:!0,get:o})},42001:(e,t,r)=>{var n=r(60909),i=r(4622).MISSED_STICKY,a=r(54518),o=r(10159),s=r(44495).get,l=RegExp.prototype,u=TypeError;n&&i&&o(l,"sticky",{configurable:!0,get:function(){if(this!==l){if("RegExp"===a(this))return!!s(this).sticky;throw u("Incompatible receiver, RegExp required")}}})},81939:(e,t,r)=>{"use strict";r(39707);var n,i,a=r(98646),o=r(98004),s=r(76599),l=r(45511),u=r(82518),c=(n=!1,(i=/[ac]/).exec=function(){return n=!0,/./.exec.apply(this,arguments)},!0===i.test("abc")&&n),d=/./.test;a({target:"RegExp",proto:!0,forced:!c},{test:function(e){var t=l(this),r=u(e),n=t.exec;if(!s(n))return o(d,t,r);var i=o(n,t,r);return null!==i&&(l(i),!0)}})},18977:(e,t,r)=>{"use strict";var n=r(2656).PROPER,i=r(78993),a=r(45511),o=r(82518),s=r(38898),l=r(17328),u="toString",c=RegExp.prototype[u],d=s((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),h=n&&c.name!=u;(d||h)&&i(RegExp.prototype,u,(function(){var e=a(this);return"/"+o(e.source)+"/"+o(l(e))}),{unsafe:!0})},78929:(e,t,r)=>{"use strict";r(39216)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(46633))},955:(e,t,r)=>{r(78929)},13196:(e,t,r)=>{"use strict";var n=r(98646),i=r(13242);n({target:"String",proto:!0,forced:r(31373)("anchor")},{anchor:function(e){return i(this,"a","name",e)}})},66325:(e,t,r)=>{"use strict";var n=r(98646),i=r(47497),a=r(58401),o=r(59802),s=r(82518),l=r(38898),u=i("".charAt);n({target:"String",proto:!0,forced:l((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(e){var t=s(a(this)),r=t.length,n=o(e),i=n>=0?n:r+n;return i<0||i>=r?void 0:u(t,i)}})},36316:(e,t,r)=>{"use strict";var n=r(98646),i=r(13242);n({target:"String",proto:!0,forced:r(31373)("big")},{big:function(){return i(this,"big","","")}})},94815:(e,t,r)=>{"use strict";var n=r(98646),i=r(13242);n({target:"String",proto:!0,forced:r(31373)("blink")},{blink:function(){return i(this,"blink","","")}})},67228:(e,t,r)=>{"use strict";var n=r(98646),i=r(13242);n({target:"String",proto:!0,forced:r(31373)("bold")},{bold:function(){return i(this,"b","","")}})},9275:(e,t,r)=>{"use strict";var n=r(98646),i=r(68214).codeAt;n({target:"String",proto:!0},{codePointAt:function(e){return i(this,e)}})},65081:(e,t,r)=>{"use strict";var n,i=r(98646),a=r(22536),o=r(63276).f,s=r(43310),l=r(82518),u=r(36131),c=r(58401),d=r(35899),h=r(20781),f=a("".endsWith),p=a("".slice),m=Math.min,g=d("endsWith");i({target:"String",proto:!0,forced:!(!h&&!g&&(n=o(String.prototype,"endsWith"),n&&!n.writable)||g)},{endsWith:function(e){var t=l(c(this));u(e);var r=arguments.length>1?arguments[1]:void 0,n=t.length,i=void 0===r?n:m(s(r),n),a=l(e);return f?f(t,a,i):p(t,i-a.length,i)===a}})},64083:(e,t,r)=>{"use strict";var n=r(98646),i=r(13242);n({target:"String",proto:!0,forced:r(31373)("fixed")},{fixed:function(){return i(this,"tt","","")}})},53856:(e,t,r)=>{"use strict";var n=r(98646),i=r(13242);n({target:"String",proto:!0,forced:r(31373)("fontcolor")},{fontcolor:function(e){return i(this,"font","color",e)}})},84144:(e,t,r)=>{"use strict";var n=r(98646),i=r(13242);n({target:"String",proto:!0,forced:r(31373)("fontsize")},{fontsize:function(e){return i(this,"font","size",e)}})},37140:(e,t,r)=>{var n=r(98646),i=r(47497),a=r(39211),o=RangeError,s=String.fromCharCode,l=String.fromCodePoint,u=i([].join);n({target:"String",stat:!0,arity:1,forced:!!l&&1!=l.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,i=0;n>i;){if(t=+arguments[i++],a(t,1114111)!==t)throw o(t+" is not a valid code point");r[i]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return u(r,"")}})},2439:(e,t,r)=>{"use strict";var n=r(98646),i=r(47497),a=r(36131),o=r(58401),s=r(82518),l=r(35899),u=i("".indexOf);n({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(s(o(this)),s(a(e)),arguments.length>1?arguments[1]:void 0)}})},48873:(e,t,r)=>{"use strict";var n=r(98646),i=r(13242);n({target:"String",proto:!0,forced:r(31373)("italics")},{italics:function(){return i(this,"i","","")}})},71794:(e,t,r)=>{"use strict";var n=r(68214).charAt,i=r(82518),a=r(44495),o=r(85011),s=r(70788),l="String Iterator",u=a.set,c=a.getterFor(l);o(String,"String",(function(e){u(this,{type:l,string:i(e),index:0})}),(function(){var e,t=c(this),r=t.string,i=t.index;return i>=r.length?s(void 0,!0):(e=n(r,i),t.index+=e.length,s(e,!1))}))},55882:(e,t,r)=>{"use strict";var n=r(98646),i=r(13242);n({target:"String",proto:!0,forced:r(31373)("link")},{link:function(e){return i(this,"a","href",e)}})},69596:(e,t,r)=>{"use strict";var n=r(98646),i=r(98004),a=r(22536),o=r(48298),s=r(70788),l=r(58401),u=r(43310),c=r(82518),d=r(45511),h=r(98522),f=r(54518),p=r(18609),m=r(17328),g=r(74287),v=r(78993),y=r(38898),_=r(90026),b=r(73370),M=r(83829),w=r(18692),T=r(44495),L=r(20781),S=_("matchAll"),k="RegExp String",x=k+" Iterator",E=T.set,D=T.getterFor(x),A=RegExp.prototype,O=TypeError,P=a("".indexOf),R=a("".matchAll),I=!!R&&!y((function(){R("a",/./)})),Y=o((function(e,t,r,n){E(this,{type:x,regexp:e,string:t,global:r,unicode:n,done:!1})}),k,(function(){var e=D(this);if(e.done)return s(void 0,!0);var t=e.regexp,r=e.string,n=w(t,r);return null===n?(e.done=!0,s(void 0,!0)):e.global?(""===c(n[0])&&(t.lastIndex=M(r,u(t.lastIndex),e.unicode)),s(n,!1)):(e.done=!0,s(n,!1))})),C=function(e){var t,r,n,i=d(this),a=c(e),o=b(i,RegExp),s=c(m(i));return t=new o(o===RegExp?i.source:i,s),r=!!~P(s,"g"),n=!!~P(s,"u"),t.lastIndex=u(i.lastIndex),new Y(t,a,r,n)};n({target:"String",proto:!0,forced:I},{matchAll:function(e){var t,r,n,a,o=l(this);if(h(e)){if(I)return R(o,e)}else{if(p(e)&&(t=c(l(m(e))),!~P(t,"g")))throw O("`.matchAll` does not allow non-global regexes");if(I)return R(o,e);if(void 0===(n=g(e,S))&&L&&"RegExp"==f(e)&&(n=C),n)return i(n,e,o)}return r=c(o),a=new RegExp(e,"g"),L?i(C,a,r):a[S](r)}}),L||S in A||v(A,S,C)},35087:(e,t,r)=>{"use strict";var n=r(98004),i=r(36633),a=r(45511),o=r(98522),s=r(43310),l=r(82518),u=r(58401),c=r(74287),d=r(83829),h=r(18692);i("match",(function(e,t,r){return[function(t){var r=u(this),i=o(t)?void 0:c(t,e);return i?n(i,t,r):new RegExp(t)[e](l(r))},function(e){var n=a(this),i=l(e),o=r(t,n,i);if(o.done)return o.value;if(!n.global)return h(n,i);var u=n.unicode;n.lastIndex=0;for(var c,f=[],p=0;null!==(c=h(n,i));){var m=l(c[0]);f[p]=m,""===m&&(n.lastIndex=d(i,s(n.lastIndex),u)),p++}return 0===p?null:f}]}))},51326:(e,t,r)=>{"use strict";var n=r(98646),i=r(1274).end;n({target:"String",proto:!0,forced:r(40796)},{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},34476:(e,t,r)=>{"use strict";var n=r(98646),i=r(1274).start;n({target:"String",proto:!0,forced:r(40796)},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},567:(e,t,r)=>{var n=r(98646),i=r(47497),a=r(46603),o=r(46640),s=r(82518),l=r(19720),u=i([].push),c=i([].join);n({target:"String",stat:!0},{raw:function(e){var t=a(o(e).raw),r=l(t);if(!r)return"";for(var n=arguments.length,i=[],d=0;;){if(u(i,s(t[d++])),d===r)return c(i,"");d<n&&u(i,s(arguments[d]))}}})},62754:(e,t,r)=>{r(98646)({target:"String",proto:!0},{repeat:r(81968)})},82303:(e,t,r)=>{"use strict";var n=r(98646),i=r(98004),a=r(47497),o=r(58401),s=r(76599),l=r(98522),u=r(18609),c=r(82518),d=r(74287),h=r(17328),f=r(74979),p=r(90026),m=r(20781),g=p("replace"),v=TypeError,y=a("".indexOf),_=a("".replace),b=a("".slice),M=Math.max,w=function(e,t,r){return r>e.length?-1:""===t?r:y(e,t,r)};n({target:"String",proto:!0},{replaceAll:function(e,t){var r,n,a,p,T,L,S,k,x,E=o(this),D=0,A=0,O="";if(!l(e)){if((r=u(e))&&(n=c(o(h(e))),!~y(n,"g")))throw v("`.replaceAll` does not allow non-global regexes");if(a=d(e,g))return i(a,e,E,t);if(m&&r)return _(c(E),e,t)}for(p=c(E),T=c(e),(L=s(t))||(t=c(t)),S=T.length,k=M(1,S),D=w(p,T,0);-1!==D;)x=L?c(t(T,D,p)):f(T,p,D,[],void 0,t),O+=b(p,A,D)+x,A=D+S,D=w(p,T,D+k);return A<p.length&&(O+=b(p,A)),O}})},67071:(e,t,r)=>{"use strict";var n=r(49356),i=r(98004),a=r(47497),o=r(36633),s=r(38898),l=r(45511),u=r(76599),c=r(98522),d=r(59802),h=r(43310),f=r(82518),p=r(58401),m=r(83829),g=r(74287),v=r(74979),y=r(18692),_=r(90026)("replace"),b=Math.max,M=Math.min,w=a([].concat),T=a([].push),L=a("".indexOf),S=a("".slice),k="$0"==="a".replace(/./,"$0"),x=!!/./[_]&&""===/./[_]("a","$0");o("replace",(function(e,t,r){var a=x?"$":"$0";return[function(e,r){var n=p(this),a=c(e)?void 0:g(e,_);return a?i(a,e,n,r):i(t,f(n),e,r)},function(e,i){var o=l(this),s=f(e);if("string"==typeof i&&-1===L(i,a)&&-1===L(i,"$<")){var c=r(t,o,s,i);if(c.done)return c.value}var p=u(i);p||(i=f(i));var g=o.global;if(g){var _=o.unicode;o.lastIndex=0}for(var k=[];;){var x=y(o,s);if(null===x)break;if(T(k,x),!g)break;""===f(x[0])&&(o.lastIndex=m(s,h(o.lastIndex),_))}for(var E,D="",A=0,O=0;O<k.length;O++){for(var P=f((x=k[O])[0]),R=b(M(d(x.index),s.length),0),I=[],Y=1;Y<x.length;Y++)T(I,void 0===(E=x[Y])?E:String(E));var C=x.groups;if(p){var F=w([P],I,R,s);void 0!==C&&T(F,C);var N=f(n(i,void 0,F))}else N=v(P,s,R,I,C,i);R>=A&&(D+=S(s,A,R)+N,A=R+P.length)}return D+S(s,A)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!k||x)},70637:(e,t,r)=>{"use strict";var n=r(98004),i=r(36633),a=r(45511),o=r(98522),s=r(58401),l=r(20824),u=r(82518),c=r(74287),d=r(18692);i("search",(function(e,t,r){return[function(t){var r=s(this),i=o(t)?void 0:c(t,e);return i?n(i,t,r):new RegExp(t)[e](u(r))},function(e){var n=a(this),i=u(e),o=r(t,n,i);if(o.done)return o.value;var s=n.lastIndex;l(s,0)||(n.lastIndex=0);var c=d(n,i);return l(n.lastIndex,s)||(n.lastIndex=s),null===c?-1:c.index}]}))},38843:(e,t,r)=>{"use strict";var n=r(98646),i=r(13242);n({target:"String",proto:!0,forced:r(31373)("small")},{small:function(){return i(this,"small","","")}})},99102:(e,t,r)=>{"use strict";var n=r(49356),i=r(98004),a=r(47497),o=r(36633),s=r(45511),l=r(98522),u=r(18609),c=r(58401),d=r(73370),h=r(83829),f=r(43310),p=r(82518),m=r(74287),g=r(28022),v=r(18692),y=r(64226),_=r(4622),b=r(38898),M=_.UNSUPPORTED_Y,w=4294967295,T=Math.min,L=[].push,S=a(/./.exec),k=a(L),x=a("".slice);o("split",(function(e,t,r){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var a=p(c(this)),o=void 0===r?w:r>>>0;if(0===o)return[];if(void 0===e)return[a];if(!u(e))return i(t,a,e,o);for(var s,l,d,h=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,v=new RegExp(e.source,f+"g");(s=i(y,v,a))&&!((l=v.lastIndex)>m&&(k(h,x(a,m,s.index)),s.length>1&&s.index<a.length&&n(L,h,g(s,1)),d=s[0].length,m=l,h.length>=o));)v.lastIndex===s.index&&v.lastIndex++;return m===a.length?!d&&S(v,"")||k(h,""):k(h,x(a,m)),h.length>o?g(h,0,o):h}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:i(t,this,e,r)}:t,[function(t,r){var n=c(this),o=l(t)?void 0:m(t,e);return o?i(o,t,n,r):i(a,p(n),t,r)},function(e,n){var i=s(this),o=p(e),l=r(a,i,o,n,a!==t);if(l.done)return l.value;var u=d(i,RegExp),c=i.unicode,m=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(M?"g":"y"),g=new u(M?"^(?:"+i.source+")":i,m),y=void 0===n?w:n>>>0;if(0===y)return[];if(0===o.length)return null===v(g,o)?[o]:[];for(var _=0,b=0,L=[];b<o.length;){g.lastIndex=M?0:b;var S,E=v(g,M?x(o,b):o);if(null===E||(S=T(f(g.lastIndex+(M?b:0)),o.length))===_)b=h(o,b,c);else{if(k(L,x(o,_,b)),L.length===y)return L;for(var D=1;D<=E.length-1;D++)if(k(L,E[D]),L.length===y)return L;b=_=S}}return k(L,x(o,_)),L}]}),!!b((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),M)},66168:(e,t,r)=>{"use strict";var n,i=r(98646),a=r(22536),o=r(63276).f,s=r(43310),l=r(82518),u=r(36131),c=r(58401),d=r(35899),h=r(20781),f=a("".startsWith),p=a("".slice),m=Math.min,g=d("startsWith");i({target:"String",proto:!0,forced:!(!h&&!g&&(n=o(String.prototype,"startsWith"),n&&!n.writable)||g)},{startsWith:function(e){var t=l(c(this));u(e);var r=s(m(arguments.length>1?arguments[1]:void 0,t.length)),n=l(e);return f?f(t,n,r):p(t,r,r+n.length)===n}})},67828:(e,t,r)=>{"use strict";var n=r(98646),i=r(13242);n({target:"String",proto:!0,forced:r(31373)("strike")},{strike:function(){return i(this,"strike","","")}})},48130:(e,t,r)=>{"use strict";var n=r(98646),i=r(13242);n({target:"String",proto:!0,forced:r(31373)("sub")},{sub:function(){return i(this,"sub","","")}})},6369:(e,t,r)=>{"use strict";var n=r(98646),i=r(47497),a=r(58401),o=r(59802),s=r(82518),l=i("".slice),u=Math.max,c=Math.min;n({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(e,t){var r,n,i=s(a(this)),d=i.length,h=o(e);return h===1/0&&(h=0),h<0&&(h=u(d+h,0)),(r=void 0===t?d:o(t))<=0||r===1/0||h>=(n=c(h+r,d))?"":l(i,h,n)}})},41444:(e,t,r)=>{"use strict";var n=r(98646),i=r(13242);n({target:"String",proto:!0,forced:r(31373)("sup")},{sup:function(){return i(this,"sup","","")}})},81428:(e,t,r)=>{r(74389);var n=r(98646),i=r(84886);n({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==i},{trimEnd:i})},83449:(e,t,r)=>{var n=r(98646),i=r(30397);n({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==i},{trimLeft:i})},74389:(e,t,r)=>{var n=r(98646),i=r(84886);n({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==i},{trimRight:i})},40588:(e,t,r)=>{r(83449);var n=r(98646),i=r(30397);n({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==i},{trimStart:i})},92886:(e,t,r)=>{"use strict";var n=r(98646),i=r(93444).trim;n({target:"String",proto:!0,forced:r(85536)("trim")},{trim:function(){return i(this)}})},79384:(e,t,r)=>{r(53833)("asyncIterator")},7764:(e,t,r)=>{"use strict";var n=r(98646),i=r(80800),a=r(98004),o=r(47497),s=r(20781),l=r(60909),u=r(88322),c=r(38898),d=r(48613),h=r(29407),f=r(45511),p=r(46603),m=r(77369),g=r(82518),v=r(95398),y=r(79692),_=r(73555),b=r(2107),M=r(9677),w=r(52610),T=r(63276),L=r(56973),S=r(83110),k=r(68858),x=r(78993),E=r(29829),D=r(91544),A=r(20555),O=r(49386),P=r(90026),R=r(35223),I=r(53833),Y=r(42008),C=r(24198),F=r(44495),N=r(54292).forEach,j=D("hidden"),H="Symbol",B="prototype",U=F.set,W=F.getterFor(H),z=Object[B],G=i.Symbol,V=G&&G[B],K=i.TypeError,q=i.QObject,$=T.f,J=L.f,X=M.f,Q=k.f,Z=o([].push),ee=E("symbols"),te=E("op-symbols"),re=E("wks"),ne=!q||!q[B]||!q[B].findChild,ie=l&&c((function(){return 7!=y(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=$(z,t);n&&delete z[t],J(e,t,r),n&&e!==z&&J(z,t,n)}:J,ae=function(e,t){var r=ee[e]=y(V);return U(r,{type:H,tag:e,description:t}),l||(r.description=t),r},oe=function(e,t,r){e===z&&oe(te,t,r),f(e);var n=m(t);return f(r),d(ee,n)?(r.enumerable?(d(e,j)&&e[j][n]&&(e[j][n]=!1),r=y(r,{enumerable:v(0,!1)})):(d(e,j)||J(e,j,v(1,{})),e[j][n]=!0),ie(e,n,r)):J(e,n,r)},se=function(e,t){f(e);var r=p(t),n=_(r).concat(de(r));return N(n,(function(t){l&&!a(le,r,t)||oe(e,t,r[t])})),e},le=function(e){var t=m(e),r=a(Q,this,t);return!(this===z&&d(ee,t)&&!d(te,t))&&(!(r||!d(this,t)||!d(ee,t)||d(this,j)&&this[j][t])||r)},ue=function(e,t){var r=p(e),n=m(t);if(r!==z||!d(ee,n)||d(te,n)){var i=$(r,n);return!i||!d(ee,n)||d(r,j)&&r[j][n]||(i.enumerable=!0),i}},ce=function(e){var t=X(p(e)),r=[];return N(t,(function(e){d(ee,e)||d(A,e)||Z(r,e)})),r},de=function(e){var t=e===z,r=X(t?te:p(e)),n=[];return N(r,(function(e){!d(ee,e)||t&&!d(z,e)||Z(n,ee[e])})),n};u||(x(V=(G=function(){if(h(V,this))throw K("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=O(e),r=function(e){this===z&&a(r,te,e),d(this,j)&&d(this[j],t)&&(this[j][t]=!1),ie(this,t,v(1,e))};return l&&ne&&ie(z,t,{configurable:!0,set:r}),ae(t,e)})[B],"toString",(function(){return W(this).tag})),x(G,"withoutSetter",(function(e){return ae(O(e),e)})),k.f=le,L.f=oe,S.f=se,T.f=ue,b.f=M.f=ce,w.f=de,R.f=function(e){return ae(P(e),e)},l&&(J(V,"description",{configurable:!0,get:function(){return W(this).description}}),s||x(z,"propertyIsEnumerable",le,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:G}),N(_(re),(function(e){I(e)})),n({target:H,stat:!0,forced:!u},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(e,t){return void 0===t?y(e):se(y(e),t)},defineProperty:oe,defineProperties:se,getOwnPropertyDescriptor:ue}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ce}),Y(),C(G,H),A[j]=!0},94199:(e,t,r)=>{"use strict";var n=r(98646),i=r(60909),a=r(80800),o=r(47497),s=r(48613),l=r(76599),u=r(29407),c=r(82518),d=r(56973).f,h=r(34327),f=a.Symbol,p=f&&f.prototype;if(i&&l(f)&&(!("description"in p)||void 0!==f().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(p,this)?new f(e):void 0===e?f():f(e);return""===e&&(m[t]=!0),t};h(g,f),g.prototype=p,p.constructor=g;var v="Symbol(test)"==String(f("test")),y=o(p.valueOf),_=o(p.toString),b=/^Symbol\((.*)\)[^)]+$/,M=o("".replace),w=o("".slice);d(p,"description",{configurable:!0,get:function(){var e=y(this);if(s(m,e))return"";var t=_(e),r=v?w(t,7,-1):M(t,b,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:g})}},89013:(e,t,r)=>{var n=r(98646),i=r(14817),a=r(48613),o=r(82518),s=r(29829),l=r(85732),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=o(e);if(a(u,t))return u[t];var r=i("Symbol")(t);return u[t]=r,c[r]=t,r}})},99357:(e,t,r)=>{r(53833)("hasInstance")},65323:(e,t,r)=>{r(53833)("isConcatSpreadable")},78459:(e,t,r)=>{r(53833)("iterator")},39496:(e,t,r)=>{r(7764),r(89013),r(98171),r(82833),r(99822)},98171:(e,t,r)=>{var n=r(98646),i=r(48613),a=r(29611),o=r(92756),s=r(29829),l=r(85732),u=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!a(e))throw TypeError(o(e)+" is not a symbol");if(i(u,e))return u[e]}})},28349:(e,t,r)=>{r(53833)("matchAll")},78154:(e,t,r)=>{r(53833)("match")},38856:(e,t,r)=>{r(53833)("replace")},65749:(e,t,r)=>{r(53833)("search")},9707:(e,t,r)=>{r(53833)("species")},32137:(e,t,r)=>{r(53833)("split")},94682:(e,t,r)=>{var n=r(53833),i=r(42008);n("toPrimitive"),i()},44225:(e,t,r)=>{var n=r(14817),i=r(53833),a=r(24198);i("toStringTag"),a(n("Symbol"),"Symbol")},47527:(e,t,r)=>{r(53833)("unscopables")},43839:(e,t,r)=>{"use strict";var n=r(7353),i=r(19720),a=r(59802),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("at",(function(e){var t=o(this),r=i(t),n=a(e),s=n>=0?n:r+n;return s<0||s>=r?void 0:t[s]}))},7782:(e,t,r)=>{"use strict";var n=r(47497),i=r(7353),a=n(r(31482)),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(e,t){return a(o(this),e,t,arguments.length>2?arguments[2]:void 0)}))},28009:(e,t,r)=>{"use strict";var n=r(7353),i=r(54292).every,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},56757:(e,t,r)=>{"use strict";var n=r(7353),i=r(64230),a=r(99750),o=r(2796),s=r(98004),l=r(47497),u=r(38898),c=n.aTypedArray,d=n.exportTypedArrayMethod,h=l("".slice);d("fill",(function(e){var t=arguments.length;c(this);var r="Big"===h(o(this),0,3)?a(e):+e;return s(i,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),u((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},52110:(e,t,r)=>{"use strict";var n=r(7353),i=r(54292).filter,a=r(23445),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",(function(e){var t=i(o(this),e,arguments.length>1?arguments[1]:void 0);return a(this,t)}))},42220:(e,t,r)=>{"use strict";var n=r(7353),i=r(54292).findIndex,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},14740:(e,t,r)=>{"use strict";var n=r(7353),i=r(86060).findLastIndex,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLastIndex",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},54363:(e,t,r)=>{"use strict";var n=r(7353),i=r(86060).findLast,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLast",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},75721:(e,t,r)=>{"use strict";var n=r(7353),i=r(54292).find,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},47247:(e,t,r)=>{r(52087)("Float32",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},6173:(e,t,r)=>{r(52087)("Float64",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},83543:(e,t,r)=>{"use strict";var n=r(7353),i=r(54292).forEach,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(e){i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},18037:(e,t,r)=>{"use strict";var n=r(43489);(0,r(7353).exportTypedArrayStaticMethod)("from",r(15159),n)},33030:(e,t,r)=>{"use strict";var n=r(7353),i=r(67830).includes,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},32127:(e,t,r)=>{"use strict";var n=r(7353),i=r(67830).indexOf,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},57268:(e,t,r)=>{r(52087)("Int16",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},47422:(e,t,r)=>{r(52087)("Int32",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},63815:(e,t,r)=>{r(52087)("Int8",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},13125:(e,t,r)=>{"use strict";var n=r(80800),i=r(38898),a=r(47497),o=r(7353),s=r(2357),l=r(90026)("iterator"),u=n.Uint8Array,c=a(s.values),d=a(s.keys),h=a(s.entries),f=o.aTypedArray,p=o.exportTypedArrayMethod,m=u&&u.prototype,g=!i((function(){m[l].call([1])})),v=!!m&&m.values&&m[l]===m.values&&"values"===m.values.name,y=function(){return c(f(this))};p("entries",(function(){return h(f(this))}),g),p("keys",(function(){return d(f(this))}),g),p("values",y,g||!v,{name:"values"}),p(l,y,g||!v,{name:"values"})},29096:(e,t,r)=>{"use strict";var n=r(7353),i=r(47497),a=n.aTypedArray,o=n.exportTypedArrayMethod,s=i([].join);o("join",(function(e){return s(a(this),e)}))},91662:(e,t,r)=>{"use strict";var n=r(7353),i=r(49356),a=r(3931),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return i(a,o(this),t>1?[e,arguments[1]]:[e])}))},72576:(e,t,r)=>{"use strict";var n=r(7353),i=r(54292).map,a=r(50056),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("map",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(a(e))(t)}))}))},97534:(e,t,r)=>{"use strict";var n=r(7353),i=r(43489),a=n.aTypedArrayConstructor;(0,n.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,r=new(a(this))(t);t>e;)r[e]=arguments[e++];return r}),i)},20402:(e,t,r)=>{"use strict";var n=r(7353),i=r(63741).right,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return i(a(this),e,t,t>1?arguments[1]:void 0)}))},77435:(e,t,r)=>{"use strict";var n=r(7353),i=r(63741).left,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return i(a(this),e,t,t>1?arguments[1]:void 0)}))},14656:(e,t,r)=>{"use strict";var n=r(7353),i=n.aTypedArray,a=n.exportTypedArrayMethod,o=Math.floor;a("reverse",(function(){for(var e,t=this,r=i(t).length,n=o(r/2),a=0;a<n;)e=t[a],t[a++]=t[--r],t[r]=e;return t}))},89344:(e,t,r)=>{"use strict";var n=r(80800),i=r(98004),a=r(7353),o=r(19720),s=r(15009),l=r(46640),u=r(38898),c=n.RangeError,d=n.Int8Array,h=d&&d.prototype,f=h&&h.set,p=a.aTypedArray,m=a.exportTypedArrayMethod,g=!u((function(){var e=new Uint8ClampedArray(2);return i(f,e,{length:1,0:3},1),3!==e[1]})),v=g&&a.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));m("set",(function(e){p(this);var t=s(arguments.length>1?arguments[1]:void 0,1),r=l(e);if(g)return i(f,this,r,t);var n=this.length,a=o(r),u=0;if(a+t>n)throw c("Wrong length");for(;u<a;)this[t+u]=r[u++]}),!g||v)},44852:(e,t,r)=>{"use strict";var n=r(7353),i=r(50056),a=r(38898),o=r(87097),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("slice",(function(e,t){for(var r=o(s(this),e,t),n=i(this),a=0,l=r.length,u=new n(l);l>a;)u[a]=r[a++];return u}),a((function(){new Int8Array(1).slice()})))},1217:(e,t,r)=>{"use strict";var n=r(7353),i=r(54292).some,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},2555:(e,t,r)=>{"use strict";var n=r(80800),i=r(22536),a=r(38898),o=r(74435),s=r(34027),l=r(7353),u=r(38964),c=r(29423),d=r(87903),h=r(69870),f=l.aTypedArray,p=l.exportTypedArrayMethod,m=n.Uint16Array,g=m&&i(m.prototype.sort),v=!(!g||a((function(){g(new m(2),null)}))&&a((function(){g(new m(2),{})}))),y=!!g&&!a((function(){if(d)return d<74;if(u)return u<67;if(c)return!0;if(h)return h<602;var e,t,r=new m(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(g(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0}));p("sort",(function(e){return void 0!==e&&o(e),y?g(this,e):s(f(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!y||v)},3903:(e,t,r)=>{"use strict";var n=r(7353),i=r(43310),a=r(39211),o=r(50056),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",(function(e,t){var r=s(this),n=r.length,l=a(e,n);return new(o(r))(r.buffer,r.byteOffset+l*r.BYTES_PER_ELEMENT,i((void 0===t?n:a(t,n))-l))}))},96294:(e,t,r)=>{"use strict";var n=r(80800),i=r(49356),a=r(7353),o=r(38898),s=r(87097),l=n.Int8Array,u=a.aTypedArray,c=a.exportTypedArrayMethod,d=[].toLocaleString,h=!!l&&o((function(){d.call(new l(1))}));c("toLocaleString",(function(){return i(d,h?s(u(this)):u(this),s(arguments))}),o((function(){return[1,2].toLocaleString()!=new l([1,2]).toLocaleString()}))||!o((function(){l.prototype.toLocaleString.call([1,2])})))},25903:(e,t,r)=>{"use strict";var n=r(7353).exportTypedArrayMethod,i=r(38898),a=r(80800),o=r(47497),s=a.Uint8Array,l=s&&s.prototype||{},u=[].toString,c=o([].join);i((function(){u.call({})}))&&(u=function(){return c(this)});var d=l.toString!=u;n("toString",u,d)},86657:(e,t,r)=>{r(52087)("Uint16",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},22459:(e,t,r)=>{r(52087)("Uint32",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},20764:(e,t,r)=>{r(52087)("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},42759:(e,t,r)=>{r(52087)("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}),!0)},6269:(e,t,r)=>{"use strict";var n=r(98646),i=r(47497),a=r(82518),o=String.fromCharCode,s=i("".charAt),l=i(/./.exec),u=i("".slice),c=/^[\da-f]{2}$/i,d=/^[\da-f]{4}$/i;n({global:!0},{unescape:function(e){for(var t,r,n=a(e),i="",h=n.length,f=0;f<h;){if("%"===(t=s(n,f++)))if("u"===s(n,f)){if(r=u(n,f+1,f+5),l(d,r)){i+=o(parseInt(r,16)),f+=5;continue}}else if(r=u(n,f,f+2),l(c,r)){i+=o(parseInt(r,16)),f+=2;continue}i+=t}return i}})},56897:(e,t,r)=>{"use strict";var n,i=r(29025),a=r(80800),o=r(47497),s=r(10325),l=r(82194),u=r(39216),c=r(76538),d=r(91043),h=r(44495).enforce,f=r(38898),p=r(13282),m=Object,g=Array.isArray,v=m.isExtensible,y=m.isFrozen,_=m.isSealed,b=m.freeze,M=m.seal,w={},T={},L=!a.ActiveXObject&&"ActiveXObject"in a,S=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},k=u("WeakMap",S,c),x=k.prototype,E=o(x.set);if(p)if(L){n=c.getConstructor(S,"WeakMap",!0),l.enable();var D=o(x.delete),A=o(x.has),O=o(x.get);s(x,{delete:function(e){if(d(e)&&!v(e)){var t=h(this);return t.frozen||(t.frozen=new n),D(this,e)||t.frozen.delete(e)}return D(this,e)},has:function(e){if(d(e)&&!v(e)){var t=h(this);return t.frozen||(t.frozen=new n),A(this,e)||t.frozen.has(e)}return A(this,e)},get:function(e){if(d(e)&&!v(e)){var t=h(this);return t.frozen||(t.frozen=new n),A(this,e)?O(this,e):t.frozen.get(e)}return O(this,e)},set:function(e,t){if(d(e)&&!v(e)){var r=h(this);r.frozen||(r.frozen=new n),A(this,e)?E(this,e,t):r.frozen.set(e,t)}else E(this,e,t);return this}})}else i&&f((function(){var e=b([]);return E(new k,e,1),!y(e)}))&&s(x,{set:function(e,t){var r;return g(e)&&(y(e)?r=w:_(e)&&(r=T)),E(this,e,t),r==w&&b(e),r==T&&M(e),this}})},31962:(e,t,r)=>{r(56897)},29418:(e,t,r)=>{"use strict";r(39216)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(76538))},65854:(e,t,r)=>{r(29418)},79642:(e,t,r)=>{var n=r(98646),i=r(80800),a=r(14817),o=r(47497),s=r(98004),l=r(38898),u=r(82518),c=r(48613),d=r(67539),h=r(77003).ctoi,f=/[^\d+/a-z]/i,p=/[\t\n\f\r ]+/g,m=/[=]+$/,g=a("atob"),v=String.fromCharCode,y=o("".charAt),_=o("".replace),b=o(f.exec),M=l((function(){return""!==g(" ")})),w=!l((function(){g("a")})),T=!M&&!w&&!l((function(){g()})),L=!M&&!w&&1!==g.length;n({global:!0,bind:!0,enumerable:!0,forced:M||w||T||L},{atob:function(e){if(d(arguments.length,1),T||L)return s(g,i,e);var t,r,n=_(u(e),p,""),o="",l=0,M=0;if(n.length%4==0&&(n=_(n,m,"")),n.length%4==1||b(f,n))throw new(a("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;t=y(n,l++);)c(h,t)&&(r=M%4?64*r+h[t]:h[t],M++%4&&(o+=v(255&r>>(-2*M&6))));return o}})},13568:(e,t,r)=>{var n=r(98646),i=r(80800),a=r(14817),o=r(47497),s=r(98004),l=r(38898),u=r(82518),c=r(67539),d=r(77003).itoc,h=a("btoa"),f=o("".charAt),p=o("".charCodeAt),m=!!h&&!l((function(){h()})),g=!!h&&l((function(){return"bnVsbA=="!==h(null)})),v=!!h&&1!==h.length;n({global:!0,bind:!0,enumerable:!0,forced:m||g||v},{btoa:function(e){if(c(arguments.length,1),m||g||v)return s(h,i,u(e));for(var t,r,n=u(e),o="",l=0,y=d;f(n,l)||(y="=",l%1);){if((r=p(n,l+=3/4))>255)throw new(a("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");o+=f(y,63&(t=t<<8|r)>>8-l%1*8)}return o}})},54449:(e,t,r)=>{var n=r(98646),i=r(80800),a=r(55767).clear;n({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==a},{clearImmediate:a})},74243:(e,t,r)=>{var n=r(80800),i=r(40742),a=r(77395),o=r(824),s=r(19382),l=function(e){if(e&&e.forEach!==o)try{s(e,"forEach",o)}catch(t){e.forEach=o}};for(var u in i)i[u]&&l(n[u]&&n[u].prototype);l(a)},41582:(e,t,r)=>{var n=r(80800),i=r(40742),a=r(77395),o=r(2357),s=r(19382),l=r(90026),u=l("iterator"),c=l("toStringTag"),d=o.values,h=function(e,t){if(e){if(e[u]!==d)try{s(e,u,d)}catch(t){e[u]=d}if(e[c]||s(e,c,t),i[t])for(var r in o)if(e[r]!==o[r])try{s(e,r,o[r])}catch(t){e[r]=o[r]}}};for(var f in i)h(n[f]&&n[f].prototype,f);h(a,"DOMTokenList")},43619:(e,t,r)=>{"use strict";var n=r(98646),i=r(15946),a=r(14817),o=r(38898),s=r(79692),l=r(95398),u=r(56973).f,c=r(78993),d=r(10159),h=r(48613),f=r(96345),p=r(45511),m=r(50668),g=r(24506),v=r(86940),y=r(86179),_=r(44495),b=r(60909),M=r(20781),w="DOMException",T="DATA_CLONE_ERR",L=a("Error"),S=a(w)||function(){try{(new(a("MessageChannel")||i("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if(e.name==T&&25==e.code)return e.constructor}}(),k=S&&S.prototype,x=L.prototype,E=_.set,D=_.getterFor(w),A="stack"in L(w),O=function(e){return h(v,e)&&v[e].m?v[e].c:0},P=function(){f(this,R);var e=arguments.length,t=g(e<1?void 0:arguments[0]),r=g(e<2?void 0:arguments[1],"Error"),n=O(r);if(E(this,{type:w,name:r,message:t,code:n}),b||(this.name=r,this.message=t,this.code=n),A){var i=L(t);i.name=w,u(this,"stack",l(1,y(i.stack,1)))}},R=P.prototype=s(x),I=function(e){return{enumerable:!0,configurable:!0,get:e}},Y=function(e){return I((function(){return D(this)[e]}))};b&&(d(R,"code",Y("code")),d(R,"message",Y("message")),d(R,"name",Y("name"))),u(R,"constructor",l(1,P));var C=o((function(){return!(new S instanceof L)})),F=C||o((function(){return x.toString!==m||"2: 1"!==String(new S(1,2))})),N=C||o((function(){return 25!==new S(1,"DataCloneError").code})),j=C||25!==S[T]||25!==k[T],H=M?F||N||j:C;n({global:!0,constructor:!0,forced:H},{DOMException:H?P:S});var B=a(w),U=B.prototype;for(var W in F&&(M||S===B)&&c(U,"toString",m),N&&b&&S===B&&d(U,"code",I((function(){return O(p(this).name)}))),v)if(h(v,W)){var z=v[W],G=z.s,V=l(6,z.c);h(B,G)||u(B,G,V),h(U,G)||u(U,G,V)}},58319:(e,t,r)=>{"use strict";var n=r(98646),i=r(80800),a=r(14817),o=r(95398),s=r(56973).f,l=r(48613),u=r(96345),c=r(38754),d=r(24506),h=r(86940),f=r(86179),p=r(60909),m=r(20781),g="DOMException",v=a("Error"),y=a(g),_=function(){u(this,b);var e=arguments.length,t=d(e<1?void 0:arguments[0]),r=d(e<2?void 0:arguments[1],"Error"),n=new y(t,r),i=v(t);return i.name=g,s(n,"stack",o(1,f(i.stack,1))),c(n,this,_),n},b=_.prototype=y.prototype,M="stack"in v(g),w="stack"in new y(1,2),T=y&&p&&Object.getOwnPropertyDescriptor(i,g),L=!(!T||T.writable&&T.configurable),S=M&&!L&&!w;n({global:!0,constructor:!0,forced:m||S},{DOMException:S?_:y});var k=a(g),x=k.prototype;if(x.constructor!==k)for(var E in m||s(x,"constructor",o(1,k)),h)if(l(h,E)){var D=h[E],A=D.s;l(k,A)||s(k,A,o(6,D.c))}},71228:(e,t,r)=>{var n=r(14817),i="DOMException";r(24198)(n(i),i)},85287:(e,t,r)=>{r(54449),r(59067)},83898:(e,t,r)=>{var n=r(98646),i=r(80800),a=r(89332),o=r(74435),s=r(67539),l=r(29040),u=i.process;n({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(e){s(arguments.length,1),o(e);var t=l&&u.domain;a(t?t.bind(e):e)}})},70454:(e,t,r)=>{"use strict";var n=r(98646),i=r(80800),a=r(10159),o=r(60909),s=TypeError,l=Object.defineProperty,u=i.self!==i;try{if(o){var c=Object.getOwnPropertyDescriptor(i,"self");!u&&c&&c.get&&c.enumerable||a(i,"self",{get:function(){return i},set:function(e){if(this!==i)throw s("Illegal invocation");l(i,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else n({global:!0,simple:!0,forced:u},{self:i})}catch(e){}},59067:(e,t,r)=>{var n=r(98646),i=r(80800),a=r(55767).set,o=r(97739),s=i.setImmediate?o(a,!1):a;n({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==s},{setImmediate:s})},63547:(e,t,r)=>{var n=r(98646),i=r(80800),a=r(97739)(i.setInterval,!0);n({global:!0,bind:!0,forced:i.setInterval!==a},{setInterval:a})},83972:(e,t,r)=>{var n=r(98646),i=r(80800),a=r(97739)(i.setTimeout,!0);n({global:!0,bind:!0,forced:i.setTimeout!==a},{setTimeout:a})},37124:(e,t,r)=>{var n,i=r(20781),a=r(98646),o=r(80800),s=r(14817),l=r(47497),u=r(38898),c=r(49386),d=r(76599),h=r(60898),f=r(98522),p=r(91043),m=r(29611),g=r(72842),v=r(45511),y=r(2796),_=r(48613),b=r(23500),M=r(19382),w=r(19720),T=r(67539),L=r(17328),S=r(29760),k=r(49146),x=r(67610),E=r(87903),D=r(59826),A=r(26803),O=r(29040),P=o.Object,R=o.Array,I=o.Date,Y=o.Error,C=o.EvalError,F=o.RangeError,N=o.ReferenceError,j=o.SyntaxError,H=o.TypeError,B=o.URIError,U=o.PerformanceMark,W=o.WebAssembly,z=W&&W.CompileError||Y,G=W&&W.LinkError||Y,V=W&&W.RuntimeError||Y,K=s("DOMException"),q=S.Map,$=S.has,J=S.get,X=S.set,Q=k.Set,Z=k.add,ee=s("Object","keys"),te=l([].push),re=l((!0).valueOf),ne=l(1..valueOf),ie=l("".valueOf),ae=l(I.prototype.getTime),oe=c("structuredClone"),se="DataCloneError",le="Transferring",ue=function(e){return!u((function(){var t=new o.Set([7]),r=e(t),n=e(P(7));return r==t||!r.has(7)||"object"!=typeof n||7!=n}))&&e},ce=function(e,t){return!u((function(){var r=new t,n=e({a:r,b:r});return!(n&&n.a===n.b&&n.a instanceof t&&n.a.stack===r.stack)}))},de=o.structuredClone,he=i||!ce(de,Y)||!ce(de,K)||(n=de,!!u((function(){var e=n(new o.AggregateError([1],oe,{cause:3}));return"AggregateError"!=e.name||1!=e.errors[0]||e.message!=oe||3!=e.cause}))),fe=!de&&ue((function(e){return new U(oe,{detail:e}).detail})),pe=ue(de)||fe,me=function(e){throw new K("Uncloneable type: "+e,se)},ge=function(e,t){throw new K((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",se)},ve=function(e,t){if(m(e)&&me("Symbol"),!p(e))return e;if(t){if($(t,e))return J(t,e)}else t=new q;var r,n,i,a,l,u,c,h,f,g,v=y(e),T=!1;switch(v){case"Array":i=R(w(e)),T=!0;break;case"Object":i={},T=!0;break;case"Map":i=new q,T=!0;break;case"Set":i=new Q,T=!0;break;case"RegExp":i=new RegExp(e.source,L(e));break;case"Error":switch(n=e.name){case"AggregateError":i=s("AggregateError")([]);break;case"EvalError":i=C();break;case"RangeError":i=F();break;case"ReferenceError":i=N();break;case"SyntaxError":i=j();break;case"TypeError":i=H();break;case"URIError":i=B();break;case"CompileError":i=z();break;case"LinkError":i=G();break;case"RuntimeError":i=V();break;default:i=Y()}T=!0;break;case"DOMException":i=new K(e.message,e.name),T=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":r=o[v],p(r)||ge(v),i=new r(ve(e.buffer,t),e.byteOffset,"DataView"===v?e.byteLength:e.length);break;case"DOMQuad":try{i=new DOMQuad(ve(e.p1,t),ve(e.p2,t),ve(e.p3,t),ve(e.p4,t))}catch(t){pe?i=pe(e):ge(v)}break;case"FileList":if(a=function(){var e;try{e=new o.DataTransfer}catch(t){try{e=new o.ClipboardEvent("").clipboardData}catch(e){}}return e&&e.items&&e.files?e:null}()){for(l=0,u=w(e);l<u;l++)a.items.add(ve(e[l],t));i=a.files}else pe?i=pe(e):ge(v);break;case"ImageData":try{i=new ImageData(ve(e.data,t),e.width,e.height,{colorSpace:e.colorSpace})}catch(t){pe?i=pe(e):ge(v)}break;default:if(pe)i=pe(e);else switch(v){case"BigInt":i=P(e.valueOf());break;case"Boolean":i=P(re(e));break;case"Number":i=P(ne(e));break;case"String":i=P(ie(e));break;case"Date":i=new I(ae(e));break;case"ArrayBuffer":(r=o.DataView)||"function"==typeof e.slice||ge(v);try{if("function"==typeof e.slice)i=e.slice(0);else for(u=e.byteLength,i=new ArrayBuffer(u),f=new r(e),g=new r(i),l=0;l<u;l++)g.setUint8(l,f.getUint8(l))}catch(e){throw new K("ArrayBuffer is detached",se)}break;case"SharedArrayBuffer":i=e;break;case"Blob":try{i=e.slice(0,e.size,e.type)}catch(e){ge(v)}break;case"DOMPoint":case"DOMPointReadOnly":r=o[v];try{i=r.fromPoint?r.fromPoint(e):new r(e.x,e.y,e.z,e.w)}catch(e){ge(v)}break;case"DOMRect":case"DOMRectReadOnly":r=o[v];try{i=r.fromRect?r.fromRect(e):new r(e.x,e.y,e.width,e.height)}catch(e){ge(v)}break;case"DOMMatrix":case"DOMMatrixReadOnly":r=o[v];try{i=r.fromMatrix?r.fromMatrix(e):new r(e)}catch(e){ge(v)}break;case"AudioData":case"VideoFrame":d(e.clone)||ge(v);try{i=e.clone()}catch(e){me(v)}break;case"File":try{i=new File([e],e.name,e)}catch(e){ge(v)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":ge(v);default:me(v)}}if(X(t,e,i),T)switch(v){case"Array":case"Object":for(c=ee(e),l=0,u=w(c);l<u;l++)h=c[l],b(i,h,ve(e[h],t));break;case"Map":e.forEach((function(e,r){X(i,ve(r,t),ve(e,t))}));break;case"Set":e.forEach((function(e){Z(i,ve(e,t))}));break;case"Error":M(i,"message",ve(e.message,t)),_(e,"cause")&&M(i,"cause",ve(e.cause,t)),"AggregateError"==n&&(i.errors=ve(e.errors,t));case"DOMException":x&&M(i,"stack",ve(e.stack,t))}return i},ye=de&&!u((function(){if(A&&E>92||O&&E>94||D&&E>97)return!1;var e=new ArrayBuffer(8),t=de(e,{transfer:[e]});return 0!=e.byteLength||8!=t.byteLength})),_e=function(e,t){if(!p(e))throw H("Transfer option cannot be converted to a sequence");var r=[];g(e,(function(e){te(r,v(e))}));var n,i,a,s,l,u,c=0,f=w(r);if(ye)for(s=de(r,{transfer:r});c<f;)X(t,r[c],s[c++]);else for(;c<f;){if(n=r[c++],$(t,n))throw new K("Duplicate transferable",se);switch(i=y(n)){case"ImageBitmap":a=o.OffscreenCanvas,h(a)||ge(i,le);try{(u=new a(n.width,n.height)).getContext("bitmaprenderer").transferFromImageBitmap(n),l=u.transferToImageBitmap()}catch(e){}break;case"AudioData":case"VideoFrame":d(n.clone)&&d(n.close)||ge(i,le);try{l=n.clone(),n.close()}catch(e){}break;case"ArrayBuffer":case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":ge(i,le)}if(void 0===l)throw new K("This object cannot be transferred: "+i,se);X(t,n,l)}};a({global:!0,enumerable:!0,sham:!ye,forced:he},{structuredClone:function(e){var t,r=T(arguments.length,1)>1&&!f(arguments[1])?v(arguments[1]):void 0,n=r?r.transfer:void 0;return void 0!==n&&(t=new q,_e(n,t)),ve(e,t)}})},41144:(e,t,r)=>{r(63547),r(83972)},69213:(e,t,r)=>{"use strict";r(2357);var n=r(98646),i=r(80800),a=r(98004),o=r(47497),s=r(60909),l=r(1380),u=r(78993),c=r(10325),d=r(24198),h=r(48298),f=r(44495),p=r(96345),m=r(76599),g=r(48613),v=r(66365),y=r(2796),_=r(45511),b=r(91043),M=r(82518),w=r(79692),T=r(95398),L=r(38816),S=r(33706),k=r(67539),x=r(90026),E=r(34027),D=x("iterator"),A="URLSearchParams",O=A+"Iterator",P=f.set,R=f.getterFor(A),I=f.getterFor(O),Y=Object.getOwnPropertyDescriptor,C=function(e){if(!s)return i[e];var t=Y(i,e);return t&&t.value},F=C("fetch"),N=C("Request"),j=C("Headers"),H=N&&N.prototype,B=j&&j.prototype,U=i.RegExp,W=i.TypeError,z=i.decodeURIComponent,G=i.encodeURIComponent,V=o("".charAt),K=o([].join),q=o([].push),$=o("".replace),J=o([].shift),X=o([].splice),Q=o("".split),Z=o("".slice),ee=/\+/g,te=Array(4),re=function(e){return te[e-1]||(te[e-1]=U("((?:%[\\da-f]{2}){"+e+"})","gi"))},ne=function(e){try{return z(e)}catch(t){return e}},ie=function(e){var t=$(e,ee," "),r=4;try{return z(t)}catch(e){for(;r;)t=$(t,re(r--),ne);return t}},ae=/[!'()~]|%20/g,oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},se=function(e){return oe[e]},le=function(e){return $(G(e),ae,se)},ue=h((function(e,t){P(this,{type:O,iterator:L(R(e).entries),kind:t})}),"Iterator",(function(){var e=I(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),ce=function(e){this.entries=[],this.url=null,void 0!==e&&(b(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===V(e,0)?Z(e,1):e:M(e)))};ce.prototype={type:A,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,s,l,u=S(e);if(u)for(r=(t=L(e,u)).next;!(n=a(r,t)).done;){if(o=(i=L(_(n.value))).next,(s=a(o,i)).done||(l=a(o,i)).done||!a(o,i).done)throw W("Expected sequence with length 2");q(this.entries,{key:M(s.value),value:M(l.value)})}else for(var c in e)g(e,c)&&q(this.entries,{key:c,value:M(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=Q(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=Q(t,"="),q(this.entries,{key:ie(J(r)),value:ie(K(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],q(r,le(e.key)+"="+le(e.value));return K(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var de=function(){p(this,he);var e=arguments.length>0?arguments[0]:void 0;P(this,new ce(e))},he=de.prototype;if(c(he,{append:function(e,t){k(arguments.length,2);var r=R(this);q(r.entries,{key:M(e),value:M(t)}),r.updateURL()},delete:function(e){k(arguments.length,1);for(var t=R(this),r=t.entries,n=M(e),i=0;i<r.length;)r[i].key===n?X(r,i,1):i++;t.updateURL()},get:function(e){k(arguments.length,1);for(var t=R(this).entries,r=M(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){k(arguments.length,1);for(var t=R(this).entries,r=M(e),n=[],i=0;i<t.length;i++)t[i].key===r&&q(n,t[i].value);return n},has:function(e){k(arguments.length,1);for(var t=R(this).entries,r=M(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){k(arguments.length,1);for(var r,n=R(this),i=n.entries,a=!1,o=M(e),s=M(t),l=0;l<i.length;l++)(r=i[l]).key===o&&(a?X(i,l--,1):(a=!0,r.value=s));a||q(i,{key:o,value:s}),n.updateURL()},sort:function(){var e=R(this);E(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=R(this).entries,n=v(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new ue(this,"keys")},values:function(){return new ue(this,"values")},entries:function(){return new ue(this,"entries")}},{enumerable:!0}),u(he,D,he.entries,{name:"entries"}),u(he,"toString",(function(){return R(this).serialize()}),{enumerable:!0}),d(de,A),n({global:!0,constructor:!0,forced:!l},{URLSearchParams:de}),!l&&m(j)){var fe=o(B.has),pe=o(B.set),me=function(e){if(b(e)){var t,r=e.body;if(y(r)===A)return t=e.headers?new j(e.headers):new j,fe(t,"content-type")||pe(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),w(e,{body:T(0,M(r)),headers:T(0,t)})}return e};if(m(F)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return F(e,arguments.length>1?me(arguments[1]):{})}}),m(N)){var ge=function(e){return p(this,H),new N(e,arguments.length>1?me(arguments[1]):{})};H.constructor=ge,ge.prototype=H,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ge})}}e.exports={URLSearchParams:de,getState:R}},88328:(e,t,r)=>{r(69213)},95728:(e,t,r)=>{"use strict";r(71794);var n,i=r(98646),a=r(60909),o=r(1380),s=r(80800),l=r(66365),u=r(47497),c=r(78993),d=r(10159),h=r(96345),f=r(48613),p=r(7738),m=r(72353),g=r(28022),v=r(68214).codeAt,y=r(30629),_=r(82518),b=r(24198),M=r(67539),w=r(69213),T=r(44495),L=T.set,S=T.getterFor("URL"),k=w.URLSearchParams,x=w.getState,E=s.URL,D=s.TypeError,A=s.parseInt,O=Math.floor,P=Math.pow,R=u("".charAt),I=u(/./.exec),Y=u([].join),C=u(1..toString),F=u([].pop),N=u([].push),j=u("".replace),H=u([].shift),B=u("".split),U=u("".slice),W=u("".toLowerCase),z=u([].unshift),G="Invalid scheme",V="Invalid host",K="Invalid port",q=/[a-z]/i,$=/[\d+-.a-z]/i,J=/\d/,X=/^0x/i,Q=/^[0-7]+$/,Z=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ne=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,ie=/[\t\n\r]/g,ae=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)z(t,e%256),e=O(e/256);return Y(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,a=0;a<8;a++)0!==e[a]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=a),++i);return i>r&&(t=n,r=i),t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=C(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},oe={},se=p({},oe,{" ":1,'"':1,"<":1,">":1,"`":1}),le=p({},se,{"#":1,"?":1,"{":1,"}":1}),ue=p({},le,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ce=function(e,t){var r=v(e,0);return r>32&&r<127&&!f(t,e)?e:encodeURIComponent(e)},de={ftp:21,file:null,http:80,https:443,ws:80,wss:443},he=function(e,t){var r;return 2==e.length&&I(q,R(e,0))&&(":"==(r=R(e,1))||!t&&"|"==r)},fe=function(e){var t;return e.length>1&&he(U(e,0,2))&&(2==e.length||"/"===(t=R(e,2))||"\\"===t||"?"===t||"#"===t)},pe=function(e){return"."===e||"%2e"===W(e)},me={},ge={},ve={},ye={},_e={},be={},Me={},we={},Te={},Le={},Se={},ke={},xe={},Ee={},De={},Ae={},Oe={},Pe={},Re={},Ie={},Ye={},Ce=function(e,t,r){var n,i,a,o=_(e);if(t){if(i=this.parse(o))throw D(i);this.searchParams=null}else{if(void 0!==r&&(n=new Ce(r,!0)),i=this.parse(o,null,n))throw D(i);(a=x(new k)).bindURL(this),this.searchParams=a}};Ce.prototype={type:"URL",parse:function(e,t,r){var i,a,o,s,l,u=this,c=t||me,d=0,h="",p=!1,v=!1,y=!1;for(e=_(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=j(e,ne,"")),e=j(e,ie,""),i=m(e);d<=i.length;){switch(a=i[d],c){case me:if(!a||!I(q,a)){if(t)return G;c=ve;continue}h+=W(a),c=ge;break;case ge:if(a&&(I($,a)||"+"==a||"-"==a||"."==a))h+=W(a);else{if(":"!=a){if(t)return G;h="",c=ve,d=0;continue}if(t&&(u.isSpecial()!=f(de,h)||"file"==h&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=h,t)return void(u.isSpecial()&&de[u.scheme]==u.port&&(u.port=null));h="","file"==u.scheme?c=Ee:u.isSpecial()&&r&&r.scheme==u.scheme?c=ye:u.isSpecial()?c=we:"/"==i[d+1]?(c=_e,d++):(u.cannotBeABaseURL=!0,N(u.path,""),c=Re)}break;case ve:if(!r||r.cannotBeABaseURL&&"#"!=a)return G;if(r.cannotBeABaseURL&&"#"==a){u.scheme=r.scheme,u.path=g(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=Ye;break}c="file"==r.scheme?Ee:be;continue;case ye:if("/"!=a||"/"!=i[d+1]){c=be;continue}c=Te,d++;break;case _e:if("/"==a){c=Le;break}c=Pe;continue;case be:if(u.scheme=r.scheme,a==n)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=g(r.path),u.query=r.query;else if("/"==a||"\\"==a&&u.isSpecial())c=Me;else if("?"==a)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=g(r.path),u.query="",c=Ie;else{if("#"!=a){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=g(r.path),u.path.length--,c=Pe;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=g(r.path),u.query=r.query,u.fragment="",c=Ye}break;case Me:if(!u.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=Pe;continue}c=Le}else c=Te;break;case we:if(c=Te,"/"!=a||"/"!=R(h,d+1))continue;d++;break;case Te:if("/"!=a&&"\\"!=a){c=Le;continue}break;case Le:if("@"==a){p&&(h="%40"+h),p=!0,o=m(h);for(var b=0;b<o.length;b++){var M=o[b];if(":"!=M||y){var w=ce(M,ue);y?u.password+=w:u.username+=w}else y=!0}h=""}else if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&u.isSpecial()){if(p&&""==h)return"Invalid authority";d-=m(h).length+1,h="",c=Se}else h+=a;break;case Se:case ke:if(t&&"file"==u.scheme){c=Ae;continue}if(":"!=a||v){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&u.isSpecial()){if(u.isSpecial()&&""==h)return V;if(t&&""==h&&(u.includesCredentials()||null!==u.port))return;if(s=u.parseHost(h))return s;if(h="",c=Oe,t)return;continue}"["==a?v=!0:"]"==a&&(v=!1),h+=a}else{if(""==h)return V;if(s=u.parseHost(h))return s;if(h="",c=xe,t==ke)return}break;case xe:if(!I(J,a)){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&u.isSpecial()||t){if(""!=h){var T=A(h,10);if(T>65535)return K;u.port=u.isSpecial()&&T===de[u.scheme]?null:T,h=""}if(t)return;c=Oe;continue}return K}h+=a;break;case Ee:if(u.scheme="file","/"==a||"\\"==a)c=De;else{if(!r||"file"!=r.scheme){c=Pe;continue}if(a==n)u.host=r.host,u.path=g(r.path),u.query=r.query;else if("?"==a)u.host=r.host,u.path=g(r.path),u.query="",c=Ie;else{if("#"!=a){fe(Y(g(i,d),""))||(u.host=r.host,u.path=g(r.path),u.shortenPath()),c=Pe;continue}u.host=r.host,u.path=g(r.path),u.query=r.query,u.fragment="",c=Ye}}break;case De:if("/"==a||"\\"==a){c=Ae;break}r&&"file"==r.scheme&&!fe(Y(g(i,d),""))&&(he(r.path[0],!0)?N(u.path,r.path[0]):u.host=r.host),c=Pe;continue;case Ae:if(a==n||"/"==a||"\\"==a||"?"==a||"#"==a){if(!t&&he(h))c=Pe;else if(""==h){if(u.host="",t)return;c=Oe}else{if(s=u.parseHost(h))return s;if("localhost"==u.host&&(u.host=""),t)return;h="",c=Oe}continue}h+=a;break;case Oe:if(u.isSpecial()){if(c=Pe,"/"!=a&&"\\"!=a)continue}else if(t||"?"!=a)if(t||"#"!=a){if(a!=n&&(c=Pe,"/"!=a))continue}else u.fragment="",c=Ye;else u.query="",c=Ie;break;case Pe:if(a==n||"/"==a||"\\"==a&&u.isSpecial()||!t&&("?"==a||"#"==a)){if(".."===(l=W(l=h))||"%2e."===l||".%2e"===l||"%2e%2e"===l?(u.shortenPath(),"/"==a||"\\"==a&&u.isSpecial()||N(u.path,"")):pe(h)?"/"==a||"\\"==a&&u.isSpecial()||N(u.path,""):("file"==u.scheme&&!u.path.length&&he(h)&&(u.host&&(u.host=""),h=R(h,0)+":"),N(u.path,h)),h="","file"==u.scheme&&(a==n||"?"==a||"#"==a))for(;u.path.length>1&&""===u.path[0];)H(u.path);"?"==a?(u.query="",c=Ie):"#"==a&&(u.fragment="",c=Ye)}else h+=ce(a,le);break;case Re:"?"==a?(u.query="",c=Ie):"#"==a?(u.fragment="",c=Ye):a!=n&&(u.path[0]+=ce(a,oe));break;case Ie:t||"#"!=a?a!=n&&("'"==a&&u.isSpecial()?u.query+="%27":u.query+="#"==a?"%23":ce(a,oe)):(u.fragment="",c=Ye);break;case Ye:a!=n&&(u.fragment+=ce(a,se))}d++}},parseHost:function(e){var t,r,n;if("["==R(e,0)){if("]"!=R(e,e.length-1))return V;if(t=function(e){var t,r,n,i,a,o,s,l=[0,0,0,0,0,0,0,0],u=0,c=null,d=0,h=function(){return R(e,d)};if(":"==h()){if(":"!=R(e,1))return;d+=2,c=++u}for(;h();){if(8==u)return;if(":"!=h()){for(t=r=0;r<4&&I(ee,h());)t=16*t+A(h(),16),d++,r++;if("."==h()){if(0==r)return;if(d-=r,u>6)return;for(n=0;h();){if(i=null,n>0){if(!("."==h()&&n<4))return;d++}if(!I(J,h()))return;for(;I(J,h());){if(a=A(h(),10),null===i)i=a;else{if(0==i)return;i=10*i+a}if(i>255)return;d++}l[u]=256*l[u]+i,2!=++n&&4!=n||u++}if(4!=n)return;break}if(":"==h()){if(d++,!h())return}else if(h())return;l[u++]=t}else{if(null!==c)return;d++,c=++u}}if(null!==c)for(o=u-c,u=7;0!=u&&o>0;)s=l[u],l[u--]=l[c+o-1],l[c+--o]=s;else if(8!=u)return;return l}(U(e,1,-1)),!t)return V;this.host=t}else if(this.isSpecial()){if(e=y(e),I(te,e))return V;if(t=function(e){var t,r,n,i,a,o,s,l=B(e,".");if(l.length&&""==l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(i=l[n]))return e;if(a=10,i.length>1&&"0"==R(i,0)&&(a=I(X,i)?16:8,i=U(i,8==a?1:2)),""===i)o=0;else{if(!I(10==a?Z:8==a?Q:ee,i))return e;o=A(i,a)}N(r,o)}for(n=0;n<t;n++)if(o=r[n],n==t-1){if(o>=P(256,5-t))return null}else if(o>255)return null;for(s=F(r),n=0;n<r.length;n++)s+=r[n]*P(256,3-n);return s}(e),null===t)return V;this.host=t}else{if(I(re,e))return V;for(t="",r=m(e),n=0;n<r.length;n++)t+=ce(r[n],oe);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return f(de,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&he(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,a=e.port,o=e.path,s=e.query,l=e.fragment,u=t+":";return null!==i?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=ae(i),null!==a&&(u+=":"+a)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?o[0]:o.length?"/"+Y(o,"/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},setHref:function(e){var t=this.parse(e);if(t)throw D(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Fe(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ae(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(_(e)+":",me)},getUsername:function(){return this.username},setUsername:function(e){var t=m(_(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=ce(t[r],ue)}},getPassword:function(){return this.password},setPassword:function(e){var t=m(_(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=ce(t[r],ue)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ae(e):ae(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Se)},getHostname:function(){var e=this.host;return null===e?"":ae(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,ke)},getPort:function(){var e=this.port;return null===e?"":_(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=_(e))?this.port=null:this.parse(e,xe))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Y(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Oe))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=_(e))?this.query=null:("?"==R(e,0)&&(e=U(e,1)),this.query="",this.parse(e,Ie)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=_(e))?("#"==R(e,0)&&(e=U(e,1)),this.fragment="",this.parse(e,Ye)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Fe=function(e){var t=h(this,Ne),r=M(arguments.length,1)>1?arguments[1]:void 0,n=L(t,new Ce(e,!1,r));a||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},Ne=Fe.prototype,je=function(e,t){return{get:function(){return S(this)[e]()},set:t&&function(e){return S(this)[t](e)},configurable:!0,enumerable:!0}};if(a&&(d(Ne,"href",je("serialize","setHref")),d(Ne,"origin",je("getOrigin")),d(Ne,"protocol",je("getProtocol","setProtocol")),d(Ne,"username",je("getUsername","setUsername")),d(Ne,"password",je("getPassword","setPassword")),d(Ne,"host",je("getHost","setHost")),d(Ne,"hostname",je("getHostname","setHostname")),d(Ne,"port",je("getPort","setPort")),d(Ne,"pathname",je("getPathname","setPathname")),d(Ne,"search",je("getSearch","setSearch")),d(Ne,"searchParams",je("getSearchParams")),d(Ne,"hash",je("getHash","setHash"))),c(Ne,"toJSON",(function(){return S(this).serialize()}),{enumerable:!0}),c(Ne,"toString",(function(){return S(this).serialize()}),{enumerable:!0}),E){var He=E.createObjectURL,Be=E.revokeObjectURL;He&&c(Fe,"createObjectURL",l(He,E)),Be&&c(Fe,"revokeObjectURL",l(Be,E))}b(Fe,"URL"),i({global:!0,constructor:!0,forced:!o,sham:!a},{URL:Fe})},49227:(e,t,r)=>{r(95728)},75676:(e,t,r)=>{"use strict";var n=r(98646),i=r(98004);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},72583:(e,t,r)=>{r(39496),r(94199),r(79384),r(99357),r(65323),r(78459),r(78154),r(28349),r(38856),r(65749),r(9707),r(32137),r(94682),r(44225),r(47527),r(92156),r(99189),r(20387),r(72989),r(66991),r(10837),r(22464),r(93485),r(63137),r(40879),r(58810),r(72116),r(32860),r(98531),r(79841),r(14605),r(86767),r(50192),r(79943),r(84992),r(67622),r(2357),r(28117),r(34784),r(69550),r(8654),r(72922),r(48),r(30320),r(86619),r(13474),r(66287),r(90565),r(90573),r(87125),r(17802),r(22510),r(29388),r(61045),r(95276),r(92412),r(54195),r(64592),r(39381),r(20283),r(73556),r(66773),r(88616),r(71525),r(52171),r(80003),r(63008),r(82617),r(26232),r(35196),r(82833),r(52768),r(22247),r(97754),r(74382),r(20850),r(25066),r(7499),r(85435),r(11306),r(16163),r(52365),r(28345),r(6617),r(2183),r(70183),r(91235),r(65153),r(8882),r(71646),r(96983),r(28402),r(99037),r(85277),r(46146),r(77272),r(93047),r(38361),r(90362),r(36768),r(81674),r(82002),r(37591),r(53713),r(47189),r(21508),r(94914),r(33306),r(93319),r(85365),r(70223),r(52777),r(42194),r(90461),r(12418),r(40440),r(57017),r(35048),r(68270),r(65578),r(1466),r(87647),r(5622),r(53258),r(24938),r(87302),r(98924),r(55992),r(40890),r(51151),r(68570),r(40247),r(52833),r(9317),r(50521),r(35413),r(39134),r(49898),r(78222),r(47433),r(15602),r(71502),r(91761),r(14767),r(96895),r(36103),r(82012),r(2300),r(18139),r(1754),r(15107),r(61821),r(77933),r(39707),r(97111),r(42001),r(81939),r(18977),r(955),r(66325),r(9275),r(65081),r(37140),r(2439),r(71794),r(35087),r(69596),r(51326),r(34476),r(567),r(62754),r(67071),r(82303),r(70637),r(99102),r(66168),r(6369),r(92886),r(81428),r(40588),r(13196),r(36316),r(94815),r(67228),r(64083),r(53856),r(84144),r(48873),r(55882),r(38843),r(67828),r(48130),r(41444),r(47247),r(6173),r(63815),r(57268),r(47422),r(20764),r(42759),r(86657),r(22459),r(43839),r(7782),r(28009),r(56757),r(52110),r(75721),r(42220),r(54363),r(14740),r(83543),r(18037),r(33030),r(32127),r(13125),r(29096),r(91662),r(72576),r(97534),r(77435),r(20402),r(14656),r(89344),r(44852),r(1217),r(2555),r(3903),r(96294),r(25903),r(6269),r(31962),r(65854),r(79642),r(13568),r(74243),r(41582),r(43619),r(58319),r(71228),r(85287),r(83898),r(70454),r(37124),r(41144),r(49227),r(75676),r(88328),r(44871)},42872:(e,t,r)=>{"use strict";r.d(t,{B8:()=>s,D:()=>h,H:()=>d,Hu:()=>v,IK:()=>b,KX:()=>c,M:()=>p,MS:()=>l,Q:()=>m,S:()=>u,W:()=>f,WN:()=>i,Y:()=>g,nD:()=>o,qn:()=>M,r0:()=>y,uT:()=>n,wj:()=>_,zI:()=>a});var n=1e3,i=60*n,a=3600*n,o=86400*n,s=604800*n,l="millisecond",u="second",c="minute",d="hour",h="day",f="week",p="month",m="quarter",g="year",v="date",y="YYYY-MM-DDTHH:mm:ssZ",_="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g},19231:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var n=r(42872);const i={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}};var a=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e};const o={s:a,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+a(n,2,"0")+":"+a(i,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var i=12*(r.year()-t.year())+(r.month()-t.month()),a=t.clone().add(i,n.M),o=r-a<0,s=t.clone().add(i+(o?-1:1),n.M);return+(-(i+(r-a)/(o?a-s:s-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:n.M,y:n.Y,w:n.W,d:n.D,D:n.Hu,h:n.H,m:n.KX,s:n.S,ms:n.MS,Q:n.Q}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};var s="en",l={};l[s]=i;var u=function(e){return e instanceof f},c=function e(t,r,n){var i;if(!t)return s;if("string"==typeof t){var a=t.toLowerCase();l[a]&&(i=a),r&&(l[a]=r,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var u=t.name;l[u]=t,i=u}return!n&&i&&(s=i),i||!n&&s},d=function(e,t){if(u(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new f(r)},h=o;h.l=c,h.i=u,h.w=function(e,t){return d(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var f=function(){function e(e){this.$L=c(e.locale,null,!0),this.parse(e)}var t=e.prototype;return t.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(h.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(n.IK);if(i){var a=i[2]-1||0,o=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},t.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},t.$utils=function(){return h},t.isValid=function(){return!(this.$d.toString()===n.wj)},t.isSame=function(e,t){var r=d(e);return this.startOf(t)<=r&&r<=this.endOf(t)},t.isAfter=function(e,t){return d(e)<this.startOf(t)},t.isBefore=function(e,t){return this.endOf(t)<d(e)},t.$g=function(e,t,r){return h.u(e)?this[t]:this.set(r,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,t){var r=this,i=!!h.u(t)||t,a=h.p(e),o=function(e,t){var a=h.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return i?a:a.endOf(n.D)},s=function(e,t){return h.w(r.toDate()[e].apply(r.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},l=this.$W,u=this.$M,c=this.$D,d="set"+(this.$u?"UTC":"");switch(a){case n.Y:return i?o(1,0):o(31,11);case n.M:return i?o(1,u):o(0,u+1);case n.W:var f=this.$locale().weekStart||0,p=(l<f?l+7:l)-f;return o(i?c-p:c+(6-p),u);case n.D:case n.Hu:return s(d+"Hours",0);case n.H:return s(d+"Minutes",1);case n.KX:return s(d+"Seconds",2);case n.S:return s(d+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,t){var r,i=h.p(e),a="set"+(this.$u?"UTC":""),o=(r={},r[n.D]=a+"Date",r[n.Hu]=a+"Date",r[n.M]=a+"Month",r[n.Y]=a+"FullYear",r[n.H]=a+"Hours",r[n.KX]=a+"Minutes",r[n.S]=a+"Seconds",r[n.MS]=a+"Milliseconds",r)[i],s=i===n.D?this.$D+(t-this.$W):t;if(i===n.M||i===n.Y){var l=this.clone().set(n.Hu,1);l.$d[o](s),l.init(),this.$d=l.set(n.Hu,Math.min(this.$D,l.daysInMonth())).$d}else o&&this.$d[o](s);return this.init(),this},t.set=function(e,t){return this.clone().$set(e,t)},t.get=function(e){return this[h.p(e)]()},t.add=function(e,t){var r,i=this;e=Number(e);var a=h.p(t),o=function(t){var r=d(i);return h.w(r.date(r.date()+Math.round(t*e)),i)};if(a===n.M)return this.set(n.M,this.$M+e);if(a===n.Y)return this.set(n.Y,this.$y+e);if(a===n.D)return o(1);if(a===n.W)return o(7);var s=(r={},r[n.KX]=n.WN,r[n.H]=n.zI,r[n.S]=n.uT,r)[a]||1,l=this.$d.getTime()+e*s;return h.w(l,this)},t.subtract=function(e,t){return this.add(-1*e,t)},t.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||n.wj;var i=e||n.r0,a=h.z(this),o=this.$H,s=this.$m,l=this.$M,u=r.weekdays,c=r.months,d=function(e,r,n,a){return e&&(e[r]||e(t,i))||n[r].slice(0,a)},f=function(e){return h.s(o%12||12,e,"0")},p=r.meridiem||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:l+1,MM:h.s(l+1,2,"0"),MMM:d(r.monthsShort,l,c,3),MMMM:d(c,l),D:this.$D,DD:h.s(this.$D,2,"0"),d:String(this.$W),dd:d(r.weekdaysMin,this.$W,u,2),ddd:d(r.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(o),HH:h.s(o,2,"0"),h:f(1),hh:f(2),a:p(o,s,!0),A:p(o,s,!1),m:String(s),mm:h.s(s,2,"0"),s:String(this.$s),ss:h.s(this.$s,2,"0"),SSS:h.s(this.$ms,3,"0"),Z:a};return i.replace(n.qn,(function(e,t){return t||m[e]||a.replace(":","")}))},t.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},t.diff=function(e,t,r){var i,a=h.p(t),o=d(e),s=(o.utcOffset()-this.utcOffset())*n.WN,l=this-o,u=h.m(this,o);return u=(i={},i[n.Y]=u/12,i[n.M]=u,i[n.Q]=u/3,i[n.W]=(l-s)/n.B8,i[n.D]=(l-s)/n.nD,i[n.H]=l/n.zI,i[n.KX]=l/n.WN,i[n.S]=l/n.uT,i)[a]||l,r?u:h.a(u)},t.daysInMonth=function(){return this.endOf(n.M).$D},t.$locale=function(){return l[this.$L]},t.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=c(e,t,!0);return n&&(r.$L=n),r},t.clone=function(){return h.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},e}(),p=f.prototype;d.prototype=p,[["$ms",n.MS],["$s",n.S],["$m",n.KX],["$H",n.H],["$W",n.D],["$M",n.M],["$y",n.Y],["$D",n.Hu]].forEach((function(e){p[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),d.extend=function(e,t){return e.$i||(e(t,f,d),e.$i=!0),d},d.locale=c,d.isDayjs=u,d.unix=function(e){return d(1e3*e)},d.en=l[s],d.Ls=l,d.p={};const m=d},27741:(e,t,r)=>{"use strict";var n=r(76927),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,o=Array.prototype.concat,s=Object.defineProperty,l=r(81224)(),u=s&&l,c=function(e,t,r,n){var i;(!(t in e)||"function"==typeof(i=n)&&"[object Function]"===a.call(i)&&n())&&(u?s(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},d=function(e,t){var r=arguments.length>2?arguments[2]:{},a=n(t);i&&(a=o.call(a,Object.getOwnPropertySymbols(t)));for(var s=0;s<a.length;s+=1)c(e,a[s],t[a[s]],r[a[s]])};d.supportsDescriptors=!!u,e.exports=d},43566:e=>{"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var a=Object.keys(Object(i)),o=0,s=a.length;o<s;o++){var l=a[o],u=Object.getOwnPropertyDescriptor(i,l);void 0!==u&&u.enumerable&&(r[l]=i[l])}}return r}e.exports={assign:t,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:t})}}},15842:(e,t,r)=>{"use strict";var n,i=r(51266),a="object"==typeof Reflect?Reflect:null,o=a&&"function"==typeof a.apply?a.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}e.exports=l,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,a),n(r)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}y(e,t,a,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&y(e,"error",t,{once:!0})}(e,i)}))},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function d(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function h(e,t,r,n){var a,o,s,l;if(c(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),void 0===s)s=o[t]=r,++e._eventsCount;else if("function"==typeof s?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(a=d(e))>0&&s.length>a&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,l=u,i&&i.warn&&i.warn(l)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=f.bind(n);return i.listener=r,n.wrapFn=i,i}function m(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):v(i,i.length)}function g(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function v(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function y(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(a){n.once&&e.removeEventListener(t,i),r(a)}))}}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},l.prototype.getMaxListeners=function(){return d(this)},l.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)o(l,this,t);else{var u=l.length,c=v(l,u);for(r=0;r<u;++r)o(c[r],this,t)}return!0},l.prototype.addListener=function(e,t){return h(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return h(this,e,t,!0)},l.prototype.once=function(e,t){return c(t),this.on(e,p(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,p(this,e,t)),this},l.prototype.removeListener=function(e,t){var r,n,i,a,o;if(c(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===t||r[a].listener===t){o=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,a=Object.keys(r);for(n=0;n<a.length;++n)"removeListener"!==(i=a[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},l.prototype.listeners=function(e){return m(this,e,!0)},l.prototype.rawListeners=function(e){return m(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},l.prototype.listenerCount=g,l.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},13366:(e,t,r)=>{"use strict";var n=r(41313),i=Object.prototype.toString,a=Object.prototype.hasOwnProperty,o=function(e,t,r){for(var n=0,i=e.length;n<i;n++)a.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))},s=function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)},l=function(e,t,r){for(var n in e)a.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))};e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=r),"[object Array]"===i.call(e)?o(e,t,a):"string"==typeof e?s(e,t,a):l(e,t,a)}},98135:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,i="[object Function]";e.exports=function(e){var a=this;if("function"!=typeof a||n.call(a)!==i)throw new TypeError(t+a);for(var o,s=r.call(arguments,1),l=function(){if(this instanceof o){var t=a.apply(this,s.concat(r.call(arguments)));return Object(t)===t?t:this}return a.apply(e,s.concat(r.call(arguments)))},u=Math.max(0,a.length-s.length),c=[],d=0;d<u;d++)c.push("$"+d);if(o=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(l),a.prototype){var h=function(){};h.prototype=a.prototype,o.prototype=new h,h.prototype=null}return o}},11442:(e,t,r)=>{"use strict";var n=r(98135);e.exports=Function.prototype.bind||n},15803:(e,t,r)=>{"use strict";var n,i=SyntaxError,a=Function,o=TypeError,s=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var u=function(){throw new o},c=l?function(){try{return u}catch(e){try{return l(arguments,"callee").get}catch(e){return u}}}():u,d=r(44439)(),h=Object.getPrototypeOf||function(e){return e.__proto__},f={},p="undefined"==typeof Uint8Array?n:h(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d?h((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d?h((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?h(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":p,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},g=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(r=h(i.prototype))}return m[t]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=r(11442),_=r(44106),b=y.call(Function.call,Array.prototype.concat),M=y.call(Function.apply,Array.prototype.splice),w=y.call(Function.call,String.prototype.replace),T=y.call(Function.call,String.prototype.slice),L=y.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,x=function(e){var t=T(e,0,1),r=T(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return w(e,S,(function(e,t,r,i){n[n.length]=r?w(i,k,"$1"):t||e})),n},E=function(e,t){var r,n=e;if(_(v,n)&&(n="%"+(r=v[n])[0]+"%"),_(m,n)){var a=m[n];if(a===f&&(a=g(n)),void 0===a&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:a}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===L(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=x(e),n=r.length>0?r[0]:"",a=E("%"+n+"%",t),s=a.name,u=a.value,c=!1,d=a.alias;d&&(n=d[0],M(r,b([0,1],d)));for(var h=1,f=!0;h<r.length;h+=1){var p=r[h],g=T(p,0,1),v=T(p,-1);if(('"'===g||"'"===g||"`"===g||'"'===v||"'"===v||"`"===v)&&g!==v)throw new i("property names with quotes must have matching quotes");if("constructor"!==p&&f||(c=!0),_(m,s="%"+(n+="."+p)+"%"))u=m[s];else if(null!=u){if(!(p in u)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&h+1>=r.length){var y=l(u,p);u=(f=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:u[p]}else f=_(u,p),u=u[p];f&&!c&&(m[s]=u)}}return u}},31606:(e,t,r)=>{"use strict";var n=r(15803)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},81224:(e,t,r)=>{"use strict";var n=r(15803)("%Object.defineProperty%",!0),i=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},44439:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(83217);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},83217:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},44308:(e,t,r)=>{"use strict";var n=r(83217);e.exports=function(){return n()&&!!Symbol.toStringTag}},44106:(e,t,r)=>{"use strict";var n=r(11442);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},87040:(e,t)=>{t.read=function(e,t,r,n,i){var a,o,s=8*i-n-1,l=(1<<s)-1,u=l>>1,c=-7,d=r?i-1:0,h=r?-1:1,f=e[t+d];for(d+=h,a=f&(1<<-c)-1,f>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=h,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=256*o+e[t+d],d+=h,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,n),a-=u}return(f?-1:1)*o*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var o,s,l,u=8*a-i-1,c=(1<<u)-1,d=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:a-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(o++,l/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[r+f]=255&s,f+=p,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[r+f]=255&o,f+=p,o/=256,u-=8);e[r+f-p]|=128*m}},23128:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},81582:(e,t,r)=>{"use strict";var n=r(44308)(),i=r(62453)("Object.prototype.toString"),a=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},o=function(e){return!!a(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return a(arguments)}();a.isLegacyArguments=o,e.exports=s?a:o},41313:e=>{"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,t)}catch(e){e!==r&&(i=null)}else i=null;var a=/^\s*class\b/,o=function(e){try{var t=n.call(e);return a.test(t)}catch(e){return!1}},s=function(e){try{return!o(e)&&(n.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),d=function(){return!1};if("object"==typeof document){var h=document.all;l.call(h)===l.call(document.all)&&(d=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!o(e)&&s(e)}:function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return s(e);if(o(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},72654:(e,t,r)=>{"use strict";var n,i=Object.prototype.toString,a=Function.prototype.toString,o=/^\s*(?:function)?\*/,s=r(44308)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(o.test(a.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!l)return!1;if(void 0===n){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&l(t)}return l(e)===n}},42026:e=>{"use strict";e.exports=function(e){return e!=e}},62183:(e,t,r)=>{"use strict";var n=r(47426),i=r(27741),a=r(42026),o=r(61638),s=r(93532),l=n(o(),Number);i(l,{getPolyfill:o,implementation:a,shim:s}),e.exports=l},61638:(e,t,r)=>{"use strict";var n=r(42026);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},93532:(e,t,r)=>{"use strict";var n=r(27741),i=r(61638);e.exports=function(){var e=i();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},11438:(e,t,r)=>{"use strict";var n=r(13366),i=r(52697),a=r(62453),o=a("Object.prototype.toString"),s=r(44308)(),l=r(31606),u="undefined"==typeof globalThis?r.g:globalThis,c=i(),d=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},h=a("String.prototype.slice"),f={},p=Object.getPrototypeOf;s&&l&&p&&n(c,(function(e){var t=new u[e];if(Symbol.toStringTag in t){var r=p(t),n=l(r,Symbol.toStringTag);if(!n){var i=p(r);n=l(i,Symbol.toStringTag)}f[e]=n.get}})),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s||!(Symbol.toStringTag in e)){var t=h(o(e),8,-1);return d(c,t)>-1}return!!l&&function(e){var t=!1;return n(f,(function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}})),t}(e)}},68981:(e,t,r)=>{var n=r(17791)(r(3478),"DataView");e.exports=n},78031:(e,t,r)=>{var n=r(85264),i=r(86778),a=r(28861),o=r(61867),s=r(49796);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},48289:(e,t,r)=>{var n=r(5249),i=r(94553),a=r(95104),o=r(20017),s=r(75117);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},1063:(e,t,r)=>{var n=r(17791)(r(3478),"Map");e.exports=n},36484:(e,t,r)=>{var n=r(21409),i=r(86231),a=r(81963),o=r(79733),s=r(24960);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},23366:(e,t,r)=>{var n=r(17791)(r(3478),"Promise");e.exports=n},61538:(e,t,r)=>{var n=r(17791)(r(3478),"Set");e.exports=n},55325:(e,t,r)=>{var n=r(48289),i=r(71849),a=r(89712),o=r(83077),s=r(32930),l=r(21975);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=a,u.prototype.get=o,u.prototype.has=s,u.prototype.set=l,e.exports=u},51658:(e,t,r)=>{var n=r(3478).Symbol;e.exports=n},63467:(e,t,r)=>{var n=r(3478).Uint8Array;e.exports=n},84428:(e,t,r)=>{var n=r(17791)(r(3478),"WeakMap");e.exports=n},71321:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},76493:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}},62932:(e,t,r)=>{var n=r(4079),i=r(17632),a=r(2615),o=r(90028),s=r(55661),l=r(41653),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=a(e),c=!r&&i(e),d=!r&&!c&&o(e),h=!r&&!c&&!d&&l(e),f=r||c||d||h,p=f?n(e.length,String):[],m=p.length;for(var g in e)!t&&!u.call(e,g)||f&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||p.push(g);return p}},99676:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},23780:(e,t,r)=>{var n=r(70508),i=r(54865),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var o=e[t];a.call(e,t)&&i(o,r)&&(void 0!==r||t in e)||n(e,t,r)}},2784:(e,t,r)=>{var n=r(54865);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},73585:(e,t,r)=>{var n=r(22654),i=r(92749);e.exports=function(e,t){return e&&n(t,i(t),e)}},34683:(e,t,r)=>{var n=r(22654),i=r(81956);e.exports=function(e,t){return e&&n(t,i(t),e)}},70508:(e,t,r)=>{var n=r(16569);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},7864:(e,t,r)=>{var n=r(55325),i=r(71321),a=r(23780),o=r(73585),s=r(34683),l=r(1855),u=r(57888),c=r(79270),d=r(61751),h=r(10294),f=r(30671),p=r(46968),m=r(91381),g=r(18582),v=r(32375),y=r(2615),_=r(90028),b=r(68866),M=r(28603),w=r(26159),T=r(92749),L=r(81956),S="[object Arguments]",k="[object Function]",x="[object Object]",E={};E[S]=E["[object Array]"]=E["[object ArrayBuffer]"]=E["[object DataView]"]=E["[object Boolean]"]=E["[object Date]"]=E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Map]"]=E["[object Number]"]=E[x]=E["[object RegExp]"]=E["[object Set]"]=E["[object String]"]=E["[object Symbol]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E["[object Error]"]=E[k]=E["[object WeakMap]"]=!1,e.exports=function e(t,r,D,A,O,P){var R,I=1&r,Y=2&r,C=4&r;if(D&&(R=O?D(t,A,O,P):D(t)),void 0!==R)return R;if(!M(t))return t;var F=y(t);if(F){if(R=m(t),!I)return u(t,R)}else{var N=p(t),j=N==k||"[object GeneratorFunction]"==N;if(_(t))return l(t,I);if(N==x||N==S||j&&!O){if(R=Y||j?{}:v(t),!I)return Y?d(t,s(R,t)):c(t,o(R,t))}else{if(!E[N])return O?t:{};R=g(t,N,I)}}P||(P=new n);var H=P.get(t);if(H)return H;P.set(t,R),w(t)?t.forEach((function(n){R.add(e(n,r,D,n,t,P))})):b(t)&&t.forEach((function(n,i){R.set(i,e(n,r,D,i,t,P))}));var B=F?void 0:(C?Y?f:h:Y?L:T)(t);return i(B||t,(function(n,i){B&&(n=t[i=n]),a(R,i,e(n,r,D,i,t,P))})),R}},97508:(e,t,r)=>{var n=r(28603),i=Object.create,a=function(){function e(){}return function(t){if(!n(t))return{};if(i)return i(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=a},81714:(e,t,r)=>{var n=r(99676),i=r(2615);e.exports=function(e,t,r){var a=t(e);return i(e)?a:n(a,r(e))}},92085:(e,t,r)=>{var n=r(51658),i=r(71693),a=r(39191),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):a(e)}},49618:(e,t,r)=>{var n=r(92085),i=r(19363);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},97533:(e,t,r)=>{var n=r(46968),i=r(19363);e.exports=function(e){return i(e)&&"[object Map]"==n(e)}},20697:(e,t,r)=>{var n=r(88911),i=r(6481),a=r(28603),o=r(28143),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,h=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||i(e))&&(n(e)?h:s).test(o(e))}},86941:(e,t,r)=>{var n=r(46968),i=r(19363);e.exports=function(e){return i(e)&&"[object Set]"==n(e)}},63677:(e,t,r)=>{var n=r(92085),i=r(52413),a=r(19363),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&i(e.length)&&!!o[n(e)]}},58819:(e,t,r)=>{var n=r(11105),i=r(57762),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}},22809:(e,t,r)=>{var n=r(28603),i=r(11105),a=r(16383),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return a(e);var t=i(e),r=[];for(var s in e)("constructor"!=s||!t&&o.call(e,s))&&r.push(s);return r}},4079:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},37888:e=>{e.exports=function(e){return function(t){return e(t)}}},39474:(e,t,r)=>{var n=r(63467);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},1855:(e,t,r)=>{e=r.nmd(e);var n=r(3478),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},56341:(e,t,r)=>{var n=r(39474);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},62564:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},25676:(e,t,r)=>{var n=r(51658),i=n?n.prototype:void 0,a=i?i.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},15464:(e,t,r)=>{var n=r(39474);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},57888:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},22654:(e,t,r)=>{var n=r(23780),i=r(70508);e.exports=function(e,t,r,a){var o=!r;r||(r={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=a?a(r[u],e[u],u,r,e):void 0;void 0===c&&(c=e[u]),o?i(r,u,c):n(r,u,c)}return r}},79270:(e,t,r)=>{var n=r(22654),i=r(84868);e.exports=function(e,t){return n(e,i(e),t)}},61751:(e,t,r)=>{var n=r(22654),i=r(905);e.exports=function(e,t){return n(e,i(e),t)}},7037:(e,t,r)=>{var n=r(3478)["__core-js_shared__"];e.exports=n},16569:(e,t,r)=>{var n=r(17791),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},48369:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},10294:(e,t,r)=>{var n=r(81714),i=r(84868),a=r(92749);e.exports=function(e){return n(e,a,i)}},30671:(e,t,r)=>{var n=r(81714),i=r(905),a=r(81956);e.exports=function(e){return n(e,a,i)}},89768:(e,t,r)=>{var n=r(55348);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},17791:(e,t,r)=>{var n=r(20697),i=r(71430);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},96180:(e,t,r)=>{var n=r(47318)(Object.getPrototypeOf,Object);e.exports=n},71693:(e,t,r)=>{var n=r(51658),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=o.call(e);return n&&(t?e[s]=r:delete e[s]),i}},84868:(e,t,r)=>{var n=r(76493),i=r(97918),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return a.call(e,t)})))}:i;e.exports=s},905:(e,t,r)=>{var n=r(99676),i=r(96180),a=r(84868),o=r(97918),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,a(e)),e=i(e);return t}:o;e.exports=s},46968:(e,t,r)=>{var n=r(68981),i=r(1063),a=r(23366),o=r(61538),s=r(84428),l=r(92085),u=r(28143),c="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",m=u(n),g=u(i),v=u(a),y=u(o),_=u(s),b=l;(n&&b(new n(new ArrayBuffer(1)))!=p||i&&b(new i)!=c||a&&b(a.resolve())!=d||o&&b(new o)!=h||s&&b(new s)!=f)&&(b=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case m:return p;case g:return c;case v:return d;case y:return h;case _:return f}return t}),e.exports=b},71430:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},85264:(e,t,r)=>{var n=r(98179);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},86778:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},28861:(e,t,r)=>{var n=r(98179),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},61867:(e,t,r)=>{var n=r(98179),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},49796:(e,t,r)=>{var n=r(98179);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},91381:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},18582:(e,t,r)=>{var n=r(39474),i=r(56341),a=r(62564),o=r(25676),s=r(15464);e.exports=function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return a(e);case"[object Symbol]":return o(e)}}},32375:(e,t,r)=>{var n=r(97508),i=r(96180),a=r(11105);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:n(i(e))}},55661:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},55348:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},6481:(e,t,r)=>{var n,i=r(7037),a=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!a&&a in e}},11105:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},5249:e=>{e.exports=function(){this.__data__=[],this.size=0}},94553:(e,t,r)=>{var n=r(2784),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():i.call(t,r,1),--this.size,0))}},95104:(e,t,r)=>{var n=r(2784);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},20017:(e,t,r)=>{var n=r(2784);e.exports=function(e){return n(this.__data__,e)>-1}},75117:(e,t,r)=>{var n=r(2784);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},21409:(e,t,r)=>{var n=r(78031),i=r(48289),a=r(1063);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||i),string:new n}}},86231:(e,t,r)=>{var n=r(89768);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},81963:(e,t,r)=>{var n=r(89768);e.exports=function(e){return n(this,e).get(e)}},79733:(e,t,r)=>{var n=r(89768);e.exports=function(e){return n(this,e).has(e)}},24960:(e,t,r)=>{var n=r(89768);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},98179:(e,t,r)=>{var n=r(17791)(Object,"create");e.exports=n},57762:(e,t,r)=>{var n=r(47318)(Object.keys,Object);e.exports=n},16383:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},6282:(e,t,r)=>{e=r.nmd(e);var n=r(48369),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i&&n.process,s=function(){try{return a&&a.require&&a.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s},39191:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},47318:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},3478:(e,t,r)=>{var n=r(48369),i="object"==typeof self&&self&&self.Object===Object&&self,a=n||i||Function("return this")();e.exports=a},71849:(e,t,r)=>{var n=r(48289);e.exports=function(){this.__data__=new n,this.size=0}},89712:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},83077:e=>{e.exports=function(e){return this.__data__.get(e)}},32930:e=>{e.exports=function(e){return this.__data__.has(e)}},21975:(e,t,r)=>{var n=r(48289),i=r(1063),a=r(36484);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(o)}return r.set(e,t),this.size=r.size,this}},28143:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},54207:(e,t,r)=>{var n=r(7864);e.exports=function(e){return n(e,5)}},54865:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},17632:(e,t,r)=>{var n=r(49618),i=r(19363),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},2615:e=>{var t=Array.isArray;e.exports=t},9174:(e,t,r)=>{var n=r(88911),i=r(52413);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},90028:(e,t,r)=>{e=r.nmd(e);var n=r(3478),i=r(48338),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,s=o&&o.exports===a?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},88911:(e,t,r)=>{var n=r(92085),i=r(28603);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},52413:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},68866:(e,t,r)=>{var n=r(97533),i=r(37888),a=r(6282),o=a&&a.isMap,s=o?i(o):n;e.exports=s},28603:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},19363:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},26159:(e,t,r)=>{var n=r(86941),i=r(37888),a=r(6282),o=a&&a.isSet,s=o?i(o):n;e.exports=s},41653:(e,t,r)=>{var n=r(63677),i=r(37888),a=r(6282),o=a&&a.isTypedArray,s=o?i(o):n;e.exports=s},92749:(e,t,r)=>{var n=r(62932),i=r(58819),a=r(9174);e.exports=function(e){return a(e)?n(e):i(e)}},81956:(e,t,r)=>{var n=r(62932),i=r(22809),a=r(9174);e.exports=function(e){return a(e)?n(e,!0):i(e)}},97918:e=>{e.exports=function(){return[]}},48338:e=>{e.exports=function(){return!1}},4313:function(e,t,r){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,r){return e<12?r?"vm":"VM":r?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(r(68945))},26425:function(e,t,r){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},n=function(e){return function(n,i,a,o){var s=t(n),l=r[e][t(n)];return 2===s&&(l=l[i?0:1]),l.replace(/%d/i,n)}},i=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,r){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:n("s"),ss:n("s"),m:n("m"),mm:n("m"),h:n("h"),hh:n("h"),d:n("d"),dd:n("d"),M:n("M"),MM:n("M"),y:n("y"),yy:n("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(r(68945))},45615:function(e,t,r){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(r(68945))},15253:function(e,t,r){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,i,a,o){var s=r(t),l=n[e][r(t)];return 2===s&&(l=l[i?0:1]),l.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,r){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(r(68945))},86444:function(e,t,r){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(r(68945))},4831:function(e,t,r){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},r={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,r){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return r[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(r(68945))},24643:function(e,t,r){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(r(68945))},25353:function(e,t,r){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},r={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,r,a,o){var s=n(t),l=i[e][n(t)];return 2===s&&(l=l[r?0:1]),l.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,r){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return r[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(r(68945))},7637:function(e,t,r){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,r){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(r(68945))},5658:function(e,t,r){!function(e){"use strict";function t(e,t,r){return"m"===r?t?"хвіліна":"хвіліну":"h"===r?t?"гадзіна":"гадзіну":e+" "+(n=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[r].split("_"),n%10==1&&n%100!=11?i[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?i[1]:i[2]);var n,i}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,r){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(r(68945))},38041:function(e,t,r){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,r=e%100;return 0===e?e+"-ев":0===r?e+"-ен":r>10&&r<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(r(68945))},9466:function(e,t,r){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(r(68945))},61402:function(e,t,r){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},r={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,r){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(r(68945))},88522:function(e,t,r){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},r={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,r){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(r(68945))},97429:function(e,t,r){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},r={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,r){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(r(68945))},90690:function(e,t,r){!function(e){"use strict";function t(e,t,r){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[r],e)}function r(e){return e>9?r(e%10):e}var n=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],i=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,a=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:a,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:a,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(r(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,r){return e<12?"a.m.":"g.m."}})}(r(68945))},54480:function(e,t,r){!function(e){"use strict";function t(e,t,r){var n=e+" ";switch(r){case"ss":return n+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return n+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return n+(1===e?"dan":"dana");case"MM":return n+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return n+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(68945))},8721:function(e,t,r){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var r=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(r="a"),e+r},week:{dow:1,doy:4}})}(r(68945))},52501:function(e,t,r){!function(e){"use strict";var t={format:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),standalone:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_")},r="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),n=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],i=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function a(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,r,n){var i=e+" ";switch(r){case"s":return t||n?"pár sekund":"pár sekundami";case"ss":return t||n?i+(a(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":n?"minutu":"minutou";case"mm":return t||n?i+(a(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":n?"hodinu":"hodinou";case"hh":return t||n?i+(a(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||n?"den":"dnem";case"dd":return t||n?i+(a(e)?"dny":"dní"):i+"dny";case"M":return t||n?"měsíc":"měsícem";case"MM":return t||n?i+(a(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||n?"rok":"rokem";case"yy":return t||n?i+(a(e)?"roky":"let"):i+"lety"}}e.defineLocale("cs",{months:t,monthsShort:r,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(68945))},62737:function(e,t,r){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(r(68945))},66638:function(e,t,r){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(r(68945))},35816:function(e,t,r){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(68945))},17458:function(e,t,r){!function(e){"use strict";function t(e,t,r,n){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[r][0]:i[r][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(68945))},97405:function(e,t,r){!function(e){"use strict";function t(e,t,r,n){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[r][0]:i[r][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(68945))},775:function(e,t,r){!function(e){"use strict";function t(e,t,r,n){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[r][0]:i[r][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(68945))},41131:function(e,t,r){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],r=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:r,weekdaysShort:r,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,r){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(r(68945))},64639:function(e,t,r){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,r){return e>11?r?"μμ":"ΜΜ":r?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){return 6===this.day()?"[το προηγούμενο] dddd [{}] LT":"[την προηγούμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(e,t){var r,n=this._calendarEl[e],i=t&&t.hours();return r=n,("undefined"!=typeof Function&&r instanceof Function||"[object Function]"===Object.prototype.toString.call(r))&&(n=n.apply(t)),n.replace("{}",i%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(r(68945))},58472:function(e,t,r){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(r(68945))},22167:function(e,t,r){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(r(68945))},38133:function(e,t,r){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(r(68945))},5573:function(e,t,r){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(r(68945))},13084:function(e,t,r){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(r(68945))},58930:function(e,t,r){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(r(68945))},60899:function(e,t,r){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(r(68945))},61978:function(e,t,r){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(r(68945))},31635:function(e,t,r){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,r){return e>11?r?"p.t.m.":"P.T.M.":r?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(r(68945))},46740:function(e,t,r){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),r="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?r[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(68945))},36071:function(e,t,r){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),r="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?r[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(r(68945))},7383:function(e,t,r){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),r="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?r[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(r(68945))},22074:function(e,t,r){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),r="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?r[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(r(68945))},87883:function(e,t,r){!function(e){"use strict";function t(e,t,r,n){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?i[r][2]?i[r][2]:i[r][1]:n?i[r][0]:i[r][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(68945))},12743:function(e,t,r){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(68945))},12977:function(e,t,r){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},r={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,r){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return r[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(r(68945))},53049:function(e,t,r){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),r=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function n(e,n,i,a){var o="";switch(i){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":o=a?"sekunnin":"sekuntia";break;case"m":return a?"minuutin":"minuutti";case"mm":o=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":o=a?"tunnin":"tuntia";break;case"d":return a?"päivän":"päivä";case"dd":o=a?"päivän":"päivää";break;case"M":return a?"kuukauden":"kuukausi";case"MM":o=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":o=a?"vuoden":"vuotta"}return function(e,n){return e<10?n?r[e]:t[e]:e}(e,a)+" "+o}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(68945))},69987:function(e,t,r){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(r(68945))},5550:function(e,t,r){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(68945))},49537:function(e,t,r){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(r(68945))},63554:function(e,t,r){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(r(68945))},57126:function(e,t,r){!function(e){"use strict";var t=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,r=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(r(68945))},30956:function(e,t,r){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),r="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?r[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(r(68945))},27677:function(e,t,r){!function(e){"use strict";e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(r(68945))},50291:function(e,t,r){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(r(68945))},88807:function(e,t,r){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(68945))},1018:function(e,t,r){!function(e){"use strict";function t(e,t,r,n){var i={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return n?i[r][0]:i[r][1]}e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){return"D"===t?e+"वेर":e},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,r){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})}(r(68945))},99153:function(e,t,r){!function(e){"use strict";function t(e,t,r,n){var i={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return n?i[r][0]:i[r][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){return"D"===t?e+"er":e},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,r){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(r(68945))},97721:function(e,t,r){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},r={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,r){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(r(68945))},71823:function(e,t,r){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,r){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?r?'לפנה"צ':"לפני הצהריים":e<18?r?'אחה"צ':"אחרי הצהריים":"בערב"}})}(r(68945))},87650:function(e,t,r){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},r={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},n=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i];e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:n,longMonthsParse:n,shortMonthsParse:[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,r){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(r(68945))},73865:function(e,t,r){!function(e){"use strict";function t(e,t,r){var n=e+" ";switch(r){case"ss":return n+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return n+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return n+(1===e?"dan":"dana");case"MM":return n+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return n+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(68945))},28800:function(e,t,r){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function r(e,t,r,n){var i=e;switch(r){case"s":return n||t?"néhány másodperc":"néhány másodperce";case"ss":return i+(n||t)?" másodperc":" másodperce";case"m":return"egy"+(n||t?" perc":" perce");case"mm":return i+(n||t?" perc":" perce");case"h":return"egy"+(n||t?" óra":" órája");case"hh":return i+(n||t?" óra":" órája");case"d":return"egy"+(n||t?" nap":" napja");case"dd":return i+(n||t?" nap":" napja");case"M":return"egy"+(n||t?" hónap":" hónapja");case"MM":return i+(n||t?" hónap":" hónapja");case"y":return"egy"+(n||t?" év":" éve");case"yy":return i+(n||t?" év":" éve")}return""}function n(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,r){return e<12?!0===r?"de":"DE":!0===r?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(68945))},40342:function(e,t,r){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(r(68945))},32202:function(e,t,r){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,r){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(r(68945))},58302:function(e,t,r){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function r(e,r,n,i){var a=e+" ";switch(n){case"s":return r||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?a+(r||i?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return r?"mínúta":"mínútu";case"mm":return t(e)?a+(r||i?"mínútur":"mínútum"):r?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(r||i?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return r?"dagur":i?"dag":"degi";case"dd":return t(e)?r?a+"dagar":a+(i?"daga":"dögum"):r?a+"dagur":a+(i?"dag":"degi");case"M":return r?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?r?a+"mánuðir":a+(i?"mánuði":"mánuðum"):r?a+"mánuður":a+(i?"mánuð":"mánuði");case"y":return r||i?"ár":"ári";case"yy":return t(e)?a+(r||i?"ár":"árum"):a+(r||i?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:r,ss:r,m:r,mm:r,h:"klukkustund",hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(68945))},30904:function(e,t,r){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(68945))},94258:function(e,t,r){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(68945))},12995:function(e,t,r){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,r){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(r(68945))},22009:function(e,t,r){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,r){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(r(68945))},95643:function(e,t,r){!function(e){"use strict";e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,r){return"ი"===r?t+"ში":t+r+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(r(68945))},59377:function(e,t,r){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(r(68945))},80122:function(e,t,r){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},r={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,r){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(r(68945))},44108:function(e,t,r){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},r={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,r){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(r(68945))},98893:function(e,t,r){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,r){return e<12?"오전":"오후"}})}(r(68945))},63321:function(e,t,r){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},r={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:n,monthsShort:n,weekdays:"یهكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه".split("_"),weekdaysShort:"یهكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره|بهیانی/,isPM:function(e){return/ئێواره/.test(e)},meridiem:function(e,t,r){return e<12?"بهیانی":"ئێواره"},calendar:{sameDay:"[ئهمرۆ كاتژمێر] LT",nextDay:"[بهیانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له %s",past:"%s",s:"چهند چركهیهك",ss:"چركه %d",m:"یهك خولهك",mm:"%d خولهك",h:"یهك كاتژمێر",hh:"%d كاتژمێر",d:"یهك ڕۆژ",dd:"%d ڕۆژ",M:"یهك مانگ",MM:"%d مانگ",y:"یهك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return r[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(r(68945))},62214:function(e,t,r){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(r(68945))},27572:function(e,t,r){!function(e){"use strict";function t(e,t,r,n){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?i[r][0]:i[r][1]}function r(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return r(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return r(e)}return r(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return r(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return r(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(68945))},95653:function(e,t,r){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,r){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(r(68945))},39458:function(e,t,r){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function r(e,t,r,n){return t?i(r)[0]:n?i(r)[1]:i(r)[2]}function n(e){return e%10==0||e>10&&e<20}function i(e){return t[e].split("_")}function a(e,t,a,o){var s=e+" ";return 1===e?s+r(0,t,a[0],o):t?s+(n(e)?i(a)[1]:i(a)[0]):o?s+i(a)[1]:s+(n(e)?i(a)[1]:i(a)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,r,n){return t?"kelios sekundės":n?"kelių sekundžių":"kelias sekundes"},ss:a,m:r,mm:a,h:r,hh:a,d:r,dd:a,M:r,MM:a,y:r,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(r(68945))},62241:function(e,t,r){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function r(e,t,r){return r?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function n(e,n,i){return e+" "+r(t[i],e,n)}function i(e,n,i){return r(t[i],e,n)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:n,m:i,mm:n,h:i,hh:n,d:i,dd:n,M:i,MM:n,y:i,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(68945))},86377:function(e,t,r){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,r,n){var i=t.words[n];return 1===n.length?r?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(68945))},97529:function(e,t,r){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(68945))},40403:function(e,t,r){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,r=e%100;return 0===e?e+"-ев":0===r?e+"-ен":r>10&&r<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(r(68945))},969:function(e,t,r){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,r){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(r(68945))},22529:function(e,t,r){!function(e){"use strict";function t(e,t,r,n){switch(r){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,r){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(r(68945))},28209:function(e,t,r){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},r={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function n(e,t,r,n){var i="";if(t)switch(r){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे"}else switch(r){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां"}return i.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,r){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(r(68945))},35448:function(e,t,r){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,r){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(r(68945))},57692:function(e,t,r){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,r){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(r(68945))},89365:function(e,t,r){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(68945))},95552:function(e,t,r){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},r={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(r(68945))},19954:function(e,t,r){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(68945))},84957:function(e,t,r){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},r={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,r){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(r(68945))},49156:function(e,t,r){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),r="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?r[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(r(68945))},97099:function(e,t,r){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),r="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?r[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(r(68945))},54960:function(e,t,r){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(68945))},2333:function(e,t,r){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var r=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(r="a"),e+r},week:{dow:1,doy:4}})}(r(68945))},91344:function(e,t,r){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},r={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,r){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(r(68945))},81886:function(e,t,r){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),r="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),n=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function a(e,t,r){var n=e+" ";switch(r){case"ss":return n+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return n+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return n+(i(e)?"godziny":"godzin");case"ww":return n+(i(e)?"tygodnie":"tygodni");case"MM":return n+(i(e)?"miesiące":"miesięcy");case"yy":return n+(i(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,n){return e?/D MMMM/.test(n)?r[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:a,m:a,mm:a,h:a,hh:a,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:a,M:"miesiąc",MM:a,y:"rok",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(68945))},44884:function(e,t,r){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(r(68945))},43926:function(e,t,r){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(68945))},33464:function(e,t,r){!function(e){"use strict";function t(e,t,r){var n=" ";return(e%100>=20||e>=100&&e%100==0)&&(n=" de "),e+n+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[r]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(r(68945))},1529:function(e,t,r){!function(e){"use strict";function t(e,t,r){return"m"===r?t?"минута":"минуту":e+" "+(n=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[r].split("_"),n%10==1&&n%100!=11?i[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?i[1]:i[2]);var n,i}var r=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,w:"неделя",ww:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,r){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(r(68945))},85918:function(e,t,r){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],r=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:r,weekdaysShort:r,weekdaysMin:r,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,r){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(r(68945))},843:function(e,t,r){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(68945))},92433:function(e,t,r){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,r){return e>11?r?"ප.ව.":"පස් වරු":r?"පෙ.ව.":"පෙර වරු"}})}(r(68945))},70:function(e,t,r){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),r="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function n(e){return e>1&&e<5}function i(e,t,r,i){var a=e+" ";switch(r){case"s":return t||i?"pár sekúnd":"pár sekundami";case"ss":return t||i?a+(n(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?a+(n(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?a+(n(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?a+(n(e)?"dni":"dní"):a+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?a+(n(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?a+(n(e)?"roky":"rokov"):a+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:r,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(68945))},22094:function(e,t,r){!function(e){"use strict";function t(e,t,r,n){var i=e+" ";switch(r){case"s":return t||n?"nekaj sekund":"nekaj sekundami";case"ss":return i+(1===e?t?"sekundo":"sekundi":2===e?t||n?"sekundi":"sekundah":e<5?t||n?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return i+(1===e?t?"minuta":"minuto":2===e?t||n?"minuti":"minutama":e<5?t||n?"minute":"minutami":t||n?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return i+(1===e?t?"ura":"uro":2===e?t||n?"uri":"urama":e<5?t||n?"ure":"urami":t||n?"ur":"urami");case"d":return t||n?"en dan":"enim dnem";case"dd":return i+(1===e?t||n?"dan":"dnem":2===e?t||n?"dni":"dnevoma":t||n?"dni":"dnevi");case"M":return t||n?"en mesec":"enim mesecem";case"MM":return i+(1===e?t||n?"mesec":"mesecem":2===e?t||n?"meseca":"mesecema":e<5?t||n?"mesece":"meseci":t||n?"mesecev":"meseci");case"y":return t||n?"eno leto":"enim letom";case"yy":return i+(1===e?t||n?"leto":"letom":2===e?t||n?"leti":"letoma":e<5?t||n?"leta":"leti":t||n?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(68945))},72307:function(e,t,r){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,r){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(68945))},22424:function(e,t,r){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,r,n,i){var a,o=t.words[n];return 1===n.length?"y"===n&&r?"једна година":i||r?o[0]:o[1]:(a=t.correctGrammaticalCase(e,o),"yy"===n&&r&&"годину"===a?e+" година":e+" "+a)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(68945))},19449:function(e,t,r){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,r,n,i){var a,o=t.words[n];return 1===n.length?"y"===n&&r?"jedna godina":i||r?o[0]:o[1]:(a=t.correctGrammaticalCase(e,o),"yy"===n&&r&&"godinu"===a?e+" godina":e+" "+a)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(68945))},93586:function(e,t,r){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,r){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(r(68945))},40902:function(e,t,r){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(r(68945))},58466:function(e,t,r){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(r(68945))},82953:function(e,t,r){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},r={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,r){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(r(68945))},22598:function(e,t,r){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,r){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(r(68945))},92586:function(e,t,r){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(r(68945))},35115:function(e,t,r){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,r){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(r(68945))},6506:function(e,t,r){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,r){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(r(68945))},77084:function(e,t,r){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,r){switch(r){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(r(68945))},61080:function(e,t,r){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(r(68945))},54205:function(e,t,r){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function r(e,r,n,i){var a=function(e){var r=Math.floor(e%1e3/100),n=Math.floor(e%100/10),i=e%10,a="";return r>0&&(a+=t[r]+"vatlh"),n>0&&(a+=(""!==a?" ":"")+t[n]+"maH"),i>0&&(a+=(""!==a?" ":"")+t[i]),""===a?"pagh":a}(e);switch(n){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:r,m:"wa’ tup",mm:r,h:"wa’ rep",hh:r,d:"wa’ jaj",dd:r,M:"wa’ jar",MM:r,y:"wa’ DIS",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(68945))},17825:function(e,t,r){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,r){return e<12?r?"öö":"ÖÖ":r?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,r){switch(r){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(r(68945))},99191:function(e,t,r){!function(e){"use strict";function t(e,t,r,n){var i={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return n||t?i[r][0]:i[r][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,r){return e>11?r?"d'o":"D'O":r?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(68945))},22503:function(e,t,r){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(r(68945))},94394:function(e,t,r){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(r(68945))},95800:function(e,t,r){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,r){var n=100*e+t;return n<600?"يېرىم كېچە":n<900?"سەھەر":n<1130?"چۈشتىن بۇرۇن":n<1230?"چۈش":n<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(r(68945))},74409:function(e,t,r){!function(e){"use strict";function t(e,t,r){return"m"===r?t?"хвилина":"хвилину":"h"===r?t?"година":"годину":e+" "+(n=+e,i={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[r].split("_"),n%10==1&&n%100!=11?i[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?i[1]:i[2]);var n,i}function r(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var r={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?r.nominative.slice(1,7).concat(r.nominative.slice(0,1)):e?r[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:r.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:r("[Сьогодні "),nextDay:r("[Завтра "),lastDay:r("[Вчора "),nextWeek:r("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return r("[Минулої] dddd [").call(this);case 1:case 2:case 4:return r("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,r){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(r(68945))},55096:function(e,t,r){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],r=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:r,weekdaysShort:r,weekdaysMin:r,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,r){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(r(68945))},64546:function(e,t,r){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(r(68945))},63133:function(e,t,r){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(r(68945))},68640:function(e,t,r){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,r){return e<12?r?"sa":"SA":r?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(r(68945))},15170:function(e,t,r){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(r(68945))},52876:function(e,t,r){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(r(68945))},23390:function(e,t,r){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,r){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(r(68945))},2358:function(e,t,r){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,r){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1200?"上午":1200===n?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(r(68945))},67908:function(e,t,r){!function(e){"use strict";e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,r){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(r(68945))},44:function(e,t,r){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,r){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(r(68945))},68945:function(e,t,r){e=r.nmd(e);var n=r(51266);e.exports=function(){"use strict";var t,i;function a(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(l(e,t))return!1;return!0}function c(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function h(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var r,n=[],i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function p(e,t){for(var r in t)l(t,r)&&(e[r]=t[r]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,r,n){return kt(e,t,r,n,!0).utc()}function g(e){return null==e._pf&&(e._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}),e._pf}function v(e){if(null==e._isValid){var t=g(e),r=i.call(t.parsedDateParts,(function(e){return null!=e})),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function y(e){var t=m(NaN);return null!=e?p(g(t),e):g(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){var t,r=Object(this),n=r.length>>>0;for(t=0;t<n;t++)if(t in r&&e.call(this,r[t],t,r))return!0;return!1};var _=a.momentProperties=[],b=!1;function M(e,t){var r,n,i,a=_.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=g(t)),c(t._locale)||(e._locale=t._locale),a>0)for(r=0;r<a;r++)c(i=t[n=_[r]])||(e[n]=i);return e}function w(e){M(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,a.updateOffset(this),b=!1)}function T(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function L(e){!1===a.suppressDeprecationWarnings&&void 0!==n&&n.warn&&n.warn("Deprecation warning: "+e)}function S(e,t){var r=!0;return p((function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,e),r){var n,i,o,s=[],u=arguments.length;for(i=0;i<u;i++){if(n="","object"==typeof arguments[i]){for(o in n+="\n["+i+"] ",arguments[0])l(arguments[0],o)&&(n+=o+": "+arguments[0][o]+", ");n=n.slice(0,-2)}else n=arguments[i];s.push(n)}L(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),r=!1}return t.apply(this,arguments)}),t)}var k,x={};function E(e,t){null!=a.deprecationHandler&&a.deprecationHandler(e,t),x[e]||(L(t),x[e]=!0)}function D(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function A(e,t){var r,n=p({},e);for(r in t)l(t,r)&&(s(e[r])&&s(t[r])?(n[r]={},p(n[r],e[r]),p(n[r],t[r])):null!=t[r]?n[r]=t[r]:delete n[r]);for(r in e)l(e,r)&&!l(t,r)&&s(e[r])&&(n[r]=p({},n[r]));return n}function O(e){null!=e&&this.set(e)}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,k=Object.keys?Object.keys:function(e){var t,r=[];for(t in e)l(e,t)&&r.push(t);return r};function P(e,t,r){var n=""+Math.abs(e),i=t-n.length;return(e>=0?r?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+n}var R=/(\[[^\[]*\])|(\\)?([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,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Y={},C={};function F(e,t,r,n){var i=n;"string"==typeof n&&(i=function(){return this[n]()}),e&&(C[e]=i),t&&(C[t[0]]=function(){return P(i.apply(this,arguments),t[1],t[2])}),r&&(C[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function N(e,t){return e.isValid()?(t=j(t,e.localeData()),Y[t]=Y[t]||function(e){var t,r,n,i=e.match(R);for(t=0,r=i.length;t<r;t++)C[i[t]]?i[t]=C[i[t]]:i[t]=(n=i[t]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(t){var n,a="";for(n=0;n<r;n++)a+=D(i[n])?i[n].call(t,e):i[n];return a}}(t),Y[t](e)):e.localeData().invalidDate()}function j(e,t){var r=5;function n(e){return t.longDateFormat(e)||e}for(I.lastIndex=0;r>=0&&I.test(e);)e=e.replace(I,n),I.lastIndex=0,r-=1;return e}var H={};function B(e,t){var r=e.toLowerCase();H[r]=H[r+"s"]=H[t]=e}function U(e){return"string"==typeof e?H[e]||H[e.toLowerCase()]:void 0}function W(e){var t,r,n={};for(r in e)l(e,r)&&(t=U(r))&&(n[t]=e[r]);return n}var z={};function G(e,t){z[e]=t}function V(e){return e%4==0&&e%100!=0||e%400==0}function K(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function q(e){var t=+e,r=0;return 0!==t&&isFinite(t)&&(r=K(t)),r}function $(e,t){return function(r){return null!=r?(X(this,e,r),a.updateOffset(this,t),this):J(this,e)}}function J(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function X(e,t,r){e.isValid()&&!isNaN(r)&&("FullYear"===t&&V(e.year())&&1===e.month()&&29===e.date()?(r=q(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),Te(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}var Q,Z=/\d/,ee=/\d\d/,te=/\d{3}/,re=/\d{4}/,ne=/[+-]?\d{6}/,ie=/\d\d?/,ae=/\d\d\d\d?/,oe=/\d\d\d\d\d\d?/,se=/\d{1,3}/,le=/\d{1,4}/,ue=/[+-]?\d{1,6}/,ce=/\d+/,de=/[+-]?\d+/,he=/Z|[+-]\d\d:?\d\d/gi,fe=/Z|[+-]\d\d(?::?\d\d)?/gi,pe=/[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;function me(e,t,r){Q[e]=D(t)?t:function(e,n){return e&&r?r:t}}function ge(e,t){return l(Q,e)?Q[e](t._strict,t._locale):new RegExp(ve(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,r,n,i){return t||r||n||i}))))}function ve(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Q={};var ye={};function _e(e,t){var r,n,i=t;for("string"==typeof e&&(e=[e]),d(t)&&(i=function(e,r){r[t]=q(e)}),n=e.length,r=0;r<n;r++)ye[e[r]]=i}function be(e,t){_e(e,(function(e,r,n,i){n._w=n._w||{},t(e,n._w,n,i)}))}function Me(e,t,r){null!=t&&l(ye,e)&&ye[e](t,r._a,r,e)}var we;function Te(e,t){if(isNaN(e)||isNaN(t))return NaN;var r,n=(t%(r=12)+r)%r;return e+=(t-n)/12,1===n?V(e)?29:28:31-n%7%2}we=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},F("M",["MM",2],"Mo",(function(){return this.month()+1})),F("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),F("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),B("month","M"),G("month",8),me("M",ie),me("MM",ie,ee),me("MMM",(function(e,t){return t.monthsShortRegex(e)})),me("MMMM",(function(e,t){return t.monthsRegex(e)})),_e(["M","MM"],(function(e,t){t[1]=q(e)-1})),_e(["MMM","MMMM"],(function(e,t,r,n){var i=r._locale.monthsParse(e,n,r._strict);null!=i?t[1]=i:g(r).invalidMonth=e}));var Le="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Se="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ke=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xe=pe,Ee=pe;function De(e,t,r){var n,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)a=m([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase();return r?"MMM"===t?-1!==(i=we.call(this._shortMonthsParse,o))?i:null:-1!==(i=we.call(this._longMonthsParse,o))?i:null:"MMM"===t?-1!==(i=we.call(this._shortMonthsParse,o))||-1!==(i=we.call(this._longMonthsParse,o))?i:null:-1!==(i=we.call(this._longMonthsParse,o))||-1!==(i=we.call(this._shortMonthsParse,o))?i:null}function Ae(e,t){var r;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=q(t);else if(!d(t=e.localeData().monthsParse(t)))return e;return r=Math.min(e.date(),Te(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r),e}function Oe(e){return null!=e?(Ae(this,e),a.updateOffset(this,!0),this):J(this,"Month")}function Pe(){function e(e,t){return t.length-e.length}var t,r,n=[],i=[],a=[];for(t=0;t<12;t++)r=m([2e3,t]),n.push(this.monthsShort(r,"")),i.push(this.months(r,"")),a.push(this.months(r,"")),a.push(this.monthsShort(r,""));for(n.sort(e),i.sort(e),a.sort(e),t=0;t<12;t++)n[t]=ve(n[t]),i[t]=ve(i[t]);for(t=0;t<24;t++)a[t]=ve(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Re(e){return V(e)?366:365}F("Y",0,0,(function(){var e=this.year();return e<=9999?P(e,4):"+"+e})),F(0,["YY",2],0,(function(){return this.year()%100})),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),B("year","y"),G("year",1),me("Y",de),me("YY",ie,ee),me("YYYY",le,re),me("YYYYY",ue,ne),me("YYYYYY",ue,ne),_e(["YYYYY","YYYYYY"],0),_e("YYYY",(function(e,t){t[0]=2===e.length?a.parseTwoDigitYear(e):q(e)})),_e("YY",(function(e,t){t[0]=a.parseTwoDigitYear(e)})),_e("Y",(function(e,t){t[0]=parseInt(e,10)})),a.parseTwoDigitYear=function(e){return q(e)+(q(e)>68?1900:2e3)};var Ie=$("FullYear",!0);function Ye(e,t,r,n,i,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,r,n,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,i,a,o),s}function Ce(e){var t,r;return e<100&&e>=0?((r=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Fe(e,t,r){var n=7+t-r;return-(7+Ce(e,0,n).getUTCDay()-t)%7+n-1}function Ne(e,t,r,n,i){var a,o,s=1+7*(t-1)+(7+r-n)%7+Fe(e,n,i);return s<=0?o=Re(a=e-1)+s:s>Re(e)?(a=e+1,o=s-Re(e)):(a=e,o=s),{year:a,dayOfYear:o}}function je(e,t,r){var n,i,a=Fe(e.year(),t,r),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?n=o+He(i=e.year()-1,t,r):o>He(e.year(),t,r)?(n=o-He(e.year(),t,r),i=e.year()+1):(i=e.year(),n=o),{week:n,year:i}}function He(e,t,r){var n=Fe(e,t,r),i=Fe(e+1,t,r);return(Re(e)-n+i)/7}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),B("week","w"),B("isoWeek","W"),G("week",5),G("isoWeek",5),me("w",ie),me("ww",ie,ee),me("W",ie),me("WW",ie,ee),be(["w","ww","W","WW"],(function(e,t,r,n){t[n.substr(0,1)]=q(e)}));function Be(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("d",0,"do","day"),F("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),F("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),F("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),B("day","d"),B("weekday","e"),B("isoWeekday","E"),G("day",11),G("weekday",11),G("isoWeekday",11),me("d",ie),me("e",ie),me("E",ie),me("dd",(function(e,t){return t.weekdaysMinRegex(e)})),me("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),me("dddd",(function(e,t){return t.weekdaysRegex(e)})),be(["dd","ddd","dddd"],(function(e,t,r,n){var i=r._locale.weekdaysParse(e,n,r._strict);null!=i?t.d=i:g(r).invalidWeekday=e})),be(["d","e","E"],(function(e,t,r,n){t[n]=q(e)}));var Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),We="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ge=pe,Ve=pe,Ke=pe;function qe(e,t,r){var n,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=m([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(i=we.call(this._weekdaysParse,o))?i:null:"ddd"===t?-1!==(i=we.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=we.call(this._minWeekdaysParse,o))?i:null:"dddd"===t?-1!==(i=we.call(this._weekdaysParse,o))||-1!==(i=we.call(this._shortWeekdaysParse,o))||-1!==(i=we.call(this._minWeekdaysParse,o))?i:null:"ddd"===t?-1!==(i=we.call(this._shortWeekdaysParse,o))||-1!==(i=we.call(this._weekdaysParse,o))||-1!==(i=we.call(this._minWeekdaysParse,o))?i:null:-1!==(i=we.call(this._minWeekdaysParse,o))||-1!==(i=we.call(this._weekdaysParse,o))||-1!==(i=we.call(this._shortWeekdaysParse,o))?i:null}function $e(){function e(e,t){return t.length-e.length}var t,r,n,i,a,o=[],s=[],l=[],u=[];for(t=0;t<7;t++)r=m([2e3,1]).day(t),n=ve(this.weekdaysMin(r,"")),i=ve(this.weekdaysShort(r,"")),a=ve(this.weekdays(r,"")),o.push(n),s.push(i),l.push(a),u.push(n),u.push(i),u.push(a);o.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Je(){return this.hours()%12||12}function Xe(e,t){F(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Qe(e,t){return t._meridiemParse}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Je),F("k",["kk",2],0,(function(){return this.hours()||24})),F("hmm",0,0,(function(){return""+Je.apply(this)+P(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+Je.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+P(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)})),Xe("a",!0),Xe("A",!1),B("hour","h"),G("hour",13),me("a",Qe),me("A",Qe),me("H",ie),me("h",ie),me("k",ie),me("HH",ie,ee),me("hh",ie,ee),me("kk",ie,ee),me("hmm",ae),me("hmmss",oe),me("Hmm",ae),me("Hmmss",oe),_e(["H","HH"],3),_e(["k","kk"],(function(e,t,r){var n=q(e);t[3]=24===n?0:n})),_e(["a","A"],(function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e})),_e(["h","hh"],(function(e,t,r){t[3]=q(e),g(r).bigHour=!0})),_e("hmm",(function(e,t,r){var n=e.length-2;t[3]=q(e.substr(0,n)),t[4]=q(e.substr(n)),g(r).bigHour=!0})),_e("hmmss",(function(e,t,r){var n=e.length-4,i=e.length-2;t[3]=q(e.substr(0,n)),t[4]=q(e.substr(n,2)),t[5]=q(e.substr(i)),g(r).bigHour=!0})),_e("Hmm",(function(e,t,r){var n=e.length-2;t[3]=q(e.substr(0,n)),t[4]=q(e.substr(n))})),_e("Hmmss",(function(e,t,r){var n=e.length-4,i=e.length-2;t[3]=q(e.substr(0,n)),t[4]=q(e.substr(n,2)),t[5]=q(e.substr(i))}));var Ze=$("Hours",!0);var et,tt={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:Le,monthsShort:Se,week:{dow:0,doy:6},weekdays:Ue,weekdaysMin:ze,weekdaysShort:We,meridiemParse:/[ap]\.?m?\.?/i},rt={},nt={};function it(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function at(e){return e?e.toLowerCase().replace("_","-"):e}function ot(t){var n=null;if(void 0===rt[t]&&e&&e.exports&&function(e){return null!=e.match("^[^/\\\\]*$")}(t))try{n=et._abbr,r(96616)("./"+t),st(n)}catch(e){rt[t]=null}return rt[t]}function st(e,t){var r;return e&&((r=c(t)?ut(e):lt(e,t))?et=r:void 0!==n&&n.warn&&n.warn("Locale "+e+" not found. Did you forget to load it?")),et._abbr}function lt(e,t){if(null!==t){var r,n=tt;if(t.abbr=e,null!=rt[e])E("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."),n=rt[e]._config;else if(null!=t.parentLocale)if(null!=rt[t.parentLocale])n=rt[t.parentLocale]._config;else{if(null==(r=ot(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;n=r._config}return rt[e]=new O(A(n,t)),nt[e]&&nt[e].forEach((function(e){lt(e.name,e.config)})),st(e),rt[e]}return delete rt[e],null}function ut(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return et;if(!o(e)){if(t=ot(e))return t;e=[e]}return function(e){for(var t,r,n,i,a=0;a<e.length;){for(t=(i=at(e[a]).split("-")).length,r=(r=at(e[a+1]))?r.split("-"):null;t>0;){if(n=ot(i.slice(0,t).join("-")))return n;if(r&&r.length>=t&&it(i,r)>=t-1)break;t--}a++}return et}(e)}function ct(e){var t,r=e._a;return r&&-2===g(e).overflow&&(t=r[1]<0||r[1]>11?1:r[2]<1||r[2]>Te(r[0],r[1])?2:r[3]<0||r[3]>24||24===r[3]&&(0!==r[4]||0!==r[5]||0!==r[6])?3:r[4]<0||r[4]>59?4:r[5]<0||r[5]>59?5:r[6]<0||r[6]>999?6:-1,g(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),g(e)._overflowWeeks&&-1===t&&(t=7),g(e)._overflowWeekday&&-1===t&&(t=8),g(e).overflow=t),e}var dt=/^\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)?)?$/,ht=/^\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)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["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]],mt=[["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/]],gt=/^\/?Date\((-?\d+)/i,vt=/^(?:(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}))$/,yt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _t(e){var t,r,n,i,a,o,s=e._i,l=dt.exec(s)||ht.exec(s),u=pt.length,c=mt.length;if(l){for(g(e).iso=!0,t=0,r=u;t<r;t++)if(pt[t][1].exec(l[1])){i=pt[t][0],n=!1!==pt[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,r=c;t<r;t++)if(mt[t][1].exec(l[3])){a=(l[2]||" ")+mt[t][0];break}if(null==a)return void(e._isValid=!1)}if(!n&&null!=a)return void(e._isValid=!1);if(l[4]){if(!ft.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=i+(a||"")+(o||""),Lt(e)}else e._isValid=!1}function bt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Mt(e){var t,r,n,i,a,o,s,l,u=vt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(r=u[4],n=u[3],i=u[2],a=u[5],o=u[6],s=u[7],l=[bt(r),Se.indexOf(n),parseInt(i,10),parseInt(a,10),parseInt(o,10)],s&&l.push(parseInt(s,10)),t=l,!function(e,t,r){return!e||We.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(r).weekdayMismatch=!0,r._isValid=!1,!1)}(u[1],t,e))return;e._a=t,e._tzm=function(e,t,r){if(e)return yt[e];if(t)return 0;var n=parseInt(r,10),i=n%100;return(n-i)/100*60+i}(u[8],u[9],u[10]),e._d=Ce.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function wt(e,t,r){return null!=e?e:null!=t?t:r}function Tt(e){var t,r,n,i,o,s=[];if(!e._d){for(n=function(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,r,n,i,a,o,s,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,o=4,r=wt(t.GG,e._a[0],je(xt(),1,4).year),n=wt(t.W,1),((i=wt(t.E,1))<1||i>7)&&(l=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,u=je(xt(),a,o),r=wt(t.gg,e._a[0],u.year),n=wt(t.w,u.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),n<1||n>He(r,a,o)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(s=Ne(r,n,i,a,o),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=wt(e._a[0],n[0]),(e._dayOfYear>Re(o)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),r=Ce(o,0,e._dayOfYear),e._a[1]=r.getUTCMonth(),e._a[2]=r.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=n[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ce:Ye).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function Lt(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],g(e).empty=!0;var t,r,n,i,o,s,l,u=""+e._i,c=u.length,d=0;for(l=(n=j(e._f,e._locale).match(R)||[]).length,t=0;t<l;t++)i=n[t],(r=(u.match(ge(i,e))||[])[0])&&((o=u.substr(0,u.indexOf(r))).length>0&&g(e).unusedInput.push(o),u=u.slice(u.indexOf(r)+r.length),d+=r.length),C[i]?(r?g(e).empty=!1:g(e).unusedTokens.push(i),Me(i,r,e)):e._strict&&!r&&g(e).unusedTokens.push(i);g(e).charsLeftOver=c-d,u.length>0&&g(e).unusedInput.push(u),e._a[3]<=12&&!0===g(e).bigHour&&e._a[3]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[3]=function(e,t,r){var n;return null==r?t:null!=e.meridiemHour?e.meridiemHour(t,r):null!=e.isPM?((n=e.isPM(r))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=g(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),Tt(e),ct(e)}else Mt(e);else _t(e)}function St(e){var t=e._i,r=e._f;return e._locale=e._locale||ut(e._l),null===t||void 0===r&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),T(t)?new w(ct(t)):(h(t)?e._d=t:o(r)?function(e){var t,r,n,i,a,o,s=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<l;i++)a=0,o=!1,t=M({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Lt(t),v(t)&&(o=!0),a+=g(t).charsLeftOver,a+=10*g(t).unusedTokens.length,g(t).score=a,s?a<n&&(n=a,r=t):(null==n||a<n||o)&&(n=a,r=t,o&&(s=!0));p(e,r||t)}(e):r?Lt(e):function(e){var t=e._i;c(t)?e._d=new Date(a.now()):h(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=gt.exec(e._i);null===t?(_t(e),!1===e._isValid&&(delete e._isValid,Mt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:a.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):o(t)?(e._a=f(t.slice(0),(function(e){return parseInt(e,10)})),Tt(e)):s(t)?function(e){if(!e._d){var t=W(e._i),r=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Tt(e)}}(e):d(t)?e._d=new Date(t):a.createFromInputFallback(e)}(e),v(e)||(e._d=null),e))}function kt(e,t,r,n,i){var a,l={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==r&&!1!==r||(n=r,r=void 0),(s(e)&&u(e)||o(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=i,l._l=r,l._i=e,l._f=t,l._strict=n,(a=new w(ct(St(l))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function xt(e,t,r,n){return kt(e,t,r,n,!1)}a.createFromInputFallback=S("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(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),a.ISO_8601=function(){},a.RFC_2822=function(){};var Et=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=xt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),Dt=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=xt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function At(e,t){var r,n;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return xt();for(r=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](r)||(r=t[n]);return r}var Ot=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pt(e){var t=W(e),r=t.year||0,n=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,u=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,r,n=!1,i=Ot.length;for(t in e)if(l(e,t)&&(-1===we.call(Ot,t)||null!=e[t]&&isNaN(e[t])))return!1;for(r=0;r<i;++r)if(e[Ot[r]]){if(n)return!1;parseFloat(e[Ot[r]])!==q(e[Ot[r]])&&(n=!0)}return!0}(t),this._milliseconds=+d+1e3*c+6e4*u+1e3*s*60*60,this._days=+o+7*a,this._months=+i+3*n+12*r,this._data={},this._locale=ut(),this._bubble()}function Rt(e){return e instanceof Pt}function It(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Yt(e,t){F(e,0,0,(function(){var e=this.utcOffset(),r="+";return e<0&&(e=-e,r="-"),r+P(~~(e/60),2)+t+P(~~e%60,2)}))}Yt("Z",":"),Yt("ZZ",""),me("Z",fe),me("ZZ",fe),_e(["Z","ZZ"],(function(e,t,r){r._useUTC=!0,r._tzm=Ft(fe,e)}));var Ct=/([\+\-]|\d\d)/gi;function Ft(e,t){var r,n,i=(t||"").match(e);return null===i?null:0===(n=60*(r=((i[i.length-1]||[])+"").match(Ct)||["-",0,0])[1]+q(r[2]))?0:"+"===r[0]?n:-n}function Nt(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(T(e)||h(e)?e.valueOf():xt(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),a.updateOffset(r,!1),r):xt(e).local()}function jt(e){return-Math.round(e._d.getTimezoneOffset())}function Ht(){return!!this.isValid()&&this._isUTC&&0===this._offset}a.updateOffset=function(){};var Bt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ut=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Wt(e,t){var r,n,i,a,o,s,u=e,c=null;return Rt(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(u={},t?u[t]=+e:u.milliseconds=+e):(c=Bt.exec(e))?(r="-"===c[1]?-1:1,u={y:0,d:q(c[2])*r,h:q(c[3])*r,m:q(c[4])*r,s:q(c[5])*r,ms:q(It(1e3*c[6]))*r}):(c=Ut.exec(e))?(r="-"===c[1]?-1:1,u={y:zt(c[2],r),M:zt(c[3],r),w:zt(c[4],r),d:zt(c[5],r),h:zt(c[6],r),m:zt(c[7],r),s:zt(c[8],r)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(a=xt(u.from),o=xt(u.to),i=a.isValid()&&o.isValid()?(o=Nt(o,a),a.isBefore(o)?s=Gt(a,o):((s=Gt(o,a)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(u={}).ms=i.milliseconds,u.M=i.months),n=new Pt(u),Rt(e)&&l(e,"_locale")&&(n._locale=e._locale),Rt(e)&&l(e,"_isValid")&&(n._isValid=e._isValid),n}function zt(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Gt(e,t){var r={};return r.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Vt(e,t){return function(r,n){var i;return null===n||isNaN(+n)||(E(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),Kt(this,Wt(r,n),e),this}}function Kt(e,t,r,n){var i=t._milliseconds,o=It(t._days),s=It(t._months);e.isValid()&&(n=null==n||n,s&&Ae(e,J(e,"Month")+s*r),o&&X(e,"Date",J(e,"Date")+o*r),i&&e._d.setTime(e._d.valueOf()+i*r),n&&a.updateOffset(e,o||s))}Wt.fn=Pt.prototype,Wt.invalid=function(){return Wt(NaN)};var qt=Vt(1,"add"),$t=Vt(-1,"subtract");function Jt(e){return"string"==typeof e||e instanceof String}function Xt(e){return T(e)||h(e)||Jt(e)||d(e)||function(e){var t=o(e),r=!1;return t&&(r=0===e.filter((function(t){return!d(t)&&Jt(e)})).length),t&&r}(e)||function(e){var t,r,n=s(e)&&!u(e),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=a.length;for(t=0;t<o;t+=1)r=a[t],i=i||l(e,r);return n&&i}(e)||null==e}function Qt(e){var t,r=s(e)&&!u(e),n=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)n=n||l(e,i[t]);return r&&n}function Zt(e,t){if(e.date()<t.date())return-Zt(t,e);var r=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(r,"months");return-(r+(t-n<0?(t-n)/(n-e.clone().add(r-1,"months")):(t-n)/(e.clone().add(r+1,"months")-n)))||0}function er(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ut(e))&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tr=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function rr(){return this._locale}var nr=1e3,ir=6e4,ar=36e5,or=126227808e5;function sr(e,t){return(e%t+t)%t}function lr(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-or:new Date(e,t,r).valueOf()}function ur(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-or:Date.UTC(e,t,r)}function cr(e,t){return t.erasAbbrRegex(e)}function dr(){var e,t,r=[],n=[],i=[],a=[],o=this.eras();for(e=0,t=o.length;e<t;++e)n.push(ve(o[e].name)),r.push(ve(o[e].abbr)),i.push(ve(o[e].narrow)),a.push(ve(o[e].name)),a.push(ve(o[e].abbr)),a.push(ve(o[e].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function hr(e,t){F(0,[e,e.length],0,t)}function fr(e,t,r,n,i){var a;return null==e?je(this,n,i).year:(t>(a=He(e,n,i))&&(t=a),pr.call(this,e,t,r,n,i))}function pr(e,t,r,n,i){var a=Ne(e,t,r,n,i),o=Ce(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),me("N",cr),me("NN",cr),me("NNN",cr),me("NNNN",(function(e,t){return t.erasNameRegex(e)})),me("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),_e(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,r,n){var i=r._locale.erasParse(e,n,r._strict);i?g(r).era=i:g(r).invalidEra=e})),me("y",ce),me("yy",ce),me("yyy",ce),me("yyyy",ce),me("yo",(function(e,t){return t._eraYearOrdinalRegex||ce})),_e(["y","yy","yyy","yyyy"],0),_e(["yo"],(function(e,t,r,n){var i;r._locale._eraYearOrdinalRegex&&(i=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[0]=r._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),hr("gggg","weekYear"),hr("ggggg","weekYear"),hr("GGGG","isoWeekYear"),hr("GGGGG","isoWeekYear"),B("weekYear","gg"),B("isoWeekYear","GG"),G("weekYear",1),G("isoWeekYear",1),me("G",de),me("g",de),me("GG",ie,ee),me("gg",ie,ee),me("GGGG",le,re),me("gggg",le,re),me("GGGGG",ue,ne),me("ggggg",ue,ne),be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,r,n){t[n.substr(0,2)]=q(e)})),be(["gg","GG"],(function(e,t,r,n){t[n]=a.parseTwoDigitYear(e)})),F("Q",0,"Qo","quarter"),B("quarter","Q"),G("quarter",7),me("Q",Z),_e("Q",(function(e,t){t[1]=3*(q(e)-1)})),F("D",["DD",2],"Do","date"),B("date","D"),G("date",9),me("D",ie),me("DD",ie,ee),me("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),_e(["D","DD"],2),_e("Do",(function(e,t){t[2]=q(e.match(ie)[0])}));var mr=$("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),B("dayOfYear","DDD"),G("dayOfYear",4),me("DDD",se),me("DDDD",te),_e(["DDD","DDDD"],(function(e,t,r){r._dayOfYear=q(e)})),F("m",["mm",2],0,"minute"),B("minute","m"),G("minute",14),me("m",ie),me("mm",ie,ee),_e(["m","mm"],4);var gr=$("Minutes",!1);F("s",["ss",2],0,"second"),B("second","s"),G("second",15),me("s",ie),me("ss",ie,ee),_e(["s","ss"],5);var vr,yr,_r=$("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),B("millisecond","ms"),G("millisecond",16),me("S",se,Z),me("SS",se,ee),me("SSS",se,te),vr="SSSS";vr.length<=9;vr+="S")me(vr,ce);function br(e,t){t[6]=q(1e3*("0."+e))}for(vr="S";vr.length<=9;vr+="S")_e(vr,br);yr=$("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var Mr=w.prototype;function wr(e){return e}Mr.add=qt,Mr.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):Qt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||xt(),n=Nt(r,this).startOf("day"),i=a.calendarFormat(this,n)||"sameElse",o=t&&(D(t[i])?t[i].call(this,r):t[i]);return this.format(o||this.localeData().calendar(i,this,xt(r)))},Mr.clone=function(){return new w(this)},Mr.diff=function(e,t,r){var n,i,a;if(!this.isValid())return NaN;if(!(n=Nt(e,this)).isValid())return NaN;switch(i=6e4*(n.utcOffset()-this.utcOffset()),t=U(t)){case"year":a=Zt(this,n)/12;break;case"month":a=Zt(this,n);break;case"quarter":a=Zt(this,n)/3;break;case"second":a=(this-n)/1e3;break;case"minute":a=(this-n)/6e4;break;case"hour":a=(this-n)/36e5;break;case"day":a=(this-n-i)/864e5;break;case"week":a=(this-n-i)/6048e5;break;default:a=this-n}return r?a:K(a)},Mr.endOf=function(e){var t,r;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?ur:lr,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=ar-sr(t+(this._isUTC?0:this.utcOffset()*ir),ar)-1;break;case"minute":t=this._d.valueOf(),t+=ir-sr(t,ir)-1;break;case"second":t=this._d.valueOf(),t+=nr-sr(t,nr)-1}return this._d.setTime(t),a.updateOffset(this,!0),this},Mr.format=function(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=N(this,e);return this.localeData().postformat(t)},Mr.from=function(e,t){return this.isValid()&&(T(e)&&e.isValid()||xt(e).isValid())?Wt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Mr.fromNow=function(e){return this.from(xt(),e)},Mr.to=function(e,t){return this.isValid()&&(T(e)&&e.isValid()||xt(e).isValid())?Wt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Mr.toNow=function(e){return this.to(xt(),e)},Mr.get=function(e){return D(this[e=U(e)])?this[e]():this},Mr.invalidAt=function(){return g(this).overflow},Mr.isAfter=function(e,t){var r=T(e)?e:xt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf())},Mr.isBefore=function(e,t){var r=T(e)?e:xt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf())},Mr.isBetween=function(e,t,r,n){var i=T(e)?e:xt(e),a=T(t)?t:xt(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(n=n||"()")[0]?this.isAfter(i,r):!this.isBefore(i,r))&&(")"===n[1]?this.isBefore(a,r):!this.isAfter(a,r))},Mr.isSame=function(e,t){var r,n=T(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf()))},Mr.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},Mr.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},Mr.isValid=function(){return v(this)},Mr.lang=tr,Mr.locale=er,Mr.localeData=rr,Mr.max=Dt,Mr.min=Et,Mr.parsingFlags=function(){return p({},g(this))},Mr.set=function(e,t){if("object"==typeof e){var r,n=function(e){var t,r=[];for(t in e)l(e,t)&&r.push({unit:t,priority:z[t]});return r.sort((function(e,t){return e.priority-t.priority})),r}(e=W(e)),i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(D(this[e=U(e)]))return this[e](t);return this},Mr.startOf=function(e){var t,r;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?ur:lr,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=sr(t+(this._isUTC?0:this.utcOffset()*ir),ar);break;case"minute":t=this._d.valueOf(),t-=sr(t,ir);break;case"second":t=this._d.valueOf(),t-=sr(t,nr)}return this._d.setTime(t),a.updateOffset(this,!0),this},Mr.subtract=$t,Mr.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Mr.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},Mr.toDate=function(){return new Date(this.valueOf())},Mr.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?N(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(r,"Z")):N(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Mr.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,r,n="moment",i="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+n+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",r=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+r)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Mr[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Mr.toJSON=function(){return this.isValid()?this.toISOString():null},Mr.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Mr.unix=function(){return Math.floor(this.valueOf()/1e3)},Mr.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Mr.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Mr.eraName=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].name;if(n[e].until<=r&&r<=n[e].since)return n[e].name}return""},Mr.eraNarrow=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].narrow;if(n[e].until<=r&&r<=n[e].since)return n[e].narrow}return""},Mr.eraAbbr=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].abbr;if(n[e].until<=r&&r<=n[e].since)return n[e].abbr}return""},Mr.eraYear=function(){var e,t,r,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=i[e].since<=i[e].until?1:-1,n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until||i[e].until<=n&&n<=i[e].since)return(this.year()-a(i[e].since).year())*r+i[e].offset;return this.year()},Mr.year=Ie,Mr.isLeapYear=function(){return V(this.year())},Mr.weekYear=function(e){return fr.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Mr.isoWeekYear=function(e){return fr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Mr.quarter=Mr.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Mr.month=Oe,Mr.daysInMonth=function(){return Te(this.year(),this.month())},Mr.week=Mr.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Mr.isoWeek=Mr.isoWeeks=function(e){var t=je(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Mr.weeksInYear=function(){var e=this.localeData()._week;return He(this.year(),e.dow,e.doy)},Mr.weeksInWeekYear=function(){var e=this.localeData()._week;return He(this.weekYear(),e.dow,e.doy)},Mr.isoWeeksInYear=function(){return He(this.year(),1,4)},Mr.isoWeeksInISOWeekYear=function(){return He(this.isoWeekYear(),1,4)},Mr.date=mr,Mr.day=Mr.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},Mr.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Mr.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},Mr.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Mr.hour=Mr.hours=Ze,Mr.minute=Mr.minutes=gr,Mr.second=Mr.seconds=_r,Mr.millisecond=Mr.milliseconds=yr,Mr.utcOffset=function(e,t,r){var n,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ft(fe,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(n=jt(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),i!==e&&(!t||this._changeInProgress?Kt(this,Wt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:jt(this)},Mr.utc=function(e){return this.utcOffset(0,e)},Mr.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(jt(this),"m")),this},Mr.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ft(he,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},Mr.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?xt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},Mr.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Mr.isLocal=function(){return!!this.isValid()&&!this._isUTC},Mr.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Mr.isUtc=Ht,Mr.isUTC=Ht,Mr.zoneAbbr=function(){return this._isUTC?"UTC":""},Mr.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Mr.dates=S("dates accessor is deprecated. Use date instead.",mr),Mr.months=S("months accessor is deprecated. Use month instead",Oe),Mr.years=S("years accessor is deprecated. Use year instead",Ie),Mr.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),Mr.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return M(t,this),(t=St(t))._a?(e=t._isUTC?m(t._a):xt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,r){var n,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(n=0;n<i;n++)(r&&e[n]!==t[n]||!r&&q(e[n])!==q(t[n]))&&o++;return o+a}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Tr=O.prototype;function Lr(e,t,r,n){var i=ut(),a=m().set(n,t);return i[r](a,e)}function Sr(e,t,r){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return Lr(e,t,r,"month");var n,i=[];for(n=0;n<12;n++)i[n]=Lr(e,n,r,"month");return i}function kr(e,t,r,n){"boolean"==typeof e?(d(t)&&(r=t,t=void 0),t=t||""):(r=t=e,e=!1,d(t)&&(r=t,t=void 0),t=t||"");var i,a=ut(),o=e?a._week.dow:0,s=[];if(null!=r)return Lr(t,(r+o)%7,n,"day");for(i=0;i<7;i++)s[i]=Lr(t,(i+o)%7,n,"day");return s}Tr.calendar=function(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return D(n)?n.call(t,r):n},Tr.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(R).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},Tr.invalidDate=function(){return this._invalidDate},Tr.ordinal=function(e){return this._ordinal.replace("%d",e)},Tr.preparse=wr,Tr.postformat=wr,Tr.relativeTime=function(e,t,r,n){var i=this._relativeTime[r];return D(i)?i(e,t,r,n):i.replace(/%d/i,e)},Tr.pastFuture=function(e,t){var r=this._relativeTime[e>0?"future":"past"];return D(r)?r(t):r.replace(/%s/i,t)},Tr.set=function(e){var t,r;for(r in e)l(e,r)&&(D(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Tr.eras=function(e,t){var r,n,i,o=this._eras||ut("en")._eras;for(r=0,n=o.length;r<n;++r)switch("string"==typeof o[r].since&&(i=a(o[r].since).startOf("day"),o[r].since=i.valueOf()),typeof o[r].until){case"undefined":o[r].until=1/0;break;case"string":i=a(o[r].until).startOf("day").valueOf(),o[r].until=i.valueOf()}return o},Tr.erasParse=function(e,t,r){var n,i,a,o,s,l=this.eras();for(e=e.toUpperCase(),n=0,i=l.length;n<i;++n)if(a=l[n].name.toUpperCase(),o=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[n];break;case"NNNN":if(a===e)return l[n];break;case"NNNNN":if(s===e)return l[n]}else if([a,o,s].indexOf(e)>=0)return l[n]},Tr.erasConvertYear=function(e,t){var r=e.since<=e.until?1:-1;return void 0===t?a(e.since).year():a(e.since).year()+(t-e.offset)*r},Tr.erasAbbrRegex=function(e){return l(this,"_erasAbbrRegex")||dr.call(this),e?this._erasAbbrRegex:this._erasRegex},Tr.erasNameRegex=function(e){return l(this,"_erasNameRegex")||dr.call(this),e?this._erasNameRegex:this._erasRegex},Tr.erasNarrowRegex=function(e){return l(this,"_erasNarrowRegex")||dr.call(this),e?this._erasNarrowRegex:this._erasRegex},Tr.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ke).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},Tr.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ke.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Tr.monthsParse=function(e,t,r){var n,i,a;if(this._monthsParseExact)return De.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(i=m([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(r&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}},Tr.monthsRegex=function(e){return this._monthsParseExact?(l(this,"_monthsRegex")||Pe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Ee),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Tr.monthsShortRegex=function(e){return this._monthsParseExact?(l(this,"_monthsRegex")||Pe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=xe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Tr.week=function(e){return je(e,this._week.dow,this._week.doy).week},Tr.firstDayOfYear=function(){return this._week.doy},Tr.firstDayOfWeek=function(){return this._week.dow},Tr.weekdays=function(e,t){var r=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Be(r,this._week.dow):e?r[e.day()]:r},Tr.weekdaysMin=function(e){return!0===e?Be(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Tr.weekdaysShort=function(e){return!0===e?Be(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Tr.weekdaysParse=function(e,t,r){var n,i,a;if(this._weekdaysParseExact)return qe.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=m([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(r&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(r&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}},Tr.weekdaysRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ge),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Tr.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ve),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Tr.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ke),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Tr.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Tr.meridiem=function(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"},st("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(e){var t=e%10;return e+(1===q(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=S("moment.lang is deprecated. Use moment.locale instead.",st),a.langData=S("moment.langData is deprecated. Use moment.localeData instead.",ut);var xr=Math.abs;function Er(e,t,r,n){var i=Wt(t,r);return e._milliseconds+=n*i._milliseconds,e._days+=n*i._days,e._months+=n*i._months,e._bubble()}function Dr(e){return e<0?Math.floor(e):Math.ceil(e)}function Ar(e){return 4800*e/146097}function Or(e){return 146097*e/4800}function Pr(e){return function(){return this.as(e)}}var Rr=Pr("ms"),Ir=Pr("s"),Yr=Pr("m"),Cr=Pr("h"),Fr=Pr("d"),Nr=Pr("w"),jr=Pr("M"),Hr=Pr("Q"),Br=Pr("y");function Ur(e){return function(){return this.isValid()?this._data[e]:NaN}}var Wr=Ur("milliseconds"),zr=Ur("seconds"),Gr=Ur("minutes"),Vr=Ur("hours"),Kr=Ur("days"),qr=Ur("months"),$r=Ur("years");var Jr=Math.round,Xr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Qr(e,t,r,n,i){return i.relativeTime(t||1,!!r,e,n)}var Zr=Math.abs;function en(e){return(e>0)-(e<0)||+e}function tn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,r,n,i,a,o,s,l=Zr(this._milliseconds)/1e3,u=Zr(this._days),c=Zr(this._months),d=this.asSeconds();return d?(e=K(l/60),t=K(e/60),l%=60,e%=60,r=K(c/12),c%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",a=en(this._months)!==en(d)?"-":"",o=en(this._days)!==en(d)?"-":"",s=en(this._milliseconds)!==en(d)?"-":"",i+"P"+(r?a+r+"Y":"")+(c?a+c+"M":"")+(u?o+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+n+"S":"")):"P0D"}var rn=Pt.prototype;return rn.isValid=function(){return this._isValid},rn.abs=function(){var e=this._data;return this._milliseconds=xr(this._milliseconds),this._days=xr(this._days),this._months=xr(this._months),e.milliseconds=xr(e.milliseconds),e.seconds=xr(e.seconds),e.minutes=xr(e.minutes),e.hours=xr(e.hours),e.months=xr(e.months),e.years=xr(e.years),this},rn.add=function(e,t){return Er(this,e,t,1)},rn.subtract=function(e,t){return Er(this,e,t,-1)},rn.as=function(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if("month"===(e=U(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+Ar(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(Or(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},rn.asMilliseconds=Rr,rn.asSeconds=Ir,rn.asMinutes=Yr,rn.asHours=Cr,rn.asDays=Fr,rn.asWeeks=Nr,rn.asMonths=jr,rn.asQuarters=Hr,rn.asYears=Br,rn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*q(this._months/12):NaN},rn._bubble=function(){var e,t,r,n,i,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*Dr(Or(s)+o),o=0,s=0),l.milliseconds=a%1e3,e=K(a/1e3),l.seconds=e%60,t=K(e/60),l.minutes=t%60,r=K(t/60),l.hours=r%24,o+=K(r/24),s+=i=K(Ar(o)),o-=Dr(Or(i)),n=K(s/12),s%=12,l.days=o,l.months=s,l.years=n,this},rn.clone=function(){return Wt(this)},rn.get=function(e){return e=U(e),this.isValid()?this[e+"s"]():NaN},rn.milliseconds=Wr,rn.seconds=zr,rn.minutes=Gr,rn.hours=Vr,rn.days=Kr,rn.weeks=function(){return K(this.days()/7)},rn.months=qr,rn.years=$r,rn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var r,n,i=!1,a=Xr;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(a=Object.assign({},Xr,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),n=function(e,t,r,n){var i=Wt(e).abs(),a=Jr(i.as("s")),o=Jr(i.as("m")),s=Jr(i.as("h")),l=Jr(i.as("d")),u=Jr(i.as("M")),c=Jr(i.as("w")),d=Jr(i.as("y")),h=a<=r.ss&&["s",a]||a<r.s&&["ss",a]||o<=1&&["m"]||o<r.m&&["mm",o]||s<=1&&["h"]||s<r.h&&["hh",s]||l<=1&&["d"]||l<r.d&&["dd",l];return null!=r.w&&(h=h||c<=1&&["w"]||c<r.w&&["ww",c]),(h=h||u<=1&&["M"]||u<r.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=n,Qr.apply(null,h)}(this,!i,a,r=this.localeData()),i&&(n=r.pastFuture(+this,n)),r.postformat(n)},rn.toISOString=tn,rn.toString=tn,rn.toJSON=tn,rn.locale=er,rn.localeData=rr,rn.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",tn),rn.lang=tr,F("X",0,0,"unix"),F("x",0,0,"valueOf"),me("x",de),me("X",/[+-]?\d+(\.\d{1,3})?/),_e("X",(function(e,t,r){r._d=new Date(1e3*parseFloat(e))})),_e("x",(function(e,t,r){r._d=new Date(q(e))})),a.version="2.29.4",t=xt,a.fn=Mr,a.min=function(){return At("isBefore",[].slice.call(arguments,0))},a.max=function(){return At("isAfter",[].slice.call(arguments,0))},a.now=function(){return Date.now?Date.now():+new Date},a.utc=m,a.unix=function(e){return xt(1e3*e)},a.months=function(e,t){return Sr(e,t,"months")},a.isDate=h,a.locale=st,a.invalid=y,a.duration=Wt,a.isMoment=T,a.weekdays=function(e,t,r){return kr(e,t,r,"weekdays")},a.parseZone=function(){return xt.apply(null,arguments).parseZone()},a.localeData=ut,a.isDuration=Rt,a.monthsShort=function(e,t){return Sr(e,t,"monthsShort")},a.weekdaysMin=function(e,t,r){return kr(e,t,r,"weekdaysMin")},a.defineLocale=lt,a.updateLocale=function(e,t){if(null!=t){var r,n,i=tt;null!=rt[e]&&null!=rt[e].parentLocale?rt[e].set(A(rt[e]._config,t)):(null!=(n=ot(e))&&(i=n._config),t=A(i,t),null==n&&(t.abbr=e),(r=new O(t)).parentLocale=rt[e],rt[e]=r),st(e)}else null!=rt[e]&&(null!=rt[e].parentLocale?(rt[e]=rt[e].parentLocale,e===st()&&st(e)):null!=rt[e]&&delete rt[e]);return rt[e]},a.locales=function(){return k(rt)},a.weekdaysShort=function(e,t,r){return kr(e,t,r,"weekdaysShort")},a.normalizeUnits=U,a.relativeTimeRounding=function(e){return void 0===e?Jr:"function"==typeof e&&(Jr=e,!0)},a.relativeTimeThreshold=function(e,t){return void 0!==Xr[e]&&(void 0===t?Xr[e]:(Xr[e]=t,"s"===e&&(Xr.ss=t-1),!0))},a.calendarFormat=function(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"},a.prototype=Mr,a.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"},a}()},78655:(e,t,r)=>{"use strict";var n=r(51266),i=r(24104),a=r(87040),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=u,t.h2=50;var s=2147483647;function l(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return h(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|g(e,t),n=l(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(J(e,Uint8Array)){var t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return p(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return p(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return u.from(n,t,r);var i=function(e){if(u.isBuffer(e)){var t=0|m(e.length),r=l(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||X(e.length)?l(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function h(e){return d(e),l(e<0?0:0|m(e))}function f(e){for(var t=e.length<0?0:0|m(e.length),r=l(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function p(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,u.prototype),n}function m(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function g(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return q(e).length;default:if(i)return n?-1:K(e).length;t=(""+t).toLowerCase(),i=!0}}function v(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,r);case"utf8":case"utf-8":return x(this,t,r);case"ascii":return D(this,t,r);case"latin1":case"binary":return A(this,t,r);case"base64":return k(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function _(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),X(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){var a,o=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=r;a<s;a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(r+l>s&&(r=s-l),a=r;a>=0;a--){for(var d=!0,h=0;h<l;h++)if(u(e,a+h)!==u(t,h)){d=!1;break}if(d)return a}return-1}function M(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a,o=t.length;for(n>o/2&&(n=o/2),a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(X(s))return a;e[r+a]=s}return a}function w(e,t,r,n){return $(K(t,e.length-r),e,r,n)}function T(e,t,r,n){return $(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function L(e,t,r,n){return $(q(t),e,r,n)}function S(e,t,r,n){return $(function(e,t){for(var r,n,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function k(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function x(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a=e[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=r){var l=void 0,u=void 0,c=void 0,d=void 0;switch(s){case 1:a<128&&(o=a);break;case 2:128==(192&(l=e[i+1]))&&(d=(31&a)<<6|63&l)>127&&(o=d);break;case 3:l=e[i+1],u=e[i+2],128==(192&l)&&128==(192&u)&&(d=(15&a)<<12|(63&l)<<6|63&u)>2047&&(d<55296||d>57343)&&(o=d);break;case 4:l=e[i+1],u=e[i+2],c=e[i+3],128==(192&l)&&128==(192&u)&&128==(192&c)&&(d=(15&a)<<18|(63&l)<<12|(63&u)<<6|63&c)>65535&&d<1114112&&(o=d)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(e){var t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=E));return r}(n)}u.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),u.TYPED_ARRAY_SUPPORT||void 0===n||"function"!=typeof n.error||n.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,r){return function(e,t,r){return d(e),e<=0?l(e):void 0!==t?"string"==typeof r?l(e).fill(t,r):l(e).fill(t):l(e)}(e,t,r)},u.allocUnsafe=function(e){return h(e)},u.allocUnsafeSlow=function(e){return h(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(J(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),J(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(J(a,Uint8Array))i+a.length>n.length?(u.isBuffer(a)||(a=u.from(a)),a.copy(n,i)):Uint8Array.prototype.set.call(n,a,i);else{if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i)}i+=a.length}return n},u.byteLength=g,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},u.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?x(this,0,e):v.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.h2;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,r,n,i){if(J(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),s=Math.min(a,o),l=this.slice(n,i),c=e.slice(t,r),d=0;d<s;++d)if(l[d]!==c[d]){a=l[d],o=c[d];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return _(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return _(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return M(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":case"latin1":case"binary":return T(this,e,t,r);case"base64":return L(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function D(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function A(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function O(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=Q[e[a]];return i}function P(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function R(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,r,n,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function Y(e,t,r,n,i){W(t,n,i,e,r,7);var a=Number(t&BigInt(4294967295));e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,r}function C(e,t,r,n,i){W(t,n,i,e,r,7);var a=Number(t&BigInt(4294967295));e[r+7]=a,a>>=8,e[r+6]=a,a>>=8,e[r+5]=a,a>>=8,e[r+4]=a;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o>>=8,e[r+2]=o,o>>=8,e[r+1]=o,o>>=8,e[r]=o,r+8}function F(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(e,t,r,n,i){return t=+t,r>>>=0,i||F(e,0,r,4),a.write(e,t,r,n,23,4),r+4}function j(e,t,r,n,i){return t=+t,r>>>=0,i||F(e,0,r,8),a.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=Z((function(e){z(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||G(e,this.length-8);var n=t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24),i=this[++e]+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+r*Math.pow(2,24);return BigInt(n)+(BigInt(i)<<BigInt(32))})),u.prototype.readBigUInt64BE=Z((function(e){z(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||G(e,this.length-8);var n=t*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e],i=this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),u.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=Z((function(e){z(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||G(e,this.length-8);var n=this[e+4]+this[e+5]*Math.pow(2,8)+this[e+6]*Math.pow(2,16)+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24))})),u.prototype.readBigInt64BE=Z((function(e){z(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||G(e,this.length-8);var n=(t<<24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+r)})),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),a.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),a.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),a.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),a.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||I(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||I(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=Z((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Y(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=Z((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return C(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);I(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);I(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=Z((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Y(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=Z((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return C(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(e,t,r){return N(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return N(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return j(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return j(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var o=u.isBuffer(e)?e:u.from(e,n),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-t;++a)this[a+t]=o[a%s]}return this};var H={};function B(e,t,r){H[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name="".concat(this.name," [").concat(e,"]"),this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}}function U(e){for(var t="",r=e.length,n="-"===e[0]?1:0;r>=n+4;r-=3)t="_".concat(e.slice(r-3,r)).concat(t);return"".concat(e.slice(0,r)).concat(t)}function W(e,t,r,n,i,a){if(e>r||e<t){var o,s="bigint"==typeof t?"n":"";throw o=a>3?0===t||t===BigInt(0)?">= 0".concat(s," and < 2").concat(s," ** ").concat(8*(a+1)).concat(s):">= -(2".concat(s," ** ").concat(8*(a+1)-1).concat(s,") and < 2 ** ")+"".concat(8*(a+1)-1).concat(s):">= ".concat(t).concat(s," and <= ").concat(r).concat(s),new H.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,r){z(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||G(t,e.length-(r+1))}(n,i,a)}function z(e,t){if("number"!=typeof e)throw new H.ERR_INVALID_ARG_TYPE(t,"number",e)}function G(e,t,r){if(Math.floor(e)!==e)throw z(e,r),new H.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new H.ERR_BUFFER_OUT_OF_BOUNDS;throw new H.ERR_OUT_OF_RANGE(r||"offset",">= ".concat(r?1:0," and <= ").concat(t),e)}B("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),B("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),B("ERR_OUT_OF_RANGE",(function(e,t,r){var n='The value of "'.concat(e,'" is out of range.'),i=r;return Number.isInteger(r)&&Math.abs(r)>Math.pow(2,32)?i=U(String(r)):"bigint"==typeof r&&(i=String(r),(r>Math.pow(BigInt(2),BigInt(32))||r<-Math.pow(BigInt(2),BigInt(32)))&&(i=U(i)),i+="n"),n+" It must be ".concat(t,". Received ").concat(i)}),RangeError);var V=/[^+/0-9A-Za-z-_]/g;function K(e,t){var r;t=t||1/0;for(var n=e.length,i=null,a=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function q(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,r,n){var i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!=e}var Q=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}();function Z(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}},5675:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:e===r||!(!t(e)||!t(r))}},95518:(e,t,r)=>{"use strict";var n=r(27741),i=r(47426),a=r(5675),o=r(73991),s=r(36554),l=i(o(),Object);n(l,{getPolyfill:o,implementation:a,shim:s}),e.exports=l},73991:(e,t,r)=>{"use strict";var n=r(5675);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},36554:(e,t,r)=>{"use strict";var n=r(73991),i=r(27741);e.exports=function(){var e=n();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},94541:(e,t,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,o=r(84489),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===a.call(e),n=o(e),s=t&&"[object String]"===a.call(e),h=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var p=u&&r;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)h.push(String(m));if(n&&e.length>0)for(var g=0;g<e.length;++g)h.push(String(g));else for(var v in e)p&&"prototype"===v||!i.call(e,v)||h.push(String(v));if(l)for(var y=function(e){if("undefined"==typeof window||!f)return d(e);try{return d(e)}catch(e){return!1}}(e),_=0;_<c.length;++_)y&&"constructor"===c[_]||!i.call(e,c[_])||h.push(c[_]);return h}}e.exports=n},76927:(e,t,r)=>{"use strict";var n=Array.prototype.slice,i=r(84489),a=Object.keys,o=a?function(e){return a(e)}:r(94541),s=Object.keys;o.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(n.call(e)):s(e)})}else Object.keys=o;return Object.keys||o},e.exports=o},84489:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},6591:e=>{var t,r,n=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,l=[],u=!1,c=-1;function d(){u&&s&&(u=!1,s.length?l=s.concat(l):c=-1,l.length&&h())}function h(){if(!u){var e=o(d);u=!0;for(var t=l.length;t;){for(s=l,l=[];++c<t;)s&&s[c].run();c=-1,t=l.length}s=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function p(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new f(e,t)),1!==l.length||u||o(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},87133:e=>{"use strict";var t={};function r(e,r,n){n||(n=Error);var i=function(e){var t,n;function i(t,n,i){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,i))||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,a,o,s,l;if("string"==typeof t&&(a="not ",t.substr(0,a.length)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))o="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var u=("number"!=typeof l&&(l=0),l+".".length>(s=e).length||-1===s.indexOf(".",l)?"argument":"property");o='The "'.concat(e,'" ').concat(u," ").concat(i," ").concat(n(t,"type"))}return o+". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},88608:(e,t,r)=>{"use strict";var n=r(6591),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var a=r(55324),o=r(30799);r(23128)(c,a);for(var s=i(o.prototype),l=0;l<s.length;l++){var u=s[l];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",d)))}function d(){this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},64584:(e,t,r)=>{"use strict";e.exports=i;var n=r(25430);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(23128)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},55324:(e,t,r)=>{"use strict";var n,i=r(6591);e.exports=S,S.ReadableState=L,r(15842).EventEmitter;var a,o=function(e,t){return e.listeners(t).length},s=r(30619),l=r(47103).Buffer,u=r.g.Uint8Array||function(){},c=r(66602);a=c&&c.debuglog?c.debuglog("stream"):function(){};var d,h,f,p=r(43882),m=r(63984),g=r(60291).getHighWaterMark,v=r(87133).q,y=v.ERR_INVALID_ARG_TYPE,_=v.ERR_STREAM_PUSH_AFTER_EOF,b=v.ERR_METHOD_NOT_IMPLEMENTED,M=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(23128)(S,s);var w=m.errorOrDestroy,T=["error","close","destroy","pause","resume"];function L(e,t,i){n=n||r(88608),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",i),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=r(80956).s),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function S(e){if(n=n||r(88608),!(this instanceof S))return new S(e);var t=this instanceof n;this._readableState=new L(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function k(e,t,r,n,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?A(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,O(e)))}}(e,s);else if(i||(o=function(e,t){var r,n;return n=t,l.isBuffer(n)||n instanceof u||"string"==typeof t||void 0===t||e.objectMode||(r=new y("chunk",["string","Buffer","Uint8Array"],t)),r}(s,t)),o)w(e,o);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),n)s.endEmitted?w(e,new M):x(e,s,t,!0);else if(s.ended)w(e,new _);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?x(e,s,t,!1):P(e,s)):x(e,s,t,!1)}else n||(s.reading=!1,P(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function x(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&A(e)),P(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=m.destroy,S.prototype._undestroy=m.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=l.from(e,t),t=""),r=!0),k(this,e,t,!1,r)},S.prototype.unshift=function(e){return k(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){d||(d=r(80956).s);var t=new d(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var E=1073741824;function D(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=E?e=E:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function A(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(O,e))}function O(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,F(e)}function P(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(R,e,t))}function R(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function I(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function Y(e){a("readable nexttick read 0"),e.read(0)}function C(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),F(e),t.flowing&&!t.reading&&e.read(0)}function F(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function j(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(H,t,e))}function H(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function B(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}S.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return a("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):A(this),null;if(0===(e=D(e,t))&&t.ended)return 0===t.length&&j(this),null;var n,i=t.needReadable;return a("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&a("length less than watermark",i=!0),t.ended||t.reading?a("reading or ended",i=!1):i&&(a("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=D(r,t))),null===(n=e>0?N(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(e){w(this,new b("_read()"))},S.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var s=t&&!1===t.end||e===i.stdout||e===i.stderr?m:l;function l(){a("onend"),e.end()}n.endEmitted?i.nextTick(s):r.once("end",s),e.on("unpipe",(function t(i,o){a("onunpipe"),i===r&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,a("cleanup"),e.removeListener("close",f),e.removeListener("finish",p),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",l),r.removeListener("end",m),r.removeListener("data",d),c=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}));var u=function(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,F(e))}}(r);e.on("drain",u);var c=!1;function d(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==B(n.pipes,e))&&!c&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(t){a("onerror",t),m(),e.removeListener("error",h),0===o(e,"error")&&w(e,t)}function f(){e.removeListener("finish",p),m()}function p(){a("onfinish"),e.removeListener("close",f),m()}function m(){a("unpipe"),r.unpipe(e)}return r.on("data",d),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",f),e.once("finish",p),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=B(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},S.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?A(this):n.reading||i.nextTick(Y,this))),r},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(I,this),r},S.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(I,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(C,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<T.length;o++)e.on(T[o],this.emit.bind(this,T[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=r(51707)),h(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=N,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===f&&(f=r(33479)),f(S,e,t)})},25430:(e,t,r)=>{"use strict";e.exports=c;var n=r(87133).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,a=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(88608);function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new a);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);l.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(t,r){h(e,t,r)}))}function h(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}r(23128)(c,l),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new i("_transform()"))},c.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,(function(e){t(e)}))}},30799:(e,t,r)=>{"use strict";var n,i=r(6591);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=S,S.WritableState=L;var o,s={deprecate:r(14655)},l=r(30619),u=r(47103).Buffer,c=r.g.Uint8Array||function(){},d=r(63984),h=r(60291).getHighWaterMark,f=r(87133).q,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_MULTIPLE_CALLBACK,v=f.ERR_STREAM_CANNOT_PIPE,y=f.ERR_STREAM_DESTROYED,_=f.ERR_STREAM_NULL_VALUES,b=f.ERR_STREAM_WRITE_AFTER_END,M=f.ERR_UNKNOWN_ENCODING,w=d.errorOrDestroy;function T(){}function L(e,t,o){n=n||r(88608),e=e||{},"boolean"!=typeof o&&(o=t instanceof n),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,a=r.writecb;if("function"!=typeof a)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,a){--t.pendingcb,r?(i.nextTick(a,n),i.nextTick(O,e,t),e._writableState.errorEmitted=!0,w(e,n)):(a(n),e._writableState.errorEmitted=!0,w(e,n),O(e,t))}(e,r,n,t,a);else{var o=D(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||E(e,r),n?i.nextTick(x,e,r,o,a):x(e,r,o,a)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function S(e){var t=this instanceof(n=n||r(88608));if(!t&&!o.call(S,this))return new S(e);this._writableState=new L(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),l.call(this)}function k(e,t,r,n,i,a,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new y("write")):r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function x(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),O(e,t)}function E(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,l=!0;r;)i[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;i.allBuffers=l,k(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,d=r.callback;if(k(e,t,!1,t.objectMode?1:u.length,u,c,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function D(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function A(e,t){e._final((function(r){t.pendingcb--,r&&w(e,r),t.prefinished=!0,e.emit("prefinish"),O(e,t)}))}function O(e,t){var r=D(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(A,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(23128)(S,l),L.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(L.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===S&&e&&e._writableState instanceof L}})):o=function(e){return e instanceof this},S.prototype.pipe=function(){w(this,new v)},S.prototype.write=function(e,t,r){var n,a=this._writableState,o=!1,s=!a.objectMode&&(n=e,u.isBuffer(n)||n instanceof c);return s&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof r&&(r=T),a.ending?function(e,t){var r=new b;w(e,r),i.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var a;return null===r?a=new _:"string"==typeof r||t.objectMode||(a=new p("chunk",["string","Buffer"],r)),!a||(w(e,a),i.nextTick(n,a),!1)}(this,a,e,r))&&(a.pendingcb++,o=function(e,t,r,n,i,a){if(!r){var o=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,r)),t}(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else k(e,t,!1,s,n,i,a);return l}(this,a,s,e,t,r)),o},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||E(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new M(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,r){r(new m("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,O(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=d.destroy,S.prototype._undestroy=d.undestroy,S.prototype._destroy=function(e,t){t(e)}},51707:(e,t,r)=>{"use strict";var n,i=r(6591);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(7586),s=Symbol("lastResolve"),l=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),d=Symbol("lastPromise"),h=Symbol("handlePromise"),f=Symbol("stream");function p(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[f].read();null!==r&&(e[d]=null,e[s]=null,e[l]=null,t(p(r,!1)))}}function g(e){i.nextTick(m,e)}var v=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((a(n={get stream(){return this[f]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(p(void 0,!0));if(this[f].destroyed)return new Promise((function(t,r){i.nextTick((function(){e[u]?r(e[u]):t(p(void 0,!0))}))}));var r,n=this[d];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[c]?r(p(void 0,!0)):t[h](r,n)}),n)}}(n,this));else{var a=this[f].read();if(null!==a)return Promise.resolve(p(a,!1));r=new Promise(this[h])}return this[d]=r,r}},Symbol.asyncIterator,(function(){return this})),a(n,"return",(function(){var e=this;return new Promise((function(t,r){e[f].destroy(null,(function(e){e?r(e):t(p(void 0,!0))}))}))})),n),v);e.exports=function(e){var t,r=Object.create(y,(a(t={},f,{value:e,writable:!0}),a(t,s,{value:null,writable:!0}),a(t,l,{value:null,writable:!0}),a(t,u,{value:null,writable:!0}),a(t,c,{value:e._readableState.endEmitted,writable:!0}),a(t,h,{value:function(e,t){var n=r[f].read();n?(r[d]=null,r[s]=null,r[l]=null,e(p(n,!1))):(r[s]=e,r[l]=t)},writable:!0}),t));return r[d]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[l];return null!==t&&(r[d]=null,r[s]=null,r[l]=null,t(e)),void(r[u]=e)}var n=r[s];null!==n&&(r[d]=null,r[s]=null,r[l]=null,n(p(void 0,!0))),r[c]=!0})),e.on("readable",g.bind(null,r)),r}},43882:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(47103).Buffer,s=r(74854).inspect,l=s&&s.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r;return t=e,r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,r,n,i=o.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,r=i,n=s,o.prototype.copy.call(t,r,n),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?n+=i:n+=i.slice(0,e),0==(e-=a)){a===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(a));break}++n}return this.length-=n,t}},{key:l,value:function(e,t){return s(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}],r&&a(t.prototype,r),e}()},63984:(e,t,r)=>{"use strict";var n=r(6591);function i(e,t){o(e,t),a(e)}function a(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(o,this,e)):n.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted?n.nextTick(a,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t?(n.nextTick(a,r),t(e)):n.nextTick(a,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},7586:(e,t,r)=>{"use strict";var n=r(87133).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,a){if("function"==typeof r)return e(t,null,r);r||(r={}),a=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(a||i);var o=r.readable||!1!==r.readable&&t.readable,s=r.writable||!1!==r.writable&&t.writable,l=function(){t.writable||c()},u=t._writableState&&t._writableState.finished,c=function(){s=!1,u=!0,o||a.call(t)},d=t._readableState&&t._readableState.endEmitted,h=function(){o=!1,d=!0,s||a.call(t)},f=function(e){a.call(t,e)},p=function(){var e;return o&&!d?(t._readableState&&t._readableState.ended||(e=new n),a.call(t,e)):s&&!u?(t._writableState&&t._writableState.ended||(e=new n),a.call(t,e)):void 0},m=function(){t.req.on("finish",c)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",c),t.on("abort",p),t.req?m():t.on("request",m)):s&&!t._writableState&&(t.on("end",l),t.on("close",l)),t.on("end",h),t.on("finish",c),!1!==r.error&&t.on("error",f),t.on("close",p),function(){t.removeListener("complete",c),t.removeListener("abort",p),t.removeListener("request",m),t.req&&t.req.removeListener("finish",c),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",c),t.removeListener("end",h),t.removeListener("error",f),t.removeListener("close",p)}}},33479:e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},76590:(e,t,r)=>{"use strict";var n,i=r(87133).q,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function l(e,t,i,a){a=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(a);var s=!1;e.on("close",(function(){s=!0})),void 0===n&&(n=r(7586)),n(e,{readable:t,writable:i},(function(e){if(e)return a(e);s=!0,a()}));var l=!1;return function(t){if(!s&&!l)return l=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void a(t||new o("pipe"))}}function u(e){e()}function c(e,t){return e.pipe(t)}function d(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=d(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new a("streams");var o=t.map((function(e,r){var a=r<t.length-1;return l(e,a,r>0,(function(e){n||(n=e),e&&o.forEach(u),a||(o.forEach(u),i(n))}))}));return t.reduce(c)}},60291:(e,t,r)=>{"use strict";var n=r(87133).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var a=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new n(i?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},30619:(e,t,r)=>{e.exports=r(15842).EventEmitter},757:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof g?t:g,o=Object.create(a.prototype),s=new D(n||[]);return i(o,"_invoke",{value:S(e,r,s)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var h="suspendedStart",f="executing",p="completed",m={};function g(){}function v(){}function y(){}var _={};u(_,o,(function(){return this}));var b=Object.getPrototypeOf,M=b&&b(b(A([])));M&&M!==r&&n.call(M,o)&&(_=M);var w=y.prototype=g.prototype=Object.create(_);function T(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function r(i,a,o,s){var l=d(e[i],e,a);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function S(e,t,r){var n=h;return function(i,a){if(n===f)throw new Error("Generator is already running");if(n===p){if("throw"===i)throw a;return O()}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var s=k(o,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var l=d(e,t,r);if("normal"===l.type){if(n=r.done?p:"suspendedYield",l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n=p,r.method="throw",r.arg=l.arg)}}}function k(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=d(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function A(e){if(e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:O}}function O(){return{value:t,done:!0}}return v.prototype=y,i(w,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},T(L.prototype),u(L.prototype,s,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new L(c(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},T(w),u(w,l,"Generator"),u(w,o,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=A,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},13369:(e,t,r)=>{var n=r(78655).lW;!function(e){e.parser=function(e,t){return new a(e,t)},e.SAXParser=a,e.SAXStream=s,e.createStream=function(e,t){return new s(e,t)},e.MAX_BUFFER_LENGTH=65536;var t,i=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function a(t,r){if(!(this instanceof a))return new a(t,r);var n=this;!function(e){for(var t=0,r=i.length;t<r;t++)e[i[t]]=""}(n),n.q=n.c="",n.bufferCheckPosition=e.MAX_BUFFER_LENGTH,n.opt=r||{},n.opt.lowercase=n.opt.lowercase||n.opt.lowercasetags,n.looseCase=n.opt.lowercase?"toLowerCase":"toUpperCase",n.tags=[],n.closed=n.closedRoot=n.sawRoot=!1,n.tag=n.error=null,n.strict=!!t,n.noscript=!(!t&&!n.opt.noscript),n.state=T.BEGIN,n.strictEntities=n.opt.strictEntities,n.ENTITIES=n.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),n.attribList=[],n.opt.xmlns&&(n.ns=Object.create(c)),n.trackPosition=!1!==n.opt.position,n.trackPosition&&(n.position=n.line=n.column=0),S(n,"onready")}e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}),a.prototype={end:function(){A(this)},write:function(t){var r=this;if(this.error)throw this.error;if(r.closed)return D(r,"Cannot write after close. Assign an onready handler.");if(null===t)return A(r);"object"==typeof t&&(t=t.toString());for(var n=0,a="";a=j(t,n++),r.c=a,a;)switch(r.trackPosition&&(r.position++,"\n"===a?(r.line++,r.column=0):r.column++),r.state){case T.BEGIN:if(r.state=T.BEGIN_WHITESPACE,"\ufeff"===a)continue;N(r,a);continue;case T.BEGIN_WHITESPACE:N(r,a);continue;case T.TEXT:if(r.sawRoot&&!r.closedRoot){for(var o=n-1;a&&"<"!==a&&"&"!==a;)(a=j(t,n++))&&r.trackPosition&&(r.position++,"\n"===a?(r.line++,r.column=0):r.column++);r.textNode+=t.substring(o,n-1)}"<"!==a||r.sawRoot&&r.closedRoot&&!r.strict?(m(a)||r.sawRoot&&!r.closedRoot||O(r,"Text data outside of root node."),"&"===a?r.state=T.TEXT_ENTITY:r.textNode+=a):(r.state=T.OPEN_WAKA,r.startTagPosition=r.position);continue;case T.SCRIPT:"<"===a?r.state=T.SCRIPT_ENDING:r.script+=a;continue;case T.SCRIPT_ENDING:"/"===a?r.state=T.CLOSE_TAG:(r.script+="<"+a,r.state=T.SCRIPT);continue;case T.OPEN_WAKA:if("!"===a)r.state=T.SGML_DECL,r.sgmlDecl="";else if(m(a));else if(y(d,a))r.state=T.OPEN_TAG,r.tagName=a;else if("/"===a)r.state=T.CLOSE_TAG,r.tagName="";else if("?"===a)r.state=T.PROC_INST,r.procInstName=r.procInstBody="";else{if(O(r,"Unencoded <"),r.startTagPosition+1<r.position){var s=r.position-r.startTagPosition;a=new Array(s).join(" ")+a}r.textNode+="<"+a,r.state=T.TEXT}continue;case T.SGML_DECL:"[CDATA["===(r.sgmlDecl+a).toUpperCase()?(k(r,"onopencdata"),r.state=T.CDATA,r.sgmlDecl="",r.cdata=""):r.sgmlDecl+a==="--"?(r.state=T.COMMENT,r.comment="",r.sgmlDecl=""):"DOCTYPE"===(r.sgmlDecl+a).toUpperCase()?(r.state=T.DOCTYPE,(r.doctype||r.sawRoot)&&O(r,"Inappropriately located doctype declaration"),r.doctype="",r.sgmlDecl=""):">"===a?(k(r,"onsgmldeclaration",r.sgmlDecl),r.sgmlDecl="",r.state=T.TEXT):g(a)?(r.state=T.SGML_DECL_QUOTED,r.sgmlDecl+=a):r.sgmlDecl+=a;continue;case T.SGML_DECL_QUOTED:a===r.q&&(r.state=T.SGML_DECL,r.q=""),r.sgmlDecl+=a;continue;case T.DOCTYPE:">"===a?(r.state=T.TEXT,k(r,"ondoctype",r.doctype),r.doctype=!0):(r.doctype+=a,"["===a?r.state=T.DOCTYPE_DTD:g(a)&&(r.state=T.DOCTYPE_QUOTED,r.q=a));continue;case T.DOCTYPE_QUOTED:r.doctype+=a,a===r.q&&(r.q="",r.state=T.DOCTYPE);continue;case T.DOCTYPE_DTD:r.doctype+=a,"]"===a?r.state=T.DOCTYPE:g(a)&&(r.state=T.DOCTYPE_DTD_QUOTED,r.q=a);continue;case T.DOCTYPE_DTD_QUOTED:r.doctype+=a,a===r.q&&(r.state=T.DOCTYPE_DTD,r.q="");continue;case T.COMMENT:"-"===a?r.state=T.COMMENT_ENDING:r.comment+=a;continue;case T.COMMENT_ENDING:"-"===a?(r.state=T.COMMENT_ENDED,r.comment=E(r.opt,r.comment),r.comment&&k(r,"oncomment",r.comment),r.comment=""):(r.comment+="-"+a,r.state=T.COMMENT);continue;case T.COMMENT_ENDED:">"!==a?(O(r,"Malformed comment"),r.comment+="--"+a,r.state=T.COMMENT):r.state=T.TEXT;continue;case T.CDATA:"]"===a?r.state=T.CDATA_ENDING:r.cdata+=a;continue;case T.CDATA_ENDING:"]"===a?r.state=T.CDATA_ENDING_2:(r.cdata+="]"+a,r.state=T.CDATA);continue;case T.CDATA_ENDING_2:">"===a?(r.cdata&&k(r,"oncdata",r.cdata),k(r,"onclosecdata"),r.cdata="",r.state=T.TEXT):"]"===a?r.cdata+="]":(r.cdata+="]]"+a,r.state=T.CDATA);continue;case T.PROC_INST:"?"===a?r.state=T.PROC_INST_ENDING:m(a)?r.state=T.PROC_INST_BODY:r.procInstName+=a;continue;case T.PROC_INST_BODY:if(!r.procInstBody&&m(a))continue;"?"===a?r.state=T.PROC_INST_ENDING:r.procInstBody+=a;continue;case T.PROC_INST_ENDING:">"===a?(k(r,"onprocessinginstruction",{name:r.procInstName,body:r.procInstBody}),r.procInstName=r.procInstBody="",r.state=T.TEXT):(r.procInstBody+="?"+a,r.state=T.PROC_INST_BODY);continue;case T.OPEN_TAG:y(h,a)?r.tagName+=a:(P(r),">"===a?Y(r):"/"===a?r.state=T.OPEN_TAG_SLASH:(m(a)||O(r,"Invalid character in tag name"),r.state=T.ATTRIB));continue;case T.OPEN_TAG_SLASH:">"===a?(Y(r,!0),C(r)):(O(r,"Forward-slash in opening tag not followed by >"),r.state=T.ATTRIB);continue;case T.ATTRIB:if(m(a))continue;">"===a?Y(r):"/"===a?r.state=T.OPEN_TAG_SLASH:y(d,a)?(r.attribName=a,r.attribValue="",r.state=T.ATTRIB_NAME):O(r,"Invalid attribute name");continue;case T.ATTRIB_NAME:"="===a?r.state=T.ATTRIB_VALUE:">"===a?(O(r,"Attribute without value"),r.attribValue=r.attribName,I(r),Y(r)):m(a)?r.state=T.ATTRIB_NAME_SAW_WHITE:y(h,a)?r.attribName+=a:O(r,"Invalid attribute name");continue;case T.ATTRIB_NAME_SAW_WHITE:if("="===a)r.state=T.ATTRIB_VALUE;else{if(m(a))continue;O(r,"Attribute without value"),r.tag.attributes[r.attribName]="",r.attribValue="",k(r,"onattribute",{name:r.attribName,value:""}),r.attribName="",">"===a?Y(r):y(d,a)?(r.attribName=a,r.state=T.ATTRIB_NAME):(O(r,"Invalid attribute name"),r.state=T.ATTRIB)}continue;case T.ATTRIB_VALUE:if(m(a))continue;g(a)?(r.q=a,r.state=T.ATTRIB_VALUE_QUOTED):(O(r,"Unquoted attribute value"),r.state=T.ATTRIB_VALUE_UNQUOTED,r.attribValue=a);continue;case T.ATTRIB_VALUE_QUOTED:if(a!==r.q){"&"===a?r.state=T.ATTRIB_VALUE_ENTITY_Q:r.attribValue+=a;continue}I(r),r.q="",r.state=T.ATTRIB_VALUE_CLOSED;continue;case T.ATTRIB_VALUE_CLOSED:m(a)?r.state=T.ATTRIB:">"===a?Y(r):"/"===a?r.state=T.OPEN_TAG_SLASH:y(d,a)?(O(r,"No whitespace between attributes"),r.attribName=a,r.attribValue="",r.state=T.ATTRIB_NAME):O(r,"Invalid attribute name");continue;case T.ATTRIB_VALUE_UNQUOTED:if(!v(a)){"&"===a?r.state=T.ATTRIB_VALUE_ENTITY_U:r.attribValue+=a;continue}I(r),">"===a?Y(r):r.state=T.ATTRIB;continue;case T.CLOSE_TAG:if(r.tagName)">"===a?C(r):y(h,a)?r.tagName+=a:r.script?(r.script+="</"+r.tagName,r.tagName="",r.state=T.SCRIPT):(m(a)||O(r,"Invalid tagname in closing tag"),r.state=T.CLOSE_TAG_SAW_WHITE);else{if(m(a))continue;_(d,a)?r.script?(r.script+="</"+a,r.state=T.SCRIPT):O(r,"Invalid tagname in closing tag."):r.tagName=a}continue;case T.CLOSE_TAG_SAW_WHITE:if(m(a))continue;">"===a?C(r):O(r,"Invalid characters in closing tag");continue;case T.TEXT_ENTITY:case T.ATTRIB_VALUE_ENTITY_Q:case T.ATTRIB_VALUE_ENTITY_U:var l,u;switch(r.state){case T.TEXT_ENTITY:l=T.TEXT,u="textNode";break;case T.ATTRIB_VALUE_ENTITY_Q:l=T.ATTRIB_VALUE_QUOTED,u="attribValue";break;case T.ATTRIB_VALUE_ENTITY_U:l=T.ATTRIB_VALUE_UNQUOTED,u="attribValue"}";"===a?(r[u]+=F(r),r.entity="",r.state=l):y(r.entity.length?p:f,a)?r.entity+=a:(O(r,"Invalid character in entity name"),r[u]+="&"+r.entity+a,r.entity="",r.state=l);continue;default:throw new Error(r,"Unknown state: "+r.state)}return r.position>=r.bufferCheckPosition&&function(t){for(var r=Math.max(e.MAX_BUFFER_LENGTH,10),n=0,a=0,o=i.length;a<o;a++){var s=t[i[a]].length;if(s>r)switch(i[a]){case"textNode":x(t);break;case"cdata":k(t,"oncdata",t.cdata),t.cdata="";break;case"script":k(t,"onscript",t.script),t.script="";break;default:D(t,"Max buffer length exceeded: "+i[a])}n=Math.max(n,s)}var l=e.MAX_BUFFER_LENGTH-n;t.bufferCheckPosition=l+t.position}(r),r},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var e;x(e=this),""!==e.cdata&&(k(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(k(e,"onscript",e.script),e.script="")}};try{t=r(77794).Stream}catch(e){t=function(){}}var o=e.EVENTS.filter((function(e){return"error"!==e&&"end"!==e}));function s(e,r){if(!(this instanceof s))return new s(e,r);t.apply(this),this._parser=new a(e,r),this.writable=!0,this.readable=!0;var n=this;this._parser.onend=function(){n.emit("end")},this._parser.onerror=function(e){n.emit("error",e),n._parser.error=null},this._decoder=null,o.forEach((function(e){Object.defineProperty(n,"on"+e,{get:function(){return n._parser["on"+e]},set:function(t){if(!t)return n.removeAllListeners(e),n._parser["on"+e]=t,t;n.on(e,t)},enumerable:!0,configurable:!1})}))}s.prototype=Object.create(t.prototype,{constructor:{value:s}}),s.prototype.write=function(e){if("function"==typeof n&&"function"==typeof n.isBuffer&&n.isBuffer(e)){if(!this._decoder){var t=r(80956).s;this._decoder=new t("utf8")}e=this._decoder.write(e)}return this._parser.write(e.toString()),this.emit("data",e),!0},s.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},s.prototype.on=function(e,r){var n=this;return n._parser["on"+e]||-1===o.indexOf(e)||(n._parser["on"+e]=function(){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),n.emit.apply(n,t)}),t.prototype.on.call(n,e,r)};var l="http://www.w3.org/XML/1998/namespace",u="http://www.w3.org/2000/xmlns/",c={xml:l,xmlns:u},d=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,h=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,f=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,p=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function m(e){return" "===e||"\n"===e||"\r"===e||"\t"===e}function g(e){return'"'===e||"'"===e}function v(e){return">"===e||m(e)}function y(e,t){return e.test(t)}function _(e,t){return!y(e,t)}var b,M,w,T=0;for(var L in e.STATE={BEGIN:T++,BEGIN_WHITESPACE:T++,TEXT:T++,TEXT_ENTITY:T++,OPEN_WAKA:T++,SGML_DECL:T++,SGML_DECL_QUOTED:T++,DOCTYPE:T++,DOCTYPE_QUOTED:T++,DOCTYPE_DTD:T++,DOCTYPE_DTD_QUOTED:T++,COMMENT_STARTING:T++,COMMENT:T++,COMMENT_ENDING:T++,COMMENT_ENDED:T++,CDATA:T++,CDATA_ENDING:T++,CDATA_ENDING_2:T++,PROC_INST:T++,PROC_INST_BODY:T++,PROC_INST_ENDING:T++,OPEN_TAG:T++,OPEN_TAG_SLASH:T++,ATTRIB:T++,ATTRIB_NAME:T++,ATTRIB_NAME_SAW_WHITE:T++,ATTRIB_VALUE:T++,ATTRIB_VALUE_QUOTED:T++,ATTRIB_VALUE_CLOSED:T++,ATTRIB_VALUE_UNQUOTED:T++,ATTRIB_VALUE_ENTITY_Q:T++,ATTRIB_VALUE_ENTITY_U:T++,CLOSE_TAG:T++,CLOSE_TAG_SAW_WHITE:T++,SCRIPT:T++,SCRIPT_ENDING:T++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach((function(t){var r=e.ENTITIES[t],n="number"==typeof r?String.fromCharCode(r):r;e.ENTITIES[t]=n})),e.STATE)e.STATE[e.STATE[L]]=L;function S(e,t,r){e[t]&&e[t](r)}function k(e,t,r){e.textNode&&x(e),S(e,t,r)}function x(e){e.textNode=E(e.opt,e.textNode),e.textNode&&S(e,"ontext",e.textNode),e.textNode=""}function E(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function D(e,t){return x(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,S(e,"onerror",t),e}function A(e){return e.sawRoot&&!e.closedRoot&&O(e,"Unclosed root tag"),e.state!==T.BEGIN&&e.state!==T.BEGIN_WHITESPACE&&e.state!==T.TEXT&&D(e,"Unexpected end"),x(e),e.c="",e.closed=!0,S(e,"onend"),a.call(e,e.strict,e.opt),e}function O(e,t){if("object"!=typeof e||!(e instanceof a))throw new Error("bad call to strictFail");e.strict&&D(e,t)}function P(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,r=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(r.ns=t.ns),e.attribList.length=0,k(e,"onopentagstart",r)}function R(e,t){var r=e.indexOf(":")<0?["",e]:e.split(":"),n=r[0],i=r[1];return t&&"xmlns"===e&&(n="xmlns",i=""),{prefix:n,local:i}}function I(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=R(e.attribName,!0),r=t.prefix,n=t.local;if("xmlns"===r)if("xml"===n&&e.attribValue!==l)O(e,"xml: prefix must be bound to "+l+"\nActual: "+e.attribValue);else if("xmlns"===n&&e.attribValue!==u)O(e,"xmlns: prefix must be bound to "+u+"\nActual: "+e.attribValue);else{var i=e.tag,a=e.tags[e.tags.length-1]||e;i.ns===a.ns&&(i.ns=Object.create(a.ns)),i.ns[n]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,k(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function Y(e,t){if(e.opt.xmlns){var r=e.tag,n=R(e.tagName);r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(O(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),r.uri=n.prefix);var i=e.tags[e.tags.length-1]||e;r.ns&&i.ns!==r.ns&&Object.keys(r.ns).forEach((function(t){k(e,"onopennamespace",{prefix:t,uri:r.ns[t]})}));for(var a=0,o=e.attribList.length;a<o;a++){var s=e.attribList[a],l=s[0],u=s[1],c=R(l,!0),d=c.prefix,h=c.local,f=""===d?"":r.ns[d]||"",p={name:l,value:u,prefix:d,local:h,uri:f};d&&"xmlns"!==d&&!f&&(O(e,"Unbound namespace prefix: "+JSON.stringify(d)),p.uri=d),e.tag.attributes[l]=p,k(e,"onattribute",p)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),k(e,"onopentag",e.tag),t||(e.noscript||"script"!==e.tagName.toLowerCase()?e.state=T.TEXT:e.state=T.SCRIPT,e.tag=null,e.tagName=""),e.attribName=e.attribValue="",e.attribList.length=0}function C(e){if(!e.tagName)return O(e,"Weird empty close tag."),e.textNode+="</>",void(e.state=T.TEXT);if(e.script){if("script"!==e.tagName)return e.script+="</"+e.tagName+">",e.tagName="",void(e.state=T.SCRIPT);k(e,"onscript",e.script),e.script=""}var t=e.tags.length,r=e.tagName;e.strict||(r=r[e.looseCase]());for(var n=r;t--&&e.tags[t].name!==n;)O(e,"Unexpected close tag");if(t<0)return O(e,"Unmatched closing tag: "+e.tagName),e.textNode+="</"+e.tagName+">",void(e.state=T.TEXT);e.tagName=r;for(var i=e.tags.length;i-- >t;){var a=e.tag=e.tags.pop();e.tagName=e.tag.name,k(e,"onclosetag",e.tagName);var o={};for(var s in a.ns)o[s]=a.ns[s];var l=e.tags[e.tags.length-1]||e;e.opt.xmlns&&a.ns!==l.ns&&Object.keys(a.ns).forEach((function(t){var r=a.ns[t];k(e,"onclosenamespace",{prefix:t,uri:r})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=T.TEXT}function F(e){var t,r=e.entity,n=r.toLowerCase(),i="";return e.ENTITIES[r]?e.ENTITIES[r]:e.ENTITIES[n]?e.ENTITIES[n]:("#"===(r=n).charAt(0)&&("x"===r.charAt(1)?(r=r.slice(2),i=(t=parseInt(r,16)).toString(16)):(r=r.slice(1),i=(t=parseInt(r,10)).toString(10))),r=r.replace(/^0+/,""),isNaN(t)||i.toLowerCase()!==r?(O(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function N(e,t){"<"===t?(e.state=T.OPEN_WAKA,e.startTagPosition=e.position):m(t)||(O(e,"Non-whitespace before first tag."),e.textNode=t,e.state=T.TEXT)}function j(e,t){var r="";return t<e.length&&(r=e.charAt(t)),r}T=e.STATE,String.fromCodePoint||(b=String.fromCharCode,M=Math.floor,w=function(){var e,t,r=16384,n=[],i=-1,a=arguments.length;if(!a)return"";for(var o="";++i<a;){var s=Number(arguments[i]);if(!isFinite(s)||s<0||s>1114111||M(s)!==s)throw RangeError("Invalid code point: "+s);s<=65535?n.push(s):(e=55296+((s-=65536)>>10),t=s%1024+56320,n.push(e,t)),(i+1===a||n.length>r)&&(o+=b.apply(null,n),n.length=0)}return o},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:w,configurable:!0,writable:!0}):String.fromCodePoint=w)}(t)},77794:(e,t,r)=>{e.exports=i;var n=r(15842).EventEmitter;function i(){n.call(this)}r(23128)(i,n),i.Readable=r(55324),i.Writable=r(30799),i.Duplex=r(88608),i.Transform=r(25430),i.PassThrough=r(64584),i.finished=r(7586),i.pipeline=r(76590),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",l));var o=!1;function s(){o||(o=!0,e.end())}function l(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),e.removeListener("drain",a),r.removeListener("end",s),r.removeListener("close",l),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",u),e.on("error",u),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},80956:(e,t,r)=>{var n=r(47103).Buffer,i=n.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},a=t.s=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=l;break;default:return void(this.write=o)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function o(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function l(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}a.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!((n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(n=t.charCodeAt(i))>=55296&&n<=56319){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),e.copy(this.charBuffer,0,0,a),t.substring(0,i)}return t},a.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},a.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},171:(e,t,r)=>{"use strict";function n(e,t,r,n){var i,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,r,o):i(t,r))||o);return a>3&&o&&Object.defineProperty(t,r,o),o}r.d(t,{gn:()=>n}),Object.create,Object.create},14655:(e,t,r)=>{var n=r(51266);function i(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(i("noDeprecation"))return e;var r=!1;return function(){if(!r){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?n.trace(t):n.warn(t),r=!0}return e.apply(this,arguments)}}},66008:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},85193:(e,t,r)=>{"use strict";var n=r(81582),i=r(72654),a=r(86967),o=r(11438);function s(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,c=s(Object.prototype.toString),d=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),f=s(Boolean.prototype.valueOf);if(l)var p=s(BigInt.prototype.valueOf);if(u)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function v(e){return"[object Map]"===c(e)}function y(e){return"[object Set]"===c(e)}function _(e){return"[object WeakMap]"===c(e)}function b(e){return"[object WeakSet]"===c(e)}function M(e){return"[object ArrayBuffer]"===c(e)}function w(e){return"undefined"!=typeof ArrayBuffer&&(M.working?M(e):e instanceof ArrayBuffer)}function T(e){return"[object DataView]"===c(e)}function L(e){return"undefined"!=typeof DataView&&(T.working?T(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=o,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):o(e)||L(e)},t.isUint8Array=function(e){return"Uint8Array"===a(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===a(e)},t.isUint16Array=function(e){return"Uint16Array"===a(e)},t.isUint32Array=function(e){return"Uint32Array"===a(e)},t.isInt8Array=function(e){return"Int8Array"===a(e)},t.isInt16Array=function(e){return"Int16Array"===a(e)},t.isInt32Array=function(e){return"Int32Array"===a(e)},t.isFloat32Array=function(e){return"Float32Array"===a(e)},t.isFloat64Array=function(e){return"Float64Array"===a(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===a(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===a(e)},v.working="undefined"!=typeof Map&&v(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(v.working?v(e):e instanceof Map)},y.working="undefined"!=typeof Set&&y(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(y.working?y(e):e instanceof Set)},_.working="undefined"!=typeof WeakMap&&_(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(_.working?_(e):e instanceof WeakMap)},b.working="undefined"!=typeof WeakSet&&b(new WeakSet),t.isWeakSet=function(e){return b(e)},M.working="undefined"!=typeof ArrayBuffer&&M(new ArrayBuffer),t.isArrayBuffer=w,T.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&T(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=L;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function k(e){return"[object SharedArrayBuffer]"===c(e)}function x(e){return void 0!==S&&(void 0===k.working&&(k.working=k(new S)),k.working?k(e):e instanceof S)}function E(e){return g(e,d)}function D(e){return g(e,h)}function A(e){return g(e,f)}function O(e){return l&&g(e,p)}function P(e){return u&&g(e,m)}t.isSharedArrayBuffer=x,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=E,t.isStringObject=D,t.isBooleanObject=A,t.isBigIntObject=O,t.isSymbolObject=P,t.isBoxedPrimitive=function(e){return E(e)||D(e)||A(e)||O(e)||P(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(w(e)||x(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},17396:(e,t,r)=>{var n=r(6591),i=r(51266),a=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r<i;s=n[++r])y(s)||!T(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var a=!1;return function(){if(!a){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?i.trace(r):i.error(r),a=!0}return e.apply(this,arguments)}};var s={},l=/^$/;if({"NODE-ENV":"production","SHELL-VERSION":"6.0.0-zeta.30","SHELL-LICENSE":void 0,"APP-VERSION":"6.0.0-zeta.31","APP-LICENSE":void 0,"APP-NAME":"@things-factory/reference-app","APP-DESCRIPTION":"Applications that can be referenced for development","APP-TAGLINE":void 0}.NODE_DEBUG){var u={"NODE-ENV":"production","SHELL-VERSION":"6.0.0-zeta.30","SHELL-LICENSE":void 0,"APP-VERSION":"6.0.0-zeta.31","APP-LICENSE":void 0,"APP-NAME":"@things-factory/reference-app","APP-DESCRIPTION":"Applications that can be referenced for development","APP-TAGLINE":void 0}.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+u+"$","i")}function c(e,r){var n={seen:[],stylize:h};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),v(r)?n.showHidden=r:r&&t._extend(n,r),M(n.showHidden)&&(n.showHidden=!1),M(n.depth)&&(n.depth=2),M(n.colors)&&(n.colors=!1),M(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=d),f(n,e,n.depth)}function d(e,t){var r=c.styles[t];return r?"["+c.colors[r][0]+"m"+e+"["+c.colors[r][1]+"m":e}function h(e,t){return e}function f(e,r,n){if(e.customInspect&&r&&k(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return b(i)||(i=f(e,i,n)),i}var a=function(e,t){if(M(t))return e.stylize("undefined","undefined");if(b(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return _(t)?e.stylize(""+t,"number"):v(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,r);if(a)return a;var o=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(r)),S(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return p(r);if(0===o.length){if(k(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(L(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return p(r)}var u,c="",d=!1,h=["{","}"];return g(r)&&(d=!0,h=["[","]"]),k(r)&&(c=" [Function"+(r.name?": "+r.name:"")+"]"),w(r)&&(c=" "+RegExp.prototype.toString.call(r)),L(r)&&(c=" "+Date.prototype.toUTCString.call(r)),S(r)&&(c=" "+p(r)),0!==o.length||d&&0!=r.length?n<0?w(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=d?function(e,t,r,n,i){for(var a=[],o=0,s=t.length;o<s;++o)O(t,String(o))?a.push(m(e,t,r,n,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(m(e,t,r,n,i,!0))})),a}(e,r,n,s,o):o.map((function(t){return m(e,r,n,s,t,d)})),e.seen.pop(),function(e,t,r){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(u,c,h)):h[0]+c+h[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,r,n,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),O(n,i)||(o="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=y(r)?f(e,l.value,null):f(e,l.value,r-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),M(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function g(e){return Array.isArray(e)}function v(e){return"boolean"==typeof e}function y(e){return null===e}function _(e){return"number"==typeof e}function b(e){return"string"==typeof e}function M(e){return void 0===e}function w(e){return T(e)&&"[object RegExp]"===x(e)}function T(e){return"object"==typeof e&&null!==e}function L(e){return T(e)&&"[object Date]"===x(e)}function S(e){return T(e)&&("[object Error]"===x(e)||e instanceof Error)}function k(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function E(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(l.test(e)){var r=n.pid;s[e]=function(){var n=t.format.apply(t,arguments);i.error("%s %d: %s",e,r,n)}}else s[e]=function(){};return s[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(85193),t.isArray=g,t.isBoolean=v,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=_,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=M,t.isRegExp=w,t.types.isRegExp=w,t.isObject=T,t.isDate=L,t.types.isDate=L,t.isError=S,t.types.isNativeError=S,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(66008);var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(){var e=new Date,t=[E(e.getHours()),E(e.getMinutes()),E(e.getSeconds())].join(":");return[e.getDate(),D[e.getMonth()],t].join(" ")}function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){i.log("%s - %s",A(),t.format.apply(t,arguments))},t.inherits=r(23128),t._extend=function(e,t){if(!t||!T(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var P="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(P&&e[P]){var t;if("function"!=typeof(t=e[P]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],a=0;a<arguments.length;a++)i.push(arguments[a]);i.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),P&&Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,a(e))},t.promisify.custom=P,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var a=this,o=function(){return i.apply(a,arguments)};e.apply(this,t).then((function(e){n.nextTick(o.bind(null,null,e))}),(function(e){n.nextTick(R.bind(null,e,o))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,a(e)),t}},72866:(e,t,r)=>{var n,i,a=r(51266);i={},function(e,t){function r(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=h}function n(){return e.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(t,n,i){var a=new r;return n&&(a.fill="both",a.duration="auto"),"number"!=typeof t||isNaN(t)?void 0!==t&&Object.getOwnPropertyNames(t).forEach((function(r){if("auto"!=t[r]){if(("number"==typeof a[r]||"duration"==r)&&("number"!=typeof t[r]||isNaN(t[r])))return;if("fill"==r&&-1==c.indexOf(t[r]))return;if("direction"==r&&-1==d.indexOf(t[r]))return;if("playbackRate"==r&&1!==t[r]&&e.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;a[r]=t[r]}})):a.duration=t,a}function a(e,t,r,n){return e<0||e>1||r<0||r>1?h:function(i){function a(e,t,r){return 3*e*(1-r)*(1-r)*r+3*t*(1-r)*r*r+r*r*r}if(i<=0){var o=0;return e>0?o=t/e:!t&&r>0&&(o=n/r),o*i}if(i>=1){var s=0;return r<1?s=(n-1)/(r-1):1==r&&e<1&&(s=(t-1)/(e-1)),1+s*(i-1)}for(var l=0,u=1;l<u;){var c=(l+u)/2,d=a(e,r,c);if(Math.abs(i-d)<1e-5)return a(t,n,c);d<i?l=c:u=c}return a(t,n,c)}}function o(e,t){return function(r){if(r>=1)return 1;var n=1/e;return(r+=t*n)-r%n}}function s(e){v||(v=document.createElement("div").style),v.animationTimingFunction="",v.animationTimingFunction=e;var t=v.animationTimingFunction;if(""==t&&n())throw new TypeError(e+" is not a valid value for easing");return t}function l(e){if("linear"==e)return h;var t=_.exec(e);if(t)return a.apply(this,t.slice(1).map(Number));var r=b.exec(e);if(r)return o(Number(r[1]),m);var n=M.exec(e);return n?o(Number(n[1]),{start:f,middle:p,end:m}[n[2]]):g[e]||h}function u(e,t,r){if(null==t)return w;var n=r.delay+e+r.endDelay;return t<Math.min(r.delay,n)?T:t>=Math.min(r.delay+e,n)?L:S}var c="backwards|forwards|both|none".split("|"),d="reverse|alternate|alternate-reverse".split("|"),h=function(e){return e};r.prototype={_setMember:function(t,r){this["_"+t]=r,this._effect&&(this._effect._timingInput[t]=r,this._effect._timing=e.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=e.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(e){this._setMember("delay",e)},get delay(){return this._delay},set endDelay(e){this._setMember("endDelay",e)},get endDelay(){return this._endDelay},set fill(e){this._setMember("fill",e)},get fill(){return this._fill},set iterationStart(e){if((isNaN(e)||e<0)&&n())throw new TypeError("iterationStart must be a non-negative number, received: "+e);this._setMember("iterationStart",e)},get iterationStart(){return this._iterationStart},set duration(e){if("auto"!=e&&(isNaN(e)||e<0)&&n())throw new TypeError("duration must be non-negative or auto, received: "+e);this._setMember("duration",e)},get duration(){return this._duration},set direction(e){this._setMember("direction",e)},get direction(){return this._direction},set easing(e){this._easingFunction=l(s(e)),this._setMember("easing",e)},get easing(){return this._easing},set iterations(e){if((isNaN(e)||e<0)&&n())throw new TypeError("iterations must be non-negative, received: "+e);this._setMember("iterations",e)},get iterations(){return this._iterations}};var f=1,p=.5,m=0,g={ease:a(.25,.1,.25,1),"ease-in":a(.42,0,1,1),"ease-out":a(0,0,.58,1),"ease-in-out":a(.42,0,.58,1),"step-start":o(1,f),"step-middle":o(1,p),"step-end":o(1,m)},v=null,y="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",_=new RegExp("cubic-bezier\\("+y+","+y+","+y+","+y+"\\)"),b=/steps\(\s*(\d+)\s*\)/,M=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,w=0,T=1,L=2,S=3;e.cloneTimingInput=function(e){if("number"==typeof e)return e;var t={};for(var r in e)t[r]=e[r];return t},e.makeTiming=i,e.numericTimingToObject=function(e){return"number"==typeof e&&(e=isNaN(e)?{duration:0}:{duration:e}),e},e.normalizeTimingInput=function(t,r){return i(t=e.numericTimingToObject(t),r)},e.calculateActiveDuration=function(e){return Math.abs(function(e){return 0===e.duration||0===e.iterations?0:e.duration*e.iterations}(e)/e.playbackRate)},e.calculateIterationProgress=function(e,t,r){var n=u(e,t,r),i=function(e,t,r,n,i){switch(n){case T:return"backwards"==t||"both"==t?0:null;case S:return r-i;case L:return"forwards"==t||"both"==t?e:null;case w:return null}}(e,r.fill,t,n,r.delay);if(null===i)return null;var a=function(e,t,r,n,i){var a=i;return 0===e?t!==T&&(a+=r):a+=n/e,a}(r.duration,n,r.iterations,i,r.iterationStart),o=function(e,t,r,n,i,a){var o=e===1/0?t%1:e%1;return 0!==o||r!==L||0===n||0===i&&0!==a||(o=1),o}(a,r.iterationStart,n,r.iterations,i,r.duration),s=function(e,t,r,n){return e===L&&t===1/0?1/0:1===r?Math.floor(n)-1:Math.floor(n)}(n,r.iterations,o,a),l=function(e,t,r){var n=e;if("normal"!==e&&"reverse"!==e){var i=t;"alternate-reverse"===e&&(i+=1),n="normal",i!==1/0&&i%2!=0&&(n="reverse")}return"normal"===n?r:1-r}(r.direction,s,o);return r._easingFunction(l)},e.calculatePhase=u,e.normalizeEasing=s,e.parseEasingFunction=l}(n={}),function(e,t){function r(e,t){return e in l&&l[e][t]||t}function n(e,t,n){if(!function(e){return"display"===e||0===e.lastIndexOf("animation",0)||0===e.lastIndexOf("transition",0)}(e)){var i=a[e];if(i)for(var s in o.style[e]=t,i){var l=i[s],u=o.style[l];n[l]=r(l,u)}else n[e]=r(e,t)}}function i(e){var t=[];for(var r in e)if(!(r in["easing","offset","composite"])){var n=e[r];Array.isArray(n)||(n=[n]);for(var i,a=n.length,o=0;o<a;o++)(i={}).offset="offset"in e?e.offset:1==a?1:o/(a-1),"easing"in e&&(i.easing=e.easing),"composite"in e&&(i.composite=e.composite),i[r]=n[o],t.push(i)}return t.sort((function(e,t){return e.offset-t.offset})),t}var a={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},o=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s={thin:"1px",medium:"3px",thick:"5px"},l={borderBottomWidth:s,borderLeftWidth:s,borderRightWidth:s,borderTopWidth:s,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:s,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};e.convertToArrayForm=i,e.normalizeKeyframes=function(t){if(null==t)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||(t=i(t));for(var r=t.map((function(t){var r={};for(var i in t){var a=t[i];if("offset"==i){if(null!=a){if(a=Number(a),!isFinite(a))throw new TypeError("Keyframe offsets must be numbers.");if(a<0||a>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==i){if("add"==a||"accumulate"==a)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=a)throw new TypeError("Invalid composite mode "+a+".")}else a="easing"==i?e.normalizeEasing(a):""+a;n(i,a,r)}return null==r.offset&&(r.offset=null),null==r.easing&&(r.easing="linear"),r})),a=!0,o=-1/0,s=0;s<r.length;s++){var l=r[s].offset;if(null!=l){if(l<o)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");o=l}else a=!1}return r=r.filter((function(e){return e.offset>=0&&e.offset<=1})),a||function(){var e=r.length;null==r[e-1].offset&&(r[e-1].offset=1),e>1&&null==r[0].offset&&(r[0].offset=0);for(var t=0,n=r[0].offset,i=1;i<e;i++){var a=r[i].offset;if(null!=a){for(var o=1;o<i-t;o++)r[t+o].offset=n+(a-n)*o/(i-t);t=i,n=a}}}(),r}}(n),function(e){var t={};e.isDeprecated=function(e,r,n,i){var o=i?"are":"is",s=new Date,l=new Date(r);return l.setMonth(l.getMonth()+3),!(s<l&&(e in t||a.warn("Web Animations: "+e+" "+o+" deprecated and will stop working on "+l.toDateString()+". "+n),t[e]=!0,1))},e.deprecated=function(t,r,n,i){var a=i?"are":"is";if(e.isDeprecated(t,r,n,i))throw new Error(t+" "+a+" no longer supported. "+n)}}(n),function(){if(document.documentElement.animate){var e=document.documentElement.animate([],0),t=!0;if(e&&(t=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach((function(r){void 0===e[r]&&(t=!0)}))),!t)return}!function(e,t,r){t.convertEffectInput=function(r){var n=function(e){for(var t={},r=0;r<e.length;r++)for(var n in e[r])if("offset"!=n&&"easing"!=n&&"composite"!=n){var i={offset:e[r].offset,easing:e[r].easing,value:e[r][n]};t[n]=t[n]||[],t[n].push(i)}for(var a in t){var o=t[a];if(0!=o[0].offset||1!=o[o.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return t}(e.normalizeKeyframes(r)),i=function(r){var n=[];for(var i in r)for(var a=r[i],o=0;o<a.length-1;o++){var s=o,l=o+1,u=a[s].offset,c=a[l].offset,d=u,h=c;0==o&&(d=-1/0,0==c&&(l=s)),o==a.length-2&&(h=1/0,1==u&&(s=l)),n.push({applyFrom:d,applyTo:h,startOffset:a[s].offset,endOffset:a[l].offset,easingFunction:e.parseEasingFunction(a[s].easing),property:i,interpolation:t.propertyInterpolation(i,a[s].value,a[l].value)})}return n.sort((function(e,t){return e.startOffset-t.startOffset})),n}(n);return function(e,r){if(null!=r)i.filter((function(e){return r>=e.applyFrom&&r<e.applyTo})).forEach((function(n){var i=r-n.startOffset,a=n.endOffset-n.startOffset,o=0==a?0:n.easingFunction(i/a);t.apply(e,n.property,n.interpolation(o))}));else for(var a in n)"offset"!=a&&"easing"!=a&&"composite"!=a&&t.clear(e,a)}}}(n,i),function(e,t,r){function n(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function i(e,t,r){a[r]=a[r]||[],a[r].push([e,t])}var a={};t.addPropertiesHandler=function(e,t,r){for(var a=0;a<r.length;a++)i(e,t,n(r[a]))};var o={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};t.propertyInterpolation=function(r,i,s){var l=r;/-/.test(r)&&!e.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(l=n(r)),"initial"!=i&&"initial"!=s||("initial"==i&&(i=o[l]),"initial"==s&&(s=o[l]));for(var u=i==s?[]:a[l],c=0;u&&c<u.length;c++){var d=u[c][0](i),h=u[c][0](s);if(void 0!==d&&void 0!==h){var f=u[c][1](d,h);if(f){var p=t.Interpolation.apply(null,f);return function(e){return 0==e?i:1==e?s:p(e)}}}}return t.Interpolation(!1,!0,(function(e){return e?s:i}))}}(n,i),function(e,t,r){t.KeyframeEffect=function(r,n,i,a){var o,s=function(t){var r=e.calculateActiveDuration(t),n=function(n){return e.calculateIterationProgress(r,n,t)};return n._totalDuration=t.delay+r+t.endDelay,n}(e.normalizeTimingInput(i)),l=t.convertEffectInput(n),u=function(){l(r,o)};return u._update=function(e){return null!==(o=s(e))},u._clear=function(){l(r,null)},u._hasSameTarget=function(e){return r===e},u._target=r,u._totalDuration=s._totalDuration,u._id=a,u}}(n,i),function(e,t){function r(e,t,r){r.enumerable=!0,r.configurable=!0,Object.defineProperty(e,t,r)}function n(e){this._element=e,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=e.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(e,t){return!(!t.namespaceURI||-1==t.namespaceURI.indexOf("/svg"))&&(a in e||(e[a]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(e.navigator.userAgent)),e[a])}(window,e),this._savedTransformAttr=null;for(var t=0;t<this._style.length;t++){var r=this._style[t];this._surrogateStyle[r]=this._style[r]}this._updateIndices()}function i(e){if(!e._webAnimationsPatchedStyle){var t=new n(e);try{r(e,"style",{get:function(){return t}})}catch(t){e.style._set=function(t,r){e.style[t]=r},e.style._clear=function(t){e.style[t]=""}}e._webAnimationsPatchedStyle=e.style}}var a="_webAnimationsUpdateSvgTransformAttr",o={cssText:1,length:1,parentRule:1},s={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},l={removeProperty:1,setProperty:1};for(var u in n.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(e){for(var t={},r=0;r<this._surrogateStyle.length;r++)t[this._surrogateStyle[r]]=!0;for(this._surrogateStyle.cssText=e,this._updateIndices(),r=0;r<this._surrogateStyle.length;r++)t[this._surrogateStyle[r]]=!0;for(var n in t)this._isAnimatedProperty[n]||this._style.setProperty(n,this._surrogateStyle.getPropertyValue(n))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(e){return function(){return this._surrogateStyle[e]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(t,r){this._style[t]=r,this._isAnimatedProperty[t]=!0,this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",e.transformToSvgMatrix(r)))},_clear:function(t){this._style[t]=this._surrogateStyle[t],this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[t]}},s)n.prototype[u]=function(e,t){return function(){var r=this._surrogateStyle[e].apply(this._surrogateStyle,arguments);return t&&(this._isAnimatedProperty[arguments[0]]||this._style[e].apply(this._style,arguments),this._updateIndices()),r}}(u,u in l);for(var c in document.documentElement.style)c in o||c in s||function(e){r(n.prototype,e,{get:function(){return this._surrogateStyle[e]},set:function(t){this._surrogateStyle[e]=t,this._updateIndices(),this._isAnimatedProperty[e]||(this._style[e]=t)}})}(c);e.apply=function(t,r,n){i(t),t.style._set(e.propertyName(r),n)},e.clear=function(t,r){t._webAnimationsPatchedStyle&&t.style._clear(e.propertyName(r))}}(i),function(e){window.Element.prototype.animate=function(t,r){var n="";return r&&r.id&&(n=r.id),e.timeline._play(e.KeyframeEffect(this,t,r,n))}}(i),function(e,t){function r(e,t,n){if("number"==typeof e&&"number"==typeof t)return e*(1-n)+t*n;if("boolean"==typeof e&&"boolean"==typeof t)return n<.5?e:t;if(e.length==t.length){for(var i=[],a=0;a<e.length;a++)i.push(r(e[a],t[a],n));return i}throw"Mismatched interpolation arguments "+e+":"+t}e.Interpolation=function(e,t,n){return function(i){return n(r(e,t,i))}}}(i),function(e,t){var r=function(){function e(e,t){for(var r=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],n=0;n<4;n++)for(var i=0;i<4;i++)for(var a=0;a<4;a++)r[n][i]+=t[n][a]*e[a][i];return r}return function(t,r,n,i,a){for(var o=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],s=0;s<4;s++)o[s][3]=a[s];for(s=0;s<3;s++)for(var l=0;l<3;l++)o[3][s]+=t[l]*o[l][s];var u=i[0],c=i[1],d=i[2],h=i[3],f=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];f[0][0]=1-2*(c*c+d*d),f[0][1]=2*(u*c-d*h),f[0][2]=2*(u*d+c*h),f[1][0]=2*(u*c+d*h),f[1][1]=1-2*(u*u+d*d),f[1][2]=2*(c*d-u*h),f[2][0]=2*(u*d-c*h),f[2][1]=2*(c*d+u*h),f[2][2]=1-2*(u*u+c*c),o=e(o,f);var p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(n[2]&&(p[2][1]=n[2],o=e(o,p)),n[1]&&(p[2][1]=0,p[2][0]=n[0],o=e(o,p)),n[0]&&(p[2][0]=0,p[1][0]=n[0],o=e(o,p)),s=0;s<3;s++)for(l=0;l<3;l++)o[s][l]*=r[s];return function(e){return 0==e[0][2]&&0==e[0][3]&&0==e[1][2]&&0==e[1][3]&&0==e[2][0]&&0==e[2][1]&&1==e[2][2]&&0==e[2][3]&&0==e[3][2]&&1==e[3][3]}(o)?[o[0][0],o[0][1],o[1][0],o[1][1],o[3][0],o[3][1]]:o[0].concat(o[1],o[2],o[3])}}();e.composeMatrix=r,e.quat=function(t,r,n){var i=e.dot(t,r);i=function(e,t,r){return Math.max(Math.min(e,1),-1)}(i);var a=[];if(1===i)a=t;else for(var o=Math.acos(i),s=1*Math.sin(n*o)/Math.sqrt(1-i*i),l=0;l<4;l++)a.push(t[l]*(Math.cos(n*o)-i*s)+r[l]*s);return a}}(i),function(e,t,r){e.sequenceNumber=0;var n=function(e,t,r){this.target=e,this.currentTime=t,this.timelineTime=r,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};t.Animation=function(t){this.id="",t&&t._id&&(this.id=t._id),this._sequenceNumber=e.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=t,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},t.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,t.timeline._animations.push(this))},_tickCurrentTime:function(e,t){e!=this._currentTime&&(this._currentTime=e,this._isFinished&&!t&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(e){e=+e,isNaN(e)||(t.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-e/this._playbackRate),this._currentTimePending=!1,this._currentTime!=e&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(e,!0),t.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(e){e=+e,isNaN(e)||this._paused||this._idle||(this._startTime=e,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),t.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(e){if(e!=this._playbackRate){var r=this.currentTime;this._playbackRate=e,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)),null!=r&&(this.currentTime=r)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,t.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),t.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(e,t){"function"==typeof t&&"finish"==e&&this._finishHandlers.push(t)},removeEventListener:function(e,t){if("finish"==e){var r=this._finishHandlers.indexOf(t);r>=0&&this._finishHandlers.splice(r,1)}},_fireEvents:function(e){if(this._isFinished){if(!this._finishedFlag){var t=new n(this,this._currentTime,e),r=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){r.forEach((function(e){e.call(t.target,t)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(e,t){this._idle||this._paused||(null==this._startTime?t&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((e-this._startTime)*this.playbackRate)),t&&(this._currentTimePending=!1,this._fireEvents(e))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var e=this._effect._target;return e._activeAnimations||(e._activeAnimations=[]),e._activeAnimations},_markTarget:function(){var e=this._targetAnimations();-1===e.indexOf(this)&&e.push(this)},_unmarkTarget:function(){var e=this._targetAnimations(),t=e.indexOf(this);-1!==t&&e.splice(t,1)}}}(n,i),function(e,t,r){function n(e){var t=u;u=[],e<m.currentTime&&(e=m.currentTime),m._animations.sort(i),m._animations=s(e,!0,m._animations)[0],t.forEach((function(t){t[1](e)})),o()}function i(e,t){return e._sequenceNumber-t._sequenceNumber}function a(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function o(){f.forEach((function(e){e()})),f.length=0}function s(e,r,n){p=!0,h=!1,t.timeline.currentTime=e,d=!1;var i=[],a=[],o=[],s=[];return n.forEach((function(t){t._tick(e,r),t._inEffect?(a.push(t._effect),t._markTarget()):(i.push(t._effect),t._unmarkTarget()),t._needsTick&&(d=!0);var n=t._inEffect||t._needsTick;t._inTimeline=n,n?o.push(t):s.push(t)})),f.push.apply(f,i),f.push.apply(f,a),d&&requestAnimationFrame((function(){})),p=!1,[o,s]}var l=window.requestAnimationFrame,u=[],c=0;window.requestAnimationFrame=function(e){var t=c++;return 0==u.length&&l(n),u.push([t,e]),t},window.cancelAnimationFrame=function(e){u.forEach((function(t){t[0]==e&&(t[1]=function(){})}))},a.prototype={_play:function(r){r._timing=e.normalizeTimingInput(r.timing);var n=new t.Animation(r);return n._idle=!1,n._timeline=this,this._animations.push(n),t.restart(),t.applyDirtiedAnimation(n),n}};var d=!1,h=!1;t.restart=function(){return d||(d=!0,requestAnimationFrame((function(){})),h=!0),h},t.applyDirtiedAnimation=function(e){if(!p){e._markTarget();var r=e._targetAnimations();r.sort(i),s(t.timeline.currentTime,!1,r.slice())[1].forEach((function(e){var t=m._animations.indexOf(e);-1!==t&&m._animations.splice(t,1)})),o()}};var f=[],p=!1,m=new a;t.timeline=m}(n,i),function(e,t){function r(e,t){for(var r=0,n=0;n<e.length;n++)r+=e[n]*t[n];return r}function n(e,t){return[e[0]*t[0]+e[4]*t[1]+e[8]*t[2]+e[12]*t[3],e[1]*t[0]+e[5]*t[1]+e[9]*t[2]+e[13]*t[3],e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]*t[3],e[3]*t[0]+e[7]*t[1]+e[11]*t[2]+e[15]*t[3],e[0]*t[4]+e[4]*t[5]+e[8]*t[6]+e[12]*t[7],e[1]*t[4]+e[5]*t[5]+e[9]*t[6]+e[13]*t[7],e[2]*t[4]+e[6]*t[5]+e[10]*t[6]+e[14]*t[7],e[3]*t[4]+e[7]*t[5]+e[11]*t[6]+e[15]*t[7],e[0]*t[8]+e[4]*t[9]+e[8]*t[10]+e[12]*t[11],e[1]*t[8]+e[5]*t[9]+e[9]*t[10]+e[13]*t[11],e[2]*t[8]+e[6]*t[9]+e[10]*t[10]+e[14]*t[11],e[3]*t[8]+e[7]*t[9]+e[11]*t[10]+e[15]*t[11],e[0]*t[12]+e[4]*t[13]+e[8]*t[14]+e[12]*t[15],e[1]*t[12]+e[5]*t[13]+e[9]*t[14]+e[13]*t[15],e[2]*t[12]+e[6]*t[13]+e[10]*t[14]+e[14]*t[15],e[3]*t[12]+e[7]*t[13]+e[11]*t[14]+e[15]*t[15]]}function i(e){var t=e.rad||0;return((e.deg||0)/360+(e.grad||0)/400+(e.turn||0))*(2*Math.PI)+t}function a(e){switch(e.t){case"rotatex":var t=i(e.d[0]);return[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1];case"rotatey":return t=i(e.d[0]),[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1];case"rotate":case"rotatez":return t=i(e.d[0]),[Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var r=e.d[0],n=e.d[1],a=e.d[2],o=(t=i(e.d[3]),r*r+n*n+a*a);if(0===o)r=1,n=0,a=0;else if(1!==o){var s=Math.sqrt(o);r/=s,n/=s,a/=s}var l=Math.sin(t/2),u=l*Math.cos(t/2),c=l*l;return[1-2*(n*n+a*a)*c,2*(r*n*c+a*u),2*(r*a*c-n*u),0,2*(r*n*c-a*u),1-2*(r*r+a*a)*c,2*(n*a*c+r*u),0,2*(r*a*c+n*u),2*(n*a*c-r*u),1-2*(r*r+n*n)*c,0,0,0,0,1];case"scale":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[e.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,e.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,e.d[0],0,0,0,0,1];case"scale3d":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,e.d[2],0,0,0,0,1];case"skew":var d=i(e.d[0]),h=i(e.d[1]);return[1,Math.tan(h),0,0,Math.tan(d),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return t=i(e.d[0]),[1,0,0,0,Math.tan(t),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return t=i(e.d[0]),[1,Math.tan(t),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,r=e.d[0].px||0,n=e.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,r=e.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,n=e.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,a=e.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,r=e.d[0].px||0,n=e.d[1].px||0,a=e.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,e.d[0].px?-1/e.d[0].px:0,0,0,0,1];case"matrix":return[e.d[0],e.d[1],0,0,e.d[2],e.d[3],0,0,0,0,1,0,e.d[4],e.d[5],0,1];case"matrix3d":return e.d}}function o(e){return 0===e.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:e.map(a).reduce(n)}var s=function(){function e(e){return e[0][0]*e[1][1]*e[2][2]+e[1][0]*e[2][1]*e[0][2]+e[2][0]*e[0][1]*e[1][2]-e[0][2]*e[1][1]*e[2][0]-e[1][2]*e[2][1]*e[0][0]-e[2][2]*e[0][1]*e[1][0]}function t(e){var t=n(e);return[e[0]/t,e[1]/t,e[2]/t]}function n(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}function i(e,t,r,n){return[r*e[0]+n*t[0],r*e[1]+n*t[1],r*e[2]+n*t[2]]}return function(a){var o=[a.slice(0,4),a.slice(4,8),a.slice(8,12),a.slice(12,16)];if(1!==o[3][3])return null;for(var s=[],l=0;l<4;l++)s.push(o[l].slice());for(l=0;l<3;l++)s[l][3]=0;if(0===e(s))return null;var u,c=[];o[0][3]||o[1][3]||o[2][3]?(c.push(o[0][3]),c.push(o[1][3]),c.push(o[2][3]),c.push(o[3][3]),u=function(e,t){for(var r=[],n=0;n<4;n++){for(var i=0,a=0;a<4;a++)i+=e[a]*t[a][n];r.push(i)}return r}(c,function(e){return[[e[0][0],e[1][0],e[2][0],e[3][0]],[e[0][1],e[1][1],e[2][1],e[3][1]],[e[0][2],e[1][2],e[2][2],e[3][2]],[e[0][3],e[1][3],e[2][3],e[3][3]]]}(function(t){for(var r=1/e(t),n=t[0][0],i=t[0][1],a=t[0][2],o=t[1][0],s=t[1][1],l=t[1][2],u=t[2][0],c=t[2][1],d=t[2][2],h=[[(s*d-l*c)*r,(a*c-i*d)*r,(i*l-a*s)*r,0],[(l*u-o*d)*r,(n*d-a*u)*r,(a*o-n*l)*r,0],[(o*c-s*u)*r,(u*i-n*c)*r,(n*s-i*o)*r,0]],f=[],p=0;p<3;p++){for(var m=0,g=0;g<3;g++)m+=t[3][g]*h[g][p];f.push(m)}return f.push(1),h.push(f),h}(s)))):u=[0,0,0,1];var d=o[3].slice(0,3),h=[];h.push(o[0].slice(0,3));var f=[];f.push(n(h[0])),h[0]=t(h[0]);var p=[];h.push(o[1].slice(0,3)),p.push(r(h[0],h[1])),h[1]=i(h[1],h[0],1,-p[0]),f.push(n(h[1])),h[1]=t(h[1]),p[0]/=f[1],h.push(o[2].slice(0,3)),p.push(r(h[0],h[2])),h[2]=i(h[2],h[0],1,-p[1]),p.push(r(h[1],h[2])),h[2]=i(h[2],h[1],1,-p[2]),f.push(n(h[2])),h[2]=t(h[2]),p[1]/=f[2],p[2]/=f[2];var m=function(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}(h[1],h[2]);if(r(h[0],m)<0)for(l=0;l<3;l++)f[l]*=-1,h[l][0]*=-1,h[l][1]*=-1,h[l][2]*=-1;var g,v,y=h[0][0]+h[1][1]+h[2][2]+1;return y>1e-4?(g=.5/Math.sqrt(y),v=[(h[2][1]-h[1][2])*g,(h[0][2]-h[2][0])*g,(h[1][0]-h[0][1])*g,.25/g]):h[0][0]>h[1][1]&&h[0][0]>h[2][2]?v=[.25*(g=2*Math.sqrt(1+h[0][0]-h[1][1]-h[2][2])),(h[0][1]+h[1][0])/g,(h[0][2]+h[2][0])/g,(h[2][1]-h[1][2])/g]:h[1][1]>h[2][2]?(g=2*Math.sqrt(1+h[1][1]-h[0][0]-h[2][2]),v=[(h[0][1]+h[1][0])/g,.25*g,(h[1][2]+h[2][1])/g,(h[0][2]-h[2][0])/g]):(g=2*Math.sqrt(1+h[2][2]-h[0][0]-h[1][1]),v=[(h[0][2]+h[2][0])/g,(h[1][2]+h[2][1])/g,.25*g,(h[1][0]-h[0][1])/g]),[d,f,p,v,u]}}();e.dot=r,e.makeMatrixDecomposition=function(e){return[s(o(e))]},e.transformListToMatrix=o}(i),function(e){function t(e,t){var r=e.exec(t);if(r)return[r=e.ignoreCase?r[0].toLowerCase():r[0],t.substr(r.length)]}function r(e,t){var r=e(t=t.replace(/^\s*/,""));if(r)return[r[0],r[1].replace(/^\s*/,"")]}function n(e,t,r,n,i){for(var a=[],o=[],s=[],l=function(e,t){for(var r=e,n=t;r&&n;)r>n?r%=n:n%=r;return e*t/(r+n)}(n.length,i.length),u=0;u<l;u++){var c=t(n[u%n.length],i[u%i.length]);if(!c)return;a.push(c[0]),o.push(c[1]),s.push(c[2])}return[a,o,function(t){var n=t.map((function(e,t){return s[t](e)})).join(r);return e?e(n):n}]}e.consumeToken=t,e.consumeTrimmed=r,e.consumeRepeated=function(e,n,i){e=r.bind(null,e);for(var a=[];;){var o=e(i);if(!o)return[a,i];if(a.push(o[0]),!(o=t(n,i=o[1]))||""==o[1])return[a,i];i=o[1]}},e.consumeParenthesised=function(e,t){for(var r=0,n=0;n<t.length&&(!/\s|,/.test(t[n])||0!=r);n++)if("("==t[n])r++;else if(")"==t[n]&&(0==--r&&n++,r<=0))break;var i=e(t.substr(0,n));return null==i?void 0:[i,t.substr(n)]},e.ignore=function(e){return function(t){var r=e(t);return r&&(r[0]=void 0),r}},e.optional=function(e,t){return function(r){return e(r)||[t,r]}},e.consumeList=function(t,r){for(var n=[],i=0;i<t.length;i++){var a=e.consumeTrimmed(t[i],r);if(!a||""==a[0])return;void 0!==a[0]&&n.push(a[0]),r=a[1]}if(""==r)return n},e.mergeNestedRepeated=n.bind(null,null),e.mergeWrappedNestedRepeated=n,e.mergeList=function(e,t,r){for(var n=[],i=[],a=[],o=0,s=0;s<r.length;s++)if("function"==typeof r[s]){var l=r[s](e[o],t[o++]);n.push(l[0]),i.push(l[1]),a.push(l[2])}else!function(e){n.push(!1),i.push(!1),a.push((function(){return r[e]}))}(s);return[n,i,function(e){for(var t="",r=0;r<e.length;r++)t+=a[r](e[r]);return t}]}}(i),function(e){function t(t){var r={inset:!1,lengths:[],color:null},n=e.consumeRepeated((function(t){var n=e.consumeToken(/^inset/i,t);return n?(r.inset=!0,n):(n=e.consumeLengthOrPercent(t))?(r.lengths.push(n[0]),n):(n=e.consumeColor(t))?(r.color=n[0],n):void 0}),/^/,t);if(n&&n[0].length)return[r,n[1]]}var r=function(t,r,n,i){function a(e){return{inset:e,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var o=[],s=[],l=0;l<n.length||l<i.length;l++){var u=n[l]||a(i[l].inset),c=i[l]||a(n[l].inset);o.push(u),s.push(c)}return e.mergeNestedRepeated(t,r,o,s)}.bind(null,(function(t,r){for(;t.lengths.length<Math.max(t.lengths.length,r.lengths.length);)t.lengths.push({px:0});for(;r.lengths.length<Math.max(t.lengths.length,r.lengths.length);)r.lengths.push({px:0});if(t.inset==r.inset&&!!t.color==!!r.color){for(var n,i=[],a=[[],0],o=[[],0],s=0;s<t.lengths.length;s++){var l=e.mergeDimensions(t.lengths[s],r.lengths[s],2==s);a[0].push(l[0]),o[0].push(l[1]),i.push(l[2])}if(t.color&&r.color){var u=e.mergeColors(t.color,r.color);a[1]=u[0],o[1]=u[1],n=u[2]}return[a,o,function(e){for(var r=t.inset?"inset ":" ",a=0;a<i.length;a++)r+=i[a](e[0][a])+" ";return n&&(r+=n(e[1])),r}]}}),", ");e.addPropertiesHandler((function(r){var n=e.consumeRepeated(t,/^,/,r);if(n&&""==n[1])return n[0]}),r,["box-shadow","text-shadow"])}(i),function(e,t){function r(e){return e.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function n(e,t,r){return Math.min(t,Math.max(e,r))}function i(e){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(e))return Number(e)}function a(e,t){return function(i,a){return[i,a,function(i){return r(n(e,t,i))}]}}function o(e){var t=e.trim().split(/\s*[\s,]\s*/);if(0!==t.length){for(var r=[],n=0;n<t.length;n++){var a=i(t[n]);if(void 0===a)return;r.push(a)}return r}}e.clamp=n,e.addPropertiesHandler(o,(function(e,t){if(e.length==t.length)return[e,t,function(e){return e.map(r).join(" ")}]}),["stroke-dasharray"]),e.addPropertiesHandler(i,a(0,1/0),["border-image-width","line-height"]),e.addPropertiesHandler(i,a(0,1),["opacity","shape-image-threshold"]),e.addPropertiesHandler(i,(function(e,t){if(0!=e)return a(0,1/0)(e,t)}),["flex-grow","flex-shrink"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,function(e){return Math.round(n(1,1/0,e))}]}),["orphans","widows"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,Math.round]}),["z-index"]),e.parseNumber=i,e.parseNumberList=o,e.mergeNumbers=function(e,t){return[e,t,r]},e.numberToString=r}(i),function(e,t){e.addPropertiesHandler(String,(function(e,t){if("visible"==e||"visible"==t)return[0,1,function(r){return r<=0?e:r>=1?t:"visible"}]}),["visibility"])}(i),function(e,t){function r(e){e=e.trim(),a.fillStyle="#000",a.fillStyle=e;var t=a.fillStyle;if(a.fillStyle="#fff",a.fillStyle=e,t==a.fillStyle){a.fillRect(0,0,1,1);var r=a.getImageData(0,0,1,1).data;a.clearRect(0,0,1,1);var n=r[3]/255;return[r[0]*n,r[1]*n,r[2]*n,n]}}function n(t,r){return[t,r,function(t){function r(e){return Math.max(0,Math.min(255,e))}if(t[3])for(var n=0;n<3;n++)t[n]=Math.round(r(t[n]/t[3]));return t[3]=e.numberToString(e.clamp(0,1,t[3])),"rgba("+t.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var a=i.getContext("2d");e.addPropertiesHandler(r,n,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),e.consumeColor=e.consumeParenthesised.bind(null,r),e.mergeColors=n}(i),function(e,t){function r(e){function t(){var t=o.exec(e);a=t?t[0]:void 0}function r(){if("("!==a)return function(){var e=Number(a);return t(),e}();t();var e=i();return")"!==a?NaN:(t(),e)}function n(){for(var e=r();"*"===a||"/"===a;){var n=a;t();var i=r();"*"===n?e*=i:e/=i}return e}function i(){for(var e=n();"+"===a||"-"===a;){var r=a;t();var i=n();"+"===r?e+=i:e-=i}return e}var a,o=/([\+\-\w\.]+|[\(\)\*\/])/g;return t(),i()}function n(e,t){if("0"==(t=t.trim().toLowerCase())&&"px".search(e)>=0)return{px:0};if(/^[^(]*$|^calc/.test(t)){t=t.replace(/calc\(/g,"(");var n={};t=t.replace(e,(function(e){return n[e]=null,"U"+e}));for(var i="U("+e.source+")",a=t.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),o=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s<o.length;)o[s].test(a)?(a=a.replace(o[s],"$1"),s=0):s++;if("D"==a){for(var l in n){var u=r(t.replace(new RegExp("U"+l,"g"),"").replace(new RegExp(i,"g"),"*0"));if(!isFinite(u))return;n[l]=u}return n}}}function i(e,t){return a(e,t,!0)}function a(t,r,n){var i,a=[];for(i in t)a.push(i);for(i in r)a.indexOf(i)<0&&a.push(i);return t=a.map((function(e){return t[e]||0})),r=a.map((function(e){return r[e]||0})),[t,r,function(t){var r=t.map((function(r,i){return 1==t.length&&n&&(r=Math.max(r,0)),e.numberToString(r)+a[i]})).join(" + ");return t.length>1?"calc("+r+")":r}]}var o="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=n.bind(null,new RegExp(o,"g")),l=n.bind(null,new RegExp(o+"|%","g")),u=n.bind(null,/deg|rad|grad|turn/g);e.parseLength=s,e.parseLengthOrPercent=l,e.consumeLengthOrPercent=e.consumeParenthesised.bind(null,l),e.parseAngle=u,e.mergeDimensions=a;var c=e.consumeParenthesised.bind(null,s),d=e.consumeRepeated.bind(void 0,c,/^/),h=e.consumeRepeated.bind(void 0,d,/^,/);e.consumeSizePairList=h;var f=e.mergeNestedRepeated.bind(void 0,i," "),p=e.mergeNestedRepeated.bind(void 0,f,",");e.mergeNonNegativeSizePair=f,e.addPropertiesHandler((function(e){var t=h(e);if(t&&""==t[1])return t[0]}),p,["background-size"]),e.addPropertiesHandler(l,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),e.addPropertiesHandler(l,a,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(i),function(e,t){function r(t){return e.consumeLengthOrPercent(t)||e.consumeToken(/^auto/,t)}function n(t){var n=e.consumeList([e.ignore(e.consumeToken.bind(null,/^rect/)),e.ignore(e.consumeToken.bind(null,/^\(/)),e.consumeRepeated.bind(null,r,/^,/),e.ignore(e.consumeToken.bind(null,/^\)/))],t);if(n&&4==n[0].length)return n[0]}var i=e.mergeWrappedNestedRepeated.bind(null,(function(e){return"rect("+e+")"}),(function(t,r){return"auto"==t||"auto"==r?[!0,!1,function(n){var i=n?t:r;if("auto"==i)return"auto";var a=e.mergeDimensions(i,i);return a[2](a[0])}]:e.mergeDimensions(t,r)}),", ");e.parseBox=n,e.mergeBoxes=i,e.addPropertiesHandler(n,i,["clip"])}(i),function(e,t){function r(e){return function(t){var r=0;return e.map((function(e){return e===u?t[r++]:e}))}}function n(e){return e}function i(t){if("none"==(t=t.toLowerCase().trim()))return[];for(var r,n=/\s*(\w+)\(([^)]*)\)/g,i=[],a=0;r=n.exec(t);){if(r.index!=a)return;a=r.index+r[0].length;var o=r[1],s=h[o];if(!s)return;var l=r[2].split(","),u=s[0];if(u.length<l.length)return;for(var f=[],p=0;p<u.length;p++){var m,g=l[p],v=u[p];if(void 0===(m=g?{A:function(t){return"0"==t.trim()?d:e.parseAngle(t)},N:e.parseNumber,T:e.parseLengthOrPercent,L:e.parseLength}[v.toUpperCase()](g):{a:d,n:f[0],t:c}[v]))return;f.push(m)}if(i.push({t:o,d:f}),n.lastIndex==t.length)return i}}function a(e){return e.toFixed(6).replace(".000000","")}function o(t,r){if(t.decompositionPair!==r){t.decompositionPair=r;var n=e.makeMatrixDecomposition(t)}if(r.decompositionPair!==t){r.decompositionPair=t;var i=e.makeMatrixDecomposition(r)}return null==n[0]||null==i[0]?[[!1],[!0],function(e){return e?r[0].d:t[0].d}]:(n[0].push(0),i[0].push(1),[n,i,function(t){var r=e.quat(n[0][3],i[0][3],t[5]);return e.composeMatrix(t[0],t[1],t[2],r,t[4]).map(a).join(",")}])}function s(e){return e.replace(/[xy]/,"")}function l(e){return e.replace(/(x|y|z|3d)?$/,"3d")}var u=null,c={px:0},d={deg:0},h={matrix:["NNNNNN",[u,u,0,0,u,u,0,0,0,0,1,0,u,u,0,1],n],matrix3d:["NNNNNNNNNNNNNNNN",n],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",r([u,u,1]),n],scalex:["N",r([u,1,1]),r([u,1])],scaley:["N",r([1,u,1]),r([1,u])],scalez:["N",r([1,1,u])],scale3d:["NNN",n],skew:["Aa",null,n],skewx:["A",null,r([u,d])],skewy:["A",null,r([d,u])],translate:["Tt",r([u,u,c]),n],translatex:["T",r([u,c,c]),r([u,c])],translatey:["T",r([c,u,c]),r([c,u])],translatez:["L",r([c,c,u])],translate3d:["TTL",n]};e.addPropertiesHandler(i,(function(t,r){var n=e.makeMatrixDecomposition&&!0,i=!1;if(!t.length||!r.length){t.length||(i=!0,t=r,r=[]);for(var a=0;a<t.length;a++){var u=t[a].t,c=t[a].d,d="scale"==u.substr(0,5)?1:0;r.push({t:u,d:c.map((function(e){if("number"==typeof e)return d;var t={};for(var r in e)t[r]=d;return t}))})}}var f=function(e,t){return"perspective"==e&&"perspective"==t||("matrix"==e||"matrix3d"==e)&&("matrix"==t||"matrix3d"==t)},p=[],m=[],g=[];if(t.length!=r.length){if(!n)return;p=[(T=o(t,r))[0]],m=[T[1]],g=[["matrix",[T[2]]]]}else for(a=0;a<t.length;a++){var v=t[a].t,y=r[a].t,_=t[a].d,b=r[a].d,M=h[v],w=h[y];if(f(v,y)){if(!n)return;var T=o([t[a]],[r[a]]);p.push(T[0]),m.push(T[1]),g.push(["matrix",[T[2]]])}else{if(v==y)u=v;else if(M[2]&&w[2]&&s(v)==s(y))u=s(v),_=M[2](_),b=w[2](b);else{if(!M[1]||!w[1]||l(v)!=l(y)){if(!n)return;p=[(T=o(t,r))[0]],m=[T[1]],g=[["matrix",[T[2]]]];break}u=l(v),_=M[1](_),b=w[1](b)}for(var L=[],S=[],k=[],x=0;x<_.length;x++)T=("number"==typeof _[x]?e.mergeNumbers:e.mergeDimensions)(_[x],b[x]),L[x]=T[0],S[x]=T[1],k.push(T[2]);p.push(L),m.push(S),g.push([u,k])}}if(i){var E=p;p=m,m=E}return[p,m,function(e){return e.map((function(e,t){var r=e.map((function(e,r){return g[t][1][r](e)})).join(",");return"matrix"==g[t][0]&&16==r.split(",").length&&(g[t][0]="matrix3d"),g[t][0]+"("+r+")"})).join(" ")}]}),["transform"]),e.transformToSvgMatrix=function(t){var r=e.transformListToMatrix(i(t));return"matrix("+a(r[0])+" "+a(r[1])+" "+a(r[4])+" "+a(r[5])+" "+a(r[12])+" "+a(r[13])+")"}}(i),function(e){function t(t){return t=100*Math.round(t/100),400===(t=e.clamp(100,900,t))?"normal":700===t?"bold":String(t)}e.addPropertiesHandler((function(e){var t=Number(e);if(!(isNaN(t)||t<100||t>900||t%100!=0))return t}),(function(e,r){return[e,r,t]}),["font-weight"])}(i),function(e){function t(e){var t={};for(var r in e)t[r]=-e[r];return t}function r(t){return e.consumeToken(/^(left|center|right|top|bottom)\b/i,t)||e.consumeLengthOrPercent(t)}function n(t,n){var i=e.consumeRepeated(r,/^/,n);if(i&&""==i[1]){var o=i[0];if(o[0]=o[0]||"center",o[1]=o[1]||"center",3==t&&(o[2]=o[2]||{px:0}),o.length==t){if(/top|bottom/.test(o[0])||/left|right/.test(o[1])){var s=o[0];o[0]=o[1],o[1]=s}if(/left|right|center|Object/.test(o[0])&&/top|bottom|center|Object/.test(o[1]))return o.map((function(e){return"object"==typeof e?e:a[e]}))}}}function i(n){var i=e.consumeRepeated(r,/^/,n);if(i){for(var o=i[0],s=[{"%":50},{"%":50}],l=0,u=!1,c=0;c<o.length;c++){var d=o[c];"string"==typeof d?(u=/bottom|right/.test(d),s[l={left:0,right:0,center:l,top:1,bottom:1}[d]]=a[d],"center"==d&&l++):(u&&((d=t(d))["%"]=(d["%"]||0)+100),s[l]=d,l++,u=!1)}return[s,i[1]]}}var a={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},o=e.mergeNestedRepeated.bind(null,e.mergeDimensions," ");e.addPropertiesHandler(n.bind(null,3),o,["transform-origin"]),e.addPropertiesHandler(n.bind(null,2),o,["perspective-origin"]),e.consumePosition=i,e.mergeOffsetList=o;var s=e.mergeNestedRepeated.bind(null,o,", ");e.addPropertiesHandler((function(t){var r=e.consumeRepeated(i,/^,/,t);if(r&&""==r[1])return r[0]}),s,["background-position","object-position"])}(i),function(e){var t=e.consumeParenthesised.bind(null,e.parseLengthOrPercent),r=e.consumeRepeated.bind(void 0,t,/^/),n=e.mergeNestedRepeated.bind(void 0,e.mergeDimensions," "),i=e.mergeNestedRepeated.bind(void 0,n,",");e.addPropertiesHandler((function(n){var i=e.consumeToken(/^circle/,n);if(i&&i[0])return["circle"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),t,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],i[1]));var a=e.consumeToken(/^ellipse/,n);if(a&&a[0])return["ellipse"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),r,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],a[1]));var o=e.consumeToken(/^polygon/,n);return o&&o[0]?["polygon"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),e.optional(e.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),e.consumeSizePairList,e.ignore(e.consumeToken.bind(void 0,/^\)/))],o[1])):void 0}),(function(t,r){if(t[0]===r[0])return"circle"==t[0]?e.mergeList(t.slice(1),r.slice(1),["circle(",e.mergeDimensions," at ",e.mergeOffsetList,")"]):"ellipse"==t[0]?e.mergeList(t.slice(1),r.slice(1),["ellipse(",e.mergeNonNegativeSizePair," at ",e.mergeOffsetList,")"]):"polygon"==t[0]&&t[1]==r[1]?e.mergeList(t.slice(2),r.slice(2),["polygon(",t[1],i,")"]):void 0}),["shape-outside"])}(i),function(e,t){function r(e,t){t.concat([e]).forEach((function(t){t in document.documentElement.style&&(n[e]=t),i[t]=e}))}var n={},i={};r("transform",["webkitTransform","msTransform"]),r("transformOrigin",["webkitTransformOrigin"]),r("perspective",["webkitPerspective"]),r("perspectiveOrigin",["webkitPerspectiveOrigin"]),e.propertyName=function(e){return n[e]||e},e.unprefixedPropertyName=function(e){return i[e]||e}}(i)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var e=function(){return performance.now()};else e=function(){return Date.now()};var t=function(e,t,r){this.target=e,this.currentTime=t,this.timelineTime=r,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},r=window.Element.prototype.animate;window.Element.prototype.animate=function(n,i){var a=r.call(this,n,i);a._cancelHandlers=[],a.oncancel=null;var o=a.cancel;a.cancel=function(){o.call(this);var r=new t(this,null,e()),n=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){n.forEach((function(e){e.call(r.target,r)}))}),0)};var s=a.addEventListener;a.addEventListener=function(e,t){"function"==typeof t&&"cancel"==e?this._cancelHandlers.push(t):s.call(this,e,t)};var l=a.removeEventListener;return a.removeEventListener=function(e,t){if("cancel"==e){var r=this._cancelHandlers.indexOf(t);r>=0&&this._cancelHandlers.splice(r,1)}else l.call(this,e,t)},a}}}(),function(e){var t=document.documentElement,r=null,n=!1;try{var i="0"==getComputedStyle(t).getPropertyValue("opacity")?"1":"0";(r=t.animate({opacity:[i,i]},{duration:1})).currentTime=0,n=getComputedStyle(t).getPropertyValue("opacity")==i}catch(e){}finally{r&&r.cancel()}if(!n){var a=window.Element.prototype.animate;window.Element.prototype.animate=function(t,r){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||null===t||(t=e.convertToArrayForm(t)),a.call(this,t,r)}}}(n)},86967:(e,t,r)=>{"use strict";var n=r(13366),i=r(52697),a=r(62453),o=r(31606),s=a("Object.prototype.toString"),l=r(44308)(),u="undefined"==typeof globalThis?r.g:globalThis,c=i(),d=a("String.prototype.slice"),h={},f=Object.getPrototypeOf;l&&o&&f&&n(c,(function(e){if("function"==typeof u[e]){var t=new u[e];if(Symbol.toStringTag in t){var r=f(t),n=o(r,Symbol.toStringTag);if(!n){var i=f(r);n=o(i,Symbol.toStringTag)}h[e]=n.get}}}));var p=r(11438);e.exports=function(e){return!!p(e)&&(l&&Symbol.toStringTag in e?function(e){var t=!1;return n(h,(function(r,n){if(!t)try{var i=r.call(e);i===n&&(t=i)}catch(e){}})),t}(e):d(s(e),8,-1))}},7948:e=>{e.exports={isArray:function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}}},85194:(e,t,r)=>{var n=r(9735),i=r(84340),a=r(33072),o=r(25860);e.exports={xml2js:n,xml2json:i,js2xml:a,json2xml:o}},33072:(e,t,r)=>{var n,i,a=r(77223),o=r(7948).isArray;function s(e,t,r){return(!r&&e.spaces?"\n":"")+Array(t+1).join(e.spaces)}function l(e,t,r){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,i,n));var a,o,l,u,c=[];for(a in e)e.hasOwnProperty(a)&&null!==e[a]&&void 0!==e[a]&&(u=t.noQuotesForNativeAttributes&&"string"!=typeof e[a]?"":'"',o=(o=""+e[a]).replace(/"/g,"""),l="attributeNameFn"in t?t.attributeNameFn(a,o,i,n):a,c.push(t.spaces&&t.indentAttributes?s(t,r+1,!1):" "),c.push(l+"="+u+("attributeValueFn"in t?t.attributeValueFn(o,a,i,n):o)+u));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&c.push(s(t,r,!1)),c.join("")}function u(e,t,r){return n=e,i="xml",t.ignoreDeclaration?"":"<?xml"+l(e[t.attributesKey],t,r)+"?>"}function c(e,t,r){if(t.ignoreInstruction)return"";var a;for(a in e)if(e.hasOwnProperty(a))break;var o="instructionNameFn"in t?t.instructionNameFn(a,e[a],i,n):a;if("object"==typeof e[a])return n=e,i=o,"<?"+o+l(e[a][t.attributesKey],t,r)+"?>";var s=e[a]?e[a]:"";return"instructionFn"in t&&(s=t.instructionFn(s,a,i,n)),"<?"+o+(s?" "+s:"")+"?>"}function d(e,t){return t.ignoreComment?"":"\x3c!--"+("commentFn"in t?t.commentFn(e,i,n):e)+"--\x3e"}function h(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,i,n):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function f(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,i,n):e)+">"}function p(e,t){return t.ignoreText?"":(e=(e=(e=""+e).replace(/&/g,"&")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in t?t.textFn(e,i,n):e)}function m(e,t,r,a){return e.reduce((function(e,o){var u=s(t,r,a&&!e);switch(o.type){case"element":return e+u+function(e,t,r){n=e,i=e.name;var a=[],o="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;a.push("<"+o),e[t.attributesKey]&&a.push(l(e[t.attributesKey],t,r));var s=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&"preserve"===e[t.attributesKey]["xml:space"];return s||(s="fullTagEmptyElementFn"in t?t.fullTagEmptyElementFn(e.name,e):t.fullTagEmptyElement),s?(a.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(a.push(m(e[t.elementsKey],t,r+1)),n=e,i=e.name),a.push(t.spaces&&function(e,t){var r;if(e.elements&&e.elements.length)for(r=0;r<e.elements.length;++r)switch(e.elements[r][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;default:return!0}return!1}(e,t)?"\n"+Array(r+1).join(t.spaces):""),a.push("</"+o+">")):a.push("/>"),a.join("")}(o,t,r);case"comment":return e+u+d(o[t.commentKey],t);case"doctype":return e+u+f(o[t.doctypeKey],t);case"cdata":return e+(t.indentCdata?u:"")+h(o[t.cdataKey],t);case"text":return e+(t.indentText?u:"")+p(o[t.textKey],t);case"instruction":var g={};return g[o[t.nameKey]]=o[t.attributesKey]?o:o[t.instructionKey],e+(t.indentInstruction?u:"")+c(g,t,r)}}),"")}function g(e,t,r){var n;for(n in e)if(e.hasOwnProperty(n))switch(n){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||r)return!0;break;case t.cdataKey:if(t.indentCdata||r)return!0;break;case t.instructionKey:if(t.indentInstruction||r)return!0;break;case t.doctypeKey:case t.commentKey:default:return!0}return!1}function v(e,t,r,a,o){n=e,i=t;var u="elementNameFn"in r?r.elementNameFn(t,e):t;if(null==e||""===e)return"fullTagEmptyElementFn"in r&&r.fullTagEmptyElementFn(t,e)||r.fullTagEmptyElement?"<"+u+"></"+u+">":"<"+u+"/>";var c=[];if(t){if(c.push("<"+u),"object"!=typeof e)return c.push(">"+p(e,r)+"</"+u+">"),c.join("");e[r.attributesKey]&&c.push(l(e[r.attributesKey],r,a));var d=g(e,r,!0)||e[r.attributesKey]&&"preserve"===e[r.attributesKey]["xml:space"];if(d||(d="fullTagEmptyElementFn"in r?r.fullTagEmptyElementFn(t,e):r.fullTagEmptyElement),!d)return c.push("/>"),c.join("");c.push(">")}return c.push(y(e,r,a+1,!1)),n=e,i=t,t&&c.push((o?s(r,a,!1):"")+"</"+u+">"),c.join("")}function y(e,t,r,n){var i,a,l,m=[];for(a in e)if(e.hasOwnProperty(a))for(l=o(e[a])?e[a]:[e[a]],i=0;i<l.length;++i){switch(a){case t.declarationKey:m.push(u(l[i],t,r));break;case t.instructionKey:m.push((t.indentInstruction?s(t,r,n):"")+c(l[i],t,r));break;case t.attributesKey:case t.parentKey:break;case t.textKey:m.push((t.indentText?s(t,r,n):"")+p(l[i],t));break;case t.cdataKey:m.push((t.indentCdata?s(t,r,n):"")+h(l[i],t));break;case t.doctypeKey:m.push(s(t,r,n)+f(l[i],t));break;case t.commentKey:m.push(s(t,r,n)+d(l[i],t));break;default:m.push(s(t,r,n)+v(l[i],a,t,r,g(l[i],t)))}n=n&&!m.length}return m.join("")}e.exports=function(e,t){t=function(e){var t=a.copyOptions(e);return a.ensureFlagExists("ignoreDeclaration",t),a.ensureFlagExists("ignoreInstruction",t),a.ensureFlagExists("ignoreAttributes",t),a.ensureFlagExists("ignoreText",t),a.ensureFlagExists("ignoreComment",t),a.ensureFlagExists("ignoreCdata",t),a.ensureFlagExists("ignoreDoctype",t),a.ensureFlagExists("compact",t),a.ensureFlagExists("indentText",t),a.ensureFlagExists("indentCdata",t),a.ensureFlagExists("indentAttributes",t),a.ensureFlagExists("indentInstruction",t),a.ensureFlagExists("fullTagEmptyElement",t),a.ensureFlagExists("noQuotesForNativeAttributes",t),a.ensureSpacesExists(t),"number"==typeof t.spaces&&(t.spaces=Array(t.spaces+1).join(" ")),a.ensureKeyExists("declaration",t),a.ensureKeyExists("instruction",t),a.ensureKeyExists("attributes",t),a.ensureKeyExists("text",t),a.ensureKeyExists("comment",t),a.ensureKeyExists("cdata",t),a.ensureKeyExists("doctype",t),a.ensureKeyExists("type",t),a.ensureKeyExists("name",t),a.ensureKeyExists("elements",t),a.checkFnExists("doctype",t),a.checkFnExists("instruction",t),a.checkFnExists("cdata",t),a.checkFnExists("comment",t),a.checkFnExists("text",t),a.checkFnExists("instructionName",t),a.checkFnExists("elementName",t),a.checkFnExists("attributeName",t),a.checkFnExists("attributeValue",t),a.checkFnExists("attributes",t),a.checkFnExists("fullTagEmptyElement",t),t}(t);var r=[];return n=e,i="_root_",t.compact?r.push(y(e,t,0,!0)):(e[t.declarationKey]&&r.push(u(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&r.push(m(e[t.elementsKey],t,0,!r.length))),r.join("")}},25860:(e,t,r)=>{var n=r(78655).lW,i=r(33072);e.exports=function(e,t){e instanceof n&&(e=e.toString());var r=null;if("string"==typeof e)try{r=JSON.parse(e)}catch(e){throw new Error("The JSON structure is invalid")}else r=e;return i(r,t)}},77223:(e,t,r)=>{var n=r(7948).isArray;e.exports={copyOptions:function(e){var t,r={};for(t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return r},ensureFlagExists:function(e,t){e in t&&"boolean"==typeof t[e]||(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||"number"!=typeof e.spaces&&"string"!=typeof e.spaces)&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){"alwaysArray"in e&&("boolean"==typeof e.alwaysArray||n(e.alwaysArray))||(e.alwaysArray=!1)},ensureKeyExists:function(e,t){e+"Key"in t&&"string"==typeof t[e+"Key"]||(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}}},9735:(e,t,r)=>{var n,i,a=r(13369),o=r(77223),s=r(7948).isArray;function l(e){var t=Number(e);if(!isNaN(t))return t;var r=e.toLowerCase();return"true"===r||"false"!==r&&e}function u(e,t){var r;if(n.compact){if(!i[n[e+"Key"]]&&(s(n.alwaysArray)?-1!==n.alwaysArray.indexOf(n[e+"Key"]):n.alwaysArray)&&(i[n[e+"Key"]]=[]),i[n[e+"Key"]]&&!s(i[n[e+"Key"]])&&(i[n[e+"Key"]]=[i[n[e+"Key"]]]),e+"Fn"in n&&"string"==typeof t&&(t=n[e+"Fn"](t,i)),"instruction"===e&&("instructionFn"in n||"instructionNameFn"in n))for(r in t)if(t.hasOwnProperty(r))if("instructionFn"in n)t[r]=n.instructionFn(t[r],r,i);else{var a=t[r];delete t[r],t[n.instructionNameFn(r,a,i)]=a}s(i[n[e+"Key"]])?i[n[e+"Key"]].push(t):i[n[e+"Key"]]=t}else{i[n.elementsKey]||(i[n.elementsKey]=[]);var o={};if(o[n.typeKey]=e,"instruction"===e){for(r in t)if(t.hasOwnProperty(r))break;o[n.nameKey]="instructionNameFn"in n?n.instructionNameFn(r,t,i):r,n.instructionHasAttributes?(o[n.attributesKey]=t[r][n.attributesKey],"instructionFn"in n&&(o[n.attributesKey]=n.instructionFn(o[n.attributesKey],r,i))):("instructionFn"in n&&(t[r]=n.instructionFn(t[r],r,i)),o[n.instructionKey]=t[r])}else e+"Fn"in n&&(t=n[e+"Fn"](t,i)),o[n[e+"Key"]]=t;n.addParent&&(o[n.parentKey]=i),i[n.elementsKey].push(o)}}function c(e){var t;if("attributesFn"in n&&e&&(e=n.attributesFn(e,i)),(n.trim||"attributeValueFn"in n||"attributeNameFn"in n||n.nativeTypeAttributes)&&e)for(t in e)if(e.hasOwnProperty(t)&&(n.trim&&(e[t]=e[t].trim()),n.nativeTypeAttributes&&(e[t]=l(e[t])),"attributeValueFn"in n&&(e[t]=n.attributeValueFn(e[t],t,i)),"attributeNameFn"in n)){var r=e[t];delete e[t],e[n.attributeNameFn(t,e[t],i)]=r}return e}function d(e){var t={};if(e.body&&("xml"===e.name.toLowerCase()||n.instructionHasAttributes)){for(var r,a=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;null!==(r=a.exec(e.body));)t[r[1]]=r[2]||r[3]||r[4];t=c(t)}if("xml"===e.name.toLowerCase()){if(n.ignoreDeclaration)return;i[n.declarationKey]={},Object.keys(t).length&&(i[n.declarationKey][n.attributesKey]=t),n.addParent&&(i[n.declarationKey][n.parentKey]=i)}else{if(n.ignoreInstruction)return;n.trim&&(e.body=e.body.trim());var o={};n.instructionHasAttributes&&Object.keys(t).length?(o[e.name]={},o[e.name][n.attributesKey]=t):o[e.name]=e.body,u("instruction",o)}}function h(e,t){var r;if("object"==typeof e&&(t=e.attributes,e=e.name),t=c(t),"elementNameFn"in n&&(e=n.elementNameFn(e,i)),n.compact){var a;if(r={},!n.ignoreAttributes&&t&&Object.keys(t).length)for(a in r[n.attributesKey]={},t)t.hasOwnProperty(a)&&(r[n.attributesKey][a]=t[a]);!(e in i)&&(s(n.alwaysArray)?-1!==n.alwaysArray.indexOf(e):n.alwaysArray)&&(i[e]=[]),i[e]&&!s(i[e])&&(i[e]=[i[e]]),s(i[e])?i[e].push(r):i[e]=r}else i[n.elementsKey]||(i[n.elementsKey]=[]),(r={})[n.typeKey]="element",r[n.nameKey]=e,!n.ignoreAttributes&&t&&Object.keys(t).length&&(r[n.attributesKey]=t),n.alwaysChildren&&(r[n.elementsKey]=[]),i[n.elementsKey].push(r);r[n.parentKey]=i,i=r}function f(e){n.ignoreText||(e.trim()||n.captureSpacesBetweenElements)&&(n.trim&&(e=e.trim()),n.nativeType&&(e=l(e)),n.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),u("text",e))}function p(e){n.ignoreComment||(n.trim&&(e=e.trim()),u("comment",e))}function m(e){var t=i[n.parentKey];n.addParent||delete i[n.parentKey],i=t}function g(e){n.ignoreCdata||(n.trim&&(e=e.trim()),u("cdata",e))}function v(e){n.ignoreDoctype||(e=e.replace(/^ /,""),n.trim&&(e=e.trim()),u("doctype",e))}function y(e){e.note=e}e.exports=function(e,t){var r=a.parser(!0,{}),s={};if(i=s,n=function(e){return n=o.copyOptions(e),o.ensureFlagExists("ignoreDeclaration",n),o.ensureFlagExists("ignoreInstruction",n),o.ensureFlagExists("ignoreAttributes",n),o.ensureFlagExists("ignoreText",n),o.ensureFlagExists("ignoreComment",n),o.ensureFlagExists("ignoreCdata",n),o.ensureFlagExists("ignoreDoctype",n),o.ensureFlagExists("compact",n),o.ensureFlagExists("alwaysChildren",n),o.ensureFlagExists("addParent",n),o.ensureFlagExists("trim",n),o.ensureFlagExists("nativeType",n),o.ensureFlagExists("nativeTypeAttributes",n),o.ensureFlagExists("sanitize",n),o.ensureFlagExists("instructionHasAttributes",n),o.ensureFlagExists("captureSpacesBetweenElements",n),o.ensureAlwaysArrayExists(n),o.ensureKeyExists("declaration",n),o.ensureKeyExists("instruction",n),o.ensureKeyExists("attributes",n),o.ensureKeyExists("text",n),o.ensureKeyExists("comment",n),o.ensureKeyExists("cdata",n),o.ensureKeyExists("doctype",n),o.ensureKeyExists("type",n),o.ensureKeyExists("name",n),o.ensureKeyExists("elements",n),o.ensureKeyExists("parent",n),o.checkFnExists("doctype",n),o.checkFnExists("instruction",n),o.checkFnExists("cdata",n),o.checkFnExists("comment",n),o.checkFnExists("text",n),o.checkFnExists("instructionName",n),o.checkFnExists("elementName",n),o.checkFnExists("attributeName",n),o.checkFnExists("attributeValue",n),o.checkFnExists("attributes",n),n}(t),r.opt={strictEntities:!0},r.onopentag=h,r.ontext=f,r.oncomment=p,r.onclosetag=m,r.onerror=y,r.oncdata=g,r.ondoctype=v,r.onprocessinginstruction=d,r.write(e).close(),s[n.elementsKey]){var l=s[n.elementsKey];delete s[n.elementsKey],s[n.elementsKey]=l,delete s.text}return s}},84340:(e,t,r)=>{var n=r(77223),i=r(9735);e.exports=function(e,t){var r,a,o;return r=function(e){var t=n.copyOptions(e);return n.ensureSpacesExists(t),t}(t),a=i(e,r),o="compact"in r&&r.compact?"_parent":"parent",("addParent"in r&&r.addParent?JSON.stringify(a,(function(e,t){return e===o?"_":t}),r.spaces):JSON.stringify(a,null,r.spaces)).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}},88711:function(e,t,r){var n,i=r(51266);"undefined"!=typeof window&&(n=()=>(()=>{var e={"./src/config.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{enableStreamingMode:()=>S,hlsDefaultConfig:()=>T,mergeConfig:()=>L});var n=r("./src/controller/abr-controller.ts"),i=r("./src/controller/audio-stream-controller.ts"),a=r("./src/controller/audio-track-controller.ts"),o=r("./src/controller/subtitle-stream-controller.ts"),s=r("./src/controller/subtitle-track-controller.ts"),l=r("./src/controller/buffer-controller.ts"),u=r("./src/controller/timeline-controller.ts"),c=r("./src/controller/cap-level-controller.ts"),d=r("./src/controller/fps-controller.ts"),h=r("./src/controller/eme-controller.ts"),f=r("./src/controller/cmcd-controller.ts"),p=r("./src/utils/xhr-loader.ts"),m=r("./src/utils/fetch-loader.ts"),g=r("./src/utils/cues.ts"),v=r("./src/utils/mediakeys-helper.ts"),y=r("./src/utils/logger.ts");function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_.apply(this,arguments)}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var T=M(M({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,maxBufferSize:6e7,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:p.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:n.default,bufferController:l.default,capLevelController:c.default,fpsController:d.default,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:v.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0},{cueHandler:g.default,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:o.SubtitleStreamController,subtitleTrackController:s.default,timelineController:u.TimelineController,audioStreamController:i.default,audioTrackController:a.default,emeController:h.default,cmcdController:f.default});function L(e,t){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==t.liveMaxLatencyDurationCount&&(void 0===t.liveSyncDurationCount||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==t.liveMaxLatencyDuration&&(void 0===t.liveSyncDuration||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return _({},e,t)}function S(e){var t=e.loader;t!==m.default&&t!==p.default?(y.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1):(0,m.fetchSupported)()&&(e.loader=m.default,e.progressive=!0,e.enableSoftwareAES=!0,y.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}},"./src/controller/abr-controller.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r("./src/polyfills/number.ts"),i=r("./src/utils/ewma-bandwidth-estimator.ts"),a=r("./src/events.ts"),o=r("./src/errors.ts"),s=r("./src/types/loader.ts"),l=r("./src/utils/logger.ts");function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i)),n)}var i}const c=function(){function e(e){this.hls=void 0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=void 0,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=e;var t=e.config;this.bwEstimator=new i.default(t.abrEwmaSlowVoD,t.abrEwmaFastVoD,t.abrEwmaDefaultEstimate),this.registerListeners()}var t,r,c=e.prototype;return c.registerListeners=function(){var e=this.hls;e.on(a.Events.FRAG_LOADING,this.onFragLoading,this),e.on(a.Events.FRAG_LOADED,this.onFragLoaded,this),e.on(a.Events.FRAG_BUFFERED,this.onFragBuffered,this),e.on(a.Events.LEVEL_LOADED,this.onLevelLoaded,this),e.on(a.Events.ERROR,this.onError,this)},c.unregisterListeners=function(){var e=this.hls;e.off(a.Events.FRAG_LOADING,this.onFragLoading,this),e.off(a.Events.FRAG_LOADED,this.onFragLoaded,this),e.off(a.Events.FRAG_BUFFERED,this.onFragBuffered,this),e.off(a.Events.LEVEL_LOADED,this.onLevelLoaded,this),e.off(a.Events.ERROR,this.onError,this)},c.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},c.onFragLoading=function(e,t){var r,n=t.frag;n.type===s.PlaylistLevelType.MAIN&&(this.timer||(this.fragCurrent=n,this.partCurrent=null!=(r=t.part)?r:null,this.timer=self.setInterval(this.onCheck,100)))},c.onLevelLoaded=function(e,t){var r=this.hls.config;t.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD)},c._abandonRulesCheck=function(){var e=this.fragCurrent,t=this.partCurrent,r=this.hls,i=r.autoLevelEnabled,o=r.media;if(e&&o){var s=t?t.stats:e.stats,u=t?t.duration:e.duration;if(s.aborted||s.loaded&&s.loaded===s.total||0===e.level)return this.clearTimer(),void(this._nextAutoLevel=-1);if(i&&!o.paused&&o.playbackRate&&o.readyState){var c=r.mainForwardBufferInfo;if(null!==c){var d=performance.now()-s.loading.start,h=Math.abs(o.playbackRate);if(!(d<=500*u/h)){var f=s.loaded&&s.loading.first,p=this.bwEstimator.getEstimate(),m=r.levels,g=r.minAutoLevel,v=m[e.level],y=s.total||Math.max(s.loaded,Math.round(u*v.maxBitrate/8)),_=f?1e3*s.loaded/d:0,b=_?(y-s.loaded)/_:8*y/p,M=c.len/h;if(!(b<=M)){var w,T=Number.POSITIVE_INFINITY;for(w=e.level-1;w>g;w--){var L=m[w].maxBitrate;if((T=_?u*L/(6.4*_):u*L/p)<M)break}T>=b||(l.logger.warn("Fragment "+e.sn+(t?" part "+t.index:"")+" of level "+e.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+w+"\n Current BW estimate: "+((0,n.isFiniteNumber)(p)?(p/1024).toFixed(3):"Unknown")+" Kb/s\n Estimated load time for current fragment: "+b.toFixed(3)+" s\n Estimated load time for the next fragment: "+T.toFixed(3)+" s\n Time to underbuffer: "+M.toFixed(3)+" s"),r.nextLoadLevel=w,f&&this.bwEstimator.sample(d,s.loaded),this.clearTimer(),(e.loader||e.keyLoader)&&(this.fragCurrent=this.partCurrent=null,e.abortRequests()),r.trigger(a.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:e,part:t,stats:s}))}}}}}},c.onFragLoaded=function(e,t){var r=t.frag,i=t.part;if(r.type===s.PlaylistLevelType.MAIN&&(0,n.isFiniteNumber)(r.sn)){var o=i?i.stats:r.stats,l=i?i.duration:r.duration;if(this.clearTimer(),this.lastLoadedFragLevel=r.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var u=this.hls.levels[r.level],c=(u.loaded?u.loaded.bytes:0)+o.loaded,d=(u.loaded?u.loaded.duration:0)+l;u.loaded={bytes:c,duration:d},u.realBitrate=Math.round(8*c/d)}if(r.bitrateTest){var h={stats:o,frag:r,part:i,id:r.type};this.onFragBuffered(a.Events.FRAG_BUFFERED,h)}}},c.onFragBuffered=function(e,t){var r=t.frag,n=t.part,i=n?n.stats:r.stats;if(!i.aborted&&r.type===s.PlaylistLevelType.MAIN&&"initSegment"!==r.sn){var a=i.parsing.end-i.loading.start;this.bwEstimator.sample(a,i.loaded),i.bwEstimate=this.bwEstimator.getEstimate(),r.bitrateTest?this.bitrateTestDelay=a/1e3:this.bitrateTestDelay=0}},c.onError=function(e,t){var r;if((null===(r=t.frag)||void 0===r?void 0:r.type)===s.PlaylistLevelType.MAIN){if(t.type===o.ErrorTypes.KEY_SYSTEM_ERROR)return void this.clearTimer();switch(t.details){case o.ErrorDetails.FRAG_LOAD_ERROR:case o.ErrorDetails.FRAG_LOAD_TIMEOUT:case o.ErrorDetails.KEY_LOAD_ERROR:case o.ErrorDetails.KEY_LOAD_TIMEOUT:this.clearTimer()}}},c.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},c.getNextABRAutoLevel=function(){var e=this.fragCurrent,t=this.partCurrent,r=this.hls,n=r.maxAutoLevel,i=r.config,a=r.minAutoLevel,o=r.media,s=t?t.duration:e?e.duration:0,u=o&&0!==o.playbackRate?Math.abs(o.playbackRate):1,c=this.bwEstimator?this.bwEstimator.getEstimate():i.abrEwmaDefaultEstimate,d=r.mainForwardBufferInfo,h=(d?d.len:0)/u,f=this.findBestLevel(c,a,n,h,i.abrBandWidthFactor,i.abrBandWidthUpFactor);if(f>=0)return f;l.logger.trace((h?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var p=s?Math.min(s,i.maxStarvationDelay):i.maxStarvationDelay,m=i.abrBandWidthFactor,g=i.abrBandWidthUpFactor;if(!h){var v=this.bitrateTestDelay;v&&(p=(s?Math.min(s,i.maxLoadingDelay):i.maxLoadingDelay)-v,l.logger.trace("bitrate test took "+Math.round(1e3*v)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*p)+" ms"),m=g=1)}return f=this.findBestLevel(c,a,n,h+p,m,g),Math.max(f,0)},c.findBestLevel=function(e,t,r,i,a,o){for(var s,u=this.fragCurrent,c=this.partCurrent,d=this.lastLoadedFragLevel,h=this.hls.levels,f=h[d],p=!(null==f||null===(s=f.details)||void 0===s||!s.live),m=null==f?void 0:f.codecSet,g=c?c.duration:u?u.duration:0,v=r;v>=t;v--){var y=h[v];if(y&&(!m||y.codecSet===m)){var _,b=y.details,M=(c?null==b?void 0:b.partTarget:null==b?void 0:b.averagetargetduration)||g;_=v<=d?a*e:o*e;var w=h[v].maxBitrate,T=w*M/_;if(l.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+v+"/"+Math.round(_)+"/"+w+"/"+M+"/"+i+"/"+T),_>w&&(0===T||!(0,n.isFiniteNumber)(T)||p&&!this.bitrateTestDelay||T<i))return v}}return-1},t=e,(r=[{key:"nextAutoLevel",get:function(){var e=this._nextAutoLevel,t=this.bwEstimator;if(-1!==e&&!t.canEstimate())return e;var r=this.getNextABRAutoLevel();return-1!==e&&this.hls.levels[r].loadError?e:(-1!==e&&(r=Math.min(e,r)),r)},set:function(e){this._nextAutoLevel=e}}])&&u(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},"./src/controller/audio-stream-controller.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var n=r("./src/polyfills/number.ts"),a=r("./src/controller/base-stream-controller.ts"),o=r("./src/events.ts"),s=r("./src/utils/buffer-helper.ts"),l=r("./src/controller/fragment-tracker.ts"),u=r("./src/types/level.ts"),c=r("./src/types/loader.ts"),d=r("./src/loader/fragment.ts"),h=r("./src/demux/chunk-cache.ts"),f=r("./src/demux/transmuxer-interface.ts"),p=r("./src/types/transmuxer.ts"),m=r("./src/controller/fragment-finders.ts"),g=r("./src/utils/discontinuities.ts"),v=r("./src/errors.ts");function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(this,arguments)}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}const b=function(e){var t,r;function b(t,r,n){var i;return(i=e.call(this,t,r,n,"[audio-stream-controller]")||this).videoBuffer=null,i.videoTrackCC=-1,i.waitingVideoCC=-1,i.audioSwitch=!1,i.trackId=-1,i.waitingData=null,i.mainDetails=null,i.bufferFlushed=!1,i.cachedTrackLoadedData=null,i._registerListeners(),i}r=e,(t=b).prototype=Object.create(r.prototype),t.prototype.constructor=t,_(t,r);var M=b.prototype;return M.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},M._registerListeners=function(){var e=this.hls;e.on(o.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.on(o.Events.LEVEL_LOADED,this.onLevelLoaded,this),e.on(o.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(o.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(o.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(o.Events.ERROR,this.onError,this),e.on(o.Events.BUFFER_RESET,this.onBufferReset,this),e.on(o.Events.BUFFER_CREATED,this.onBufferCreated,this),e.on(o.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(o.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(o.Events.FRAG_BUFFERED,this.onFragBuffered,this)},M._unregisterListeners=function(){var e=this.hls;e.off(o.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.off(o.Events.LEVEL_LOADED,this.onLevelLoaded,this),e.off(o.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(o.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(o.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(o.Events.ERROR,this.onError,this),e.off(o.Events.BUFFER_RESET,this.onBufferReset,this),e.off(o.Events.BUFFER_CREATED,this.onBufferCreated,this),e.off(o.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(o.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(o.Events.FRAG_BUFFERED,this.onFragBuffered,this)},M.onInitPtsFound=function(e,t){var r=t.frag,n=t.id,i=t.initPTS;if("main"===n){var o=r.cc;this.initPTS[r.cc]=i,this.log("InitPTS for cc: "+o+" found from main: "+i),this.videoTrackCC=o,this.state===a.State.WAITING_INIT_PTS&&this.tick()}},M.startLoad=function(e){if(!this.levels)return this.startPosition=e,void(this.state=a.State.STOPPED);var t=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),this.fragLoadError=0,t>0&&-1===e?(this.log("Override startPosition with lastCurrentTime @"+t.toFixed(3)),e=t,this.state=a.State.IDLE):(this.loadedmetadata=!1,this.state=a.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()},M.doTick=function(){switch(this.state){case a.State.IDLE:this.doTickIdle();break;case a.State.WAITING_TRACK:var t,r=this.levels,n=this.trackId,i=null==r||null===(t=r[n])||void 0===t?void 0:t.details;if(i){if(this.waitForCdnTuneIn(i))break;this.state=a.State.WAITING_INIT_PTS}break;case a.State.FRAG_LOADING_WAITING_RETRY:var o,l=performance.now(),u=this.retryDate;(!u||l>=u||null!==(o=this.media)&&void 0!==o&&o.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded(this.trackId),this.state=a.State.IDLE);break;case a.State.WAITING_INIT_PTS:var c=this.waitingData;if(c){var d=c.frag,h=c.part,f=c.cache,p=c.complete;if(void 0!==this.initPTS[d.cc]){this.waitingData=null,this.waitingVideoCC=-1,this.state=a.State.FRAG_LOADING;var g={frag:d,part:h,payload:f.flush(),networkDetails:null};this._handleFragmentLoadProgress(g),p&&e.prototype._handleFragmentLoadComplete.call(this,g)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log("Waiting fragment cc ("+d.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var v=this.getLoadPosition(),y=s.BufferHelper.bufferInfo(this.mediaBuffer,v,this.config.maxBufferHole);(0,m.fragmentWithinToleranceTest)(y.end,this.config.maxFragLookUpTolerance,d)<0&&(this.log("Waiting fragment cc ("+d.cc+") @ "+d.start+" cancelled because another fragment at "+y.end+" is needed"),this.clearWaitingFragment())}}else this.state=a.State.IDLE}this.onTickEnd()},M.clearWaitingFragment=function(){var e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=a.State.IDLE)},M.resetLoadingState=function(){this.clearWaitingFragment(),e.prototype.resetLoadingState.call(this)},M.onTickEnd=function(){var e=this.media;e&&e.readyState&&(this.lastCurrentTime=e.currentTime)},M.doTickIdle=function(){var e=this.hls,t=this.levels,r=this.media,n=this.trackId,i=e.config;if(t&&t[n]&&(r||!this.startFragRequested&&i.startFragPrefetch)){var s=t[n].details;if(!s||s.live&&this.levelLastLoaded!==n||this.waitForCdnTuneIn(s))this.state=a.State.WAITING_TRACK;else{var l=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&l&&(this.bufferFlushed=!1,this.afterBufferFlushed(l,d.ElementaryStreamTypes.AUDIO,c.PlaylistLevelType.AUDIO));var u=this.getFwdBufferInfo(l,c.PlaylistLevelType.AUDIO);if(null!==u){var h=this.audioSwitch;if(!h&&this._streamEnded(u,s))return e.trigger(o.Events.BUFFER_EOS,{type:"audio"}),void(this.state=a.State.ENDED);var f=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,c.PlaylistLevelType.MAIN);if(!(u.len>=this.getMaxBufferLength(null==f?void 0:f.len))||h){var p=s.fragments[0].start,m=u.end;if(h&&r){var g=this.getLoadPosition();m=g,s.PTSKnown&&g<p&&(u.end>p||u.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=p+.05)}if(!(f&&m>f.end+s.targetduration)&&(f&&f.len||!u.len)){var v=this.getNextFragment(m,s);v?this.loadFragment(v,s,m):this.bufferFlushed=!0}}}}}},M.getMaxBufferLength=function(t){var r=e.prototype.getMaxBufferLength.call(this);return t?Math.max(r,t):r},M.onMediaDetaching=function(){this.videoBuffer=null,e.prototype.onMediaDetaching.call(this)},M.onAudioTracksUpdated=function(e,t){var r=t.audioTracks;this.resetTransmuxer(),this.levels=r.map((function(e){return new u.Level(e)}))},M.onAudioTrackSwitching=function(e,t){var r=!!t.url;this.trackId=t.id;var n=this.fragCurrent;n&&n.abortRequests(),this.fragCurrent=null,this.clearWaitingFragment(),r?this.setInterval(100):this.resetTransmuxer(),r?(this.audioSwitch=!0,this.state=a.State.IDLE):this.state=a.State.STOPPED,this.tick()},M.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},M.onLevelLoaded=function(e,t){this.mainDetails=t.details,null!==this.cachedTrackLoadedData&&(this.hls.trigger(o.Events.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)},M.onAudioTrackLoaded=function(e,t){var r;if(null!=this.mainDetails){var n=this.levels,i=t.details,o=t.id;if(n){this.log("Track "+o+" loaded ["+i.startSN+","+i.endSN+"],duration:"+i.totalduration);var s=n[o],l=0;if(i.live||null!==(r=s.details)&&void 0!==r&&r.live){var u=this.mainDetails;if(i.fragments[0]||(i.deltaUpdateFailed=!0),i.deltaUpdateFailed||!u)return;!s.details&&i.hasProgramDateTime&&u.hasProgramDateTime?((0,g.alignMediaPlaylistByPDT)(i,u),l=i.fragments[0].start):l=this.alignPlaylists(i,s.details)}s.details=i,this.levelLastLoaded=o,this.startFragRequested||!this.mainDetails&&i.live||this.setStartPosition(s.details,l),this.state!==a.State.WAITING_TRACK||this.waitForCdnTuneIn(i)||(this.state=a.State.IDLE),this.tick()}else this.warn("Audio tracks were reset while loading level "+o)}else this.cachedTrackLoadedData=t},M._handleFragmentLoadProgress=function(e){var t,r=e.frag,n=e.part,o=e.payload,s=this.config,l=this.trackId,u=this.levels;if(u){var d=u[l];i.assert(d,"Audio track is defined on fragment load progress");var m=d.details;i.assert(m,"Audio track details are defined on fragment load progress");var g=s.defaultAudioCodec||d.audioCodec||"mp4a.40.2",v=this.transmuxer;v||(v=this.transmuxer=new f.default(this.hls,c.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var y=this.initPTS[r.cc],_=null===(t=r.initSegment)||void 0===t?void 0:t.data;if(void 0!==y){var b=n?n.index:-1,M=-1!==b,w=new p.ChunkMetadata(r.level,r.sn,r.stats.chunkCount,o.byteLength,b,M);v.push(o,_,g,"",r,n,m.totalduration,!1,w,y)}else this.log("Unknown video PTS for cc "+r.cc+", waiting for video PTS before demuxing audio frag "+r.sn+" of ["+m.startSN+" ,"+m.endSN+"],track "+l),(this.waitingData=this.waitingData||{frag:r,part:n,cache:new h.default,complete:!1}).cache.push(new Uint8Array(o)),this.waitingVideoCC=this.videoTrackCC,this.state=a.State.WAITING_INIT_PTS}else this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+r.sn+" of level "+r.level+" will not be buffered")},M._handleFragmentLoadComplete=function(t){this.waitingData?this.waitingData.complete=!0:e.prototype._handleFragmentLoadComplete.call(this,t)},M.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},M.onBufferCreated=function(e,t){var r=t.tracks.audio;r&&(this.mediaBuffer=r.buffer||null),t.tracks.video&&(this.videoBuffer=t.tracks.video.buffer||null)},M.onFragBuffered=function(e,t){var r,n=t.frag,i=t.part;n.type===c.PlaylistLevelType.AUDIO?this.fragContextChanged(n)?this.warn("Fragment "+n.sn+(i?" p: "+i.index:"")+" of level "+n.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch):("initSegment"!==n.sn&&(this.fragPrevious=n,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(o.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(n,i)):this.loadedmetadata||n.type!==c.PlaylistLevelType.MAIN||null!==(r=this.videoBuffer||this.media)&&void 0!==r&&r.buffered.length&&(this.loadedmetadata=!0)},M.onError=function(t,r){if(r.type!==v.ErrorTypes.KEY_SYSTEM_ERROR)switch(r.details){case v.ErrorDetails.FRAG_LOAD_ERROR:case v.ErrorDetails.FRAG_LOAD_TIMEOUT:case v.ErrorDetails.FRAG_PARSING_ERROR:case v.ErrorDetails.KEY_LOAD_ERROR:case v.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(c.PlaylistLevelType.AUDIO,r);break;case v.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case v.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==a.State.ERROR&&this.state!==a.State.STOPPED&&(this.state=r.fatal?a.State.ERROR:a.State.IDLE,this.warn(r.details+" while loading frag, switching to "+this.state+" state"));break;case v.ErrorDetails.BUFFER_FULL_ERROR:if("audio"===r.parent&&(this.state===a.State.PARSING||this.state===a.State.PARSED)){var n=!0,i=this.getFwdBufferInfo(this.mediaBuffer,c.PlaylistLevelType.AUDIO);i&&i.len>.5&&(n=!this.reduceMaxBufferLength(i.len)),n&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,e.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}}else this.onFragmentOrKeyLoadError(c.PlaylistLevelType.AUDIO,r)},M.onBufferFlushed=function(e,t){t.type===d.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0,this.state===a.State.ENDED&&(this.state=a.State.IDLE))},M._handleTransmuxComplete=function(e){var t,r="audio",n=this.hls,i=e.remuxResult,s=e.chunkMeta,l=this.getCurrentContext(s);if(!l)return this.warn("The loading context changed while buffering fragment "+s.sn+" of level "+s.level+". This chunk will not be buffered."),void this.resetStartWhenNotLoaded(s.level);var u=l.frag,c=l.part,h=l.level.details,f=i.audio,p=i.text,m=i.id3,g=i.initSegment;if(!this.fragContextChanged(u)&&h){if(this.state=a.State.PARSING,this.audioSwitch&&f&&this.completeAudioSwitch(),null!=g&&g.tracks&&(this._bufferInitSegment(g.tracks,u,s),n.trigger(o.Events.FRAG_PARSING_INIT_SEGMENT,{frag:u,id:r,tracks:g.tracks})),f){var v=f.startPTS,_=f.endPTS,b=f.startDTS,M=f.endDTS;c&&(c.elementaryStreams[d.ElementaryStreamTypes.AUDIO]={startPTS:v,endPTS:_,startDTS:b,endDTS:M}),u.setElementaryStreamInfo(d.ElementaryStreamTypes.AUDIO,v,_,b,M),this.bufferFragmentData(f,u,c,s)}if(null!=m&&null!==(t=m.samples)&&void 0!==t&&t.length){var w=y({id:r,frag:u,details:h},m);n.trigger(o.Events.FRAG_PARSING_METADATA,w)}if(p){var T=y({id:r,frag:u,details:h},p);n.trigger(o.Events.FRAG_PARSING_USERDATA,T)}}},M._bufferInitSegment=function(e,t,r){if(this.state===a.State.PARSING){e.video&&delete e.video;var n=e.audio;if(n){n.levelCodec=n.codec,n.id="audio",this.log("Init audio buffer, container:"+n.container+", codecs[parsed]=["+n.codec+"]"),this.hls.trigger(o.Events.BUFFER_CODECS,e);var i=n.initSegment;if(null!=i&&i.byteLength){var s={type:"audio",frag:t,part:null,chunkMeta:r,parent:t.type,data:i};this.hls.trigger(o.Events.BUFFER_APPENDING,s)}this.tick()}}},M.loadFragment=function(t,r,i){var o=this.fragmentTracker.getState(t);this.fragCurrent=t,(this.audioSwitch||o===l.FragmentState.NOT_LOADED||o===l.FragmentState.PARTIAL)&&("initSegment"===t.sn?this._loadInitSegment(t,r):r.live&&!(0,n.isFiniteNumber)(this.initPTS[t.cc])?(this.log("Waiting for video PTS in continuity counter "+t.cc+" of live stream before loading audio fragment "+t.sn+" of level "+this.trackId),this.state=a.State.WAITING_INIT_PTS):(this.startFragRequested=!0,e.prototype.loadFragment.call(this,t,r,i)))},M.completeAudioSwitch=function(){var t=this.hls,r=this.media,n=this.trackId;r&&(this.log("Switching audio track : flushing all audio"),e.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,t.trigger(o.Events.AUDIO_TRACK_SWITCHED,{id:n})},b}(a.default)},"./src/controller/audio-track-controller.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r("./src/events.ts"),a=r("./src/errors.ts"),o=r("./src/controller/base-playlist-controller.ts"),s=r("./src/types/loader.ts");function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i)),n)}var i}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}const c=function(e){var t,r;function o(t){var r;return(r=e.call(this,t,"[audio-track-controller]")||this).tracks=[],r.groupId=null,r.tracksInGroup=[],r.trackId=-1,r.trackName="",r.selectDefaultTrack=!0,r.registerListeners(),r}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,u(t,r);var c,d,h=o.prototype;return h.registerListeners=function(){var e=this.hls;e.on(n.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.on(n.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.on(n.Events.LEVEL_LOADING,this.onLevelLoading,this),e.on(n.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(n.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(n.Events.ERROR,this.onError,this)},h.unregisterListeners=function(){var e=this.hls;e.off(n.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.off(n.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.off(n.Events.LEVEL_LOADING,this.onLevelLoading,this),e.off(n.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(n.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(n.Events.ERROR,this.onError,this)},h.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,e.prototype.destroy.call(this)},h.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},h.onManifestParsed=function(e,t){this.tracks=t.audioTracks||[]},h.onAudioTrackLoaded=function(e,t){var r=t.id,n=t.details,i=this.tracksInGroup[r];if(i){var a=i.details;i.details=t.details,this.log("audioTrack "+r+" loaded ["+n.startSN+"-"+n.endSN+"]"),r===this.trackId&&(this.retryCount=0,this.playlistLoaded(r,t,a))}else this.warn("Invalid audio track id "+r)},h.onLevelLoading=function(e,t){this.switchLevel(t.level)},h.onLevelSwitching=function(e,t){this.switchLevel(t.level)},h.switchLevel=function(e){var t=this.hls.levels[e];if(null!=t&&t.audioGroupIds){var r=t.audioGroupIds[t.urlId];if(this.groupId!==r){this.groupId=r;var i=this.tracks.filter((function(e){return!r||e.groupId===r}));this.selectDefaultTrack&&!i.some((function(e){return e.default}))&&(this.selectDefaultTrack=!1),this.tracksInGroup=i;var a={audioTracks:i};this.log("Updating audio tracks, "+i.length+' track(s) found in "'+r+'" group-id'),this.hls.trigger(n.Events.AUDIO_TRACKS_UPDATED,a),this.selectInitialTrack()}}},h.onError=function(t,r){e.prototype.onError.call(this,t,r),!r.fatal&&r.context&&r.context.type===s.PlaylistContextType.AUDIO_TRACK&&r.context.id===this.trackId&&r.context.groupId===this.groupId&&this.retryLoadingOrFail(r)},h.setAudioTrack=function(e){var t=this.tracksInGroup;if(e<0||e>=t.length)this.warn("Invalid id passed to audio-track controller");else{this.clearTimer();var r=t[this.trackId];this.log("Now switching to audio-track index "+e);var i=t[e],a=i.id,o=i.groupId,s=void 0===o?"":o,l=i.name,u=i.type,c=i.url;if(this.trackId=e,this.trackName=l,this.selectDefaultTrack=!1,this.hls.trigger(n.Events.AUDIO_TRACK_SWITCHING,{id:a,groupId:s,name:l,type:u,url:c}),!i.details||i.details.live){var d=this.switchParams(i.url,null==r?void 0:r.details);this.loadPlaylist(d)}}},h.selectInitialTrack=function(){var e=this.tracksInGroup;i.assert(e.length,"Initial audio track should be selected when tracks are known");var t=this.trackName,r=this.findTrackId(t)||this.findTrackId();-1!==r?this.setAudioTrack(r):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(n.Events.ERROR,{type:a.ErrorTypes.MEDIA_ERROR,details:a.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},h.findTrackId=function(e){for(var t=this.tracksInGroup,r=0;r<t.length;r++){var n=t[r];if((!this.selectDefaultTrack||n.default)&&(!e||e===n.name))return n.id}return-1},h.loadPlaylist=function(t){e.prototype.loadPlaylist.call(this);var r=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(r)){var i=r.id,a=r.groupId,o=r.url;if(t)try{o=t.addDirectives(o)}catch(e){this.warn("Could not construct new URL with HLS Delivery Directives: "+e)}this.log("loading audio-track playlist for id: "+i),this.clearTimer(),this.hls.trigger(n.Events.AUDIO_TRACK_LOADING,{url:o,id:i,groupId:a,deliveryDirectives:t||null})}},c=o,(d=[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}}])&&l(c.prototype,d),Object.defineProperty(c,"prototype",{writable:!1}),o}(o.default)},"./src/controller/base-playlist-controller.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r("./src/types/level.ts"),i=r("./src/controller/level-helper.ts"),a=r("./src/utils/logger.ts"),o=r("./src/errors.ts"),s=function(){function e(e,t){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=a.logger.log.bind(a.logger,t+":"),this.warn=a.logger.warn.bind(a.logger,t+":"),this.hls=e}var t=e.prototype;return t.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},t.onError=function(e,t){!t.fatal||t.type!==o.ErrorTypes.NETWORK_ERROR&&t.type!==o.ErrorTypes.KEY_SYSTEM_ERROR||this.stopLoad()},t.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},t.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.requestScheduled=-1,this.loadPlaylist()},t.stopLoad=function(){this.canLoad=!1,this.clearTimer()},t.switchParams=function(e,t){var r=null==t?void 0:t.renditionReports;if(r)for(var i=0;i<r.length;i++){var o=r[i],s=void 0;try{s=new self.URL(o.URI,t.url).href}catch(e){a.logger.warn("Could not construct new URL for Rendition Report: "+e),s=o.URI||""}if(s===e.slice(-s.length)){var l=parseInt(o["LAST-MSN"])||(null==t?void 0:t.lastPartSn),u=parseInt(o["LAST-PART"])||(null==t?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){var c=Math.min(t.age-t.partTarget,t.targetduration);u>=0&&c>t.partTarget&&(u+=1)}return new n.HlsUrlParameters(l,u>=0?u:void 0,n.HlsSkip.No)}}},t.loadPlaylist=function(e){-1===this.requestScheduled&&(this.requestScheduled=self.performance.now())},t.shouldLoadTrack=function(e){return this.canLoad&&e&&!!e.url&&(!e.details||e.details.live)},t.playlistLoaded=function(e,t,r){var n=this,a=t.details,o=t.stats,s=self.performance.now(),l=o.loading.first?Math.max(0,s-o.loading.first):0;if(a.advancedDateTime=Date.now()-l,a.live||null!=r&&r.live){if(a.reloaded(r),r&&this.log("live playlist "+e+" "+(a.advanced?"REFRESHED "+a.lastPartSn+"-"+a.lastPartIndex:"MISSED")),r&&a.fragments.length>0&&(0,i.mergeDetails)(r,a),!this.canLoad||!a.live)return;var u,c=void 0,d=void 0;if(a.canBlockReload&&a.endSN&&a.advanced){var h=this.hls.config.lowLatencyMode,f=a.lastPartSn,p=a.endSN,m=a.lastPartIndex,g=f===p;-1!==m?(c=g?p+1:f,d=g?h?0:m:m+1):c=p+1;var v=a.age,y=v+a.ageHeader,_=Math.min(y-a.partTarget,1.5*a.targetduration);if(_>0){if(r&&_>r.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+r.tuneInGoal+" to: "+_+" with playlist age: "+a.age),_=0;else{var b=Math.floor(_/a.targetduration);c+=b,void 0!==d&&(d+=Math.round(_%a.targetduration/a.partTarget)),this.log("CDN Tune-in age: "+a.ageHeader+"s last advanced "+v.toFixed(2)+"s goal: "+_+" skip sn "+b+" to part "+d)}a.tuneInGoal=_}if(u=this.getDeliveryDirectives(a,t.deliveryDirectives,c,d),h||!g)return void this.loadPlaylist(u)}else u=this.getDeliveryDirectives(a,t.deliveryDirectives,c,d);var M=this.hls.mainForwardBufferInfo,w=M?M.end-M.len:0,T=1e3*(a.edge-w),L=(0,i.computeReloadInterval)(a,T);a.updated?s>this.requestScheduled+L&&(this.requestScheduled=o.loading.start):this.requestScheduled=-1,void 0!==c&&a.canBlockReload?this.requestScheduled=o.loading.first+L-(1e3*a.partTarget||1e3):this.requestScheduled=(-1===this.requestScheduled?s:this.requestScheduled)+L;var S=this.requestScheduled-s;S=Math.max(0,S),this.log("reload live playlist "+e+" in "+Math.round(S)+" ms"),this.timer=self.setTimeout((function(){return n.loadPlaylist(u)}),S)}else this.clearTimer()},t.getDeliveryDirectives=function(e,t,r,i){var a=(0,n.getSkipValue)(e,r);return null!=t&&t.skip&&e.deltaUpdateFailed&&(r=t.msn,i=t.part,a=n.HlsSkip.No),new n.HlsUrlParameters(r,i,a)},t.retryLoadingOrFail=function(e){var t,r=this,n=this.hls.config,i=this.retryCount<n.levelLoadingMaxRetry;if(i)if(this.requestScheduled=-1,this.retryCount++,e.details.indexOf("LoadTimeOut")>-1&&null!==(t=e.context)&&void 0!==t&&t.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+e.details+'"'),this.loadPlaylist();else{var a=Math.min(Math.pow(2,this.retryCount)*n.levelLoadingRetryDelay,n.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout((function(){return r.loadPlaylist()}),a),this.warn("retry playlist loading #"+this.retryCount+" in "+a+' ms after "'+e.details+'"')}else this.warn('cannot recover from error "'+e.details+'"'),this.clearTimer(),e.fatal=!0;return i},e}()},"./src/controller/base-stream-controller.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{State:()=>w,default:()=>T});var n=r("./src/polyfills/number.ts"),a=r("./src/task-loop.ts"),o=r("./src/controller/fragment-tracker.ts"),s=r("./src/utils/buffer-helper.ts"),l=r("./src/utils/logger.ts"),u=r("./src/events.ts"),c=r("./src/errors.ts"),d=r("./src/types/transmuxer.ts"),h=r("./src/utils/mp4-tools.ts"),f=r("./src/utils/discontinuities.ts"),p=r("./src/controller/fragment-finders.ts"),m=r("./src/controller/level-helper.ts"),g=r("./src/loader/fragment-loader.ts"),v=r("./src/crypt/decrypter.ts"),y=r("./src/utils/time-ranges.ts"),_=r("./src/types/loader.ts");function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i)),n)}var i}function M(e,t){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},M(e,t)}var w={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},T=function(e){var t,r;function a(t,r,n,i){var a;return(a=e.call(this)||this).hls=void 0,a.fragPrevious=null,a.fragCurrent=null,a.fragmentTracker=void 0,a.transmuxer=null,a._state=w.STOPPED,a.media=null,a.mediaBuffer=null,a.config=void 0,a.bitrateTest=!1,a.lastCurrentTime=0,a.nextLoadPosition=0,a.startPosition=0,a.loadedmetadata=!1,a.fragLoadError=0,a.retryDate=0,a.levels=null,a.fragmentLoader=void 0,a.keyLoader=void 0,a.levelLastLoaded=null,a.startFragRequested=!1,a.decrypter=void 0,a.initPTS=[],a.onvseeking=null,a.onvended=null,a.logPrefix="",a.log=void 0,a.warn=void 0,a.logPrefix=i,a.log=l.logger.log.bind(l.logger,i+":"),a.warn=l.logger.warn.bind(l.logger,i+":"),a.hls=t,a.fragmentLoader=new g.default(t.config),a.keyLoader=n,a.fragmentTracker=r,a.config=t.config,a.decrypter=new v.default(t.config),t.on(u.Events.LEVEL_SWITCHING,a.onLevelSwitching,function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(a)),a}r=e,(t=a).prototype=Object.create(r.prototype),t.prototype.constructor=t,M(t,r);var T,L,S=a.prototype;return S.doTick=function(){this.onTickEnd()},S.onTickEnd=function(){},S.startLoad=function(e){},S.stopLoad=function(){this.fragmentLoader.abort(),this.keyLoader.abort();var e=this.fragCurrent;e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=w.STOPPED},S._streamEnded=function(e,t){if(t.live||e.nextStart||!e.end||!this.media)return!1;var r=t.partList;if(null!=r&&r.length){var n=r[r.length-1];return s.BufferHelper.isBuffered(this.media,n.start+n.duration/2)}var i=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(i)},S.getLevelDetails=function(){var e;if(this.levels&&null!==this.levelLastLoaded)return null===(e=this.levels[this.levelLastLoaded])||void 0===e?void 0:e.details},S.onMediaAttached=function(e,t){var r=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),r.addEventListener("seeking",this.onvseeking),r.addEventListener("ended",this.onvended);var n=this.config;this.levels&&n.autoStartLoad&&this.state===w.STOPPED&&this.startLoad(n.startPosition)},S.onMediaDetaching=function(){var e=this.media;null!=e&&e.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),e&&this.onvseeking&&this.onvended&&(e.removeEventListener("seeking",this.onvseeking),e.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},S.onMediaSeeking=function(){var e=this.config,t=this.fragCurrent,r=this.media,i=this.mediaBuffer,a=this.state,o=r?r.currentTime:0,l=s.BufferHelper.bufferInfo(i||r,o,e.maxBufferHole);if(this.log("media seeking to "+((0,n.isFiniteNumber)(o)?o.toFixed(3):o)+", state: "+a),this.state===w.ENDED)this.resetLoadingState();else if(t){var u=e.maxFragLookUpTolerance,c=t.start-u,d=t.start+t.duration+u;if(!l.len||d<l.start||c>l.end){var h=o>d;(o<c||h)&&(h&&t.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),t.abortRequests()),this.resetLoadingState())}}r&&(this.lastCurrentTime=o),this.loadedmetadata||l.len||(this.nextLoadPosition=this.startPosition=o),this.tickImmediate()},S.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},S.onLevelSwitching=function(e,t){this.fragLoadError=0},S.onHandlerDestroying=function(){this.stopLoad(),e.prototype.onHandlerDestroying.call(this)},S.onHandlerDestroyed=function(){this.state=w.STOPPED,this.hls.off(u.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,e.prototype.onHandlerDestroyed.call(this)},S.loadFragment=function(e,t,r){this._loadFragForPlayback(e,t,r)},S._loadFragForPlayback=function(e,t,r){var n=this;this._doFragLoad(e,t,r,(function(t){if(n.fragContextChanged(e))return n.warn("Fragment "+e.sn+(t.part?" p: "+t.part.index:"")+" of level "+e.level+" was dropped during download."),void n.fragmentTracker.removeFragment(e);e.stats.chunkCount++,n._handleFragmentLoadProgress(t)})).then((function(t){if(t){n.fragLoadError=0;var r=n.state;n.fragContextChanged(e)?(r===w.FRAG_LOADING||!n.fragCurrent&&r===w.PARSING)&&(n.fragmentTracker.removeFragment(e),n.state=w.IDLE):("payload"in t&&(n.log("Loaded fragment "+e.sn+" of level "+e.level),n.hls.trigger(u.Events.FRAG_LOADED,t)),n._handleFragmentLoadComplete(t))}})).catch((function(t){n.state!==w.STOPPED&&n.state!==w.ERROR&&(n.warn(t),n.resetFragmentLoading(e))}))},S.flushMainBuffer=function(e,t,r){if(void 0===r&&(r=null),e-t){var n={startOffset:e,endOffset:t,type:r};this.fragLoadError=0,this.hls.trigger(u.Events.BUFFER_FLUSHING,n)}},S._loadInitSegment=function(e,t){var r=this;this._doFragLoad(e,t).then((function(t){if(!t||r.fragContextChanged(e)||!r.levels)throw new Error("init load aborted");return t})).then((function(t){var n=r.hls,i=t.payload,a=e.decryptdata;if(i&&i.byteLength>0&&a&&a.key&&a.iv&&"AES-128"===a.method){var o=self.performance.now();return r.decrypter.decrypt(new Uint8Array(i),a.key.buffer,a.iv.buffer).then((function(r){var i=self.performance.now();return n.trigger(u.Events.FRAG_DECRYPTED,{frag:e,payload:r,stats:{tstart:o,tdecrypt:i}}),t.payload=r,t}))}return t})).then((function(t){var n=r.fragCurrent,a=r.hls,o=r.levels;if(!o)throw new Error("init load aborted, missing levels");var s=o[e.level].details;i.assert(s,"Level details are defined when init segment is loaded");var l=e.stats;r.state=w.IDLE,r.fragLoadError=0,e.data=new Uint8Array(t.payload),l.parsing.start=l.buffering.start=self.performance.now(),l.parsing.end=l.buffering.end=self.performance.now(),t.frag===n&&a.trigger(u.Events.FRAG_BUFFERED,{stats:l,frag:n,part:null,id:e.type}),r.tick()})).catch((function(t){r.state!==w.STOPPED&&r.state!==w.ERROR&&(r.warn(t),r.resetFragmentLoading(e))}))},S.fragContextChanged=function(e){var t=this.fragCurrent;return!e||!t||e.level!==t.level||e.sn!==t.sn||e.urlId!==t.urlId},S.fragBufferedComplete=function(e,t){var r,n,i=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+e.type+" sn: "+e.sn+(t?" part: "+t.index:"")+" of "+("[stream-controller]"===this.logPrefix?"level":"track")+" "+e.level+" "+(i?y.default.toString(s.BufferHelper.getBuffered(i)):"(detached)")),this.state=w.IDLE,i&&(!this.loadedmetadata&&e.type==_.PlaylistLevelType.MAIN&&i.buffered.length&&(null===(r=this.fragCurrent)||void 0===r?void 0:r.sn)===(null===(n=this.fragPrevious)||void 0===n?void 0:n.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())},S.seekToStartPos=function(){},S._handleFragmentLoadComplete=function(e){var t=this.transmuxer;if(t){var r=e.frag,n=e.part,i=e.partsLoaded,a=!i||0===i.length||i.some((function(e){return!e})),o=new d.ChunkMetadata(r.level,r.sn,r.stats.chunkCount+1,0,n?n.index:-1,!a);t.flush(o)}},S._handleFragmentLoadProgress=function(e){},S._doFragLoad=function(e,t,r,i){var a,o=this;if(void 0===r&&(r=null),!this.levels)throw new Error("frag load aborted, missing levels");var s=null;if(!e.encrypted||null!==(a=e.decryptdata)&&void 0!==a&&a.key?!e.encrypted&&t.encryptedFragments.length&&this.keyLoader.loadClear(e,t.encryptedFragments):(this.log("Loading key for "+e.sn+" of ["+t.startSN+"-"+t.endSN+"], "+("[stream-controller]"===this.logPrefix?"level":"track")+" "+e.level),this.state=w.KEY_LOADING,this.fragCurrent=e,s=this.keyLoader.load(e).then((function(e){if(!o.fragContextChanged(e.frag))return o.hls.trigger(u.Events.KEY_LOADED,e),e})),this.hls.trigger(u.Events.KEY_LOADING,{frag:e}),this.throwIfFragContextChanged("KEY_LOADING")),r=Math.max(e.start,r||0),this.config.lowLatencyMode&&t){var l=t.partList;if(l&&i){r>e.end&&t.fragmentHint&&(e=t.fragmentHint);var c=this.getNextPart(l,e,r);if(c>-1){var d=l[c];return this.log("Loading part sn: "+e.sn+" p: "+d.index+" cc: "+e.cc+" of playlist ["+t.startSN+"-"+t.endSN+"] parts [0-"+c+"-"+(l.length-1)+"] "+("[stream-controller]"===this.logPrefix?"level":"track")+": "+e.level+", target: "+parseFloat(r.toFixed(3))),this.nextLoadPosition=d.start+d.duration,this.state=w.FRAG_LOADING,this.hls.trigger(u.Events.FRAG_LOADING,{frag:e,part:l[c],targetBufferTime:r}),this.throwIfFragContextChanged("FRAG_LOADING parts"),s?s.then((function(t){return!t||o.fragContextChanged(t.frag)?null:o.doFragPartsLoad(e,l,c,i)})).catch((function(e){return o.handleFragLoadError(e)})):this.doFragPartsLoad(e,l,c,i).catch((function(e){return o.handleFragLoadError(e)}))}if(!e.url||this.loadedEndOfParts(l,r))return Promise.resolve(null)}}this.log("Loading fragment "+e.sn+" cc: "+e.cc+" "+(t?"of ["+t.startSN+"-"+t.endSN+"] ":"")+("[stream-controller]"===this.logPrefix?"level":"track")+": "+e.level+", target: "+parseFloat(r.toFixed(3))),(0,n.isFiniteNumber)(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=w.FRAG_LOADING,this.hls.trigger(u.Events.FRAG_LOADING,{frag:e,targetBufferTime:r}),this.throwIfFragContextChanged("FRAG_LOADING");var h=this.config.progressive;return h&&s?s.then((function(t){return!t||o.fragContextChanged(null==t?void 0:t.frag)?null:o.fragmentLoader.load(e,i)})).catch((function(e){return o.handleFragLoadError(e)})):Promise.all([this.fragmentLoader.load(e,h?i:void 0),s]).then((function(e){var t=e[0];return!h&&t&&i&&i(t),t})).catch((function(e){return o.handleFragLoadError(e)}))},S.throwIfFragContextChanged=function(e){if(null===this.fragCurrent)throw new Error("frag load aborted, context changed in "+e)},S.doFragPartsLoad=function(e,t,r,n){var i=this;return new Promise((function(a,o){var s=[];!function r(l){var c=t[l];i.fragmentLoader.loadPart(e,c,n).then((function(n){s[c.index]=n;var o=n.part;i.hls.trigger(u.Events.FRAG_LOADED,n);var d=t[l+1];if(!d||d.fragment!==e)return a({frag:e,part:o,partsLoaded:s});r(l+1)})).catch(o)}(r)}))},S.handleFragLoadError=function(e){if("data"in e){var t=e.data;e.data&&t.details===c.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(u.Events.ERROR,t)}else this.hls.trigger(u.Events.ERROR,{type:c.ErrorTypes.OTHER_ERROR,details:c.ErrorDetails.INTERNAL_EXCEPTION,err:e,fatal:!0});return null},S._handleTransmuxerFlush=function(e){var t=this.getCurrentContext(e);if(t&&this.state===w.PARSING){var r=t.frag,n=t.part,i=t.level,a=self.performance.now();r.stats.parsing.end=a,n&&(n.stats.parsing.end=a),this.updateLevelTiming(r,n,i,e.partial)}else this.fragCurrent||this.state===w.STOPPED||this.state===w.ERROR||(this.state=w.IDLE)},S.getCurrentContext=function(e){var t=this.levels,r=e.level,n=e.sn,i=e.part;if(!t||!t[r])return this.warn("Levels object was unset while buffering fragment "+n+" of level "+r+". The current chunk will not be buffered."),null;var a=t[r],o=i>-1?(0,m.getPartWith)(a,n,i):null,s=o?o.fragment:(0,m.getFragmentWithSN)(a,n,this.fragCurrent);return s?{frag:s,part:o,level:a}:null},S.bufferFragmentData=function(e,t,r,n){if(e&&this.state===w.PARSING){var i=e.data1,a=e.data2,o=i;if(i&&a&&(o=(0,h.appendUint8Array)(i,a)),o&&o.length){var s={type:e.type,frag:t,part:r,chunkMeta:n,parent:t.type,data:o};this.hls.trigger(u.Events.BUFFER_APPENDING,s),e.dropped&&e.independent&&!r&&this.flushBufferGap(t)}}},S.flushBufferGap=function(e){var t=this.media;if(t)if(s.BufferHelper.isBuffered(t,t.currentTime)){var r=t.currentTime,n=s.BufferHelper.bufferInfo(t,r,0),i=e.duration,a=Math.min(2*this.config.maxFragLookUpTolerance,.25*i),o=Math.max(Math.min(e.start-a,n.end-a),r+a);e.start-o>a&&this.flushMainBuffer(o,e.start)}else this.flushMainBuffer(0,e.start)},S.getFwdBufferInfo=function(e,t){var r=this.config,i=this.getLoadPosition();if(!(0,n.isFiniteNumber)(i))return null;var a=s.BufferHelper.bufferInfo(e,i,r.maxBufferHole);if(0===a.len&&void 0!==a.nextStart){var o=this.fragmentTracker.getBufferedFrag(i,t);if(o&&a.nextStart<o.end)return s.BufferHelper.bufferInfo(e,i,Math.max(a.nextStart,r.maxBufferHole))}return a},S.getMaxBufferLength=function(e){var t,r=this.config;return t=e?Math.max(8*r.maxBufferSize/e,r.maxBufferLength):r.maxBufferLength,Math.min(t,r.maxMaxBufferLength)},S.reduceMaxBufferLength=function(e){var t=this.config,r=e||t.maxBufferLength;return t.maxMaxBufferLength>=r&&(t.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+t.maxMaxBufferLength+"s"),!0)},S.getNextFragment=function(e,t){var r=t.fragments,n=r.length;if(!n)return null;var i,a=this.config,o=r[0].start;if(t.live){var s=a.initialLiveManifestSize;if(n<s)return this.warn("Not enough fragments to start playback (have: "+n+", need: "+s+")"),null;t.PTSKnown||this.startFragRequested||-1!==this.startPosition||(i=this.getInitialLiveFragment(t,r),this.startPosition=i?this.hls.liveSyncPosition||i.start:e)}else e<=o&&(i=r[0]);if(!i){var l=a.lowLatencyMode?t.partEnd:t.fragmentEnd;i=this.getFragmentAtPosition(e,l,t)}return this.mapToInitFragWhenRequired(i)},S.mapToInitFragWhenRequired=function(e){return null==e||!e.initSegment||null!=e&&e.initSegment.data||this.bitrateTest?e:e.initSegment},S.getNextPart=function(e,t,r){for(var n=-1,i=!1,a=!0,o=0,s=e.length;o<s;o++){var l=e[o];if(a=a&&!l.independent,n>-1&&r<l.start)break;var u=l.loaded;u?n=-1:(i||l.independent||a)&&l.fragment===t&&(n=o),i=u}return n},S.loadedEndOfParts=function(e,t){var r=e[e.length-1];return r&&t>r.start&&r.loaded},S.getInitialLiveFragment=function(e,t){var r=this.fragPrevious,n=null;if(r){if(e.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+r.programDateTime),n=(0,p.findFragmentByPDT)(t,r.endProgramDateTime,this.config.maxFragLookUpTolerance)),!n){var i=r.sn+1;if(i>=e.startSN&&i<=e.endSN){var a=t[i-e.startSN];r.cc===a.cc&&(n=a,this.log("Live playlist, switching playlist, load frag with next SN: "+n.sn))}n||(n=(0,p.findFragWithCC)(t,r.cc))&&this.log("Live playlist, switching playlist, load frag with same CC: "+n.sn)}}else{var o=this.hls.liveSyncPosition;null!==o&&(n=this.getFragmentAtPosition(o,this.bitrateTest?e.fragmentEnd:e.edge,e))}return n},S.getFragmentAtPosition=function(e,t,r){var n,i=this.config,a=this.fragPrevious,s=r.fragments,l=r.endSN,u=r.fragmentHint,c=i.maxFragLookUpTolerance,d=!!(i.lowLatencyMode&&r.partList&&u);if(d&&u&&!this.bitrateTest&&(s=s.concat(u),l=u.sn),e<t){var h=e>t-c?0:c;n=(0,p.findFragmentByPTS)(a,s,e,h)}else n=s[s.length-1];if(n){var f=n.sn-r.startSN;if(this.fragmentTracker.getState(n)===o.FragmentState.OK&&(a=n),a&&n.sn===a.sn&&!d&&a&&n.level===a.level){var m=s[f+1];n.sn<l&&this.fragmentTracker.getState(m)!==o.FragmentState.OK?(this.log("SN "+n.sn+" just loaded, load next one: "+m.sn),n=m):n=null}}return n},S.synchronizeToLiveEdge=function(e){var t=this.config,r=this.media;if(r){var n=this.hls.liveSyncPosition,i=r.currentTime,a=e.fragments[0].start,o=e.edge,s=i>=a-t.maxFragLookUpTolerance&&i<=o;if(null!==n&&r.duration>n&&(i<n||!s)){var l=void 0!==t.liveMaxLatencyDuration?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!s&&r.readyState<4||i<o-l)&&(this.loadedmetadata||(this.nextLoadPosition=n),r.readyState&&(this.warn("Playback: "+i.toFixed(3)+" is located too far from the end of live sliding playlist: "+o+", reset currentTime to : "+n.toFixed(3)),r.currentTime=n))}}},S.alignPlaylists=function(e,t){var r=this.levels,i=this.levelLastLoaded,a=this.fragPrevious,o=null!==i?r[i]:null,s=e.fragments.length;if(!s)return this.warn("No fragments in live playlist"),0;var l=e.fragments[0].start,u=!t,c=e.alignedSliding&&(0,n.isFiniteNumber)(l);if(u||!c&&!l){(0,f.alignStream)(a,o,e);var d=e.fragments[0].start;return this.log("Live playlist sliding: "+d.toFixed(2)+" start-sn: "+(t?t.startSN:"na")+"->"+e.startSN+" prev-sn: "+(a?a.sn:"na")+" fragments: "+s),d}return l},S.waitForCdnTuneIn=function(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,3*e.partTarget)},S.setStartPosition=function(e,t){var r=this.startPosition;if(r<t&&(r=-1),-1===r||-1===this.lastCurrentTime){var i=e.startTimeOffset;(0,n.isFiniteNumber)(i)?(r=t+i,i<0&&(r+=e.totalduration),r=Math.min(Math.max(t,r),t+e.totalduration),this.log("Start time offset "+i+" found in playlist, adjust startPosition to "+r),this.startPosition=r):e.live?r=this.hls.liveSyncPosition||t:this.startPosition=r=0,this.lastCurrentTime=r}this.nextLoadPosition=r},S.getLoadPosition=function(){var e=this.media,t=0;return this.loadedmetadata&&e?t=e.currentTime:this.nextLoadPosition&&(t=this.nextLoadPosition),t},S.handleFragLoadAborted=function(e,t){this.transmuxer&&"initSegment"!==e.sn&&e.stats.aborted&&(this.warn("Fragment "+e.sn+(t?" part"+t.index:"")+" of level "+e.level+" was aborted"),this.resetFragmentLoading(e))},S.resetFragmentLoading=function(e){this.fragCurrent&&(this.fragContextChanged(e)||this.state===w.FRAG_LOADING_WAITING_RETRY)||(this.state=w.IDLE)},S.onFragmentOrKeyLoadError=function(e,t){if(t.fatal)return this.stopLoad(),void(this.state=w.ERROR);var r=this.config;if(t.chunkMeta){var n=this.getCurrentContext(t.chunkMeta);n&&(t.frag=n.frag,t.levelRetry=!0,this.fragLoadError=r.fragLoadingMaxRetry)}var a=t.frag;if(a&&a.type===e){var o=this.fragCurrent;if(i.assert(o&&a.sn===o.sn&&a.level===o.level&&a.urlId===o.urlId,"Frag load error must match current frag to retry"),this.fragLoadError+1<=r.fragLoadingMaxRetry){this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition);var s=Math.min(Math.pow(2,this.fragLoadError)*r.fragLoadingRetryDelay,r.fragLoadingMaxRetryTimeout);this.warn("Fragment "+a.sn+" of "+e+" "+a.level+" failed to load, retrying in "+s+"ms"),this.retryDate=self.performance.now()+s,this.fragLoadError++,this.state=w.FRAG_LOADING_WAITING_RETRY}else t.levelRetry?(e===_.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=w.IDLE):(l.logger.error(t.details+" reaches max retry, redispatch as fatal ..."),t.fatal=!0,this.hls.stopLoad(),this.state=w.ERROR)}},S.afterBufferFlushed=function(e,t,r){if(e){var n=s.BufferHelper.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,n,r),this.state===w.ENDED&&this.resetLoadingState()}},S.resetLoadingState=function(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=w.IDLE},S.resetStartWhenNotLoaded=function(e){if(!this.loadedmetadata){this.startFragRequested=!1;var t=this.levels?this.levels[e].details:null;null!=t&&t.live?(this.startPosition=-1,this.setStartPosition(t,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}},S.updateLevelTiming=function(e,t,r,n){var a=this,o=r.details;i.assert(!!o,"level.details must be defined"),Object.keys(e.elementaryStreams).reduce((function(t,i){var s=e.elementaryStreams[i];if(s){var l=s.endPTS-s.startPTS;if(l<=0)return a.warn("Could not parse fragment "+e.sn+" "+i+" duration reliably ("+l+")"),t||!1;var c=n?0:(0,m.updateFragPTSDTS)(o,e,s.startPTS,s.endPTS,s.startDTS,s.endDTS);return a.hls.trigger(u.Events.LEVEL_PTS_UPDATED,{details:o,level:r,drift:c,type:i,frag:e,start:s.startPTS,end:s.endPTS}),!0}return t}),!1)||(this.warn("Found no media in fragment "+e.sn+" of level "+r.id+" resetting transmuxer to fallback to playlist timing"),this.resetTransmuxer()),this.state=w.PARSED,this.hls.trigger(u.Events.FRAG_PARSED,{frag:e,part:t})},S.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},T=a,(L=[{key:"state",get:function(){return this._state},set:function(e){var t=this._state;t!==e&&(this._state=e,this.log(t+"->"+e))}}])&&b(T.prototype,L),Object.defineProperty(T,"prototype",{writable:!1}),a}(a.default)},"./src/controller/buffer-controller.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r("./src/polyfills/number.ts"),a=r("./src/events.ts"),o=r("./src/utils/logger.ts"),s=r("./src/errors.ts"),l=r("./src/utils/buffer-helper.ts"),u=r("./src/utils/mediasource-helper.ts"),c=r("./src/loader/fragment.ts"),d=r("./src/controller/buffer-operation-queue.ts"),h=(0,u.getMediaSource)(),f=/([ha]vc.)(?:\.[^.,]+)+/,p=function(){function e(e){var t=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var e=t.hls,r=t.media,n=t.mediaSource;o.logger.log("[buffer-controller]: Media source opened"),r&&(t.updateMediaElementDuration(),e.trigger(a.Events.MEDIA_ATTACHED,{media:r})),n&&n.removeEventListener("sourceopen",t._onMediaSourceOpen),t.checkPendingTracks()},this._onMediaSourceClose=function(){o.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){o.logger.log("[buffer-controller]: Media source ended")},this.hls=e,this._initSourceBuffer(),this.registerListeners()}var t=e.prototype;return t.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},t.destroy=function(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null},t.registerListeners=function(){var e=this.hls;e.on(a.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(a.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(a.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.on(a.Events.BUFFER_RESET,this.onBufferReset,this),e.on(a.Events.BUFFER_APPENDING,this.onBufferAppending,this),e.on(a.Events.BUFFER_CODECS,this.onBufferCodecs,this),e.on(a.Events.BUFFER_EOS,this.onBufferEos,this),e.on(a.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(a.Events.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(a.Events.FRAG_PARSED,this.onFragParsed,this),e.on(a.Events.FRAG_CHANGED,this.onFragChanged,this)},t.unregisterListeners=function(){var e=this.hls;e.off(a.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(a.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(a.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.off(a.Events.BUFFER_RESET,this.onBufferReset,this),e.off(a.Events.BUFFER_APPENDING,this.onBufferAppending,this),e.off(a.Events.BUFFER_CODECS,this.onBufferCodecs,this),e.off(a.Events.BUFFER_EOS,this.onBufferEos,this),e.off(a.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(a.Events.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(a.Events.FRAG_PARSED,this.onFragParsed,this),e.off(a.Events.FRAG_CHANGED,this.onFragChanged,this)},t._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new d.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.lastMpegAudioChunk=null},t.onManifestParsed=function(e,t){var r=2;(t.audio&&!t.video||!t.altAudio)&&(r=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=r,this.details=null,o.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},t.onMediaAttaching=function(e,t){var r=this.media=t.media;if(r&&h){var n=this.mediaSource=new h;n.addEventListener("sourceopen",this._onMediaSourceOpen),n.addEventListener("sourceended",this._onMediaSourceEnded),n.addEventListener("sourceclose",this._onMediaSourceClose),r.src=self.URL.createObjectURL(n),this._objectUrl=r.src}},t.onMediaDetaching=function(){var e=this.media,t=this.mediaSource,r=this._objectUrl;if(t){if(o.logger.log("[buffer-controller]: media source detaching"),"open"===t.readyState)try{t.endOfStream()}catch(e){o.logger.warn("[buffer-controller]: onMediaDetaching: "+e.message+" while calling endOfStream")}this.onBufferReset(),t.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("sourceended",this._onMediaSourceEnded),t.removeEventListener("sourceclose",this._onMediaSourceClose),e&&(r&&self.URL.revokeObjectURL(r),e.src===r?(e.removeAttribute("src"),e.load()):o.logger.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(a.Events.MEDIA_DETACHED,void 0)},t.onBufferReset=function(){var e=this;this.getSourceBufferTypes().forEach((function(t){var r=e.sourceBuffer[t];try{r&&(e.removeBufferListeners(t),e.mediaSource&&e.mediaSource.removeSourceBuffer(r),e.sourceBuffer[t]=void 0)}catch(e){o.logger.warn("[buffer-controller]: Failed to reset the "+t+" buffer",e)}})),this._initSourceBuffer()},t.onBufferCodecs=function(e,t){var r=this,n=this.getSourceBufferTypes().length;Object.keys(t).forEach((function(e){if(n){var i=r.tracks[e];if(i&&"function"==typeof i.buffer.changeType){var a=t[e],s=a.id,l=a.codec,u=a.levelCodec,c=a.container,d=a.metadata,h=(i.levelCodec||i.codec).replace(f,"$1"),p=(u||l).replace(f,"$1");if(h!==p){var m=c+";codecs="+(u||l);r.appendChangeType(e,m),o.logger.log("[buffer-controller]: switching codec "+h+" to "+p),r.tracks[e]={buffer:i.buffer,codec:l,container:c,levelCodec:u,metadata:d,id:s}}}}else r.pendingTracks[e]=t[e]})),n||(this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&"open"===this.mediaSource.readyState&&this.checkPendingTracks())},t.appendChangeType=function(e,t){var r=this,n=this.operationQueue,i={execute:function(){var i=r.sourceBuffer[e];i&&(o.logger.log("[buffer-controller]: changing "+e+" sourceBuffer type to "+t),i.changeType(t)),n.shiftAndExecuteNext(e)},onStart:function(){},onComplete:function(){},onError:function(t){o.logger.warn("[buffer-controller]: Failed to change "+e+" SourceBuffer type",t)}};n.append(i,e)},t.onBufferAppending=function(e,t){var r=this,n=this.hls,i=this.operationQueue,u=this.tracks,c=t.data,d=t.type,h=t.frag,f=t.part,p=t.chunkMeta,m=p.buffering[d],g=self.performance.now();m.start=g;var v=h.stats.buffering,y=f?f.stats.buffering:null;0===v.start&&(v.start=g),y&&0===y.start&&(y.start=g);var _=u.audio,b=!1;"audio"===d&&"audio/mpeg"===(null==_?void 0:_.container)&&(b=!this.lastMpegAudioChunk||1===p.id||this.lastMpegAudioChunk.sn!==p.sn,this.lastMpegAudioChunk=p);var M=h.start,w={execute:function(){if(m.executeStart=self.performance.now(),b){var e=r.sourceBuffer[d];if(e){var t=M-e.timestampOffset;Math.abs(t)>=.1&&(o.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+M+" (delta: "+t+") sn: "+h.sn+")"),e.timestampOffset=M)}}r.appendExecutor(c,d)},onStart:function(){},onComplete:function(){var e=self.performance.now();m.executeEnd=m.end=e,0===v.first&&(v.first=e),y&&0===y.first&&(y.first=e);var t=r.sourceBuffer,n={};for(var i in t)n[i]=l.BufferHelper.getBuffered(t[i]);r.appendError=0,r.hls.trigger(a.Events.BUFFER_APPENDED,{type:d,frag:h,part:f,chunkMeta:p,parent:h.type,timeRanges:n})},onError:function(e){o.logger.error("[buffer-controller]: Error encountered while trying to append to the "+d+" SourceBuffer",e);var t={type:s.ErrorTypes.MEDIA_ERROR,parent:h.type,details:s.ErrorDetails.BUFFER_APPEND_ERROR,err:e,fatal:!1};e.code===DOMException.QUOTA_EXCEEDED_ERR?t.details=s.ErrorDetails.BUFFER_FULL_ERROR:(r.appendError++,t.details=s.ErrorDetails.BUFFER_APPEND_ERROR,r.appendError>n.config.appendErrorMaxRetry&&(o.logger.error("[buffer-controller]: Failed "+n.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),t.fatal=!0,n.stopLoad())),n.trigger(a.Events.ERROR,t)}};i.append(w,d)},t.onBufferFlushing=function(e,t){var r=this,n=this.operationQueue,i=function(e){return{execute:r.removeExecutor.bind(r,e,t.startOffset,t.endOffset),onStart:function(){},onComplete:function(){r.hls.trigger(a.Events.BUFFER_FLUSHED,{type:e})},onError:function(t){o.logger.warn("[buffer-controller]: Failed to remove from "+e+" SourceBuffer",t)}}};t.type?n.append(i(t.type),t.type):this.getSourceBufferTypes().forEach((function(e){n.append(i(e),e)}))},t.onFragParsed=function(e,t){var r=this,n=t.frag,i=t.part,s=[],l=i?i.elementaryStreams:n.elementaryStreams;l[c.ElementaryStreamTypes.AUDIOVIDEO]?s.push("audiovideo"):(l[c.ElementaryStreamTypes.AUDIO]&&s.push("audio"),l[c.ElementaryStreamTypes.VIDEO]&&s.push("video")),0===s.length&&o.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+n.type+" level: "+n.level+" sn: "+n.sn),this.blockBuffers((function(){var e=self.performance.now();n.stats.buffering.end=e,i&&(i.stats.buffering.end=e);var t=i?i.stats:n.stats;r.hls.trigger(a.Events.FRAG_BUFFERED,{frag:n,part:i,stats:t,id:n.type})}),s)},t.onFragChanged=function(e,t){this.flushBackBuffer()},t.onBufferEos=function(e,t){var r=this;this.getSourceBufferTypes().reduce((function(e,n){var i=r.sourceBuffer[n];return!i||t.type&&t.type!==n||(i.ending=!0,i.ended||(i.ended=!0,o.logger.log("[buffer-controller]: "+n+" sourceBuffer now EOS"))),e&&!(i&&!i.ended)}),!0)&&(o.logger.log("[buffer-controller]: Queueing mediaSource.endOfStream()"),this.blockBuffers((function(){r.getSourceBufferTypes().forEach((function(e){var t=r.sourceBuffer[e];t&&(t.ending=!1)}));var e=r.mediaSource;e&&"open"===e.readyState?(o.logger.log("[buffer-controller]: Calling mediaSource.endOfStream()"),e.endOfStream()):e&&o.logger.info("[buffer-controller]: Could not call mediaSource.endOfStream(). mediaSource.readyState: "+e.readyState)})))},t.onLevelUpdated=function(e,t){var r=t.details;r.fragments.length&&(this.details=r,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())},t.flushBackBuffer=function(){var e=this.hls,t=this.details,r=this.media,i=this.sourceBuffer;if(r&&null!==t){var s=this.getSourceBufferTypes();if(s.length){var u=t.live&&null!==e.config.liveBackBufferLength?e.config.liveBackBufferLength:e.config.backBufferLength;if((0,n.isFiniteNumber)(u)&&!(u<0)){var c=r.currentTime,d=t.levelTargetDuration,h=Math.max(u,d),f=Math.floor(c/d)*d-h;s.forEach((function(r){var n=i[r];if(n){var s=l.BufferHelper.getBuffered(n);if(s.length>0&&f>s.start(0)){if(e.trigger(a.Events.BACK_BUFFER_REACHED,{bufferEnd:f}),t.live)e.trigger(a.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:f});else if(n.ended&&s.end(s.length-1)-c<2*d)return void o.logger.info("[buffer-controller]: Cannot flush "+r+" back buffer while SourceBuffer is in ended state");e.trigger(a.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:f,type:r})}}}))}}}},t.updateMediaElementDuration=function(){if(this.details&&this.media&&this.mediaSource&&"open"===this.mediaSource.readyState){var e=this.details,t=this.hls,r=this.media,i=this.mediaSource,a=e.fragments[0].start+e.totalduration,s=r.duration,l=(0,n.isFiniteNumber)(i.duration)?i.duration:0;e.live&&t.config.liveDurationInfinity?(o.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),i.duration=1/0,this.updateSeekableRange(e)):(a>l&&a>s||!(0,n.isFiniteNumber)(s))&&(o.logger.log("[buffer-controller]: Updating Media Source duration to "+a.toFixed(3)),i.duration=a)}},t.updateSeekableRange=function(e){var t=this.mediaSource,r=e.fragments;if(r.length&&e.live&&null!=t&&t.setLiveSeekableRange){var n=Math.max(0,r[0].start),i=Math.max(n,n+e.totalduration);t.setLiveSeekableRange(n,i)}},t.checkPendingTracks=function(){var e=this.bufferCodecEventsExpected,t=this.operationQueue,r=this.pendingTracks,n=Object.keys(r).length;if(n&&!e||2===n){this.createSourceBuffers(r),this.pendingTracks={};var i=this.getSourceBufferTypes();if(0===i.length)return void this.hls.trigger(a.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});i.forEach((function(e){t.executeNext(e)}))}},t.createSourceBuffers=function(e){var t=this.sourceBuffer,r=this.mediaSource;if(!r)throw Error("createSourceBuffers called when mediaSource was null");var n=0;for(var i in e)if(!t[i]){var l=e[i];if(!l)throw Error("source buffer exists for track "+i+", however track does not");var u=l.levelCodec||l.codec,c=l.container+";codecs="+u;o.logger.log("[buffer-controller]: creating sourceBuffer("+c+")");try{var d=t[i]=r.addSourceBuffer(c),h=i;this.addBufferListener(h,"updatestart",this._onSBUpdateStart),this.addBufferListener(h,"updateend",this._onSBUpdateEnd),this.addBufferListener(h,"error",this._onSBUpdateError),this.tracks[i]={buffer:d,codec:u,container:l.container,levelCodec:l.levelCodec,metadata:l.metadata,id:l.id},n++}catch(e){o.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+e.message),this.hls.trigger(a.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:e,mimeType:c})}}n&&this.hls.trigger(a.Events.BUFFER_CREATED,{tracks:this.tracks})},t._onSBUpdateStart=function(e){this.operationQueue.current(e).onStart()},t._onSBUpdateEnd=function(e){var t=this.operationQueue;t.current(e).onComplete(),t.shiftAndExecuteNext(e)},t._onSBUpdateError=function(e,t){o.logger.error("[buffer-controller]: "+e+" SourceBuffer error",t),this.hls.trigger(a.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var r=this.operationQueue.current(e);r&&r.onError(t)},t.removeExecutor=function(e,t,r){var a=this.media,s=this.mediaSource,l=this.operationQueue,u=this.sourceBuffer[e];if(!a||!s||!u)return o.logger.warn("[buffer-controller]: Attempting to remove from the "+e+" SourceBuffer, but it does not exist"),void l.shiftAndExecuteNext(e);var c=(0,n.isFiniteNumber)(a.duration)?a.duration:1/0,d=(0,n.isFiniteNumber)(s.duration)?s.duration:1/0,h=Math.max(0,t),f=Math.min(r,c,d);f>h&&!u.ending?(u.ended=!1,o.logger.log("[buffer-controller]: Removing ["+h+","+f+"] from the "+e+" SourceBuffer"),i.assert(!u.updating,e+" sourceBuffer must not be updating"),u.remove(h,f)):l.shiftAndExecuteNext(e)},t.appendExecutor=function(e,t){var r=this.operationQueue,n=this.sourceBuffer[t];if(!n)return o.logger.warn("[buffer-controller]: Attempting to append to the "+t+" SourceBuffer, but it does not exist"),void r.shiftAndExecuteNext(t);n.ended=!1,i.assert(!n.updating,t+" sourceBuffer must not be updating"),n.appendBuffer(e)},t.blockBuffers=function(e,t){var r=this;if(void 0===t&&(t=this.getSourceBufferTypes()),!t.length)return o.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),void Promise.resolve().then(e);var n=this.operationQueue,i=t.map((function(e){return n.appendBlocker(e)}));Promise.all(i).then((function(){e(),t.forEach((function(e){var t=r.sourceBuffer[e];t&&t.updating||n.shiftAndExecuteNext(e)}))}))},t.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},t.addBufferListener=function(e,t,r){var n=this.sourceBuffer[e];if(n){var i=r.bind(this,e);this.listeners[e].push({event:t,listener:i}),n.addEventListener(t,i)}},t.removeBufferListeners=function(e){var t=this.sourceBuffer[e];t&&this.listeners[e].forEach((function(e){t.removeEventListener(e.event,e.listener)}))},e}()},"./src/controller/buffer-operation-queue.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r("./src/utils/logger.ts"),i=function(){function e(e){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=e}var t=e.prototype;return t.append=function(e,t){var r=this.queues[t];r.push(e),1===r.length&&this.buffers[t]&&this.executeNext(t)},t.insertAbort=function(e,t){this.queues[t].unshift(e),this.executeNext(t)},t.appendBlocker=function(e){var t,r=new Promise((function(e){t=e})),n={execute:t,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(n,e),r},t.executeNext=function(e){var t=this.buffers,r=this.queues,i=t[e],a=r[e];if(a.length){var o=a[0];try{o.execute()}catch(t){n.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),o.onError(t),i&&i.updating||(a.shift(),this.executeNext(e))}}},t.shiftAndExecuteNext=function(e){this.queues[e].shift(),this.executeNext(e)},t.current=function(e){return this.queues[e][0]},e}()},"./src/controller/cap-level-controller.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r("./src/events.ts");function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i)),n)}var i}const a=function(){function e(e){this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.hls=void 0,this.streamController=void 0,this.clientRect=void 0,this.hls=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var t,r,a=e.prototype;return a.setStreamController=function(e){this.streamController=e},a.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},a.registerListeners=function(){var e=this.hls;e.on(n.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(n.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(n.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.on(n.Events.BUFFER_CODECS,this.onBufferCodecs,this),e.on(n.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},a.unregisterListener=function(){var e=this.hls;e.off(n.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(n.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(n.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.off(n.Events.BUFFER_CODECS,this.onBufferCodecs,this),e.off(n.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},a.onFpsDropLevelCapping=function(t,r){e.isLevelAllowed(r.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(r.droppedLevel)},a.onMediaAttaching=function(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null},a.onManifestParsed=function(e,t){var r=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,r.config.capLevelToPlayerSize&&t.video&&this.startCapping()},a.onBufferCodecs=function(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()},a.onMediaDetaching=function(){this.stopCapping()},a.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var e=this.hls.levels;if(e.length){var t=this.hls;t.autoLevelCapping=this.getMaxLevel(e.length-1),t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}},a.getMaxLevel=function(t){var r=this,n=this.hls.levels;if(!n.length)return-1;var i=n.filter((function(n,i){return e.isLevelAllowed(i,r.restrictedLevels)&&i<=t}));return this.clientRect=null,e.getMaxLevelByMediaSize(i,this.mediaWidth,this.mediaHeight)},a.startCapping=function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},a.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},a.getDimensions=function(){if(this.clientRect)return this.clientRect;var e=this.media,t={width:0,height:0};if(e){var r=e.getBoundingClientRect();t.width=r.width,t.height=r.height,t.width||t.height||(t.width=r.right-r.left||e.width||0,t.height=r.bottom-r.top||e.height||0)}return this.clientRect=t,t},e.isLevelAllowed=function(e,t){return void 0===t&&(t=[]),-1===t.indexOf(e)},e.getMaxLevelByMediaSize=function(e,t,r){if(!e||!e.length)return-1;for(var n,i,a=e.length-1,o=0;o<e.length;o+=1){var s=e[o];if((s.width>=t||s.height>=r)&&(n=s,!(i=e[o+1])||n.width!==i.width||n.height!==i.height)){a=o;break}}return a},t=e,(r=[{key:"mediaWidth",get:function(){return this.getDimensions().width*this.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*this.contentScaleFactor}},{key:"contentScaleFactor",get:function(){var e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(e){}return e}}])&&i(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},"./src/controller/cmcd-controller.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r("./src/events.ts"),i=r("./src/types/cmcd.ts"),a=r("./src/utils/buffer-helper.ts"),o=r("./src/utils/logger.ts");function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i)),n)}var i}function l(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}var h=function(){function e(t){var r=this;this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){r.initialized&&(r.starved=!0),r.buffering=!0},this.onPlaying=function(){r.initialized||(r.initialized=!0),r.buffering=!1},this.applyPlaylistData=function(e){try{r.apply(e,{ot:i.CMCDObjectType.MANIFEST,su:!r.initialized})}catch(e){o.logger.warn("Could not generate manifest CMCD data.",e)}},this.applyFragmentData=function(e){try{var t=e.frag,n=r.hls.levels[t.level],a=r.getObjectType(t),s={d:1e3*t.duration,ot:a};a!==i.CMCDObjectType.VIDEO&&a!==i.CMCDObjectType.AUDIO&&a!=i.CMCDObjectType.MUXED||(s.br=n.bitrate/1e3,s.tb=r.getTopBandwidth(a)/1e3,s.bl=r.getBufferLength(a)),r.apply(e,s)}catch(e){o.logger.warn("Could not generate segment CMCD data.",e)}},this.hls=t;var n=this.config=t.config,a=n.cmcd;null!=a&&(n.pLoader=this.createPlaylistLoader(),n.fLoader=this.createFragmentLoader(),this.sid=a.sessionId||e.uuid(),this.cid=a.contentId,this.useHeaders=!0===a.useHeaders,this.registerListeners())}var t=e.prototype;return t.registerListeners=function(){var e=this.hls;e.on(n.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(n.Events.MEDIA_DETACHED,this.onMediaDetached,this),e.on(n.Events.BUFFER_CREATED,this.onBufferCreated,this)},t.unregisterListeners=function(){var e=this.hls;e.off(n.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(n.Events.MEDIA_DETACHED,this.onMediaDetached,this),e.off(n.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},t.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},t.onMediaAttached=function(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},t.onMediaDetached=function(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)},t.onBufferCreated=function(e,t){var r,n;this.audioBuffer=null===(r=t.tracks.audio)||void 0===r?void 0:r.buffer,this.videoBuffer=null===(n=t.tracks.video)||void 0===n?void 0:n.buffer},t.createData=function(){var e;return{v:i.CMCDVersion,sf:i.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:null===(e=this.media)||void 0===e?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},t.apply=function(t,r){void 0===r&&(r={}),d(r,this.createData());var n=r.ot===i.CMCDObjectType.INIT||r.ot===i.CMCDObjectType.VIDEO||r.ot===i.CMCDObjectType.MUXED;if(this.starved&&n&&(r.bs=!0,r.su=!0,this.starved=!1),null==r.su&&(r.su=this.buffering),this.useHeaders){var a=e.toHeaders(r);if(!Object.keys(a).length)return;t.headers||(t.headers={}),d(t.headers,a)}else{var o=e.toQuery(r);if(!o)return;t.url=e.appendQueryToUri(t.url,o)}},t.getObjectType=function(e){var t=e.type;return"subtitle"===t?i.CMCDObjectType.TIMED_TEXT:"initSegment"===e.sn?i.CMCDObjectType.INIT:"audio"===t?i.CMCDObjectType.AUDIO:"main"===t?this.hls.audioTracks.length?i.CMCDObjectType.VIDEO:i.CMCDObjectType.MUXED:void 0},t.getTopBandwidth=function(e){var t,r=0,n=this.hls;if(e===i.CMCDObjectType.AUDIO)t=n.audioTracks;else{var a=n.maxAutoLevel,o=a>-1?a+1:n.levels.length;t=n.levels.slice(0,o)}for(var s,l=u(t);!(s=l()).done;){var c=s.value;c.bitrate>r&&(r=c.bitrate)}return r>0?r:NaN},t.getBufferLength=function(e){var t=this.hls.media,r=e===i.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;return r&&t?1e3*a.BufferHelper.bufferInfo(r,t.currentTime,this.config.maxBufferHole).len:NaN},t.createPlaylistLoader=function(){var e=this.config.pLoader,t=this.applyPlaylistData,r=e||this.config.loader;return function(){function e(e){this.loader=void 0,this.loader=new r(e)}var n=e.prototype;return n.destroy=function(){this.loader.destroy()},n.abort=function(){this.loader.abort()},n.load=function(e,r,n){t(e),this.loader.load(e,r,n)},l(e,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),e}()},t.createFragmentLoader=function(){var e=this.config.fLoader,t=this.applyFragmentData,r=e||this.config.loader;return function(){function e(e){this.loader=void 0,this.loader=new r(e)}var n=e.prototype;return n.destroy=function(){this.loader.destroy()},n.abort=function(){this.loader.abort()},n.load=function(e,r,n){t(e),this.loader.load(e,r,n)},l(e,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),e}()},e.uuid=function(){var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)},e.serialize=function(e){for(var t,r=[],n=function(e){return!Number.isNaN(e)&&null!=e&&""!==e&&!1!==e},i=function(e){return Math.round(e)},a=function(e){return 100*i(e/100)},o={br:i,d:i,bl:a,dl:a,mtp:a,nor:function(e){return encodeURIComponent(e)},rtp:a,tb:i},s=u(Object.keys(e||{}).sort());!(t=s()).done;){var l=t.value,c=e[l];if(n(c)&&!("v"===l&&1===c||"pr"==l&&1===c)){var d=o[l];d&&(c=d(c));var h,f=typeof c;h="ot"===l||"sf"===l||"st"===l?l+"="+c:"boolean"===f?l:"number"===f?l+"="+c:l+"="+JSON.stringify(c),r.push(h)}}return r.join(",")},e.toHeaders=function(t){for(var r={},n=["Object","Request","Session","Status"],i=[{},{},{},{}],a={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},o=0,s=Object.keys(t);o<s.length;o++){var l=s[o];i[null!=a[l]?a[l]:1][l]=t[l]}for(var u=0;u<i.length;u++){var c=e.serialize(i[u]);c&&(r["CMCD-"+n[u]]=c)}return r},e.toQuery=function(t){return"CMCD="+encodeURIComponent(e.serialize(t))},e.appendQueryToUri=function(e,t){if(!t)return e;var r=e.includes("?")?"&":"?";return""+e+r+t},e}()},"./src/controller/eme-controller.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>T});var n=r("./src/events.ts"),a=r("./src/errors.ts"),o=r("./src/utils/logger.ts"),s=r("./src/utils/mediakeys-helper.ts"),l=r("./src/utils/keysystem-util.ts"),u=r("./src/utils/numeric-encoding-utils.ts"),c=r("./src/loader/level-key.ts"),d=r("./src/utils/hex.ts"),h=r("./src/utils/mp4-tools.ts"),f=r("./node_modules/eventemitter3/index.js"),p=r.n(f);function m(e){var t="function"==typeof Map?new Map:void 0;return m=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return g(e,arguments,_(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),y(n,e)},m(e)}function g(e,t,r){return g=v()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&y(i,r.prototype),i},g.apply(null,arguments)}function v(){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(e){return!1}}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var b="[eme]",M=function(){function e(t){this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=e.CDMCleanupPromise?[e.CDMCleanupPromise]:[],this.onMediaEncrypted=this._onMediaEncrypted.bind(this),this.onWaitingForKey=this._onWaitingForKey.bind(this),this.debug=o.logger.debug.bind(o.logger,b),this.log=o.logger.log.bind(o.logger,b),this.warn=o.logger.warn.bind(o.logger,b),this.error=o.logger.error.bind(o.logger,b),this.hls=t,this.config=t.config,this.registerListeners()}var t=e.prototype;return t.destroy=function(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.onMediaEncrypted=this.onWaitingForKey=this.keyIdToKeySessionPromise=null},t.registerListeners=function(){this.hls.on(n.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(n.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(n.Events.MANIFEST_LOADED,this.onManifestLoaded,this)},t.unregisterListeners=function(){this.hls.off(n.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(n.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(n.Events.MANIFEST_LOADED,this.onManifestLoaded,this)},t.getLicenseServerUrl=function(e){var t=this.config,r=t.drmSystems,n=t.widevineLicenseUrl,i=r[e];if(i)return i.licenseUrl;if(e===s.KeySystems.WIDEVINE&&n)return n;throw new Error('no license server URL configured for key-system "'+e+'"')},t.getServerCertificateUrl=function(e){var t=this.config.drmSystems[e];if(t)return t.serverCertificateUrl;this.log('No Server Certificate in config.drmSystems["'+e+'"]')},t.attemptKeySystemAccess=function(e){var t=this,r=this.hls.levels,n=function(e,t,r){return!!e&&r.indexOf(e)===t},i=r.map((function(e){return e.audioCodec})).filter(n),o=r.map((function(e){return e.videoCodec})).filter(n);return i.length+o.length===0&&o.push("avc1.42e01e"),new Promise((function(r,n){!function e(s){var l=s.shift();t.getMediaKeysPromise(l,i,o).then((function(e){return r({keySystem:l,mediaKeys:e})})).catch((function(t){s.length?e(s):n(t instanceof w?t:new w({type:a.ErrorTypes.KEY_SYSTEM_ERROR,details:a.ErrorDetails.KEY_SYSTEM_NO_ACCESS,error:t,fatal:!0},t.message))}))}(e)}))},t.requestMediaKeySystemAccess=function(e,t){var r=this.config.requestMediaKeySystemAccessFunc;if("function"!=typeof r){var n="Configured requestMediaKeySystemAccess is not a function "+r;return null===s.requestMediaKeySystemAccess&&"http:"===self.location.protocol&&(n="navigator.requestMediaKeySystemAccess is not available over insecure protocol "+location.protocol),Promise.reject(new Error(n))}return r(e,t)},t.getMediaKeysPromise=function(e,t,r){var n=this,i=(0,s.getSupportedMediaKeySystemConfigurations)(e,t,r,this.config.drmSystemOptions),a=this.keySystemAccessPromises[e],o=null==a?void 0:a.keySystemAccess;if(!o){this.log('Requesting encrypted media "'+e+'" key-system access with config: '+JSON.stringify(i)),o=this.requestMediaKeySystemAccess(e,i);var l=this.keySystemAccessPromises[e]={keySystemAccess:o};return o.catch((function(t){n.log('Failed to obtain access to key-system "'+e+'": '+t)})),o.then((function(t){n.log('Access for key-system "'+t.keySystem+'" obtained');var r=n.fetchServerCertificate(e);return n.log('Create media-keys for "'+e+'"'),l.mediaKeys=t.createMediaKeys().then((function(t){return n.log('Media-keys created for "'+e+'"'),r.then((function(r){return r?n.setMediaKeysServerCertificate(t,e,r):t}))})),l.mediaKeys.catch((function(t){n.error('Failed to create media-keys for "'+e+'"}: '+t)})),l.mediaKeys}))}return o.then((function(){return a.mediaKeys}))},t.createMediaKeySessionContext=function(e){var t=e.decryptdata,r=e.keySystem,n=e.mediaKeys;i.assert(!!n,"mediaKeys is defined"),this.log('Creating key-system session "'+r+'" keyId: '+d.default.hexDump(t.keyId||[]));var a=n.createSession(),o={decryptdata:t,keySystem:r,mediaKeys:n,mediaKeysSession:a,keyStatus:"status-pending"};return this.mediaKeySessions.push(o),o},t.renewKeySession=function(e){var t=e.decryptdata;if(t.pssh){var r=this.createMediaKeySessionContext(e),n=this.getKeyIdString(t);this.keyIdToKeySessionPromise[n]=this.generateRequestWithPreferredKeySession(r,"cenc",t.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)},t.getKeyIdString=function(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(null===e.keyId)throw new Error("keyId is null");return d.default.hexDump(e.keyId)},t.updateKeySession=function(e,t){var r,n=e.mediaKeysSession;return this.log('Updating key-session "'+n.sessionId+'" for keyID '+d.default.hexDump((null===(r=e.decryptdata)||void 0===r?void 0:r.keyId)||[])+"\n } (data length: "+(t?t.byteLength:t)+")"),n.update(t)},t.selectKeySystemFormat=function(e){var t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log("Selecting key-system from fragment (sn: "+e.sn+" "+e.type+": "+e.level+") key formats "+t.join(", ")),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise},t.getKeyFormatPromise=function(e){var t=this;return new Promise((function(r,n){var i=(0,s.getKeySystemsForConfig)(t.config),a=e.map(s.keySystemFormatToKeySystemDomain).filter((function(e){return!!e&&-1!==i.indexOf(e)}));return t.getKeySystemSelectionPromise(a).then((function(e){var t=e.keySystem,i=(0,s.keySystemDomainToKeySystemFormat)(t);i?r(i):n(new Error('Unable to find format for key-system "'+t+'"'))})).catch(n)}))},t.loadKey=function(e){var t=this,r=e.keyInfo.decryptdata,n=this.getKeyIdString(r),i="(keyId: "+n+' format: "'+r.keyFormat+'" method: '+r.method+" uri: "+r.uri+")";this.log("Starting session for key "+i);var a=this.keyIdToKeySessionPromise[n];return a||(a=this.keyIdToKeySessionPromise[n]=this.getKeySystemForKeyPromise(r).then((function(n){var a=n.keySystem,o=n.mediaKeys;return t.throwIfDestroyed(),t.log("Handle encrypted media sn: "+e.frag.sn+" "+e.frag.type+": "+e.frag.level+" using key "+i),t.attemptSetMediaKeys(a,o).then((function(){t.throwIfDestroyed();var e=t.createMediaKeySessionContext({keySystem:a,mediaKeys:o,decryptdata:r});return t.generateRequestWithPreferredKeySession(e,"cenc",r.pssh,"playlist-key")}))}))).catch((function(e){return t.handleError(e)})),a},t.throwIfDestroyed=function(e){if(void 0===e&&(e="Invalid state"),!this.hls)throw new Error("invalid state")},t.handleError=function(e){this.hls&&(this.error(e.message),e instanceof w?this.hls.trigger(n.Events.ERROR,e.data):this.hls.trigger(n.Events.ERROR,{type:a.ErrorTypes.KEY_SYSTEM_ERROR,details:a.ErrorDetails.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))},t.getKeySystemForKeyPromise=function(e){var t=this.getKeyIdString(e),r=this.keyIdToKeySessionPromise[t];if(!r){var n=(0,s.keySystemFormatToKeySystemDomain)(e.keyFormat),i=n?[n]:(0,s.getKeySystemsForConfig)(this.config);return this.attemptKeySystemAccess(i)}return r},t.getKeySystemSelectionPromise=function(e){if(e.length||(e=(0,s.getKeySystemsForConfig)(this.config)),0===e.length)throw new w({type:a.ErrorTypes.KEY_SYSTEM_ERROR,details:a.ErrorDetails.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},"Missing key-system license configuration options "+JSON.stringify({drmSystems:this.config.drmSystems}));return this.attemptKeySystemAccess(e)},t._onMediaEncrypted=function(e){var t=this,r=e.initDataType,n=e.initData;if(this.debug('"'+e.type+'" event: init data type: "'+r+'"'),null!==n){var i,a;if("sinf"===r&&this.config.drmSystems[s.KeySystems.FAIRPLAY]){var o=(0,h.bin2str)(new Uint8Array(n));try{var l=(0,u.base64Decode)(JSON.parse(o).sinf),f=(0,h.parseSinf)(new Uint8Array(l));if(!f)return;i=f.subarray(8,24),a=s.KeySystems.FAIRPLAY}catch(e){return void this.warn('Failed to parse sinf "encrypted" event message initData')}}else{var p=(0,h.parsePssh)(n);if(null===p)return;0===p.version&&p.systemId===s.KeySystemIds.WIDEVINE&&p.data&&(i=p.data.subarray(8,24)),a=(0,s.keySystemIdToKeySystemDomain)(p.systemId)}if(a&&i){for(var m=d.default.hexDump(i),g=this.keyIdToKeySessionPromise,v=this.mediaKeySessions,y=g[m],_=function(e){var a=v[e],o=a.decryptdata;if(o.pssh||!o.keyId)return"continue";var s=d.default.hexDump(o.keyId);return m===s||-1!==o.uri.replace(/-/g,"").indexOf(m)?(y=g[s],delete g[s],o.pssh=new Uint8Array(n),o.keyId=i,y=g[m]=y.then((function(){return t.generateRequestWithPreferredKeySession(a,r,n,"encrypted-event-key-match")})),"break"):void 0},b=0;b<v.length;b++){var M=_(b);if("continue"!==M&&"break"===M)break}y||(y=g[m]=this.getKeySystemSelectionPromise([a]).then((function(e){var a,o=e.keySystem,l=e.mediaKeys;t.throwIfDestroyed();var u=new c.LevelKey("ISO-23001-7",m,null!=(a=(0,s.keySystemDomainToKeySystemFormat)(o))?a:"");return u.pssh=new Uint8Array(n),u.keyId=i,t.attemptSetMediaKeys(o,l).then((function(){t.throwIfDestroyed();var e=t.createMediaKeySessionContext({decryptdata:u,keySystem:o,mediaKeys:l});return t.generateRequestWithPreferredKeySession(e,r,n,"encrypted-event-no-match")}))}))),y.catch((function(e){return t.handleError(e)}))}}},t._onWaitingForKey=function(e){this.log('"'+e.type+'" event')},t.attemptSetMediaKeys=function(e,t){var r=this,n=this.setMediaKeysQueue.slice();this.log('Setting media-keys for "'+e+'"');var i=Promise.all(n).then((function(){if(!r.media)throw new Error("Attempted to set mediaKeys without media element attached");return r.media.setMediaKeys(t)}));return this.setMediaKeysQueue.push(i),i.then((function(){r.log('Media-keys set for "'+e+'"'),n.push(i),r.setMediaKeysQueue=r.setMediaKeysQueue.filter((function(e){return-1===n.indexOf(e)}))}))},t.generateRequestWithPreferredKeySession=function(e,t,r,n){var i,o,u=this,c=null===(i=this.config.drmSystems)||void 0===i||null===(o=i[e.keySystem])||void 0===o?void 0:o.generateRequest;if(c)try{var d=c.call(this.hls,t,r,e);if(!d)throw new Error("Invalid response from configured generateRequest filter");t=d.initDataType,r=e.decryptdata.pssh=d.initData?new Uint8Array(d.initData):null}catch(e){var h;if(this.warn(e.message),null!==(h=this.hls)&&void 0!==h&&h.config.debug)throw e}if(null===r)return this.log('Skipping key-session request for "'+n+'" (no initData)'),Promise.resolve(e);var f=this.getKeyIdString(e.decryptdata);this.log('Generating key-session request for "'+n+'": '+f+" (init data type: "+t+" length: "+(r?r.byteLength:null)+")");var m=new(p());e.mediaKeysSession.onmessage=function(t){var r=e.mediaKeysSession;if(r){var n=t.messageType,i=t.message;u.log('"'+n+'" message event for session "'+r.sessionId+'" message size: '+i.byteLength),"license-request"===n||"license-renewal"===n?u.renewLicense(e,i).catch((function(e){u.handleError(e),m.emit("error",e)})):"license-release"===n?e.keySystem===s.KeySystems.FAIRPLAY&&(u.updateKeySession(e,(0,l.strToUtf8array)("acknowledged")),u.removeSession(e)):u.warn('unhandled media key message type "'+n+'"')}else m.emit("error",new Error("invalid state"))},e.mediaKeysSession.onkeystatuseschange=function(t){if(e.mediaKeysSession){u.onKeyStatusChange(e);var r=e.keyStatus;m.emit("keyStatus",r),"expired"===r&&(u.warn(e.keySystem+" expired for key "+f),u.renewKeySession(e))}else m.emit("error",new Error("invalid state"))};var g=new Promise((function(e,t){m.on("error",t),m.on("keyStatus",(function(r){r.startsWith("usable")?e():"output-restricted"===r?t(new w({type:a.ErrorTypes.KEY_SYSTEM_ERROR,details:a.ErrorDetails.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):"internal-error"===r?t(new w({type:a.ErrorTypes.KEY_SYSTEM_ERROR,details:a.ErrorDetails.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},'key status changed to "'+r+'"')):"expired"===r?t(new Error("key expired while generating request")):u.warn('unhandled key status change "'+r+'"')}))}));return e.mediaKeysSession.generateRequest(t,r).then((function(){var t;u.log('Request generated for key-session "'+(null===(t=e.mediaKeysSession)||void 0===t?void 0:t.sessionId)+'" keyId: '+f)})).catch((function(e){throw new w({type:a.ErrorTypes.KEY_SYSTEM_ERROR,details:a.ErrorDetails.KEY_SYSTEM_NO_SESSION,error:e,fatal:!1},"Error generating key-session request: "+e)})).then((function(){return g})).catch((function(t){throw m.removeAllListeners(),u.removeSession(e),t})).then((function(){return m.removeAllListeners(),e}))},t.onKeyStatusChange=function(e){var t=this;e.mediaKeysSession.keyStatuses.forEach((function(r,n){t.log('key status change "'+r+'" for keyStatuses keyId: '+d.default.hexDump("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))+" session keyId: "+d.default.hexDump(new Uint8Array(e.decryptdata.keyId||[]))+" uri: "+e.decryptdata.uri),e.keyStatus=r}))},t.fetchServerCertificate=function(e){var t=this;return new Promise((function(r,n){var i=t.getServerCertificateUrl(e);if(!i)return r();t.log('Fetching serverCertificate for "'+e+'"');var o=new XMLHttpRequest;o.open("GET",i,!0),o.responseType="arraybuffer",o.onreadystatechange=function(){o.readyState===XMLHttpRequest.DONE&&(200===o.status?r(o.response):n(new w({type:a.ErrorTypes.KEY_SYSTEM_ERROR,details:a.ErrorDetails.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:o},'"'+e+'" certificate request XHR failed ('+i+"). Status: "+o.status+" ("+o.statusText+")")))},o.send()}))},t.setMediaKeysServerCertificate=function(e,t,r){var n=this;return new Promise((function(i,o){e.setServerCertificate(r).then((function(a){n.log("setServerCertificate "+(a?"success":"not supported by CDM")+" ("+(null==r?void 0:r.byteLength)+') on "'+t+'"'),i(e)})).catch((function(e){o(new w({type:a.ErrorTypes.KEY_SYSTEM_ERROR,details:a.ErrorDetails.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:e,fatal:!0},e.message))}))}))},t.renewLicense=function(e,t){var r=this;return this.requestLicense(e,new Uint8Array(t)).then((function(t){return r.updateKeySession(e,new Uint8Array(t)).catch((function(e){throw new w({type:a.ErrorTypes.KEY_SYSTEM_ERROR,details:a.ErrorDetails.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:e,fatal:!0},e.message)}))}))},t.setupLicenseXHR=function(e,t,r,n){var i=this,a=this.config.licenseXhrSetup;return a?Promise.resolve().then((function(){if(!r.decryptdata)throw new Error("Key removed");return a.call(i.hls,e,t,r,n)})).catch((function(o){if(!r.decryptdata)throw o;return e.open("POST",t,!0),a.call(i.hls,e,t,r,n)})).then((function(r){return e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:r||n}})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:n}))},t.requestLicense=function(e,t){var r=this;return new Promise((function(n,i){var o=r.getLicenseServerUrl(e.keySystem);r.log("Sending license request to URL: "+o);var s=new XMLHttpRequest;s.responseType="arraybuffer",s.onreadystatechange=function(){if(!r.hls||!e.mediaKeysSession)return i(new Error("invalid state"));if(4===s.readyState)if(200===s.status){r._requestLicenseFailureCount=0;var l=s.response;r.log("License received "+(l instanceof ArrayBuffer?l.byteLength:l));var u=r.config.licenseResponseCallback;if(u)try{l=u.call(r.hls,s,o,e)}catch(e){r.error(e)}n(l)}else if(r._requestLicenseFailureCount++,r._requestLicenseFailureCount>3||s.status>=400&&s.status<500)i(new w({type:a.ErrorTypes.KEY_SYSTEM_ERROR,details:a.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:s},"License Request XHR failed ("+o+"). Status: "+s.status+" ("+s.statusText+")"));else{var c=3-r._requestLicenseFailureCount+1;r.warn("Retrying license request, "+c+" attempts left"),r.requestLicense(e,t).then(n,i)}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=s,r.setupLicenseXHR(s,o,e,t).then((function(e){var t=e.xhr,r=e.licenseChallenge;t.send(r)}))}))},t.onMediaAttached=function(e,t){if(this.config.emeEnabled){var r=t.media;this.media=r,r.addEventListener("encrypted",this.onMediaEncrypted),r.addEventListener("waitingforkey",this.onWaitingForKey)}},t.onMediaDetached=function(){var t=this,r=this.media,n=this.mediaKeySessions;r&&(r.removeEventListener("encrypted",this.onMediaEncrypted),r.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},c.LevelKey.clearKeyUriToKeyIdMap();var i=n.length;e.CDMCleanupPromise=Promise.all(n.map((function(e){return t.removeSession(e)})).concat(null==r?void 0:r.setMediaKeys(null).catch((function(e){t.log("Could not clear media keys: "+e+". media.src: "+(null==r?void 0:r.src))})))).then((function(){i&&(t.log("finished closing key sessions and clearing media keys"),n.length=0)})).catch((function(e){t.log("Could not close sessions and clear media keys: "+e+". media.src: "+(null==r?void 0:r.src))}))},t.onManifestLoaded=function(e,t){var r=t.sessionKeys;if(r&&this.config.emeEnabled&&!this.keyFormatPromise){var n=r.reduce((function(e,t){return-1===e.indexOf(t.keyFormat)&&e.push(t.keyFormat),e}),[]);this.log("Selecting key-system from session-keys "+n.join(", ")),this.keyFormatPromise=this.getKeyFormatPromise(n)}},t.removeSession=function(e){var t=this,r=e.mediaKeysSession,n=e.licenseXhr;if(r){this.log("Remove licenses and keys and close session "+r.sessionId),r.onmessage=null,r.onkeystatuseschange=null,n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;var i=this.mediaKeySessions.indexOf(e);return i>-1&&this.mediaKeySessions.splice(i,1),r.remove().catch((function(e){t.log("Could not remove session: "+e)})).then((function(){return r.close()})).catch((function(e){t.log("Could not close session: "+e)}))}},e}();M.CDMCleanupPromise=void 0;var w=function(e){var t,r;function n(t,r){var n;return(n=e.call(this,r)||this).data=void 0,n.data=t,t.err=t.error,n}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,y(t,r),n}(m(Error));const T=M},"./src/controller/fps-controller.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r("./src/events.ts"),i=r("./src/utils/logger.ts");const a=function(){function e(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}var t=e.prototype;return t.setStreamController=function(e){this.streamController=e},t.registerListeners=function(){this.hls.on(n.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},t.unregisterListeners=function(){this.hls.off(n.Events.MEDIA_ATTACHING,this.onMediaAttaching)},t.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},t.onMediaAttaching=function(e,t){var r=this.hls.config;if(r.capLevelOnFPSDrop){var n=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=n,n&&"function"==typeof n.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}},t.checkFPS=function(e,t,r){var a=performance.now();if(t){if(this.lastTime){var o=a-this.lastTime,s=r-this.lastDroppedFrames,l=t-this.lastDecodedFrames,u=1e3*s/o,c=this.hls;if(c.trigger(n.Events.FPS_DROP,{currentDropped:s,currentDecoded:l,totalDroppedFrames:r}),u>0&&s>c.config.fpsDroppedMonitoringThreshold*l){var d=c.currentLevel;i.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+d),d>0&&(-1===c.autoLevelCapping||c.autoLevelCapping>=d)&&(d-=1,c.trigger(n.Events.FPS_DROP_LEVEL_CAPPING,{level:d,droppedLevel:c.currentLevel}),c.autoLevelCapping=d,this.streamController.nextLevelSwitch())}}this.lastTime=a,this.lastDroppedFrames=r,this.lastDecodedFrames=t}},t.checkFPSInterval=function(){var e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){var t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)},e}()},"./src/controller/fragment-finders.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{findFragWithCC:()=>u,findFragmentByPDT:()=>a,findFragmentByPTS:()=>o,fragmentWithinToleranceTest:()=>s,pdtWithinToleranceTest:()=>l});var n=r("./src/polyfills/number.ts"),i=r("./src/utils/binary-search.ts");function a(e,t,r){if(null===t||!Array.isArray(e)||!e.length||!(0,n.isFiniteNumber)(t))return null;if(t<(e[0].programDateTime||0))return null;if(t>=(e[e.length-1].endProgramDateTime||0))return null;r=r||0;for(var i=0;i<e.length;++i){var a=e[i];if(l(t,r,a))return a}return null}function o(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=0);var a=null;if(e?a=t[e.sn-t[0].sn+1]||null:0===r&&0===t[0].start&&(a=t[0]),a&&0===s(r,n,a))return a;var o=i.default.search(t,s.bind(null,r,n));return!o||o===e&&a?a:o}function s(e,t,r){if(void 0===e&&(e=0),void 0===t&&(t=0),r.start<=e&&r.start+r.duration>e)return 0;var n=Math.min(t,r.duration+(r.deltaPTS?r.deltaPTS:0));return r.start+r.duration-n<=e?1:r.start-n>e&&r.start?-1:0}function l(e,t,r){var n=1e3*Math.min(t,r.duration+(r.deltaPTS?r.deltaPTS:0));return(r.endProgramDateTime||0)-n>e}function u(e,t){return i.default.search(e,(function(e){return e.cc<t?1:e.cc>t?-1:0}))}},"./src/controller/fragment-tracker.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{FragmentState:()=>n,FragmentTracker:()=>o});var n,i=r("./src/events.ts"),a=r("./src/types/loader.ts");!function(e){e.NOT_LOADED="NOT_LOADED",e.APPENDING="APPENDING",e.PARTIAL="PARTIAL",e.OK="OK"}(n||(n={}));var o=function(){function e(e){this.activeFragment=null,this.activeParts=null,this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=e,this._registerListeners()}var t=e.prototype;return t._registerListeners=function(){var e=this.hls;e.on(i.Events.BUFFER_APPENDED,this.onBufferAppended,this),e.on(i.Events.FRAG_BUFFERED,this.onFragBuffered,this),e.on(i.Events.FRAG_LOADED,this.onFragLoaded,this)},t._unregisterListeners=function(){var e=this.hls;e.off(i.Events.BUFFER_APPENDED,this.onBufferAppended,this),e.off(i.Events.FRAG_BUFFERED,this.onFragBuffered,this),e.off(i.Events.FRAG_LOADED,this.onFragLoaded,this)},t.destroy=function(){this._unregisterListeners(),this.fragments=this.endListFragments=this.timeRanges=this.activeFragment=this.activeParts=null},t.getAppendedFrag=function(e,t){if(t===a.PlaylistLevelType.MAIN){var r=this.activeFragment,n=this.activeParts;if(!r)return null;if(n)for(var i=n.length;i--;){var o=n[i],s=o?o.end:r.appendedPTS;if(o.start<=e&&void 0!==s&&e<=s)return i>9&&(this.activeParts=n.slice(i-9)),o}else if(r.start<=e&&void 0!==r.appendedPTS&&e<=r.appendedPTS)return r}return this.getBufferedFrag(e,t)},t.getBufferedFrag=function(e,t){for(var r=this.fragments,n=Object.keys(r),i=n.length;i--;){var a=r[n[i]];if((null==a?void 0:a.body.type)===t&&a.buffered){var o=a.body;if(o.start<=e&&e<=o.end)return o}}return null},t.detectEvictedFragments=function(e,t,r){var n=this;this.timeRanges&&(this.timeRanges[e]=t),Object.keys(this.fragments).forEach((function(i){var a=n.fragments[i];if(a)if(a.buffered||a.loaded){var o=a.range[e];o&&o.time.some((function(e){var r=!n.isTimeBuffered(e.startPTS,e.endPTS,t);return r&&n.removeFragment(a.body),r}))}else a.body.type===r&&n.removeFragment(a.body)}))},t.detectPartialFragments=function(e){var t=this,r=this.timeRanges,n=e.frag,i=e.part;if(r&&"initSegment"!==n.sn){var a=l(n),o=this.fragments[a];o&&(Object.keys(r).forEach((function(e){var a=n.elementaryStreams[e];if(a){var s=r[e],l=null!==i||!0===a.partial;o.range[e]=t.getBufferedTimes(n,i,l,s)}})),o.loaded=null,Object.keys(o.range).length?(o.buffered=!0,o.body.endList&&(this.endListFragments[o.body.type]=o)):this.removeFragment(o.body))}},t.fragBuffered=function(e){var t=l(e),r=this.fragments[t];r&&(r.loaded=null,r.buffered=!0)},t.getBufferedTimes=function(e,t,r,n){for(var i={time:[],partial:r},a=t?t.start:e.start,o=t?t.end:e.end,s=e.minEndPTS||o,l=e.maxStartPTS||a,u=0;u<n.length;u++){var c=n.start(u)-this.bufferPadding,d=n.end(u)+this.bufferPadding;if(l>=c&&s<=d){i.time.push({startPTS:Math.max(a,n.start(u)),endPTS:Math.min(o,n.end(u))});break}if(a<d&&o>c)i.partial=!0,i.time.push({startPTS:Math.max(a,n.start(u)),endPTS:Math.min(o,n.end(u))});else if(o<=c)break}return i},t.getPartialFragment=function(e){var t,r,n,i=null,a=0,o=this.bufferPadding,l=this.fragments;return Object.keys(l).forEach((function(u){var c=l[u];c&&s(c)&&(r=c.body.start-o,n=c.body.end+o,e>=r&&e<=n&&(t=Math.min(e-r,n-e),a<=t&&(i=c.body,a=t)))})),i},t.isEndListAppended=function(e){var t=this.endListFragments[e];return void 0!==t&&(t.buffered||s(t))},t.getState=function(e){var t=l(e),r=this.fragments[t];return r?r.buffered?s(r)?n.PARTIAL:n.OK:n.APPENDING:n.NOT_LOADED},t.isTimeBuffered=function(e,t,r){for(var n,i,a=0;a<r.length;a++){if(n=r.start(a)-this.bufferPadding,i=r.end(a)+this.bufferPadding,e>=n&&t<=i)return!0;if(t<=n)return!1}return!1},t.onFragLoaded=function(e,t){var r=t.frag,n=t.part;if("initSegment"!==r.sn&&!r.bitrateTest&&!n){var i=l(r);this.fragments[i]={body:r,loaded:t,buffered:!1,range:Object.create(null)}}},t.onBufferAppended=function(e,t){var r=this,n=t.frag,i=t.part,o=t.timeRanges;if(n.type===a.PlaylistLevelType.MAIN)if(this.activeFragment!==n&&(this.activeFragment=n,n.appendedPTS=void 0),i){var s=this.activeParts;s||(this.activeParts=s=[]),s.push(i)}else this.activeParts=null;this.timeRanges=o,Object.keys(o).forEach((function(e){var t=o[e];if(r.detectEvictedFragments(e,t),!i&&n.type===a.PlaylistLevelType.MAIN){var s=n.elementaryStreams[e];if(!s)return;for(var l=0;l<t.length;l++){var u=t.end(l);u<=s.endPTS&&u>s.startPTS?n.appendedPTS=Math.max(u,n.appendedPTS||0):n.appendedPTS=s.endPTS}}}))},t.onFragBuffered=function(e,t){this.detectPartialFragments(t)},t.hasFragment=function(e){var t=l(e);return!!this.fragments[t]},t.removeFragmentsInRange=function(e,t,r){var n=this;Object.keys(this.fragments).forEach((function(i){var a=n.fragments[i];if(a&&a.buffered){var o=a.body;o.type===r&&o.start<t&&o.end>e&&n.removeFragment(o)}}))},t.removeFragment=function(e){var t=l(e);e.stats.loaded=0,e.clearElementaryStreamInfo(),e.appendedPTS=void 0,delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]},t.removeAllFragments=function(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activeFragment=null,this.activeParts=null},e}();function s(e){var t,r;return e.buffered&&((null===(t=e.range.video)||void 0===t?void 0:t.partial)||(null===(r=e.range.audio)||void 0===r?void 0:r.partial))}function l(e){return e.type+"_"+e.level+"_"+e.urlId+"_"+e.sn}},"./src/controller/gap-controller.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{MAX_START_GAP_JUMP:()=>l,SKIP_BUFFER_HOLE_STEP_SECONDS:()=>u,SKIP_BUFFER_RANGE_START:()=>c,STALL_MINIMUM_DURATION_MS:()=>s,default:()=>d});var n=r("./src/utils/buffer-helper.ts"),i=r("./src/errors.ts"),a=r("./src/events.ts"),o=r("./src/utils/logger.ts"),s=250,l=2,u=.1,c=.05,d=function(){function e(e,t,r,n){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=e,this.media=t,this.fragmentTracker=r,this.hls=n}var t=e.prototype;return t.destroy=function(){this.media=null,this.hls=this.fragmentTracker=null},t.poll=function(e,t){var r=this.config,i=this.media,a=this.stalled;if(null!==i){var u=i.currentTime,c=i.seeking,d=this.seeking&&!c,h=!this.seeking&&c;if(this.seeking=c,u===e){if((h||d)&&(this.stalled=null),!(i.paused&&!c||i.ended||0===i.playbackRate)&&n.BufferHelper.getBuffered(i).length){var f=n.BufferHelper.bufferInfo(i,u,0),p=f.len>0,m=f.nextStart||0;if(p||m){if(c){var g=f.len>l,v=!m||t&&t.start<=u||m-u>l&&!this.fragmentTracker.getPartialFragment(u);if(g||v)return;this.moved=!1}if(!this.moved&&null!==this.stalled){var y,_=Math.max(m,f.start||0)-u,b=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,M=(null==b||null===(y=b.details)||void 0===y?void 0:y.live)?2*b.details.targetduration:l;if(_>0&&_<=M)return void this._trySkipBufferHole(null)}var w=self.performance.now();if(null!==a){var T=w-a;if(c||!(T>=s)||(this._reportStall(f),this.media)){var L=n.BufferHelper.bufferInfo(i,u,r.maxBufferHole);this._tryFixBufferStall(L,T)}}else this.stalled=w}}}else if(this.moved=!0,null!==a){if(this.stallReported){var S=self.performance.now()-a;o.logger.warn("playback not stuck anymore @"+u+", after "+Math.round(S)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}}},t._tryFixBufferStall=function(e,t){var r=this.config,n=this.fragmentTracker,i=this.media;if(null!==i){var a=i.currentTime,s=n.getPartialFragment(a);if(s&&(this._trySkipBufferHole(s)||!this.media))return;e.len>r.maxBufferHole&&t>1e3*r.highBufferWatchdogPeriod&&(o.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}},t._reportStall=function(e){var t=this.hls,r=this.media;!this.stallReported&&r&&(this.stallReported=!0,o.logger.warn("Playback stalling at @"+r.currentTime+" due to low buffer ("+JSON.stringify(e)+")"),t.trigger(a.Events.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:e.len}))},t._trySkipBufferHole=function(e){var t=this.config,r=this.hls,s=this.media;if(null===s)return 0;for(var l=s.currentTime,d=0,h=n.BufferHelper.getBuffered(s),f=0;f<h.length;f++){var p=h.start(f);if(l+t.maxBufferHole>=d&&l<p){var m=Math.max(p+c,s.currentTime+u);return o.logger.warn("skipping hole, adjusting currentTime from "+l+" to "+m),this.moved=!0,this.stalled=null,s.currentTime=m,e&&r.trigger(a.Events.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+l+" to "+m,frag:e}),m}d=h.end(f)}return 0},t._tryNudgeBuffer=function(){var e=this.config,t=this.hls,r=this.media,n=this.nudgeRetry;if(null!==r){var s=r.currentTime;if(this.nudgeRetry++,n<e.nudgeMaxRetry){var l=s+(n+1)*e.nudgeOffset;o.logger.warn("Nudging 'currentTime' from "+s+" to "+l),r.currentTime=l,t.trigger(a.Events.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else o.logger.error("Playhead still not moving while enough data buffered @"+s+" after "+e.nudgeMaxRetry+" nudges"),t.trigger(a.Events.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})}},e}()},"./src/controller/id3-track-controller.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r("./src/polyfills/number.ts"),i=r("./src/events.ts"),a=r("./src/utils/texttrack-utils.ts"),o=r("./src/demux/id3.ts"),s=r("./src/loader/date-range.ts"),l=r("./src/types/demuxer.ts");function u(){return self.WebKitDataCue||self.VTTCue||self.TextTrackCue}var c=function(){var e=u();try{new e(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY}();function d(e,t){return e.getTime()/1e3-t}const h=function(){function e(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=e,this._registerListeners()}var t=e.prototype;return t.destroy=function(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null},t._registerListeners=function(){var e=this.hls;e.on(i.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(i.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(i.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.on(i.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(i.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(i.Events.LEVEL_UPDATED,this.onLevelUpdated,this)},t._unregisterListeners=function(){var e=this.hls;e.off(i.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(i.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(i.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.off(i.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(i.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(i.Events.LEVEL_UPDATED,this.onLevelUpdated,this)},t.onMediaAttached=function(e,t){this.media=t.media},t.onMediaDetaching=function(){this.id3Track&&((0,a.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={})},t.onManifestLoading=function(){this.dateRangeCuesAppended={}},t.createTrack=function(e){var t=this.getID3Track(e.textTracks);return t.mode="hidden",t},t.getID3Track=function(e){if(this.media){for(var t=0;t<e.length;t++){var r=e[t];if("metadata"===r.kind&&"id3"===r.label)return(0,a.sendAddTrackEvent)(r,this.media),r}return this.media.addTextTrack("metadata","id3")}},t.onFragParsingMetadata=function(e,t){if(this.media){var r=this.hls.config,n=r.enableEmsgMetadataCues,i=r.enableID3MetadataCues;if(n||i){var a=t.samples;this.id3Track||(this.id3Track=this.createTrack(this.media));for(var s=u(),d=0;d<a.length;d++){var h=a[d].type;if((h!==l.MetadataSchema.emsg||n)&&i){var f=o.getID3Frames(a[d].data);if(f){var p=a[d].pts,m=p+a[d].duration;m>c&&(m=c),m-p<=0&&(m=p+.25);for(var g=0;g<f.length;g++){var v=f[g];if(!o.isTimeStampFrame(v)){this.updateId3CueEnds(p);var y=new s(p,m,"");y.value=v,h&&(y.type=h),this.id3Track.addCue(y)}}}}}}}},t.updateId3CueEnds=function(e){var t,r=null===(t=this.id3Track)||void 0===t?void 0:t.cues;if(r)for(var n=r.length;n--;){var i=r[n];i.startTime<e&&i.endTime===c&&(i.endTime=e)}},t.onBufferFlushing=function(e,t){var r=t.startOffset,n=t.endOffset,i=t.type,o=this.id3Track,s=this.hls;if(s){var u,c=s.config,d=c.enableEmsgMetadataCues,h=c.enableID3MetadataCues;o&&(d||h)&&(u="audio"===i?function(e){return e.type===l.MetadataSchema.audioId3&&h}:"video"===i?function(e){return e.type===l.MetadataSchema.emsg&&d}:function(e){return e.type===l.MetadataSchema.audioId3&&h||e.type===l.MetadataSchema.emsg&&d},(0,a.removeCuesInRange)(o,r,n,u))}},t.onLevelUpdated=function(e,t){var r=this,i=t.details;if(this.media&&i.hasProgramDateTime&&this.hls.config.enableDateRangeMetadataCues){var a=this.dateRangeCuesAppended,o=this.id3Track,h=i.dateRanges,f=Object.keys(h);if(o)for(var p=Object.keys(a).filter((function(e){return!f.includes(e)})),m=function(e){var t=p[e];Object.keys(a[t].cues).forEach((function(e){o.removeCue(a[t].cues[e])})),delete a[t]},g=p.length;g--;)m(g);var v=i.fragments[i.fragments.length-1];if(0!==f.length&&(0,n.isFiniteNumber)(null==v?void 0:v.programDateTime)){this.id3Track||(this.id3Track=this.createTrack(this.media));for(var y=v.programDateTime/1e3-v.start,_=u(),b=function(e){var t=f[e],n=h[t],i=a[t],o=(null==i?void 0:i.cues)||{},u=(null==i?void 0:i.durationKnown)||!1,p=d(n.startDate,y),m=c,g=n.endDate;if(g)m=d(g,y),u=!0;else if(n.endOnNext&&!u){var v=f.reduce((function(e,t){var r=h[t];return r.class===n.class&&r.id!==t&&r.startDate>n.startDate&&e.push(r),e}),[]).sort((function(e,t){return e.startDate.getTime()-t.startDate.getTime()}))[0];v&&(m=d(v.startDate,y),u=!0)}for(var b,M=Object.keys(n.attr),w=0;w<M.length;w++){var T=M[w];if(T!==s.DateRangeAttribute.ID&&T!==s.DateRangeAttribute.CLASS&&T!==s.DateRangeAttribute.START_DATE&&T!==s.DateRangeAttribute.DURATION&&T!==s.DateRangeAttribute.END_DATE&&T!==s.DateRangeAttribute.END_ON_NEXT){var L=o[T];if(L)u&&!i.durationKnown&&(L.endTime=m);else{var S=n.attr[T];L=new _(p,m,""),T!==s.DateRangeAttribute.SCTE35_OUT&&T!==s.DateRangeAttribute.SCTE35_IN||(b=S,S=Uint8Array.from(b.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer),L.value={key:T,data:S},L.type=l.MetadataSchema.dateRange,r.id3Track.addCue(L),o[T]=L}}}a[t]={cues:o,dateRange:n,durationKnown:u}},M=0;M<f.length;M++)b(M)}}},e}()},"./src/controller/latency-controller.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r("./src/errors.ts"),i=r("./src/events.ts"),a=r("./src/utils/logger.ts");function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i)),n)}var i}var s=function(){function e(e){var t=this;this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return t.timeupdate()},this.hls=e,this.config=e.config,this.registerListeners()}var t,r,s=e.prototype;return s.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},s.registerListeners=function(){this.hls.on(i.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(i.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(i.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(i.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(i.Events.ERROR,this.onError,this)},s.unregisterListeners=function(){this.hls.off(i.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(i.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(i.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(i.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(i.Events.ERROR,this.onError)},s.onMediaAttached=function(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},s.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},s.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},s.onLevelUpdated=function(e,t){var r=t.details;this.levelDetails=r,r.advanced&&this.timeupdate(),!r.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},s.onError=function(e,t){t.details===n.ErrorDetails.BUFFER_STALLED_ERROR&&(this.stallCount++,a.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))},s.timeupdate=function(){var e=this.media,t=this.levelDetails;if(e&&t){this.currentTime=e.currentTime;var r=this.computeLatency();if(null!==r){this._latency=r;var n=this.config,i=n.lowLatencyMode,a=n.maxLiveSyncPlaybackRate;if(i&&1!==a){var o=this.targetLatency;if(null!==o){var s=r-o,l=s<Math.min(this.maxLatency,o+t.targetduration);if(t.live&&l&&s>.05&&this.forwardBufferLength>1){var u=Math.min(2,Math.max(1,a)),c=Math.round(2/(1+Math.exp(-.75*s-this.edgeStalled))*20)/20;e.playbackRate=Math.min(u,Math.max(1,c))}else 1!==e.playbackRate&&0!==e.playbackRate&&(e.playbackRate=1)}}}}},s.estimateLiveEdge=function(){var e=this.levelDetails;return null===e?null:e.edge+e.age},s.computeLatency=function(){var e=this.estimateLiveEdge();return null===e?null:e-this.currentTime},t=e,(r=[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var e=this.config,t=this.levelDetails;return void 0!==e.liveMaxLatencyDuration?e.liveMaxLatencyDuration:t?e.liveMaxLatencyDurationCount*t.targetduration:0}},{key:"targetLatency",get:function(){var e=this.levelDetails;if(null===e)return null;var t=e.holdBack,r=e.partHoldBack,n=e.targetduration,i=this.config,a=i.liveSyncDuration,o=i.liveSyncDurationCount,s=i.lowLatencyMode,l=this.hls.userConfig,u=s&&r||t;(l.liveSyncDuration||l.liveSyncDurationCount||0===u)&&(u=void 0!==a?a:o*n);var c=n;return u+Math.min(1*this.stallCount,c)}},{key:"liveSyncPosition",get:function(){var e=this.estimateLiveEdge(),t=this.targetLatency,r=this.levelDetails;if(null===e||null===t||null===r)return null;var n=r.edge,i=e-t-this.edgeStalled,a=n-r.totalduration,o=n-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(a,i),o)}},{key:"drift",get:function(){var e=this.levelDetails;return null===e?1:e.drift}},{key:"edgeStalled",get:function(){var e=this.levelDetails;if(null===e)return 0;var t=3*(this.config.lowLatencyMode&&e.partTarget||e.targetduration);return Math.max(e.age-t,0)}},{key:"forwardBufferLength",get:function(){var e=this.media,t=this.levelDetails;if(!e||!t)return 0;var r=e.buffered.length;return(r?e.buffered.end(r-1):t.edge)-this.currentTime}}])&&o(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},"./src/controller/level-controller.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r("./src/types/level.ts"),i=r("./src/events.ts"),a=r("./src/errors.ts"),o=r("./src/utils/codecs.ts"),s=r("./src/controller/level-helper.ts"),l=r("./src/controller/base-playlist-controller.ts"),u=r("./src/types/loader.ts");function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i)),n)}var i}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var f=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),p=function(e){var t,r;function l(t){var r;return(r=e.call(this,t,"[level-controller]")||this)._levels=[],r._firstLevel=-1,r._startLevel=void 0,r.currentLevelIndex=-1,r.manualLevelIndex=-1,r.onParsedComplete=void 0,r._registerListeners(),r}r=e,(t=l).prototype=Object.create(r.prototype),t.prototype.constructor=t,h(t,r);var p,m,g=l.prototype;return g._registerListeners=function(){var e=this.hls;e.on(i.Events.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(i.Events.LEVEL_LOADED,this.onLevelLoaded,this),e.on(i.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(i.Events.FRAG_LOADED,this.onFragLoaded,this),e.on(i.Events.ERROR,this.onError,this)},g._unregisterListeners=function(){var e=this.hls;e.off(i.Events.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(i.Events.LEVEL_LOADED,this.onLevelLoaded,this),e.off(i.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(i.Events.FRAG_LOADED,this.onFragLoaded,this),e.off(i.Events.ERROR,this.onError,this)},g.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,e.prototype.destroy.call(this)},g.startLoad=function(){this._levels.forEach((function(e){e.loadError=0})),e.prototype.startLoad.call(this)},g.onManifestLoaded=function(e,t){var r,l,u=[],c=[],d=[],h={},p=!1,m=!1,g=!1;if(t.levels.forEach((function(e){var t=e.attrs;p=p||!(!e.width||!e.height),m=m||!!e.videoCodec,g=g||!!e.audioCodec,f&&e.audioCodec&&-1!==e.audioCodec.indexOf("mp4a.40.34")&&(e.audioCodec=void 0);var r=e.bitrate+"-"+e.attrs.RESOLUTION+"-"+e.attrs.CODECS;(l=h[r])?l.url.push(e.url):(l=new n.Level(e),h[r]=l,u.push(l)),t&&(t.AUDIO&&(0,s.addGroupId)(l,"audio",t.AUDIO),t.SUBTITLES&&(0,s.addGroupId)(l,"text",t.SUBTITLES))})),(p||m)&&g&&(u=u.filter((function(e){var t=e.videoCodec,r=e.width,n=e.height;return!!t||!(!r||!n)}))),u=u.filter((function(e){var t=e.audioCodec,r=e.videoCodec;return(!t||(0,o.isCodecSupportedInMp4)(t,"audio"))&&(!r||(0,o.isCodecSupportedInMp4)(r,"video"))})),t.audioTracks&&(c=t.audioTracks.filter((function(e){return!e.audioCodec||(0,o.isCodecSupportedInMp4)(e.audioCodec,"audio")})),(0,s.assignTrackIdsByGroup)(c)),t.subtitles&&(d=t.subtitles,(0,s.assignTrackIdsByGroup)(d)),u.length>0){r=u[0].bitrate,u.sort((function(e,t){return e.attrs["HDCP-LEVEL"]!==t.attrs["HDCP-LEVEL"]?(e.attrs["HDCP-LEVEL"]||"")>(t.attrs["HDCP-LEVEL"]||"")?1:-1:e.bitrate!==t.bitrate?e.bitrate-t.bitrate:e.attrs.SCORE!==t.attrs.SCORE?e.attrs.decimalFloatingPoint("SCORE")-t.attrs.decimalFloatingPoint("SCORE"):p&&e.height!==t.height?e.height-t.height:0})),this._levels=u;for(var v=0;v<u.length;v++)if(u[v].bitrate===r){this._firstLevel=v,this.log("manifest loaded, "+u.length+" level(s) found, first bitrate: "+r);break}var y=g&&!m,_={levels:u,audioTracks:c,subtitleTracks:d,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:g,video:m,altAudio:!y&&c.some((function(e){return!!e.url}))};this.hls.trigger(i.Events.MANIFEST_PARSED,_),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(i.Events.ERROR,{type:a.ErrorTypes.MEDIA_ERROR,details:a.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,reason:"no level with compatible codecs found in manifest"})},g.onError=function(t,r){var i,o;if(e.prototype.onError.call(this,t,r),!r.fatal){var s=r.context,l=this._levels[this.currentLevelIndex];if(s&&(s.type===u.PlaylistContextType.AUDIO_TRACK&&l.audioGroupIds&&s.groupId===l.audioGroupIds[l.urlId]||s.type===u.PlaylistContextType.SUBTITLE_TRACK&&l.textGroupIds&&s.groupId===l.textGroupIds[l.urlId]))this.redundantFailover(this.currentLevelIndex);else{var c,d=!1,h=!0;switch(r.details){case a.ErrorDetails.FRAG_LOAD_ERROR:case a.ErrorDetails.FRAG_LOAD_TIMEOUT:case a.ErrorDetails.KEY_LOAD_ERROR:case a.ErrorDetails.KEY_LOAD_TIMEOUT:if(r.frag){var f=r.frag.type===u.PlaylistLevelType.MAIN?r.frag.level:this.currentLevelIndex,p=this._levels[f];p?(p.fragmentError++,p.fragmentError>this.hls.config.fragLoadingMaxRetry&&(c=f)):c=f}break;case a.ErrorDetails.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:var m=l.attrs["HDCP-LEVEL"];m&&(this.hls.maxHdcpLevel=n.HdcpLevels[n.HdcpLevels.indexOf(m)-1],this.warn('Restricting playback to HDCP-LEVEL of "'+this.hls.maxHdcpLevel+'" or lower'));case a.ErrorDetails.FRAG_PARSING_ERROR:case a.ErrorDetails.KEY_SYSTEM_NO_SESSION:c=(null===(i=r.frag)||void 0===i?void 0:i.type)===u.PlaylistLevelType.MAIN?r.frag.level:this.currentLevelIndex,r.levelRetry=!1;break;case a.ErrorDetails.LEVEL_LOAD_ERROR:case a.ErrorDetails.LEVEL_LOAD_TIMEOUT:s&&(s.deliveryDirectives&&(h=!1),c=s.level),d=!0;break;case a.ErrorDetails.REMUX_ALLOC_ERROR:c=null!=(o=r.level)?o:this.currentLevelIndex,d=!0}void 0!==c&&this.recoverLevel(r,c,d,h)}}},g.recoverLevel=function(e,t,r,n){var i=e.details,a=this._levels[t];if(a.loadError++,r){if(!this.retryLoadingOrFail(e))return void(this.currentLevelIndex=-1);e.levelRetry=!0}if(n){var o=a.url.length;if(o>1&&a.loadError<o)e.levelRetry=!0,this.redundantFailover(t);else if(-1===this.manualLevelIndex){for(var s=-1,l=this._levels,u=l.length;u--;){var c=(u+this.currentLevelIndex)%l.length;if(c!==this.currentLevelIndex&&0===l[c].loadError){s=c;break}}s>-1&&this.currentLevelIndex!==s?(this.warn(i+": switch to "+s),e.levelRetry=!0,this.hls.nextAutoLevel=s):!1===e.levelRetry&&(e.fatal=!0)}}},g.redundantFailover=function(e){var t=this._levels[e],r=t.url.length;if(r>1){var n=(t.urlId+1)%r;this.warn("Switching to redundant URL-id "+n),this._levels.forEach((function(e){e.urlId=n})),this.level=e}},g.onFragLoaded=function(e,t){var r=t.frag;if(void 0!==r&&r.type===u.PlaylistLevelType.MAIN){var n=this._levels[r.level];void 0!==n&&(n.fragmentError=0,n.loadError=0)}},g.onLevelLoaded=function(e,t){var r,n,i=t.level,a=t.details,o=this._levels[i];if(!o)return this.warn("Invalid level index "+i),void(null!==(n=t.deliveryDirectives)&&void 0!==n&&n.skip&&(a.deltaUpdateFailed=!0));i===this.currentLevelIndex?(0===o.fragmentError&&(o.loadError=0,this.retryCount=0),this.playlistLoaded(i,t,o.details)):null!==(r=t.deliveryDirectives)&&void 0!==r&&r.skip&&(a.deltaUpdateFailed=!0)},g.onAudioTrackSwitched=function(e,t){var r=this.hls.levels[this.currentLevelIndex];if(r&&r.audioGroupIds){for(var n=-1,i=this.hls.audioTracks[t.id].groupId,a=0;a<r.audioGroupIds.length;a++)if(r.audioGroupIds[a]===i){n=a;break}n!==r.urlId&&(r.urlId=n,this.startLoad())}},g.loadPlaylist=function(t){e.prototype.loadPlaylist.call(this);var r=this.currentLevelIndex,n=this._levels[r];if(this.canLoad&&n&&n.url.length>0){var a=n.urlId,o=n.url[a];if(t)try{o=t.addDirectives(o)}catch(e){this.warn("Could not construct new URL with HLS Delivery Directives: "+e)}this.log("Attempt loading level index "+r+(t?" at sn "+t.msn+" part "+t.part:"")+" with URL-id "+a+" "+o),this.clearTimer(),this.hls.trigger(i.Events.LEVEL_LOADING,{url:o,level:r,id:a,deliveryDirectives:t||null})}},g.removeLevel=function(e,t){var r=function(e,r){return r!==t},n=this._levels.filter((function(n,i){return i!==e||n.url.length>1&&void 0!==t&&(n.url=n.url.filter(r),n.audioGroupIds&&(n.audioGroupIds=n.audioGroupIds.filter(r)),n.textGroupIds&&(n.textGroupIds=n.textGroupIds.filter(r)),n.urlId=0,!0)})).map((function(e,t){var r=e.details;return null!=r&&r.fragments&&r.fragments.forEach((function(e){e.level=t})),e}));this._levels=n,this.hls.trigger(i.Events.LEVELS_UPDATED,{levels:n})},p=l,(m=[{key:"levels",get:function(){return 0===this._levels.length?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(e){var t,r=this._levels;if(0!==r.length&&(this.currentLevelIndex!==e||null===(t=r[e])||void 0===t||!t.details)){if(e<0||e>=r.length){var n=e<0;if(this.hls.trigger(i.Events.ERROR,{type:a.ErrorTypes.OTHER_ERROR,details:a.ErrorDetails.LEVEL_SWITCH_ERROR,level:e,fatal:n,reason:"invalid level idx"}),n)return;e=Math.min(e,r.length-1)}this.clearTimer();var o=this.currentLevelIndex,s=r[o],l=r[e];this.log("switching to level "+e+" from "+o),this.currentLevelIndex=e;var u=c({},l,{level:e,maxBitrate:l.maxBitrate,uri:l.uri,urlId:l.urlId});delete u._urlId,this.hls.trigger(i.Events.LEVEL_SWITCHING,u);var d=l.details;if(!d||d.live){var h=this.switchParams(l.uri,null==s?void 0:s.details);this.loadPlaylist(h)}}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(e){this.manualLevelIndex=e,void 0===this._startLevel&&(this._startLevel=e),-1!==e&&(this.level=e)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(e){this._firstLevel=e}},{key:"startLevel",get:function(){if(void 0===this._startLevel){var e=this.hls.config.startLevel;return void 0!==e?e:this._firstLevel}return this._startLevel},set:function(e){this._startLevel=e}},{key:"nextLoadLevel",get:function(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(e){this.level=e,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=e)}}])&&d(p.prototype,m),Object.defineProperty(p,"prototype",{writable:!1}),l}(l.default)},"./src/controller/level-helper.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{addGroupId:()=>s,addSliding:()=>g,adjustSliding:()=>m,assignTrackIdsByGroup:()=>l,computeReloadInterval:()=>v,getFragmentWithSN:()=>y,getPartWith:()=>_,mapFragmentIntersection:()=>p,mapPartIntersection:()=>f,mergeDetails:()=>h,updateFragPTSDTS:()=>d,updatePTS:()=>u});var n=r("./src/polyfills/number.ts"),i=r("./src/utils/logger.ts"),a=r("./src/loader/date-range.ts");function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}function s(e,t,r){switch(t){case"audio":e.audioGroupIds||(e.audioGroupIds=[]),e.audioGroupIds.push(r);break;case"text":e.textGroupIds||(e.textGroupIds=[]),e.textGroupIds.push(r)}}function l(e){var t={};e.forEach((function(e){var r=e.groupId||"";e.id=t[r]=t[r]||0,t[r]++}))}function u(e,t,r){c(e[t],e[r])}function c(e,t){var r=t.startPTS;if((0,n.isFiniteNumber)(r)){var i,a=0;t.sn>e.sn?(a=r-e.start,i=e):(a=e.start-r,i=t),i.duration!==a&&(i.duration=a)}else t.sn>e.sn?e.cc===t.cc&&e.minEndPTS?t.start=e.start+(e.minEndPTS-e.start):t.start=e.start+e.duration:t.start=Math.max(e.start-t.duration,0)}function d(e,t,r,a,o,s){a-r<=0&&(i.logger.warn("Fragment should have a positive duration",t),a=r+t.duration,s=o+t.duration);var l=r,u=a,d=t.startPTS,h=t.endPTS;if((0,n.isFiniteNumber)(d)){var f=Math.abs(d-r);(0,n.isFiniteNumber)(t.deltaPTS)?t.deltaPTS=Math.max(f,t.deltaPTS):t.deltaPTS=f,l=Math.max(r,d),r=Math.min(r,d),o=Math.min(o,t.startDTS),u=Math.min(a,h),a=Math.max(a,h),s=Math.max(s,t.endDTS)}t.duration=a-r;var p=r-t.start;t.start=t.startPTS=r,t.maxStartPTS=l,t.startDTS=o,t.endPTS=a,t.minEndPTS=u,t.endDTS=s;var m,g=t.sn;if(!e||g<e.startSN||g>e.endSN)return 0;var v=g-e.startSN,y=e.fragments;for(y[v]=t,m=v;m>0;m--)c(y[m],y[m-1]);for(m=v;m<y.length-1;m++)c(y[m],y[m+1]);return e.fragmentHint&&c(y[y.length-1],e.fragmentHint),e.PTSKnown=e.alignedSliding=!0,p}function h(e,t){for(var r=null,s=e.fragments,l=s.length-1;l>=0;l--){var u=s[l].initSegment;if(u){r=u;break}}e.fragmentHint&&delete e.fragmentHint.endPTS;var c,h,g,v,y,_=0;if(p(e,t,(function(e,i){e.relurl&&(_=e.cc-i.cc),(0,n.isFiniteNumber)(e.startPTS)&&(0,n.isFiniteNumber)(e.endPTS)&&(i.start=i.startPTS=e.startPTS,i.startDTS=e.startDTS,i.appendedPTS=e.appendedPTS,i.maxStartPTS=e.maxStartPTS,i.endPTS=e.endPTS,i.endDTS=e.endDTS,i.minEndPTS=e.minEndPTS,i.duration=e.endPTS-e.startPTS,i.duration&&(c=i),t.PTSKnown=t.alignedSliding=!0),i.elementaryStreams=e.elementaryStreams,i.loader=e.loader,i.stats=e.stats,i.urlId=e.urlId,e.initSegment&&(i.initSegment=e.initSegment,r=e.initSegment)})),r&&(t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments).forEach((function(e){var t;e.initSegment&&e.initSegment.relurl!==(null===(t=r)||void 0===t?void 0:t.relurl)||(e.initSegment=r)})),t.skippedSegments)if(t.deltaUpdateFailed=t.fragments.some((function(e){return!e})),t.deltaUpdateFailed){i.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var b=t.skippedSegments;b--;)t.fragments.shift();t.startSN=t.fragments[0].sn,t.startCC=t.fragments[0].cc}else t.canSkipDateRanges&&(t.dateRanges=(h=e.dateRanges,g=t.dateRanges,v=t.recentlyRemovedDateranges,y=o({},h),v&&v.forEach((function(e){delete y[e]})),Object.keys(g).forEach((function(e){var t=new a.DateRange(g[e].attr,y[e]);t.isValid?y[e]=t:i.logger.warn('Ignoring invalid Playlist Delta Update DATERANGE tag: "'+JSON.stringify(g[e].attr)+'"')})),y));var M=t.fragments;if(_){i.logger.warn("discontinuity sliding from playlist, take drift into account");for(var w=0;w<M.length;w++)M[w].cc+=_}t.skippedSegments&&(t.startCC=t.fragments[0].cc),f(e.partList,t.partList,(function(e,t){t.elementaryStreams=e.elementaryStreams,t.stats=e.stats})),c?d(t,c,c.startPTS,c.endPTS,c.startDTS,c.endDTS):m(e,t),M.length&&(t.totalduration=t.edge-M[0].start),t.driftStartTime=e.driftStartTime,t.driftStart=e.driftStart;var T=t.advancedDateTime;if(t.advanced&&T){var L=t.edge;t.driftStart||(t.driftStartTime=T,t.driftStart=L),t.driftEndTime=T,t.driftEnd=L}else t.driftEndTime=e.driftEndTime,t.driftEnd=e.driftEnd,t.advancedDateTime=e.advancedDateTime}function f(e,t,r){if(e&&t)for(var n=0,i=0,a=e.length;i<=a;i++){var o=e[i],s=t[i+n];o&&s&&o.index===s.index&&o.fragment.sn===s.fragment.sn?r(o,s):n--}}function p(e,t,r){for(var n=t.skippedSegments,i=Math.max(e.startSN,t.startSN)-t.startSN,a=(e.fragmentHint?1:0)+(n?t.endSN:Math.min(e.endSN,t.endSN))-t.startSN,o=t.startSN-e.startSN,s=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,l=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,u=i;u<=a;u++){var c=l[o+u],d=s[u];n&&!d&&u<n&&(d=t.fragments[u]=c),c&&d&&r(c,d)}}function m(e,t){var r=t.startSN+t.skippedSegments-e.startSN,n=e.fragments;r<0||r>=n.length||g(t,n[r].start)}function g(e,t){if(t){for(var r=e.fragments,n=e.skippedSegments;n<r.length;n++)r[n].start+=t;e.fragmentHint&&(e.fragmentHint.start+=t)}}function v(e,t){void 0===t&&(t=1/0);var r=1e3*e.targetduration;if(e.updated){var n=e.fragments;if(n.length&&4*r>t){var i=1e3*n[n.length-1].duration;i<r&&(r=i)}}else r/=2;return Math.round(r)}function y(e,t,r){if(!e||!e.details)return null;var n=e.details,i=n.fragments[t-n.startSN];return i||((i=n.fragmentHint)&&i.sn===t?i:t<n.startSN&&r&&r.sn===t?r:null)}function _(e,t,r){if(!e||!e.details)return null;var n=e.details.partList;if(n)for(var i=n.length;i--;){var a=n[i];if(a.index===r&&a.fragment.sn===t)return a}return null}},"./src/controller/stream-controller.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r("./src/polyfills/number.ts"),i=r("./src/controller/base-stream-controller.ts"),a=r("./src/is-supported.ts"),o=r("./src/events.ts"),s=r("./src/utils/buffer-helper.ts"),l=r("./src/controller/fragment-tracker.ts"),u=r("./src/types/loader.ts"),c=r("./src/loader/fragment.ts"),d=r("./src/demux/transmuxer-interface.ts"),h=r("./src/types/transmuxer.ts"),f=r("./src/controller/gap-controller.ts"),p=r("./src/errors.ts");function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i)),n)}var i}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}var v=function(e){var t,r;function v(t,r,n){var i;return(i=e.call(this,t,r,n,"[stream-controller]")||this).audioCodecSwap=!1,i.gapController=null,i.level=-1,i._forceStartLoad=!1,i.altAudio=!1,i.audioOnly=!1,i.fragPlaying=null,i.onvplaying=null,i.onvseeked=null,i.fragLastKbps=0,i.couldBacktrack=!1,i.backtrackFragment=null,i.audioCodecSwitch=!1,i.videoBuffer=null,i._registerListeners(),i}r=e,(t=v).prototype=Object.create(r.prototype),t.prototype.constructor=t,g(t,r);var y,_,b=v.prototype;return b._registerListeners=function(){var e=this.hls;e.on(o.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.on(o.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.on(o.Events.LEVEL_LOADING,this.onLevelLoading,this),e.on(o.Events.LEVEL_LOADED,this.onLevelLoaded,this),e.on(o.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(o.Events.ERROR,this.onError,this),e.on(o.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(o.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(o.Events.BUFFER_CREATED,this.onBufferCreated,this),e.on(o.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(o.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(o.Events.FRAG_BUFFERED,this.onFragBuffered,this)},b._unregisterListeners=function(){var e=this.hls;e.off(o.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.off(o.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.off(o.Events.LEVEL_LOADED,this.onLevelLoaded,this),e.off(o.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(o.Events.ERROR,this.onError,this),e.off(o.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(o.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(o.Events.BUFFER_CREATED,this.onBufferCreated,this),e.off(o.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(o.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(o.Events.FRAG_BUFFERED,this.onFragBuffered,this)},b.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},b.startLoad=function(e){if(this.levels){var t=this.lastCurrentTime,r=this.hls;if(this.stopLoad(),this.setInterval(100),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var n=r.startLevel;-1===n&&(r.config.testBandwidth&&this.levels.length>1?(n=0,this.bitrateTest=!0):n=r.nextAutoLevel),this.level=r.nextLoadLevel=n,this.loadedmetadata=!1}t>0&&-1===e&&(this.log("Override startPosition with lastCurrentTime @"+t.toFixed(3)),e=t),this.state=i.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}else this._forceStartLoad=!0,this.state=i.State.STOPPED},b.stopLoad=function(){this._forceStartLoad=!1,e.prototype.stopLoad.call(this)},b.doTick=function(){switch(this.state){case i.State.IDLE:this.doTickIdle();break;case i.State.WAITING_LEVEL:var e,t=this.levels,r=this.level,n=null==t||null===(e=t[r])||void 0===e?void 0:e.details;if(n&&(!n.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(n))break;this.state=i.State.IDLE;break}break;case i.State.FRAG_LOADING_WAITING_RETRY:var a,o=self.performance.now(),s=this.retryDate;(!s||o>=s||null!==(a=this.media)&&void 0!==a&&a.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded(this.level),this.state=i.State.IDLE)}this.onTickEnd()},b.onTickEnd=function(){e.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},b.doTickIdle=function(){var e=this.hls,t=this.levelLastLoaded,r=this.levels,n=this.media,a=e.config,s=e.nextLoadLevel;if(null!==t&&(n||!this.startFragRequested&&a.startFragPrefetch)&&(!this.altAudio||!this.audioOnly)&&r&&r[s]){var d=r[s],h=this.getMainFwdBufferInfo();if(null!==h){var f=this.getLevelDetails();if(f&&this._streamEnded(h,f)){var p={};return this.altAudio&&(p.type="video"),this.hls.trigger(o.Events.BUFFER_EOS,p),void(this.state=i.State.ENDED)}this.level=e.nextLoadLevel=s;var m=d.details;if(!m||this.state===i.State.WAITING_LEVEL||m.live&&this.levelLastLoaded!==s)return this.level=s,void(this.state=i.State.WAITING_LEVEL);if(!(h.len>=this.getMaxBufferLength(d.maxBitrate))){this.backtrackFragment&&this.backtrackFragment.start>h.end&&(this.backtrackFragment=null);var g=this.backtrackFragment?this.backtrackFragment.start:h.end,v=this.getNextFragment(g,m);if(this.couldBacktrack&&!this.fragPrevious&&v&&"initSegment"!==v.sn&&this.fragmentTracker.getState(v)!==l.FragmentState.OK){var y,_=(null!=(y=this.backtrackFragment)?y:v).sn-m.startSN,b=m.fragments[_-1];b&&v.cc===b.cc&&(v=b,this.fragmentTracker.removeFragment(b))}else this.backtrackFragment&&h.len&&(this.backtrackFragment=null);if(v&&this.fragmentTracker.getState(v)===l.FragmentState.OK&&this.nextLoadPosition>g){var M=this.audioOnly&&!this.altAudio?c.ElementaryStreamTypes.AUDIO:c.ElementaryStreamTypes.VIDEO,w=(M===c.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;w&&this.afterBufferFlushed(w,M,u.PlaylistLevelType.MAIN),v=this.getNextFragment(this.nextLoadPosition,m)}v&&(!v.initSegment||v.initSegment.data||this.bitrateTest||(v=v.initSegment),this.loadFragment(v,m,g))}}}},b.loadFragment=function(t,r,n){var i,a=this.fragmentTracker.getState(t);this.fragCurrent=t,a===l.FragmentState.NOT_LOADED?"initSegment"===t.sn?this._loadInitSegment(t,r):this.bitrateTest?(this.log("Fragment "+t.sn+" of level "+t.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(t,r)):(this.startFragRequested=!0,e.prototype.loadFragment.call(this,t,r,n)):a===l.FragmentState.APPENDING?this.reduceMaxBufferLength(t.duration)&&this.fragmentTracker.removeFragment(t):0===(null===(i=this.media)||void 0===i?void 0:i.buffered.length)&&this.fragmentTracker.removeAllFragments()},b.getAppendedFrag=function(e){var t=this.fragmentTracker.getAppendedFrag(e,u.PlaylistLevelType.MAIN);return t&&"fragment"in t?t.fragment:t},b.getBufferedFrag=function(e){return this.fragmentTracker.getBufferedFrag(e,u.PlaylistLevelType.MAIN)},b.followingBufferedFrag=function(e){return e?this.getBufferedFrag(e.end+.5):null},b.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},b.nextLevelSwitch=function(){var e=this.levels,t=this.media;if(null!=t&&t.readyState){var r,n=this.getAppendedFrag(t.currentTime);if(n&&n.start>1&&this.flushMainBuffer(0,n.start-1),!t.paused&&e){var i=e[this.hls.nextLoadLevel],a=this.fragLastKbps;r=a&&this.fragCurrent?this.fragCurrent.duration*i.maxBitrate/(1e3*a)+1:0}else r=0;var o=this.getBufferedFrag(t.currentTime+r);if(o){var s=this.followingBufferedFrag(o);if(s){this.abortCurrentFrag();var l=s.maxStartPTS?s.maxStartPTS:s.start,u=s.duration,c=Math.max(o.end,l+Math.min(Math.max(u-this.config.maxFragLookUpTolerance,.5*u),.75*u));this.flushMainBuffer(c,Number.POSITIVE_INFINITY)}}}},b.abortCurrentFrag=function(){var e=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,e&&e.abortRequests(),this.state){case i.State.KEY_LOADING:case i.State.FRAG_LOADING:case i.State.FRAG_LOADING_WAITING_RETRY:case i.State.PARSING:case i.State.PARSED:this.state=i.State.IDLE}this.nextLoadPosition=this.getLoadPosition()},b.flushMainBuffer=function(t,r){e.prototype.flushMainBuffer.call(this,t,r,this.altAudio?"video":null)},b.onMediaAttached=function(t,r){e.prototype.onMediaAttached.call(this,t,r);var n=r.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),n.addEventListener("playing",this.onvplaying),n.addEventListener("seeked",this.onvseeked),this.gapController=new f.default(this.config,n,this.fragmentTracker,this.hls)},b.onMediaDetaching=function(){var t=this.media;t&&this.onvplaying&&this.onvseeked&&(t.removeEventListener("playing",this.onvplaying),t.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),e.prototype.onMediaDetaching.call(this)},b.onMediaPlaying=function(){this.tick()},b.onMediaSeeked=function(){var e=this.media,t=e?e.currentTime:null;(0,n.isFiniteNumber)(t)&&this.log("Media seeked to "+t.toFixed(3)),this.tick()},b.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(o.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null,this.backtrackFragment=null},b.onManifestParsed=function(e,t){var r,n=!1,i=!1;t.levels.forEach((function(e){(r=e.audioCodec)&&(-1!==r.indexOf("mp4a.40.2")&&(n=!0),-1!==r.indexOf("mp4a.40.5")&&(i=!0))})),this.audioCodecSwitch=n&&i&&!(0,a.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1},b.onLevelLoading=function(e,t){var r=this.levels;if(r&&this.state===i.State.IDLE){var n=r[t.level];(!n.details||n.details.live&&this.levelLastLoaded!==t.level||this.waitForCdnTuneIn(n.details))&&(this.state=i.State.WAITING_LEVEL)}},b.onLevelLoaded=function(e,t){var r,n=this.levels,a=t.level,s=t.details,l=s.totalduration;if(n){this.log("Level "+a+" loaded ["+s.startSN+","+s.endSN+"], cc ["+s.startCC+", "+s.endCC+"] duration:"+l);var u=this.fragCurrent;!u||this.state!==i.State.FRAG_LOADING&&this.state!==i.State.FRAG_LOADING_WAITING_RETRY||u.level!==t.level&&u.loader&&(this.state=i.State.IDLE,this.backtrackFragment=null,u.abortRequests());var c=n[a],d=0;if(s.live||null!==(r=c.details)&&void 0!==r&&r.live){if(s.fragments[0]||(s.deltaUpdateFailed=!0),s.deltaUpdateFailed)return;d=this.alignPlaylists(s,c.details)}if(c.details=s,this.levelLastLoaded=a,this.hls.trigger(o.Events.LEVEL_UPDATED,{details:s,level:a}),this.state===i.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(s))return;this.state=i.State.IDLE}this.startFragRequested?s.live&&this.synchronizeToLiveEdge(s):this.setStartPosition(s,d),this.tick()}else this.warn("Levels were reset while loading level "+a)},b._handleFragmentLoadProgress=function(e){var t,r=e.frag,n=e.part,i=e.payload,a=this.levels;if(a){var o=a[r.level],s=o.details;if(s){var l=o.videoCodec,c=s.PTSKnown||!s.live,f=null===(t=r.initSegment)||void 0===t?void 0:t.data,p=this._getAudioCodec(o),m=this.transmuxer=this.transmuxer||new d.default(this.hls,u.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),g=n?n.index:-1,v=-1!==g,y=new h.ChunkMetadata(r.level,r.sn,r.stats.chunkCount,i.byteLength,g,v),_=this.initPTS[r.cc];m.push(i,f,p,l,r,n,s.totalduration,c,y,_)}else this.warn("Dropping fragment "+r.sn+" of level "+r.level+" after level details were reset")}else this.warn("Levels were reset while fragment load was in progress. Fragment "+r.sn+" of level "+r.level+" will not be buffered")},b.onAudioTrackSwitching=function(e,t){var r=this.altAudio,n=!!t.url,i=t.id;if(!n){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var a=this.fragCurrent;a&&(this.log("Switching to main audio track, cancel main fragment load"),a.abortRequests()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var s=this.hls;r&&s.trigger(o.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),s.trigger(o.Events.AUDIO_TRACK_SWITCHED,{id:i})}},b.onAudioTrackSwitched=function(e,t){var r=t.id,n=!!this.hls.audioTracks[r].url;if(n){var i=this.videoBuffer;i&&this.mediaBuffer!==i&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=i)}this.altAudio=n,this.tick()},b.onBufferCreated=function(e,t){var r,n,i=t.tracks,a=!1;for(var o in i){var s=i[o];if("main"===s.id){if(n=o,r=s,"video"===o){var l=i[o];l&&(this.videoBuffer=l.buffer)}}else a=!0}a&&r?(this.log("Alternate track found, use "+n+".buffered to schedule main fragment loading"),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media},b.onFragBuffered=function(e,t){var r=t.frag,n=t.part;if(!r||r.type===u.PlaylistLevelType.MAIN){if(this.fragContextChanged(r))return this.warn("Fragment "+r.sn+(n?" p: "+n.index:"")+" of level "+r.level+" finished buffering, but was aborted. state: "+this.state),void(this.state===i.State.PARSED&&(this.state=i.State.IDLE));var a=n?n.stats:r.stats;this.fragLastKbps=Math.round(8*a.total/(a.buffering.end-a.loading.first)),"initSegment"!==r.sn&&(this.fragPrevious=r),this.fragBufferedComplete(r,n)}},b.onError=function(e,t){if(t.type!==p.ErrorTypes.KEY_SYSTEM_ERROR)switch(t.details){case p.ErrorDetails.FRAG_LOAD_ERROR:case p.ErrorDetails.FRAG_LOAD_TIMEOUT:case p.ErrorDetails.FRAG_PARSING_ERROR:case p.ErrorDetails.KEY_LOAD_ERROR:case p.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(u.PlaylistLevelType.MAIN,t);break;case p.ErrorDetails.LEVEL_LOAD_ERROR:case p.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==i.State.ERROR&&(t.fatal?(this.warn(""+t.details),this.state=i.State.ERROR):t.levelRetry||this.state!==i.State.WAITING_LEVEL||(this.state=i.State.IDLE));break;case p.ErrorDetails.BUFFER_FULL_ERROR:if("main"===t.parent&&(this.state===i.State.PARSING||this.state===i.State.PARSED)){var r=!0,n=this.getFwdBufferInfo(this.media,u.PlaylistLevelType.MAIN);n&&n.len>.5&&(r=!this.reduceMaxBufferLength(n.len)),r&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}}else this.onFragmentOrKeyLoadError(u.PlaylistLevelType.MAIN,t)},b.checkBuffer=function(){var e=this.media,t=this.gapController;if(e&&t&&e.readyState){if(this.loadedmetadata||!s.BufferHelper.getBuffered(e).length){var r=this.state!==i.State.IDLE?this.fragCurrent:null;t.poll(this.lastCurrentTime,r)}this.lastCurrentTime=e.currentTime}},b.onFragLoadEmergencyAborted=function(){this.state=i.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},b.onBufferFlushed=function(e,t){var r=t.type;if(r!==c.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var n=(r===c.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(n,r,u.PlaylistLevelType.MAIN)}},b.onLevelsUpdated=function(e,t){this.levels=t.levels},b.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},b.seekToStartPos=function(){var e=this.media;if(e){var t=e.currentTime,r=this.startPosition;if(r>=0&&t<r){if(e.seeking)return void this.log("could not seek to "+r+", already seeking at "+t);var n=s.BufferHelper.getBuffered(e),i=(n.length?n.start(0):0)-r;i>0&&(i<this.config.maxBufferHole||i<this.config.maxFragLookUpTolerance)&&(this.log("adjusting start position by "+i+" to match buffer start"),r+=i,this.startPosition=r),this.log("seek to target start position "+r+" from current time "+t),e.currentTime=r}}},b._getAudioCodec=function(e){var t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t=-1!==t.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),t},b._loadBitrateTestFrag=function(e,t){var r=this;e.bitrateTest=!0,this._doFragLoad(e,t).then((function(t){var n=r.hls;if(t&&!n.nextLoadLevel&&!r.fragContextChanged(e)){r.fragLoadError=0,r.state=i.State.IDLE,r.startFragRequested=!1,r.bitrateTest=!1;var a=e.stats;a.parsing.start=a.parsing.end=a.buffering.start=a.buffering.end=self.performance.now(),n.trigger(o.Events.FRAG_LOADED,t),e.bitrateTest=!1}}))},b._handleTransmuxComplete=function(e){var t,r="main",a=this.hls,s=e.remuxResult,l=e.chunkMeta,u=this.getCurrentContext(l);if(!u)return this.warn("The loading context changed while buffering fragment "+l.sn+" of level "+l.level+". This chunk will not be buffered."),void this.resetStartWhenNotLoaded(l.level);var d=u.frag,h=u.part,f=u.level,p=s.video,m=s.text,g=s.id3,v=s.initSegment,y=f.details,_=this.altAudio?void 0:s.audio;if(!this.fragContextChanged(d)){if(this.state=i.State.PARSING,v){v.tracks&&(this._bufferInitSegment(f,v.tracks,d,l),a.trigger(o.Events.FRAG_PARSING_INIT_SEGMENT,{frag:d,id:r,tracks:v.tracks}));var b=v.initPTS,M=v.timescale;(0,n.isFiniteNumber)(b)&&(this.initPTS[d.cc]=b,a.trigger(o.Events.INIT_PTS_FOUND,{frag:d,id:r,initPTS:b,timescale:M}))}if(p&&!1!==s.independent){if(y){var w=p.startPTS,T=p.endPTS,L=p.startDTS,S=p.endDTS;if(h)h.elementaryStreams[p.type]={startPTS:w,endPTS:T,startDTS:L,endDTS:S};else if(p.firstKeyFrame&&p.independent&&1===l.id&&(this.couldBacktrack=!0),p.dropped&&p.independent){var k=this.getMainFwdBufferInfo();if((k?k.end:this.getLoadPosition())+this.config.maxBufferHole<(p.firstKeyFramePTS?p.firstKeyFramePTS:w)-this.config.maxBufferHole)return void this.backtrack(d);d.setElementaryStreamInfo(p.type,d.start,T,d.start,S,!0)}d.setElementaryStreamInfo(p.type,w,T,L,S),this.backtrackFragment&&(this.backtrackFragment=d),this.bufferFragmentData(p,d,h,l)}}else if(!1===s.independent)return void this.backtrack(d);if(_){var x=_.startPTS,E=_.endPTS,D=_.startDTS,A=_.endDTS;h&&(h.elementaryStreams[c.ElementaryStreamTypes.AUDIO]={startPTS:x,endPTS:E,startDTS:D,endDTS:A}),d.setElementaryStreamInfo(c.ElementaryStreamTypes.AUDIO,x,E,D,A),this.bufferFragmentData(_,d,h,l)}if(y&&null!=g&&null!==(t=g.samples)&&void 0!==t&&t.length){var O={id:r,frag:d,details:y,samples:g.samples};a.trigger(o.Events.FRAG_PARSING_METADATA,O)}if(y&&m){var P={id:r,frag:d,details:y,samples:m.samples};a.trigger(o.Events.FRAG_PARSING_USERDATA,P)}}},b._bufferInitSegment=function(e,t,r,n){var a=this;if(this.state===i.State.PARSING){this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&delete t.audio;var s=t.audio,l=t.video,u=t.audiovideo;if(s){var c=e.audioCodec,d=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(c&&(c=-1!==c.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),1!==s.metadata.channelCount&&-1===d.indexOf("firefox")&&(c="mp4a.40.5")),-1!==d.indexOf("android")&&"audio/mpeg"!==s.container&&(c="mp4a.40.2",this.log("Android: force audio codec to "+c)),e.audioCodec&&e.audioCodec!==c&&this.log('Swapping manifest audio codec "'+e.audioCodec+'" for "'+c+'"'),s.levelCodec=c,s.id="main",this.log("Init audio buffer, container:"+s.container+", codecs[selected/level/parsed]=["+(c||"")+"/"+(e.audioCodec||"")+"/"+s.codec+"]")}l&&(l.levelCodec=e.videoCodec,l.id="main",this.log("Init video buffer, container:"+l.container+", codecs[level/parsed]=["+(e.videoCodec||"")+"/"+l.codec+"]")),u&&this.log("Init audiovideo buffer, container:"+u.container+", codecs[level/parsed]=["+(e.attrs.CODECS||"")+"/"+u.codec+"]"),this.hls.trigger(o.Events.BUFFER_CODECS,t),Object.keys(t).forEach((function(e){var i=t[e].initSegment;null!=i&&i.byteLength&&a.hls.trigger(o.Events.BUFFER_APPENDING,{type:e,data:i,frag:r,part:null,chunkMeta:n,parent:r.type})})),this.tick()}},b.getMainFwdBufferInfo=function(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,u.PlaylistLevelType.MAIN)},b.backtrack=function(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=i.State.IDLE},b.checkFragmentChanged=function(){var e=this.media,t=null;if(e&&e.readyState>1&&!1===e.seeking){var r=e.currentTime;if(s.BufferHelper.isBuffered(e,r)?t=this.getAppendedFrag(r):s.BufferHelper.isBuffered(e,r+.1)&&(t=this.getAppendedFrag(r+.1)),t){this.backtrackFragment=null;var n=this.fragPlaying,i=t.level;n&&t.sn===n.sn&&n.level===i&&t.urlId===n.urlId||(this.fragPlaying=t,this.hls.trigger(o.Events.FRAG_CHANGED,{frag:t}),n&&n.level===i||this.hls.trigger(o.Events.LEVEL_SWITCHED,{level:i}))}}},y=v,(_=[{key:"nextLevel",get:function(){var e=this.nextBufferedFrag;return e?e.level:-1}},{key:"currentFrag",get:function(){var e=this.media;return e?this.fragPlaying||this.getAppendedFrag(e.currentTime):null}},{key:"currentProgramDateTime",get:function(){var e=this.media;if(e){var t=e.currentTime,r=this.currentFrag;if(r&&(0,n.isFiniteNumber)(t)&&(0,n.isFiniteNumber)(r.programDateTime)){var i=r.programDateTime+1e3*(t-r.start);return new Date(i)}}return null}},{key:"currentLevel",get:function(){var e=this.currentFrag;return e?e.level:-1}},{key:"nextBufferedFrag",get:function(){var e=this.currentFrag;return e?this.followingBufferedFrag(e):null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}])&&m(y.prototype,_),Object.defineProperty(y,"prototype",{writable:!1}),v}(i.default)},"./src/controller/subtitle-stream-controller.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{SubtitleStreamController:()=>m});var n=r("./src/events.ts"),a=r("./src/utils/buffer-helper.ts"),o=r("./src/controller/fragment-finders.ts"),s=r("./src/utils/discontinuities.ts"),l=r("./src/controller/level-helper.ts"),u=r("./src/controller/fragment-tracker.ts"),c=r("./src/controller/base-stream-controller.ts"),d=r("./src/types/loader.ts"),h=r("./src/types/level.ts");function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i)),n)}var i}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var m=function(e){var t,r;function m(t,r,n){var i;return(i=e.call(this,t,r,n,"[subtitle-stream-controller]")||this).levels=[],i.currentTrackId=-1,i.tracksBuffered=[],i.mainDetails=null,i._registerListeners(),i}r=e,(t=m).prototype=Object.create(r.prototype),t.prototype.constructor=t,p(t,r);var v,y,_=m.prototype;return _.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},_._registerListeners=function(){var e=this.hls;e.on(n.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(n.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(n.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.on(n.Events.LEVEL_LOADED,this.onLevelLoaded,this),e.on(n.Events.ERROR,this.onError,this),e.on(n.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(n.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(n.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(n.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(n.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(n.Events.FRAG_BUFFERED,this.onFragBuffered,this)},_._unregisterListeners=function(){var e=this.hls;e.off(n.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(n.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(n.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.off(n.Events.LEVEL_LOADED,this.onLevelLoaded,this),e.off(n.Events.ERROR,this.onError,this),e.off(n.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(n.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(n.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(n.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(n.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(n.Events.FRAG_BUFFERED,this.onFragBuffered,this)},_.startLoad=function(e){this.stopLoad(),this.state=c.State.IDLE,this.setInterval(500),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()},_.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},_.onLevelLoaded=function(e,t){this.mainDetails=t.details},_.onSubtitleFragProcessed=function(e,t){var r=t.frag,n=t.success;if(this.fragPrevious=r,this.state=c.State.IDLE,n){var i=this.tracksBuffered[this.currentTrackId];if(i){for(var a,o=r.start,s=0;s<i.length;s++)if(o>=i[s].start&&o<=i[s].end){a=i[s];break}var l=r.start+r.duration;a?a.end=l:(a={start:o,end:l},i.push(a)),this.fragmentTracker.fragBuffered(r)}}},_.onBufferFlushing=function(e,t){var r=t.startOffset,n=t.endOffset;if(0===r&&n!==Number.POSITIVE_INFINITY){var i=this.currentTrackId,a=this.levels;if(!a.length||!a[i]||!a[i].details)return;var o=n-a[i].details.targetduration;if(o<=0)return;t.endOffsetSubtitles=Math.max(0,o),this.tracksBuffered.forEach((function(e){for(var t=0;t<e.length;)if(e[t].end<=o)e.shift();else{if(!(e[t].start<o))break;e[t].start=o,t++}})),this.fragmentTracker.removeFragmentsInRange(r,o,d.PlaylistLevelType.SUBTITLE)}},_.onFragBuffered=function(e,t){var r;this.loadedmetadata||t.frag.type!==d.PlaylistLevelType.MAIN||null!==(r=this.media)&&void 0!==r&&r.buffered.length&&(this.loadedmetadata=!0)},_.onError=function(e,t){var r=t.frag;r&&r.type===d.PlaylistLevelType.SUBTITLE&&(this.fragCurrent&&this.fragCurrent.abortRequests(),this.state=c.State.IDLE)},_.onSubtitleTracksUpdated=function(e,t){var r=this,n=t.subtitleTracks;this.tracksBuffered=[],this.levels=n.map((function(e){return new h.Level(e)})),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach((function(e){r.tracksBuffered[e.id]=[]})),this.mediaBuffer=null},_.onSubtitleTrackSwitch=function(e,t){if(this.currentTrackId=t.id,this.levels.length&&-1!==this.currentTrackId){var r=this.levels[this.currentTrackId];null!=r&&r.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,r&&this.setInterval(500)}else this.clearInterval()},_.onSubtitleTrackLoaded=function(e,t){var r,n=t.details,i=t.id,a=this.currentTrackId,u=this.levels;if(u.length){var d=u[a];if(!(i>=u.length||i!==a)&&d){this.mediaBuffer=this.mediaBufferTimeRanges;var h=0;if(n.live||null!==(r=d.details)&&void 0!==r&&r.live){var f=this.mainDetails;if(n.deltaUpdateFailed||!f)return;var p=f.fragments[0];d.details?0===(h=this.alignPlaylists(n,d.details))&&p&&(h=p.start,(0,l.addSliding)(n,h)):n.hasProgramDateTime&&f.hasProgramDateTime?((0,s.alignMediaPlaylistByPDT)(n,f),h=n.fragments[0].start):p&&(h=p.start,(0,l.addSliding)(n,h))}d.details=n,this.levelLastLoaded=i,this.startFragRequested||!this.mainDetails&&n.live||this.setStartPosition(d.details,h),this.tick(),n.live&&!this.fragCurrent&&this.media&&this.state===c.State.IDLE&&((0,o.findFragmentByPTS)(null,n.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),d.details=void 0))}}},_._handleFragmentLoadComplete=function(e){var t=this,r=e.frag,i=e.payload,a=r.decryptdata,o=this.hls;if(!this.fragContextChanged(r)&&i&&i.byteLength>0&&a&&a.key&&a.iv&&"AES-128"===a.method){var s=performance.now();this.decrypter.decrypt(new Uint8Array(i),a.key.buffer,a.iv.buffer).then((function(e){var t=performance.now();o.trigger(n.Events.FRAG_DECRYPTED,{frag:r,payload:e,stats:{tstart:s,tdecrypt:t}})})).catch((function(e){t.warn(e.name+": "+e.message),t.state=c.State.IDLE}))}},_.doTick=function(){if(this.media){if(this.state===c.State.IDLE){var e=this.currentTrackId,t=this.levels;if(!t.length||!t[e]||!t[e].details)return;var r=t[e].details,n=r.targetduration,s=this.config,l=this.getLoadPosition(),h=a.BufferHelper.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],l-n,s.maxBufferHole),f=h.end,p=h.len,m=this.getFwdBufferInfo(this.media,d.PlaylistLevelType.MAIN);if(p>this.getMaxBufferLength(null==m?void 0:m.len)+n)return;i.assert(r,"Subtitle track details are defined on idle subtitle stream controller tick");var g=r.fragments,v=g.length,y=r.edge,_=null,b=this.fragPrevious;if(f<y){var M=s.maxFragLookUpTolerance;!(_=(0,o.findFragmentByPTS)(b,g,Math.max(g[0].start,f),M))&&b&&b.start<g[0].start&&(_=g[0])}else _=g[v-1];if(!_)return;_=this.mapToInitFragWhenRequired(_),this.fragmentTracker.getState(_)===u.FragmentState.NOT_LOADED&&this.loadFragment(_,r,f)}}else this.state=c.State.IDLE},_.getMaxBufferLength=function(t){var r=e.prototype.getMaxBufferLength.call(this);return t?Math.max(r,t):r},_.loadFragment=function(t,r,n){this.fragCurrent=t,"initSegment"===t.sn?this._loadInitSegment(t,r):(this.startFragRequested=!0,e.prototype.loadFragment.call(this,t,r,n))},v=m,(y=[{key:"mediaBufferTimeRanges",get:function(){return new g(this.tracksBuffered[this.currentTrackId]||[])}}])&&f(v.prototype,y),Object.defineProperty(v,"prototype",{writable:!1}),m}(c.default),g=function(e){this.buffered=void 0;var t=function(t,r,n){if((r>>>=0)>n-1)throw new DOMException("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+r+") is greater than the maximum bound ("+n+")");return e[r][t]};this.buffered={get length(){return e.length},end:function(r){return t("end",r,e.length)},start:function(r){return t("start",r,e.length)}}}},"./src/controller/subtitle-track-controller.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r("./src/events.ts"),i=r("./src/utils/texttrack-utils.ts"),a=r("./src/controller/base-playlist-controller.ts"),o=r("./src/types/loader.ts");function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i)),n)}var i}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function u(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];"subtitles"===n.kind&&n.label&&t.push(e[r])}return t}const c=function(e){var t,r;function a(t){var r;return(r=e.call(this,t,"[subtitle-track-controller]")||this).media=null,r.tracks=[],r.groupId=null,r.tracksInGroup=[],r.trackId=-1,r.selectDefaultTrack=!0,r.queuedDefaultTrack=-1,r.trackChangeListener=function(){return r.onTextTracksChanged()},r.asyncPollTrackChange=function(){return r.pollTrackChange(0)},r.useTextTrackPolling=!1,r.subtitlePollingInterval=-1,r._subtitleDisplay=!0,r.registerListeners(),r}r=e,(t=a).prototype=Object.create(r.prototype),t.prototype.constructor=t,l(t,r);var c,d,h=a.prototype;return h.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,e.prototype.destroy.call(this)},h.registerListeners=function(){var e=this.hls;e.on(n.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(n.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(n.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.on(n.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.on(n.Events.LEVEL_LOADING,this.onLevelLoading,this),e.on(n.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(n.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(n.Events.ERROR,this.onError,this)},h.unregisterListeners=function(){var e=this.hls;e.off(n.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(n.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(n.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.off(n.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.off(n.Events.LEVEL_LOADING,this.onLevelLoading,this),e.off(n.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(n.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(n.Events.ERROR,this.onError,this)},h.onMediaAttached=function(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))},h.pollTrackChange=function(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,e)},h.onMediaDetaching=function(){this.media&&(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),u(this.media.textTracks).forEach((function(e){(0,i.clearCurrentCues)(e)})),this.subtitleTrack=-1,this.media=null)},h.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},h.onManifestParsed=function(e,t){this.tracks=t.subtitleTracks},h.onSubtitleTrackLoaded=function(e,t){var r=t.id,n=t.details,i=this.trackId,a=this.tracksInGroup[i];if(a){var o=a.details;a.details=t.details,this.log("subtitle track "+r+" loaded ["+n.startSN+"-"+n.endSN+"]"),r===this.trackId&&(this.retryCount=0,this.playlistLoaded(r,t,o))}else this.warn("Invalid subtitle track id "+r)},h.onLevelLoading=function(e,t){this.switchLevel(t.level)},h.onLevelSwitching=function(e,t){this.switchLevel(t.level)},h.switchLevel=function(e){var t=this.hls.levels[e];if(null!=t&&t.textGroupIds){var r=t.textGroupIds[t.urlId];if(this.groupId!==r){var i=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,a=this.tracks.filter((function(e){return!r||e.groupId===r}));this.tracksInGroup=a;var o=this.findTrackId(null==i?void 0:i.name)||this.findTrackId();this.groupId=r;var s={subtitleTracks:a};this.log("Updating subtitle tracks, "+a.length+' track(s) found in "'+r+'" group-id'),this.hls.trigger(n.Events.SUBTITLE_TRACKS_UPDATED,s),-1!==o&&this.setSubtitleTrack(o,i)}}},h.findTrackId=function(e){for(var t=this.tracksInGroup,r=0;r<t.length;r++){var n=t[r];if((!this.selectDefaultTrack||n.default)&&(!e||e===n.name))return n.id}return-1},h.onError=function(t,r){e.prototype.onError.call(this,t,r),!r.fatal&&r.context&&r.context.type===o.PlaylistContextType.SUBTITLE_TRACK&&r.context.id===this.trackId&&r.context.groupId===this.groupId&&this.retryLoadingOrFail(r)},h.loadPlaylist=function(t){e.prototype.loadPlaylist.call(this);var r=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(r)){var i=r.id,a=r.groupId,o=r.url;if(t)try{o=t.addDirectives(o)}catch(e){this.warn("Could not construct new URL with HLS Delivery Directives: "+e)}this.log("Loading subtitle playlist for id "+i),this.hls.trigger(n.Events.SUBTITLE_TRACK_LOADING,{url:o,id:i,groupId:a,deliveryDirectives:t||null})}},h.toggleTrackModes=function(e){var t=this,r=this.media,n=this.trackId;if(r){var i=u(r.textTracks),a=i.filter((function(e){return e.groupId===t.groupId}));if(-1===e)[].slice.call(i).forEach((function(e){e.mode="disabled"}));else{var o=a[n];o&&(o.mode="disabled")}var s=a[e];s&&(s.mode=this.subtitleDisplay?"showing":"hidden")}},h.setSubtitleTrack=function(e,t){var r,i=this.tracksInGroup;if(this.media){if(this.trackId!==e&&this.toggleTrackModes(e),!(this.trackId===e&&(-1===e||null!==(r=i[e])&&void 0!==r&&r.details)||e<-1||e>=i.length)){this.clearTimer();var a=i[e];if(this.log("Switching to subtitle track "+e),this.trackId=e,a){var o=a.id,s=a.groupId,l=void 0===s?"":s,u=a.name,c=a.type,d=a.url;this.hls.trigger(n.Events.SUBTITLE_TRACK_SWITCH,{id:o,groupId:l,name:u,type:c,url:d});var h=this.switchParams(a.url,null==t?void 0:t.details);this.loadPlaylist(h)}else this.hls.trigger(n.Events.SUBTITLE_TRACK_SWITCH,{id:e})}}else this.queuedDefaultTrack=e},h.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),this.media&&this.hls.config.renderTextTracksNatively){for(var e=-1,t=u(this.media.textTracks),r=0;r<t.length;r++)if("hidden"===t[r].mode)e=r;else if("showing"===t[r].mode){e=r;break}this.subtitleTrack!==e&&(this.subtitleTrack=e)}},c=a,(d=[{key:"subtitleDisplay",get:function(){return this._subtitleDisplay},set:function(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes(this.trackId)}},{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(e){this.selectDefaultTrack=!1;var t=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(e,t)}}])&&s(c.prototype,d),Object.defineProperty(c,"prototype",{writable:!1}),a}(a.default)},"./src/controller/timeline-controller.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{TimelineController:()=>f});var n=r("./src/polyfills/number.ts"),i=r("./src/events.ts"),a=r("./src/utils/cea-608-parser.ts"),o=r("./src/utils/output-filter.ts"),s=r("./src/utils/webvtt-parser.ts"),l=r("./src/utils/texttrack-utils.ts"),u=r("./src/utils/imsc1-ttml-parser.ts"),c=r("./src/utils/mp4-tools.ts"),d=r("./src/types/loader.ts"),h=r("./src/utils/logger.ts"),f=function(){function e(e){if(this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.timescale=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},this.config.enableCEA708Captions){var t=new o.default(this,"textTrack1"),r=new o.default(this,"textTrack2"),n=new o.default(this,"textTrack3"),s=new o.default(this,"textTrack4");this.cea608Parser1=new a.default(1,t,r),this.cea608Parser2=new a.default(3,n,s)}e.on(i.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(i.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(i.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.on(i.Events.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(i.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(i.Events.FRAG_LOADING,this.onFragLoading,this),e.on(i.Events.FRAG_LOADED,this.onFragLoaded,this),e.on(i.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(i.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(i.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(i.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(i.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var t=e.prototype;return t.destroy=function(){var e=this.hls;e.off(i.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(i.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(i.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.off(i.Events.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(i.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(i.Events.FRAG_LOADING,this.onFragLoading,this),e.off(i.Events.FRAG_LOADED,this.onFragLoaded,this),e.off(i.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(i.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(i.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(i.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(i.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},t.addCues=function(e,t,r,n,a){for(var o,s,l,u,c=!1,d=a.length;d--;){var h=a[d],f=(o=h[0],s=h[1],l=t,u=r,Math.min(s,u)-Math.max(o,l));if(f>=0&&(h[0]=Math.min(h[0],t),h[1]=Math.max(h[1],r),c=!0,f/(r-t)>.5))return}if(c||a.push([t,r]),this.config.renderTextTracksNatively){var p=this.captionsTracks[e];this.Cues.newCue(p,t,r,n)}else{var m=this.Cues.newCue(null,t,r,n);this.hls.trigger(i.Events.CUES_PARSED,{type:"captions",cues:m,track:e})}},t.onInitPtsFound=function(e,t){var r=this,n=t.frag,a=t.id,o=t.initPTS,s=t.timescale,l=this.unparsedVttFrags;"main"===a&&(this.initPTS[n.cc]=o,this.timescale[n.cc]=s),l.length&&(this.unparsedVttFrags=[],l.forEach((function(e){r.onFragLoaded(i.Events.FRAG_LOADED,e)})))},t.getExistingTrack=function(e){var t=this.media;if(t)for(var r=0;r<t.textTracks.length;r++){var n=t.textTracks[r];if(n[e])return n}return null},t.createCaptionsTrack=function(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)},t.createNativeTrack=function(e){if(!this.captionsTracks[e]){var t=this.captionsProperties,r=this.captionsTracks,n=this.media,i=t[e],a=i.label,o=i.languageCode,s=this.getExistingTrack(e);if(s)r[e]=s,(0,l.clearCurrentCues)(r[e]),(0,l.sendAddTrackEvent)(r[e],n);else{var u=this.createTextTrack("captions",a,o);u&&(u[e]=!0,r[e]=u)}}},t.createNonNativeTrack=function(e){if(!this.nonNativeCaptionsTracks[e]){var t=this.captionsProperties[e];if(t){var r={_id:e,label:t.label,kind:"captions",default:!!t.media&&!!t.media.default,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=r,this.hls.trigger(i.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[r]})}}},t.createTextTrack=function(e,t,r){var n=this.media;if(n)return n.addTextTrack(e,t,r)},t.onMediaAttaching=function(e,t){this.media=t.media,this._cleanTracks()},t.onMediaDetaching=function(){var e=this.captionsTracks;Object.keys(e).forEach((function(t){(0,l.clearCurrentCues)(e[t]),delete e[t]})),this.nonNativeCaptionsTracks={}},t.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.timescale=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())},t._cleanTracks=function(){var e=this.media;if(e){var t=e.textTracks;if(t)for(var r=0;r<t.length;r++)(0,l.clearCurrentCues)(t[r])}},t.onSubtitleTracksUpdated=function(e,t){var r=this;this.textTracks=[];var n=t.subtitleTracks||[],a=n.some((function(e){return e.textCodec===u.IMSC1_CODEC}));if(this.config.enableWebVTT||a&&this.config.enableIMSC1){var o=this.tracks&&n&&this.tracks.length===n.length;if(this.tracks=n||[],this.config.renderTextTracksNatively){var s=this.media?this.media.textTracks:[];this.tracks.forEach((function(e,t){var n;if(t<s.length){for(var i=null,a=0;a<s.length;a++)if(p(s[a],e)){i=s[a];break}i&&(n=i)}if(n)(0,l.clearCurrentCues)(n);else{var o=r._captionsOrSubtitlesFromCharacteristics(e);(n=r.createTextTrack(o,e.name,e.lang))&&(n.mode="disabled")}n&&(n.groupId=e.groupId,r.textTracks.push(n))}))}else if(!o&&this.tracks&&this.tracks.length){var c=this.tracks.map((function(e){return{label:e.name,kind:e.type.toLowerCase(),default:e.default,subtitleTrack:e}}));this.hls.trigger(i.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:c})}}},t._captionsOrSubtitlesFromCharacteristics=function(e){var t;if(null!==(t=e.attrs)&&void 0!==t&&t.CHARACTERISTICS){var r=/transcribes-spoken-dialog/gi.test(e.attrs.CHARACTERISTICS),n=/describes-music-and-sound/gi.test(e.attrs.CHARACTERISTICS);if(r&&n)return"captions"}return"subtitles"},t.onManifestLoaded=function(e,t){var r=this;this.config.enableCEA708Captions&&t.captions&&t.captions.forEach((function(e){var t=/(?:CC|SERVICE)([1-4])/.exec(e.instreamId);if(t){var n="textTrack"+t[1],i=r.captionsProperties[n];i&&(i.label=e.name,e.lang&&(i.languageCode=e.lang),i.media=e)}}))},t.closedCaptionsForLevel=function(e){var t=this.hls.levels[e.level];return null==t?void 0:t.attrs["CLOSED-CAPTIONS"]},t.onFragLoading=function(e,t){var r=this.cea608Parser1,n=this.cea608Parser2,i=this.lastSn,a=this.lastPartIndex;if(this.enabled&&r&&n&&t.frag.type===d.PlaylistLevelType.MAIN){var o,s,l=t.frag.sn,u=null!=(o=null==t||null===(s=t.part)||void 0===s?void 0:s.index)?o:-1;l===i+1||l===i&&u===a+1||(r.reset(),n.reset()),this.lastSn=l,this.lastPartIndex=u}},t.onFragLoaded=function(e,t){var r=t.frag,a=t.payload,o=this.initPTS,s=this.unparsedVttFrags;if(r.type===d.PlaylistLevelType.SUBTITLE)if(a.byteLength){if(!(0,n.isFiniteNumber)(o[r.cc]))return s.push(t),void(o.length&&this.hls.trigger(i.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Missing initial subtitle PTS")}));var l=r.decryptdata,c="stats"in t;if(null==l||!l.encrypted||c){var h=this.tracks[r.level],f=this.vttCCs;f[r.cc]||(f[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),h&&h.textCodec===u.IMSC1_CODEC?this._parseIMSC1(r,a):this._parseVTTs(r,a,f)}}else this.hls.trigger(i.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})},t._parseIMSC1=function(e,t){var r=this,n=this.hls;(0,u.parseIMSC1)(t,this.initPTS[e.cc],this.timescale[e.cc],(function(t){r._appendCues(t,e.level),n.trigger(i.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})}),(function(t){h.logger.log("Failed to parse IMSC1: "+t),n.trigger(i.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:t})}))},t._parseVTTs=function(e,t,r){var n,a=this,o=this.hls,l=null!==(n=e.initSegment)&&void 0!==n&&n.data?(0,c.appendUint8Array)(e.initSegment.data,new Uint8Array(t)):t;(0,s.parseWebVTT)(l,this.initPTS[e.cc],this.timescale[e.cc],r,e.cc,e.start,(function(t){a._appendCues(t,e.level),o.trigger(i.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})}),(function(r){a._fallbackToIMSC1(e,t),h.logger.log("Failed to parse VTT cue: "+r),o.trigger(i.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:r})}))},t._fallbackToIMSC1=function(e,t){var r=this,n=this.tracks[e.level];n.textCodec||(0,u.parseIMSC1)(t,this.initPTS[e.cc],this.timescale[e.cc],(function(){n.textCodec=u.IMSC1_CODEC,r._parseIMSC1(e,t)}),(function(){n.textCodec="wvtt"}))},t._appendCues=function(e,t){var r=this.hls;if(this.config.renderTextTracksNatively){var n=this.textTracks[t];if(!n||"disabled"===n.mode)return;e.forEach((function(e){return(0,l.addCueToTrack)(n,e)}))}else{var a=this.tracks[t];if(!a)return;var o=a.default?"default":"subtitles"+t;r.trigger(i.Events.CUES_PARSED,{type:"subtitles",cues:e,track:o})}},t.onFragDecrypted=function(e,t){var r=t.frag;if(r.type===d.PlaylistLevelType.SUBTITLE){if(!(0,n.isFiniteNumber)(this.initPTS[r.cc]))return void this.unparsedVttFrags.push(t);this.onFragLoaded(i.Events.FRAG_LOADED,t)}},t.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},t.onFragParsingUserdata=function(e,t){var r=this.cea608Parser1,n=this.cea608Parser2;if(this.enabled&&r&&n){var i=t.frag,a=t.samples;if(i.type!==d.PlaylistLevelType.MAIN||"NONE"!==this.closedCaptionsForLevel(i))for(var o=0;o<a.length;o++){var s=a[o].bytes;if(s){var l=this.extractCea608Data(s);r.addData(a[o].pts,l[0]),n.addData(a[o].pts,l[1])}}}},t.onBufferFlushing=function(e,t){var r=t.startOffset,n=t.endOffset,i=t.endOffsetSubtitles,a=t.type,o=this.media;if(o&&!(o.currentTime<n)){if(!a||"video"===a){var s=this.captionsTracks;Object.keys(s).forEach((function(e){return(0,l.removeCuesInRange)(s[e],r,n)}))}if(this.config.renderTextTracksNatively&&0===r&&void 0!==i){var u=this.textTracks;Object.keys(u).forEach((function(e){return(0,l.removeCuesInRange)(u[e],r,i)}))}}},t.extractCea608Data=function(e){for(var t=[[],[]],r=31&e[0],n=2,i=0;i<r;i++){var a=e[n++],o=127&e[n++],s=127&e[n++];if((0!==o||0!==s)&&0!=(4&a)){var l=3&a;0!==l&&1!==l||(t[l].push(o),t[l].push(s))}}return t},e}();function p(e,t){return e&&e.label===t.name&&!(e.textTrack1||e.textTrack2)}},"./src/crypt/aes-crypto.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var n=function(){function e(e,t){this.subtle=void 0,this.aesIV=void 0,this.subtle=e,this.aesIV=t}return e.prototype.decrypt=function(e,t){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e)},e}()},"./src/crypt/aes-decryptor.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a,removePadding:()=>i});var n=r("./src/utils/typed-array.ts");function i(e){var t=e.byteLength,r=t&&new DataView(e.buffer).getUint8(t-1);return r?(0,n.sliceUint8)(e,0,t-r):e}var a=function(){function e(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}var t=e.prototype;return t.uint8ArrayToUint32Array_=function(e){for(var t=new DataView(e),r=new Uint32Array(4),n=0;n<4;n++)r[n]=t.getUint32(4*n);return r},t.initTable=function(){var e=this.sBox,t=this.invSBox,r=this.subMix,n=r[0],i=r[1],a=r[2],o=r[3],s=this.invSubMix,l=s[0],u=s[1],c=s[2],d=s[3],h=new Uint32Array(256),f=0,p=0,m=0;for(m=0;m<256;m++)h[m]=m<128?m<<1:m<<1^283;for(m=0;m<256;m++){var g=p^p<<1^p<<2^p<<3^p<<4;g=g>>>8^255&g^99,e[f]=g,t[g]=f;var v=h[f],y=h[v],_=h[y],b=257*h[g]^16843008*g;n[f]=b<<24|b>>>8,i[f]=b<<16|b>>>16,a[f]=b<<8|b>>>24,o[f]=b,b=16843009*_^65537*y^257*v^16843008*f,l[g]=b<<24|b>>>8,u[g]=b<<16|b>>>16,c[g]=b<<8|b>>>24,d[g]=b,f?(f=v^h[h[h[_^v]]],p^=h[h[p]]):f=p=1}},t.expandKey=function(e){for(var t=this.uint8ArrayToUint32Array_(e),r=!0,n=0;n<t.length&&r;)r=t[n]===this.key[n],n++;if(!r){this.key=t;var i=this.keySize=t.length;if(4!==i&&6!==i&&8!==i)throw new Error("Invalid aes key size="+i);var a,o,s,l,u=this.ksRows=4*(i+6+1),c=this.keySchedule=new Uint32Array(u),d=this.invKeySchedule=new Uint32Array(u),h=this.sBox,f=this.rcon,p=this.invSubMix,m=p[0],g=p[1],v=p[2],y=p[3];for(a=0;a<u;a++)a<i?s=c[a]=t[a]:(l=s,a%i==0?(l=h[(l=l<<8|l>>>24)>>>24]<<24|h[l>>>16&255]<<16|h[l>>>8&255]<<8|h[255&l],l^=f[a/i|0]<<24):i>6&&a%i==4&&(l=h[l>>>24]<<24|h[l>>>16&255]<<16|h[l>>>8&255]<<8|h[255&l]),c[a]=s=(c[a-i]^l)>>>0);for(o=0;o<u;o++)a=u-o,l=3&o?c[a]:c[a-4],d[o]=o<4||a<=4?l:m[h[l>>>24]]^g[h[l>>>16&255]]^v[h[l>>>8&255]]^y[h[255&l]],d[o]=d[o]>>>0}},t.networkToHostOrderSwap=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},t.decrypt=function(e,t,r){for(var n,i,a,o,s,l,u,c,d,h,f,p,m,g,v=this.keySize+6,y=this.invKeySchedule,_=this.invSBox,b=this.invSubMix,M=b[0],w=b[1],T=b[2],L=b[3],S=this.uint8ArrayToUint32Array_(r),k=S[0],x=S[1],E=S[2],D=S[3],A=new Int32Array(e),O=new Int32Array(A.length),P=this.networkToHostOrderSwap;t<A.length;){for(d=P(A[t]),h=P(A[t+1]),f=P(A[t+2]),p=P(A[t+3]),s=d^y[0],l=p^y[1],u=f^y[2],c=h^y[3],m=4,g=1;g<v;g++)n=M[s>>>24]^w[l>>16&255]^T[u>>8&255]^L[255&c]^y[m],i=M[l>>>24]^w[u>>16&255]^T[c>>8&255]^L[255&s]^y[m+1],a=M[u>>>24]^w[c>>16&255]^T[s>>8&255]^L[255&l]^y[m+2],o=M[c>>>24]^w[s>>16&255]^T[l>>8&255]^L[255&u]^y[m+3],s=n,l=i,u=a,c=o,m+=4;n=_[s>>>24]<<24^_[l>>16&255]<<16^_[u>>8&255]<<8^_[255&c]^y[m],i=_[l>>>24]<<24^_[u>>16&255]<<16^_[c>>8&255]<<8^_[255&s]^y[m+1],a=_[u>>>24]<<24^_[c>>16&255]<<16^_[s>>8&255]<<8^_[255&l]^y[m+2],o=_[c>>>24]<<24^_[s>>16&255]<<16^_[l>>8&255]<<8^_[255&u]^y[m+3],O[t]=P(n^k),O[t+1]=P(o^x),O[t+2]=P(a^E),O[t+3]=P(i^D),k=d,x=h,E=f,D=p,t+=4}return O.buffer},e}()},"./src/crypt/decrypter.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r("./src/crypt/aes-crypto.ts"),i=r("./src/crypt/fast-aes-key.ts"),a=r("./src/crypt/aes-decryptor.ts"),o=r("./src/utils/logger.ts"),s=r("./src/utils/mp4-tools.ts"),l=r("./src/utils/typed-array.ts"),u=function(){function e(e,t){var r=(void 0===t?{}:t).removePKCS7Padding,n=void 0===r||r;if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.useSoftware=e.enableSoftwareAES,this.removePKCS7Padding=n,n)try{var i=self.crypto;i&&(this.subtle=i.subtle||i.webkitSubtle)}catch(e){}null===this.subtle&&(this.useSoftware=!0)}var t=e.prototype;return t.destroy=function(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null},t.isSync=function(){return this.useSoftware},t.flush=function(){var e=this.currentResult,t=this.remainderData;if(!e||t)return o.logger.error("[softwareDecrypt] "+(t?"overflow bytes: "+t.byteLength:"no result")),this.reset(),null;var r=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?(0,a.removePadding)(r):r},t.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},t.decrypt=function(e,t,r){var n=this;return this.useSoftware?new Promise((function(i,a){n.softwareDecrypt(new Uint8Array(e),t,r);var o=n.flush();o?i(o.buffer):a(new Error("[softwareDecrypt] Failed to decrypt data"))})):this.webCryptoDecrypt(new Uint8Array(e),t,r)},t.softwareDecrypt=function(e,t,r){var n=this.currentIV,i=this.currentResult,o=this.remainderData;this.logOnce("JS AES decrypt"),o&&(e=(0,s.appendUint8Array)(o,e),this.remainderData=null);var u=this.getValidChunk(e);if(!u.length)return null;n&&(r=n);var c=this.softwareDecrypter;c||(c=this.softwareDecrypter=new a.default),c.expandKey(t);var d=i;return this.currentResult=c.decrypt(u.buffer,0,r),this.currentIV=(0,l.sliceUint8)(u,-16).buffer,d||null},t.webCryptoDecrypt=function(e,t,r){var a=this,s=this.subtle;return this.key===t&&this.fastAesKey||(this.key=t,this.fastAesKey=new i.default(s,t)),this.fastAesKey.expandKey().then((function(t){return s?(a.logOnce("WebCrypto AES decrypt"),new n.default(s,new Uint8Array(r)).decrypt(e.buffer,t)):Promise.reject(new Error("web crypto not initialized"))})).catch((function(n){return o.logger.warn("[decrypter]: WebCrypto Error, disable WebCrypto API, "+n.name+": "+n.message),a.onWebCryptoError(e,t,r)}))},t.onWebCryptoError=function(e,t,r){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,r);var n=this.flush();if(n)return n.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")},t.getValidChunk=function(e){var t=e,r=e.length-e.length%16;return r!==e.length&&(t=(0,l.sliceUint8)(e,0,r),this.remainderData=(0,l.sliceUint8)(e,r)),t},t.logOnce=function(e){this.logEnabled&&(o.logger.log("[decrypter]: "+e),this.logEnabled=!1)},e}()},"./src/crypt/fast-aes-key.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var n=function(){function e(e,t){this.subtle=void 0,this.key=void 0,this.subtle=e,this.key=t}return e.prototype.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},e}()},"./src/demux/aacdemuxer.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r("./src/demux/base-audio-demuxer.ts"),i=r("./src/demux/adts.ts"),a=r("./src/utils/logger.ts"),o=r("./src/demux/id3.ts");function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}const l=function(e){var t,r;function n(t,r){var n;return(n=e.call(this)||this).observer=void 0,n.config=void 0,n.observer=t,n.config=r,n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r);var l=n.prototype;return l.resetInitSegment=function(t,r,n,i){e.prototype.resetInitSegment.call(this,t,r,n,i),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:r,duration:i,inputTimeScale:9e4,dropped:0}},n.probe=function(e){if(!e)return!1;for(var t=(o.getID3Data(e,0)||[]).length,r=e.length;t<r;t++)if(i.probe(e,t))return a.logger.log("ADTS sync word found !"),!0;return!1},l.canParse=function(e,t){return i.canParse(e,t)},l.appendFrame=function(e,t,r){i.initTrackConfig(e,this.observer,t,r,e.manifestCodec);var n=i.appendFrame(e,t,r,this.basePTS,this.frameIndex);if(n&&0===n.missing)return n},n}(n.default)},"./src/demux/adts.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{appendFrame:()=>v,canGetFrameLength:()=>c,canParse:()=>h,getAudioConfig:()=>o,getFrameDuration:()=>m,getFullFrameLength:()=>u,getHeaderLength:()=>l,initTrackConfig:()=>p,isHeader:()=>d,isHeaderPattern:()=>s,parseFrameHeader:()=>g,probe:()=>f});var n=r("./src/utils/logger.ts"),i=r("./src/errors.ts"),a=r("./src/events.ts");function o(e,t,r,o){var s,l,u,c,d=navigator.userAgent.toLowerCase(),h=o,f=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];s=1+((192&t[r+2])>>>6);var p=(60&t[r+2])>>>2;if(!(p>f.length-1))return u=(1&t[r+2])<<2,u|=(192&t[r+3])>>>6,n.logger.log("manifest codec:"+o+", ADTS type:"+s+", samplingIndex:"+p),/firefox/i.test(d)?p>=6?(s=5,c=new Array(4),l=p-3):(s=2,c=new Array(2),l=p):-1!==d.indexOf("android")?(s=2,c=new Array(2),l=p):(s=5,c=new Array(4),o&&(-1!==o.indexOf("mp4a.40.29")||-1!==o.indexOf("mp4a.40.5"))||!o&&p>=6?l=p-3:((o&&-1!==o.indexOf("mp4a.40.2")&&(p>=6&&1===u||/vivaldi/i.test(d))||!o&&1===u)&&(s=2,c=new Array(2)),l=p)),c[0]=s<<3,c[0]|=(14&p)>>1,c[1]|=(1&p)<<7,c[1]|=u<<3,5===s&&(c[1]|=(14&l)>>1,c[2]=(1&l)<<7,c[2]|=8,c[3]=0),{config:c,samplerate:f[p],channelCount:u,codec:"mp4a.40."+s,manifestCodec:h};e.trigger(a.Events.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+p})}function s(e,t){return 255===e[t]&&240==(246&e[t+1])}function l(e,t){return 1&e[t+1]?7:9}function u(e,t){return(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5}function c(e,t){return t+5<e.length}function d(e,t){return t+1<e.length&&s(e,t)}function h(e,t){return c(e,t)&&s(e,t)&&u(e,t)<=e.length-t}function f(e,t){if(d(e,t)){var r=l(e,t);if(t+r>=e.length)return!1;var n=u(e,t);if(n<=r)return!1;var i=t+n;return i===e.length||d(e,i)}return!1}function p(e,t,r,i,a){if(!e.samplerate){var s=o(t,r,i,a);if(!s)return;e.config=s.config,e.samplerate=s.samplerate,e.channelCount=s.channelCount,e.codec=s.codec,e.manifestCodec=s.manifestCodec,n.logger.log("parsed codec:"+e.codec+", rate:"+s.samplerate+", channels:"+s.channelCount)}}function m(e){return 9216e4/e}function g(e,t){var r=l(e,t);if(t+r<=e.length){var n=u(e,t)-r;if(n>0)return{headerLength:r,frameLength:n}}}function v(e,t,r,n,i){var a,o=n+i*m(e.samplerate),s=g(t,r);if(s){var l=s.frameLength,u=s.headerLength,c=u+l,d=Math.max(0,r+c-t.length);d?(a=new Uint8Array(c-u)).set(t.subarray(r+u,t.length),0):a=t.subarray(r+u,r+c);var h={unit:a,pts:o};return d||e.samples.push(h),{sample:h,length:c,missing:d}}var f=t.length-r;return(a=new Uint8Array(f)).set(t.subarray(r,t.length),0),{sample:{unit:a,pts:o},length:f,missing:-1}}},"./src/demux/base-audio-demuxer.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d,initPTSFn:()=>c});var n=r("./src/polyfills/number.ts"),i=r("./src/demux/id3.ts"),a=r("./src/types/demuxer.ts"),o=r("./src/demux/dummy-demuxed-track.ts"),s=r("./src/utils/mp4-tools.ts"),l=r("./src/utils/typed-array.ts"),u=function(){function e(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}var t=e.prototype;return t.resetInitSegment=function(e,t,r,n){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},t.resetTimeStamp=function(e){this.initPTS=e,this.resetContiguity()},t.resetContiguity=function(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0},t.canParse=function(e,t){return!1},t.appendFrame=function(e,t,r){},t.demux=function(e,t){this.cachedData&&(e=(0,s.appendUint8Array)(this.cachedData,e),this.cachedData=null);var r,u=i.getID3Data(e,0),d=u?u.length:0,h=this._audioTrack,f=this._id3Track,p=u?i.getTimeStamp(u):void 0,m=e.length;for((null===this.basePTS||0===this.frameIndex&&(0,n.isFiniteNumber)(p))&&(this.basePTS=c(p,t,this.initPTS),this.lastPTS=this.basePTS),null===this.lastPTS&&(this.lastPTS=this.basePTS),u&&u.length>0&&f.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:u,type:a.MetadataSchema.audioId3,duration:Number.POSITIVE_INFINITY});d<m;){if(this.canParse(e,d)){var g=this.appendFrame(h,e,d);g?(this.frameIndex++,this.lastPTS=g.sample.pts,r=d+=g.length):d=m}else i.canParse(e,d)?(u=i.getID3Data(e,d),f.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:u,type:a.MetadataSchema.audioId3,duration:Number.POSITIVE_INFINITY}),r=d+=u.length):d++;if(d===m&&r!==m){var v=(0,l.sliceUint8)(e,r);this.cachedData?this.cachedData=(0,s.appendUint8Array)(this.cachedData,v):this.cachedData=v}}return{audioTrack:h,videoTrack:(0,o.dummyTrack)(),id3Track:f,textTrack:(0,o.dummyTrack)()}},t.demuxSampleAes=function(e,t,r){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},t.flush=function(e){var t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:(0,o.dummyTrack)(),id3Track:this._id3Track,textTrack:(0,o.dummyTrack)()}},t.destroy=function(){},e}(),c=function(e,t,r){return(0,n.isFiniteNumber)(e)?90*e:9e4*t+(r||0)};const d=u},"./src/demux/chunk-cache.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var n=function(){function e(){this.chunks=[],this.dataLength=0}var t=e.prototype;return t.push=function(e){this.chunks.push(e),this.dataLength+=e.length},t.flush=function(){var e,t=this.chunks,r=this.dataLength;return t.length?(e=1===t.length?t[0]:function(e,t){for(var r=new Uint8Array(t),n=0,i=0;i<e.length;i++){var a=e[i];r.set(a,n),n+=a.length}return r}(t,r),this.reset(),e):new Uint8Array(0)},t.reset=function(){this.chunks.length=0,this.dataLength=0},e}()},"./src/demux/dummy-demuxed-track.ts":(e,t,r)=>{"use strict";function n(e,t){return void 0===e&&(e=""),void 0===t&&(t=9e4),{type:e,id:-1,pid:-1,inputTimeScale:t,sequenceNumber:-1,samples:[],dropped:0}}r.r(t),r.d(t,{dummyTrack:()=>n})},"./src/demux/exp-golomb.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r("./src/utils/logger.ts");const i=function(){function e(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}var t=e.prototype;return t.loadWord=function(){var e=this.data,t=this.bytesAvailable,r=e.byteLength-t,n=new Uint8Array(4),i=Math.min(4,t);if(0===i)throw new Error("no bytes available");n.set(e.subarray(r,r+i)),this.word=new DataView(n.buffer).getUint32(0),this.bitsAvailable=8*i,this.bytesAvailable-=i},t.skipBits=function(e){var t;e=Math.min(e,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,e-=(t=e>>3)<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)},t.readBits=function(e){var t=Math.min(this.bitsAvailable,e),r=this.word>>>32-t;if(e>32&&n.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}return(t=e-t)>0&&this.bitsAvailable?r<<t|this.readBits(t):r},t.skipLZ=function(){var e;for(e=0;e<this.bitsAvailable;++e)if(0!=(this.word&2147483648>>>e))return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()},t.skipUEG=function(){this.skipBits(1+this.skipLZ())},t.skipEG=function(){this.skipBits(1+this.skipLZ())},t.readUEG=function(){var e=this.skipLZ();return this.readBits(e+1)-1},t.readEG=function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)},t.readBoolean=function(){return 1===this.readBits(1)},t.readUByte=function(){return this.readBits(8)},t.readUShort=function(){return this.readBits(16)},t.readUInt=function(){return this.readBits(32)},t.skipScalingList=function(e){for(var t=8,r=8,n=0;n<e;n++)0!==r&&(r=(t+this.readEG()+256)%256),t=0===r?t:r},t.readSPS=function(){var e,t,r,n=0,i=0,a=0,o=0,s=this.readUByte.bind(this),l=this.readBits.bind(this),u=this.readUEG.bind(this),c=this.readBoolean.bind(this),d=this.skipBits.bind(this),h=this.skipEG.bind(this),f=this.skipUEG.bind(this),p=this.skipScalingList.bind(this);s();var m=s();if(l(5),d(3),s(),f(),100===m||110===m||122===m||244===m||44===m||83===m||86===m||118===m||128===m){var g=u();if(3===g&&d(1),f(),f(),d(1),c())for(t=3!==g?8:12,r=0;r<t;r++)c()&&p(r<6?16:64)}f();var v=u();if(0===v)u();else if(1===v)for(d(1),h(),h(),e=u(),r=0;r<e;r++)h();f(),d(1);var y=u(),_=u(),b=l(1);0===b&&d(1),d(1),c()&&(n=u(),i=u(),a=u(),o=u());var M=[1,1];if(c()&&c())switch(s()){case 1:M=[1,1];break;case 2:M=[12,11];break;case 3:M=[10,11];break;case 4:M=[16,11];break;case 5:M=[40,33];break;case 6:M=[24,11];break;case 7:M=[20,11];break;case 8:M=[32,11];break;case 9:M=[80,33];break;case 10:M=[18,11];break;case 11:M=[15,11];break;case 12:M=[64,33];break;case 13:M=[160,99];break;case 14:M=[4,3];break;case 15:M=[3,2];break;case 16:M=[2,1];break;case 255:M=[s()<<8|s(),s()<<8|s()]}return{width:Math.ceil(16*(y+1)-2*n-2*i),height:(2-b)*(_+1)*16-(b?2:4)*(a+o),pixelRatio:M}},t.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},e}()},"./src/demux/id3.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{canParse:()=>l,decodeFrame:()=>f,getID3Data:()=>o,getID3Frames:()=>h,getTimeStamp:()=>u,isFooter:()=>a,isHeader:()=>i,isTimeStampFrame:()=>c,testables:()=>_,utf8ArrayToStr:()=>y});var n,i=function(e,t){return t+10<=e.length&&73===e[t]&&68===e[t+1]&&51===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128},a=function(e,t){return t+10<=e.length&&51===e[t]&&68===e[t+1]&&73===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128},o=function(e,t){for(var r=t,n=0;i(e,t);)n+=10,n+=s(e,t+6),a(e,t+10)&&(n+=10),t+=n;if(n>0)return e.subarray(r,r+n)},s=function(e,t){var r=0;return r=(127&e[t])<<21,r|=(127&e[t+1])<<14,(r|=(127&e[t+2])<<7)|127&e[t+3]},l=function(e,t){return i(e,t)&&s(e,t+6)+10<=e.length-t},u=function(e){for(var t=h(e),r=0;r<t.length;r++){var n=t[r];if(c(n))return v(n)}},c=function(e){return e&&"PRIV"===e.key&&"com.apple.streaming.transportStreamTimestamp"===e.info},d=function(e){var t=String.fromCharCode(e[0],e[1],e[2],e[3]),r=s(e,4);return{type:t,size:r,data:e.subarray(10,10+r)}},h=function(e){for(var t=0,r=[];i(e,t);){for(var n=s(e,t+6),o=(t+=10)+n;t+8<o;){var l=d(e.subarray(t)),u=f(l);u&&r.push(u),t+=l.size+10}a(e,t)&&(t+=10)}return r},f=function(e){return"PRIV"===e.type?p(e):"W"===e.type[0]?g(e):m(e)},p=function(e){if(!(e.size<2)){var t=y(e.data,!0),r=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:r.buffer}}},m=function(e){if(!(e.size<2)){if("TXXX"===e.type){var t=1,r=y(e.data.subarray(t),!0);t+=r.length+1;var n=y(e.data.subarray(t));return{key:e.type,info:r,data:n}}var i=y(e.data.subarray(1));return{key:e.type,data:i}}},g=function(e){if("WXXX"===e.type){if(e.size<2)return;var t=1,r=y(e.data.subarray(t),!0);t+=r.length+1;var n=y(e.data.subarray(t));return{key:e.type,info:r,data:n}}var i=y(e.data);return{key:e.type,data:i}},v=function(e){if(8===e.data.byteLength){var t=new Uint8Array(e.data),r=1&t[3],n=(t[4]<<23)+(t[5]<<15)+(t[6]<<7)+t[7];return n/=45,r&&(n+=47721858.84),Math.round(n)}},y=function(e,t){void 0===t&&(t=!1);var r=b();if(r){var n=r.decode(e);if(t){var i=n.indexOf("\0");return-1!==i?n.substring(0,i):n}return n.replace(/\0/g,"")}for(var a,o,s,l=e.length,u="",c=0;c<l;){if(0===(a=e[c++])&&t)return u;if(0!==a&&3!==a)switch(a>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:u+=String.fromCharCode(a);break;case 12:case 13:o=e[c++],u+=String.fromCharCode((31&a)<<6|63&o);break;case 14:o=e[c++],s=e[c++],u+=String.fromCharCode((15&a)<<12|(63&o)<<6|(63&s)<<0)}}return u},_={decodeTextFrame:m};function b(){return n||void 0===self.TextDecoder||(n=new self.TextDecoder("utf-8")),n}},"./src/demux/mp3demuxer.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r("./src/demux/base-audio-demuxer.ts"),i=r("./src/demux/id3.ts"),a=r("./src/utils/logger.ts"),o=r("./src/demux/mpegaudio.ts");function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var l=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r);var l=n.prototype;return l.resetInitSegment=function(t,r,n,i){e.prototype.resetInitSegment.call(this,t,r,n,i),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:r,duration:i,inputTimeScale:9e4,dropped:0}},n.probe=function(e){if(!e)return!1;for(var t=(i.getID3Data(e,0)||[]).length,r=e.length;t<r;t++)if(o.probe(e,t))return a.logger.log("MPEG Audio sync word found !"),!0;return!1},l.canParse=function(e,t){return o.canParse(e,t)},l.appendFrame=function(e,t,r){if(null!==this.basePTS)return o.appendFrame(e,t,r,this.basePTS,this.frameIndex)},n}(n.default);const u=l},"./src/demux/mp4demuxer.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r("./src/polyfills/number.ts"),i=r("./src/types/demuxer.ts"),a=r("./src/utils/mp4-tools.ts"),o=r("./src/demux/dummy-demuxed-track.ts"),s=/\/emsg[-/]ID3/i;const l=function(){function e(e,t){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=t}var t=e.prototype;return t.resetTimeStamp=function(){},t.resetInitSegment=function(e,t,r,n){var i=this.videoTrack=(0,o.dummyTrack)("video",1),s=this.audioTrack=(0,o.dummyTrack)("audio",1),l=this.txtTrack=(0,o.dummyTrack)("text",1);if(this.id3Track=(0,o.dummyTrack)("id3",1),this.timeOffset=0,e&&e.byteLength){var u=(0,a.parseInitSegment)(e);if(u.video){var c=u.video,d=c.id,h=c.timescale,f=c.codec;i.id=d,i.timescale=l.timescale=h,i.codec=f}if(u.audio){var p=u.audio,m=p.id,g=p.timescale,v=p.codec;s.id=m,s.timescale=g,s.codec=v}l.id=a.RemuxerTrackIdConfig.text,i.sampleDuration=0,i.duration=s.duration=n}},t.resetContiguity=function(){},e.probe=function(e){return e=e.length>16384?e.subarray(0,16384):e,(0,a.findBox)(e,["moof"]).length>0},t.demux=function(e,t){this.timeOffset=t;var r=e,n=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=(0,a.appendUint8Array)(this.remainderData,e));var o=(0,a.segmentValidRange)(r);this.remainderData=o.remainder,n.samples=o.valid||new Uint8Array}else n.samples=r;var s=this.extractID3Track(n,t);return i.samples=(0,a.parseSamples)(t,n),{videoTrack:n,audioTrack:this.audioTrack,id3Track:s,textTrack:this.txtTrack}},t.flush=function(){var e=this.timeOffset,t=this.videoTrack,r=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;var n=this.extractID3Track(t,this.timeOffset);return r.samples=(0,a.parseSamples)(e,t),{videoTrack:t,audioTrack:(0,o.dummyTrack)(),id3Track:n,textTrack:(0,o.dummyTrack)()}},t.extractID3Track=function(e,t){var r=this.id3Track;if(e.samples.length){var o=(0,a.findBox)(e.samples,["emsg"]);o&&o.forEach((function(e){var o=(0,a.parseEmsg)(e);if(s.test(o.schemeIdUri)){var l=(0,n.isFiniteNumber)(o.presentationTime)?o.presentationTime/o.timeScale:t+o.presentationTimeDelta/o.timeScale,u=4294967295===o.eventDuration?Number.POSITIVE_INFINITY:o.eventDuration/o.timeScale;u<=.001&&(u=Number.POSITIVE_INFINITY);var c=o.payload;r.samples.push({data:c,len:c.byteLength,dts:l,pts:l,type:i.MetadataSchema.emsg,duration:u})}}))}return r},t.demuxSampleAes=function(e,t,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},t.destroy=function(){},e}()},"./src/demux/mpegaudio.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{appendFrame:()=>l,canParse:()=>h,isHeader:()=>d,isHeaderPattern:()=>c,parseHeader:()=>u,probe:()=>f});var n=null,i=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],a=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],o=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],s=[0,1,1,4];function l(e,t,r,n,i){if(!(r+24>t.length)){var a=u(t,r);if(a&&r+a.frameLength<=t.length){var o=n+i*(9e4*a.samplesPerFrame/a.sampleRate),s={unit:t.subarray(r,r+a.frameLength),pts:o,dts:o};return e.config=[],e.channelCount=a.channelCount,e.samplerate=a.sampleRate,e.samples.push(s),{sample:s,length:a.frameLength,missing:0}}}}function u(e,t){var r=e[t+1]>>3&3,l=e[t+1]>>1&3,u=e[t+2]>>4&15,c=e[t+2]>>2&3;if(1!==r&&0!==u&&15!==u&&3!==c){var d=e[t+2]>>1&1,h=e[t+3]>>6,f=1e3*i[14*(3===r?3-l:3===l?3:4)+u-1],p=a[3*(3===r?0:2===r?1:2)+c],m=3===h?1:2,g=o[r][l],v=s[l],y=8*g*v,_=Math.floor(g*f/p+d)*v;if(null===n){var b=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);n=b?parseInt(b[1]):0}return!!n&&n<=87&&2===l&&f>=224e3&&0===h&&(e[t+3]=128|e[t+3]),{sampleRate:p,channelCount:m,frameLength:_,samplesPerFrame:y}}}function c(e,t){return 255===e[t]&&224==(224&e[t+1])&&0!=(6&e[t+1])}function d(e,t){return t+1<e.length&&c(e,t)}function h(e,t){return c(e,t)&&4<=e.length-t}function f(e,t){if(t+1<e.length&&c(e,t)){var r=u(e,t),n=4;null!=r&&r.frameLength&&(n=r.frameLength);var i=t+n;return i===e.length||d(e,i)}return!1}},"./src/demux/sample-aes.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r("./src/crypt/decrypter.ts"),i=r("./src/utils/mp4-tools.ts");const a=function(){function e(e,t,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new n.default(t,{removePKCS7Padding:!1})}var t=e.prototype;return t.decryptBuffer=function(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer)},t.decryptAacSample=function(e,t,r){var n=this,i=e[t].unit;if(!(i.length<=16)){var a=i.subarray(16,i.length-i.length%16),o=a.buffer.slice(a.byteOffset,a.byteOffset+a.length);this.decryptBuffer(o).then((function(a){var o=new Uint8Array(a);i.set(o,16),n.decrypter.isSync()||n.decryptAacSamples(e,t+1,r)}))}},t.decryptAacSamples=function(e,t,r){for(;;t++){if(t>=e.length)return void r();if(!(e[t].unit.length<32||(this.decryptAacSample(e,t,r),this.decrypter.isSync())))return}},t.getAvcEncryptedData=function(e){for(var t=16*Math.floor((e.length-48)/160)+16,r=new Int8Array(t),n=0,i=32;i<e.length-16;i+=160,n+=16)r.set(e.subarray(i,i+16),n);return r},t.getAvcDecryptedUnit=function(e,t){for(var r=new Uint8Array(t),n=0,i=32;i<e.length-16;i+=160,n+=16)e.set(r.subarray(n,n+16),i);return e},t.decryptAvcSample=function(e,t,r,n,a){var o=this,s=(0,i.discardEPB)(a.data),l=this.getAvcEncryptedData(s);this.decryptBuffer(l.buffer).then((function(i){a.data=o.getAvcDecryptedUnit(s,i),o.decrypter.isSync()||o.decryptAvcSamples(e,t,r+1,n)}))},t.decryptAvcSamples=function(e,t,r,n){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,r=0){if(t>=e.length)return void n();for(var i=e[t].units;!(r>=i.length);r++){var a=i[r];if(!(a.data.length<=48||1!==a.type&&5!==a.type||(this.decryptAvcSample(e,t,r,n,a),this.decrypter.isSync())))return}}},e}()},"./src/demux/transmuxer-interface.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r("./src/demux/webworkify-webpack.js"),i=r("./src/events.ts"),a=r("./src/demux/transmuxer.ts"),o=r("./src/utils/logger.ts"),s=r("./src/errors.ts"),l=r("./src/utils/mediasource-helper.ts"),u=r("./node_modules/eventemitter3/index.js"),c=(0,l.getMediaSource)()||{isTypeSupported:function(){return!1}},d=function(){function e(e,t,r,l){var d=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;var h=e.config;this.hls=e,this.id=t,this.useWorker=!!h.enableWorker,this.onTransmuxComplete=r,this.onFlush=l;var f=function(e,t){(t=t||{}).frag=d.frag,t.id=d.id,d.hls.trigger(e,t)};this.observer=new u.EventEmitter,this.observer.on(i.Events.FRAG_DECRYPTED,f),this.observer.on(i.Events.ERROR,f);var p={mp4:c.isTypeSupported("video/mp4"),mpeg:c.isTypeSupported("audio/mpeg"),mp3:c.isTypeSupported('audio/mp4; codecs="mp3"')},m=navigator.vendor;if(this.useWorker&&"undefined"!=typeof Worker){var g;o.logger.log("demuxing in webworker");try{g=this.worker=(0,n.default)("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),g.addEventListener("message",this.onwmsg),g.onerror=function(e){d.useWorker=!1,o.logger.warn("Exception in webworker, fallback to inline"),d.hls.trigger(i.Events.ERROR,{type:s.ErrorTypes.OTHER_ERROR,details:s.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:new Error(e.message+" ("+e.filename+":"+e.lineno+")")})},g.postMessage({cmd:"init",typeSupported:p,vendor:m,id:t,config:JSON.stringify(h)})}catch(e){o.logger.warn("Error in worker:",e),o.logger.error("Error while initializing DemuxerWorker, fallback to inline"),g&&self.URL.revokeObjectURL(g.objectURL),this.transmuxer=new a.default(this.observer,p,h,m,t),this.worker=null}}else this.transmuxer=new a.default(this.observer,p,h,m,t)}var t=e.prototype;return t.destroy=function(){var e=this.worker;if(e)e.removeEventListener("message",this.onwmsg),e.terminate(),this.worker=null,this.onwmsg=void 0;else{var t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}var r=this.observer;r&&r.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null},t.push=function(e,t,r,n,i,s,l,u,c,d){var h,f,p=this;c.transmuxing.start=self.performance.now();var m=this.transmuxer,g=this.worker,v=s?s.start:i.start,y=i.decryptdata,_=this.frag,b=!(_&&i.cc===_.cc),M=!(_&&c.level===_.level),w=_?c.sn-_.sn:-1,T=this.part?c.part-this.part.index:-1,L=0===w&&c.id>1&&c.id===(null==_?void 0:_.stats.chunkCount),S=!M&&(1===w||0===w&&(1===T||L&&T<=0)),k=self.performance.now();(M||w||0===i.stats.parsing.start)&&(i.stats.parsing.start=k),!s||!T&&S||(s.stats.parsing.start=k);var x=!(_&&(null===(h=i.initSegment)||void 0===h?void 0:h.url)===(null===(f=_.initSegment)||void 0===f?void 0:f.url)),E=new a.TransmuxState(b,S,u,M,v,x);if(!S||b||x){o.logger.log("[transmuxer-interface, "+i.type+"]: Starting new transmux session for sn: "+c.sn+" p: "+c.part+" level: "+c.level+" id: "+c.id+"\n discontinuity: "+b+"\n trackSwitch: "+M+"\n contiguous: "+S+"\n accurateTimeOffset: "+u+"\n timeOffset: "+v+"\n initSegmentChange: "+x);var D=new a.TransmuxConfig(r,n,t,l,d);this.configureTransmuxer(D)}if(this.frag=i,this.part=s,g)g.postMessage({cmd:"demux",data:e,decryptdata:y,chunkMeta:c,state:E},e instanceof ArrayBuffer?[e]:[]);else if(m){var A=m.push(e,y,c,E);(0,a.isPromise)(A)?(m.async=!0,A.then((function(e){p.handleTransmuxComplete(e)})).catch((function(e){p.transmuxerError(e,c,"transmuxer-interface push error")}))):(m.async=!1,this.handleTransmuxComplete(A))}},t.flush=function(e){var t=this;e.transmuxing.start=self.performance.now();var r=this.transmuxer,n=this.worker;if(n)n.postMessage({cmd:"flush",chunkMeta:e});else if(r){var i=r.flush(e);(0,a.isPromise)(i)||r.async?((0,a.isPromise)(i)||(i=Promise.resolve(i)),i.then((function(r){t.handleFlushResult(r,e)})).catch((function(r){t.transmuxerError(r,e,"transmuxer-interface flush error")}))):this.handleFlushResult(i,e)}},t.transmuxerError=function(e,t,r){this.hls&&this.hls.trigger(i.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.FRAG_PARSING_ERROR,chunkMeta:t,fatal:!1,error:e,err:e,reason:r})},t.handleFlushResult=function(e,t){var r=this;e.forEach((function(e){r.handleTransmuxComplete(e)})),this.onFlush(t)},t.onWorkerMessage=function(e){var t=e.data,r=this.hls;switch(t.event){case"init":self.URL.revokeObjectURL(this.worker.objectURL);break;case"transmuxComplete":this.handleTransmuxComplete(t.data);break;case"flush":this.onFlush(t.data);break;case"workerLog":o.logger[t.data.logType]&&o.logger[t.data.logType](t.data.message);break;default:t.data=t.data||{},t.data.frag=this.frag,t.data.id=this.id,r.trigger(t.event,t.data)}},t.configureTransmuxer=function(e){var t=this.worker,r=this.transmuxer;t?t.postMessage({cmd:"configure",config:e}):r&&r.configure(e)},t.handleTransmuxComplete=function(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)},e}()},"./src/demux/transmuxer-worker.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r("./src/demux/transmuxer.ts"),i=r("./src/events.ts"),a=r("./src/utils/logger.ts"),o=r("./node_modules/eventemitter3/index.js"),s=r("./src/errors.ts");function l(e){var t=new o.EventEmitter,r=function(t,r){e.postMessage({event:t,data:r})};t.on(i.Events.FRAG_DECRYPTED,r),t.on(i.Events.ERROR,r),e.addEventListener("message",(function(o){var l=o.data;switch(l.cmd){case"init":var c=JSON.parse(l.config);e.transmuxer=new n.default(t,l.typeSupported,c,l.vendor,l.id),(0,a.enableLogs)(c.debug,l.id),function(){var e=function(e){a.logger[e]=function(t){r("workerLog",{logType:e,message:t})}};for(var t in a.logger)e(t)}(),r("init",null);break;case"configure":e.transmuxer.configure(l.config);break;case"demux":var h=e.transmuxer.push(l.data,l.decryptdata,l.chunkMeta,l.state);(0,n.isPromise)(h)?(e.transmuxer.async=!0,h.then((function(t){u(e,t)})).catch((function(e){r(i.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.FRAG_PARSING_ERROR,chunkMeta:l.chunkMeta,fatal:!1,error:e,err:e,reason:"transmuxer-worker push error"})}))):(e.transmuxer.async=!1,u(e,h));break;case"flush":var f=l.chunkMeta,p=e.transmuxer.flush(f);(0,n.isPromise)(p)||e.transmuxer.async?((0,n.isPromise)(p)||(p=Promise.resolve(p)),p.then((function(t){d(e,t,f)})).catch((function(e){r(i.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.FRAG_PARSING_ERROR,chunkMeta:l.chunkMeta,fatal:!1,error:e,err:e,reason:"transmuxer-worker flush error"})}))):d(e,p,f)}}))}function u(e,t){if(!((r=t.remuxResult).audio||r.video||r.text||r.id3||r.initSegment))return!1;var r,n=[],i=t.remuxResult,a=i.audio,o=i.video;return a&&c(n,a),o&&c(n,o),e.postMessage({event:"transmuxComplete",data:t},n),!0}function c(e,t){t.data1&&e.push(t.data1.buffer),t.data2&&e.push(t.data2.buffer)}function d(e,t,r){t.reduce((function(t,r){return u(e,r)||t}),!1)||e.postMessage({event:"transmuxComplete",data:t[0]}),e.postMessage({event:"flush",data:r})}},"./src/demux/transmuxer.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{TransmuxConfig:()=>y,TransmuxState:()=>_,default:()=>m,isPromise:()=>v});var n,i=r("./src/events.ts"),a=r("./src/errors.ts"),o=r("./src/crypt/decrypter.ts"),s=r("./src/demux/aacdemuxer.ts"),l=r("./src/demux/mp4demuxer.ts"),u=r("./src/demux/tsdemuxer.ts"),c=r("./src/demux/mp3demuxer.ts"),d=r("./src/remux/mp4-remuxer.ts"),h=r("./src/remux/passthrough-remuxer.ts"),f=r("./src/utils/logger.ts");try{n=self.performance.now.bind(self.performance)}catch(e){f.logger.debug("Unable to use Performance API on this environment"),n=self.Date.now}var p=[{demux:l.default,remux:h.default},{demux:u.default,remux:d.default},{demux:s.default,remux:d.default},{demux:c.default,remux:d.default}],m=function(){function e(e,t,r,n,i){this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=r,this.vendor=n,this.id=i}var t=e.prototype;return t.configure=function(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()},t.push=function(e,t,r,i){var a=this,o=r.transmuxing;o.executeStart=n();var s=new Uint8Array(e),l=this.currentTransmuxState,u=this.transmuxConfig;i&&(this.currentTransmuxState=i);var c=i||l,d=c.contiguous,h=c.discontinuity,f=c.trackSwitch,p=c.accurateTimeOffset,m=c.timeOffset,v=c.initSegmentChange,y=u.audioCodec,_=u.videoCodec,b=u.defaultInitPts,M=u.duration,w=u.initSegmentData,T=function(e,t){var r=null;return e.byteLength>0&&null!=t&&null!=t.key&&null!==t.iv&&null!=t.method&&(r=t),r}(s,t);if(T&&"AES-128"===T.method){var L=this.getDecrypter();if(!L.isSync())return this.decryptionPromise=L.webCryptoDecrypt(s,T.key.buffer,T.iv.buffer).then((function(e){var t=a.push(e,null,r);return a.decryptionPromise=null,t})),this.decryptionPromise;var S=L.softwareDecrypt(s,T.key.buffer,T.iv.buffer);if(!S)return o.executeEnd=n(),g(r);s=new Uint8Array(S)}var k=this.needsProbing(h,f);k&&this.configureTransmuxer(s),(h||f||v||k)&&this.resetInitSegment(w,y,_,M,t),(h||v||k)&&this.resetInitialTimestamp(b),d||this.resetContiguity();var x=this.transmux(s,T,m,p,r),E=this.currentTransmuxState;return E.contiguous=!0,E.discontinuity=!1,E.trackSwitch=!1,o.executeEnd=n(),x},t.flush=function(e){var t=this,r=e.transmuxing;r.executeStart=n();var o=this.decrypter,s=this.currentTransmuxState,l=this.decryptionPromise;if(l)return l.then((function(){return t.flush(e)}));var u=[],c=s.timeOffset;if(o){var d=o.flush();d&&u.push(this.push(d,null,e))}var h=this.demuxer,f=this.remuxer;if(!h||!f)return this.observer.emit(i.Events.ERROR,i.Events.ERROR,{type:a.ErrorTypes.MEDIA_ERROR,details:a.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),r.executeEnd=n(),[g(e)];var p=h.flush(c);return v(p)?p.then((function(r){return t.flushRemux(u,r,e),u})):(this.flushRemux(u,p,e),u)},t.flushRemux=function(e,t,r){var i=t.audioTrack,a=t.videoTrack,o=t.id3Track,s=t.textTrack,l=this.currentTransmuxState,u=l.accurateTimeOffset,c=l.timeOffset;f.logger.log("[transmuxer.ts]: Flushed fragment "+r.sn+(r.part>-1?" p: "+r.part:"")+" of level "+r.level);var d=this.remuxer.remux(i,a,o,s,c,u,!0,this.id);e.push({remuxResult:d,chunkMeta:r}),r.transmuxing.executeEnd=n()},t.resetInitialTimestamp=function(e){var t=this.demuxer,r=this.remuxer;t&&r&&(t.resetTimeStamp(e),r.resetTimeStamp(e))},t.resetContiguity=function(){var e=this.demuxer,t=this.remuxer;e&&t&&(e.resetContiguity(),t.resetNextTimestamp())},t.resetInitSegment=function(e,t,r,n,i){var a=this.demuxer,o=this.remuxer;a&&o&&(a.resetInitSegment(e,t,r,n),o.resetInitSegment(e,t,r,i))},t.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},t.transmux=function(e,t,r,n,i){return t&&"SAMPLE-AES"===t.method?this.transmuxSampleAes(e,t,r,n,i):this.transmuxUnencrypted(e,r,n,i)},t.transmuxUnencrypted=function(e,t,r,n){var i=this.demuxer.demux(e,t,!1,!this.config.progressive),a=i.audioTrack,o=i.videoTrack,s=i.id3Track,l=i.textTrack;return{remuxResult:this.remuxer.remux(a,o,s,l,t,r,!1,this.id),chunkMeta:n}},t.transmuxSampleAes=function(e,t,r,n,i){var a=this;return this.demuxer.demuxSampleAes(e,t,r).then((function(e){return{remuxResult:a.remuxer.remux(e.audioTrack,e.videoTrack,e.id3Track,e.textTrack,r,n,!1,a.id),chunkMeta:i}}))},t.configureTransmuxer=function(e){for(var t,r=this.config,n=this.observer,i=this.typeSupported,a=this.vendor,o=0,s=p.length;o<s;o++)if(p[o].demux.probe(e)){t=p[o];break}t||(f.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),t={demux:l.default,remux:h.default});var u=this.demuxer,c=this.remuxer,d=t.remux,m=t.demux;c&&c instanceof d||(this.remuxer=new d(n,r,i,a)),u&&u instanceof m||(this.demuxer=new m(n,r,i),this.probe=m.probe)},t.needsProbing=function(e,t){return!this.demuxer||!this.remuxer||e||t},t.getDecrypter=function(){var e=this.decrypter;return e||(e=this.decrypter=new o.default(this.config)),e},e}(),g=function(e){return{remuxResult:{},chunkMeta:e}};function v(e){return"then"in e&&e.then instanceof Function}var y=function(e,t,r,n,i){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=r,this.duration=n,this.defaultInitPts=i},_=function(e,t,r,n,i,a){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=r,this.trackSwitch=n,this.timeOffset=i,this.initSegmentChange=a}},"./src/demux/tsdemuxer.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r("./src/demux/adts.ts"),i=r("./src/demux/mpegaudio.ts"),a=r("./src/demux/exp-golomb.ts"),o=r("./src/demux/sample-aes.ts"),s=r("./src/events.ts"),l=r("./src/utils/mp4-tools.ts"),u=r("./src/utils/logger.ts"),c=r("./src/errors.ts"),d=r("./src/types/demuxer.ts");function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}var f=188;function p(e,t,r,n){return{key:e,frame:!1,pts:t,dts:r,units:[],debug:n,length:0}}function m(e,t){return(31&e[t+10])<<8|e[t+11]}function g(e,t,r,n){var i={audio:-1,avc:-1,id3:-1,segmentCodec:"aac"},a=t+3+((15&e[t+1])<<8|e[t+2])-4;for(t+=12+((15&e[t+10])<<8|e[t+11]);t<a;){var o=(31&e[t+1])<<8|e[t+2];switch(e[t]){case 207:if(!n){u.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:-1===i.audio&&(i.audio=o);break;case 21:-1===i.id3&&(i.id3=o);break;case 219:if(!n){u.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:-1===i.avc&&(i.avc=o);break;case 3:case 4:!0!==r.mpeg&&!0!==r.mp3?u.logger.log("MPEG audio found, not supported in this browser"):-1===i.audio&&(i.audio=o,i.segmentCodec="mp3");break;case 36:u.logger.warn("Unsupported HEVC stream type found")}t+=5+((15&e[t+3])<<8|e[t+4])}return i}function v(e){var t,r,n,i,a,o=0,s=e.data;if(!e||0===e.size)return null;for(;s[0].length<19&&s.length>1;){var l=new Uint8Array(s[0].length+s[1].length);l.set(s[0]),l.set(s[1],s[0].length),s[0]=l,s.splice(1,1)}if(1===((t=s[0])[0]<<16)+(t[1]<<8)+t[2]){if((r=(t[4]<<8)+t[5])&&r>e.size-6)return null;var c=t[7];192&c&&(i=536870912*(14&t[9])+4194304*(255&t[10])+16384*(254&t[11])+128*(255&t[12])+(254&t[13])/2,64&c?i-(a=536870912*(14&t[14])+4194304*(255&t[15])+16384*(254&t[16])+128*(255&t[17])+(254&t[18])/2)>54e5&&(u.logger.warn(Math.round((i-a)/9e4)+"s delta between PTS and DTS, align them"),i=a):a=i);var d=(n=t[8])+9;if(e.size<=d)return null;e.size-=d;for(var h=new Uint8Array(e.size),f=0,p=s.length;f<p;f++){var m=(t=s[f]).byteLength;if(d){if(d>m){d-=m;continue}t=t.subarray(d),m-=d,d=0}h.set(t,o),o+=m}return r&&(r-=n+3),{data:h,pts:i,dts:a,len:r}}return null}function y(e,t){if(e.units.length&&e.frame){if(void 0===e.pts){var r=t.samples,n=r.length;if(!n)return void t.dropped++;var i=r[n-1];e.pts=i.pts,e.dts=i.dts}t.samples.push(e)}e.debug.length&&u.logger.log(e.pts+"/"+e.dts+":"+e.debug)}const _=function(){function e(e,t,r){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=e,this.config=t,this.typeSupported=r}e.probe=function(t){var r=e.syncOffset(t);return r>0&&u.logger.warn("MPEG2-TS detected but first sync word found @ offset "+r),-1!==r},e.syncOffset=function(e){for(var t=Math.min(940,e.length-376)+1,r=0;r<t;){if(71===e[r]&&71===e[r+f])return r;r++}return-1},e.createTrack=function(e,t){return{container:"video"===e||"audio"===e?"video/mp2t":void 0,type:e,id:l.RemuxerTrackIdConfig[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===e?t:void 0}};var t=e.prototype;return t.resetInitSegment=function(t,r,n,i){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=e.createTrack("video"),this._audioTrack=e.createTrack("audio",i),this._id3Track=e.createTrack("id3"),this._txtTrack=e.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.audioCodec=r,this.videoCodec=n,this._duration=i},t.resetTimeStamp=function(){},t.resetContiguity=function(){var e=this._audioTrack,t=this._avcTrack,r=this._id3Track;e&&(e.pesData=null),t&&(t.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.avcSample=null,this.remainderData=null},t.demux=function(t,r,n,i){var a;void 0===n&&(n=!1),void 0===i&&(i=!1),n||(this.sampleAes=null);var o=this._avcTrack,d=this._audioTrack,h=this._id3Track,p=this._txtTrack,y=o.pid,_=o.pesData,b=d.pid,M=h.pid,w=d.pesData,T=h.pesData,L=null,S=this.pmtParsed,k=this._pmtId,x=t.length;if(this.remainderData&&(x=(t=(0,l.appendUint8Array)(this.remainderData,t)).length,this.remainderData=null),x<f&&!i)return this.remainderData=t,{audioTrack:d,videoTrack:o,id3Track:h,textTrack:p};var E=Math.max(0,e.syncOffset(t));(x-=(x-E)%f)<t.byteLength&&!i&&(this.remainderData=new Uint8Array(t.buffer,x,t.buffer.byteLength-x));for(var D=0,A=E;A<x;A+=f)if(71===t[A]){var O=!!(64&t[A+1]),P=((31&t[A+1])<<8)+t[A+2],R=void 0;if((48&t[A+3])>>4>1){if((R=A+5+t[A+4])===A+f)continue}else R=A+4;switch(P){case y:O&&(_&&(a=v(_))&&this.parseAVCPES(o,p,a,!1),_={data:[],size:0}),_&&(_.data.push(t.subarray(R,A+f)),_.size+=A+f-R);break;case b:if(O){if(w&&(a=v(w)))switch(d.segmentCodec){case"aac":this.parseAACPES(d,a);break;case"mp3":this.parseMPEGPES(d,a)}w={data:[],size:0}}w&&(w.data.push(t.subarray(R,A+f)),w.size+=A+f-R);break;case M:O&&(T&&(a=v(T))&&this.parseID3PES(h,a),T={data:[],size:0}),T&&(T.data.push(t.subarray(R,A+f)),T.size+=A+f-R);break;case 0:O&&(R+=t[R]+1),k=this._pmtId=m(t,R);break;case k:O&&(R+=t[R]+1);var I=g(t,R,this.typeSupported,n);(y=I.avc)>0&&(o.pid=y),(b=I.audio)>0&&(d.pid=b,d.segmentCodec=I.segmentCodec),(M=I.id3)>0&&(h.pid=M),null===L||S||(u.logger.log("unknown PID '"+L+"' in TS found"),L=null,A=E-188),S=this.pmtParsed=!0;break;case 17:case 8191:break;default:L=P}}else D++;D>0&&this.observer.emit(s.Events.ERROR,s.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"Found "+D+" TS packet/s that do not start with 0x47"}),o.pesData=_,d.pesData=w,h.pesData=T;var Y={audioTrack:d,videoTrack:o,id3Track:h,textTrack:p};return i&&this.extractRemainingSamples(Y),Y},t.flush=function(){var e,t=this.remainderData;return this.remainderData=null,e=t?this.demux(t,-1,!1,!0):{videoTrack:this._avcTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(e),this.sampleAes?this.decrypt(e,this.sampleAes):e},t.extractRemainingSamples=function(e){var t,r=e.audioTrack,n=e.videoTrack,i=e.id3Track,a=e.textTrack,o=n.pesData,s=r.pesData,l=i.pesData;if(o&&(t=v(o))?(this.parseAVCPES(n,a,t,!0),n.pesData=null):n.pesData=o,s&&(t=v(s))){switch(r.segmentCodec){case"aac":this.parseAACPES(r,t);break;case"mp3":this.parseMPEGPES(r,t)}r.pesData=null}else null!=s&&s.size&&u.logger.log("last AAC PES packet truncated,might overlap between fragments"),r.pesData=s;l&&(t=v(l))?(this.parseID3PES(i,t),i.pesData=null):i.pesData=l},t.demuxSampleAes=function(e,t,r){var n=this.demux(e,r,!0,!this.config.progressive),i=this.sampleAes=new o.default(this.observer,this.config,t);return this.decrypt(n,i)},t.decrypt=function(e,t){return new Promise((function(r){var n=e.audioTrack,i=e.videoTrack;n.samples&&"aac"===n.segmentCodec?t.decryptAacSamples(n.samples,0,(function(){i.samples?t.decryptAvcSamples(i.samples,0,0,(function(){r(e)})):r(e)})):i.samples&&t.decryptAvcSamples(i.samples,0,0,(function(){r(e)}))}))},t.destroy=function(){this._duration=0},t.parseAVCPES=function(e,t,r,n){var i,o=this,s=this.parseAVCNALu(e,r.data),u=this.avcSample,c=!1;r.data=null,u&&s.length&&!e.audFound&&(y(u,e),u=this.avcSample=p(!1,r.pts,r.dts,"")),s.forEach((function(n){switch(n.type){case 1:i=!0,u||(u=o.avcSample=p(!0,r.pts,r.dts,"")),u.frame=!0;var s=n.data;if(c&&s.length>4){var d=new a.default(s).readSliceType();2!==d&&4!==d&&7!==d&&9!==d||(u.key=!0)}break;case 5:i=!0,u||(u=o.avcSample=p(!0,r.pts,r.dts,"")),u.key=!0,u.frame=!0;break;case 6:i=!0,(0,l.parseSEIMessageFromNALu)(n.data,1,r.pts,t.samples);break;case 7:if(i=!0,c=!0,!e.sps){var h=new a.default(n.data).readSPS();e.width=h.width,e.height=h.height,e.pixelRatio=h.pixelRatio,e.sps=[n.data],e.duration=o._duration;for(var f=n.data.subarray(1,4),m="avc1.",g=0;g<3;g++){var v=f[g].toString(16);v.length<2&&(v="0"+v),m+=v}e.codec=m}break;case 8:i=!0,e.pps||(e.pps=[n.data]);break;case 9:i=!1,e.audFound=!0,u&&y(u,e),u=o.avcSample=p(!1,r.pts,r.dts,"");break;case 12:i=!0;break;default:i=!1,u&&(u.debug+="unknown NAL "+n.type+" ")}u&&i&&u.units.push(n)})),n&&u&&(y(u,e),this.avcSample=null)},t.getLastNalUnit=function(e){var t,r,n=this.avcSample;if(n&&0!==n.units.length||(n=e[e.length-1]),null!==(t=n)&&void 0!==t&&t.units){var i=n.units;r=i[i.length-1]}return r},t.parseAVCNALu=function(e,t){var r,n,i=t.byteLength,a=e.naluState||0,o=a,s=[],l=0,u=-1,c=0;for(-1===a&&(u=0,c=31&t[0],a=0,l=1);l<i;)if(r=t[l++],a)if(1!==a)if(r)if(1===r){if(u>=0){var d={data:t.subarray(u,l-a-1),type:c};s.push(d)}else{var h=this.getLastNalUnit(e.samples);if(h&&(o&&l<=4-o&&h.state&&(h.data=h.data.subarray(0,h.data.byteLength-o)),(n=l-a-1)>0)){var f=new Uint8Array(h.data.byteLength+n);f.set(h.data,0),f.set(t.subarray(0,n),h.data.byteLength),h.data=f,h.state=0}}l<i?(u=l,c=31&t[l],a=0):a=-1}else a=0;else a=3;else a=r?0:2;else a=r?0:1;if(u>=0&&a>=0){var p={data:t.subarray(u,i),type:c,state:a};s.push(p)}if(0===s.length){var m=this.getLastNalUnit(e.samples);if(m){var g=new Uint8Array(m.data.byteLength+t.byteLength);g.set(m.data,0),g.set(t,m.data.byteLength),m.data=g}}return e.naluState=a,s},t.parseAACPES=function(e,t){var r,i,a,o,l,d=0,h=this.aacOverFlow,f=t.data;if(h){this.aacOverFlow=null;var p=h.missing,m=h.sample.unit.byteLength;if(-1===p){var g=new Uint8Array(m+f.byteLength);g.set(h.sample.unit,0),g.set(f,m),f=g}else{var v=m-p;h.sample.unit.set(f.subarray(0,p),v),e.samples.push(h.sample),d=h.missing}}for(r=d,i=f.length;r<i-1&&!n.isHeader(f,r);r++);if(r===d||(r<i-1?(a="AAC PES did not start with ADTS header,offset:"+r,o=!1):(a="no ADTS header found in AAC PES",o=!0),u.logger.warn("parsing error:"+a),this.observer.emit(s.Events.ERROR,s.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.FRAG_PARSING_ERROR,fatal:o,reason:a}),!o)){if(n.initTrackConfig(e,this.observer,f,r,this.audioCodec),void 0!==t.pts)l=t.pts;else{if(!h)return void u.logger.warn("[tsdemuxer]: AAC PES unknown PTS");var y=n.getFrameDuration(e.samplerate);l=h.sample.pts+y}for(var _,b=0;r<i;){if(r+=(_=n.appendFrame(e,f,r,l,b)).length,_.missing){this.aacOverFlow=_;break}for(b++;r<i-1&&!n.isHeader(f,r);r++);}}},t.parseMPEGPES=function(e,t){var r=t.data,n=r.length,a=0,o=0,s=t.pts;if(void 0!==s)for(;o<n;)if(i.isHeader(r,o)){var l=i.appendFrame(e,r,o,s,a);if(!l)break;o+=l.length,a++}else o++;else u.logger.warn("[tsdemuxer]: MPEG PES unknown PTS")},t.parseID3PES=function(e,t){if(void 0!==t.pts){var r=h({},t,{type:this._avcTrack?d.MetadataSchema.emsg:d.MetadataSchema.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(r)}else u.logger.warn("[tsdemuxer]: ID3 PES unknown PTS")},e}()},"./src/demux/webworkify-webpack.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=function(){var e=ENTRY_MODULE,t={},r=function r(n){var i=t[n];if(void 0!==i)return i.exports;var a=t[n]={exports:{}};return e[n].call(a.exports,a,a.exports,r),a.exports};r.m=e,r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n=r(ENTRY_MODULE);return n.default||n}.toString().split("ENTRY_MODULE"),i="[\\.|\\-|\\+|\\w|/|@]+",a="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+i+").*?\\)";function o(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function s(e,t,n){var s={};s[n]=[];var l=t.toString().replace(/^"[^"]+"/,"function"),u=l.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/)||l.match(/^\(\w+,\s*\w+,\s*(\w+)\)\s?\=\s?\>/);if(!u)return s;for(var c,d=u[1],h=new RegExp("(\\\\n|\\W)"+o(d)+a,"g");c=h.exec(l);)"dll-reference"!==c[3]&&s[n].push(c[3]);for(h=new RegExp("\\("+o(d)+'\\("(dll-reference\\s('+i+'))"\\)\\)'+a,"g");c=h.exec(l);)e[c[2]]||(s[n].push(c[1]),e[c[2]]=r(c[1]).m),s[c[2]]=s[c[2]]||[],s[c[2]].push(c[4]);for(var f,p=Object.keys(s),m=0;m<p.length;m++)for(var g=0;g<s[p[m]].length;g++)f=s[p[m]][g],isNaN(1*f)||(s[p[m]][g]=1*s[p[m]][g]);return s}function l(e){return Object.keys(e).reduce((function(t,r){return t||e[r].length>0}),!1)}function u(e,t,r,i){var a=e[i].map((function(e){return'"'+e+'": '+t[i][e].toString().replace(/^"[^"]+"/,"function")})).join(",");return n[0]+"{"+a+"}"+n[1]+'"'+r+'"'+n[2]}function c(e,t){t=t||{};var n={main:r.m},i=t.all?{main:Object.keys(n.main)}:function(e,t){for(var r={main:[t]},n={main:[]},i={main:{}};l(r);)for(var a=Object.keys(r),o=0;o<a.length;o++){var u=a[o],c=r[u].pop();if(i[u]=i[u]||{},!i[u][c]&&e[u][c]){i[u][c]=!0,n[u]=n[u]||[],n[u].push(c);for(var d=s(e,e[u][c],u),h=Object.keys(d),f=0;f<h.length;f++)r[h[f]]=r[h[f]]||[],r[h[f]]=r[h[f]].concat(d[h[f]])}}return n}(n,e),a="";Object.keys(i).filter((function(e){return"main"!==e})).forEach((function(e){for(var t=0;i[e][t];)t++;i[e].push(t),n[e][t]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",a=a+"var "+e+" = ("+u(i,n,t,modules)+")();\n"})),a=a+"new (("+u(i,n,e,"main")+")())(self);";var o=new window.Blob([a],{type:"text/javascript"}),c=(window.URL||window.webkitURL||window.mozURL||window.msURL).createObjectURL(o),d=new window.Worker(c);return d.objectURL=c,d}},"./src/errors.ts":(e,t,r)=>{"use strict";var n,i;r.r(t),r.d(t,{ErrorDetails:()=>i,ErrorTypes:()=>n}),function(e){e.NETWORK_ERROR="networkError",e.MEDIA_ERROR="mediaError",e.KEY_SYSTEM_ERROR="keySystemError",e.MUX_ERROR="muxError",e.OTHER_ERROR="otherError"}(n||(n={})),function(e){e.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",e.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",e.KEY_SYSTEM_NO_SESSION="keySystemNoSession",e.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",e.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",e.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",e.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",e.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",e.MANIFEST_LOAD_ERROR="manifestLoadError",e.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",e.MANIFEST_PARSING_ERROR="manifestParsingError",e.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",e.LEVEL_EMPTY_ERROR="levelEmptyError",e.LEVEL_LOAD_ERROR="levelLoadError",e.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",e.LEVEL_SWITCH_ERROR="levelSwitchError",e.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",e.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",e.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",e.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",e.FRAG_LOAD_ERROR="fragLoadError",e.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",e.FRAG_DECRYPT_ERROR="fragDecryptError",e.FRAG_PARSING_ERROR="fragParsingError",e.REMUX_ALLOC_ERROR="remuxAllocError",e.KEY_LOAD_ERROR="keyLoadError",e.KEY_LOAD_TIMEOUT="keyLoadTimeOut",e.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",e.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",e.BUFFER_APPEND_ERROR="bufferAppendError",e.BUFFER_APPENDING_ERROR="bufferAppendingError",e.BUFFER_STALLED_ERROR="bufferStalledError",e.BUFFER_FULL_ERROR="bufferFullError",e.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",e.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",e.INTERNAL_EXCEPTION="internalException",e.INTERNAL_ABORTED="aborted",e.UNKNOWN="unknown"}(i||(i={}))},"./src/events.ts":(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{Events:()=>n}),function(e){e.MEDIA_ATTACHING="hlsMediaAttaching",e.MEDIA_ATTACHED="hlsMediaAttached",e.MEDIA_DETACHING="hlsMediaDetaching",e.MEDIA_DETACHED="hlsMediaDetached",e.BUFFER_RESET="hlsBufferReset",e.BUFFER_CODECS="hlsBufferCodecs",e.BUFFER_CREATED="hlsBufferCreated",e.BUFFER_APPENDING="hlsBufferAppending",e.BUFFER_APPENDED="hlsBufferAppended",e.BUFFER_EOS="hlsBufferEos",e.BUFFER_FLUSHING="hlsBufferFlushing",e.BUFFER_FLUSHED="hlsBufferFlushed",e.MANIFEST_LOADING="hlsManifestLoading",e.MANIFEST_LOADED="hlsManifestLoaded",e.MANIFEST_PARSED="hlsManifestParsed",e.LEVEL_SWITCHING="hlsLevelSwitching",e.LEVEL_SWITCHED="hlsLevelSwitched",e.LEVEL_LOADING="hlsLevelLoading",e.LEVEL_LOADED="hlsLevelLoaded",e.LEVEL_UPDATED="hlsLevelUpdated",e.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",e.LEVELS_UPDATED="hlsLevelsUpdated",e.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",e.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",e.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",e.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",e.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",e.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",e.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",e.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",e.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",e.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",e.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",e.CUES_PARSED="hlsCuesParsed",e.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",e.INIT_PTS_FOUND="hlsInitPtsFound",e.FRAG_LOADING="hlsFragLoading",e.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",e.FRAG_LOADED="hlsFragLoaded",e.FRAG_DECRYPTED="hlsFragDecrypted",e.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",e.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",e.FRAG_PARSING_METADATA="hlsFragParsingMetadata",e.FRAG_PARSED="hlsFragParsed",e.FRAG_BUFFERED="hlsFragBuffered",e.FRAG_CHANGED="hlsFragChanged",e.FPS_DROP="hlsFpsDrop",e.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",e.ERROR="hlsError",e.DESTROYING="hlsDestroying",e.KEY_LOADING="hlsKeyLoading",e.KEY_LOADED="hlsKeyLoaded",e.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",e.BACK_BUFFER_REACHED="hlsBackBufferReached"}(n||(n={}))},"./src/hls.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r("./node_modules/url-toolkit/src/url-toolkit.js"),i=r("./src/loader/playlist-loader.ts"),a=r("./src/controller/id3-track-controller.ts"),o=r("./src/controller/latency-controller.ts"),s=r("./src/controller/level-controller.ts"),l=r("./src/controller/fragment-tracker.ts"),u=r("./src/loader/key-loader.ts"),c=r("./src/controller/stream-controller.ts"),d=r("./src/is-supported.ts"),h=r("./src/utils/logger.ts"),f=r("./src/config.ts"),p=r("./node_modules/eventemitter3/index.js"),m=r("./src/events.ts"),g=r("./src/errors.ts"),v=r("./src/types/level.ts");function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i)),n)}var i}var _=function(){function e(t){void 0===t&&(t={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new p.EventEmitter,this._autoLevelCapping=void 0,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null;var r=this.config=(0,f.mergeConfig)(e.DefaultConfig,t);this.userConfig=t,(0,h.enableLogs)(r.debug,"Hls instance"),this._autoLevelCapping=-1,r.progressive&&(0,f.enableStreamingMode)(r);var n=r.abrController,d=r.bufferController,m=r.capLevelController,g=r.fpsController,v=this.abrController=new n(this),y=this.bufferController=new d(this),_=this.capLevelController=new m(this),b=new g(this),M=new i.default(this),w=new a.default(this),T=this.levelController=new s.default(this),L=new l.FragmentTracker(this),S=new u.default(this.config),k=this.streamController=new c.default(this,L,S);_.setStreamController(k),b.setStreamController(k);var x=[M,T,k];this.networkControllers=x;var E=[v,y,_,b,w,L];this.audioTrackController=this.createController(r.audioTrackController,x);var D=r.audioStreamController;D&&x.push(new D(this,L,S)),this.subtitleTrackController=this.createController(r.subtitleTrackController,x);var A=r.subtitleStreamController;A&&x.push(new A(this,L,S)),this.createController(r.timelineController,E),S.emeController=this.emeController=this.createController(r.emeController,E),this.cmcdController=this.createController(r.cmcdController,E),this.latencyController=this.createController(o.default,E),this.coreComponents=E}e.isSupported=function(){return(0,d.isSupported)()};var t,r,_,b=e.prototype;return b.createController=function(e,t){if(e){var r=new e(this);return t&&t.push(r),r}return null},b.on=function(e,t,r){void 0===r&&(r=this),this._emitter.on(e,t,r)},b.once=function(e,t,r){void 0===r&&(r=this),this._emitter.once(e,t,r)},b.removeAllListeners=function(e){this._emitter.removeAllListeners(e)},b.off=function(e,t,r,n){void 0===r&&(r=this),this._emitter.off(e,t,r,n)},b.listeners=function(e){return this._emitter.listeners(e)},b.emit=function(e,t,r){return this._emitter.emit(e,t,r)},b.trigger=function(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(t){h.logger.error("An internal error happened while handling event "+e+'. Error message: "'+t.message+'". Here is a stacktrace:',t),this.trigger(m.Events.ERROR,{type:g.ErrorTypes.OTHER_ERROR,details:g.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:e,error:t})}return!1},b.listenerCount=function(e){return this._emitter.listenerCount(e)},b.destroy=function(){h.logger.log("destroy"),this.trigger(m.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach((function(e){return e.destroy()})),this.networkControllers.length=0,this.coreComponents.forEach((function(e){return e.destroy()})),this.coreComponents.length=0},b.attachMedia=function(e){h.logger.log("attachMedia"),this._media=e,this.trigger(m.Events.MEDIA_ATTACHING,{media:e})},b.detachMedia=function(){h.logger.log("detachMedia"),this.trigger(m.Events.MEDIA_DETACHING,void 0),this._media=null},b.loadSource=function(e){this.stopLoad();var t=this.media,r=this.url,i=this.url=n.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});h.logger.log("loadSource:"+i),t&&r&&r!==i&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(t)),this.trigger(m.Events.MANIFEST_LOADING,{url:e})},b.startLoad=function(e){void 0===e&&(e=-1),h.logger.log("startLoad("+e+")"),this.networkControllers.forEach((function(t){t.startLoad(e)}))},b.stopLoad=function(){h.logger.log("stopLoad"),this.networkControllers.forEach((function(e){e.stopLoad()}))},b.swapAudioCodec=function(){h.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},b.recoverMediaError=function(){h.logger.log("recoverMediaError");var e=this._media;this.detachMedia(),e&&this.attachMedia(e)},b.removeLevel=function(e,t){void 0===t&&(t=0),this.levelController.removeLevel(e,t)},t=e,_=[{key:"version",get:function(){return"1.3.1"}},{key:"Events",get:function(){return m.Events}},{key:"ErrorTypes",get:function(){return g.ErrorTypes}},{key:"ErrorDetails",get:function(){return g.ErrorDetails}},{key:"DefaultConfig",get:function(){return e.defaultConfig?e.defaultConfig:f.hlsDefaultConfig},set:function(t){e.defaultConfig=t}}],(r=[{key:"levels",get:function(){return this.levelController.levels||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(e){h.logger.log("set currentLevel:"+e),this.loadLevel=e,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(e){h.logger.log("set nextLevel:"+e),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(e){h.logger.log("set loadLevel:"+e),this.levelController.manualLevel=e}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(e){this.levelController.nextLoadLevel=e}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(e){h.logger.log("set firstLevel:"+e),this.levelController.firstLevel=e}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(e){h.logger.log("set startLevel:"+e),-1!==e&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(e){var t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(e){this._autoLevelCapping!==e&&(h.logger.log("set autoLevelCapping:"+e),this._autoLevelCapping=e)}},{key:"bandwidthEstimate",get:function(){var e=this.abrController.bwEstimator;return e?e.getEstimate():NaN}},{key:"maxHdcpLevel",get:function(){return this._maxHdcpLevel},set:function(e){v.HdcpLevels.indexOf(e)>-1&&(this._maxHdcpLevel=e)}},{key:"autoLevelEnabled",get:function(){return-1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var e=this.levels,t=this.config.minAutoBitrate;if(!e)return 0;for(var r=e.length,n=0;n<r;n++)if(e[n].maxBitrate>=t)return n;return 0}},{key:"maxAutoLevel",get:function(){var e,t=this.levels,r=this.autoLevelCapping,n=this.maxHdcpLevel;if(e=-1===r&&t&&t.length?t.length-1:r,n)for(var i=e;i--;){var a=t[i].attrs["HDCP-LEVEL"];if(a&&a<=n)return i}return e}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(e){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,e)}},{key:"playingDate",get:function(){return this.streamController.currentProgramDateTime}},{key:"mainForwardBufferInfo",get:function(){return this.streamController.getMainFwdBufferInfo()}},{key:"audioTracks",get:function(){var e=this.audioTrackController;return e?e.audioTracks:[]}},{key:"audioTrack",get:function(){var e=this.audioTrackController;return e?e.audioTrack:-1},set:function(e){var t=this.audioTrackController;t&&(t.audioTrack=e)}},{key:"subtitleTracks",get:function(){var e=this.subtitleTrackController;return e?e.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var e=this.subtitleTrackController;return e?e.subtitleTrack:-1},set:function(e){var t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var e=this.subtitleTrackController;return!!e&&e.subtitleDisplay},set:function(e){var t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(e){this.config.lowLatencyMode=e}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}])&&y(t.prototype,r),_&&y(t,_),Object.defineProperty(t,"prototype",{writable:!1}),e}();_.defaultConfig=void 0},"./src/is-supported.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{changeTypeSupported:()=>o,isSupported:()=>a});var n=r("./src/utils/mediasource-helper.ts");function i(){return self.SourceBuffer||self.WebKitSourceBuffer}function a(){var e=(0,n.getMediaSource)();if(!e)return!1;var t=i(),r=e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),a=!t||t.prototype&&"function"==typeof t.prototype.appendBuffer&&"function"==typeof t.prototype.remove;return!!r&&!!a}function o(){var e,t=i();return"function"==typeof(null==t||null===(e=t.prototype)||void 0===e?void 0:e.changeType)}},"./src/loader/date-range.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{DateRange:()=>u,DateRangeAttribute:()=>n});var n,i=r("./src/polyfills/number.ts"),a=r("./src/utils/attr-list.ts"),o=r("./src/utils/logger.ts");function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i)),n)}var i}!function(e){e.ID="ID",e.CLASS="CLASS",e.START_DATE="START-DATE",e.DURATION="DURATION",e.END_DATE="END-DATE",e.END_ON_NEXT="END-ON-NEXT",e.PLANNED_DURATION="PLANNED-DURATION",e.SCTE35_OUT="SCTE35-OUT",e.SCTE35_IN="SCTE35-IN"}(n||(n={}));var u=function(){function e(e,t){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,t){var r=t.attr;for(var l in r)if(Object.prototype.hasOwnProperty.call(e,l)&&e[l]!==r[l]){o.logger.warn('DATERANGE tag attribute: "'+l+'" does not match for tags with ID: "'+e.ID+'"'),this._badValueForSameId=l;break}e=s(new a.AttrList({}),r,e)}if(this.attr=e,this._startDate=new Date(e[n.START_DATE]),n.END_DATE in this.attr){var u=new Date(this.attr[n.END_DATE]);(0,i.isFiniteNumber)(u.getTime())&&(this._endDate=u)}}var t,r;return t=e,(r=[{key:"id",get:function(){return this.attr.ID}},{key:"class",get:function(){return this.attr.CLASS}},{key:"startDate",get:function(){return this._startDate}},{key:"endDate",get:function(){if(this._endDate)return this._endDate;var e=this.duration;return null!==e?new Date(this._startDate.getTime()+1e3*e):null}},{key:"duration",get:function(){if(n.DURATION in this.attr){var e=this.attr.decimalFloatingPoint(n.DURATION);if((0,i.isFiniteNumber)(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}},{key:"plannedDuration",get:function(){return n.PLANNED_DURATION in this.attr?this.attr.decimalFloatingPoint(n.PLANNED_DURATION):null}},{key:"endOnNext",get:function(){return this.attr.bool(n.END_ON_NEXT)}},{key:"isValid",get:function(){return!!this.id&&!this._badValueForSameId&&(0,i.isFiniteNumber)(this.startDate.getTime())&&(null===this.duration||this.duration>=0)&&(!this.endOnNext||!!this.class)}}])&&l(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},"./src/loader/fragment-loader.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{LoadError:()=>f,default:()=>d});var n=r("./src/polyfills/number.ts"),i=r("./src/errors.ts");function a(e){var t="function"==typeof Map?new Map:void 0;return a=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return o(e,arguments,u(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,e)},a(e)}function o(e,t,r){return o=s()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&l(i,r.prototype),i},o.apply(null,arguments)}function s(){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(e){return!1}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var c=Math.pow(2,17),d=function(){function e(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}var t=e.prototype;return t.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},t.abort=function(){this.loader&&this.loader.abort()},t.load=function(e,t){var r=this,n=e.url;if(!n)return Promise.reject(new f({type:i.ErrorTypes.NETWORK_ERROR,details:i.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:e,networkDetails:null},"Fragment does not have a "+(n?"part list":"url")));this.abort();var a=this.config,o=a.fLoader,s=a.loader;return new Promise((function(n,l){r.loader&&r.loader.destroy();var u=r.loader=e.loader=o?new o(a):new s(a),d=h(e),p={timeout:a.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:a.fragLoadingMaxRetryTimeout,highWaterMark:"initSegment"===e.sn?1/0:c};e.stats=u.stats,u.load(d,p,{onSuccess:function(t,i,a,o){r.resetLoader(e,u);var s=t.data;a.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(s.slice(0,16)),s=s.slice(16)),n({frag:e,part:null,payload:s,networkDetails:o})},onError:function(t,n,a){r.resetLoader(e,u),l(new f({type:i.ErrorTypes.NETWORK_ERROR,details:i.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:t,networkDetails:a}))},onAbort:function(t,n,a){r.resetLoader(e,u),l(new f({type:i.ErrorTypes.NETWORK_ERROR,details:i.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:e,networkDetails:a}))},onTimeout:function(t,n,a){r.resetLoader(e,u),l(new f({type:i.ErrorTypes.NETWORK_ERROR,details:i.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,networkDetails:a}))},onProgress:function(r,n,i,a){t&&t({frag:e,part:null,payload:i,networkDetails:a})}})}))},t.loadPart=function(e,t,r){var n=this;this.abort();var a=this.config,o=a.fLoader,s=a.loader;return new Promise((function(l,u){n.loader&&n.loader.destroy();var d=n.loader=e.loader=o?new o(a):new s(a),p=h(e,t),m={timeout:a.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:a.fragLoadingMaxRetryTimeout,highWaterMark:c};t.stats=d.stats,d.load(p,m,{onSuccess:function(i,a,o,s){n.resetLoader(e,d),n.updateStatsFromPart(e,t);var u={frag:e,part:t,payload:i.data,networkDetails:s};r(u),l(u)},onError:function(r,a,o){n.resetLoader(e,d),u(new f({type:i.ErrorTypes.NETWORK_ERROR,details:i.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:r,networkDetails:o}))},onAbort:function(r,a,o){e.stats.aborted=t.stats.aborted,n.resetLoader(e,d),u(new f({type:i.ErrorTypes.NETWORK_ERROR,details:i.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,networkDetails:o}))},onTimeout:function(r,a,o){n.resetLoader(e,d),u(new f({type:i.ErrorTypes.NETWORK_ERROR,details:i.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,networkDetails:o}))}})}))},t.updateStatsFromPart=function(e,t){var r=e.stats,n=t.stats,i=n.total;if(r.loaded+=n.loaded,i){var a=Math.round(e.duration/t.duration),o=Math.min(Math.round(r.loaded/i),a),s=(a-o)*Math.round(r.loaded/o);r.total=r.loaded+s}else r.total=Math.max(r.loaded,r.total);var l=r.loading,u=n.loading;l.start?l.first+=u.first-u.start:(l.start=u.start,l.first=u.first),l.end=u.end},t.resetLoader=function(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()},e}();function h(e,t){void 0===t&&(t=null);var r=t||e,i={frag:e,part:t,responseType:"arraybuffer",url:r.url,headers:{},rangeStart:0,rangeEnd:0},a=r.byteRangeStartOffset,o=r.byteRangeEndOffset;if((0,n.isFiniteNumber)(a)&&(0,n.isFiniteNumber)(o)){var s,l=a,u=o;if("initSegment"===e.sn&&"AES-128"===(null===(s=e.decryptdata)||void 0===s?void 0:s.method)){var c=o-a;c%16&&(u=o+(16-c%16)),0!==a&&(i.resetIV=!0,l=a-16)}i.rangeStart=l,i.rangeEnd=u}return i}var f=function(e){var t,r;function n(t){for(var r,n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return(r=e.call.apply(e,[this].concat(i))||this).data=void 0,r.data=t,r}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,l(t,r),n}(a(Error))},"./src/loader/fragment.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{BaseSegment:()=>d,ElementaryStreamTypes:()=>n,Fragment:()=>h,Part:()=>f});var n,i=r("./src/polyfills/number.ts"),a=r("./node_modules/url-toolkit/src/url-toolkit.js"),o=r("./src/loader/load-stats.ts");function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,l(e,t)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i)),n)}var i}function c(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}!function(e){e.AUDIO="audio",e.VIDEO="video",e.AUDIOVIDEO="audiovideo"}(n||(n={}));var d=function(){function e(e){var t;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=((t={})[n.AUDIO]=null,t[n.VIDEO]=null,t[n.AUDIOVIDEO]=null,t),this.baseurl=e}return e.prototype.setByteRange=function(e,t){var r=e.split("@",2),n=[];1===r.length?n[0]=t?t.byteRangeEndOffset:0:n[0]=parseInt(r[1]),n[1]=parseInt(r[0])+n[0],this._byteRange=n},c(e,[{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=(0,a.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(e){this._url=e}}]),e}(),h=function(e){function t(t,r){var n;return(n=e.call(this,r)||this)._decryptdata=null,n.rawProgramDateTime=null,n.programDateTime=null,n.tagList=[],n.duration=0,n.sn=0,n.levelkeys=void 0,n.type=void 0,n.loader=null,n.keyLoader=null,n.level=-1,n.cc=0,n.startPTS=void 0,n.endPTS=void 0,n.appendedPTS=void 0,n.startDTS=void 0,n.endDTS=void 0,n.start=0,n.deltaPTS=void 0,n.maxStartPTS=void 0,n.minEndPTS=void 0,n.stats=new o.LoadStats,n.urlId=0,n.data=void 0,n.bitrateTest=!1,n.title=null,n.initSegment=null,n.endList=void 0,n.type=t,n}s(t,e);var r=t.prototype;return r.setKeyFormat=function(e){if(this.levelkeys){var t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}},r.abortRequests=function(){var e,t;null===(e=this.loader)||void 0===e||e.abort(),null===(t=this.keyLoader)||void 0===t||t.abort()},r.setElementaryStreamInfo=function(e,t,r,n,i,a){void 0===a&&(a=!1);var o=this.elementaryStreams,s=o[e];s?(s.startPTS=Math.min(s.startPTS,t),s.endPTS=Math.max(s.endPTS,r),s.startDTS=Math.min(s.startDTS,n),s.endDTS=Math.max(s.endDTS,i)):o[e]={startPTS:t,endPTS:r,startDTS:n,endDTS:i,partial:a}},r.clearElementaryStreamInfo=function(){var e=this.elementaryStreams;e[n.AUDIO]=null,e[n.VIDEO]=null,e[n.AUDIOVIDEO]=null},c(t,[{key:"decryptdata",get:function(){if(!this.levelkeys&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){var e=this.levelkeys.identity;if(e)this._decryptdata=e.getDecryptData(this.sn);else{var t=Object.keys(this.levelkeys);if(1===t.length)return this._decryptdata=this.levelkeys[t[0]].getDecryptData(this.sn)}}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(null===this.programDateTime)return null;if(!(0,i.isFiniteNumber)(this.programDateTime))return null;var e=(0,i.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+1e3*e}},{key:"encrypted",get:function(){var e;if(null!==(e=this._decryptdata)&&void 0!==e&&e.encrypted)return!0;if(this.levelkeys){var t=Object.keys(this.levelkeys),r=t.length;if(r>1||1===r&&this.levelkeys[t[0]].encrypted)return!0}return!1}}]),t}(d),f=function(e){function t(t,r,n,i,a){var s;(s=e.call(this,n)||this).fragOffset=0,s.duration=0,s.gap=!1,s.independent=!1,s.relurl=void 0,s.fragment=void 0,s.index=void 0,s.stats=new o.LoadStats,s.duration=t.decimalFloatingPoint("DURATION"),s.gap=t.bool("GAP"),s.independent=t.bool("INDEPENDENT"),s.relurl=t.enumeratedString("URI"),s.fragment=r,s.index=i;var l=t.enumeratedString("BYTERANGE");return l&&s.setByteRange(l,a),a&&(s.fragOffset=a.fragOffset+a.duration),s}return s(t,e),c(t,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var e=this.elementaryStreams;return!!(e.audio||e.video||e.audiovideo)}}]),t}(d)},"./src/loader/key-loader.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r("./src/errors.ts"),i=r("./src/loader/fragment-loader.ts"),a=function(){function e(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}var t=e.prototype;return t.abort=function(){for(var e in this.keyUriToKeyInfo){var t=this.keyUriToKeyInfo[e].loader;t&&t.abort()}},t.detach=function(){for(var e in this.keyUriToKeyInfo){var t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}},t.destroy=function(){for(var e in this.detach(),this.keyUriToKeyInfo){var t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}},t.createKeyLoadError=function(e,t,r,a){return void 0===t&&(t=n.ErrorDetails.KEY_LOAD_ERROR),new i.LoadError({type:n.ErrorTypes.NETWORK_ERROR,details:t,fatal:!1,frag:e,networkDetails:r})},t.loadClear=function(e,t){var r=this;if(this.emeController&&this.config.emeEnabled)for(var n=e.sn,i=e.cc,a=function(e){var a=t[e];if(i<=a.cc&&("initSegment"===n||n<a.sn))return r.emeController.selectKeySystemFormat(a).then((function(e){a.setKeyFormat(e)})),"break"},o=0;o<t.length&&"break"!==a(o);o++);},t.load=function(e){var t=this;return!e.decryptdata&&e.encrypted&&this.emeController?this.emeController.selectKeySystemFormat(e).then((function(r){return t.loadInternal(e,r)})):this.loadInternal(e)},t.loadInternal=function(e,t){var r,i;t&&e.setKeyFormat(t);var a=e.decryptdata;if(!a){var o=t?"Expected frag.decryptdata to be defined after setting format "+t:"Missing decryption data on fragment in onKeyLoading";return Promise.reject(this.createKeyLoadError(e,n.ErrorDetails.KEY_LOAD_ERROR,null,o))}var s=a.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,n.ErrorDetails.KEY_LOAD_ERROR,null,'Invalid key URI: "'+s+'"'));var l,u=this.keyUriToKeyInfo[s];if(null!==(r=u)&&void 0!==r&&r.decryptdata.key)return a.key=u.decryptdata.key,Promise.resolve({frag:e,keyInfo:u});if(null!==(i=u)&&void 0!==i&&i.keyLoadPromise)switch(null===(l=u.mediaKeySessionContext)||void 0===l?void 0:l.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return u.keyLoadPromise}switch(u=this.keyUriToKeyInfo[s]={decryptdata:a,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},a.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return"identity"===a.keyFormat?this.loadKeyHTTP(u,e):this.loadKeyEME(u,e);case"AES-128":return this.loadKeyHTTP(u,e);default:return Promise.reject(this.createKeyLoadError(e,n.ErrorDetails.KEY_LOAD_ERROR,null,'Key supplied with unsupported METHOD: "'+a.method+'"'))}},t.loadKeyEME=function(e,t){var r={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){var n=this.emeController.loadKey(r);if(n)return(e.keyLoadPromise=n.then((function(t){return e.mediaKeySessionContext=t,r}))).catch((function(t){throw e.keyLoadPromise=null,t}))}return Promise.resolve(r)},t.loadKeyHTTP=function(e,t){var r=this,i=this.config,a=new(0,i.loader)(i);return t.keyLoader=e.loader=a,e.keyLoadPromise=new Promise((function(o,s){var l={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},u={timeout:i.fragLoadingTimeOut,maxRetry:0,retryDelay:i.fragLoadingRetryDelay,maxRetryDelay:i.fragLoadingMaxRetryTimeout,highWaterMark:0},c={onSuccess:function(e,t,i,a){var l=i.frag,u=i.keyInfo,c=i.url;if(!l.decryptdata||u!==r.keyUriToKeyInfo[c])return s(r.createKeyLoadError(l,n.ErrorDetails.KEY_LOAD_ERROR,a,"after key load, decryptdata unset or changed"));u.decryptdata.key=l.decryptdata.key=new Uint8Array(e.data),l.keyLoader=null,u.loader=null,o({frag:l,keyInfo:u})},onError:function(e,i,a){r.resetLoader(i),s(r.createKeyLoadError(t,n.ErrorDetails.KEY_LOAD_ERROR,a))},onTimeout:function(e,i,a){r.resetLoader(i),s(r.createKeyLoadError(t,n.ErrorDetails.KEY_LOAD_TIMEOUT,a))},onAbort:function(e,i,a){r.resetLoader(i),s(r.createKeyLoadError(t,n.ErrorDetails.INTERNAL_ABORTED,a))}};a.load(l,u,c)}))},t.resetLoader=function(e){var t=e.frag,r=e.keyInfo,n=e.url,i=r.loader;t.keyLoader===i&&(t.keyLoader=null,r.loader=null),delete this.keyUriToKeyInfo[n],i&&i.destroy()},e}()},"./src/loader/level-details.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{LevelDetails:()=>a});var n=r("./src/polyfills/number.ts");function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i)),n)}var i}var a=function(){function e(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}var t,r;return e.prototype.reloaded=function(e){if(!e)return this.advanced=!0,void(this.updated=!0);var t=this.lastPartSn-e.lastPartSn,r=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!r||!!t,this.advanced=this.endSN>e.endSN||t>0||0===t&&r>0,this.updated||this.advanced?this.misses=Math.floor(.6*e.misses):this.misses=e.misses+1,this.availabilityDelay=e.availabilityDelay},t=e,(r=[{key:"hasProgramDateTime",get:function(){return!!this.fragments.length&&(0,n.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime)}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||10}},{key:"drift",get:function(){var e=this.driftEndTime-this.driftStartTime;return e>0?1e3*(this.driftEnd-this.driftStart)/e:1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var e;return null!==(e=this.partList)&&void 0!==e&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var e;return null!==(e=this.fragments)&&void 0!==e&&e.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var e;return null!==(e=this.partList)&&void 0!==e&&e.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var e;return null!==(e=this.partList)&&void 0!==e&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}])&&i(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},"./src/loader/level-key.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{LevelKey:()=>u});var n=r("./src/utils/keysystem-util.ts"),i=r("./src/utils/mediakeys-helper.ts"),a=r("./src/utils/mp4-tools.ts"),o=r("./src/utils/logger.ts"),s=r("./src/utils/numeric-encoding-utils.ts"),l={},u=function(){function e(e,t,r,n,i){void 0===n&&(n=[1]),void 0===i&&(i=null),this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=e,this.uri=t,this.keyFormat=r,this.keyFormatVersions=n,this.iv=i,this.encrypted=!!e&&"NONE"!==e,this.isCommonEncryption=this.encrypted&&"AES-128"!==e}e.clearKeyUriToKeyIdMap=function(){l={}};var t=e.prototype;return t.isSupported=function(){if(this.method){if("AES-128"===this.method||"NONE"===this.method)return!0;switch(this.keyFormat){case"identity":return"SAMPLE-AES"===this.method;case i.KeySystemFormats.FAIRPLAY:case i.KeySystemFormats.WIDEVINE:case i.KeySystemFormats.PLAYREADY:case i.KeySystemFormats.CLEARKEY:return-1!==["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)}}return!1},t.getDecryptData=function(t){if(!this.encrypted||!this.uri)return null;if("AES-128"===this.method&&this.uri&&!this.iv){"number"!=typeof t&&("AES-128"!==this.method||this.iv||o.logger.warn('missing IV for initialization segment with method="'+this.method+'" - compliance issue'),t=0);var r=function(e){for(var t=new Uint8Array(16),r=12;r<16;r++)t[r]=e>>8*(15-r)&255;return t}(t);return new e(this.method,this.uri,"identity",this.keyFormatVersions,r)}var u=(0,n.convertDataUriToArrayBytes)(this.uri);if(u)switch(this.keyFormat){case i.KeySystemFormats.WIDEVINE:this.pssh=u,u.length>=22&&(this.keyId=u.subarray(u.length-22,u.length-6));break;case i.KeySystemFormats.PLAYREADY:var c=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=(0,a.mp4pssh)(c,null,u);var d=new Uint16Array(u.buffer,u.byteOffset,u.byteLength/2),h=String.fromCharCode.apply(null,Array.from(d)),f=h.substring(h.indexOf("<"),h.length),p=(new DOMParser).parseFromString(f,"text/xml").getElementsByTagName("KID")[0];if(p){var m=p.childNodes[0]?p.childNodes[0].nodeValue:p.getAttribute("VALUE");if(m){var g=(0,s.base64Decode)(m).subarray(0,16);(0,n.changeEndianness)(g),this.keyId=g}}break;default:var v=u.subarray(0,16);if(16!==v.length){var y=new Uint8Array(16);y.set(v,16-v.length),v=y}this.keyId=v}if(!this.keyId||16!==this.keyId.byteLength){var _=l[this.uri];if(!_){var b=Object.keys(l).length%Number.MAX_SAFE_INTEGER;_=new Uint8Array(16),new DataView(_.buffer,12,4).setUint32(0,b),l[this.uri]=_}this.keyId=_}return this},e}()},"./src/loader/load-stats.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{LoadStats:()=>n});var n=function(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}},"./src/loader/m3u8-parser.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r("./src/polyfills/number.ts"),i=r("./node_modules/url-toolkit/src/url-toolkit.js"),a=r("./src/loader/date-range.ts"),o=r("./src/loader/fragment.ts"),s=r("./src/loader/level-details.ts"),l=r("./src/loader/level-key.ts"),u=r("./src/utils/attr-list.ts"),c=r("./src/utils/logger.ts"),d=r("./src/utils/codecs.ts");function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}var f=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+|#EXT-X-SESSION-KEY:([^\n\r]*)[\r\n]+/g,p=/#EXT-X-MEDIA:(.*)/g,m=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),g=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(DATERANGE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),v=function(){function e(){}return e.findGroup=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.id===t)return n}},e.convertAVC1ToAVCOTI=function(e){var t=e.split(".");if(t.length>2){var r=t.shift()+".";return(r+=parseInt(t.shift()).toString(16))+("000"+parseInt(t.shift()).toString(16)).slice(-4)}return e},e.resolve=function(e,t){return(0,i.buildAbsoluteURL)(t,e,{alwaysNormalize:!0})},e.parseMasterPlaylist=function(t,r){var n,i=[],a=[],o={},s=[],l=!1;for(f.lastIndex=0;null!=(n=f.exec(t));)if(n[1]){var d,h=new u.AttrList(n[1]),p={attrs:h,bitrate:h.decimalInteger("AVERAGE-BANDWIDTH")||h.decimalInteger("BANDWIDTH"),name:h.NAME,url:e.resolve(n[2],r)},m=h.decimalResolution("RESOLUTION");m&&(p.width=m.width,p.height=m.height),_((h.CODECS||"").split(/[ ,]+/).filter((function(e){return e})),p),p.videoCodec&&-1!==p.videoCodec.indexOf("avc1")&&(p.videoCodec=e.convertAVC1ToAVCOTI(p.videoCodec)),null!==(d=p.unknownCodecs)&&void 0!==d&&d.length||a.push(p),i.push(p)}else if(n[3]){var g=new u.AttrList(n[3]);g["DATA-ID"]&&(l=!0,o[g["DATA-ID"]]=g)}else if(n[4]){var v=n[4],b=y(v,r);b.encrypted&&b.isSupported()?s.push(b):c.logger.warn('[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "'+v+'"')}return{levels:a.length>0&&a.length<i.length?a:i,sessionData:l?o:null,sessionKeys:s.length?s:null}},e.parseMasterPlaylistMedia=function(t,r,n,i){var a;void 0===i&&(i=[]);var o=[],s=0;for(p.lastIndex=0;null!==(a=p.exec(t));){var l=new u.AttrList(a[1]);if(l.TYPE===n){var c={attrs:l,bitrate:0,id:s++,groupId:l["GROUP-ID"],instreamId:l["INSTREAM-ID"],name:l.NAME||l.LANGUAGE||"",type:n,default:l.bool("DEFAULT"),autoselect:l.bool("AUTOSELECT"),forced:l.bool("FORCED"),lang:l.LANGUAGE,url:l.URI?e.resolve(l.URI,r):""};if(i.length){var d=e.findGroup(i,c.groupId)||i[0];b(c,d,"audioCodec"),b(c,d,"textCodec")}o.push(c)}}return o},e.parseLevelPlaylist=function(e,t,r,i,l){var d,f,p,v=new s.LevelDetails(t),_=v.fragments,b=null,T=0,L=0,S=0,k=0,x=null,E=new o.Fragment(i,t),D=-1,A=!1;for(m.lastIndex=0,v.m3u8=e;null!==(d=m.exec(e));){A&&(A=!1,(E=new o.Fragment(i,t)).start=S,E.sn=T,E.cc=k,E.level=r,b&&(E.initSegment=b,E.rawProgramDateTime=b.rawProgramDateTime,b.rawProgramDateTime=null));var O=d[1];if(O){E.duration=parseFloat(O);var P=(" "+d[2]).slice(1);E.title=P||null,E.tagList.push(P?["INF",O,P]:["INF",O])}else if(d[3]){if((0,n.isFiniteNumber)(E.duration)){if(E.start=S,p){E.levelkeys=p;var R=v.encryptedFragments;!E.levelkeys||!Object.keys(E.levelkeys).some((function(e){return E.levelkeys[e].isCommonEncryption}))||R.length&&R[R.length-1].levelkeys===p||R.push(E)}E.sn=T,E.level=r,E.cc=k,E.urlId=l,_.push(E),E.relurl=(" "+d[3]).slice(1),M(E,x),x=E,S+=E.duration,T++,L=0,A=!0}}else if(d[4]){var I=(" "+d[4]).slice(1);x?E.setByteRange(I,x):E.setByteRange(I)}else if(d[5])E.rawProgramDateTime=(" "+d[5]).slice(1),E.tagList.push(["PROGRAM-DATE-TIME",E.rawProgramDateTime]),-1===D&&(D=_.length);else{if(!(d=d[0].match(g))){c.logger.warn("No matches on slow regex match for level playlist!");continue}for(f=1;f<d.length&&void 0===d[f];f++);var Y=(" "+d[f]).slice(1),C=(" "+d[f+1]).slice(1),F=d[f+2]?(" "+d[f+2]).slice(1):"";switch(Y){case"PLAYLIST-TYPE":v.type=C.toUpperCase();break;case"MEDIA-SEQUENCE":T=v.startSN=parseInt(C);break;case"SKIP":var N=new u.AttrList(C),j=N.decimalInteger("SKIPPED-SEGMENTS");if((0,n.isFiniteNumber)(j)){v.skippedSegments=j;for(var H=j;H--;)_.unshift(null);T+=j}var B=N.enumeratedString("RECENTLY-REMOVED-DATERANGES");B&&(v.recentlyRemovedDateranges=B.split("\t"));break;case"TARGETDURATION":v.targetduration=parseFloat(C);break;case"VERSION":v.version=parseInt(C);break;case"EXTM3U":break;case"ENDLIST":v.live=!1;break;case"#":(C||F)&&E.tagList.push(F?[C,F]:[C]);break;case"DISCONTINUITY":k++,E.tagList.push(["DIS"]);break;case"GAP":E.tagList.push([Y]);break;case"BITRATE":E.tagList.push([Y,C]);break;case"DATERANGE":var U=new u.AttrList(C),W=new a.DateRange(U,v.dateRanges[U.ID]);W.isValid||v.skippedSegments?v.dateRanges[W.id]=W:c.logger.warn('Ignoring invalid DATERANGE tag: "'+C+'"'),E.tagList.push(["EXT-X-DATERANGE",C]);break;case"DISCONTINUITY-SEQUENCE":k=parseInt(C);break;case"KEY":var z=y(C,t);if(z.isSupported()){if("NONE"===z.method){p=void 0;break}p||(p={}),p[z.keyFormat]&&(p=h({},p)),p[z.keyFormat]=z}else c.logger.warn('[Keys] Ignoring invalid EXT-X-KEY tag: "'+C+'"');break;case"START":var G=new u.AttrList(C).decimalFloatingPoint("TIME-OFFSET");(0,n.isFiniteNumber)(G)&&(v.startTimeOffset=G);break;case"MAP":var V=new u.AttrList(C);if(E.duration){var K=new o.Fragment(i,t);w(K,V,r,p),b=K,E.initSegment=b,b.rawProgramDateTime&&!E.rawProgramDateTime&&(E.rawProgramDateTime=b.rawProgramDateTime)}else w(E,V,r,p),b=E,A=!0;break;case"SERVER-CONTROL":var q=new u.AttrList(C);v.canBlockReload=q.bool("CAN-BLOCK-RELOAD"),v.canSkipUntil=q.optionalFloat("CAN-SKIP-UNTIL",0),v.canSkipDateRanges=v.canSkipUntil>0&&q.bool("CAN-SKIP-DATERANGES"),v.partHoldBack=q.optionalFloat("PART-HOLD-BACK",0),v.holdBack=q.optionalFloat("HOLD-BACK",0);break;case"PART-INF":var $=new u.AttrList(C);v.partTarget=$.decimalFloatingPoint("PART-TARGET");break;case"PART":var J=v.partList;J||(J=v.partList=[]);var X=L>0?J[J.length-1]:void 0,Q=L++,Z=new o.Part(new u.AttrList(C),E,t,Q,X);J.push(Z),E.duration+=Z.duration;break;case"PRELOAD-HINT":var ee=new u.AttrList(C);v.preloadHint=ee;break;case"RENDITION-REPORT":var te=new u.AttrList(C);v.renditionReports=v.renditionReports||[],v.renditionReports.push(te);break;default:c.logger.warn("line parsed but not handled: "+d)}}}x&&!x.relurl?(_.pop(),S-=x.duration,v.partList&&(v.fragmentHint=x)):v.partList&&(M(E,x),E.cc=k,v.fragmentHint=E);var re=_.length,ne=_[0],ie=_[re-1];if((S+=v.skippedSegments*v.targetduration)>0&&re&&ie){v.averagetargetduration=S/re;var ae=ie.sn;v.endSN="initSegment"!==ae?ae:0,v.live||(ie.endList=!0),ne&&(v.startCC=ne.cc)}else v.endSN=0,v.startCC=0;return v.fragmentHint&&(S+=v.fragmentHint.duration),v.totalduration=S,v.endCC=k,D>0&&function(e,t){for(var r=e[t],n=t;n--;){var i=e[n];if(!i)return;i.programDateTime=r.programDateTime-1e3*i.duration,r=i}}(_,D),v},e}();function y(e,t){var r,n,i=new u.AttrList(e),a=null!=(r=i.enumeratedString("METHOD"))?r:"",o=i.URI,s=i.hexadecimalInteger("IV"),d=i.enumeratedString("KEYFORMATVERSIONS"),h=null!=(n=i.enumeratedString("KEYFORMAT"))?n:"identity";o&&i.IV&&!s&&c.logger.error("Invalid IV: "+i.IV);var f=o?v.resolve(o,t):"",p=(d||"1").split("/").map(Number).filter(Number.isFinite);return new l.LevelKey(a,f,h,p,s)}function _(e,t){["video","audio","text"].forEach((function(r){var n=e.filter((function(e){return(0,d.isCodecType)(e,r)}));if(n.length){var i=n.filter((function(e){return 0===e.lastIndexOf("avc1",0)||0===e.lastIndexOf("mp4a",0)}));t[r+"Codec"]=i.length>0?i[0]:n[0],e=e.filter((function(e){return-1===n.indexOf(e)}))}})),t.unknownCodecs=e}function b(e,t,r){var n=t[r];n&&(e[r]=n)}function M(e,t){e.rawProgramDateTime?e.programDateTime=Date.parse(e.rawProgramDateTime):null!=t&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime),(0,n.isFiniteNumber)(e.programDateTime)||(e.programDateTime=null,e.rawProgramDateTime=null)}function w(e,t,r,n){e.relurl=t.URI,t.BYTERANGE&&e.setByteRange(t.BYTERANGE),e.level=r,e.sn="initSegment",n&&(e.levelkeys=n),e.initSegment=null}},"./src/loader/playlist-loader.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r("./src/polyfills/number.ts"),i=r("./src/events.ts"),a=r("./src/errors.ts"),o=r("./src/utils/logger.ts"),s=r("./src/loader/m3u8-parser.ts"),l=r("./src/types/loader.ts"),u=r("./src/utils/attr-list.ts");function c(e,t){var r=e.url;return void 0!==r&&0!==r.indexOf("data:")||(r=t.url),r}const d=function(){function e(e){this.hls=void 0,this.loaders=Object.create(null),this.hls=e,this.registerListeners()}var t=e.prototype;return t.startLoad=function(e){},t.stopLoad=function(){this.destroyInternalLoaders()},t.registerListeners=function(){var e=this.hls;e.on(i.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.on(i.Events.LEVEL_LOADING,this.onLevelLoading,this),e.on(i.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(i.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},t.unregisterListeners=function(){var e=this.hls;e.off(i.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.off(i.Events.LEVEL_LOADING,this.onLevelLoading,this),e.off(i.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(i.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},t.createInternalLoader=function(e){var t=this.hls.config,r=t.pLoader,n=t.loader,i=new(r||n)(t);return e.loader=i,this.loaders[e.type]=i,i},t.getInternalLoader=function(e){return this.loaders[e.type]},t.resetInternalLoader=function(e){this.loaders[e]&&delete this.loaders[e]},t.destroyInternalLoaders=function(){for(var e in this.loaders){var t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}},t.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},t.onManifestLoading=function(e,t){var r=t.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:l.PlaylistContextType.MANIFEST,url:r,deliveryDirectives:null})},t.onLevelLoading=function(e,t){var r=t.id,n=t.level,i=t.url,a=t.deliveryDirectives;this.load({id:r,groupId:null,level:n,responseType:"text",type:l.PlaylistContextType.LEVEL,url:i,deliveryDirectives:a})},t.onAudioTrackLoading=function(e,t){var r=t.id,n=t.groupId,i=t.url,a=t.deliveryDirectives;this.load({id:r,groupId:n,level:null,responseType:"text",type:l.PlaylistContextType.AUDIO_TRACK,url:i,deliveryDirectives:a})},t.onSubtitleTrackLoading=function(e,t){var r=t.id,n=t.groupId,i=t.url,a=t.deliveryDirectives;this.load({id:r,groupId:n,level:null,responseType:"text",type:l.PlaylistContextType.SUBTITLE_TRACK,url:i,deliveryDirectives:a})},t.load=function(e){var t,r,n,i,a,s,u=this.hls.config,c=this.getInternalLoader(e);if(c){var d=c.context;if(d&&d.url===e.url)return void o.logger.trace("[playlist-loader]: playlist request ongoing");o.logger.log("[playlist-loader]: aborting previous loader for type: "+e.type),c.abort()}switch(e.type){case l.PlaylistContextType.MANIFEST:r=u.manifestLoadingMaxRetry,n=u.manifestLoadingTimeOut,i=u.manifestLoadingRetryDelay,a=u.manifestLoadingMaxRetryTimeout;break;case l.PlaylistContextType.LEVEL:case l.PlaylistContextType.AUDIO_TRACK:case l.PlaylistContextType.SUBTITLE_TRACK:r=0,n=u.levelLoadingTimeOut;break;default:r=u.levelLoadingMaxRetry,n=u.levelLoadingTimeOut,i=u.levelLoadingRetryDelay,a=u.levelLoadingMaxRetryTimeout}if(c=this.createInternalLoader(e),null!==(t=e.deliveryDirectives)&&void 0!==t&&t.part&&(e.type===l.PlaylistContextType.LEVEL&&null!==e.level?s=this.hls.levels[e.level].details:e.type===l.PlaylistContextType.AUDIO_TRACK&&null!==e.id?s=this.hls.audioTracks[e.id].details:e.type===l.PlaylistContextType.SUBTITLE_TRACK&&null!==e.id&&(s=this.hls.subtitleTracks[e.id].details),s)){var h=s.partTarget,f=s.targetduration;h&&f&&(n=Math.min(1e3*Math.max(3*h,.8*f),n))}var p={timeout:n,maxRetry:r,retryDelay:i,maxRetryDelay:a,highWaterMark:0},m={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};c.load(e,p,m)},t.loadsuccess=function(e,t,r,n){void 0===n&&(n=null),this.resetInternalLoader(r.type);var i=e.data;0===i.indexOf("#EXTM3U")?(t.parsing.start=performance.now(),i.indexOf("#EXTINF:")>0||i.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(e,t,r,n):this.handleMasterPlaylist(e,t,r,n)):this.handleManifestParsingError(e,r,"no EXTM3U delimiter",n)},t.loaderror=function(e,t,r){void 0===r&&(r=null),this.handleNetworkError(t,r,!1,e)},t.loadtimeout=function(e,t,r){void 0===r&&(r=null),this.handleNetworkError(t,r,!0)},t.handleMasterPlaylist=function(e,t,r,n){var a=this.hls,l=e.data,d=c(e,r),h=s.default.parseMasterPlaylist(l,d),f=h.levels,p=h.sessionData,m=h.sessionKeys;if(f.length){var g=f.map((function(e){return{id:e.attrs.AUDIO,audioCodec:e.audioCodec}})),v=f.map((function(e){return{id:e.attrs.SUBTITLES,textCodec:e.textCodec}})),y=s.default.parseMasterPlaylistMedia(l,d,"AUDIO",g),_=s.default.parseMasterPlaylistMedia(l,d,"SUBTITLES",v),b=s.default.parseMasterPlaylistMedia(l,d,"CLOSED-CAPTIONS");y.length&&(y.some((function(e){return!e.url}))||!f[0].audioCodec||f[0].attrs.AUDIO||(o.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),y.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new u.AttrList({}),bitrate:0,url:""}))),a.trigger(i.Events.MANIFEST_LOADED,{levels:f,audioTracks:y,subtitles:_,captions:b,url:d,stats:t,networkDetails:n,sessionData:p,sessionKeys:m})}else this.handleManifestParsingError(e,r,"no level found in manifest",n)},t.handleTrackOrLevelPlaylist=function(e,t,r,o){var d=this.hls,h=r.id,f=r.level,p=r.type,m=c(e,r),g=(0,n.isFiniteNumber)(h)?h:0,v=(0,n.isFiniteNumber)(f)?f:g,y=function(e){switch(e.type){case l.PlaylistContextType.AUDIO_TRACK:return l.PlaylistLevelType.AUDIO;case l.PlaylistContextType.SUBTITLE_TRACK:return l.PlaylistLevelType.SUBTITLE;default:return l.PlaylistLevelType.MAIN}}(r),_=s.default.parseLevelPlaylist(e.data,m,v,y,g);if(_.fragments.length){if(p===l.PlaylistContextType.MANIFEST){var b={attrs:new u.AttrList({}),bitrate:0,details:_,name:"",url:m};d.trigger(i.Events.MANIFEST_LOADED,{levels:[b],audioTracks:[],url:m,stats:t,networkDetails:o,sessionData:null,sessionKeys:null})}t.parsing.end=performance.now(),r.levelDetails=_,this.handlePlaylistLoaded(e,t,r,o)}else d.trigger(i.Events.ERROR,{type:a.ErrorTypes.NETWORK_ERROR,details:a.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:m,reason:"no fragments found in level",level:"number"==typeof r.level?r.level:void 0})},t.handleManifestParsingError=function(e,t,r,n){this.hls.trigger(i.Events.ERROR,{type:a.ErrorTypes.NETWORK_ERROR,details:a.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:t.type===l.PlaylistContextType.MANIFEST,url:e.url,reason:r,response:e,context:t,networkDetails:n})},t.handleNetworkError=function(e,t,r,n){void 0===r&&(r=!1),o.logger.warn("[playlist-loader]: A network "+(r?"timeout":"error")+" occurred while loading "+e.type+" level: "+e.level+" id: "+e.id+' group-id: "'+e.groupId+'"');var s=a.ErrorDetails.UNKNOWN,u=!1,c=this.getInternalLoader(e);switch(e.type){case l.PlaylistContextType.MANIFEST:s=r?a.ErrorDetails.MANIFEST_LOAD_TIMEOUT:a.ErrorDetails.MANIFEST_LOAD_ERROR,u=!0;break;case l.PlaylistContextType.LEVEL:s=r?a.ErrorDetails.LEVEL_LOAD_TIMEOUT:a.ErrorDetails.LEVEL_LOAD_ERROR,u=!1;break;case l.PlaylistContextType.AUDIO_TRACK:s=r?a.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:a.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,u=!1;break;case l.PlaylistContextType.SUBTITLE_TRACK:s=r?a.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:a.ErrorDetails.SUBTITLE_LOAD_ERROR,u=!1}c&&this.resetInternalLoader(e.type);var d={type:a.ErrorTypes.NETWORK_ERROR,details:s,fatal:u,url:e.url,loader:c,context:e,networkDetails:t};n&&(d.response=n),this.hls.trigger(i.Events.ERROR,d)},t.handlePlaylistLoaded=function(e,t,r,n){var a=r.type,o=r.level,s=r.id,u=r.groupId,c=r.loader,d=r.levelDetails,h=r.deliveryDirectives;if(null!=d&&d.targetduration){if(c)switch(d.live&&(c.getCacheAge&&(d.ageHeader=c.getCacheAge()||0),c.getCacheAge&&!isNaN(d.ageHeader)||(d.ageHeader=0)),a){case l.PlaylistContextType.MANIFEST:case l.PlaylistContextType.LEVEL:this.hls.trigger(i.Events.LEVEL_LOADED,{details:d,level:o||0,id:s||0,stats:t,networkDetails:n,deliveryDirectives:h});break;case l.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(i.Events.AUDIO_TRACK_LOADED,{details:d,id:s||0,groupId:u||"",stats:t,networkDetails:n,deliveryDirectives:h});break;case l.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(i.Events.SUBTITLE_TRACK_LOADED,{details:d,id:s||0,groupId:u||"",stats:t,networkDetails:n,deliveryDirectives:h})}}else this.handleManifestParsingError(e,r,"invalid target duration",n)},e}()},"./src/polyfills/number.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{MAX_SAFE_INTEGER:()=>i,isFiniteNumber:()=>n});var n=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},i=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=function(){function e(){}return e.getSilentFrame=function(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}},e}()},"./src/remux/mp4-generator.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=Math.pow(2,32)-1,i=function(){function e(){}return e.init=function(){var t;for(t in e.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},e.types)e.types.hasOwnProperty(t)&&(e.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);var r=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),n=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);e.HDLR_TYPES={video:r,audio:n};var i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),a=new Uint8Array([0,0,0,0,0,0,0,0]);e.STTS=e.STSC=e.STCO=a,e.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),e.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),e.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),e.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var o=new Uint8Array([105,115,111,109]),s=new Uint8Array([97,118,99,49]),l=new Uint8Array([0,0,0,1]);e.FTYP=e.box(e.types.ftyp,o,l,o,s),e.DINF=e.box(e.types.dinf,e.box(e.types.dref,i))},e.box=function(e){for(var t=8,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(var a=n.length,o=a;a--;)t+=n[a].byteLength;var s=new Uint8Array(t);for(s[0]=t>>24&255,s[1]=t>>16&255,s[2]=t>>8&255,s[3]=255&t,s.set(e,4),a=0,t=8;a<o;a++)s.set(n[a],t),t+=n[a].byteLength;return s},e.hdlr=function(t){return e.box(e.types.hdlr,e.HDLR_TYPES[t])},e.mdat=function(t){return e.box(e.types.mdat,t)},e.mdhd=function(t,r){r*=t;var i=Math.floor(r/(n+1)),a=Math.floor(r%(n+1));return e.box(e.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,i>>24,i>>16&255,i>>8&255,255&i,a>>24,a>>16&255,a>>8&255,255&a,85,196,0,0]))},e.mdia=function(t){return e.box(e.types.mdia,e.mdhd(t.timescale,t.duration),e.hdlr(t.type),e.minf(t))},e.mfhd=function(t){return e.box(e.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))},e.minf=function(t){return"audio"===t.type?e.box(e.types.minf,e.box(e.types.smhd,e.SMHD),e.DINF,e.stbl(t)):e.box(e.types.minf,e.box(e.types.vmhd,e.VMHD),e.DINF,e.stbl(t))},e.moof=function(t,r,n){return e.box(e.types.moof,e.mfhd(t),e.traf(n,r))},e.moov=function(t){for(var r=t.length,n=[];r--;)n[r]=e.trak(t[r]);return e.box.apply(null,[e.types.moov,e.mvhd(t[0].timescale,t[0].duration)].concat(n).concat(e.mvex(t)))},e.mvex=function(t){for(var r=t.length,n=[];r--;)n[r]=e.trex(t[r]);return e.box.apply(null,[e.types.mvex].concat(n))},e.mvhd=function(t,r){r*=t;var i=Math.floor(r/(n+1)),a=Math.floor(r%(n+1)),o=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,i>>24,i>>16&255,i>>8&255,255&i,a>>24,a>>16&255,a>>8&255,255&a,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return e.box(e.types.mvhd,o)},e.sdtp=function(t){var r,n,i=t.samples||[],a=new Uint8Array(4+i.length);for(r=0;r<i.length;r++)n=i[r].flags,a[r+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return e.box(e.types.sdtp,a)},e.stbl=function(t){return e.box(e.types.stbl,e.stsd(t),e.box(e.types.stts,e.STTS),e.box(e.types.stsc,e.STSC),e.box(e.types.stsz,e.STSZ),e.box(e.types.stco,e.STCO))},e.avc1=function(t){var r,n,i,a=[],o=[];for(r=0;r<t.sps.length;r++)i=(n=t.sps[r]).byteLength,a.push(i>>>8&255),a.push(255&i),a=a.concat(Array.prototype.slice.call(n));for(r=0;r<t.pps.length;r++)i=(n=t.pps[r]).byteLength,o.push(i>>>8&255),o.push(255&i),o=o.concat(Array.prototype.slice.call(n));var s=e.box(e.types.avcC,new Uint8Array([1,a[3],a[4],a[5],255,224|t.sps.length].concat(a).concat([t.pps.length]).concat(o))),l=t.width,u=t.height,c=t.pixelRatio[0],d=t.pixelRatio[1];return e.box(e.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,l>>8&255,255&l,u>>8&255,255&u,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s,e.box(e.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),e.box(e.types.pasp,new Uint8Array([c>>24,c>>16&255,c>>8&255,255&c,d>>24,d>>16&255,d>>8&255,255&d])))},e.esds=function(e){var t=e.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(e.config).concat([6,1,2]))},e.mp4a=function(t){var r=t.samplerate;return e.box(e.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,r>>8&255,255&r,0,0]),e.box(e.types.esds,e.esds(t)))},e.mp3=function(t){var r=t.samplerate;return e.box(e.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,r>>8&255,255&r,0,0]))},e.stsd=function(t){return"audio"===t.type?"mp3"===t.segmentCodec&&"mp3"===t.codec?e.box(e.types.stsd,e.STSD,e.mp3(t)):e.box(e.types.stsd,e.STSD,e.mp4a(t)):e.box(e.types.stsd,e.STSD,e.avc1(t))},e.tkhd=function(t){var r=t.id,i=t.duration*t.timescale,a=t.width,o=t.height,s=Math.floor(i/(n+1)),l=Math.floor(i%(n+1));return e.box(e.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,r>>24&255,r>>16&255,r>>8&255,255&r,0,0,0,0,s>>24,s>>16&255,s>>8&255,255&s,l>>24,l>>16&255,l>>8&255,255&l,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,a>>8&255,255&a,0,0,o>>8&255,255&o,0,0]))},e.traf=function(t,r){var i=e.sdtp(t),a=t.id,o=Math.floor(r/(n+1)),s=Math.floor(r%(n+1));return e.box(e.types.traf,e.box(e.types.tfhd,new Uint8Array([0,0,0,0,a>>24,a>>16&255,a>>8&255,255&a])),e.box(e.types.tfdt,new Uint8Array([1,0,0,0,o>>24,o>>16&255,o>>8&255,255&o,s>>24,s>>16&255,s>>8&255,255&s])),e.trun(t,i.length+16+20+8+16+8+8),i)},e.trak=function(t){return t.duration=t.duration||4294967295,e.box(e.types.trak,e.tkhd(t),e.mdia(t))},e.trex=function(t){var r=t.id;return e.box(e.types.trex,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},e.trun=function(t,r){var n,i,a,o,s,l,u=t.samples||[],c=u.length,d=12+16*c,h=new Uint8Array(d);for(r+=8+d,h.set(["video"===t.type?1:0,0,15,1,c>>>24&255,c>>>16&255,c>>>8&255,255&c,r>>>24&255,r>>>16&255,r>>>8&255,255&r],0),n=0;n<c;n++)a=(i=u[n]).duration,o=i.size,s=i.flags,l=i.cts,h.set([a>>>24&255,a>>>16&255,a>>>8&255,255&a,o>>>24&255,o>>>16&255,o>>>8&255,255&o,s.isLeading<<2|s.dependsOn,s.isDependedOn<<6|s.hasRedundancy<<4|s.paddingValue<<1|s.isNonSync,61440&s.degradPrio,15&s.degradPrio,l>>>24&255,l>>>16&255,l>>>8&255,255&l],12+16*n);return e.box(e.types.trun,h)},e.initSegment=function(t){e.types||e.init();var r=e.moov(t),n=new Uint8Array(e.FTYP.byteLength+r.byteLength);return n.set(e.FTYP),n.set(r,e.FTYP.byteLength),n},e}();i.types=void 0,i.HDLR_TYPES=void 0,i.STTS=void 0,i.STSC=void 0,i.STCO=void 0,i.STSZ=void 0,i.VMHD=void 0,i.SMHD=void 0,i.STSD=void 0,i.FTYP=void 0,i.DINF=void 0;const a=i},"./src/remux/mp4-remuxer.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m,flushTextTrackMetadataCueSamples:()=>v,flushTextTrackUserdataCueSamples:()=>y,normalizePts:()=>g});var n=r("./src/polyfills/number.ts"),a=r("./src/remux/aac-helper.ts"),o=r("./src/remux/mp4-generator.ts"),s=r("./src/events.ts"),l=r("./src/errors.ts"),u=r("./src/utils/logger.ts"),c=r("./src/types/loader.ts"),d=r("./src/utils/timescale-conversion.ts");function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}var f=null,p=null,m=function(){function e(e,t,r,n){if(void 0===n&&(n=""),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=void 0,this._initDTS=void 0,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=e,this.config=t,this.typeSupported=r,this.ISGenerated=!1,null===f){var i=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);f=i?parseInt(i[1]):0}if(null===p){var a=navigator.userAgent.match(/Safari\/(\d+)/i);p=a?parseInt(a[1]):0}}var t=e.prototype;return t.destroy=function(){},t.resetTimeStamp=function(e){u.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e},t.resetNextTimestamp=function(){u.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},t.resetInitSegment=function(){u.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},t.getVideoStartPts=function(e){var t=!1,r=e.reduce((function(e,r){var n=r.pts-e;return n<-4294967296?(t=!0,g(e,r.pts)):n>0?e:r.pts}),e[0].pts);return t&&u.logger.debug("PTS rollover detected"),r},t.remux=function(e,t,r,n,i,a,o,s){var l,d,h,f,p,m,_=i,b=i,M=e.pid>-1,w=t.pid>-1,T=t.samples.length,L=e.samples.length>0,S=o&&T>0||T>1;if((!M||L)&&(!w||S)||this.ISGenerated||o){this.ISGenerated||(h=this.generateIS(e,t,i));var k,x=this.isVideoContiguous,E=-1;if(S&&(E=function(e){for(var t=0;t<e.length;t++)if(e[t].key)return t;return-1}(t.samples),!x&&this.config.forceKeyFrameOnDiscontinuity))if(m=!0,E>0){u.logger.warn("[mp4-remuxer]: Dropped "+E+" out of "+T+" video samples due to a missing keyframe");var D=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(E),t.dropped+=E,k=b+=(t.samples[0].pts-D)/t.inputTimeScale}else-1===E&&(u.logger.warn("[mp4-remuxer]: No keyframe found out of "+T+" video samples"),m=!1);if(this.ISGenerated){if(L&&S){var A=this.getVideoStartPts(t.samples),O=(g(e.samples[0].pts,A)-A)/t.inputTimeScale;_+=Math.max(0,O),b+=Math.max(0,-O)}if(L){if(e.samplerate||(u.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),h=this.generateIS(e,t,i)),d=this.remuxAudio(e,_,this.isAudioContiguous,a,w||S||s===c.PlaylistLevelType.AUDIO?b:void 0),S){var P=d?d.endPTS-d.startPTS:0;t.inputTimeScale||(u.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),h=this.generateIS(e,t,i)),l=this.remuxVideo(t,b,x,P)}}else S&&(l=this.remuxVideo(t,b,x,0));l&&(l.firstKeyFrame=E,l.independent=-1!==E,l.firstKeyFramePTS=k)}}return this.ISGenerated&&(r.samples.length&&(p=v(r,i,this._initPTS,this._initDTS)),n.samples.length&&(f=y(n,i,this._initPTS))),{audio:d,video:l,initSegment:h,independent:m,text:f,id3:p}},t.generateIS=function(e,t,r){var i,a,s,l=e.samples,u=t.samples,c=this.typeSupported,d={},h=!(0,n.isFiniteNumber)(this._initPTS),f="audio/mp4";if(h&&(i=a=1/0),e.config&&l.length&&(e.timescale=e.samplerate,"mp3"===e.segmentCodec&&(c.mpeg?(f="audio/mpeg",e.codec=""):c.mp3&&(e.codec="mp3")),d.audio={id:"audio",container:f,codec:e.codec,initSegment:"mp3"===e.segmentCodec&&c.mpeg?new Uint8Array(0):o.default.initSegment([e]),metadata:{channelCount:e.channelCount}},h&&(s=e.inputTimeScale,i=a=l[0].pts-Math.round(s*r))),t.sps&&t.pps&&u.length&&(t.timescale=t.inputTimeScale,d.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:o.default.initSegment([t]),metadata:{width:t.width,height:t.height}},h)){s=t.inputTimeScale;var p=this.getVideoStartPts(u),m=Math.round(s*r);a=Math.min(a,g(u[0].dts,p)-m),i=Math.min(i,p-m)}if(Object.keys(d).length)return this.ISGenerated=!0,h&&(this._initPTS=i,this._initDTS=a),{tracks:d,initPTS:i,timescale:s}},t.remuxVideo=function(e,t,r,n){var a,c,m=e.inputTimeScale,v=e.samples,y=[],b=v.length,M=this._initPTS,w=this.nextAvcDts,T=8,L=this.videoSampleDuration,S=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,x=!1;r&&null!==w||(w=t*m-(v[0].pts-g(v[0].dts,v[0].pts)));for(var E=0;E<b;E++){var D=v[E];D.pts=g(D.pts-M,w),D.dts=g(D.dts-M,w),D.dts<v[E>0?E-1:E].dts&&(x=!0)}x&&v.sort((function(e,t){var r=e.dts-t.dts,n=e.pts-t.pts;return r||n})),a=v[0].dts;var A=v[v.length-1].dts-a,O=A?Math.round(A/(b-1)):L||e.inputTimeScale/30;if(r){var P=a-w,R=P>O,I=P<-1;if((R||I)&&(R?u.logger.warn("AVC: "+(0,d.toMsFromMpegTsClock)(P,!0)+" ms ("+P+"dts) hole between fragments detected, filling it"):u.logger.warn("AVC: "+(0,d.toMsFromMpegTsClock)(-P,!0)+" ms ("+P+"dts) overlapping between fragments detected"),!I||w>v[0].pts)){a=w;var Y=v[0].pts-P;v[0].dts=a,v[0].pts=Y,u.logger.log("Video: First PTS/DTS adjusted: "+(0,d.toMsFromMpegTsClock)(Y,!0)+"/"+(0,d.toMsFromMpegTsClock)(a,!0)+", delta: "+(0,d.toMsFromMpegTsClock)(P,!0)+" ms")}}a=Math.max(0,a);for(var C=0,F=0,N=0;N<b;N++){for(var j=v[N],H=j.units,B=H.length,U=0,W=0;W<B;W++)U+=H[W].data.length;F+=U,C+=B,j.length=U,j.dts=Math.max(j.dts,a),S=Math.min(j.pts,S),k=Math.max(j.pts,k)}c=v[b-1].dts;var z,G=F+4*C+8;try{z=new Uint8Array(G)}catch(e){return void this.observer.emit(s.Events.ERROR,s.Events.ERROR,{type:l.ErrorTypes.MUX_ERROR,details:l.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:G,reason:"fail allocating video mdat "+G})}var V=new DataView(z.buffer);V.setUint32(0,G),z.set(o.default.types.mdat,4);for(var K=!1,q=Number.POSITIVE_INFINITY,$=Number.POSITIVE_INFINITY,J=Number.NEGATIVE_INFINITY,X=Number.NEGATIVE_INFINITY,Q=0;Q<b;Q++){for(var Z=v[Q],ee=Z.units,te=0,re=0,ne=ee.length;re<ne;re++){var ie=ee[re],ae=ie.data,oe=ie.data.byteLength;V.setUint32(T,oe),T+=4,z.set(ae,T),T+=oe,te+=4+oe}var se=void 0;if(Q<b-1)L=v[Q+1].dts-Z.dts,se=v[Q+1].pts-Z.pts;else{var le=this.config,ue=Q>0?Z.dts-v[Q-1].dts:O;if(se=Q>0?Z.pts-v[Q-1].pts:O,le.stretchShortVideoTrack&&null!==this.nextAudioPts){var ce=Math.floor(le.maxBufferHole*m),de=(n?S+n*m:this.nextAudioPts)-Z.pts;de>ce?((L=de-ue)<0?L=ue:K=!0,u.logger.log("[mp4-remuxer]: It is approximately "+de/90+" ms to the next segment; using duration "+L/90+" ms for the last video frame.")):L=ue}else L=ue}var he=Math.round(Z.pts-Z.dts);q=Math.min(q,L),J=Math.max(J,L),$=Math.min($,se),X=Math.max(X,se),y.push(new _(Z.key,L,te,he))}if(y.length)if(f){if(f<70){var fe=y[0].flags;fe.dependsOn=2,fe.isNonSync=0}}else if(p&&X-$<J-q&&O/J<.025&&0===y[0].cts){u.logger.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");for(var pe=a,me=0,ge=y.length;me<ge;me++){var ve=pe+y[me].duration,ye=pe+y[me].cts;if(me<ge-1){var _e=ve+y[me+1].cts;y[me].duration=_e-ye}else y[me].duration=me?y[me-1].duration:O;y[me].cts=0,pe=ve}}i.assert(null!==L,"mp4SampleDuration must be computed"),L=K||!L?O:L,this.nextAvcDts=w=c+L,this.videoSampleDuration=L,this.isVideoContiguous=!0;var be={data1:o.default.moof(e.sequenceNumber++,a,h({},e,{samples:y})),data2:z,startPTS:S/m,endPTS:(k+L)/m,startDTS:a/m,endDTS:w/m,type:"video",hasAudio:!1,hasVideo:!0,nb:y.length,dropped:e.dropped};return e.samples=[],e.dropped=0,i.assert(z.length,"MDAT length must not be zero"),be},t.remuxAudio=function(e,t,r,n,c){var d=e.inputTimeScale,f=d/(e.samplerate?e.samplerate:d),p="aac"===e.segmentCodec?1024:1152,m=p*f,v=this._initPTS,y="mp3"===e.segmentCodec&&this.typeSupported.mpeg,b=[],M=void 0!==c,w=e.samples,T=y?0:8,L=this.nextAudioPts||-1,S=t*d;if(this.isAudioContiguous=r=r||w.length&&L>0&&(n&&Math.abs(S-L)<9e3||Math.abs(g(w[0].pts-v,S)-L)<20*m),w.forEach((function(e){e.pts=g(e.pts-v,S)})),!r||L<0){if(w=w.filter((function(e){return e.pts>=0})),!w.length)return;L=0===c?0:n&&!M?Math.max(0,S):w[0].pts}if("aac"===e.segmentCodec)for(var k=this.config.maxAudioFramesDrift,x=0,E=L;x<w.length;x++){var D=w[x],A=D.pts,O=A-E,P=Math.abs(1e3*O/d);if(O<=-k*m&&M)0===x&&(u.logger.warn("Audio frame @ "+(A/d).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*O/d)+" ms."),this.nextAudioPts=L=E=A);else if(O>=k*m&&P<1e4&&M){var R=Math.round(O/m);(E=A-R*m)<0&&(R--,E+=m),0===x&&(this.nextAudioPts=L=E),u.logger.warn("[mp4-remuxer]: Injecting "+R+" audio frame @ "+(E/d).toFixed(3)+"s due to "+Math.round(1e3*O/d)+" ms gap.");for(var I=0;I<R;I++){var Y=Math.max(E,0),C=a.default.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);C||(u.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),C=D.unit.subarray()),w.splice(x,0,{unit:C,pts:Y}),E+=m,x++}}D.pts=E,E+=m}for(var F,N=null,j=null,H=0,B=w.length;B--;)H+=w[B].unit.byteLength;for(var U=0,W=w.length;U<W;U++){var z=w[U],G=z.unit,V=z.pts;if(null!==j)b[U-1].duration=Math.round((V-j)/f);else{if(r&&"aac"===e.segmentCodec&&(V=L),N=V,!(H>0))return;H+=T;try{F=new Uint8Array(H)}catch(e){return void this.observer.emit(s.Events.ERROR,s.Events.ERROR,{type:l.ErrorTypes.MUX_ERROR,details:l.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:H,reason:"fail allocating audio mdat "+H})}y||(new DataView(F.buffer).setUint32(0,H),F.set(o.default.types.mdat,4))}F.set(G,T);var K=G.byteLength;T+=K,b.push(new _(!0,p,K,0)),j=V}var q=b.length;if(q){var $=b[b.length-1];this.nextAudioPts=L=j+f*$.duration;var J=y?new Uint8Array(0):o.default.moof(e.sequenceNumber++,N/f,h({},e,{samples:b}));e.samples=[];var X=N/d,Q=L/d,Z={data1:J,data2:F,startPTS:X,endPTS:Q,startDTS:X,endDTS:Q,type:"audio",hasAudio:!0,hasVideo:!1,nb:q};return this.isAudioContiguous=!0,i.assert(F.length,"MDAT length must not be zero"),Z}},t.remuxEmptyAudio=function(e,t,r,n){var i=e.inputTimeScale,o=i/(e.samplerate?e.samplerate:i),s=this.nextAudioPts,l=(null!==s?s:n.startDTS*i)+this._initDTS,c=n.endDTS*i+this._initDTS,d=1024*o,h=Math.ceil((c-l)/d),f=a.default.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(u.logger.warn("[mp4-remuxer]: remux empty Audio"),f){for(var p=[],m=0;m<h;m++){var g=l+m*d;p.push({unit:f,pts:g,dts:g})}return e.samples=p,this.remuxAudio(e,t,r,!1)}u.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec")},e}();function g(e,t){var r;if(null===t)return e;for(r=t<e?-8589934592:8589934592;Math.abs(e-t)>4294967296;)e+=r;return e}function v(e,t,r,n){var i=e.samples.length;if(i){for(var a=e.inputTimeScale,o=0;o<i;o++){var s=e.samples[o];s.pts=g(s.pts-r,t*a)/a,s.dts=g(s.dts-n,t*a)/a}var l=e.samples;return e.samples=[],{samples:l}}}function y(e,t,r){var n=e.samples.length;if(n){for(var i=e.inputTimeScale,a=0;a<n;a++){var o=e.samples[a];o.pts=g(o.pts-r,t*i)/i}e.samples.sort((function(e,t){return e.pts-t.pts}));var s=e.samples;return e.samples=[],{samples:s}}}var _=function(e,t,r,n){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=t,this.size=r,this.cts=n,this.flags=new b(e)},b=function(e){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=e?2:1,this.isNonSync=e?0:1}},"./src/remux/passthrough-remuxer.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r("./src/polyfills/number.ts"),i=r("./src/remux/mp4-remuxer.ts"),a=r("./src/utils/mp4-tools.ts"),o=r("./src/loader/fragment.ts"),s=r("./src/utils/logger.ts");function l(e,t){var r=null==e?void 0:e.codec;return r&&r.length>4?r:"hvc1"===r||"hev1"===r?"hvc1.1.c.L120.90":"av01"===r?"av01.0.04M.08":"avc1"===r||t===o.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}const u=function(){function e(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=void 0,this.initTracks=void 0,this.lastEndTime=null}var t=e.prototype;return t.destroy=function(){},t.resetTimeStamp=function(e){this.initPTS=e,this.lastEndTime=null},t.resetNextTimestamp=function(){this.lastEndTime=null},t.resetInitSegment=function(e,t,r,n){this.audioCodec=t,this.videoCodec=r,this.generateInitSegment((0,a.patchEncyptionData)(e,n)),this.emitInitSegment=!0},t.generateInitSegment=function(e){var t=this.audioCodec,r=this.videoCodec;if(!e||!e.byteLength)return this.initTracks=void 0,void(this.initData=void 0);var n=this.initData=(0,a.parseInitSegment)(e);t||(t=l(n.audio,o.ElementaryStreamTypes.AUDIO)),r||(r=l(n.video,o.ElementaryStreamTypes.VIDEO));var i={};n.audio&&n.video?i.audiovideo={container:"video/mp4",codec:t+","+r,initSegment:e,id:"main"}:n.audio?i.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:n.video?i.video={container:"video/mp4",codec:r,initSegment:e,id:"main"}:s.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i},t.remux=function(e,t,r,o,l){var u,c=this.initPTS,d=this.lastEndTime,h={audio:void 0,video:void 0,text:o,id3:r,initSegment:void 0};(0,n.isFiniteNumber)(d)||(d=this.lastEndTime=l||0);var f=t.samples;if(!f||!f.length)return h;var p={initPTS:void 0,timescale:1},m=this.initData;if(m&&m.length||(this.generateInitSegment(f),m=this.initData),!m||!m.length)return s.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),h;this.emitInitSegment&&(p.tracks=this.initTracks,this.emitInitSegment=!1);var g=(0,a.getStartDTS)(m,f);(0,n.isFiniteNumber)(c)||(this.initPTS=p.initPTS=c=g-l);var v=(0,a.getDuration)(f,m),y=e?g-c:d,_=y+v;(0,a.offsetStartDTS)(m,f,c),v>0?this.lastEndTime=_:(s.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var b=!!m.audio,M=!!m.video,w="";b&&(w+="audio"),M&&(w+="video");var T={data1:f,startPTS:y,startDTS:y,endPTS:_,endDTS:_,type:w,hasAudio:b,hasVideo:M,nb:1,dropped:0};h.audio="audio"===T.type?T:void 0,h.video="audio"!==T.type?T:void 0,h.initSegment=p;var L=null!=(u=this.initPTS)?u:0;return h.id3=(0,i.flushTextTrackMetadataCueSamples)(r,l,L,L),o.samples.length&&(h.text=(0,i.flushTextTrackUserdataCueSamples)(o,l,L)),h},e}()},"./src/task-loop.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var n=function(){function e(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var t=e.prototype;return t.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},t.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},t.onHandlerDestroyed=function(){},t.hasInterval=function(){return!!this._tickInterval},t.hasNextTick=function(){return!!this._tickTimer},t.setInterval=function(e){return!this._tickInterval&&(this._tickInterval=self.setInterval(this._boundTick,e),!0)},t.clearInterval=function(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)},t.clearNextTick=function(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)},t.tick=function(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},t.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},t.doTick=function(){},e}()},"./src/types/cmcd.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{CMCDObjectType:()=>n,CMCDStreamType:()=>a,CMCDStreamingFormat:()=>i,CMCDVersion:()=>o});var n,i,a,o=1;!function(e){e.MANIFEST="m",e.AUDIO="a",e.VIDEO="v",e.MUXED="av",e.INIT="i",e.CAPTION="c",e.TIMED_TEXT="tt",e.KEY="k",e.OTHER="o"}(n||(n={})),function(e){e.DASH="d",e.HLS="h",e.SMOOTH="s",e.OTHER="o"}(i||(i={})),function(e){e.VOD="v",e.LIVE="l"}(a||(a={}))},"./src/types/demuxer.ts":(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{MetadataSchema:()=>n}),function(e){e.audioId3="org.id3",e.dateRange="com.apple.quicktime.HLS",e.emsg="https://aomedia.org/emsg/ID3"}(n||(n={}))},"./src/types/level.ts":(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i)),n)}var i}r.r(t),r.d(t,{HdcpLevels:()=>a,HlsSkip:()=>i,HlsUrlParameters:()=>s,Level:()=>l,getSkipValue:()=>o});var i,a=["NONE","TYPE-0","TYPE-1","TYPE-2",null];function o(e,t){var r=e.canSkipUntil,n=e.canSkipDateRanges,a=e.endSN;return r&&(void 0!==t?t-a:0)<r?n?i.v2:i.Yes:i.No}!function(e){e.No="",e.Yes="YES",e.v2="v2"}(i||(i={}));var s=function(){function e(e,t,r){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=r}return e.prototype.addDirectives=function(e){var t=new self.URL(e);return void 0!==this.msn&&t.searchParams.set("_HLS_msn",this.msn.toString()),void 0!==this.part&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href},e}(),l=function(){function e(e){this.attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[e.url],this.attrs=e.attrs,this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.unknownCodecs=e.unknownCodecs,this.codecSet=[e.videoCodec,e.audioCodec].filter((function(e){return e})).join(",").replace(/\.[^.,]+/g,"")}var t,r;return t=e,(r=[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(e){var t=e%this.url.length;this._urlId!==t&&(this.details=void 0,this._urlId=t)}}])&&n(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},"./src/types/loader.ts":(e,t,r)=>{"use strict";var n,i;r.r(t),r.d(t,{PlaylistContextType:()=>n,PlaylistLevelType:()=>i}),function(e){e.MANIFEST="manifest",e.LEVEL="level",e.AUDIO_TRACK="audioTrack",e.SUBTITLE_TRACK="subtitleTrack"}(n||(n={})),function(e){e.MAIN="main",e.AUDIO="audio",e.SUBTITLE="subtitle"}(i||(i={}))},"./src/types/transmuxer.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{ChunkMetadata:()=>n});var n=function(e,t,r,n,i,a){void 0===n&&(n=0),void 0===i&&(i=-1),void 0===a&&(a=!1),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing={start:0,executeStart:0,executeEnd:0,end:0},this.buffering={audio:{start:0,executeStart:0,executeEnd:0,end:0},video:{start:0,executeStart:0,executeEnd:0,end:0},audiovideo:{start:0,executeStart:0,executeEnd:0,end:0}},this.level=e,this.sn=t,this.id=r,this.size=n,this.part=i,this.partial=a}},"./src/utils/attr-list.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{AttrList:()=>a});var n=/^(\d+)x(\d+)$/,i=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,a=function(){function e(t){for(var r in"string"==typeof t&&(t=e.parseAttrList(t)),t)t.hasOwnProperty(r)&&(this[r]=t[r])}var t=e.prototype;return t.decimalInteger=function(e){var t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t},t.hexadecimalInteger=function(e){if(this[e]){var t=(this[e]||"0x").slice(2);t=(1&t.length?"0":"")+t;for(var r=new Uint8Array(t.length/2),n=0;n<t.length/2;n++)r[n]=parseInt(t.slice(2*n,2*n+2),16);return r}return null},t.hexadecimalIntegerAsNumber=function(e){var t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t},t.decimalFloatingPoint=function(e){return parseFloat(this[e])},t.optionalFloat=function(e,t){var r=this[e];return r?parseFloat(r):t},t.enumeratedString=function(e){return this[e]},t.bool=function(e){return"YES"===this[e]},t.decimalResolution=function(e){var t=n.exec(this[e]);if(null!==t)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}},e.parseAttrList=function(e){var t,r={};for(i.lastIndex=0;null!==(t=i.exec(e));){var n=t[2];0===n.indexOf('"')&&n.lastIndexOf('"')===n.length-1&&(n=n.slice(1,-1)),r[t[1]]=n}return r},e}()},"./src/utils/binary-search.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={search:function(e,t){for(var r=0,n=e.length-1,i=null,a=null;r<=n;){var o=t(a=e[i=(r+n)/2|0]);if(o>0)r=i+1;else{if(!(o<0))return a;n=i-1}}return null}}},"./src/utils/buffer-helper.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{BufferHelper:()=>a});var n=r("./src/utils/logger.ts"),i={length:0,start:function(){return 0},end:function(){return 0}},a=function(){function e(){}return e.isBuffered=function(t,r){try{if(t)for(var n=e.getBuffered(t),i=0;i<n.length;i++)if(r>=n.start(i)&&r<=n.end(i))return!0}catch(e){}return!1},e.bufferInfo=function(t,r,n){try{if(t){var i,a=e.getBuffered(t),o=[];for(i=0;i<a.length;i++)o.push({start:a.start(i),end:a.end(i)});return this.bufferedInfo(o,r,n)}}catch(e){}return{len:0,start:r,end:r,nextStart:void 0}},e.bufferedInfo=function(e,t,r){t=Math.max(0,t),e.sort((function(e,t){return e.start-t.start||t.end-e.end}));var n=[];if(r)for(var i=0;i<e.length;i++){var a=n.length;if(a){var o=n[a-1].end;e[i].start-o<r?e[i].end>o&&(n[a-1].end=e[i].end):n.push(e[i])}else n.push(e[i])}else n=e;for(var s,l=0,u=t,c=t,d=0;d<n.length;d++){var h=n[d].start,f=n[d].end;if(t+r>=h&&t<f)u=h,l=(c=f)-t;else if(t+r<h){s=h;break}}return{len:l,start:u||0,end:c||0,nextStart:s}},e.getBuffered=function(e){try{return e.buffered}catch(e){return n.logger.log("failed to get media.buffered",e),i}},e}()},"./src/utils/cea-608-parser.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{CaptionScreen:()=>_,Row:()=>y,default:()=>T});var n,i=r("./src/utils/logger.ts"),a={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},o=function(e){var t=e;return a.hasOwnProperty(e)&&(t=a[e]),String.fromCharCode(t)},s=15,l=100,u={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},c={17:2,18:4,21:6,22:8,23:10,19:13,20:15},d={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},h={25:2,26:4,29:6,30:8,31:10,27:13,28:15},f=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];!function(e){e[e.ERROR=0]="ERROR",e[e.TEXT=1]="TEXT",e[e.WARNING=2]="WARNING",e[e.INFO=2]="INFO",e[e.DEBUG=3]="DEBUG",e[e.DATA=3]="DATA"}(n||(n={}));var p=function(){function e(){this.time=null,this.verboseLevel=n.ERROR}return e.prototype.log=function(e,t){if(this.verboseLevel>=e){var r="function"==typeof t?t():t;i.logger.log(this.time+" ["+e+"] "+r)}},e}(),m=function(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].toString(16));return t},g=function(){function e(e,t,r,n,i){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=e||"white",this.underline=t||!1,this.italics=r||!1,this.background=n||"black",this.flash=i||!1}var t=e.prototype;return t.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},t.setStyles=function(e){for(var t=["foreground","underline","italics","background","flash"],r=0;r<t.length;r++){var n=t[r];e.hasOwnProperty(n)&&(this[n]=e[n])}},t.isDefault=function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},t.equals=function(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash},t.copy=function(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash},t.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},e}(),v=function(){function e(e,t,r,n,i,a){this.uchar=void 0,this.penState=void 0,this.uchar=e||" ",this.penState=new g(t,r,n,i,a)}var t=e.prototype;return t.reset=function(){this.uchar=" ",this.penState.reset()},t.setChar=function(e,t){this.uchar=e,this.penState.copy(t)},t.setPenState=function(e){this.penState.copy(e)},t.equals=function(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)},t.copy=function(e){this.uchar=e.uchar,this.penState.copy(e.penState)},t.isEmpty=function(){return" "===this.uchar&&this.penState.isDefault()},e}(),y=function(){function e(e){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var t=0;t<l;t++)this.chars.push(new v);this.logger=e,this.pos=0,this.currPenState=new g}var t=e.prototype;return t.equals=function(e){for(var t=!0,r=0;r<l;r++)if(!this.chars[r].equals(e.chars[r])){t=!1;break}return t},t.copy=function(e){for(var t=0;t<l;t++)this.chars[t].copy(e.chars[t])},t.isEmpty=function(){for(var e=!0,t=0;t<l;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e},t.setCursor=function(e){this.pos!==e&&(this.pos=e),this.pos<0?(this.logger.log(n.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>l&&(this.logger.log(n.DEBUG,"Too large cursor position "+this.pos),this.pos=l)},t.moveCursor=function(e){var t=this.pos+e;if(e>1)for(var r=this.pos+1;r<t+1;r++)this.chars[r].setPenState(this.currPenState);this.setCursor(t)},t.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},t.insertChar=function(e){var t=this;e>=144&&this.backSpace();var r=o(e);this.pos>=l?this.logger.log(n.ERROR,(function(){return"Cannot insert "+e.toString(16)+" ("+r+") at position "+t.pos+". Skipping it!"})):(this.chars[this.pos].setChar(r,this.currPenState),this.moveCursor(1))},t.clearFromPos=function(e){var t;for(t=e;t<l;t++)this.chars[t].reset()},t.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},t.clearToEndOfRow=function(){this.clearFromPos(this.pos)},t.getTextString=function(){for(var e=[],t=!0,r=0;r<l;r++){var n=this.chars[r].uchar;" "!==n&&(t=!1),e.push(n)}return t?"":e.join("")},t.setPenStyles=function(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)},e}(),_=function(){function e(e){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var t=0;t<s;t++)this.rows.push(new y(e));this.logger=e,this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var t=e.prototype;return t.reset=function(){for(var e=0;e<s;e++)this.rows[e].clear();this.currRow=14},t.equals=function(e){for(var t=!0,r=0;r<s;r++)if(!this.rows[r].equals(e.rows[r])){t=!1;break}return t},t.copy=function(e){for(var t=0;t<s;t++)this.rows[t].copy(e.rows[t])},t.isEmpty=function(){for(var e=!0,t=0;t<s;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e},t.backSpace=function(){this.rows[this.currRow].backSpace()},t.clearToEndOfRow=function(){this.rows[this.currRow].clearToEndOfRow()},t.insertChar=function(e){this.rows[this.currRow].insertChar(e)},t.setPen=function(e){this.rows[this.currRow].setPenStyles(e)},t.moveCursor=function(e){this.rows[this.currRow].moveCursor(e)},t.setCursor=function(e){this.logger.log(n.INFO,"setCursor: "+e),this.rows[this.currRow].setCursor(e)},t.setPAC=function(e){this.logger.log(n.INFO,(function(){return"pacData = "+JSON.stringify(e)}));var t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(var r=0;r<s;r++)this.rows[r].clear();var i=this.currRow+1-this.nrRollUpRows,a=this.lastOutputScreen;if(a){var o=a.rows[i].cueStartTime,l=this.logger.time;if(o&&null!==l&&o<l)for(var u=0;u<this.nrRollUpRows;u++)this.rows[t-this.nrRollUpRows+u+1].copy(a.rows[i+u])}}this.currRow=t;var c=this.rows[this.currRow];if(null!==e.indent){var d=e.indent,h=Math.max(d-1,0);c.setCursor(e.indent),e.color=c.chars[h].penState.foreground}var f={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(f)},t.setBkgData=function(e){this.logger.log(n.INFO,(function(){return"bkgData = "+JSON.stringify(e)})),this.backSpace(),this.setPen(e),this.insertChar(32)},t.setRollUpRows=function(e){this.nrRollUpRows=e},t.rollUp=function(){var e=this;if(null!==this.nrRollUpRows){this.logger.log(n.TEXT,(function(){return e.getDisplayText()}));var t=this.currRow+1-this.nrRollUpRows,r=this.rows.splice(t,1)[0];r.clear(),this.rows.splice(this.currRow,0,r),this.logger.log(n.INFO,"Rolling up")}else this.logger.log(n.DEBUG,"roll_up but nrRollUpRows not set yet")},t.getDisplayText=function(e){e=e||!1;for(var t=[],r="",n=-1,i=0;i<s;i++){var a=this.rows[i].getTextString();a&&(n=i+1,e?t.push("Row "+n+": '"+a+"'"):t.push(a.trim()))}return t.length>0&&(r=e?"["+t.join(" | ")+"]":t.join("\n")),r},t.getTextAndFormat=function(){return this.rows},e}(),b=function(){function e(e,t,r){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new _(r),this.nonDisplayedMemory=new _(r),this.lastOutputScreen=new _(r),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}var t=e.prototype;return t.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},t.getHandler=function(){return this.outputFilter},t.setHandler=function(e){this.outputFilter=e},t.setPAC=function(e){this.writeScreen.setPAC(e)},t.setBkgData=function(e){this.writeScreen.setBkgData(e)},t.setMode=function(e){e!==this.mode&&(this.mode=e,this.logger.log(n.INFO,(function(){return"MODE="+e})),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)},t.insertChars=function(e){for(var t=this,r=0;r<e.length;r++)this.writeScreen.insertChar(e[r]);var i=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(n.INFO,(function(){return i+": "+t.writeScreen.getDisplayText(!0)})),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(n.TEXT,(function(){return"DISPLAYED: "+t.displayedMemory.getDisplayText(!0)})),this.outputDataUpdate())},t.ccRCL=function(){this.logger.log(n.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},t.ccBS=function(){this.logger.log(n.INFO,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},t.ccAOF=function(){},t.ccAON=function(){},t.ccDER=function(){this.logger.log(n.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},t.ccRU=function(e){this.logger.log(n.INFO,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)},t.ccFON=function(){this.logger.log(n.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},t.ccRDC=function(){this.logger.log(n.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},t.ccTR=function(){this.logger.log(n.INFO,"TR"),this.setMode("MODE_TEXT")},t.ccRTD=function(){this.logger.log(n.INFO,"RTD"),this.setMode("MODE_TEXT")},t.ccEDM=function(){this.logger.log(n.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},t.ccCR=function(){this.logger.log(n.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},t.ccENM=function(){this.logger.log(n.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},t.ccEOC=function(){var e=this;if(this.logger.log(n.INFO,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,this.logger.log(n.TEXT,(function(){return"DISP: "+e.displayedMemory.getDisplayText()}))}this.outputDataUpdate(!0)},t.ccTO=function(e){this.logger.log(n.INFO,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)},t.ccMIDROW=function(e){var t={flash:!1};if(t.underline=e%2==1,t.italics=e>=46,t.italics)t.foreground="white";else{var r=Math.floor(e/2)-16;t.foreground=["white","green","blue","cyan","red","yellow","magenta"][r]}this.logger.log(n.INFO,"MIDROW: "+JSON.stringify(t)),this.writeScreen.setPen(t)},t.outputDataUpdate=function(e){void 0===e&&(e=!1);var t=this.logger.time;null!==t&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t):this.cueStartTime=t,this.lastOutputScreen.copy(this.displayedMemory))},t.cueSplitAtTime=function(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))},e}();function M(e,t,r){r.a=e,r.b=t}function w(e,t,r){return r.a===e&&r.b===t}const T=function(){function e(e,t,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var n=new p;this.channels=[null,new b(e,t,n),new b(e+1,r,n)],this.cmdHistory={a:null,b:null},this.logger=n}var t=e.prototype;return t.getHandler=function(e){return this.channels[e].getHandler()},t.setHandler=function(e,t){this.channels[e].setHandler(t)},t.addData=function(e,t){var r,i,a,o=!1;this.logger.time=e;for(var s=0;s<t.length;s+=2)if(i=127&t[s],a=127&t[s+1],0!==i||0!==a){if(this.logger.log(n.DATA,"["+m([t[s],t[s+1]])+"] -> ("+m([i,a])+")"),(r=this.parseCmd(i,a))||(r=this.parseMidrow(i,a)),r||(r=this.parsePAC(i,a)),r||(r=this.parseBackgroundAttributes(i,a)),!r&&(o=this.parseChars(i,a))){var l=this.currentChannel;l&&l>0?this.channels[l].insertChars(o):this.logger.log(n.WARNING,"No channel found yet. TEXT-MODE?")}r||o||this.logger.log(n.WARNING,"Couldn't parse cleaned data "+m([i,a])+" orig: "+m([t[s],t[s+1]]))}},t.parseCmd=function(e,t){var r=this.cmdHistory;if(!((20===e||28===e||21===e||29===e)&&t>=32&&t<=47||(23===e||31===e)&&t>=33&&t<=35))return!1;if(w(e,t,r))return M(null,null,r),this.logger.log(n.DEBUG,"Repeated command ("+m([e,t])+") is dropped"),!0;var i=20===e||21===e||23===e?1:2,a=this.channels[i];return 20===e||21===e||28===e||29===e?32===t?a.ccRCL():33===t?a.ccBS():34===t?a.ccAOF():35===t?a.ccAON():36===t?a.ccDER():37===t?a.ccRU(2):38===t?a.ccRU(3):39===t?a.ccRU(4):40===t?a.ccFON():41===t?a.ccRDC():42===t?a.ccTR():43===t?a.ccRTD():44===t?a.ccEDM():45===t?a.ccCR():46===t?a.ccENM():47===t&&a.ccEOC():a.ccTO(t-32),M(e,t,r),this.currentChannel=i,!0},t.parseMidrow=function(e,t){var r=0;if((17===e||25===e)&&t>=32&&t<=47){if((r=17===e?1:2)!==this.currentChannel)return this.logger.log(n.ERROR,"Mismatch channel in midrow parsing"),!1;var i=this.channels[r];return!!i&&(i.ccMIDROW(t),this.logger.log(n.DEBUG,"MIDROW ("+m([e,t])+")"),!0)}return!1},t.parsePAC=function(e,t){var r,n=this.cmdHistory;if(!((e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127||(16===e||24===e)&&t>=64&&t<=95))return!1;if(w(e,t,n))return M(null,null,n),!0;var i=e<=23?1:2;r=t>=64&&t<=95?1===i?u[e]:d[e]:1===i?c[e]:h[e];var a=this.channels[i];return!!a&&(a.setPAC(this.interpretPAC(r,t)),M(e,t,n),this.currentChannel=i,!0)},t.interpretPAC=function(e,t){var r,n={color:null,italics:!1,indent:null,underline:!1,row:e};return r=t>95?t-96:t-64,n.underline=1==(1&r),r<=13?n.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(n.italics=!0,n.color="white"):n.indent=4*Math.floor((r-16)/2),n},t.parseChars=function(e,t){var r,i,a=null,s=null;if(e>=25?(r=2,s=e-8):(r=1,s=e),s>=17&&s<=19?(i=17===s?t+80:18===s?t+112:t+144,this.logger.log(n.INFO,"Special char '"+o(i)+"' in channel "+r),a=[i]):e>=32&&e<=127&&(a=0===t?[e]:[e,t]),a){var l=m(a);this.logger.log(n.DEBUG,"Char codes = "+l.join(",")),M(e,t,this.cmdHistory)}return a},t.parseBackgroundAttributes=function(e,t){var r;if(!((16===e||24===e)&&t>=32&&t<=47||(23===e||31===e)&&t>=45&&t<=47))return!1;var n={};16===e||24===e?(r=Math.floor((t-32)/2),n.background=f[r],t%2==1&&(n.background=n.background+"_semi")):45===t?n.background="transparent":(n.foreground="black",47===t&&(n.underline=!0));var i=e<=23?1:2;return this.channels[i].setBkgData(n),M(e,t,this.cmdHistory),!0},t.reset=function(){for(var e=0;e<Object.keys(this.channels).length;e++){var t=this.channels[e];t&&t.reset()}this.cmdHistory={a:null,b:null}},t.cueSplitAtTime=function(e){for(var t=0;t<this.channels.length;t++){var r=this.channels[t];r&&r.cueSplitAtTime(e)}},e}()},"./src/utils/codecs.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{isCodecSupportedInMp4:()=>a,isCodecType:()=>i});var n={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,av01:!0,drac:!0,dva1:!0,dvav:!0,dvh1:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0},text:{stpp:!0,wvtt:!0}};function i(e,t){var r=n[t];return!!r&&!0===r[e.slice(0,4)]}function a(e,t){return MediaSource.isTypeSupported((t||"video")+'/mp4;codecs="'+e+'"')}},"./src/utils/cues.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r("./src/utils/vttparser.ts"),i=r("./src/utils/webvtt-parser.ts"),a=r("./src/utils/texttrack-utils.ts"),o=/\s/;const s={newCue:function(e,t,r,s){for(var l,u,c,d,h,f=[],p=self.VTTCue||self.TextTrackCue,m=0;m<s.rows.length;m++)if(c=!0,d=0,h="",!(l=s.rows[m]).isEmpty()){for(var g=0;g<l.chars.length;g++)o.test(l.chars[g].uchar)&&c?d++:(h+=l.chars[g].uchar,c=!1);l.cueStartTime=t,t===r&&(r+=1e-4),d>=16?d--:d++;var v=(0,n.fixLineBreaks)(h.trim()),y=(0,i.generateCueId)(t,r,v);e&&e.cues&&e.cues.getCueById(y)||((u=new p(t,r,v)).id=y,u.line=m+1,u.align="left",u.position=10+Math.min(80,10*Math.floor(8*d/32)),f.push(u))}return e&&f.length&&(f.sort((function(e,t){return"auto"===e.line||"auto"===t.line?0:e.line>8&&t.line>8?t.line-e.line:e.line-t.line})),f.forEach((function(t){return(0,a.addCueToTrack)(e,t)}))),f}}},"./src/utils/discontinuities.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{adjustSlidingStart:()=>c,alignMediaPlaylistByPDT:()=>f,alignPDT:()=>h,alignStream:()=>d,findDiscontinuousReferenceFrag:()=>l,findFirstFragWithCC:()=>o,shouldAlignOnDiscontinuities:()=>s});var n=r("./src/polyfills/number.ts"),i=r("./src/utils/logger.ts"),a=r("./src/controller/level-helper.ts");function o(e,t){for(var r=null,n=0,i=e.length;n<i;n++){var a=e[n];if(a&&a.cc===t){r=a;break}}return r}function s(e,t,r){return!(!t.details||!(r.endCC>r.startCC||e&&e.cc<r.startCC))}function l(e,t,r){void 0===r&&(r=0);var n=e.fragments,a=t.fragments;if(a.length&&n.length){var s=o(n,a[0].cc);if(s&&(!s||s.startPTS))return s;i.logger.log("No frag in previous level to align on")}else i.logger.log("No fragments to align")}function u(e,t){if(e){var r=e.start+t;e.start=e.startPTS=r,e.endPTS=r+e.duration}}function c(e,t){for(var r=t.fragments,n=0,i=r.length;n<i;n++)u(r[n],e);t.fragmentHint&&u(t.fragmentHint,e),t.alignedSliding=!0}function d(e,t,r){t&&(function(e,t,r){if(s(e,r,t)){var a=l(r.details,t);a&&(0,n.isFiniteNumber)(a.start)&&(i.logger.log("Adjusting PTS using last level due to CC increase within current level "+t.url),c(a.start,t))}}(e,r,t),!r.alignedSliding&&t.details&&h(r,t.details),r.alignedSliding||!t.details||r.skippedSegments||(0,a.adjustSliding)(t.details,r))}function h(e,t){if(t.fragments.length&&e.hasProgramDateTime&&t.hasProgramDateTime){var r=t.fragments[0].programDateTime,a=e.fragments[0].programDateTime,o=(a-r)/1e3+t.fragments[0].start;o&&(0,n.isFiniteNumber)(o)&&(i.logger.log("Adjusting PTS using programDateTime delta "+(a-r)+"ms, sliding:"+o.toFixed(3)+" "+e.url+" "),c(o,e))}}function f(e,t){if(e.hasProgramDateTime&&t.hasProgramDateTime){var r=e.fragments,n=t.fragments;if(r.length&&n.length){var i=n[Math.round(n.length/2)-1],a=o(r,i.cc)||r[Math.round(r.length/2)-1],s=i.programDateTime,l=a.programDateTime;null!==s&&null!==l&&c((l-s)/1e3-(a.start-i.start),e)}}}},"./src/utils/ewma-bandwidth-estimator.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r("./src/utils/ewma.ts");const i=function(){function e(e,t,r){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new n.default(e),this.fast_=new n.default(t)}var t=e.prototype;return t.update=function(e,t){var r=this.slow_,i=this.fast_;this.slow_.halfLife!==e&&(this.slow_=new n.default(e,r.getEstimate(),r.getTotalWeight())),this.fast_.halfLife!==t&&(this.fast_=new n.default(t,i.getEstimate(),i.getTotalWeight()))},t.sample=function(e,t){var r=(e=Math.max(e,this.minDelayMs_))/1e3,n=8*t/r;this.fast_.sample(r,n),this.slow_.sample(r,n)},t.canEstimate=function(){var e=this.fast_;return e&&e.getTotalWeight()>=this.minWeight_},t.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},t.destroy=function(){},e}()},"./src/utils/ewma.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=function(){function e(e,t,r){void 0===t&&(t=0),void 0===r&&(r=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=r}var t=e.prototype;return t.sample=function(e,t){var r=Math.pow(this.alpha_,e);this.estimate_=t*(1-r)+r*this.estimate_,this.totalWeight_+=e},t.getTotalWeight=function(){return this.totalWeight_},t.getEstimate=function(){if(this.alpha_){var e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_},e}()},"./src/utils/fetch-loader.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g,fetchSupported:()=>h});var n=r("./src/polyfills/number.ts"),i=r("./src/loader/load-stats.ts"),a=r("./src/demux/chunk-cache.ts");function o(e){var t="function"==typeof Map?new Map:void 0;return o=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return s(e,arguments,c(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,e)},o(e)}function s(e,t,r){return s=l()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&u(i,r.prototype),i},s.apply(null,arguments)}function l(){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(e){return!1}}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function h(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(e){}return!1}var f=function(){function e(e){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=void 0,this.response=void 0,this.controller=void 0,this.context=void 0,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=e.fetchSetup||p,this.controller=new self.AbortController,this.stats=new i.LoadStats}var t=e.prototype;return t.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},t.abortInternal=function(){var e=this.response;e&&e.ok||(this.stats.aborted=!0,this.controller.abort())},t.abort=function(){var e;this.abortInternal(),null!==(e=this.callbacks)&&void 0!==e&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},t.load=function(e,t,r){var i=this,a=this.stats;if(a.loading.start)throw new Error("Loader can only be used once.");a.loading.start=self.performance.now();var o=function(e,t){var r={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(d({},e.headers))};return e.rangeEnd&&r.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1)),r}(e,this.controller.signal),s=r.onProgress,l="arraybuffer"===e.responseType,u=l?"byteLength":"length";this.context=e,this.config=t,this.callbacks=r,this.request=this.fetchSetup(e,o),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout((function(){i.abortInternal(),r.onTimeout(a,e,i.response)}),t.timeout),self.fetch(this.request).then((function(r){if(i.response=i.loader=r,!r.ok){var o=r.status,u=r.statusText;throw new m(u||"fetch, bad network response",o,r)}return a.loading.first=Math.max(self.performance.now(),a.loading.start),a.total=parseInt(r.headers.get("Content-Length")||"0"),s&&(0,n.isFiniteNumber)(t.highWaterMark)?i.loadProgressively(r,a,e,t.highWaterMark,s):l?r.arrayBuffer():r.text()})).then((function(o){var l=i.response;self.clearTimeout(i.requestTimeout),a.loading.end=Math.max(self.performance.now(),a.loading.first);var c=o[u];c&&(a.loaded=a.total=c);var d={url:l.url,data:o};s&&!(0,n.isFiniteNumber)(t.highWaterMark)&&s(a,e,o,l),r.onSuccess(d,a,e,l)})).catch((function(t){if(self.clearTimeout(i.requestTimeout),!a.aborted){var n=t&&t.code||0,o=t?t.message:null;r.onError({code:n,text:o},e,t?t.details:null)}}))},t.getCacheAge=function(){var e=null;if(this.response){var t=this.response.headers.get("age");e=t?parseFloat(t):null}return e},t.loadProgressively=function(e,t,r,n,i){void 0===n&&(n=0);var o=new a.default,s=e.body.getReader();return function a(){return s.read().then((function(s){if(s.done)return o.dataLength&&i(t,r,o.flush(),e),Promise.resolve(new ArrayBuffer(0));var l=s.value,u=l.length;return t.loaded+=u,u<n||o.dataLength?(o.push(l),o.dataLength>=n&&i(t,r,o.flush(),e)):i(t,r,l,e),a()})).catch((function(){return Promise.reject()}))}()},e}();function p(e,t){return new self.Request(e.url,t)}var m=function(e){var t,r;function n(t,r,n){var i;return(i=e.call(this,t)||this).code=void 0,i.details=void 0,i.code=r,i.details=n,i}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,u(t,r),n}(o(Error));const g=f},"./src/utils/hex.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={hexDump:function(e){for(var t="",r=0;r<e.length;r++){var n=e[r].toString(16);n.length<2&&(n="0"+n),t+=n}return t}}},"./src/utils/imsc1-ttml-parser.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{IMSC1_CODEC:()=>c,parseIMSC1:()=>p});var n=r("./src/utils/mp4-tools.ts"),i=r("./src/utils/vttparser.ts"),a=r("./src/utils/vttcue.ts"),o=r("./src/demux/id3.ts"),s=r("./src/utils/timescale-conversion.ts"),l=r("./src/utils/webvtt-parser.ts");function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}var c="stpp.ttml.im1t",d=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,h=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,f={left:"start",center:"center",right:"end",start:"start",end:"end"};function p(e,t,r,i,c){var d=(0,n.findBox)(new Uint8Array(e),["mdat"]);if(0!==d.length){var h=d.map((function(e){return(0,o.utf8ArrayToStr)(e)})),p=(0,s.toTimescaleFromScale)(t,1,r);try{h.forEach((function(e){return i(function(e,t){var r=(new DOMParser).parseFromString(e,"text/xml").getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");var n={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},i=Object.keys(n).reduce((function(e,t){return e[t]=r.getAttribute("ttp:"+t)||n[t],e}),{}),o="preserve"!==r.getAttribute("xml:space"),s=g(m(r,"styling","style")),c=g(m(r,"layout","region")),d=m(r,"body","[begin]");return[].map.call(d,(function(e){var r=v(e,o);if(!r||!e.hasAttribute("begin"))return null;var n=b(e.getAttribute("begin"),i),d=b(e.getAttribute("dur"),i),h=b(e.getAttribute("end"),i);if(null===n)throw _(e);if(null===h){if(null===d)throw _(e);h=n+d}var p=new a.default(n-t,h-t,r);p.id=(0,l.generateCueId)(p.startTime,p.endTime,p.text);var m=function(e,t,r){var n="http://www.w3.org/ns/ttml#styling",i=null,a=null!=e&&e.hasAttribute("style")?e.getAttribute("style"):null;return a&&r.hasOwnProperty(a)&&(i=r[a]),["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"].reduce((function(r,a){var o=y(t,n,a)||y(e,n,a)||y(i,n,a);return o&&(r[a]=o),r}),{})}(c[e.getAttribute("region")],s[e.getAttribute("style")],s),g=m.textAlign;if(g){var M=f[g];M&&(p.lineAlign=M),p.align=g}return u(p,m),p})).filter((function(e){return null!==e}))}(e,p))}))}catch(e){c(e)}}else c(new Error("Could not parse IMSC1 mdat"))}function m(e,t,r){var n=e.getElementsByTagName(t)[0];return n?[].slice.call(n.querySelectorAll(r)):[]}function g(e){return e.reduce((function(e,t){var r=t.getAttribute("xml:id");return r&&(e[r]=t),e}),{})}function v(e,t){return[].slice.call(e.childNodes).reduce((function(e,r,n){var i;return"br"===r.nodeName&&n?e+"\n":null!==(i=r.childNodes)&&void 0!==i&&i.length?v(r,t):t?e+r.textContent.trim().replace(/\s+/g," "):e+r.textContent}),"")}function y(e,t,r){return e&&e.hasAttributeNS(t,r)?e.getAttributeNS(t,r):null}function _(e){return new Error("Could not parse ttml timestamp "+e)}function b(e,t){if(!e)return null;var r=(0,i.parseTimeStamp)(e);return null===r&&(d.test(e)?r=function(e,t){var r=d.exec(e),n=(0|r[4])+(0|r[5])/t.subFrameRate;return 3600*(0|r[1])+60*(0|r[2])+(0|r[3])+n/t.frameRate}(e,t):h.test(e)&&(r=function(e,t){var r=h.exec(e),n=Number(r[1]);switch(r[2]){case"h":return 3600*n;case"m":return 60*n;case"ms":return 1e3*n;case"f":return n/t.frameRate;case"t":return n/t.tickRate}return n}(e,t))),r}},"./src/utils/keysystem-util.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{changeEndianness:()=>i,convertDataUriToArrayBytes:()=>a,strToUtf8array:()=>o});var n=r("./src/utils/numeric-encoding-utils.ts");function i(e){var t=function(e,t,r){var n=e[t];e[t]=e[r],e[r]=n};t(e,0,3),t(e,1,2),t(e,4,5),t(e,6,7)}function a(e){var t,r,i=e.split(":"),a=null;if("data"===i[0]&&2===i.length){var s=i[1].split(";"),l=s[s.length-1].split(",");if(2===l.length){var u="base64"===l[0],c=l[1];u?(s.splice(-1,1),a=(0,n.base64Decode)(c)):(t=o(c).subarray(0,16),(r=new Uint8Array(16)).set(t,16-t.length),a=r)}}return a}function o(e){return Uint8Array.from(unescape(encodeURIComponent(e)),(function(e){return e.charCodeAt(0)}))}},"./src/utils/logger.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{enableLogs:()=>s,logger:()=>l});var n=function(){},i={trace:n,debug:n,log:n,warn:n,info:n,error:n},a=i;function o(e){var t=self.console[e];return t?t.bind(self.console,"["+e+"] >"):n}function s(e,t){if(self.console&&!0===e||"object"==typeof e){!function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];r.forEach((function(t){a[t]=e[t]?e[t].bind(e):o(t)}))}(e,"debug","log","info","warn","error");try{a.log('Debug logs enabled for "'+t+'"')}catch(e){a=i}}else a=i}var l=i},"./src/utils/mediakeys-helper.ts":(e,t,r)=>{"use strict";var n,i,a;function o(e){switch(e){case i.FAIRPLAY:return n.FAIRPLAY;case i.PLAYREADY:return n.PLAYREADY;case i.WIDEVINE:return n.WIDEVINE;case i.CLEARKEY:return n.CLEARKEY}}function s(e){if(e===a.WIDEVINE)return n.WIDEVINE}function l(e){switch(e){case n.FAIRPLAY:return i.FAIRPLAY;case n.PLAYREADY:return i.PLAYREADY;case n.WIDEVINE:return i.WIDEVINE;case n.CLEARKEY:return i.CLEARKEY}}function u(e){var t=e.drmSystems,r=e.widevineLicenseUrl,i=t?[n.FAIRPLAY,n.WIDEVINE,n.PLAYREADY,n.CLEARKEY].filter((function(e){return!!t[e]})):[];return!i[n.WIDEVINE]&&r&&i.push(n.WIDEVINE),i}r.r(t),r.d(t,{KeySystemFormats:()=>i,KeySystemIds:()=>a,KeySystems:()=>n,getKeySystemsForConfig:()=>u,getSupportedMediaKeySystemConfigurations:()=>d,keySystemDomainToKeySystemFormat:()=>l,keySystemFormatToKeySystemDomain:()=>o,keySystemIdToKeySystemDomain:()=>s,requestMediaKeySystemAccess:()=>c}),function(e){e.CLEARKEY="org.w3.clearkey",e.FAIRPLAY="com.apple.fps",e.PLAYREADY="com.microsoft.playready",e.WIDEVINE="com.widevine.alpha"}(n||(n={})),function(e){e.CLEARKEY="org.w3.clearkey",e.FAIRPLAY="com.apple.streamingkeydelivery",e.PLAYREADY="com.microsoft.playready",e.WIDEVINE="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"}(i||(i={})),function(e){e.WIDEVINE="edef8ba979d64acea3c827dcd51d21ed"}(a||(a={}));var c="undefined"!=typeof self&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null;function d(e,t,r,i){var a;switch(e){case n.FAIRPLAY:a=["cenc","sinf"];break;case n.WIDEVINE:case n.PLAYREADY:a=["cenc"];break;case n.CLEARKEY:a=["cenc","keyids"];break;default:throw new Error("Unknown key-system: "+e)}return function(e,t,r,n){return[{initDataTypes:e,persistentState:n.persistentState||"not-allowed",distinctiveIdentifier:n.distinctiveIdentifier||"not-allowed",sessionTypes:n.sessionTypes||[n.sessionType||"temporary"],audioCapabilities:t.map((function(e){return{contentType:'audio/mp4; codecs="'+e+'"',robustness:n.audioRobustness||"",encryptionScheme:n.audioEncryptionScheme||null}})),videoCapabilities:r.map((function(e){return{contentType:'video/mp4; codecs="'+e+'"',robustness:n.videoRobustness||"",encryptionScheme:n.videoEncryptionScheme||null}}))}]}(a,t,r,i)}},"./src/utils/mediasource-helper.ts":(e,t,r)=>{"use strict";function n(){return self.MediaSource||self.WebKitMediaSource}r.r(t),r.d(t,{getMediaSource:()=>n})},"./src/utils/mp4-tools.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{RemuxerTrackIdConfig:()=>d,appendUint8Array:()=>x,bin2str:()=>h,computeRawDurationFromSamples:()=>L,discardEPB:()=>O,findBox:()=>v,getDuration:()=>T,getStartDTS:()=>w,mp4Box:()=>R,mp4pssh:()=>I,offsetStartDTS:()=>S,parseEmsg:()=>P,parseInitSegment:()=>_,parsePssh:()=>Y,parseSEIMessageFromNALu:()=>A,parseSamples:()=>E,parseSegmentIndex:()=>y,parseSinf:()=>M,patchEncyptionData:()=>b,readSint32:()=>m,readUint16:()=>f,readUint32:()=>p,segmentValidRange:()=>k,writeUint32:()=>g});var n=r("./src/loader/fragment.ts"),a=r("./src/utils/typed-array.ts"),o=r("./src/demux/id3.ts"),s=r("./src/utils/logger.ts"),l=r("./src/utils/hex.ts"),u=Math.pow(2,32)-1,c=[].push,d={video:1,audio:2,id3:3,text:4};function h(e){return String.fromCharCode.apply(null,e)}function f(e,t){var r=e[t]<<8|e[t+1];return r<0?65536+r:r}function p(e,t){var r=m(e,t);return r<0?4294967296+r:r}function m(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function g(e,t,r){e[t]=r>>24,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}function v(e,t){var r=[];if(!t.length)return r;for(var n=e.byteLength,i=0;i<n;){var a=p(e,i),o=a>1?i+a:n;if(h(e.subarray(i+4,i+8))===t[0])if(1===t.length)r.push(e.subarray(i+8,o));else{var s=v(e.subarray(i+8,o),t.slice(1));s.length&&c.apply(r,s)}i=o}return r}function y(e){var t=[],r=e[0],n=8,a=p(e,n);n+=4,n+=0===r?8:16,n+=2;var o=e.length+0,s=f(e,n);n+=2;for(var l=0;l<s;l++){var u=n,c=p(e,u);u+=4;var d=2147483647&c;if(1==(2147483648&c)>>>31)return i.warn("SIDX has hierarchical references (not supported)"),null;var h=p(e,u);u+=4,t.push({referenceSize:d,subsegmentDuration:h,info:{duration:h/a,start:o,end:o+d-1}}),o+=d,n=u+=4}return{earliestPresentationTime:0,timescale:a,version:r,referencesCount:s,references:t}}function _(e){for(var t=[],r=v(e,["moov","trak"]),i=0;i<r.length;i++){var a=r[i],o=v(a,["tkhd"])[0];if(o){var s=o[0],l=0===s?12:20,u=p(o,l),c=v(a,["mdia","mdhd"])[0];if(c){var d=p(c,l=0===(s=c[0])?12:20),f=v(a,["mdia","hdlr"])[0];if(f){var m=h(f.subarray(8,12)),g={soun:n.ElementaryStreamTypes.AUDIO,vide:n.ElementaryStreamTypes.VIDEO}[m];if(g){var y=v(a,["mdia","minf","stbl","stsd"])[0],_=void 0;y&&(_=h(y.subarray(12,16))),t[u]={timescale:d,type:g},t[g]={timescale:d,id:u,codec:_}}}}}}return v(e,["moov","mvex","trex"]).forEach((function(e){var r=p(e,4),n=t[r];n&&(n.default={duration:p(e,12),flags:p(e,20)})})),t}function b(e,t){if(!e||!t)return e;var r=t.keyId;return r&&t.isCommonEncryption&&v(e,["moov","trak"]).forEach((function(e){var t=v(e,["mdia","minf","stbl","stsd"])[0].subarray(8),n=v(t,["enca"]),i=n.length>0;i||(n=v(t,["encv"])),n.forEach((function(e){v(i?e.subarray(28):e.subarray(78),["sinf"]).forEach((function(e){var t=M(e);if(t){var n=t.subarray(8,24);n.some((function(e){return 0!==e}))||(s.logger.log("[eme] Patching keyId in 'enc"+(i?"a":"v")+">sinf>>tenc' box: "+l.default.hexDump(n)+" -> "+l.default.hexDump(r)),t.set(r,8))}}))}))})),e}function M(e){var t=v(e,["schm"])[0];if(t){var r=h(t.subarray(4,8));if("cbcs"===r||"cenc"===r)return v(e,["schi","tenc"])[0]}return s.logger.error("[eme] missing 'schm' box"),null}function w(e,t){return v(t,["moof","traf"]).reduce((function(t,r){var n=v(r,["tfdt"])[0],i=n[0],a=v(r,["tfhd"]).reduce((function(t,r){var a=p(r,4),o=e[a];if(o){var s=p(n,4);1===i&&(s*=Math.pow(2,32),s+=p(n,8));var l=s/(o.timescale||9e4);if(isFinite(l)&&(null===t||l<t))return l}return t}),null);return null!==a&&isFinite(a)&&(null===t||a<t)?a:t}),null)||0}function T(e,t){for(var r=0,i=0,a=0,o=v(e,["moof","traf"]),s=0;s<o.length;s++){var l=o[s],u=v(l,["tfhd"])[0],c=t[p(u,4)];if(c){var d=c.default,h=p(u,0)|(null==d?void 0:d.flags),f=null==d?void 0:d.duration;8&h&&(f=p(u,2&h?12:8));for(var m=c.timescale||9e4,g=v(l,["trun"]),_=0;_<g.length;_++)!(r=L(g[_]))&&f&&(r=f*p(g[_],4)),c.type===n.ElementaryStreamTypes.VIDEO?i+=r/m:c.type===n.ElementaryStreamTypes.AUDIO&&(a+=r/m)}}if(0===i&&0===a){for(var b=0,M=v(e,["sidx"]),w=0;w<M.length;w++){var T=y(M[w]);null!=T&&T.references&&(b+=T.references.reduce((function(e,t){return e+t.info.duration||0}),0))}return b}return i||a}function L(e){var t=p(e,0),r=8;1&t&&(r+=4),4&t&&(r+=4);for(var n=0,i=p(e,4),a=0;a<i;a++)256&t&&(n+=p(e,r),r+=4),512&t&&(r+=4),1024&t&&(r+=4),2048&t&&(r+=4);return n}function S(e,t,r){v(t,["moof","traf"]).forEach((function(t){v(t,["tfhd"]).forEach((function(n){var i=p(n,4),a=e[i];if(a){var o=a.timescale||9e4;v(t,["tfdt"]).forEach((function(e){var t=e[0],n=p(e,4);if(0===t)n-=r*o,g(e,4,n=Math.max(n,0));else{n*=Math.pow(2,32),n+=p(e,8),n-=r*o,n=Math.max(n,0);var i=Math.floor(n/(u+1)),a=Math.floor(n%(u+1));g(e,4,i),g(e,8,a)}}))}}))}))}function k(e){var t={valid:null,remainder:null},r=v(e,["moof"]);if(!r)return t;if(r.length<2)return t.remainder=e,t;var n=r[r.length-1];return t.valid=(0,a.sliceUint8)(e,0,n.byteOffset-8),t.remainder=(0,a.sliceUint8)(e,n.byteOffset-8),t}function x(e,t){var r=new Uint8Array(e.length+t.length);return r.set(e),r.set(t,e.length),r}function E(e,t){var r=[],i=t.samples,a=t.timescale,o=t.id,s=!1;return v(i,["moof"]).map((function(l){var u=l.byteOffset-8;v(l,["traf"]).map((function(l){var c=v(l,["tfdt"]).map((function(e){var t=e[0],r=p(e,4);return 1===t&&(r*=Math.pow(2,32),r+=p(e,8)),r/a}))[0];return void 0!==c&&(e=c),v(l,["tfhd"]).map((function(c){var d=p(c,4),h=16777215&p(c,0),f=0,g=0!=(16&h),y=0,_=0!=(32&h),b=8;d===o&&(0!=(1&h)&&(b+=8),0!=(2&h)&&(b+=4),0!=(8&h)&&(f=p(c,b),b+=4),g&&(y=p(c,b),b+=4),_&&(b+=4),"video"===t.type&&(s=function(e){if(!e)return!1;var t=e.indexOf("."),r=t<0?e:e.substring(0,t);return"hvc1"===r||"hev1"===r||"dvh1"===r||"dvhe"===r}(t.codec)),v(l,["trun"]).map((function(o){var l=o[0],c=16777215&p(o,0),d=0!=(1&c),h=0,g=0!=(4&c),v=0!=(256&c),_=0,b=0!=(512&c),M=0,w=0!=(1024&c),T=0!=(2048&c),L=0,S=p(o,4),k=8;d&&(h=p(o,k),k+=4),g&&(k+=4);for(var x=h+u,E=0;E<S;E++){if(v?(_=p(o,k),k+=4):_=f,b?(M=p(o,k),k+=4):M=y,w&&(k+=4),T&&(L=0===l?p(o,k):m(o,k),k+=4),t.type===n.ElementaryStreamTypes.VIDEO)for(var O=0;O<M;){var P=p(i,x);D(s,i[x+=4])&&A(i.subarray(x,x+P),s?2:1,e+L/a,r),x+=P,O+=P+4}e+=_/a}})))}))}))})),r}function D(e,t){if(e){var r=t>>1&63;return 39===r||40===r}return 6==(31&t)}function A(e,t,r,n){var i=O(e),a=0;a+=t;for(var s=0,l=0,u=!1,c=0;a<i.length;){s=0;do{if(a>=i.length)break;s+=c=i[a++]}while(255===c);l=0;do{if(a>=i.length)break;l+=c=i[a++]}while(255===c);var d=i.length-a;if(!u&&4===s&&a<i.length){if(u=!0,181===i[a++]){var h=f(i,a);if(a+=2,49===h){var m=p(i,a);if(a+=4,1195456820===m){var g=i[a++];if(3===g){var v=i[a++],y=64&v,_=y?2+3*(31&v):0,b=new Uint8Array(_);if(y){b[0]=v;for(var M=1;M<_;M++)b[M]=i[a++]}n.push({type:g,payloadType:s,pts:r,bytes:b})}}}}}else if(5===s&&l<d){if(u=!0,l>16){for(var w=[],T=0;T<16;T++){var L=i[a++].toString(16);w.push(1==L.length?"0"+L:L),3!==T&&5!==T&&7!==T&&9!==T||w.push("-")}for(var S=l-16,k=new Uint8Array(S),x=0;x<S;x++)k[x]=i[a++];n.push({payloadType:s,pts:r,uuid:w.join(""),userData:(0,o.utf8ArrayToStr)(k),userDataBytes:k})}}else if(l<d)a+=l;else if(l>d)break}}function O(e){for(var t=e.byteLength,r=[],n=1;n<t-2;)0===e[n]&&0===e[n+1]&&3===e[n+2]?(r.push(n+2),n+=2):n++;if(0===r.length)return e;var i=t-r.length,a=new Uint8Array(i),o=0;for(n=0;n<i;o++,n++)o===r[0]&&(o++,r.shift()),a[n]=e[o];return a}function P(e){var t=e[0],r="",n="",a=0,o=0,s=0,l=0,u=0,c=0;if(0===t){for(;"\0"!==h(e.subarray(c,c+1));)r+=h(e.subarray(c,c+1)),c+=1;for(r+=h(e.subarray(c,c+1)),c+=1;"\0"!==h(e.subarray(c,c+1));)n+=h(e.subarray(c,c+1)),c+=1;n+=h(e.subarray(c,c+1)),c+=1,a=p(e,12),o=p(e,16),l=p(e,20),u=p(e,24),c=28}else if(1===t){a=p(e,c+=4);var d=p(e,c+=4),f=p(e,c+=4);for(c+=4,s=Math.pow(2,32)*d+f,Number.isSafeInteger(s)||(s=Number.MAX_SAFE_INTEGER,i.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),l=p(e,c),u=p(e,c+=4),c+=4;"\0"!==h(e.subarray(c,c+1));)r+=h(e.subarray(c,c+1)),c+=1;for(r+=h(e.subarray(c,c+1)),c+=1;"\0"!==h(e.subarray(c,c+1));)n+=h(e.subarray(c,c+1)),c+=1;n+=h(e.subarray(c,c+1)),c+=1}return{schemeIdUri:r,value:n,timeScale:a,presentationTime:s,presentationTimeDelta:o,eventDuration:l,id:u,payload:e.subarray(c,e.byteLength)}}function R(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var i=r.length,a=8,o=i;o--;)a+=r[o].byteLength;var s=new Uint8Array(a);for(s[0]=a>>24&255,s[1]=a>>16&255,s[2]=a>>8&255,s[3]=255&a,s.set(e,4),o=0,a=8;o<i;o++)s.set(r[o],a),a+=r[o].byteLength;return s}function I(e,t,r){if(16!==e.byteLength)throw new RangeError("Invalid system id");var n,i,a;if(t){n=1,i=new Uint8Array(16*t.length);for(var o=0;o<t.length;o++){var s=t[o];if(16!==s.byteLength)throw new RangeError("Invalid key");i.set(s,16*o)}}else n=0,i=new Uint8Array;n>0?(a=new Uint8Array(4),t.length>0&&new DataView(a.buffer).setUint32(0,t.length,!1)):a=new Uint8Array;var l=new Uint8Array(4);return r&&r.byteLength>0&&new DataView(l.buffer).setUint32(0,r.byteLength,!1),R([112,115,115,104],new Uint8Array([n,0,0,0]),e,a,i,l,r||new Uint8Array)}function Y(e){if(!(e instanceof ArrayBuffer)||e.byteLength<32)return null;var t={version:0,systemId:"",kids:null,data:null},r=new DataView(e),n=r.getUint32(0);if(e.byteLength!==n&&n>44)return null;if(1886614376!==r.getUint32(4))return null;if(t.version=r.getUint32(8)>>>24,t.version>1)return null;t.systemId=l.default.hexDump(new Uint8Array(e,12,16));var i=r.getUint32(28);if(0===t.version){if(n-32<i)return null;t.data=new Uint8Array(e,32,i)}else if(1===t.version){t.kids=[];for(var a=0;a<i;a++)t.kids.push(new Uint8Array(e,32+16*a,16))}return t}},"./src/utils/numeric-encoding-utils.ts":(e,t,r)=>{"use strict";function n(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function i(e){return btoa(e)}function a(e){return atob(e)}function o(e){return btoa(String.fromCharCode.apply(String,e))}function s(e){return n(o(e))}function l(e){return Uint8Array.from(atob(e),(function(e){return e.charCodeAt(0)}))}r.r(t),r.d(t,{base64Decode:()=>l,base64DecodeToStr:()=>a,base64Encode:()=>o,base64ToBase64Url:()=>n,base64UrlEncode:()=>s,strToBase64Encode:()=>i})},"./src/utils/output-filter.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var n=function(){function e(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}var t=e.prototype;return t.dispatchCue=function(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)},t.newCue=function(e,t,r){(null===this.startTime||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)},t.reset=function(){this.cueRanges=[],this.startTime=null},e}()},"./src/utils/texttrack-utils.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{addCueToTrack:()=>a,clearCurrentCues:()=>o,getCuesInRange:()=>l,removeCuesInRange:()=>s,sendAddTrackEvent:()=>i});var n=r("./src/utils/logger.ts");function i(e,t){var r;try{r=new Event("addtrack")}catch(e){(r=document.createEvent("Event")).initEvent("addtrack",!1,!1)}r.track=e,t.dispatchEvent(r)}function a(e,t){var r=e.mode;if("disabled"===r&&(e.mode="hidden"),e.cues&&!e.cues.getCueById(t.id))try{if(e.addCue(t),!e.cues.getCueById(t.id))throw new Error("addCue is failed for: "+t)}catch(r){n.logger.debug("[texttrack-utils]: "+r);var i=new self.TextTrackCue(t.startTime,t.endTime,t.text);i.id=t.id,e.addCue(i)}"disabled"===r&&(e.mode=r)}function o(e){var t=e.mode;if("disabled"===t&&(e.mode="hidden"),e.cues)for(var r=e.cues.length;r--;)e.removeCue(e.cues[r]);"disabled"===t&&(e.mode=t)}function s(e,t,r,n){var i=e.mode;if("disabled"===i&&(e.mode="hidden"),e.cues&&e.cues.length>0)for(var a=l(e.cues,t,r),o=0;o<a.length;o++)n&&!n(a[o])||e.removeCue(a[o]);"disabled"===i&&(e.mode=i)}function l(e,t,r){var n=[],i=function(e,t){if(t<e[0].startTime)return 0;var r=e.length-1;if(t>e[r].endTime)return-1;for(var n=0,i=r;n<=i;){var a=Math.floor((i+n)/2);if(t<e[a].startTime)i=a-1;else{if(!(t>e[a].startTime&&n<r))return a;n=a+1}}return e[n].startTime-t<t-e[i].startTime?n:i}(e,t);if(i>-1)for(var a=i,o=e.length;a<o;a++){var s=e[a];if(s.startTime>=t&&s.endTime<=r)n.push(s);else if(s.startTime>r)return n}return n}},"./src/utils/time-ranges.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={toString:function(e){for(var t="",r=e.length,n=0;n<r;n++)t+="["+e.start(n).toFixed(3)+","+e.end(n).toFixed(3)+"]";return t}}},"./src/utils/timescale-conversion.ts":(e,t,r)=>{"use strict";function n(e,t,r,n){void 0===r&&(r=1),void 0===n&&(n=!1);var i=e*t*r;return n?Math.round(i):i}function i(e,t,r,i){return void 0===r&&(r=1),void 0===i&&(i=!1),n(e,t,1/r,i)}function a(e,t){return void 0===t&&(t=!1),n(e,1e3,1/9e4,t)}function o(e,t){return void 0===t&&(t=1),n(e,9e4,1/t)}r.r(t),r.d(t,{toMpegTsClockFromTimescale:()=>o,toMsFromMpegTsClock:()=>a,toTimescaleFromBase:()=>n,toTimescaleFromScale:()=>i})},"./src/utils/typed-array.ts":(e,t,r)=>{"use strict";function n(e,t,r){return Uint8Array.prototype.slice?e.slice(t,r):new Uint8Array(Array.prototype.slice.call(e,t,r))}r.r(t),r.d(t,{sliceUint8:()=>n})},"./src/utils/vttcue.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=function(){if("undefined"!=typeof self&&self.VTTCue)return self.VTTCue;var e=["","lr","rl"],t=["start","middle","end","left","right"];function r(e,t){if("string"!=typeof t)return!1;if(!Array.isArray(e))return!1;var r=t.toLowerCase();return!!~e.indexOf(r)&&r}function n(e){return r(t,e)}function i(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var o in a)e[o]=a[o]}return e}function a(t,a,o){var s=this,l={enumerable:!0};s.hasBeenReset=!1;var u="",c=!1,d=t,h=a,f=o,p=null,m="",g=!0,v="auto",y="start",_=50,b="middle",M=50,w="middle";Object.defineProperty(s,"id",i({},l,{get:function(){return u},set:function(e){u=""+e}})),Object.defineProperty(s,"pauseOnExit",i({},l,{get:function(){return c},set:function(e){c=!!e}})),Object.defineProperty(s,"startTime",i({},l,{get:function(){return d},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");d=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"endTime",i({},l,{get:function(){return h},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");h=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"text",i({},l,{get:function(){return f},set:function(e){f=""+e,this.hasBeenReset=!0}})),Object.defineProperty(s,"region",i({},l,{get:function(){return p},set:function(e){p=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"vertical",i({},l,{get:function(){return m},set:function(t){var n=function(t){return r(e,t)}(t);if(!1===n)throw new SyntaxError("An invalid or illegal string was specified.");m=n,this.hasBeenReset=!0}})),Object.defineProperty(s,"snapToLines",i({},l,{get:function(){return g},set:function(e){g=!!e,this.hasBeenReset=!0}})),Object.defineProperty(s,"line",i({},l,{get:function(){return v},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("An invalid number or illegal string was specified.");v=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"lineAlign",i({},l,{get:function(){return y},set:function(e){var t=n(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");y=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"position",i({},l,{get:function(){return _},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");_=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"positionAlign",i({},l,{get:function(){return b},set:function(e){var t=n(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",i({},l,{get:function(){return M},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");M=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",i({},l,{get:function(){return w},set:function(e){var t=n(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");w=t,this.hasBeenReset=!0}})),s.displayState=void 0}return a.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},a}()},"./src/utils/vttparser.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{VTTParser:()=>h,fixLineBreaks:()=>d,parseTimeStamp:()=>a});var n=r("./src/utils/vttcue.ts"),i=function(){function e(){}return e.prototype.decode=function(e,t){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))},e}();function a(e){function t(e,t,r,n){return 3600*(0|e)+60*(0|t)+(0|r)+parseFloat(n||0)}var r=e.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return r?parseFloat(r[2])>59?t(r[2],r[3],0,r[4]):t(r[1],r[2],r[3],r[4]):null}var o=function(){function e(){this.values=Object.create(null)}var t=e.prototype;return t.set=function(e,t){this.get(e)||""===t||(this.values[e]=t)},t.get=function(e,t,r){return r?this.has(e)?this.values[e]:t[r]:this.has(e)?this.values[e]:t},t.has=function(e){return e in this.values},t.alt=function(e,t,r){for(var n=0;n<r.length;++n)if(t===r[n]){this.set(e,t);break}},t.integer=function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},t.percent=function(e,t){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(t)){var r=parseFloat(t);if(r>=0&&r<=100)return this.set(e,r),!0}return!1},e}();function s(e,t,r,n){var i=n?e.split(n):[e];for(var a in i)if("string"==typeof i[a]){var o=i[a].split(r);2===o.length&&t(o[0],o[1])}}var l=new n.default(0,0,""),u="middle"===l.align?"middle":"center";function c(e,t,r){var n=e;function i(){var t=a(e);if(null===t)throw new Error("Malformed timestamp: "+n);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function c(){e=e.replace(/^\s+/,"")}if(c(),t.startTime=i(),c(),"--\x3e"!==e.slice(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);e=e.slice(3),c(),t.endTime=i(),c(),function(e,t){var n=new o;s(e,(function(e,t){var i;switch(e){case"region":for(var a=r.length-1;a>=0;a--)if(r[a].id===t){n.set(e,r[a].region);break}break;case"vertical":n.alt(e,t,["rl","lr"]);break;case"line":i=t.split(","),n.integer(e,i[0]),n.percent(e,i[0])&&n.set("snapToLines",!1),n.alt(e,i[0],["auto"]),2===i.length&&n.alt("lineAlign",i[1],["start",u,"end"]);break;case"position":i=t.split(","),n.percent(e,i[0]),2===i.length&&n.alt("positionAlign",i[1],["start",u,"end","line-left","line-right","auto"]);break;case"size":n.percent(e,t);break;case"align":n.alt(e,t,["start",u,"end","left","right"])}}),/:/,/\s/),t.region=n.get("region",null),t.vertical=n.get("vertical","");var i=n.get("line","auto");"auto"===i&&-1===l.line&&(i=-1),t.line=i,t.lineAlign=n.get("lineAlign","start"),t.snapToLines=n.get("snapToLines",!0),t.size=n.get("size",100),t.align=n.get("align",u);var a=n.get("position","auto");"auto"===a&&50===l.position&&(a="start"===t.align||"left"===t.align?0:"end"===t.align||"right"===t.align?100:50),t.position=a}(e,t)}function d(e){return e.replace(/<br(?: \/)?>/gi,"\n")}var h=function(){function e(){this.state="INITIAL",this.buffer="",this.decoder=new i,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var t=e.prototype;return t.parse=function(e){var t=this;function r(){var e=t.buffer,r=0;for(e=d(e);r<e.length&&"\r"!==e[r]&&"\n"!==e[r];)++r;var n=e.slice(0,r);return"\r"===e[r]&&++r,"\n"===e[r]&&++r,t.buffer=e.slice(r),n}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var i="";if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var a=(i=r()).match(/^()?WEBVTT([ \t].*)?$/);if(!a||!a[0])throw new Error("Malformed WebVTT signature.");t.state="HEADER"}for(var o=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(o?o=!1:i=r(),t.state){case"HEADER":/:/.test(i)?s(i,(function(e,t){}),/:/):i||(t.state="ID");continue;case"NOTE":i||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){t.state="NOTE";break}if(!i)continue;if(t.cue=new n.default(0,0,""),t.state="CUE",-1===i.indexOf("--\x3e")){t.cue.id=i;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{c(i,t.cue,t.regionList)}catch(e){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var l=-1!==i.indexOf("--\x3e");if(!i||l&&(o=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(null===t.cue)continue;t.cue.text&&(t.cue.text+="\n"),t.cue.text+=i;continue;case"BADCUE":i||(t.state="ID")}}}catch(e){"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},t.flush=function(){var e=this;try{if((e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state||"BADWEBVTT"===e.state)throw new Error("Malformed WebVTT signature.")}catch(t){e.onparsingerror&&e.onparsingerror(t)}return e.onflush&&e.onflush(),this},e}()},"./src/utils/webvtt-parser.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{generateCueId:()=>d,parseWebVTT:()=>h});var n=r("./src/polyfills/number.ts"),i=r("./src/utils/vttparser.ts"),a=r("./src/demux/id3.ts"),o=r("./src/utils/timescale-conversion.ts"),s=r("./src/remux/mp4-remuxer.ts"),l=/\r\n|\n\r|\n|\r/g,u=function(e,t,r){return void 0===r&&(r=0),e.slice(r,r+t.length)===t},c=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return(t>>>0).toString()};function d(e,t,r){return c(e.toString())+c(t.toString())+c(r)}function h(e,t,r,c,h,f,p,m){var g,v=new i.VTTParser,y=(0,a.utf8ArrayToStr)(new Uint8Array(e)).trim().replace(l,"\n").split("\n"),_=[],b=(0,o.toMpegTsClockFromTimescale)(t,r),M="00:00.000",w=0,T=0,L=!0;v.oncue=function(e){var t=c[h],r=c.ccOffset,n=(w-b)/9e4;null!=t&&t.new&&(void 0!==T?r=c.ccOffset=t.start:function(e,t,r){var n=e[t],i=e[n.prevCC];if(!i||!i.new&&n.new)return e.ccOffset=e.presentationOffset=n.start,void(n.new=!1);for(;null!==(a=i)&&void 0!==a&&a.new;){var a;e.ccOffset+=n.start-i.start,n.new=!1,i=e[(n=i).prevCC]}e.presentationOffset=r}(c,h,n)),n&&(r=n-c.presentationOffset);var i=e.endTime-e.startTime,a=(0,s.normalizePts)(9e4*(e.startTime+r-T),9e4*f)/9e4;e.startTime=Math.max(a,0),e.endTime=Math.max(a+i,0);var o=e.text.trim();e.text=decodeURIComponent(encodeURIComponent(o)),e.id||(e.id=d(e.startTime,e.endTime,o)),e.endTime>0&&_.push(e)},v.onparsingerror=function(e){g=e},v.onflush=function(){g?m(g):p(_)},y.forEach((function(e){if(L){if(u(e,"X-TIMESTAMP-MAP=")){L=!1,e.slice(16).split(",").forEach((function(e){u(e,"LOCAL:")?M=e.slice(6):u(e,"MPEGTS:")&&(w=parseInt(e.slice(7)))}));try{T=function(e){var t=parseInt(e.slice(-3)),r=parseInt(e.slice(-6,-4)),i=parseInt(e.slice(-9,-7)),a=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!((0,n.isFiniteNumber)(t)&&(0,n.isFiniteNumber)(r)&&(0,n.isFiniteNumber)(i)&&(0,n.isFiniteNumber)(a)))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+e);return t+=1e3*r,(t+=6e4*i)+36e5*a}(M)/1e3}catch(e){g=e}return}""===e&&(L=!1)}v.parse(e+"\n")})),v.flush()}},"./src/utils/xhr-loader.ts":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r("./src/utils/logger.ts"),i=r("./src/loader/load-stats.ts"),a=/^age:\s*[\d.]+\s*$/m;const o=function(){function e(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=e?e.xhrSetup:null,this.stats=new i.LoadStats,this.retryDelay=0}var t=e.prototype;return t.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},t.abortInternal=function(){var e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,4!==e.readyState&&(this.stats.aborted=!0,e.abort()))},t.abort=function(){var e;this.abortInternal(),null!==(e=this.callbacks)&&void 0!==e&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},t.load=function(e,t,r){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=r,this.retryDelay=t.retryDelay,this.loadInternal()},t.loadInternal=function(){var e=this.config,t=this.context;if(e){var r=this.loader=new self.XMLHttpRequest,n=this.stats;n.loading.first=0,n.loaded=0;var i=this.xhrSetup;try{if(i)try{i(r,t.url)}catch(e){r.open("GET",t.url,!0),i(r,t.url)}r.readyState||r.open("GET",t.url,!0);var a=this.context.headers;if(a)for(var o in a)r.setRequestHeader(o,a[o])}catch(e){return void this.callbacks.onError({code:r.status,text:e.message},t,r)}t.rangeEnd&&r.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),r.onreadystatechange=this.readystatechange.bind(this),r.onprogress=this.loadprogress.bind(this),r.responseType=t.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),e.timeout),r.send()}},t.readystatechange=function(){var e=this.context,t=this.loader,r=this.stats;if(e&&t){var i=t.readyState,a=this.config;if(!r.aborted&&i>=2)if(self.clearTimeout(this.requestTimeout),0===r.loading.first&&(r.loading.first=Math.max(self.performance.now(),r.loading.start)),4===i){t.onreadystatechange=null,t.onprogress=null;var o=t.status,s="arraybuffer"===t.responseType;if(o>=200&&o<300&&(s&&t.response||null!==t.responseText)){var l,u;if(r.loading.end=Math.max(self.performance.now(),r.loading.first),u=s?(l=t.response).byteLength:(l=t.responseText).length,r.loaded=r.total=u,!this.callbacks)return;var c=this.callbacks.onProgress;if(c&&c(r,e,l,t),!this.callbacks)return;var d={url:t.responseURL,data:l};this.callbacks.onSuccess(d,r,e,t)}else r.retry>=a.maxRetry||o>=400&&o<499?(n.logger.error(o+" while loading "+e.url),this.callbacks.onError({code:o,text:t.statusText},e,t)):(n.logger.warn(o+" while loading "+e.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,a.maxRetryDelay),r.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout)}},t.loadtimeout=function(){n.logger.warn("timeout while loading "+this.context.url);var e=this.callbacks;e&&(this.abortInternal(),e.onTimeout(this.stats,this.context,this.loader))},t.loadprogress=function(e){var t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)},t.getCacheAge=function(){var e=null;if(this.loader&&a.test(this.loader.getAllResponseHeaders())){var t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e},e}()},"./node_modules/eventemitter3/index.js":e=>{"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function a(e,t,n,a,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new i(n,a||e,o),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=new Array(a);i<a;i++)o[i]=n[i].fn;return o},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var h,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,i);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];c[u].fn.apply(c[u].context,l)}}return!0},s.prototype.on=function(e,t,r){return a(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return a(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return o(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||i&&!s.once||n&&s.context!==n||o(this,a);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||i&&!s[l].once||n&&s[l].context!==n)&&u.push(s[l]);u.length?this._events[a]=1===u.length?u[0]:u:o(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&o(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s},"./node_modules/url-toolkit/src/url-toolkit.js":function(e){var t,r,n,i,a;t=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,n=/(?:\/|^)\.(?=\/)/g,i=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,a={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var i=a.parseURL(e);if(!i)throw new Error("Error trying to parse base URL.");return i.path=a.normalizePath(i.path),a.buildURLFromParts(i)}var o=a.parseURL(t);if(!o)throw new Error("Error trying to parse relative URL.");if(o.scheme)return n.alwaysNormalize?(o.path=a.normalizePath(o.path),a.buildURLFromParts(o)):t;var s=a.parseURL(e);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var l=r.exec(s.path);s.netLoc=l[1],s.path=l[2]}s.netLoc&&!s.path&&(s.path="/");var u={scheme:s.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(u.netLoc=s.netLoc,"/"!==o.path[0]))if(o.path){var c=s.path,d=c.substring(0,c.lastIndexOf("/")+1)+o.path;u.path=a.normalizePath(d)}else u.path=s.path,o.params||(u.params=s.params,o.query||(u.query=s.query));return null===u.path&&(u.path=n.alwaysNormalize?a.normalizePath(o.path):o.path),a.buildURLFromParts(u)},parseURL:function(e){var r=t.exec(e);return r?{scheme:r[1]||"",netLoc:r[2]||"",path:r[3]||"",params:r[4]||"",query:r[5]||"",fragment:r[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(n,"");e.length!==(e=e.replace(i,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=a}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var a=t[n]={exports:{}};return e[n].call(a.exports,a,a.exports,r),a.exports}r.m=e,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n=r("./src/hls.ts");return n.default})(),e.exports=n())},96616:(e,t,r)=>{var n={"./af":4313,"./af.js":4313,"./ar":25353,"./ar-dz":26425,"./ar-dz.js":26425,"./ar-kw":45615,"./ar-kw.js":45615,"./ar-ly":15253,"./ar-ly.js":15253,"./ar-ma":86444,"./ar-ma.js":86444,"./ar-sa":4831,"./ar-sa.js":4831,"./ar-tn":24643,"./ar-tn.js":24643,"./ar.js":25353,"./az":7637,"./az.js":7637,"./be":5658,"./be.js":5658,"./bg":38041,"./bg.js":38041,"./bm":9466,"./bm.js":9466,"./bn":88522,"./bn-bd":61402,"./bn-bd.js":61402,"./bn.js":88522,"./bo":97429,"./bo.js":97429,"./br":90690,"./br.js":90690,"./bs":54480,"./bs.js":54480,"./ca":8721,"./ca.js":8721,"./cs":52501,"./cs.js":52501,"./cv":62737,"./cv.js":62737,"./cy":66638,"./cy.js":66638,"./da":35816,"./da.js":35816,"./de":775,"./de-at":17458,"./de-at.js":17458,"./de-ch":97405,"./de-ch.js":97405,"./de.js":775,"./dv":41131,"./dv.js":41131,"./el":64639,"./el.js":64639,"./en-au":58472,"./en-au.js":58472,"./en-ca":22167,"./en-ca.js":22167,"./en-gb":38133,"./en-gb.js":38133,"./en-ie":5573,"./en-ie.js":5573,"./en-il":13084,"./en-il.js":13084,"./en-in":58930,"./en-in.js":58930,"./en-nz":60899,"./en-nz.js":60899,"./en-sg":61978,"./en-sg.js":61978,"./eo":31635,"./eo.js":31635,"./es":22074,"./es-do":46740,"./es-do.js":46740,"./es-mx":36071,"./es-mx.js":36071,"./es-us":7383,"./es-us.js":7383,"./es.js":22074,"./et":87883,"./et.js":87883,"./eu":12743,"./eu.js":12743,"./fa":12977,"./fa.js":12977,"./fi":53049,"./fi.js":53049,"./fil":69987,"./fil.js":69987,"./fo":5550,"./fo.js":5550,"./fr":57126,"./fr-ca":49537,"./fr-ca.js":49537,"./fr-ch":63554,"./fr-ch.js":63554,"./fr.js":57126,"./fy":30956,"./fy.js":30956,"./ga":27677,"./ga.js":27677,"./gd":50291,"./gd.js":50291,"./gl":88807,"./gl.js":88807,"./gom-deva":1018,"./gom-deva.js":1018,"./gom-latn":99153,"./gom-latn.js":99153,"./gu":97721,"./gu.js":97721,"./he":71823,"./he.js":71823,"./hi":87650,"./hi.js":87650,"./hr":73865,"./hr.js":73865,"./hu":28800,"./hu.js":28800,"./hy-am":40342,"./hy-am.js":40342,"./id":32202,"./id.js":32202,"./is":58302,"./is.js":58302,"./it":94258,"./it-ch":30904,"./it-ch.js":30904,"./it.js":94258,"./ja":12995,"./ja.js":12995,"./jv":22009,"./jv.js":22009,"./ka":95643,"./ka.js":95643,"./kk":59377,"./kk.js":59377,"./km":80122,"./km.js":80122,"./kn":44108,"./kn.js":44108,"./ko":98893,"./ko.js":98893,"./ku":63321,"./ku.js":63321,"./ky":62214,"./ky.js":62214,"./lb":27572,"./lb.js":27572,"./lo":95653,"./lo.js":95653,"./lt":39458,"./lt.js":39458,"./lv":62241,"./lv.js":62241,"./me":86377,"./me.js":86377,"./mi":97529,"./mi.js":97529,"./mk":40403,"./mk.js":40403,"./ml":969,"./ml.js":969,"./mn":22529,"./mn.js":22529,"./mr":28209,"./mr.js":28209,"./ms":57692,"./ms-my":35448,"./ms-my.js":35448,"./ms.js":57692,"./mt":89365,"./mt.js":89365,"./my":95552,"./my.js":95552,"./nb":19954,"./nb.js":19954,"./ne":84957,"./ne.js":84957,"./nl":97099,"./nl-be":49156,"./nl-be.js":49156,"./nl.js":97099,"./nn":54960,"./nn.js":54960,"./oc-lnc":2333,"./oc-lnc.js":2333,"./pa-in":91344,"./pa-in.js":91344,"./pl":81886,"./pl.js":81886,"./pt":43926,"./pt-br":44884,"./pt-br.js":44884,"./pt.js":43926,"./ro":33464,"./ro.js":33464,"./ru":1529,"./ru.js":1529,"./sd":85918,"./sd.js":85918,"./se":843,"./se.js":843,"./si":92433,"./si.js":92433,"./sk":70,"./sk.js":70,"./sl":22094,"./sl.js":22094,"./sq":72307,"./sq.js":72307,"./sr":19449,"./sr-cyrl":22424,"./sr-cyrl.js":22424,"./sr.js":19449,"./ss":93586,"./ss.js":93586,"./sv":40902,"./sv.js":40902,"./sw":58466,"./sw.js":58466,"./ta":82953,"./ta.js":82953,"./te":22598,"./te.js":22598,"./tet":92586,"./tet.js":92586,"./tg":35115,"./tg.js":35115,"./th":6506,"./th.js":6506,"./tk":77084,"./tk.js":77084,"./tl-ph":61080,"./tl-ph.js":61080,"./tlh":54205,"./tlh.js":54205,"./tr":17825,"./tr.js":17825,"./tzl":99191,"./tzl.js":99191,"./tzm":94394,"./tzm-latn":22503,"./tzm-latn.js":22503,"./tzm.js":94394,"./ug-cn":95800,"./ug-cn.js":95800,"./uk":74409,"./uk.js":74409,"./ur":55096,"./ur.js":55096,"./uz":63133,"./uz-latn":64546,"./uz-latn.js":64546,"./uz.js":63133,"./vi":68640,"./vi.js":68640,"./x-pseudo":15170,"./x-pseudo.js":15170,"./yo":52876,"./yo.js":52876,"./zh-cn":23390,"./zh-cn.js":23390,"./zh-hk":2358,"./zh-hk.js":2358,"./zh-mo":67908,"./zh-mo.js":67908,"./zh-tw":44,"./zh-tw.js":44};function i(e){var t=a(e);return r(t)}function a(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=a,e.exports=i,i.id=96616},83305:e=>{"use strict";e.exports=scene},74854:()=>{},66602:()=>{},52697:(e,t,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}},81665:(e,t,r)=>{"use strict";r.d(t,{ec:()=>u,i1:()=>c,iv:()=>l});var n=window,i=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),o=new WeakMap;class s{constructor(e,t,r){if(this._$cssResult$=!0,r!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){var e=this.o,t=this.t;if(i&&void 0===e){var r=void 0!==t&&1===t.length;r&&(e=o.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&o.set(t,e))}return e}toString(){return this.cssText}}var l=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=1===e.length?e[0]:r.reduce(((t,r,n)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[n+1]),e[0]);return new s(i,e,a)},u=(e,t)=>{i?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{var r=document.createElement("style"),i=n.litNonce;void 0!==i&&r.setAttribute("nonce",i),r.textContent=t.cssText,e.appendChild(r)}))},c=i?e=>e:e=>e instanceof CSSStyleSheet?(e=>{var t="";for(var r of e.cssRules)t+=r.cssText;return(e=>new s("string"==typeof e?e:e+"",void 0,a))(t)})(e):e},43079:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{eZ:()=>o});var o=e=>{var{finisher:t,descriptor:r}=e;return(e,n)=>{var a;if(void 0===n){var o=null!==(a=e.originalKey)&&void 0!==a?a:e.key,s=null!=r?{kind:"method",placement:"prototype",key:o,descriptor:r(e.key)}:i(i({},e),{},{key:o});return null!=t&&(s.finisher=function(e){t(e,o)}),s}var l=e.constructor;void 0!==r&&Object.defineProperty(e,n,r(n)),null==t||t(l,n)}}},66362:(e,t,r)=>{"use strict";r.d(t,{M:()=>n});var n=e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{var{kind:r,elements:n}=t;return{kind:r,elements:n,finisher(t){customElements.define(e,t)}}})(e,t)},94760:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{C:()=>s});var o=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?i(i({},t),{},{finisher(r){r.createProperty(t.key,e)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(r){r.createProperty(t.key,e)}};function s(e){return(t,r)=>void 0!==r?((e,t,r)=>{t.constructor.createProperty(r,e)})(e,t,r):o(e,t)}},90993:(e,t,r)=>{"use strict";var n;null===(n=window.HTMLSlotElement)||void 0===n||n.prototype.assignedElements},77291:(e,t,r)=>{"use strict";r(90993)},40714:(e,t,r)=>{"use strict";r.d(t,{I:()=>i});var n=r(43079);function i(e,t){return(0,n.eZ)({descriptor:r=>{var n={get(){var t,r;return null!==(r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==r?r:null},enumerable:!0,configurable:!0};if(t){var i="symbol"==typeof r?Symbol():"__"+r;n.get=function(){var t,r;return void 0===this[i]&&(this[i]=null!==(r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==r?r:null),this[i]}}return n}})}},9054:(e,t,r)=>{"use strict";r.d(t,{fl:()=>f,iv:()=>i.iv});var n,i=r(81665);function a(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}var o=window,s=o.trustedTypes,l=s?s.emptyScript:"",u=o.reactiveElementPolyfillSupport,c={toAttribute(e,t){switch(t){case Boolean:e=e?l:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){var r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},d=(e,t)=>t!==e&&(t==t||e==e),h={attribute:!0,type:String,converter:c,reflect:!1,hasChanged:d};class f extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();var e=[];return this.elementProperties.forEach(((t,r)=>{var n=this._$Ep(r,t);void 0!==n&&(this._$Ev.set(n,r),e.push(n))})),e}static createProperty(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){var r="symbol"==typeof e?Symbol():"__"+e,n=this.getPropertyDescriptor(e,r,t);void 0!==n&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(n){var i=this[e];this[t]=n,this.requestUpdate(e,i,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||h}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;var e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){var t=this.properties,r=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(var n of r)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){var t=[];if(Array.isArray(e)){var r=new Set(e.flat(1/0).reverse());for(var n of r)t.unshift((0,i.i1)(n))}else void 0!==e&&t.push((0,i.i1)(e));return t}static _$Ep(e,t){var r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,r;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(r=e.hostConnected)||void 0===r||r.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e,t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return(0,i.ec)(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h,i=this.constructor._$Ep(e,n);if(void 0!==i&&!0===n.reflect){var a=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:c).toAttribute(t,n.type);this._$El=e,null==a?this.removeAttribute(i):this.setAttribute(i,a),this._$El=null}}_$AK(e,t){var r,n=this.constructor,i=n._$Ev.get(e);if(void 0!==i&&this._$El!==i){var a=n.getPropertyOptions(i),o="function"==typeof a.converter?{fromAttribute:a.converter}:void 0!==(null===(r=a.converter)||void 0===r?void 0:r.fromAttribute)?a.converter:c;this._$El=i,this[i]=o.fromAttribute(t,a.type),this._$El=null}}requestUpdate(e,t,r){var n=!0;void 0!==e&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||d)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,r))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}_$Ej(){var e,t=this;return(e=function*(){t.isUpdatePending=!0;try{yield t._$E_}catch(e){Promise.reject(e)}var e=t.scheduleUpdate();return null!=e&&(yield e),!t.isUpdatePending},function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function s(e){a(o,n,i,s,l,"next",e)}function l(e){a(o,n,i,s,l,"throw",e)}s(void 0)}))})()}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);var t=!1,r=this._$AL;try{(t=this.shouldUpdate(r))?(this.willUpdate(r),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(r)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(r)}}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}f.finalized=!0,f.elementProperties=new Map,f.elementStyles=[],f.shadowRootOptions={mode:"open"},null==u||u({ReactiveElement:f}),(null!==(n=o.reactiveElementVersions)&&void 0!==n?n:o.reactiveElementVersions=[]).push("1.6.1")},93681:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{HA:()=>Le});var o=Math.round,s=Math.min,l=Math.max,u=e=>"string"==typeof e&&e.includes("%"),c=e=>e<1?o(e):e,d=e=>(e=Number.parseFloat(e),Number.isNaN(e)||e<0||e>1?1:e),h=e=>e.a<1&&e.a>=0,f=e=>s(1,l(0,e)),p="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),m=e=>new RegExp(p).test(e),g=e=>m(e.r)&&m(e.g)&&m(e.b),v="[\\s|\\(]+(".concat(p,")[,|\\s]+(").concat(p,")[,|\\s]+(").concat(p,")\\s*\\)?"),y="[\\s|\\(]+(".concat(p,")[,|\\s]+(").concat(p,")[,|\\s]+(").concat(p,")[,|\\s]+(").concat(p,")\\s*\\)?");function _(e,t){(e=>"string"==typeof e&&e.includes(".")&&1===Number.parseFloat(e))(e)&&(e="100%");var r=u(e);return e=s(t,l(0,Number.parseFloat(e))),r&&(e=Number.parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)}var b=e=>Number.parseInt(e,16),M=e=>b(e)/255,w=e=>e<=1?"".concat(100*e,"%"):e,T=e=>{var[t,r,n]=[e._r,e._g,e._b].map((e=>o(e)));return{r:t,g:r,b:n,a:e._roundA}},L=e=>({r:e._r,g:e._g,b:e._b,a:e._a}),S=e=>{var[t,r,n]=[e.r,e.g,e.b].map((e=>255*_(e,255)));return{r:t,g:r,b:n,a:d(e.a)}},k=e=>{var[t,r,n]=[e.r,e.g,e.b].map((e=>"".concat(o(100*_(e,255)),"%")));return{r:t,g:r,b:n,a:e.a}},x=e=>1===e.a?"rgb(".concat(e.r,", ").concat(e.g,", ").concat(e.b,")"):"rgba(".concat(e.r,", ").concat(e.g,", ").concat(e.b,", ").concat(e.a,")"),E=e=>1===e.a?[e.r,e.g,e.b]:[e.r,e.g,e.b,o(255*e.a)],D=(e,t)=>{var r=E(e).map((e=>e.toString(16))).map((e=>{return 1===(t=e).length?"0".concat(t):"".concat(t);var t}));return t&&r.every((e=>e.charAt(0)===e.charAt(1)))?r.map((e=>e.charAt(0))).join(""):r.join("")},A=(e,t)=>D(i(i({},e),{},{a:1}),t);function O(e,t){var r=new ee(e),n=new ee(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)}function P(e,t,r){var n,i,a,o=O(e,t),s=("AA"!==(i=((n=(n=r)||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==i&&(i="AA"),"small"!==(a=(n.size||"small").toLowerCase())&&"large"!==a&&(a="small"),{level:i,size:a}),l=!1;switch(s.level+s.size){case"AAlarge":l=o>=3;break;case"AAAsmall":l=o>=7;break;default:l=o>=4.5}return l}function R(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{includeFallbackColors:i,level:a,size:o}=n,s=null,l=0;for(var u of t)(r=O(e,u))>l&&(l=r,s=new ee(u));return P(e,s,{level:a,size:o})||!i?s:(n.includeFallbackColors=!1,R(e,["#fff","#000"],n))}function I(e,t){return{monochromatic:H,analogous:j,complement:Y,splitcomplement:N,triad:C,tetrad:F}[e](...t)}function Y(e){var t=new ee(e).toHsl();return t.h=(t.h+180)%360,new ee(t)}function C(e){var t=new ee(e).toHsl(),{h:r}=t;return[new ee(e),new ee({h:(r+120)%360,s:t.s,l:t.l}),new ee({h:(r+240)%360,s:t.s,l:t.l})]}function F(e){var t=new ee(e).toHsl(),{h:r}=t;return[new ee(e),new ee({h:(r+90)%360,s:t.s,l:t.l}),new ee({h:(r+180)%360,s:t.s,l:t.l}),new ee({h:(r+270)%360,s:t.s,l:t.l})]}function N(e){var t=new ee(e).toHsl(),{h:r}=t;return[new ee(e),new ee({h:(r+72)%360,s:t.s,l:t.l}),new ee({h:(r+216)%360,s:t.s,l:t.l})]}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30,n=new ee(e).toHsl(),i=360/r,a=[new ee(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,a.push(new ee(n));return a}function H(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,r=new ee(e).toHsv(),{h:n,s:i,v:a}=r,o=[],s=1/t;t--;)o.push(new ee({h:n,s:i,v:a})),a=(a+s)%1;return o}function B(e,t){var r={invert:U,desaturate:W,saturate:z,greyscale:G,lighten:V,brighten:K,darken:q,spin:$}[e](...t),[n]=t;return n._r=r._r,n._g=r._g,n._b=r._b,n.setAlpha(r._a),n}function U(e){var t=new ee(e).toRgb();return t.r=l(0,s(255,255-t.r)),t.g=l(0,s(255,255-t.g)),t.b=l(0,s(255,255-t.b)),new ee(t)}function W(e,t){t=0===t?0:t||10;var r=new ee(e).toHsl();return r.s-=t/100,r.s=f(r.s),new ee(r)}function z(e,t){t=0===t?0:t||10;var r=new ee(e).toHsl();return r.s+=t/100,r.s=f(r.s),new ee(r)}function G(e){return new ee(e).desaturate(100)}function V(e,t){t=0===t?0:t||10;var r=new ee(e).toHsl();return r.l+=t/100,r.l=f(r.l),new ee(r)}function K(e,t){t=0===t?0:t||10;var r=new ee(e).toRgb();return r.r=l(0,s(255,r.r-o(-t/100*255))),r.g=l(0,s(255,r.g-o(-t/100*255))),r.b=l(0,s(255,r.b-o(-t/100*255))),new ee(r)}function q(e,t){t=0===t?0:t||10;var r=new ee(e).toHsl();return r.l-=t/100,r.l=f(r.l),new ee(r)}function $(e,t){var r=new ee(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new ee(r)}class J{constructor(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.api=e,this.id=t,this.options=r}use(e){return this.wanted=e,this}parse(e){var t=this.api.findColor(e);return{as:e=>Object.assign(t,{format:e}),rgba:{r:t.r,g:t.g,b:t.b,a:t.a},valueOf:()=>t}}print(e,t){return this.api.print(t,e)}complete(e){var t=this.toString(e);return delete this.wanted,t}}var X={format:!1,ok:!1,r:0,g:0,b:0,a:1},Q=0,Z=new class{constructor(){this.colorspaces={},this.options={alphaFormat:"rgb",shortHex:!1,upperCaseHex:!1}}set(e){for(var t in Object.assign(this.options,e),this.colorspaces)Object.prototype.hasOwnProperty.call(this.colorspaces,t)&&Object.assign(this.colorspaces[t].options,e)}add(e,t){if(this.colorspaces[e]=new J(this,e,i(i({},this.options),t)),t.alias)for(var r of t.alias)this.colorspaces[r]=this.colorspaces[e];return this.colorspaces[e]}findColor(e){var t=i({},X);if(e="string"==typeof e?e.trim().toLowerCase():e)for(var r in this.colorspaces)if(this.colorspaces[r].shouldHandleInput(e)){Object.assign(t,this.colorspaces[r].toRgb(e)),t.format=t.format||r,t.ok=!0;break}return t}raw(e,t){return t in this.colorspaces?this.colorspaces[t].toRaw(e):{r:e.r/255,g:e.g/255,b:e.b/255,a:e.a}}print(e,t,r){var n=r;return(r=r||t)in this.colorspaces?this.colorspaces[r].use(n).complete(e):"[".concat(e.r,", ").concat(e.g,", ").concat(e.b,", ").concat(255*e.a,"]")}};class ee{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((e=e||"")instanceof ee)return e;var r,n=Z.findColor(e);this._originalInput=e,this._r=c(n.r),this._g=c(n.g),this._b=c(n.b),this._a=n.a,this._roundA=(r=this._a,o(100*r)/100),this._format=t.format||n.format,this._gradientType=t.gradientType,this._ok=n.ok,this._tc_id=ee.newId(),Z.set(t)}static newId(){return Q++}static registerFormat(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Z.add(e,t)}static equals(e,t){return!(!e||!t)&&new ee(e).toRgbString()===new ee(t).toRgbString()}static fromRatio(e,t){if("object"==typeof e){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]="a"===n?e[n]:w(e[n]));e=r}return new ee(e,t)}static readability(e,t){return O(e,t)}static isReadable(e,t,r){return P(e,t,r)}static mostReadable(e,t,r){return R(e,t,r)}static mix(e,t,r){return function(e,t,r){r=0===r?0:r||50;var n=new ee(e).toRgb(),i=new ee(t).toRgb(),a=r/100,o={r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a};return new ee(o)}(e,t,r)}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}isValid(){return this._ok}getOriginalInput(){return this._originalInput}getFormat(){return this._format}getAlpha(){return this._a}getBrightness(){return(299*(e=this.toRgb()).r+587*e.g+114*e.b)/1e3;var e}getLuminance(){return t=(e=L(this)).r/255,r=e.g/255,n=e.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4));var e,t,r,n}toString(e){return Z.print(T(this),this._format,e)}toName(){return Z.print(T(this),"name","toName")}toRgb(){return L(this)}toRgbString(){return x(T(this))}toRgbArray(){return E(T(this))}toPercentageRgb(){return k(L(this))}toPercentageRgbString(){return x(k(T(this)))}toHex(e){return A(T(this),e)}toHexString(e){return"#".concat(this.toHex(e))}toHex8(e){return D(T(this),e)}toHex8String(e){return"#".concat(this.toHex8(e))}toHsv(){return Z.raw(L(this),"hsv")}toHsvString(){return Z.print(L(this),this._format,"hsv")}toHsl(){return Z.raw(L(this),"hsl")}toHslString(){return Z.print(L(this),this._format,"hsl")}setAlpha(e){return this._a=d(e),this._roundA=o(100*this._a)/100,this}clone(){return new ee(this.toString())}lighten(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return B("lighten",[this,...t])}brighten(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return B("brighten",[this,...t])}darken(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return B("darken",[this,...t])}desaturate(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return B("desaturate",[this,...t])}saturate(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return B("saturate",[this,...t])}greyscale(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return B("greyscale",[this,...t])}invert(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return B("invert",[this,...t])}spin(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return B("spin",[this,...t])}analogous(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return I("analogous",[this,...t])}complement(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return I("complement",[this,...t])}monochromatic(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return I("monochromatic",[this,...t])}splitcomplement(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return I("splitcomplement",[this,...t])}triad(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return I("triad",[this,...t])}tetrad(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return I("tetrad",[this,...t])}}var te={rgb:new RegExp("rgb".concat(v)),rgba:new RegExp("rgba".concat(y))};function re(e){var t,r,n,i,a;return(a=te.rgb.exec(e))?([t,r,n]=a.splice(1,3),{r:t,g:r,b:n}):!!(a=te.rgba.exec(e))&&([t,r,n,i]=a.splice(1,4),{r:t,g:r,b:n,a:i})}var ne=ee.registerFormat("rgb");ne.shouldHandleInput=e=>"object"==typeof e&&g(e)&&!u(e.r)||re(e),ne.toRgb=e=>"object"==typeof e&&S(e)||S(re(e)),ne.toRaw=e=>e,ne.toString=e=>x(e);var ie=ee.registerFormat("prgb");ie.shouldHandleInput=e=>{if("string"==typeof e){var t=re(e);return t&&u(t.r)}return g(e)&&u(e.r)},ie.toRgb=e=>S("object"==typeof e?e:re(e)),ie.toRaw=e=>k(e),ie.toString=e=>x(k(e));var ae=ee.registerFormat("hex",{alias:["hex3","hex6"]}),oe={hex3:/^#?([\da-fA-F])([\da-fA-F])([\da-fA-F])$/,hex6:/^#?([\da-fA-F]{2})([\da-fA-F]{2})([\da-fA-F]{2})$/},se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ae.options.shortHex;return"#".concat(ae.options.upperCaseHex?A(e,t).toUpperCase():A(e,t))};ae.shouldHandleInput=e=>oe.hex6.test(e)||oe.hex3.test(e),ae.toRgb=e=>function(e){var t;if(t=oe.hex3.exec(e)){var[r,n,i]=t.splice(1,3).map((e=>"".concat(e).concat(e))).map((e=>b(e)));return{r,g:n,b:i,a:1}}if(t=oe.hex6.exec(e)){var[a,o,s]=t.splice(1,3).map((e=>b(e)));return{r:a,g:o,b:s,a:1}}return!1}(e),ae.toRaw=e=>e,ae.toString=e=>/^hex6?$/.test(ae.wanted)?se(e):"hex3"===ae.wanted?se(e,!0):h(e)?"hex"===ae.options.alphaFormat?se(e):ae.print(ae.options.alphaFormat,e):se(e);var le=ee.registerFormat("hex8",{alias:["hex4"]}),ue={hex4:/^#?([\da-fA-F])([\da-fA-F])([\da-fA-F])([\da-fA-F])$/,hex8:/^#?([\da-fA-F]{2})([\da-fA-F]{2})([\da-fA-F]{2})([\da-fA-F]{2})$/},ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:le.options.shortHex;return"#".concat(le.options.upperCaseHex?D(e,t).toUpperCase():D(e,t))};le.shouldHandleInput=e=>ue.hex8.test(e)||ue.hex4.test(e),le.toRgb=e=>function(e){var t;if(t=ue.hex4.exec(e)){var r=M("".concat(t[4]).concat(t[4])),[n,i,a]=t.splice(1,3).map((e=>"".concat(e).concat(e))).map((e=>b(e)));return{r:n,g:i,b:a,a:r}}if(t=ue.hex8.exec(e)){var o=M(t[4]),[s,l,u]=t.splice(1,3).map((e=>b(e)));return{r:s,g:l,b:u,a:o}}return!1}(e),le.toRaw=e=>e,le.toString=e=>"hex4"===le.wanted?ce(e,!0):"hex8"===le.wanted?ce(e):h(e)?"hex"===le.options.alphaFormat?ce(e):le.print(le.options.alphaFormat,e):ce(e);var de=ee.registerFormat("hsl"),he={hsl:new RegExp("hsl".concat(v)),hsla:new RegExp("hsla".concat(y))};function fe(e){var t,r,n=_(e.r,255),i=_(e.g,255),a=_(e.b,255),o=e.a||1,u=l(n,i,a),c=s(n,i,a),d=(u+c)/2;if(u===c)t=0,r=0;else{var h=u-c;switch(r=d>.5?h/(2-u-c):h/(u+c),u){case n:t=(i-a)/h+(i<a?6:0);break;case i:t=(a-n)/h+2;break;default:t=(n-i)/h+4}t/=6}return{h:t,s:r,l:d,a:o}}function pe(e){var t,r,n,i=_(e.h,360),a=_(w(e.s),100),o=_(w(e.l),100),s=e.a||1;function l(e,t,r){return(r=(r=r<0?r+1:r)>1?r-1:r)<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(0===a)t=o,r=o,n=o;else{var u=o<.5?o*(1+a):o+a-o*a,c=2*o-u;t=l(c,u,i+1/3),r=l(c,u,i),n=l(c,u,i-1/3)}return{r:255*t,g:255*r,b:255*n,a:s}}function me(e){var t,r,n,i,a;return(a=he.hsl.exec(e))?([t,r,n]=a.splice(1,3),{h:t,s:r,l:n}):!!(a=he.hsla.exec(e))&&([t,r,n,i]=a.splice(1,4),{h:t,s:r,l:n,a:i})}de.shouldHandleInput=e=>{return"object"==typeof e&&m((t=e).h)&&m(t.s)&&m(t.l)||me(e);var t},de.toRgb=e=>"object"==typeof e&&pe(e)||pe(me(e)),de.toRaw=e=>function(e){var{h:t,s:r,l:n,a:i}=e;return{h:t*=360,s:r,l:n,a:i}}(fe(e)),de.toString=e=>function(e){var{h:t,s:r,l:n,a:i}=e;return t=o(360*t),r=o(100*r),n=o(100*n),1===i?"hsl(".concat(t,", ").concat(r,"%, ").concat(n,"%)"):"hsla(".concat(t,", ").concat(r,"%, ").concat(n,"%, ").concat(i,")")}(fe(e));var ge=ee.registerFormat("hsv"),ve={hsv:new RegExp("hsv".concat(v)),hsva:new RegExp("hsva".concat(y))};function ye(e){var t,r=_(e.r,255),n=_(e.g,255),i=_(e.b,255),a=e.a||1,o=l(r,n,i),u=s(r,n,i),c=o-u,d=0===o?0:c/o,h=o;if(o===u)t=0;else{switch(o){case r:t=(n-i)/c+(n<i?6:0);break;case n:t=(i-r)/c+2;break;default:t=(r-n)/c+4}t/=6}return{h:t,s:d,v:h,a}}function _e(e){var t=6*_(e.h,360),r=_(w(e.s),100),n=_(w(e.v),100),i=e.a||1,a=Math.floor(t),o=t-a,s=n*(1-r),l=n*(1-o*r),u=n*(1-(1-o)*r),c=a%6;return{r:255*[n,l,s,s,u,n][c],g:255*[u,n,n,l,s,s][c],b:255*[s,s,u,n,n,l][c],a:i}}function be(e){var t,r,n,i,a;return(a=ve.hsv.exec(e))?([t,r,n]=a.splice(1,3),{h:t,s:r,v:n}):!!(a=ve.hsva.exec(e))&&([t,r,n,i]=a.splice(1,4),{h:t,s:r,v:n,a:i})}ge.shouldHandleInput=e=>{return"object"==typeof e&&m((t=e).h)&&m(t.s)&&m(t.v)||be(e);var t},ge.toRgb=e=>"object"==typeof e&&_e(e)||_e(be(e)),ge.toRaw=e=>function(e){var{h:t,s:r,v:n,a:i}=e;return{h:t*=360,s:r,v:n,a:i}}(ye(e)),ge.toString=e=>function(e){var{h:t,s:r,v:n,a:i}=e;return t=o(360*t),r=o(100*r),n=o(100*n),1===i?"hsv(".concat(t,", ").concat(r,"%, ").concat(n,"%)"):"hsva(".concat(t,", ").concat(r,"%, ").concat(n,"%, ").concat(i,")")}(ye(e));var Me=ee.registerFormat("name",{alias:["toName"]}),we={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32",transparent:"00000000"},Te=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[e[r]]=r);return t}(we);function Le(e,t){return new ee(e,t)}Me.shouldHandleInput=e=>we[e],Me.toRgb=e=>Me.parse(we[e]).rgba,Me.toRaw=e=>e,Me.toString=e=>0===e.a?"transparent":(!h(e)||"toName"!==Me.wanted)&&(h(e)&&"name"===Me.wanted?"#".concat(A(e)):h(e)?Me.print(Me.options.alphaFormat,e):Te[A(e,!0)]||!1),Le.equals=(e,t)=>ee.equals(e,t),Le.registerFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ee.registerFormat(e,t)},Le.fromRatio=(e,t)=>ee.fromRatio(e,t),Le.mix=(e,t,r)=>ee.mix(e,t,r),Le.readability=(e,t)=>ee.readability(e,t),Le.isReadable=(e,t,r)=>ee.isReadable(e,t,r),Le.mostReadable=(e,t,r)=>ee.mostReadable(e,t,r),Le.names=we},95782:(e,t,r)=>{"use strict";r.d(t,{dy:()=>o.dy,iv:()=>a.iv,oi:()=>s});var n,i,a=r(9054),o=r(28773);a.fl;class s extends a.fl{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t,r=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=r.firstChild),r}update(e){var t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=(0,o.sY)(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return o.Jb}}s.finalized=!0,s._$litElement$=!0,null===(n=globalThis.litElementHydrateSupport)||void 0===n||n.call(globalThis,{LitElement:s});var l=globalThis.litElementPolyfillSupport;null==l||l({LitElement:s}),(null!==(i=globalThis.litElementVersions)&&void 0!==i?i:globalThis.litElementVersions=[]).push("3.2.2")},28773:(e,t,r)=>{"use strict";var n;r.d(t,{Jb:()=>T,dy:()=>w,sY:()=>j});var i=window,a=i.trustedTypes,o=a?a.createPolicy("lit-html",{createHTML:e=>e}):void 0,s="lit$".concat((Math.random()+"").slice(9),"$"),l="?"+s,u="<".concat(l,">"),c=document,d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return c.createComment(e)},h=e=>null===e||"object"!=typeof e&&"function"!=typeof e,f=Array.isArray,p=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,m=/-->/g,g=/>/g,v=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),y=/'/g,_=/"/g,b=/^(?:script|style|textarea|title)$/i,M=e=>function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return{_$litType$:e,strings:t,values:n}},w=M(1),T=(M(2),Symbol.for("lit-noChange")),L=Symbol.for("lit-nothing"),S=new WeakMap,k=c.createTreeWalker(c,129,null,!1),x=(e,t)=>{for(var r,n=e.length-1,i=[],a=2===t?"<svg>":"",l=p,c=0;c<n;c++){for(var d=e[c],h=void 0,f=void 0,M=-1,w=0;w<d.length&&(l.lastIndex=w,null!==(f=l.exec(d)));)w=l.lastIndex,l===p?"!--"===f[1]?l=m:void 0!==f[1]?l=g:void 0!==f[2]?(b.test(f[2])&&(r=RegExp("</"+f[2],"g")),l=v):void 0!==f[3]&&(l=v):l===v?">"===f[0]?(l=null!=r?r:p,M=-1):void 0===f[1]?M=-2:(M=l.lastIndex-f[2].length,h=f[1],l=void 0===f[3]?v:'"'===f[3]?_:y):l===_||l===y?l=v:l===m||l===g?l=p:(l=v,r=void 0);var T=l===v&&e[c+1].startsWith("/>")?" ":"";a+=l===p?d+u:M>=0?(i.push(h),d.slice(0,M)+"$lit$"+d.slice(M)+s+T):d+s+(-2===M?(i.push(void 0),c):T)}var L=a+(e[n]||"<?>")+(2===t?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==o?o.createHTML(L):L,i]};class E{constructor(e,t){var r,{strings:n,_$litType$:i}=e;this.parts=[];var o=0,u=0,c=n.length-1,h=this.parts,[f,p]=x(n,i);if(this.el=E.createElement(f,t),k.currentNode=this.el.content,2===i){var m=this.el.content,g=m.firstChild;g.remove(),m.append(...g.childNodes)}for(;null!==(r=k.nextNode())&&h.length<c;){if(1===r.nodeType){if(r.hasAttributes()){var v=[];for(var y of r.getAttributeNames())if(y.endsWith("$lit$")||y.startsWith(s)){var _=p[u++];if(v.push(y),void 0!==_){var M=r.getAttribute(_.toLowerCase()+"$lit$").split(s),w=/([.?@])?(.*)/.exec(_);h.push({type:1,index:o,name:w[2],strings:M,ctor:"."===w[1]?R:"?"===w[1]?Y:"@"===w[1]?C:P})}else h.push({type:6,index:o})}for(var T of v)r.removeAttribute(T)}if(b.test(r.tagName)){var L=r.textContent.split(s),S=L.length-1;if(S>0){r.textContent=a?a.emptyScript:"";for(var D=0;D<S;D++)r.append(L[D],d()),k.nextNode(),h.push({type:2,index:++o});r.append(L[S],d())}}}else if(8===r.nodeType)if(r.data===l)h.push({type:2,index:o});else for(var A=-1;-1!==(A=r.data.indexOf(s,A+1));)h.push({type:7,index:o}),A+=s.length-1;o++}}static createElement(e,t){var r=c.createElement("template");return r.innerHTML=e,r}}function D(e,t){var r,n,i,a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,s=arguments.length>3?arguments[3]:void 0;if(t===T)return t;var l=void 0!==s?null===(r=o._$Co)||void 0===r?void 0:r[s]:o._$Cl,u=h(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==u&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===u?l=void 0:(l=new u(e))._$AT(e,o,s),void 0!==s?(null!==(i=(a=o)._$Co)&&void 0!==i?i:a._$Co=[])[s]=l:o._$Cl=l),void 0!==l&&(t=D(e,l._$AS(e,t.values),l,s)),t}class A{constructor(e,t){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var t,{el:{content:r},parts:n}=this._$AD,i=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:c).importNode(r,!0);k.currentNode=i;for(var a=k.nextNode(),o=0,s=0,l=n[0];void 0!==l;){if(o===l.index){var u=void 0;2===l.type?u=new O(a,a.nextSibling,this,e):1===l.type?u=new l.ctor(a,l.name,l.strings,this,e):6===l.type&&(u=new F(a,this,e)),this.u.push(u),l=n[++s]}o!==(null==l?void 0:l.index)&&(a=k.nextNode(),o++)}return i}p(e){var t=0;for(var r of this.u)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class O{constructor(e,t,r,n){var i;this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cm=null===(i=null==n?void 0:n.isConnected)||void 0===i||i}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cm}get parentNode(){var e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e){e=D(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),h(e)?e===L||null==e||""===e?(this._$AH!==L&&this._$AR(),this._$AH=L):e!==this._$AH&&e!==T&&this.g(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>f(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.k(e):this.g(e)}O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._$AB;return this._$AA.parentNode.insertBefore(e,t)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}g(e){this._$AH!==L&&h(this._$AH)?this._$AA.nextSibling.data=e:this.T(c.createTextNode(e)),this._$AH=e}$(e){var t,{values:r,_$litType$:n}=e,i="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=E.createElement(n.h,this.options)),n);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===i)this._$AH.p(r);else{var a=new A(i,this),o=a.v(this.options);a.p(r),this.T(o),this._$AH=a}}_$AC(e){var t=S.get(e.strings);return void 0===t&&S.set(e.strings,t=new E(e)),t}k(e){f(this._$AH)||(this._$AH=[],this._$AR());var t,r=this._$AH,n=0;for(var i of e)n===r.length?r.push(t=new O(this.O(d()),this.O(d()),this,this.options)):t=r[n],t._$AI(i),n++;n<r.length&&(this._$AR(t&&t._$AB.nextSibling,n),r.length=n)}_$AR(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,r=arguments.length>1?arguments[1]:void 0;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,r);t&&t!==this._$AB;){var n=t.nextSibling;t.remove(),t=n}}setConnected(e){var t;void 0===this._$AM&&(this._$Cm=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class P{constructor(e,t,r,n,i){this.type=1,this._$AH=L,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=i,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=L}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=this.strings,a=!1;if(void 0===i)e=D(this,e,t,0),(a=!h(e)||e!==this._$AH&&e!==T)&&(this._$AH=e);else{var o,s,l=e;for(e=i[0],o=0;o<i.length-1;o++)(s=D(this,l[r+o],t,o))===T&&(s=this._$AH[o]),a||(a=!h(s)||s!==this._$AH[o]),s===L?e=L:e!==L&&(e+=(null!=s?s:"")+i[o+1]),this._$AH[o]=s}a&&!n&&this.j(e)}j(e){e===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class R extends P{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===L?void 0:e}}var I=a?a.emptyScript:"";class Y extends P{constructor(){super(...arguments),this.type=4}j(e){e&&e!==L?this.element.setAttribute(this.name,I):this.element.removeAttribute(this.name)}}class C extends P{constructor(e,t,r,n,i){super(e,t,r,n,i),this.type=5}_$AI(e){var t;if((e=null!==(t=D(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==t?t:L)!==T){var r=this._$AH,n=e===L&&r!==L||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,i=e!==L&&(r===L||n);n&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}}handleEvent(e){var t,r;"function"==typeof this._$AH?this._$AH.call(null!==(r=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==r?r:this.element,e):this._$AH.handleEvent(e)}}class F{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){D(this,e)}}var N=i.litHtmlPolyfillSupport;null==N||N(E,O),(null!==(n=i.litHtmlVersions)&&void 0!==n?n:i.litHtmlVersions=[]).push("2.6.1");var j=(e,t,r)=>{var n,i,a=null!==(n=null==r?void 0:r.renderBefore)&&void 0!==n?n:t,o=a._$litPart$;if(void 0===o){var s=null!==(i=null==r?void 0:r.renderBefore)&&void 0!==i?i:null;a._$litPart$=o=new O(t.insertBefore(d(),s),s,void 0,null!=r?r:{})}return o._$AI(e),o}},56765:(e,t,r)=>{"use strict";r.d(t,{Cb:()=>i.C,IO:()=>a.I,Mo:()=>n.M});var n=r(66362),i=r(94760),a=r(40714);r(90993),r(77291)},94430:(e,t,r)=>{"use strict";r.d(t,{dy:()=>n.dy,iv:()=>n.iv,oi:()=>n.oi}),r(9054),r(28773);var n=r(95782)}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var a=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";r(72583),r(757),r(52864),r(80351),r(32471),r(85391),r(50311),r(9175),r(25551),r(56852),r(99358),r(30396),r(78108)})()})();
|