@sparkle-learning/core 0.0.33 → 0.0.36
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/dist/cjs/{auth.service-f878f6ab.js → PrivateRoute-074c584e.js} +34 -3
- package/dist/cjs/{active-router-eedb3bfe.js → active-router-f9e18bd8.js} +1 -1
- package/dist/cjs/{animation-6132e37f.js → animation-ee586546.js} +83 -78
- package/dist/cjs/{app-globals-9869bf67.js → app-globals-33c9f31b.js} +1 -1
- package/dist/cjs/{auth.store-ff3fda09.js → auth.store-1e630a7d.js} +48 -725
- package/dist/cjs/compass-svg.cjs.entry.js +1 -1
- package/dist/cjs/context-consumer.cjs.entry.js +1 -1
- package/dist/cjs/course-select.cjs.entry.js +1 -1
- package/dist/cjs/{cubic-bezier-293f4663.js → cubic-bezier-53d26d05.js} +10 -11
- package/dist/cjs/{facilitator.service-faac5c0c.js → facilitator.service-9e990274.js} +8 -7
- package/dist/cjs/{feed.service-66405969.js → feed.service-b4f09441.js} +8 -7
- package/dist/cjs/{focus-visible-ad3828a7.js → focus-visible-b0b07ba6.js} +19 -6
- package/dist/cjs/{framework-delegate-2470a246.js → framework-delegate-59a98abd.js} +11 -13
- package/dist/cjs/{gesture-controller-07c31f70.js → gesture-controller-0eb5579e.js} +1 -1
- package/dist/cjs/{haptic-91e86eb7.js → haptic-780f33c4.js} +3 -2
- package/dist/cjs/{hardware-back-button-f7b5d99e.js → hardware-back-button-92d97ff8.js} +8 -8
- package/dist/cjs/{sparkle-export-lessons_6.cjs.entry.js → header-mobile-collapse_61.cjs.entry.js} +11608 -2721
- package/dist/cjs/{helpers-7e28976c.js → helpers-c2496722.js} +81 -14
- package/dist/cjs/httpService-7211d93b.js +685 -0
- package/dist/cjs/{icons-80d477f6.js → icons-c61db785.js} +1 -1
- package/dist/cjs/{index-43642662.js → index-12082cba.js} +21 -18
- package/dist/cjs/{index-459a5fa9.js → index-15ea05f5.js} +19 -28
- package/dist/cjs/{index-bae2a754.js → index-51e8292e.js} +18 -11
- package/dist/cjs/{index-b12edb26.js → index-787d4498.js} +17 -25
- package/dist/cjs/{tap-click-1caf1780.js → index-8b5629a6.js} +30 -20
- package/dist/cjs/{index-8540d72e.js → index-975586fd.js} +7 -1
- package/dist/cjs/index-9c7b27e4.js +140 -0
- package/dist/cjs/{index-185f9c5a.js → index-af080b50.js} +9 -8
- package/dist/cjs/index-e56e09b8.js +38 -0
- package/dist/cjs/index.cjs.js +12 -12
- package/dist/cjs/{index.es-ef3efdfb.js → index.es-38cbcdbe.js} +2 -7
- package/dist/cjs/{input-shims-6c442c9f.js → input-shims-eff63b88.js} +21 -24
- package/dist/cjs/ion-accordion-group.cjs.entry.js +17 -9
- package/dist/cjs/ion-accordion.cjs.entry.js +19 -23
- package/dist/cjs/ion-action-sheet_4.cjs.entry.js +216 -212
- package/dist/cjs/ion-app.cjs.entry.js +8 -8
- package/dist/cjs/ion-back-button.cjs.entry.js +11 -11
- package/dist/cjs/ion-backdrop.cjs.entry.js +4 -4
- package/dist/cjs/ion-badge.cjs.entry.js +3 -3
- package/dist/cjs/ion-breadcrumb.cjs.entry.js +13 -21
- package/dist/cjs/ion-breadcrumbs.cjs.entry.js +12 -14
- package/dist/cjs/ion-buttons_3.cjs.entry.js +13 -13
- package/dist/cjs/ion-card-header.cjs.entry.js +4 -4
- package/dist/cjs/ion-card-subtitle.cjs.entry.js +4 -4
- package/dist/cjs/ion-card-title.cjs.entry.js +4 -4
- package/dist/cjs/ion-chip.cjs.entry.js +3 -3
- package/dist/cjs/ion-content_2.cjs.entry.js +59 -52
- package/dist/cjs/ion-datetime-button.cjs.entry.js +312 -0
- package/dist/cjs/ion-datetime.cjs.entry.js +752 -1245
- package/dist/cjs/ion-fab-button.cjs.entry.js +25 -9
- package/dist/cjs/ion-fab-list.cjs.entry.js +4 -4
- package/dist/cjs/ion-fab.cjs.entry.js +15 -13
- package/dist/cjs/ion-footer.cjs.entry.js +16 -14
- package/dist/cjs/ion-img.cjs.entry.js +4 -4
- package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +5 -5
- package/dist/cjs/ion-infinite-scroll.cjs.entry.js +13 -15
- package/dist/cjs/ion-item-divider.cjs.entry.js +4 -4
- package/dist/cjs/ion-item-group.cjs.entry.js +3 -3
- package/dist/cjs/ion-item-option.cjs.entry.js +8 -8
- package/dist/cjs/ion-item-options.cjs.entry.js +5 -5
- package/dist/cjs/ion-item-sliding.cjs.entry.js +41 -46
- package/dist/cjs/ion-loading.cjs.entry.js +23 -35
- package/dist/cjs/ion-menu-button.cjs.entry.js +13 -13
- package/dist/cjs/ion-menu-toggle.cjs.entry.js +7 -7
- package/dist/cjs/ion-menu.cjs.entry.js +47 -40
- package/dist/cjs/ion-modal.cjs.entry.js +935 -282
- package/dist/cjs/ion-nav-link.cjs.entry.js +2 -2
- package/dist/cjs/ion-nav.cjs.entry.js +45 -35
- package/dist/cjs/ion-picker-column-internal_2.cjs.entry.js +151 -43
- package/dist/cjs/ion-picker-column.cjs.entry.js +23 -25
- package/dist/cjs/ion-picker.cjs.entry.js +15 -17
- package/dist/cjs/ion-progress-bar.cjs.entry.js +6 -8
- package/dist/cjs/ion-refresher-content.cjs.entry.js +6 -12
- package/dist/cjs/ion-refresher.cjs.entry.js +68 -50
- package/dist/cjs/ion-reorder-group.cjs.entry.js +15 -16
- package/dist/cjs/ion-reorder.cjs.entry.js +3 -3
- package/dist/cjs/ion-route-redirect.cjs.entry.js +1 -1
- package/dist/cjs/ion-route.cjs.entry.js +1 -1
- package/dist/cjs/ion-router-link.cjs.entry.js +5 -5
- package/dist/cjs/ion-router-outlet.cjs.entry.js +22 -20
- package/dist/cjs/ion-router.cjs.entry.js +32 -31
- package/dist/cjs/ion-searchbar.cjs.entry.js +14 -16
- package/dist/cjs/ion-segment-button.cjs.entry.js +8 -8
- package/dist/cjs/ion-segment.cjs.entry.js +24 -26
- package/dist/cjs/ion-select_2.cjs.entry.js +59 -56
- package/dist/cjs/ion-skeleton-text.cjs.entry.js +4 -4
- package/dist/cjs/ion-slide.cjs.entry.js +3 -3
- package/dist/cjs/ion-slides.cjs.entry.js +23 -23
- package/dist/cjs/ion-split-pane.cjs.entry.js +10 -11
- package/dist/cjs/ion-tab-bar.cjs.entry.js +5 -5
- package/dist/cjs/ion-tab-button.cjs.entry.js +6 -6
- package/dist/cjs/ion-tab.cjs.entry.js +4 -4
- package/dist/cjs/ion-tabs.cjs.entry.js +4 -5
- package/dist/cjs/ion-textarea.cjs.entry.js +29 -28
- package/dist/cjs/ion-thumbnail.cjs.entry.js +2 -2
- package/dist/cjs/ion-toast.cjs.entry.js +23 -43
- package/dist/cjs/ion-toggle.cjs.entry.js +36 -19
- package/dist/cjs/ion-virtual-scroll.cjs.entry.js +29 -28
- package/dist/cjs/{ionic-global-878073d1.js → ionic-global-2cde9d3a.js} +27 -31
- package/dist/cjs/{ios.transition-c3bfb096.js → ios.transition-da235483.js} +71 -51
- package/dist/cjs/{keyboard-dfd76ac3.js → keyboard-91096619.js} +3 -3
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{md.transition-7eb9a1a7.js → md.transition-be429e07.js} +9 -16
- package/dist/cjs/{menu-toggle-util-cb549c2c.js → menu-toggle-util-7a01448c.js} +2 -2
- package/dist/cjs/{overlays-0a748609.js → overlays-32df265a.js} +29 -29
- package/dist/cjs/parse-d0071120.js +1237 -0
- package/dist/cjs/{purify-d0ad2883.js → purify-fb9c107e.js} +1 -1
- package/dist/cjs/sparkle-animation-player.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-character-intro.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-code.cjs.entry.js +2 -2
- package/dist/cjs/sparkle-compass-post.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-compass.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-core.cjs.js +5 -5
- package/dist/cjs/sparkle-emoji.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-facilitator-notes-form.cjs.entry.js +8 -7
- package/dist/cjs/sparkle-feed-post.cjs.entry.js +104 -3
- package/dist/cjs/sparkle-feedback.cjs.entry.js +8 -8
- package/dist/cjs/sparkle-goal-form.cjs.entry.js +8 -7
- package/dist/cjs/sparkle-gww-comment-list.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-gww-graph.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-intro.cjs.entry.js +2 -2
- package/dist/cjs/sparkle-lower-content-nav.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-menu-collapsible.cjs.entry.js +2 -2
- package/dist/cjs/sparkle-modal-image.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-notfound-page.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-overlay.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-poll.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-quiz-container.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-quiz-feedback_5.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-quiz-v1.cjs.entry.js +105 -0
- package/dist/cjs/sparkle-quiz.cjs.entry.js +55 -41
- package/dist/cjs/sparkle-select.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-tab.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-table-of-contents.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-tabs.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-youtube.cjs.entry.js +1 -1
- package/dist/cjs/{spinner-configs-6f6b7ef0.js → spinner-configs-0ac05f2d.js} +43 -43
- package/dist/cjs/{status-tap-8697433c.js → status-tap-033befa2.js} +7 -5
- package/dist/cjs/stencil-async-content.cjs.entry.js +1 -1
- package/dist/cjs/stencil-route-title.cjs.entry.js +2 -2
- package/dist/cjs/stencil-router-prompt.cjs.entry.js +2 -2
- package/dist/cjs/student.service-2e58f237.js +78 -0
- package/dist/cjs/{swipe-back-7e08b5e0.js → swipe-back-4a826f9b.js} +5 -5
- package/dist/cjs/{theme-4252ac15.js → theme-b0b295c1.js} +6 -5
- package/dist/collection/collection-manifest.json +4 -2
- package/dist/collection/components/sparkle-feed-post/sparkle-feed-post.css +16 -0
- package/dist/collection/components/sparkle-feed-post/sparkle-feed-post.js +197 -3
- package/dist/collection/components/sparkle-intro/sparkle-intro.css +0 -1
- package/dist/collection/components/sparkle-quiz/{sparkle-quiz.css → sparkle-quiz/sparkle-quiz.css} +0 -0
- package/dist/collection/components/sparkle-quiz/sparkle-quiz/sparkle-quiz.js +326 -0
- package/dist/collection/components/sparkle-quiz/sparkle-quiz-v1.css +48 -0
- package/dist/collection/components/sparkle-quiz/{sparkle-quiz.js → sparkle-quiz-v1.js} +4 -4
- package/dist/esm/{auth.service-7ab0ac58.js → PrivateRoute-c5441f35.js} +33 -3
- package/dist/esm/{active-router-909088d6.js → active-router-fc9e4e06.js} +1 -1
- package/dist/esm/{animation-7b083379.js → animation-12377cb3.js} +83 -78
- package/dist/esm/{app-globals-5c736ae5.js → app-globals-3f0347b0.js} +1 -1
- package/dist/esm/{auth.store-98fad96d.js → auth.store-dba2c2da.js} +45 -725
- package/dist/esm/compass-svg.entry.js +1 -1
- package/dist/esm/context-consumer.entry.js +1 -1
- package/dist/esm/course-select.entry.js +1 -1
- package/dist/esm/{cubic-bezier-a7ad9c8e.js → cubic-bezier-4c0db14f.js} +10 -11
- package/dist/esm/{facilitator.service-1524bf89.js → facilitator.service-b0292f7f.js} +2 -1
- package/dist/esm/{feed.service-4900fc62.js → feed.service-8fbe4ce3.js} +3 -2
- package/dist/esm/{focus-visible-40cda868.js → focus-visible-4e9a0764.js} +19 -6
- package/dist/esm/{framework-delegate-518bd233.js → framework-delegate-3e634a5c.js} +11 -13
- package/dist/esm/{gesture-controller-686622ba.js → gesture-controller-7be18351.js} +1 -1
- package/dist/esm/{haptic-99c9e346.js → haptic-522f76f2.js} +3 -2
- package/dist/esm/{hardware-back-button-b6ccf74a.js → hardware-back-button-fa04d6e9.js} +8 -8
- package/dist/esm/{sparkle-export-lessons_6.entry.js → header-mobile-collapse_61.entry.js} +11502 -2670
- package/dist/esm/{helpers-9d0930de.js → helpers-bf0e23d6.js} +81 -15
- package/dist/esm/httpService-7b75b095.js +683 -0
- package/dist/esm/{icons-05b6ce86.js → icons-9b62a1ec.js} +2 -2
- package/dist/esm/{index-a12c14bd.js → index-21661af2.js} +22 -19
- package/dist/esm/{index-8de9446b.js → index-2b84cad2.js} +17 -25
- package/dist/esm/{index-ea26196a.js → index-4044fde9.js} +5 -2
- package/dist/esm/{tap-click-cca25060.js → index-45fec1e7.js} +30 -20
- package/dist/esm/index-5e8971ae.js +128 -0
- package/dist/esm/{index-435af8e6.js → index-be6112f8.js} +9 -8
- package/dist/esm/{index-5568e3fa.js → index-c04b9ed5.js} +18 -11
- package/dist/esm/{index-fa5e93c5.js → index-cded2d87.js} +19 -28
- package/dist/esm/index-dad75b83.js +34 -0
- package/dist/esm/{index.es-89cff481.js → index.es-e0c0f891.js} +2 -7
- package/dist/esm/index.js +8 -8
- package/dist/esm/{input-shims-7f04e044.js → input-shims-671d8d9f.js} +21 -24
- package/dist/esm/ion-accordion-group.entry.js +17 -9
- package/dist/esm/ion-accordion.entry.js +19 -23
- package/dist/esm/ion-action-sheet_4.entry.js +216 -212
- package/dist/esm/ion-app.entry.js +8 -8
- package/dist/esm/ion-back-button.entry.js +11 -11
- package/dist/esm/ion-backdrop.entry.js +4 -4
- package/dist/esm/ion-badge.entry.js +3 -3
- package/dist/esm/ion-breadcrumb.entry.js +13 -21
- package/dist/esm/ion-breadcrumbs.entry.js +12 -14
- package/dist/esm/ion-buttons_3.entry.js +13 -13
- package/dist/esm/ion-card-header.entry.js +4 -4
- package/dist/esm/ion-card-subtitle.entry.js +4 -4
- package/dist/esm/ion-card-title.entry.js +4 -4
- package/dist/esm/ion-chip.entry.js +3 -3
- package/dist/esm/ion-content_2.entry.js +59 -52
- package/dist/esm/ion-datetime-button.entry.js +308 -0
- package/dist/esm/ion-datetime.entry.js +723 -1216
- package/dist/esm/ion-fab-button.entry.js +25 -9
- package/dist/esm/ion-fab-list.entry.js +4 -4
- package/dist/esm/ion-fab.entry.js +15 -13
- package/dist/esm/ion-footer.entry.js +16 -14
- package/dist/esm/ion-img.entry.js +4 -4
- package/dist/esm/ion-infinite-scroll-content.entry.js +5 -5
- package/dist/esm/ion-infinite-scroll.entry.js +13 -15
- package/dist/esm/ion-item-divider.entry.js +4 -4
- package/dist/esm/ion-item-group.entry.js +3 -3
- package/dist/esm/ion-item-option.entry.js +8 -8
- package/dist/esm/ion-item-options.entry.js +5 -5
- package/dist/esm/ion-item-sliding.entry.js +41 -46
- package/dist/esm/ion-loading.entry.js +23 -35
- package/dist/esm/ion-menu-button.entry.js +13 -13
- package/dist/esm/ion-menu-toggle.entry.js +7 -7
- package/dist/esm/ion-menu.entry.js +47 -40
- package/dist/esm/ion-modal.entry.js +921 -268
- package/dist/esm/ion-nav-link.entry.js +2 -2
- package/dist/esm/ion-nav.entry.js +45 -35
- package/dist/esm/ion-picker-column-internal_2.entry.js +151 -43
- package/dist/esm/ion-picker-column.entry.js +23 -25
- package/dist/esm/ion-picker.entry.js +15 -17
- package/dist/esm/ion-progress-bar.entry.js +6 -8
- package/dist/esm/ion-refresher-content.entry.js +6 -12
- package/dist/esm/ion-refresher.entry.js +68 -50
- package/dist/esm/ion-reorder-group.entry.js +15 -16
- package/dist/esm/ion-reorder.entry.js +3 -3
- package/dist/esm/ion-route-redirect.entry.js +1 -1
- package/dist/esm/ion-route.entry.js +1 -1
- package/dist/esm/ion-router-link.entry.js +5 -5
- package/dist/esm/ion-router-outlet.entry.js +22 -20
- package/dist/esm/ion-router.entry.js +32 -31
- package/dist/esm/ion-searchbar.entry.js +14 -16
- package/dist/esm/ion-segment-button.entry.js +8 -8
- package/dist/esm/ion-segment.entry.js +24 -26
- package/dist/esm/ion-select_2.entry.js +59 -56
- package/dist/esm/ion-skeleton-text.entry.js +4 -4
- package/dist/esm/ion-slide.entry.js +3 -3
- package/dist/esm/ion-slides.entry.js +23 -23
- package/dist/esm/ion-split-pane.entry.js +10 -11
- package/dist/esm/ion-tab-bar.entry.js +5 -5
- package/dist/esm/ion-tab-button.entry.js +6 -6
- package/dist/esm/ion-tab.entry.js +4 -4
- package/dist/esm/ion-tabs.entry.js +4 -5
- package/dist/esm/ion-textarea.entry.js +29 -28
- package/dist/esm/ion-thumbnail.entry.js +2 -2
- package/dist/esm/ion-toast.entry.js +23 -43
- package/dist/esm/ion-toggle.entry.js +36 -19
- package/dist/esm/ion-virtual-scroll.entry.js +29 -28
- package/dist/esm/{ionic-global-0939c477.js → ionic-global-4903e23e.js} +27 -31
- package/dist/esm/{ios.transition-db4f4ca6.js → ios.transition-131d64fe.js} +71 -51
- package/dist/esm/{keyboard-2503e874.js → keyboard-7e8329b3.js} +3 -3
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{md.transition-8294b503.js → md.transition-f6126011.js} +9 -16
- package/dist/esm/{menu-toggle-util-06adade3.js → menu-toggle-util-bace8ae6.js} +2 -2
- package/dist/esm/{overlays-5c777f10.js → overlays-3b4dca92.js} +30 -30
- package/dist/esm/parse-1ae3a9bb.js +1196 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{purify-eb68cf1d.js → purify-85bfcc69.js} +1 -1
- package/dist/esm/sparkle-animation-player.entry.js +2 -2
- package/dist/esm/sparkle-character-intro.entry.js +1 -1
- package/dist/esm/sparkle-code.entry.js +2 -2
- package/dist/esm/sparkle-compass-post.entry.js +1 -1
- package/dist/esm/sparkle-compass.entry.js +1 -1
- package/dist/esm/sparkle-core.js +5 -5
- package/dist/esm/sparkle-emoji.entry.js +1 -1
- package/dist/esm/sparkle-facilitator-notes-form.entry.js +8 -7
- package/dist/esm/sparkle-feed-post.entry.js +104 -3
- package/dist/esm/sparkle-feedback.entry.js +8 -8
- package/dist/esm/sparkle-goal-form.entry.js +9 -8
- package/dist/esm/sparkle-gww-comment-list.entry.js +1 -1
- package/dist/esm/sparkle-gww-graph.entry.js +1 -1
- package/dist/esm/sparkle-intro.entry.js +2 -2
- package/dist/esm/sparkle-lower-content-nav.entry.js +1 -1
- package/dist/esm/sparkle-menu-collapsible.entry.js +2 -2
- package/dist/esm/sparkle-modal-image.entry.js +1 -1
- package/dist/esm/sparkle-notfound-page.entry.js +1 -1
- package/dist/esm/sparkle-overlay.entry.js +1 -1
- package/dist/esm/sparkle-poll.entry.js +1 -1
- package/dist/esm/sparkle-quiz-container.entry.js +1 -1
- package/dist/esm/sparkle-quiz-feedback_5.entry.js +1 -1
- package/dist/esm/sparkle-quiz-v1.entry.js +101 -0
- package/dist/esm/sparkle-quiz.entry.js +55 -41
- package/dist/esm/sparkle-select.entry.js +1 -1
- package/dist/esm/sparkle-sidebar.entry.js +1 -1
- package/dist/esm/sparkle-tab.entry.js +1 -1
- package/dist/esm/sparkle-table-of-contents.entry.js +1 -1
- package/dist/esm/sparkle-tabs.entry.js +1 -1
- package/dist/esm/sparkle-youtube.entry.js +1 -1
- package/dist/esm/{spinner-configs-f609a655.js → spinner-configs-a37e628a.js} +43 -43
- package/dist/esm/{status-tap-e8c0c752.js → status-tap-dde52787.js} +7 -5
- package/dist/esm/stencil-async-content.entry.js +1 -1
- package/dist/esm/stencil-route-title.entry.js +2 -2
- package/dist/esm/stencil-router-prompt.entry.js +2 -2
- package/dist/esm/{student.service-c2f44f3a.js → student.service-0746418b.js} +19 -3
- package/dist/esm/{swipe-back-9a3b2cdd.js → swipe-back-7847a0c1.js} +5 -5
- package/dist/esm/{theme-c336c9d9.js → theme-7ef00c83.js} +6 -5
- package/dist/esm/{util-a831d09d.js → util-6ef753e9.js} +1 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/content/content.css +8 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.ios.css +46 -22
- package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.md.css +43 -19
- package/dist/node_modules/@ionic/core/dist/collection/components/datetime-button/datetime-button.css +60 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item/item.ios.css +2 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/item/item.md.css +2 -2
- package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.ios.css +6 -6
- package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.md.css +6 -6
- package/dist/node_modules/@ionic/core/dist/collection/components/label/label.ios.css +3 -3
- package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.ios.css +1 -6
- package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.md.css +1 -6
- package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.ios.css +1 -5
- package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.md.css +1 -5
- package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.ios.css +31 -3
- package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.md.css +29 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.ios.css +24 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.md.css +24 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.ios.css +4 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.md.css +4 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/range/range.ios.css +2 -2
- package/dist/node_modules/@ionic/core/dist/collection/components/range/range.md.css +2 -2
- package/dist/node_modules/@ionic/core/dist/collection/components/spinner/spinner.css +8 -8
- package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.ios.css +34 -17
- package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.md.css +34 -17
- package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.ios.css +50 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.md.css +27 -0
- package/dist/sparkle-core/index.esm.js +1 -1
- package/dist/sparkle-core/p-00d10dc9.js +4 -0
- package/dist/sparkle-core/p-0147266a.js +1 -0
- package/dist/sparkle-core/{p-797c23ed.entry.js → p-04c7b276.entry.js} +1 -1
- package/dist/sparkle-core/p-05c032dd.js +4 -0
- package/dist/sparkle-core/{p-5f45d206.entry.js → p-06642405.entry.js} +1 -1
- package/dist/sparkle-core/p-0664370b.entry.js +1 -0
- package/dist/sparkle-core/{p-39e5a90f.entry.js → p-06c7d0f2.entry.js} +1 -1
- package/dist/sparkle-core/{p-703ca87c.js → p-076f0239.js} +0 -0
- package/dist/sparkle-core/p-077c732b.js +4 -0
- package/dist/sparkle-core/p-0ad5c123.entry.js +1 -0
- package/dist/sparkle-core/{p-beb401e3.entry.js → p-0afa3a4d.entry.js} +1 -1
- package/dist/sparkle-core/{p-52f1d1ca.entry.js → p-0c3f3ea6.entry.js} +1 -1
- package/dist/sparkle-core/{p-69e7783d.js → p-0e4de1d0.js} +0 -0
- package/dist/sparkle-core/{p-337f92b0.entry.js → p-0f1c5899.entry.js} +5 -5
- package/dist/sparkle-core/{p-5e4ec238.entry.js → p-0fa3fd63.entry.js} +1 -1
- package/dist/sparkle-core/p-11356b03.entry.js +1 -0
- package/dist/sparkle-core/p-12dd96d7.js +4 -0
- package/dist/sparkle-core/{p-21db4e8e.entry.js → p-162bff1a.entry.js} +1 -1
- package/dist/sparkle-core/p-1b1ba156.entry.js +1 -0
- package/dist/sparkle-core/p-1d4c7c11.js +1 -0
- package/dist/sparkle-core/{p-11234d0f.entry.js → p-1e125ca5.entry.js} +1 -1
- package/dist/sparkle-core/{p-5b40aae5.entry.js → p-1e4782af.entry.js} +1 -1
- package/dist/sparkle-core/{p-4550e10f.entry.js → p-1e4f65ee.entry.js} +1 -1
- package/dist/sparkle-core/{p-f6bafe1d.js → p-2033cd86.js} +2 -2
- package/dist/sparkle-core/{p-ed0e9d29.entry.js → p-214d1229.entry.js} +1 -1
- package/dist/sparkle-core/p-23aca7ca.js +4 -0
- package/dist/sparkle-core/{p-85429b12.entry.js → p-24cb9a33.entry.js} +1 -1
- package/dist/sparkle-core/{p-37c00e39.entry.js → p-27fbabc3.entry.js} +1 -1
- package/dist/sparkle-core/{p-7d61177b.entry.js → p-2ba70507.entry.js} +1 -1
- package/dist/sparkle-core/{p-c8ae9e47.entry.js → p-2c1ca854.entry.js} +1 -1
- package/dist/sparkle-core/{p-23a9f7d1.entry.js → p-2d9659e2.entry.js} +1 -1
- package/dist/sparkle-core/p-2f569553.js +1 -0
- package/dist/sparkle-core/p-2ff67662.js +4 -0
- package/dist/sparkle-core/p-30b810d1.entry.js +4 -0
- package/dist/sparkle-core/p-32f4e565.entry.js +1 -0
- package/dist/sparkle-core/{p-057f6a23.entry.js → p-352677e6.entry.js} +1 -1
- package/dist/sparkle-core/{p-b49ca0ea.entry.js → p-370609ba.entry.js} +1 -1
- package/dist/sparkle-core/p-377b04c2.entry.js +10 -0
- package/dist/sparkle-core/{p-aa9ebc39.entry.js → p-38b7cf68.entry.js} +1 -1
- package/dist/sparkle-core/{p-667accac.entry.js → p-3963e02b.entry.js} +1 -1
- package/dist/sparkle-core/p-39712c56.entry.js +4 -0
- package/dist/sparkle-core/p-3a965828.entry.js +1 -0
- package/dist/sparkle-core/p-3de0e00c.js +4 -0
- package/dist/sparkle-core/{p-04583c51.entry.js → p-4053ecdb.entry.js} +1 -1
- package/dist/sparkle-core/p-462bffba.js +1 -0
- package/dist/sparkle-core/p-48f72e63.js +4 -0
- package/dist/sparkle-core/p-4c6a7e52.js +1 -0
- package/dist/sparkle-core/{p-8c6b6038.js → p-4d4077ea.js} +0 -0
- package/dist/sparkle-core/{p-3a202a38.entry.js → p-5096739e.entry.js} +1 -1
- package/dist/sparkle-core/p-5322c920.entry.js +1 -0
- package/dist/sparkle-core/{p-c748f64e.entry.js → p-54dd894f.entry.js} +1 -1
- package/dist/sparkle-core/p-564e64fc.entry.js +4 -0
- package/dist/sparkle-core/{p-b3909012.entry.js → p-5893bbe5.entry.js} +1 -1
- package/dist/sparkle-core/p-58e4bbe5.entry.js +1 -0
- package/dist/sparkle-core/p-590266d6.entry.js +1 -0
- package/dist/sparkle-core/p-594a6982.entry.js +1 -0
- package/dist/sparkle-core/{p-aef8aa31.entry.js → p-5c435d5a.entry.js} +1 -1
- package/dist/sparkle-core/{p-a7832a51.js → p-5cad23f1.js} +1 -1
- package/dist/sparkle-core/p-5efc6566.js +1 -0
- package/dist/sparkle-core/p-600cf6a3.js +1 -0
- package/dist/sparkle-core/{p-a9ee3f6d.entry.js → p-601397df.entry.js} +1 -1
- package/dist/sparkle-core/p-604a7987.js +4 -0
- package/dist/sparkle-core/{p-11cf398a.entry.js → p-616941c6.entry.js} +1 -1
- package/dist/sparkle-core/{p-aa87c7f0.entry.js → p-6316d124.entry.js} +1 -1
- package/dist/sparkle-core/p-63f71ada.entry.js +1 -0
- package/dist/sparkle-core/p-641bfc92.entry.js +1 -0
- package/dist/sparkle-core/p-69487d90.entry.js +1 -0
- package/dist/sparkle-core/{p-5a98d42e.entry.js → p-6faa194c.entry.js} +2 -2
- package/dist/sparkle-core/p-6ffd2420.entry.js +1 -0
- package/dist/sparkle-core/p-73721c84.js +4 -0
- package/dist/sparkle-core/p-74864276.entry.js +1 -0
- package/dist/sparkle-core/p-7d8427eb.js +4 -0
- package/dist/sparkle-core/{p-5264da79.js → p-7e7ce516.js} +0 -0
- package/dist/sparkle-core/{p-43a7391b.entry.js → p-80d6b0e6.entry.js} +1 -1
- package/dist/sparkle-core/{p-c5b9bdd6.entry.js → p-81714d94.entry.js} +1 -1
- package/dist/sparkle-core/p-8492a765.entry.js +1 -0
- package/dist/sparkle-core/p-859563db.entry.js +1 -0
- package/dist/sparkle-core/{p-4dc3ef96.entry.js → p-865f36a8.entry.js} +1 -1
- package/dist/sparkle-core/{p-52d4715a.js → p-86ed13f0.js} +1 -1
- package/dist/sparkle-core/p-871106e0.js +4 -0
- package/dist/sparkle-core/p-894ff7e6.entry.js +1 -0
- package/dist/sparkle-core/{p-7493ee15.entry.js → p-8a41b502.entry.js} +1 -1
- package/dist/sparkle-core/p-8c74cbb6.entry.js +1 -0
- package/dist/sparkle-core/{p-d4c07aca.js → p-924b2917.js} +0 -0
- package/dist/sparkle-core/p-9289cdbc.entry.js +1 -0
- package/dist/sparkle-core/{p-4bd4dab2.js → p-935e7cfc.js} +1 -1
- package/dist/sparkle-core/{p-d7baf31e.entry.js → p-975b99ee.entry.js} +1 -1
- package/dist/sparkle-core/p-99ee9919.js +1 -0
- package/dist/sparkle-core/p-9abbd715.entry.js +1 -0
- package/dist/sparkle-core/{p-ff4d6858.js → p-9d894ed4.js} +2 -2
- package/dist/sparkle-core/{p-fbd7eeca.entry.js → p-9e309b3e.entry.js} +1 -1
- package/dist/sparkle-core/{p-996361f9.entry.js → p-9e7fee8f.entry.js} +1 -1
- package/dist/sparkle-core/p-9ebf0537.entry.js +1 -0
- package/dist/sparkle-core/p-a102341e.entry.js +1 -0
- package/dist/sparkle-core/p-a208ab2d.js +4 -0
- package/dist/sparkle-core/p-a2638250.entry.js +1 -0
- package/dist/sparkle-core/{p-016a7aaf.entry.js → p-a2ebcf0a.entry.js} +1 -1
- package/dist/sparkle-core/{p-6823e6c1.entry.js → p-a98d7ebe.entry.js} +1 -1
- package/dist/sparkle-core/p-add30d46.js +4 -0
- package/dist/sparkle-core/p-af3cc111.entry.js +1 -0
- package/dist/sparkle-core/{p-0ad99881.js → p-b0603d19.js} +1 -1
- package/dist/sparkle-core/p-b3f375fb.entry.js +1 -0
- package/dist/sparkle-core/p-b5f3e1bf.entry.js +1 -0
- package/dist/sparkle-core/{p-90466494.entry.js → p-b96f3c84.entry.js} +2 -2
- package/dist/sparkle-core/p-bd80ff43.js +4 -0
- package/dist/sparkle-core/p-be64105c.entry.js +1 -0
- package/dist/sparkle-core/{p-08923b40.entry.js → p-c0533c23.entry.js} +1 -1
- package/dist/sparkle-core/p-c2990b24.entry.js +1 -0
- package/dist/sparkle-core/{p-c3d3d5c4.entry.js → p-c3cadfc6.entry.js} +1 -1
- package/dist/sparkle-core/p-c60b29bd.entry.js +4 -0
- package/dist/sparkle-core/p-cabfbf22.entry.js +1 -0
- package/dist/sparkle-core/p-cc518c36.entry.js +1 -0
- package/dist/sparkle-core/{p-b21d0d9f.entry.js → p-ce4b22f7.entry.js} +2 -2
- package/dist/sparkle-core/p-cffd4817.entry.js +1 -0
- package/dist/sparkle-core/{p-c69b0a7a.entry.js → p-d0adf726.entry.js} +1 -1
- package/dist/sparkle-core/{p-03ec54a8.entry.js → p-d20e4fcf.entry.js} +1 -1
- package/dist/sparkle-core/p-d24e53ab.entry.js +1 -0
- package/dist/sparkle-core/p-d288e6c1.entry.js +1 -0
- package/dist/sparkle-core/{p-ee0d7f19.entry.js → p-d601810e.entry.js} +1 -1
- package/dist/sparkle-core/p-d68092b7.js +4 -0
- package/dist/sparkle-core/p-de4deb61.entry.js +1 -0
- package/dist/sparkle-core/{p-b07a2cf2.entry.js → p-e249aebf.entry.js} +1 -1
- package/dist/sparkle-core/p-e3e36ce9.entry.js +1 -0
- package/dist/sparkle-core/{p-1726da2f.entry.js → p-e421d638.entry.js} +1 -1
- package/dist/sparkle-core/p-e686d8b5.entry.js +4 -0
- package/dist/sparkle-core/{p-401feeb0.js → p-e8073714.js} +1 -1
- package/dist/sparkle-core/p-e863bf1d.entry.js +1 -0
- package/dist/sparkle-core/{p-3defe550.entry.js → p-e8988989.entry.js} +1 -1
- package/dist/sparkle-core/p-e9431eeb.js +7 -0
- package/dist/sparkle-core/p-ea962e1b.entry.js +1 -0
- package/dist/sparkle-core/p-eaa8bbee.js +4 -0
- package/dist/sparkle-core/p-eaf76d1d.entry.js +352 -0
- package/dist/sparkle-core/p-ebd4354b.entry.js +1 -0
- package/dist/sparkle-core/p-ee1e0eb4.js +2 -0
- package/dist/sparkle-core/{p-d00f550b.entry.js → p-ef4edc48.entry.js} +1 -1
- package/dist/sparkle-core/{p-a9ccb0df.js → p-f3cba72a.js} +0 -0
- package/dist/sparkle-core/p-fb0ca75e.entry.js +5 -0
- package/dist/sparkle-core/p-fb757951.entry.js +1 -0
- package/dist/sparkle-core/p-fbccd30c.js +1 -0
- package/dist/sparkle-core/p-fd8d0738.entry.js +4 -0
- package/dist/sparkle-core/{p-90389886.entry.js → p-fda95b6e.entry.js} +1 -1
- package/dist/sparkle-core/{p-350adbaa.entry.js → p-fe6dc976.entry.js} +1 -1
- package/dist/sparkle-core/{p-ecd39170.entry.js → p-ff0e0d4e.entry.js} +1 -1
- package/dist/sparkle-core/sparkle-core.css +1 -1
- package/dist/sparkle-core/sparkle-core.esm.js +1 -1
- package/dist/types/components/sparkle-feed-post/sparkle-feed-post.d.ts +16 -0
- package/dist/types/components/sparkle-quiz/sparkle-quiz/sparkle-quiz.d.ts +42 -0
- package/dist/types/components/sparkle-quiz/sparkle-quiz-v1.d.ts +41 -0
- package/dist/types/components/sparkle-quiz/sparkle-quiz.d.ts +36 -36
- package/dist/types/components.d.ts +96 -11
- package/package.json +3 -3
- package/dist/cjs/PrivateRoute-482697a6.js +0 -35
- package/dist/cjs/dom-utils-b8befdd5.js +0 -63
- package/dist/cjs/header-mobile-collapse_2.cjs.entry.js +0 -112
- package/dist/cjs/index-07e8aa51.js +0 -3071
- package/dist/cjs/injectHistory-77d41284.js +0 -9
- package/dist/cjs/ion-avatar.cjs.entry.js +0 -25
- package/dist/cjs/ion-button_3.cjs.entry.js +0 -383
- package/dist/cjs/ion-card_2.cjs.entry.js +0 -93
- package/dist/cjs/ion-checkbox_4.cjs.entry.js +0 -370
- package/dist/cjs/ion-col_3.cjs.entry.js +0 -155
- package/dist/cjs/ion-icon_2.cjs.entry.js +0 -397
- package/dist/cjs/ion-input_2.cjs.entry.js +0 -316
- package/dist/cjs/ion-label_2.cjs.entry.js +0 -126
- package/dist/cjs/ion-range.cjs.entry.js +0 -445
- package/dist/cjs/ion-spinner.cjs.entry.js +0 -64
- package/dist/cjs/match-path-84c9f7ca.js +0 -511
- package/dist/cjs/sparkle-card_3.cjs.entry.js +0 -91
- package/dist/cjs/sparkle-course-root.cjs.entry.js +0 -145
- package/dist/cjs/sparkle-dropdown.cjs.entry.js +0 -61
- package/dist/cjs/sparkle-facilitator-header_19.cjs.entry.js +0 -2129
- package/dist/cjs/sparkle-goal-progress.cjs.entry.js +0 -19
- package/dist/cjs/sparkle-gww-item.cjs.entry.js +0 -74
- package/dist/cjs/sparkle-menu-toggle_3.cjs.entry.js +0 -236
- package/dist/cjs/sparkle-validation-error.cjs.entry.js +0 -21
- package/dist/cjs/stencil-route-link.cjs.entry.js +0 -77
- package/dist/cjs/stencil-router-redirect.cjs.entry.js +0 -32
- package/dist/cjs/student.service-7af424fe.js +0 -61
- package/dist/cjs/user.store-3d29139d.js +0 -21
- package/dist/esm/PrivateRoute-f59ba6b5.js +0 -33
- package/dist/esm/dom-utils-8e73e88b.js +0 -55
- package/dist/esm/header-mobile-collapse_2.entry.js +0 -107
- package/dist/esm/index-c92f99d4.js +0 -3067
- package/dist/esm/injectHistory-52d0c7eb.js +0 -7
- package/dist/esm/ion-avatar.entry.js +0 -21
- package/dist/esm/ion-button_3.entry.js +0 -377
- package/dist/esm/ion-card_2.entry.js +0 -88
- package/dist/esm/ion-checkbox_4.entry.js +0 -363
- package/dist/esm/ion-col_3.entry.js +0 -149
- package/dist/esm/ion-icon_2.entry.js +0 -392
- package/dist/esm/ion-input_2.entry.js +0 -311
- package/dist/esm/ion-label_2.entry.js +0 -121
- package/dist/esm/ion-range.entry.js +0 -441
- package/dist/esm/ion-spinner.entry.js +0 -60
- package/dist/esm/match-path-36fdf5c7.js +0 -499
- package/dist/esm/sparkle-card_3.entry.js +0 -85
- package/dist/esm/sparkle-course-root.entry.js +0 -141
- package/dist/esm/sparkle-dropdown.entry.js +0 -57
- package/dist/esm/sparkle-facilitator-header_19.entry.js +0 -2107
- package/dist/esm/sparkle-goal-progress.entry.js +0 -15
- package/dist/esm/sparkle-gww-item.entry.js +0 -70
- package/dist/esm/sparkle-menu-toggle_3.entry.js +0 -230
- package/dist/esm/sparkle-validation-error.entry.js +0 -17
- package/dist/esm/stencil-route-link.entry.js +0 -73
- package/dist/esm/stencil-router-redirect.entry.js +0 -28
- package/dist/esm/user.store-e6ff7558.js +0 -19
- package/dist/sparkle-core/p-021fde3c.entry.js +0 -1
- package/dist/sparkle-core/p-034306e2.js +0 -1
- package/dist/sparkle-core/p-034aa29f.entry.js +0 -5
- package/dist/sparkle-core/p-052caa63.js +0 -1
- package/dist/sparkle-core/p-0580419b.entry.js +0 -1
- package/dist/sparkle-core/p-063cd168.js +0 -4
- package/dist/sparkle-core/p-06c0cce3.entry.js +0 -1
- package/dist/sparkle-core/p-081968cc.entry.js +0 -1
- package/dist/sparkle-core/p-0934f5dd.entry.js +0 -1
- package/dist/sparkle-core/p-1133fcbd.js +0 -4
- package/dist/sparkle-core/p-1551190a.entry.js +0 -1
- package/dist/sparkle-core/p-1728ead7.js +0 -1
- package/dist/sparkle-core/p-1e8c22e0.entry.js +0 -1
- package/dist/sparkle-core/p-21bf4ca0.entry.js +0 -1
- package/dist/sparkle-core/p-232cc3bc.js +0 -1
- package/dist/sparkle-core/p-28950db0.entry.js +0 -1
- package/dist/sparkle-core/p-2af82cc1.entry.js +0 -1
- package/dist/sparkle-core/p-2bd4c60e.js +0 -1
- package/dist/sparkle-core/p-2f437793.entry.js +0 -348
- package/dist/sparkle-core/p-330ccc7c.entry.js +0 -1
- package/dist/sparkle-core/p-35a7bd6c.entry.js +0 -1
- package/dist/sparkle-core/p-35c5c110.entry.js +0 -1
- package/dist/sparkle-core/p-3ff617d5.js +0 -1
- package/dist/sparkle-core/p-4028676b.js +0 -4
- package/dist/sparkle-core/p-41124baa.js +0 -4
- package/dist/sparkle-core/p-41af3793.entry.js +0 -1
- package/dist/sparkle-core/p-44c23f72.js +0 -1
- package/dist/sparkle-core/p-45e6db62.entry.js +0 -1
- package/dist/sparkle-core/p-48f9b960.entry.js +0 -1
- package/dist/sparkle-core/p-4a72626a.js +0 -1
- package/dist/sparkle-core/p-4ba57978.entry.js +0 -4
- package/dist/sparkle-core/p-4ef4b8bd.entry.js +0 -5
- package/dist/sparkle-core/p-4f144efa.js +0 -4
- package/dist/sparkle-core/p-58e98f89.entry.js +0 -1
- package/dist/sparkle-core/p-59f7bf6e.entry.js +0 -1
- package/dist/sparkle-core/p-5ec7fd67.entry.js +0 -1
- package/dist/sparkle-core/p-618f6f82.entry.js +0 -1
- package/dist/sparkle-core/p-62a6c96f.entry.js +0 -1
- package/dist/sparkle-core/p-65ca1fb2.entry.js +0 -1
- package/dist/sparkle-core/p-663fafa9.entry.js +0 -1
- package/dist/sparkle-core/p-67f71099.entry.js +0 -4
- package/dist/sparkle-core/p-680663a2.entry.js +0 -1
- package/dist/sparkle-core/p-6a16b9ef.entry.js +0 -4
- package/dist/sparkle-core/p-6b6a8f0a.entry.js +0 -1
- package/dist/sparkle-core/p-6c5b5ea2.entry.js +0 -1
- package/dist/sparkle-core/p-6ebf52fb.entry.js +0 -1
- package/dist/sparkle-core/p-6f45db93.js +0 -1
- package/dist/sparkle-core/p-6fd4985d.js +0 -4
- package/dist/sparkle-core/p-7052c43a.entry.js +0 -1
- package/dist/sparkle-core/p-70b2452c.js +0 -4
- package/dist/sparkle-core/p-74106ca8.entry.js +0 -1
- package/dist/sparkle-core/p-75572037.js +0 -1
- package/dist/sparkle-core/p-7568dcab.entry.js +0 -1
- package/dist/sparkle-core/p-768bcc9e.entry.js +0 -1
- package/dist/sparkle-core/p-7703bae9.entry.js +0 -1
- package/dist/sparkle-core/p-77c23496.entry.js +0 -1
- package/dist/sparkle-core/p-79606a41.entry.js +0 -1
- package/dist/sparkle-core/p-7976e88c.entry.js +0 -1
- package/dist/sparkle-core/p-7c1f59ec.js +0 -1
- package/dist/sparkle-core/p-7de0a22b.entry.js +0 -1
- package/dist/sparkle-core/p-848fe770.entry.js +0 -1
- package/dist/sparkle-core/p-86d099f1.js +0 -4
- package/dist/sparkle-core/p-87549bb7.js +0 -4
- package/dist/sparkle-core/p-8c470e28.entry.js +0 -1
- package/dist/sparkle-core/p-954c89c2.entry.js +0 -1
- package/dist/sparkle-core/p-95d01c4c.js +0 -4
- package/dist/sparkle-core/p-987c64eb.js +0 -1
- package/dist/sparkle-core/p-9babd345.js +0 -1
- package/dist/sparkle-core/p-a89dea80.entry.js +0 -1
- package/dist/sparkle-core/p-b17dd6df.js +0 -4
- package/dist/sparkle-core/p-b3e6427d.js +0 -7
- package/dist/sparkle-core/p-b7dafaae.entry.js +0 -1
- package/dist/sparkle-core/p-bd062288.entry.js +0 -1
- package/dist/sparkle-core/p-bef34cfe.entry.js +0 -1
- package/dist/sparkle-core/p-c1c59771.js +0 -1
- package/dist/sparkle-core/p-c4104929.entry.js +0 -1
- package/dist/sparkle-core/p-c48bbc7c.entry.js +0 -4
- package/dist/sparkle-core/p-c753207f.entry.js +0 -1
- package/dist/sparkle-core/p-c8ed0575.js +0 -1
- package/dist/sparkle-core/p-c96b24bd.entry.js +0 -4
- package/dist/sparkle-core/p-ce13171b.entry.js +0 -1
- package/dist/sparkle-core/p-d394eed1.entry.js +0 -1
- package/dist/sparkle-core/p-d48e95c1.entry.js +0 -1
- package/dist/sparkle-core/p-d4b1a14a.entry.js +0 -1
- package/dist/sparkle-core/p-d56efeac.entry.js +0 -4
- package/dist/sparkle-core/p-d59a5984.entry.js +0 -1
- package/dist/sparkle-core/p-d8aff730.entry.js +0 -1
- package/dist/sparkle-core/p-da8921d0.entry.js +0 -1
- package/dist/sparkle-core/p-e08059b6.js +0 -4
- package/dist/sparkle-core/p-e3fdd0a8.entry.js +0 -1
- package/dist/sparkle-core/p-ec4d22e3.entry.js +0 -1
- package/dist/sparkle-core/p-ed3eed72.entry.js +0 -1
- package/dist/sparkle-core/p-ee0717e1.entry.js +0 -4
- package/dist/sparkle-core/p-ef2dace6.js +0 -4
- package/dist/sparkle-core/p-f1106984.entry.js +0 -1
- package/dist/sparkle-core/p-f61ca75c.entry.js +0 -1
- package/dist/sparkle-core/p-f9b73032.entry.js +0 -1
- package/dist/sparkle-core/p-fef04ab5.js +0 -4
@@ -0,0 +1,352 @@
|
|
1
|
+
import{c as A,r as t,h as i,e,H as n,i as r,f as o,j as s,w as a,F as l,k as c}from"./p-ee1e0eb4.js";import{M as h,O as u,D as d,a as g,B as f,F as p}from"./p-e8073714.js";import{g as w,c as B}from"./p-871106e0.js";import{h as m,i as b,b as v,d as Q,e as C,j as F,k as U,l as y,a as k,r as x,m as L}from"./p-d68092b7.js";import{o as E,c as H,h as I}from"./p-0e4de1d0.js";import{c as N}from"./p-4c6a7e52.js";import{p as S,a as D}from"./p-a208ab2d.js";import{f as M,d as K,r as O}from"./p-bd80ff43.js";import{i as T}from"./p-506221fe.js";import{S as P}from"./p-f3cba72a.js";import{A as j}from"./p-99ee9919.js";import{i as q,A as R,P as G,s as V}from"./p-462bffba.js";import{A as z}from"./p-9a443f51.js";import{A as J,c as X,g as _,b as Y,d as W,T as Z}from"./p-2f569553.js";import{u as $,S as AA}from"./p-5efc6566.js";import{E as tA}from"./p-b226f54d.js";import{s as iA,S as eA,d as nA,M as rA,a as oA,b as sA,c as aA}from"./p-935e7cfc.js";import{F as lA,f as cA}from"./p-fbccd30c.js";import{m as hA}from"./p-2033cd86.js";import{m as uA,a as dA}from"./p-2ff67662.js";import{H as gA}from"./p-1d4c7c11.js";import{A as fA,g as pA,F as wA,f as BA}from"./p-600cf6a3.js";import"./p-5d409601.js";import"./p-add30d46.js";import"./p-48f72e63.js";let mA;const bA=(A,t,i,e,n)=>(i="ios"===(i&&FA(i))?"ios":"md",e&&"ios"===i?A=FA(e):n&&"md"===i?A=FA(n):(A||!t||QA(t)||(A=t),CA(A)&&(A=FA(A))),CA(A)&&""!==A.trim()?""!==A.replace(/[a-z]|-|\d/gi,"")?null:A:null),vA=A=>CA(A)&&(A=A.trim(),QA(A))?A:null,QA=A=>A.length>0&&/(\/|\.)/.test(A),CA=A=>"string"==typeof A,FA=A=>A.toLowerCase(),UA=class{constructor(A){t(this,A),this.darkMode=!0,this.mobileDropdownActive=!1,this.stuck=!1,this.queued=!1}deactivate(){setTimeout((()=>{this.el.classList.remove("ionic-sub-header--mobile-active")}),200)}getTriggerEl(){const A=document.createElement("div");return A.id="ionic-sub-header__trigger",A}componentDidLoad(){this.el.before&&(this.el.before(this.getTriggerEl()),this.init(),requestAnimationFrame((()=>{this.el.classList.add("ionic-sub-header--initialized")})))}init(){this.observer=new IntersectionObserver((A=>{this.queued||(this.stuck||0!==A[0].intersectionRatio?this.stuck&&1===A[0].intersectionRatio&&(this.queued=!0,requestAnimationFrame((()=>{this.el.classList.remove("ionic-sub-header--stuck"),this.stuck=!1,this.queued=!1}))):(this.queued=!0,requestAnimationFrame((()=>{this.el.classList.add("ionic-sub-header--stuck"),this.stuck=!0,this.queued=!1}))))}),{threshold:[0,1]});const A=document.getElementById("ionic-sub-header__trigger");this.el&&A&&(this.observer.observe(A),setTimeout((()=>{this.el.classList.add("ionic-sub-header--initialized");const A=document.querySelector(".navbar-default");A&&A.classList.add("navbar--not-fixed")}),405))}handleMobileToggleClick(){this.el.classList.toggle("ionic-sub-header--mobile-active")}render(){return[i("div",{class:"header-mobile-collapse__backdrop",onClick:()=>this.deactivate()}),i("a",{class:"ionic-sub-header__mobile-toggle",onClick:()=>this.handleMobileToggleClick()},i(h,null)),i("div",{class:"header-mobile-collapse__content"},i("slot",null))]}get el(){return e(this)}};UA.style="header-mobile-collapse,header-mobile-collapse .header-mobile-collapse__content{flex:1;display:flex;justify-content:flex-end;align-items:center}header-mobile-collapse .ionic-sub-header__mobile-toggle{display:none;padding-top:14px;pointer-events:none;padding-left:8px}header-mobile-collapse .ionic-sub-header__mobile-toggle svg{height:20px;width:20px}header-mobile-collapse .UtilNav{margin-left:auto}header-mobile-collapse>ionic-search{padding-right:8px;padding-top:4px;display:none}header-mobile-collapse .label-sm-only .Dropdown-button-label,header-mobile-collapse .sm-only{display:none}@media (max-width: 800px){header-mobile-collapse .ionic-sub-header__mobile-toggle{display:block;cursor:pointer;padding-top:14px;pointer-events:all;transition:0.2s transform ease 0.1s;transform-origin:66% 50%}header-mobile-collapse .header-mobile-collapse__backdrop{position:fixed;top:100%;height:100vh;left:0;right:0;background:rgba(0, 0, 0, 0.1);cursor:pointer;opacity:0;pointer-events:none;transition:0.4s opacity}header-mobile-collapse.ionic-sub-header--mobile-active .header-mobile-collapse__backdrop{opacity:1;pointer-events:all}header-mobile-collapse>ionic-search{display:block}header-mobile-collapse .header-mobile-collapse__content{display:flex;flex-direction:column;align-items:stretch;position:fixed;width:100vw;left:0;background:white;box-shadow:0px 1px 3px rgba(2, 8, 20, 0.06), 0px 1px 2px rgba(2, 8, 20, 0.04);top:56px;padding:16px 16px 8px;max-height:calc(100vh - 64px);overflow:auto;pointer-events:none;opacity:0;transform:translateY(-10px);transition:transform 0.2s cubic-bezier(0.36, 0.66, 0.04, 1), opacity 0.2s linear}header-mobile-collapse.ionic-sub-header--mobile-active .header-mobile-collapse__content{opacity:1;pointer-events:all;transform:translateY(0);transition:transform 0.25s cubic-bezier(0.17, 0.67, 0.52, 1), opacity 0.1s linear}header-mobile-collapse .sparkle-dropdown,header-mobile-collapse .SectionNav .Dropdown{align-self:stretch}header-mobile-collapse .Dropdown .Dropdown-button,header-mobile-collapse .UtilNav .sm-only{width:100%;display:flex;justify-content:space-between;color:#5b708b;font-size:20px;line-height:24px;letter-spacing:-0.03em;padding:13px 0 14px}header-mobile-collapse .Dropdown--left .Dropdown-button{padding-left:16px;padding-right:14px;margin-bottom:10px;padding-top:10px;height:44px;box-shadow:0px 1px 2px rgba(2, 8, 20, 0.04)}header-mobile-collapse .Dropdown .Dropdown-button .Dropdown-arrow{height:26px;width:20px;margin-right:-4px}header-mobile-collapse .SectionNav .Dropdown,header-mobile-collapse .SectionNav-tabs>*{margin-right:0}header-mobile-collapse .Dropdown:focus{outline:none}header-mobile-collapse .SectionNav-tabs stencil-route-link{height:45px}header-mobile-collapse .Dropdown--right .Dropdown-button{text-align:left}header-mobile-collapse .SectionNav stencil-route,header-mobile-collapse .SectionNav-tabs,header-mobile-collapse .UtilNav{display:flex;flex-direction:column;margin-left:0;align-items:stretch}header-mobile-collapse .UtilNav>*{margin-left:0;border-bottom:1px solid #e6e6e8}header-mobile-collapse .UtilNav>:last-child{border-bottom:none}header-mobile-collapse .Dropdown-panel{position:static;border-bottom:1px solid var(--text-color--lighter)}header-mobile-collapse .SectionNav-tabs a{font-size:20px;line-height:24px;letter-spacing:-0.02em;color:#5b708b;padding-left:16px;padding-right:14px;font-weight:400}header-mobile-collapse .UtilNav a{padding:0}header-mobile-collapse .SectionNav-tabs .link-active{background:rgba(var(--ion-color-primary-rgb), 0.12);color:var(--ion-color-primary);display:flex;justify-content:space-between;width:100%;border-radius:8px}header-mobile-collapse .SectionNav-tabs .link-active::after{content:'\\2713';position:static;background:none;width:auto;font-size:16px}header-mobile-collapse .SectionNav-tabs{position:relative;padding-bottom:8px;margin-bottom:18px;margin-top:5px}header-mobile-collapse .SectionNav-tabs::after{position:absolute;bottom:0;left:-16px;width:100vw;border-bottom:1px solid #e6e6e8;content:''}header-mobile-collapse .header-mobile-collapse__content ionic-search{display:none}header-mobile-collapse .UtilNav::before{content:'More';font-size:20px;line-height:24px;letter-spacing:0.01em;color:#000;padding:6px 2px 8px}header-mobile-collapse .label-sm-only .Dropdown-button-label,header-mobile-collapse .sm-only{display:block}header-mobile-collapse .label-sm-only .Dropdown-icon,header-mobile-collapse .lg-only{display:none}header-mobile-collapse .label-sm-only .Dropdown-icon+.Dropdown-arrow{fill:#5b708b}header-mobile-collapse .UtilNav .sm-only .Dropdown-arrow{height:26px;width:20px;margin-right:-4px;fill:#b2becd}header-mobile-collapse .Dropdown-panel a{padding:8px;font-size:16px}header-mobile-collapse .Dropdown.is-open .Dropdown-panel{position:static}}";const yA=class{constructor(A){t(this,A)}render(){return i(n,{class:w(this)},i("slot",null))}};yA.style={ios:":host{border-radius:var(--border-radius);display:block}::slotted(ion-img),::slotted(img){border-radius:var(--border-radius);width:100%;height:100%;object-fit:cover;overflow:hidden}:host{--border-radius:50%;width:48px;height:48px}",md:":host{border-radius:var(--border-radius);display:block}::slotted(ion-img),::slotted(img){border-radius:var(--border-radius);width:100%;height:100%;object-fit:cover;overflow:hidden}:host{--border-radius:50%;width:64px;height:64px}"};const kA=class{constructor(A){t(this,A),this.ionFocus=r(this,"ionFocus",7),this.ionBlur=r(this,"ionBlur",7),this.inItem=!1,this.inListHeader=!1,this.inToolbar=!1,this.inheritedAttributes={},this.buttonType="button",this.disabled=!1,this.routerDirection="forward",this.strong=!1,this.type="button",this.handleClick=A=>{if("button"===this.type)E(this.href,A,this.routerDirection,this.routerAnimation);else if(m(this.el)){const t=this.el.closest("form");if(t){A.preventDefault();const i=document.createElement("button");i.type=this.type,i.style.display="none",t.appendChild(i),i.click(),i.remove()}}},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}componentWillLoad(){this.inToolbar=!!this.el.closest("ion-buttons"),this.inListHeader=!!this.el.closest("ion-list-header"),this.inItem=!!this.el.closest("ion-item")||!!this.el.closest("ion-item-divider"),this.inheritedAttributes=b(this.el)}get hasIconOnly(){return!!this.el.querySelector('[slot="icon-only"]')}get rippleType(){return(void 0===this.fill||"clear"===this.fill)&&this.hasIconOnly&&this.inToolbar?"unbounded":"bounded"}render(){const A=w(this),{buttonType:t,type:e,disabled:r,rel:o,target:s,size:a,href:l,color:c,expand:h,hasIconOnly:u,shape:d,strong:g,inheritedAttributes:f}=this,p=void 0===a&&this.inItem?"small":a,B=void 0===l?"button":"a",m="button"===B?{type:e}:{download:this.download,href:l,rel:o,target:s};let b=this.fill;return void 0===b&&(b=this.inToolbar||this.inListHeader?"clear":"solid"),i(n,{onClick:this.handleClick,"aria-disabled":r?"true":null,class:H(c,{[A]:!0,[t]:!0,[`${t}-${h}`]:void 0!==h,[`${t}-${p}`]:void 0!==p,[`${t}-${d}`]:void 0!==d,[`${t}-${b}`]:!0,[`${t}-strong`]:g,"in-toolbar":I("ion-toolbar",this.el),"in-toolbar-color":I("ion-toolbar[color]",this.el),"button-has-icon-only":u,"button-disabled":r,"ion-activatable":!0,"ion-focusable":!0})},i(B,Object.assign({},m,{class:"button-native",part:"native",disabled:r,onFocus:this.onFocus,onBlur:this.onBlur},f),i("span",{class:"button-inner"},i("slot",{name:"icon-only"}),i("slot",{name:"start"}),i("slot",null),i("slot",{name:"end"})),"md"===A&&i("ion-ripple-effect",{type:this.rippleType})))}get el(){return e(this)}};kA.style={ios:':host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #3880ff);--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;display:block;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;display:block;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;box-sizing:border-box;appearance:none}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-native::-moz-focus-inner{border:0}.button-inner{display:flex;position:relative;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted(ion-icon){font-size:1.4em;pointer-events:none}::slotted(ion-icon[slot=start]){margin-left:-0.3em;margin-right:0.3em;margin-top:0;margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}::slotted(ion-icon[slot=end]){margin-left:0.3em;margin-right:-0.2em;margin-top:0;margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em}}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host{--border-radius:10px;--padding-top:0;--padding-bottom:0;--padding-start:1em;--padding-end:1em;--transition:background-color, opacity 100ms linear;margin-left:2px;margin-right:2px;margin-top:4px;margin-bottom:4px;height:2.8em;font-size:16px;font-weight:500;letter-spacing:-0.03em}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px}}:host(.button-solid){--background-activated:var(--ion-color-primary-shade, #3171e0);--background-focused:var(--ion-color-primary-shade, #3171e0);--background-hover:var(--ion-color-primary-tint, #4c8dff);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1}:host(.button-outline){--border-radius:10px;--border-width:1px;--border-style:solid;--background-activated:var(--ion-color-primary, #3880ff);--background-focused:var(--ion-color-primary, #3880ff);--background-hover:transparent;--background-focused-opacity:.1;--color-activated:var(--ion-color-primary-contrast, #fff)}:host(.button-clear){--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:transparent;--background-focused-opacity:.1;font-size:17px;font-weight:normal;letter-spacing:0}:host(.button-large){--border-radius:12px;--padding-top:0;--padding-start:1em;--padding-end:1em;--padding-bottom:0;height:2.8em;font-size:20px}:host(.button-small){--border-radius:6px;--padding-top:0;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:0;height:2.1em;font-size:13px}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-strong){font-weight:600}:host(.button-clear.ion-activated){opacity:0.4}:host(.button-outline.ion-activated.ion-color) .button-native{color:var(--ion-color-contrast)}:host(.button-outline.ion-activated.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}:host(.button-outline.ion-focused.ion-color) .button-native,:host(.button-clear.ion-focused.ion-color) .button-native{color:var(--ion-color-base)}:host(.button-outline.ion-focused.ion-color) .button-native::after,:host(.button-clear.ion-focused.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.button-clear:hover),:host(.button-outline:hover){opacity:0.6}:host(.button-clear.ion-color:hover) .button-native,:host(.button-outline.ion-color:hover) .button-native{color:var(--ion-color-base)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:transparent}:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}:host(:hover.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native::after{background:#fff;opacity:0.1}}',md:':host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #3880ff);--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;display:block;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;display:block;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;box-sizing:border-box;appearance:none}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-native::-moz-focus-inner{border:0}.button-inner{display:flex;position:relative;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted(ion-icon){font-size:1.4em;pointer-events:none}::slotted(ion-icon[slot=start]){margin-left:-0.3em;margin-right:0.3em;margin-top:0;margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}::slotted(ion-icon[slot=end]){margin-left:0.3em;margin-right:-0.2em;margin-top:0;margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em}}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host{--border-radius:4px;--padding-top:0;--padding-bottom:0;--padding-start:1.1em;--padding-end:1.1em;--transition:box-shadow 280ms cubic-bezier(.4, 0, .2, 1),\n background-color 15ms linear,\n color 15ms linear;margin-left:2px;margin-right:2px;margin-top:4px;margin-bottom:4px;height:36px;font-size:14px;font-weight:500;letter-spacing:0.06em;text-transform:uppercase}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px}}:host(.button-solid){--background-activated:transparent;--background-hover:var(--ion-color-primary-contrast, #fff);--background-focused:var(--ion-color-primary-contrast, #fff);--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}:host(.button-solid.ion-activated){--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12)}:host(.button-outline){--border-width:2px;--border-style:solid;--box-shadow:none;--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:var(--ion-color-primary, #3880ff);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-outline.ion-activated.ion-color) .button-native{background:transparent}:host(.button-clear){--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:var(--ion-color-primary, #3880ff);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-large){--padding-top:0;--padding-start:1em;--padding-end:1em;--padding-bottom:0;height:2.8em;font-size:20px}:host(.button-small){--padding-top:0;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:0;height:2.1em;font-size:13px}:host(.button-strong){font-weight:bold}::slotted(ion-icon[slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color.ion-focused) .button-native::after,:host(.button-outline.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}'};const xA=class{constructor(A){t(this,A),this.button=!1,this.type="button",this.disabled=!1,this.routerDirection="forward"}isClickable(){return void 0!==this.href||this.button}renderCard(A){const t=this.isClickable();if(!t)return[i("slot",null)];const{href:e,routerAnimation:n,routerDirection:r}=this,o=t?void 0===e?"button":"a":"div";return i(o,Object.assign({},"button"===o?{type:this.type}:{download:this.download,href:this.href,rel:this.rel,target:this.target},{class:"card-native",part:"native",disabled:this.disabled,onClick:A=>E(e,A,r,n)}),i("slot",null),t&&"md"===A&&i("ion-ripple-effect",null))}render(){const A=w(this);return i(n,{class:H(this.color,{[A]:!0,"card-disabled":this.disabled,"ion-activatable":this.isClickable()})},this.renderCard(A))}};xA.style={ios:":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-600, #666666)));margin-left:16px;margin-right:16px;margin-top:24px;margin-bottom:24px;border-radius:8px;transform:translateZ(0);transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);font-size:14px;box-shadow:0 4px 16px rgba(0, 0, 0, 0.12)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px}}:host(.ion-activated){transform:scale3d(0.97, 0.97, 1)}",md:":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-550, #737373)));margin-left:10px;margin-right:10px;margin-top:10px;margin-bottom:10px;border-radius:4px;font-size:14px;box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px}}"};const LA=class{constructor(A){t(this,A)}render(){const A=w(this);return i(n,{class:{[A]:!0,[`card-content-${A}`]:!0}})}};LA.style={ios:"ion-card-content{display:block;position:relative}.card-content-ios{padding-left:20px;padding-right:20px;padding-top:20px;padding-bottom:20px;font-size:16px;line-height:1.4}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.card-content-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px}}.card-content-ios h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.card-content-ios h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.card-content-ios h3,.card-content-ios h4,.card-content-ios h5,.card-content-ios h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal}.card-content-ios p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px}ion-card-header+.card-content-ios{padding-top:0}",md:"ion-card-content{display:block;position:relative}.card-content-md{padding-left:16px;padding-right:16px;padding-top:13px;padding-bottom:13px;font-size:14px;line-height:1.5}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.card-content-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.card-content-md h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.card-content-md h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.card-content-md h3,.card-content-md h4,.card-content-md h5,.card-content-md h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal}.card-content-md p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;font-weight:normal;line-height:1.5}ion-card-header+.card-content-md{padding-top:0}"};const EA=class{constructor(A){t(this,A),this.ionChange=r(this,"ionChange",7),this.ionFocus=r(this,"ionFocus",7),this.ionBlur=r(this,"ionBlur",7),this.ionStyle=r(this,"ionStyle",7),this.inputId="ion-cb-"+HA++,this.name=this.inputId,this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.value="on",this.onClick=A=>{A.preventDefault(),this.setFocus(),this.checked=!this.checked,this.indeterminate=!1},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}componentWillLoad(){this.emitStyle()}checkedChanged(A){this.ionChange.emit({checked:A,value:this.value}),this.emitStyle()}disabledChanged(){this.emitStyle()}emitStyle(){this.ionStyle.emit({"checkbox-checked":this.checked,"interactive-disabled":this.disabled})}setFocus(){this.focusEl&&this.focusEl.focus()}render(){const{color:A,checked:t,disabled:e,el:r,indeterminate:o,inputId:s,name:a,value:l}=this,c=w(this),{label:h,labelId:u,labelText:d}=v(r,s);Q(!0,r,a,t?l:"",e);let g=i("path",o?{d:"M6 12L18 12",part:"mark"}:{d:"M5.9,12.5l3.8,3.8l8.8-8.8",part:"mark"});return"md"===c&&(g=i("path",o?{d:"M2 12H22",part:"mark"}:{d:"M1.73,12.91 8.1,19.28 22.79,4.59",part:"mark"})),i(n,{onClick:this.onClick,"aria-labelledby":h?u:null,"aria-checked":`${t}`,"aria-hidden":e?"true":null,role:"checkbox",class:H(A,{[c]:!0,"in-item":I("ion-item",r),"checkbox-checked":t,"checkbox-disabled":e,"checkbox-indeterminate":o,interactive:!0})},i("svg",{class:"checkbox-icon",viewBox:"0 0 24 24",part:"container"},g),i("label",{htmlFor:s},d),i("input",{type:"checkbox","aria-checked":`${t}`,disabled:e,id:s,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:A=>this.focusEl=A}))}get el(){return e(this)}static get watchers(){return{checked:["checkedChanged"],disabled:["disabledChanged"]}}};let HA=0;EA.style={ios:":host{--background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;user-select:none;z-index:2}:host(.ion-color){--background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.checkbox-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);box-sizing:border-box}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:50%;--border-width:1px;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.23);--background:var(--ion-item-background, var(--ion-background-color, #fff));--size:26px;width:var(--size);height:var(--size)}:host(.checkbox-disabled){opacity:0.3}:host(.in-item){margin-left:0;margin-right:8px;margin-top:10px;margin-bottom:9px;display:block;position:static}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}:host(.in-item[slot=start]){margin-left:2px;margin-right:20px;margin-top:8px;margin-bottom:8px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:20px;margin-inline-end:20px}}",md:":host{--background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;user-select:none;z-index:2}:host(.ion-color){--background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.checkbox-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);box-sizing:border-box}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:calc(var(--size) * .125);--border-width:2px;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.51);--checkmark-width:3;--background:var(--ion-item-background, var(--ion-background-color, #fff));--transition:background 180ms cubic-bezier(0.4, 0, 0.2, 1);--size:18px;width:var(--size);height:var(--size)}.checkbox-icon path{stroke-dasharray:30;stroke-dashoffset:30}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{stroke-dashoffset:0;transition:stroke-dashoffset 90ms linear 90ms}:host(.checkbox-disabled){opacity:0.3}:host(.in-item){margin-left:0;margin-right:0;margin-top:18px;margin-bottom:18px;display:block;position:static}:host(.in-item[slot=start]){margin-left:4px;margin-right:36px;margin-top:18px;margin-bottom:18px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px}}"};
|
2
|
+
/*!
|
3
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
4
|
+
*/
|
5
|
+
const IA={xs:"(min-width: 0px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"},NA=A=>void 0===A||""===A||!!window.matchMedia&&window.matchMedia(IA[A]).matches,SA="undefined"!=typeof window?window:void 0,DA=SA&&!!(SA.CSS&&SA.CSS.supports&&SA.CSS.supports("--a: 0")),MA=["","xs","sm","md","lg","xl"],KA=class{constructor(A){t(this,A)}onResize(){o(this)}getColumns(A){let t;for(const i of MA){const e=NA(i),n=this[A+i.charAt(0).toUpperCase()+i.slice(1)];e&&void 0!==n&&(t=n)}return t}calculateSize(){const A=this.getColumns("size");if(!A||""===A)return;const t="auto"===A?"auto":DA?`calc(calc(${A} / var(--ion-grid-columns, 12)) * 100%)`:A/12*100+"%";return{flex:`0 0 ${t}`,width:`${t}`,"max-width":`${t}`}}calculatePosition(A,t){const i=this.getColumns(A);if(i)return{[t]:DA?`calc(calc(${i} / var(--ion-grid-columns, 12)) * 100%)`:i>0&&i<12?i/12*100+"%":"auto"}}calculateOffset(A){return this.calculatePosition("offset",A?"margin-right":"margin-left")}calculatePull(A){return this.calculatePosition("pull",A?"left":"right")}calculatePush(A){return this.calculatePosition("push",A?"right":"left")}render(){const A="rtl"===document.dir,t=w(this);return i(n,{class:{[t]:!0},style:Object.assign(Object.assign(Object.assign(Object.assign({},this.calculateOffset(A)),this.calculatePull(A)),this.calculatePush(A)),this.calculateSize())},i("slot",null))}};KA.style=":host{padding-left:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-right:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;box-sizing:border-box;position:relative;flex-basis:0;flex-grow:1;width:100%;max-width:100%;min-height:1px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px))}}@media (min-width: 576px){:host{padding-left:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-right:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px))}}}@media (min-width: 768px){:host{padding-left:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-right:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px))}}}@media (min-width: 992px){:host{padding-left:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-right:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px))}}}@media (min-width: 1200px){:host{padding-left:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-right:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px))}}}";const OA=class{constructor(A){t(this,A),this.fixed=!1}render(){const A=w(this);return i(n,{class:{[A]:!0,"grid-fixed":this.fixed}},i("slot",null))}};OA.style=":host{padding-left:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-right:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));margin-left:auto;margin-right:auto;display:block;flex:1}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px))}}@media (min-width: 576px){:host{padding-left:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-right:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px))}}}@media (min-width: 768px){:host{padding-left:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-right:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px))}}}@media (min-width: 992px){:host{padding-left:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-right:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px))}}}@media (min-width: 1200px){:host{padding-left:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-right:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px))}}}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}:host(.grid-fixed){width:var(--ion-grid-width-xs, var(--ion-grid-width, 100%));max-width:100%}@media (min-width: 576px){:host(.grid-fixed){width:var(--ion-grid-width-sm, var(--ion-grid-width, 540px))}}@media (min-width: 768px){:host(.grid-fixed){width:var(--ion-grid-width-md, var(--ion-grid-width, 720px))}}@media (min-width: 992px){:host(.grid-fixed){width:var(--ion-grid-width-lg, var(--ion-grid-width, 960px))}}@media (min-width: 1200px){:host(.grid-fixed){width:var(--ion-grid-width-xl, var(--ion-grid-width, 1140px))}}:host(.ion-no-padding){--ion-grid-column-padding:0;--ion-grid-column-padding-xs:0;--ion-grid-column-padding-sm:0;--ion-grid-column-padding-md:0;--ion-grid-column-padding-lg:0;--ion-grid-column-padding-xl:0}";const TA=A=>{if(1===A.nodeType){if("script"===A.nodeName.toLowerCase())return!1;for(let t=0;t<A.attributes.length;t++){const i=A.attributes[t].value;if(CA(i)&&0===i.toLowerCase().indexOf("on"))return!1}for(let t=0;t<A.childNodes.length;t++)if(!TA(A.childNodes[t]))return!1}return!0},PA=new Map,jA=new Map,qA=class{constructor(A){t(this,A),this.iconName=null,this.inheritedAttributes={},this.isVisible=!1,this.mode=RA(),this.lazy=!1,this.sanitize=!0,this.hasAriaHidden=()=>{const{el:A}=this;return A.hasAttribute("aria-hidden")&&"true"===A.getAttribute("aria-hidden")}}componentWillLoad(){this.inheritedAttributes=((A,t=[])=>{const i={};return t.forEach((t=>{A.hasAttribute(t)&&(null!==A.getAttribute(t)&&(i[t]=A.getAttribute(t)),A.removeAttribute(t))})),i})(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",(()=>{this.isVisible=!0,this.loadIcon()}))}disconnectedCallback(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(A,t,i){if(this.lazy&&"undefined"!=typeof window&&window.IntersectionObserver){const e=this.io=new window.IntersectionObserver((A=>{A[0].isIntersecting&&(e.disconnect(),this.io=void 0,i())}),{rootMargin:t});e.observe(A)}else i()}loadIcon(){if(this.isVisible){const t=(t=>{let i=vA(t.src);if(i)return i;if(i=bA(t.name,t.icon,t.mode,t.ios,t.md),i)return e=i,(()=>{if("undefined"==typeof window)return new Map;if(!mA){const A=window;A.Ionicons=A.Ionicons||{},mA=A.Ionicons.map=A.Ionicons.map||new Map}return mA})().get(e)||A(`svg/${e}.svg`);var e;if(t.icon){if(i=vA(t.icon),i)return i;if(i=vA(t.icon[t.mode]),i)return i}return null})(this);t&&(PA.has(t)?this.svgContent=PA.get(t):((A,t)=>{let i=jA.get(A);if(!i){if("undefined"==typeof fetch||"undefined"==typeof document)return PA.set(A,""),Promise.resolve();i=fetch(A).then((i=>{if(i.ok)return i.text().then((i=>{i&&!1!==t&&(i=(A=>{const t=document.createElement("div");t.innerHTML=A;for(let A=t.childNodes.length-1;A>=0;A--)"svg"!==t.childNodes[A].nodeName.toLowerCase()&&t.removeChild(t.childNodes[A]);const i=t.firstElementChild;if(i&&"svg"===i.nodeName.toLowerCase()){const A=i.getAttribute("class")||"";if(i.setAttribute("class",(A+" s-ion-icon").trim()),TA(i))return t.innerHTML}return""})(i)),PA.set(A,i||"")}));PA.set(A,"")})),jA.set(A,i)}return i})(t,this.sanitize).then((()=>this.svgContent=PA.get(t))))}const t=this.iconName=bA(this.name,this.icon,this.mode,this.ios,this.md);t&&(this.ariaLabel=t.replace(/\-/g," "))}render(){const{iconName:A,ariaLabel:t,inheritedAttributes:e}=this,r=this.mode||"md",o=this.flipRtl||A&&(A.indexOf("arrow")>-1||A.indexOf("chevron")>-1)&&!1!==this.flipRtl;return i(n,Object.assign({"aria-label":void 0===t||this.hasAriaHidden()?null:t,role:"img",class:Object.assign(Object.assign({[r]:!0},GA(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":!!o&&"rtl"===this.el.ownerDocument.dir})},e),i("div",this.svgContent?{class:"icon-inner",innerHTML:this.svgContent}:{class:"icon-inner"}))}static get assetsDirs(){return["svg"]}get el(){return e(this)}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"]}}},RA=()=>"undefined"!=typeof document&&document.documentElement.getAttribute("mode")||"md",GA=A=>A?{"ion-color":!0,[`ion-color-${A}`]:!0}:null;qA.style=":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:32px;stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}:host(.flip-rtl) .icon-inner{transform:scaleX(-1)}:host(.icon-small){font-size:18px !important}:host(.icon-large){font-size:32px !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}";const VA=class{constructor(A){t(this,A),this.ionInput=r(this,"ionInput",7),this.ionChange=r(this,"ionChange",7),this.ionBlur=r(this,"ionBlur",7),this.ionFocus=r(this,"ionFocus",7),this.ionStyle=r(this,"ionStyle",7),this.inputId="ion-input-"+zA++,this.didBlurAfterEdit=!1,this.inheritedAttributes={},this.isComposing=!1,this.fireFocusEvents=!0,this.hasFocus=!1,this.autocapitalize="off",this.autocomplete="off",this.autocorrect="off",this.autofocus=!1,this.clearInput=!1,this.debounce=0,this.disabled=!1,this.name=this.inputId,this.readonly=!1,this.required=!1,this.spellcheck=!1,this.type="text",this.value="",this.onInput=A=>{const t=A.target;t&&(this.value=t.value||""),this.ionInput.emit(A)},this.onBlur=A=>{this.hasFocus=!1,this.focusChanged(),this.emitStyle(),this.fireFocusEvents&&this.ionBlur.emit(A)},this.onFocus=A=>{this.hasFocus=!0,this.focusChanged(),this.emitStyle(),this.fireFocusEvents&&this.ionFocus.emit(A)},this.onKeydown=A=>{this.shouldClearOnEdit()&&(this.didBlurAfterEdit&&this.hasValue()&&"Enter"!==A.key&&this.clearTextInput(),this.didBlurAfterEdit=!1)},this.onCompositionStart=()=>{this.isComposing=!0},this.onCompositionEnd=()=>{this.isComposing=!1},this.clearTextOnEnter=A=>{"Enter"===A.key&&this.clearTextInput(A)},this.clearTextInput=A=>{this.clearInput&&!this.readonly&&!this.disabled&&A&&(A.preventDefault(),A.stopPropagation(),this.setFocus()),this.value="",this.nativeInput&&(this.nativeInput.value="")}}debounceChanged(){this.ionChange=C(this.ionChange,this.debounce)}disabledChanged(){this.emitStyle()}placeholderChanged(){this.emitStyle()}valueChanged(){const A=this.nativeInput,t=this.getValue();A&&A.value!==t&&!this.isComposing&&(A.value=t),this.emitStyle(),this.ionChange.emit({value:null==this.value?this.value:this.value.toString()})}componentWillLoad(){this.inheritedAttributes=Object.assign(Object.assign({},b(this.el)),F(this.el,["tabindex","title"]))}connectedCallback(){this.emitStyle(),this.debounceChanged(),document.dispatchEvent(new CustomEvent("ionInputDidLoad",{detail:this.el}))}componentDidLoad(){const A=this.nativeInput;A&&(A.addEventListener("compositionstart",this.onCompositionStart),A.addEventListener("compositionend",this.onCompositionEnd))}disconnectedCallback(){document.dispatchEvent(new CustomEvent("ionInputDidUnload",{detail:this.el}));const A=this.nativeInput;A&&(A.removeEventListener("compositionstart",this.onCompositionStart),A.removeEventListener("compositionEnd",this.onCompositionEnd))}async setFocus(){this.nativeInput&&this.nativeInput.focus()}async setBlur(){this.nativeInput&&this.nativeInput.blur()}getInputElement(){return Promise.resolve(this.nativeInput)}shouldClearOnEdit(){const{type:A,clearOnEdit:t}=this;return void 0===t?"password"===A:t}getValue(){return"number"==typeof this.value?this.value.toString():(this.value||"").toString()}emitStyle(){this.ionStyle.emit({interactive:!0,input:!0,"has-placeholder":void 0!==this.placeholder,"has-value":this.hasValue(),"has-focus":this.hasFocus,"interactive-disabled":this.disabled})}focusChanged(){!this.hasFocus&&this.shouldClearOnEdit()&&this.hasValue()&&(this.didBlurAfterEdit=!0)}hasValue(){return this.getValue().length>0}render(){const A=w(this),t=this.getValue(),e=this.inputId+"-lbl",r=U(this.el);return r&&(r.id=e),i(n,{"aria-disabled":this.disabled?"true":null,class:H(this.color,{[A]:!0,"has-value":this.hasValue(),"has-focus":this.hasFocus})},i("input",Object.assign({class:"native-input",ref:A=>this.nativeInput=A,"aria-labelledby":r?e:null,disabled:this.disabled,accept:this.accept,autoCapitalize:this.autocapitalize,autoComplete:this.autocomplete,autoCorrect:this.autocorrect,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,min:this.min,max:this.max,minLength:this.minlength,maxLength:this.maxlength,multiple:this.multiple,name:this.name,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,spellcheck:this.spellcheck,step:this.step,size:this.size,type:this.type,value:t,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeydown},this.inheritedAttributes)),this.clearInput&&!this.readonly&&!this.disabled&&i("button",{"aria-label":"reset",type:"button",class:"input-clear-icon",onPointerDown:this.clearTextInput,onKeyDown:this.clearTextOnEnter}))}get el(){return e(this)}static get watchers(){return{debounce:["debounceChanged"],disabled:["disabledChanged"],placeholder:["placeholderChanged"],value:["valueChanged"]}}};let zA=0;VA.style={ios:".sc-ion-input-ios-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:.5;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--background:transparent;--color:initial;display:flex;position:relative;flex:1;align-items:center;width:100%;padding:0 !important;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2}ion-item.sc-ion-input-ios-h:not(.item-label),ion-item:not(.item-label) .sc-ion-input-ios-h{--padding-start:0}.ion-color.sc-ion-input-ios-h{color:var(--ion-color-base)}.native-input.sc-ion-input-ios{border-radius:var(--border-radius);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:inline-block;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;box-sizing:border-box;appearance:none}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.native-input.sc-ion-input-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.native-input.sc-ion-input-ios::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios:-webkit-autofill{background-color:transparent}.native-input.sc-ion-input-ios:invalid{box-shadow:none}.native-input.sc-ion-input-ios::-ms-clear{display:none}.native-input[disabled].sc-ion-input-ios{opacity:0.4}.cloned-input.sc-ion-input-ios{left:0;top:0;position:absolute;pointer-events:none}[dir=rtl].sc-ion-input-ios .cloned-input.sc-ion-input-ios,[dir=rtl].sc-ion-input-ios-h .cloned-input.sc-ion-input-ios,[dir=rtl] .sc-ion-input-ios-h .cloned-input.sc-ion-input-ios{left:unset;right:unset;right:0}.input-clear-icon.sc-ion-input-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;background-position:center;border:0;outline:none;background-color:transparent;background-repeat:no-repeat;visibility:hidden;appearance:none}.input-clear-icon.sc-ion-input-ios:focus{opacity:0.5}.has-value.sc-ion-input-ios-h .input-clear-icon.sc-ion-input-ios{visibility:visible}.has-focus.sc-ion-input-ios-h{pointer-events:none}.has-focus.sc-ion-input-ios-h input.sc-ion-input-ios,.has-focus.sc-ion-input-ios-h a.sc-ion-input-ios,.has-focus.sc-ion-input-ios-h button.sc-ion-input-ios{pointer-events:auto}.item-label-floating.item-has-placeholder.sc-ion-input-ios-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-input-ios-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-input-ios-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-input-ios-h{transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.sc-ion-input-ios-h{--padding-top:10px;--padding-end:10px;--padding-bottom:10px;--padding-start:0;font-size:inherit}.item-label-stacked.sc-ion-input-ios-h,.item-label-stacked .sc-ion-input-ios-h,.item-label-floating.sc-ion-input-ios-h,.item-label-floating .sc-ion-input-ios-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0px}.input-clear-icon.sc-ion-input-ios{background-image:url(\"data:image/svg+xml;charset=utf-8,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'><path%20fill='var(--ion-color-step-600,%20%23666666)'%20d='M403.1,108.9c-81.2-81.2-212.9-81.2-294.2,0s-81.2,212.9,0,294.2c81.2,81.2,212.9,81.2,294.2,0S484.3,190.1,403.1,108.9z%20M352,340.2L340.2,352l-84.4-84.2l-84,83.8L160,339.8l84-83.8l-84-83.8l11.8-11.8l84,83.8l84.4-84.2l11.8,11.8L267.6,256L352,340.2z'/></svg>\");width:30px;height:30px;background-size:18px}",md:".sc-ion-input-md-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:.5;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--background:transparent;--color:initial;display:flex;position:relative;flex:1;align-items:center;width:100%;padding:0 !important;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2}ion-item.sc-ion-input-md-h:not(.item-label),ion-item:not(.item-label) .sc-ion-input-md-h{--padding-start:0}.ion-color.sc-ion-input-md-h{color:var(--ion-color-base)}.native-input.sc-ion-input-md{border-radius:var(--border-radius);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:inline-block;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;box-sizing:border-box;appearance:none}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.native-input.sc-ion-input-md{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.native-input.sc-ion-input-md::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md:-webkit-autofill{background-color:transparent}.native-input.sc-ion-input-md:invalid{box-shadow:none}.native-input.sc-ion-input-md::-ms-clear{display:none}.native-input[disabled].sc-ion-input-md{opacity:0.4}.cloned-input.sc-ion-input-md{left:0;top:0;position:absolute;pointer-events:none}[dir=rtl].sc-ion-input-md .cloned-input.sc-ion-input-md,[dir=rtl].sc-ion-input-md-h .cloned-input.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h .cloned-input.sc-ion-input-md{left:unset;right:unset;right:0}.input-clear-icon.sc-ion-input-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;background-position:center;border:0;outline:none;background-color:transparent;background-repeat:no-repeat;visibility:hidden;appearance:none}.input-clear-icon.sc-ion-input-md:focus{opacity:0.5}.has-value.sc-ion-input-md-h .input-clear-icon.sc-ion-input-md{visibility:visible}.has-focus.sc-ion-input-md-h{pointer-events:none}.has-focus.sc-ion-input-md-h input.sc-ion-input-md,.has-focus.sc-ion-input-md-h a.sc-ion-input-md,.has-focus.sc-ion-input-md-h button.sc-ion-input-md{pointer-events:auto}.item-label-floating.item-has-placeholder.sc-ion-input-md-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-input-md-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-input-md-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-input-md-h{transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.sc-ion-input-md-h{--padding-top:10px;--padding-end:0;--padding-bottom:10px;--padding-start:8px;font-size:inherit}.item-label-stacked.sc-ion-input-md-h,.item-label-stacked .sc-ion-input-md-h,.item-label-floating.sc-ion-input-md-h,.item-label-floating .sc-ion-input-md-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0}.input-clear-icon.sc-ion-input-md{background-image:url(\"data:image/svg+xml;charset=utf-8,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'><polygon%20fill='var(--ion-color-step-600,%20%23666666)'%20points='405,136.798%20375.202,107%20256,226.202%20136.798,107%20107,136.798%20226.202,256%20107,375.202%20136.798,405%20256,285.798%20375.202,405%20405,375.202%20285.798,256'/></svg>\");width:30px;height:30px;background-size:22px}"};const JA=class{constructor(A){t(this,A),this.labelColorStyles={},this.itemStyles=new Map,this.multipleInputs=!1,this.focusable=!0,this.button=!1,this.detailIcon=N,this.disabled=!1,this.counter=!1,this.routerDirection="forward",this.type="button"}counterFormatterChanged(){this.updateCounterOutput(this.getFirstInput())}handleIonChange(A){this.counter&&A.target===this.getFirstInput()&&this.updateCounterOutput(A.target)}labelColorChanged(A){const{color:t}=this;void 0===t&&(this.labelColorStyles=A.detail)}itemStyle(A){A.stopPropagation();const t=A.target.tagName,i=A.detail,e={},n=this.itemStyles.get(t)||{};let r=!1;Object.keys(i).forEach((A=>{if(i[A]){const t=`item-${A}`;n[t]||(r=!0),e[t]=!0}})),r||Object.keys(e).length===Object.keys(n).length||(r=!0),r&&(this.itemStyles.set(t,e),o(this))}connectedCallback(){this.counter&&this.updateCounterOutput(this.getFirstInput()),this.hasStartEl()}componentDidUpdate(){const A=this.getFirstInput();A&&!this.clickListener&&(this.clickListener=t=>this.delegateFocus(t,A),this.el.addEventListener("click",this.clickListener))}disconnectedCallback(){this.getFirstInput()&&this.clickListener&&(this.el.removeEventListener("click",this.clickListener),this.clickListener=void 0)}componentDidLoad(){y((()=>{this.setMultipleInputs(),this.focusable=this.isFocusable()}))}setMultipleInputs(){const A=this.el.querySelectorAll("ion-checkbox, ion-datetime, ion-select, ion-radio"),t=this.el.querySelectorAll("ion-input, ion-range, ion-searchbar, ion-segment, ion-textarea, ion-toggle"),i=this.el.querySelectorAll("ion-anchor, ion-button, a, button");this.multipleInputs=A.length+t.length>1||A.length+i.length>1||A.length>0&&this.isClickable()}hasCover(){return 1===this.el.querySelectorAll("ion-checkbox, ion-datetime, ion-select, ion-radio").length&&!this.multipleInputs}isClickable(){return void 0!==this.href||this.button}canActivate(){return this.isClickable()||this.hasCover()}isFocusable(){const A=this.el.querySelector(".ion-focusable");return this.canActivate()||null!==A}getFirstInput(){return this.el.querySelectorAll("ion-input, ion-textarea")[0]}delegateFocus(A,t){const i="ION-ITEM"===A.target.tagName;let e=!1;document.activeElement&&(e=t.querySelector("input, textarea")===document.activeElement),!i||!e&&this.multipleInputs||(t.fireFocusEvents=!1,t.setBlur(),t.setFocus(),y((()=>{t.fireFocusEvents=!0})))}updateCounterOutput(A){var t,i;const{counter:e,counterFormatter:n,defaultCounterFormatter:r}=this;if(e&&!this.multipleInputs&&void 0!==(null==A?void 0:A.maxlength)){const e=null!==(i=null===(t=null==A?void 0:A.value)||void 0===t?void 0:t.toString().length)&&void 0!==i?i:0;if(void 0===n)this.counterString=r(e,A.maxlength);else try{this.counterString=n(e,A.maxlength)}catch(t){S("Exception in provided `counterFormatter`.",t),this.counterString=r(e,A.maxlength)}}}defaultCounterFormatter(A,t){return`${A} / ${t}`}hasStartEl(){null!==this.el.querySelector('[slot="start"]')&&this.el.classList.add("item-has-start-slot")}render(){const{counterString:A,detail:t,detailIcon:e,download:r,fill:o,labelColorStyles:s,lines:a,disabled:l,href:c,rel:h,shape:u,target:d,routerAnimation:g,routerDirection:f}=this,p={},B=w(this),m=this.isClickable(),b=this.canActivate(),v=m?void 0===c?"button":"a":"div",Q="button"===v?{type:this.type}:{download:r,href:c,rel:h,target:d},C=m?{onClick:A=>{E(c,A,f,g)}}:{},F=void 0!==t?t:"ios"===B&&m;this.itemStyles.forEach((A=>{Object.assign(p,A)}));const U=l||p["item-interactive-disabled"]?"true":null,y=o||"none",k=I("ion-list",this.el);return i(n,{"aria-disabled":U,class:Object.assign(Object.assign(Object.assign({},p),s),H(this.color,{item:!0,[B]:!0,[`item-lines-${a}`]:void 0!==a,[`item-fill-${y}`]:!0,[`item-shape-${u}`]:void 0!==u,"item-disabled":l,"in-list":k,"item-multiple-inputs":this.multipleInputs,"ion-activatable":b,"ion-focusable":this.focusable,"item-rtl":"rtl"===document.dir})),role:k?"listitem":null},i(v,Object.assign({},Q,{class:"item-native",part:"native",disabled:l},C),i("slot",{name:"start"}),i("div",{class:"item-inner"},i("div",{class:"input-wrapper"},i("slot",null)),i("slot",{name:"end"}),F&&i("ion-icon",{icon:e,lazy:!1,class:"item-detail-icon",part:"detail-icon","aria-hidden":"true","flip-rtl":e===N}),i("div",{class:"item-inner-highlight"})),b&&"md"===B&&i("ion-ripple-effect",null),i("div",{class:"item-highlight"})),i("div",{class:"item-bottom"},i("slot",{name:"error"}),i("slot",{name:"helper"}),A&&i("ion-note",{class:"item-counter"},A)))}static get delegatesFocus(){return!0}get el(){return e(this)}static get watchers(){return{counterFormatter:["counterFormatterChanged"]}}};JA.style={ios:':host{--border-radius:0px;--border-width:0px;--border-style:solid;--padding-top:0px;--padding-bottom:0px;--padding-end:0px;--padding-start:0px;--inner-border-width:0px;--inner-padding-top:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;--inner-padding-end:0px;--inner-box-shadow:none;--show-full-highlight:0;--show-inset-highlight:0;--detail-icon-color:initial;--detail-icon-font-size:20px;--detail-icon-opacity:0.25;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;align-items:center;justify-content:space-between;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:initial;text-decoration:none;overflow:hidden;box-sizing:border-box}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner{border-color:var(--ion-color-shade)}:host(.ion-activated) .item-native{color:var(--color-activated)}:host(.ion-activated) .item-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-color.ion-activated) .item-native{color:var(--ion-color-contrast)}:host(.ion-focused) .item-native{color:var(--color-focused)}:host(.ion-focused) .item-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-color.ion-focused) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .item-native::after{background:var(--ion-color-contrast)}@media (any-hover: hover){:host(.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--color-hover)}:host(.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--ion-color-contrast)}}:host(.item-interactive-disabled:not(.item-multiple-inputs)){cursor:default;pointer-events:none}:host(.item-disabled){cursor:default;opacity:0.3;pointer-events:none}.item-native{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:flex;position:relative;align-items:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);overflow:inherit;box-sizing:border-box;z-index:1}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.item-native{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.item-native::-moz-focus-inner{border:0}.item-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;transition:var(--transition);z-index:-1}button,a{cursor:pointer;user-select:none;-webkit-user-drag:none}.item-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--inner-padding-start);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);display:flex;position:relative;flex:1;flex-direction:inherit;align-items:inherit;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);box-shadow:var(--inner-box-shadow);overflow:inherit;box-sizing:border-box}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.item-inner{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--inner-padding-start);padding-inline-start:var(--inner-padding-start);-webkit-padding-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-inline-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end))}}.item-bottom{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--inner-padding-end);padding-top:0;padding-bottom:0;display:flex;justify-content:space-between}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.item-bottom{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--inner-padding-end);padding-inline-end:var(--inner-padding-end)}}.item-detail-icon{color:var(--detail-icon-color);font-size:var(--detail-icon-font-size);opacity:var(--detail-icon-opacity)}::slotted(ion-icon){font-size:1.6em}::slotted(ion-button){--margin-top:0;--margin-bottom:0;--margin-start:0;--margin-end:0;z-index:1}::slotted(ion-label:not([slot=end])){flex:1}:host(.item-input){align-items:center}.input-wrapper{display:flex;flex:1;flex-direction:inherit;align-items:inherit;align-self:stretch;text-overflow:ellipsis;overflow:inherit;box-sizing:border-box}:host(.item-label-stacked),:host(.item-label-floating){align-items:start}:host(.item-label-stacked) .input-wrapper,:host(.item-label-floating) .input-wrapper{flex:1;flex-direction:column}.item-highlight,.item-inner-highlight{left:0;right:0;top:0;bottom:0;border-radius:inherit;position:absolute;width:100%;height:100%;transform:scaleX(0);transition:transform 200ms, border-bottom-width 200ms;z-index:2;box-sizing:border-box;pointer-events:none}:host(.item-interactive.item-has-focus) .item-native{caret-color:var(--highlight-background)}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus),:host(.item-interactive.ion-touched.ion-invalid){--full-highlight-height:calc(var(--highlight-height) * var(--show-full-highlight));--inset-highlight-height:calc(var(--highlight-height) * var(--show-inset-highlight))}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus){--highlight-background:var(--highlight-color-focused)}:host(.item-interactive.ion-valid){--highlight-background:var(--highlight-color-valid)}:host(.item-interactive.ion-invalid){--highlight-background:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=helper]){display:none}::slotted([slot=error]){display:none;color:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=error]){display:block}:host(:not(.item-label)) ::slotted(ion-select){--padding-start:0;max-width:none}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0;align-self:stretch;width:100%;max-width:100%}:host(:not(.item-label)) ::slotted(ion-datetime){--padding-start:0}:host(.item-label-stacked) ::slotted(ion-datetime),:host(.item-label-floating) ::slotted(ion-datetime){--padding-start:0;width:100%}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio),:host(.item-multiple-inputs) ::slotted(ion-select){position:relative}:host(.item-textarea){align-items:stretch}::slotted(ion-reorder[slot]){margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){align-self:center}::slotted([slot=helper]),::slotted([slot=error]),.item-counter{padding-top:5px;font-size:12px;z-index:1}.item-counter{margin-left:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;padding-inline-start:16px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.item-counter{margin-left:unset;-webkit-margin-start:auto;margin-inline-start:auto}}@media (prefers-reduced-motion: reduce){.item-highlight,.item-inner-highlight{transition:none}}:host{--min-height:44px;--transition:background-color 200ms linear, opacity 200ms linear;--padding-start:20px;--inner-padding-end:10px;--inner-border-width:0px 0px 0.55px 0px;--background:var(--ion-item-background, var(--ion-background-color, #fff));--background-activated:#000;--background-focused:#000;--background-hover:currentColor;--background-activated-opacity:.12;--background-focused-opacity:.15;--background-hover-opacity:.04;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--color:var(--ion-item-color, var(--ion-text-color, #000));--highlight-height:0px;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--bottom-padding-start:0px;font-size:17px}:host(.ion-activated){--transition:none}:host(.ion-color.ion-focused) .item-native::after{background:#000;opacity:0.15}:host(.ion-color.ion-activated) .item-native::after{background:#000;opacity:0.12}:host(.item-interactive){--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-full){--border-width:0px 0px 0.55px 0px;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-inset){--inner-border-width:0px 0px 0.55px 0px;--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0px;--show-full-highlight:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0px;--show-inset-highlight:0}.item-highlight,.item-inner-highlight{transition:none}:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus) .item-highlight{border-top:none;border-right:none;border-left:none}::slotted([slot=start]){margin-left:0;margin-right:20px;margin-top:2px;margin-bottom:2px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:20px;margin-inline-end:20px}}::slotted([slot=end]){margin-left:10px;margin-right:10px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px}}::slotted(ion-icon[slot=start]),::slotted(ion-icon[slot=end]){margin-top:7px;margin-bottom:7px}::slotted(ion-toggle[slot=start]),::slotted(ion-toggle[slot=end]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host(.item-label-stacked) ::slotted([slot=end]),:host(.item-label-floating) ::slotted([slot=end]){margin-top:7px;margin-bottom:7px}::slotted(.button-small){--padding-top:0px;--padding-bottom:0px;--padding-start:.5em;--padding-end:.5em;height:24px;font-size:13px}::slotted(ion-avatar){width:36px;height:36px}::slotted(ion-thumbnail){width:56px;height:56px}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:10px;margin-right:10px;margin-top:10px;margin-bottom:10px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px}}:host(.item-radio) ::slotted(ion-label),:host(.item-toggle) ::slotted(ion-label){margin-left:0px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.item-radio) ::slotted(ion-label),:host(.item-toggle) ::slotted(ion-label){margin-left:unset;-webkit-margin-start:0px;margin-inline-start:0px}}::slotted(ion-label){margin-left:0;margin-right:8px;margin-top:10px;margin-bottom:10px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}:host(.item-label-floating),:host(.item-label-stacked){--min-height:68px}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0px}:host(.item-label-fixed) ::slotted(ion-select),:host(.item-label-fixed) ::slotted(ion-datetime){--padding-start:0}',md:':host{--border-radius:0px;--border-width:0px;--border-style:solid;--padding-top:0px;--padding-bottom:0px;--padding-end:0px;--padding-start:0px;--inner-border-width:0px;--inner-padding-top:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;--inner-padding-end:0px;--inner-box-shadow:none;--show-full-highlight:0;--show-inset-highlight:0;--detail-icon-color:initial;--detail-icon-font-size:20px;--detail-icon-opacity:0.25;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;align-items:center;justify-content:space-between;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:initial;text-decoration:none;overflow:hidden;box-sizing:border-box}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner{border-color:var(--ion-color-shade)}:host(.ion-activated) .item-native{color:var(--color-activated)}:host(.ion-activated) .item-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-color.ion-activated) .item-native{color:var(--ion-color-contrast)}:host(.ion-focused) .item-native{color:var(--color-focused)}:host(.ion-focused) .item-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-color.ion-focused) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .item-native::after{background:var(--ion-color-contrast)}@media (any-hover: hover){:host(.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--color-hover)}:host(.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--ion-color-contrast)}}:host(.item-interactive-disabled:not(.item-multiple-inputs)){cursor:default;pointer-events:none}:host(.item-disabled){cursor:default;opacity:0.3;pointer-events:none}.item-native{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:flex;position:relative;align-items:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);overflow:inherit;box-sizing:border-box;z-index:1}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.item-native{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.item-native::-moz-focus-inner{border:0}.item-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;transition:var(--transition);z-index:-1}button,a{cursor:pointer;user-select:none;-webkit-user-drag:none}.item-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--inner-padding-start);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);display:flex;position:relative;flex:1;flex-direction:inherit;align-items:inherit;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);box-shadow:var(--inner-box-shadow);overflow:inherit;box-sizing:border-box}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.item-inner{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--inner-padding-start);padding-inline-start:var(--inner-padding-start);-webkit-padding-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-inline-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end))}}.item-bottom{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--inner-padding-end);padding-top:0;padding-bottom:0;display:flex;justify-content:space-between}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.item-bottom{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--inner-padding-end);padding-inline-end:var(--inner-padding-end)}}.item-detail-icon{color:var(--detail-icon-color);font-size:var(--detail-icon-font-size);opacity:var(--detail-icon-opacity)}::slotted(ion-icon){font-size:1.6em}::slotted(ion-button){--margin-top:0;--margin-bottom:0;--margin-start:0;--margin-end:0;z-index:1}::slotted(ion-label:not([slot=end])){flex:1}:host(.item-input){align-items:center}.input-wrapper{display:flex;flex:1;flex-direction:inherit;align-items:inherit;align-self:stretch;text-overflow:ellipsis;overflow:inherit;box-sizing:border-box}:host(.item-label-stacked),:host(.item-label-floating){align-items:start}:host(.item-label-stacked) .input-wrapper,:host(.item-label-floating) .input-wrapper{flex:1;flex-direction:column}.item-highlight,.item-inner-highlight{left:0;right:0;top:0;bottom:0;border-radius:inherit;position:absolute;width:100%;height:100%;transform:scaleX(0);transition:transform 200ms, border-bottom-width 200ms;z-index:2;box-sizing:border-box;pointer-events:none}:host(.item-interactive.item-has-focus) .item-native{caret-color:var(--highlight-background)}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus),:host(.item-interactive.ion-touched.ion-invalid){--full-highlight-height:calc(var(--highlight-height) * var(--show-full-highlight));--inset-highlight-height:calc(var(--highlight-height) * var(--show-inset-highlight))}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus){--highlight-background:var(--highlight-color-focused)}:host(.item-interactive.ion-valid){--highlight-background:var(--highlight-color-valid)}:host(.item-interactive.ion-invalid){--highlight-background:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=helper]){display:none}::slotted([slot=error]){display:none;color:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=error]){display:block}:host(:not(.item-label)) ::slotted(ion-select){--padding-start:0;max-width:none}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0;align-self:stretch;width:100%;max-width:100%}:host(:not(.item-label)) ::slotted(ion-datetime){--padding-start:0}:host(.item-label-stacked) ::slotted(ion-datetime),:host(.item-label-floating) ::slotted(ion-datetime){--padding-start:0;width:100%}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio),:host(.item-multiple-inputs) ::slotted(ion-select){position:relative}:host(.item-textarea){align-items:stretch}::slotted(ion-reorder[slot]){margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){align-self:center}::slotted([slot=helper]),::slotted([slot=error]),.item-counter{padding-top:5px;font-size:12px;z-index:1}.item-counter{margin-left:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;padding-inline-start:16px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.item-counter{margin-left:unset;-webkit-margin-start:auto;margin-inline-start:auto}}@media (prefers-reduced-motion: reduce){.item-highlight,.item-inner-highlight{transition:none}}:host{--min-height:48px;--background:var(--ion-item-background, var(--ion-background-color, #fff));--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--color:var(--ion-item-color, var(--ion-text-color, #000));--transition:opacity 15ms linear, background-color 15ms linear;--padding-start:16px;--inner-padding-end:16px;--inner-border-width:0 0 1px 0;--highlight-height:1px;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);font-size:16px;font-weight:normal;text-transform:none}:host(.item-fill-outline){--highlight-height:2px}:host(.item-fill-none.item-interactive.ion-focus) .item-highlight,:host(.item-fill-none.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-none.item-interactive.ion-touched.ion-invalid) .item-highlight{transform:scaleX(1);border-width:0 0 var(--full-highlight-height) 0;border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-none.item-interactive.ion-focus) .item-native,:host(.item-fill-none.item-interactive.item-has-focus) .item-native,:host(.item-fill-none.item-interactive.ion-touched.ion-invalid) .item-native{border-bottom-color:var(--highlight-background)}:host(.item-fill-outline.item-interactive.ion-focus) .item-highlight,:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight{transform:scaleX(1)}:host(.item-fill-outline.item-interactive.ion-focus) .item-highlight,:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-outline.item-interactive.ion-touched.ion-invalid) .item-highlight{border-width:var(--full-highlight-height);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-outline.item-interactive.ion-touched.ion-invalid) .item-native{border-color:var(--highlight-background)}:host(.item-fill-solid.item-interactive.ion-focus) .item-highlight,:host(.item-fill-solid.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-solid.item-interactive.ion-touched.ion-invalid) .item-highlight{transform:scaleX(1);border-width:0 0 var(--full-highlight-height) 0;border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-solid.item-interactive.ion-focus) .item-native,:host(.item-fill-solid.item-interactive.item-has-focus) .item-native,:host(.item-fill-solid.item-interactive.ion-touched.ion-invalid) .item-native{border-bottom-color:var(--highlight-background)}:host(.ion-color.ion-activated) .item-native::after{background:transparent}:host(.item-has-focus) .item-native{caret-color:var(--highlight-color-focused)}:host(.item-interactive){--border-width:0 0 1px 0;--inner-border-width:0;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-full){--border-width:0 0 1px 0;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-inset){--inner-border-width:0 0 1px 0;--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0;--show-full-highlight:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0;--show-inset-highlight:0}:host(.item-fill-outline) .item-highlight{--position-offset:calc(-1 * var(--border-width));left:var(--position-offset);top:var(--position-offset);width:calc(100% + 2 * var(--border-width));height:calc(100% + 2 * var(--border-width));transition:none}:host-context([dir=rtl]):host(.item-fill-outline) .item-highlight,:host-context([dir=rtl]).item-fill-outline .item-highlight{left:unset;right:unset;right:var(--position-offset)}:host(.item-fill-outline.ion-focused) .item-native,:host(.item-fill-outline.item-has-focus) .item-native{border-color:transparent}:host(.item-multi-line) ::slotted([slot=start]),:host(.item-multi-line) ::slotted([slot=end]){margin-top:16px;margin-bottom:16px;align-self:flex-start}::slotted([slot=start]){margin-right:32px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-right:unset;-webkit-margin-end:32px;margin-inline-end:32px}}::slotted([slot=end]){margin-left:32px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;-webkit-margin-start:32px;margin-inline-start:32px}}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){align-self:center}::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);font-size:24px}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) ::slotted(ion-icon){color:var(--ion-color-contrast)}::slotted(ion-icon[slot]){margin-top:12px;margin-bottom:12px}::slotted(ion-icon[slot=start]){margin-right:32px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=start]){margin-right:unset;-webkit-margin-end:32px;margin-inline-end:32px}}::slotted(ion-icon[slot=end]){margin-left:16px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=end]){margin-left:unset;-webkit-margin-start:16px;margin-inline-start:16px}}:host(.item-fill-solid) ::slotted(ion-icon[slot=start]),:host(.item-fill-outline) ::slotted(ion-icon[slot=start]){margin-right:8px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.item-fill-solid) ::slotted(ion-icon[slot=start]),:host(.item-fill-outline) ::slotted(ion-icon[slot=start]){margin-right:unset;-webkit-margin-end:8px;margin-inline-end:8px}}::slotted(ion-toggle[slot=start]),::slotted(ion-toggle[slot=end]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}::slotted(ion-note){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;align-self:flex-start;font-size:11px}::slotted(ion-note[slot]:not([slot=helper]):not([slot=error])){padding-left:0;padding-right:0;padding-top:18px;padding-bottom:10px}::slotted(ion-note[slot=start]){padding-right:16px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-note[slot=start]){padding-right:unset;-webkit-padding-end:16px;padding-inline-end:16px}}::slotted(ion-note[slot=end]){padding-left:16px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-note[slot=end]){padding-left:unset;-webkit-padding-start:16px;padding-inline-start:16px}}::slotted(ion-avatar){width:40px;height:40px}::slotted(ion-thumbnail){width:56px;height:56px}::slotted(ion-avatar),::slotted(ion-thumbnail){margin-top:8px;margin-bottom:8px}::slotted(ion-avatar[slot=start]),::slotted(ion-thumbnail[slot=start]){margin-right:16px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-avatar[slot=start]),::slotted(ion-thumbnail[slot=start]){margin-right:unset;-webkit-margin-end:16px;margin-inline-end:16px}}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:16px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:unset;-webkit-margin-start:16px;margin-inline-start:16px}}::slotted(ion-label){margin-left:0;margin-right:0;margin-top:10px;margin-bottom:10px}:host(.item-label-stacked) ::slotted([slot=end]),:host(.item-label-floating) ::slotted([slot=end]){margin-top:7px;margin-bottom:7px}:host(.item-label-fixed) ::slotted(ion-select),:host(.item-label-fixed) ::slotted(ion-datetime){--padding-start:8px}:host(.item-toggle) ::slotted(ion-label),:host(.item-radio) ::slotted(ion-label){margin-left:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.item-toggle) ::slotted(ion-label),:host(.item-radio) ::slotted(ion-label){margin-left:unset;-webkit-margin-start:0;margin-inline-start:0}}::slotted(.button-small){--padding-top:0;--padding-bottom:0;--padding-start:.6em;--padding-end:.6em;height:25px;font-size:12px}:host(.item-label-floating),:host(.item-label-stacked){--min-height:55px}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0}:host(.ion-focused:not(.ion-color)) ::slotted(.label-stacked),:host(.ion-focused:not(.ion-color)) ::slotted(.label-floating),:host(.item-has-focus:not(.ion-color)) ::slotted(.label-stacked),:host(.item-has-focus:not(.ion-color)) ::slotted(.label-floating){color:var(--ion-color-primary, #3880ff)}:host(.ion-color){--highlight-color-focused:var(--ion-color-contrast)}:host(.item-label-color){--highlight-color-focused:var(--ion-color-base)}:host(.item-fill-solid.ion-color),:host(.item-fill-outline.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.item-fill-solid){--background:var(--ion-color-step-50, #f2f2f2);--background-hover:var(--ion-color-step-100, #e6e6e6);--background-focused:var(--ion-color-step-150, #d9d9d9);--border-width:0 0 1px 0;--inner-border-width:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.item-fill-solid),:host-context([dir=rtl]).item-fill-solid{border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host(.item-fill-solid) .item-native{--border-color:var(--ion-color-step-500, gray)}:host(.item-fill-solid.ion-focused) .item-native,:host(.item-fill-solid.item-has-focus) .item-native{--background:var(--background-focused)}:host(.item-fill-solid.item-shape-round){border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.item-fill-solid.item-shape-round),:host-context([dir=rtl]).item-fill-solid.item-shape-round{border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}@media (any-hover: hover){:host(.item-fill-solid:hover) .item-native{--background:var(--background-hover);--border-color:var(--ion-color-step-750, #404040)}}:host(.item-fill-outline){--ripple-color:transparent;--background-focused:transparent;--background-hover:transparent;--border-color:var(--ion-color-step-500, gray);--border-width:1px;border:none;overflow:visible}:host(.item-fill-outline) .item-native{--native-padding-left:16px;border-radius:4px}:host(.item-fill-outline.item-shape-round) .item-native{--inner-padding-start:16px;border-radius:28px}:host(.item-fill-outline.item-shape-round) .item-bottom{padding-left:32px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.item-fill-outline.item-shape-round) .item-bottom{padding-left:unset;-webkit-padding-start:32px;padding-inline-start:32px}}:host(.item-fill-outline.item-label-floating.ion-focused) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.ion-focused) .item-native ::slotted(ion-textarea:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-focus) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-focus) .item-native ::slotted(ion-textarea:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-value) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-value) .item-native ::slotted(ion-textarea:not(:first-child)){transform:translateY(-14px)}@media (any-hover: hover){:host(.item-fill-outline:hover) .item-native{--border-color:var(--ion-color-step-750, #404040)}}.item-counter{letter-spacing:0.0333333333em}'};const XA=class{constructor(A){t(this,A),this.ionColor=r(this,"ionColor",7),this.ionStyle=r(this,"ionStyle",7),this.inRange=!1,this.noAnimate=!1}componentWillLoad(){this.inRange=!!this.el.closest("ion-range"),this.noAnimate="floating"===this.position,this.emitStyle(),this.emitColor()}componentDidLoad(){this.noAnimate&&setTimeout((()=>{this.noAnimate=!1}),1e3)}colorChanged(){this.emitColor()}positionChanged(){this.emitStyle()}emitColor(){const{color:A}=this;this.ionColor.emit({"item-label-color":void 0!==A,[`ion-color-${A}`]:void 0!==A})}emitStyle(){const{inRange:A,position:t}=this;A||this.ionStyle.emit({label:!0,[`label-${t}`]:void 0!==t})}render(){const A=this.position,t=w(this);return i(n,{class:H(this.color,{[t]:!0,"in-item-color":I("ion-item.ion-color",this.el),[`label-${A}`]:void 0!==A,"label-no-animate":this.noAnimate,"label-rtl":"rtl"===document.dir})})}get el(){return e(this)}static get watchers(){return{color:["colorChanged"],position:["positionChanged"]}}};XA.style={ios:".item.sc-ion-label-ios-h,.item .sc-ion-label-ios-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;box-sizing:border-box}.ion-color.sc-ion-label-ios-h{color:var(--ion-color-base)}.ion-text-wrap.sc-ion-label-ios-h,[text-wrap].sc-ion-label-ios-h{white-space:normal}.item-interactive-disabled.sc-ion-label-ios-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-ios-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-ios-h,.item-input .sc-ion-label-ios-h{flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-ios-h,.item-textarea .sc-ion-label-ios-h{align-self:baseline}.label-fixed.sc-ion-label-ios-h{flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-ios-h,.label-floating.sc-ion-label-ios-h{margin-bottom:0;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-ios-h{transition:none}.sc-ion-label-ios-s h1,.sc-ion-label-ios-s h2,.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-ios-h,[text-wrap].sc-ion-label-ios-h{font-size:14px;line-height:1.5}.label-stacked.sc-ion-label-ios-h{margin-bottom:4px;font-size:14px}.label-floating.sc-ion-label-ios-h{margin-bottom:0;transform:translate(0, 29px);transform-origin:left top;transition:transform 150ms ease-in-out}[dir=rtl].sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl] .sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl].label-floating.sc-ion-label-ios-h,[dir=rtl] .label-floating.sc-ion-label-ios-h{transform-origin:right top}.item-textarea.label-floating.sc-ion-label-ios-h,.item-textarea .label-floating.sc-ion-label-ios-h{transform:translate(0, 28px)}.item-has-focus.label-floating.sc-ion-label-ios-h,.item-has-focus .label-floating.sc-ion-label-ios-h,.item-has-placeholder.sc-ion-label-ios-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-ios-h,.item-has-value.label-floating.sc-ion-label-ios-h,.item-has-value .label-floating.sc-ion-label-ios-h{transform:scale(0.82)}.sc-ion-label-ios-s h1{margin-left:0;margin-right:0;margin-top:3px;margin-bottom:2px;font-size:22px;font-weight:normal}.sc-ion-label-ios-s h2{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:17px;font-weight:normal}.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{margin-left:0;margin-right:0;margin-top:0;margin-bottom:3px;font-size:14px;font-weight:normal;line-height:normal}.sc-ion-label-ios-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;line-height:normal;text-overflow:inherit;overflow:inherit}.sc-ion-label-ios-s>p{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.4)}.sc-ion-label-ios-h.in-item-color.sc-ion-label-ios-s>p{color:inherit}.sc-ion-label-ios-s h2:last-child,.sc-ion-label-ios-s h3:last-child,.sc-ion-label-ios-s h4:last-child,.sc-ion-label-ios-s h5:last-child,.sc-ion-label-ios-s h6:last-child,.sc-ion-label-ios-s p:last-child{margin-bottom:0}",md:'.item.sc-ion-label-md-h,.item .sc-ion-label-md-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;box-sizing:border-box}.ion-color.sc-ion-label-md-h{color:var(--ion-color-base)}.ion-text-wrap.sc-ion-label-md-h,[text-wrap].sc-ion-label-md-h{white-space:normal}.item-interactive-disabled.sc-ion-label-md-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-md-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-md-h,.item-input .sc-ion-label-md-h{flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-md-h,.item-textarea .sc-ion-label-md-h{align-self:baseline}.label-fixed.sc-ion-label-md-h{flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-bottom:0;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-md-h{transition:none}.sc-ion-label-md-s h1,.sc-ion-label-md-s h2,.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-md-h,[text-wrap].sc-ion-label-md-h{line-height:1.5}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;transform-origin:top left}.label-stacked.label-rtl.sc-ion-label-md-h,.label-floating.label-rtl.sc-ion-label-md-h{transform-origin:top right}.label-stacked.sc-ion-label-md-h{transform:translateY(50%) scale(0.75);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.label-floating.sc-ion-label-md-h{transform:translateY(96%);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1)}.ion-focused.label-floating.sc-ion-label-md-h,.ion-focused .label-floating.sc-ion-label-md-h,.item-has-focus.label-floating.sc-ion-label-md-h,.item-has-focus .label-floating.sc-ion-label-md-h,.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-has-value.label-floating.sc-ion-label-md-h,.item-has-value .label-floating.sc-ion-label-md-h{transform:translateY(50%) scale(0.75)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h{transform:translateY(-6px) scale(0.75);position:relative;max-width:min-content;background-color:var(--ion-item-background, var(--ion-background-color, #fff));overflow:visible;z-index:3}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{position:absolute;width:4px;height:100%;background-color:var(--ion-item-background, var(--ion-background-color, #fff));content:""}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before{left:calc(-1 * 4px)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{right:calc(-1 * 4px)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.sc-ion-label-md-h{transform:translateX(-32px) translateY(-6px) scale(0.75)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating.label-rtl,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h{transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75)}.ion-focused.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-primary, #3880ff)}.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-contrast)}.item-fill-solid.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-base)}.ion-invalid.ion-touched.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--highlight-color-invalid)}.sc-ion-label-md-s h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.sc-ion-label-md-s h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal;line-height:normal}.sc-ion-label-md-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;line-height:20px;text-overflow:inherit;overflow:inherit}.sc-ion-label-md-s>p{color:var(--ion-color-step-600, #666666)}.sc-ion-label-md-h.in-item-color.sc-ion-label-md-s>p{color:inherit}'};const _A=class{constructor(A){t(this,A),this.inset=!1}async closeSlidingItems(){const A=this.el.querySelector("ion-item-sliding");return!!(null==A?void 0:A.closeOpened)&&A.closeOpened()}render(){const A=w(this),{lines:t,inset:e}=this;return i(n,{role:"list",class:{[A]:!0,[`list-${A}`]:!0,"list-inset":e,[`list-lines-${t}`]:void 0!==t,[`list-${A}-lines-${t}`]:void 0!==t}})}get el(){return e(this)}};_A.style={ios:"ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{transform:translateZ(0);overflow:hidden}.list-ios{background:var(--ion-item-background, var(--ion-background-color, #fff))}.list-ios.list-inset{margin-left:16px;margin-right:16px;margin-top:16px;margin-bottom:16px;border-radius:10px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.list-ios.list-inset{margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px}}.list-ios.list-inset ion-item{--border-width:0 0 1px 0;--inner-border-width:0}.list-ios.list-inset ion-item:last-child{--border-width:0;--inner-border-width:0}.list-ios.list-inset+ion-list.list-inset{margin-top:0}.list-ios-lines-none .item{--border-width:0;--inner-border-width:0}.list-ios-lines-full .item,.list-ios .item-lines-full{--border-width:0 0 0.55px 0}.list-ios-lines-full .item{--inner-border-width:0}.list-ios-lines-inset .item,.list-ios .item-lines-inset{--inner-border-width:0 0 0.55px 0}.list-ios .item-lines-inset{--border-width:0}.list-ios .item-lines-full{--inner-border-width:0}.list-ios .item-lines-none{--border-width:0;--inner-border-width:0}ion-card .list-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",md:"ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{transform:translateZ(0);overflow:hidden}.list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;background:var(--ion-item-background, var(--ion-background-color, #fff))}.list-md>.input:last-child::after{left:0}[dir=rtl] .list-md>.input:last-child::after,:host-context([dir=rtl]) .list-md>.input:last-child::after{left:unset;right:unset;right:0}.list-md.list-inset{margin-left:16px;margin-right:16px;margin-top:16px;margin-bottom:16px;border-radius:2px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.list-md.list-inset{margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px}}.list-md.list-inset ion-item:first-child{--border-radius:2px 2px 0 0;--border-width:0 0 1px 0}.list-md.list-inset ion-item:last-child{--border-radius:0 0 2px, 2px;--border-width:0}.list-md.list-inset .item-interactive{--padding-start:0;--padding-end:0}.list-md.list-inset+ion-list.list-inset{margin-top:0}.list-md-lines-none .item{--border-width:0;--inner-border-width:0}.list-md-lines-full .item,.list-md .item-lines-full{--border-width:0 0 1px 0}.list-md-lines-full .item{--inner-border-width:0}.list-md-lines-inset .item,.list-md .item-lines-inset{--inner-border-width:0 0 1px 0}.list-md .item-lines-inset{--border-width:0}.list-md .item-lines-full{--inner-border-width:0}.list-md .item-lines-none{--border-width:0;--inner-border-width:0}ion-card .list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}"};const YA=class{constructor(A){t(this,A)}render(){const{lines:A}=this,t=w(this);return i(n,{class:H(this.color,{[t]:!0,[`list-header-lines-${A}`]:void 0!==A})},i("div",{class:"list-header-inner"},i("slot",null)))}};YA.style={ios:":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:flex;position:relative;flex:1;flex-direction:inherit;align-items:inherit;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;box-sizing:border-box}::slotted(ion-label){flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-color-step-850, #262626);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));padding-left:calc(var(--ion-safe-area-left, 0px) + 20px);position:relative;align-items:flex-end;font-size:22px;font-weight:700;letter-spacing:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;-webkit-padding-start:calc(var(--ion-safe-area-left, 0px) + 20px);padding-inline-start:calc(var(--ion-safe-area-left, 0px) + 20px)}}::slotted(ion-button),::slotted(ion-label){margin-top:29px;margin-bottom:6px}::slotted(ion-button){margin-left:3px;margin-right:3px;height:1.4em}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-button){margin-left:unset;margin-right:unset;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:3px;margin-inline-end:3px}}:host(.list-header-lines-full){--border-width:0 0 0.55px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 0.55px 0}",md:":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:flex;position:relative;flex:1;flex-direction:inherit;align-items:inherit;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;box-sizing:border-box}::slotted(ion-label){flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-text-color, #000);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));padding-left:calc(var(--ion-safe-area-left, 0) + 16px);min-height:45px;font-size:14px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;-webkit-padding-start:calc(var(--ion-safe-area-left, 0) + 16px);padding-inline-start:calc(var(--ion-safe-area-left, 0) + 16px)}}:host(.list-header-lines-full){--border-width:0 0 1px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 1px 0}"};const WA=class{constructor(A){t(this,A)}render(){const A=w(this);return i(n,{class:H(this.color,{[A]:!0})},i("slot",null))}};WA.style={ios:":host{color:var(--color);font-family:var(--ion-font-family, inherit);box-sizing:border-box}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-350, #a6a6a6)}",md:":host{color:var(--color);font-family:var(--ion-font-family, inherit);box-sizing:border-box}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-600, #666666);font-size:14px}"};const ZA=class{constructor(A){t(this,A),this.ionStyle=r(this,"ionStyle",7),this.ionFocus=r(this,"ionFocus",7),this.ionBlur=r(this,"ionBlur",7),this.inputId="ion-rb-"+$A++,this.radioGroup=null,this.checked=!1,this.buttonTabindex=-1,this.name=this.inputId,this.disabled=!1,this.updateState=()=>{this.radioGroup&&(this.checked=this.radioGroup.value===this.value)},this.onClick=()=>{this.checked=this.nativeInput.checked},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}async setFocus(A){A.stopPropagation(),A.preventDefault(),this.el.focus()}async setButtonTabindex(A){this.buttonTabindex=A}connectedCallback(){void 0===this.value&&(this.value=this.inputId);const A=this.radioGroup=this.el.closest("ion-radio-group");A&&(this.updateState(),k(A,"ionChange",this.updateState))}disconnectedCallback(){const A=this.radioGroup;A&&(x(A,"ionChange",this.updateState),this.radioGroup=null)}componentWillLoad(){this.emitStyle()}emitStyle(){this.ionStyle.emit({"radio-checked":this.checked,"interactive-disabled":this.disabled})}render(){const{inputId:A,disabled:t,checked:e,color:r,el:o,buttonTabindex:s}=this,a=w(this),{label:l,labelId:c,labelText:h}=v(o,A);return i(n,{"aria-checked":`${e}`,"aria-hidden":t?"true":null,"aria-labelledby":l?c:null,role:"radio",tabindex:s,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,class:H(r,{[a]:!0,"in-item":I("ion-item",o),interactive:!0,"radio-checked":e,"radio-disabled":t})},i("div",{class:"radio-icon",part:"container"},i("div",{class:"radio-inner",part:"mark"}),i("div",{class:"radio-ripple"})),i("label",{htmlFor:A},h),i("input",{type:"radio",checked:e,disabled:t,tabindex:"-1",id:A,ref:A=>this.nativeInput=A}))}get el(){return e(this)}static get watchers(){return{color:["emitStyle"],checked:["emitStyle"],disabled:["emitStyle"]}}};let $A=0;ZA.style={ios:':host{--inner-border-radius:50%;display:inline-block;position:relative;box-sizing:border-box;user-select:none;z-index:2}:host(.radio-disabled){pointer-events:none}.radio-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{box-sizing:border-box}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host{--color-checked:var(--ion-color-primary, #3880ff);width:15px;height:24px}:host(.ion-color.radio-checked) .radio-inner{border-color:var(--ion-color-base)}.item-radio.item-ios ion-label{margin-left:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.item-radio.item-ios ion-label{margin-left:unset;-webkit-margin-start:0;margin-inline-start:0}}.radio-inner{width:33%;height:50%}:host(.radio-checked) .radio-inner{transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--color-checked)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);left:-9px;top:-8px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-9px}:host(.in-item){margin-left:10px;margin-right:11px;margin-top:8px;margin-bottom:8px;display:block;position:static}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:11px;margin-inline-end:11px}}:host(.in-item[slot=start]){margin-left:3px;margin-right:21px;margin-top:8px;margin-bottom:8px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:21px;margin-inline-end:21px}}',md:':host{--inner-border-radius:50%;display:inline-block;position:relative;box-sizing:border-box;user-select:none;z-index:2}:host(.radio-disabled){pointer-events:none}.radio-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{box-sizing:border-box}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host{--color:var(--ion-color-step-400, #999999);--color-checked:var(--ion-color-primary, #3880ff);--border-width:2px;--border-style:solid;--border-radius:50%;width:20px;height:20px}:host(.ion-color) .radio-inner{background:var(--ion-color-base)}:host(.ion-color.radio-checked) .radio-icon{border-color:var(--ion-color-base)}.radio-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--color)}.radio-inner{border-radius:var(--inner-border-radius);width:calc(50% + var(--border-width));height:calc(50% + var(--border-width));transform:scale3d(0, 0, 0);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background:var(--color-checked)}:host(.radio-checked) .radio-icon{border-color:var(--color-checked)}:host(.radio-checked) .radio-inner{transform:scale3d(1, 1, 1)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);left:-12px;top:-12px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-12px}:host(.in-item){margin-left:0;margin-right:0;margin-top:9px;margin-bottom:9px;display:block;position:static}:host(.in-item[slot=start]){margin-left:4px;margin-right:36px;margin-top:11px;margin-bottom:10px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px}}'};const At=class{constructor(A){t(this,A),this.ionChange=r(this,"ionChange",7),this.inputId="ion-rg-"+tt++,this.labelId=`${this.inputId}-lbl`,this.allowEmptySelection=!1,this.name=this.inputId,this.setRadioTabindex=A=>{const t=this.getRadios(),i=t.find((A=>!A.disabled)),e=t.find((t=>t.value===A&&!t.disabled));if(!i&&!e)return;const n=e||i;for(const A of t)A.setButtonTabindex(A===n?0:-1)},this.onClick=A=>{A.preventDefault();const t=A.target&&A.target.closest("ion-radio");if(t){const A=t.value;A!==this.value?this.value=A:this.allowEmptySelection&&(this.value=void 0)}}}valueChanged(A){this.setRadioTabindex(A),this.ionChange.emit({value:A})}componentDidLoad(){this.setRadioTabindex(this.value)}async connectedCallback(){const A=this.el.querySelector("ion-list-header")||this.el.querySelector("ion-item-divider");if(A){const t=this.label=A.querySelector("ion-label");t&&(this.labelId=t.id=this.name+"-lbl")}}getRadios(){return Array.from(this.el.querySelectorAll("ion-radio"))}onKeydown(A){const t=!!this.el.closest("ion-select-popover");if(A.target&&!this.el.contains(A.target))return;const i=this.getRadios().filter((A=>!A.disabled));if(A.target&&i.includes(A.target)){const e=i.findIndex((t=>t===A.target)),n=i[e];let r;["ArrowDown","ArrowRight"].includes(A.code)&&(r=e===i.length-1?i[0]:i[e+1]),["ArrowUp","ArrowLeft"].includes(A.code)&&(r=0===e?i[i.length-1]:i[e-1]),r&&i.includes(r)&&(r.setFocus(A),t||(this.value=r.value)),["Space"].includes(A.code)&&(this.value=this.allowEmptySelection&&void 0!==this.value?void 0:n.value,A.preventDefault())}}render(){const{label:A,labelId:t}=this,e=w(this);return i(n,{role:"radiogroup","aria-labelledby":A?t:null,onClick:this.onClick,class:e})}get el(){return e(this)}static get watchers(){return{value:["valueChanged"]}}};let tt=0;const it=class{constructor(A){t(this,A),this.ionChange=r(this,"ionChange",7),this.ionStyle=r(this,"ionStyle",7),this.ionFocus=r(this,"ionFocus",7),this.ionBlur=r(this,"ionBlur",7),this.ionKnobMoveStart=r(this,"ionKnobMoveStart",7),this.ionKnobMoveEnd=r(this,"ionKnobMoveEnd",7),this.didLoad=!1,this.noUpdate=!1,this.hasFocus=!1,this.inheritedAttributes={},this.contentEl=null,this.initialContentScrollY=!0,this.ratioA=0,this.ratioB=0,this.debounce=0,this.name="",this.dualKnobs=!1,this.min=0,this.max=100,this.pin=!1,this.pinFormatter=A=>Math.round(A),this.snaps=!1,this.step=1,this.ticks=!0,this.disabled=!1,this.value=0,this.clampBounds=A=>L(this.min,A,this.max),this.ensureValueInBounds=A=>this.dualKnobs?{lower:this.clampBounds(A.lower),upper:this.clampBounds(A.upper)}:this.clampBounds(A),this.setupGesture=async()=>{const A=this.rangeSlider;A&&(this.gesture=(await import("./p-e9431eeb.js")).createGesture({el:A,gestureName:"range",gesturePriority:100,threshold:0,onStart:A=>this.onStart(A),onMove:A=>this.onMove(A),onEnd:A=>this.onEnd(A)}),this.gesture.enable(!this.disabled))},this.handleKeyboard=(A,t)=>{const{ensureValueInBounds:i}=this;let e=this.step;e=e>0?e:1,e/=this.max-this.min,t||(e*=-1),"A"===A?this.ratioA=L(0,this.ratioA+e,1):this.ratioB=L(0,this.ratioB+e,1),this.ionKnobMoveStart.emit({value:i(this.value)}),this.updateValue(),this.ionKnobMoveEnd.emit({value:i(this.value)})},this.onBlur=()=>{this.hasFocus&&(this.hasFocus=!1,this.ionBlur.emit(),this.emitStyle())},this.onFocus=()=>{this.hasFocus||(this.hasFocus=!0,this.ionFocus.emit(),this.emitStyle())}}debounceChanged(){this.ionChange=C(this.ionChange,this.debounce)}minChanged(){this.noUpdate||this.updateRatio()}maxChanged(){this.noUpdate||this.updateRatio()}activeBarStartChanged(){const{activeBarStart:A}=this;void 0!==A&&(A>this.max?(D(`Range: The value of activeBarStart (${A}) is greater than the max (${this.max}). Valid values are greater than or equal to the min value and less than or equal to the max value.`,this.el),this.activeBarStart=this.max):A<this.min&&(D(`Range: The value of activeBarStart (${A}) is less than the min (${this.min}). Valid values are greater than or equal to the min value and less than or equal to the max value.`,this.el),this.activeBarStart=this.min))}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled),this.emitStyle()}valueChanged(A){this.noUpdate||this.updateRatio(),A=this.ensureValueInBounds(A),this.ionChange.emit({value:A})}componentWillLoad(){this.rangeId=this.el.hasAttribute("id")?this.el.getAttribute("id"):"ion-r-"+ot++,this.inheritedAttributes=b(this.el)}componentDidLoad(){this.setupGesture(),this.didLoad=!0}connectedCallback(){this.updateRatio(),this.debounceChanged(),this.disabledChanged(),this.activeBarStartChanged(),this.didLoad&&this.setupGesture(),this.contentEl=M(this.el)}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}getValue(){const A=this.value||0;return this.dualKnobs?"object"==typeof A?A:{lower:0,upper:A}:"object"==typeof A?A.upper:A}emitStyle(){this.ionStyle.emit({interactive:!0,"interactive-disabled":this.disabled})}onStart(A){const{contentEl:t}=this;t&&(this.initialContentScrollY=K(t));const i=this.rect=this.rangeSlider.getBoundingClientRect(),e=A.currentX;let n=L(0,(e-i.left)/i.width,1);T(this.el)&&(n=1-n),this.pressedKnob=!this.dualKnobs||Math.abs(this.ratioA-n)<Math.abs(this.ratioB-n)?"A":"B",this.setFocus(this.pressedKnob),this.update(e),this.ionKnobMoveStart.emit({value:this.ensureValueInBounds(this.value)})}onMove(A){this.update(A.currentX)}onEnd(A){const{contentEl:t,initialContentScrollY:i}=this;t&&O(t,i),this.update(A.currentX),this.pressedKnob=void 0,this.ionKnobMoveEnd.emit({value:this.ensureValueInBounds(this.value)})}update(A){const t=this.rect;let i=L(0,(A-t.left)/t.width,1);T(this.el)&&(i=1-i),this.snaps&&(i=rt(nt(i,this.min,this.max,this.step),this.min,this.max)),"A"===this.pressedKnob?this.ratioA=i:this.ratioB=i,this.updateValue()}get valA(){return nt(this.ratioA,this.min,this.max,this.step)}get valB(){return nt(this.ratioB,this.min,this.max,this.step)}get ratioLower(){if(this.dualKnobs)return Math.min(this.ratioA,this.ratioB);const{activeBarStart:A}=this;return null==A?0:rt(A,this.min,this.max)}get ratioUpper(){return this.dualKnobs?Math.max(this.ratioA,this.ratioB):this.ratioA}updateRatio(){const A=this.getValue(),{min:t,max:i}=this;this.dualKnobs?(this.ratioA=rt(A.lower,t,i),this.ratioB=rt(A.upper,t,i)):this.ratioA=rt(A,t,i)}updateValue(){this.noUpdate=!0;const{valA:A,valB:t}=this;this.value=this.dualKnobs?{lower:Math.min(A,t),upper:Math.max(A,t)}:A,this.noUpdate=!1}setFocus(A){if(this.el.shadowRoot){const t=this.el.shadowRoot.querySelector("A"===A?".range-knob-a":".range-knob-b");t&&t.focus()}}render(){var A;const{min:t,max:e,step:r,el:o,handleKeyboard:s,pressedKnob:a,disabled:l,pin:c,ratioLower:h,ratioUpper:u,inheritedAttributes:d,rangeId:g,pinFormatter:f}=this;let{labelText:p}=v(o,g);null==p&&(p=d["aria-label"]);const B=w(this);let m=100*h+"%",b=100-100*u+"%";const C=T(this.el),F=C?"right":"left",U=A=>({[F]:A[F]});!1===this.dualKnobs&&(this.valA<(null!==(A=this.activeBarStart)&&void 0!==A?A:this.min)?(m=100*u+"%",b=100-100*h+"%"):(m=100*h+"%",b=100-100*u+"%"));const y={[F]:m,[C?"left":"right"]:b},k=[];if(this.snaps&&this.ticks)for(let A=t;A<=e;A+=r){const i=rt(A,t,e),n=Math.min(h,u),r=Math.max(h,u),o={ratio:i,active:i>=n&&i<=r};o[F]=100*i+"%",k.push(o)}return Q(!0,o,this.name,JSON.stringify(this.getValue()),l),i(n,{onFocusin:this.onFocus,onFocusout:this.onBlur,id:g,class:H(this.color,{[B]:!0,"in-item":I("ion-item",o),"range-disabled":l,"range-pressed":void 0!==a,"range-has-pin":c})},i("slot",{name:"start"}),i("div",{class:"range-slider",ref:A=>this.rangeSlider=A},k.map((A=>i("div",{style:U(A),role:"presentation",class:{"range-tick":!0,"range-tick-active":A.active},part:A.active?"tick-active":"tick"}))),i("div",{class:"range-bar",role:"presentation",part:"bar"}),i("div",{class:"range-bar range-bar-active",role:"presentation",style:y,part:"bar-active"}),et(C,{knob:"A",pressed:"A"===a,value:this.valA,ratio:this.ratioA,pin:c,pinFormatter:f,disabled:l,handleKeyboard:s,min:t,max:e,labelText:p}),this.dualKnobs&&et(C,{knob:"B",pressed:"B"===a,value:this.valB,ratio:this.ratioB,pin:c,pinFormatter:f,disabled:l,handleKeyboard:s,min:t,max:e,labelText:p})),i("slot",{name:"end"}))}get el(){return e(this)}static get watchers(){return{debounce:["debounceChanged"],min:["minChanged"],max:["maxChanged"],activeBarStart:["activeBarStartChanged"],disabled:["disabledChanged"],value:["valueChanged"]}}},et=(A,{knob:t,value:e,ratio:n,min:r,max:o,disabled:s,pressed:a,pin:l,handleKeyboard:c,labelText:h,pinFormatter:u})=>{const d=A?"right":"left";return i("div",{onKeyDown:A=>{const i=A.key;"ArrowLeft"===i||"ArrowDown"===i?(c(t,!1),A.preventDefault(),A.stopPropagation()):"ArrowRight"!==i&&"ArrowUp"!==i||(c(t,!0),A.preventDefault(),A.stopPropagation())},class:{"range-knob-handle":!0,"range-knob-a":"A"===t,"range-knob-b":"B"===t,"range-knob-pressed":a,"range-knob-min":e===r,"range-knob-max":e===o},style:(()=>{const A={};return A[d]=100*n+"%",A})(),role:"slider",tabindex:s?-1:0,"aria-label":h,"aria-valuemin":r,"aria-valuemax":o,"aria-disabled":s?"true":null,"aria-valuenow":e},l&&i("div",{class:"range-pin",role:"presentation",part:"pin"},u(e)),i("div",{class:"range-knob",role:"presentation",part:"knob"}))},nt=(A,t,i,e)=>{let n=(i-t)*A;return e>0&&(n=Math.round(n/e)*e+t),L(t,n,i)},rt=(A,t,i)=>L(0,(A-t)/(i-t),1);let ot=0;it.style={ios:":host{--knob-handle-size:calc(var(--knob-size) * 2);display:flex;position:relative;flex:3;align-items:center;font-family:var(--ion-font-family, inherit);user-select:none;z-index:2}:host(.range-disabled){pointer-events:none}::slotted(ion-label){flex:initial}::slotted(ion-icon[slot]){font-size:24px}.range-slider{position:relative;flex:1;width:100%;height:var(--height);contain:size layout style;cursor:grab;touch-action:pan-y}:host(.range-pressed) .range-slider{cursor:grabbing}.range-pin{position:absolute;background:var(--ion-color-base);color:var(--ion-color-contrast);text-align:center;box-sizing:border-box}.range-knob-handle{left:0;top:calc((var(--height) - var(--knob-handle-size)) / 2);margin-left:calc(0px - var(--knob-handle-size) / 2);position:absolute;width:var(--knob-handle-size);height:var(--knob-handle-size);text-align:center}[dir=rtl] .range-knob-handle,:host-context([dir=rtl]) .range-knob-handle{left:unset;right:unset;right:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.range-knob-handle{margin-left:unset;-webkit-margin-start:calc(0px - var(--knob-handle-size) / 2);margin-inline-start:calc(0px - var(--knob-handle-size) / 2)}}[dir=rtl] .range-knob-handle,:host-context([dir=rtl]) .range-knob-handle{left:unset}.range-knob-handle:active,.range-knob-handle:focus{outline:none}.range-bar{border-radius:var(--bar-border-radius);left:0;top:calc((var(--height) - var(--bar-height)) / 2);position:absolute;width:100%;height:var(--bar-height);background:var(--bar-background);pointer-events:none}[dir=rtl] .range-bar,:host-context([dir=rtl]) .range-bar{left:unset;right:unset;right:0}[dir=rtl] .range-bar,:host-context([dir=rtl]) .range-bar{left:unset}.range-knob{border-radius:var(--knob-border-radius);left:calc(50% - var(--knob-size) / 2);top:calc(50% - var(--knob-size) / 2);position:absolute;width:var(--knob-size);height:var(--knob-size);background:var(--knob-background);box-shadow:var(--knob-box-shadow);z-index:2;pointer-events:none}[dir=rtl] .range-knob,:host-context([dir=rtl]) .range-knob{left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}[dir=rtl] .range-knob,:host-context([dir=rtl]) .range-knob{left:unset}:host(.range-pressed) .range-bar-active{will-change:left, right}:host(.in-item){width:100%}:host(.in-item) ::slotted(ion-label){align-self:center}:host{--knob-border-radius:50%;--knob-background:#ffffff;--knob-box-shadow:0 3px 1px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.13), 0 0 0 1px rgba(0, 0, 0, 0.02);--knob-size:28px;--bar-height:2px;--bar-background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1);--bar-background-active:var(--ion-color-primary, #3880ff);--bar-border-radius:0;--height:42px;padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host(.ion-color) .range-bar-active,:host(.ion-color) .range-tick-active{background:var(--ion-color-base)}::slotted([slot=start]){margin-left:0;margin-right:16px;margin-top:0;margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}}::slotted([slot=end]){margin-left:16px;margin-right:0;margin-top:0;margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}}:host(.range-has-pin){padding-top:20px}.range-bar-active{bottom:0;width:auto;background:var(--bar-background-active)}.range-tick{margin-left:-1px;border-radius:0;position:absolute;top:18px;width:2px;height:8px;background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1);pointer-events:none}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.range-tick{margin-left:unset;-webkit-margin-start:-1px;margin-inline-start:-1px}}.range-tick-active{background:var(--bar-background-active)}.range-pin{transform:translate3d(0, 28px, 0) scale(0.01);padding-left:8px;padding-right:8px;padding-top:8px;padding-bottom:8px;display:inline-block;position:relative;top:-20px;min-width:28px;transition:transform 120ms ease;background:transparent;color:var(--ion-text-color, #000);font-size:12px;text-align:center}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.range-pin{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.range-knob-pressed .range-pin{transform:translate3d(0, 0, 0) scale(1)}:host(.range-disabled){opacity:0.5}",md:':host{--knob-handle-size:calc(var(--knob-size) * 2);display:flex;position:relative;flex:3;align-items:center;font-family:var(--ion-font-family, inherit);user-select:none;z-index:2}:host(.range-disabled){pointer-events:none}::slotted(ion-label){flex:initial}::slotted(ion-icon[slot]){font-size:24px}.range-slider{position:relative;flex:1;width:100%;height:var(--height);contain:size layout style;cursor:grab;touch-action:pan-y}:host(.range-pressed) .range-slider{cursor:grabbing}.range-pin{position:absolute;background:var(--ion-color-base);color:var(--ion-color-contrast);text-align:center;box-sizing:border-box}.range-knob-handle{left:0;top:calc((var(--height) - var(--knob-handle-size)) / 2);margin-left:calc(0px - var(--knob-handle-size) / 2);position:absolute;width:var(--knob-handle-size);height:var(--knob-handle-size);text-align:center}[dir=rtl] .range-knob-handle,:host-context([dir=rtl]) .range-knob-handle{left:unset;right:unset;right:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.range-knob-handle{margin-left:unset;-webkit-margin-start:calc(0px - var(--knob-handle-size) / 2);margin-inline-start:calc(0px - var(--knob-handle-size) / 2)}}[dir=rtl] .range-knob-handle,:host-context([dir=rtl]) .range-knob-handle{left:unset}.range-knob-handle:active,.range-knob-handle:focus{outline:none}.range-bar{border-radius:var(--bar-border-radius);left:0;top:calc((var(--height) - var(--bar-height)) / 2);position:absolute;width:100%;height:var(--bar-height);background:var(--bar-background);pointer-events:none}[dir=rtl] .range-bar,:host-context([dir=rtl]) .range-bar{left:unset;right:unset;right:0}[dir=rtl] .range-bar,:host-context([dir=rtl]) .range-bar{left:unset}.range-knob{border-radius:var(--knob-border-radius);left:calc(50% - var(--knob-size) / 2);top:calc(50% - var(--knob-size) / 2);position:absolute;width:var(--knob-size);height:var(--knob-size);background:var(--knob-background);box-shadow:var(--knob-box-shadow);z-index:2;pointer-events:none}[dir=rtl] .range-knob,:host-context([dir=rtl]) .range-knob{left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}[dir=rtl] .range-knob,:host-context([dir=rtl]) .range-knob{left:unset}:host(.range-pressed) .range-bar-active{will-change:left, right}:host(.in-item){width:100%}:host(.in-item) ::slotted(ion-label){align-self:center}:host{--knob-border-radius:50%;--knob-background:var(--bar-background-active);--knob-box-shadow:none;--knob-size:18px;--bar-height:2px;--bar-background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.26);--bar-background-active:var(--ion-color-primary, #3880ff);--bar-border-radius:0;--height:42px;--pin-background:var(--ion-color-primary, #3880ff);--pin-color:var(--ion-color-primary-contrast, #fff);padding-left:14px;padding-right:14px;padding-top:8px;padding-bottom:8px;font-size:12px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:14px;padding-inline-start:14px;-webkit-padding-end:14px;padding-inline-end:14px}}:host(.ion-color) .range-bar{background:rgba(var(--ion-color-base-rgb), 0.26)}:host(.ion-color) .range-bar-active,:host(.ion-color) .range-knob,:host(.ion-color) .range-pin,:host(.ion-color) .range-pin::before,:host(.ion-color) .range-tick{background:var(--ion-color-base);color:var(--ion-color-contrast)}::slotted([slot=start]){margin-left:0;margin-right:14px;margin-top:0;margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:14px;margin-inline-end:14px}}::slotted([slot=end]){margin-left:14px;margin-right:0;margin-top:0;margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:14px;margin-inline-start:14px;-webkit-margin-end:0;margin-inline-end:0}}:host(.range-has-pin){padding-top:28px}.range-bar-active{bottom:0;width:auto;background:var(--bar-background-active)}.range-knob{transform:scale(0.67);transition-duration:120ms;transition-property:transform, background-color, border;transition-timing-function:ease;z-index:2}.range-tick{position:absolute;top:calc((var(--height) - var(--bar-height)) / 2);width:var(--bar-height);height:var(--bar-height);background:var(--bar-background-active);z-index:1;pointer-events:none}.range-tick-active{background:transparent}.range-pin{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;border-radius:50%;transform:translate3d(0, 0, 0) scale(0.01);display:inline-block;position:relative;min-width:28px;height:28px;transition:transform 120ms ease, background 120ms ease;background:var(--pin-background);color:var(--pin-color);text-align:center}.range-pin::before{left:50%;top:3px;margin-left:-13px;border-radius:50% 50% 50% 0;position:absolute;width:26px;height:26px;transform:rotate(-45deg);transition:background 120ms ease;background:var(--pin-background);content:"";z-index:-1}[dir=rtl] .range-pin::before,:host-context([dir=rtl]) .range-pin::before{left:unset;right:unset;right:50%}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.range-pin::before{margin-left:unset;-webkit-margin-start:-13px;margin-inline-start:-13px}}[dir=rtl] .range-pin::before,:host-context([dir=rtl]) .range-pin::before{left:unset}.range-knob-pressed .range-pin{transform:translate3d(0, -24px, 0) scale(1)}:host(:not(.range-has-pin)) .range-knob-pressed .range-knob{transform:scale(1)}:host(.range-disabled) .range-bar-active,:host(.range-disabled) .range-bar,:host(.range-disabled) .range-tick{background-color:var(--ion-color-step-250, #bfbfbf)}:host(.range-disabled) .range-knob{transform:scale(0.55);outline:5px solid #fff;background-color:var(--ion-color-step-250, #bfbfbf)}'};const st=class{constructor(A){t(this,A),this.type="bounded"}async addRipple(A,t){return new Promise((i=>{s((()=>{const e=this.el.getBoundingClientRect(),n=e.width,r=e.height,o=Math.sqrt(n*n+r*r),s=Math.max(r,n),l=this.unbounded?s:o+lt,c=Math.floor(s*ct),h=l/c;let u=A-e.left,d=t-e.top;this.unbounded&&(u=.5*n,d=.5*r);const g=u-.5*c,f=d-.5*c,p=.5*n-u,w=.5*r-d;a((()=>{const A=document.createElement("div");A.classList.add("ripple-effect");const t=A.style;t.top=f+"px",t.left=g+"px",t.width=t.height=c+"px",t.setProperty("--final-scale",`${h}`),t.setProperty("--translate-end",`${p}px, ${w}px`),(this.el.shadowRoot||this.el).appendChild(A),setTimeout((()=>{i((()=>{at(A)}))}),325)}))}))}))}get unbounded(){return"unbounded"===this.type}render(){const A=w(this);return i(n,{role:"presentation",class:{[A]:!0,unbounded:this.unbounded}})}get el(){return e(this)}},at=A=>{A.classList.add("fade-out"),setTimeout((()=>{A.remove()}),200)},lt=10,ct=.5;st.style=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:strict;pointer-events:none}:host(.unbounded){contain:layout size style}.ripple-effect{border-radius:50%;position:absolute;background-color:currentColor;color:inherit;contain:strict;opacity:0;animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;will-change:transform, opacity;pointer-events:none}.fade-out{transform:translate(var(--translate-end)) scale(var(--final-scale, 1));animation:150ms fadeOutAnimation forwards}@keyframes rippleAnimation{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:scale(1)}to{transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@keyframes fadeInAnimation{from{animation-timing-function:linear;opacity:0}to{opacity:0.16}}@keyframes fadeOutAnimation{from{animation-timing-function:linear;opacity:0.16}to{opacity:0}}";const ht=class{constructor(A){t(this,A)}render(){return i(n,{class:w(this)},i("slot",null))}};ht.style=":host{display:flex;flex-wrap:wrap}";const ut=class{constructor(A){t(this,A),this.paused=!1}getName(){const A=this.name||B.get("spinner"),t=w(this);return A||("ios"===t?"lines":"circular")}render(){const A=this,t=w(A),e=A.getName(),r=P[e]||P.lines,o="number"==typeof A.duration&&A.duration>10?A.duration:r.dur,s=[];if(void 0!==r.circles)for(let A=0;A<r.circles;A++)s.push(dt(r,o,A,r.circles));else if(void 0!==r.lines)for(let A=0;A<r.lines;A++)s.push(gt(r,o,A,r.lines));return i(n,{class:H(A.color,{[t]:!0,[`spinner-${e}`]:!0,"spinner-paused":A.paused||B.getBoolean("_testing")}),role:"progressbar",style:r.elmDuration?{animationDuration:o+"ms"}:{}},s)}},dt=(A,t,e,n)=>{const r=A.fn(t,e,n);return r.style["animation-duration"]=t+"ms",i("svg",{viewBox:r.viewBox||"0 0 64 64",style:r.style},i("circle",{transform:r.transform||"translate(32,32)",cx:r.cx,cy:r.cy,r:r.r,style:A.elmDuration?{animationDuration:t+"ms"}:{}}))},gt=(A,t,e,n)=>{const r=A.fn(t,e,n);return r.style["animation-duration"]=t+"ms",i("svg",{viewBox:r.viewBox||"0 0 64 64",style:r.style},i("line",{transform:"translate(32,32)",y1:r.y1,y2:r.y2}))};ut.style=":host{display:inline-block;position:relative;width:28px;height:28px;color:var(--color);user-select:none}:host(.ion-color){color:var(--ion-color-base)}svg{transform-origin:center;position:absolute;top:0;left:0;width:100%;height:100%;transform:translateZ(0)}[dir=rtl] svg,:host-context([dir=rtl]) svg{transform-origin:calc(100% - center)}:host(.spinner-lines) line,:host(.spinner-lines-small) line{stroke-width:7px}:host(.spinner-lines-sharp) line,:host(.spinner-lines-sharp-small) line{stroke-width:4px}:host(.spinner-lines) line,:host(.spinner-lines-small) line,:host(.spinner-lines-sharp) line,:host(.spinner-lines-sharp-small) line{stroke-linecap:round;stroke:currentColor}:host(.spinner-lines) svg,:host(.spinner-lines-small) svg,:host(.spinner-lines-sharp) svg,:host(.spinner-lines-sharp-small) svg{animation:spinner-fade-out 1s linear infinite}:host(.spinner-bubbles) svg{animation:spinner-scale-out 1s linear infinite;fill:currentColor}:host(.spinner-circles) svg{animation:spinner-fade-out 1s linear infinite;fill:currentColor}:host(.spinner-crescent) circle{fill:transparent;stroke-width:4px;stroke-dasharray:128px;stroke-dashoffset:82px;stroke:currentColor}:host(.spinner-crescent) svg{animation:spinner-rotate 1s linear infinite}:host(.spinner-dots) circle{stroke-width:0;fill:currentColor}:host(.spinner-dots) svg{animation:spinner-dots 1s linear infinite}:host(.spinner-circular) svg{animation:spinner-circular linear infinite}:host(.spinner-circular) circle{animation:spinner-circular-inner ease-in-out infinite;stroke:currentColor;stroke-dasharray:80px, 200px;stroke-dashoffset:0px;stroke-width:5.6;fill:none}:host(.spinner-paused),:host(.spinner-paused) svg,:host(.spinner-paused) circle{animation-play-state:paused}@keyframes spinner-fade-out{0%{opacity:1}100%{opacity:0}}@keyframes spinner-scale-out{0%{transform:scale(1, 1)}100%{transform:scale(0, 0)}}@keyframes spinner-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes spinner-dots{0%{transform:scale(1, 1);opacity:0.9}50%{transform:scale(0.4, 0.4);opacity:0.3}100%{transform:scale(1, 1);opacity:0.9}}@keyframes spinner-circular{100%{transform:rotate(360deg)}}@keyframes spinner-circular-inner{0%{stroke-dasharray:1px, 200px;stroke-dashoffset:0px}50%{stroke-dasharray:100px, 200px;stroke-dashoffset:-15px}100%{stroke-dasharray:100px, 200px;stroke-dashoffset:-125px}}";const ft=class{constructor(A){t(this,A)}render(){const A=w(this);return i(n,{class:H(this.color,{[A]:!0})},i("slot",null))}};ft.style=":host(.ion-color){color:var(--ion-color-base)}";const pt=class{constructor(A){t(this,A),this.round=!1,this.primary=!1}render(){return void 0!==this.href?/^\/course/.test(this.href)?i("stencil-route-link",{url:this.href},i("slot",null)):i("a",{href:this.href},i("slot",null)):i("button",null,i("slot",null))}};pt.style="sparkle-button{background-color:rgba(var(--ion-color-sparkle-rgb), var(--bg-alpha, 0.06));border-radius:6px;color:var(--accent-color);display:inline-block;font-weight:600;white-space:nowrap;box-shadow:0 1px 3px rgba(0,0,0,.1)}sparkle-button a,sparkle-button button{color:inherit;display:inline-block;font-size:inherit;font-weight:inherit;padding:0.75em 1.5em}sparkle-button button{appearance:none;background:none;border:none;line-height:inherit}sparkle-button svg{fill:currentColor;height:1em;margin-bottom:-0.125em;width:1em}sparkle-button[round]{border-radius:2em}sparkle-button[primary]{background-color:rgba(var(--ion-color-sparkle-rgb));color:var(--ion-color-sparkle-contrast)}@media (hover: hover){sparkle-button:hover{--bg-alpha:0.08}sparkle-button:active{--bg-alpha:0.1}}";const wt=class{constructor(A){t(this,A),this.activeIndex=0,this.rotationTime=6e3}hostData(){return{class:{"Card-with-image":void 0!==this.img,"Card-without-image":void 0===this.img,"Card-size-lg":"lg"===this.size}}}componentWillLoad(){void 0===this.iconset&&(this.activeIndex=0,this.rotationTime=4e3+2e3*Math.random(),setInterval(this.tic.bind(this),this.rotationTime),setTimeout(this.tic.bind(this),this.rotationTime/3))}componentWillUnload(){clearInterval(this.interval)}tic(){if(void 0!==this.iconset&&this.activeIndex>=this.iconset.split(",").length-1)return this.activeIndex=0;this.activeIndex++}__stencil_render(){const A=void 0===this.href,t=void 0!==this.href&&/^http/.test(this.href),e="undefined"===this.header?null:i("header",{class:"Card-header"},this.header," ",t?i(u,null):null),n=this.hoverIcon||this.icon,r=[this.img&&i("img",{src:this.img,class:"Card-image"}),i("div",{class:"Card-container"},this.icon&&i("img",{src:this.icon,class:"Card-icon Card-icon-default"}),n&&i("img",{src:n,class:"Card-icon Card-icon-hover"}),this.ionicon&&i("ion-icon",{name:this.ionicon,class:"Card-ionicon"}),this.iconset&&i("div",{class:"Card-iconset__container"},this.iconset.split(",").map(((A,t)=>i("img",{src:A,class:"Card-icon "+(t===this.activeIndex?"Card-icon--active":""),"data-index":t})))),e,i("div",{class:"Card-content"},i("slot",null)))];return A?i("div",{class:"Card"},r):t?i("a",{class:"Card",href:this.href},r):i("stencil-route-link",{url:this.href,anchorClass:"Card"},r)}render(){return i(n,this.hostData(),this.__stencil_render())}};wt.style="sparkle-card{display:block;font-size:12px;max-width:30em}.Card{background-color:var(--background);border-radius:4px;box-shadow:0px 0.175em 0.5em rgba(2, 8, 20, 0.1), 0px 0.085em 0.175em rgba(2, 8, 20, 0.08);color:var(--text-color--light);display:flex;flex-direction:column;font-size:inherit;font-weight:normal;height:100%;justify-content:flex-start;line-height:1.6;transition:box-shadow 150ms ease, transform 150ms ease;width:100%;overflow:hidden}.Card-with-image{grid-row:span 2}.Card-without-image{font-size:12px}.Card-container{padding:1.65em 2em 1.65em}.Card-image{width:100%;height:auto}.Card-icon,.Card-iconset__container{width:48px;height:48px;margin-bottom:1.2em;border-radius:50%;object-fit:cover;background:rgb(246, 248, 251)}.Card-icon-hover{display:none}.Card-iconset__container{position:relative}.Card-iconset__container .Card-icon{position:absolute;opacity:0;transition:0.8s opacity}.Card-iconset__container .Card-icon--active{opacity:1}.Card-ionicon{width:48px;height:48px;float:left;margin-right:1em}@media (hover: hover){.Card[href]:hover{box-shadow:0 0.35em 1.175em rgba(2, 8, 20, 0.1), 0 0.175em 0.5em rgba(2, 8, 20, 0.08);transform:translateY(-1px)}.Card[href]:hover .Card-icon-default{display:none}.Card[href]:hover .Card-icon-hover{display:block}}.Card-content>*:first-child{margin-top:0}.Card-content>*:last-child{margin-bottom:0}.Card-content>*{margin:0 0 0.65em}.Card-header{color:var(--text-color--dark);font-size:1.4em;font-weight:500;line-height:1.4;margin-bottom:0.45em}.Card-without-image .Card-header{margin-bottom:0.3em}.Card-header>svg{fill:currentColor;height:1em;margin-bottom:-0.125em;width:auto}.Card-size-lg{font-size:14px}.Card-size-lg .Card-icon,.Card-size-lg .Card-ionicon,.Card-size-lg .Card-iconset__container{width:80px;height:80px}.Card-size-lg.Card-without-image .Card-header{font-size:20px}sparkle-card.disabled,sparkle-card[disabled]{position:relative}sparkle-card.disabled::after,sparkle-card[disabled]::after{position:absolute;top:0;right:0;left:0;bottom:0;background:rgba(232, 232, 232, 0.5);pointer-events:none;content:''}aside sparkle-card{max-width:240px}aside .Card-container{display:grid;grid-template-columns:minmax(0, max-content) 1fr;grid-template-rows:minmax(0, min-content);grid-template-areas:'icon title'\r\n 'icon body'}aside .Card-icon{width:32px;height:32px;margin-right:16px;margin-bottom:0;grid-area:icon}aside .Card-header{grid-area:title}aside .Card-header::after{background-image:url('/docs/assets/img/new-tab.svg');display:inline-block;height:13px;width:13px;background-size:13px 13px;margin-left:4px;content:''}aside .Card-content{grid-area:body;max-height:42px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}aside .Card-icon+.Card-content{margin-top:-6px}.markdown-content p sparkle-card{margin-top:1em}";const Bt=class{constructor(A){t(this,A)}render(){return i("slot",null)}};function mt(A){j.injectProps(A,["history","location"])}Bt.style="sparkle-cards{display:grid;font-size:12px;grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));grid-gap:1.35rem}sparkle-cards>sparkle-card{font-size:inherit;max-width:none}sparkle-cards>sparkle-card.tall{grid-row:span 2}sparkle-cards>sparkle-card.wide{grid-column:span 2}sparkle-cards.prioritized>sparkle-card:nth-child(-n+5){font-size:1.25em}sparkle-cards.prioritized>sparkle-card:first-child{grid-row:span 2}sparkle-cards.max-measure>sparkle-card{max-width:50%}";const bt=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g"),vt=A=>A.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),Qt=A=>A.replace(/([=!:$/()])/g,"\\$1"),Ct=A=>A&&A.sensitive?"":"i",Ft=(A,t,i)=>{for(var e=(i=i||{}).strict,n=!1!==i.end,r=vt(i.delimiter||"/"),o=i.delimiters||"./",s=[].concat(i.endsWith||[]).map(vt).concat("$").join("|"),a="",l=!1,c=0;c<A.length;c++){var h=A[c];if("string"==typeof h)a+=vt(h),l=c===A.length-1&&o.indexOf(h[h.length-1])>-1;else{var u=vt(h.prefix||""),d=h.repeat?"(?:"+h.pattern+")(?:"+u+"(?:"+h.pattern+"))*":h.pattern;t&&t.push(h),a+=h.optional?h.partial?u+"("+d+")?":"(?:"+u+"("+d+"))?":u+"("+d+")"}}return n?(e||(a+="(?:"+r+")?"),a+="$"===s?"$":"(?="+s+")"):(e||(a+="(?:"+r+"(?="+s+"))?"),l||(a+="(?="+r+"|"+s+")")),new RegExp("^"+a,Ct(i))},Ut=(A,t,i)=>A instanceof RegExp?((A,t)=>{if(!t)return A;var i=A.source.match(/\((?!\?)/g);if(i)for(var e=0;e<i.length;e++)t.push({name:e,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,pattern:null});return A})(A,t):Array.isArray(A)?((A,t,i)=>{for(var e=[],n=0;n<A.length;n++)e.push(Ut(A[n],t,i).source);return new RegExp("(?:"+e.join("|")+")",Ct(i))})(A,t,i):((A,t,i)=>Ft(((A,t)=>{for(var i,e=[],n=0,r=0,o="",s=t&&t.delimiter||"/",a=t&&t.delimiters||"./",l=!1;null!==(i=bt.exec(A));){var c=i[0],h=i[1],u=i.index;if(o+=A.slice(r,u),r=u+c.length,h)o+=h[1],l=!0;else{var d="",g=A[r],f=i[2],p=i[3],w=i[4],B=i[5];if(!l&&o.length){var m=o.length-1;a.indexOf(o[m])>-1&&(d=o[m],o=o.slice(0,m))}o&&(e.push(o),o="",l=!1);var b=d||s,v=p||w;e.push({name:f||n++,prefix:d,delimiter:b,optional:"?"===B||"*"===B,repeat:"+"===B||"*"===B,partial:""!==d&&void 0!==g&&g!==d,pattern:v?Qt(v):"[^"+vt(b)+"]+?"})}}return(o||r<A.length)&&e.push(o+A.substr(r)),e})(A,i),t,i))(A,t,i),yt=(A,t)=>new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(A),kt=(A,t)=>yt(A,t)?A.substr(t.length):A,xt=A=>"/"===A.charAt(A.length-1)?A.slice(0,-1):A,Lt=A=>"/"===A.charAt(0)?A:"/"+A,Et=A=>"/"===A.charAt(0)?A.substr(1):A,Ht=A=>{const{pathname:t,search:i,hash:e}=A;let n=t||"/";return i&&"?"!==i&&(n+="?"===i.charAt(0)?i:`?${i}`),e&&"#"!==e&&(n+="#"===e.charAt(0)?e:`#${e}`),n},It=A=>"/"===A.charAt(0),Nt=A=>Math.random().toString(36).substr(2,A),St=(A,t)=>{for(let i=t,e=i+1,n=A.length;e<n;i+=1,e+=1)A[i]=A[e];A.pop()},Dt=(A,t)=>{if(A===t)return!0;if(null==A||null==t)return!1;if(Array.isArray(A))return Array.isArray(t)&&A.length===t.length&&A.every(((A,i)=>Dt(A,t[i])));const i=typeof A;if(i!==typeof t)return!1;if("object"===i){const i=A.valueOf(),e=t.valueOf();if(i!==A||e!==t)return Dt(i,e);const n=Object.keys(A),r=Object.keys(t);return n.length===r.length&&n.every((i=>Dt(A[i],t[i])))}return!1},Mt=(A,t,i,e)=>{let n;"string"==typeof A?(n=(A=>{let t=A||"/",i="",e="";const n=t.indexOf("#");-1!==n&&(e=t.substr(n),t=t.substr(0,n));const r=t.indexOf("?");return-1!==r&&(i=t.substr(r),t=t.substr(0,r)),{pathname:t,search:"?"===i?"":i,hash:"#"===e?"":e,query:{},key:""}})(A),void 0!==t&&(n.state=t)):(n=Object.assign({pathname:""},A),n.search&&"?"!==n.search.charAt(0)&&(n.search="?"+n.search),n.hash&&"#"!==n.hash.charAt(0)&&(n.hash="#"+n.hash),void 0!==t&&void 0===n.state&&(n.state=t));try{n.pathname=decodeURI(n.pathname)}catch(A){throw A instanceof URIError?new URIError('Pathname "'+n.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):A}var r;return n.key=i,e?n.pathname?"/"!==n.pathname.charAt(0)&&(n.pathname=((A,t="")=>{let i,e=t&&t.split("/")||[],n=0;const r=A&&A.split("/")||[],o=A&&It(A),s=t&&It(t),a=o||s;if(A&&It(A)?e=r:r.length&&(e.pop(),e=e.concat(r)),!e.length)return"/";if(e.length){const A=e[e.length-1];i="."===A||".."===A||""===A}else i=!1;for(let A=e.length;A>=0;A--){const t=e[A];"."===t?St(e,A):".."===t?(St(e,A),n++):n&&(St(e,A),n--)}if(!a)for(;n--;n)e.unshift("..");!a||""===e[0]||e[0]&&It(e[0])||e.unshift("");let l=e.join("/");return i&&"/"!==l.substr(-1)&&(l+="/"),l})(n.pathname,e.pathname)):n.pathname=e.pathname:n.pathname||(n.pathname="/"),n.query=(r=n.search||"")?(/^[?#]/.test(r)?r.slice(1):r).split("&").reduce(((A,t)=>{let[i,e]=t.split("=");return A[i]=e?decodeURIComponent(e.replace(/\+/g," ")):"",A}),{}):{},n};let Kt=0;const Ot={},Tt=(A,t={})=>{"string"==typeof t&&(t={path:t});const{path:i="/",exact:e=!1,strict:n=!1}=t,{re:r,keys:o}=((A,t)=>{const i=`${t.end}${t.strict}`,e=Ot[i]||(Ot[i]={}),n=JSON.stringify(A);if(e[n])return e[n];const r=[],o={re:Ut(A,r,t),keys:r};return Kt<1e4&&(e[n]=o,Kt+=1),o})(i,{end:e,strict:n}),s=r.exec(A);if(!s)return null;const[a,...l]=s,c=A===a;return e&&!c?null:{path:i,url:"/"===i&&""===a?"/":a,isExact:c,params:o.reduce(((A,t,i)=>(A[t.name]=l[i],A)),{})}},Pt=class{constructor(A){t(this,A),this.pageChanged=r(this,"pageChanged",7),this.history=null,this.tocPath="/assets/content/toc.json",this.quizPath="/assets/quiz.json",this.config={appUrl:"http://localhost:3333",globalAssetsUrl:"http://localhost:3333/assets",apiUrl:"https://localhost:44369/",quizPath:this.quizPath,tocPath:this.tocPath,menu:{showRomanNumber:!0,showModuleIndex:!0,showSessionIndex:!0},prod:!0,courseId:1},this.isMenuToggled=!1,this.setHistory=({history:A})=>{this.history||(this.history=A,this.history.listen(this.newPage.bind(this)))},this.toggleMenu=()=>{this.isMenuToggled=!this.isMenuToggled},this.handlePageClick=()=>{this.isSmallViewport()&&this.isMenuToggled&&(this.isMenuToggled=!1)}}newPage(A){this.pageChanged.emit(A)}lockScroll(A){this.isSmallViewport()&&document.body.classList.toggle("scroll-lock",A)}async componentWillLoad(){q({sparkle:Object.assign({},this.config)}),this.tocData=await z.getInstance().loadJsonFile(this.tocPath)}isSmallViewport(){return matchMedia&&matchMedia("(max-width: 768px)").matches}async toggleStudentSidebar(){var A=document.getElementById("onlineStudents");await A.show()}renderPage(A){return i("stencil-route",{url:"/"+A,routeRender:()=>[this.renderHeaderAndMenu(),i("sparkle-page",{history:this.history,path:""},"login"==A&&i("sparkle-login",null),"signup"==A&&i("sparkle-signup",{history:this.history}),"forgot-password"==A&&i("sparkle-forgot-password",{history:this.history}),"reset-password"==A&&i("sparkle-reset-password",{history:this.history}))]})}renderPrivatePage(A){return i(G,{url:"/"+A,render:()=>[this.renderHeaderAndMenu(),i("sparkle-page",{history:this.history,path:""},"profile"==A&&i("sparkle-user-profile",null),"enrollment"==A&&i("sparkle-user-enrollment",null),"home/my-mood"==A&&i("sparkle-mood",{history:this.history}),"home/my-health"==A&&i("sparkle-health",{history:this.history}),"home/my-goals"==A&&i("sparkle-goals",null),"home/great-white-wall"==A&&i("sparkle-gww",null))]})}renderHeaderAndMenu(){return[this.renderHeader(),i("sparkle-menu",{toc:this.tocData,config:this.config.menu,toggleClickFn:this.toggleMenu})]}renderHeader(){return[i("sparkle-header",{courseName:this.tocData.name,toggleClickFn:this.toggleMenu,signoutClickFn:this.signout,authUser:J.state.isAuthenticated,imageUrl:$.state.user.ProfileImage},this.renderLogo())]}async signout(){await R.getInstance().signOut(),this.history.replace("/login",{})}renderLogo(){return i("a",{slot:"logo",href:"https://girlsinclearning.com/",target:"_blank"},i("img",{class:"girls-inc-logo",src:"/assets/img/logo-primary.png"}))}getFirstLessonUrl(){if(this.tocData){let A=this.tocData.courseModules[0],t=A.sessions[0];return"/course/"+A.urlName+"/"+t.urlName+"/"+t.pages[0].urlName}return"/home"}render(){return i("sparkle-root",{config:this.config},i("stencil-router",{class:{Layout:!0,"is-menu-toggled":this.isMenuToggled}},i("stencil-route",{style:{display:"none"},routeRender:this.setHistory}),i("stencil-route-switch",{scrollTopOffset:0},i("stencil-route",{url:"/",exact:!0,routeRender:()=>i("stencil-router-redirect",{url:this.getFirstLessonUrl()})}),i("stencil-route",{url:"/unauthorized",routeRender:()=>[this.renderHeaderAndMenu(),i("sparkle-unauthorized",null)]}),i("stencil-route",{url:"/course/:page*",routeRender:A=>[this.renderHeaderAndMenu(),i("sparkle-page",{history:this.history,path:`/course/${A.match.params.page||"index"}.json`,onClick:this.handlePageClick})]}),i("stencil-route",{url:"/presentation/course/:page*",routeRender:A=>i("sparkle-page",{history:this.history,presentation:!0,path:`/course/${A.match.params.page||"index"}.json`,onClick:this.handlePageClick})}),i("stencil-route",{url:"/presentation/teacher/course/:page*",routeRender:A=>[i("sparkle-facilitator-header",{courseName:this.tocData.name,toggleStudentClickFn:this.toggleStudentSidebar},this.renderLogo()),i("sparkle-facilitator-page",{notesPath:`/course/${A.match.params.page||"index"}-notes.json`,path:`/course/${A.match.params.page||"index"}.json`,onClick:this.handlePageClick})]}),this.renderPrivatePage("home/my-mood"),this.renderPrivatePage("home/my-health"),this.renderPrivatePage("home/my-goals"),this.renderPrivatePage("home/great-white-wall"),i(G,{url:"/home/:page*",render:A=>[this.renderHeaderAndMenu(),i("sparkle-page",{history:this.history,path:`/course/home/${A.match.params.page||"index"}.json`,onClick:this.handlePageClick})]}),this.renderPage("login"),this.renderPage("signup"),this.renderPage("forgot-password"),this.renderPage("reset-password"),this.renderPrivatePage("profile"),this.renderPrivatePage("enrollment"))))}static get watchers(){return{isMenuToggled:["lockScroll"]}}};mt(Pt),Pt.style=":host{display:block}";const jt=class{constructor(A){t(this,A),this.align="left",this.isOpen=!1}handleClick(A){A.target instanceof Node&&this.el.contains(A.target)||this.close()}handleKeyup(A){"Enter"===A.key&&this.toggle(),"Escape"===A.key&&this.close()}async close(){this.isOpen=!1}async open(){this.isOpen=!0}async toggle(){this.isOpen=!this.isOpen}hostData(){return{tabindex:"0",class:{Dropdown:!0,[`Dropdown--${this.align}`]:!0,"is-open":this.isOpen}}}__stencil_render(){const A=this.icon;return[i("button",{tabindex:"-1",class:"Dropdown-button","aria-haspopup":"menu","aria-expanded":this.isOpen?"true":"false",onClick:this.toggle.bind(this)},i("span",{class:"Dropdown-button-label"},this.label),A?i(A,{class:"Dropdown-icon"}):null,this.image?i("img",{class:"Dropdown-image",src:this.image}):null,i(d,{class:"Dropdown-arrow"})),i("div",{role:"menu",class:"Dropdown-panel"},i("slot",null))]}get el(){return e(this)}render(){return i(n,this.hostData(),this.__stencil_render())}};jt.style=".Dropdown{display:inline-block;position:relative;z-index:1}.Dropdown-button{appearance:none;background:none;border:none;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;padding:initial;white-space:nowrap;display:flex}.Dropdown-button .Dropdown-icon{height:14px;width:22px;fill:#ced6e0}.Dropdown-button .Dropdown-icon+.Dropdown-arrow{margin-left:0px;fill:#ced6e0;vertical-align:2px}.Dropdown:focus,.Dropdown-button:focus{outline:none}.Dropdown-button:hover{cursor:pointer}.Dropdown-arrow{fill:currentColor;height:0.8em;margin-bottom:-0.0875em;width:0.8em;margin-left:0.8em}.Dropdown.is-open .Dropdown-arrow{transform:rotate(180deg)}.Dropdown-panel{background-color:var(--background);border-radius:6px;border:none;box-shadow:0px 4px 12px 0px rgba(0, 0, 0, 0.08), 0px 2px 4px 0px rgba(0, 0, 0, 0.08);display:none;min-width:100%;overflow:hidden;pointer-events:none;position:absolute;top:100%;visibility:hidden}.Dropdown.is-open .Dropdown-panel{display:initial;pointer-events:auto;visibility:visible}.Dropdown--left .Dropdown-panel{left:0}.Dropdown--right .Dropdown-panel{right:0}.Dropdown--center .Dropdown-panel{left:50%;transform:translateX(-50%)}.Dropdown-panel a{display:flex;justify-content:space-between;padding:0.5em 1em}.Dropdown-panel svg{height:1em;width:1em;margin-left:4px}@media (hover: hover){.Dropdown-panel a:hover{background-color:rgba(0, 0, 0, 0.025)}}.Dropdown-panel>section{padding:0.5em 0}.Dropdown-panel>section:not(:last-child){border-bottom:solid 1px var(--line-rule-color)}.Dropdown-image{height:36px;width:36px;border-radius:50%}";const qt=(A,t)=>{const i=[];for(let e=0;e<t.length;e++){let n=t[e];if(0===e&&"string"==typeof n&&Rt.includes(n.toLowerCase().trim()))n="template";else if(1===e&&n){const A={};Object.keys(n).forEach((t=>{const i=t.toLowerCase();i.startsWith("on")||"innerhtml"===i||(A[t]=n[t])})),n=A}else e>1&&Array.isArray(n)&&(n=qt(A,n));i.push(n)}return A.apply(null,i)},Rt=["script","link","meta","object","head","html","body"],Gt=["😕","😟","😑","😧","😯","😮","🙃","🤕","😫"],Vt={default:A=>{const{page:t}=A;return i("article",null,!1!==t.renderTitle?i("h1",null,t.title):null,i("section",{class:"markdown-content"},qt(i,t.body)),i("sparkle-page-footer",{page:t}))},pdf:A=>{const{page:t}=A;return i("article",null,!1!==t.renderTitle?i("h1",null,t.title):null,i("section",{class:"markdown-content"},qt(i,t.body)))},error:A=>i("main",{class:"Error full-screen"},i("div",null,iA(Gt)),i("h1",null,(A=>{switch(A.status){case 404:return"Not Found";default:return"Uh Oh"}})(A)),i("p",null,(A=>{switch(A.status){case 404:return"Sorry, we couldn't find that page.";default:return"Sorry, something went wrong."}})(A)))},zt=_(X((function(A){function t(i){return A.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},A.exports.__esModule=!0,A.exports.default=A.exports,t(i)}A.exports=t,A.exports.__esModule=!0,A.exports.default=A.exports})));var Jt=Uint8Array,Xt=Uint16Array,_t=Uint32Array,Yt=new Jt([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Wt=new Jt([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Zt=new Jt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),$t=function(A,t){for(var i=new Xt(31),e=0;e<31;++e)i[e]=t+=1<<A[e-1];var n=new _t(i[30]);for(e=1;e<30;++e)for(var r=i[e];r<i[e+1];++r)n[r]=r-i[e]<<5|e;return[i,n]},Ai=$t(Yt,2),ti=Ai[0],ii=Ai[1];ti[28]=258,ii[258]=28;for(var ei=$t(Wt,0),ni=ei[0],ri=ei[1],oi=new Xt(32768),si=0;si<32768;++si){var ai=(43690&si)>>>1|(21845&si)<<1;oi[si]=((65280&(ai=(61680&(ai=(52428&ai)>>>2|(13107&ai)<<2))>>>4|(3855&ai)<<4))>>>8|(255&ai)<<8)>>>1}var li=function(A,t,i){for(var e=A.length,n=0,r=new Xt(t);n<e;++n)++r[A[n]-1];var o,s=new Xt(t);for(n=0;n<t;++n)s[n]=s[n-1]+r[n-1]<<1;if(i){o=new Xt(1<<t);var a=15-t;for(n=0;n<e;++n)if(A[n])for(var l=n<<4|A[n],c=t-A[n],h=s[A[n]-1]++<<c,u=h|(1<<c)-1;h<=u;++h)o[oi[h]>>>a]=l}else for(o=new Xt(e),n=0;n<e;++n)o[n]=oi[s[A[n]-1]++]>>>15-A[n];return o},ci=new Jt(288);for(si=0;si<144;++si)ci[si]=8;for(si=144;si<256;++si)ci[si]=9;for(si=256;si<280;++si)ci[si]=7;for(si=280;si<288;++si)ci[si]=8;var hi=new Jt(32);for(si=0;si<32;++si)hi[si]=5;var ui=li(ci,9,0),di=li(ci,9,1),gi=li(hi,5,0),fi=li(hi,5,1),pi=function(A){for(var t=A[0],i=1;i<A.length;++i)A[i]>t&&(t=A[i]);return t},wi=function(A,t,i){var e=t/8>>0;return(A[e]|A[e+1]<<8)>>>(7&t)&i},Bi=function(A,t){var i=t/8>>0;return(A[i]|A[i+1]<<8|A[i+2]<<16)>>>(7&t)},mi=function(A){return(A/8>>0)+(7&A&&1)},bi=function(A,t,i){(null==t||t<0)&&(t=0),(null==i||i>A.length)&&(i=A.length);var e=new(A instanceof Xt?Xt:A instanceof _t?_t:Jt)(i-t);return e.set(A.subarray(t,i)),e},vi=function(A,t,i){var e=t/8>>0;A[e]|=i<<=7&t,A[e+1]|=i>>>8},Qi=function(A,t,i){var e=t/8>>0;A[e]|=i<<=7&t,A[e+1]|=i>>>8,A[e+2]|=i>>>16},Ci=function(A,t){for(var i=[],e=0;e<A.length;++e)A[e]&&i.push({s:e,f:A[e]});var n=i.length,r=i.slice();if(!n)return[new Jt(0),0];if(1==n){var o=new Jt(i[0].s+1);return o[i[0].s]=1,[o,1]}i.sort((function(A,t){return A.f-t.f})),i.push({s:-1,f:25001});var s=i[0],a=i[1],l=0,c=1,h=2;for(i[0]={s:-1,f:s.f+a.f,l:s,r:a};c!=n-1;)s=i[i[l].f<i[h].f?l++:h++],a=i[l!=c&&i[l].f<i[h].f?l++:h++],i[c++]={s:-1,f:s.f+a.f,l:s,r:a};var u=r[0].s;for(e=1;e<n;++e)r[e].s>u&&(u=r[e].s);var d=new Xt(u+1),g=Fi(i[c-1],d,0);if(g>t){e=0;var f=0,p=g-t,w=1<<p;for(r.sort((function(A,t){return d[t.s]-d[A.s]||A.f-t.f}));e<n;++e){var B=r[e].s;if(!(d[B]>t))break;f+=w-(1<<g-d[B]),d[B]=t}for(f>>>=p;f>0;){var m=r[e].s;d[m]<t?f-=1<<t-d[m]++-1:++e}for(;e>=0&&f;--e){var b=r[e].s;d[b]==t&&(--d[b],++f)}g=t}return[new Jt(d),g]},Fi=function(A,t,i){return-1==A.s?Math.max(Fi(A.l,t,i+1),Fi(A.r,t,i+1)):t[A.s]=i},Ui=function(A){for(var t=A.length;t&&!A[--t];);for(var i=new Xt(++t),e=0,n=A[0],r=1,o=function(A){i[e++]=A},s=1;s<=t;++s)if(A[s]==n&&s!=t)++r;else{if(!n&&r>2){for(;r>138;r-=138)o(32754);r>2&&(o(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(o(n),--r;r>6;r-=6)o(8304);r>2&&(o(r-3<<5|8208),r=0)}for(;r--;)o(n);r=1,n=A[s]}return[i.subarray(0,e),t]},yi=function(A,t){for(var i=0,e=0;e<t.length;++e)i+=A[e]*t[e];return i},ki=function(A,t,i){var e=i.length,n=mi(t+2);A[n]=255&e,A[n+1]=e>>>8,A[n+2]=255^A[n],A[n+3]=255^A[n+1];for(var r=0;r<e;++r)A[n+r+4]=i[r];return 8*(n+4+e)},xi=function(A,t,i,e,n,r,o,s,a,l,c){vi(t,c++,i),++n[256];for(var h=Ci(n,15),u=h[0],d=h[1],g=Ci(r,15),f=g[0],p=g[1],w=Ui(u),B=w[0],m=w[1],b=Ui(f),v=b[0],Q=b[1],C=new Xt(19),F=0;F<B.length;++F)C[31&B[F]]++;for(F=0;F<v.length;++F)C[31&v[F]]++;for(var U=Ci(C,7),y=U[0],k=U[1],x=19;x>4&&!y[Zt[x-1]];--x);var L,E,H,I,N=l+5<<3,S=yi(n,ci)+yi(r,hi)+o,D=yi(n,u)+yi(r,f)+o+14+3*x+yi(C,y)+(2*C[16]+3*C[17]+7*C[18]);if(N<=S&&N<=D)return ki(t,c,A.subarray(a,a+l));if(vi(t,c,1+(D<S)),c+=2,D<S){L=li(u,d,0),E=u,H=li(f,p,0),I=f;var M=li(y,k,0);for(vi(t,c,m-257),vi(t,c+5,Q-1),vi(t,c+10,x-4),c+=14,F=0;F<x;++F)vi(t,c+3*F,y[Zt[F]]);c+=3*x;for(var K=[B,v],O=0;O<2;++O){var T=K[O];for(F=0;F<T.length;++F)vi(t,c,M[P=31&T[F]]),c+=y[P],P>15&&(vi(t,c,T[F]>>>5&127),c+=T[F]>>>12)}}else L=ui,E=ci,H=gi,I=hi;for(F=0;F<s;++F)if(e[F]>255){var P;Qi(t,c,L[257+(P=e[F]>>>18&31)]),c+=E[P+257],P>7&&(vi(t,c,e[F]>>>23&31),c+=Yt[P]);var j=31&e[F];Qi(t,c,H[j]),c+=I[j],j>3&&(Qi(t,c,e[F]>>>5&8191),c+=Wt[j])}else Qi(t,c,L[e[F]]),c+=E[e[F]];return Qi(t,c,L[256]),c+E[256]},Li=new _t([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ei=new Jt(0);function Hi(A,t){void 0===t&&(t={});var i=function(){var A=1,t=0;return{p:function(i){for(var e=A,n=t,r=i.length,o=0;o!=r;){for(var s=Math.min(o+5552,r);o<s;++o)n+=e+=i[o];e%=65521,n%=65521}A=e,t=n},d:function(){return(A>>>8<<16|(255&t)<<8|t>>>8)+2*((255&A)<<23)}}}();i.p(A);var e=function(A,t,i,e,n){return function(A,t,i,e,n,r){var o=A.length,s=new Jt(e+o+5*(1+Math.floor(o/7e3))+n),a=s.subarray(e,s.length-n),l=0;if(!t||o<8)for(var c=0;c<=o;c+=65535){var h=c+65535;h<o?l=ki(a,l,A.subarray(c,h)):(a[c]=r,l=ki(a,l,A.subarray(c,o)))}else{for(var u=Li[t-1],d=u>>>13,g=8191&u,f=(1<<i)-1,p=new Xt(32768),w=new Xt(f+1),B=Math.ceil(i/3),m=2*B,b=function(t){return(A[t]^A[t+1]<<B^A[t+2]<<m)&f},v=new _t(25e3),Q=new Xt(288),C=new Xt(32),F=0,U=0,y=(c=0,0),k=0,x=0;c<o;++c){var L=b(c),E=32767&c,H=w[L];if(p[E]=H,w[L]=E,k<=c){var I=o-c;if((F>7e3||y>24576)&&I>423){l=xi(A,a,0,v,Q,C,U,y,x,c-x,l),y=F=U=0,x=c;for(var N=0;N<286;++N)Q[N]=0;for(N=0;N<30;++N)C[N]=0}var S=2,D=0,M=g,K=E-H&32767;if(I>2&&L==b(c-K))for(var O=Math.min(d,I)-1,T=Math.min(32767,c),P=Math.min(258,I);K<=T&&--M&&E!=H;){if(A[c+S]==A[c+S-K]){for(var j=0;j<P&&A[c+j]==A[c+j-K];++j);if(j>S){if(S=j,D=K,j>O)break;var q=Math.min(K,j-2),R=0;for(N=0;N<q;++N){var G=c-K+N+32768&32767,V=G-p[G]+32768&32767;V>R&&(R=V,H=G)}}}K+=(E=H)-(H=p[E])+32768&32767}if(D){v[y++]=268435456|ii[S]<<18|ri[D];var z=31&ii[S],J=31&ri[D];U+=Yt[z]+Wt[J],++Q[257+z],++C[J],k=c+S,++F}else v[y++]=A[c],++Q[A[c]]}}l=xi(A,a,r,v,Q,C,U,y,x,c-x,l),r||(l=ki(a,l,Ei))}return bi(s,0,e+mi(l)+n)}(A,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(A.length)))):12+t.mem,i,e,!n)}(A,t,2,4);return function(A,t){var i=t.level,e=0==i?0:i<6?1:9==i?3:2;A[0]=120,A[1]=e<<6|(e?32-2*e:1)}(e,t),function(A,t,i){for(;i;++t)A[t]=i,i>>>=8}(e,e.length-4,i.d()),e}
|
6
|
+
/** @license
|
7
|
+
*
|
8
|
+
* jsPDF - PDF Document creation from JavaScript
|
9
|
+
* Version 2.5.1 Built on 2022-01-28T15:37:57.791Z
|
10
|
+
* CommitID 00000000
|
11
|
+
*
|
12
|
+
* Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
|
13
|
+
* 2015-2021 yWorks GmbH, http://www.yworks.com
|
14
|
+
* 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
|
15
|
+
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
|
16
|
+
* 2010 Aaron Spike, https://github.com/acspike
|
17
|
+
* 2012 Willow Systems Corporation, https://github.com/willowsystems
|
18
|
+
* 2012 Pablo Hess, https://github.com/pablohess
|
19
|
+
* 2012 Florian Jenett, https://github.com/fjenett
|
20
|
+
* 2013 Warren Weckesser, https://github.com/warrenweckesser
|
21
|
+
* 2013 Youssef Beddad, https://github.com/lifof
|
22
|
+
* 2013 Lee Driscoll, https://github.com/lsdriscoll
|
23
|
+
* 2013 Stefan Slonevskiy, https://github.com/stefslon
|
24
|
+
* 2013 Jeremy Morel, https://github.com/jmorel
|
25
|
+
* 2013 Christoph Hartmann, https://github.com/chris-rock
|
26
|
+
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
|
27
|
+
* 2014 James Makes, https://github.com/dollaruw
|
28
|
+
* 2014 Diego Casorran, https://github.com/diegocr
|
29
|
+
* 2014 Steven Spungin, https://github.com/Flamenco
|
30
|
+
* 2014 Kenneth Glassey, https://github.com/Gavvers
|
31
|
+
*
|
32
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
33
|
+
* a copy of this software and associated documentation files (the
|
34
|
+
* "Software"), to deal in the Software without restriction, including
|
35
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
36
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
37
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
38
|
+
* the following conditions:
|
39
|
+
*
|
40
|
+
* The above copyright notice and this permission notice shall be
|
41
|
+
* included in all copies or substantial portions of the Software.
|
42
|
+
*
|
43
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
44
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
45
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
46
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
47
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
48
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
49
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
50
|
+
*
|
51
|
+
* Contributor(s):
|
52
|
+
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
|
53
|
+
* kim3er, mfo, alnorth, Flamenco
|
54
|
+
*/
|
55
|
+
var Ii=function(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this}();function Ni(){Ii.console&&"function"==typeof Ii.console.log&&Ii.console.log.apply(Ii.console,arguments)}var Si={log:Ni,warn:function(){Ii.console&&("function"==typeof Ii.console.warn?Ii.console.warn.apply(Ii.console,arguments):Ni.call(null,arguments))},error:function(A){Ii.console&&("function"==typeof Ii.console.error?Ii.console.error.apply(Ii.console,arguments):Ni(A))}};function Di(A,t,i){var e=new XMLHttpRequest;e.open("GET",A),e.responseType="blob",e.onload=function(){Pi(e.response,t,i)},e.onerror=function(){Si.error("could not download file")},e.send()}function Mi(A){var t=new XMLHttpRequest;t.open("HEAD",A,!1);try{t.send()}catch(A){}return t.status>=200&&t.status<=299}function Ki(A){try{A.dispatchEvent(new MouseEvent("click"))}catch(i){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),A.dispatchEvent(t)}}var Oi,Ti,Pi=Ii.saveAs||("object"!==("undefined"==typeof window?"undefined":zt(window))||window!==Ii?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(A,t,i){var e=Ii.URL||Ii.webkitURL,n=document.createElement("a");n.download=t=t||A.name||"download",n.rel="noopener","string"==typeof A?(n.href=A,n.origin!==location.origin?Mi(n.href)?Di(A,t,i):Ki(n,n.target="_blank"):Ki(n)):(n.href=e.createObjectURL(A),setTimeout((function(){e.revokeObjectURL(n.href)}),4e4),setTimeout((function(){Ki(n)}),0))}:"msSaveOrOpenBlob"in navigator?function(A,t,i){if(t=t||A.name||"download","string"==typeof A)if(Mi(A))Di(A,t,i);else{var e=document.createElement("a");e.href=A,e.target="_blank",setTimeout((function(){Ki(e)}))}else navigator.msSaveOrOpenBlob(function(A,t){return void 0===t?t={autoBom:!1}:"object"!==zt(t)&&(Si.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(A.type)?new Blob([String.fromCharCode(65279),A],{type:A.type}):A}(A,i),t)}:function(A,t,i,e){if((e=e||open("","_blank"))&&(e.document.title=e.document.body.innerText="downloading..."),"string"==typeof A)return Di(A,t,i);var n="application/octet-stream"===A.type,r=/constructor/i.test(Ii.HTMLElement)||Ii.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||n&&r)&&"object"===("undefined"==typeof FileReader?"undefined":zt(FileReader))){var s=new FileReader;s.onloadend=function(){var A=s.result;A=o?A:A.replace(/^data:[^;]*;/,"data:attachment/file;"),e?e.location.href=A:location=A,e=null},s.readAsDataURL(A)}else{var a=Ii.URL||Ii.webkitURL,l=a.createObjectURL(A);e?e.location=l:location.href=l,e=null,setTimeout((function(){a.revokeObjectURL(l)}),4e4)}});
|
56
|
+
/**
|
57
|
+
* A class to parse color values
|
58
|
+
* @author Stoyan Stefanov <sstoo@gmail.com>
|
59
|
+
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
|
60
|
+
* @license Use it if you like it
|
61
|
+
*/function ji(A){var t;A=A||"",this.ok=!1,"#"==A.charAt(0)&&(A=A.substr(1,6)),A={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",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",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",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",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:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",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",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[A=(A=A.replace(/ /g,"")).toLowerCase()]||A;for(var i=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(A){return[parseInt(A[1]),parseInt(A[2]),parseInt(A[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(A){return[parseInt(A[1],16),parseInt(A[2],16),parseInt(A[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(A){return[parseInt(A[1]+A[1],16),parseInt(A[2]+A[2],16),parseInt(A[3]+A[3],16)]}}],e=0;e<i.length;e++){var n=i[e].process,r=i[e].re.exec(A);r&&(t=n(r),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var A=this.r.toString(16),t=this.g.toString(16),i=this.b.toString(16);return 1==A.length&&(A="0"+A),1==t.length&&(t="0"+t),1==i.length&&(i="0"+i),"#"+A+t+i}}
|
62
|
+
/**
|
63
|
+
* @license
|
64
|
+
* Joseph Myers does not specify a particular license for his work.
|
65
|
+
*
|
66
|
+
* Author: Joseph Myers
|
67
|
+
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
|
68
|
+
*
|
69
|
+
* Modified by: Owen Leong
|
70
|
+
*/function qi(A,t){var i=A[0],e=A[1],n=A[2],r=A[3];i=Gi(i,e,n,r,t[0],7,-680876936),r=Gi(r,i,e,n,t[1],12,-389564586),n=Gi(n,r,i,e,t[2],17,606105819),e=Gi(e,n,r,i,t[3],22,-1044525330),i=Gi(i,e,n,r,t[4],7,-176418897),r=Gi(r,i,e,n,t[5],12,1200080426),n=Gi(n,r,i,e,t[6],17,-1473231341),e=Gi(e,n,r,i,t[7],22,-45705983),i=Gi(i,e,n,r,t[8],7,1770035416),r=Gi(r,i,e,n,t[9],12,-1958414417),n=Gi(n,r,i,e,t[10],17,-42063),e=Gi(e,n,r,i,t[11],22,-1990404162),i=Gi(i,e,n,r,t[12],7,1804603682),r=Gi(r,i,e,n,t[13],12,-40341101),n=Gi(n,r,i,e,t[14],17,-1502002290),i=Vi(i,e=Gi(e,n,r,i,t[15],22,1236535329),n,r,t[1],5,-165796510),r=Vi(r,i,e,n,t[6],9,-1069501632),n=Vi(n,r,i,e,t[11],14,643717713),e=Vi(e,n,r,i,t[0],20,-373897302),i=Vi(i,e,n,r,t[5],5,-701558691),r=Vi(r,i,e,n,t[10],9,38016083),n=Vi(n,r,i,e,t[15],14,-660478335),e=Vi(e,n,r,i,t[4],20,-405537848),i=Vi(i,e,n,r,t[9],5,568446438),r=Vi(r,i,e,n,t[14],9,-1019803690),n=Vi(n,r,i,e,t[3],14,-187363961),e=Vi(e,n,r,i,t[8],20,1163531501),i=Vi(i,e,n,r,t[13],5,-1444681467),r=Vi(r,i,e,n,t[2],9,-51403784),n=Vi(n,r,i,e,t[7],14,1735328473),i=zi(i,e=Vi(e,n,r,i,t[12],20,-1926607734),n,r,t[5],4,-378558),r=zi(r,i,e,n,t[8],11,-2022574463),n=zi(n,r,i,e,t[11],16,1839030562),e=zi(e,n,r,i,t[14],23,-35309556),i=zi(i,e,n,r,t[1],4,-1530992060),r=zi(r,i,e,n,t[4],11,1272893353),n=zi(n,r,i,e,t[7],16,-155497632),e=zi(e,n,r,i,t[10],23,-1094730640),i=zi(i,e,n,r,t[13],4,681279174),r=zi(r,i,e,n,t[0],11,-358537222),n=zi(n,r,i,e,t[3],16,-722521979),e=zi(e,n,r,i,t[6],23,76029189),i=zi(i,e,n,r,t[9],4,-640364487),r=zi(r,i,e,n,t[12],11,-421815835),n=zi(n,r,i,e,t[15],16,530742520),i=Ji(i,e=zi(e,n,r,i,t[2],23,-995338651),n,r,t[0],6,-198630844),r=Ji(r,i,e,n,t[7],10,1126891415),n=Ji(n,r,i,e,t[14],15,-1416354905),e=Ji(e,n,r,i,t[5],21,-57434055),i=Ji(i,e,n,r,t[12],6,1700485571),r=Ji(r,i,e,n,t[3],10,-1894986606),n=Ji(n,r,i,e,t[10],15,-1051523),e=Ji(e,n,r,i,t[1],21,-2054922799),i=Ji(i,e,n,r,t[8],6,1873313359),r=Ji(r,i,e,n,t[15],10,-30611744),n=Ji(n,r,i,e,t[6],15,-1560198380),e=Ji(e,n,r,i,t[13],21,1309151649),i=Ji(i,e,n,r,t[4],6,-145523070),r=Ji(r,i,e,n,t[11],10,-1120210379),n=Ji(n,r,i,e,t[2],15,718787259),e=Ji(e,n,r,i,t[9],21,-343485551),A[0]=te(i,A[0]),A[1]=te(e,A[1]),A[2]=te(n,A[2]),A[3]=te(r,A[3])}function Ri(A,t,i,e,n,r){return t=te(te(t,A),te(e,r)),te(t<<n|t>>>32-n,i)}function Gi(A,t,i,e,n,r,o){return Ri(t&i|~t&e,A,t,n,r,o)}function Vi(A,t,i,e,n,r,o){return Ri(t&e|i&~e,A,t,n,r,o)}function zi(A,t,i,e,n,r,o){return Ri(t^i^e,A,t,n,r,o)}function Ji(A,t,i,e,n,r,o){return Ri(i^(t|~e),A,t,n,r,o)}function Xi(A){var t,i=A.length,e=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=A.length;t+=64)qi(e,_i(A.substring(t-64,t)));A=A.substring(t-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<A.length;t++)n[t>>2]|=A.charCodeAt(t)<<(t%4<<3);if(n[t>>2]|=128<<(t%4<<3),t>55)for(qi(e,n),t=0;t<16;t++)n[t]=0;return n[14]=8*i,qi(e,n),e}function _i(A){var t,i=[];for(t=0;t<64;t+=4)i[t>>2]=A.charCodeAt(t)+(A.charCodeAt(t+1)<<8)+(A.charCodeAt(t+2)<<16)+(A.charCodeAt(t+3)<<24);return i}Oi=Ii.atob.bind(Ii),Ti=Ii.btoa.bind(Ii);var Yi="0123456789abcdef".split("");function Wi(A){for(var t="",i=0;i<4;i++)t+=Yi[A>>8*i+4&15]+Yi[A>>8*i&15];return t}function Zi(A){return String.fromCharCode((255&A)>>0,(65280&A)>>8,(16711680&A)>>16,(4278190080&A)>>24)}function $i(A){return Xi(A).map(Zi).join("")}var Ae="5d41402abc4b2a76b9719d911017c592"!=function(A){for(var t=0;t<A.length;t++)A[t]=Wi(A[t]);return A.join("")}(Xi("hello"));function te(A,t){if(Ae){var i=(65535&A)+(65535&t);return(A>>16)+(t>>16)+(i>>16)<<16|65535&i}return A+t&4294967295}
|
71
|
+
/**
|
72
|
+
* @license
|
73
|
+
* FPDF is released under a permissive license: there is no usage restriction.
|
74
|
+
* You may embed it freely in your application (commercial or not), with or
|
75
|
+
* without modifications.
|
76
|
+
*
|
77
|
+
* Reference: http://www.fpdf.org/en/script/script37.php
|
78
|
+
*/function ie(A,t){var i,e,n;if(A!==i){for(var r=(n=A,new Array(1+(256/A.length>>0)+1).join(n)),o=[],s=0;s<256;s++)o[s]=s;var a=0;for(s=0;s<256;s++){var l=o[s];a=(a+l+r.charCodeAt(s))%256,o[s]=o[a],o[a]=l}i=A,e=o}else o=e;var c=t.length,h=0,u=0,d="";for(s=0;s<c;s++)u=(u+(l=o[h=(h+1)%256]))%256,o[h]=o[u],o[u]=l,r=o[(o[h]+o[u])%256],d+=String.fromCharCode(t.charCodeAt(s)^r);return d}
|
79
|
+
/**
|
80
|
+
* @license
|
81
|
+
* Licensed under the MIT License.
|
82
|
+
* http://opensource.org/licenses/mit-license
|
83
|
+
* Author: Owen Leong (@owenl131)
|
84
|
+
* Date: 15 Oct 2020
|
85
|
+
* References:
|
86
|
+
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
|
87
|
+
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
|
88
|
+
* http://www.fpdf.org/en/script/script37.php
|
89
|
+
*/var ee={print:4,modify:8,copy:16,"annot-forms":32};function ne(A,t,i,e){this.v=1,this.r=2;var n=192;A.forEach((function(A){if(void 0!==ee.perm)throw new Error("Invalid permission: "+A);n+=ee[A]})),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var r=(t+this.padding).substr(0,32),o=(i+this.padding).substr(0,32);this.O=this.processOwnerPassword(r,o),this.P=-(1+(255^n)),this.encryptionKey=$i(r+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(e)).substr(0,5),this.U=ie(this.encryptionKey,this.padding)}function re(A){if(/[^\u0000-\u00ff]/.test(A))throw new Error("Invalid PDF Name Object: "+A+", Only accept ASCII characters.");for(var t="",i=A.length,e=0;e<i;e++){var n=A.charCodeAt(e);t+=n<33||35===n||37===n||40===n||41===n||47===n||60===n||62===n||91===n||93===n||123===n||125===n||n>126?"#"+("0"+n.toString(16)).slice(-2):A[e]}return t}function oe(A){if("object"!==zt(A))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(A,i,e){if(e=e||!1,"string"!=typeof A||"function"!=typeof i||"boolean"!=typeof e)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(A)||(t[A]={});var n=Math.random().toString(35);return t[A][n]=[i,!!e],n},this.unsubscribe=function(A){for(var i in t)if(t[i][A])return delete t[i][A],0===Object.keys(t[i]).length&&delete t[i],!0;return!1},this.publish=function(i){if(t.hasOwnProperty(i)){var e=Array.prototype.slice.call(arguments,1),n=[];for(var r in t[i]){var o=t[i][r];try{o[0].apply(A,e)}catch(i){Ii.console&&Si.error("jsPDF PubSub Error",i.message,i)}o[1]&&n.push(r)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function se(A){if(!(this instanceof se))return new se(A);var t="opacity,stroke-opacity".split(",");for(var i in A)A.hasOwnProperty(i)&&t.indexOf(i)>=0&&(this[i]=A[i]);this.id="",this.objectNumber=-1}function ae(A,t){this.gState=A,this.matrix=t,this.id="",this.objectNumber=-1}function le(A,t,i,e,n){if(!(this instanceof le))return new le(A,t,i,e,n);this.type="axial"===A?2:3,this.coords=t,this.colors=i,ae.call(this,e,n)}function ce(A,t,i,e,n){if(!(this instanceof ce))return new ce(A,t,i,e,n);this.boundingBox=A,this.xStep=t,this.yStep=i,this.stream="",this.cloneIndex=0,ae.call(this,e,n)}function he(A){var t,i="string"==typeof arguments[0]?arguments[0]:"p",e=arguments[1],n=arguments[2],r=arguments[3],o=[],s=1,a=16,l="S",c=null;"object"===zt(A=A||{})&&(i=A.orientation,e=A.unit||e,n=A.format||n,r=A.compress||A.compressPdf||r,null!==(c=A.encryption||null)&&(c.userPassword=c.userPassword||"",c.ownerPassword=c.ownerPassword||"",c.userPermissions=c.userPermissions||[]),s="number"==typeof A.userUnit?Math.abs(A.userUnit):1,void 0!==A.precision&&(t=A.precision),void 0!==A.floatPrecision&&(a=A.floatPrecision),l=A.defaultPathOperation||"S"),o=A.filters||(!0===r?["FlateEncode"]:o),e=e||"mm",i=(""+(i||"P")).toLowerCase();var h=A.putOnlyUsedFonts||!1,u={},d={internal:{},__private__:{}};d.__private__.PubSub=oe;var g="1.3",f=d.__private__.getPdfVersion=function(){return g};d.__private__.setPdfVersion=function(A){g=A};var p={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};d.__private__.getPageFormats=function(){return p};var w=d.__private__.getPageFormat=function(A){return p[A]};n=n||"a4";var B={COMPAT:"compat",ADVANCED:"advanced"},m=B.COMPAT;function b(){this.saveGraphicsState(),Z(new IA(dA,0,0,-dA,0,ki()*dA).toString()+" cm"),this.setFontSize(this.getFontSize()/dA),l="n",m=B.ADVANCED}function v(){this.restoreGraphicsState(),l="S",m=B.COMPAT}var Q=d.__private__.combineFontStyleAndFontWeight=function(A,t){if("bold"==A&&"normal"==t||"bold"==A&&400==t||"normal"==A&&"italic"==t||"bold"==A&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&(A=400==t||"normal"===t?"italic"===A?"italic":"normal":700!=t&&"bold"!==t||"normal"!==A?(700==t?"bold":t)+""+A:"bold"),A};d.advancedAPI=function(A){var t=m===B.COMPAT;return t&&b.call(this),"function"!=typeof A||(A(this),t&&v.call(this)),this},d.compatAPI=function(A){var t=m===B.ADVANCED;return t&&v.call(this),"function"!=typeof A||(A(this),t&&b.call(this)),this},d.isAdvancedAPI=function(){return m===B.ADVANCED};var C,F=function(A){if(m!==B.ADVANCED)throw new Error(A+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},U=d.roundToPrecision=d.__private__.roundToPrecision=function(A,i){var e=t||i;if(isNaN(A)||isNaN(e))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return A.toFixed(e).replace(/0+$/,"")};C=d.hpf=d.__private__.hpf="number"==typeof a?function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.hpf");return U(A,a)}:"smart"===a?function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.hpf");return U(A,A>-1&&A<1?16:5)}:function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.hpf");return U(A,16)};var y=d.f2=d.__private__.f2=function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.f2");return U(A,2)},k=d.__private__.f3=function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.f3");return U(A,3)},x=d.scale=d.__private__.scale=function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.scale");return m===B.COMPAT?A*dA:m===B.ADVANCED?A:void 0},L=function(A){return m===B.COMPAT?ki()-A:m===B.ADVANCED?A:void 0},E=function(A){return x(L(A))};d.__private__.setPrecision=d.setPrecision=function(A){"number"==typeof parseInt(A,10)&&(t=parseInt(A,10))};var H,I="00000000000000000000000000000000",N=d.__private__.getFileId=function(){return I},S=d.__private__.setFileId=function(A){return I=void 0!==A&&/^[a-fA-F0-9]{32}$/.test(A)?A.toUpperCase():I.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==c&&(St=new ne(c.userPermissions,c.userPassword,c.ownerPassword,I)),I};d.setFileId=function(A){return S(A),this},d.getFileId=function(){return N()};var D=d.__private__.convertDateToPDFDate=function(A){var t=A.getTimezoneOffset(),i=t<0?"+":"-",e=Math.floor(Math.abs(t/60)),n=Math.abs(t%60),r=[i,P(e),"'",P(n),"'"].join("");return["D:",A.getFullYear(),P(A.getMonth()+1),P(A.getDate()),P(A.getHours()),P(A.getMinutes()),P(A.getSeconds()),r].join("")},M=d.__private__.convertPDFDateToDate=function(A){var t=parseInt(A.substr(2,4),10),i=parseInt(A.substr(6,2),10)-1,e=parseInt(A.substr(8,2),10),n=parseInt(A.substr(10,2),10),r=parseInt(A.substr(12,2),10),o=parseInt(A.substr(14,2),10);return new Date(t,i,e,n,r,o,0)},K=d.__private__.setCreationDate=function(A){var t;if(void 0===A&&(A=new Date),A instanceof Date)t=D(A);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(A))throw new Error("Invalid argument passed to jsPDF.setCreationDate");t=A}return H=t},O=d.__private__.getCreationDate=function(A){var t=H;return"jsDate"===A&&(t=M(H)),t};d.setCreationDate=function(A){return K(A),this},d.getCreationDate=function(A){return O(A)};var T,P=d.__private__.padd2=function(A){return("0"+parseInt(A)).slice(-2)},j=d.__private__.padd2Hex=function(A){return("00"+(A=A.toString())).substr(A.length)},q=0,R=[],G=[],V=0,z=[],J=[],X=!1,_=G,Y=function(){q=0,V=0,G=[],R=[],z=[],PA=KA(),jA=KA()};d.__private__.setCustomOutputDestination=function(A){X=!0,_=A};var W=function(A){X||(_=A)};d.__private__.resetCustomOutputDestination=function(){X=!1,_=G};var Z=d.__private__.out=function(A){return A=A.toString(),V+=A.length+1,_.push(A),_},$=d.__private__.write=function(A){return Z(1===arguments.length?A.toString():Array.prototype.join.call(arguments," "))},AA=d.__private__.getArrayBuffer=function(A){for(var t=A.length,i=new ArrayBuffer(t),e=new Uint8Array(i);t--;)e[t]=A.charCodeAt(t);return i},tA=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];d.__private__.getStandardFonts=function(){return tA};var iA=A.fontSize||16;d.__private__.setFontSize=d.setFontSize=function(A){return iA=m===B.ADVANCED?A/dA:A,this};var eA,nA=d.__private__.getFontSize=d.getFontSize=function(){return m===B.COMPAT?iA:iA*dA},rA=A.R2L||!1;d.__private__.setR2L=d.setR2L=function(A){return rA=A,this},d.__private__.getR2L=d.getR2L=function(){return rA};var oA,sA=d.__private__.setZoomMode=function(A){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(A))eA=A;else if(isNaN(A)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(A))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+A+'" is not recognized.');eA=A}else eA=parseInt(A,10)};d.__private__.getZoomMode=function(){return eA};var aA,lA=d.__private__.setPageMode=function(A){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(A))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+A+'" is not recognized.');oA=A};d.__private__.getPageMode=function(){return oA};var cA=d.__private__.setLayoutMode=function(A){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(A))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+A+'" is not recognized.');aA=A};d.__private__.getLayoutMode=function(){return aA},d.__private__.setDisplayMode=d.setDisplayMode=function(A,t,i){return sA(A),cA(t),lA(i),this};var hA={title:"",subject:"",author:"",keywords:"",creator:""};d.__private__.getDocumentProperty=function(A){if(-1===Object.keys(hA).indexOf(A))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return hA[A]},d.__private__.getDocumentProperties=function(){return hA},d.__private__.setDocumentProperties=d.setProperties=d.setDocumentProperties=function(A){for(var t in hA)hA.hasOwnProperty(t)&&A[t]&&(hA[t]=A[t]);return this},d.__private__.setDocumentProperty=function(A,t){if(-1===Object.keys(hA).indexOf(A))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return hA[A]=t};var uA,dA,gA,fA,pA,wA={},BA={},mA=[],bA={},vA={},QA={},CA={},FA=null,UA=0,yA=[],kA=new oe(d),xA=A.hotfixes||[],LA={},EA={},HA=[],IA=function A(t,i,e,n,r,o){if(!(this instanceof A))return new A(t,i,e,n,r,o);isNaN(t)&&(t=1),isNaN(i)&&(i=0),isNaN(e)&&(e=0),isNaN(n)&&(n=1),isNaN(r)&&(r=0),isNaN(o)&&(o=0),this._matrix=[t,i,e,n,r,o]};Object.defineProperty(IA.prototype,"sx",{get:function(){return this._matrix[0]},set:function(A){this._matrix[0]=A}}),Object.defineProperty(IA.prototype,"shy",{get:function(){return this._matrix[1]},set:function(A){this._matrix[1]=A}}),Object.defineProperty(IA.prototype,"shx",{get:function(){return this._matrix[2]},set:function(A){this._matrix[2]=A}}),Object.defineProperty(IA.prototype,"sy",{get:function(){return this._matrix[3]},set:function(A){this._matrix[3]=A}}),Object.defineProperty(IA.prototype,"tx",{get:function(){return this._matrix[4]},set:function(A){this._matrix[4]=A}}),Object.defineProperty(IA.prototype,"ty",{get:function(){return this._matrix[5]},set:function(A){this._matrix[5]=A}}),Object.defineProperty(IA.prototype,"a",{get:function(){return this._matrix[0]},set:function(A){this._matrix[0]=A}}),Object.defineProperty(IA.prototype,"b",{get:function(){return this._matrix[1]},set:function(A){this._matrix[1]=A}}),Object.defineProperty(IA.prototype,"c",{get:function(){return this._matrix[2]},set:function(A){this._matrix[2]=A}}),Object.defineProperty(IA.prototype,"d",{get:function(){return this._matrix[3]},set:function(A){this._matrix[3]=A}}),Object.defineProperty(IA.prototype,"e",{get:function(){return this._matrix[4]},set:function(A){this._matrix[4]=A}}),Object.defineProperty(IA.prototype,"f",{get:function(){return this._matrix[5]},set:function(A){this._matrix[5]=A}}),Object.defineProperty(IA.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(IA.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(IA.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(IA.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),IA.prototype.join=function(A){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(C).join(A)},IA.prototype.multiply=function(A){return new IA(A.sx*this.sx+A.shy*this.shx,A.sx*this.shy+A.shy*this.sy,A.shx*this.sx+A.sy*this.shx,A.shx*this.shy+A.sy*this.sy,A.tx*this.sx+A.ty*this.shx+this.tx,A.tx*this.shy+A.ty*this.sy+this.ty)},IA.prototype.decompose=function(){var A=this.sx,t=this.shy,i=this.shx,e=this.sy,n=this.tx,r=this.ty,o=Math.sqrt(A*A+t*t),s=(A/=o)*i+(t/=o)*e;i-=A*s,e-=t*s;var a=Math.sqrt(i*i+e*e);return s/=a,A*(e/=a)<t*(i/=a)&&(A=-A,t=-t,s=-s,o=-o),{scale:new IA(o,0,0,a,0,0),translate:new IA(1,0,0,1,n,r),rotate:new IA(A,t,-t,A,0,0),skew:new IA(1,0,s,1,0,0)}},IA.prototype.toString=function(){return this.join(" ")},IA.prototype.inversed=function(){var A=this.sx,t=this.shy,i=this.shx,e=this.sy,n=this.tx,r=this.ty,o=1/(A*e-t*i),s=e*o,a=-t*o,l=-i*o,c=A*o;return new IA(s,a,l,c,-s*n-l*r,-a*n-c*r)},IA.prototype.applyToPoint=function(A){return new mi(A.x*this.sx+A.y*this.shx+this.tx,A.x*this.shy+A.y*this.sy+this.ty)},IA.prototype.applyToRectangle=function(A){var t=this.applyToPoint(A),i=this.applyToPoint(new mi(A.x+A.w,A.y+A.h));return new bi(t.x,t.y,i.x-t.x,i.y-t.y)},IA.prototype.clone=function(){return new IA(this.sx,this.shy,this.shx,this.sy,this.tx,this.ty)},d.Matrix=IA;var NA=d.matrixMult=function(A,t){return t.multiply(A)},SA=new IA(1,0,0,1,0,0);d.unitMatrix=d.identityMatrix=SA;var DA=function(A,t){if(!vA[A]){var i=(t instanceof le?"Sh":"P")+(Object.keys(bA).length+1).toString(10);t.id=i,vA[A]=i,bA[i]=t,kA.publish("addPattern",t)}};d.ShadingPattern=le,d.TilingPattern=ce,d.addShadingPattern=function(A,t){return F("addShadingPattern()"),DA(A,t),this},d.beginTilingPattern=function(A){F("beginTilingPattern()"),Qi(A.boundingBox[0],A.boundingBox[1],A.boundingBox[2]-A.boundingBox[0],A.boundingBox[3]-A.boundingBox[1],A.matrix)},d.endTilingPattern=function(A,t){F("endTilingPattern()"),t.stream=J[T].join("\n"),DA(A,t),kA.publish("endTilingPattern",t),HA.pop().restore()};var MA=d.__private__.newObject=function(){var A=KA();return OA(A,!0),A},KA=d.__private__.newObjectDeferred=function(){return q++,R[q]=function(){return V},q},OA=function(A,t){return t="boolean"==typeof t&&t,R[A]=V,t&&Z(A+" 0 obj"),A},TA=d.__private__.newAdditionalObject=function(){var A={objId:KA(),content:""};return z.push(A),A},PA=KA(),jA=KA(),qA=d.__private__.decodeColorString=function(A){var t=A.split(" ");if(2!==t.length||"g"!==t[1]&&"G"!==t[1])5!==t.length||"k"!==t[4]&&"K"!==t[4]||(t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),"r"]);else{var i=parseFloat(t[0]);t=[i,i,i,"r"]}for(var e="#",n=0;n<3;n++)e+=("0"+Math.floor(255*parseFloat(t[n])).toString(16)).slice(-2);return e},RA=d.__private__.encodeColorString=function(A){var t;"string"==typeof A&&(A={ch1:A});var i=A.ch1,e=A.ch2,n=A.ch3,r=A.ch4,o="draw"===A.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof i&&"#"!==i.charAt(0)){var s=new ji(i);if(s.ok)i=s.toHex();else if(!/^\d*\.?\d*$/.test(i))throw new Error('Invalid color "'+i+'" passed to jsPDF.encodeColorString.')}if("string"==typeof i&&/^#[0-9A-Fa-f]{3}$/.test(i)&&(i="#"+i[1]+i[1]+i[2]+i[2]+i[3]+i[3]),"string"==typeof i&&/^#[0-9A-Fa-f]{6}$/.test(i)){var a=parseInt(i.substr(1),16);i=a>>16&255,e=a>>8&255,n=255&a}if(void 0===e||void 0===r&&i===e&&e===n)if("string"==typeof i)t=i+" "+o[0];else switch(A.precision){case 2:t=y(i/255)+" "+o[0];break;case 3:default:t=k(i/255)+" "+o[0]}else if(void 0===r||"object"===zt(r)){if(r&&!isNaN(r.a)&&0===r.a)return["1.","1.","1.",o[1]].join(" ");if("string"==typeof i)t=[i,e,n,o[1]].join(" ");else switch(A.precision){case 2:t=[y(i/255),y(e/255),y(n/255),o[1]].join(" ");break;default:case 3:t=[k(i/255),k(e/255),k(n/255),o[1]].join(" ")}}else if("string"==typeof i)t=[i,e,n,r,o[2]].join(" ");else switch(A.precision){case 2:t=[y(i),y(e),y(n),y(r),o[2]].join(" ");break;case 3:default:t=[k(i),k(e),k(n),k(r),o[2]].join(" ")}return t},GA=d.__private__.getFilters=function(){return o},VA=d.__private__.putStream=function(A){var t=(A=A||{}).data||"",i=A.filters||GA(),e=A.alreadyAppliedFilters||[],n=A.addLength1||!1,r=t.length,o=A.objectId,s=function(A){return A};if(null!==c&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==c&&(s=St.encryptor(o,0));var a={};!0===i&&(i=["FlateEncode"]);var l=A.additionalKeyValues||[],h=(a=void 0!==he.API.processDataByFilters?he.API.processDataByFilters(t,i):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(e)?e.join(" "):e.toString());if(0!==a.data.length&&(l.push({key:"Length",value:a.data.length}),!0===n&&l.push({key:"Length1",value:r})),0!=h.length)if(h.split("/").length-1==1)l.push({key:"Filter",value:h});else{l.push({key:"Filter",value:"["+h+"]"});for(var u=0;u<l.length;u+=1)if("DecodeParms"===l[u].key){for(var d=[],g=0;g<a.reverseChain.split("/").length-1;g+=1)d.push("null");d.push(l[u].value),l[u].value="["+d.join(" ")+"]"}}Z("<<");for(var f=0;f<l.length;f++)Z("/"+l[f].key+" "+l[f].value);Z(">>"),0!==a.data.length&&(Z("stream"),Z(s(a.data)),Z("endstream"))},zA=d.__private__.putPage=function(A){var t=A.number,i=A.data,e=A.objId,n=A.contentsObjId;OA(e,!0),Z("<</Type /Page"),Z("/Parent "+A.rootDictionaryObjId+" 0 R"),Z("/Resources "+A.resourceDictionaryObjId+" 0 R"),Z("/MediaBox ["+parseFloat(C(A.mediaBox.bottomLeftX))+" "+parseFloat(C(A.mediaBox.bottomLeftY))+" "+C(A.mediaBox.topRightX)+" "+C(A.mediaBox.topRightY)+"]"),null!==A.cropBox&&Z("/CropBox ["+C(A.cropBox.bottomLeftX)+" "+C(A.cropBox.bottomLeftY)+" "+C(A.cropBox.topRightX)+" "+C(A.cropBox.topRightY)+"]"),null!==A.bleedBox&&Z("/BleedBox ["+C(A.bleedBox.bottomLeftX)+" "+C(A.bleedBox.bottomLeftY)+" "+C(A.bleedBox.topRightX)+" "+C(A.bleedBox.topRightY)+"]"),null!==A.trimBox&&Z("/TrimBox ["+C(A.trimBox.bottomLeftX)+" "+C(A.trimBox.bottomLeftY)+" "+C(A.trimBox.topRightX)+" "+C(A.trimBox.topRightY)+"]"),null!==A.artBox&&Z("/ArtBox ["+C(A.artBox.bottomLeftX)+" "+C(A.artBox.bottomLeftY)+" "+C(A.artBox.topRightX)+" "+C(A.artBox.topRightY)+"]"),"number"==typeof A.userUnit&&1!==A.userUnit&&Z("/UserUnit "+A.userUnit),kA.publish("putPage",{objId:e,pageContext:yA[t],pageNumber:t,page:i}),Z("/Contents "+n+" 0 R"),Z(">>"),Z("endobj");var r=i.join("\n");return m===B.ADVANCED&&(r+="\nQ"),OA(n,!0),VA({data:r,filters:GA(),objectId:n}),Z("endobj"),e},JA=d.__private__.putPages=function(){var A,t,i=[];for(A=1;A<=UA;A++)yA[A].objId=KA(),yA[A].contentsObjId=KA();for(A=1;A<=UA;A++)i.push(zA({number:A,data:J[A],objId:yA[A].objId,contentsObjId:yA[A].contentsObjId,mediaBox:yA[A].mediaBox,cropBox:yA[A].cropBox,bleedBox:yA[A].bleedBox,trimBox:yA[A].trimBox,artBox:yA[A].artBox,userUnit:yA[A].userUnit,rootDictionaryObjId:PA,resourceDictionaryObjId:jA}));OA(PA,!0),Z("<</Type /Pages");var e="/Kids [";for(t=0;t<UA;t++)e+=i[t]+" 0 R ";Z(e+"]"),Z("/Count "+UA),Z(">>"),Z("endobj"),kA.publish("postPutPages")},XA=function(A){kA.publish("putFont",{font:A,out:Z,newObject:MA,putStream:VA}),!0!==A.isAlreadyPutted&&(A.objectNumber=MA(),Z("<<"),Z("/Type /Font"),Z("/BaseFont /"+re(A.postScriptName)),Z("/Subtype /Type1"),"string"==typeof A.encoding&&Z("/Encoding /"+A.encoding),Z("/FirstChar 32"),Z("/LastChar 255"),Z(">>"),Z("endobj"))},_A=function(){for(var A in wA)wA.hasOwnProperty(A)&&(!1===h||!0===h&&u.hasOwnProperty(A))&&XA(wA[A])},YA=function(A){A.objectNumber=MA();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[C(A.x),C(A.y),C(A.x+A.width),C(A.y+A.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+A.matrix.toString()+"]"});var i=A.pages[1].join("\n");VA({data:i,additionalKeyValues:t,objectId:A.objectNumber}),Z("endobj")},WA=function(){for(var A in LA)LA.hasOwnProperty(A)&&YA(LA[A])},ZA=function(A,t){var i,e=[],n=1/(t-1);for(i=0;i<1;i+=n)e.push(i);e.push(1),0!=A[0].offset&&A.unshift({offset:0,color:A[0].color}),1!=A[A.length-1].offset&&A.push({offset:1,color:A[A.length-1].color});for(var r="",o=0,s=0;s<e.length;s++){for(i=e[s];i>A[o+1].offset;)o++;var a=A[o].offset,l=(i-a)/(A[o+1].offset-a),c=A[o].color,h=A[o+1].color;r+=j(Math.round((1-l)*c[0]+l*h[0]).toString(16))+j(Math.round((1-l)*c[1]+l*h[1]).toString(16))+j(Math.round((1-l)*c[2]+l*h[2]).toString(16))}return r.trim()},$A=function(A,t){t||(t=21);var i=MA(),e=ZA(A.colors,t),n=[];n.push({key:"FunctionType",value:"0"}),n.push({key:"Domain",value:"[0.0 1.0]"}),n.push({key:"Size",value:"["+t+"]"}),n.push({key:"BitsPerSample",value:"8"}),n.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),n.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),VA({data:e,additionalKeyValues:n,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:i}),Z("endobj"),A.objectNumber=MA(),Z("<< /ShadingType "+A.type),Z("/ColorSpace /DeviceRGB");var r="/Coords ["+C(parseFloat(A.coords[0]))+" "+C(parseFloat(A.coords[1]))+" ";r+=2===A.type?C(parseFloat(A.coords[2]))+" "+C(parseFloat(A.coords[3])):C(parseFloat(A.coords[2]))+" "+C(parseFloat(A.coords[3]))+" "+C(parseFloat(A.coords[4]))+" "+C(parseFloat(A.coords[5])),Z(r+="]"),A.matrix&&Z("/Matrix ["+A.matrix.toString()+"]"),Z("/Function "+i+" 0 R"),Z("/Extend [true true]"),Z(">>"),Z("endobj")},At=function(A,t){var i=KA(),e=MA();t.push({resourcesOid:i,objectOid:e}),A.objectNumber=e;var n=[];n.push({key:"Type",value:"/Pattern"}),n.push({key:"PatternType",value:"1"}),n.push({key:"PaintType",value:"1"}),n.push({key:"TilingType",value:"1"}),n.push({key:"BBox",value:"["+A.boundingBox.map(C).join(" ")+"]"}),n.push({key:"XStep",value:C(A.xStep)}),n.push({key:"YStep",value:C(A.yStep)}),n.push({key:"Resources",value:i+" 0 R"}),A.matrix&&n.push({key:"Matrix",value:"["+A.matrix.toString()+"]"}),VA({data:A.stream,additionalKeyValues:n,objectId:A.objectNumber}),Z("endobj")},tt=function(A){var t;for(t in bA)bA.hasOwnProperty(t)&&(bA[t]instanceof le?$A(bA[t]):bA[t]instanceof ce&&At(bA[t],A))},it=function(A){for(var t in A.objectNumber=MA(),Z("<<"),A)switch(t){case"opacity":Z("/ca "+y(A[t]));break;case"stroke-opacity":Z("/CA "+y(A[t]))}Z(">>"),Z("endobj")},et=function(){var A;for(A in QA)QA.hasOwnProperty(A)&&it(QA[A])},nt=function(){for(var A in Z("/XObject <<"),LA)LA.hasOwnProperty(A)&&LA[A].objectNumber>=0&&Z("/"+A+" "+LA[A].objectNumber+" 0 R");kA.publish("putXobjectDict"),Z(">>")},rt=function(){St.oid=MA(),Z("<<"),Z("/Filter /Standard"),Z("/V "+St.v),Z("/R "+St.r),Z("/U <"+St.toHexString(St.U)+">"),Z("/O <"+St.toHexString(St.O)+">"),Z("/P "+St.P),Z(">>"),Z("endobj")},ot=function(){for(var A in Z("/Font <<"),wA)wA.hasOwnProperty(A)&&(!1===h||!0===h&&u.hasOwnProperty(A))&&Z("/"+A+" "+wA[A].objectNumber+" 0 R");Z(">>")},st=function(){if(Object.keys(bA).length>0){for(var A in Z("/Shading <<"),bA)bA.hasOwnProperty(A)&&bA[A]instanceof le&&bA[A].objectNumber>=0&&Z("/"+A+" "+bA[A].objectNumber+" 0 R");kA.publish("putShadingPatternDict"),Z(">>")}},at=function(A){if(Object.keys(bA).length>0){for(var t in Z("/Pattern <<"),bA)bA.hasOwnProperty(t)&&bA[t]instanceof d.TilingPattern&&bA[t].objectNumber>=0&&bA[t].objectNumber<A&&Z("/"+t+" "+bA[t].objectNumber+" 0 R");kA.publish("putTilingPatternDict"),Z(">>")}},lt=function(){if(Object.keys(QA).length>0){var A;for(A in Z("/ExtGState <<"),QA)QA.hasOwnProperty(A)&&QA[A].objectNumber>=0&&Z("/"+A+" "+QA[A].objectNumber+" 0 R");kA.publish("putGStateDict"),Z(">>")}},ct=function(A){OA(A.resourcesOid,!0),Z("<<"),Z("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ot(),st(),at(A.objectOid),lt(),nt(),Z(">>"),Z("endobj")},ht=function(){var A=[];_A(),et(),WA(),tt(A),kA.publish("putResources"),A.forEach(ct),ct({resourcesOid:jA,objectOid:Number.MAX_SAFE_INTEGER}),kA.publish("postPutResources")},ut=function(){kA.publish("putAdditionalObjects");for(var A=0;A<z.length;A++){var t=z[A];OA(t.objId,!0),Z(t.content),Z("endobj")}kA.publish("postPutAdditionalObjects")},dt=function(A){BA[A.fontName]=BA[A.fontName]||{},BA[A.fontName][A.fontStyle]=A.id},gt=function(A,t,i,e,n){var r={id:"F"+(Object.keys(wA).length+1).toString(10),postScriptName:A,fontName:t,fontStyle:i,encoding:e,isStandardFont:n||!1,metadata:{}};return kA.publish("addFont",{font:r,instance:this}),wA[r.id]=r,dt(r),r.id},ft=function(A){for(var t=0,i=tA.length;t<i;t++){var e=gt.call(this,A[t][0],A[t][1],A[t][2],tA[t][3],!0);!1===h&&(u[e]=!0);var n=A[t][0].split("-");dt({id:e,fontName:n[0],fontStyle:n[1]||""})}kA.publish("addFonts",{fonts:wA,dictionary:BA})},pt=function(A){return A.foo=function(){try{return A.apply(this,arguments)}catch(A){var t=A.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var i="Error in function "+t.split("\n")[0].split("<")[0]+": "+A.message;if(!Ii.console)throw new Error(i);Ii.console.error(i,A),Ii.alert&&alert(i)}},A.foo.bar=A,A.foo},wt=function(A,t){var i,e,n,r,o,s,a,l,c;if(n=(t=t||{}).sourceEncoding||"Unicode",o=t.outputEncoding,(t.autoencode||o)&&wA[uA].metadata&&wA[uA].metadata[n]&&wA[uA].metadata[n].encoding&&(r=wA[uA].metadata[n].encoding,!o&&wA[uA].encoding&&(o=wA[uA].encoding),!o&&r.codePages&&(o=r.codePages[0]),"string"==typeof o&&(o=r[o]),o)){for(a=!1,s=[],i=0,e=A.length;i<e;i++)(l=o[A.charCodeAt(i)])?s.push(String.fromCharCode(l)):s.push(A[i]),s[i].charCodeAt(0)>>8&&(a=!0);A=s.join("")}for(i=A.length;void 0===a&&0!==i;)A.charCodeAt(i-1)>>8&&(a=!0),i--;if(!a)return A;for(s=t.noBOM?[]:[254,255],i=0,e=A.length;i<e;i++){if((c=(l=A.charCodeAt(i))>>8)>>8)throw new Error("Character at position "+i+" of string '"+A+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(c),s.push(l-(c<<8))}return String.fromCharCode.apply(void 0,s)},Bt=d.__private__.pdfEscape=d.pdfEscape=function(A,t){return wt(A,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},mt=d.__private__.beginPage=function(A){J[++UA]=[],yA[UA]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(A[0]),topRightY:Number(A[1])}},Qt(UA),W(J[T])},bt=function(A,t){var e,r,o;switch(i=t||i,"string"==typeof A&&(e=w(A.toLowerCase()),Array.isArray(e)&&(r=e[0],o=e[1])),Array.isArray(A)&&(r=A[0]*dA,o=A[1]*dA),isNaN(r)&&(r=n[0],o=n[1]),(r>14400||o>14400)&&(Si.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),r=Math.min(14400,r),o=Math.min(14400,o)),n=[r,o],i.substr(0,1)){case"l":o>r&&(n=[o,r]);break;case"p":r>o&&(n=[o,r])}mt(n),ii(Ai),Z(ci),0!==pi&&Z(pi+" J"),0!==wi&&Z(wi+" j"),kA.publish("addPage",{pageNumber:UA})},vt=function(A){A>0&&A<=UA&&(J.splice(A,1),yA.splice(A,1),UA--,T>UA&&(T=UA),this.setPage(T))},Qt=function(A){A>0&&A<=UA&&(T=A)},Ct=d.__private__.getNumberOfPages=d.getNumberOfPages=function(){return J.length-1},Ft=function(A,t,i){var e,n=void 0;return i=i||{},t=void 0!==t?t:wA[uA].fontStyle,e=(A=void 0!==A?A:wA[uA].fontName).toLowerCase(),void 0!==BA[e]&&void 0!==BA[e][t]?n=BA[e][t]:void 0!==BA[A]&&void 0!==BA[A][t]?n=BA[A][t]:!1===i.disableWarning&&Si.warn("Unable to look up font label for font '"+A+"', '"+t+"'. Refer to getFontList() for available fonts."),n||i.noFallback||null==(n=BA.times[t])&&(n=BA.times.normal),n},Ut=d.__private__.putInfo=function(){var A=MA(),t=function(A){return A};for(var i in null!==c&&(t=St.encryptor(A,0)),Z("<<"),Z("/Producer ("+Bt(t("jsPDF "+he.version))+")"),hA)hA.hasOwnProperty(i)&&hA[i]&&Z("/"+i.substr(0,1).toUpperCase()+i.substr(1)+" ("+Bt(t(hA[i]))+")");Z("/CreationDate ("+Bt(t(H))+")"),Z(">>"),Z("endobj")},yt=d.__private__.putCatalog=function(A){var t=(A=A||{}).rootDictionaryObjId||PA;switch(MA(),Z("<<"),Z("/Type /Catalog"),Z("/Pages "+t+" 0 R"),eA||(eA="fullwidth"),eA){case"fullwidth":Z("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Z("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Z("/OpenAction [3 0 R /Fit]");break;case"original":Z("/OpenAction [3 0 R /XYZ null null 1]");break;default:var i=""+eA;"%"===i.substr(i.length-1)&&(eA=parseInt(eA)/100),"number"==typeof eA&&Z("/OpenAction [3 0 R /XYZ null null "+y(eA)+"]")}switch(aA||(aA="continuous"),aA){case"continuous":Z("/PageLayout /OneColumn");break;case"single":Z("/PageLayout /SinglePage");break;case"two":case"twoleft":Z("/PageLayout /TwoColumnLeft");break;case"tworight":Z("/PageLayout /TwoColumnRight")}oA&&Z("/PageMode /"+oA),kA.publish("putCatalog"),Z(">>"),Z("endobj")},kt=d.__private__.putTrailer=function(){Z("trailer"),Z("<<"),Z("/Size "+(q+1)),Z("/Root "+q+" 0 R"),Z("/Info "+(q-1)+" 0 R"),null!==c&&Z("/Encrypt "+St.oid+" 0 R"),Z("/ID [ <"+I+"> <"+I+"> ]"),Z(">>")},xt=d.__private__.putHeader=function(){Z("%PDF-"+g),Z("%ºß¬à")},Lt=d.__private__.putXRef=function(){var A="0000000000";Z("xref"),Z("0 "+(q+1)),Z("0000000000 65535 f ");for(var t=1;t<=q;t++)Z("function"==typeof R[t]?(A+R[t]()).slice(-10)+" 00000 n ":void 0!==R[t]?(A+R[t]).slice(-10)+" 00000 n ":"0000000000 00000 n ")},Et=d.__private__.buildDocument=function(){Y(),W(G),kA.publish("buildDocument"),xt(),JA(),ut(),ht(),null!==c&&rt(),Ut(),yt();var A=V;return Lt(),kt(),Z("startxref"),Z(""+A),Z("%%EOF"),W(J[T]),G.join("\n")},Ht=d.__private__.getBlob=function(A){return new Blob([AA(A)],{type:"application/pdf"})},It=d.output=d.__private__.output=pt((function(A,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",A){case void 0:return Et();case"save":d.save(t.filename);break;case"arraybuffer":return AA(Et());case"blob":return Ht(Et());case"bloburi":case"bloburl":if(void 0!==Ii.URL&&"function"==typeof Ii.URL.createObjectURL)return Ii.URL&&Ii.URL.createObjectURL(Ht(Et()))||void 0;Si.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var i="",e=Et();try{i=Ti(e)}catch(A){i=Ti(unescape(encodeURIComponent(e)))}return"data:application/pdf;filename="+t.filename+";base64,"+i;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(Ii)){var n="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",r=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';t.pdfObjectUrl&&(n=t.pdfObjectUrl,r="");var o='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+n+'"'+r+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(t)+");<\/script></body></html>",s=Ii.open();return null!==s&&s.document.write(o),s}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(Ii)){var a='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(t.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+t.filename+'" width="500px" height="400px" /></body></html>',l=Ii.open();if(null!==l){l.document.write(a);var c=this;l.document.documentElement.querySelector("#pdfViewer").onload=function(){l.document.title=t.filename,l.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(c.output("bloburl"))}}return l}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(Ii))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var h='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",t)+'"></iframe></body></html>',u=Ii.open();if(null!==u&&(u.document.write(h),u.document.title=t.filename),u||"undefined"==typeof safari)return u;break;case"datauri":case"dataurl":return Ii.document.location.href=this.output("datauristring",t);default:return null}})),Nt=function(A){return!0===Array.isArray(xA)&&xA.indexOf(A)>-1};switch(e){case"pt":dA=1;break;case"mm":dA=72/25.4;break;case"cm":dA=72/2.54;break;case"in":dA=72;break;case"px":dA=1==Nt("px_scaling")?.75:96/72;break;case"pc":case"em":dA=12;break;case"ex":dA=6;break;default:if("number"!=typeof e)throw new Error("Invalid unit: "+e);dA=e}var St=null;K(),S();var Dt=function(A){return null!==c?St.encryptor(A,0):function(A){return A}},Mt=d.__private__.getPageInfo=d.getPageInfo=function(A){if(isNaN(A)||A%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:yA[A].objId,pageNumber:A,pageContext:yA[A]}},Kt=d.__private__.getPageInfoByObjId=function(A){if(isNaN(A)||A%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var t in yA)if(yA[t].objId===A)break;return Mt(t)},Ot=d.__private__.getCurrentPageInfo=d.getCurrentPageInfo=function(){return{objId:yA[T].objId,pageNumber:T,pageContext:yA[T]}};d.addPage=function(){return bt.apply(this,arguments),this},d.setPage=function(){return Qt.apply(this,arguments),W.call(this,J[T]),this},d.insertPage=function(A){return this.addPage(),this.movePage(T,A),this},d.movePage=function(A,t){var i,e;if(A>t){i=J[A],e=yA[A];for(var n=A;n>t;n--)J[n]=J[n-1],yA[n]=yA[n-1];J[t]=i,yA[t]=e,this.setPage(t)}else if(A<t){i=J[A],e=yA[A];for(var r=A;r<t;r++)J[r]=J[r+1],yA[r]=yA[r+1];J[t]=i,yA[t]=e,this.setPage(t)}return this},d.deletePage=function(){return vt.apply(this,arguments),this},d.__private__.text=d.text=function(A,t,i,e,n){var r,o,s,a,l,c,h,d,g,f=(e=e||{}).scope||this;if("number"==typeof A&&"number"==typeof t&&("string"==typeof i||Array.isArray(i))){var p=i;i=t,t=A,A=p}if(arguments[3]instanceof IA==0?(s=arguments[4],a=arguments[5],"object"===zt(h=arguments[3])&&null!==h||("string"==typeof s&&(a=s,s=null),"string"==typeof h&&(a=h,h=null),"number"==typeof h&&(s=h,h=null),e={flags:h,angle:s,align:a})):(F("The transform parameter of text() with a Matrix value"),g=n),isNaN(t)||isNaN(i)||null==A)throw new Error("Invalid arguments passed to jsPDF.text");if(0===A.length)return f;var w="",b=!1,v="number"==typeof e.lineHeightFactor?e.lineHeightFactor:$t,Q=f.internal.scaleFactor;function U(A){return A=A.split("\t").join(Array(e.TabLen||9).join(" ")),Bt(A,h)}function y(A){for(var t,i=A.concat(),e=[],n=i.length;n--;)"string"==typeof(t=i.shift())?e.push(t):Array.isArray(A)&&(1===t.length||void 0===t[1]&&void 0===t[2])?e.push(t[0]):e.push([t[0],t[1],t[2]]);return e}function k(A,t){var i;if("string"==typeof A)i=t(A)[0];else if(Array.isArray(A)){for(var e,n,r=A.concat(),o=[],s=r.length;s--;)"string"==typeof(e=r.shift())?o.push(t(e)[0]):Array.isArray(e)&&"string"==typeof e[0]&&(n=t(e[0],e[1],e[2]),o.push([n[0],n[1],n[2]]));i=o}return i}var L=!1,E=!0;if("string"==typeof A)L=!0;else if(Array.isArray(A)){var H=A.concat();o=[];for(var I,N=H.length;N--;)("string"!=typeof(I=H.shift())||Array.isArray(I)&&"string"!=typeof I[0])&&(E=!1);L=E}if(!1===L)throw new Error('Type of text must be string or Array. "'+A+'" is not recognized.');"string"==typeof A&&(A=A.match(/[\r?\n]/)?A.split(/\r\n|\r|\n/g):[A]);var S=iA/f.internal.scaleFactor,D=S*(v-1);switch(e.baseline){case"bottom":i-=D;break;case"top":i+=S-D;break;case"hanging":i+=S-2*D;break;case"middle":i+=S/2-D}if((c=e.maxWidth||0)>0&&("string"==typeof A?A=f.splitTextToSize(A,c):"[object Array]"===Object.prototype.toString.call(A)&&(A=A.reduce((function(A,t){return A.concat(f.splitTextToSize(t,c))}),[]))),kA.publish("preProcessText",r={text:A,x:t,y:i,options:e,mutex:{pdfEscape:Bt,activeFontKey:uA,fonts:wA,activeFontSize:iA}}),A=r.text,s=(e=r.options).angle,g instanceof IA==0&&s&&"number"==typeof s){s*=Math.PI/180,0===e.rotationDirection&&(s=-s),m===B.ADVANCED&&(s=-s);var M=Math.cos(s),K=Math.sin(s);g=new IA(M,K,-K,M,0,0)}else s&&s instanceof IA&&(g=s);m!==B.ADVANCED||g||(g=SA),void 0!==(l=e.charSpace||gi)&&(w+=C(x(l))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(d=e.horizontalScale)&&(w+=C(100*d)+" Tz\n");var O=-1,T=void 0!==e.renderingMode?e.renderingMode:e.stroke,P=f.internal.getCurrentPageInfo().pageContext;switch(T){case 0:case!1:case"fill":O=0;break;case 1:case!0:case"stroke":O=1;break;case 2:case"fillThenStroke":O=2;break;case 3:case"invisible":O=3;break;case 4:case"fillAndAddForClipping":O=4;break;case 5:case"strokeAndAddPathForClipping":O=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":O=6;break;case 7:case"addToPathForClipping":O=7}var j=void 0!==P.usedRenderingMode?P.usedRenderingMode:-1;-1!==O?w+=O+" Tr\n":-1!==j&&(w+="0 Tr\n"),-1!==O&&(P.usedRenderingMode=O),a=e.align||"left";var q,R=iA*v,G=f.internal.pageSize.getWidth(),V=wA[uA];l=e.charSpace||gi,c=e.maxWidth||0,h=Object.assign({autoencode:!0,noBOM:!0},e.flags);var z=[];if("[object Array]"===Object.prototype.toString.call(A)){var J;o=y(A),"left"!==a&&(q=o.map((function(A){return f.getStringUnitWidth(A,{font:V,charSpace:l,fontSize:iA,doKerning:!1})*iA/Q})));var X,_=0;if("right"===a){t-=q[0],A=[],N=o.length;for(var Y=0;Y<N;Y++)0===Y?(X=oi(t),J=si(i)):(X=x(_-q[Y]),J=-R),A.push([o[Y],X,J]),_=q[Y]}else if("center"===a){t-=q[0]/2,A=[],N=o.length;for(var W=0;W<N;W++)0===W?(X=oi(t),J=si(i)):(X=x((_-q[W])/2),J=-R),A.push([o[W],X,J]),_=q[W]}else if("left"===a){A=[],N=o.length;for(var $=0;$<N;$++)A.push(o[$])}else{if("justify"!==a)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');A=[],N=o.length,c=0!==c?c:G;for(var AA=0;AA<N;AA++)J=0===AA?si(i):-R,X=0===AA?oi(t):0,z.push(AA<N-1?C(x((c-q[AA])/(o[AA].split(" ").length-1))):0),A.push([o[AA],X,J])}}var tA="boolean"==typeof e.R2L?e.R2L:rA;!0===tA&&(A=k(A,(function(A,t,i){return[A.split("").reverse().join(""),t,i]}))),kA.publish("postProcessText",r={text:A,x:t,y:i,options:e,mutex:{pdfEscape:Bt,activeFontKey:uA,fonts:wA,activeFontSize:iA}}),A=r.text,b=r.mutex.isHex||!1;var eA=wA[uA].encoding;"WinAnsiEncoding"!==eA&&"StandardEncoding"!==eA||(A=k(A,(function(A,t,i){return[U(A),t,i]}))),o=y(A),A=[];for(var nA,oA,sA,aA=0,lA=1,cA=Array.isArray(o[0])?lA:aA,hA="",dA=function(A,t,i){var n="";return i instanceof IA?(i="number"==typeof e.angle?NA(i,new IA(1,0,0,1,A,t)):NA(new IA(1,0,0,1,A,t),i),m===B.ADVANCED&&(i=NA(new IA(1,0,0,-1,0,0),i)),n=i.join(" ")+" Tm\n"):n=C(A)+" "+C(t)+" Td\n",n},gA=0;gA<o.length;gA++){switch(hA="",cA){case lA:sA=(b?"<":"(")+o[gA][0]+(b?">":")"),nA=parseFloat(o[gA][1]),oA=parseFloat(o[gA][2]);break;case aA:sA=(b?"<":"(")+o[gA]+(b?">":")"),nA=oi(t),oA=si(i)}void 0!==z&&void 0!==z[gA]&&(hA=z[gA]+" Tw\n"),0===gA?A.push(hA+dA(nA,oA,g)+sA):cA===aA?A.push(hA+sA):cA===lA&&A.push(hA+dA(nA,oA,g)+sA)}A=A.join(cA===aA?" Tj\nT* ":" Tj\n"),A+=" Tj\n";var fA="BT\n/";return fA+=uA+" "+iA+" Tf\n",fA+=C(iA*v)+" TL\n",fA+=ui+"\n",fA+=w,fA+=A,Z(fA+="ET"),u[uA]=!0,f};var Tt=d.__private__.clip=d.clip=function(A){return Z("evenodd"===A?"W*":"W"),this};d.clipEvenOdd=function(){return Tt("evenodd")},d.__private__.discardPath=d.discardPath=function(){return Z("n"),this};var Pt=d.__private__.isValidStyle=function(A){var t=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(A)&&(t=!0),t};d.__private__.setDefaultPathOperation=d.setDefaultPathOperation=function(A){return Pt(A)&&(l=A),this};var jt=d.__private__.getStyle=d.getStyle=function(A){var t=l;switch(A){case"D":case"S":t="S";break;case"F":t="f";break;case"FD":case"DF":t="B";break;case"f":case"f*":case"B":case"B*":t=A}return t},qt=d.close=function(){return Z("h"),this};d.stroke=function(){return Z("S"),this},d.fill=function(A){return Rt("f",A),this},d.fillEvenOdd=function(A){return Rt("f*",A),this},d.fillStroke=function(A){return Rt("B",A),this},d.fillStrokeEvenOdd=function(A){return Rt("B*",A),this};var Rt=function(A,t){"object"===zt(t)?Jt(t,A):Z(A)},Gt=function(A){null===A||m===B.ADVANCED&&void 0===A||(A=jt(A),Z(A))};function Vt(A,t,i,e,n){var r=new ce(t||this.boundingBox,i||this.xStep,e||this.yStep,this.gState,n||this.matrix);r.stream=this.stream;var o=A+"$$"+this.cloneIndex+++"$$";return DA(o,r),r}var Jt=function(A,t){var i=vA[A.key],e=bA[i];if(e instanceof le)Z("q"),Z(Xt(t)),e.gState&&d.setGState(e.gState),Z(A.matrix.toString()+" cm"),Z("/"+i+" sh"),Z("Q");else if(e instanceof ce){var n=new IA(1,0,0,-1,0,ki());A.matrix&&(n=n.multiply(A.matrix||SA),i=Vt.call(e,A.key,A.boundingBox,A.xStep,A.yStep,n).id),Z("q"),Z("/Pattern cs"),Z("/"+i+" scn"),e.gState&&d.setGState(e.gState),Z(t),Z("Q")}},Xt=function(A){switch(A){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},_t=d.moveTo=function(A,t){return Z(C(x(A))+" "+C(E(t))+" m"),this},Yt=d.lineTo=function(A,t){return Z(C(x(A))+" "+C(E(t))+" l"),this},Wt=d.curveTo=function(A,t,i,e,n,r){return Z([C(x(A)),C(E(t)),C(x(i)),C(E(e)),C(x(n)),C(E(r)),"c"].join(" ")),this};d.__private__.line=d.line=function(A,t,i,e,n){if(isNaN(A)||isNaN(t)||isNaN(i)||isNaN(e)||!Pt(n))throw new Error("Invalid arguments passed to jsPDF.line");return m===B.COMPAT?this.lines([[i-A,e-t]],A,t,[1,1],n||"S"):this.lines([[i-A,e-t]],A,t,[1,1]).stroke()},d.__private__.lines=d.lines=function(A,t,i,e,n,r){var o,s,a,l,c,h,u,d;if("number"==typeof A&&(d=i,i=t,t=A,A=d),e=e||[1,1],r=r||!1,isNaN(t)||isNaN(i)||!Array.isArray(A)||!Array.isArray(e)||!Pt(n)||"boolean"!=typeof r)throw new Error("Invalid arguments passed to jsPDF.lines");for(_t(t,i),o=e[0],s=e[1],l=A.length,h=t,u=i,a=0;a<l;a++)2===(c=A[a]).length?Yt(h=c[0]*o+h,u=c[1]*s+u):Wt(c[0]*o+h,c[1]*s+u,c[2]*o+h,c[3]*s+u,h=c[4]*o+h,u=c[5]*s+u);return r&&qt(),Gt(n),this},d.path=function(A){for(var t=0;t<A.length;t++){var i=A[t],e=i.c;switch(i.op){case"m":_t(e[0],e[1]);break;case"l":Yt(e[0],e[1]);break;case"c":Wt.apply(this,e);break;case"h":qt()}}return this},d.__private__.rect=d.rect=function(A,t,i,e,n){if(isNaN(A)||isNaN(t)||isNaN(i)||isNaN(e)||!Pt(n))throw new Error("Invalid arguments passed to jsPDF.rect");return m===B.COMPAT&&(e=-e),Z([C(x(A)),C(E(t)),C(x(i)),C(x(e)),"re"].join(" ")),Gt(n),this},d.__private__.triangle=d.triangle=function(A,t,i,e,n,r,o){if(isNaN(A)||isNaN(t)||isNaN(i)||isNaN(e)||isNaN(n)||isNaN(r)||!Pt(o))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[i-A,e-t],[n-i,r-e],[A-n,t-r]],A,t,[1,1],o,!0),this},d.__private__.roundedRect=d.roundedRect=function(A,t,i,e,n,r,o){if(isNaN(A)||isNaN(t)||isNaN(i)||isNaN(e)||isNaN(n)||isNaN(r)||!Pt(o))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return n=Math.min(n,.5*i),r=Math.min(r,.5*e),this.lines([[i-2*n,0],[n*s,0,n,r-r*s,n,r],[0,e-2*r],[0,r*s,-n*s,r,-n,r],[2*n-i,0],[-n*s,0,-n,-r*s,-n,-r],[0,2*r-e],[0,-r*s,n*s,-r,n,-r]],A+n,t,[1,1],o,!0),this},d.__private__.ellipse=d.ellipse=function(A,t,i,e,n){if(isNaN(A)||isNaN(t)||isNaN(i)||isNaN(e)||!Pt(n))throw new Error("Invalid arguments passed to jsPDF.ellipse");var r=4/3*(Math.SQRT2-1)*i,o=4/3*(Math.SQRT2-1)*e;return _t(A+i,t),Wt(A+i,t-o,A+r,t-e,A,t-e),Wt(A-r,t-e,A-i,t-o,A-i,t),Wt(A-i,t+o,A-r,t+e,A,t+e),Wt(A+r,t+e,A+i,t+o,A+i,t),Gt(n),this},d.__private__.circle=d.circle=function(A,t,i,e){if(isNaN(A)||isNaN(t)||isNaN(i)||!Pt(e))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(A,t,i,i,e)},d.setFont=function(A,t,i){return i&&(t=Q(t,i)),uA=Ft(A,t,{disableWarning:!1}),this};var Zt=d.__private__.getFont=d.getFont=function(){return wA[Ft.apply(d,arguments)]};d.__private__.getFontList=d.getFontList=function(){var A,t,i={};for(A in BA)if(BA.hasOwnProperty(A))for(t in i[A]=[],BA[A])BA[A].hasOwnProperty(t)&&i[A].push(t);return i},d.addFont=function(A,t,i,e,n){var r=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==r.indexOf(arguments[3])?n=arguments[3]:arguments[3]&&-1==r.indexOf(arguments[3])&&(i=Q(i,e)),gt.call(this,A,t,i,n=n||"Identity-H")};var $t,Ai=A.lineWidth||.200025,ti=d.__private__.getLineWidth=d.getLineWidth=function(){return Ai},ii=d.__private__.setLineWidth=d.setLineWidth=function(A){return Ai=A,Z(C(x(A))+" w"),this};d.__private__.setLineDash=he.API.setLineDash=he.API.setLineDashPattern=function(A,t){if(A=A||[],t=t||0,isNaN(t)||!Array.isArray(A))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return A=A.map((function(A){return C(x(A))})).join(" "),t=C(x(t)),Z("["+A+"] "+t+" d"),this};var ei=d.__private__.getLineHeight=d.getLineHeight=function(){return iA*$t};d.__private__.getLineHeight=d.getLineHeight=function(){return iA*$t};var ni=d.__private__.setLineHeightFactor=d.setLineHeightFactor=function(A){return"number"==typeof(A=A||1.15)&&($t=A),this},ri=d.__private__.getLineHeightFactor=d.getLineHeightFactor=function(){return $t};ni(A.lineHeight);var oi=d.__private__.getHorizontalCoordinate=function(A){return x(A)},si=d.__private__.getVerticalCoordinate=function(A){return m===B.ADVANCED?A:yA[T].mediaBox.topRightY-yA[T].mediaBox.bottomLeftY-x(A)},ai=d.__private__.getHorizontalCoordinateString=d.getHorizontalCoordinateString=function(A){return C(oi(A))},li=d.__private__.getVerticalCoordinateString=d.getVerticalCoordinateString=function(A){return C(si(A))},ci=A.strokeColor||"0 G";d.__private__.getStrokeColor=d.getDrawColor=function(){return qA(ci)},d.__private__.setStrokeColor=d.setDrawColor=function(A,t,i,e){return ci=RA({ch1:A,ch2:t,ch3:i,ch4:e,pdfColorType:"draw",precision:2}),Z(ci),this};var hi=A.fillColor||"0 g";d.__private__.getFillColor=d.getFillColor=function(){return qA(hi)},d.__private__.setFillColor=d.setFillColor=function(A,t,i,e){return hi=RA({ch1:A,ch2:t,ch3:i,ch4:e,pdfColorType:"fill",precision:2}),Z(hi),this};var ui=A.textColor||"0 g",di=d.__private__.getTextColor=d.getTextColor=function(){return qA(ui)};d.__private__.setTextColor=d.setTextColor=function(A,t,i,e){return ui=RA({ch1:A,ch2:t,ch3:i,ch4:e,pdfColorType:"text",precision:3}),this};var gi=A.charSpace,fi=d.__private__.getCharSpace=d.getCharSpace=function(){return parseFloat(gi||0)};d.__private__.setCharSpace=d.setCharSpace=function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return gi=A,this};var pi=0;d.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},d.__private__.setLineCap=d.setLineCap=function(A){var t=d.CapJoinStyles[A];if(void 0===t)throw new Error("Line cap style of '"+A+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return pi=t,Z(t+" J"),this};var wi=0;d.__private__.setLineJoin=d.setLineJoin=function(A){var t=d.CapJoinStyles[A];if(void 0===t)throw new Error("Line join style of '"+A+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return wi=t,Z(t+" j"),this},d.__private__.setLineMiterLimit=d.__private__.setMiterLimit=d.setLineMiterLimit=d.setMiterLimit=function(A){if(A=A||0,isNaN(A))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Z(C(x(A))+" M"),this},d.GState=se,d.setGState=function(A){(A="string"==typeof A?QA[CA[A]]:Bi(null,A)).equals(FA)||(Z("/"+A.id+" gs"),FA=A)};var Bi=function(A,t){if(!A||!CA[A]){var i=!1;for(var e in QA)if(QA.hasOwnProperty(e)&&QA[e].equals(t)){i=!0;break}if(i)t=QA[e];else{var n="GS"+(Object.keys(QA).length+1).toString(10);QA[n]=t,t.id=n}return A&&(CA[A]=t.id),kA.publish("addGState",t),t}};d.addGState=function(A,t){return Bi(A,t),this},d.saveGraphicsState=function(){return Z("q"),mA.push({key:uA,size:iA,color:ui}),this},d.restoreGraphicsState=function(){Z("Q");var A=mA.pop();return uA=A.key,iA=A.size,ui=A.color,FA=null,this},d.setCurrentTransformationMatrix=function(A){return Z(A.toString()+" cm"),this},d.comment=function(A){return Z("#"+A),this};var mi=function(A,t){var i=A||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return i},set:function(A){isNaN(A)||(i=parseFloat(A))}});var e=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return e},set:function(A){isNaN(A)||(e=parseFloat(A))}});var n="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return n},set:function(A){n=A.toString()}}),this},bi=function(A,t,i,e){mi.call(this,A,t),this.type="rect";var n=i||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return n},set:function(A){isNaN(A)||(n=parseFloat(A))}});var r=e||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return r},set:function(A){isNaN(A)||(r=parseFloat(A))}}),this},vi=function(){this.page=UA,this.currentPage=T,this.pages=J.slice(0),this.pagesContext=yA.slice(0),this.x=gA,this.y=fA,this.matrix=pA,this.width=Ui(T),this.height=ki(T),this.outputDestination=_,this.id="",this.objectNumber=-1};vi.prototype.restore=function(){UA=this.page,yA=this.pagesContext,J=this.pages,gA=this.x,fA=this.y,pA=this.matrix,yi(T=this.currentPage,this.width),xi(T,this.height),_=this.outputDestination};var Qi=function(A,t,i,e,n){HA.push(new vi),UA=T=0,J=[],gA=A,fA=t,pA=n,mt([i,e])},Ci=function(A){if(EA[A])HA.pop().restore();else{var t=new vi,i="Xo"+(Object.keys(LA).length+1).toString(10);t.id=i,EA[A]=i,LA[i]=t,kA.publish("addFormObject",t),HA.pop().restore()}};for(var Fi in d.beginFormObject=function(A,t,i,e,n){return Qi(A,t,i,e,n),this},d.endFormObject=function(A){return Ci(A),this},d.doFormObject=function(A,t){var i=LA[EA[A]];return Z("q"),Z(t.toString()+" cm"),Z("/"+i.id+" Do"),Z("Q"),this},d.getFormObject=function(A){var t=LA[EA[A]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},d.save=function(A,t){return A=A||"generated.pdf",(t=t||{}).returnPromise=t.returnPromise||!1,!1===t.returnPromise?(Pi(Ht(Et()),A),"function"==typeof Pi.unload&&Ii.setTimeout&&setTimeout(Pi.unload,911),this):new Promise((function(t,i){try{var e=Pi(Ht(Et()),A);"function"==typeof Pi.unload&&Ii.setTimeout&&setTimeout(Pi.unload,911),t(e)}catch(A){i(A.message)}}))},he.API)he.API.hasOwnProperty(Fi)&&("events"===Fi&&he.API.events.length?function(A,t){var i,e;for(e=t.length-1;-1!==e;e--)A.subscribe.apply(A,[t[e][0]].concat("function"==typeof(i=t[e][1])?[i]:i))}(kA,he.API.events):d[Fi]=he.API[Fi]);var Ui=d.getPageWidth=function(A){return(yA[A=A||T].mediaBox.topRightX-yA[A].mediaBox.bottomLeftX)/dA},yi=d.setPageWidth=function(A,t){yA[A].mediaBox.topRightX=t*dA+yA[A].mediaBox.bottomLeftX},ki=d.getPageHeight=function(A){return(yA[A=A||T].mediaBox.topRightY-yA[A].mediaBox.bottomLeftY)/dA},xi=d.setPageHeight=function(A,t){yA[A].mediaBox.topRightY=t*dA+yA[A].mediaBox.bottomLeftY};return d.internal={pdfEscape:Bt,getStyle:jt,getFont:Zt,getFontSize:nA,getCharSpace:fi,getTextColor:di,getLineHeight:ei,getLineHeightFactor:ri,getLineWidth:ti,write:$,getHorizontalCoordinate:oi,getVerticalCoordinate:si,getCoordinateString:ai,getVerticalCoordinateString:li,collections:{},newObject:MA,newAdditionalObject:TA,newObjectDeferred:KA,newObjectDeferredBegin:OA,getFilters:GA,putStream:VA,events:kA,scaleFactor:dA,pageSize:{getWidth:function(){return Ui(T)},setWidth:function(A){yi(T,A)},getHeight:function(){return ki(T)},setHeight:function(A){xi(T,A)}},encryptionOptions:c,encryption:St,getEncryptor:Dt,output:It,getNumberOfPages:Ct,pages:J,out:Z,f2:y,f3:k,getPageInfo:Mt,getPageInfoByObjId:Kt,getCurrentPageInfo:Ot,getPDFVersion:f,Point:mi,Rectangle:bi,Matrix:IA,hasHotfix:Nt},Object.defineProperty(d.internal.pageSize,"width",{get:function(){return Ui(T)},set:function(A){yi(T,A)},enumerable:!0,configurable:!0}),Object.defineProperty(d.internal.pageSize,"height",{get:function(){return ki(T)},set:function(A){xi(T,A)},enumerable:!0,configurable:!0}),ft.call(d,tA),uA="F1",bt(n,i),kA.publish("initialized"),d}ne.prototype.lsbFirstWord=function(A){return String.fromCharCode(A>>0&255,A>>8&255,A>>16&255,A>>24&255)},ne.prototype.toHexString=function(A){return A.split("").map((function(A){return("0"+(255&A.charCodeAt(0)).toString(16)).slice(-2)})).join("")},ne.prototype.hexToBytes=function(A){for(var t=[],i=0;i<A.length;i+=2)t.push(String.fromCharCode(parseInt(A.substr(i,2),16)));return t.join("")},ne.prototype.processOwnerPassword=function(A,t){return ie($i(t).substr(0,5),A)},ne.prototype.encryptor=function(A,t){var i=$i(this.encryptionKey+String.fromCharCode(255&A,A>>8&255,A>>16&255,255&t,t>>8&255)).substr(0,10);return function(A){return ie(i,A)}},se.prototype.equals=function(A){var t,i="id,objectNumber,equals";if(!A||zt(A)!==zt(this))return!1;var e=0;for(t in this)if(!(i.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!A.hasOwnProperty(t))return!1;if(this[t]!==A[t])return!1;e++}for(t in A)A.hasOwnProperty(t)&&i.indexOf(t)<0&&e--;return 0===e},he.API={events:[]},he.version="2.5.1";var ue=he.API,de=1,ge=function(A){return A.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},fe=function(A){return A.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},pe=function(A){return A.toFixed(2)},we=function(A){return A.toFixed(5)};ue.__acroform__={};var Be=function(A,t){A.prototype=Object.create(t.prototype),A.prototype.constructor=A},me=function(A){return A*de},be=function(A){var t=new Ke,i=We.internal.getHeight(A)||0,e=We.internal.getWidth(A)||0;return t.BBox=[0,0,Number(pe(e)),Number(pe(i))],t},ve=ue.__acroform__.setBit=function(A,t){if(A=A||0,t=t||0,isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return A|1<<t},Qe=ue.__acroform__.clearBit=function(A,t){if(A=A||0,t=t||0,isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return A&~(1<<t)},Ce=ue.__acroform__.getBit=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(A&1<<t)?0:1},Fe=ue.__acroform__.getBitForPdf=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Ce(A,t-1)},Ue=ue.__acroform__.setBitForPdf=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return ve(A,t-1)},ye=ue.__acroform__.clearBitForPdf=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Qe(A,t-1)},ke=ue.__acroform__.calculateCoordinates=function(A,t){var i=t.internal.getHorizontalCoordinate,e=t.internal.getVerticalCoordinate,n=A[0],r=A[1],o=A[2],s=A[3],a={};return a.lowerLeft_X=i(n)||0,a.lowerLeft_Y=e(r+s)||0,a.upperRight_X=i(n+o)||0,a.upperRight_Y=e(r)||0,[Number(pe(a.lowerLeft_X)),Number(pe(a.lowerLeft_Y)),Number(pe(a.upperRight_X)),Number(pe(a.upperRight_Y))]},xe=function(A){if(A.appearanceStreamContent)return A.appearanceStreamContent;if(A.V||A.DV){var t=[],i=Le(A,A._V||A.DV),e=A.scope.internal.getFont(A.fontName,A.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(A.scope.__private__.encodeColorString(A.color)),t.push("/"+e+" "+pe(i.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(i.text),t.push("ET"),t.push("Q"),t.push("EMC");var n=be(A);return n.scope=A.scope,n.stream=t.join("\n"),n}},Le=function(A,t){var i=0===A.fontSize?A.maxFontSize:A.fontSize,e={text:"",fontSize:""},n=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" ");n=n.map(A.multiline?function(A){return A.split("\n")}:function(A){return[A]});var r=i,o=We.internal.getHeight(A)||0;o=o<0?-o:o;var s=We.internal.getWidth(A)||0;s=s<0?-s:s;var a=function(t,i,e){return t+1<n.length&&Ee(i+" "+n[t+1][0],A,e).width<=s-4};r++;A:for(;r>0;){t="",r--;var l,c,h=Ee("3",A,r).height,u=A.multiline?o-r:(o-h)/2,d=u+=2,g=0,f=0,p=0;if(r<=0){t="(...) Tj\n",t+="% Width of Text: "+Ee(t,A,r=12).width+", FieldWidth:"+s+"\n";break}for(var w="",B=0,m=0;m<n.length;m++)if(n.hasOwnProperty(m)){var b=!1;if(1!==n[m].length&&p!==n[m].length-1){if((h+2)*(B+2)+2>o)continue A;w+=n[m][p],b=!0,f=m,m--}else{w=" "==(w+=n[m][p]+" ").substr(w.length-1)?w.substr(0,w.length-1):w;var v=parseInt(m),Q=a(v,w,r),C=m>=n.length-1;if(Q&&!C){w+=" ",p=0;continue}if(Q||C){if(C)f=v;else if(A.multiline&&(h+2)*(B+2)+2>o)continue A}else{if(!A.multiline)continue A;if((h+2)*(B+2)+2>o)continue A;f=v}}for(var F="",U=g;U<=f;U++){var y=n[U];if(A.multiline){if(U===f){F+=y[p]+" ",p=(p+1)%y.length;continue}if(U===g){F+=y[y.length-1]+" ";continue}}F+=y[0]+" "}switch(F=" "==F.substr(F.length-1)?F.substr(0,F.length-1):F,c=Ee(F,A,r).width,A.textAlign){case"right":l=s-c-2;break;case"center":l=(s-c)/2;break;case"left":default:l=2}t+=pe(l)+" "+pe(d)+" Td\n",t+="("+ge(F)+") Tj\n",t+=-pe(l)+" 0 Td\n",d=-(r+2),c=0,g=b?f:f+1,B++,w=""}break}return e.text=t,e.fontSize=r,e},Ee=function(A,t,i){var e=t.scope.internal.getFont(t.fontName,t.fontStyle),n=t.scope.getStringUnitWidth(A,{font:e,fontSize:parseFloat(i),charSpace:0})*parseFloat(i);return{height:t.scope.getStringUnitWidth("3",{font:e,fontSize:parseFloat(i),charSpace:0})*parseFloat(i)*1.5,width:n}},He={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Ie=function(A,t){var i={type:"reference",object:A};void 0===t.internal.getPageInfo(A.page).pageContext.annotations.find((function(A){return A.type===i.type&&A.object===i.object}))&&t.internal.getPageInfo(A.page).pageContext.annotations.push(i)},Ne=function(A,t){if(t.scope=A,void 0!==A.internal&&(void 0===A.internal.acroformPlugin||!1===A.internal.acroformPlugin.isInitialized)){if(Te.FieldNum=0,A.internal.acroformPlugin=JSON.parse(JSON.stringify(He)),A.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");de=A.internal.scaleFactor,A.internal.acroformPlugin.acroFormDictionaryRoot=new Oe,A.internal.acroformPlugin.acroFormDictionaryRoot.scope=A,A.internal.acroformPlugin.acroFormDictionaryRoot._eventID=A.internal.events.subscribe("postPutResources",(function(){!function(A){A.internal.events.unsubscribe(A.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete A.internal.acroformPlugin.acroFormDictionaryRoot._eventID,A.internal.acroformPlugin.printedOut=!0}(A)})),A.internal.events.subscribe("buildDocument",(function(){!function(A){A.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=A.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in t)if(t.hasOwnProperty(i)){var e=t[i];e.objId=void 0,e.hasAnnotation&&Ie(e,A)}}(A)})),A.internal.events.subscribe("putCatalog",(function(){!function(A){if(void 0===A.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");A.internal.write("/AcroForm "+A.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(A)})),A.internal.events.subscribe("postPutPages",(function(t){!function(A,t){var i=!A;for(var e in A||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),A=A||t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(A.hasOwnProperty(e)){var n=A[e],r=[],o=n.Rect;if(n.Rect&&(n.Rect=ke(n.Rect,t)),t.internal.newObjectDeferredBegin(n.objId,!0),n.DA=We.createDefaultAppearanceStream(n),"object"===zt(n)&&"function"==typeof n.getKeyValueListForStream&&(r=n.getKeyValueListForStream()),n.Rect=o,n.hasAppearanceStream&&!n.appearanceStreamContent){var s=xe(n);r.push({key:"AP",value:"<</N "+s+">>"}),t.internal.acroformPlugin.xForms.push(s)}if(n.appearanceStreamContent){var a="";for(var l in n.appearanceStreamContent)if(n.appearanceStreamContent.hasOwnProperty(l)){var c=n.appearanceStreamContent[l];if(a+="/"+l+" ",a+="<<",Object.keys(c).length>=1||Array.isArray(c)){for(var e in c)if(c.hasOwnProperty(e)){var h=c[e];"function"==typeof h&&(h=h.call(t,n)),a+="/"+e+" "+h+" ",t.internal.acroformPlugin.xForms.indexOf(h)>=0||t.internal.acroformPlugin.xForms.push(h)}}else"function"==typeof(h=c)&&(h=h.call(t,n)),a+="/"+e+" "+h,t.internal.acroformPlugin.xForms.indexOf(h)>=0||t.internal.acroformPlugin.xForms.push(h);a+=">>"}r.push({key:"AP",value:"<<\n"+a+">>"})}t.internal.putStream({additionalKeyValues:r,objectId:n.objId}),t.internal.out("endobj")}i&&function(A,t){for(var i in A)if(A.hasOwnProperty(i)){var e=i,n=A[i];t.internal.newObjectDeferredBegin(n.objId,!0),"object"===zt(n)&&"function"==typeof n.putStream&&n.putStream(),delete A[e]}}(t.internal.acroformPlugin.xForms,t)}(t,A)})),A.internal.acroformPlugin.isInitialized=!0}},Se=ue.__acroform__.arrayToPdfArray=function(A,t,i){var e=function(A){return A};if(Array.isArray(A)){for(var n="[",r=0;r<A.length;r++)switch(0!==r&&(n+=" "),zt(A[r])){case"boolean":case"number":case"object":n+=A[r].toString();break;case"string":"/"!==A[r].substr(0,1)?(void 0!==t&&i&&(e=i.internal.getEncryptor(t)),n+="("+ge(e(A[r].toString()))+")"):n+=A[r].toString()}return n+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},De=function(A,t,i){var e=function(A){return A};return void 0!==t&&i&&(e=i.internal.getEncryptor(t)),(A=A||"").toString(),"("+ge(e(A))+")"},Me=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(A){this._objId=A}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Me.prototype.toString=function(){return this.objId+" 0 R"},Me.prototype.putStream=function(){var A=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:A,objectId:this.objId}),this.scope.internal.out("endobj")},Me.prototype.getKeyValueListForStream=function(){var A=[],t=Object.getOwnPropertyNames(this).filter((function(A){return"content"!=A&&"appearanceStreamContent"!=A&&"scope"!=A&&"objId"!=A&&"_"!=A.substring(0,1)}));for(var i in t)if(!1===Object.getOwnPropertyDescriptor(this,t[i]).configurable){var e=t[i],n=this[e];n&&(Array.isArray(n)?A.push({key:e,value:Se(n,this.objId,this.scope)}):n instanceof Me?(n.scope=this.scope,A.push({key:e,value:n.objId+" 0 R"})):"function"!=typeof n&&A.push({key:e,value:n}))}return A};var Ke=function(){Me.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var A,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(A){t=A}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){A=t.trim()},get:function(){return A||null}})};Be(Ke,Me);var Oe=function(){Me.call(this);var A,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(A){var t=function(A){return A};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+ge(t(A))+")"}},set:function(t){A=t}})};Be(Oe,Me);var Te=function A(){Me.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(A){if(isNaN(A))throw new Error('Invalid value "'+A+'" for attribute F supplied.');t=A}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(t,3))},set:function(A){this.F=!0===Boolean(A)?Ue(t,3):ye(t,3)}});var i=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return i},set:function(A){if(isNaN(A))throw new Error('Invalid value "'+A+'" for attribute Ff supplied.');i=A}});var e=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==e.length)return e},set:function(A){e=void 0!==A?A:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!e||isNaN(e[0])?0:e[0]},set:function(A){e[0]=A}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!e||isNaN(e[1])?0:e[1]},set:function(A){e[1]=A}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!e||isNaN(e[2])?0:e[2]},set:function(A){e[2]=A}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!e||isNaN(e[3])?0:e[3]},set:function(A){e[3]=A}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(A){switch(A){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=A;break;default:throw new Error('Invalid value "'+A+'" for attribute FT supplied.')}}});var r=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!r||r.length<1){if(this instanceof Je)return;r="FieldObject"+A.FieldNum++}var t=function(A){return A};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+ge(t(r))+")"},set:function(A){r=A.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return r},set:function(A){r=A}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(A){o=A}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(A){s=A}});var a=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return a},set:function(A){a=A}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===l?50/de:l},set:function(A){l=A}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(A){c=A}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof Je||this instanceof _e))return De(h,this.objId,this.scope)},set:function(A){A=A.toString(),h=A}});var u=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(u)return this instanceof Ge==0?De(u,this.objId,this.scope):u},set:function(A){A=A.toString(),u=this instanceof Ge==0?"("===A.substr(0,1)?fe(A.substr(1,A.length-2)):fe(A):A}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ge==1?fe(u.substr(1,u.length-1)):u},set:function(A){A=A.toString(),u=this instanceof Ge==1?"/"+A:A}});var d=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(A){this.V=A}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof Ge==0?De(d,this.objId,this.scope):d},set:function(A){A=A.toString(),d=this instanceof Ge==0?"("===A.substr(0,1)?fe(A.substr(1,A.length-2)):fe(A):A}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ge==1?fe(d.substr(1,d.length-1)):d},set:function(A){A=A.toString(),d=this instanceof Ge==1?"/"+A:A}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var g,f=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return f},set:function(A){A=Boolean(A),f=A}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(g)return g},set:function(A){g=A}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,1))},set:function(A){this.Ff=!0===Boolean(A)?Ue(this.Ff,1):ye(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,2))},set:function(A){this.Ff=!0===Boolean(A)?Ue(this.Ff,2):ye(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,3))},set:function(A){this.Ff=!0===Boolean(A)?Ue(this.Ff,3):ye(this.Ff,3)}});var p=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==p)return p},set:function(A){if(-1===[0,1,2].indexOf(A))throw new Error('Invalid value "'+A+'" for attribute Q supplied.');p=A}}),Object.defineProperty(this,"textAlign",{get:function(){var A;switch(p){case 0:default:A="left";break;case 1:A="center";break;case 2:A="right"}return A},configurable:!0,enumerable:!0,set:function(A){switch(A){case"right":case 2:p=2;break;case"center":case 1:p=1;break;case"left":case 0:default:p=0}}})};Be(Te,Me);var Pe=function(){Te.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var A=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return A},set:function(t){A=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Se(t,this.objId,this.scope)},set:function(A){var i,e;e=[],"string"==typeof(i=A)&&(e=function(A,t,i){i||(i=1);for(var e,n=[];e=t.exec(A);)n.push(e[i]);return n}(i,/\((.*?)\)/g)),t=e}}),this.getOptions=function(){return t},this.setOptions=function(A){t=A,this.sort&&t.sort()},this.addOption=function(A){A=(A=A||"").toString(),t.push(A),this.sort&&t.sort()},this.removeOption=function(A,i){for(i=i||!1,A=(A=A||"").toString();-1!==t.indexOf(A)&&(t.splice(t.indexOf(A),1),!1!==i););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,18))},set:function(A){this.Ff=!0===Boolean(A)?Ue(this.Ff,18):ye(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,19))},set:function(A){!0===this.combo&&(this.Ff=!0===Boolean(A)?Ue(this.Ff,19):ye(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,20))},set:function(A){!0===Boolean(A)?(this.Ff=Ue(this.Ff,20),t.sort()):this.Ff=ye(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,22))},set:function(A){this.Ff=!0===Boolean(A)?Ue(this.Ff,22):ye(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,23))},set:function(A){this.Ff=!0===Boolean(A)?Ue(this.Ff,23):ye(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,27))},set:function(A){this.Ff=!0===Boolean(A)?Ue(this.Ff,27):ye(this.Ff,27)}}),this.hasAppearanceStream=!1};Be(Pe,Te);var je=function(){Pe.call(this),this.fontName="helvetica",this.combo=!1};Be(je,Pe);var qe=function(){je.call(this),this.combo=!0};Be(qe,je);var Re=function(){qe.call(this),this.edit=!0};Be(Re,qe);var Ge=function(){Te.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,15))},set:function(A){this.Ff=!0===Boolean(A)?Ue(this.Ff,15):ye(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,16))},set:function(A){this.Ff=!0===Boolean(A)?Ue(this.Ff,16):ye(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,17))},set:function(A){this.Ff=!0===Boolean(A)?Ue(this.Ff,17):ye(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,26))},set:function(A){this.Ff=!0===Boolean(A)?Ue(this.Ff,26):ye(this.Ff,26)}});var A,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(A){return A};if(this.scope&&(A=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(t).length){var i,e=[];for(i in e.push("<<"),t)e.push("/"+i+" ("+ge(A(t[i]))+")");return e.push(">>"),e.join("\n")}},set:function(A){"object"===zt(A)&&(t=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(A){"string"==typeof A&&(t.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return A.substr(1,A.length-1)},set:function(t){A="/"+t}})};Be(Ge,Te);var Ve=function(){Ge.call(this),this.pushButton=!0};Be(Ve,Ge);var ze=function(){Ge.call(this),this.radio=!0,this.pushButton=!1;var A=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return A},set:function(t){A=void 0!==t?t:[]}})};Be(ze,Ge);var Je=function(){var A,t;Te.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(A){t=A}});var i,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(A){return A};this.scope&&(A=this.scope.internal.getEncryptor(this.objId));var t,i=[];for(t in i.push("<<"),e)i.push("/"+t+" ("+ge(A(e[t]))+")");return i.push(">>"),i.join("\n")},set:function(A){"object"===zt(A)&&(e=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(A){"string"==typeof A&&(e.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return i},set:function(A){i=A}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return i.substr(1,i.length-1)},set:function(A){i="/"+A}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=We.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Be(Je,Te),ze.prototype.setAppearance=function(A){if(!("createAppearanceStream"in A)||!("getCA"in A))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var i=this.Kids[t];i.appearanceStreamContent=A.createAppearanceStream(i.optionName),i.caption=A.getCA()}},ze.prototype.createOption=function(A){var t=new Je;return t.Parent=this,t.optionName=A,this.Kids.push(t),Ze.call(this.scope,t),t};var Xe=function(){Ge.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=We.CheckBox.createAppearanceStream()};Be(Xe,Ge);var _e=function(){Te.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,13))},set:function(A){this.Ff=!0===Boolean(A)?Ue(this.Ff,13):ye(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,21))},set:function(A){this.Ff=!0===Boolean(A)?Ue(this.Ff,21):ye(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,23))},set:function(A){this.Ff=!0===Boolean(A)?Ue(this.Ff,23):ye(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,24))},set:function(A){this.Ff=!0===Boolean(A)?Ue(this.Ff,24):ye(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,25))},set:function(A){this.Ff=!0===Boolean(A)?Ue(this.Ff,25):ye(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,26))},set:function(A){this.Ff=!0===Boolean(A)?Ue(this.Ff,26):ye(this.Ff,26)}});var A=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return A},set:function(t){Number.isInteger(t)&&(A=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Be(_e,Te);var Ye=function(){_e.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,14))},set:function(A){this.Ff=!0===Boolean(A)?Ue(this.Ff,14):ye(this.Ff,14)}}),this.password=!0};Be(Ye,_e);var We={CheckBox:{createAppearanceStream:function(){return{N:{On:We.CheckBox.YesNormal},D:{On:We.CheckBox.YesPushDown,Off:We.CheckBox.OffPushDown}}},YesPushDown:function(A){var t=be(A);t.scope=A.scope;var i=[],e=A.scope.internal.getFont(A.fontName,A.fontStyle).id,n=A.scope.__private__.encodeColorString(A.color),r=Le(A,A.caption);return i.push("0.749023 g"),i.push("0 0 "+pe(We.internal.getWidth(A))+" "+pe(We.internal.getHeight(A))+" re"),i.push("f"),i.push("BMC"),i.push("q"),i.push("0 0 1 rg"),i.push("/"+e+" "+pe(r.fontSize)+" Tf "+n),i.push("BT"),i.push(r.text),i.push("ET"),i.push("Q"),i.push("EMC"),t.stream=i.join("\n"),t},YesNormal:function(A){var t=be(A);t.scope=A.scope;var i=A.scope.internal.getFont(A.fontName,A.fontStyle).id,e=A.scope.__private__.encodeColorString(A.color),n=[],r=We.internal.getHeight(A),o=We.internal.getWidth(A),s=Le(A,A.caption);return n.push("1 g"),n.push("0 0 "+pe(o)+" "+pe(r)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+pe(o-1)+" "+pe(r-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+i+" "+pe(s.fontSize)+" Tf "+e),n.push(s.text),n.push("ET"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(A){var t=be(A);t.scope=A.scope;var i=[];return i.push("0.749023 g"),i.push("0 0 "+pe(We.internal.getWidth(A))+" "+pe(We.internal.getHeight(A))+" re"),i.push("f"),t.stream=i.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(A){var t={D:{Off:We.RadioButton.Circle.OffPushDown},N:{}};return t.N[A]=We.RadioButton.Circle.YesNormal,t.D[A]=We.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(A){var t=be(A);t.scope=A.scope;var i=[],e=We.internal.getWidth(A)<=We.internal.getHeight(A)?We.internal.getWidth(A)/4:We.internal.getHeight(A)/4;e=Number((.9*e).toFixed(5));var n=Number((e*We.internal.Bezier_C).toFixed(5));return i.push("q"),i.push("1 0 0 1 "+we(We.internal.getWidth(A)/2)+" "+we(We.internal.getHeight(A)/2)+" cm"),i.push(e+" 0 m"),i.push(e+" "+n+" "+n+" "+e+" 0 "+e+" c"),i.push("-"+n+" "+e+" -"+e+" "+n+" -"+e+" 0 c"),i.push("-"+e+" -"+n+" -"+n+" -"+e+" 0 -"+e+" c"),i.push(n+" -"+e+" "+e+" -"+n+" "+e+" 0 c"),i.push("f"),i.push("Q"),t.stream=i.join("\n"),t},YesPushDown:function(A){var t=be(A);t.scope=A.scope;var i=[],e=We.internal.getWidth(A)<=We.internal.getHeight(A)?We.internal.getWidth(A)/4:We.internal.getHeight(A)/4;e=Number((.9*e).toFixed(5));var n=Number((2*e).toFixed(5)),r=Number((n*We.internal.Bezier_C).toFixed(5)),o=Number((e*We.internal.Bezier_C).toFixed(5));return i.push("0.749023 g"),i.push("q"),i.push("1 0 0 1 "+we(We.internal.getWidth(A)/2)+" "+we(We.internal.getHeight(A)/2)+" cm"),i.push(n+" 0 m"),i.push(n+" "+r+" "+r+" "+n+" 0 "+n+" c"),i.push("-"+r+" "+n+" -"+n+" "+r+" -"+n+" 0 c"),i.push("-"+n+" -"+r+" -"+r+" -"+n+" 0 -"+n+" c"),i.push(r+" -"+n+" "+n+" -"+r+" "+n+" 0 c"),i.push("f"),i.push("Q"),i.push("0 g"),i.push("q"),i.push("1 0 0 1 "+we(We.internal.getWidth(A)/2)+" "+we(We.internal.getHeight(A)/2)+" cm"),i.push(e+" 0 m"),i.push(e+" "+o+" "+o+" "+e+" 0 "+e+" c"),i.push("-"+o+" "+e+" -"+e+" "+o+" -"+e+" 0 c"),i.push("-"+e+" -"+o+" -"+o+" -"+e+" 0 -"+e+" c"),i.push(o+" -"+e+" "+e+" -"+o+" "+e+" 0 c"),i.push("f"),i.push("Q"),t.stream=i.join("\n"),t},OffPushDown:function(A){var t=be(A);t.scope=A.scope;var i=[],e=We.internal.getWidth(A)<=We.internal.getHeight(A)?We.internal.getWidth(A)/4:We.internal.getHeight(A)/4;e=Number((.9*e).toFixed(5));var n=Number((2*e).toFixed(5)),r=Number((n*We.internal.Bezier_C).toFixed(5));return i.push("0.749023 g"),i.push("q"),i.push("1 0 0 1 "+we(We.internal.getWidth(A)/2)+" "+we(We.internal.getHeight(A)/2)+" cm"),i.push(n+" 0 m"),i.push(n+" "+r+" "+r+" "+n+" 0 "+n+" c"),i.push("-"+r+" "+n+" -"+n+" "+r+" -"+n+" 0 c"),i.push("-"+n+" -"+r+" -"+r+" -"+n+" 0 -"+n+" c"),i.push(r+" -"+n+" "+n+" -"+r+" "+n+" 0 c"),i.push("f"),i.push("Q"),t.stream=i.join("\n"),t}},Cross:{createAppearanceStream:function(A){var t={D:{Off:We.RadioButton.Cross.OffPushDown},N:{}};return t.N[A]=We.RadioButton.Cross.YesNormal,t.D[A]=We.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(A){var t=be(A);t.scope=A.scope;var i=[],e=We.internal.calculateCross(A);return i.push("q"),i.push("1 1 "+pe(We.internal.getWidth(A)-2)+" "+pe(We.internal.getHeight(A)-2)+" re"),i.push("W"),i.push("n"),i.push(pe(e.x1.x)+" "+pe(e.x1.y)+" m"),i.push(pe(e.x2.x)+" "+pe(e.x2.y)+" l"),i.push(pe(e.x4.x)+" "+pe(e.x4.y)+" m"),i.push(pe(e.x3.x)+" "+pe(e.x3.y)+" l"),i.push("s"),i.push("Q"),t.stream=i.join("\n"),t},YesPushDown:function(A){var t=be(A);t.scope=A.scope;var i=We.internal.calculateCross(A),e=[];return e.push("0.749023 g"),e.push("0 0 "+pe(We.internal.getWidth(A))+" "+pe(We.internal.getHeight(A))+" re"),e.push("f"),e.push("q"),e.push("1 1 "+pe(We.internal.getWidth(A)-2)+" "+pe(We.internal.getHeight(A)-2)+" re"),e.push("W"),e.push("n"),e.push(pe(i.x1.x)+" "+pe(i.x1.y)+" m"),e.push(pe(i.x2.x)+" "+pe(i.x2.y)+" l"),e.push(pe(i.x4.x)+" "+pe(i.x4.y)+" m"),e.push(pe(i.x3.x)+" "+pe(i.x3.y)+" l"),e.push("s"),e.push("Q"),t.stream=e.join("\n"),t},OffPushDown:function(A){var t=be(A);t.scope=A.scope;var i=[];return i.push("0.749023 g"),i.push("0 0 "+pe(We.internal.getWidth(A))+" "+pe(We.internal.getHeight(A))+" re"),i.push("f"),t.stream=i.join("\n"),t}}},createDefaultAppearanceStream:function(A){var t=A.scope.internal.getFont(A.fontName,A.fontStyle).id,i=A.scope.__private__.encodeColorString(A.color);return"/"+t+" "+A.fontSize+" Tf "+i}};We.internal={Bezier_C:.551915024494,calculateCross:function(A){var t=We.internal.getWidth(A),i=We.internal.getHeight(A),e=Math.min(t,i);return{x1:{x:(t-e)/2,y:(i-e)/2+e},x2:{x:(t-e)/2+e,y:(i-e)/2},x3:{x:(t-e)/2,y:(i-e)/2},x4:{x:(t-e)/2+e,y:(i-e)/2+e}}}},We.internal.getWidth=function(A){var t=0;return"object"===zt(A)&&(t=me(A.Rect[2])),t},We.internal.getHeight=function(A){var t=0;return"object"===zt(A)&&(t=me(A.Rect[3])),t};var Ze=ue.addField=function(A){if(Ne(this,A),!(A instanceof Te))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=A).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),A.page=A.scope.internal.getCurrentPageInfo().pageNumber,this};function $e(A){return A.reduce((function(A,t,i){return A[t]=i,A}),{})}ue.AcroFormChoiceField=Pe,ue.AcroFormListBox=je,ue.AcroFormComboBox=qe,ue.AcroFormEditBox=Re,ue.AcroFormButton=Ge,ue.AcroFormPushButton=Ve,ue.AcroFormRadioButton=ze,ue.AcroFormCheckBox=Xe,ue.AcroFormTextField=_e,ue.AcroFormPasswordField=Ye,ue.AcroFormAppearance=We,ue.AcroForm={ChoiceField:Pe,ListBox:je,ComboBox:qe,EditBox:Re,Button:Ge,PushButton:Ve,RadioButton:ze,CheckBox:Xe,TextField:_e,PasswordField:Ye,Appearance:We},he.AcroForm={ChoiceField:Pe,ListBox:je,ComboBox:qe,EditBox:Re,Button:Ge,PushButton:Ve,RadioButton:ze,CheckBox:Xe,TextField:_e,PasswordField:Ye,Appearance:We},function(A){A.__addimage__={};var t="UNKNOWN",i={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},e=A.__addimage__.getImageFileTypeByImageData=function(A,e){var n,r,o,s,a,l=t;if("RGBA"===(e=e||t)||void 0!==A.data&&A.data instanceof Uint8ClampedArray&&"height"in A&&"width"in A)return"RGBA";if(Q(A))for(a in i)for(o=i[a],n=0;n<o.length;n+=1){for(s=!0,r=0;r<o[n].length;r+=1)if(void 0!==o[n][r]&&o[n][r]!==A[r]){s=!1;break}if(!0===s){l=a;break}}else for(a in i)for(o=i[a],n=0;n<o.length;n+=1){for(s=!0,r=0;r<o[n].length;r+=1)if(void 0!==o[n][r]&&o[n][r]!==A.charCodeAt(r)){s=!1;break}if(!0===s){l=a;break}}return l===t&&e!==t&&(l=e),l},n=function A(t){for(var i=this.internal.write,e=this.internal.putStream,n=(0,this.internal.getFilters)();-1!==n.indexOf("FlateEncode");)n.splice(n.indexOf("FlateEncode"),1);t.objectId=this.internal.newObject();var r=[];if(r.push({key:"Type",value:"/XObject"}),r.push({key:"Subtype",value:"/Image"}),r.push({key:"Width",value:t.width}),r.push({key:"Height",value:t.height}),t.colorSpace===p.INDEXED?r.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(t.palette.length/3-1)+" "+("sMask"in t&&void 0!==t.sMask?t.objectId+2:t.objectId+1)+" 0 R]"}):(r.push({key:"ColorSpace",value:"/"+t.colorSpace}),t.colorSpace===p.DEVICE_CMYK&&r.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),r.push({key:"BitsPerComponent",value:t.bitsPerComponent}),"decodeParameters"in t&&void 0!==t.decodeParameters&&r.push({key:"DecodeParms",value:"<<"+t.decodeParameters+">>"}),"transparency"in t&&Array.isArray(t.transparency)){for(var o="",s=0,a=t.transparency.length;s<a;s++)o+=t.transparency[s]+" "+t.transparency[s]+" ";r.push({key:"Mask",value:"["+o+"]"})}if(void 0!==t.sMask&&r.push({key:"SMask",value:t.objectId+1+" 0 R"}),e({data:t.data,additionalKeyValues:r,alreadyAppliedFilters:void 0!==t.filter?["/"+t.filter]:void 0,objectId:t.objectId}),i("endobj"),"sMask"in t&&void 0!==t.sMask){var l={width:t.width,height:t.height,colorSpace:"DeviceGray",bitsPerComponent:t.bitsPerComponent,decodeParameters:"/Predictor "+t.predictor+" /Colors 1 /BitsPerComponent "+t.bitsPerComponent+" /Columns "+t.width,data:t.sMask};"filter"in t&&(l.filter=t.filter),A.call(this,l)}if(t.colorSpace===p.INDEXED){var c=this.internal.newObject();e({data:F(new Uint8Array(t.palette)),objectId:c}),i("endobj")}},r=function(){var A=this.internal.collections.addImage_images;for(var t in A)n.call(this,A[t])},o=function(){var A,t=this.internal.collections.addImage_images,i=this.internal.write;for(var e in t)i("/I"+(A=t[e]).index,A.objectId,"0","R")},s=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",r),this.internal.events.subscribe("putXobjectDict",o))},a=function(){var A=this.internal.collections.addImage_images;return s.call(this),A},l=function(){return Object.keys(this.internal.collections.addImage_images).length},c=function(t){return"function"==typeof A["process"+t.toUpperCase()]},h=function(A){return"object"===zt(A)&&1===A.nodeType},u=function(t,i){if("IMG"===t.nodeName&&t.hasAttribute("src")){var e=""+t.getAttribute("src");if(0===e.indexOf("data:image/"))return Oi(unescape(e).split("base64,").pop());var n=A.loadFile(e,!0);if(void 0!==n)return n}if("CANVAS"===t.nodeName){if(0===t.width||0===t.height)throw new Error("Given canvas must have data. Canvas width: "+t.width+", height: "+t.height);var r;switch(i){case"PNG":r="image/png";break;case"WEBP":r="image/webp";break;case"JPEG":case"JPG":default:r="image/jpeg"}return Oi(t.toDataURL(r,1).split("base64,").pop())}},d=function(A){var t=this.internal.collections.addImage_images;if(t)for(var i in t)if(A===t[i].alias)return t[i]},g=function(A,t,i){return A||t||(A=-96,t=-96),A<0&&(A=-1*i.width*72/A/this.internal.scaleFactor),t<0&&(t=-1*i.height*72/t/this.internal.scaleFactor),0===A&&(A=t*i.width/i.height),0===t&&(t=A*i.height/i.width),[A,t]},f=function(A,t,i,e,n,r){var o=g.call(this,i,e,n),s=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,c=a.call(this);if(i=o[0],e=o[1],c[n.index]=n,r){r*=Math.PI/180;var h=Math.cos(r),u=Math.sin(r),d=function(A){return A.toFixed(4)},f=[d(h),d(u),d(-1*u),d(h),0,0,"cm"]}this.internal.write("q"),r?(this.internal.write([1,"0","0",1,s(A),l(t+e),"cm"].join(" ")),this.internal.write(f.join(" ")),this.internal.write([s(i),"0","0",s(e),"0","0","cm"].join(" "))):this.internal.write([s(i),"0","0",s(e),s(A),l(t+e),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+n.index+" Do"),this.internal.write("Q")},p=A.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};A.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var w=A.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},B=A.__addimage__.sHashCode=function(A){var t,i,e=0;if("string"==typeof A)for(i=A.length,t=0;t<i;t++)e=(e<<5)-e+A.charCodeAt(t),e|=0;else if(Q(A))for(i=A.byteLength/2,t=0;t<i;t++)e=(e<<5)-e+A[t],e|=0;return e},m=A.__addimage__.validateStringAsBase64=function(A){(A=A||"").toString().trim();var t=!0;return 0===A.length&&(t=!1),A.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(A.substr(0,A.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(A.substr(-2))&&(t=!1),t},b=A.__addimage__.extractImageFromDataUrl=function(A){var t=(A=A||"").split("base64,"),i=null;if(2===t.length){var e=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(t[0]);Array.isArray(e)&&(i={mimeType:e[1],charset:e[2],data:t[1]})}return i},v=A.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};A.__addimage__.isArrayBuffer=function(A){return v()&&A instanceof ArrayBuffer};var Q=A.__addimage__.isArrayBufferView=function(A){return v()&&"undefined"!=typeof Uint32Array&&(A instanceof Int8Array||A instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&A instanceof Uint8ClampedArray||A instanceof Int16Array||A instanceof Uint16Array||A instanceof Int32Array||A instanceof Uint32Array||A instanceof Float32Array||A instanceof Float64Array)},C=A.__addimage__.binaryStringToUint8Array=function(A){for(var t=A.length,i=new Uint8Array(t),e=0;e<t;e++)i[e]=A.charCodeAt(e);return i},F=A.__addimage__.arrayBufferToBinaryString=function(A){for(var t="",i=Q(A)?A:new Uint8Array(A),e=0;e<i.length;e+=8192)t+=String.fromCharCode.apply(null,i.subarray(e,e+8192));return t};A.addImage=function(){var A,i,e,n,r,o,a,l,c;if("number"==typeof arguments[1]?(i=t,e=arguments[1],n=arguments[2],r=arguments[3],o=arguments[4],a=arguments[5],l=arguments[6],c=arguments[7]):(i=arguments[1],e=arguments[2],n=arguments[3],r=arguments[4],o=arguments[5],a=arguments[6],l=arguments[7],c=arguments[8]),"object"===zt(A=arguments[0])&&!h(A)&&"imageData"in A){var u=A;A=u.imageData,i=u.format||i||t,e=u.x||e||0,n=u.y||n||0,r=u.w||u.width||r,o=u.h||u.height||o,a=u.alias||a,l=u.compression||l,c=u.rotation||u.angle||c}var d=this.internal.getFilters();if(void 0===l&&-1!==d.indexOf("FlateEncode")&&(l="SLOW"),isNaN(e)||isNaN(n))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var g=U.call(this,A,i,a,l);return f.call(this,e,n,r,o,g,c),this};var U=function(i,n,r,o){var s,a,g;if("string"==typeof i&&e(i)===t){i=unescape(i);var f=y(i,!1);(""!==f||void 0!==(f=A.loadFile(i,!0)))&&(i=f)}if(h(i)&&(i=u(i,n)),n=e(i,n),!c(n))throw new Error("addImage does not support files of type '"+n+"', please ensure that a plugin for '"+n+"' support is added.");if((null==(g=r)||0===g.length)&&(r=function(A){return"string"==typeof A||Q(A)?B(A):Q(A.data)?B(A.data):null}(i)),(s=d.call(this,r))||(v()&&(i instanceof Uint8Array||"RGBA"===n||(a=i,i=C(i))),s=this["process"+n.toUpperCase()](i,l.call(this),r,function(t){return t&&"string"==typeof t&&(t=t.toUpperCase()),t in A.image_compression?t:w.NONE}(o),a)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},y=A.__addimage__.convertBase64ToBinaryString=function(A,t){var i;t="boolean"!=typeof t||t;var e,n="";if("string"==typeof A){e=null!==(i=b(A))?i.data:A;try{n=Oi(e)}catch(A){if(t)throw m(e)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+A.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return n};A.getImageProperties=function(i){var n,r,o="";if(h(i)&&(i=u(i)),"string"==typeof i&&e(i)===t&&(""===(o=y(i,!1))&&(o=A.loadFile(i)||""),i=o),r=e(i),!c(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if(!v()||i instanceof Uint8Array||(i=C(i)),!(n=this["process"+r.toUpperCase()](i)))throw new Error("An unknown error occurred whilst processing the image");return n.fileType=r,n}}(he.API),
|
90
|
+
/**
|
91
|
+
* @license
|
92
|
+
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
93
|
+
*
|
94
|
+
* Licensed under the MIT License.
|
95
|
+
* http://opensource.org/licenses/mit-license
|
96
|
+
*/
|
97
|
+
function(A){var t=function(A){if(void 0!==A&&""!=A)return!0};he.API.events.push(["addPage",function(A){this.internal.getPageInfo(A.pageNumber).pageContext.annotations=[]}]),A.events.push(["putPage",function(A){for(var i,e,n,r=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,s=this.internal.getPageInfoByObjId(A.objId),a=A.pageContext.annotations,l=!1,c=0;c<a.length&&!l;c++)switch((i=a[c]).type){case"link":(t(i.options.url)||t(i.options.pageNumber))&&(l=!0);break;case"reference":case"text":case"freetext":l=!0}if(0!=l){this.internal.write("/Annots [");for(var h=0;h<a.length;h++){i=a[h];var u=this.internal.pdfEscape,d=this.internal.getEncryptor(A.objId);switch(i.type){case"reference":this.internal.write(" "+i.object.objId+" 0 R ");break;case"text":var g=this.internal.newAdditionalObject(),f=this.internal.newAdditionalObject(),p=this.internal.getEncryptor(g.objId),w=i.title||"Note";n="<</Type /Annot /Subtype /Text "+(e="/Rect ["+r(i.bounds.x)+" "+o(i.bounds.y+i.bounds.h)+" "+r(i.bounds.x+i.bounds.w)+" "+o(i.bounds.y)+"] ")+"/Contents ("+u(p(i.contents))+")",n+=" /Popup "+f.objId+" 0 R",n+=" /P "+s.objId+" 0 R",n+=" /T ("+u(p(w))+") >>",g.content=n;var B=g.objId+" 0 R";n="<</Type /Annot /Subtype /Popup "+(e="/Rect ["+r(i.bounds.x+30)+" "+o(i.bounds.y+i.bounds.h)+" "+r(i.bounds.x+i.bounds.w+30)+" "+o(i.bounds.y)+"] ")+" /Parent "+B,i.open&&(n+=" /Open true"),f.content=n+=" >>",this.internal.write(g.objId,"0 R",f.objId,"0 R");break;case"freetext":e="/Rect ["+r(i.bounds.x)+" "+o(i.bounds.y)+" "+r(i.bounds.x+i.bounds.w)+" "+o(i.bounds.y+i.bounds.h)+"] ";var m=i.color||"#000000";n="<</Type /Annot /Subtype /FreeText "+e+"/Contents ("+u(d(i.contents))+")",n+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+m+")",n+=" /Border [0 0 0]",this.internal.write(n+=" >>");break;case"link":if(i.options.name){var b=this.annotations._nameMap[i.options.name];i.options.pageNumber=b.page,i.options.top=b.y}else i.options.top||(i.options.top=0);if(e="/Rect ["+i.finalBounds.x+" "+i.finalBounds.y+" "+i.finalBounds.w+" "+i.finalBounds.h+"] ",n="",i.options.url)n="<</Type /Annot /Subtype /Link "+e+"/Border [0 0 0] /A <</S /URI /URI ("+u(d(i.options.url))+") >>";else if(i.options.pageNumber)switch(n="<</Type /Annot /Subtype /Link "+e+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(i.options.pageNumber).objId+" 0 R",i.options.magFactor=i.options.magFactor||"XYZ",i.options.magFactor){case"Fit":n+=" /Fit]";break;case"FitH":n+=" /FitH "+i.options.top+"]";break;case"FitV":i.options.left=i.options.left||0,n+=" /FitV "+i.options.left+"]";break;case"XYZ":default:var v=o(i.options.top);i.options.left=i.options.left||0,void 0===i.options.zoom&&(i.options.zoom=0),n+=" /XYZ "+i.options.left+" "+v+" "+i.options.zoom+"]"}""!=n&&this.internal.write(n+=" >>")}}this.internal.write("]")}}]),A.createAnnotation=function(A){var t=this.internal.getCurrentPageInfo();switch(A.type){case"link":this.link(A.bounds.x,A.bounds.y,A.bounds.w,A.bounds.h,A);break;case"text":case"freetext":t.pageContext.annotations.push(A)}},A.link=function(A,t,i,e,n){var r=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;r.pageContext.annotations.push({finalBounds:{x:o(A),y:s(t),w:o(A+i),h:s(t+e)},options:n,type:"link"})},A.textWithLink=function(A,t,i,e){var n,r,o=this.getTextWidth(A),s=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==e.maxWidth){var a=this.splitTextToSize(A,r=e.maxWidth).length;n=Math.ceil(s*a)}else r=o,n=s;return this.text(A,t,i,e),"center"===e.align&&(t-=o/2),"right"===e.align&&(t-=o),this.link(t,(i+=.2*s)-s,r,n,e),o},A.getTextWidth=function(A){var t=this.internal.getFontSize();return this.getStringUnitWidth(A)*t/this.internal.scaleFactor}}(he.API),
|
98
|
+
/**
|
99
|
+
* @license
|
100
|
+
* Copyright (c) 2017 Aras Abbasi
|
101
|
+
*
|
102
|
+
* Licensed under the MIT License.
|
103
|
+
* http://opensource.org/licenses/mit-license
|
104
|
+
*/
|
105
|
+
function(A){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},i={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},e={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},n=[1570,1571,1573,1575];A.__arabicParser__={};var r=A.__arabicParser__.isInArabicSubstitutionA=function(A){return void 0!==t[A.charCodeAt(0)]},o=A.__arabicParser__.isArabicLetter=function(A){return"string"==typeof A&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(A)},s=A.__arabicParser__.isArabicEndLetter=function(A){return o(A)&&r(A)&&t[A.charCodeAt(0)].length<=2},a=A.__arabicParser__.isArabicAlfLetter=function(A){return o(A)&&n.indexOf(A.charCodeAt(0))>=0};A.__arabicParser__.arabicLetterHasIsolatedForm=function(A){return o(A)&&r(A)&&t[A.charCodeAt(0)].length>=1};var l=A.__arabicParser__.arabicLetterHasFinalForm=function(A){return o(A)&&r(A)&&t[A.charCodeAt(0)].length>=2};A.__arabicParser__.arabicLetterHasInitialForm=function(A){return o(A)&&r(A)&&t[A.charCodeAt(0)].length>=3};var c=A.__arabicParser__.arabicLetterHasMedialForm=function(A){return o(A)&&r(A)&&4==t[A.charCodeAt(0)].length},h=A.__arabicParser__.resolveLigatures=function(A){var t=0,e=i,n="",r=0;for(t=0;t<A.length;t+=1)void 0!==e[A.charCodeAt(t)]?(r++,"number"==typeof(e=e[A.charCodeAt(t)])&&(n+=String.fromCharCode(e),e=i,r=0),t===A.length-1&&(e=i,n+=A.charAt(t-(r-1)),t-=r-1,r=0)):(e=i,n+=A.charAt(t-r),t-=r,r=0);return n};A.__arabicParser__.isArabicDiacritic=function(A){return void 0!==A&&void 0!==e[A.charCodeAt(0)]};var u=A.__arabicParser__.getCorrectForm=function(A,t,i){return o(A)?!1===r(A)?-1:!l(A)||!o(t)&&!o(i)||!o(i)&&s(t)||s(A)&&!o(t)||s(A)&&a(t)||s(A)&&s(t)?0:c(A)&&o(t)&&!s(t)&&o(i)&&l(i)?3:s(A)||!o(i)?1:2:-1},d=function(A){var i=0,e=0,n=0,r="",s="",a="",l=(A=A||"").split("\\s+"),c=[];for(i=0;i<l.length;i+=1){for(c.push(""),e=0;e<l[i].length;e+=1)s=l[i][e-1],a=l[i][e+1],o(r=l[i][e])?(n=u(r,s,a),c[i]+=-1!==n?String.fromCharCode(t[r.charCodeAt(0)][n]):r):c[i]+=r;c[i]=h(c[i])}return c.join(" ")},g=A.__arabicParser__.processArabic=A.processArabic=function(){var A,t="string"==typeof arguments[0]?arguments[0]:arguments[0].text,i=[];if(Array.isArray(t)){var e=0;for(i=[],e=0;e<t.length;e+=1)Array.isArray(t[e])?i.push([d(t[e][0]),t[e][1],t[e][2]]):i.push([d(t[e])]);A=i}else A=d(t);return"string"==typeof arguments[0]?A:(arguments[0].text=A,arguments[0])};A.events.push(["preProcessText",g])}(he.API),he.API.autoPrint=function(A){var t;switch((A=A||{}).variant=A.variant||"non-conform",A.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}))}return this},
|
106
|
+
/**
|
107
|
+
* @license
|
108
|
+
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
109
|
+
*
|
110
|
+
* Licensed under the MIT License.
|
111
|
+
* http://opensource.org/licenses/mit-license
|
112
|
+
*/
|
113
|
+
function(A){var t=function(){var A=void 0;Object.defineProperty(this,"pdf",{get:function(){return A},set:function(t){A=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(A){t=isNaN(A)||!1===Number.isInteger(A)||A<0?150:A,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(A){i=isNaN(A)||!1===Number.isInteger(A)||A<0?300:A,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var e=[];Object.defineProperty(this,"childNodes",{get:function(){return e},set:function(A){e=A}});var n={};Object.defineProperty(this,"style",{get:function(){return n},set:function(A){n=A}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(A,t){var i;if("2d"!==(A=A||"2d"))return null;for(i in t)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=t[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},A.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(he.API),function(A){var t={left:0,top:0,bottom:0,right:0},i=!1,e=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),n.call(this))},n=function(){this.internal.__cell__.lastCell=new r,this.internal.__cell__.pages=1},r=function(){var A=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return A},set:function(t){A=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(A){t=A}});var i=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return i},set:function(A){i=A}});var e=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return e},set:function(A){e=A}});var n=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return n},set:function(A){n=A}});var r=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return r},set:function(A){r=A}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(A){o=A}}),this};r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},r.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},A.setHeaderFunction=function(A){return e.call(this),this.internal.__cell__.headerFunction="function"==typeof A?A:void 0,this},A.getTextDimensions=function(A,t){e.call(this);var i=(t=t||{}).fontSize||this.getFontSize(),n=t.font||this.getFont(),r=t.scaleFactor||this.internal.scaleFactor,o=0,s=0,a=0,l=this;if(!Array.isArray(A)&&"string"!=typeof A){if("number"!=typeof A)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");A=String(A)}var c=t.maxWidth;c>0?"string"==typeof A?A=this.splitTextToSize(A,c):"[object Array]"===Object.prototype.toString.call(A)&&(A=A.reduce((function(A,t){return A.concat(l.splitTextToSize(t,c))}),[])):A=Array.isArray(A)?A:[A];for(var h=0;h<A.length;h++)o<(a=this.getStringUnitWidth(A[h],{font:n})*i)&&(o=a);return 0!==o&&(s=A.length),{w:o/=r,h:Math.max((s*i*this.getLineHeightFactor()-i*(this.getLineHeightFactor()-1))/r,0)}},A.cellAddPage=function(){e.call(this),this.addPage();var A=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new r(A.left,A.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=A.cell=function(){var A;A=arguments[0]instanceof r?arguments[0]:new r(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),e.call(this);var n=this.internal.__cell__.lastCell,o=this.internal.__cell__.padding,s=this.internal.__cell__.margins||t,a=this.internal.__cell__.tableHeaderRow,l=this.internal.__cell__.printHeaders;return void 0!==n.lineNumber&&(n.lineNumber===A.lineNumber?(A.x=(n.x||0)+(n.width||0),A.y=n.y||0):n.y+n.height+A.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),A.y=s.top,l&&a&&(this.printHeaderRow(A.lineNumber,!0),A.y+=a[0].height)):A.y=n.y+n.height||A.y),void 0!==A.text[0]&&(this.rect(A.x,A.y,A.width,A.height,!0===i?"FD":void 0),"right"===A.align?this.text(A.text,A.x+A.width-o,A.y+o,{align:"right",baseline:"top"}):"center"===A.align?this.text(A.text,A.x+A.width/2,A.y+o,{align:"center",baseline:"top",maxWidth:A.width-o-o}):this.text(A.text,A.x+o,A.y+o,{align:"left",baseline:"top",maxWidth:A.width-o-o})),this.internal.__cell__.lastCell=A,this};A.table=function(A,i,a,l,c){if(e.call(this),!a)throw new Error("No data for PDF table.");var h,u,d,g,f=[],p=[],w=[],B={},m={},b=[],v=[],Q=(c=c||{}).autoSize||!1,C=!1!==c.printHeaders,F=c.css&&void 0!==c.css["font-size"]?16*c.css["font-size"]:c.fontSize||12,U=c.margins||Object.assign({width:this.getPageWidth()},t),y="number"==typeof c.padding?c.padding:3,k=c.headerBackgroundColor||"#c8c8c8",x=c.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=C,this.internal.__cell__.margins=U,this.internal.__cell__.table_font_size=F,this.internal.__cell__.padding=y,this.internal.__cell__.headerBackgroundColor=k,this.internal.__cell__.headerTextColor=x,this.setFontSize(F),null==l)p=f=Object.keys(a[0]),w=f.map((function(){return"left"}));else if(Array.isArray(l)&&"object"===zt(l[0]))for(f=l.map((function(A){return A.name})),p=l.map((function(A){return A.prompt||A.name||""})),w=l.map((function(A){return A.align||"left"})),h=0;h<l.length;h+=1)m[l[h].name]=l[h].width*(19.049976/25.4);else Array.isArray(l)&&"string"==typeof l[0]&&(p=f=l,w=f.map((function(){return"left"})));if(Q||Array.isArray(l)&&"string"==typeof l[0])for(h=0;h<f.length;h+=1){for(B[g=f[h]]=a.map((function(A){return A[g]})),this.setFont(void 0,"bold"),b.push(this.getTextDimensions(p[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),u=B[g],this.setFont(void 0,"normal"),d=0;d<u.length;d+=1)b.push(this.getTextDimensions(u[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);m[g]=Math.max.apply(null,b)+y+y,b=[]}if(C){var L={};for(h=0;h<f.length;h+=1)L[f[h]]={},L[f[h]].text=p[h],L[f[h]].align=w[h];var E=s.call(this,L,m);v=f.map((function(t){return new r(A,i,m[t],E,L[t].text,void 0,L[t].align)})),this.setTableHeaderRow(v),this.printHeaderRow(1,!1)}var H=l.reduce((function(A,t){return A[t.name]=t.align,A}),{});for(h=0;h<a.length;h+=1){"rowStart"in c&&c.rowStart instanceof Function&&c.rowStart({row:h,data:a[h]},this);var I=s.call(this,a[h],m);for(d=0;d<f.length;d+=1){var N=a[h][f[d]];"cellStart"in c&&c.cellStart instanceof Function&&c.cellStart({row:h,col:d,data:N},this),o.call(this,new r(A,i,m[f[d]],I,N,h+2,H[f[d]]))}}return this.internal.__cell__.table_x=A,this.internal.__cell__.table_y=i,this};var s=function(A,t){var i=this.internal.__cell__.padding,e=this.internal.__cell__.table_font_size,n=this.internal.scaleFactor;return Object.keys(A).map((function(e){var n=A[e];return this.splitTextToSize(n.hasOwnProperty("text")?n.text:n,t[e]-i-i)}),this).map((function(A){return this.getLineHeightFactor()*A.length*e/n+i+i}),this).reduce((function(A,t){return Math.max(A,t)}),0)};A.setTableHeaderRow=function(A){e.call(this),this.internal.__cell__.tableHeaderRow=A},A.printHeaderRow=function(A,t){if(e.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var n;if(i=!0,"function"==typeof this.internal.__cell__.headerFunction){var s=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new r(s[0],s[1],s[2],s[3],void 0,-1)}this.setFont(void 0,"bold");for(var a=[],l=0;l<this.internal.__cell__.tableHeaderRow.length;l+=1){n=this.internal.__cell__.tableHeaderRow[l].clone(),t&&(n.y=this.internal.__cell__.margins.top||0,a.push(n)),n.lineNumber=A;var c=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,n),this.setTextColor(c)}a.length>0&&this.setTableHeaderRow(a),this.setFont(void 0,"normal"),i=!1}}(he.API);var An={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},tn=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],en=$e(tn),nn=[100,200,300,400,500,600,700,800,900],rn=$e(nn);function on(A){var t=A.family.replace(/"|'/g,"").toLowerCase(),i=function(A){return An[A=A||"normal"]?A:"normal"}(A.style),e=function(A){if(!A)return 400;if("number"==typeof A)return A>=100&&A<=900&&A%100==0?A:400;if(/^\d00$/.test(A))return parseInt(A);switch(A){case"bold":return 700;case"normal":default:return 400}}(A.weight),n=function(A){return"number"==typeof en[A=A||"normal"]?A:"normal"}(A.stretch);return{family:t,style:i,weight:e,stretch:n,src:A.src||[],ref:A.ref||{name:t,style:[n,i,e].join(" ")}}}function sn(A,t,i,e){var n;for(n=i;n>=0&&n<t.length;n+=e)if(A[t[n]])return A[t[n]];for(n=i;n>=0&&n<t.length;n-=e)if(A[t[n]])return A[t[n]]}var an={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},ln={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function cn(A){return[A.stretch,A.style,A.weight,A.family].join(" ")}function hn(A){return A.trimLeft()}function un(A,t){for(var i=0;i<A.length;){if(A.charAt(i)===t)return[A.substring(0,i),A.substring(i+1)];i+=1}return null}function dn(A){var t=A.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===t?null:[t[0],A.substring(t[0].length)]}var gn,fn,pn,wn,Bn=["times"];!function(A){var t,i,e,n,r,o,s,a,l,c=function(A){return this.isStrokeTransparent=(A=A||{}).isStrokeTransparent||!1,this.strokeOpacity=A.strokeOpacity||1,this.strokeStyle=A.strokeStyle||"#000000",this.fillStyle=A.fillStyle||"#000000",this.isFillTransparent=A.isFillTransparent||!1,this.fillOpacity=A.fillOpacity||1,this.font=A.font||"10px sans-serif",this.textBaseline=A.textBaseline||"alphabetic",this.textAlign=A.textAlign||"left",this.lineWidth=A.lineWidth||1,this.lineJoin=A.lineJoin||"miter",this.lineCap=A.lineCap||"butt",this.path=A.path||[],this.transform=void 0!==A.transform?A.transform.clone():new a,this.globalCompositeOperation=A.globalCompositeOperation||"normal",this.globalAlpha=A.globalAlpha||1,this.clip_path=A.clip_path||[],this.currentPoint=A.currentPoint||new o,this.miterLimit=A.miterLimit||10,this.lastPoint=A.lastPoint||new o,this.lineDashOffset=A.lineDashOffset||0,this.lineDash=A.lineDash||[],this.margin=A.margin||[0,0,0,0],this.prevPageLastElemOffset=A.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof A.ignoreClearRect||A.ignoreClearRect,this};A.events.push(["initialized",function(){this.context2d=new h(this),t=this.internal.f2,i=this.internal.getCoordinateString,e=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,r=this.internal.getVerticalCoordinate,o=this.internal.Point,s=this.internal.Rectangle,a=this.internal.Matrix,l=new c}]);var h=function(A){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var t=A;Object.defineProperty(this,"pdf",{get:function(){return t}});var i=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return i},set:function(A){i=Boolean(A)}});var e=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return e},set:function(A){e=Boolean(A)}});var n=0;Object.defineProperty(this,"posX",{get:function(){return n},set:function(A){isNaN(A)||(n=A)}});var r=0;Object.defineProperty(this,"posY",{get:function(){return r},set:function(A){isNaN(A)||(r=A)}}),Object.defineProperty(this,"margin",{get:function(){return l.margin},set:function(A){var t;"number"==typeof A?t=[A,A,A,A]:((t=new Array(4))[0]=A[0],t[1]=A.length>=2?A[1]:t[0],t[2]=A.length>=3?A[2]:t[0],t[3]=A.length>=4?A[3]:t[1]),l.margin=t}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(A){o=A}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(A){s=A}});var a=[];Object.defineProperty(this,"pageBreaks",{get:function(){return a},set:function(A){a=A}}),Object.defineProperty(this,"ctx",{get:function(){return l},set:function(A){A instanceof c&&(l=A)}}),Object.defineProperty(this,"path",{get:function(){return l.path},set:function(A){l.path=A}});var h=[];Object.defineProperty(this,"ctxStack",{get:function(){return h},set:function(A){h=A}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(A){var t;t=u(A),this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(A){var t=u(A);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):this.pdf.setDrawColor(t.r,t.g,t.b)}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(A){-1!==["butt","round","square"].indexOf(A)&&(this.ctx.lineCap=A,this.pdf.setLineCap(A))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(A){isNaN(A)||(this.ctx.lineWidth=A,this.pdf.setLineWidth(A))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(A){-1!==["bevel","round","miter"].indexOf(A)&&(this.ctx.lineJoin=A,this.pdf.setLineJoin(A))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(A){isNaN(A)||(this.ctx.miterLimit=A,this.pdf.setMiterLimit(A))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(A){this.ctx.textBaseline=A}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(A){-1!==["right","end","center","left","start"].indexOf(A)&&(this.ctx.textAlign=A)}});var d=null;function g(A,t){if(null===d){var i=function(A){var t=[];return Object.keys(A).forEach((function(i){A[i].forEach((function(A){var e=null;switch(A){case"bold":e={family:i,weight:"bold"};break;case"italic":e={family:i,style:"italic"};break;case"bolditalic":e={family:i,weight:"bold",style:"italic"};break;case"":case"normal":e={family:i}}null!==e&&(e.ref={name:i,style:A},t.push(e))}))})),t}(A.getFontList());d=function(A){for(var t={},i=0;i<A.length;++i){var e=on(A[i]),n=e.family,r=e.stretch,o=e.style,s=e.weight;t[n]=t[n]||{},t[n][r]=t[n][r]||{},t[n][r][o]=t[n][r][o]||{},t[n][r][o][s]=e}return t}(i.concat(t))}return d}var f=null;Object.defineProperty(this,"fontFaces",{get:function(){return f},set:function(A){d=null,f=A}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(A){var t;if(this.ctx.font=A,null!==(t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(A))){var i=t[1],e=t[3],n=t[4],r=t[6],o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(n)[2];n="px"===o?Math.floor(parseFloat(n)*this.pdf.internal.scaleFactor):"em"===o?Math.floor(parseFloat(n)*this.pdf.getFontSize()):Math.floor(parseFloat(n)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(n);var s=function(A){var t,i,e=[],n=A.trim();if(""===n)return Bn;if(n in ln)return[ln[n]];for(;""!==n;){switch(i=null,t=(n=hn(n)).charAt(0)){case'"':case"'":i=un(n.substring(1),t);break;default:i=dn(n)}if(null===i)return Bn;if(e.push(i[0]),""!==(n=hn(i[1]))&&","!==n.charAt(0))return Bn;n=n.replace(/^,/,"")}return e}(r);if(this.fontFaces){var a=function(A,t,i){for(var e=(i=i||{}).defaultFontFamily||"times",n=Object.assign({},an,i.genericFontFamilies||{}),r=null,o=null,s=0;s<t.length;++s)if(n[(r=on(t[s])).family]&&(r.family=n[r.family]),A.hasOwnProperty(r.family)){o=A[r.family];break}if(!(o=o||A[e]))throw new Error("Could not find a font-family for the rule '"+cn(r)+"' and default family '"+e+"'.");if(o=function(A,t){if(t[A])return t[A];var i=en[A],e=sn(t,tn,i,i<=en.normal?-1:1);if(!e)throw new Error("Could not find a matching font-stretch value for "+A);return e}(r.stretch,o),o=function(A,t){if(t[A])return t[A];for(var i=An[A],e=0;e<i.length;++e)if(t[i[e]])return t[i[e]];throw new Error("Could not find a matching font-style for "+A)}(r.style,o),!(o=function(A,t){if(t[A])return t[A];if(400===A&&t[500])return t[500];if(500===A&&t[400])return t[400];var i=sn(t,nn,rn[A],A<400?-1:1);if(!i)throw new Error("Could not find a matching font-weight for value "+A);return i}(r.weight,o)))throw new Error("Failed to resolve a font for the rule '"+cn(r)+"'.");return o}(g(this.pdf,this.fontFaces),s.map((function(A){return{family:A,stretch:"normal",weight:e,style:i}})));this.pdf.setFont(a.ref.name,a.ref.style)}else{var l="";("bold"===e||parseInt(e,10)>=700||"bold"===i)&&(l="bold"),"italic"===i&&(l+="italic"),0===l.length&&(l="normal");for(var c="",h={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},u=0;u<s.length;u++){if(void 0!==this.pdf.internal.getFont(s[u],l,{noFallback:!0,disableWarning:!0})){c=s[u];break}if("bolditalic"===l&&void 0!==this.pdf.internal.getFont(s[u],"bold",{noFallback:!0,disableWarning:!0}))c=s[u],l="bold";else if(void 0!==this.pdf.internal.getFont(s[u],"normal",{noFallback:!0,disableWarning:!0})){c=s[u],l="normal";break}}if(""===c)for(var d=0;d<s.length;d++)if(h[s[d]]){c=h[s[d]];break}this.pdf.setFont(c=""===c?"Times":c,l)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(A){this.ctx.globalCompositeOperation=A}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(A){this.ctx.globalAlpha=A}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(A){this.ctx.lineDashOffset=A,K.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(A){this.ctx.lineDash=A,K.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(A){this.ctx.ignoreClearRect=Boolean(A)}})};h.prototype.setLineDash=function(A){this.lineDash=A},h.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},h.prototype.fill=function(){b.call(this,"fill",!1)},h.prototype.stroke=function(){b.call(this,"stroke",!1)},h.prototype.beginPath=function(){this.path=[{type:"begin"}]},h.prototype.moveTo=function(A,t){if(isNaN(A)||isNaN(t))throw Si.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var i=this.ctx.transform.applyToPoint(new o(A,t));this.path.push({type:"mt",x:i.x,y:i.y}),this.ctx.lastPoint=new o(A,t)},h.prototype.closePath=function(){var A=new o(0,0),t=0;for(t=this.path.length-1;-1!==t;t--)if("begin"===this.path[t].type&&"object"===zt(this.path[t+1])&&"number"==typeof this.path[t+1].x){A=new o(this.path[t+1].x,this.path[t+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(A.x,A.y)},h.prototype.lineTo=function(A,t){if(isNaN(A)||isNaN(t))throw Si.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var i=this.ctx.transform.applyToPoint(new o(A,t));this.path.push({type:"lt",x:i.x,y:i.y}),this.ctx.lastPoint=new o(i.x,i.y)},h.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),b.call(this,null,!0)},h.prototype.quadraticCurveTo=function(A,t,i,e){if(isNaN(i)||isNaN(e)||isNaN(A)||isNaN(t))throw Si.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var n=this.ctx.transform.applyToPoint(new o(i,e)),r=this.ctx.transform.applyToPoint(new o(A,t));this.path.push({type:"qct",x1:r.x,y1:r.y,x:n.x,y:n.y}),this.ctx.lastPoint=new o(n.x,n.y)},h.prototype.bezierCurveTo=function(A,t,i,e,n,r){if(isNaN(n)||isNaN(r)||isNaN(A)||isNaN(t)||isNaN(i)||isNaN(e))throw Si.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var s=this.ctx.transform.applyToPoint(new o(n,r)),a=this.ctx.transform.applyToPoint(new o(A,t)),l=this.ctx.transform.applyToPoint(new o(i,e));this.path.push({type:"bct",x1:a.x,y1:a.y,x2:l.x,y2:l.y,x:s.x,y:s.y}),this.ctx.lastPoint=new o(s.x,s.y)},h.prototype.arc=function(A,t,i,e,n,r){if(isNaN(A)||isNaN(t)||isNaN(i)||isNaN(e)||isNaN(n))throw Si.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(r=Boolean(r),!this.ctx.transform.isIdentity){var s=this.ctx.transform.applyToPoint(new o(A,t));A=s.x,t=s.y;var a=this.ctx.transform.applyToPoint(new o(0,i)),l=this.ctx.transform.applyToPoint(new o(0,0));i=Math.sqrt(Math.pow(a.x-l.x,2)+Math.pow(a.y-l.y,2))}Math.abs(n-e)>=2*Math.PI&&(e=0,n=2*Math.PI),this.path.push({type:"arc",x:A,y:t,radius:i,startAngle:e,endAngle:n,counterclockwise:r})},h.prototype.arcTo=function(){throw new Error("arcTo not implemented.")},h.prototype.rect=function(A,t,i,e){if(isNaN(A)||isNaN(t)||isNaN(i)||isNaN(e))throw Si.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(A,t),this.lineTo(A+i,t),this.lineTo(A+i,t+e),this.lineTo(A,t+e),this.lineTo(A,t),this.lineTo(A+i,t),this.lineTo(A,t)},h.prototype.fillRect=function(A,t,i,e){if(isNaN(A)||isNaN(t)||isNaN(i)||isNaN(e))throw Si.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!d.call(this)){var n={};"butt"!==this.lineCap&&(n.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(n.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(A,t,i,e),this.fill(),n.hasOwnProperty("lineCap")&&(this.lineCap=n.lineCap),n.hasOwnProperty("lineJoin")&&(this.lineJoin=n.lineJoin)}},h.prototype.strokeRect=function(A,t,i,e){if(isNaN(A)||isNaN(t)||isNaN(i)||isNaN(e))throw Si.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");g.call(this)||(this.beginPath(),this.rect(A,t,i,e),this.stroke())},h.prototype.clearRect=function(A,t,i,e){if(isNaN(A)||isNaN(t)||isNaN(i)||isNaN(e))throw Si.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(A,t,i,e))},h.prototype.save=function(A){A="boolean"!=typeof A||A;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,i=0;i<this.pdf.internal.getNumberOfPages();i++)this.pdf.setPage(i+1),this.pdf.internal.out("q");if(this.pdf.setPage(t),A){this.ctx.fontSize=this.pdf.internal.getFontSize();var e=new c(this.ctx);this.ctxStack.push(this.ctx),this.ctx=e}},h.prototype.restore=function(A){A="boolean"!=typeof A||A;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,i=0;i<this.pdf.internal.getNumberOfPages();i++)this.pdf.setPage(i+1),this.pdf.internal.out("Q");this.pdf.setPage(t),A&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},h.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var u=function(A){var t,i,e,n;if(!0===A.isCanvasGradient&&(A=A.getColor()),!A)return{r:0,g:0,b:0,a:0,style:A};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(A))t=0,i=0,e=0,n=0;else{var r=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(A);if(null!==r)t=parseInt(r[1]),i=parseInt(r[2]),e=parseInt(r[3]),n=1;else if(null!==(r=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(A)))t=parseInt(r[1]),i=parseInt(r[2]),e=parseInt(r[3]),n=parseFloat(r[4]);else{if(n=1,"string"==typeof A&&"#"!==A.charAt(0)){var o=new ji(A);A=o.ok?o.toHex():"#000000"}4===A.length?(t=A.substring(1,2),t+=t,i=A.substring(2,3),i+=i,e=A.substring(3,4),e+=e):(t=A.substring(1,3),i=A.substring(3,5),e=A.substring(5,7)),t=parseInt(t,16),i=parseInt(i,16),e=parseInt(e,16)}}return{r:t,g:i,b:e,a:n,style:A}},d=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},g=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};h.prototype.fillText=function(A,t,i,e){if(isNaN(t)||isNaN(i)||"string"!=typeof A)throw Si.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(e=isNaN(e)?void 0:e,!d.call(this)){var n=S(this.ctx.transform.rotation),r=this.ctx.transform.scaleX;x.call(this,{text:A,x:t,y:i,scale:r,angle:n,align:this.textAlign,maxWidth:e})}},h.prototype.strokeText=function(A,t,i,e){if(isNaN(t)||isNaN(i)||"string"!=typeof A)throw Si.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!g.call(this)){e=isNaN(e)?void 0:e;var n=S(this.ctx.transform.rotation),r=this.ctx.transform.scaleX;x.call(this,{text:A,x:t,y:i,scale:r,renderingMode:"stroke",angle:n,align:this.textAlign,maxWidth:e})}},h.prototype.measureText=function(A){if("string"!=typeof A)throw Si.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var t=this.pdf,i=this.pdf.internal.scaleFactor,e=t.internal.getFontSize(),n=t.getStringUnitWidth(A)*e/t.internal.scaleFactor,r=function(A){var t=(A=A||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this};return new r({width:n*=Math.round(96*i/72*1e4)/1e4})},h.prototype.scale=function(A,t){if(isNaN(A)||isNaN(t))throw Si.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var i=new a(A,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(i)},h.prototype.rotate=function(A){if(isNaN(A))throw Si.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var t=new a(Math.cos(A),Math.sin(A),-Math.sin(A),Math.cos(A),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},h.prototype.translate=function(A,t){if(isNaN(A)||isNaN(t))throw Si.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var i=new a(1,0,0,1,A,t);this.ctx.transform=this.ctx.transform.multiply(i)},h.prototype.transform=function(A,t,i,e,n,r){if(isNaN(A)||isNaN(t)||isNaN(i)||isNaN(e)||isNaN(n)||isNaN(r))throw Si.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var o=new a(A,t,i,e,n,r);this.ctx.transform=this.ctx.transform.multiply(o)},h.prototype.setTransform=function(A,t,i,e,n,r){A=isNaN(A)?1:A,t=isNaN(t)?0:t,i=isNaN(i)?0:i,e=isNaN(e)?1:e,n=isNaN(n)?0:n,r=isNaN(r)?0:r,this.ctx.transform=new a(A,t,i,e,n,r)};var f=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};h.prototype.drawImage=function(A,t,i,e,n,r,o,l,c){var h=this.pdf.getImageProperties(A),u=1,d=1,g=1,w=1;void 0!==e&&void 0!==l&&(g=l/e,w=c/n,u=h.width/e*l/e,d=h.height/n*c/n),void 0===r&&(r=t,o=i,t=0,i=0),void 0!==e&&void 0===l&&(l=e,c=n),void 0===e&&void 0===l&&(l=h.width,c=h.height);for(var b,Q=this.ctx.transform.decompose(),C=S(Q.rotate.shx),F=new a,U=(F=(F=(F=F.multiply(Q.translate)).multiply(Q.skew)).multiply(Q.scale)).applyToRectangle(new s(r-t*g,o-i*w,e*u,n*d)),y=p.call(this,U),k=[],x=0;x<y.length;x+=1)-1===k.indexOf(y[x])&&k.push(y[x]);if(m(k),this.autoPaging)for(var L=k[0],E=k[k.length-1],H=L;H<E+1;H++){this.pdf.setPage(H);var I=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],N=1===H?this.posY+this.margin[0]:this.margin[0],D=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],M=1===H?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(H-2)*D;if(0!==this.ctx.clip_path.length){var K=this.path;b=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=B(b,this.posX+this.margin[3],-M+N+this.ctx.prevPageLastElemOffset),v.call(this,"fill",!0),this.path=K}var O=JSON.parse(JSON.stringify(U));O=B([O],this.posX+this.margin[3],-M+N+this.ctx.prevPageLastElemOffset)[0];var T=(H>L||H<E)&&f.call(this);T&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],I,D,null).clip().discardPath()),this.pdf.addImage(A,"JPEG",O.x,O.y,O.w,O.h,null,null,C),T&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(A,"JPEG",U.x,U.y,U.w,U.h,null,null,C)};var p=function(A,t,i){var e=[];i=i||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var n=this.posY+this.ctx.prevPageLastElemOffset;switch(A.type){default:case"mt":case"lt":e.push(Math.floor((A.y+n)/i)+1);break;case"arc":e.push(Math.floor((A.y+n-A.radius)/i)+1),e.push(Math.floor((A.y+n+A.radius)/i)+1);break;case"qct":var r=D(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x,A.y);e.push(Math.floor((r.y+n)/i)+1),e.push(Math.floor((r.y+r.h+n)/i)+1);break;case"bct":var o=M(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x2,A.y2,A.x,A.y);e.push(Math.floor((o.y+n)/i)+1),e.push(Math.floor((o.y+o.h+n)/i)+1);break;case"rect":e.push(Math.floor((A.y+n)/i)+1),e.push(Math.floor((A.y+A.h+n)/i)+1)}for(var s=0;s<e.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<e[s];)w.call(this);return e},w=function(){var A=this.fillStyle,t=this.strokeStyle,i=this.font,e=this.lineCap,n=this.lineWidth,r=this.lineJoin;this.pdf.addPage(),this.fillStyle=A,this.strokeStyle=t,this.font=i,this.lineCap=e,this.lineWidth=n,this.lineJoin=r},B=function(A,t,i){for(var e=0;e<A.length;e++)switch(A[e].type){case"bct":A[e].x2+=t,A[e].y2+=i;case"qct":A[e].x1+=t,A[e].y1+=i;case"mt":case"lt":case"arc":default:A[e].x+=t,A[e].y+=i}return A},m=function(A){return A.sort((function(A,t){return A-t}))},b=function(A,t){for(var i,e,n=this.fillStyle,r=this.strokeStyle,o=this.lineCap,s=this.lineWidth,a=Math.abs(s*this.ctx.transform.scaleX),l=this.lineJoin,c=JSON.parse(JSON.stringify(this.path)),h=JSON.parse(JSON.stringify(this.path)),u=[],d=0;d<h.length;d++)if(void 0!==h[d].x)for(var g=p.call(this,h[d]),b=0;b<g.length;b+=1)-1===u.indexOf(g[b])&&u.push(g[b]);for(var Q=0;Q<u.length;Q++)for(;this.pdf.internal.getNumberOfPages()<u[Q];)w.call(this);if(m(u),this.autoPaging)for(var C=u[0],F=u[u.length-1],U=C;U<F+1;U++){this.pdf.setPage(U),this.fillStyle=n,this.strokeStyle=r,this.lineCap=o,this.lineWidth=a,this.lineJoin=l;var y=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],k=1===U?this.posY+this.margin[0]:this.margin[0],x=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],L=1===U?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(U-2)*x;if(0!==this.ctx.clip_path.length){var E=this.path;i=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=B(i,this.posX+this.margin[3],-L+k+this.ctx.prevPageLastElemOffset),v.call(this,A,!0),this.path=E}if(e=JSON.parse(JSON.stringify(c)),this.path=B(e,this.posX+this.margin[3],-L+k+this.ctx.prevPageLastElemOffset),!1===t||0===U){var H=(U>C||U<F)&&f.call(this);H&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],y,x,null).clip().discardPath()),v.call(this,A,t),H&&this.pdf.restoreGraphicsState()}this.lineWidth=s}else this.lineWidth=a,v.call(this,A,t),this.lineWidth=s;this.path=c},v=function(A,t){if(("stroke"!==A||t||!g.call(this))&&("stroke"===A||t||!d.call(this))){for(var i,e,n=[],r=this.path,o=0;o<r.length;o++){var s=r[o];switch(s.type){case"begin":n.push({begin:!0});break;case"close":n.push({close:!0});break;case"mt":n.push({start:s,deltas:[],abs:[]});break;case"lt":var a=n.length;if(r[o-1]&&!isNaN(r[o-1].x)&&(i=[s.x-r[o-1].x,s.y-r[o-1].y],a>0))for(;a>=0;a--)if(!0!==n[a-1].close&&!0!==n[a-1].begin){n[a-1].deltas.push(i),n[a-1].abs.push(s);break}break;case"bct":n[n.length-1].deltas.push(i=[s.x1-r[o-1].x,s.y1-r[o-1].y,s.x2-r[o-1].x,s.y2-r[o-1].y,s.x-r[o-1].x,s.y-r[o-1].y]);break;case"qct":n[n.length-1].deltas.push(i=[r[o-1].x+2/3*(s.x1-r[o-1].x)-r[o-1].x,r[o-1].y+2/3*(s.y1-r[o-1].y)-r[o-1].y,s.x+2/3*(s.x1-s.x)-r[o-1].x,s.y+2/3*(s.y1-s.y)-r[o-1].y,s.x-r[o-1].x,s.y-r[o-1].y]);break;case"arc":n.push({deltas:[],abs:[],arc:!0}),Array.isArray(n[n.length-1].abs)&&n[n.length-1].abs.push(s)}}e=t?null:"stroke"===A?"stroke":"fill";for(var l=!1,c=0;c<n.length;c++)if(n[c].arc)for(var h=n[c].abs,u=0;u<h.length;u++){var f=h[u];"arc"===f.type?F.call(this,f.x,f.y,f.radius,f.startAngle,f.endAngle,f.counterclockwise,void 0,t,!l):L.call(this,f.x,f.y),l=!0}else!0===n[c].close?(this.pdf.internal.out("h"),l=!1):!0!==n[c].begin&&(E.call(this,n[c].deltas,n[c].start.x,n[c].start.y),l=!0);e&&U.call(this,e),t&&y.call(this)}},Q=function(A){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,i=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return A-i;case"top":return A+t-i;case"hanging":return A+t-2*i;case"middle":return A+t/2-i;case"ideographic":return A;case"alphabetic":default:return A}},C=function(A){return A+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};h.prototype.createLinearGradient=function(){var A=function(){};return A.colorStops=[],A.addColorStop=function(A,t){this.colorStops.push([A,t])},A.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},A.isCanvasGradient=!0,A},h.prototype.createPattern=function(){return this.createLinearGradient()},h.prototype.createRadialGradient=function(){return this.createLinearGradient()};var F=function(A,t,i,e,n,r,o,s,a){for(var l=I.call(this,i,e,n,r),c=0;c<l.length;c++){var h=l[c];0===c&&(a?k.call(this,h.x1+A,h.y1+t):L.call(this,h.x1+A,h.y1+t)),H.call(this,A,t,h.x2,h.y2,h.x3,h.y3,h.x4,h.y4)}s?y.call(this):U.call(this,o)},U=function(A){switch(A){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},y=function(){this.pdf.clip(),this.pdf.discardPath()},k=function(A,t){this.pdf.internal.out(i(A)+" "+e(t)+" m")},x=function(A){var t;switch(A.align){case"right":case"end":t="right";break;case"center":t="center";break;case"left":case"start":default:t="left"}var i=this.pdf.getTextDimensions(A.text),e=Q.call(this,A.y),n=C.call(this,e)-i.h,r=this.ctx.transform.applyToPoint(new o(A.x,e)),l=this.ctx.transform.decompose(),c=new a;c=(c=(c=c.multiply(l.translate)).multiply(l.skew)).multiply(l.scale);for(var h,u,d,g=this.ctx.transform.applyToRectangle(new s(A.x,e,i.w,i.h)),w=c.applyToRectangle(new s(A.x,n,i.w,i.h)),b=p.call(this,w),F=[],U=0;U<b.length;U+=1)-1===F.indexOf(b[U])&&F.push(b[U]);if(m(F),this.autoPaging)for(var y=F[0],k=F[F.length-1],x=y;x<k+1;x++){this.pdf.setPage(x);var L=1===x?this.posY+this.margin[0]:this.margin[0],E=this.pdf.internal.pageSize.height-this.margin[2],H=E-this.margin[0],I=this.pdf.internal.pageSize.width-this.margin[1],N=I-this.margin[3],S=1===x?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(x-2)*H;if(0!==this.ctx.clip_path.length){var D=this.path;h=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=B(h,this.posX+this.margin[3],-1*S+L),v.call(this,"fill",!0),this.path=D}var M=B([JSON.parse(JSON.stringify(w))],this.posX+this.margin[3],-S+L+this.ctx.prevPageLastElemOffset)[0];A.scale>=.01&&(u=this.pdf.internal.getFontSize(),this.pdf.setFontSize(u*A.scale),this.lineWidth=(d=this.lineWidth)*A.scale);var K="text"!==this.autoPaging;if(K||M.y+M.h<=E){if(K||M.y>=L&&M.x<=I){var O=K?A.text:this.pdf.splitTextToSize(A.text,A.maxWidth||I-M.x)[0],T=B([JSON.parse(JSON.stringify(g))],this.posX+this.margin[3],-S+L+this.ctx.prevPageLastElemOffset)[0],P=K&&(x>y||x<k)&&f.call(this);P&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],N,H,null).clip().discardPath()),this.pdf.text(O,T.x,T.y,{angle:A.angle,align:t,renderingMode:A.renderingMode}),P&&this.pdf.restoreGraphicsState()}}else M.y<E&&(this.ctx.prevPageLastElemOffset+=E-M.y);A.scale>=.01&&(this.pdf.setFontSize(u),this.lineWidth=d)}else A.scale>=.01&&(u=this.pdf.internal.getFontSize(),this.pdf.setFontSize(u*A.scale),this.lineWidth=(d=this.lineWidth)*A.scale),this.pdf.text(A.text,r.x+this.posX,r.y+this.posY,{angle:A.angle,align:t,renderingMode:A.renderingMode,maxWidth:A.maxWidth}),A.scale>=.01&&(this.pdf.setFontSize(u),this.lineWidth=d)},L=function(A,t,n,r){r=r||0,this.pdf.internal.out(i(A+(n=n||0))+" "+e(t+r)+" l")},E=function(A,t,i){return this.pdf.lines(A,t,i,null,null)},H=function(A,i,e,o,s,a,l,c){this.pdf.internal.out([t(n(e+A)),t(r(o+i)),t(n(s+A)),t(r(a+i)),t(n(l+A)),t(r(c+i)),"c"].join(" "))},I=function(A,t,i,e){for(var n=2*Math.PI,r=Math.PI/2;t>i;)t-=n;var o=Math.abs(i-t);o<n&&e&&(o=n-o);for(var s=[],a=e?-1:1,l=t;o>1e-5;){var c=l+a*Math.min(o,r);s.push(N.call(this,A,l,c)),o-=Math.abs(c-l),l=c}return s},N=function(A,t,i){var e=(i-t)/2,n=A*Math.cos(e),r=A*Math.sin(e),o=n,s=-r,a=o*o+s*s,l=a+o*n+s*r,c=4/3*(Math.sqrt(2*a*l)-l)/(o*r-s*n),h=o-c*s,u=s+c*o,d=h,g=-u,f=e+t,p=Math.cos(f),w=Math.sin(f);return{x1:A*Math.cos(t),y1:A*Math.sin(t),x2:h*p-u*w,y2:h*w+u*p,x3:d*p-g*w,y3:d*w+g*p,x4:A*Math.cos(i),y4:A*Math.sin(i)}},S=function(A){return 180*A/Math.PI},D=function(A,t,i,e,n,r){var o=A+.5*(i-A),a=t+.5*(e-t),l=n+.5*(i-n),c=r+.5*(e-r),h=Math.min(A,n,o,l),u=Math.max(A,n,o,l),d=Math.min(t,r,a,c),g=Math.max(t,r,a,c);return new s(h,d,u-h,g-d)},M=function(A,t,i,e,n,r,o,a){var l,c,h,u,d,g,f,p,w,B,m,b,v,Q,C=i-A,F=e-t,U=n-i,y=r-e,k=o-n,x=a-r;for(c=0;c<41;c++)w=(f=(h=A+(l=c/40)*C)+l*((d=i+l*U)-h))+l*(d+l*(n+l*k-d)-f),B=(p=(u=t+l*F)+l*((g=e+l*y)-u))+l*(g+l*(r+l*x-g)-p),0==c?(m=w,b=B,v=w,Q=B):(m=Math.min(m,w),b=Math.min(b,B),v=Math.max(v,w),Q=Math.max(Q,B));return new s(Math.round(m),Math.round(b),Math.round(v-m),Math.round(Q-b))},K=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var A=JSON.stringify({lineDash:this.ctx.lineDash,lineDashOffset:this.ctx.lineDashOffset});this.prevLineDash!==A&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=A)}}}(he.API),
|
114
|
+
/**
|
115
|
+
* @license
|
116
|
+
* jsPDF filters PlugIn
|
117
|
+
* Copyright (c) 2014 Aras Abbasi
|
118
|
+
*
|
119
|
+
* Licensed under the MIT License.
|
120
|
+
* http://opensource.org/licenses/mit-license
|
121
|
+
*/
|
122
|
+
function(){var A=function(A){var t,i,e,n,r,o,s,a,l,c;for(/[^\x00-\xFF]/.test(A),i=[],e=0,n=(A+=t="\0\0\0\0".slice(A.length%4||4)).length;n>e;e+=4)0!==(r=(A.charCodeAt(e)<<24)+(A.charCodeAt(e+1)<<16)+(A.charCodeAt(e+2)<<8)+A.charCodeAt(e+3))?(o=(r=((r=((r=((r=(r-(c=r%85))/85)-(l=r%85))/85)-(a=r%85))/85)-(s=r%85))/85)%85,i.push(o+33,s+33,a+33,l+33,c+33)):i.push(122);return function(A,t){for(var i=t;i>0;i--)A.pop()}(i,t.length),String.fromCharCode.apply(String,i)+"~>"},t=function(A){var t,i,e,n,r,o=String,s="length",a=255,l="charCodeAt",c="slice",h="replace";for(A[c](-2),A=A[c](0,-2)[h](/\s/g,"")[h]("z","!!!!!"),e=[],n=0,r=(A+=t="uuuuu"[c](A[s]%5||5))[s];r>n;n+=5)i=52200625*(A[l](n)-33)+614125*(A[l](n+1)-33)+7225*(A[l](n+2)-33)+85*(A[l](n+3)-33)+(A[l](n+4)-33),e.push(a&i>>24,a&i>>16,a&i>>8,a&i);return function(A,t){for(var i=t;i>0;i--)A.pop()}(e,t[s]),o.fromCharCode.apply(o,e)},i=function(A){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(A=A.replace(/\s/g,"")).indexOf(">")&&(A=A.substr(0,A.indexOf(">"))),A.length%2&&(A+="0"),!1===t.test(A))return"";for(var i="",e=0;e<A.length;e+=2)i+=String.fromCharCode("0x"+(A[e]+A[e+1]));return i},e=function(A){for(var t=new Uint8Array(A.length),i=A.length;i--;)t[i]=A.charCodeAt(i);return(t=Hi(t)).reduce((function(A,t){return A+String.fromCharCode(t)}),"")};he.API.processDataByFilters=function(n,r){var o=0,s=n||"",a=[];for("string"==typeof(r=r||[])&&(r=[r]),o=0;o<r.length;o+=1)switch(r[o]){case"ASCII85Decode":case"/ASCII85Decode":s=t(s),a.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":s=A(s),a.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":s=i(s),a.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":s=s.split("").map((function(A){return("0"+A.charCodeAt().toString(16)).slice(-2)})).join("")+">",a.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":s=e(s),a.push("/FlateDecode");break;default:throw new Error('The filter: "'+r[o]+'" is not implemented')}return{data:s,reverseChain:a.reverse().join(" ")}}}(),
|
123
|
+
/**
|
124
|
+
* @license
|
125
|
+
* jsPDF fileloading PlugIn
|
126
|
+
* Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
|
127
|
+
*
|
128
|
+
* Licensed under the MIT License.
|
129
|
+
* http://opensource.org/licenses/mit-license
|
130
|
+
*/
|
131
|
+
function(A){A.loadFile=function(A,t,i){return function(A,t,i){t=!1!==t,i="function"==typeof i?i:function(){};var e=void 0;try{e=function(A,t,i){var e=new XMLHttpRequest,n=0,r=function(A){var t=A.length,i=[],e=String.fromCharCode;for(n=0;n<t;n+=1)i.push(e(255&A.charCodeAt(n)));return i.join("")};if(e.open("GET",A,!t),e.overrideMimeType("text/plain; charset=x-user-defined"),!1===t&&(e.onload=function(){i(200===e.status?r(this.responseText):void 0)}),e.send(null),t&&200===e.status)return r(e.responseText)}(A,t,i)}catch(A){}return e}(A,t,i)},A.loadImageFile=A.loadFile}(he.API),function(A){function t(){return(Ii.html2canvas?Promise.resolve(Ii.html2canvas):Promise.resolve().then((function(){return Zn}))).catch((function(A){return Promise.reject(new Error("Could not load html2canvas: "+A))})).then((function(A){return A.default?A.default:A}))}function i(){return(Ii.DOMPurify?Promise.resolve(Ii.DOMPurify):import("./p-5cad23f1.js").then((function(A){return A.p}))).catch((function(A){return Promise.reject(new Error("Could not load dompurify: "+A))})).then((function(A){return A.default?A.default:A}))}var e=function(A){var t=zt(A);return"undefined"===t?"undefined":"string"===t||A instanceof String?"string":"number"===t||A instanceof Number?"number":"function"===t||A instanceof Function?"function":A&&A.constructor===Array?"array":A&&1===A.nodeType?"element":"object"===t?"object":"unknown"},n=function(A,t){var i=document.createElement(A);for(var e in t.className&&(i.className=t.className),t.innerHTML&&t.dompurify&&(i.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)i.style[e]=t.style[e];return i},r=function A(t){var i=Object.assign(A.convert(Promise.resolve()),JSON.parse(JSON.stringify(A.template))),e=A.convert(Promise.resolve(),i);return(e=e.setProgress(1,A,1,[A])).set(t)};(r.prototype=Object.create(Promise.prototype)).constructor=r,r.convert=function(A,t){return A.__proto__=t||r.prototype,A},r.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},r.prototype.from=function(A,t){return this.then((function(){switch(t=t||function(A){switch(e(A)){case"string":return"string";case"element":return"canvas"===A.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(A)){case"string":return this.then(i).then((function(t){return this.set({src:n("div",{innerHTML:A,dompurify:t})})}));case"element":return this.set({src:A});case"canvas":return this.set({canvas:A});case"img":return this.set({img:A});default:return this.error("Unknown source type.")}}))},r.prototype.to=function(A){switch(A){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},r.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var A={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},t=function A(t,i){for(var e=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),n=t.firstChild;n;n=n.nextSibling)!0!==i&&1===n.nodeType&&"SCRIPT"===n.nodeName||e.appendChild(A(n,i));return 1===t.nodeType&&("CANVAS"===t.nodeName?(e.width=t.width,e.height=t.height,e.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(e.value=t.value),e.addEventListener("load",(function(){e.scrollTop=t.scrollTop,e.scrollLeft=t.scrollLeft}),!0)),e}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===t.tagName&&(A.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=n("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=n("div",{className:"html2pdf__container",style:A}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(n("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},r.prototype.toCanvas=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(t).then((function(A){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,A(this.prop.container,t)})).then((function(A){(this.opt.html2canvas.onrendered||function(){})(A),this.prop.canvas=A,document.body.removeChild(this.prop.overlay)}))},r.prototype.toContext2d=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(t).then((function(A){var t=this.opt.jsPDF,i=this.opt.fontFaces,e="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,n=Object.assign({async:!0,allowTaint:!0,scale:e,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete n.onrendered,t.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.margin=this.opt.margin,t.context2d.fontFaces=i,i)for(var r=0;r<i.length;++r){var o=i[r],s=o.src.find((function(A){return"truetype"===A.format}));s&&t.addFont(s.url,o.ref.name,o.ref.style)}return n.windowHeight=n.windowHeight||0,n.windowHeight=0==n.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):n.windowHeight,t.context2d.save(!0),A(this.prop.container,n)})).then((function(A){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(A),this.prop.canvas=A,document.body.removeChild(this.prop.overlay)}))},r.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var A=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=A}))},r.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},r.prototype.output=function(A,t,i){return"img"===(i=i||"pdf").toLowerCase()||"image"===i.toLowerCase()?this.outputImg(A,t):this.outputPdf(A,t)},r.prototype.outputPdf=function(A,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(A,t)}))},r.prototype.outputImg=function(A){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(A){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+A+'" is not supported.'}}))},r.prototype.save=function(A){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(A?{filename:A}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},r.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},r.prototype.set=function(A){if("object"!==e(A))return this;var t=Object.keys(A||{}).map((function(t){if(t in r.template.prop)return function(){this.prop[t]=A[t]};switch(t){case"margin":return this.setMargin.bind(this,A.margin);case"jsPDF":return function(){return this.opt.jsPDF=A.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,A.pageSize);default:return function(){this.opt[t]=A[t]}}}),this);return this.then((function(){return this.thenList(t)}))},r.prototype.get=function(A,t){return this.then((function(){var i=A in r.template.prop?this.prop[A]:this.opt[A];return t?t(i):i}))},r.prototype.setMargin=function(A){return this.then((function(){switch(e(A)){case"number":A=[A,A,A,A];case"array":if(2===A.length&&(A=[A[0],A[1],A[0],A[1]]),4===A.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=A})).then(this.setPageSize)},r.prototype.setPageSize=function(A){function t(A,t){return Math.floor(A*t/72*96)}return this.then((function(){(A=A||he.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(A.inner={width:A.width-this.opt.margin[1]-this.opt.margin[3],height:A.height-this.opt.margin[0]-this.opt.margin[2]},A.inner.px={width:t(A.inner.width,A.k),height:t(A.inner.height,A.k)},A.inner.ratio=A.inner.height/A.inner.width),this.prop.pageSize=A}))},r.prototype.setProgress=function(A,t,i,e){return null!=A&&(this.progress.val=A),null!=t&&(this.progress.state=t),null!=i&&(this.progress.n=i),null!=e&&(this.progress.stack=e),this.progress.ratio=this.progress.val/this.progress.state,this},r.prototype.updateProgress=function(A,t,i,e){return this.setProgress(A?this.progress.val+A:null,t||null,i?this.progress.n+i:null,e?this.progress.stack.concat(e):null)},r.prototype.then=function(A,t){var i=this;return this.thenCore(A,t,(function(A,t){return i.updateProgress(null,null,1,[A]),Promise.prototype.then.call(this,(function(t){return i.updateProgress(null,A),t})).then(A,t).then((function(A){return i.updateProgress(1),A}))}))},r.prototype.thenCore=function(A,t,i){i=i||Promise.prototype.then,A&&(A=A.bind(this)),t&&(t=t.bind(this));var e=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:r.convert(Object.assign({},this),Promise.prototype),n=i.call(e,A,t);return r.convert(n,this.__proto__)},r.prototype.thenExternal=function(A,t){return Promise.prototype.then.call(this,A,t)},r.prototype.thenList=function(A){var t=this;return A.forEach((function(A){t=t.thenCore(A)})),t},r.prototype.catch=function(A){A&&(A=A.bind(this));var t=Promise.prototype.catch.call(this,A);return r.convert(t,this)},r.prototype.catchExternal=function(A){return Promise.prototype.catch.call(this,A)},r.prototype.error=function(A){return this.then((function(){throw new Error(A)}))},r.prototype.using=r.prototype.set,r.prototype.saveAs=r.prototype.save,r.prototype.export=r.prototype.output,r.prototype.run=r.prototype.then,he.getPageSize=function(A,t,i){if("object"===zt(A)){var e=A;A=e.orientation,t=e.unit||t,i=e.format||i}t=t||"mm",i=i||"a4",A=(""+(A||"P")).toLowerCase();var n,r=(""+i).toLowerCase(),o={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":n=1;break;case"mm":n=72/25.4;break;case"cm":n=72/2.54;break;case"in":n=72;break;case"px":n=.75;break;case"pc":case"em":n=12;break;case"ex":n=6;break;default:throw"Invalid unit: "+t}var s,a=0,l=0;if(o.hasOwnProperty(r))a=o[r][1]/n,l=o[r][0]/n;else try{a=i[1],l=i[0]}catch(A){throw new Error("Invalid format: "+i)}if("p"===A||"portrait"===A)A="p",l>a&&(s=l,l=a,a=s);else{if("l"!==A&&"landscape"!==A)throw"Invalid orientation: "+A;A="l",a>l&&(s=l,l=a,a=s)}return{width:l,height:a,unit:t,k:n,orientation:A}},A.html=function(A,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(on):null;var i=new r(t);return t.worker?i:i.from(A).doCallback()}}(he.API),he.API.addJS=function(A){return pn=A,this.internal.events.subscribe("postPutResources",(function(){gn=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(gn+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),fn=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+pn+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==gn&&void 0!==fn&&this.internal.out("/Names <</JavaScript "+gn+" 0 R>>")})),this
|
132
|
+
/**
|
133
|
+
* @license
|
134
|
+
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
135
|
+
*
|
136
|
+
* Licensed under the MIT License.
|
137
|
+
* http://opensource.org/licenses/mit-license
|
138
|
+
*/},function(A){var t;A.events.push(["postPutResources",function(){var A=this,i=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var e=A.outline.render().split(/\r\n/),n=0;n<e.length;n++){var r=e[n],o=i.exec(r);null!=o&&A.internal.newObjectDeferredBegin(o[1],!1),A.internal.write(r)}if(this.outline.createNamedDestinations){var s=this.internal.pages.length,a=[];for(n=0;n<s;n++){var l=A.internal.newObject();a.push(l);var c=A.internal.getPageInfo(n+1);A.internal.write("<< /D["+c.objId+" 0 R /XYZ null null null]>> endobj")}var h=A.internal.newObject();for(A.internal.write("<< /Names [ "),n=0;n<a.length;n++)A.internal.write("(page_"+(n+1)+")"+a[n]+" 0 R");A.internal.write(" ] >>","endobj"),t=A.internal.newObject(),A.internal.write("<< /Dests "+h+" 0 R"),A.internal.write(">>","endobj")}}]),A.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),A.events.push(["initialized",function(){var A=this;A.outline={createNamedDestinations:!1,root:{children:[]}},A.outline.add=function(A,t,i){var e={title:t,options:i,children:[]};return null==A&&(A=this.root),A.children.push(e),e},A.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=A,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},A.outline.genIds_r=function(t){t.id=A.internal.newObjectDeferred();for(var i=0;i<t.children.length;i++)this.genIds_r(t.children[i])},A.outline.renderRoot=function(A){this.objStart(A),this.line("/Type /Outlines"),A.children.length>0&&(this.line("/First "+this.makeRef(A.children[0])),this.line("/Last "+this.makeRef(A.children[A.children.length-1]))),this.line("/Count "+this.count_r({count:0},A)),this.objEnd()},A.outline.renderItems=function(t){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,e=0;e<t.children.length;e++){var n=t.children[e];this.objStart(n),this.line("/Title "+this.makeString(n.title)),this.line("/Parent "+this.makeRef(t)),e>0&&this.line("/Prev "+this.makeRef(t.children[e-1])),e<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[e+1])),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1])));var r=this.count=this.count_r({count:0},n);if(r>0&&this.line("/Count "+r),n.options&&n.options.pageNumber){var o=A.internal.getPageInfo(n.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var s=0;s<t.children.length;s++)this.renderItems(t.children[s])},A.outline.line=function(A){this.ctx.val+=A+"\r\n"},A.outline.makeRef=function(A){return A.id+" 0 R"},A.outline.makeString=function(t){return"("+A.internal.pdfEscape(t)+")"},A.outline.objStart=function(A){this.ctx.val+="\r\n"+A.id+" 0 obj\r\n<<\r\n"},A.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},A.outline.count_r=function(A,t){for(var i=0;i<t.children.length;i++)A.count++,this.count_r(A,t.children[i]);return A.count}}])}(he.API),
|
139
|
+
/**
|
140
|
+
* @license
|
141
|
+
*
|
142
|
+
* Licensed under the MIT License.
|
143
|
+
* http://opensource.org/licenses/mit-license
|
144
|
+
*/
|
145
|
+
wn=[192,193,194,195,196,197,198,199],he.API.processJPEG=function(A,t,i,e,n,r){var o,s=this.decode.DCT_DECODE,a=null;if("string"==typeof A||this.__addimage__.isArrayBuffer(A)||this.__addimage__.isArrayBufferView(A)){switch(A=this.__addimage__.isArrayBuffer(A=n||A)?new Uint8Array(A):A,(o=function(A){for(var t,i=256*A.charCodeAt(4)+A.charCodeAt(5),e=A.length,n={width:0,height:0,numcomponents:1},r=4;r<e;r+=2){if(-1!==wn.indexOf(A.charCodeAt((r+=i)+1))){t=256*A.charCodeAt(r+5)+A.charCodeAt(r+6),n={width:256*A.charCodeAt(r+7)+A.charCodeAt(r+8),height:t,numcomponents:A.charCodeAt(r+9)};break}i=256*A.charCodeAt(r+2)+A.charCodeAt(r+3)}return n}(A=this.__addimage__.isArrayBufferView(A)?this.__addimage__.arrayBufferToBinaryString(A):A)).numcomponents){case 1:r=this.color_spaces.DEVICE_GRAY;break;case 4:r=this.color_spaces.DEVICE_CMYK;break;case 3:r=this.color_spaces.DEVICE_RGB}a={data:A,width:o.width,height:o.height,colorSpace:r,bitsPerComponent:8,filter:s,index:t,alias:i}}return a};var mn,bn,vn,Qn,Cn,Fn=function(){var A,t,i;function e(A){var t,i,e,n,r,o,s,a,l,c,h,u,d;for(this.data=A,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},r=null;;){switch(t=this.readUInt32(),a=function(){var A,t;for(t=[],A=0;A<4;++A)t.push(String.fromCharCode(this.data[this.pos++]));return t}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(t);break;case"fcTL":r&&this.animation.frames.push(r),this.pos+=4,r={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},n=this.readUInt16(),e=this.readUInt16()||100,r.delay=1e3*n/e,r.disposeOp=this.data[this.pos++],r.blendOp=this.data[this.pos++],r.data=[];break;case"IDAT":case"fdAT":for("fdAT"===a&&(this.pos+=4,t-=4),A=(null!=r?r.data:void 0)||this.imgData,h=0;0<=t?h<t:h>t;0<=t?++h:--h)A.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(i=this.palette.length/3,this.transparency.indexed=this.read(t),this.transparency.indexed.length>i)throw new Error("More transparent colors than palette size");if((l=i-this.transparency.indexed.length)>0)for(u=0;0<=l?u<l:u>l;0<=l?++u:--u)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(t)[0];break;case 2:this.transparency.rgb=this.read(t)}break;case"tEXt":o=(c=this.read(t)).indexOf(0),s=String.fromCharCode.apply(String,c.slice(0,o)),this.text[s]=String.fromCharCode.apply(String,c.slice(o+1));break;case"IEND":return r&&this.animation.frames.push(r),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(d=this.colorType)||6===d,this.pixelBitlength=this.bits*(this.colors+(this.hasAlphaChannel?1:0)),this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=t}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}e.prototype.read=function(A){var t,i;for(i=[],t=0;0<=A?t<A:t>A;0<=A?++t:--t)i.push(this.data[this.pos++]);return i},e.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},e.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},e.prototype.decodePixels=function(A){var t,i,e=this.pixelBitlength/8,n=new Uint8Array(this.width*this.height*e),r=0,o=this;if(null==A&&(A=this.imgData),0===A.length)return new Uint8Array(0);function s(t,i,s,a){var l,c,h,u,d,g,f,p,w,B,m,b,v,Q,C,F,U,y,k,x,L=Math.ceil((o.width-t)/s),E=Math.ceil((o.height-i)/a),H=o.width==L&&o.height==E;for(v=e*L,m=H?n:new Uint8Array(v*E),g=A.length,b=0,c=0;b<E&&r<g;){switch(A[r++]){case 0:for(u=F=0;F<v;u=F+=1)m[c++]=A[r++];break;case 1:for(u=U=0;U<v;u=U+=1)l=A[r++],d=u<e?0:m[c-e],m[c++]=(l+d)%256;break;case 2:for(u=y=0;y<v;u=y+=1)l=A[r++],h=(u-u%e)/e,m[c++]=((Q=b&&m[(b-1)*v+h*e+u%e])+l)%256;break;case 3:for(u=k=0;k<v;u=k+=1)l=A[r++],h=(u-u%e)/e,d=u<e?0:m[c-e],Q=b&&m[(b-1)*v+h*e+u%e],m[c++]=(l+Math.floor((d+Q)/2))%256;break;case 4:for(u=x=0;x<v;u=x+=1)l=A[r++],h=(u-u%e)/e,0===b?Q=C=0:(Q=m[(b-1)*v+h*e+u%e],C=h&&m[(b-1)*v+(h-1)*e+u%e]),f=(d=u<e?0:m[c-e])+Q-C,p=Math.abs(f-d),w=Math.abs(f-Q),B=Math.abs(f-C),m[c++]=(l+(p<=w&&p<=B?d:w<=B?Q:C))%256;break;default:throw new Error("Invalid filter algorithm: "+A[r-1])}if(!H){var I=((i+b*a)*o.width+t)*e,N=b*v;for(u=0;u<L;u+=1){for(var S=0;S<e;S+=1)n[I++]=m[N++];I+=(s-1)*e}}b++}}return A=function(A,t,i){var e=A.length,n=!t||i,r=!i||i.i;i||(i={}),t||(t=new Jt(3*e));var o=function(A){var i=t.length;if(A>i){var e=new Jt(Math.max(2*i,A));e.set(t),t=e}},s=i.f||0,a=i.p||0,l=i.b||0,c=i.l,h=i.d,u=i.m,d=i.n,g=8*e;do{if(!c){i.f=s=wi(A,a,1);var f=wi(A,a+1,3);if(a+=3,!f){var p=A[(k=mi(a)+4)-4]|A[k-3]<<8,w=k+p;if(w>e){if(r)throw"unexpected EOF";break}n&&o(l+p),t.set(A.subarray(k,w),l),i.b=l+=p,i.p=a=8*w;continue}if(1==f)c=di,h=fi,u=9,d=5;else{if(2!=f)throw"invalid block type";var B=wi(A,a,31)+257,m=wi(A,a+10,15)+4,b=B+wi(A,a+5,31)+1;a+=14;for(var v=new Jt(b),Q=new Jt(19),C=0;C<m;++C)Q[Zt[C]]=wi(A,a+3*C,7);a+=3*m;var F=pi(Q),U=(1<<F)-1;if(!r&&a+b*(F+7)>g)break;var y=li(Q,F,1);for(C=0;C<b;){var k,x=y[wi(A,a,U)];if(a+=15&x,(k=x>>>4)<16)v[C++]=k;else{var L=0,E=0;for(16==k?(E=3+wi(A,a,3),a+=2,L=v[C-1]):17==k?(E=3+wi(A,a,7),a+=3):18==k&&(E=11+wi(A,a,127),a+=7);E--;)v[C++]=L}}var H=v.subarray(0,B),I=v.subarray(B);u=pi(H),d=pi(I),c=li(H,u,1),h=li(I,d,1)}if(a>g)throw"unexpected EOF"}n&&o(l+131072);for(var N=(1<<u)-1,S=(1<<d)-1,D=u+d+18;r||a+D<g;){var M=(L=c[Bi(A,a)&N])>>>4;if((a+=15&L)>g)throw"unexpected EOF";if(!L)throw"invalid length/literal";if(M<256)t[l++]=M;else{if(256==M){c=null;break}var K=M-254;M>264&&(K=wi(A,a,(1<<(P=Yt[C=M-257]))-1)+ti[C],a+=P);var O=h[Bi(A,a)&S],T=O>>>4;if(!O)throw"invalid distance";if(a+=15&O,I=ni[T],T>3){var P=Wt[T];I+=Bi(A,a)&(1<<P)-1,a+=P}if(a>g)throw"unexpected EOF";n&&o(l+131072);for(var j=l+K;l<j;l+=4)t[l]=t[l-I],t[l+1]=t[l+1-I],t[l+2]=t[l+2-I],t[l+3]=t[l+3-I];l=j}}i.l=c,i.p=a,i.b=l,c&&(s=1,i.m=u,i.d=h,i.n=d)}while(!s);return l==t.length?t:bi(t,0,l)}((function(A){if(8!=(15&A[0])||A[0]>>>4>7||(A[0]<<8|A[1])%31)throw"invalid zlib data";if(32&A[1])throw"invalid zlib data: preset dictionaries not supported"}(t=A),t.subarray(2,-4)),i),1==o.interlaceMethod?(s(0,0,8,8),s(4,0,8,8),s(0,4,4,8),s(2,0,4,4),s(0,2,2,4),s(1,0,2,2),s(0,1,1,2)):s(0,0,1,1),n},e.prototype.decodePalette=function(){var A,t,i,e,n,r,o,s,a;for(i=this.palette,r=this.transparency.indexed||[],n=new Uint8Array((r.length||0)+i.length),e=0,A=0,t=o=0,s=i.length;o<s;t=o+=3)n[e++]=i[t],n[e++]=i[t+1],n[e++]=i[t+2],n[e++]=null!=(a=r[A++])?a:255;return n},e.prototype.copyToImageData=function(A,t){var i,e,n,r,o,s,a,l,c,h,u;if(e=this.colors,c=null,i=this.hasAlphaChannel,this.palette.length&&(c=null!=(u=this._decodedPalette)?u:this._decodedPalette=this.decodePalette(),e=4,i=!0),l=(n=A.data||A).length,o=c||t,r=s=0,1===e)for(;r<l;)a=c?4*t[r/4]:s,h=o[a++],n[r++]=h,n[r++]=h,n[r++]=h,n[r++]=i?o[a++]:255,s=a;else for(;r<l;)a=c?4*t[r/4]:s,n[r++]=o[a++],n[r++]=o[a++],n[r++]=o[a++],n[r++]=i?o[a++]:255,s=a},e.prototype.decode=function(){var A;return A=new Uint8Array(this.width*this.height*4),this.copyToImageData(A,this.decodePixels()),A};var n=function(){if("[object Window]"===Object.prototype.toString.call(Ii)){try{t=Ii.document.createElement("canvas"),i=t.getContext("2d")}catch(A){return!1}return!0}return!1};return n(),A=function(A){var e;if(!0===n())return i.width=A.width,i.height=A.height,i.clearRect(0,0,A.width,A.height),i.putImageData(A,0,0),(e=new Image).src=t.toDataURL(),e;throw new Error("This method requires a Browser with Canvas-capability.")},e.prototype.decodeFrames=function(t){var i,e,n,r,o,s,a,l;if(this.animation){for(l=[],e=o=0,s=(a=this.animation.frames).length;o<s;e=++o)n=t.createImageData((i=a[e]).width,i.height),r=this.decodePixels(new Uint8Array(i.data)),this.copyToImageData(n,r),i.imageData=n,l.push(i.image=A(n));return l}},e.prototype.renderFrame=function(A,t){var i,e,n;return i=(e=this.animation.frames)[t],n=e[t-1],0===t&&A.clearRect(0,0,this.width,this.height),1===(null!=n?n.disposeOp:void 0)?A.clearRect(n.xOffset,n.yOffset,n.width,n.height):2===(null!=n?n.disposeOp:void 0)&&A.putImageData(n.imageData,n.xOffset,n.yOffset),0===i.blendOp&&A.clearRect(i.xOffset,i.yOffset,i.width,i.height),A.drawImage(i.image,i.xOffset,i.yOffset)},e.prototype.animate=function(A){var t,i,e,n,r,o,s=this;return i=0,n=(o=this.animation).numFrames,e=o.frames,r=o.numPlays,(t=function(){var o,a;if(o=i++%n,a=e[o],s.renderFrame(A,o),n>1&&i/n<r)return s.animation._timeout=setTimeout(t,a.delay)})()},e.prototype.stopAnimation=function(){var A;return clearTimeout(null!=(A=this.animation)?A._timeout:void 0)},e.prototype.render=function(A){var t,i;return A._png&&A._png.stopAnimation(),A._png=this,A.width=this.width,A.height=this.height,t=A.getContext("2d"),this.animation?(this.decodeFrames(t),this.animate(t)):(i=t.createImageData(this.width,this.height),this.copyToImageData(i,this.decodePixels()),t.putImageData(i,0,0))},e}();
|
146
|
+
/**
|
147
|
+
* @license
|
148
|
+
*
|
149
|
+
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
|
150
|
+
*
|
151
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
152
|
+
* a copy of this software and associated documentation files (the
|
153
|
+
* "Software"), to deal in the Software without restriction, including
|
154
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
155
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
156
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
157
|
+
* the following conditions:
|
158
|
+
*
|
159
|
+
* The above copyright notice and this permission notice shall be
|
160
|
+
* included in all copies or substantial portions of the Software.
|
161
|
+
*
|
162
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
163
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
164
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
165
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
166
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
167
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
168
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
169
|
+
* ====================================================================
|
170
|
+
*/
|
171
|
+
/**
|
172
|
+
* @license
|
173
|
+
* (c) Dean McNamee <dean@gmail.com>, 2013.
|
174
|
+
*
|
175
|
+
* https://github.com/deanm/omggif
|
176
|
+
*
|
177
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
178
|
+
* of this software and associated documentation files (the "Software"), to
|
179
|
+
* deal in the Software without restriction, including without limitation the
|
180
|
+
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
181
|
+
* sell copies of the Software, and to permit persons to whom the Software is
|
182
|
+
* furnished to do so, subject to the following conditions:
|
183
|
+
*
|
184
|
+
* The above copyright notice and this permission notice shall be included in
|
185
|
+
* all copies or substantial portions of the Software.
|
186
|
+
*
|
187
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
188
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
189
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
190
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
191
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
192
|
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
193
|
+
* IN THE SOFTWARE.
|
194
|
+
*
|
195
|
+
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
|
196
|
+
* including animation and compression. It does not rely on any specific
|
197
|
+
* underlying system, so should run in the browser, Node, or Plask.
|
198
|
+
*/function Un(A){var t=0;if(71!==A[t++]||73!==A[t++]||70!==A[t++]||56!==A[t++]||56!=(A[t++]+1&253)||97!==A[t++])throw new Error("Invalid GIF 87a/89a header.");var i=A[t++]|A[t++]<<8,e=A[t++]|A[t++]<<8,n=A[t++],r=1<<1+(7&n);t++,t++;var o=null,s=null;n>>7&&(o=t,s=r,t+=3*r);var a=!0,l=[],c=0,h=null,u=0,d=null;for(this.width=i,this.height=e;a&&t<A.length;)switch(A[t++]){case 33:switch(A[t++]){case 255:if(11!==A[t]||78==A[t+1]&&69==A[t+2]&&84==A[t+3]&&83==A[t+4]&&67==A[t+5]&&65==A[t+6]&&80==A[t+7]&&69==A[t+8]&&50==A[t+9]&&46==A[t+10]&&48==A[t+11]&&3==A[t+12]&&1==A[t+13]&&0==A[t+16])t+=14,d=A[t++]|A[t++]<<8,t++;else for(t+=12;;){if(!((y=A[t++])>=0))throw Error("Invalid block size");if(0===y)break;t+=y}break;case 249:if(4!==A[t++]||0!==A[t+4])throw new Error("Invalid graphics extension block.");var g=A[t++];c=A[t++]|A[t++]<<8,h=A[t++],0==(1&g)&&(h=null),u=g>>2&7,t++;break;case 254:for(;;){if(!((y=A[t++])>=0))throw Error("Invalid block size");if(0===y)break;t+=y}break;default:throw new Error("Unknown graphic control label: 0x"+A[t-1].toString(16))}break;case 44:var f=A[t++]|A[t++]<<8,p=A[t++]|A[t++]<<8,w=A[t++]|A[t++]<<8,B=A[t++]|A[t++]<<8,m=A[t++],b=m>>6&1,v=1<<1+(7&m),Q=o,C=s,F=!1;m>>7&&(F=!0,Q=t,C=v,t+=3*v);var U=t;for(t++;;){var y;if(!((y=A[t++])>=0))throw Error("Invalid block size");if(0===y)break;t+=y}l.push({x:f,y:p,width:w,height:B,has_local_palette:F,palette_offset:Q,palette_size:C,data_offset:U,data_length:t-U,transparent_index:h,interlaced:!!b,delay:c,disposal:u});break;case 59:a=!1;break;default:throw new Error("Unknown gif block: 0x"+A[t-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return d},this.frameInfo=function(A){if(A<0||A>=l.length)throw new Error("Frame index out of range.");return l[A]},this.decodeAndBlitFrameBGRA=function(t,e){var n=this.frameInfo(t),r=n.width*n.height,o=new Uint8Array(r);yn(A,n.data_offset,o,r);var s=n.palette_offset,a=n.transparent_index;null===a&&(a=256);var l=n.width,c=i-l,h=l,u=4*(n.y*i+n.x),d=4*((n.y+n.height)*i+n.x),g=u,f=4*c;!0===n.interlaced&&(f+=4*i*7);for(var p=8,w=0,B=o.length;w<B;++w){var m=o[w];if(0===h&&(h=l,(g+=f)>=d&&(f=4*c+4*i*(p-1),g=u+(l+c)*(p<<1),p>>=1)),m===a)g+=4;else{var b=A[s+3*m],v=A[s+3*m+1];e[g++]=A[s+3*m+2],e[g++]=v,e[g++]=b,e[g++]=255}--h}},this.decodeAndBlitFrameRGBA=function(t,e){var n=this.frameInfo(t),r=n.width*n.height,o=new Uint8Array(r);yn(A,n.data_offset,o,r);var s=n.palette_offset,a=n.transparent_index;null===a&&(a=256);var l=n.width,c=i-l,h=l,u=4*(n.y*i+n.x),d=4*((n.y+n.height)*i+n.x),g=u,f=4*c;!0===n.interlaced&&(f+=4*i*7);for(var p=8,w=0,B=o.length;w<B;++w){var m=o[w];if(0===h&&(h=l,(g+=f)>=d&&(f=4*c+4*i*(p-1),g=u+(l+c)*(p<<1),p>>=1)),m===a)g+=4;else{var b=A[s+3*m+1],v=A[s+3*m+2];e[g++]=A[s+3*m],e[g++]=b,e[g++]=v,e[g++]=255}--h}}}function yn(A,t,i,e){for(var n=A[t++],r=1<<n,o=r+1,s=o+1,a=n+1,l=(1<<a)-1,c=0,h=0,u=0,d=A[t++],g=new Int32Array(4096),f=null;;){for(;c<16&&0!==d;)h|=A[t++]<<c,c+=8,1===d?d=A[t++]:--d;if(c<a)break;var p=h&l;if(h>>=a,c-=a,p!==r){if(p===o)break;for(var w=p<s?p:f,B=0,m=w;m>r;)m=g[m]>>8,++B;var b=m;if(u+B+(w!==p?1:0)>e)return void Si.log("Warning, gif stream longer than expected.");i[u++]=b;var v=u+=B;for(w!==p&&(i[u++]=b),m=w;B--;)i[--v]=255&(m=g[m]),m>>=8;null!==f&&s<4096&&(g[s++]=f<<8|b,s>=l+1&&a<12&&(++a,l=l<<1|1)),f=p}else s=o+1,l=(1<<(a=n+1))-1,f=null}return u!==e&&Si.log("Warning, gif stream shorter than expected."),i}
|
199
|
+
/**
|
200
|
+
* @license
|
201
|
+
Copyright (c) 2008, Adobe Systems Incorporated
|
202
|
+
All rights reserved.
|
203
|
+
|
204
|
+
Redistribution and use in source and binary forms, with or without
|
205
|
+
modification, are permitted provided that the following conditions are
|
206
|
+
met:
|
207
|
+
|
208
|
+
* Redistributions of source code must retain the above copyright notice,
|
209
|
+
this list of conditions and the following disclaimer.
|
210
|
+
|
211
|
+
* Redistributions in binary form must reproduce the above copyright
|
212
|
+
notice, this list of conditions and the following disclaimer in the
|
213
|
+
documentation and/or other materials provided with the distribution.
|
214
|
+
|
215
|
+
* Neither the name of Adobe Systems Incorporated nor the names of its
|
216
|
+
contributors may be used to endorse or promote products derived from
|
217
|
+
this software without specific prior written permission.
|
218
|
+
|
219
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
220
|
+
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
221
|
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
222
|
+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
223
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
224
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
225
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
226
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
227
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
228
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
229
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
230
|
+
*/function kn(A){var t,i,e,n,r,o=Math.floor,s=new Array(64),a=new Array(64),l=new Array(64),c=new Array(64),h=new Array(65535),u=new Array(65535),d=new Array(64),g=new Array(64),f=[],p=0,w=7,B=new Array(64),m=new Array(64),b=new Array(64),v=new Array(256),Q=new Array(2048),C=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],F=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],U=[0,1,2,3,4,5,6,7,8,9,10,11],y=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],k=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],x=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],L=[0,1,2,3,4,5,6,7,8,9,10,11],E=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],H=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function I(A,t){for(var i=0,e=0,n=new Array,r=1;r<=16;r++){for(var o=1;o<=A[r];o++)n[t[e]]=[],n[t[e]][0]=i,n[t[e]][1]=r,e++,i++;i*=2}return n}function N(A){for(var t=A[0],i=A[1]-1;i>=0;)t&1<<i&&(p|=1<<w),i--,--w<0&&(255==p?(S(255),S(0)):S(p),w=7,p=0)}function S(A){f.push(A)}function D(A){S(A>>8&255),S(255&A)}function M(A,t,i,e,n){for(var r,o=n[0],s=n[240],a=function(A,t){var i,e,n,r,o,s,a,l,c,h,u=0;for(c=0;c<8;++c){var g=(i=A[u])+(l=A[u+7]),f=i-l,p=(e=A[u+1])+(a=A[u+6]),w=e-a,B=(n=A[u+2])+(s=A[u+5]),m=n-s,b=(r=A[u+3])+(o=A[u+4]),v=r-o,Q=g+b,C=g-b,F=p+B,U=p-B;A[u]=Q+F,A[u+4]=Q-F;var y=.707106781*(U+C);A[u+2]=C+y,A[u+6]=C-y;var k=.382683433*((Q=v+m)-(U=w+f)),x=.5411961*Q+k,L=1.306562965*U+k,E=.707106781*(F=m+w),H=f+E,I=f-E;A[u+5]=I+x,A[u+3]=I-x,A[u+1]=H+L,A[u+7]=H-L,u+=8}for(u=0,c=0;c<8;++c){var N=(i=A[u])+(l=A[u+56]),S=i-l,D=(e=A[u+8])+(a=A[u+48]),M=e-a,K=(n=A[u+16])+(s=A[u+40]),O=n-s,T=(r=A[u+24])+(o=A[u+32]),P=r-o,j=N+T,q=N-T,R=D+K,G=D-K;A[u]=j+R,A[u+32]=j-R;var V=.707106781*(G+q);A[u+16]=q+V,A[u+48]=q-V;var z=.382683433*((j=P+O)-(G=M+S)),J=.5411961*j+z,X=1.306562965*G+z,_=.707106781*(R=O+M),Y=S+_,W=S-_;A[u+40]=W+J,A[u+24]=W-J,A[u+8]=Y+X,A[u+56]=Y-X,u++}for(c=0;c<64;++c)d[c]=(h=A[c]*t[c])>0?h+.5|0:h-.5|0;return d}(A,t),l=0;l<64;++l)g[C[l]]=a[l];var c=g[0]-i;i=g[0],0==c?N(e[0]):(N(e[u[r=32767+c]]),N(h[r]));for(var f=63;f>0&&0==g[f];)f--;if(0==f)return N(o),i;for(var p,w=1;w<=f;){for(var B=w;0==g[w]&&w<=f;)++w;var m=w-B;if(m>=16){p=m>>4;for(var b=1;b<=p;++b)N(s);m&=15}N(n[(m<<4)+u[r=32767+g[w]]]),N(h[r]),w++}return 63!=f&&N(o),i}function K(A){A=Math.min(Math.max(A,1),100),r!=A&&(function(A){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],i=0;i<64;i++){var e=o((t[i]*A+50)/100);e=Math.min(Math.max(e,1),255),s[C[i]]=e}for(var n=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],r=0;r<64;r++){var h=o((n[r]*A+50)/100);h=Math.min(Math.max(h,1),255),a[C[r]]=h}for(var u=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,g=0;g<8;g++)for(var f=0;f<8;f++)l[d]=1/(s[C[d]]*u[g]*u[f]*8),c[d]=1/(a[C[d]]*u[g]*u[f]*8),d++}(A<50?Math.floor(5e3/A):Math.floor(200-2*A)),r=A)}this.encode=function(A,r){r&&K(r),f=new Array,p=0,w=7,D(65496),D(65504),D(16),S(74),S(70),S(73),S(70),S(0),S(1),S(1),S(0),D(1),D(1),S(0),S(0),function(){D(65499),D(132),S(0);for(var A=0;A<64;A++)S(s[A]);S(1);for(var t=0;t<64;t++)S(a[t])}(),function(A,t){D(65472),D(17),S(8),D(t),D(A),S(3),S(1),S(17),S(0),S(2),S(17),S(1),S(3),S(17),S(1)}(A.width,A.height),function(){D(65476),D(418),S(0);for(var A=0;A<16;A++)S(F[A+1]);for(var t=0;t<=11;t++)S(U[t]);S(16);for(var i=0;i<16;i++)S(y[i+1]);for(var e=0;e<=161;e++)S(k[e]);S(1);for(var n=0;n<16;n++)S(x[n+1]);for(var r=0;r<=11;r++)S(L[r]);S(17);for(var o=0;o<16;o++)S(E[o+1]);for(var s=0;s<=161;s++)S(H[s])}(),D(65498),D(12),S(3),S(1),S(0),S(2),S(17),S(3),S(17),S(0),S(63),S(0);var o=0,h=0,u=0;p=0,w=7,this.encode.displayName="_encode_";for(var d,g,v,C,I,O,T,P,j,q=A.data,R=A.height,G=4*A.width,V=0;V<R;){for(d=0;d<G;){for(I=G*V+d,T=-1,P=0,j=0;j<64;j++)O=I+(P=j>>3)*G+(T=4*(7&j)),V+P>=R&&(O-=G*(V+1+P-R)),d+T>=G&&(O-=d+T-G+4),g=q[O++],v=q[O++],C=q[O++],B[j]=(Q[g]+Q[v+256>>0]+Q[C+512>>0]>>16)-128,m[j]=(Q[g+768>>0]+Q[v+1024>>0]+Q[C+1280>>0]>>16)-128,b[j]=(Q[g+1280>>0]+Q[v+1536>>0]+Q[C+1792>>0]>>16)-128;o=M(B,l,o,t,e),h=M(m,c,h,i,n),u=M(b,c,u,i,n),d+=32}V+=8}if(w>=0){var z=[];z[1]=w+1,z[0]=(1<<w+1)-1,N(z)}return D(65497),new Uint8Array(f)},A=A||50,function(){for(var A=String.fromCharCode,t=0;t<256;t++)v[t]=A(t)}(),t=I(F,U),i=I(x,L),e=I(y,k),n=I(E,H),function(){for(var A=1,t=2,i=1;i<=15;i++){for(var e=A;e<t;e++)u[32767+e]=i,h[32767+e]=[],h[32767+e][1]=i,h[32767+e][0]=e;for(var n=-(t-1);n<=-A;n++)u[32767+n]=i,h[32767+n]=[],h[32767+n][1]=i,h[32767+n][0]=t-1+n;A<<=1,t<<=1}}(),function(){for(var A=0;A<256;A++)Q[A]=19595*A,Q[A+256>>0]=38470*A,Q[A+512>>0]=7471*A+32768,Q[A+768>>0]=-11059*A,Q[A+1024>>0]=-21709*A,Q[A+1280>>0]=32768*A+8421375,Q[A+1536>>0]=-27439*A,Q[A+1792>>0]=-5329*A}(),K(A)}
|
231
|
+
/**
|
232
|
+
* @license
|
233
|
+
* Copyright (c) 2017 Aras Abbasi
|
234
|
+
*
|
235
|
+
* Licensed under the MIT License.
|
236
|
+
* http://opensource.org/licenses/mit-license
|
237
|
+
*/function xn(A,t){if(this.pos=0,this.buffer=A,this.datav=new DataView(A.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Ln(A){function t(A){if(!A)throw Error("assert :P")}function i(A,t,i){for(var e=0;4>e;e++)if(A[t+e]!=i.charCodeAt(e))return!0;return!1}function e(A,t,i,e,n){for(var r=0;r<n;r++)A[t+r]=i[e+r]}function n(A,t,i,e){for(var n=0;n<e;n++)A[t+n]=i}function r(A){return new Int32Array(A)}function o(A,t){for(var i=[],e=0;e<A;e++)i.push(new t);return i}function s(A,t){var i=[];return function A(i,e,n){for(var r=n[e],o=0;o<r&&(i.push(n.length>e+1?[]:new t),!(n.length<e+1));o++)A(i[o],e+1,n)}(i,0,A),i}var a=function(){var A=this;function a(A,t){for(var i=1<<t-1>>>0;A&i;)i>>>=1;return i?(A&i-1)+i:A}function l(A,i,e,n,r){t(!(n%e));do{A[i+(n-=e)]=r}while(0<n)}function c(A,i,e,n,o){if(t(2328>=o),512>=o)var s=r(512);else if(null==(s=r(o)))return 0;return function(A,i,e,n,o,s){var c,u,d=i,g=1<<e,f=r(16),p=r(16);for(t(0!=o),t(null!=n),t(null!=A),t(0<e),u=0;u<o;++u){if(15<n[u])return 0;++f[n[u]]}if(f[0]==o)return 0;for(p[1]=0,c=1;15>c;++c){if(f[c]>1<<c)return 0;p[c+1]=p[c]+f[c]}for(u=0;u<o;++u)c=n[u],0<n[u]&&(s[p[c]++]=u);if(1==p[15])return(n=new h).g=0,n.value=s[0],l(A,d,1,g,n),g;var w,B=-1,m=g-1,b=0,v=1,Q=1,C=1<<e;for(u=0,c=1,o=2;c<=e;++c,o<<=1){if(v+=Q<<=1,0>(Q-=f[c]))return 0;for(;0<f[c];--f[c])(n=new h).g=c,n.value=s[u++],l(A,d+b,o,C,n),b=a(b,c)}for(c=e+1,o=2;15>=c;++c,o<<=1){if(v+=Q<<=1,0>(Q-=f[c]))return 0;for(;0<f[c];--f[c]){if(n=new h,(b&m)!=B){for(d+=C,w=1<<(B=c)-e;15>B&&!(0>=(w-=f[B]));)++B,w<<=1;g+=C=1<<(w=B-e),A[i+(B=b&m)].g=w+e,A[i+B].value=d-i-B}n.g=c-e,n.value=s[u++],l(A,d+(b>>e),o,C,n),b=a(b,c)}}return v!=2*p[15]-1?0:g}(A,i,e,n,o,s)}function h(){this.value=this.g=0}function u(){this.value=this.g=0}function d(){this.G=o(5,h),this.H=r(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Oi,u)}function g(A,i,e,n){t(null!=A),t(null!=i),t(2147483648>n),A.Ca=254,A.I=0,A.b=-8,A.Ka=0,A.oa=i,A.pa=e,A.Jd=i,A.Yc=e+n,A.Zc=4<=n?e+n-4+1:e,y(A)}function f(A,t){for(var i=0;0<t--;)i|=x(A,128)<<t;return i}function p(A,t){var i=f(A,t);return k(A)?-i:i}function w(A,i,e,n){var r,o=0;for(t(null!=A),t(null!=i),t(4294967288>n),A.Sb=n,A.Ra=0,A.u=0,A.h=0,4<n&&(n=4),r=0;r<n;++r)o+=i[e+r]<<8*r;A.Ra=o,A.bb=n,A.oa=i,A.pa=e}function B(A){for(;8<=A.u&&A.bb<A.Sb;)A.Ra>>>=8,A.Ra+=A.oa[A.pa+A.bb]<<ji-8>>>0,++A.bb,A.u-=8;C(A)&&(A.h=1,A.u=0)}function m(A,i){if(t(0<=i),!A.h&&i<=Pi){var e=Q(A)&Ti[i];return A.u+=i,B(A),e}return A.h=1,A.u=0}function b(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function v(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function Q(A){return A.Ra>>>(A.u&ji-1)>>>0}function C(A){return t(A.bb<=A.Sb),A.h||A.bb==A.Sb&&A.u>ji}function F(A,t){A.u=t,A.h=C(A)}function U(A){A.u>=qi&&(t(A.u>=qi),B(A))}function y(A){t(null!=A&&null!=A.oa),A.pa<A.Zc?(A.I=(A.oa[A.pa++]|A.I<<8)>>>0,A.b+=8):(t(null!=A&&null!=A.oa),A.pa<A.Yc?(A.b+=8,A.I=A.oa[A.pa++]|A.I<<8):A.Ka?A.b=0:(A.I<<=8,A.b+=8,A.Ka=1))}function k(A){return f(A,1)}function x(A,t){var i=A.Ca;0>A.b&&y(A);var e=A.b,n=i*t>>>8,r=(A.I>>>e>n)+0;for(r?(i-=n,A.I-=n+1<<e>>>0):i=n+1,e=i,n=0;256<=e;)n+=8,e>>=8;return A.b-=e=7^n+Ri[e],A.Ca=(i<<e)-1,r}function L(A,t,i){A[t+0]=i>>24&255,A[t+1]=i>>16&255,A[t+2]=i>>8&255,A[t+3]=i>>0&255}function E(A,t){return A[t+0]<<0|A[t+1]<<8}function H(A,t){return E(A,t)|A[t+2]<<16}function I(A,t){return E(A,t)|E(A,t+2)<<16}function N(A,i){var e=1<<i;return t(null!=A),t(0<i),A.X=r(e),null==A.X?0:(A.Mb=32-i,A.Xa=i,1)}function S(A,i){t(null!=A),t(null!=i),t(A.Xa==i.Xa),e(i.X,0,A.X,0,1<<i.Xa)}function D(){this.X=[],this.Xa=this.Mb=0}function M(A,i,e,n){t(null!=e),t(null!=n);var r=e[0],o=n[0];return 0==r&&(r=(A*o+i/2)/i),0==o&&(o=(i*r+A/2)/A),0>=r||0>=o?0:(e[0]=r,n[0]=o,1)}function K(A,t){return A+(1<<t)-1>>>t}function O(A,t){return((4278255360&A)+(4278255360&t)>>>0&4278255360)+((16711935&A)+(16711935&t)>>>0&16711935)>>>0}function T(t,i){A[i]=function(i,e,n,r,o,s,a){var l;for(l=0;l<o;++l){var c=A[t](s[a+l-1],n,r+l);s[a+l]=O(i[e+l],c)}}}function P(){this.ud=this.hd=this.jd=0}function j(A,t){return((4278124286&(A^t))>>>1)+(A&t)>>>0}function q(A){return 0<=A&&256>A?A:0>A?0:255<A?255:void 0}function R(A,t){return q(A+(A-t+.5>>1))}function G(A,t,i){return Math.abs(t-i)-Math.abs(A-i)}function V(A,t,i,e,n,r,o){for(e=r[o-1],i=0;i<n;++i)r[o+i]=e=O(A[t+i],e)}function z(A,t,i,e,n){var r;for(r=0;r<i;++r){var o=A[t+r],s=o>>8&255,a=16711935&(a=(a=16711935&o)+((s<<16)+s));e[n+r]=(4278255360&o)+a>>>0}}function J(A,t){t.jd=A>>0&255,t.hd=A>>8&255,t.ud=A>>16&255}function X(A,t,i,e,n,r){var o;for(o=0;o<e;++o){var s=t[i+o],a=s>>>8,l=s,c=255&(c=(c=s>>>16)+((A.jd<<24>>24)*(a<<24>>24)>>>5));l=255&(l=(l+=(A.hd<<24>>24)*(a<<24>>24)>>>5)+((A.ud<<24>>24)*(c<<24>>24)>>>5)),n[r+o]=(4278255360&s)+(c<<16)+l}}function _(t,i,e,n,r){A[i]=function(A,t,i,e,o,s,a,l,c){for(e=a;e<l;++e)for(a=0;a<c;++a)o[s++]=r(i[n(A[t++])])},A[t]=function(t,i,o,s,a,l,c){var h=8>>t.b,u=t.Ea,d=t.K[0],g=t.w;if(8>h)for(t=(1<<t.b)-1,g=(1<<h)-1;i<o;++i){var f,p=0;for(f=0;f<u;++f)f&t||(p=n(s[a++])),l[c++]=r(d[p&g]),p>>=h}else A["VP8LMapColor"+e](s,a,d,g,l,c,i,o,u)}}function Y(A,t,i,e,n){for(i=t+i;t<i;){var r=A[t++];e[n++]=r>>16&255,e[n++]=r>>8&255,e[n++]=r>>0&255}}function W(A,t,i,e,n){for(i=t+i;t<i;){var r=A[t++];e[n++]=r>>16&255,e[n++]=r>>8&255,e[n++]=r>>0&255,e[n++]=r>>24&255}}function Z(A,t,i,e,n){for(i=t+i;t<i;){var r=(o=A[t++])>>16&240|o>>12&15,o=o>>0&240|o>>28&15;e[n++]=r,e[n++]=o}}function $(A,t,i,e,n){for(i=t+i;t<i;){var r=(o=A[t++])>>16&248|o>>13&7,o=o>>5&224|o>>3&31;e[n++]=r,e[n++]=o}}function AA(A,t,i,e,n){for(i=t+i;t<i;){var r=A[t++];e[n++]=r>>0&255,e[n++]=r>>8&255,e[n++]=r>>16&255}}function tA(A,t,i,n,r,o){if(0==o)for(i=t+i;t<i;)L(n,((o=A[t++])[0]>>24|o[1]>>8&65280|o[2]<<8&16711680|o[3]<<24)>>>0),r+=32;else e(n,r,A,t,i)}function iA(t,i){A[i][0]=A[t+"0"],A[i][1]=A[t+"1"],A[i][2]=A[t+"2"],A[i][3]=A[t+"3"],A[i][4]=A[t+"4"],A[i][5]=A[t+"5"],A[i][6]=A[t+"6"],A[i][7]=A[t+"7"],A[i][8]=A[t+"8"],A[i][9]=A[t+"9"],A[i][10]=A[t+"10"],A[i][11]=A[t+"11"],A[i][12]=A[t+"12"],A[i][13]=A[t+"13"],A[i][14]=A[t+"0"],A[i][15]=A[t+"0"]}function eA(A){return A==qe||A==Re||A==Ge||A==Ve}function nA(){this.eb=[],this.size=this.A=this.fb=0}function rA(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function oA(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new nA,this.f.kb=new rA,this.sd=null}function sA(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function aA(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function lA(A){return alert("todo:WebPSamplerProcessPlane"),A.T}function cA(A,t){var i=A.T,n=t.ba.f.RGBA,r=n.eb,o=n.fb+A.ka*n.A,s=wn[t.ba.S],a=A.y,l=A.O,c=A.f,h=A.N,u=A.ea,d=A.W,g=t.cc,f=t.dc,p=t.Mc,w=t.Nc,B=A.ka,m=A.ka+A.T,b=A.U,v=b+1>>1;for(0==B?s(a,l,null,null,c,h,u,d,c,h,u,d,r,o,null,null,b):(s(t.ec,t.fc,a,l,g,f,p,w,c,h,u,d,r,o-n.A,r,o,b),++i);B+2<m;B+=2)s(a,(l+=2*A.fa)-A.fa,a,l,g=c,f=h,p=u,w=d,c,h+=A.Rc,u,d+=A.Rc,r,(o+=2*n.A)-n.A,r,o,b);return l+=A.fa,A.j+m<A.o?(e(t.ec,t.fc,a,l,b),e(t.cc,t.dc,c,h,v),e(t.Mc,t.Nc,u,d,v),i--):1&m||s(a,l,null,null,c,h,u,d,c,h,u,d,r,o+n.A,null,null,b),i}function hA(A,i,e){var n=A.F,r=[A.J];if(null!=n){var o=A.U,s=i.ba.S,a=s==Te||s==Ge;i=i.ba.f.RGBA;var l=[0],c=A.ka;l[0]=A.T,A.Kb&&(0==c?--l[0]:(--c,r[0]-=A.width),A.j+A.ka+A.T==A.o&&(l[0]=A.o-A.j-c));var h=i.eb;A=Fe(n,r[0],A.width,o,l,h,(c=i.fb+c*i.A)+(a?0:3),i.A),t(e==l),A&&eA(s)&&Qe(h,c,a,o,l,i.A)}return 0}function uA(A){var t=A.ma,i=t.ba.S,e=11>i,n=i==Me||i==Oe||i==Te||i==Pe||12==i||eA(i);if(t.memory=null,t.Ib=null,t.Jb=null,t.Nd=null,!Di(t.Oa,A,n?11:12))return 0;if(n&&eA(i)&&Bi(),A.da)alert("todo:use_scaling");else{if(e){if(t.Ib=lA,A.Kb){if(t.memory=r(A.U+2*(i=A.U+1>>1)),null==t.memory)return 0;t.ec=t.memory,t.fc=0,t.cc=t.ec,t.dc=t.fc+A.U,t.Mc=t.cc,t.Nc=t.dc+i,t.Ib=cA,Bi()}}else alert("todo:EmitYUV");n&&(t.Jb=hA,e&&pi())}if(e&&!Hn){for(A=0;256>A;++A)In[A]=89858*(A-128)+yn>>Un,Dn[A]=-22014*(A-128)+yn,Sn[A]=-45773*(A-128),Nn[A]=113618*(A-128)+yn>>Un;for(A=kn;A<xn;++A)Mn[A-kn]=VA(t=76283*(A-16)+yn>>Un,255),Kn[A-kn]=VA(t+8>>4,15);Hn=1}return 1}function dA(A){var i=A.ma,e=A.U,n=A.T;return t(!(1&A.ka)),0>=e||0>=n?0:(e=i.Ib(A,i),null!=i.Jb&&i.Jb(A,i,e),i.Dc+=e,1)}function gA(A){A.ma.memory=null}function fA(A,t,i,e){return 47!=m(A,8)?0:(t[0]=m(A,14)+1,i[0]=m(A,14)+1,e[0]=m(A,1),0!=m(A,3)?0:!A.h)}function pA(A,t){if(4>A)return A+1;var i=A-2>>1;return(2+(1&A)<<i)+m(t,i)+1}function wA(A,t){return 120<t?t-120:1<=(i=((i=We[t-1])>>4)*A+(8-(15&i)))?i:1;var i}function BA(A,t,i){var e=Q(i),n=A[t+=255&e].g-8;return 0<n&&(F(i,i.u+8),e=Q(i),t+=A[t].value,t+=e&(1<<n)-1),F(i,i.u+A[t].g),A[t].value}function mA(A,i,e){return e.g+=A.g,e.value+=A.value<<i>>>0,t(8>=e.g),A.g}function bA(A,i,e){var n=A.xc;return t((i=0==n?0:A.vc[A.md*(e>>n)+(i>>n)])<A.Wb),A.Ya[i]}function vA(A,i,n,r){var o=A.ab,s=A.c*i,a=A.C;i=a+i;var l=n,c=r;for(r=A.Ta,n=A.Ua;0<o--;){var h=A.gc[o],u=a,d=i,g=l,f=c,p=(c=r,l=n,h.Ea);switch(t(u<d),t(d<=h.nc),h.hc){case 2:zi(g,f,(d-u)*p,c,l);break;case 0:var w=u,B=d,m=c,b=l,v=(y=h).Ea;0==w&&(Gi(g,f,null,null,1,m,b),V(g,f+1,0,0,v-1,m,b+1),f+=v,b+=v,++w);for(var Q=1<<y.b,C=Q-1,F=K(v,y.b),U=y.K,y=y.w+(w>>y.b)*F;w<B;){var k=U,x=y,L=1;for(Vi(g,f,m,b-v,1,m,b);L<v;){var E=(L&~C)+Q;E>v&&(E=v),(0,Wi[k[x++]>>8&15])(g,f+ +L,m,b+L-v,E-L,m,b+L),L=E}f+=v,b+=v,++w&C||(y+=F)}d!=h.nc&&e(c,l-p,c,l+(d-u-1)*p,p);break;case 1:for(p=g,B=f,v=(g=h.Ea)-(b=g&~(m=(f=1<<h.b)-1)),w=K(g,h.b),Q=h.K,h=h.w+(u>>h.b)*w;u<d;){for(C=Q,F=h,U=new P,y=B+b,k=B+g;B<y;)J(C[F++],U),Zi(U,p,B,f,c,l),B+=f,l+=f;B<k&&(J(C[F++],U),Zi(U,p,B,v,c,l),B+=v,l+=v),++u&m||(h+=w)}break;case 3:if(g==c&&f==l&&0<h.b){for(B=c,g=p=l+(d-u)*p-(b=(d-u)*K(h.Ea,h.b)),f=c,m=l,w=[],b=(v=b)-1;0<=b;--b)w[b]=f[m+b];for(b=v-1;0<=b;--b)B[g+b]=w[b];Ji(h,u,d,c,p,c,l)}else Ji(h,u,d,g,f,c,l)}l=r,c=n}c!=n&&e(r,n,l,c,s)}function QA(A,i){var e=A.V,n=A.Ba+A.c*A.C,r=i-A.C;if(t(i<=A.l.o),t(16>=r),0<r){var o=A.l,s=A.Ta,a=A.Ua,l=o.width;if(vA(A,r,e,n),r=a=[a],t((e=A.C)<(n=i)),t(o.v<o.va),n>o.o&&(n=o.o),e<o.j){var c=o.j-e;e=o.j,r[0]+=c*l}if(e>=n?e=0:(r[0]+=4*o.v,o.ka=e-o.j,o.U=o.va-o.v,o.T=n-e,e=1),e){if(a=a[0],11>(e=A.ca).S){var h=e.f.RGBA,u=(n=e.S,r=o.U,o=o.T,c=h.eb,h.A),d=o;for(h=h.fb+A.Ma*h.A;0<d--;){var g=s,f=a,p=r,w=c,B=h;switch(n){case De:$i(g,f,p,w,B);break;case Me:Ae(g,f,p,w,B);break;case qe:Ae(g,f,p,w,B),Qe(w,B,0,p,1,0);break;case Ke:ee(g,f,p,w,B);break;case Oe:tA(g,f,p,w,B,1);break;case Re:tA(g,f,p,w,B,1),Qe(w,B,0,p,1,0);break;case Te:tA(g,f,p,w,B,0);break;case Ge:tA(g,f,p,w,B,0),Qe(w,B,1,p,1,0);break;case Pe:te(g,f,p,w,B);break;case Ve:te(g,f,p,w,B),Ce(w,B,p,1,0);break;case je:ie(g,f,p,w,B);break;default:t(0)}a+=l,h+=u}A.Ma+=o}else alert("todo:EmitRescaledRowsYUVA");t(A.Ma<=e.height)}}A.C=i,t(A.C<=A.i)}function CA(A){var t;if(0<A.ua)return 0;for(t=0;t<A.Wb;++t){var i=A.Ya[t].G,e=A.Ya[t].H;if(0<i[1][e[1]+0].g||0<i[2][e[2]+0].g||0<i[3][e[3]+0].g)return 0}return 1}function FA(A,i,e,n,r,o){if(0!=A.Z){var s=A.qd,a=A.rd;for(t(null!=pn[A.Z]);i<e;++i)pn[A.Z](s,a,n,r,n,r,o),s=n,a=r,r+=o;A.qd=s,A.rd=a}}function UA(A,i){var e=A.l.ma,n=0==e.Z||1==e.Z?A.l.j:A.C;if(n=A.C<n?n:A.C,t(i<=A.l.o),i>n){var r=A.l.width,o=e.ca,s=e.tb+r*n,a=A.V,l=A.Ba+A.c*n,c=A.gc;t(1==A.ab),t(3==c[0].hc),_i(c[0],n,i,a,l,o,s),FA(e,n,i,o,s,r)}A.C=A.Ma=i}function yA(A,i,e,n,r,o,s){var a=A.$/n,l=A.$%n,c=A.m,h=A.s,u=e+A.$,d=u;r=e+n*r;var g=e+n*o,f=280+h.ua,p=A.Pb?a:16777216,w=0<h.ua?h.Wa:null,B=h.wc,m=u<g?bA(h,l,a):null;t(A.C<o),t(g<=r);var b=!1;A:for(;;){for(;b||u<g;){var v=0;if(a>=p){var y=u-e;t((p=A).Pb),p.wd=p.m,p.xd=y,0<p.s.ua&&S(p.s.Wa,p.s.vb),p=a+$e}if(l&B||(m=bA(h,l,a)),t(null!=m),m.Qb&&(i[u]=m.qb,b=!0),!b)if(U(c),m.jc){y=i;var k=u,x=m.pd[Q(v=c)&Oi-1];t(m.jc),256>x.g?(F(v,v.u+x.g),y[k]=x.value,v=0):(F(v,v.u+x.g-256),t(256<=x.value),v=x.value),0==v&&(b=!0)}else v=BA(m.G[0],m.H[0],c);if(c.h)break;if(b||256>v){if(!b)if(m.nd)i[u]=(m.qb|v<<8)>>>0;else{if(U(c),b=BA(m.G[1],m.H[1],c),U(c),y=BA(m.G[2],m.H[2],c),k=BA(m.G[3],m.H[3],c),c.h)break;i[u]=(k<<24|b<<16|v<<8|y)>>>0}if(b=!1,++u,++l>=n&&(l=0,++a,null!=s&&a<=o&&!(a%16)&&s(A,a),null!=w))for(;d<u;)v=i[d++],w.X[(506832829*v&4294967295)>>>w.Mb]=v}else if(280>v){if(v=pA(v-256,c),y=BA(m.G[4],m.H[4],c),U(c),y=wA(n,y=pA(y,c)),c.h)break;if(u-e<y||r-u<v)break A;for(k=0;k<v;++k)i[u+k]=i[u+k-y];for(u+=v,l+=v;l>=n;)l-=n,++a,null!=s&&a<=o&&!(a%16)&&s(A,a);if(t(u<=r),l&B&&(m=bA(h,l,a)),null!=w)for(;d<u;)v=i[d++],w.X[(506832829*v&4294967295)>>>w.Mb]=v}else{if(!(v<f))break A;for(b=v-280,t(null!=w);d<u;)v=i[d++],w.X[(506832829*v&4294967295)>>>w.Mb]=v;v=u,t(!(b>>>(y=w).Xa)),i[v]=y.X[b],b=!0}b||t(c.h==C(c))}if(A.Pb&&c.h&&u<r)t(A.m.h),A.a=5,A.m=A.wd,A.$=A.xd,0<A.s.ua&&S(A.s.vb,A.s.Wa);else{if(c.h)break A;null!=s&&s(A,a>o?o:a),A.a=0,A.$=u-e}return 1}return A.a=3,0}function kA(A){t(null!=A),A.vc=null,A.yc=null,A.Ya=null;var i=A.Wa;null!=i&&(i.X=null),A.vb=null,t(null!=A)}function xA(){var t=new oi;return null==t?null:(t.a=0,t.xb=fn,iA("Predictor","VP8LPredictors"),iA("Predictor","VP8LPredictors_C"),iA("PredictorAdd","VP8LPredictorsAdd"),iA("PredictorAdd","VP8LPredictorsAdd_C"),zi=z,Zi=X,$i=Y,Ae=W,te=Z,ie=$,ee=AA,A.VP8LMapColor32b=Xi,A.VP8LMapColor8b=Yi,t)}function LA(A,i,e,s,a){var l=1,u=[A],g=[i],f=s.m,p=s.s,w=null,B=0;A:for(;;){if(e)for(;l&&m(f,1);){var b=u,v=g,C=s,y=1,k=C.m,x=C.gc[C.ab],L=m(k,2);if(C.Oc&1<<L)l=0;else{switch(C.Oc|=1<<L,x.hc=L,x.Ea=b[0],x.nc=v[0],x.K=[null],++C.ab,t(4>=C.ab),L){case 0:case 1:x.b=m(k,3)+2,y=LA(K(x.Ea,x.b),K(x.nc,x.b),0,C,x.K),x.K=x.K[0];break;case 3:var E,H=m(k,8)+1,I=16<H?0:4<H?1:2<H?2:3;if(b[0]=K(x.Ea,I),x.b=I,E=y=LA(H,1,0,C,x.K)){var S,D=H,M=x,T=1<<(8>>M.b),P=r(T);if(null==P)E=0;else{var j=M.K[0],q=M.w;for(P[0]=M.K[0][0],S=1;S<1*D;++S)P[S]=O(j[q+S],P[S-1]);for(;S<4*T;++S)P[S]=0;M.K[0]=null,M.K[0]=P,E=1}}y=E;break;case 2:break;default:t(0)}l=y}}if(u=u[0],g=g[0],l&&m(f,1)&&!(l=1<=(B=m(f,4))&&11>=B)){s.a=3;break A}var R;if(R=l)t:{var G,V,z,J=s,X=u,_=g,Y=B,W=e,Z=J.m,$=J.s,AA=[null],tA=1,iA=0,eA=Ze[Y];i:for(;;){if(W&&m(Z,1)){var nA=m(Z,3)+2,rA=K(X,nA),oA=K(_,nA),sA=rA*oA;if(!LA(rA,oA,0,J,AA))break i;for(AA=AA[0],$.xc=nA,G=0;G<sA;++G){var aA=AA[G]>>8&65535;AA[G]=aA,aA>=tA&&(tA=aA+1)}}if(Z.h)break i;for(V=0;5>V;++V){var lA=Xe[V];!V&&0<Y&&(lA+=1<<Y),iA<lA&&(iA=lA)}var cA=o(tA*eA,h),hA=tA,uA=o(hA,d);if(null==uA)var dA=null;else t(65536>=hA),dA=uA;var gA=r(iA);if(null==dA||null==gA||null==cA){J.a=1;break i}var fA=cA;for(G=z=0;G<tA;++G){var pA=dA[G],wA=pA.G,BA=pA.H,bA=0,vA=1,QA=0;for(V=0;5>V;++V){lA=Xe[V],wA[V]=fA,BA[V]=z,!V&&0<Y&&(lA+=1<<Y);e:{var CA,FA=lA,UA=J,xA=gA,EA=fA,HA=z,IA=0,NA=UA.m,SA=m(NA,1);if(n(xA,0,0,FA),SA){var DA=m(NA,1)+1,MA=m(NA,1),KA=m(NA,0==MA?1:8);xA[KA]=1,2==DA&&(xA[KA=m(NA,8)]=1);var OA=1}else{var TA=r(19),PA=m(NA,4)+4;if(19<PA){UA.a=3;var jA=0;break e}for(CA=0;CA<PA;++CA)TA[Ye[CA]]=m(NA,3);var qA=void 0,RA=void 0,GA=UA,VA=TA,zA=FA,JA=xA,XA=0,_A=GA.m,YA=8,WA=o(128,h);n:for(;c(WA,0,7,VA,19);){if(m(_A,1)){var ZA=2+2*m(_A,3);if((qA=2+m(_A,ZA))>zA)break n}else qA=zA;for(RA=0;RA<zA&&qA--;){U(_A);var $A=WA[0+(127&Q(_A))];F(_A,_A.u+$A.g);var At=$A.value;if(16>At)JA[RA++]=At,0!=At&&(YA=At);else{var tt=16==At,it=At-16,et=Je[it],nt=m(_A,ze[it])+et;if(RA+nt>zA)break n;for(var rt=tt?YA:0;0<nt--;)JA[RA++]=rt}}XA=1;break n}XA||(GA.a=3),OA=XA}(OA=OA&&!NA.h)&&(IA=c(EA,HA,8,xA,FA)),OA&&0!=IA?jA=IA:(UA.a=3,jA=0)}if(0==jA)break i;if(vA&&1==_e[V]&&(vA=0==fA[z].g),bA+=fA[z].g,z+=jA,3>=V){var ot,st=gA[0];for(ot=1;ot<lA;++ot)gA[ot]>st&&(st=gA[ot]);QA+=st}}if(pA.nd=vA,pA.Qb=0,vA&&(pA.qb=(wA[3][BA[3]+0].value<<24|wA[1][BA[1]+0].value<<16|wA[2][BA[2]+0].value)>>>0,0==bA&&256>wA[0][BA[0]+0].value&&(pA.Qb=1,pA.qb+=wA[0][BA[0]+0].value<<8)),pA.jc=!pA.Qb&&6>QA,pA.jc){var at,lt=pA;for(at=0;at<Oi;++at){var ct=at,ht=lt.pd[ct],ut=lt.G[0][lt.H[0]+ct];256<=ut.value?(ht.g=ut.g+256,ht.value=ut.value):(ht.g=0,ht.value=0,ct>>=mA(ut,8,ht),ct>>=mA(lt.G[1][lt.H[1]+ct],16,ht),ct>>=mA(lt.G[2][lt.H[2]+ct],0,ht),mA(lt.G[3][lt.H[3]+ct],24,ht))}}}$.vc=AA,$.Wb=tA,$.Ya=dA,$.yc=cA,R=1;break t}R=0}if(!(l=R)){s.a=3;break A}if(0<B){if(p.ua=1<<B,!N(p.Wa,B)){s.a=1,l=0;break A}}else p.ua=0;var dt=s,gt=u,ft=g,pt=dt.s,wt=pt.xc;if(dt.c=gt,dt.i=ft,pt.md=K(gt,wt),pt.wc=0==wt?-1:(1<<wt)-1,e){s.xb=gn;break A}if(null==(w=r(u*g))){s.a=1,l=0;break A}l=(l=yA(s,w,0,u,g,g,null))&&!f.h;break A}return l?(null!=a?a[0]=w:(t(null==w),t(e)),s.$=0,e||kA(p)):kA(p),l}function EA(A,i){var e=A.c*A.i,n=e+i+16*i;return t(A.c<=i),A.V=r(n),null==A.V?(A.Ta=null,A.Ua=0,A.a=1,0):(A.Ta=A.V,A.Ua=A.Ba+e+i,1)}function HA(A,i){var e=A.C,n=i-e,r=A.V,o=A.Ba+A.c*e;for(t(i<=A.l.o);0<n;){var s=16<n?16:n,a=A.l.ma,l=A.l.width,c=l*s,h=a.ca,u=a.tb+l*e,d=A.Ta,g=A.Ua;vA(A,s,r,o),Ue(d,g,h,u,c),FA(a,e,e+s,h,u,l),n-=s,r+=s*A.c,e+=s}t(e==i),A.C=A.Ma=i}function IA(){this.ub=this.yd=this.td=this.Rb=0}function NA(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function SA(){this.Fb=this.Bb=this.Cb=0,this.Zb=r(4),this.Lb=r(4)}function DA(){this.Yb=function(){var A=[];return function A(t,i,e){for(var n=e[i],r=0;r<n&&(t.push(e.length>i+1?[]:0),!(e.length<i+1));r++)A(t[r],i+1,e)}(A,0,[3,11]),A}()}function MA(){this.jb=r(3),this.Wc=s([4,8],DA),this.Xc=s([4,17],DA)}function KA(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new r(4),this.od=new r(4)}function OA(){this.ld=this.La=this.dd=this.tc=0}function TA(){this.Na=this.la=0}function PA(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function jA(){this.ad=r(384),this.Za=0,this.Ob=r(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function qA(){this.uc=this.M=this.Nb=0,this.wa=Array(new OA),this.Y=0,this.ya=Array(new jA),this.aa=0,this.l=new zA}function RA(){this.y=r(16),this.f=r(8),this.ea=r(8)}function GA(){this.cb=this.a=0,this.sc="",this.m=new b,this.Od=new IA,this.Kc=new NA,this.ed=new KA,this.Qa=new SA,this.Ic=this.$c=this.Aa=0,this.D=new qA,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,b),this.ia=0,this.pb=o(4,PA),this.Pa=new MA,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new RA),this.Hd=0,this.rb=Array(new TA),this.sb=0,this.wa=Array(new OA),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new jA),this.L=this.aa=0,this.gd=s([4,2],OA),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function VA(A,t){return 0>A?0:A>t?t:A}function zA(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function JA(){var A=new GA;return null!=A&&(A.a=0,A.sc="OK",A.cb=0,A.Xb=0,en||(en=WA)),A}function XA(A,t,i){return 0==A.a&&(A.a=t,A.sc=i,A.cb=0),0}function _A(A,t,i){return 3<=i&&157==A[t+0]&&1==A[t+1]&&42==A[t+2]}function YA(A,i){if(null==A)return 0;if(A.a=0,A.sc="OK",null==i)return XA(A,2,"null VP8Io passed to VP8GetHeaders()");var e=i.data,r=i.w,o=i.ha;if(4>o)return XA(A,7,"Truncated header.");var s=e[r+0]|e[r+1]<<8|e[r+2]<<16,a=A.Od;if(a.Rb=!(1&s),a.td=s>>1&7,a.yd=s>>4&1,a.ub=s>>5,3<a.td)return XA(A,3,"Incorrect keyframe parameters.");if(!a.yd)return XA(A,4,"Frame not displayable.");r+=3,o-=3;var l=A.Kc;if(a.Rb){if(7>o)return XA(A,7,"cannot parse picture header");if(!_A(e,r,o))return XA(A,3,"Bad code word");l.c=16383&(e[r+4]<<8|e[r+3]),l.Td=e[r+4]>>6,l.i=16383&(e[r+6]<<8|e[r+5]),l.Ud=e[r+6]>>6,r+=7,o-=7,A.za=l.c+15>>4,A.Ub=l.i+15>>4,i.width=l.c,i.height=l.i,i.Da=0,i.j=0,i.v=0,i.va=i.width,i.o=i.height,i.da=0,i.ib=i.width,i.hb=i.height,i.U=i.width,i.T=i.height,n((s=A.Pa).jb,0,255,s.jb.length),t(null!=(s=A.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,n(s.Zb,0,0,s.Zb.length),n(s.Lb,0,0,s.Lb)}if(a.ub>o)return XA(A,7,"bad partition length");g(s=A.m,e,r,a.ub),r+=a.ub,o-=a.ub,a.Rb&&(l.Ld=k(s),l.Kd=k(s)),l=A.Qa;var c,h=A.Pa;if(t(null!=s),t(null!=l),l.Cb=k(s),l.Cb){if(l.Bb=k(s),k(s)){for(l.Fb=k(s),c=0;4>c;++c)l.Zb[c]=k(s)?p(s,7):0;for(c=0;4>c;++c)l.Lb[c]=k(s)?p(s,6):0}if(l.Bb)for(c=0;3>c;++c)h.jb[c]=k(s)?f(s,8):255}else l.Bb=0;if(s.Ka)return XA(A,3,"cannot parse segment header");if((l=A.ed).zd=k(s),l.Tb=f(s,6),l.wb=f(s,3),l.Pc=k(s),l.Pc&&k(s)){for(h=0;4>h;++h)k(s)&&(l.vd[h]=p(s,6));for(h=0;4>h;++h)k(s)&&(l.od[h]=p(s,6))}if(A.L=0==l.Tb?0:l.zd?1:2,s.Ka)return XA(A,3,"cannot parse filter header");var u=o;if(o=c=r,r=c+u,l=u,A.Xb=(1<<f(A.m,2))-1,u<3*(h=A.Xb))e=7;else{for(c+=3*h,l-=3*h,u=0;u<h;++u){var d=e[o+0]|e[o+1]<<8|e[o+2]<<16;d>l&&(d=l),g(A.Jc[+u],e,c,d),c+=d,l-=d,o+=3}g(A.Jc[+h],e,c,l),e=c<r?0:5}if(0!=e)return XA(A,e,"cannot parse partitions");for(e=f(c=A.m,7),o=k(c)?p(c,4):0,r=k(c)?p(c,4):0,l=k(c)?p(c,4):0,h=k(c)?p(c,4):0,c=k(c)?p(c,4):0,u=A.Qa,d=0;4>d;++d){if(u.Cb){var w=u.Zb[d];u.Fb||(w+=e)}else{if(0<d){A.pb[d]=A.pb[0];continue}w=e}var B=A.pb[d];B.Sc[0]=An[VA(w+o,127)],B.Sc[1]=tn[VA(w+0,127)],B.Eb[0]=2*An[VA(w+r,127)],B.Eb[1]=101581*tn[VA(w+l,127)]>>16,8>B.Eb[1]&&(B.Eb[1]=8),B.Qc[0]=An[VA(w+h,117)],B.Qc[1]=tn[VA(w+c,127)],B.lc=w+c}if(!a.Rb)return XA(A,4,"Not a key frame.");for(k(s),a=A.Pa,e=0;4>e;++e){for(o=0;8>o;++o)for(r=0;3>r;++r)for(l=0;11>l;++l)h=x(s,ln[e][o][r][l])?f(s,8):sn[e][o][r][l],a.Wc[e][o].Yb[r][l]=h;for(o=0;17>o;++o)a.Xc[e][o]=a.Wc[e][cn[o]]}return A.kc=k(s),A.kc&&(A.Bd=f(s,8)),A.cb=1}function WA(A,t,i,e,n,r,o){var s=t[n].Yb[i];for(i=0;16>n;++n){if(!x(A,s[i+0]))return n;for(;!x(A,s[i+1]);)if(s=t[++n].Yb[0],i=0,16==n)return 16;var a=t[n+1].Yb;if(x(A,s[i+2])){var l=A,c=0;if(x(l,(u=s)[(h=i)+3]))if(x(l,u[h+6])){for(s=0,h=2*(c=x(l,u[h+8]))+(u=x(l,u[h+9+c])),c=0,u=nn[h];u[s];++s)c+=c+x(l,u[s]);c+=3+(8<<h)}else x(l,u[h+7])?(c=7+2*x(l,165),c+=x(l,145)):c=5+x(l,159);else c=x(l,u[h+4])?3+x(l,u[h+5]):2;s=a[2]}else c=1,s=a[1];a=o+rn[n],0>(l=A).b&&y(l);var h,u=l.b,d=(h=l.Ca>>1)-(l.I>>u)>>31;--l.b,l.Ca+=d,l.Ca|=1,l.I-=(h+1&d)<<u,r[a]=((c^d)-d)*e[(0<n)+0]}return 16}function ZA(A){var t=A.rb[A.sb-1];t.la=0,t.Na=0,n(A.zc,0,0,A.zc.length),A.ja=0}function $A(A,i){if(null==A)return 0;if(null==i)return XA(A,2,"NULL VP8Io parameter in VP8Decode().");if(!A.cb&&!YA(A,i))return 0;if(t(A.cb),null==i.ac||i.ac(i)){i.ob&&(A.L=0);var s=Tn[A.L];if(2==A.L?(A.yb=0,A.zb=0):(A.yb=i.v-s>>4,A.zb=i.j-s>>4,0>A.yb&&(A.yb=0),0>A.zb&&(A.zb=0)),A.Va=i.o+15+s>>4,A.Hb=i.va+15+s>>4,A.Hb>A.za&&(A.Hb=A.za),A.Va>A.Ub&&(A.Va=A.Ub),0<A.L){var a=A.ed;for(s=0;4>s;++s){var l;if(A.Qa.Cb){var c=A.Qa.Lb[s];A.Qa.Fb||(c+=a.Tb)}else c=a.Tb;for(l=0;1>=l;++l){var h=A.gd[s][l],u=c;if(a.Pc&&(u+=a.vd[0],l&&(u+=a.od[0])),0<(u=0>u?0:63<u?63:u)){var d=u;0<a.wb&&(d=4<a.wb?d>>2:d>>1)>9-a.wb&&(d=9-a.wb),1>d&&(d=1),h.dd=d,h.tc=2*u+d,h.ld=40<=u?2:15<=u?1:0}else h.tc=0;h.La=l}}}s=0}else XA(A,6,"Frame setup failed"),s=A.a;if(s=0==s){if(s){A.$c=0,0<A.Aa||(A.Ic=jn);A:{a=4*(d=A.za);var g=32*d,f=d+1,p=0<A.L?d*(0<A.Aa?2:1):0,w=(2==A.Aa?2:1)*d;if((h=a+832+(l=3*(16*(s=A.Ic)+Tn[A.L])/2*g)+(c=null!=A.Fa&&0<A.Fa.length?A.Kc.c*A.Kc.i:0))!=h)s=0;else{if(h>A.Vb){if(A.Vb=0,A.Ec=r(h),A.Fc=0,null==A.Ec){s=XA(A,1,"no memory during frame initialization.");break A}A.Vb=h}u=A.Fc,A.Ac=h=A.Ec,A.Bc=u,u+=a,A.Gd=o(g,RA),A.Hd=0,A.rb=o(f+1,TA),A.sb=1,A.wa=p?o(p,OA):null,A.Y=0,A.D.Nb=0,A.D.wa=A.wa,A.D.Y=A.Y,0<A.Aa&&(A.D.Y+=d),t(!0),A.oc=h,A.pc=u,u+=832,A.ya=o(w,jA),A.aa=0,A.D.ya=A.ya,A.D.aa=A.aa,2==A.Aa&&(A.D.aa+=d),A.R=16*d,A.B=8*d,d=(g=Tn[A.L])*A.R,g=g/2*A.B,A.sa=h,A.ta=u+d,A.qa=A.sa,A.ra=A.ta+16*s*A.R+g,A.Ha=A.qa,A.Ia=A.ra+8*s*A.B+g,A.$c=0,u+=l,A.mb=c?h:null,A.nb=c?u:null,t(u+c<=A.Fc+A.Vb),ZA(A),n(A.Ac,A.Bc,0,a),s=1}}if(s){if(i.ka=0,i.y=A.sa,i.O=A.ta,i.f=A.qa,i.N=A.ra,i.ea=A.Ha,i.Vd=A.Ia,i.fa=A.R,i.Rc=A.B,i.F=null,i.J=0,!Ee){for(s=-255;255>=s;++s)ye[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)ke[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)xe[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)Le[255+s]=0>s?0:255<s?255:s;Ee=1}ne=lt,re=rt,se=ot,ae=st,le=at,oe=nt,ce=Xt,he=_t,ue=Zt,de=$t,ge=Yt,fe=Wt,pe=Ai,we=ti,Be=qt,me=Rt,be=Gt,ve=Vt,un[0]=Ft,un[1]=ht,un[2]=Qt,un[3]=Ct,un[4]=Ut,un[5]=kt,un[6]=yt,un[7]=xt,un[8]=Et,un[9]=Lt,hn[0]=wt,hn[1]=dt,hn[2]=gt,hn[3]=ft,hn[4]=Bt,hn[5]=mt,hn[6]=bt,dn[0]=St,dn[1]=ut,dn[2]=Ht,dn[3]=It,dn[4]=Mt,dn[5]=Dt,dn[6]=Kt,s=1}else s=0}s&&(s=function(A,i){for(A.M=0;A.M<A.Va;++A.M){var o,s=A.Jc[A.M&A.Xb],a=A.m,l=A;for(o=0;o<l.za;++o){var c=a,h=l,u=h.Ac,d=h.Bc+4*o,g=h.zc,f=h.ya[h.aa+o];if(f.$b=h.Qa.Bb?x(c,h.Pa.jb[0])?2+x(c,h.Pa.jb[2]):x(c,h.Pa.jb[1]):0,h.kc&&(f.Ad=x(c,h.Bd)),f.Za=!x(c,145)+0,f.Za){var p=f.Ob,w=0;for(h=0;4>h;++h){var B,m=g[0+h];for(B=0;4>B;++B){for(var b=on[x(c,(m=an[u[d+B]][m])[0])];0<b;)b=on[2*b+x(c,m[b])];u[d+B]=m=-b}e(p,w,u,d,4),w+=4,g[0+h]=m}}else m=x(c,156)?x(c,128)?1:3:x(c,163)?2:0,f.Ob[0]=m,n(u,d,m,4),n(g,0,m,4);f.Dd=x(c,142)?x(c,114)?x(c,183)?1:3:2:0}if(l.m.Ka)return XA(A,7,"Premature end-of-partition0 encountered.");for(;A.ja<A.za;++A.ja){if(l=s,c=(a=A).rb[a.sb-1],u=a.rb[a.sb+a.ja],o=a.ya[a.aa+a.ja],d=a.kc?o.Ad:0)c.la=u.la=0,o.Za||(c.Na=u.Na=0),o.Hc=0,o.Gc=0,o.ia=0;else{var v,Q;if(c=u,u=l,d=a.Pa.Xc,f=a.pb[(g=a.ya[a.aa+a.ja]).$b],w=a.rb[a.sb-1],m=B=0,n(h=g.ad,p=0,0,384),g.Za)var C=0,F=d[3];else{b=r(16);var U=c.Na+w.Na;if(U=en(u,d[1],U,f.Eb,0,b,0),c.Na=w.Na=(0<U)+0,1<U)ne(b,0,h,p);else{var y=b[0]+3>>3;for(b=0;256>b;b+=16)h[p+b]=y}C=1,F=d[0]}var k=15&c.la,L=15&w.la;for(b=0;4>b;++b){var E=1&L;for(y=Q=0;4>y;++y)k=k>>1|(E=(U=en(u,F,U=E+(1&k),f.Sc,C,h,p))>C)<<7,Q=Q<<2|(3<U?3:1<U?2:0!=h[p+0]),p+=16;k>>=4,L=L>>1|E<<7,B=(B<<8|Q)>>>0}for(F=k,C=L>>4,v=0;4>v;v+=2){for(Q=0,k=c.la>>4+v,L=w.la>>4+v,b=0;2>b;++b){for(E=1&L,y=0;2>y;++y)k=k>>1|(E=0<(U=en(u,d[2],U=E+(1&k),f.Qc,0,h,p)))<<3,Q=Q<<2|(3<U?3:1<U?2:0!=h[p+0]),p+=16;k>>=2,L=L>>1|E<<5}m|=Q<<4*v,F|=k<<4<<v,C|=(240&L)<<v}c.la=F,w.la=C,g.Hc=B,g.Gc=m,g.ia=43690&m?0:f.ia,d=!(B|m)}if(0<a.L&&(a.wa[a.Y+a.ja]=a.gd[o.$b][o.Za],a.wa[a.Y+a.ja].La|=!d),l.Ka)return XA(A,7,"Premature end-of-file encountered.")}if(ZA(A),a=i,l=1,o=(s=A).D,c=0<s.L&&s.M>=s.zb&&s.M<=s.Va,0==s.Aa)A:{if(o.M=s.M,o.uc=c,Ni(s,o),l=1,o=(Q=s.D).Nb,c=(m=Tn[s.L])*s.R,d=s.sa,g=s.ta-c+(b=16*o*s.R),f=s.qa,h=s.ra-(u=m/2*s.B)+(y=8*o*s.B),p=s.Ha,w=s.Ia-u+y,L=0==(k=Q.M),B=k>=s.Va-1,2==s.Aa&&Ni(s,Q),Q.uc)for(E=(U=s).D.M,t(U.D.uc),Q=U.yb;Q<U.Hb;++Q){F=E;var H=(I=(j=U).D).Nb,I=I.wa[I.Y+(C=Q)],N=j.sa,S=j.ta+16*H*(v=j.R)+16*C,D=I.dd,M=I.tc;if(0!=M)if(t(3<=M),1==j.L)0<C&&me(N,S,v,M+4),I.La&&ve(N,S,v,M),0<F&&Be(N,S,v,M+4),I.La&&be(N,S,v,M);else{var K=j.B,O=j.qa,T=j.ra+8*H*K+8*C,P=j.Ha,j=j.Ia+8*H*K+8*C;H=I.ld,0<C&&(he(N,S,v,M+4,D,H),de(O,T,P,j,K,M+4,D,H)),I.La&&(fe(N,S,v,M,D,H),we(O,T,P,j,K,M,D,H)),0<F&&(ce(N,S,v,M+4,D,H),ue(O,T,P,j,K,M+4,D,H)),I.La&&(ge(N,S,v,M,D,H),pe(O,T,P,j,K,M,D,H))}}if(s.ia&&alert("todo:DitherRow"),null!=a.put){if(Q=16*k,k=16*(k+1),L?(a.y=s.sa,a.O=s.ta+b,a.f=s.qa,a.N=s.ra+y,a.ea=s.Ha,a.W=s.Ia+y):(Q-=m,a.y=d,a.O=g,a.f=f,a.N=h,a.ea=p,a.W=w),B||(k-=m),k>a.o&&(k=a.o),a.F=null,a.J=null,null!=s.Fa&&0<s.Fa.length&&Q<k&&(a.J=hi(s,a,Q,k-Q),a.F=s.mb,null==a.F&&0==a.F.length)){l=XA(s,3,"Could not decode alpha data.");break A}Q<a.j&&(m=a.j-Q,Q=a.j,t(!(1&m)),a.O+=s.R*m,a.N+=s.B*(m>>1),a.W+=s.B*(m>>1),null!=a.F&&(a.J+=a.width*m)),Q<k&&(a.O+=a.v,a.N+=a.v>>1,a.W+=a.v>>1,null!=a.F&&(a.J+=a.v),a.ka=Q-a.j,a.U=a.va-a.v,a.T=k-Q,l=a.put(a))}o+1!=s.Ic||B||(e(s.sa,s.ta-c,d,g+16*s.R,c),e(s.qa,s.ra-u,f,h+8*s.B,u),e(s.Ha,s.Ia-u,p,w+8*s.B,u))}if(!l)return XA(A,6,"Output aborted.")}return 1}(A,i)),null!=i.bc&&i.bc(i),s&=1}return s?(A.cb=0,s):0}function At(A,t,i,e,n){A[t+i+32*e]=-256&(n=A[t+i+32*e]+(n>>3))?0>n?0:255:n}function tt(A,t,i,e,n,r){At(A,t,0,i,e+n),At(A,t,1,i,e+r),At(A,t,2,i,e-r),At(A,t,3,i,e-n)}function it(A){return(20091*A>>16)+A}function et(A,t,i,e){var n,o=0,s=r(16);for(n=0;4>n;++n){var a=A[t+0]+A[t+8],l=A[t+0]-A[t+8],c=(35468*A[t+4]>>16)-it(A[t+12]),h=it(A[t+4])+(35468*A[t+12]>>16);s[o+0]=a+h,s[o+1]=l+c,s[o+2]=l-c,s[o+3]=a-h,o+=4,t++}for(n=o=0;4>n;++n)a=(A=s[o+0]+4)+s[o+8],l=A-s[o+8],c=(35468*s[o+4]>>16)-it(s[o+12]),At(i,e,0,0,a+(h=it(s[o+4])+(35468*s[o+12]>>16))),At(i,e,1,0,l+c),At(i,e,2,0,l-c),At(i,e,3,0,a-h),o++,e+=32}function nt(A,t,i,e){var n=A[t+0]+4,r=35468*A[t+4]>>16,o=it(A[t+4]),s=35468*A[t+1]>>16;tt(i,e,0,n+o,A=it(A[t+1]),s),tt(i,e,1,n+r,A,s),tt(i,e,2,n-r,A,s),tt(i,e,3,n-o,A,s)}function rt(A,t,i,e,n){et(A,t,i,e),n&&et(A,t+16,i,e+4)}function ot(A,t,i,e){re(A,t+0,i,e,1),re(A,t+32,i,e+128,1)}function st(A,t,i,e){var n;for(A=A[t+0]+4,n=0;4>n;++n)for(t=0;4>t;++t)At(i,e,t,n,A)}function at(A,t,i,e){A[t+0]&&ae(A,t+0,i,e),A[t+16]&&ae(A,t+16,i,e+4),A[t+32]&&ae(A,t+32,i,e+128),A[t+48]&&ae(A,t+48,i,e+128+4)}function lt(A,t,i,e){var n,o=r(16);for(n=0;4>n;++n){var s=A[t+0+n]+A[t+12+n],a=A[t+4+n]+A[t+8+n],l=A[t+4+n]-A[t+8+n],c=A[t+0+n]-A[t+12+n];o[0+n]=s+a,o[8+n]=s-a,o[4+n]=c+l,o[12+n]=c-l}for(n=0;4>n;++n)s=(A=o[0+4*n]+3)+o[3+4*n],l=o[1+4*n]-o[2+4*n],c=A-o[3+4*n],i[e+0]=s+(a=o[1+4*n]+o[2+4*n])>>3,i[e+16]=c+l>>3,i[e+32]=s-a>>3,i[e+48]=c-l>>3,e+=64}function ct(A,t,i){var e,n=t-32,r=Ne,o=255-A[n-1];for(e=0;e<i;++e){var s,a=r,l=o+A[t-1];for(s=0;s<i;++s)A[t+s]=a[l+A[n+s]];t+=32}}function ht(A,t){ct(A,t,4)}function ut(A,t){ct(A,t,8)}function dt(A,t){ct(A,t,16)}function gt(A,t){var i;for(i=0;16>i;++i)e(A,t+32*i,A,t-32,16)}function ft(A,t){var i;for(i=16;0<i;--i)n(A,t,A[t-1],16),t+=32}function pt(A,t,i){var e;for(e=0;16>e;++e)n(t,i+32*e,A,16)}function wt(A,t){var i,e=16;for(i=0;16>i;++i)e+=A[t-1+32*i]+A[t+i-32];pt(e>>5,A,t)}function Bt(A,t){var i,e=8;for(i=0;16>i;++i)e+=A[t-1+32*i];pt(e>>4,A,t)}function mt(A,t){var i,e=8;for(i=0;16>i;++i)e+=A[t+i-32];pt(e>>4,A,t)}function bt(A,t){pt(128,A,t)}function vt(A,t,i){return A+2*t+i+2>>2}function Qt(A,t){var i,n=t-32;for(n=new Uint8Array([vt(A[n-1],A[n+0],A[n+1]),vt(A[n+0],A[n+1],A[n+2]),vt(A[n+1],A[n+2],A[n+3]),vt(A[n+2],A[n+3],A[n+4])]),i=0;4>i;++i)e(A,t+32*i,n,0,n.length)}function Ct(A,t){var i=A[t-1],e=A[t-1+32],n=A[t-1+64],r=A[t-1+96];L(A,t+0,16843009*vt(A[t-1-32],i,e)),L(A,t+32,16843009*vt(i,e,n)),L(A,t+64,16843009*vt(e,n,r)),L(A,t+96,16843009*vt(n,r,r))}function Ft(A,t){var i,e=4;for(i=0;4>i;++i)e+=A[t+i-32]+A[t-1+32*i];for(e>>=3,i=0;4>i;++i)n(A,t+32*i,e,4)}function Ut(A,t){var i=A[t-1+0],e=A[t-1+32],n=A[t-1+64],r=A[t-1-32],o=A[t+0-32],s=A[t+1-32],a=A[t+2-32],l=A[t+3-32];A[t+0+96]=vt(e,n,A[t-1+96]),A[t+1+96]=A[t+0+64]=vt(i,e,n),A[t+2+96]=A[t+1+64]=A[t+0+32]=vt(r,i,e),A[t+3+96]=A[t+2+64]=A[t+1+32]=A[t+0+0]=vt(o,r,i),A[t+3+64]=A[t+2+32]=A[t+1+0]=vt(s,o,r),A[t+3+32]=A[t+2+0]=vt(a,s,o),A[t+3+0]=vt(l,a,s)}function yt(A,t){var i=A[t+1-32],e=A[t+2-32],n=A[t+3-32],r=A[t+4-32],o=A[t+5-32],s=A[t+6-32],a=A[t+7-32];A[t+0+0]=vt(A[t+0-32],i,e),A[t+1+0]=A[t+0+32]=vt(i,e,n),A[t+2+0]=A[t+1+32]=A[t+0+64]=vt(e,n,r),A[t+3+0]=A[t+2+32]=A[t+1+64]=A[t+0+96]=vt(n,r,o),A[t+3+32]=A[t+2+64]=A[t+1+96]=vt(r,o,s),A[t+3+64]=A[t+2+96]=vt(o,s,a),A[t+3+96]=vt(s,a,a)}function kt(A,t){var i=A[t-1+0],e=A[t-1+32],n=A[t-1+64],r=A[t-1-32],o=A[t+0-32],s=A[t+1-32],a=A[t+2-32],l=A[t+3-32];A[t+0+0]=A[t+1+64]=r+o+1>>1,A[t+1+0]=A[t+2+64]=o+s+1>>1,A[t+2+0]=A[t+3+64]=s+a+1>>1,A[t+3+0]=a+l+1>>1,A[t+0+96]=vt(n,e,i),A[t+0+64]=vt(e,i,r),A[t+0+32]=A[t+1+96]=vt(i,r,o),A[t+1+32]=A[t+2+96]=vt(r,o,s),A[t+2+32]=A[t+3+96]=vt(o,s,a),A[t+3+32]=vt(s,a,l)}function xt(A,t){var i=A[t+0-32],e=A[t+1-32],n=A[t+2-32],r=A[t+3-32],o=A[t+4-32],s=A[t+5-32],a=A[t+6-32],l=A[t+7-32];A[t+0+0]=i+e+1>>1,A[t+1+0]=A[t+0+64]=e+n+1>>1,A[t+2+0]=A[t+1+64]=n+r+1>>1,A[t+3+0]=A[t+2+64]=r+o+1>>1,A[t+0+32]=vt(i,e,n),A[t+1+32]=A[t+0+96]=vt(e,n,r),A[t+2+32]=A[t+1+96]=vt(n,r,o),A[t+3+32]=A[t+2+96]=vt(r,o,s),A[t+3+64]=vt(o,s,a),A[t+3+96]=vt(s,a,l)}function Lt(A,t){var i=A[t-1+0],e=A[t-1+32],n=A[t-1+64],r=A[t-1+96];A[t+0+0]=i+e+1>>1,A[t+2+0]=A[t+0+32]=e+n+1>>1,A[t+2+32]=A[t+0+64]=n+r+1>>1,A[t+1+0]=vt(i,e,n),A[t+3+0]=A[t+1+32]=vt(e,n,r),A[t+3+32]=A[t+1+64]=vt(n,r,r),A[t+3+64]=A[t+2+64]=A[t+0+96]=A[t+1+96]=A[t+2+96]=A[t+3+96]=r}function Et(A,t){var i=A[t-1+0],e=A[t-1+32],n=A[t-1+64],r=A[t-1+96],o=A[t-1-32],s=A[t+0-32],a=A[t+1-32],l=A[t+2-32];A[t+0+0]=A[t+2+32]=i+o+1>>1,A[t+0+32]=A[t+2+64]=e+i+1>>1,A[t+0+64]=A[t+2+96]=n+e+1>>1,A[t+0+96]=r+n+1>>1,A[t+3+0]=vt(s,a,l),A[t+2+0]=vt(o,s,a),A[t+1+0]=A[t+3+32]=vt(i,o,s),A[t+1+32]=A[t+3+64]=vt(e,i,o),A[t+1+64]=A[t+3+96]=vt(n,e,i),A[t+1+96]=vt(r,n,e)}function Ht(A,t){var i;for(i=0;8>i;++i)e(A,t+32*i,A,t-32,8)}function It(A,t){var i;for(i=0;8>i;++i)n(A,t,A[t-1],8),t+=32}function Nt(A,t,i){var e;for(e=0;8>e;++e)n(t,i+32*e,A,8)}function St(A,t){var i,e=8;for(i=0;8>i;++i)e+=A[t+i-32]+A[t-1+32*i];Nt(e>>4,A,t)}function Dt(A,t){var i,e=4;for(i=0;8>i;++i)e+=A[t+i-32];Nt(e>>3,A,t)}function Mt(A,t){var i,e=4;for(i=0;8>i;++i)e+=A[t-1+32*i];Nt(e>>3,A,t)}function Kt(A,t){Nt(128,A,t)}function Ot(A,t,i){var e=A[t-i],n=A[t+0],r=3*(n-e)+He[1020+A[t-2*i]-A[t+i]],o=Ie[112+(r+4>>3)];A[t-i]=Ne[255+e+Ie[112+(r+3>>3)]],A[t+0]=Ne[255+n-o]}function Tt(A,t,i,e){return Se[255+A[t-2*i]-A[t-i]]>e||Se[255+A[t+i]-A[t+0]]>e}function Pt(A,t,i,e){return 4*Se[255+A[t-i]-A[t+0]]+Se[255+A[t-2*i]-A[t+i]]<=e}function jt(A,t,i,e,n){var r=A[t-3*i],o=A[t-2*i],s=A[t-i],a=A[t+0],l=A[t+i],c=A[t+2*i];return 4*Se[255+s-a]+Se[255+o-l]>e?0:Se[255+A[t-4*i]-r]<=n&&Se[255+r-o]<=n&&Se[255+o-s]<=n&&Se[255+A[t+3*i]-c]<=n&&Se[255+c-l]<=n&&Se[255+l-a]<=n}function qt(A,t,i,e){var n=2*e+1;for(e=0;16>e;++e)Pt(A,t+e,i,n)&&Ot(A,t+e,i)}function Rt(A,t,i,e){var n=2*e+1;for(e=0;16>e;++e)Pt(A,t+e*i,1,n)&&Ot(A,t+e*i,1)}function Gt(A,t,i,e){var n;for(n=3;0<n;--n)qt(A,t+=4*i,i,e)}function Vt(A,t,i,e){var n;for(n=3;0<n;--n)Rt(A,t+=4,i,e)}function zt(A,t,i,e,n,r,o,s){for(r=2*r+1;0<n--;){if(jt(A,t,i,r,o))if(Tt(A,t,i,s))Ot(A,t,i);else{var a=A,l=t,c=i,h=a[l-2*c],u=a[l-c],d=a[l+0],g=a[l+c],f=a[l+2*c],p=27*(B=He[1020+3*(d-u)+He[1020+h-g]])+63>>7,w=18*B+63>>7,B=9*B+63>>7;a[l-3*c]=Ne[255+a[l-3*c]+B],a[l-2*c]=Ne[255+h+w],a[l-c]=Ne[255+u+p],a[l+0]=Ne[255+d-p],a[l+c]=Ne[255+g-w],a[l+2*c]=Ne[255+f-B]}t+=e}}function Jt(A,t,i,e,n,r,o,s){for(r=2*r+1;0<n--;){if(jt(A,t,i,r,o))if(Tt(A,t,i,s))Ot(A,t,i);else{var a=A,l=t,c=i,h=a[l-c],u=a[l+0],d=a[l+c],g=Ie[112+(4+(f=3*(u-h))>>3)],f=Ie[112+(f+3>>3)],p=g+1>>1;a[l-2*c]=Ne[255+a[l-2*c]+p],a[l-c]=Ne[255+h+f],a[l+0]=Ne[255+u-g],a[l+c]=Ne[255+d-p]}t+=e}}function Xt(A,t,i,e,n,r){zt(A,t,i,1,16,e,n,r)}function _t(A,t,i,e,n,r){zt(A,t,1,i,16,e,n,r)}function Yt(A,t,i,e,n,r){var o;for(o=3;0<o;--o)Jt(A,t+=4*i,i,1,16,e,n,r)}function Wt(A,t,i,e,n,r){var o;for(o=3;0<o;--o)Jt(A,t+=4,1,i,16,e,n,r)}function Zt(A,t,i,e,n,r,o,s){zt(A,t,n,1,8,r,o,s),zt(i,e,n,1,8,r,o,s)}function $t(A,t,i,e,n,r,o,s){zt(A,t,1,n,8,r,o,s),zt(i,e,1,n,8,r,o,s)}function Ai(A,t,i,e,n,r,o,s){Jt(A,t+4*n,n,1,8,r,o,s),Jt(i,e+4*n,n,1,8,r,o,s)}function ti(A,t,i,e,n,r,o,s){Jt(A,t+4,1,n,8,r,o,s),Jt(i,e+4,1,n,8,r,o,s)}function ii(){this.ba=new oA,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new aA,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function ei(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function ni(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ri(){this.ua=0,this.Wa=new D,this.vb=new D,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new d,this.yc=new h}function oi(){this.xb=this.a=0,this.l=new zA,this.ca=new oA,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new v,this.Pb=0,this.wd=new v,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ri,this.ab=0,this.gc=o(4,ni),this.Oc=0}function si(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new zA,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ai(A,t,i,e,n,r,o){for(A=null==A?0:A[t+0],t=0;t<o;++t)n[r+t]=A+i[e+t]&255,A=n[r+t]}function li(A,t,i,e,n,r,o){var s;if(null==A)ai(null,null,i,e,n,r,o);else for(s=0;s<o;++s)n[r+s]=A[t+s]+i[e+s]&255}function ci(A,t,i,e,n,r,o){if(null==A)ai(null,null,i,e,n,r,o);else{var s,a=A[t+0],l=a,c=a;for(s=0;s<o;++s)l=c+(a=A[t+s])-l,c=i[e+s]+(-256&l?0>l?0:255:l)&255,l=a,n[r+s]=c}}function hi(A,i,n,o){var s=i.width,a=i.o;if(t(null!=A&&null!=i),0>n||0>=o||n+o>a)return null;if(!A.Cc){if(null==A.ga){var l;if(A.ga=new si,(l=null==A.ga)||(l=i.width*i.o,t(0==A.Gb.length),A.Gb=r(l),A.Uc=0,null==A.Gb?l=0:(A.mb=A.Gb,A.nb=A.Uc,A.rc=null,l=1),l=!l),!l){var c=A.Fa,h=A.P,u=A.qc,d=A.mb,g=A.nb,f=h+1,p=u-1,B=(l=A.ga).l;if(t(null!=c&&null!=d&&null!=i),pn[0]=null,pn[1]=ai,pn[2]=li,pn[3]=ci,l.ca=d,l.tb=g,l.c=i.width,l.i=i.height,t(0<l.c&&0<l.i),1>=u)i=0;else if(l.$a=c[h+0]>>0&3,l.Z=c[h+0]>>2&3,l.Lc=c[h+0]>>4&3,h=c[h+0]>>6&3,0>l.$a||1<l.$a||4<=l.Z||1<l.Lc||h)i=0;else if(B.put=dA,B.ac=uA,B.bc=gA,B.ma=l,B.width=i.width,B.height=i.height,B.Da=i.Da,B.v=i.v,B.va=i.va,B.j=i.j,B.o=i.o,l.$a)A:{t(1==l.$a),i=xA();t:for(;;){if(null==i){i=0;break A}if(t(null!=l),l.mc=i,i.c=l.c,i.i=l.i,i.l=l.l,i.l.ma=l,i.l.width=l.c,i.l.height=l.i,i.a=0,w(i.m,c,f,p),!LA(l.c,l.i,1,i,null))break t;if(1==i.ab&&3==i.gc[0].hc&&CA(i.s)?(l.ic=1,c=i.c*i.i,i.Ta=null,i.Ua=0,i.V=r(c),i.Ba=0,null==i.V?(i.a=1,i=0):i=1):(l.ic=0,i=EA(i,l.c)),!i)break t;i=1;break A}l.mc=null,i=0}else i=p>=l.c*l.i;l=!i}if(l)return null;1!=A.ga.Lc?A.Ga=0:o=a-n}t(null!=A.ga),t(n+o<=a);A:{if(i=(c=A.ga).c,a=c.l.o,0==c.$a){if(f=A.rc,p=A.Vc,B=A.Fa,u=A.mb,d=A.nb+n*i,t((h=A.P+1+n*i)<=A.P+A.qc),0!=c.Z)for(t(null!=pn[c.Z]),l=0;l<o;++l)pn[c.Z](f,p,B,h,u,d,i),f=u,p=d,d+=i,h+=i;else for(l=0;l<o;++l)e(u,d,B,h,i),f=u,p=d,d+=i,h+=i;A.rc=f,A.Vc=p}else{if(t(null!=c.mc),i=n+o,t(null!=(l=c.mc)),t(i<=l.i),l.C>=i)i=1;else if(c.ic||pi(),c.ic){c=l.V,f=l.Ba;var m=l.i,b=(B=1,h=l.$/(p=l.c),u=l.$%p,d=l.m,g=l.s,l.$),v=p*m,Q=p*i,F=g.wc,y=b<Q?bA(g,u,h):null;t(b<=v),t(i<=m),t(CA(g));t:for(;;){for(;!d.h&&b<Q;){if(u&F||(y=bA(g,u,h)),t(null!=y),U(d),256>(m=BA(y.G[0],y.H[0],d)))c[f+b]=m,++b,++u>=p&&(u=0,++h<=i&&!(h%16)&&UA(l,h));else{if(!(280>m)){B=0;break t}m=pA(m-256,d);var k,x=BA(y.G[4],y.H[4],d);if(U(d),!(b>=(x=wA(p,x=pA(x,d)))&&v-b>=m)){B=0;break t}for(k=0;k<m;++k)c[f+b+k]=c[f+b+k-x];for(b+=m,u+=m;u>=p;)u-=p,++h<=i&&!(h%16)&&UA(l,h);b<Q&&u&F&&(y=bA(g,u,h))}t(d.h==C(d))}UA(l,h>i?i:h);break t}!B||d.h&&b<v?(B=0,l.a=d.h?5:3):l.$=b,i=B}else i=yA(l,l.V,l.Ba,l.c,l.i,i,HA);if(!i){o=0;break A}}n+o>=a&&(A.Cc=1),o=1}if(!o)return null;if(A.Cc&&(null!=(o=A.ga)&&(o.mc=null),A.ga=null,0<A.Ga))return alert("todo:WebPDequantizeLevels"),null}return A.nb+n*s}function ui(A,t,i,e,n,r){for(;0<n--;){var o,s=A,a=t+(i?1:0),l=A,c=t+(i?0:3);for(o=0;o<e;++o){var h=l[c+4*o];255!=h&&(s[a+4*o+0]=s[a+4*o+0]*(h*=32897)>>23,s[a+4*o+1]=s[a+4*o+1]*h>>23,s[a+4*o+2]=s[a+4*o+2]*h>>23)}t+=r}}function di(A,t,i,e,n){for(;0<e--;){var r;for(r=0;r<i;++r){var o=A[t+2*r+0],s=15&(l=A[t+2*r+1]),a=4369*s,l=(240&l|l>>4)*a>>16;A[t+2*r+0]=(240&o|o>>4)*a>>16&240|(15&o|o<<4)*a>>16>>4&15,A[t+2*r+1]=240&l|s}t+=n}}function gi(A,t,i,e,n,r,o,s){var a,l,c=255;for(l=0;l<n;++l){for(a=0;a<e;++a){var h=A[t+a];r[o+4*a]=h,c&=h}t+=i,o+=s}return 255!=c}function fi(A,t,i,e,n){var r;for(r=0;r<n;++r)i[e+r]=A[t+r]>>8}function pi(){Qe=ui,Ce=di,Fe=gi,Ue=fi}function wi(i,e,n){A[i]=function(A,i,r,o,s,a,l,c,h,u,d,g,f,p,w,B,m){var b,v=m-1>>1,Q=s[a+0]|l[c+0]<<16,C=h[u+0]|d[g+0]<<16;t(null!=A);var F=3*Q+C+131074>>2;for(e(A[i+0],255&F,F>>16,f,p),null!=r&&e(r[o+0],255&(F=3*C+Q+131074>>2),F>>16,w,B),b=1;b<=v;++b){var U=s[a+b]|l[c+b]<<16,y=h[u+b]|d[g+b]<<16,k=Q+U+C+y+524296,x=k+2*(U+C)>>3;F=x+Q>>1,Q=(k=k+2*(Q+y)>>3)+U>>1,e(A[i+2*b-1],255&F,F>>16,f,p+(2*b-1)*n),e(A[i+2*b-0],255&Q,Q>>16,f,p+(2*b-0)*n),null!=r&&(Q=x+y>>1,e(r[o+2*b-1],255&(F=k+C>>1),F>>16,w,B+(2*b-1)*n),e(r[o+2*b+0],255&Q,Q>>16,w,B+(2*b+0)*n)),Q=U,C=y}1&m||(e(A[i+m-1],255&(F=3*Q+C+131074>>2),F>>16,f,p+(m-1)*n),null!=r&&e(r[o+m-1],255&(F=3*C+Q+131074>>2),F>>16,w,B+(m-1)*n))}}function Bi(){wn[De]=Bn,wn[Me]=bn,wn[Ke]=mn,wn[Oe]=vn,wn[Te]=Qn,wn[Pe]=Cn,wn[je]=Fn,wn[qe]=bn,wn[Re]=vn,wn[Ge]=Qn,wn[Ve]=Cn}function mi(A){return A&~En?0>A?0:255:A>>Ln}function bi(A,t){return mi((19077*A>>8)+(26149*t>>8)-14234)}function vi(A,t,i){return mi((19077*A>>8)-(6419*t>>8)-(13320*i>>8)+8708)}function Qi(A,t){return mi((19077*A>>8)+(33050*t>>8)-17685)}function Ci(A,t,i,e,n){e[n+0]=bi(A,i),e[n+1]=vi(A,t,i),e[n+2]=Qi(A,t)}function Fi(A,t,i,e,n){e[n+0]=Qi(A,t),e[n+1]=vi(A,t,i),e[n+2]=bi(A,i)}function Ui(A,t,i,e,n){var r=vi(A,t,i);t=r<<3&224|Qi(A,t)>>3,e[n+0]=248&bi(A,i)|r>>5,e[n+1]=t}function yi(A,t,i,e,n){var r=240&Qi(A,t)|15;e[n+0]=240&bi(A,i)|vi(A,t,i)>>4,e[n+1]=r}function ki(A,t,i,e,n){e[n+0]=255,Ci(A,t,i,e,n+1)}function xi(A,t,i,e,n){Fi(A,t,i,e,n),e[n+3]=255}function Li(A,t,i,e,n){Ci(A,t,i,e,n),e[n+3]=255}function VA(A,t){return 0>A?0:A>t?t:A}function Ei(t,i,e){A[t]=function(A,t,n,r,o,s,a,l,c){for(var h=l+(-2&c)*e;l!=h;)i(A[t+0],n[r+0],o[s+0],a,l),i(A[t+1],n[r+0],o[s+0],a,l+e),t+=2,++r,++s,l+=2*e;1&c&&i(A[t+0],n[r+0],o[s+0],a,l)}}function Hi(A,t,i){return 0==i?0==A?0==t?6:5:0==t?4:0:i}function Ii(A,t,i,e,n){switch(A>>>30){case 3:re(t,i,e,n,0);break;case 2:oe(t,i,e,n);break;case 1:ae(t,i,e,n)}}function Ni(A,t){var i,r,o=t.M,s=t.Nb,a=A.oc,l=A.pc+40,c=A.oc,h=A.pc+584,u=A.oc,d=A.pc+600;for(i=0;16>i;++i)a[l+32*i-1]=129;for(i=0;8>i;++i)c[h+32*i-1]=129,u[d+32*i-1]=129;for(0<o?a[l-1-32]=c[h-1-32]=u[d-1-32]=129:(n(a,l-32-1,127,21),n(c,h-32-1,127,9),n(u,d-32-1,127,9)),r=0;r<A.za;++r){var g=t.ya[t.aa+r];if(0<r){for(i=-1;16>i;++i)e(a,l+32*i-4,a,l+32*i+12,4);for(i=-1;8>i;++i)e(c,h+32*i-4,c,h+32*i+4,4),e(u,d+32*i-4,u,d+32*i+4,4)}var f=A.Gd,p=A.Hd+r,w=g.ad,B=g.Hc;if(0<o&&(e(a,l-32,f[p].y,0,16),e(c,h-32,f[p].f,0,8),e(u,d-32,f[p].ea,0,8)),g.Za){var m=a,b=l-32+16;for(0<o&&(r>=A.za-1?n(m,b,f[p].y[15],4):e(m,b,f[p+1].y,0,4)),i=0;4>i;i++)m[b+128+i]=m[b+256+i]=m[b+384+i]=m[b+0+i];for(i=0;16>i;++i,B<<=2)un[g.Ob[i]](m=a,b=l+On[i]),Ii(B,w,16*+i,m,b)}else if(m=Hi(r,o,g.Ob[0]),hn[m](a,l),0!=B)for(i=0;16>i;++i,B<<=2)Ii(B,w,16*+i,a,l+On[i]);for(i=g.Gc,m=Hi(r,o,g.Dd),dn[m](c,h),dn[m](u,d),B=w,m=c,b=h,255&(g=i>>0)&&(170&g?se(B,256,m,b):le(B,256,m,b)),g=u,B=d,255&(i>>=8)&&(170&i?se(w,320,g,B):le(w,320,g,B)),o<A.Ub-1&&(e(f[p].y,0,a,l+480,16),e(f[p].f,0,c,h+224,8),e(f[p].ea,0,u,d+224,8)),f=A.sa,p=A.ta+16*r+16*s*A.R,w=A.qa,g=A.ra+8*r+(i=8*s*A.B),B=A.Ha,m=A.Ia+8*r+i,i=0;16>i;++i)e(f,p+i*A.R,a,l+32*i,16);for(i=0;8>i;++i)e(w,g+i*A.B,c,h+32*i,8),e(B,m+i*A.B,u,d+32*i,8)}}function Si(A,e,n,r,o,s,a,l,c){var h=[0],u=[0],d=0,g=null!=c?c.kd:0,f=null!=c?c:new ei;if(null==A||12>n)return 7;f.data=A,f.w=e,f.ha=n,e=[e],n=[n],f.gb=[f.gb];A:{var p=e,B=n,m=f.gb;if(t(null!=A),t(null!=B),t(null!=m),m[0]=0,12<=B[0]&&!i(A,p[0],"RIFF")){if(i(A,p[0]+8,"WEBP")){m=3;break A}var b=I(A,p[0]+4);if(12>b||4294967286<b){m=3;break A}if(g&&b>B[0]-8){m=7;break A}m[0]=b,p[0]+=12,B[0]-=12}m=0}if(0!=m)return m;for(b=0<f.gb[0],n=n[0];;){A:{var Q=A;B=e,m=n;var C=h,F=u,U=p=[0];if((x=d=[d])[0]=0,8>m[0])m=7;else{if(!i(Q,B[0],"VP8X")){if(10!=I(Q,B[0]+4)){m=3;break A}if(18>m[0]){m=7;break A}var y=I(Q,B[0]+8),k=1+H(Q,B[0]+12);if(2147483648<=k*(Q=1+H(Q,B[0]+15))){m=3;break A}null!=U&&(U[0]=y),null!=C&&(C[0]=k),null!=F&&(F[0]=Q),B[0]+=18,m[0]-=18,x[0]=1}m=0}}if(d=d[0],0!=m)return m;if(B=!!(2&(p=p[0])),!b&&d)return 3;if(null!=s&&(s[0]=!!(16&p)),null!=a&&(a[0]=B),null!=l&&(l[0]=0),a=h[0],p=u[0],d&&B&&null==c){m=0;break}if(4>n){m=7;break}if(b&&d||!b&&!d&&!i(A,e[0],"ALPH")){n=[n],f.na=[f.na],f.P=[f.P],f.Sa=[f.Sa];A:{m=e,b=n;var x=f.gb;C=f.na,F=f.P,U=f.Sa,k=22,t(null!=(y=A)),t(null!=b),Q=m[0];var L=b[0];for(t(null!=C),t(null!=U),C[0]=null,F[0]=null,U[0]=0;;){if(m[0]=Q,b[0]=L,8>L){m=7;break A}var E=I(y,Q+4);if(4294967286<E){m=3;break A}var N=8+E+1&-2;if(k+=N,0<x&&k>x){m=3;break A}if(!i(y,Q,"VP8 ")||!i(y,Q,"VP8L")){m=0;break A}if(L[0]<N){m=7;break A}i(y,Q,"ALPH")||(C[0]=y,F[0]=Q+8,U[0]=E),Q+=N,L-=N}}if(n=n[0],f.na=f.na[0],f.P=f.P[0],f.Sa=f.Sa[0],0!=m)break}n=[n],f.Ja=[f.Ja],f.xa=[f.xa];A:if(x=A,m=e,b=n,C=f.gb[0],F=f.Ja,U=f.xa,y=m[0],Q=!i(x,y,"VP8 "),k=!i(x,y,"VP8L"),t(null!=x),t(null!=b),t(null!=F),t(null!=U),8>b[0])m=7;else{if(Q||k){if(x=I(x,y+4),12<=C&&x>C-12){m=3;break A}if(g&&x>b[0]-8){m=7;break A}F[0]=x,m[0]+=8,b[0]-=8,U[0]=k}else U[0]=5<=b[0]&&47==x[y+0]&&!(x[y+4]>>5),F[0]=b[0];m=0}if(n=n[0],f.Ja=f.Ja[0],f.xa=f.xa[0],e=e[0],0!=m)break;if(4294967286<f.Ja)return 3;if(null==l||B||(l[0]=f.xa?2:1),a=[a],p=[p],f.xa){if(5>n){m=7;break}l=a,g=p,B=s,null==A||5>n?A=0:5<=n&&47==A[e+0]&&!(A[e+4]>>5)?(b=[0],x=[0],C=[0],w(F=new v,A,e,n),fA(F,b,x,C)?(null!=l&&(l[0]=b[0]),null!=g&&(g[0]=x[0]),null!=B&&(B[0]=C[0]),A=1):A=0):A=0}else{if(10>n){m=7;break}l=p,null==A||10>n||!_A(A,e+3,n-3)?A=0:(g=A[e+0]|A[e+1]<<8|A[e+2]<<16,B=16383&(A[e+7]<<8|A[e+6]),A=16383&(A[e+9]<<8|A[e+8]),1&g||3<(g>>1&7)||!(g>>4&1)||g>>5>=f.Ja||!B||!A?A=0:(a&&(a[0]=B),l&&(l[0]=A),A=1))}if(!A)return 3;if(a=a[0],p=p[0],d&&(h[0]!=a||u[0]!=p))return 3;null!=c&&(c[0]=f,c.offset=e-c.w,t(4294967286>e-c.w),t(c.offset==c.ha-n));break}return 0==m||7==m&&d&&null==c?(null!=s&&(s[0]|=null!=f.na&&0<f.na.length),null!=r&&(r[0]=a),null!=o&&(o[0]=p),0):m}function Di(A,t,i){var e=t.width,n=t.height,r=0,o=0,s=e,a=n;if(t.Da=null!=A&&0<A.Da,t.Da&&(s=A.cd,a=A.bd,r=A.v,o=A.j,11>i||(r&=-2,o&=-2),0>r||0>o||0>=s||0>=a||r+s>e||o+a>n))return 0;if(t.v=r,t.j=o,t.va=r+s,t.o=o+a,t.U=s,t.T=a,t.da=null!=A&&0<A.da,t.da){if(!M(s,a,i=[A.ib],r=[A.hb]))return 0;t.ib=i[0],t.hb=r[0]}return t.ob=null!=A&&A.ob,t.Kb=null==A||!A.Sd,t.da&&(t.ob=t.ib<3*e/4&&t.hb<3*n/4,t.Kb=0),1}function Mi(A){if(null==A)return 2;if(11>A.S){var t=A.f.RGBA;t.fb+=(A.height-1)*t.A,t.A=-t.A}else(t=A.f.kb).O+=((A=A.height)-1)*t.fa,t.fa=-t.fa,t.N+=(A-1>>1)*t.Ab,t.Ab=-t.Ab,t.W+=(A-1>>1)*t.Db,t.Db=-t.Db,null!=t.F&&(t.J+=(A-1)*t.lb,t.lb=-t.lb);return 0}function Ki(A,t,i,e){if(null==e||0>=A||0>=t)return 2;if(null!=i){if(i.Da){var n=i.cd,o=i.bd,s=-2&i.v,a=-2&i.j;if(0>s||0>a||0>=n||0>=o||s+n>A||a+o>t)return 2;A=n,t=o}if(i.da){if(!M(A,t,n=[i.ib],o=[i.hb]))return 2;A=n[0],t=o[0]}}e.width=A,e.height=t;A:{var l=e.width,c=e.height;if(A=e.S,0>=l||0>=c||!(A>=De&&13>A))A=2;else{if(0>=e.Rd&&null==e.sd){s=o=n=t=0;var h=(a=l*qn[A])*c;if(11>A||(o=(c+1)/2*(t=(l+1)/2),12==A&&(s=(n=l)*c)),null==(c=r(h+2*o+s))){A=1;break A}e.sd=c,11>A?((l=e.f.RGBA).eb=c,l.fb=0,l.A=a,l.size=h):((l=e.f.kb).y=c,l.O=0,l.fa=a,l.Fd=h,l.f=c,l.N=0+h,l.Ab=t,l.Cd=o,l.ea=c,l.W=0+h+o,l.Db=t,l.Ed=o,12==A&&(l.F=c,l.J=0+h+2*o),l.Tc=s,l.lb=n)}if(t=1,o=e.width,s=e.height,(n=e.S)>=De&&13>n)if(11>n)A=e.f.RGBA,t&=(a=Math.abs(A.A))*(s-1)+o<=A.size,t&=a>=o*qn[n],t&=null!=A.eb;else{A=e.f.kb,a=(o+1)/2,h=(s+1)/2,l=Math.abs(A.fa),c=Math.abs(A.Ab);var u=Math.abs(A.Db),d=Math.abs(A.lb);t&=l*(s-1)+o<=A.Fd,t&=c*(h-1)+a<=A.Cd,t=(t&=u*(h-1)+a<=A.Ed)&l>=o&c>=a&u>=a,t&=null!=A.y,t&=null!=A.f,t&=null!=A.ea,12==n&&(t&=d>=o,t&=d*(s-1)+o<=A.Tc,t&=null!=A.F)}else t=0;A=t?0:2}}return 0!=A||null!=i&&i.fd&&(A=Mi(e)),A}var Oi=64,Ti=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Pi=24,ji=32,qi=8,Ri=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];T("Predictor0","PredictorAdd0"),A.Predictor0=function(){return 4278190080},A.Predictor1=function(A){return A},A.Predictor2=function(A,t,i){return t[i+0]},A.Predictor3=function(A,t,i){return t[i+1]},A.Predictor4=function(A,t,i){return t[i-1]},A.Predictor5=function(A,t,i){return j(j(A,t[i+1]),t[i+0])},A.Predictor6=function(A,t,i){return j(A,t[i-1])},A.Predictor7=function(A,t,i){return j(A,t[i+0])},A.Predictor8=function(A,t,i){return j(t[i-1],t[i+0])},A.Predictor9=function(A,t,i){return j(t[i+0],t[i+1])},A.Predictor10=function(A,t,i){return j(j(A,t[i-1]),j(t[i+0],t[i+1]))},A.Predictor11=function(A,t,i){var e=t[i+0];return 0>=G(e>>24&255,A>>24&255,(t=t[i-1])>>24&255)+G(e>>16&255,A>>16&255,t>>16&255)+G(e>>8&255,A>>8&255,t>>8&255)+G(255&e,255&A,255&t)?e:A},A.Predictor12=function(A,t,i){var e=t[i+0];return(q((A>>24&255)+(e>>24&255)-((t=t[i-1])>>24&255))<<24|q((A>>16&255)+(e>>16&255)-(t>>16&255))<<16|q((A>>8&255)+(e>>8&255)-(t>>8&255))<<8|q((255&A)+(255&e)-(255&t)))>>>0},A.Predictor13=function(A,t,i){var e=t[i-1];return(R((A=j(A,t[i+0]))>>24&255,e>>24&255)<<24|R(A>>16&255,e>>16&255)<<16|R(A>>8&255,e>>8&255)<<8|R(A>>0&255,e>>0&255))>>>0};var Gi=A.PredictorAdd0;A.PredictorAdd1=V,T("Predictor2","PredictorAdd2"),T("Predictor3","PredictorAdd3"),T("Predictor4","PredictorAdd4"),T("Predictor5","PredictorAdd5"),T("Predictor6","PredictorAdd6"),T("Predictor7","PredictorAdd7"),T("Predictor8","PredictorAdd8"),T("Predictor9","PredictorAdd9"),T("Predictor10","PredictorAdd10"),T("Predictor11","PredictorAdd11"),T("Predictor12","PredictorAdd12"),T("Predictor13","PredictorAdd13");var Vi=A.PredictorAdd2;_("ColorIndexInverseTransform","MapARGB","32b",(function(A){return A>>8&255}),(function(A){return A})),_("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(A){return A}),(function(A){return A>>8&255}));var zi,Ji=A.ColorIndexInverseTransform,Xi=A.MapARGB,_i=A.VP8LColorIndexInverseTransformAlpha,Yi=A.MapAlpha,Wi=A.VP8LPredictorsAdd=[];Wi.length=16,(A.VP8LPredictors=[]).length=16,(A.VP8LPredictorsAdd_C=[]).length=16,(A.VP8LPredictors_C=[]).length=16;var Zi,$i,Ae,te,ie,ee,ne,re,oe,se,ae,le,ce,he,ue,de,ge,fe,pe,we,Be,me,be,ve,Qe,Ce,Fe,Ue,ye=r(511),ke=r(2041),xe=r(225),Le=r(767),Ee=0,He=ke,Ie=xe,Ne=Le,Se=ye,De=0,Me=1,Ke=2,Oe=3,Te=4,Pe=5,je=6,qe=7,Re=8,Ge=9,Ve=10,ze=[2,3,7],Je=[3,3,11],Xe=[280,256,256,256,40],_e=[0,1,1,1,0],Ye=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],We=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Ze=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],$e=8,An=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],tn=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],en=null,nn=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],rn=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],on=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],sn=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],an=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],ln=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],cn=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],hn=[],un=[],dn=[],gn=1,fn=2,pn=[],wn=[];wi("UpsampleRgbLinePair",Ci,3),wi("UpsampleBgrLinePair",Fi,3),wi("UpsampleRgbaLinePair",Li,4),wi("UpsampleBgraLinePair",xi,4),wi("UpsampleArgbLinePair",ki,4),wi("UpsampleRgba4444LinePair",yi,2),wi("UpsampleRgb565LinePair",Ui,2);var Bn=A.UpsampleRgbLinePair,mn=A.UpsampleBgrLinePair,bn=A.UpsampleRgbaLinePair,vn=A.UpsampleBgraLinePair,Qn=A.UpsampleArgbLinePair,Cn=A.UpsampleRgba4444LinePair,Fn=A.UpsampleRgb565LinePair,Un=16,yn=1<<Un-1,kn=-227,xn=482,Ln=6,En=(256<<Ln)-1,Hn=0,In=r(256),Nn=r(256),Sn=r(256),Dn=r(256),Mn=r(xn-kn),Kn=r(xn-kn);Ei("YuvToRgbRow",Ci,3),Ei("YuvToBgrRow",Fi,3),Ei("YuvToRgbaRow",Li,4),Ei("YuvToBgraRow",xi,4),Ei("YuvToArgbRow",ki,4),Ei("YuvToRgba4444Row",yi,2),Ei("YuvToRgb565Row",Ui,2);var On=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Tn=[0,2,8],Pn=[8,7,6,4,4,2,2,2,1,1,1,1],jn=1;this.WebPDecodeRGBA=function(A,i,e,n,r){var o=Me,s=new ii,a=new oA;s.ba=a,a.S=o,a.width=[a.width],a.height=[a.height];var l=a.width,c=a.height,h=new sA;if(null==h||null==A)var u=2;else t(null!=h),u=Si(A,i,e,h.width,h.height,h.Pd,h.Qd,h.format,null);if(0!=u?l=0:(null!=l&&(l[0]=h.width[0]),null!=c&&(c[0]=h.height[0]),l=1),l){a.width=a.width[0],a.height=a.height[0],null!=n&&(n[0]=a.width),null!=r&&(r[0]=a.height);A:{if(n=new zA,(r=new ei).data=A,r.w=i,r.ha=e,r.kd=1,i=[0],t(null!=r),(0==(A=Si(r.data,r.w,r.ha,null,null,null,i,null,r))||7==A)&&i[0]&&(A=4),0==(i=A)){if(t(null!=s),n.data=r.data,n.w=r.w+r.offset,n.ha=r.ha-r.offset,n.put=dA,n.ac=uA,n.bc=gA,n.ma=s,r.xa){if(null==(A=xA())){s=1;break A}if(function(A,i){var e=[0],n=[0],r=[0];t:for(;;){if(null==A)return 0;if(null==i)return A.a=2,0;if(A.l=i,A.a=0,w(A.m,i.data,i.w,i.ha),!fA(A.m,e,n,r)){A.a=3;break t}if(A.xb=fn,i.width=e[0],i.height=n[0],!LA(e[0],n[0],1,A,null))break t;return 1}return t(0!=A.a),0}(A,n)){if(n=0==(i=Ki(n.width,n.height,s.Oa,s.ba))){t:{n=A;i:for(;;){if(null==n){n=0;break t}if(t(null!=n.s.yc),t(null!=n.s.Ya),t(0<n.s.Wb),t(null!=(e=n.l)),t(null!=(r=e.ma)),0!=n.xb){if(n.ca=r.ba,n.tb=r.tb,t(null!=n.ca),!Di(r.Oa,e,Oe)){n.a=2;break i}if(!EA(n,e.width))break i;if(e.da)break i;if((e.da||eA(n.ca.S))&&pi(),11>n.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=n.ca.f.kb.F&&pi()),n.Pb&&0<n.s.ua&&null==n.s.vb.X&&!N(n.s.vb,n.s.Wa.Xa)){n.a=1;break i}n.xb=0}if(!yA(n,n.V,n.Ba,n.c,n.i,e.o,QA))break i;r.Dc=n.Ma,n=1;break t}t(0!=n.a),n=0}n=!n}n&&(i=A.a)}else i=A.a}else{if(null==(A=new JA)){s=1;break A}if(A.Fa=r.na,A.P=r.P,A.qc=r.Sa,YA(A,n)){if(0==(i=Ki(n.width,n.height,s.Oa,s.ba))){if(A.Aa=0,e=s.Oa,t(null!=(r=A)),null!=e){if(0<(l=0>(l=e.Md)?0:100<l?255:255*l/100)){for(c=h=0;4>c;++c)12>(u=r.pb[c]).lc&&(u.ia=l*Pn[0>u.lc?0:u.lc]>>3),h|=u.ia;h&&(alert("todo:VP8InitRandom"),r.ia=1)}r.Ga=e.Id,100<r.Ga?r.Ga=100:0>r.Ga&&(r.Ga=0)}$A(A,n)||(i=A.a)}}else i=A.a}0==i&&null!=s.Oa&&s.Oa.fd&&(i=Mi(s.ba))}s=i}o=0!=s?null:11>o?a.f.RGBA.eb:a.f.kb.y}else o=null;return o};var qn=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(A,t){for(var i="",e=0;e<4;e++)i+=String.fromCharCode(A[t++]);return i}function c(A,t){return(A[t+0]<<0|A[t+1]<<8|A[t+2]<<16)>>>0}function h(A,t){return(A[t+0]<<0|A[t+1]<<8|A[t+2]<<16|A[t+3]<<24)>>>0}new a;var u=[0],d=[0],g=[],f=new a,p=A,w=function(A,t){var i={},e=0,n=!1,r=0,o=0;if(i.frames=[],!
|
238
|
+
/** @license
|
239
|
+
* Copyright (c) 2017 Dominik Homberger
|
240
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
241
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
242
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
243
|
+
https://webpjs.appspot.com
|
244
|
+
WebPRiffParser dominikhlbg@gmail.com
|
245
|
+
*/
|
246
|
+
function(A,t){for(var i=0;i<4;i++)if(A[t+i]!="RIFF".charCodeAt(i))return!0;return!1}(A,t)){var s,a;for(h(A,t+=4),t+=8;t<A.length;){var u=l(A,t),d=h(A,t+=4);t+=4;var g=d+(1&d);switch(u){case"VP8 ":case"VP8L":void 0===i.frames[e]&&(i.frames[e]={}),(w=i.frames[e]).src_off=n?o:t-8,w.src_size=r+d+8,e++,n&&(n=!1,r=0,o=0);break;case"VP8X":(w=i.header={}).feature_flags=A[t];var f=t+4;w.canvas_width=1+c(A,f),w.canvas_height=1+c(A,f+=3),f+=3;break;case"ALPH":n=!0,r=g+8,o=t-8;break;case"ANIM":(w=i.header).bgcolor=h(A,t),w.loop_count=(s=A)[(a=f=t+4)+0]<<0|s[a+1]<<8,f+=2;break;case"ANMF":var p,w;(w=i.frames[e]={}).offset_x=2*c(A,t),w.offset_y=2*c(A,t+=3),w.width=1+c(A,t+=3),w.height=1+c(A,t+=3),w.duration=c(A,t+=3),t+=3,p=A[t++],w.dispose=1&p,w.blend=p>>1&1}"ANMF"!=u&&(t+=g)}return i}}(p,0);w.response=p,w.rgbaoutput=!0,w.dataurl=!1;var B=w.header?w.header:null,m=w.frames?w.frames:null;B&&(B.loop_counter=B.loop_count,u=[B.canvas_height],d=[B.canvas_width]);var b=m[0],v=f.WebPDecodeRGBA(p,b.src_off,b.src_size,d,u);b.rgba=v,b.imgwidth=d[0],b.imgheight=u[0];for(var Q=0;Q<d[0]*u[0]*4;Q++)g[Q]=v[Q];return this.width=d,this.height=u,this.data=g,this}!function(A){var t=function(t,e,a,l){var c=4,h=r;switch(l){case A.image_compression.FAST:c=1,h=n;break;case A.image_compression.MEDIUM:c=6,h=o;break;case A.image_compression.SLOW:c=9,h=s}var u=Hi(t=i(t,e,a,h),{level:c});return A.__addimage__.arrayBufferToBinaryString(u)},i=function(A,t,i,e){for(var n,r,o,s=A.length/t,a=new Uint8Array(A.length+s),h=l(),u=0;u<s;u+=1){if(n=A.subarray(o=u*t,o+t),e)a.set(e(n,i,r),o+u);else{for(var d,g=h.length,f=[];d<g;d+=1)f[d]=h[d](n,i,r);var p=c(f.concat());a.set(f[p],o+u)}r=n}return a},e=function(A){var t=Array.apply([],A);return t.unshift(0),t},n=function(A,t){var i=[],e=A.length;i[0]=1;for(var n=0;n<e;n+=1)i[n+1]=A[n]-(A[n-t]||0)+256&255;return i},r=function(A,t,i){var e=[],n=A.length;e[0]=2;for(var r=0;r<n;r+=1)e[r+1]=A[r]-(i&&i[r]||0)+256&255;return e},o=function(A,t,i){var e=[],n=A.length;e[0]=3;for(var r=0;r<n;r+=1)e[r+1]=A[r]+256-((A[r-t]||0)+(i&&i[r]||0)>>>1)&255;return e},s=function(A,t,i){var e,n=[],r=A.length;n[0]=4;for(var o=0;o<r;o+=1)e=a(A[o-t]||0,i&&i[o]||0,i&&i[o-t]||0),n[o+1]=A[o]-e+256&255;return n},a=function(A,t,i){if(A===t&&t===i)return A;var e=Math.abs(t-i),n=Math.abs(A-i),r=Math.abs(A+t-i-i);return e<=n&&e<=r?A:n<=r?t:i},l=function(){return[e,n,r,o,s]},c=function(A){var t=A.map((function(A){return A.reduce((function(A,t){return A+Math.abs(t)}),0)}));return t.indexOf(Math.min.apply(null,t))};A.processPNG=function(i,e,n,r){var o,s,a,l,c,h,u,d,g,f,p,w,B,m,b,v=this.decode.FLATE_DECODE,Q="";if(this.__addimage__.isArrayBuffer(i)&&(i=new Uint8Array(i)),this.__addimage__.isArrayBufferView(i)){if(i=(a=new Fn(i)).imgData,s=a.bits,o=a.colorSpace,c=a.colors,-1!==[4,6].indexOf(a.colorType)){if(8===a.bits){g=(d=32==a.pixelBitlength?new Uint32Array(a.decodePixels().buffer):16==a.pixelBitlength?new Uint16Array(a.decodePixels().buffer):new Uint8Array(a.decodePixels().buffer)).length,p=new Uint8Array(g*a.colors),f=new Uint8Array(g);var C,F=a.pixelBitlength-a.bits;for(m=0,b=0;m<g;m++){for(B=d[m],C=0;C<F;)p[b++]=B>>>C&255,C+=a.bits;f[m]=B>>>C&255}}if(16===a.bits){g=(d=new Uint32Array(a.decodePixels().buffer)).length,p=new Uint8Array(g*(32/a.pixelBitlength)*a.colors),f=new Uint8Array(g*(32/a.pixelBitlength)),w=a.colors>1,m=0,b=0;for(var U=0;m<g;)B=d[m++],p[b++]=B>>>0&255,w&&(p[b++]=B>>>16&255,B=d[m++],p[b++]=B>>>0&255),f[U++]=B>>>16&255;s=8}r!==A.image_compression.NONE?(i=t(p,a.width*a.colors,a.colors,r),u=t(f,a.width,1,r)):(i=p,u=f,v=void 0)}if(3===a.colorType&&(o=this.color_spaces.INDEXED,h=a.palette,a.transparency.indexed)){var y=a.transparency.indexed,k=0;for(m=0,g=y.length;m<g;++m)k+=y[m];if((k/=255)==g-1&&-1!==y.indexOf(0))l=[y.indexOf(0)];else if(k!==g){for(d=a.decodePixels(),f=new Uint8Array(d.length),m=0,g=d.length;m<g;m++)f[m]=y[d[m]];u=t(f,a.width,1)}}var x=function(t){var i;switch(t){case A.image_compression.FAST:i=11;break;case A.image_compression.MEDIUM:i=13;break;case A.image_compression.SLOW:i=14;break;default:i=12}return i}(r);return v===this.decode.FLATE_DECODE&&(Q="/Predictor "+x+" "),Q+="/Colors "+c+" /BitsPerComponent "+s+" /Columns "+a.width,(this.__addimage__.isArrayBuffer(i)||this.__addimage__.isArrayBufferView(i))&&(i=this.__addimage__.arrayBufferToBinaryString(i)),(u&&this.__addimage__.isArrayBuffer(u)||this.__addimage__.isArrayBufferView(u))&&(u=this.__addimage__.arrayBufferToBinaryString(u)),{alias:n,data:i,index:e,filter:v,decodeParameters:Q,transparency:l,palette:h,sMask:u,predictor:x,width:a.width,height:a.height,bitsPerComponent:s,colorSpace:o}}}}(he.API),function(A){A.processGIF89A=function(t,i,e,n){var r=new Un(t),o=r.width,s=r.height,a=[];r.decodeAndBlitFrameRGBA(0,a);var l={data:a,width:o,height:s},c=new kn(100).encode(l,100);return A.processJPEG.call(this,c,i,e,n)},A.processGIF87A=A.processGIF89A}(he.API),xn.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var A=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(A);for(var t=0;t<A;t++){var i=this.datav.getUint8(this.pos++,!0),e=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:n,green:e,blue:i,quad:r}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},xn.prototype.parseBGR=function(){this.pos=this.offset;try{var A="bit"+this.bitPP;this.data=new Uint8Array(this.width*this.height*4),this[A]()}catch(A){Si.log("bit decode error:"+A)}},xn.prototype.bit1=function(){var A,t=Math.ceil(this.width/8),i=t%4;for(A=this.height-1;A>=0;A--){for(var e=this.bottom_up?A:this.height-1-A,n=0;n<t;n++)for(var r=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+8*n*4,s=0;s<8&&8*n+s<this.width;s++){var a=this.palette[r>>7-s&1];this.data[o+4*s]=a.blue,this.data[o+4*s+1]=a.green,this.data[o+4*s+2]=a.red,this.data[o+4*s+3]=255}0!==i&&(this.pos+=4-i)}},xn.prototype.bit4=function(){for(var A=Math.ceil(this.width/2),t=A%4,i=this.height-1;i>=0;i--){for(var e=this.bottom_up?i:this.height-1-i,n=0;n<A;n++){var r=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+2*n*4,s=15&r,a=this.palette[r>>4];if(this.data[o]=a.blue,this.data[o+1]=a.green,this.data[o+2]=a.red,this.data[o+3]=255,2*n+1>=this.width)break;this.data[o+4]=(a=this.palette[s]).blue,this.data[o+4+1]=a.green,this.data[o+4+2]=a.red,this.data[o+4+3]=255}0!==t&&(this.pos+=4-t)}},xn.prototype.bit8=function(){for(var A=this.width%4,t=this.height-1;t>=0;t--){for(var i=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var n=this.datav.getUint8(this.pos++,!0),r=i*this.width*4+4*e;if(n<this.palette.length){var o=this.palette[n];this.data[r]=o.red,this.data[r+1]=o.green,this.data[r+2]=o.blue,this.data[r+3]=255}else this.data[r]=255,this.data[r+1]=255,this.data[r+2]=255,this.data[r+3]=255}0!==A&&(this.pos+=4-A)}},xn.prototype.bit15=function(){for(var A=this.width%3,t=parseInt("11111",2),i=this.height-1;i>=0;i--){for(var e=this.bottom_up?i:this.height-1-i,n=0;n<this.width;n++){var r=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(r&t)/t*255|0,s=(r>>5&t)/t*255|0,a=r>>15?255:0,l=e*this.width*4+4*n;this.data[l]=(r>>10&t)/t*255|0,this.data[l+1]=s,this.data[l+2]=o,this.data[l+3]=a}this.pos+=A}},xn.prototype.bit16=function(){for(var A=this.width%3,t=parseInt("11111",2),i=parseInt("111111",2),e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,a=(o>>5&i)/i*255|0,l=n*this.width*4+4*r;this.data[l]=(o>>11)/t*255|0,this.data[l+1]=a,this.data[l+2]=s,this.data[l+3]=255}this.pos+=A}},xn.prototype.bit24=function(){for(var A=this.height-1;A>=0;A--){for(var t=this.bottom_up?A:this.height-1-A,i=0;i<this.width;i++){var e=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*i;this.data[o]=r,this.data[o+1]=n,this.data[o+2]=e,this.data[o+3]=255}this.pos+=this.width%4}},xn.prototype.bit32=function(){for(var A=this.height-1;A>=0;A--)for(var t=this.bottom_up?A:this.height-1-A,i=0;i<this.width;i++){var e=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*i;this.data[s]=r,this.data[s+1]=n,this.data[s+2]=e,this.data[s+3]=o}},xn.prototype.getData=function(){return this.data},
|
247
|
+
/**
|
248
|
+
* @license
|
249
|
+
* Copyright (c) 2018 Aras Abbasi
|
250
|
+
*
|
251
|
+
* Licensed under the MIT License.
|
252
|
+
* http://opensource.org/licenses/mit-license
|
253
|
+
*/
|
254
|
+
function(A){A.processBMP=function(t,i,e,n){var r=new xn(t,!1),o=r.width,s=r.height,a={data:r.getData(),width:o,height:s},l=new kn(100).encode(a,100);return A.processJPEG.call(this,l,i,e,n)}}(he.API),Ln.prototype.getData=function(){return this.data},
|
255
|
+
/**
|
256
|
+
* @license
|
257
|
+
* Copyright (c) 2019 Aras Abbasi
|
258
|
+
*
|
259
|
+
* Licensed under the MIT License.
|
260
|
+
* http://opensource.org/licenses/mit-license
|
261
|
+
*/
|
262
|
+
function(A){A.processWEBP=function(t,i,e,n){var r=new Ln(t,!1),o=r.width,s=r.height,a={data:r.getData(),width:o,height:s},l=new kn(100).encode(a,100);return A.processJPEG.call(this,l,i,e,n)}}(he.API),he.API.processRGBA=function(A,t,i){for(var e=A.data,n=e.length,r=new Uint8Array(n/4*3),o=new Uint8Array(n/4),s=0,a=0,l=0;l<n;l+=4){var c=e[l+1],h=e[l+2],u=e[l+3];r[s++]=e[l],r[s++]=c,r[s++]=h,o[a++]=u}var d=this.__addimage__.arrayBufferToBinaryString(r);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:d,index:t,alias:i,colorSpace:"DeviceRGB",bitsPerComponent:8,width:A.width,height:A.height}},he.API.setLanguage=function(A){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[A]&&(this.internal.languageSettings.languageCode=A,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},bn=(mn=he.API).getCharWidthsArray=function(A,t){var i,e,n=(t=t||{}).font||this.internal.getFont(),r=t.fontSize||this.internal.getFontSize(),o=t.charSpace||this.internal.getCharSpace(),s=t.widths?t.widths:n.metadata.Unicode.widths,a=s.fof?s.fof:1,l=t.kerning?t.kerning:n.metadata.Unicode.kerning,c=l.fof?l.fof:1,h=!1!==t.doKerning,u=0,d=A.length,g=0,f=s[0]||a,p=[];for(i=0;i<d;i++)e=A.charCodeAt(i),"function"==typeof n.metadata.widthOfString?p.push((n.metadata.widthOfGlyph(n.metadata.characterToGlyph(e))+o*(1e3/r)||0)/1e3):(u=h&&"object"===zt(l[e])&&!isNaN(parseInt(l[e][g],10))?l[e][g]/c:0,p.push((s[e]||f)/a+u)),g=e;return p},vn=mn.getStringUnitWidth=function(A,t){var i=(t=t||{}).fontSize||this.internal.getFontSize(),e=t.font||this.internal.getFont(),n=t.charSpace||this.internal.getCharSpace();return mn.processArabic&&(A=mn.processArabic(A)),"function"==typeof e.metadata.widthOfString?e.metadata.widthOfString(A,i,n)/i:bn.apply(this,arguments).reduce((function(A,t){return A+t}),0)},Qn=function(A,t,i,e){for(var n=[],r=0,o=A.length,s=0;r!==o&&s+t[r]<i;)s+=t[r],r++;n.push(A.slice(0,r));var a=r;for(s=0;r!==o;)s+t[r]>e&&(n.push(A.slice(a,r)),s=0,a=r),s+=t[r],r++;return a!==r&&n.push(A.slice(a,r)),n},Cn=function(A,t,i){i||(i={});var e,n,r,o,s,a,l=[],c=[l],h=i.textIndent||0,u=0,d=0,g=A.split(" "),f=bn.apply(this,[" ",i])[0];if(a=-1===i.lineIndent?g[0].length+2:i.lineIndent||0){var p=Array(a).join(" "),w=[];g.map((function(A){(A=A.split(/\s*\n/)).length>1?w=w.concat(A.map((function(A,t){return(t&&A.length?"\n":"")+A}))):w.push(A[0])})),g=w,a=vn.apply(this,[p,i])}for(r=0,o=g.length;r<o;r++){var B=0;if(e=g[r],a&&"\n"==e[0]&&(e=e.substr(1),B=1),h+u+(d=(n=bn.apply(this,[e,i])).reduce((function(A,t){return A+t}),0))>t||B){if(d>t){for(s=Qn.apply(this,[e,n,t-(h+u),t]),l.push(s.shift()),l=[s.pop()];s.length;)c.push([s.shift()]);d=n.slice(e.length-(l[0]?l[0].length:0)).reduce((function(A,t){return A+t}),0)}else l=[e];c.push(l),h=d+a,u=f}else l.push(e),h+=u+d,u=f}return c.map(a?function(A,t){return(t?p:"")+A.join(" ")}:function(A){return A.join(" ")})},mn.splitTextToSize=function(A,t,i){var e,n=(i=i||{}).fontSize||this.internal.getFontSize(),r=function(A){if(A.widths&&A.kerning)return{widths:A.widths,kerning:A.kerning};var t=this.internal.getFont(A.fontName,A.fontStyle);return t.metadata.Unicode?{widths:t.metadata.Unicode.widths||{0:1},kerning:t.metadata.Unicode.kerning||{}}:{font:t.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,i);e=Array.isArray(A)?A:String(A).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/n;r.textIndent=i.textIndent?1*i.textIndent*this.internal.scaleFactor/n:0,r.lineIndent=i.lineIndent;var s,a,l=[];for(s=0,a=e.length;s<a;s++)l=l.concat(Cn.apply(this,[e[s],o,r]));return l},function(A){A.__fontmetrics__=A.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",i={},e={},n=0;n<t.length;n++)i[t[n]]="0123456789abcdef"[n],e["0123456789abcdef"[n]]=t[n];var r=function(A){return"0x"+parseInt(A,10).toString(16)},o=A.__fontmetrics__.compress=function(A){var t,i,n,s,a=["{"];for(var l in A){if(t=A[l],isNaN(parseInt(l,10))?i="'"+l+"'":(l=parseInt(l,10),i=(i=r(l).slice(2)).slice(0,-1)+e[i.slice(-1)]),"number"==typeof t)t<0?(n=r(t).slice(3),s="-"):(n=r(t).slice(2),s=""),n=s+n.slice(0,-1)+e[n.slice(-1)];else{if("object"!==zt(t))throw new Error("Don't know what to do with value type "+zt(t)+".");n=o(t)}a.push(i+n)}return a.push("}"),a.join("")},s=A.__fontmetrics__.uncompress=function(A){if("string"!=typeof A)throw new Error("Invalid argument passed to uncompress.");for(var t,e,n,r,o={},s=1,a=o,l=[],c="",h="",u=A.length-1,d=1;d<u;d+=1)"'"==(r=A[d])?t?(n=t.join(""),t=void 0):t=[]:t?t.push(r):"{"==r?(l.push([a,n]),a={},n=void 0):"}"==r?((e=l.pop())[0][e[1]]=a,n=void 0,a=e[0]):"-"==r?s=-1:void 0===n?i.hasOwnProperty(r)?(c+=i[r],n=parseInt(c,16)*s,s=1,c=""):c+=r:i.hasOwnProperty(r)?(h+=i[r],a[n]=parseInt(h,16)*s,s=1,n=void 0,h=""):h+=r;return o},a={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},l={Unicode:{Courier:a,"Courier-Bold":a,"Courier-BoldOblique":a,"Courier-Oblique":a,Helvetica:a,"Helvetica-Bold":a,"Helvetica-BoldOblique":a,"Helvetica-Oblique":a,"Times-Roman":a,"Times-Bold":a,"Times-BoldItalic":a,"Times-Italic":a}},c={Unicode:{"Courier-Oblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":s("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":s("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:s("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:s("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":s("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":s("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};A.events.push(["addFont",function(A){var t=A.font,i=c.Unicode[t.postScriptName];i&&(t.metadata.Unicode={},t.metadata.Unicode.widths=i.widths,t.metadata.Unicode.kerning=i.kerning);var e=l.Unicode[t.postScriptName];e&&(t.metadata.Unicode.encoding=e,t.encoding=e.codePages[0])}])}(he.API),
|
263
|
+
/**
|
264
|
+
* @license
|
265
|
+
* Licensed under the MIT License.
|
266
|
+
* http://opensource.org/licenses/mit-license
|
267
|
+
*/
|
268
|
+
function(A){var t=function(A){for(var t=A.length,i=new Uint8Array(t),e=0;e<t;e++)i[e]=A.charCodeAt(e);return i};A.API.events.push(["addFont",function(i){var e=void 0,n=i.font,r=i.instance;if(!n.isStandardFont){if(void 0===r)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");if("string"!=typeof(e=!1===r.existsFileInVFS(n.postScriptName)?r.loadFile(n.postScriptName):r.getFileFromVFS(n.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");!function(i,e){e=/^\x00\x01\x00\x00/.test(e)?t(e):t(Oi(e)),i.metadata=A.API.TTFFont.open(e),i.metadata.Unicode=i.metadata.Unicode||{encoding:{},kerning:{},widths:[]},i.metadata.glyIdsUsed=[0]}(n,e)}}])}(he),
|
269
|
+
/** @license
|
270
|
+
* Copyright (c) 2012 Willow Systems Corporation, https://github.com/willowsystems
|
271
|
+
*
|
272
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
273
|
+
* a copy of this software and associated documentation files (the
|
274
|
+
* "Software"), to deal in the Software without restriction, including
|
275
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
276
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
277
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
278
|
+
* the following conditions:
|
279
|
+
*
|
280
|
+
* The above copyright notice and this permission notice shall be
|
281
|
+
* included in all copies or substantial portions of the Software.
|
282
|
+
*
|
283
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
284
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
285
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
286
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
287
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
288
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
289
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
290
|
+
* ====================================================================
|
291
|
+
*/
|
292
|
+
function(){function A(){return(Ii.canvg?Promise.resolve(Ii.canvg):import("./p-b0603d19.js")).catch((function(A){return Promise.reject(new Error("Could not load canvg: "+A))})).then((function(A){return A.default?A.default:A}))}he.API.addSvgAsImage=function(t,i,e,n,r,o,s,a){if(isNaN(i)||isNaN(e))throw Si.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(n)||isNaN(r))throw Si.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=n,l.height=r;var c=l.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,l.width,l.height);var h={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},u=this;return A().then((function(A){return A.fromString(c,t,h)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(A){return A.render(h)})).then((function(){u.addImage(l.toDataURL("image/jpeg",1),i,e,n,r,s,a)}))}}(),he.API.putTotalPages=function(A){var t,i=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(A,"g"),i=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(A,this.internal.getFont()),"g"),i=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var e=1;e<=this.internal.getNumberOfPages();e++)for(var n=0;n<this.internal.pages[e].length;n++)this.internal.pages[e][n]=this.internal.pages[e][n].replace(t,i);return this},he.API.viewerPreferences=function(A,t){var i;A=A||{},t=t||!1;var e,n,r,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(o),a=[],l=0,c=0,h=0;function u(A,t){var i,e=!1;for(i=0;i<A.length;i+=1)A[i]===t&&(e=!0);return e}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),i=this.internal.viewerpreferences.configuration,"reset"===A||!0===t){var d=s.length;for(h=0;h<d;h+=1)i[s[h]].value=i[s[h]].defaultValue,i[s[h]].explicitSet=!1}if("object"===zt(A))for(n in A)if(r=A[n],u(s,n)&&void 0!==r){if("boolean"===i[n].type&&"boolean"==typeof r)i[n].value=r;else if("name"===i[n].type&&u(i[n].valueSet,r))i[n].value=r;else if("integer"===i[n].type&&Number.isInteger(r))i[n].value=r;else if("array"===i[n].type){for(l=0;l<r.length;l+=1)if(e=!0,1===r[l].length&&"number"==typeof r[l][0])a.push(String(r[l]-1));else if(r[l].length>1){for(c=0;c<r[l].length;c+=1)"number"!=typeof r[l][c]&&(e=!1);!0===e&&a.push([r[l][0]-1,r[l][1]-1].join(" "))}i[n].value="["+a.join(" ")+"]"}else i[n].value=i[n].defaultValue;i[n].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var A,t=[];for(A in i)!0===i[A].explicitSet&&t.push("name"===i[A].type?"/"+A+" /"+i[A].value:"/"+A+" "+i[A].value);0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=i,this
|
293
|
+
/** ====================================================================
|
294
|
+
* @license
|
295
|
+
* jsPDF XMP metadata plugin
|
296
|
+
* Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
|
297
|
+
*
|
298
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
299
|
+
* a copy of this software and associated documentation files (the
|
300
|
+
* "Software"), to deal in the Software without restriction, including
|
301
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
302
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
303
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
304
|
+
* the following conditions:
|
305
|
+
*
|
306
|
+
* The above copyright notice and this permission notice shall be
|
307
|
+
* included in all copies or substantial portions of the Software.
|
308
|
+
*
|
309
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
310
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
311
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
312
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
313
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
314
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
315
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
316
|
+
* ====================================================================
|
317
|
+
*/},function(){var A=function(){var A='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',t=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),i=unescape(encodeURIComponent(A)),e=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),n=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),r=unescape(encodeURIComponent("</x:xmpmeta>")),o=i.length+e.length+n.length+t.length+r.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+o+" >>"),this.internal.write("stream"),this.internal.write(t+i+e+n+r),this.internal.write("endstream"),this.internal.write("endobj")},t=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};he.API.addMetadata=function(i,e){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:i,namespaceuri:e||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",t),this.internal.events.subscribe("postPutResources",A)),this}}(),function(A){var t=A.API,i=t.pdfEscape16=function(A,t){for(var i,e=t.metadata.Unicode.widths,n=["","0","00","000","0000"],r=[""],o=0,s=A.length;o<s;++o){if(i=t.metadata.characterToGlyph(A.charCodeAt(o)),t.metadata.glyIdsUsed.push(i),t.metadata.toUnicode[i]=A.charCodeAt(o),-1==e.indexOf(i)&&(e.push(i),e.push([parseInt(t.metadata.widthOfGlyph(i),10)])),"0"==i)return r.join("");i=i.toString(16),r.push(n[4-i.length],i)}return r.join("")},e=function(A){var t,i,e,n,r,o,s;for(r="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",e=[],o=0,s=(i=Object.keys(A).sort((function(A,t){return A-t}))).length;o<s;o++)t=i[o],e.length>=100&&(r+="\n"+e.length+" beginbfchar\n"+e.join("\n")+"\nendbfchar",e=[]),null!=A[t]&&"function"==typeof A[t].toString&&(n=("0000"+A[t].toString(16)).slice(-4),t=("0000"+(+t).toString(16)).slice(-4),e.push("<"+t+"><"+n+">"));return e.length&&(r+="\n"+e.length+" beginbfchar\n"+e.join("\n")+"\nendbfchar\n"),r+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};t.events.push(["putFont",function(t){!function(t){var i=t.font,n=t.out,r=t.newObject,o=t.putStream;if(i.metadata instanceof A.API.TTFFont&&"Identity-H"===i.encoding){for(var s=i.metadata.Unicode.widths,a=i.metadata.subset.encode(i.metadata.glyIdsUsed,1),l="",c=0;c<a.length;c++)l+=String.fromCharCode(a[c]);var h=r();o({data:l,addLength1:!0,objectId:h}),n("endobj");var u=r();o({data:e(i.metadata.toUnicode),addLength1:!0,objectId:u}),n("endobj");var d=r();n("<<"),n("/Type /FontDescriptor"),n("/FontName /"+re(i.fontName)),n("/FontFile2 "+h+" 0 R"),n("/FontBBox "+A.API.PDFObject.convert(i.metadata.bbox)),n("/Flags "+i.metadata.flags),n("/StemV "+i.metadata.stemV),n("/ItalicAngle "+i.metadata.italicAngle),n("/Ascent "+i.metadata.ascender),n("/Descent "+i.metadata.decender),n("/CapHeight "+i.metadata.capHeight),n(">>"),n("endobj");var g=r();n("<<"),n("/Type /Font"),n("/BaseFont /"+re(i.fontName)),n("/FontDescriptor "+d+" 0 R"),n("/W "+A.API.PDFObject.convert(s)),n("/CIDToGIDMap /Identity"),n("/DW 1000"),n("/Subtype /CIDFontType2"),n("/CIDSystemInfo"),n("<<"),n("/Supplement 0"),n("/Registry (Adobe)"),n("/Ordering ("+i.encoding+")"),n(">>"),n(">>"),n("endobj"),i.objectNumber=r(),n("<<"),n("/Type /Font"),n("/Subtype /Type0"),n("/ToUnicode "+u+" 0 R"),n("/BaseFont /"+re(i.fontName)),n("/Encoding /"+i.encoding),n("/DescendantFonts ["+g+" 0 R]"),n(">>"),n("endobj"),i.isAlreadyPutted=!0}}(t)}]),t.events.push(["putFont",function(t){!function(t){var i=t.font,n=t.out,r=t.newObject,o=t.putStream;if(i.metadata instanceof A.API.TTFFont&&"WinAnsiEncoding"===i.encoding){for(var s=i.metadata.rawData,a="",l=0;l<s.length;l++)a+=String.fromCharCode(s[l]);var c=r();o({data:a,addLength1:!0,objectId:c}),n("endobj");var h=r();o({data:e(i.metadata.toUnicode),addLength1:!0,objectId:h}),n("endobj");var u=r();n("<<"),n("/Descent "+i.metadata.decender),n("/CapHeight "+i.metadata.capHeight),n("/StemV "+i.metadata.stemV),n("/Type /FontDescriptor"),n("/FontFile2 "+c+" 0 R"),n("/Flags 96"),n("/FontBBox "+A.API.PDFObject.convert(i.metadata.bbox)),n("/FontName /"+re(i.fontName)),n("/ItalicAngle "+i.metadata.italicAngle),n("/Ascent "+i.metadata.ascender),n(">>"),n("endobj"),i.objectNumber=r();for(var d=0;d<i.metadata.hmtx.widths.length;d++)i.metadata.hmtx.widths[d]=parseInt(i.metadata.hmtx.widths[d]*(1e3/i.metadata.head.unitsPerEm));n("<</Subtype/TrueType/Type/Font/ToUnicode "+h+" 0 R/BaseFont/"+re(i.fontName)+"/FontDescriptor "+u+" 0 R/Encoding/"+i.encoding+" /FirstChar 29 /LastChar 255 /Widths "+A.API.PDFObject.convert(i.metadata.hmtx.widths)+">>"),n("endobj"),i.isAlreadyPutted=!0}}(t)}]);var n=function(A){var t,e=A.text||"",n=A.x,r=A.y,o=A.options||{},s=A.mutex||{},a=s.pdfEscape,l=s.activeFontKey,c=s.fonts,h=l,u="",d=0,g="",f=c[h].encoding;if("Identity-H"!==c[h].encoding)return{text:e,x:n,y:r,options:o,mutex:s};for(g=e,h=l,Array.isArray(e)&&(g=e[0]),d=0;d<g.length;d+=1)c[h].metadata.hasOwnProperty("cmap")&&(t=c[h].metadata.cmap.unicode.codeMap[g[d].charCodeAt(0)]),t||g[d].charCodeAt(0)<256&&c[h].metadata.hasOwnProperty("Unicode")?u+=g[d]:u+="";var p="";return parseInt(h.slice(1))<14||"WinAnsiEncoding"===f?p=a(u,h).split("").map((function(A){return A.charCodeAt(0).toString(16)})).join(""):"Identity-H"===f&&(p=i(u,c[h])),s.isHex=!0,{text:p,x:n,y:r,options:o,mutex:s}};t.events.push(["postProcessText",function(A){var t=A.text||"",i=[],e={text:t,x:A.x,y:A.y,options:A.options,mutex:A.mutex};if(Array.isArray(t)){var r=0;for(r=0;r<t.length;r+=1)Array.isArray(t[r])&&3===t[r].length?i.push([n(Object.assign({},e,{text:t[r][0]})).text,t[r][1],t[r][2]]):i.push(n(Object.assign({},e,{text:t[r]})).text);A.text=i}else A.text=n(Object.assign({},e,{text:t})).text}])}(he),
|
318
|
+
/**
|
319
|
+
* @license
|
320
|
+
* jsPDF virtual FileSystem functionality
|
321
|
+
*
|
322
|
+
* Licensed under the MIT License.
|
323
|
+
* http://opensource.org/licenses/mit-license
|
324
|
+
*/
|
325
|
+
function(A){var t=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};A.existsFileInVFS=function(A){return t.call(this),void 0!==this.internal.vFS[A]},A.addFileToVFS=function(A,i){return t.call(this),this.internal.vFS[A]=i,this},A.getFileFromVFS=function(A){return t.call(this),void 0!==this.internal.vFS[A]?this.internal.vFS[A]:null}}(he.API),
|
326
|
+
/**
|
327
|
+
* @license
|
328
|
+
* Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
|
329
|
+
* MIT License
|
330
|
+
*/
|
331
|
+
function(A){A.__bidiEngine__=A.prototype.__bidiEngine__=function(A){var i,e,n,r,o,s,a,l=t,c=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},d={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},g=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],f=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),p=!1,w=0;this.__bidiEngine__={};var B=function(A){var t=A.charCodeAt(),i=t>>8,e=d[i];return void 0!==e?l[256*e+(255&t)]:252===i||253===i?"AL":f.test(i)?"L":8===i?"R":"N"},m=function(A){for(var t,i=0;i<A.length;i++){if("L"===(t=B(A.charAt(i))))return!1;if("R"===t)return!0}return!1},b=function(A,t,o,s){var a,l,c,h,u=t[s];switch(u){case"L":case"R":p=!1;break;case"N":case"AN":break;case"EN":p&&(u="AN");break;case"AL":p=!0,u="R";break;case"WS":u="N";break;case"CS":s<1||s+1>=t.length||"EN"!==(a=o[s-1])&&"AN"!==a||"EN"!==(l=t[s+1])&&"AN"!==l?u="N":p&&(l="AN"),u=l===a?l:"N";break;case"ES":u="EN"===(a=s>0?o[s-1]:"B")&&s+1<t.length&&"EN"===t[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===o[s-1]){u="EN";break}if(p){u="N";break}for(c=s+1,h=t.length;c<h&&"ET"===t[c];)c++;u=c<h&&"EN"===t[c]?"EN":"N";break;case"NSM":if(n&&!r){for(h=t.length,c=s+1;c<h&&"NSM"===t[c];)c++;if(c<h){var d=A[s];if(a=t[c],(d>=1425&&d<=2303||64286===d)&&("R"===a||"AL"===a)){u="R";break}}}u=s<1||"B"===(a=t[s-1])?"N":o[s-1];break;case"B":p=!1,i=!0,u=w;break;case"S":e=!0,u="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":p=!1;break;case"BN":u="N"}return u},v=function(A,t,i){var e=A.split("");return i&&Q(e,i,{hiLevel:w}),e.reverse(),t&&t.reverse(),e.join("")},Q=function(A,t,n){var r,o,s,a,l,d=-1,g=A.length,f=0,m=[],v=w?h:c,Q=[];for(p=!1,i=!1,e=!1,o=0;o<g;o++)Q[o]=B(A[o]);for(s=0;s<g;s++){if(l=f,m[s]=b(A,Q,m,s),r=240&(f=v[l][u[m[s]]]),t[s]=a=v[f&=15][5],r>0)if(16===r){for(o=d;o<s;o++)t[o]=1;d=-1}else d=-1;if(v[f][6])-1===d&&(d=s);else if(d>-1){for(o=d;o<s;o++)t[o]=a;d=-1}"B"===Q[s]&&(t[s]=0),n.hiLevel|=a}e&&function(A,t,i){for(var e=0;e<i;e++)if("S"===A[e]){t[e]=w;for(var n=e-1;n>=0&&"WS"===A[n];n--)t[n]=w}}(Q,t,g)},C=function(A,t,e,n,r){if(!(r.hiLevel<A)){if(1===A&&1===w&&!i)return t.reverse(),void(e&&e.reverse());for(var o,s,a,l,c=t.length,h=0;h<c;){if(n[h]>=A){for(a=h+1;a<c&&n[a]>=A;)a++;for(l=h,s=a-1;l<s;l++,s--)o=t[l],t[l]=t[s],t[s]=o,e&&(o=e[l],e[l]=e[s],e[s]=o);h=a}h++}}},F=function(A,t,i){var e=A.split(""),n={hiLevel:w};return i||(i=[]),Q(e,i,n),function(A,t,i){if(0!==i.hiLevel&&a)for(var e,n=0;n<A.length;n++)1===t[n]&&(e=g.indexOf(A[n]))>=0&&(A[n]=g[e+1])}(e,i,n),C(2,e,t,i,n),C(1,e,t,i,n),e.join("")};return this.__bidiEngine__.doBidiReorder=function(A,t,i){if(function(A,t){if(t)for(var i=0;i<A.length;i++)t[i]=i;void 0===r&&(r=m(A)),void 0===s&&(s=m(A))}(A,t),n||!o||s)if(n&&o&&r^s)w=r?1:0,A=v(A,t,i);else if(!n&&o&&s)w=r?1:0,A=F(A,t,i),A=v(A,t);else if(!n||r||o||s){if(n&&!o&&r^s)A=v(A,t),r?(w=0,A=F(A,t,i)):(w=1,A=F(A,t,i),A=v(A,t));else if(n&&r&&!o&&s)w=1,A=F(A,t,i),A=v(A,t);else if(!n&&!o&&r^s){var e=a;r?(w=1,A=F(A,t,i),w=0,a=!1,A=F(A,t,i),a=e):(w=0,A=F(A,t,i),A=v(A,t),w=1,a=!1,A=F(A,t,i),a=e,A=v(A,t))}}else w=0,A=F(A,t,i);else w=r?1:0,A=F(A,t,i);return A},this.__bidiEngine__.setOptions=function(A){A&&(n=A.isInputVisual,o=A.isOutputVisual,r=A.isInputRtl,s=A.isOutputRtl,a=A.isSymmetricSwapping)},this.__bidiEngine__.setOptions(A),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],i=new A.__bidiEngine__({isInputVisual:!0});A.API.events.push(["postProcessText",function(A){var t=A.text,e=A.options||{},n=[];if(e.isInputVisual="boolean"!=typeof e.isInputVisual||e.isInputVisual,i.setOptions(e),"[object Array]"===Object.prototype.toString.call(t)){var r=0;for(n=[],r=0;r<t.length;r+=1)"[object Array]"===Object.prototype.toString.call(t[r])?n.push([i.doBidiReorder(t[r][0]),t[r][1],t[r][2]]):n.push([i.doBidiReorder(t[r])]);A.text=n}else A.text=i.doBidiReorder(t);i.setOptions({isInputVisual:!0})}])}(he),he.API.TTFFont=function(){function A(A){var t;if(this.rawData=A,t=this.contents=new Hn(A),this.contents.pos=4,"ttcf"===t.readString(4))throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new Yn(this),this.registerTTF()}return A.open=function(t){return new A(t)},A.prototype.parse=function(){return this.directory=new In(this.contents),this.head=new Dn(this),this.name=new qn(this),this.cmap=new Kn(this),this.toUnicode={},this.hhea=new On(this),this.maxp=new Rn(this),this.hmtx=new Gn(this),this.post=new Pn(this),this.os2=new Tn(this),this.loca=new _n(this),this.glyf=new zn(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},A.prototype.registerTTF=function(){var A,t,i,e;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var A,t,i,e;for(e=[],A=0,t=(i=this.bbox).length;A<t;A++)e.push(Math.round(i[A]*this.scaleFactor));return e}.call(this),this.stemV=0,this.post.exists?(t=255&(i=this.post.italic_angle),0!=(32768&(A=i>>16))&&(A=-(1+(65535^A))),this.italicAngle=+(A+"."+t)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(e=this.familyClass)||2===e||3===e||4===e||5===e||7===e,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},A.prototype.characterToGlyph=function(A){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[A]:void 0)||0},A.prototype.widthOfGlyph=function(A){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(A).advance*t},A.prototype.widthOfString=function(A,t,i){var e,n,r,o;for(r=0,n=0,o=(A=""+A).length;0<=o?n<o:n>o;n=0<=o?++n:--n)e=A.charCodeAt(n),r+=this.widthOfGlyph(this.characterToGlyph(e))+i*(1e3/t)||0;return r*(t/1e3)},A.prototype.lineHeight=function(A,t){return null==t&&(t=!1),(this.ascender+(t?this.lineGap:0)-this.decender)/1e3*A},A}();var En,Hn=function(){function A(A){this.data=null!=A?A:[],this.pos=0,this.length=this.data.length}return A.prototype.readByte=function(){return this.data[this.pos++]},A.prototype.writeByte=function(A){return this.data[this.pos++]=A},A.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},A.prototype.writeUInt32=function(A){return this.writeByte(A>>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A)},A.prototype.readInt32=function(){var A;return(A=this.readUInt32())>=2147483648?A-4294967296:A},A.prototype.writeInt32=function(A){return A<0&&(A+=4294967296),this.writeUInt32(A)},A.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},A.prototype.writeUInt16=function(A){return this.writeByte(A>>8&255),this.writeByte(255&A)},A.prototype.readInt16=function(){var A;return(A=this.readUInt16())>=32768?A-65536:A},A.prototype.writeInt16=function(A){return A<0&&(A+=65536),this.writeUInt16(A)},A.prototype.readString=function(A){var t,i;for(i=[],t=0;0<=A?t<A:t>A;t=0<=A?++t:--t)i[t]=String.fromCharCode(this.readByte());return i.join("")},A.prototype.writeString=function(A){var t,i,e;for(e=[],t=0,i=A.length;0<=i?t<i:t>i;t=0<=i?++t:--t)e.push(this.writeByte(A.charCodeAt(t)));return e},A.prototype.readShort=function(){return this.readInt16()},A.prototype.writeShort=function(A){return this.writeInt16(A)},A.prototype.readLongLong=function(){var A,t,i,e,n,r,o,s;return A=this.readByte(),t=this.readByte(),i=this.readByte(),e=this.readByte(),n=this.readByte(),r=this.readByte(),o=this.readByte(),s=this.readByte(),128&A?-1*(72057594037927940*(255^A)+281474976710656*(255^t)+1099511627776*(255^i)+4294967296*(255^e)+16777216*(255^n)+65536*(255^r)+256*(255^o)+(255^s)+1):72057594037927940*A+281474976710656*t+1099511627776*i+4294967296*e+16777216*n+65536*r+256*o+s},A.prototype.writeLongLong=function(A){var t,i;return t=Math.floor(A/4294967296),i=4294967295&A,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(i>>24&255),this.writeByte(i>>16&255),this.writeByte(i>>8&255),this.writeByte(255&i)},A.prototype.readInt=function(){return this.readInt32()},A.prototype.writeInt=function(A){return this.writeInt32(A)},A.prototype.read=function(A){var t,i;for(t=[],i=0;0<=A?i<A:i>A;i=0<=A?++i:--i)t.push(this.readByte());return t},A.prototype.write=function(A){var t,i,e;for(e=[],t=0,i=A.length;t<i;t++)e.push(this.writeByte(A[t]));return e},A}(),In=function(){var A;function t(A){var t,i,e;for(this.scalarType=A.readInt(),this.tableCount=A.readShort(),this.searchRange=A.readShort(),this.entrySelector=A.readShort(),this.rangeShift=A.readShort(),this.tables={},i=0,e=this.tableCount;0<=e?i<e:i>e;i=0<=e?++i:--i)t={tag:A.readString(4),checksum:A.readInt(),offset:A.readInt(),length:A.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var i,e,n,r,o,s,a,l,c,h,u,d;for(d in h=Object.keys(t).length,o=Math.log(2),l=16*Math.floor(Math.log(h)/o),n=Math.floor(l/o),a=16*h-l,(e=new Hn).writeInt(this.scalarType),e.writeShort(h),e.writeShort(l),e.writeShort(n),e.writeShort(a),s=e.pos+16*h,r=null,u=[],t)for(c=t[d],e.writeString(d),e.writeInt(A(c)),e.writeInt(s),e.writeInt(c.length),u=u.concat(c),"head"===d&&(r=s),s+=c.length;s%4;)u.push(0),s++;return e.write(u),i=2981146554-A(e.data),e.pos=r+8,e.writeUInt32(i),e.data},A=function(A){var t,i,e,n;for(A=Vn.call(A);A.length%4;)A.push(0);for(e=new Hn(A),i=0,t=0,n=A.length;t<n;t=t+=4)i+=e.readUInt32();return 4294967295&i},t}(),Nn={}.hasOwnProperty,Sn=function(A,t){for(var i in t)Nn.call(t,i)&&(A[i]=t[i]);function e(){this.constructor=A}return e.prototype=t.prototype,A.prototype=new e,A.__super__=t.prototype,A};En=function(){function A(A){var t;this.file=A,this.exists=!!(t=this.file.directory.tables[this.tag]),t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return A.prototype.parse=function(){},A.prototype.encode=function(){},A.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},A}();var Dn=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Sn(A,En),A.prototype.tag="head",A.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.revision=A.readInt(),this.checkSumAdjustment=A.readInt(),this.magicNumber=A.readInt(),this.flags=A.readShort(),this.unitsPerEm=A.readShort(),this.created=A.readLongLong(),this.modified=A.readLongLong(),this.xMin=A.readShort(),this.yMin=A.readShort(),this.xMax=A.readShort(),this.yMax=A.readShort(),this.macStyle=A.readShort(),this.lowestRecPPEM=A.readShort(),this.fontDirectionHint=A.readShort(),this.indexToLocFormat=A.readShort(),this.glyphDataFormat=A.readShort()},A.prototype.encode=function(A){var t;return(t=new Hn).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(A),t.writeShort(this.glyphDataFormat),t.data},A}(),Mn=function(){function A(A,t){var i,e,n,r,o,s,a,l,c,h,u,d,g,f,p,w,B;switch(this.platformID=A.readUInt16(),this.encodingID=A.readShort(),this.offset=t+A.readInt(),c=A.pos,A.pos=this.offset,this.format=A.readUInt16(),this.length=A.readUInt16(),this.language=A.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=A.readByte();break;case 4:for(u=A.readUInt16(),h=u/2,A.pos+=6,n=function(){var t,i;for(i=[],s=t=0;0<=h?t<h:t>h;s=0<=h?++t:--t)i.push(A.readUInt16());return i}(),A.pos+=2,g=function(){var t,i;for(i=[],s=t=0;0<=h?t<h:t>h;s=0<=h?++t:--t)i.push(A.readUInt16());return i}(),a=function(){var t,i;for(i=[],s=t=0;0<=h?t<h:t>h;s=0<=h?++t:--t)i.push(A.readUInt16());return i}(),l=function(){var t,i;for(i=[],s=t=0;0<=h?t<h:t>h;s=0<=h?++t:--t)i.push(A.readUInt16());return i}(),e=(this.length-A.pos+this.offset)/2,o=function(){var t,i;for(i=[],s=t=0;0<=e?t<e:t>e;s=0<=e?++t:--t)i.push(A.readUInt16());return i}(),s=p=0,B=n.length;p<B;s=++p)for(f=n[s],i=w=d=g[s];d<=f?w<=f:w>=f;i=d<=f?++w:--w)0===l[s]?r=i+a[s]:0!==(r=o[l[s]/2+(i-d)-(h-s)]||0)&&(r+=a[s]),this.codeMap[i]=65535&r}A.pos=c}return A.encode=function(A,t){var i,e,n,r,o,s,a,l,c,h,u,d,g,f,p,w,B,m,b,v,Q,C,F,U,y,k,x,L,E,H,I,N,S,D,M,K,O,T,P,j,q,R,G,V,z;switch(x=new Hn,r=Object.keys(A).sort((function(A,t){return A-t})),t){case"macroman":for(g=0,f=function(){var A=[];for(d=0;d<256;++d)A.push(0);return A}(),w={0:0},n={},L=0,N=r.length;L<N;L++)null==w[R=A[e=r[L]]]&&(w[R]=++g),n[e]={old:A[e],new:w[A[e]]},f[e]=w[A[e]];return x.writeUInt16(1),x.writeUInt16(0),x.writeUInt32(12),x.writeUInt16(0),x.writeUInt16(262),x.writeUInt16(0),x.write(f),{charMap:n,subtable:x.data,maxGlyphID:g+1};case"unicode":for(y=[],c=[],B=0,w={},i={},p=a=null,E=0,S=r.length;E<S;E++)null==w[m=A[e=r[E]]]&&(w[m]=++B),i[e]={old:m,new:w[m]},o=w[m]-e,null!=p&&o===a||(p&&c.push(p),y.push(e),a=o),p=e;for(p&&c.push(p),c.push(65535),y.push(65535),F=2*(C=y.length),Q=2*Math.pow(Math.log(C)/Math.LN2,2),h=Math.log(Q/2)/Math.LN2,v=2*C-Q,s=[],b=[],u=[],d=H=0,D=y.length;H<D;d=++H){if(l=c[d],65535===(U=y[d])){s.push(0),b.push(0);break}if(U-(k=i[U].new)>=32768)for(s.push(0),b.push(2*(u.length+C-d)),e=I=U;U<=l?I<=l:I>=l;e=U<=l?++I:--I)u.push(i[e].new);else s.push(k-U),b.push(0)}for(x.writeUInt16(3),x.writeUInt16(1),x.writeUInt32(12),x.writeUInt16(4),x.writeUInt16(16+8*C+2*u.length),x.writeUInt16(0),x.writeUInt16(F),x.writeUInt16(Q),x.writeUInt16(h),x.writeUInt16(v),j=0,M=c.length;j<M;j++)x.writeUInt16(e=c[j]);for(x.writeUInt16(0),q=0,K=y.length;q<K;q++)x.writeUInt16(e=y[q]);for(G=0,O=s.length;G<O;G++)x.writeUInt16(o=s[G]);for(V=0,T=b.length;V<T;V++)x.writeUInt16(b[V]);for(z=0,P=u.length;z<P;z++)x.writeUInt16(g=u[z]);return{charMap:i,subtable:x.data,maxGlyphID:B+1}}},A}(),Kn=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Sn(A,En),A.prototype.tag="cmap",A.prototype.parse=function(A){var t,i,e;for(A.pos=this.offset,this.version=A.readUInt16(),e=A.readUInt16(),this.tables=[],this.unicode=null,i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)t=new Mn(A,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},A.encode=function(A,t){var i,e;return null==t&&(t="macroman"),i=Mn.encode(A,t),(e=new Hn).writeUInt16(0),e.writeUInt16(1),i.table=e.data.concat(i.subtable),i},A}(),On=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Sn(A,En),A.prototype.tag="hhea",A.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.ascender=A.readShort(),this.decender=A.readShort(),this.lineGap=A.readShort(),this.advanceWidthMax=A.readShort(),this.minLeftSideBearing=A.readShort(),this.minRightSideBearing=A.readShort(),this.xMaxExtent=A.readShort(),this.caretSlopeRise=A.readShort(),this.caretSlopeRun=A.readShort(),this.caretOffset=A.readShort(),A.pos+=8,this.metricDataFormat=A.readShort(),this.numberOfMetrics=A.readUInt16()},A}(),Tn=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Sn(A,En),A.prototype.tag="OS/2",A.prototype.parse=function(A){if(A.pos=this.offset,this.version=A.readUInt16(),this.averageCharWidth=A.readShort(),this.weightClass=A.readUInt16(),this.widthClass=A.readUInt16(),this.type=A.readShort(),this.ySubscriptXSize=A.readShort(),this.ySubscriptYSize=A.readShort(),this.ySubscriptXOffset=A.readShort(),this.ySubscriptYOffset=A.readShort(),this.ySuperscriptXSize=A.readShort(),this.ySuperscriptYSize=A.readShort(),this.ySuperscriptXOffset=A.readShort(),this.ySuperscriptYOffset=A.readShort(),this.yStrikeoutSize=A.readShort(),this.yStrikeoutPosition=A.readShort(),this.familyClass=A.readShort(),this.panose=function(){var t,i;for(i=[],t=0;t<10;++t)i.push(A.readByte());return i}(),this.charRange=function(){var t,i;for(i=[],t=0;t<4;++t)i.push(A.readInt());return i}(),this.vendorID=A.readString(4),this.selection=A.readShort(),this.firstCharIndex=A.readShort(),this.lastCharIndex=A.readShort(),this.version>0&&(this.ascent=A.readShort(),this.descent=A.readShort(),this.lineGap=A.readShort(),this.winAscent=A.readShort(),this.winDescent=A.readShort(),this.codePageRange=function(){var t,i;for(i=[],t=0;t<2;t=++t)i.push(A.readInt());return i}(),this.version>1))return this.xHeight=A.readShort(),this.capHeight=A.readShort(),this.defaultChar=A.readShort(),this.breakChar=A.readShort(),this.maxContext=A.readShort()},A}(),Pn=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Sn(A,En),A.prototype.tag="post",A.prototype.parse=function(A){var t,i,e;switch(A.pos=this.offset,this.format=A.readInt(),this.italicAngle=A.readInt(),this.underlinePosition=A.readShort(),this.underlineThickness=A.readShort(),this.isFixedPitch=A.readInt(),this.minMemType42=A.readInt(),this.maxMemType42=A.readInt(),this.minMemType1=A.readInt(),this.maxMemType1=A.readInt(),this.format){case 65536:break;case 131072:var n;for(i=A.readUInt16(),this.glyphNameIndex=[],n=0;0<=i?n<i:n>i;n=0<=i?++n:--n)this.glyphNameIndex.push(A.readUInt16());for(this.names=[],e=[];A.pos<this.offset+this.length;)t=A.readByte(),e.push(this.names.push(A.readString(t)));return e;case 151552:return i=A.readUInt16(),this.offsets=A.read(i);case 196608:break;case 262144:return this.map=function(){var t,i,e;for(e=[],n=t=0,i=this.file.maxp.numGlyphs;0<=i?t<i:t>i;n=0<=i?++t:--t)e.push(A.readUInt32());return e}.call(this)}},A}(),jn=function(A,t){this.raw=A,this.length=A.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},qn=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Sn(A,En),A.prototype.tag="name",A.prototype.parse=function(A){var t,i,e,n,r,o,s,a,l,c,h;for(A.pos=this.offset,A.readShort(),t=A.readShort(),o=A.readShort(),i=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)i.push({platformID:A.readShort(),encodingID:A.readShort(),languageID:A.readShort(),nameID:A.readShort(),length:A.readShort(),offset:this.offset+o+A.readShort()});for(s={},n=l=0,c=i.length;l<c;n=++l)A.pos=(e=i[n]).offset,a=A.readString(e.length),r=new jn(a,e),null==s[h=e.nameID]&&(s[h]=[]),s[e.nameID].push(r);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(A){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},A}(),Rn=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Sn(A,En),A.prototype.tag="maxp",A.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.numGlyphs=A.readUInt16(),this.maxPoints=A.readUInt16(),this.maxContours=A.readUInt16(),this.maxCompositePoints=A.readUInt16(),this.maxComponentContours=A.readUInt16(),this.maxZones=A.readUInt16(),this.maxTwilightPoints=A.readUInt16(),this.maxStorage=A.readUInt16(),this.maxFunctionDefs=A.readUInt16(),this.maxInstructionDefs=A.readUInt16(),this.maxStackElements=A.readUInt16(),this.maxSizeOfInstructions=A.readUInt16(),this.maxComponentElements=A.readUInt16(),this.maxComponentDepth=A.readUInt16()},A}(),Gn=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Sn(A,En),A.prototype.tag="hmtx",A.prototype.parse=function(A){var t,i,e,n,r,o;for(A.pos=this.offset,this.metrics=[],t=0,r=this.file.hhea.numberOfMetrics;0<=r?t<r:t>r;t=0<=r?++t:--t)this.metrics.push({advance:A.readUInt16(),lsb:A.readInt16()});for(e=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var i,n;for(n=[],t=i=0;0<=e?i<e:i>e;t=0<=e?++i:--i)n.push(A.readInt16());return n}(),this.widths=function(){var A,t,i,e;for(e=[],A=0,t=(i=this.metrics).length;A<t;A++)e.push(i[A].advance);return e}.call(this),i=this.widths[this.widths.length-1],o=[],t=n=0;0<=e?n<e:n>e;t=0<=e?++n:--n)o.push(this.widths.push(i));return o},A.prototype.forGlyph=function(A){return A in this.metrics?this.metrics[A]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[A-this.metrics.length]}},A}(),Vn=[].slice,zn=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Sn(A,En),A.prototype.tag="glyf",A.prototype.parse=function(){return this.cache={}},A.prototype.glyphFor=function(A){var t,i,e,n,r,o,s,a,l,c;return A in this.cache?this.cache[A]:(t=this.file.contents,i=(n=this.file.loca).indexOf(A),0===(e=n.lengthOf(A))?this.cache[A]=null:(t.pos=this.offset+i,r=(o=new Hn(t.read(e))).readShort(),a=o.readShort(),c=o.readShort(),s=o.readShort(),l=o.readShort(),this.cache[A]=-1===r?new Xn(o,a,c,s,l):new Jn(o,r,a,c,s,l),this.cache[A]))},A.prototype.encode=function(A,t,i){var e,n,r,o,s;for(r=[],n=[],o=0,s=t.length;o<s;o++)e=A[t[o]],n.push(r.length),e&&(r=r.concat(e.encode(i)));return n.push(r.length),{table:r,offsets:n}},A}(),Jn=function(){function A(A,t,i,e,n,r){this.raw=A,this.numberOfContours=t,this.xMin=i,this.yMin=e,this.xMax=n,this.yMax=r,this.compound=!1}return A.prototype.encode=function(){return this.raw.data},A}(),Xn=function(){function A(A,t,i,e,n){var r,o;for(this.raw=A,this.xMin=t,this.yMin=i,this.xMax=e,this.yMax=n,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],r=this.raw;o=r.readShort(),this.glyphOffsets.push(r.pos),this.glyphIDs.push(r.readUInt16()),32&o;)r.pos+=1&o?4:2,128&o?r.pos+=8:64&o?r.pos+=4:8&o&&(r.pos+=2)}return A.prototype.encode=function(){var A,t,i;for(t=new Hn(Vn.call(this.raw.data)),A=0,i=this.glyphIDs.length;A<i;++A)t.pos=this.glyphOffsets[A];return t.data},A}(),_n=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Sn(A,En),A.prototype.tag="loca",A.prototype.parse=function(A){var t;return A.pos=this.offset,this.offsets=0===this.file.head.indexToLocFormat?function(){var i,e;for(e=[],t=0,i=this.length;t<i;t+=2)e.push(2*A.readUInt16());return e}.call(this):function(){var i,e;for(e=[],t=0,i=this.length;t<i;t+=4)e.push(A.readUInt32());return e}.call(this)},A.prototype.indexOf=function(A){return this.offsets[A]},A.prototype.lengthOf=function(A){return this.offsets[A+1]-this.offsets[A]},A.prototype.encode=function(A,t){for(var i=new Uint32Array(this.offsets.length),e=0,n=0,r=0;r<i.length;++r)if(i[r]=e,n<t.length&&t[n]==r){++n,i[r]=e;var o=this.offsets[r+1]-this.offsets[r];o>0&&(e+=o)}for(var s=new Array(4*i.length),a=0;a<i.length;++a)s[4*a+3]=255&i[a],s[4*a+2]=(65280&i[a])>>8,s[4*a+1]=(16711680&i[a])>>16,s[4*a]=(4278190080&i[a])>>24;return s},A}(),Yn=function(){function A(A){this.font=A,this.subset={},this.unicodes={},this.next=33}return A.prototype.generateCmap=function(){var A,t,i,e;for(t in i=this.font.cmap.tables[0].codeMap,A={},e=this.subset)A[t]=i[e[t]];return A},A.prototype.glyphsFor=function(A){var t,i,e,n,r,o,s;for(e={},r=0,o=A.length;r<o;r++)e[n=A[r]]=this.font.glyf.glyphFor(n);for(n in t=[],e)(null!=(i=e[n])?i.compound:void 0)&&t.push.apply(t,i.glyphIDs);if(t.length>0)for(n in s=this.glyphsFor(t))e[n]=i=s[n];return e},A.prototype.encode=function(A,t){var i,e,n,r,o,s,a,l,c,h,u,d,g,f;for(e in i=Kn.encode(this.generateCmap(),"unicode"),r=this.glyphsFor(A),h={0:0},f=i.charMap)h[(o=f[e]).old]=o.new;for(u in c=i.maxGlyphID,r)u in h||(h[u]=c++);return a=function(A){var t,i;for(t in i={},A)i[A[t]]=t;return i}(h),l=Object.keys(a).sort((function(A,t){return A-t})),d=function(){var A,t,i;for(i=[],A=0,t=l.length;A<t;A++)i.push(a[l[A]]);return i}(),n=this.font.glyf.encode(r,d,h),s=this.font.loca.encode(n.offsets,d),g={cmap:this.font.cmap.raw(),glyf:n.table,loca:s,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},A}();he.API.PDFObject=function(){var A;function t(){}return A=function(A,t){return(Array(t+1).join("0")+A).slice(-t)},t.convert=function(i){var e,n;if(Array.isArray(i))return"["+function(){var A,e,n;for(n=[],A=0,e=i.length;A<e;A++)n.push(t.convert(i[A]));return n}().join(" ")+"]";if("string"==typeof i)return"/"+i;if(null!=i?i.isString:void 0)return"("+i+")";if(i instanceof Date)return"(D:"+A(i.getUTCFullYear(),4)+A(i.getUTCMonth(),2)+A(i.getUTCDate(),2)+A(i.getUTCHours(),2)+A(i.getUTCMinutes(),2)+A(i.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(i)){for(e in n=["<<"],i)n.push("/"+e+" "+t.convert(i[e]));return n.push(">>"),n.join("\n")}return""+i},t}();var Wn=X((function(A){
|
332
|
+
/*!
|
333
|
+
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
334
|
+
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
335
|
+
* Released under MIT License
|
336
|
+
*/
|
337
|
+
A.exports=function(){
|
338
|
+
/*! *****************************************************************************
|
339
|
+
Copyright (c) Microsoft Corporation.
|
340
|
+
|
341
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
342
|
+
purpose with or without fee is hereby granted.
|
343
|
+
|
344
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
345
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
346
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
347
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
348
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
349
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
350
|
+
PERFORMANCE OF THIS SOFTWARE.
|
351
|
+
***************************************************************************** */
|
352
|
+
var A=function(t,i){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,t){A.__proto__=t}||function(A,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])})(t,i)};function t(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=t}A(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}var i=function(){return(i=Object.assign||function(A){for(var t,i=1,e=arguments.length;i<e;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(A[n]=t[n]);return A}).apply(this,arguments)};function e(A,t,i,e){return new(i||(i=Promise))((function(n,r){function o(A){try{a(e.next(A))}catch(A){r(A)}}function s(A){try{a(e.throw(A))}catch(A){r(A)}}function a(A){var t;A.done?n(A.value):(t=A.value,t instanceof i?t:new i((function(A){A(t)}))).then(o,s)}a((e=e.apply(A,t||[])).next())}))}function n(A,t){var i,e,n,r,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,e&&(n=2&r[0]?e.return:r[0]?e.throw||((n=e.return)&&n.call(e),0):e.next)&&!(n=n.call(e,r[1])).done)return n;switch(e=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,e=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==r[0]&&2!==r[0])){o=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){o.label=r[1];break}if(6===r[0]&&o.label<n[1]){o.label=n[1],n=r;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(r);break}n[2]&&o.ops.pop(),o.trys.pop();continue}r=t.call(A,o)}catch(A){r=[6,A],e=0}finally{i=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function r(A,t,i){if(i||2===arguments.length)for(var e,n=0,r=t.length;n<r;n++)!e&&n in t||(e||(e=Array.prototype.slice.call(t,0,n)),e[n]=t[n]);return A.concat(e||t)}for(var o=function(){function A(A,t,i,e){this.left=A,this.top=t,this.width=i,this.height=e}return A.prototype.add=function(t,i,e,n){return new A(this.left+t,this.top+i,this.width+e,this.height+n)},A.fromClientRect=function(t,i){return new A(i.left+t.windowBounds.left,i.top+t.windowBounds.top,i.width,i.height)},A.fromDOMRectList=function(t,i){var e=Array.from(i).find((function(A){return 0!==A.width}));return e?new A(e.left+t.windowBounds.left,e.top+t.windowBounds.top,e.width,e.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A}(),s=function(A,t){return o.fromClientRect(A,t.getBoundingClientRect())},a=function(A){for(var t=[],i=0,e=A.length;i<e;){var n=A.charCodeAt(i++);if(n>=55296&&n<=56319&&i<e){var r=A.charCodeAt(i++);56320==(64512&r)?t.push(((1023&n)<<10)+(1023&r)+65536):(t.push(n),i--)}else t.push(n)}return t},l=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var i=A.length;if(!i)return"";for(var e=[],n=-1,r="";++n<i;){var o=A[n];o<=65535?e.push(o):e.push(55296+((o-=65536)>>10),o%1024+56320),(n+1===i||e.length>16384)&&(r+=String.fromCharCode.apply(String,e),e.length=0)}return r},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="undefined"==typeof Uint8Array?[]:new Uint8Array(256),u=0;u<c.length;u++)h[c.charCodeAt(u)]=u;for(var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g="undefined"==typeof Uint8Array?[]:new Uint8Array(256),f=0;f<d.length;f++)g[d.charCodeAt(f)]=f;for(var p=function(A,t,i){return A.slice?A.slice(t,i):new Uint16Array(Array.prototype.slice.call(A,t,i))},w=function(){function A(A,t,i,e,n,r){this.initialValue=A,this.errorValue=t,this.highStart=i,this.highValueIndex=e,this.index=n,this.data=r}return A.prototype.get=function(A){var t;if(A>=0){if(A<55296||A>56319&&A<=65535)return this.data[t=((t=this.index[A>>5])<<2)+(31&A)];if(A<=65535)return this.data[t=((t=this.index[2048+(A-55296>>5)])<<2)+(31&A)];if(A<this.highStart)return t=this.index[t=2080+(A>>11)],this.data[t=((t=this.index[t+=A>>5&63])<<2)+(31&A)];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m="undefined"==typeof Uint8Array?[]:new Uint8Array(256),b=0;b<B.length;b++)m[B.charCodeAt(b)]=b;var v=10,Q=13,C=15,F=17,U=18,y=19,k=20,x=21,L=22,E=24,H=25,I=26,N=27,S=28,D=30,M=32,K=33,O=34,T=35,P=37,j=38,q=39,R=40,G=42,V=[9001,65288],z="×",J="÷",X=function(A){var t,i,e,n=function(A){var t,i,e,n,r,o=.75*A.length,s=A.length,a=0;"="===A[A.length-1]&&(o--,"="===A[A.length-2]&&o--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t<s;t+=4)i=g[A.charCodeAt(t)],e=g[A.charCodeAt(t+1)],n=g[A.charCodeAt(t+2)],r=g[A.charCodeAt(t+3)],c[a++]=i<<2|e>>4,c[a++]=(15&e)<<4|n>>2,c[a++]=(3&n)<<6|63&r;return l}(A),r=Array.isArray(n)?function(A){for(var t=A.length,i=[],e=0;e<t;e+=4)i.push(A[e+3]<<24|A[e+2]<<16|A[e+1]<<8|A[e]);return i}(n):new Uint32Array(n),o=Array.isArray(n)?function(A){for(var t=A.length,i=[],e=0;e<t;e+=2)i.push(A[e+1]<<8|A[e]);return i}(n):new Uint16Array(n),s=p(o,12,r[4]/2),a=2===r[5]?p(o,(24+r[4])/2):(t=r,i=Math.ceil((24+r[4])/4),t.slice?t.slice(i,e):new Uint32Array(Array.prototype.slice.call(t,i,e)));return new w(r[0],r[1],r[2],r[3],s,a)}("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),_=[D,36],Y=[1,2,3,5],W=[v,8],Z=[N,I],$=Y.concat(W),AA=[j,q,R,O,T],tA=[C,Q],iA=function(A,t,i,e){var n=e[i];if(Array.isArray(A)?-1!==A.indexOf(n):A===n)for(var r=i;r<=e.length;){if((a=e[++r])===t)return!0;if(a!==v)break}if(n===v)for(r=i;r>0;){var o=e[--r];if(Array.isArray(A)?-1!==A.indexOf(o):A===o)for(var s=i;s<=e.length;){var a;if((a=e[++s])===t)return!0;if(a!==v)break}if(o!==v)break}return!1},eA=function(A,t){for(var i=A;i>=0;){var e=t[i];if(e!==v)return e;i--}return 0},nA=function(A,t,i,e,n){if(0===i[e])return z;var r=e-1;if(Array.isArray(n)&&!0===n[r])return z;var o=r-1,s=r+1,a=t[r],l=o>=0?t[o]:0,c=t[s];if(2===a&&3===c)return z;if(-1!==Y.indexOf(a))return"!";if(-1!==Y.indexOf(c))return z;if(-1!==W.indexOf(c))return z;if(8===eA(r,t))return J;if(11===X.get(A[r]))return z;if((a===M||a===K)&&11===X.get(A[s]))return z;if(7===a||7===c)return z;if(9===a)return z;if(-1===[v,Q,C].indexOf(a)&&9===c)return z;if(-1!==[F,U,y,E,S].indexOf(c))return z;if(eA(r,t)===L)return z;if(iA(23,L,r,t))return z;if(iA([F,U],x,r,t))return z;if(iA(12,12,r,t))return z;if(a===v)return J;if(23===a||23===c)return z;if(16===c||16===a)return J;if(-1!==[Q,C,x].indexOf(c)||14===a)return z;if(36===l&&-1!==tA.indexOf(a))return z;if(a===S&&36===c)return z;if(c===k)return z;if(-1!==_.indexOf(c)&&a===H||-1!==_.indexOf(a)&&c===H)return z;if(a===N&&-1!==[P,M,K].indexOf(c)||-1!==[P,M,K].indexOf(a)&&c===I)return z;if(-1!==_.indexOf(a)&&-1!==Z.indexOf(c)||-1!==Z.indexOf(a)&&-1!==_.indexOf(c))return z;if(-1!==[N,I].indexOf(a)&&(c===H||-1!==[L,C].indexOf(c)&&t[s+1]===H)||-1!==[L,C].indexOf(a)&&c===H||a===H&&-1!==[H,S,E].indexOf(c))return z;if(-1!==[H,S,E,F,U].indexOf(c))for(var h=r;h>=0;){if((u=t[h])===H)return z;if(-1===[S,E].indexOf(u))break;h--}if(-1!==[N,I].indexOf(c))for(h=-1!==[F,U].indexOf(a)?o:r;h>=0;){var u;if((u=t[h])===H)return z;if(-1===[S,E].indexOf(u))break;h--}if(j===a&&-1!==[j,q,O,T].indexOf(c)||-1!==[q,O].indexOf(a)&&-1!==[q,R].indexOf(c)||-1!==[R,T].indexOf(a)&&c===R)return z;if(-1!==AA.indexOf(a)&&-1!==[k,I].indexOf(c)||-1!==AA.indexOf(c)&&a===N)return z;if(-1!==_.indexOf(a)&&-1!==_.indexOf(c))return z;if(a===E&&-1!==_.indexOf(c))return z;if(-1!==_.concat(H).indexOf(a)&&c===L&&-1===V.indexOf(A[s])||-1!==_.concat(H).indexOf(c)&&a===U)return z;if(41===a&&41===c){for(var d=i[r],g=1;d>0&&41===t[--d];)g++;if(g%2!=0)return z}return a===M&&c===K?z:J},rA=function(A,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var i=function(A,t){void 0===t&&(t="strict");var i=[],e=[],n=[];return A.forEach((function(A,r){var o=X.get(A);if(o>50?(n.push(!0),o-=50):n.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(A))return e.push(r),i.push(16);if(4===o||11===o){if(0===r)return e.push(r),i.push(D);var s=i[r-1];return-1===$.indexOf(s)?(e.push(e[r-1]),i.push(s)):(e.push(r),i.push(D))}return e.push(r),31===o?i.push("strict"===t?x:P):o===G||29===o?i.push(D):43===o?i.push(A>=131072&&A<=196605||A>=196608&&A<=262141?P:D):void i.push(o)})),[e,i,n]}(A,t.lineBreak),e=i[0],n=i[1],r=i[2];return"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(n=n.map((function(A){return-1!==[H,D,G].indexOf(A)?P:A}))),[e,n,"keep-all"===t.wordBreak?r.map((function(t,i){return t&&A[i]>=19968&&A[i]<=40959})):void 0]},oA=function(){function A(A,t,i,e){this.codePoints=A,this.required="!"===t,this.start=i,this.end=e}return A.prototype.slice=function(){return l.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),sA=45,aA=43,lA=-1,cA=function(A){return A>=48&&A<=57},hA=function(A){return cA(A)||A>=65&&A<=70||A>=97&&A<=102},uA=function(A){return 10===A||9===A||32===A},dA=function(A){return function(A){return function(A){return A>=97&&A<=122}(A)||function(A){return A>=65&&A<=90}(A)}(A)||function(A){return A>=128}(A)||95===A},gA=function(A){return dA(A)||cA(A)||A===sA},fA=function(A){return A>=0&&A<=8||11===A||A>=14&&A<=31||127===A},pA=function(A,t){return 92===A&&10!==t},wA=function(A,t,i){return A===sA?dA(t)||pA(t,i):!!dA(A)||!(92!==A||!pA(A,t))},BA=function(A,t,i){return A===aA||A===sA?!!cA(t)||46===t&&cA(i):cA(46===A?t:A)},mA=function(A){var t=0,i=1;A[t]!==aA&&A[t]!==sA||(A[t]===sA&&(i=-1),t++);for(var e=[];cA(A[t]);)e.push(A[t++]);var n=e.length?parseInt(l.apply(void 0,e),10):0;46===A[t]&&t++;for(var r=[];cA(A[t]);)r.push(A[t++]);var o=r.length,s=o?parseInt(l.apply(void 0,r),10):0;69!==A[t]&&101!==A[t]||t++;var a=1;A[t]!==aA&&A[t]!==sA||(A[t]===sA&&(a=-1),t++);for(var c=[];cA(A[t]);)c.push(A[t++]);var h=c.length?parseInt(l.apply(void 0,c),10):0;return i*(n+s*Math.pow(10,-o))*Math.pow(10,a*h)},bA={type:2},vA={type:3},QA={type:4},CA={type:13},FA={type:8},UA={type:21},yA={type:9},kA={type:10},xA={type:11},LA={type:12},EA={type:14},HA={type:23},IA={type:1},NA={type:25},SA={type:24},DA={type:26},MA={type:27},KA={type:28},OA={type:29},TA={type:31},PA={type:32},jA=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(a(A))},A.prototype.read=function(){for(var A=[],t=this.consumeToken();t!==PA;)A.push(t),t=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),i=this.peekCodePoint(1),e=this.peekCodePoint(2);if(gA(t)||pA(i,e)){var n=wA(t,i,e)?2:1;return{type:5,value:this.consumeName(),flags:n}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),CA;break;case 39:return this.consumeStringToken(39);case 40:return bA;case 41:return vA;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),EA;break;case aA:if(BA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 44:return QA;case sA:var r=A,o=this.peekCodePoint(0),s=this.peekCodePoint(1);if(BA(r,o,s))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(wA(r,o,s))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(o===sA&&62===s)return this.consumeCodePoint(),this.consumeCodePoint(),SA;break;case 46:if(BA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var a=this.consumeCodePoint();if(42===a&&47===(a=this.consumeCodePoint()))return this.consumeToken();if(a===lA)return this.consumeToken()}break;case 58:return DA;case 59:return MA;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===sA&&this.peekCodePoint(2)===sA)return this.consumeCodePoint(),this.consumeCodePoint(),NA;break;case 64:var c=this.peekCodePoint(0),h=this.peekCodePoint(1),u=this.peekCodePoint(2);if(wA(c,h,u))return{type:7,value:this.consumeName()};break;case 91:return KA;case 92:if(pA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case 93:return OA;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),FA;break;case 123:return xA;case 125:return LA;case 117:case 85:var d=this.peekCodePoint(0),g=this.peekCodePoint(1);return d!==aA||!hA(g)&&63!==g||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),yA;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),UA;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),kA;break;case lA:return PA}return uA(A)?(this.consumeWhiteSpace(),TA):cA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):dA(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:l(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return void 0===A?-1:A},A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},A.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},A.prototype.consumeUnicodeRangeToken=function(){for(var A=[],t=this.consumeCodePoint();hA(t)&&A.length<6;)A.push(t),t=this.consumeCodePoint();for(var i=!1;63===t&&A.length<6;)A.push(t),t=this.consumeCodePoint(),i=!0;if(i)return{type:30,start:parseInt(l.apply(void 0,A.map((function(A){return 63===A?48:A}))),16),end:parseInt(l.apply(void 0,A.map((function(A){return 63===A?70:A}))),16)};var e=parseInt(l.apply(void 0,A),16);if(this.peekCodePoint(0)===sA&&hA(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var n=[];hA(t)&&n.length<6;)n.push(t),t=this.consumeCodePoint();return{type:30,start:e,end:parseInt(l.apply(void 0,n),16)}}return{type:30,start:e,end:e}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===lA)return{type:22,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var i=this.consumeStringToken(this.consumeCodePoint());return 0===i.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===lA||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:i.value}):(this.consumeBadUrlRemnants(),HA)}for(;;){var e=this.consumeCodePoint();if(e===lA||41===e)return{type:22,value:l.apply(void 0,A)};if(uA(e))return this.consumeWhiteSpace(),this.peekCodePoint(0)===lA||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:l.apply(void 0,A)}):(this.consumeBadUrlRemnants(),HA);if(34===e||39===e||40===e||fA(e))return this.consumeBadUrlRemnants(),HA;if(92===e){if(!pA(e,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),HA;A.push(this.consumeEscapedCodePoint())}else A.push(e)}},A.prototype.consumeWhiteSpace=function(){for(;uA(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(41===A||A===lA)return;pA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){for(var t="";A>0;){var i=Math.min(5e4,A);t+=l.apply(void 0,this._value.splice(0,i)),A-=i}return this._value.shift(),t},A.prototype.consumeStringToken=function(A){for(var t="",i=0;;){var e=this._value[i];if(e===lA||void 0===e||e===A)return{type:0,value:t+=this.consumeStringSlice(i)};if(10===e)return this._value.splice(0,i),IA;if(92===e){var n=this._value[i+1];n!==lA&&void 0!==n&&(10===n?(t+=this.consumeStringSlice(i),i=-1,this._value.shift()):pA(e,n)&&(t+=this.consumeStringSlice(i),t+=l(this.consumeEscapedCodePoint()),i=-1))}i++}},A.prototype.consumeNumber=function(){var A=[],t=4,i=this.peekCodePoint(0);for(i!==aA&&i!==sA||A.push(this.consumeCodePoint());cA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());i=this.peekCodePoint(0);var e=this.peekCodePoint(1);if(46===i&&cA(e))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;cA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());i=this.peekCodePoint(0),e=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((69===i||101===i)&&((e===aA||e===sA)&&cA(n)||cA(e)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;cA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[mA(A),t]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),t=A[0],i=A[1],e=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);return wA(e,n,r)?{type:15,number:t,flags:i,unit:this.consumeName()}:37===e?(this.consumeCodePoint(),{type:16,number:t,flags:i}):{type:17,number:t,flags:i}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(hA(A)){for(var t=l(A);hA(this.peekCodePoint(0))&&t.length<6;)t+=l(this.consumeCodePoint());uA(this.peekCodePoint(0))&&this.consumeCodePoint();var i=parseInt(t,16);return 0===i||function(A){return A>=55296&&A<=57343}(i)||i>1114111?65533:i}return A===lA?65533:A},A.prototype.consumeName=function(){for(var A="";;){var t=this.consumeCodePoint();if(gA(t))A+=l(t);else{if(!pA(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),A;A+=l(this.consumeEscapedCodePoint())}}},A}(),qA=function(){function A(A){this._tokens=A}return A.create=function(t){var i=new jA;return i.write(t),new A(i.read())},A.parseValue=function(t){return A.create(t).parseComponentValue()},A.parseValues=function(t){return A.create(t).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var A=this.consumeToken();31===A.type;)A=this.consumeToken();if(32===A.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var t=this.consumeComponentValue();do{A=this.consumeToken()}while(31===A.type);if(32===A.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var A=[];;){var t=this.consumeComponentValue();if(32===t.type)return A;A.push(t),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){for(var t={type:A,values:[]},i=this.consumeToken();;){if(32===i.type||WA(i,A))return t;this.reconsumeToken(i),t.values.push(this.consumeComponentValue()),i=this.consumeToken()}},A.prototype.consumeFunction=function(A){for(var t={name:A.value,values:[],type:18};;){var i=this.consumeToken();if(32===i.type||3===i.type)return t;this.reconsumeToken(i),t.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return void 0===A?PA:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),RA=function(A){return 15===A.type},GA=function(A){return 17===A.type},VA=function(A){return 20===A.type},zA=function(A){return 0===A.type},JA=function(A,t){return VA(A)&&A.value===t},XA=function(A){return 31!==A.type},_A=function(A){return 31!==A.type&&4!==A.type},YA=function(A){var t=[],i=[];return A.forEach((function(A){if(4===A.type){if(0===i.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(i),void(i=[])}31!==A.type&&i.push(A)})),i.length&&t.push(i),t},WA=function(A,t){return 11===t&&12===A.type||28===t&&29===A.type||2===t&&3===A.type},ZA=function(A){return 17===A.type||15===A.type},$A=function(A){return 16===A.type||ZA(A)},At=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},tt={type:17,number:0,flags:4},it={type:16,number:50,flags:4},et={type:16,number:100,flags:4},nt=function(A,t,i){var e=A[0],n=A[1];return[rt(e,t),rt(void 0!==n?n:e,i)]},rt=function(A,t){if(16===A.type)return A.number/100*t;if(RA(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},ot="grad",st="turn",at=function(A,t){if(15===t.type)switch(t.unit){case"deg":return Math.PI*t.number/180;case ot:return Math.PI/200*t.number;case"rad":return t.number;case st:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")},lt=function(A){return 15===A.type&&("deg"===A.unit||A.unit===ot||"rad"===A.unit||A.unit===st)},ct=function(A){switch(A.filter(VA).map((function(A){return A.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[tt,tt];case"to top":case"bottom":return ht(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[tt,et];case"to right":case"left":return ht(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[et,et];case"to bottom":case"top":return ht(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[et,tt];case"to left":case"right":return ht(270)}return 0},ht=function(A){return Math.PI*A/180},ut=function(A,t){if(18===t.type){var i=bt[t.name];if(void 0===i)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return i(A,t.values)}if(5===t.type){if(3===t.value.length){var e=t.value.substring(0,1),n=t.value.substring(1,2),r=t.value.substring(2,3);return ft(parseInt(e+e,16),parseInt(n+n,16),parseInt(r+r,16),1)}if(4===t.value.length){e=t.value.substring(0,1),n=t.value.substring(1,2),r=t.value.substring(2,3);var o=t.value.substring(3,4);return ft(parseInt(e+e,16),parseInt(n+n,16),parseInt(r+r,16),parseInt(o+o,16)/255)}if(6===t.value.length)return e=t.value.substring(0,2),n=t.value.substring(2,4),r=t.value.substring(4,6),ft(parseInt(e,16),parseInt(n,16),parseInt(r,16),1);if(8===t.value.length)return e=t.value.substring(0,2),n=t.value.substring(2,4),r=t.value.substring(4,6),o=t.value.substring(6,8),ft(parseInt(e,16),parseInt(n,16),parseInt(r,16),parseInt(o,16)/255)}if(20===t.type){var s=Qt[t.value.toUpperCase()];if(void 0!==s)return s}return Qt.TRANSPARENT},dt=function(A){return 0==(255&A)},gt=function(A){var t=255&A,i=255&A>>8,e=255&A>>16,n=255&A>>24;return t<255?"rgba("+n+","+e+","+i+","+t/255+")":"rgb("+n+","+e+","+i+")"},ft=function(A,t,i,e){return(A<<24|t<<16|i<<8|Math.round(255*e)<<0)>>>0},pt=function(A,t){if(17===A.type)return A.number;if(16===A.type){var i=3===t?1:255;return 3===t?A.number/100*i:Math.round(A.number/100*i)}return 0},wt=function(A,t){var i=t.filter(_A);if(3===i.length){var e=i.map(pt);return ft(e[0],e[1],e[2],1)}if(4===i.length){var n=i.map(pt);return ft(n[0],n[1],n[2],n[3])}return 0};function Bt(A,t,i){return i<0&&(i+=1),i>=1&&(i-=1),i<1/6?(t-A)*i*6+A:i<.5?t:i<2/3?6*(t-A)*(2/3-i)+A:A}var mt=function(A,t){var i=t.filter(_A),e=i[0],n=i[1],r=i[2],o=i[3],s=(17===e.type?ht(e.number):at(A,e))/(2*Math.PI),a=$A(n)?n.number/100:0,l=$A(r)?r.number/100:0,c=void 0!==o&&$A(o)?rt(o,1):1;if(0===a)return ft(255*l,255*l,255*l,1);var h=l<=.5?l*(a+1):l+a-l*a,u=2*l-h,d=Bt(u,h,s+1/3),g=Bt(u,h,s),f=Bt(u,h,s-1/3);return ft(255*d,255*g,255*f,c)},bt={hsl:mt,hsla:mt,rgb:wt,rgba:wt},vt=function(A,t){return ut(A,qA.create(t).parseComponentValue())},Qt={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Ct={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,t){return t.map((function(A){if(VA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Ft={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ut=function(A,t){var i=ut(A,t[0]),e=t[1];return e&&$A(e)?{color:i,stop:e}:{color:i,stop:null}},yt=function(A,t){var i=A[0],e=A[A.length-1];null===i.stop&&(i.stop=tt),null===e.stop&&(e.stop=et);for(var n=[],r=0,o=0;o<A.length;o++){var s=A[o].stop;if(null!==s){var a=rt(s,t);n.push(a>r?a:r),r=a}else n.push(null)}var l=null;for(o=0;o<n.length;o++){var c=n[o];if(null===c)null===l&&(l=o);else if(null!==l){for(var h=o-l,u=(c-n[l-1])/(h+1),d=1;d<=h;d++)n[l+d-1]=u*d;l=null}}return A.map((function(A,i){return{color:A.color,stop:Math.max(Math.min(1,n[i]/t),0)}}))},kt=function(A,t,i){var e="number"==typeof A?A:function(A,t,i){var e=t/2,n=i/2,r=rt(A[0],t)-e,o=n-rt(A[1],i);return(Math.atan2(o,r)+2*Math.PI)%(2*Math.PI)}(A,t,i),n=Math.abs(t*Math.sin(e))+Math.abs(i*Math.cos(e)),r=t/2,o=i/2,s=n/2,a=Math.sin(e-Math.PI/2)*s,l=Math.cos(e-Math.PI/2)*s;return[n,r-l,r+l,o-a,o+a]},xt=function(A,t){return Math.sqrt(A*A+t*t)},Lt=function(A,t,i,e,n){return[[0,0],[0,t],[A,0],[A,t]].reduce((function(A,t){var r=xt(i-t[0],e-t[1]);return(n?r<A.optimumDistance:r>A.optimumDistance)?{optimumCorner:t,optimumDistance:r}:A}),{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Et=function(A,t){var i=ht(180),e=[];return YA(t).forEach((function(t,n){if(0===n){var r=t[0];if(20===r.type&&-1!==["top","left","right","bottom"].indexOf(r.value))return void(i=ct(t));if(lt(r))return void(i=(at(A,r)+ht(270))%ht(360))}var o=Ut(A,t);e.push(o)})),{angle:i,stops:e,type:1}},Ht="closest-side",It="farthest-side",Nt="closest-corner",St="farthest-corner",Dt="circle",Mt="ellipse",Kt="cover",Ot="contain",Tt=function(A,t){var i=0,e=3,n=[],r=[];return YA(t).forEach((function(t,o){var s=!0;if(0===o?s=t.reduce((function(A,t){if(VA(t))switch(t.value){case"center":return r.push(it),!1;case"top":case"left":return r.push(tt),!1;case"right":case"bottom":return r.push(et),!1}else if($A(t)||ZA(t))return r.push(t),!1;return A}),s):1===o&&(s=t.reduce((function(A,t){if(VA(t))switch(t.value){case Dt:return i=0,!1;case Mt:return i=1,!1;case Ot:case Ht:return e=0,!1;case It:return e=1,!1;case Nt:return e=2,!1;case Kt:case St:return e=3,!1}else if(ZA(t)||$A(t))return Array.isArray(e)||(e=[]),e.push(t),!1;return A}),s)),s){var a=Ut(A,t);n.push(a)}})),{size:e,shape:i,stops:n,position:r,type:2}},Pt=function(A,t){if(22===t.type){var i={url:t.value,type:0};return A.cache.addImage(t.value),i}if(18===t.type){var e=qt[t.name];if(void 0===e)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return e(A,t.values)}throw new Error("Unsupported image type "+t.type)};var jt,qt={"linear-gradient":function(A,t){var i=ht(180),e=[];return YA(t).forEach((function(t,n){if(0===n){var r=t[0];if(20===r.type&&"to"===r.value)return void(i=ct(t));if(lt(r))return void(i=at(A,r))}var o=Ut(A,t);e.push(o)})),{angle:i,stops:e,type:1}},"-moz-linear-gradient":Et,"-ms-linear-gradient":Et,"-o-linear-gradient":Et,"-webkit-linear-gradient":Et,"radial-gradient":function(A,t){var i=0,e=3,n=[],r=[];return YA(t).forEach((function(t,o){var s=!0;if(0===o){var a=!1;s=t.reduce((function(A,t){if(a)if(VA(t))switch(t.value){case"center":return r.push(it),A;case"top":case"left":return r.push(tt),A;case"right":case"bottom":return r.push(et),A}else($A(t)||ZA(t))&&r.push(t);else if(VA(t))switch(t.value){case Dt:return i=0,!1;case Mt:return i=1,!1;case"at":return a=!0,!1;case Ht:return e=0,!1;case Kt:case It:return e=1,!1;case Ot:case Nt:return e=2,!1;case St:return e=3,!1}else if(ZA(t)||$A(t))return Array.isArray(e)||(e=[]),e.push(t),!1;return A}),s)}if(s){var l=Ut(A,t);n.push(l)}})),{size:e,shape:i,stops:n,position:r,type:2}},"-moz-radial-gradient":Tt,"-ms-radial-gradient":Tt,"-o-radial-gradient":Tt,"-webkit-radial-gradient":Tt,"-webkit-gradient":function(A,t){var i=ht(180),e=[],n=1;return YA(t).forEach((function(t,i){var r=t[0];if(0===i){if(VA(r)&&"linear"===r.value)return void(n=1);if(VA(r)&&"radial"===r.value)return void(n=2)}if(18===r.type)if("from"===r.name){var o=ut(A,r.values[0]);e.push({stop:tt,color:o})}else if("to"===r.name)o=ut(A,r.values[0]),e.push({stop:et,color:o});else if("color-stop"===r.name){var s=r.values.filter(_A);if(2===s.length){o=ut(A,s[1]);var a=s[0];GA(a)&&e.push({stop:{type:16,number:100*a.number,flags:a.flags},color:o})}}})),1===n?{angle:(i+ht(180))%ht(360),stops:e,type:n}:{size:3,shape:0,stops:e,position:[],type:n}}},Rt={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,t){if(0===t.length)return[];var i=t[0];return 20===i.type&&"none"===i.value?[]:t.filter((function(A){return _A(A)&&function(A){return!(20===A.type&&"none"===A.value||18===A.type&&!qt[A.name])}(A)})).map((function(t){return Pt(A,t)}))}},Gt={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,t){return t.map((function(A){if(VA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Vt={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,t){return YA(t).map((function(A){return A.filter($A)})).map(At)}},zt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,t){return YA(t).map((function(A){return A.filter(VA).map((function(A){return A.value})).join(" ")})).map(Jt)}},Jt=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}};!function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"}(jt||(jt={}));var Xt,_t={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,t){return YA(t).map((function(A){return A.filter(Yt)}))}},Yt=function(A){return VA(A)||$A(A)},Wt=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Zt=Wt("top"),$t=Wt("right"),Ai=Wt("bottom"),ti=Wt("left"),ii=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,t){return At(t.filter($A))}}},ei=ii("top-left"),ni=ii("top-right"),ri=ii("bottom-right"),oi=ii("bottom-left"),si=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},ai=si("top"),li=si("right"),ci=si("bottom"),hi=si("left"),ui=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,t){return RA(t)?t.number:0}}},di=ui("top"),gi=ui("right"),fi=ui("bottom"),pi=ui("left"),wi={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Bi={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},mi={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,t){return t.filter(VA).reduce((function(A,t){return A|bi(t.value)}),0)}},bi=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},vi={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Qi={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};!function(A){A.NORMAL="normal",A.STRICT="strict"}(Xt||(Xt={}));var Ci,Fi={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"strict":return Xt.STRICT;case"normal":default:return Xt.NORMAL}}},Ui={name:"line-height",initialValue:"normal",prefix:!1,type:4},yi=function(A,t){return VA(A)&&"normal"===A.value?1.2*t:17===A.type?t*A.number:$A(A)?rt(A,t):t},ki={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,t){return 20===t.type&&"none"===t.value?null:Pt(A,t)}},xi={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},Li={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Ei=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},Hi=Ei("top"),Ii=Ei("right"),Ni=Ei("bottom"),Si=Ei("left"),Di={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,t){return t.filter(VA).map((function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}}))}},Mi={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ki=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Oi=Ki("top"),Ti=Ki("right"),Pi=Ki("bottom"),ji=Ki("left"),qi={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Ri={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Gi={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return 1===t.length&&JA(t[0],"none")?[]:YA(t).map((function(t){for(var i={color:Qt.TRANSPARENT,offsetX:tt,offsetY:tt,blur:tt},e=0,n=0;n<t.length;n++){var r=t[n];ZA(r)?(0===e?i.offsetX=r:1===e?i.offsetY=r:i.blur=r,e++):i.color=ut(A,r)}return i}))}},Vi={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},zi={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,t){if(20===t.type&&"none"===t.value)return null;if(18===t.type){var i=Ji[t.name];if(void 0===i)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return i(t.values)}return null}},Ji={matrix:function(A){var t=A.filter((function(A){return 17===A.type})).map((function(A){return A.number}));return 6===t.length?t:null},matrix3d:function(A){var t=A.filter((function(A){return 17===A.type})).map((function(A){return A.number}));return 16===t.length?[t[0],t[1],t[4],t[5],t[12],t[13]]:null}},Xi={type:16,number:50,flags:4},_i=[Xi,Xi],Yi={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,t){var i=t.filter($A);return 2!==i.length?_i:[i[0],i[1]]}},Wi={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}};!function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"}(Ci||(Ci={}));for(var Zi={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"break-all":return Ci.BREAK_ALL;case"keep-all":return Ci.KEEP_ALL;case"normal":default:return Ci.NORMAL}}},$i={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,t){if(20===t.type)return{auto:!0,order:0};if(GA(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},Ae={name:"time",parse:function(A,t){if(15===t.type)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},te={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,t){return GA(t)?t.number:1}},ie={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ee={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,t){return t.filter(VA).map((function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(A){return 0!==A}))}},ne={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,t){var i=[],e=[];return t.forEach((function(A){switch(A.type){case 20:case 0:i.push(A.value);break;case 17:i.push(A.number.toString());break;case 4:e.push(i.join(" ")),i.length=0}})),i.length&&e.push(i.join(" ")),e.map((function(A){return-1===A.indexOf(" ")?A:"'"+A+"'"}))}},re={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},oe={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,t){if(GA(t))return t.number;if(VA(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},se={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return t.filter(VA).map((function(A){return A.value}))}},ae={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},le=function(A,t){return 0!=(A&t)},ce={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,t){if(0===t.length)return[];var i=t[0];return 20===i.type&&"none"===i.value?[]:t}},he={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(0===t.length)return null;var i=t[0];if(20===i.type&&"none"===i.value)return null;for(var e=[],n=t.filter(XA),r=0;r<n.length;r++){var o=n[r],s=n[r+1];if(20===o.type){var a=s&&GA(s)?s.number:1;e.push({counter:o.value,increment:a})}}return e}},ue={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(0===t.length)return[];for(var i=[],e=t.filter(XA),n=0;n<e.length;n++){var r=e[n],o=e[n+1];if(VA(r)&&"none"!==r.value){var s=o&&GA(o)?o.number:0;i.push({counter:r.value,reset:s})}}return i}},de={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,t){return t.filter(RA).map((function(t){return Ae.parse(A,t)}))}},ge={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(0===t.length)return null;var i=t[0];if(20===i.type&&"none"===i.value)return null;var e=[],n=t.filter(zA);if(n.length%2!=0)return null;for(var r=0;r<n.length;r+=2)e.push({open:n[r].value,close:n[r+1].value});return e}},fe=function(A,t,i){if(!A)return"";var e=A[Math.min(t,A.length-1)];return e?i?e.open:e.close:""},pe={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return 1===t.length&&JA(t[0],"none")?[]:YA(t).map((function(t){for(var i={color:255,offsetX:tt,offsetY:tt,blur:tt,spread:tt,inset:!1},e=0,n=0;n<t.length;n++){var r=t[n];JA(r,"inset")?i.inset=!0:ZA(r)?(0===e?i.offsetX=r:1===e?i.offsetY=r:2===e?i.blur=r:i.spread=r,e++):i.color=ut(A,r)}return i}))}},we={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,t){var i=[];return t.filter(VA).forEach((function(A){switch(A.value){case"stroke":i.push(1);break;case"fill":i.push(0);break;case"markers":i.push(2)}})),[0,1,2].forEach((function(A){-1===i.indexOf(A)&&i.push(A)})),i}},Be={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},me={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,t){return RA(t)?t.number:0}},be=function(){function A(A,t){var i,e;this.animationDuration=Ce(A,de,t.animationDuration),this.backgroundClip=Ce(A,Ct,t.backgroundClip),this.backgroundColor=Ce(A,Ft,t.backgroundColor),this.backgroundImage=Ce(A,Rt,t.backgroundImage),this.backgroundOrigin=Ce(A,Gt,t.backgroundOrigin),this.backgroundPosition=Ce(A,Vt,t.backgroundPosition),this.backgroundRepeat=Ce(A,zt,t.backgroundRepeat),this.backgroundSize=Ce(A,_t,t.backgroundSize),this.borderTopColor=Ce(A,Zt,t.borderTopColor),this.borderRightColor=Ce(A,$t,t.borderRightColor),this.borderBottomColor=Ce(A,Ai,t.borderBottomColor),this.borderLeftColor=Ce(A,ti,t.borderLeftColor),this.borderTopLeftRadius=Ce(A,ei,t.borderTopLeftRadius),this.borderTopRightRadius=Ce(A,ni,t.borderTopRightRadius),this.borderBottomRightRadius=Ce(A,ri,t.borderBottomRightRadius),this.borderBottomLeftRadius=Ce(A,oi,t.borderBottomLeftRadius),this.borderTopStyle=Ce(A,ai,t.borderTopStyle),this.borderRightStyle=Ce(A,li,t.borderRightStyle),this.borderBottomStyle=Ce(A,ci,t.borderBottomStyle),this.borderLeftStyle=Ce(A,hi,t.borderLeftStyle),this.borderTopWidth=Ce(A,di,t.borderTopWidth),this.borderRightWidth=Ce(A,gi,t.borderRightWidth),this.borderBottomWidth=Ce(A,fi,t.borderBottomWidth),this.borderLeftWidth=Ce(A,pi,t.borderLeftWidth),this.boxShadow=Ce(A,pe,t.boxShadow),this.color=Ce(A,wi,t.color),this.direction=Ce(A,Bi,t.direction),this.display=Ce(A,mi,t.display),this.float=Ce(A,vi,t.cssFloat),this.fontFamily=Ce(A,ne,t.fontFamily),this.fontSize=Ce(A,re,t.fontSize),this.fontStyle=Ce(A,ae,t.fontStyle),this.fontVariant=Ce(A,se,t.fontVariant),this.fontWeight=Ce(A,oe,t.fontWeight),this.letterSpacing=Ce(A,Qi,t.letterSpacing),this.lineBreak=Ce(A,Fi,t.lineBreak),this.lineHeight=Ce(A,Ui,t.lineHeight),this.listStyleImage=Ce(A,ki,t.listStyleImage),this.listStylePosition=Ce(A,xi,t.listStylePosition),this.listStyleType=Ce(A,Li,t.listStyleType),this.marginTop=Ce(A,Hi,t.marginTop),this.marginRight=Ce(A,Ii,t.marginRight),this.marginBottom=Ce(A,Ni,t.marginBottom),this.marginLeft=Ce(A,Si,t.marginLeft),this.opacity=Ce(A,te,t.opacity);var n=Ce(A,Di,t.overflow);this.overflowX=n[0],this.overflowY=n[n.length>1?1:0],this.overflowWrap=Ce(A,Mi,t.overflowWrap),this.paddingTop=Ce(A,Oi,t.paddingTop),this.paddingRight=Ce(A,Ti,t.paddingRight),this.paddingBottom=Ce(A,Pi,t.paddingBottom),this.paddingLeft=Ce(A,ji,t.paddingLeft),this.paintOrder=Ce(A,we,t.paintOrder),this.position=Ce(A,Ri,t.position),this.textAlign=Ce(A,qi,t.textAlign),this.textDecorationColor=Ce(A,ie,null!==(i=t.textDecorationColor)&&void 0!==i?i:t.color),this.textDecorationLine=Ce(A,ee,null!==(e=t.textDecorationLine)&&void 0!==e?e:t.textDecoration),this.textShadow=Ce(A,Gi,t.textShadow),this.textTransform=Ce(A,Vi,t.textTransform),this.transform=Ce(A,zi,t.transform),this.transformOrigin=Ce(A,Yi,t.transformOrigin),this.visibility=Ce(A,Wi,t.visibility),this.webkitTextStrokeColor=Ce(A,Be,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ce(A,me,t.webkitTextStrokeWidth),this.wordBreak=Ce(A,Zi,t.wordBreak),this.zIndex=Ce(A,$i,t.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},A.prototype.isTransparent=function(){return dt(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return 0!==this.position},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return 0!==this.float},A.prototype.isInlineLevel=function(){return le(this.display,4)||le(this.display,33554432)||le(this.display,268435456)||le(this.display,536870912)||le(this.display,67108864)||le(this.display,134217728)},A}(),ve=function(A,t){this.content=Ce(A,ce,t.content),this.quotes=Ce(A,ge,t.quotes)},Qe=function(A,t){this.counterIncrement=Ce(A,he,t.counterIncrement),this.counterReset=Ce(A,ue,t.counterReset)},Ce=function(A,t,i){var e=new jA,n=null!=i?i.toString():t.initialValue;e.write(n);var r=new qA(e.read());switch(t.type){case 2:var o=r.parseComponentValue();return t.parse(A,VA(o)?o.value:t.initialValue);case 0:return t.parse(A,r.parseComponentValue());case 1:return t.parse(A,r.parseComponentValues());case 4:return r.parseComponentValue();case 3:switch(t.format){case"angle":return at(A,r.parseComponentValue());case"color":return ut(A,r.parseComponentValue());case"image":return Pt(A,r.parseComponentValue());case"length":var s=r.parseComponentValue();return ZA(s)?s:tt;case"length-percentage":var a=r.parseComponentValue();return $A(a)?a:tt;case"time":return Ae.parse(A,r.parseComponentValue())}}},Fe=function(A,t){var i=function(A){switch(A.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(A);return 1===i||t===i},Ue=function(A,t){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Fe(t,3),this.styles=new be(A,window.getComputedStyle(t,null)),En(t)&&(this.styles.animationDuration.some((function(A){return A>0}))&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=s(this.context,t),Fe(t,4)&&(this.flags|=16)},ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ke="undefined"==typeof Uint8Array?[]:new Uint8Array(256),xe=0;xe<ye.length;xe++)ke[ye.charCodeAt(xe)]=xe;for(var Le=function(A,t,i){return A.slice?A.slice(t,i):new Uint16Array(Array.prototype.slice.call(A,t,i))},Ee=function(){function A(A,t,i,e,n,r){this.initialValue=A,this.errorValue=t,this.highStart=i,this.highValueIndex=e,this.index=n,this.data=r}return A.prototype.get=function(A){var t;if(A>=0){if(A<55296||A>56319&&A<=65535)return this.data[t=((t=this.index[A>>5])<<2)+(31&A)];if(A<=65535)return this.data[t=((t=this.index[2048+(A-55296>>5)])<<2)+(31&A)];if(A<this.highStart)return t=this.index[t=2080+(A>>11)],this.data[t=((t=this.index[t+=A>>5&63])<<2)+(31&A)];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),He="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ie="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Ne=0;Ne<He.length;Ne++)Ie[He.charCodeAt(Ne)]=Ne;var Se,De=8,Me=9,Ke=11,Oe=12,Te=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var i=A.length;if(!i)return"";for(var e=[],n=-1,r="";++n<i;){var o=A[n];o<=65535?e.push(o):e.push(55296+((o-=65536)>>10),o%1024+56320),(n+1===i||e.length>16384)&&(r+=String.fromCharCode.apply(String,e),e.length=0)}return r},Pe=function(A){var t,i,e,n=function(A){var t,i,e,n,r,o=.75*A.length,s=A.length,a=0;"="===A[A.length-1]&&(o--,"="===A[A.length-2]&&o--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t<s;t+=4)i=ke[A.charCodeAt(t)],e=ke[A.charCodeAt(t+1)],n=ke[A.charCodeAt(t+2)],r=ke[A.charCodeAt(t+3)],c[a++]=i<<2|e>>4,c[a++]=(15&e)<<4|n>>2,c[a++]=(3&n)<<6|63&r;return l}(A),r=Array.isArray(n)?function(A){for(var t=A.length,i=[],e=0;e<t;e+=4)i.push(A[e+3]<<24|A[e+2]<<16|A[e+1]<<8|A[e]);return i}(n):new Uint32Array(n),o=Array.isArray(n)?function(A){for(var t=A.length,i=[],e=0;e<t;e+=2)i.push(A[e+1]<<8|A[e]);return i}(n):new Uint16Array(n),s=Le(o,12,r[4]/2),a=2===r[5]?Le(o,(24+r[4])/2):(t=r,i=Math.ceil((24+r[4])/4),t.slice?t.slice(i,e):new Uint32Array(Array.prototype.slice.call(t,i,e)));return new Ee(r[0],r[1],r[2],r[3],s,a)}("AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="),je="×",qe=function(A){return Pe.get(A)},Re=function(A,t,i){var e=i-2,n=t[e],r=t[i-1],o=t[i];if(2===r&&3===o)return je;if(2===r||3===r||4===r)return"÷";if(2===o||3===o||4===o)return"÷";if(r===De&&-1!==[De,Me,Ke,Oe].indexOf(o))return je;if(!(r!==Ke&&r!==Me||o!==Me&&10!==o))return je;if((r===Oe||10===r)&&10===o)return je;if(13===o||5===o)return je;if(7===o)return je;if(1===r)return je;if(13===r&&14===o){for(;5===n;)n=t[--e];if(14===n)return je}if(15===r&&15===o){for(var s=0;15===n;)s++,n=t[--e];if(s%2==0)return je}return"÷"},Ge=function(A){var t=function(A){for(var t=[],i=0,e=A.length;i<e;){var n=A.charCodeAt(i++);if(n>=55296&&n<=56319&&i<e){var r=A.charCodeAt(i++);56320==(64512&r)?t.push(((1023&n)<<10)+(1023&r)+65536):(t.push(n),i--)}else t.push(n)}return t}(A),i=t.length,e=0,n=0,r=t.map(qe);return{next:function(){if(e>=i)return{done:!0,value:null};for(var A=je;e<i&&(A=Re(0,r,++e))===je;);if(A!==je||e===i){var o=Te.apply(null,t.slice(n,e));return n=e,{value:o,done:!1}}return{done:!0,value:null}}}},Ve=function(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]},ze=function(A,t,i,e,n){var r="http://www.w3.org/2000/svg",o=document.createElementNS(r,"svg"),s=document.createElementNS(r,"foreignObject");return o.setAttributeNS(null,"width",A.toString()),o.setAttributeNS(null,"height",t.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",i.toString()),s.setAttributeNS(null,"y",e.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(n),o},Je=function(A){return new Promise((function(t,i){var e=new Image;e.onload=function(){return t(e)},e.onerror=i,e.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))}))},Xe={get SUPPORT_RANGE_BOUNDS(){var A=function(A){if(A.createRange){var t=A.createRange();if(t.getBoundingClientRect){var i=A.createElement("boundtest");i.style.height="123px",i.style.display="block",A.body.appendChild(i),t.selectNode(i);var e=t.getBoundingClientRect(),n=Math.round(e.height);if(A.body.removeChild(i),123===n)return!0}}return!1}(document);return Object.defineProperty(Xe,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=Xe.SUPPORT_RANGE_BOUNDS&&function(A){var t=A.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",A.body.appendChild(t);var i=A.createRange();t.innerHTML="function"==typeof"".repeat?"👨".repeat(10):"";var e=t.firstChild,n=a(e.data).map((function(A){return l(A)})),r=0,o={},s=n.every((function(A,t){i.setStart(e,r),i.setEnd(e,r+A.length);var n=i.getBoundingClientRect();r+=A.length;var s=n.x>o.x||n.y>o.y;return o=n,0===t||s}));return A.body.removeChild(t),s}(document);return Object.defineProperty(Xe,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=function(A){var t=new Image,i=A.createElement("canvas"),e=i.getContext("2d");if(!e)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{e.drawImage(t,0,0),i.toDataURL()}catch(A){return!1}return!0}(document);return Object.defineProperty(Xe,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"==typeof Array.from&&"function"==typeof window.fetch?function(A){var t=A.createElement("canvas"),i=100;t.width=i,t.height=i;var e=t.getContext("2d");if(!e)return Promise.reject(!1);e.fillStyle="rgb(0, 255, 0)",e.fillRect(0,0,i,i);var n=new Image,r=t.toDataURL();n.src=r;var o=ze(i,i,0,0,n);return e.fillStyle="red",e.fillRect(0,0,i,i),Je(o).then((function(t){e.drawImage(t,0,0);var n=e.getImageData(0,0,i,i).data;e.fillStyle="red",e.fillRect(0,0,i,i);var o=A.createElement("div");return o.style.backgroundImage="url("+r+")",o.style.height="100px",Ve(n)?Je(ze(i,i,0,0,o)):Promise.reject(!1)})).then((function(A){return e.drawImage(A,0,0),Ve(e.getImageData(0,0,i,i).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(Xe,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=void 0!==(new Image).crossOrigin;return Object.defineProperty(Xe,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Xe,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Xe,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Xe,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},_e=function(A,t){this.text=A,this.bounds=t},Ye=function(A,t){var i=t.ownerDocument;if(i){var e=i.createElement("html2canvaswrapper");e.appendChild(t.cloneNode(!0));var n=t.parentNode;if(n){n.replaceChild(e,t);var r=s(A,e);return e.firstChild&&n.replaceChild(e.firstChild,e),r}}return o.EMPTY},We=function(A,t,i){var e=A.ownerDocument;if(!e)throw new Error("Node has no owner document");var n=e.createRange();return n.setStart(A,t),n.setEnd(A,t+i),n},Ze=function(A){if(Xe.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(A)).map((function(A){return A.segment}))}return function(A){for(var t,i=Ge(A),e=[];!(t=i.next()).done;)t.value&&e.push(t.value.slice());return e}(A)},$e=function(A,t){return 0!==t.letterSpacing?Ze(A):function(A,t){if(Xe.SUPPORT_NATIVE_TEXT_SEGMENTATION){var i=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(i.segment(A)).map((function(A){return A.segment}))}return tn(A,t)}(A,t)},An=[32,160,4961,65792,65793,4153,4241],tn=function(A,t){for(var i,e=function(A,t){var i=a(A),e=rA(i,t),n=e[0],r=e[1],o=e[2],s=i.length,l=0,c=0;return{next:function(){if(c>=s)return{done:!0,value:null};for(var A=z;c<s&&(A=nA(i,r,n,++c,o))===z;);if(A!==z||c===s){var t=new oA(i,A,l,c);return l=c,{value:t,done:!1}}return{done:!0,value:null}}}}(A,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),n=[],r=function(){if(i.value){var A=i.value.slice(),t=a(A),e="";t.forEach((function(A){-1===An.indexOf(A)?e+=l(A):(e.length&&n.push(e),n.push(l(A)),e="")})),e.length&&n.push(e)}};!(i=e.next()).done;)r();return n},en=function(A,t,i){this.text=nn(t.data,i.textTransform),this.textBounds=function(A,t,i,e){var n=$e(t,i),r=[],s=0;return n.forEach((function(t){if(i.textDecorationLine.length||t.trim().length>0)if(Xe.SUPPORT_RANGE_BOUNDS){var n=We(e,s,t.length).getClientRects();if(n.length>1){var a=Ze(t),l=0;a.forEach((function(t){r.push(new _e(t,o.fromDOMRectList(A,We(e,l+s,t.length).getClientRects()))),l+=t.length}))}else r.push(new _e(t,o.fromDOMRectList(A,n)))}else{var c=e.splitText(t.length);r.push(new _e(t,Ye(A,e))),e=c}else Xe.SUPPORT_RANGE_BOUNDS||(e=e.splitText(t.length));s+=t.length})),r}(A,this.text,i,t)},nn=function(A,t){switch(t){case 1:return A.toLowerCase();case 3:return A.replace(rn,on);case 2:return A.toUpperCase();default:return A}},rn=/(^|\s|:|-|\(|\))([a-z])/g,on=function(A,t,i){return A.length>0?t+i.toUpperCase():A},sn=function(A){function i(t,i){var e=A.call(this,t,i)||this;return e.src=i.currentSrc||i.src,e.intrinsicWidth=i.naturalWidth,e.intrinsicHeight=i.naturalHeight,e.context.cache.addImage(e.src),e}return t(i,A),i}(Ue),an=function(A){function i(t,i){var e=A.call(this,t,i)||this;return e.canvas=i,e.intrinsicWidth=i.width,e.intrinsicHeight=i.height,e}return t(i,A),i}(Ue),ln=function(A){function i(t,i){var e=A.call(this,t,i)||this,n=new XMLSerializer,r=s(t,i);return i.setAttribute("width",r.width+"px"),i.setAttribute("height",r.height+"px"),e.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(i)),e.intrinsicWidth=i.width.baseVal.value,e.intrinsicHeight=i.height.baseVal.value,e.context.cache.addImage(e.svg),e}return t(i,A),i}(Ue),cn=function(A){function i(t,i){var e=A.call(this,t,i)||this;return e.value=i.value,e}return t(i,A),i}(Ue),hn=function(A){function i(t,i){var e=A.call(this,t,i)||this;return e.start=i.start,e.reversed="boolean"==typeof i.reversed&&!0===i.reversed,e}return t(i,A),i}(Ue),un=[{type:15,flags:0,unit:"px",number:3}],dn=[{type:16,flags:0,number:50}],gn="checkbox",fn="radio",pn="password",wn=707406591,Bn=function(A){function i(t,i){var e,n,r,s=A.call(this,t,i)||this;switch(s.type=i.type.toLowerCase(),s.checked=i.checked,s.value=0===(r=(n=i).type===pn?new Array(n.value.length+1).join("•"):n.value).length?n.placeholder||"":r,s.type!==gn&&s.type!==fn||(s.styles.backgroundColor=3739148031,s.styles.borderTopColor=s.styles.borderRightColor=s.styles.borderBottomColor=s.styles.borderLeftColor=2779096575,s.styles.borderTopWidth=s.styles.borderRightWidth=s.styles.borderBottomWidth=s.styles.borderLeftWidth=1,s.styles.borderTopStyle=s.styles.borderRightStyle=s.styles.borderBottomStyle=s.styles.borderLeftStyle=1,s.styles.backgroundClip=[0],s.styles.backgroundOrigin=[0],s.bounds=(e=s.bounds).width>e.height?new o(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new o(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e),s.type){case gn:s.styles.borderTopRightRadius=s.styles.borderTopLeftRadius=s.styles.borderBottomRightRadius=s.styles.borderBottomLeftRadius=un;break;case fn:s.styles.borderTopRightRadius=s.styles.borderTopLeftRadius=s.styles.borderBottomRightRadius=s.styles.borderBottomLeftRadius=dn}return s}return t(i,A),i}(Ue),mn=function(A){function i(t,i){var e=A.call(this,t,i)||this,n=i.options[i.selectedIndex||0];return e.value=n&&n.text||"",e}return t(i,A),i}(Ue),bn=function(A){function i(t,i){var e=A.call(this,t,i)||this;return e.value=i.value,e}return t(i,A),i}(Ue),vn=function(A){function i(t,i){var e=A.call(this,t,i)||this;e.src=i.src,e.width=parseInt(i.width,10)||0,e.height=parseInt(i.height,10)||0,e.backgroundColor=e.styles.backgroundColor;try{if(i.contentWindow&&i.contentWindow.document&&i.contentWindow.document.documentElement){e.tree=Un(t,i.contentWindow.document.documentElement);var n=i.contentWindow.document.documentElement?vt(t,getComputedStyle(i.contentWindow.document.documentElement).backgroundColor):Qt.TRANSPARENT,r=i.contentWindow.document.body?vt(t,getComputedStyle(i.contentWindow.document.body).backgroundColor):Qt.TRANSPARENT;e.backgroundColor=dt(n)?dt(r)?e.styles.backgroundColor:r:n}}catch(A){}return e}return t(i,A),i}(Ue),Qn=["OL","UL","MENU"],Cn=function(A,t,i,e){for(var n=t.firstChild,r=void 0;n;n=r)if(r=n.nextSibling,xn(n)&&n.data.trim().length>0)i.textNodes.push(new en(A,n,i.styles));else if(Ln(n))if(Gn(n)&&n.assignedNodes)n.assignedNodes().forEach((function(t){return Cn(A,t,i,e)}));else{var o=Fn(A,n);o.styles.isVisible()&&(yn(n,o,e)?o.flags|=4:kn(o.styles)&&(o.flags|=2),-1!==Qn.indexOf(n.tagName)&&(o.flags|=8),i.elements.push(o),n.shadowRoot?Cn(A,n.shadowRoot,o,e):qn(n)||Dn(n)||Rn(n)||Cn(A,n,o,e))}},Fn=function(A,t){return Tn(t)?new sn(A,t):Kn(t)?new an(A,t):Dn(t)?new ln(A,t):In(t)?new cn(A,t):Nn(t)?new hn(A,t):Sn(t)?new Bn(A,t):Rn(t)?new mn(A,t):qn(t)?new bn(A,t):Pn(t)?new vn(A,t):new Ue(A,t)},Un=function(A,t){var i=Fn(A,t);return i.flags|=4,Cn(A,t,i,i),i},yn=function(A,t,i){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Mn(A)&&i.styles.isTransparent()},kn=function(A){return A.isPositioned()||A.isFloating()},xn=function(A){return A.nodeType===Node.TEXT_NODE},Ln=function(A){return A.nodeType===Node.ELEMENT_NODE},En=function(A){return Ln(A)&&void 0!==A.style&&!Hn(A)},Hn=function(A){return"object"==typeof A.className},In=function(A){return"LI"===A.tagName},Nn=function(A){return"OL"===A.tagName},Sn=function(A){return"INPUT"===A.tagName},Dn=function(A){return"svg"===A.tagName},Mn=function(A){return"BODY"===A.tagName},Kn=function(A){return"CANVAS"===A.tagName},On=function(A){return"VIDEO"===A.tagName},Tn=function(A){return"IMG"===A.tagName},Pn=function(A){return"IFRAME"===A.tagName},jn=function(A){return"STYLE"===A.tagName},qn=function(A){return"TEXTAREA"===A.tagName},Rn=function(A){return"SELECT"===A.tagName},Gn=function(A){return"SLOT"===A.tagName},Vn=function(A){return A.tagName.indexOf("-")>0},zn=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(A){var t=this.counters[A];return t&&t.length?t[t.length-1]:1},A.prototype.getCounterValues=function(A){return this.counters[A]||[]},A.prototype.pop=function(A){var t=this;A.forEach((function(A){return t.counters[A].pop()}))},A.prototype.parse=function(A){var t=this,i=A.counterIncrement,e=A.counterReset,n=!0;null!==i&&i.forEach((function(A){var i=t.counters[A.counter];i&&0!==A.increment&&(n=!1,i.length||i.push(1),i[Math.max(0,i.length-1)]+=A.increment)}));var r=[];return n&&e.forEach((function(A){var i=t.counters[A.counter];r.push(A.counter),i||(i=t.counters[A.counter]=[]),i.push(A.reset)})),r},A}(),Jn={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Xn={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},_n={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Yn={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Wn=function(A,t,i,e,n,r){return A<t||A>i?or(A,n,r.length>0):e.integers.reduce((function(t,i,n){for(;A>=i;)A-=i,t+=e.values[n];return t}),"")+r},Zn=function(A,t,i,e){var n="";do{i||A--,n=e(A)+n,A/=t}while(A*t>=t);return n},$n=function(A,t,i,e,n){var r=i-t+1;return(A<0?"-":"")+(Zn(Math.abs(A),r,e,(function(A){return l(Math.floor(A%r)+t)}))+n)},Ar=function(A,t,i){void 0===i&&(i=". ");var e=t.length;return Zn(Math.abs(A),e,!1,(function(A){return t[Math.floor(A%e)]}))+i},tr=function(A,t,i,e,n,r){if(A<-9999||A>9999)return or(A,4,n.length>0);var o=Math.abs(A),s=n;if(0===o)return t[0]+s;for(var a=0;o>0&&a<=4;a++){var l=o%10;0===l&&le(r,1)&&""!==s?s=t[l]+s:l>1||1===l&&0===a||1===l&&1===a&&le(r,2)||1===l&&1===a&&le(r,4)&&A>100||1===l&&a>1&&le(r,8)?s=t[l]+(a>0?i[a-1]:"")+s:1===l&&a>0&&(s=i[a-1]+s),o=Math.floor(o/10)}return(A<0?e:"")+s},ir="十百千萬",er="拾佰仟萬",nr="マイナス",rr="마이너스",or=function(A,t,i){var e=i?". ":"",n=i?"、":"",r=i?", ":"",o=i?" ":"";switch(t){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=$n(A,48,57,!0,e);return s.length<4?"0"+s:s;case 4:return Ar(A,"〇一二三四五六七八九",n);case 6:return Wn(A,1,3999,Jn,3,e).toLowerCase();case 7:return Wn(A,1,3999,Jn,3,e);case 8:return $n(A,945,969,!1,e);case 9:return $n(A,97,122,!1,e);case 10:return $n(A,65,90,!1,e);case 11:return $n(A,1632,1641,!0,e);case 12:case 49:return Wn(A,1,9999,Xn,3,e);case 35:return Wn(A,1,9999,Xn,3,e).toLowerCase();case 13:return $n(A,2534,2543,!0,e);case 14:case 30:return $n(A,6112,6121,!0,e);case 15:return Ar(A,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Ar(A,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return tr(A,"零一二三四五六七八九",ir,"負",n,14);case 47:return tr(A,"零壹貳參肆伍陸柒捌玖",er,"負",n,15);case 42:return tr(A,"零一二三四五六七八九",ir,"负",n,14);case 41:return tr(A,"零壹贰叁肆伍陆柒捌玖",er,"负",n,15);case 26:return tr(A,"〇一二三四五六七八九","十百千万",nr,n,0);case 25:return tr(A,"零壱弐参四伍六七八九","拾百千万",nr,n,7);case 31:return tr(A,"영일이삼사오육칠팔구","십백천만",rr,r,7);case 33:return tr(A,"零一二三四五六七八九","十百千萬",rr,r,0);case 32:return tr(A,"零壹貳參四五六七八九","拾百千",rr,r,7);case 18:return $n(A,2406,2415,!0,e);case 20:return Wn(A,1,19999,Yn,3,e);case 21:return $n(A,2790,2799,!0,e);case 22:return $n(A,2662,2671,!0,e);case 22:return Wn(A,1,10999,_n,3,e);case 23:return Ar(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ar(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return $n(A,3302,3311,!0,e);case 28:return Ar(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Ar(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return $n(A,3792,3801,!0,e);case 37:return $n(A,6160,6169,!0,e);case 38:return $n(A,4160,4169,!0,e);case 39:return $n(A,2918,2927,!0,e);case 40:return $n(A,1776,1785,!0,e);case 43:return $n(A,3046,3055,!0,e);case 44:return $n(A,3174,3183,!0,e);case 45:return $n(A,3664,3673,!0,e);case 46:return $n(A,3872,3881,!0,e);case 3:default:return $n(A,48,57,!0,e)}},sr="data-html2canvas-ignore",ar=function(){function A(A,t,i){if(this.context=A,this.options=i,this.scrolledElements=[],this.referenceElement=t,this.counters=new zn,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(A,t){var i=this,r=cr(A,t);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var o=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,a=r.contentWindow,l=a.document,c=dr(r).then((function(){return e(i,void 0,void 0,(function(){var A,i;return n(this,(function(e){switch(e.label){case 0:return this.scrolledElements.forEach(Br),a&&(a.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||a.scrollY===t.top&&a.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-t.left,a.scrollY-t.top,0,0))),A=this.options.onclone,void 0===(i=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:e.sent(),e.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,ur(l)]:[3,4];case 3:e.sent(),e.label=4;case 4:return"function"==typeof A?[2,Promise.resolve().then((function(){return A(l,i)})).then((function(){return r}))]:[2,r]}}))}))}));return l.open(),l.write(pr(document.doctype)+"<html></html>"),wr(this.referenceElement.ownerDocument,o,s),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},A.prototype.createElementClone=function(A){if(Fe(A,2),Kn(A))return this.createCanvasClone(A);if(On(A))return this.createVideoClone(A);if(jn(A))return this.createStyleClone(A);var t=A.cloneNode(!1);return Tn(t)&&(Tn(A)&&A.currentSrc&&A.currentSrc!==A.src&&(t.src=A.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Vn(t)?this.createCustomElementClone(t):t},A.prototype.createCustomElementClone=function(A){var t=document.createElement("html2canvascustomelement");return fr(A.style,t),t},A.prototype.createStyleClone=function(A){try{var t=A.sheet;if(t&&t.cssRules){var i=[].slice.call(t.cssRules,0).reduce((function(A,t){return t&&"string"==typeof t.cssText?A+t.cssText:A}),""),e=A.cloneNode(!1);return e.textContent=i,e}}catch(A){if(this.context.logger.error("Unable to access cssRules property",A),"SecurityError"!==A.name)throw A}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){var t;if(this.options.inlineImages&&A.ownerDocument){var i=A.ownerDocument.createElement("img");try{return i.src=A.toDataURL(),i}catch(t){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var e=A.cloneNode(!1);try{e.width=A.width,e.height=A.height;var n=A.getContext("2d"),r=e.getContext("2d");if(r)if(!this.options.allowTaint&&n)r.putImageData(n.getImageData(0,0,A.width,A.height),0,0);else{var o=null!==(t=A.getContext("webgl2"))&&void 0!==t?t:A.getContext("webgl");if(o){var s=o.getContextAttributes();!1===(null==s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}r.drawImage(A,0,0)}return e}catch(t){this.context.logger.info("Unable to clone canvas as it is tainted",A)}return e},A.prototype.createVideoClone=function(A){var t=A.ownerDocument.createElement("canvas");t.width=A.offsetWidth,t.height=A.offsetHeight;var i=t.getContext("2d");try{return i&&(i.drawImage(A,0,0,t.width,t.height),this.options.allowTaint||i.getImageData(0,0,t.width,t.height)),t}catch(t){this.context.logger.info("Unable to clone video as it is tainted",A)}var e=A.ownerDocument.createElement("canvas");return e.width=A.offsetWidth,e.height=A.offsetHeight,e},A.prototype.appendChildNode=function(A,t,i){Ln(t)&&("SCRIPT"===t.tagName||t.hasAttribute(sr)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&Ln(t)&&jn(t)||A.appendChild(this.cloneNode(t,i))},A.prototype.cloneChildNodes=function(A,t,i){for(var e=this,n=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;n;n=n.nextSibling)if(Ln(n)&&Gn(n)&&"function"==typeof n.assignedNodes){var r=n.assignedNodes();r.length&&r.forEach((function(A){return e.appendChildNode(t,A,i)}))}else this.appendChildNode(t,n,i)},A.prototype.cloneNode=function(A,t){if(xn(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var i=A.ownerDocument.defaultView;if(i&&Ln(A)&&(En(A)||Hn(A))){var e=this.createElementClone(A);e.style.transitionProperty="none";var n=i.getComputedStyle(A),r=i.getComputedStyle(A,":before"),o=i.getComputedStyle(A,":after");this.referenceElement===A&&En(e)&&(this.clonedReferenceElement=e),Mn(e)&&Qr(e);var s=this.counters.parse(new Qe(this.context,n)),a=this.resolvePseudoContent(A,e,r,Se.BEFORE);Vn(A)&&(t=!0),On(A)||this.cloneChildNodes(A,e,t),a&&e.insertBefore(a,e.firstChild);var l=this.resolvePseudoContent(A,e,o,Se.AFTER);return l&&e.appendChild(l),this.counters.pop(s),(n&&(this.options.copyStyles||Hn(A))&&!Pn(A)||t)&&fr(n,e),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([e,A.scrollLeft,A.scrollTop]),(qn(A)||Rn(A))&&(qn(e)||Rn(e))&&(e.value=A.value),e}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,t,i,e){var n=this;if(i){var r=i.content,o=t.ownerDocument;if(o&&r&&"none"!==r&&"-moz-alt-content"!==r&&"none"!==i.display){this.counters.parse(new Qe(this.context,i));var s=new ve(this.context,i),a=o.createElement("html2canvaspseudoelement");fr(i,a),s.content.forEach((function(t){if(0===t.type)a.appendChild(o.createTextNode(t.value));else if(22===t.type){var i=o.createElement("img");i.src=t.value,i.style.opacity="1",a.appendChild(i)}else if(18===t.type){if("attr"===t.name){var e=t.values.filter(VA);e.length&&a.appendChild(o.createTextNode(A.getAttribute(e[0].value)||""))}else if("counter"===t.name){var r=t.values.filter(_A),l=r[1];if((u=r[0])&&VA(u)){var c=n.counters.getCounterValue(u.value),h=l&&VA(l)?Li.parse(n.context,l.value):3;a.appendChild(o.createTextNode(or(c,h,!1)))}}else if("counters"===t.name){var u,d=t.values.filter(_A),g=d[1];if(l=d[2],(u=d[0])&&VA(u)){var f=n.counters.getCounterValues(u.value),p=l&&VA(l)?Li.parse(n.context,l.value):3,w=g&&0===g.type?g.value:"",B=f.map((function(A){return or(A,p,!1)})).join(w);a.appendChild(o.createTextNode(B))}}}else if(20===t.type)switch(t.value){case"open-quote":a.appendChild(o.createTextNode(fe(s.quotes,n.quoteDepth++,!0)));break;case"close-quote":a.appendChild(o.createTextNode(fe(s.quotes,--n.quoteDepth,!1)));break;default:a.appendChild(o.createTextNode(t.value))}})),a.className=mr+" "+br;var l=e===Se.BEFORE?" "+mr:" "+br;return Hn(t)?t.className.baseValue+=l:t.className+=l,a}}},A.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},A}();!function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"}(Se||(Se={}));var lr,cr=function(A,t){var i=A.createElement("iframe");return i.className="html2canvas-container",i.style.visibility="hidden",i.style.position="fixed",i.style.left="-10000px",i.style.top="0px",i.style.border="0",i.width=t.width.toString(),i.height=t.height.toString(),i.scrolling="no",i.setAttribute(sr,"true"),A.body.appendChild(i),i},hr=function(A){return new Promise((function(t){A.complete?t():A.src?(A.onload=t,A.onerror=t):t()}))},ur=function(A){return Promise.all([].slice.call(A.images,0).map(hr))},dr=function(A){return new Promise((function(t,i){var e=A.contentWindow;if(!e)return i("No window assigned for iframe");var n=e.document;e.onload=A.onload=function(){e.onload=A.onload=null;var i=setInterval((function(){n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(i),t(A))}),50)}}))},gr=["all","d","content"],fr=function(A,t){for(var i=A.length-1;i>=0;i--){var e=A.item(i);-1===gr.indexOf(e)&&t.style.setProperty(e,A.getPropertyValue(e))}return t},pr=function(A){var t="";return A&&(t+="<!DOCTYPE ",A.name&&(t+=A.name),A.internalSubset&&(t+=A.internalSubset),A.publicId&&(t+='"'+A.publicId+'"'),A.systemId&&(t+='"'+A.systemId+'"'),t+=">"),t},wr=function(A,t,i){A&&A.defaultView&&(t!==A.defaultView.pageXOffset||i!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(t,i)},Br=function(A){var t=A[0],i=A[2];t.scrollLeft=A[1],t.scrollTop=i},mr="___html2canvas___pseudoelement_before",br="___html2canvas___pseudoelement_after",vr='{\n content: "" !important;\n display: none !important;\n}',Qr=function(A){Cr(A,"."+mr+":before"+vr+"\n ."+br+":after"+vr)},Cr=function(A,t){var i=A.ownerDocument;if(i){var e=i.createElement("style");e.textContent=t,A.appendChild(e)}},Fr=function(){function A(){}return A.getOrigin=function(t){var i=A._link;return i?(i.href=t,i.href=i.href,i.protocol+i.hostname+i.port):"about:blank"},A.isSameOrigin=function(t){return A.getOrigin(t)===A._origin},A.setContext=function(t){A._link=t.document.createElement("a"),A._origin=A.getOrigin(t.location.href)},A._origin="about:blank",A}(),Ur=function(){function A(A,t){this.context=A,this._options=t,this._cache={}}return A.prototype.addImage=function(A){var t=Promise.resolve();return this.has(A)?t:Ir(A)||Lr(A)?((this._cache[A]=this.loadImage(A)).catch((function(){})),t):t},A.prototype.match=function(A){return this._cache[A]},A.prototype.loadImage=function(A){return e(this,void 0,void 0,(function(){var t,i,e,r,o=this;return n(this,(function(n){switch(n.label){case 0:return t=Fr.isSameOrigin(A),i=!Er(A)&&!0===this._options.useCORS&&Xe.SUPPORT_CORS_IMAGES&&!t,e=!Er(A)&&!t&&!Ir(A)&&"string"==typeof this._options.proxy&&Xe.SUPPORT_CORS_XHR&&!i,t||!1!==this._options.allowTaint||Er(A)||Ir(A)||e||i?(r=A,e?[4,this.proxy(r)]:[3,2]):[2];case 1:r=n.sent(),n.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise((function(A,t){var e=new Image;e.onload=function(){return A(e)},e.onerror=t,(Hr(r)||i)&&(e.crossOrigin="anonymous"),e.src=r,!0===e.complete&&setTimeout((function(){return A(e)}),500),o._options.imageTimeout>0&&setTimeout((function(){return t("Timed out ("+o._options.imageTimeout+"ms) loading image")}),o._options.imageTimeout)}))];case 3:return[2,n.sent()]}}))}))},A.prototype.has=function(A){return void 0!==this._cache[A]},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(A){var t=this,i=this._options.proxy;if(!i)throw new Error("No proxy defined");var e=A.substring(0,256);return new Promise((function(n,r){var o=Xe.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===o)n(s.response);else{var A=new FileReader;A.addEventListener("load",(function(){return n(A.result)}),!1),A.addEventListener("error",(function(A){return r(A)}),!1),A.readAsDataURL(s.response)}else r("Failed to proxy resource "+e+" with status code "+s.status)},s.onerror=r;var a=i.indexOf("?")>-1?"&":"?";if(s.open("GET",""+i+a+"url="+encodeURIComponent(A)+"&responseType="+o),"text"!==o&&s instanceof XMLHttpRequest&&(s.responseType=o),t._options.imageTimeout){var l=t._options.imageTimeout;s.timeout=l,s.ontimeout=function(){return r("Timed out ("+l+"ms) proxying "+e)}}s.send()}))},A}(),yr=/^data:image\/svg\+xml/i,kr=/^data:image\/.*;base64,/i,xr=/^data:image\/.*/i,Lr=function(A){return Xe.SUPPORT_SVG_DRAWING||!Nr(A)},Er=function(A){return xr.test(A)},Hr=function(A){return kr.test(A)},Ir=function(A){return"blob"===A.substr(0,4)},Nr=function(A){return"svg"===A.substr(-3).toLowerCase()||yr.test(A)},Sr=function(){function A(A,t){this.type=0,this.x=A,this.y=t}return A.prototype.add=function(t,i){return new A(this.x+t,this.y+i)},A}(),Dr=function(A,t,i){return new Sr(A.x+(t.x-A.x)*i,A.y+(t.y-A.y)*i)},Mr=function(){function A(A,t,i,e){this.type=1,this.start=A,this.startControl=t,this.endControl=i,this.end=e}return A.prototype.subdivide=function(t,i){var e=Dr(this.start,this.startControl,t),n=Dr(this.startControl,this.endControl,t),r=Dr(this.endControl,this.end,t),o=Dr(e,n,t),s=Dr(n,r,t),a=Dr(o,s,t);return i?new A(this.start,e,o,a):new A(a,s,r,this.end)},A.prototype.add=function(t,i){return new A(this.start.add(t,i),this.startControl.add(t,i),this.endControl.add(t,i),this.end.add(t,i))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),Kr=function(A){return 1===A.type},Or=function(A){var t=A.styles,i=A.bounds,e=nt(t.borderTopLeftRadius,i.width,i.height),n=e[0],r=e[1],o=nt(t.borderTopRightRadius,i.width,i.height),s=o[0],a=o[1],l=nt(t.borderBottomRightRadius,i.width,i.height),c=l[0],h=l[1],u=nt(t.borderBottomLeftRadius,i.width,i.height),d=u[0],g=u[1],f=[];f.push((n+s)/i.width),f.push((d+c)/i.width),f.push((r+g)/i.height),f.push((a+h)/i.height);var p=Math.max.apply(Math,f);p>1&&(n/=p,r/=p,s/=p,a/=p,c/=p,h/=p,d/=p,g/=p);var w=i.width-s,B=i.height-h,m=i.width-c,b=i.height-g,v=t.borderTopWidth,Q=t.borderRightWidth,C=t.borderBottomWidth,F=t.borderLeftWidth,U=rt(t.paddingTop,A.bounds.width),y=rt(t.paddingRight,A.bounds.width),k=rt(t.paddingBottom,A.bounds.width),x=rt(t.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||r>0?Tr(i.left+F/3,i.top+v/3,n-F/3,r-v/3,lr.TOP_LEFT):new Sr(i.left+F/3,i.top+v/3),this.topRightBorderDoubleOuterBox=n>0||r>0?Tr(i.left+w,i.top+v/3,s-Q/3,a-v/3,lr.TOP_RIGHT):new Sr(i.left+i.width-Q/3,i.top+v/3),this.bottomRightBorderDoubleOuterBox=c>0||h>0?Tr(i.left+m,i.top+B,c-Q/3,h-C/3,lr.BOTTOM_RIGHT):new Sr(i.left+i.width-Q/3,i.top+i.height-C/3),this.bottomLeftBorderDoubleOuterBox=d>0||g>0?Tr(i.left+F/3,i.top+b,d-F/3,g-C/3,lr.BOTTOM_LEFT):new Sr(i.left+F/3,i.top+i.height-C/3),this.topLeftBorderDoubleInnerBox=n>0||r>0?Tr(i.left+2*F/3,i.top+2*v/3,n-2*F/3,r-2*v/3,lr.TOP_LEFT):new Sr(i.left+2*F/3,i.top+2*v/3),this.topRightBorderDoubleInnerBox=n>0||r>0?Tr(i.left+w,i.top+2*v/3,s-2*Q/3,a-2*v/3,lr.TOP_RIGHT):new Sr(i.left+i.width-2*Q/3,i.top+2*v/3),this.bottomRightBorderDoubleInnerBox=c>0||h>0?Tr(i.left+m,i.top+B,c-2*Q/3,h-2*C/3,lr.BOTTOM_RIGHT):new Sr(i.left+i.width-2*Q/3,i.top+i.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=d>0||g>0?Tr(i.left+2*F/3,i.top+b,d-2*F/3,g-2*C/3,lr.BOTTOM_LEFT):new Sr(i.left+2*F/3,i.top+i.height-2*C/3),this.topLeftBorderStroke=n>0||r>0?Tr(i.left+F/2,i.top+v/2,n-F/2,r-v/2,lr.TOP_LEFT):new Sr(i.left+F/2,i.top+v/2),this.topRightBorderStroke=n>0||r>0?Tr(i.left+w,i.top+v/2,s-Q/2,a-v/2,lr.TOP_RIGHT):new Sr(i.left+i.width-Q/2,i.top+v/2),this.bottomRightBorderStroke=c>0||h>0?Tr(i.left+m,i.top+B,c-Q/2,h-C/2,lr.BOTTOM_RIGHT):new Sr(i.left+i.width-Q/2,i.top+i.height-C/2),this.bottomLeftBorderStroke=d>0||g>0?Tr(i.left+F/2,i.top+b,d-F/2,g-C/2,lr.BOTTOM_LEFT):new Sr(i.left+F/2,i.top+i.height-C/2),this.topLeftBorderBox=n>0||r>0?Tr(i.left,i.top,n,r,lr.TOP_LEFT):new Sr(i.left,i.top),this.topRightBorderBox=s>0||a>0?Tr(i.left+w,i.top,s,a,lr.TOP_RIGHT):new Sr(i.left+i.width,i.top),this.bottomRightBorderBox=c>0||h>0?Tr(i.left+m,i.top+B,c,h,lr.BOTTOM_RIGHT):new Sr(i.left+i.width,i.top+i.height),this.bottomLeftBorderBox=d>0||g>0?Tr(i.left,i.top+b,d,g,lr.BOTTOM_LEFT):new Sr(i.left,i.top+i.height),this.topLeftPaddingBox=n>0||r>0?Tr(i.left+F,i.top+v,Math.max(0,n-F),Math.max(0,r-v),lr.TOP_LEFT):new Sr(i.left+F,i.top+v),this.topRightPaddingBox=s>0||a>0?Tr(i.left+Math.min(w,i.width-Q),i.top+v,w>i.width+Q?0:Math.max(0,s-Q),Math.max(0,a-v),lr.TOP_RIGHT):new Sr(i.left+i.width-Q,i.top+v),this.bottomRightPaddingBox=c>0||h>0?Tr(i.left+Math.min(m,i.width-F),i.top+Math.min(B,i.height-C),Math.max(0,c-Q),Math.max(0,h-C),lr.BOTTOM_RIGHT):new Sr(i.left+i.width-Q,i.top+i.height-C),this.bottomLeftPaddingBox=d>0||g>0?Tr(i.left+F,i.top+Math.min(b,i.height-C),Math.max(0,d-F),Math.max(0,g-C),lr.BOTTOM_LEFT):new Sr(i.left+F,i.top+i.height-C),this.topLeftContentBox=n>0||r>0?Tr(i.left+F+x,i.top+v+U,Math.max(0,n-(F+x)),Math.max(0,r-(v+U)),lr.TOP_LEFT):new Sr(i.left+F+x,i.top+v+U),this.topRightContentBox=s>0||a>0?Tr(i.left+Math.min(w,i.width+F+x),i.top+v+U,w>i.width+F+x?0:s-F+x,a-(v+U),lr.TOP_RIGHT):new Sr(i.left+i.width-(Q+y),i.top+v+U),this.bottomRightContentBox=c>0||h>0?Tr(i.left+Math.min(m,i.width-(F+x)),i.top+Math.min(B,i.height+v+U),Math.max(0,c-(Q+y)),h-(C+k),lr.BOTTOM_RIGHT):new Sr(i.left+i.width-(Q+y),i.top+i.height-(C+k)),this.bottomLeftContentBox=d>0||g>0?Tr(i.left+F+x,i.top+b,Math.max(0,d-(F+x)),g-(C+k),lr.BOTTOM_LEFT):new Sr(i.left+F+x,i.top+i.height-(C+k))};!function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(lr||(lr={}));var Tr=function(A,t,i,e,n){var r=(Math.sqrt(2)-1)/3*4,o=i*r,s=e*r,a=A+i,l=t+e;switch(n){case lr.TOP_LEFT:return new Mr(new Sr(A,l),new Sr(A,l-s),new Sr(a-o,t),new Sr(a,t));case lr.TOP_RIGHT:return new Mr(new Sr(A,t),new Sr(A+o,t),new Sr(a,l-s),new Sr(a,l));case lr.BOTTOM_RIGHT:return new Mr(new Sr(a,t),new Sr(a,t+s),new Sr(A+o,l),new Sr(A,l));case lr.BOTTOM_LEFT:default:return new Mr(new Sr(a,l),new Sr(a-o,l),new Sr(A,t+s),new Sr(A,t))}},Pr=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},jr=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},qr=function(A,t,i){this.offsetX=A,this.offsetY=t,this.matrix=i,this.type=0,this.target=6},Rr=function(A,t){this.path=A,this.target=t,this.type=1},Gr=function(A){this.opacity=A,this.type=2,this.target=6},Vr=function(A){return 1===A.type},zr=function(A,t){return A.length===t.length&&A.some((function(A,i){return A===t[i]}))},Jr=function(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Xr=function(){function A(A,t){if(this.container=A,this.parent=t,this.effects=[],this.curves=new Or(this.container),this.container.styles.opacity<1&&this.effects.push(new Gr(this.container.styles.opacity)),null!==this.container.styles.transform&&this.effects.push(new qr(this.container.bounds.left+this.container.styles.transformOrigin[0].number,this.container.bounds.top+this.container.styles.transformOrigin[1].number,this.container.styles.transform)),0!==this.container.styles.overflowX){var i=Pr(this.curves),e=jr(this.curves);zr(i,e)?this.effects.push(new Rr(i,6)):(this.effects.push(new Rr(i,2)),this.effects.push(new Rr(e,4)))}}return A.prototype.getEffects=function(A){for(var t=-1===[2,3].indexOf(this.container.styles.position),i=this.parent,e=this.effects.slice(0);i;){var n=i.effects.filter((function(A){return!Vr(A)}));if(t||0!==i.container.styles.position||!i.parent){if(e.unshift.apply(e,n),t=-1===[2,3].indexOf(i.container.styles.position),0!==i.container.styles.overflowX){var r=Pr(i.curves),o=jr(i.curves);zr(r,o)||e.unshift(new Rr(o,6))}}else e.unshift.apply(e,n);i=i.parent}return e.filter((function(t){return le(t.target,A)}))},A}(),_r=function(A,t,i,e){A.container.elements.forEach((function(n){var r=le(n.flags,4),o=le(n.flags,2),s=new Xr(n,A);le(n.styles.display,2048)&&e.push(s);var a=le(n.flags,8)?[]:e;if(r||o){var l=r||n.styles.isPositioned()?i:t,c=new Jr(s);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var h=n.styles.zIndex.order;if(h<0){var u=0;l.negativeZIndex.some((function(A,t){return h>A.element.container.styles.zIndex.order?(u=t,!1):u>0})),l.negativeZIndex.splice(u,0,c)}else if(h>0){var d=0;l.positiveZIndex.some((function(A,t){return h>=A.element.container.styles.zIndex.order?(d=t+1,!1):d>0})),l.positiveZIndex.splice(d,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else n.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);_r(s,c,r?c:i,a)}else n.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),_r(s,t,i,a);le(n.flags,8)&&Yr(n,a)}))},Yr=function(A,t){for(var i=A instanceof hn?A.start:1,e=A instanceof hn&&A.reversed,n=0;n<t.length;n++){var r=t[n];r.container instanceof cn&&"number"==typeof r.container.value&&0!==r.container.value&&(i=r.container.value),r.listValue=or(i,r.container.styles.listStyleType,!0),i+=e?-1:1}},Wr=function(A,t){switch(t){case 0:return $r(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return $r(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return $r(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);case 3:default:return $r(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},Zr=function(A,t){var i=[];return Kr(A)?i.push(A.subdivide(.5,!1)):i.push(A),Kr(t)?i.push(t.subdivide(.5,!0)):i.push(t),i},$r=function(A,t,i,e){var n=[];return Kr(A)?n.push(A.subdivide(.5,!1)):n.push(A),Kr(i)?n.push(i.subdivide(.5,!0)):n.push(i),Kr(e)?n.push(e.subdivide(.5,!0).reverse()):n.push(e),Kr(t)?n.push(t.subdivide(.5,!1).reverse()):n.push(t),n},Ao=function(A){var t=A.styles;return A.bounds.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},to=function(A){var t=A.styles,i=A.bounds,e=rt(t.paddingLeft,i.width),n=rt(t.paddingRight,i.width),r=rt(t.paddingTop,i.width),o=rt(t.paddingBottom,i.width);return i.add(e+t.borderLeftWidth,r+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+e+n),-(t.borderTopWidth+t.borderBottomWidth+r+o))},io=function(A,t,i){var e=function(A,t){return 0===A?t.bounds:2===A?to(t):Ao(t)}(oo(A.styles.backgroundOrigin,t),A),n=function(A,t){return 0===A?t.bounds:2===A?to(t):Ao(t)}(oo(A.styles.backgroundClip,t),A),r=ro(oo(A.styles.backgroundSize,t),i,e),o=r[0],s=r[1],a=nt(oo(A.styles.backgroundPosition,t),e.width-o,e.height-s);return[so(oo(A.styles.backgroundRepeat,t),a,r,e,n),Math.round(e.left+a[0]),Math.round(e.top+a[1]),o,s]},eo=function(A){return VA(A)&&A.value===jt.AUTO},no=function(A){return"number"==typeof A},ro=function(A,t,i){var e=t[0],n=t[1],r=t[2],o=A[0],s=A[1];if(!o)return[0,0];if($A(o)&&s&&$A(s))return[rt(o,i.width),rt(s,i.height)];var a=no(r);if(VA(o)&&(o.value===jt.CONTAIN||o.value===jt.COVER))return no(r)?i.width/i.height<r!=(o.value===jt.COVER)?[i.width,i.width/r]:[i.height*r,i.height]:[i.width,i.height];var l=no(e),c=no(n),h=l||c;if(eo(o)&&(!s||eo(s)))return l&&c?[e,n]:a||h?h&&a?[l?e:n*r,c?n:e/r]:[l?e:i.width,c?n:i.height]:[i.width,i.height];if(a){var u=0,d=0;return $A(o)?u=rt(o,i.width):$A(s)&&(d=rt(s,i.height)),eo(o)?u=d*r:s&&!eo(s)||(d=u/r),[u,d]}var g=null,f=null;if($A(o)?g=rt(o,i.width):s&&$A(s)&&(f=rt(s,i.height)),null===g||s&&!eo(s)||(f=l&&c?g/e*n:i.height),null!==f&&eo(o)&&(g=l&&c?f/n*e:i.width),null!==g&&null!==f)return[g,f];throw new Error("Unable to calculate background-size for element")},oo=function(A,t){var i=A[t];return void 0===i?A[0]:i},so=function(A,t,i,e,n){var r=t[0],o=t[1],s=i[0],a=i[1];switch(A){case 2:return[new Sr(Math.round(e.left),Math.round(e.top+o)),new Sr(Math.round(e.left+e.width),Math.round(e.top+o)),new Sr(Math.round(e.left+e.width),Math.round(a+e.top+o)),new Sr(Math.round(e.left),Math.round(a+e.top+o))];case 3:return[new Sr(Math.round(e.left+r),Math.round(e.top)),new Sr(Math.round(e.left+r+s),Math.round(e.top)),new Sr(Math.round(e.left+r+s),Math.round(e.height+e.top)),new Sr(Math.round(e.left+r),Math.round(e.height+e.top))];case 1:return[new Sr(Math.round(e.left+r),Math.round(e.top+o)),new Sr(Math.round(e.left+r+s),Math.round(e.top+o)),new Sr(Math.round(e.left+r+s),Math.round(e.top+o+a)),new Sr(Math.round(e.left+r),Math.round(e.top+o+a))];default:return[new Sr(Math.round(n.left),Math.round(n.top)),new Sr(Math.round(n.left+n.width),Math.round(n.top)),new Sr(Math.round(n.left+n.width),Math.round(n.height+n.top)),new Sr(Math.round(n.left),Math.round(n.height+n.top))]}},ao="Hidden Text",lo=function(){function A(A){this._data={},this._document=A}return A.prototype.parseMetrics=function(A,t){var i=this._document.createElement("div"),e=this._document.createElement("img"),n=this._document.createElement("span"),r=this._document.body;i.style.visibility="hidden",i.style.fontFamily=A,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.style.whiteSpace="nowrap",r.appendChild(i),e.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",e.width=1,e.height=1,e.style.margin="0",e.style.padding="0",e.style.verticalAlign="baseline",n.style.fontFamily=A,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(ao)),i.appendChild(n),i.appendChild(e);var o=e.offsetTop-n.offsetTop+2;i.removeChild(n),i.appendChild(this._document.createTextNode(ao)),i.style.lineHeight="normal",e.style.verticalAlign="super";var s=e.offsetTop-i.offsetTop+2;return r.removeChild(i),{baseline:o,middle:s}},A.prototype.getMetrics=function(A,t){var i=A+" "+t;return void 0===this._data[i]&&(this._data[i]=this.parseMetrics(A,t)),this._data[i]},A}(),co=function(A,t){this.context=A,this.options=t},ho=function(A){function i(t,i){var e=A.call(this,t,i)||this;return e._activeEffects=[],e.canvas=i.canvas?i.canvas:document.createElement("canvas"),e.ctx=e.canvas.getContext("2d"),i.canvas||(e.canvas.width=Math.floor(i.width*i.scale),e.canvas.height=Math.floor(i.height*i.scale),e.canvas.style.width=i.width+"px",e.canvas.style.height=i.height+"px"),e.fontMetrics=new lo(document),e.ctx.scale(e.options.scale,e.options.scale),e.ctx.translate(-i.x,-i.y),e.ctx.textBaseline="bottom",e._activeEffects=[],e.context.logger.debug("Canvas renderer initialized ("+i.width+"x"+i.height+") with scale "+i.scale),e}return t(i,A),i.prototype.applyEffects=function(A){for(var t=this;this._activeEffects.length;)this.popEffect();A.forEach((function(A){return t.applyEffect(A)}))},i.prototype.applyEffect=function(A){this.ctx.save(),function(A){return 2===A.type}(A)&&(this.ctx.globalAlpha=A.opacity),function(A){return 0===A.type}(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),Vr(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},i.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},i.prototype.renderStack=function(A){return e(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return A.element.container.styles.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},i.prototype.renderNode=function(A){return e(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return le(A.container.flags,16),A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(A)];case 2:t.sent(),t.label=3;case 3:return[2]}}))}))},i.prototype.renderTextWithLetterSpacing=function(A,t,i){var e=this;0===t?this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+i):Ze(A.text).reduce((function(t,n){return e.ctx.fillText(n,t,A.bounds.top+i),t+e.ctx.measureText(n).width}),A.bounds.left)},i.prototype.createFontStyle=function(A){var t=A.fontVariant.filter((function(A){return"normal"===A||"small-caps"===A})).join(""),i=wo(A.fontFamily).join(", "),e=RA(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,t,A.fontWeight,e,i].join(" "),i,e]},i.prototype.renderTextNode=function(A,t){return e(this,void 0,void 0,(function(){var i,e,r,o,s,a,l,c=this;return n(this,(function(){return i=this.createFontStyle(t),e=i[1],r=i[2],this.ctx.font=i[0],this.ctx.direction=1===t.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",o=this.fontMetrics.getMetrics(e,r),s=o.baseline,a=o.middle,l=t.paintOrder,A.textBounds.forEach((function(A){l.forEach((function(i){switch(i){case 0:c.ctx.fillStyle=gt(t.color),c.renderTextWithLetterSpacing(A,t.letterSpacing,s);var e=t.textShadow;e.length&&A.text.trim().length&&(e.slice(0).reverse().forEach((function(i){c.ctx.shadowColor=gt(i.color),c.ctx.shadowOffsetX=i.offsetX.number*c.options.scale,c.ctx.shadowOffsetY=i.offsetY.number*c.options.scale,c.ctx.shadowBlur=i.blur.number,c.renderTextWithLetterSpacing(A,t.letterSpacing,s)})),c.ctx.shadowColor="",c.ctx.shadowOffsetX=0,c.ctx.shadowOffsetY=0,c.ctx.shadowBlur=0),t.textDecorationLine.length&&(c.ctx.fillStyle=gt(t.textDecorationColor||t.color),t.textDecorationLine.forEach((function(t){switch(t){case 1:c.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top+s),A.bounds.width,1);break;case 2:c.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top),A.bounds.width,1);break;case 3:c.ctx.fillRect(A.bounds.left,Math.ceil(A.bounds.top+a),A.bounds.width,1)}})));break;case 1:t.webkitTextStrokeWidth&&A.text.trim().length&&(c.ctx.strokeStyle=gt(t.webkitTextStrokeColor),c.ctx.lineWidth=t.webkitTextStrokeWidth,c.ctx.lineJoin=window.chrome?"miter":"round",c.ctx.strokeText(A.text,A.bounds.left,A.bounds.top+s)),c.ctx.strokeStyle="",c.ctx.lineWidth=0,c.ctx.lineJoin="miter"}}))})),[2]}))}))},i.prototype.renderReplacedElement=function(A,t,i){if(i&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var e=to(A),n=jr(t);this.path(n),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(i,0,0,A.intrinsicWidth,A.intrinsicHeight,e.left,e.top,e.width,e.height),this.ctx.restore()}},i.prototype.renderNodeContent=function(A){return e(this,void 0,void 0,(function(){var t,e,r,s,a,l,c,h,u,d,g,f,p,w,B,m;return n(this,(function(n){switch(n.label){case 0:this.applyEffects(A.getEffects(4)),e=A.curves,r=(t=A.container).styles,s=0,a=t.textNodes,n.label=1;case 1:return s<a.length?[4,this.renderTextNode(a[s],r)]:[3,4];case 2:n.sent(),n.label=3;case 3:return s++,[3,1];case 4:if(!(t instanceof sn))return[3,8];n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return p=n.sent(),this.renderReplacedElement(t,e,p),[3,8];case 7:return n.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof an&&this.renderReplacedElement(t,e,t.canvas),!(t instanceof ln))return[3,12];n.label=9;case 9:return n.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return p=n.sent(),this.renderReplacedElement(t,e,p),[3,12];case 11:return n.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof vn&&t.tree?[4,new i(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}).render(t.tree)]:[3,14];case 13:l=n.sent(),t.width&&t.height&&this.ctx.drawImage(l,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),n.label=14;case 14:if(t instanceof Bn&&(c=Math.min(t.bounds.width,t.bounds.height),t.type===gn?t.checked&&(this.ctx.save(),this.path([new Sr(t.bounds.left+.39363*c,t.bounds.top+.79*c),new Sr(t.bounds.left+.16*c,t.bounds.top+.5549*c),new Sr(t.bounds.left+.27347*c,t.bounds.top+.44071*c),new Sr(t.bounds.left+.39694*c,t.bounds.top+.5649*c),new Sr(t.bounds.left+.72983*c,t.bounds.top+.23*c),new Sr(t.bounds.left+.84*c,t.bounds.top+.34085*c),new Sr(t.bounds.left+.39363*c,t.bounds.top+.79*c)]),this.ctx.fillStyle=gt(wn),this.ctx.fill(),this.ctx.restore()):t.type===fn&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+c/2,t.bounds.top+c/2,c/4,0,2*Math.PI,!0),this.ctx.fillStyle=gt(wn),this.ctx.fill(),this.ctx.restore())),uo(t)&&t.value.length){switch(h=this.createFontStyle(r),u=this.fontMetrics.getMetrics(B=h[0],h[1]).baseline,this.ctx.font=B,this.ctx.fillStyle=gt(r.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=fo(t.styles.textAlign),m=to(t),d=0,t.styles.textAlign){case 1:d+=m.width/2;break;case 2:d+=m.width}g=m.add(d,0,0,-m.height/2+1),this.ctx.save(),this.path([new Sr(m.left,m.top),new Sr(m.left+m.width,m.top),new Sr(m.left+m.width,m.top+m.height),new Sr(m.left,m.top+m.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new _e(t.value,g),r.letterSpacing,u),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!le(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if(0!==(f=t.styles.listStyleImage).type)return[3,18];p=void 0,w=f.url,n.label=15;case 15:return n.trys.push([15,17,,18]),[4,this.context.cache.match(w)];case 16:return p=n.sent(),this.ctx.drawImage(p,t.bounds.left-(p.width+10),t.bounds.top),[3,18];case 17:return n.sent(),this.context.logger.error("Error loading list-style-image "+w),[3,18];case 18:return[3,20];case 19:A.listValue&&-1!==t.styles.listStyleType&&(B=this.createFontStyle(r)[0],this.ctx.font=B,this.ctx.fillStyle=gt(r.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",m=new o(t.bounds.left,t.bounds.top+rt(t.styles.paddingTop,t.bounds.width),t.bounds.width,yi(r.lineHeight,r.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new _e(A.listValue,m),r.letterSpacing,yi(r.lineHeight,r.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),n.label=20;case 20:return[2]}}))}))},i.prototype.renderStackContent=function(A){return e(this,void 0,void 0,(function(){var t,i,e,r,o,s,a,l,c,h,u,d,g,f;return n(this,(function(n){switch(n.label){case 0:return le(A.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:n.sent(),t=0,i=A.negativeZIndex,n.label=2;case 2:return t<i.length?[4,this.renderStack(i[t])]:[3,5];case 3:n.sent(),n.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:n.sent(),e=0,r=A.nonInlineLevel,n.label=7;case 7:return e<r.length?[4,this.renderNode(r[e])]:[3,10];case 8:n.sent(),n.label=9;case 9:return e++,[3,7];case 10:o=0,s=A.nonPositionedFloats,n.label=11;case 11:return o<s.length?[4,this.renderStack(s[o])]:[3,14];case 12:n.sent(),n.label=13;case 13:return o++,[3,11];case 14:a=0,l=A.nonPositionedInlineLevel,n.label=15;case 15:return a<l.length?[4,this.renderStack(l[a])]:[3,18];case 16:n.sent(),n.label=17;case 17:return a++,[3,15];case 18:c=0,h=A.inlineLevel,n.label=19;case 19:return c<h.length?[4,this.renderNode(h[c])]:[3,22];case 20:n.sent(),n.label=21;case 21:return c++,[3,19];case 22:u=0,d=A.zeroOrAutoZIndexOrTransformedOrOpacity,n.label=23;case 23:return u<d.length?[4,this.renderStack(d[u])]:[3,26];case 24:n.sent(),n.label=25;case 25:return u++,[3,23];case 26:g=0,f=A.positiveZIndex,n.label=27;case 27:return g<f.length?[4,this.renderStack(f[g])]:[3,30];case 28:n.sent(),n.label=29;case 29:return g++,[3,27];case 30:return[2]}}))}))},i.prototype.mask=function(A){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(A.slice(0).reverse()),this.ctx.closePath()},i.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},i.prototype.formatPath=function(A){var t=this;A.forEach((function(A,i){var e=Kr(A)?A.start:A;0===i?t.ctx.moveTo(e.x,e.y):t.ctx.lineTo(e.x,e.y),Kr(A)&&t.ctx.bezierCurveTo(A.startControl.x,A.startControl.y,A.endControl.x,A.endControl.y,A.end.x,A.end.y)}))},i.prototype.renderRepeat=function(A,t,i,e){this.path(A),this.ctx.fillStyle=t,this.ctx.translate(i,e),this.ctx.fill(),this.ctx.translate(-i,-e)},i.prototype.resizeImage=function(A,t,i){var e;if(A.width===t&&A.height===i)return A;var n=(null!==(e=this.canvas.ownerDocument)&&void 0!==e?e:document).createElement("canvas");return n.width=Math.max(1,t),n.height=Math.max(1,i),n.getContext("2d").drawImage(A,0,0,A.width,A.height,0,0,t,i),n},i.prototype.renderBackgroundImage=function(A){return e(this,void 0,void 0,(function(){var t,i,e,r,o;return n(this,(function(s){switch(s.label){case 0:t=A.styles.backgroundImage.length-1,i=function(i){var r,o,s,a,l,c,h,u,d,g,f,p,w,B,m,b,v,Q,C,F,U,y,k,x,L,E,H,I,N,S,D;return n(this,(function(n){switch(n.label){case 0:if(0!==i.type)return[3,5];r=void 0,o=i.url,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,e.context.cache.match(o)];case 2:return r=n.sent(),[3,4];case 3:return n.sent(),e.context.logger.error("Error loading background-image "+o),[3,4];case 4:return r&&(s=io(A,t,[r.width,r.height,r.width/r.height]),b=s[0],y=s[1],k=s[2],B=e.ctx.createPattern(e.resizeImage(r,C=s[3],F=s[4]),"repeat"),e.renderRepeat(b,B,y,k)),[3,6];case 5:1===i.type?(a=io(A,t,[null,null,null]),b=a[0],y=a[1],k=a[2],l=kt(i.angle,C=a[3],F=a[4]),c=l[0],h=l[1],u=l[2],d=l[3],g=l[4],(f=document.createElement("canvas")).width=C,f.height=F,p=f.getContext("2d"),w=p.createLinearGradient(h,d,u,g),yt(i.stops,c).forEach((function(A){return w.addColorStop(A.stop,gt(A.color))})),p.fillStyle=w,p.fillRect(0,0,C,F),C>0&&F>0&&(B=e.ctx.createPattern(f,"repeat"),e.renderRepeat(b,B,y,k))):function(A){return 2===A.type}(i)&&(m=io(A,t,[null,null,null]),b=m[0],v=m[1],Q=m[2],F=m[4],y=rt((U=0===i.position.length?[it]:i.position)[0],C=m[3]),k=rt(U[U.length-1],F),x=function(A,t,i,e,n){var r=0,o=0;switch(A.size){case 0:0===A.shape?r=o=Math.min(Math.abs(t),Math.abs(t-e),Math.abs(i),Math.abs(i-n)):1===A.shape&&(r=Math.min(Math.abs(t),Math.abs(t-e)),o=Math.min(Math.abs(i),Math.abs(i-n)));break;case 2:if(0===A.shape)r=o=Math.min(xt(t,i),xt(t,i-n),xt(t-e,i),xt(t-e,i-n));else if(1===A.shape){var s=Math.min(Math.abs(i),Math.abs(i-n))/Math.min(Math.abs(t),Math.abs(t-e)),a=Lt(e,n,t,i,!0);o=s*(r=xt(a[0]-t,(a[1]-i)/s))}break;case 1:0===A.shape?r=o=Math.max(Math.abs(t),Math.abs(t-e),Math.abs(i),Math.abs(i-n)):1===A.shape&&(r=Math.max(Math.abs(t),Math.abs(t-e)),o=Math.max(Math.abs(i),Math.abs(i-n)));break;case 3:if(0===A.shape)r=o=Math.max(xt(t,i),xt(t,i-n),xt(t-e,i),xt(t-e,i-n));else if(1===A.shape){s=Math.max(Math.abs(i),Math.abs(i-n))/Math.max(Math.abs(t),Math.abs(t-e));var l=Lt(e,n,t,i,!1);o=s*(r=xt(l[0]-t,(l[1]-i)/s))}}return Array.isArray(A.size)&&(r=rt(A.size[0],e),o=2===A.size.length?rt(A.size[1],n):r),[r,o]}(i,y,k,C,F),E=x[1],(L=x[0])>0&&E>0&&(H=e.ctx.createRadialGradient(v+y,Q+k,0,v+y,Q+k,L),yt(i.stops,2*L).forEach((function(A){return H.addColorStop(A.stop,gt(A.color))})),e.path(b),e.ctx.fillStyle=H,L!==E?(I=A.bounds.left+.5*A.bounds.width,N=A.bounds.top+.5*A.bounds.height,D=1/(S=E/L),e.ctx.save(),e.ctx.translate(I,N),e.ctx.transform(1,0,0,S,0,0),e.ctx.translate(-I,-N),e.ctx.fillRect(v,D*(Q-N)+N,C,F*D),e.ctx.restore()):e.ctx.fill())),n.label=6;case 6:return t--,[2]}}))},e=this,r=0,o=A.styles.backgroundImage.slice(0).reverse(),s.label=1;case 1:return r<o.length?[5,i(o[r])]:[3,4];case 2:s.sent(),s.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}))},i.prototype.renderSolidBorder=function(A,t,i){return e(this,void 0,void 0,(function(){return n(this,(function(){return this.path(Wr(i,t)),this.ctx.fillStyle=gt(A),this.ctx.fill(),[2]}))}))},i.prototype.renderDoubleBorder=function(A,t,i,r){return e(this,void 0,void 0,(function(){var e,o;return n(this,(function(n){switch(n.label){case 0:return t<3?[4,this.renderSolidBorder(A,i,r)]:[3,2];case 1:return n.sent(),[2];case 2:return e=function(A,t){switch(t){case 0:return $r(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return $r(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return $r(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);case 3:default:return $r(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}}(r,i),this.path(e),this.ctx.fillStyle=gt(A),this.ctx.fill(),o=function(A,t){switch(t){case 0:return $r(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return $r(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return $r(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);case 3:default:return $r(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}}(r,i),this.path(o),this.ctx.fill(),[2]}}))}))},i.prototype.renderNodeBackgroundAndBorders=function(A){return e(this,void 0,void 0,(function(){var t,i,e,r,o,s,a,l,c=this;return n(this,(function(n){switch(n.label){case 0:return this.applyEffects(A.getEffects(2)),i=!dt((t=A.container.styles).backgroundColor)||t.backgroundImage.length,e=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],r=go(oo(t.backgroundClip,0),A.curves),i||t.boxShadow.length?(this.ctx.save(),this.path(r),this.ctx.clip(),dt(t.backgroundColor)||(this.ctx.fillStyle=gt(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:n.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach((function(t){c.ctx.save();var i,e,n,r,o=Pr(A.curves),s=t.inset?0:1e4,a=(i=(t.inset?1:-1)*t.spread.number-s,e=(t.inset?1:-1)*t.spread.number,n=t.spread.number*(t.inset?-2:2),r=t.spread.number*(t.inset?-2:2),o.map((function(A,t){switch(t){case 0:return A.add(i,e);case 1:return A.add(i+n,e);case 2:return A.add(i+n,e+r);case 3:return A.add(i,e+r)}return A})));t.inset?(c.path(o),c.ctx.clip(),c.mask(a)):(c.mask(o),c.ctx.clip(),c.path(a)),c.ctx.shadowOffsetX=t.offsetX.number+s,c.ctx.shadowOffsetY=t.offsetY.number,c.ctx.shadowColor=gt(t.color),c.ctx.shadowBlur=t.blur.number,c.ctx.fillStyle=t.inset?gt(t.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()})),n.label=2;case 2:o=0,s=0,a=e,n.label=3;case 3:return s<a.length?0!==(l=a[s]).style&&!dt(l.color)&&l.width>0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,o,A.curves,2)]:[3,11]:[3,13];case 4:return n.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,o,A.curves,3)];case 6:return n.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,o,A.curves)];case 8:return n.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,o,A.curves)];case 10:n.sent(),n.label=11;case 11:o++,n.label=12;case 12:return s++,[3,3];case 13:return[2]}}))}))},i.prototype.renderDashedDottedBorder=function(A,t,i,r,o){return e(this,void 0,void 0,(function(){var e,s,a,l,c,h,u,d,g,f,p,w,B,m,b,v;return n(this,(function(){return this.ctx.save(),e=function(A,t){switch(t){case 0:return Zr(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return Zr(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return Zr(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);case 3:default:return Zr(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}}(r,i),s=Wr(r,i),2===o&&(this.path(s),this.ctx.clip()),Kr(s[0])?(a=s[0].start.x,l=s[0].start.y):(a=s[0].x,l=s[0].y),Kr(s[1])?(c=s[1].end.x,h=s[1].end.y):(c=s[1].x,h=s[1].y),u=0===i||2===i?Math.abs(a-c):Math.abs(l-h),this.ctx.beginPath(),this.formatPath(3===o?e:s.slice(0,2)),d=t<3?3*t:2*t,g=t<3?2*t:t,3===o&&(d=t,g=t),f=!0,u<=2*d?f=!1:u<=2*d+g?(d*=p=u/(2*d+g),g*=p):(w=Math.floor((u+g)/(d+g)),B=(u-w*d)/(w-1),g=(m=(u-(w+1)*d)/w)<=0||Math.abs(g-B)<Math.abs(g-m)?B:m),f&&this.ctx.setLineDash(3===o?[0,d+g]:[d,g]),3===o?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=gt(A),this.ctx.stroke(),this.ctx.setLineDash([]),2===o&&(Kr(s[0])&&(b=s[3],v=s[0],this.ctx.beginPath(),this.formatPath([new Sr(b.end.x,b.end.y),new Sr(v.start.x,v.start.y)]),this.ctx.stroke()),Kr(s[1])&&(b=s[1],v=s[2],this.ctx.beginPath(),this.formatPath([new Sr(b.end.x,b.end.y),new Sr(v.start.x,v.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},i.prototype.render=function(A){return e(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=gt(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),i=new Xr(A,null),e=new Jr(i),_r(i,e,e,n=[]),Yr(i.container,n),[4,this.renderStack(e)];case 1:return t.sent(),this.applyEffects([]),[2,this.canvas]}var i,e,n}))}))},i}(co),uo=function(A){return A instanceof bn||A instanceof mn||A instanceof Bn&&A.type!==fn&&A.type!==gn},go=function(A,t){switch(A){case 0:return Pr(t);case 2:return function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]}(t);case 1:default:return jr(t)}},fo=function(A){switch(A){case 1:return"center";case 2:return"right";case 0:default:return"left"}},po=["-apple-system","system-ui"],wo=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter((function(A){return-1===po.indexOf(A)})):A},Bo=function(A){function i(t,i){var e=A.call(this,t,i)||this;return e.canvas=i.canvas?i.canvas:document.createElement("canvas"),e.ctx=e.canvas.getContext("2d"),e.options=i,e.canvas.width=Math.floor(i.width*i.scale),e.canvas.height=Math.floor(i.height*i.scale),e.canvas.style.width=i.width+"px",e.canvas.style.height=i.height+"px",e.ctx.scale(e.options.scale,e.options.scale),e.ctx.translate(-i.x,-i.y),e.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+i.width+"x"+i.height+" at "+i.x+","+i.y+") with scale "+i.scale),e}return t(i,A),i.prototype.render=function(A){return e(this,void 0,void 0,(function(){var t,i;return n(this,(function(e){switch(e.label){case 0:return t=ze(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),[4,mo(t)];case 1:return i=e.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=gt(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(i,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},i}(co),mo=function(A){return new Promise((function(t,i){var e=new Image;e.onload=function(){t(e)},e.onerror=i,e.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))}))},bo=function(){function A(A){var t=A.enabled;this.id=A.id,this.enabled=t,this.start=Date.now()}return A.prototype.debug=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,r([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,r([this.id,this.getTime()+"ms"],A))},A.prototype.warn=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,r([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.prototype.error=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,r([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.instances={},A}(),vo=function(){function A(t,i){var e;this.windowBounds=i,this.instanceName="#"+A.instanceCount++,this.logger=new bo({id:this.instanceName,enabled:t.logging}),this.cache=null!==(e=t.cache)&&void 0!==e?e:new Ur(this,t)}return A.instanceCount=1,A}();"undefined"!=typeof window&&Fr.setContext(window);var Qo=function(A,t){return e(void 0,void 0,void 0,(function(){var e,r,a,l,c,h,u,d,g,f,p,w,B,m,b,v,Q,C,F,U,y,k,x,L,E,H,I,N,S,D,M,K,O,T,P,j,q,R;return n(this,(function(n){switch(n.label){case 0:if(!A||"object"!=typeof A)return[2,Promise.reject("Invalid element provided as first argument")];if(!(e=A.ownerDocument))throw new Error("Element is not attached to a Document");if(!(r=e.defaultView))throw new Error("Document is not attached to a Window");return a={allowTaint:null!==(k=t.allowTaint)&&void 0!==k&&k,imageTimeout:null!==(x=t.imageTimeout)&&void 0!==x?x:15e3,proxy:t.proxy,useCORS:null!==(L=t.useCORS)&&void 0!==L&&L},l=i({logging:null===(E=t.logging)||void 0===E||E,cache:t.cache},a),c={windowWidth:null!==(H=t.windowWidth)&&void 0!==H?H:r.innerWidth,windowHeight:null!==(I=t.windowHeight)&&void 0!==I?I:r.innerHeight,scrollX:null!==(N=t.scrollX)&&void 0!==N?N:r.pageXOffset,scrollY:null!==(S=t.scrollY)&&void 0!==S?S:r.pageYOffset},h=new o(c.scrollX,c.scrollY,c.windowWidth,c.windowHeight),u=new vo(l,h),d=null!==(D=t.foreignObjectRendering)&&void 0!==D&&D,g={allowTaint:null!==(M=t.allowTaint)&&void 0!==M&&M,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:d,copyStyles:d},u.logger.debug("Starting document clone with size "+h.width+"x"+h.height+" scrolled to "+-h.left+","+-h.top),f=new ar(u,A,g),(p=f.clonedReferenceElement)?[4,f.toIFrame(e,h)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return w=n.sent(),B=Mn(p)||"HTML"===p.tagName?function(A){var t=A.body,i=A.documentElement;if(!t||!i)throw new Error("Unable to get document size");var e=Math.max(Math.max(t.scrollWidth,i.scrollWidth),Math.max(t.offsetWidth,i.offsetWidth),Math.max(t.clientWidth,i.clientWidth)),n=Math.max(Math.max(t.scrollHeight,i.scrollHeight),Math.max(t.offsetHeight,i.offsetHeight),Math.max(t.clientHeight,i.clientHeight));return new o(0,0,e,n)}(p.ownerDocument):s(u,p),m=B.width,b=B.height,v=B.left,Q=B.top,C=Co(u,p,t.backgroundColor),F={canvas:t.canvas,backgroundColor:C,scale:null!==(O=null!==(K=t.scale)&&void 0!==K?K:r.devicePixelRatio)&&void 0!==O?O:1,x:(null!==(T=t.x)&&void 0!==T?T:0)+v,y:(null!==(P=t.y)&&void 0!==P?P:0)+Q,width:null!==(j=t.width)&&void 0!==j?j:Math.ceil(m),height:null!==(q=t.height)&&void 0!==q?q:Math.ceil(b)},d?(u.logger.debug("Document cloned, using foreign object rendering"),[4,new Bo(u,F).render(p)]):[3,3];case 2:return U=n.sent(),[3,5];case 3:return u.logger.debug("Document cloned, element located at "+v+","+Q+" with size "+m+"x"+b+" using computed rendering"),u.logger.debug("Starting DOM parsing"),y=Un(u,p),C===y.styles.backgroundColor&&(y.styles.backgroundColor=Qt.TRANSPARENT),u.logger.debug("Starting renderer for element at "+F.x+","+F.y+" with size "+F.width+"x"+F.height),[4,new ho(u,F).render(y)];case 4:U=n.sent(),n.label=5;case 5:return(null===(R=t.removeContainer)||void 0===R||R)&&(ar.destroy(w)||u.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),u.logger.debug("Finished rendering"),[2,U]}}))}))},Co=function(A,t,i){var e=t.ownerDocument,n=e.documentElement?vt(A,getComputedStyle(e.documentElement).backgroundColor):Qt.TRANSPARENT,r=e.body?vt(A,getComputedStyle(e.body).backgroundColor):Qt.TRANSPARENT,o="string"==typeof i?vt(A,i):null===i?Qt.TRANSPARENT:4294967295;return t===e.documentElement?dt(n)?dt(r)?o:r:n:o};return function(A,t){return void 0===t&&(t={}),Qo(A,t)}}()}));const Zn=Object.freeze(Object.assign(Object.create(null),Wn,{default:Wn})),$n=class{constructor(A){t(this,A),this.moduleContent=[],this.moduleName="",this.page={title:null,path:null,body:null,pageInfo:null},this.validateFetch=A=>{if(!A.ok)throw A;return A.json()}}async fetchPage(A){if(null!==A)try{A=/^\/docs\/pages\/[a-z]{2}\.json$/.test(A)?A.replace(".json","/index.json"):A;const t=await fetch(A);return await this.validateFetch(t)}catch(A){return{title:A.statusText,body:null,path:null,pageInfo:null}}}async getHTMLContent(A){if(A){let t=await this.fetchPage(A);return t.body||console.log("Error while loading HTML content"),[i("main",{class:"no-demo"},i(Vt[t.template]||Vt.pdf,{page:t}))]}}async componentWillLoad(){const A=tA.getInstance().get("sparkle");this.tocData=await z.getInstance().loadJsonFile(A.tocPath)}async renderContnet(A){this.moduleName=A.name;let t=[];for(let i=0;i<A.sessions.length;i++)for(let e=0;e<A.sessions[i].pages.length;e++){const n=`/course/${A.urlName}/${A.sessions[i].urlName}/${A.sessions[i].pages[e].urlName}.json`;t=[...t,await this.getHTMLContent(n)]}this.moduleContent=[...t]}async exportToPDF(){var A=document.getElementById("exportPdf");Wn(A).then((A=>{console.log(A);var t=208*A.height/A.width,i=t;const e=A.toDataURL("image/png");let n=new he({orientation:"p",unit:"mm",format:"a4"});var r=0;for(n.addImage(e,"PNG",0,r,208,t),i-=295;i>=0;)r=i-t,n.addPage(),n.addImage(e,"PNG",0,r,208,t),i-=295;n.save(this.moduleName+".pdf")}))}render(){return i(n,null,i("div",null,this.tocData.courseModules.map((A=>i("div",{class:"p-2"},i("button",{class:"btn btn-primary",onClick:()=>this.renderContnet(A)},A.name))))),this.moduleContent.length>0&&i("div",{class:"d-flex justify-content-end p-2"},i("button",{class:"btn btn-primary",onClick:()=>this.exportToPDF()},"Export to PDF")),i("div",{id:"exportPdf"},this.moduleContent.map((A=>A))))}};$n.style=":host{display:block}#exportPdf{max-width:800px;margin:0 auto}";const Ar=class{constructor(A){t(this,A),this.showAllModules=!0}async componentWillLoad(){const A=tA.getInstance().get("sparkle");this.tocData=await z.getInstance().loadJsonFile(A.tocPath)}async componentDidLoad(){await this.fetchData()}async fetchData(){await lA.getInstance().fetchDashboardData({ClassId:1})}renderClassFeedPosts(){var A,t;return i("table",{class:"table"},i("thead",null,i("tr",null,i("th",{scope:"col"},"Name"),i("th",{scope:"col"},"Email"),i("th",{scope:"col"},"Post Text"),i("th",{scope:"col"},"App Name"),i("th",{scope:"col"},"Comment"),i("th",{scope:"col"},"Visibility"))),i("tbody",null,null===(A=cA.state.dashboardData)||void 0===A?void 0:A.ClassFeedPosts.map((A=>i("tr",null,i("td",null,A.UserName),i("td",null,A.Email),i("td",null,A.PostText),i("td",null,A.MiniAppName),i("td",null,A.CommentsCount),i("td",null,A.PostVisibility)))),this.renderLoadingOrNoData(6,null===(t=cA.state.dashboardData)||void 0===t?void 0:t.ClassFeedPosts)))}renderLoadingOrNoData(A,t){let e=cA.state.dashboardDataLoading?"Loading...":0==(null==t?void 0:t.length)?"No Data":"";return e?i("tr",null,i("td",{colSpan:A},e)):null}renderStudentsAssignment(){var A,t;return i("table",{class:"table"},i("thead",null,i("tr",null,i("th",{scope:"col"},"Name"),i("th",{scope:"col"},"Email"),i("th",{scope:"col"},"Assignment Name"),i("th",{scope:"col"},"Submited Date"),i("th",{scope:"col"},"Assignment Data"))),i("tbody",null,null===(A=cA.state.dashboardData)||void 0===A?void 0:A.StudentAssignments.map((A=>i("tr",null,i("td",null,A.Name),i("td",null,A.Email),i("td",null,A.AssignmentName),i("td",null,A.SubmittedDate),i("td",null,A.AssignmentData)))),this.renderLoadingOrNoData(5,null===(t=cA.state.dashboardData)||void 0===t?void 0:t.StudentAssignments)))}renderStudentsQuizResponses(){var A,t;return i("table",{class:"table"},i("thead",null,i("tr",null,i("th",{scope:"col"},"Name"),i("th",{scope:"col"},"Email"),i("th",{scope:"col"},"Response Type"),i("th",{scope:"col"},"Submitted Date"),i("th",{scope:"col"},"Questions"),i("th",{scope:"col"},"Response"))),i("tbody",null,null===(A=cA.state.dashboardData)||void 0===A?void 0:A.StudentQuizResponses.map((A=>i("tr",null,i("td",null,A.Name),i("td",null,A.Email),i("td",null,A.ResponseType),i("td",null,A.SubmittedDate),i("td",null,A.Question),i("td",null,A.Response)))),this.renderLoadingOrNoData(6,null===(t=cA.state.dashboardData)||void 0===t?void 0:t.StudentQuizResponses)))}renderDiscussion(){return i("div",{class:"accordion",id:"accordionExample"},i("div",{class:"accordion-item"},i("h2",{class:"accordion-header",id:"headingOne"},i("button",{class:"accordion-button",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseOne","aria-expanded":"true","aria-controls":"collapseOne"},"Accordion Item #1")),i("div",{id:"collapseOne",class:"accordion-collapse collapse show","aria-labelledby":"headingOne","data-bs-parent":"#accordionExample"},i("div",{class:"accordion-body"},i("strong",null,"This is the first item's accordion body.")," It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the ",i("code",null,".accordion-body"),", though the transition does limit overflow."))),i("div",{class:"accordion-item"},i("h2",{class:"accordion-header",id:"headingTwo"},i("button",{class:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseTwo","aria-expanded":"false","aria-controls":"collapseTwo"},"Accordion Item #2")),i("div",{id:"collapseTwo",class:"accordion-collapse collapse","aria-labelledby":"headingTwo","data-bs-parent":"#accordionExample"},i("div",{class:"accordion-body"},i("strong",null,"This is the second item's accordion body.")," It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the ",i("code",null,".accordion-body"),", though the transition does limit overflow."))),i("div",{class:"accordion-item"},i("h2",{class:"accordion-header",id:"headingThree"},i("button",{class:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseThree","aria-expanded":"false","aria-controls":"collapseThree"},"Accordion Item #3")),i("div",{id:"collapseThree",class:"accordion-collapse collapse","aria-labelledby":"headingThree","data-bs-parent":"#accordionExample"},i("div",{class:"accordion-body"},i("strong",null,"This is the third item's accordion body.")," It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the ",i("code",null,".accordion-body"),", though the transition does limit overflow."))))}renderFacilitators(){var A,t;return i("table",{class:"table"},i("thead",null,i("tr",null,i("th",{scope:"col"},"Name"),i("th",{scope:"col"},"Email"))),i("tbody",null,null===(A=cA.state.dashboardData)||void 0===A?void 0:A.Facilitators.map((A=>i("tr",null,i("td",null,A.Name),i("td",null,A.Email)))),this.renderLoadingOrNoData(2,null===(t=cA.state.dashboardData)||void 0===t?void 0:t.Facilitators)))}renderStudents(){var A,t;return i("table",{class:"table"},i("thead",null,i("tr",null,i("th",{scope:"col"},"Name"),i("th",{scope:"col"},"Email"))),i("tbody",null,null===(A=cA.state.dashboardData)||void 0===A?void 0:A.Students.map((A=>i("tr",null,i("td",null,A.Name),i("td",null,A.Email)))),this.renderLoadingOrNoData(2,null===(t=cA.state.dashboardData)||void 0===t?void 0:t.Students)))}onModuleDropdownChange(A){this.selectedModule=A.target.value,this.selectedSession="",this.selectedPage=""}onSessionDropdownChange(A){this.selectedSession=A.target.value,this.selectedPage=""}filterData(){}render(){return i("div",null,i("nav",{class:"navbar navbar-light bg-light"},i("form",{class:"container-fluid justify-content-space-between"},i("div",{class:"form-check"},i("input",{class:"form-check-input",type:"checkbox",value:"",id:"flexCheckChecked",onInput:A=>this.showAllModules=A.target.checked,checked:this.showAllModules}),i("label",{class:"form-check-label",htmlFor:"flexCheckChecked"},"All Modules")),i("button",{class:"btn btn-primary pull-right",type:"button",onClick:()=>this.fetchData()},"Refresh")),!this.showAllModules&&i("div",{class:"d-flex"},i("div",{class:"p-1"},i("select",{class:"form-select","aria-label":"Default select example",onChange:A=>this.onModuleDropdownChange(A)},i("option",{value:"",selected:""==this.selectedModule},"Select Module"),this.tocData.courseModules.map((A=>i("option",{value:A.urlName,selected:A.urlName==this.selectedModule},A.name))))),i("div",{class:"p-1"},this.selectedModule&&i("select",{class:"form-select","aria-label":"Default select example",onChange:A=>this.onSessionDropdownChange(A)},i("option",{value:"",selected:""==this.selectedSession},"Select Session"),this.tocData.courseModules.find((A=>A.urlName==this.selectedModule)).sessions.map((A=>i("option",{value:A.urlName,selected:A.urlName==this.selectedSession},A.name))))),i("div",{class:"p-1"},this.selectedModule&&this.selectedSession&&i("select",{class:"form-select","aria-label":"Default select example",onChange:A=>this.selectedPage=A.target.value},i("option",{value:"",selected:""==this.selectedPage},"Select Page"),this.tocData.courseModules.find((A=>A.urlName==this.selectedModule)).sessions.find((A=>A.urlName==this.selectedSession)).pages.map((A=>i("option",{value:A.urlName,selected:A.urlName==this.selectedPage},A.name))))),this.selectedModule&&this.selectedSession&&this.selectedPage&&i("div",{class:"p-1"},i("button",{class:"btn btn-primary",type:"button",onClick:()=>this.filterData()},"Filter")))),i("div",null,i("div",null,i("h1",null,"Class Feed Posts"),this.renderClassFeedPosts()),i("div",null,i("h1",null,"Student Assignments"),this.renderStudentsAssignment()),i("div",null,i("h1",null,"Quiz Responses"),this.renderStudentsQuizResponses()),i("div",null,i("h1",null,"Discussions"),this.renderDiscussion()),i("div",{class:"row"},i("div",{class:"col-sm-6"},i("h1",null,"Facilitators"),this.renderFacilitators()),i("div",{class:"col-sm-6"},i("h1",null,"Students"),this.renderStudents()))))}};Ar.style=":host{display:block}";const tr=class{constructor(A){t(this,A),this.courseName="",this.hidden=!1,this.frameRequested=!1,this.prevScroll=0}handleScroll(){this.frameRequested||(requestAnimationFrame((()=>{const{scrollY:A}=window;this.hidden=A>60&&A>this.prevScroll,this.prevScroll=A,this.frameRequested=!1})),this.frameRequested=!0)}componentWillLoad(){}hostData(){return{class:{hidden:this.hidden}}}openEnd(){hA.enable(!0,"students"),hA.open("students")}async openOnlineStudentsSidebar(){document.getElementById("#onlineStudents")}__stencil_render(){return i("header",null,i("a",{href:"/home"},i("div",{class:"HeaderLogo"},this.courseName)),i("header-mobile-collapse",null,i("div",{class:"SectionNav-tabs"}),i("nav",{class:"UtilNav"},i("sparkle-button",{href:"/login",round:!0},"Login"),i("sparkle-button",{href:"/signup",primary:!0,round:!0},"Get Started"),i("slot",{name:"logo"}))))}get el(){return e(this)}render(){return i(n,this.hostData(),this.__stencil_render())}};tr.style='sparkle-facilitator-header{background-color:var(--background);box-shadow:0px 1px 3px rgba(2, 8, 20, 0.06), 0px 1px 2px rgba(2, 8, 20, 0.04);color:var(--text-color--light);display:block;font-size:14px;font-weight:500;line-height:1;position:fixed;top:0;left:0;transform:translateY(0);transition:transform 200ms ease;user-select:none;width:100%;white-space:nowrap;z-index:2}@media (min-width: 768px){.Layout:not(.is-menu-toggled) sparkle-facilitator-header.hidden{transform:translateY(-100%)}}@media (max-width: 768px){.Layout.is-menu-toggled sparkle-facilitator-header.hidden{transform:translateY(-100%)}}sparkle-facilitator-header header{align-items:center;display:flex;height:var(--header-height);padding:0 1.4rem 0 0.8rem}sparkle-facilitator-header a{color:inherit;font-weight:500;padding:10px 0}sparkle-facilitator-header ion-icon{font-size:16px;color:#B2BECD}sparkle-facilitator-header .link-active{color:var(--ion-color-sparkle)}@media (hover: hover){sparkle-facilitator-header a:not(.link-active):hover{color:var(--text-color)}}sparkle-facilitator-header sparkle-menu-toggle{flex:none;margin-right:0.75em}sparkle-facilitator-header .HeaderLogo{color:var(--text-color--dark);font-family:var(--heading-font-family);height:25px;margin-right:2em;display:flex;justify-content:center;align-items:center;font-size:1.5em}sparkle-facilitator-header .SectionNav stencil-route{display:flex}sparkle-facilitator-header .SectionNav .Dropdown{align-self:center;color:var(--text-color);margin-right:0.75em}sparkle-facilitator-header .SectionNav .Dropdown-button{border:solid 1px #DEE3EA;border-radius:6px;color:var(--text-color--dark);padding:10px;transition:border-color 100ms ease}sparkle-facilitator-header .SectionNav .Dropdown.is-open .Dropdown-button{border-color:var(--line-rule-color)}sparkle-facilitator-header .SectionNav .Dropdown-panel{min-width:180px}sparkle-facilitator-header .SectionNav .Dropdown-panel a{display:flex;justify-content:space-between}sparkle-facilitator-header .SectionNav .Dropdown-panel svg{height:1em;width:1em}sparkle-facilitator-header .SectionNav .Dropdown-panel .Nav-link{margin-left:0;margin-right:0}sparkle-facilitator-header .SectionNav-tabs>*{align-items:center;display:inline-flex;height:var(--header-height);margin-right:1em;padding:0px 1em;position:relative}sparkle-facilitator-header .SectionNav-tabs .link-active:after{background-color:currentColor;bottom:0;content:"";display:block;height:2px;left:0;position:absolute;width:100%}sparkle-facilitator-header .UtilNav{align-items:center;display:flex;font-size:12px;margin-left:auto}sparkle-facilitator-header .UtilNav>*{margin-left:1em}sparkle-facilitator-header .UtilNav .Dropdown.is-open{color:var(--text-color)}sparkle-facilitator-header .UtilNav .Dropdown-button{padding:10px 0}@media (hover: hover){sparkle-facilitator-header .UtilNav .Dropdown-button:hover{color:var(--text-color)}}sparkle-facilitator-header .UtilNav .Dropdown-panel{font-size:14px}sparkle-facilitator-header .girls-inc-logo{display:block;max-width:40px;max-height:40px;width:auto;height:auto}';const ir=class{constructor(A){t(this,A)}async componentDidLoad(){await this.fetchData()}async fetchData(){await lA.getInstance().fetchNotes({showAllNotes:!1})}async deleteNote(A){await lA.getInstance().deleteFacilitatorNote(A)}async deleteNoteConfirmation(A){window.confirm("Do you really want to delete this note?")&&await this.deleteNote(A)}async presentFacilitatorNotesModal(A){const t=await uA.create({component:"sparkle-facilitator-notes-form",cssClass:"sparkle-modal sparkle-facilitator-notes-form",componentProps:{initialValues:A}});await t.present()}renderNotes(){var A,t,e;return i("table",{class:"table"},i("thead",null,i("tr",null,i("th",{scope:"col"},"Notes"),i("th",{scope:"col"},"Action"))),i("tbody",null,null===(A=cA.state.pageNotes)||void 0===A?void 0:A.map((A=>i("tr",null,i("td",{class:"c1"},A.NoteText),i("td",{class:"c2"},i("div",{class:"d-flex"},i("div",{class:"p-2"},i("button",{class:"btn btn-primary",type:"button",onClick:()=>this.presentFacilitatorNotesModal(A)},"Edit")),i("div",{class:"p-2"},i("button",{class:"btn btn-dark",type:"button",onClick:()=>this.deleteNoteConfirmation(A.Id)},"Delete"))))))),!cA.state.pageNotes||0==(null===(t=cA.state.pageNotes)||void 0===t?void 0:t.length)&&i("tr",null,i("td",{colSpan:2},cA.state.notesLoading?"Loading...":0==(null===(e=cA.state.pageNotes)||void 0===e?void 0:e.length)?"No Data":""))))}render(){return console.log("render"),i(n,null,i("div",{class:"p-2 pb-4 d-md-flex justify-content-md-end"},i("button",{class:"btn btn-primary pull-right",type:"button",onClick:()=>this.presentFacilitatorNotesModal(null)},"+ Add Note")),this.renderNotes())}};ir.style=":host{display:block}table{table-layout:auto}.c1{width:80%}.c2{width:20%}";class er extends Error{constructor(A,t){const i=new.target.prototype;super(`${A}: Status code '${t}'`),this.statusCode=t,this.__proto__=i}}class nr extends Error{constructor(A="A timeout occurred."){const t=new.target.prototype;super(A),this.__proto__=t}}class rr extends Error{constructor(A="An abort occurred."){const t=new.target.prototype;super(A),this.__proto__=t}}class or extends Error{constructor(A,t){const i=new.target.prototype;super(A),this.transport=t,this.errorType="UnsupportedTransportError",this.__proto__=i}}class sr extends Error{constructor(A,t){const i=new.target.prototype;super(A),this.transport=t,this.errorType="DisabledTransportError",this.__proto__=i}}class ar extends Error{constructor(A,t){const i=new.target.prototype;super(A),this.transport=t,this.errorType="FailedToStartTransportError",this.__proto__=i}}class lr extends Error{constructor(A){const t=new.target.prototype;super(A),this.errorType="FailedToNegotiateWithServerError",this.__proto__=t}}class cr extends Error{constructor(A,t){const i=new.target.prototype;super(A),this.innerErrors=t,this.__proto__=i}}class hr{constructor(A,t,i){this.statusCode=A,this.statusText=t,this.content=i}}class ur{get(A,t){return this.send({...t,method:"GET",url:A})}post(A,t){return this.send({...t,method:"POST",url:A})}delete(A,t){return this.send({...t,method:"DELETE",url:A})}getCookieString(A){return""}}var dr,gr,fr;!function(A){A[A.Trace=0]="Trace",A[A.Debug=1]="Debug",A[A.Information=2]="Information",A[A.Warning=3]="Warning",A[A.Error=4]="Error",A[A.Critical=5]="Critical",A[A.None=6]="None"}(dr||(dr={}));class pr{constructor(){}log(A,t){}}pr.instance=new pr;class wr{static isRequired(A,t){if(null==A)throw new Error(`The '${t}' argument is required.`)}static isNotEmpty(A,t){if(!A||A.match(/^\s*$/))throw new Error(`The '${t}' argument should not be empty.`)}static isIn(A,t,i){if(!(A in t))throw new Error(`Unknown ${i} value: ${A}.`)}}class Br{static get isBrowser(){return"object"==typeof window&&"object"==typeof window.document}static get isWebWorker(){return"object"==typeof self&&"importScripts"in self}static get isReactNative(){return"object"==typeof window&&void 0===window.document}static get isNode(){return!this.isBrowser&&!this.isWebWorker&&!this.isReactNative}}function mr(A,t){let i="";return br(A)?(i=`Binary data of length ${A.byteLength}`,t&&(i+=`. Content: '${function(A){const t=new Uint8Array(A);let i="";return t.forEach((A=>{i+=`0x${A<16?"0":""}${A.toString(16)} `})),i.substr(0,i.length-1)}(A)}'`)):"string"==typeof A&&(i=`String data of length ${A.length}`,t&&(i+=`. Content: '${A}'`)),i}function br(A){return A&&"undefined"!=typeof ArrayBuffer&&(A instanceof ArrayBuffer||A.constructor&&"ArrayBuffer"===A.constructor.name)}async function vr(A,t,i,e,n,r,o){let s={};if(n){const A=await n();A&&(s={Authorization:`Bearer ${A}`})}const[a,l]=Fr();s[a]=l,A.log(dr.Trace,`(${t} transport) sending data. ${mr(r,o.logMessageContent)}.`);const c=br(r)?"arraybuffer":"text",h=await i.post(e,{content:r,headers:{...s,...o.headers},responseType:c,timeout:o.timeout,withCredentials:o.withCredentials});A.log(dr.Trace,`(${t} transport) request complete. Response status: ${h.statusCode}.`)}class Qr{constructor(A,t){this._subject=A,this._observer=t}dispose(){const A=this._subject.observers.indexOf(this._observer);A>-1&&this._subject.observers.splice(A,1),0===this._subject.observers.length&&this._subject.cancelCallback&&this._subject.cancelCallback().catch((()=>{}))}}class Cr{constructor(A){this._minLevel=A,this.out=console}log(A,t){if(A>=this._minLevel){const i=`[${(new Date).toISOString()}] ${dr[A]}: ${t}`;switch(A){case dr.Critical:case dr.Error:this.out.error(i);break;case dr.Warning:this.out.warn(i);break;case dr.Information:this.out.info(i);break;default:this.out.log(i)}}}}function Fr(){let A="X-SignalR-User-Agent";return Br.isNode&&(A="User-Agent"),[A,Ur("6.0.3",yr(),Br.isNode?"NodeJS":"Browser",kr())]}function Ur(A,t,i,e){let n="Microsoft SignalR/";const r=A.split(".");return n+=`${r[0]}.${r[1]}`,n+=` (${A}; `,n+=t&&""!==t?`${t}; `:"Unknown OS; ",n+=`${i}`,n+=e?`; ${e}`:"; Unknown Runtime Version",n+=")",n}function yr(){if(!Br.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}function kr(){if(Br.isNode)return process.versions.node}function xr(A){return A.stack?A.stack:A.message?A.message:`${A}`}class Lr extends ur{constructor(A){if(super(),this._logger=A,"undefined"==typeof fetch){const A="function"==typeof __webpack_require__?__non_webpack_require__:require;this._jar=new(A("tough-cookie").CookieJar),this._fetchType=A("node-fetch"),this._fetchType=A("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("could not find global")}());if("undefined"==typeof AbortController){const A="function"==typeof __webpack_require__?__non_webpack_require__:require;this._abortControllerType=A("abort-controller")}else this._abortControllerType=AbortController}async send(A){if(A.abortSignal&&A.abortSignal.aborted)throw new rr;if(!A.method)throw new Error("No method defined.");if(!A.url)throw new Error("No url defined.");const t=new this._abortControllerType;let i;A.abortSignal&&(A.abortSignal.onabort=()=>{t.abort(),i=new rr});let e,n=null;A.timeout&&(n=setTimeout((()=>{t.abort(),this._logger.log(dr.Warning,"Timeout from HTTP request."),i=new nr}),A.timeout));try{e=await this._fetchType(A.url,{body:A.content,cache:"no-cache",credentials:!0===A.withCredentials?"include":"same-origin",headers:{"Content-Type":"text/plain;charset=UTF-8","X-Requested-With":"XMLHttpRequest",...A.headers},method:A.method,mode:"cors",redirect:"follow",signal:t.signal})}catch(A){if(i)throw i;throw this._logger.log(dr.Warning,`Error from HTTP request. ${A}.`),A}finally{n&&clearTimeout(n),A.abortSignal&&(A.abortSignal.onabort=null)}if(!e.ok){const A=await Er(e,"text");throw new er(A||e.statusText,e.status)}const r=Er(e,A.responseType),o=await r;return new hr(e.status,e.statusText,o)}getCookieString(A){let t="";return Br.isNode&&this._jar&&this._jar.getCookies(A,((A,i)=>t=i.join("; "))),t}}function Er(A,t){let i;switch(t){case"arraybuffer":i=A.arrayBuffer();break;case"text":i=A.text();break;case"blob":case"document":case"json":throw new Error(`${t} is not supported.`);default:i=A.text()}return i}class Hr extends ur{constructor(A){super(),this._logger=A}send(A){return A.abortSignal&&A.abortSignal.aborted?Promise.reject(new rr):A.method?A.url?new Promise(((t,i)=>{const e=new XMLHttpRequest;e.open(A.method,A.url,!0),e.withCredentials=void 0===A.withCredentials||A.withCredentials,e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.setRequestHeader("Content-Type","text/plain;charset=UTF-8");const n=A.headers;n&&Object.keys(n).forEach((A=>{e.setRequestHeader(A,n[A])})),A.responseType&&(e.responseType=A.responseType),A.abortSignal&&(A.abortSignal.onabort=()=>{e.abort(),i(new rr)}),A.timeout&&(e.timeout=A.timeout),e.onload=()=>{A.abortSignal&&(A.abortSignal.onabort=null),e.status>=200&&e.status<300?t(new hr(e.status,e.statusText,e.response||e.responseText)):i(new er(e.response||e.responseText||e.statusText,e.status))},e.onerror=()=>{this._logger.log(dr.Warning,`Error from HTTP request. ${e.status}: ${e.statusText}.`),i(new er(e.statusText,e.status))},e.ontimeout=()=>{this._logger.log(dr.Warning,"Timeout from HTTP request."),i(new nr)},e.send(A.content||"")})):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class Ir extends ur{constructor(A){if(super(),"undefined"!=typeof fetch||Br.isNode)this._httpClient=new Lr(A);else{if("undefined"==typeof XMLHttpRequest)throw new Error("No usable HttpClient found.");this._httpClient=new Hr(A)}}send(A){return A.abortSignal&&A.abortSignal.aborted?Promise.reject(new rr):A.method?A.url?this._httpClient.send(A):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(A){return this._httpClient.getCookieString(A)}}class Nr{static write(A){return`${A}${Nr.RecordSeparator}`}static parse(A){if(A[A.length-1]!==Nr.RecordSeparator)throw new Error("Message is incomplete.");const t=A.split(Nr.RecordSeparator);return t.pop(),t}}Nr.RecordSeparatorCode=30,Nr.RecordSeparator=String.fromCharCode(Nr.RecordSeparatorCode);class Sr{writeHandshakeRequest(A){return Nr.write(JSON.stringify(A))}parseHandshakeResponse(A){let t,i;if(br(A)){const e=new Uint8Array(A),n=e.indexOf(Nr.RecordSeparatorCode);if(-1===n)throw new Error("Message is incomplete.");const r=n+1;t=String.fromCharCode.apply(null,Array.prototype.slice.call(e.slice(0,r))),i=e.byteLength>r?e.slice(r).buffer:null}else{const e=A,n=e.indexOf(Nr.RecordSeparator);if(-1===n)throw new Error("Message is incomplete.");const r=n+1;t=e.substring(0,r),i=e.length>r?e.substring(r):null}const e=Nr.parse(t),n=JSON.parse(e[0]);if(n.type)throw new Error("Expected a handshake response from the server.");return[i,n]}}!function(A){A[A.Invocation=1]="Invocation",A[A.StreamItem=2]="StreamItem",A[A.Completion=3]="Completion",A[A.StreamInvocation=4]="StreamInvocation",A[A.CancelInvocation=5]="CancelInvocation",A[A.Ping=6]="Ping",A[A.Close=7]="Close"}(gr||(gr={}));class Dr{constructor(){this.observers=[]}next(A){for(const t of this.observers)t.next(A)}error(A){for(const t of this.observers)t.error&&t.error(A)}complete(){for(const A of this.observers)A.complete&&A.complete()}subscribe(A){return this.observers.push(A),new Qr(this,A)}}!function(A){A.Disconnected="Disconnected",A.Connecting="Connecting",A.Connected="Connected",A.Disconnecting="Disconnecting",A.Reconnecting="Reconnecting"}(fr||(fr={}));class Mr{constructor(A,t,i,e){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(dr.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://docs.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},wr.isRequired(A,"connection"),wr.isRequired(t,"logger"),wr.isRequired(i,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this._logger=t,this._protocol=i,this.connection=A,this._reconnectPolicy=e,this._handshakeProtocol=new Sr,this.connection.onreceive=A=>this._processIncomingData(A),this.connection.onclose=A=>this._connectionClosed(A),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=fr.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:gr.Ping})}static create(A,t,i,e){return new Mr(A,t,i,e)}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(A){if(this._connectionState!==fr.Disconnected&&this._connectionState!==fr.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!A)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=A}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==fr.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=fr.Connecting,this._logger.log(dr.Debug,"Starting HubConnection.");try{await this._startInternal(),Br.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=fr.Connected,this._connectionStarted=!0,this._logger.log(dr.Debug,"HubConnection connected successfully.")}catch(A){return this._connectionState=fr.Disconnected,this._logger.log(dr.Debug,`HubConnection failed to start successfully because of error '${A}'.`),Promise.reject(A)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const A=new Promise(((A,t)=>{this._handshakeResolver=A,this._handshakeRejecter=t}));await this.connection.start(this._protocol.transferFormat);try{const t={protocol:this._protocol.name,version:this._protocol.version};if(this._logger.log(dr.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(t)),this._logger.log(dr.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await A,this._stopDuringStartError)throw this._stopDuringStartError}catch(A){throw this._logger.log(dr.Debug,`Hub handshake failed with error '${A}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(A),A}}async stop(){const A=this._startPromise;this._stopPromise=this._stopInternal(),await this._stopPromise;try{await A}catch(A){}}_stopInternal(A){return this._connectionState===fr.Disconnected?(this._logger.log(dr.Debug,`Call to HubConnection.stop(${A}) ignored because it is already in the disconnected state.`),Promise.resolve()):this._connectionState===fr.Disconnecting?(this._logger.log(dr.Debug,`Call to HttpConnection.stop(${A}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState=fr.Disconnecting,this._logger.log(dr.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(dr.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=A||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(A)))}stream(A,...t){const[i,e]=this._replaceStreamingParams(t),n=this._createStreamInvocation(A,t,e);let r;const o=new Dr;return o.cancelCallback=()=>{const A=this._createCancelInvocation(n.invocationId);return delete this._callbacks[n.invocationId],r.then((()=>this._sendWithProtocol(A)))},this._callbacks[n.invocationId]=(A,t)=>{t?o.error(t):A&&(A.type===gr.Completion?A.error?o.error(new Error(A.error)):o.complete():o.next(A.item))},r=this._sendWithProtocol(n).catch((A=>{o.error(A),delete this._callbacks[n.invocationId]})),this._launchStreams(i,r),o}_sendMessage(A){return this._resetKeepAliveInterval(),this.connection.send(A)}_sendWithProtocol(A){return this._sendMessage(this._protocol.writeMessage(A))}send(A,...t){const[i,e]=this._replaceStreamingParams(t),n=this._sendWithProtocol(this._createInvocation(A,t,!0,e));return this._launchStreams(i,n),n}invoke(A,...t){const[i,e]=this._replaceStreamingParams(t),n=this._createInvocation(A,t,!1,e);return new Promise(((A,t)=>{this._callbacks[n.invocationId]=(i,e)=>{e?t(e):i&&(i.type===gr.Completion?i.error?t(new Error(i.error)):A(i.result):t(new Error(`Unexpected message type: ${i.type}`)))};const e=this._sendWithProtocol(n).catch((A=>{t(A),delete this._callbacks[n.invocationId]}));this._launchStreams(i,e)}))}on(A,t){A&&t&&(A=A.toLowerCase(),this._methods[A]||(this._methods[A]=[]),-1===this._methods[A].indexOf(t)&&this._methods[A].push(t))}off(A,t){if(!A)return;A=A.toLowerCase();const i=this._methods[A];if(i)if(t){const e=i.indexOf(t);-1!==e&&(i.splice(e,1),0===i.length&&delete this._methods[A])}else delete this._methods[A]}onclose(A){A&&this._closedCallbacks.push(A)}onreconnecting(A){A&&this._reconnectingCallbacks.push(A)}onreconnected(A){A&&this._reconnectedCallbacks.push(A)}_processIncomingData(A){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(A=this._processHandshakeResponse(A),this._receivedHandshakeResponse=!0),A){const t=this._protocol.parseMessages(A,this._logger);for(const A of t)switch(A.type){case gr.Invocation:this._invokeClientMethod(A);break;case gr.StreamItem:case gr.Completion:{const t=this._callbacks[A.invocationId];if(t){A.type===gr.Completion&&delete this._callbacks[A.invocationId];try{t(A)}catch(A){this._logger.log(dr.Error,`Stream callback threw error: ${xr(A)}`)}}break}case gr.Ping:break;case gr.Close:{this._logger.log(dr.Information,"Close message received from server.");const t=A.error?new Error("Server returned an error on close: "+A.error):void 0;!0===A.allowReconnect?this.connection.stop(t):this._stopPromise=this._stopInternal(t);break}default:this._logger.log(dr.Warning,`Invalid message type: ${A.type}.`)}}this._resetTimeoutPeriod()}_processHandshakeResponse(A){let t,i;try{[i,t]=this._handshakeProtocol.parseHandshakeResponse(A)}catch(A){const t="Error parsing handshake response: "+A;this._logger.log(dr.Error,t);const i=new Error(t);throw this._handshakeRejecter(i),i}if(t.error){const A="Server returned handshake error: "+t.error;this._logger.log(dr.Error,A);const i=new Error(A);throw this._handshakeRejecter(i),i}return this._logger.log(dr.Debug,"Server handshake complete."),this._handshakeResolver(),i}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this._timeoutHandle=setTimeout((()=>this.serverTimeout()),this.serverTimeoutInMilliseconds),void 0!==this._pingServerHandle))){let A=this._nextKeepAlive-(new Date).getTime();A<0&&(A=0),this._pingServerHandle=setTimeout((async()=>{if(this._connectionState===fr.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}}),A)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}_invokeClientMethod(A){const t=this._methods[A.target.toLowerCase()];if(t){try{t.forEach((t=>t.apply(this,A.arguments)))}catch(t){this._logger.log(dr.Error,`A callback for the method ${A.target.toLowerCase()} threw error '${t}'.`)}if(A.invocationId){const A="Server requested a response, which is not supported in this version of the client.";this._logger.log(dr.Error,A),this._stopPromise=this._stopInternal(new Error(A))}}else this._logger.log(dr.Warning,`No client method with the name '${A.target}' found.`)}_connectionClosed(A){this._logger.log(dr.Debug,`HubConnection.connectionClosed(${A}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||A||new Error("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(A||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===fr.Disconnecting?this._completeClose(A):this._connectionState===fr.Connected&&this._reconnectPolicy?this._reconnect(A):this._connectionState===fr.Connected&&this._completeClose(A)}_completeClose(A){if(this._connectionStarted){this._connectionState=fr.Disconnected,this._connectionStarted=!1,Br.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach((t=>t.apply(this,[A])))}catch(t){this._logger.log(dr.Error,`An onclose callback called with error '${A}' threw error '${t}'.`)}}}async _reconnect(A){const t=Date.now();let i=0,e=void 0!==A?A:new Error("Attempting to reconnect due to a unknown error."),n=this._getNextRetryDelay(i++,0,e);if(null===n)return this._logger.log(dr.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void this._completeClose(A);if(this._connectionState=fr.Reconnecting,this._logger.log(dr.Information,A?`Connection reconnecting because of error '${A}'.`:"Connection reconnecting."),0!==this._reconnectingCallbacks.length){try{this._reconnectingCallbacks.forEach((t=>t.apply(this,[A])))}catch(t){this._logger.log(dr.Error,`An onreconnecting callback called with error '${A}' threw error '${t}'.`)}if(this._connectionState!==fr.Reconnecting)return void this._logger.log(dr.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;null!==n;){if(this._logger.log(dr.Information,`Reconnect attempt number ${i} will start in ${n} ms.`),await new Promise((A=>{this._reconnectDelayHandle=setTimeout(A,n)})),this._reconnectDelayHandle=void 0,this._connectionState!==fr.Reconnecting)return void this._logger.log(dr.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(await this._startInternal(),this._connectionState=fr.Connected,this._logger.log(dr.Information,"HubConnection reconnected successfully."),0!==this._reconnectedCallbacks.length)try{this._reconnectedCallbacks.forEach((A=>A.apply(this,[this.connection.connectionId])))}catch(A){this._logger.log(dr.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${A}'.`)}return}catch(A){if(this._logger.log(dr.Information,`Reconnect attempt failed because of error '${A}'.`),this._connectionState!==fr.Reconnecting)return this._logger.log(dr.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(this._connectionState===fr.Disconnecting&&this._completeClose());e=A instanceof Error?A:new Error(A.toString()),n=this._getNextRetryDelay(i++,Date.now()-t,e)}}this._logger.log(dr.Information,`Reconnect retries have been exhausted after ${Date.now()-t} ms and ${i} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(A,t,i){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:t,previousRetryCount:A,retryReason:i})}catch(i){return this._logger.log(dr.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${A}, ${t}) threw error '${i}'.`),null}}_cancelCallbacksWithError(A){const t=this._callbacks;this._callbacks={},Object.keys(t).forEach((i=>{const e=t[i];try{e(null,A)}catch(t){this._logger.log(dr.Error,`Stream 'error' callback called with '${A}' threw error: ${xr(t)}`)}}))}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(A,t,i,e){if(i)return 0!==e.length?{arguments:t,streamIds:e,target:A,type:gr.Invocation}:{arguments:t,target:A,type:gr.Invocation};{const i=this._invocationId;return this._invocationId++,0!==e.length?{arguments:t,invocationId:i.toString(),streamIds:e,target:A,type:gr.Invocation}:{arguments:t,invocationId:i.toString(),target:A,type:gr.Invocation}}}_launchStreams(A,t){if(0!==A.length){t||(t=Promise.resolve());for(const i in A)A[i].subscribe({complete:()=>{t=t.then((()=>this._sendWithProtocol(this._createCompletionMessage(i))))},error:A=>{let e;e=A instanceof Error?A.message:A&&A.toString?A.toString():"Unknown error",t=t.then((()=>this._sendWithProtocol(this._createCompletionMessage(i,e))))},next:A=>{t=t.then((()=>this._sendWithProtocol(this._createStreamItemMessage(i,A))))}})}}_replaceStreamingParams(A){const t=[],i=[];for(let e=0;e<A.length;e++){const n=A[e];if(this._isObservable(n)){const r=this._invocationId;this._invocationId++,t[r]=n,i.push(r.toString()),A.splice(e,1)}}return[t,i]}_isObservable(A){return A&&A.subscribe&&"function"==typeof A.subscribe}_createStreamInvocation(A,t,i){const e=this._invocationId;return this._invocationId++,0!==i.length?{arguments:t,invocationId:e.toString(),streamIds:i,target:A,type:gr.StreamInvocation}:{arguments:t,invocationId:e.toString(),target:A,type:gr.StreamInvocation}}_createCancelInvocation(A){return{invocationId:A,type:gr.CancelInvocation}}_createStreamItemMessage(A,t){return{invocationId:A,item:t,type:gr.StreamItem}}_createCompletionMessage(A,t,i){return t?{error:t,invocationId:A,type:gr.Completion}:{invocationId:A,result:i,type:gr.Completion}}}const Kr=[0,2e3,1e4,3e4,null];class Or{constructor(A){this._retryDelays=void 0!==A?[...A,null]:Kr}nextRetryDelayInMilliseconds(A){return this._retryDelays[A.previousRetryCount]}}class Tr{}var Pr,jr;Tr.Authorization="Authorization",Tr.Cookie="Cookie",function(A){A[A.None=0]="None",A[A.WebSockets=1]="WebSockets",A[A.ServerSentEvents=2]="ServerSentEvents",A[A.LongPolling=4]="LongPolling"}(Pr||(Pr={})),function(A){A[A.Text=1]="Text",A[A.Binary=2]="Binary"}(jr||(jr={}));class qr{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}}class Rr{constructor(A,t,i,e){this._httpClient=A,this._accessTokenFactory=t,this._logger=i,this._pollAbort=new qr,this._options=e,this._running=!1,this.onreceive=null,this.onclose=null}get pollAborted(){return this._pollAbort.aborted}async connect(A,t){if(wr.isRequired(A,"url"),wr.isRequired(t,"transferFormat"),wr.isIn(t,jr,"transferFormat"),this._url=A,this._logger.log(dr.Trace,"(LongPolling transport) Connecting."),t===jr.Binary&&"undefined"!=typeof XMLHttpRequest&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[i,e]=Fr(),n={[i]:e,...this._options.headers},r={abortSignal:this._pollAbort.signal,headers:n,timeout:1e5,withCredentials:this._options.withCredentials};t===jr.Binary&&(r.responseType="arraybuffer");const o=await this._getAccessToken();this._updateHeaderToken(r,o);const s=`${A}&_=${Date.now()}`;this._logger.log(dr.Trace,`(LongPolling transport) polling: ${s}.`);const a=await this._httpClient.get(s,r);200!==a.statusCode?(this._logger.log(dr.Error,`(LongPolling transport) Unexpected response code: ${a.statusCode}.`),this._closeError=new er(a.statusText||"",a.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,r)}async _getAccessToken(){return this._accessTokenFactory?await this._accessTokenFactory():null}_updateHeaderToken(A,t){A.headers||(A.headers={}),t?A.headers[Tr.Authorization]=`Bearer ${t}`:A.headers[Tr.Authorization]&&delete A.headers[Tr.Authorization]}async _poll(A,t){try{for(;this._running;){const i=await this._getAccessToken();this._updateHeaderToken(t,i);try{const i=`${A}&_=${Date.now()}`;this._logger.log(dr.Trace,`(LongPolling transport) polling: ${i}.`);const e=await this._httpClient.get(i,t);204===e.statusCode?(this._logger.log(dr.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):200!==e.statusCode?(this._logger.log(dr.Error,`(LongPolling transport) Unexpected response code: ${e.statusCode}.`),this._closeError=new er(e.statusText||"",e.statusCode),this._running=!1):e.content?(this._logger.log(dr.Trace,`(LongPolling transport) data received. ${mr(e.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(e.content)):this._logger.log(dr.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(A){this._running?A instanceof nr?this._logger.log(dr.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=A,this._running=!1):this._logger.log(dr.Trace,`(LongPolling transport) Poll errored after shutdown: ${A.message}`)}}}finally{this._logger.log(dr.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(A){return this._running?vr(this._logger,"LongPolling",this._httpClient,this._url,this._accessTokenFactory,A,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(dr.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(dr.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const A={},[t,i]=Fr();A[t]=i;const e={headers:{...A,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials},n=await this._getAccessToken();this._updateHeaderToken(e,n),await this._httpClient.delete(this._url,e),this._logger.log(dr.Trace,"(LongPolling transport) DELETE request sent.")}finally{this._logger.log(dr.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let A="(LongPolling transport) Firing onclose event.";this._closeError&&(A+=" Error: "+this._closeError),this._logger.log(dr.Trace,A),this.onclose(this._closeError)}}}class Gr{constructor(A,t,i,e){this._httpClient=A,this._accessTokenFactory=t,this._logger=i,this._options=e,this.onreceive=null,this.onclose=null}async connect(A,t){if(wr.isRequired(A,"url"),wr.isRequired(t,"transferFormat"),wr.isIn(t,jr,"transferFormat"),this._logger.log(dr.Trace,"(SSE transport) Connecting."),this._url=A,this._accessTokenFactory){const t=await this._accessTokenFactory();t&&(A+=(A.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(t)}`)}return new Promise(((i,e)=>{let n,r=!1;if(t===jr.Text){if(Br.isBrowser||Br.isWebWorker)n=new this._options.EventSource(A,{withCredentials:this._options.withCredentials});else{const t=this._httpClient.getCookieString(A),i={};i.Cookie=t;const[e,r]=Fr();i[e]=r,n=new this._options.EventSource(A,{withCredentials:this._options.withCredentials,headers:{...i,...this._options.headers}})}try{n.onmessage=A=>{if(this.onreceive)try{this._logger.log(dr.Trace,`(SSE transport) data received. ${mr(A.data,this._options.logMessageContent)}.`),this.onreceive(A.data)}catch(A){return void this._close(A)}},n.onerror=()=>{r?this._close():e(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},n.onopen=()=>{this._logger.log(dr.Information,`SSE connected to ${this._url}`),this._eventSource=n,r=!0,i()}}catch(A){return void e(A)}}else e(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))}))}async send(A){return this._eventSource?vr(this._logger,"SSE",this._httpClient,this._url,this._accessTokenFactory,A,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(A){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(A))}}class Vr{constructor(A,t,i,e,n,r){this._logger=i,this._accessTokenFactory=t,this._logMessageContent=e,this._webSocketConstructor=n,this._httpClient=A,this.onreceive=null,this.onclose=null,this._headers=r}async connect(A,t){if(wr.isRequired(A,"url"),wr.isRequired(t,"transferFormat"),wr.isIn(t,jr,"transferFormat"),this._logger.log(dr.Trace,"(WebSockets transport) Connecting."),this._accessTokenFactory){const t=await this._accessTokenFactory();t&&(A+=(A.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(t)}`)}return new Promise(((i,e)=>{let n;A=A.replace(/^http/,"ws");const r=this._httpClient.getCookieString(A);let o=!1;if(Br.isNode){const t={},[i,e]=Fr();t[i]=e,r&&(t[Tr.Cookie]=`${r}`),n=new this._webSocketConstructor(A,void 0,{headers:{...t,...this._headers}})}n||(n=new this._webSocketConstructor(A)),t===jr.Binary&&(n.binaryType="arraybuffer"),n.onopen=()=>{this._logger.log(dr.Information,`WebSocket connected to ${A}.`),this._webSocket=n,o=!0,i()},n.onerror=A=>{let t=null;t="undefined"!=typeof ErrorEvent&&A instanceof ErrorEvent?A.error:"There was an error with the transport",this._logger.log(dr.Information,`(WebSockets transport) ${t}.`)},n.onmessage=A=>{if(this._logger.log(dr.Trace,`(WebSockets transport) data received. ${mr(A.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(A.data)}catch(A){return void this._close(A)}},n.onclose=A=>{if(o)this._close(A);else{let t=null;t="undefined"!=typeof ErrorEvent&&A instanceof ErrorEvent?A.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",e(new Error(t))}}}))}send(A){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(dr.Trace,`(WebSockets transport) sending data. ${mr(A,this._logMessageContent)}.`),this._webSocket.send(A),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(A){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(dr.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this._isCloseEvent(A)||!1!==A.wasClean&&1e3===A.code?A instanceof Error?this.onclose(A):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${A.code} (${A.reason||"no reason given"}).`)))}_isCloseEvent(A){return A&&"boolean"==typeof A.wasClean&&"number"==typeof A.code}}class zr{constructor(A,t={}){var i;if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,wr.isRequired(A,"url"),this._logger=void 0===(i=t.logger)?new Cr(dr.Information):null===i?pr.instance:void 0!==i.log?i:new Cr(i),this.baseUrl=this._resolveUrl(A),(t=t||{}).logMessageContent=void 0!==t.logMessageContent&&t.logMessageContent,"boolean"!=typeof t.withCredentials&&void 0!==t.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");t.withCredentials=void 0===t.withCredentials||t.withCredentials,t.timeout=void 0===t.timeout?1e5:t.timeout;let e=null,n=null;if(Br.isNode&&"undefined"!=typeof require){const A="function"==typeof __webpack_require__?__non_webpack_require__:require;e=A("ws"),n=A("eventsource")}Br.isNode||"undefined"==typeof WebSocket||t.WebSocket?Br.isNode&&!t.WebSocket&&e&&(t.WebSocket=e):t.WebSocket=WebSocket,Br.isNode||"undefined"==typeof EventSource||t.EventSource?Br.isNode&&!t.EventSource&&void 0!==n&&(t.EventSource=n):t.EventSource=EventSource,this._httpClient=t.httpClient||new Ir(this._logger),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=t,this.onreceive=null,this.onclose=null}async start(A){if(wr.isIn(A=A||jr.Binary,jr,"transferFormat"),this._logger.log(dr.Debug,`Starting connection with transfer format '${jr[A]}'.`),"Disconnected"!==this._connectionState)return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(A),await this._startInternalPromise,"Disconnecting"===this._connectionState){const A="Failed to start the HttpConnection before stop() was called.";return this._logger.log(dr.Error,A),await this._stopPromise,Promise.reject(new Error(A))}if("Connected"!==this._connectionState){const A="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(dr.Error,A),Promise.reject(new Error(A))}this._connectionStarted=!0}send(A){return"Connected"!==this._connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new Jr(this.transport)),this._sendQueue.send(A))}async stop(A){return"Disconnected"===this._connectionState?(this._logger.log(dr.Debug,`Call to HttpConnection.stop(${A}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):"Disconnecting"===this._connectionState?(this._logger.log(dr.Debug,`Call to HttpConnection.stop(${A}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState="Disconnecting",this._stopPromise=new Promise((A=>{this._stopPromiseResolver=A})),await this._stopInternal(A),void await this._stopPromise)}async _stopInternal(A){this._stopError=A;try{await this._startInternalPromise}catch(A){}if(this.transport){try{await this.transport.stop()}catch(A){this._logger.log(dr.Error,`HttpConnection.transport.stop() threw error '${A}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(dr.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(A){let t=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory;try{if(this._options.skipNegotiation){if(this._options.transport!==Pr.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");this.transport=this._constructTransport(Pr.WebSockets),await this._startTransport(t,A)}else{let i=null,e=0;do{if(i=await this._getNegotiationResponse(t),"Disconnecting"===this._connectionState||"Disconnected"===this._connectionState)throw new Error("The connection was stopped during negotiation.");if(i.error)throw new Error(i.error);if(i.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(i.url&&(t=i.url),i.accessToken){const A=i.accessToken;this._accessTokenFactory=()=>A}e++}while(i.url&&e<100);if(100===e&&i.url)throw new Error("Negotiate redirection limit exceeded.");await this._createTransport(t,this._options.transport,i,A)}this.transport instanceof Rr&&(this.features.inherentKeepAlive=!0),"Connecting"===this._connectionState&&(this._logger.log(dr.Debug,"The HttpConnection connected successfully."),this._connectionState="Connected")}catch(A){return this._logger.log(dr.Error,"Failed to start the connection: "+A),this._connectionState="Disconnected",this.transport=void 0,this._stopPromiseResolver(),Promise.reject(A)}}async _getNegotiationResponse(A){const t={};if(this._accessTokenFactory){const A=await this._accessTokenFactory();A&&(t[Tr.Authorization]=`Bearer ${A}`)}const[i,e]=Fr();t[i]=e;const n=this._resolveNegotiateUrl(A);this._logger.log(dr.Debug,`Sending negotiation request: ${n}.`);try{const A=await this._httpClient.post(n,{content:"",headers:{...t,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials});if(200!==A.statusCode)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${A.statusCode}'`));const i=JSON.parse(A.content);return(!i.negotiateVersion||i.negotiateVersion<1)&&(i.connectionToken=i.connectionId),i}catch(A){let t="Failed to complete negotiation with the server: "+A;return A instanceof er&&404===A.statusCode&&(t+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this._logger.log(dr.Error,t),Promise.reject(new lr(t))}}_createConnectUrl(A,t){return t?A+(-1===A.indexOf("?")?"?":"&")+`id=${t}`:A}async _createTransport(A,t,i,e){let n=this._createConnectUrl(A,i.connectionToken);if(this._isITransport(t))return this._logger.log(dr.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=t,await this._startTransport(n,e),void(this.connectionId=i.connectionId);const r=[],o=i.availableTransports||[];let s=i;for(const i of o){const o=this._resolveTransportOrError(i,t,e);if(o instanceof Error)r.push(`${i.transport} failed:`),r.push(o);else if(this._isITransport(o)){if(this.transport=o,!s){try{s=await this._getNegotiationResponse(A)}catch(A){return Promise.reject(A)}n=this._createConnectUrl(A,s.connectionToken)}try{return await this._startTransport(n,e),void(this.connectionId=s.connectionId)}catch(A){if(this._logger.log(dr.Error,`Failed to start the transport '${i.transport}': ${A}`),s=void 0,r.push(new ar(`${i.transport} failed: ${A}`,Pr[i.transport])),"Connecting"!==this._connectionState){const A="Failed to select transport before stop() was called.";return this._logger.log(dr.Debug,A),Promise.reject(new Error(A))}}}}return Promise.reject(r.length>0?new cr(`Unable to connect to the server with any of the available transports. ${r.join(" ")}`,r):new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(A){switch(A){case Pr.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Vr(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case Pr.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Gr(this._httpClient,this._accessTokenFactory,this._logger,this._options);case Pr.LongPolling:return new Rr(this._httpClient,this._accessTokenFactory,this._logger,this._options);default:throw new Error(`Unknown transport: ${A}.`)}}_startTransport(A,t){return this.transport.onreceive=this.onreceive,this.transport.onclose=A=>this._stopConnection(A),this.transport.connect(A,t)}_resolveTransportOrError(A,t,i){const e=Pr[A.transport];if(null==e)return this._logger.log(dr.Debug,`Skipping transport '${A.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${A.transport}' because it is not supported by this client.`);if(!function(A,t){return!A||0!=(t&A)}(t,e))return this._logger.log(dr.Debug,`Skipping transport '${Pr[e]}' because it was disabled by the client.`),new sr(`'${Pr[e]}' is disabled by the client.`,e);if(!(A.transferFormats.map((A=>jr[A])).indexOf(i)>=0))return this._logger.log(dr.Debug,`Skipping transport '${Pr[e]}' because it does not support the requested transfer format '${jr[i]}'.`),new Error(`'${Pr[e]}' does not support ${jr[i]}.`);if(e===Pr.WebSockets&&!this._options.WebSocket||e===Pr.ServerSentEvents&&!this._options.EventSource)return this._logger.log(dr.Debug,`Skipping transport '${Pr[e]}' because it is not supported in your environment.'`),new or(`'${Pr[e]}' is not supported in your environment.`,e);this._logger.log(dr.Debug,`Selecting transport '${Pr[e]}'.`);try{return this._constructTransport(e)}catch(A){return A}}_isITransport(A){return A&&"object"==typeof A&&"connect"in A}_stopConnection(A){if(this._logger.log(dr.Debug,`HttpConnection.stopConnection(${A}) called while in state ${this._connectionState}.`),this.transport=void 0,A=this._stopError||A,this._stopError=void 0,"Disconnected"!==this._connectionState){if("Connecting"===this._connectionState)throw this._logger.log(dr.Warning,`Call to HttpConnection.stopConnection(${A}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${A}) was called while the connection is still in the connecting state.`);if("Disconnecting"===this._connectionState&&this._stopPromiseResolver(),A?this._logger.log(dr.Error,`Connection disconnected with error '${A}'.`):this._logger.log(dr.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch((A=>{this._logger.log(dr.Error,`TransportSendQueue.stop() threw error '${A}'.`)})),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(A)}catch(t){this._logger.log(dr.Error,`HttpConnection.onclose(${A}) threw error '${t}'.`)}}}else this._logger.log(dr.Debug,`Call to HttpConnection.stopConnection(${A}) was ignored because the connection is already in the disconnected state.`)}_resolveUrl(A){if(0===A.lastIndexOf("https://",0)||0===A.lastIndexOf("http://",0))return A;if(!Br.isBrowser)throw new Error(`Cannot resolve '${A}'.`);const t=window.document.createElement("a");return t.href=A,this._logger.log(dr.Information,`Normalizing '${A}' to '${t.href}'.`),t.href}_resolveNegotiateUrl(A){const t=A.indexOf("?");let i=A.substring(0,-1===t?A.length:t);return"/"!==i[i.length-1]&&(i+="/"),i+="negotiate",i+=-1===t?"":A.substring(t),-1===i.indexOf("negotiateVersion")&&(i+=-1===t?"?":"&",i+="negotiateVersion="+this._negotiateVersion),i}}class Jr{constructor(A){this._transport=A,this._buffer=[],this._executing=!0,this._sendBufferedData=new Xr,this._transportResult=new Xr,this._sendLoopPromise=this._sendLoop()}send(A){return this._bufferData(A),this._transportResult||(this._transportResult=new Xr),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(A){if(this._buffer.length&&typeof this._buffer[0]!=typeof A)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof A}`);this._buffer.push(A),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new Xr;const A=this._transportResult;this._transportResult=void 0;const t="string"==typeof this._buffer[0]?this._buffer.join(""):Jr._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(t),A.resolve()}catch(t){A.reject(t)}}}static _concatBuffers(A){const t=A.map((A=>A.byteLength)).reduce(((A,t)=>A+t)),i=new Uint8Array(t);let e=0;for(const t of A)i.set(new Uint8Array(t),e),e+=t.byteLength;return i.buffer}}class Xr{constructor(){this.promise=new Promise(((A,t)=>[this._resolver,this._rejecter]=[A,t]))}resolve(){this._resolver()}reject(A){this._rejecter(A)}}class _r{constructor(){this.name="json",this.version=1,this.transferFormat=jr.Text}parseMessages(A,t){if("string"!=typeof A)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!A)return[];null===t&&(t=pr.instance);const i=Nr.parse(A),e=[];for(const A of i){const i=JSON.parse(A);if("number"!=typeof i.type)throw new Error("Invalid payload.");switch(i.type){case gr.Invocation:this._isInvocationMessage(i);break;case gr.StreamItem:this._isStreamItemMessage(i);break;case gr.Completion:this._isCompletionMessage(i);break;case gr.Ping:case gr.Close:break;default:t.log(dr.Information,"Unknown message type '"+i.type+"' ignored.");continue}e.push(i)}return e}writeMessage(A){return Nr.write(JSON.stringify(A))}_isInvocationMessage(A){this._assertNotEmptyString(A.target,"Invalid payload for Invocation message."),void 0!==A.invocationId&&this._assertNotEmptyString(A.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(A){if(this._assertNotEmptyString(A.invocationId,"Invalid payload for StreamItem message."),void 0===A.item)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(A){if(A.result&&A.error)throw new Error("Invalid payload for Completion message.");!A.result&&A.error&&this._assertNotEmptyString(A.error,"Invalid payload for Completion message."),this._assertNotEmptyString(A.invocationId,"Invalid payload for Completion message.")}_assertNotEmptyString(A,t){if("string"!=typeof A||""===A)throw new Error(t)}}const Yr={trace:dr.Trace,debug:dr.Debug,info:dr.Information,information:dr.Information,warn:dr.Warning,warning:dr.Warning,error:dr.Error,critical:dr.Critical,none:dr.None};class Wr{configureLogging(A){if(wr.isRequired(A,"logging"),void 0!==A.log)this.logger=A;else if("string"==typeof A){const t=function(A){const t=Yr[A.toLowerCase()];if(void 0!==t)return t;throw new Error(`Unknown log level: ${A}`)}(A);this.logger=new Cr(t)}else this.logger=new Cr(A);return this}withUrl(A,t){return wr.isRequired(A,"url"),wr.isNotEmpty(A,"url"),this.url=A,this.httpConnectionOptions="object"==typeof t?{...this.httpConnectionOptions,...t}:{...this.httpConnectionOptions,transport:t},this}withHubProtocol(A){return wr.isRequired(A,"protocol"),this.protocol=A,this}withAutomaticReconnect(A){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=A?Array.isArray(A)?new Or(A):A:new Or,this}build(){const A=this.httpConnectionOptions||{};if(void 0===A.logger&&(A.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const t=new zr(this.url,A);return Mr.create(t,this.logger||pr.instance,this.protocol||new _r,this.reconnectPolicy)}}const{state:Zr,onChange:$r,reset:Ao}=W({connecting:!1,connected:!1}),to={state:Zr,onChange:$r,reset:Ao};class io{constructor(){console.log("Starting signalR");var A=tA.getInstance().get("sparkle");this.connection=(new Wr).withUrl(`${A.apiUrl}hubs/sparkle?url=${window.location.href}&courseClassId=1`,{accessTokenFactory:()=>this.getToken(),skipNegotiation:!0,transport:Pr.WebSockets}).configureLogging(dr.Debug).withAutomaticReconnect({nextRetryDelayInMilliseconds:A=>A.elapsedMilliseconds<6e4?1e4*Math.random():null}).build(),this.connection.on("SendMessage",((A,t)=>{let i=JSON.parse(t);console.log("Server said ",A,i)})),this.connection.onclose((()=>{})),this.connection.onreconnecting((()=>{console.assert(this.connection.state===fr.Reconnecting)})),this.connection.onreconnected((()=>{console.assert(this.connection.state===fr.Connected)}))}static getInstance(){return io.instance||(io.instance=new io),io.instance}async start(){console.log("start");try{to.state.connecting=!0,to.state.connected=!to.state.connecting,await this.connection.start(),console.log(this.connection),to.state.connecting=!1,to.state.connected=!to.state.connecting,console.assert(this.connection.state===fr.Connected),console.log("SignalR Connected.")}catch(A){console.assert(this.connection.state===fr.Disconnected),console.log(A)}}async callSignalR(A,t){console.log("signalR invoke",A,this.connection.connectionState),this.getToken()?(this.connection.invoke(A,JSON.stringify(t)),console.log("After signalR invoke",A,this.connection.connectionState)):console.log("Cannot connect to signalR. Not logged in")}getToken(){var A=tA.getInstance().get("sparkle");return A&&A.auth&&A.auth.getToken()?sparkle.auth.getToken():null}}class eo{constructor(){}static getInstance(){return eo.instance||(eo.instance=new eo),eo.instance}async UpdateTocPageInfo(A){Z.state.pageInfo=A}}const no=class{constructor(A){t(this,A),this.pageDidLoad=r(this,"pageDidLoad",7),this.isLesson=!1,this.notesPage={title:null,path:null,body:null,pageInfo:null},this.lessonNotesPage={title:null,path:null,body:null,pageInfo:null},this.page={title:null,path:null,body:null,pageInfo:null},this.onlineStudents=[],this.activetab="FACILITATOR_NOTES",this.validateFetch=A=>{if(!A.ok)throw A;return A.json()},this.handleNotesPage=A=>{this.badFetch=null,this.notesPage=A,this.pageDidLoad.emit({pageInfo:this.notesPage.pageInfo})},this.handleLessonNotesPage=A=>{this.badFetchLessonNotes=null,this.lessonNotesPage=A},this.handleNewPage=A=>{this.page=A,this.page=Object.assign(Object.assign({},this.page),{nextUrl:"/presentation/teacher"+this.page.nextUrl,previousUrl:"/presentation/teacher"+this.page.previousUrl}),eo.getInstance().UpdateTocPageInfo(this.page.pageInfo)},this.handleBadFetch=A=>{this.badFetch=A,this.notesPage={title:A.statusText,body:null,path:null,pageInfo:null}},this.handleLessonNotesBadFetch=A=>{this.badFetchLessonNotes=A,this.lessonNotesPage={title:A.statusText,body:null,path:null,pageInfo:null}}}async componentWillLoad(){return await this.fetchClasses(),this.fetchNotesPage(this.notesPath)&&this.fetchPage(this.path)}componentDidLoad(){this.isLesson=Z.state.pageInfo.pageId>0,this.isLesson||(this.activetab="ONLINE_STUDENTS")}async fetchClasses(){await lA.getInstance().fetchClasses()}fetchNotesPage(A,t){if(null===A||A===t)return;A=/^\/docs\/pages\/[a-z]{2}\.json$/.test(A)?A.replace(".json","/index.json"):A;let i=this.getLessonPath(A);return console.log(i),fetch(A).then(this.validateFetch).then(this.handleNotesPage).catch(this.handleBadFetch)&&fetch(i).then(this.validateFetch).then(this.handleLessonNotesPage).catch(this.handleLessonNotesBadFetch)}getLessonPath(A){let t=A.split("/");return t.pop(),t.join("/")+"/lesson-notes.json"}fetchPage(A,t){if(null!==A&&A!==t)return"Connected"==io.getInstance().connection.connectionState&&io.getInstance().callSignalR("NavigateFacilitatorPresentationCourseTo",{url:this.path.replace(".json","")}),A=/^\/docs\/pages\/[a-z]{2}\.json$/.test(A)?A.replace(".json","/index.json"):A,fetch(A).then(this.validateFetch).then(this.handleNewPage).catch(this.handleBadFetch)}disconnectedCallback(){eo.getInstance().UpdateTocPageInfo(null)}setDocumentMeta(A){const{title:t,meta:i={}}=A,e={title:document.head.querySelectorAll(".meta-title"),description:document.head.querySelectorAll(".meta-description"),url:document.head.querySelectorAll('.meta-url, link[rel="canonical"]'),image:document.head.querySelectorAll(".meta-image")},n=(A,t)=>{A.forEach((A=>{["href","content"].forEach((i=>{A.hasAttribute(i)&&A.setAttribute(i,t(A.getAttribute(i)))}))}))},r=()=>{const A=(/^\/docs\/pages.*$/.test(this.notesPath),"Sparkle");return i.title||t?`${t} - ${A}`:A};document.title=r(),n(e.title,r),n(e.url,(A=>{const t="/docs/",i=location.pathname.split(t)[1];return A.split(t)[0]+t+i})),n(e.description,(()=>i.description||"Sparkle is the free open-source platform for creating learning content on web, mobile and desktop.")),n(e.image,(()=>i.image||"https://girlsinclearning.com//images/logo-primary.png"))}hostData(){return{class:{[this.notesPage.pageClass]:"string"==typeof this.notesPage.pageClass}}}renderNavigation(){return i("div",{class:"p-2 d-md-flex justify-content-md-center"},i("div",{class:"btn-group btn-group-sm",role:"group","aria-label":"Basic outlined example"},i("button",{type:"button",class:"btn btn-outline-primary"},"Prev"),i("input",{type:"text",class:"form-control",placeholder:"Input group example","aria-label":"Input group example","aria-describedby":"btnGroupAddon",value:this.path.replace("index",""),readOnly:!0}),i("button",{type:"button",class:"btn btn-outline-primary"},"Next")))}renderTabs(){return i("main",{class:"no-demo"},i("ul",{class:"nav nav-tabs"},this.isLesson&&i(l,null,i("li",{class:"nav-item"},i("a",{class:"nav-link "+("FACILITATOR_NOTES"==this.activetab?"active":""),href:"javascript:void(0)",onClick:()=>this.activetab="FACILITATOR_NOTES"},"Facilitator Notes")),i("li",{class:"nav-item"},i("a",{class:"nav-link "+("NOTES"==this.activetab?"active":""),href:"javascript:void(0)",onClick:()=>this.activetab="NOTES"},"Notes")),i("li",{class:"nav-item"},i("a",{class:"nav-link "+("LESSON_NOTES"==this.activetab?"active":""),href:"javascript:void(0)",onClick:()=>this.activetab="LESSON_NOTES"},"Lesson Notes"))),i("li",{class:"nav-item"},i("a",{class:"nav-link "+("ONLINE_STUDENTS"==this.activetab?"active":""),href:"javascript:void(0)",onClick:()=>this.activetab="ONLINE_STUDENTS"},"Online Students")),i("li",{class:"nav-item"},i("a",{class:"nav-link "+("DASHBOARD"==this.activetab?"active":""),href:"javascript:void(0)",onClick:()=>this.activetab="DASHBOARD"},"Dashboard")),i("li",{class:"nav-item"},i("a",{class:"nav-link "+("EXPORT"==this.activetab?"active":""),href:"javascript:void(0)",onClick:()=>this.activetab="EXPORT"},"Export"))),i("div",{class:"tab-content"},"FACILITATOR_NOTES"==this.activetab&&this.renderFacilitatorNotes(),"NOTES"==this.activetab&&i("sparkle-facilitator-notes",null),"LESSON_NOTES"==this.activetab&&this.renderLessonNotes(),"ONLINE_STUDENTS"==this.activetab&&i("sparkle-online-students",{path:this.path}),"DASHBOARD"==this.activetab&&i("sparkle-facilitator-dashboard",null),"EXPORT"==this.activetab&&i("sparkle-export-lessons",null)))}renderLessonNotes(){const{lessonNotesPage:A}=this,t=Vt[A.template]||Vt.default;return this.badFetchLessonNotes?Vt.error(this.badFetch):i(t,{page:A})}renderFacilitatorNotes(){const{notesPage:A}=this,t=Vt[A.template]||Vt.default;return this.badFetch?Vt.error(this.badFetch):i(t,{page:A})}__stencil_render(){console.log(cA.state.classes);const{page:A}=this,t=this.renderTabs();return i("div",{class:"container"},i("div",{class:"d-flex justify-content-between align-items-center"},i("sparkle-page-footer",{page:A}),i("div",null,i("select",{class:"form-select","aria-label":"Default select example"},cA.state.classes.map((A=>i("option",null,A.ClassName)))))),t)}static get watchers(){return{notesPath:["fetchNotesPage"],path:["fetchPage"],page:["setDocumentMeta"]}}render(){return i(n,this.hostData(),this.__stencil_render())}};no.style=".Error{align-items:center;background-color:var(--offset-background);color:var(--text-color--light);display:flex;flex-direction:column;justify-content:center;line-height:1;white-space:nowrap}.Error.full-screen{padding-bottom:3rem}.Error>*{margin:10px}.Error h1,.Error div{color:inherit;font-size:3rem}.Error div{text-shadow:3px 3px 3px rgba(0,0,0,0.1)}.Error p{font-size:18px}sparkle-facilitator-page{display:grid;font-size:16px;grid-template-columns:1fr;line-height:2;margin-top:var(--header-height);overflow-x:hidden;transform:var(--page-transform, none);transition:transform 200ms cubic-bezier(0.2, 1, 0.2, 1);--page-padding:2rem;padding:20px}@media (min-width: 1234px){sparkle-facilitator-page{grid-template-columns:1fr}}@media (min-width: 1800px){sparkle-facilitator-page{grid-template-columns:1fr}}sparkle-facilitator-page>main.column-1{position:relative;grid-column:1;margin-bottom:3rem;padding:var(--page-padding, 2rem 1rem);position:relative}sparkle-facilitator-page>main.column-2{position:relative;grid-column:1;margin-bottom:3rem;padding:var(--page-padding, 2rem 1rem);position:relative}sparkle-facilitator-page sparkle-pagination{grid-column:1 / -1;border:none;--page-padding:0rem 1rem}sparkle-facilitator-page .full-screen{grid-column:1 / -1;height:calc(100vh - var(--header-height));margin-bottom:0;overflow:hidden;padding:0}sparkle-facilitator-page sparkle-page-footer{margin-top:0rem}sparkle-facilitator-page .page-heading-encapsulation{text-transform:uppercase;background:transparent;color:#2d4665;border:1px solid #dee3ea;border-radius:14px;height:24px;padding:2px 8px;font-weight:600;font-size:10px;line-height:14px;display:inline-flex;align-items:center;align-self:center;justify-self:flex-end;letter-spacing:0.08em;float:right}sparkle-facilitator-page .page-heading-encapsulation:hover{border-color:#92a1b3}sparkle-facilitator-page h1{display:flex;justify-content:space-between;margin-top:2rem;margin-bottom:1rem}sparkle-facilitator-page h2 a[href^='#'],sparkle-facilitator-page h3 a[href^='#'],sparkle-facilitator-page h4 a[href^='#'],sparkle-facilitator-page h5 a[href^='#'],sparkle-facilitator-page h6 a[href^='#']{color:inherit;position:relative}sparkle-facilitator-page h2 a[href^='#']:before,sparkle-facilitator-page h3 a[href^='#']:before,sparkle-facilitator-page h4 a[href^='#']:before,sparkle-facilitator-page h5 a[href^='#']:before,sparkle-facilitator-page h6 a[href^='#']:before{content:'#';opacity:0;padding-right:5px;position:absolute;right:100%;transition:opacity 100ms ease}sparkle-facilitator-page h2 a[href^='#']:hover:before,sparkle-facilitator-page h3 a[href^='#']:hover:before,sparkle-facilitator-page h4 a[href^='#']:hover:before,sparkle-facilitator-page h5 a[href^='#']:hover:before,sparkle-facilitator-page h6 a[href^='#']:hover:before{opacity:1}sparkle-facilitator-page h2 code,sparkle-facilitator-page h3 code,sparkle-facilitator-page h4 code,sparkle-facilitator-page h5 code,sparkle-facilitator-page h6 code{background:none;font-size:inherit}sparkle-facilitator-page aside{float:right;margin-left:20px;margin-bottom:20px}@media (min-width: 1234px){sparkle-facilitator-page main.no-demo .page-meta{position:fixed;right:0;top:100px;width:240px;transition:0.2s transform ease}sparkle-header.hidden~stencil-route sparkle-facilitator-page main.no-demo .page-meta{transform:translateY(-60px)}}sparkle-facilitator-page main.has-demo .page-meta internal-ad{display:none}sparkle-facilitator-page .tab-content{padding:20px}";class ro{constructor(){}static getInstance(){return ro.instance||(ro.instance=new ro),ro.instance}async register(A){const t={"Content-Type":"application/json"};let i;J.state.loading=!0;try{i=await gA.http.post("api/Account/Register",A,{headers:t}),i.Succeeded&&(J.state.loading=!1)}catch(A){return J.state.loading=!1,A}return i}async forgotPassword(A){let t;J.state.loading=!0;try{t=await gA.http.post("api/Account/Forgot-Password",A),t.Succeeded&&(J.state.loading=!1)}catch(A){return J.state.loading=!1,A}return t}async resetPassword(A){let t;J.state.loading=!0;try{t=await gA.http.post("api/Account/reset-password",A),t.Succeeded&&(J.state.loading=!1)}catch(A){return J.state.loading=!1,A}return t}}const oo=class{constructor(A){t(this,A),this.formControls={email:{isValid:!1,value:"",validate:A=>!!A}},this.submitted=!1}changeFormValue(A,t){this.formControls=Object.assign(Object.assign({},this.formControls),{[A]:Object.assign(Object.assign({},this.formControls[A]),{value:t,isValid:this.formControls[A].validate(t)})})}async handleSubmit(A){A.preventDefault(),this.submitted=!0;let t=!0;for(let A in this.formControls){let i=this.formControls[A];i.validate(i.value),i.isValid||(t=!1)}if(t){let A=await ro.getInstance().forgotPassword({Email:this.formControls.email.value,ClientURL:window.location.origin+"/reset-password"});A.Succeeded?this.history.replace("/login",{}):A.Failed&&A.Errors.length>0&&(this.validationErrors=A.Errors)}}render(){return[i("div",null,i("div",{class:"login-logo"},i("img",{src:A("/assets/img/G3-Girls.jpg"),alt:"Girls Inc"})),i("sparkle-validation-error",{errors:this.validationErrors}),i("form",{novalidate:"true",onSubmit:A=>this.handleSubmit(A)},i("ion-list",{"no-lines":!0},i("ion-item",{lines:"none"},"Enter your email address and we will send you a link to reset your password."),i("ion-item",null,i("ion-label",{position:"stacked",color:"primary"},"Email"),i("ion-input",{name:"email",type:"text",value:this.formControls.email.value,onInput:A=>this.changeFormValue("email",A.target.value),spellcheck:!1,autocapitalize:"off"})),i("ion-text",{color:"danger"},i("p",{hidden:this.formControls.email.isValid||!1===this.submitted,class:"ion-padding-left"},"Email is required")),i("br",null),i("div",{class:"ion-padding"},i("ion-button",{type:"submit",expand:"block",disabled:J.state.loading},J.state.loading&&i("ion-spinner",{name:"dots"})," SEND PASSWORD RESET EMAIL")))))]}};oo.style="sparkle-forgot-password .list{margin-bottom:0}";const so=class{constructor(A){t(this,A)}render(){return i(n,null,i("sparkle-card",{header:this.goal.Name,icon:this.goal.CategoryIcon},i("div",{class:"goal-header"},i("ion-button",{size:"small",color:"primary",onClick:()=>this.onEditGoal()},"Edit")),i("p",null,this.goal.Description),i("sparkle-goal-progress",{percentage:this.goal.Percentage.toString()})))}};so.style=":host{display:block}.Card-content{padding-top:8px}.goal-header{display:flex;justify-content:flex-end;margin-top:-40px !important}";const ao=class{constructor(A){t(this,A)}render(){return i(n,null,i("div",{class:"progress-container"},i("div",{id:"progress-bar",style:{"--p":this.percentage+"%"}}),i("strong",{class:"percentage"},this.percentage,"%")))}};ao.style=":host{display:block}.progress-container{padding:4px;display:flex;align-items:center}.progress-container>.progress{padding-left:6px}#progress-bar{background:#ccc;border-radius:12px;height:10px;width:100%;padding:0px;margin:0 auto}#progress-bar:after{content:'';display:block;background:var(--ion-color-primary);width:var(--p);height:100%;border-radius:9px}.percentage{padding-left:10px}";const lo=class{constructor(A){t(this,A)}async componentDidLoad(){await fA.getInstance().getAllGoals()}async presentAddGoalModal(A){const t=await uA.create({component:"sparkle-goal-form",cssClass:"auto-height",componentProps:{appData:A}});await t.present()}render(){return i(n,null,i("h2",null,"MY GOALS"),i("ion-item",{lines:"none"},i("ion-button",{size:"default",color:"primary",slot:"end",onClick:()=>this.presentAddGoalModal(null)},i("ion-icon",{name:"add-outline"}),"Add")),i("div",{class:"ion-padding"},i("sparkle-cards",null,pA.state.goals.map((A=>i("div",{style:{position:"relative"}},i("sparkle-goal-item",{goal:A.AppData,onEditGoal:()=>this.presentAddGoalModal(A)}))))),!pA.state.goalsLoading&&0==pA.state.goals.length&&i("div",{class:"text-center"},"No Goals"),pA.state.goalsLoading&&i("div",{class:"text-center"},i("ion-spinner",{name:"dots"}))))}};lo.style=":host{display:block}sparkle-dropdown a{color:var(--text-color);padding:1em;cursor:pointer}";const co=class{constructor(A){t(this,A),this.commentPosted=r(this,"commentPosted",7),this.postComment=async A=>{(await wA.getInstance().createPostComment(A)).Succeeded&&this.commentPosted.emit()}}async componentDidLoad(){await wA.getInstance().getAllPosts()}render(){return console.log(BA.state.postIdLoading,"Loading"),i(n,null,BA.state.posts.map((A=>i("sparkle-gww-item",{key:A.Id,post:A,onPostComment:this.postComment,loading:BA.state.postIdLoading==A.Id}))))}};var ho;co.style=":host{display:block}",function(A){A[A.Private=0]="Private",A[A.Public=1]="Public"}(ho||(ho={}));const uo=class{constructor(A){t(this,A)}async presentModal(A){const t=await uA.create({component:"sparkle-gww-comment-list",componentProps:{comments:A}});await t.present()}clearCommentField(){this.comment=""}renderMyMoodTemplate(A){return i("div",null,i("b",null,"Mood:")," ",A.Mood,i("br",null),i("b",null,"Level:")," ",A.Level,i("br",null),i("img",{src:A.MoodImage}),"`")}renderMyHealthTemplate(A){return i("div",null,i("b",null,"Heart rate:")," ",A.HeartRate," bpm ")}renderMyGoalTemplate(A){return i("div",null,i("b",null,"Goal: ")," ",A.GoalTitle," ",i("br",null),i("b",null,"Update Text: ")," ",A.GoalText," ",i("br",null),i("sparkle-goal-progress",{percentage:A.GoalProgress}))}renderTemplate(){if(!this.post.PostTextJSON)return[i("div",{innerHTML:this.post.PostText}),this.post.ExternalResourceUrl&&i("div",null,i("img",{src:this.post.ExternalResourceUrl,class:"external-src-image"}))];var A=JSON.parse(this.post.PostTextJSON);return this.post.MiniAppId==eA.MY_GOALS_APP_ID?this.renderMyGoalTemplate(A):this.post.MiniAppId==eA.MY_HEALTH_APP_ID?this.renderMyHealthTemplate(A):this.post.MiniAppId==eA.MY_MOOD_APP_ID?this.renderMyMoodTemplate(A):void 0}render(){return i(n,{class:{Card:!0}},i("ion-item",{class:"header-item"},i("ion-avatar",{class:"header-avatar",slot:"start"},i("img",{src:this.post.ProfileImageUrl?this.post.ProfileImageUrl:A("/assets/img/user.png")})),i("div",null,i("strong",{class:"requester-name","text-capitalize":!0},this.post.Name),i("div",null,i("small",null," ",nA(this.post.CreatedOn)))),i("div",{slot:"end"},i("ion-icon",{color:"primary",name:this.post.PostVisibility==ho.Public?"globe-outline":"eye-outline"}))),i("div",{class:"ion-padding"},this.renderTemplate()),i("div",{class:"footer"},this.post.Comments.length>0&&i("div",{class:"comment-overview",slot:"end"}," ",i("small",{onClick:()=>this.post.Comments.length>0&&this.presentModal(this.post.Comments)},"Comments (",this.post.Comments.length,")")),this.post.Comments.map((A=>{i("ion-item",{class:"comment-box",onClick:()=>this.presentModal(this.post.Comments)},i("ion-avatar",{class:"footer-avatar",slot:"start"},i("img",{src:A.ProfileImageUrl?A.ProfileImageUrl:"/assets/img/user.png"})),i("small",null,i("b",null,A.Name)," ",A.Comment),i("ion-icon",{slot:"end",name:"git-merge",color:"primary"}))})),i("hr",null),i("ion-item",{class:"comment-footer"},i("ion-avatar",{class:"footer-avatar",slot:"start"},i("img",{src:A("/assets/img/user.png")})),i("ion-input",{value:this.comment,onIonChange:A=>this.comment=A.target.value,type:"text",placeholder:"Write a comment"}),i("ion-button",{onClick:()=>this.onPostComment({Comment:this.comment,PostId:this.post.Id}),slot:"end",size:"small",disabled:!this.comment||this.loading},this.loading?i("ion-spinner",{name:"dots"}):"POST COMMENT"))))}};uo.style=":host{display:block}.Card{background-color:var(--background);border-radius:4px;box-shadow:rgb(2 8 20 / 10%) 0px 0.175em 0.5em, rgb(2 8 20 / 8%) 0px 0.085em 0.175em;color:var(--text-color--light);display:flex;flex-direction:column;font-size:inherit;font-weight:normal;justify-content:flex-start;line-height:1.6;transition:box-shadow 150ms ease 0s, transform 150ms ease 0s, -webkit-box-shadow 150ms ease 0s, -webkit-transform 150ms ease 0s;width:100%;overflow:hidden;margin-bottom:20px;height:auto !important}.footer ion-item ion-avatar{width:30px;height:30px}.comment-overview{padding:0px 16px;text-align:right;cursor:pointer}";const go=window.localStorage;class fo{}fo.LOCALSTORAGE_CLASSROOM_MODE="SPARKLE_CLASSROOM_MODE";const po=class{constructor(A){t(this,A),this.classRoomModeChanged=r(this,"classRoomModeChanged",7),this.hideClassRoomToggle=!1,this.courseName="",this.imageUrl="",this.classRoomMode=!0,this.hidden=!1,this.frameRequested=!1,this.prevScroll=0}handleScroll(){this.frameRequested||(requestAnimationFrame((()=>{const{scrollY:A}=window;this.hidden=A>60&&A>this.prevScroll,this.prevScroll=A,this.frameRequested=!1})),this.frameRequested=!0)}componentDidLoad(){var A;this.classRoomMode=null!==(A=function(A){try{if(go){const t=go.getItem(A);return JSON.parse(t)}}catch(A){return null}}(fo.LOCALSTORAGE_CLASSROOM_MODE))&&void 0!==A&&A}hostData(){return{class:{hidden:this.hidden}}}toggleClassRoomMode(){var A,t;this.classRoomMode=!this.classRoomMode,A=fo.LOCALSTORAGE_CLASSROOM_MODE,t=this.classRoomMode,new Promise(((i,e)=>{try{go&&go.setItem(A,JSON.stringify(t)),i()}catch(A){e(`Couldnt store object ${A}`)}})),this.classRoomModeChanged.emit(this.classRoomMode)}renderModeToggle(){return i("div",{class:"class-room-toggle-container"},i("div",{class:"class-room-mode-toggle-title"},"Classroom"),i("div",{class:"class-room-mode-toggle"},i("button",{class:1==this.classRoomMode?"is-selected":null,title:"Toggle classroom mode",onClick:()=>this.toggleClassRoomMode()},"On"),i("button",{class:0==this.classRoomMode?"is-selected":null,title:"Toggle classroom mode",onClick:()=>this.toggleClassRoomMode()},"Off")))}__stencil_render(){return i("header",null,i("sparkle-menu-toggle",{onClick:this.toggleClickFn}),i("a",{href:"/home"},i("div",{class:"HeaderLogo"},this.courseName)),i("header-mobile-collapse",null,i("div",{class:"SectionNav-tabs"},i("stencil-route-link",{url:"/home"},"Home")),i("nav",{class:"UtilNav"},this.authUser?i("sparkle-dropdown",{image:this.imageUrl,align:"center",label:"Account",class:"label-sm-only profile-dropdown"},i("section",null,i("stencil-route-link",{url:"/profile"},"My Profile"),i("stencil-route-link",{url:"/enrollment"},"My Enrollment"),i("a",{onClick:this.signoutClickFn},"Sign Out"))):[i("sparkle-button",{href:"/login",round:!0},"Login"),i("sparkle-button",{href:"/signup",primary:!0,round:!0},"Get Started")],!this.hideClassRoomToggle&&this.renderModeToggle(),i("slot",{name:"logo"}))))}render(){return i(n,this.hostData(),this.__stencil_render())}};po.style="sparkle-header{background-color:var(--background);box-shadow:0px 1px 3px rgba(2, 8, 20, 0.06), 0px 1px 2px rgba(2, 8, 20, 0.04);color:var(--text-color--light);display:block;font-size:14px;font-weight:500;line-height:1;position:fixed;top:0;left:0;transform:translateY(0);transition:transform 200ms ease;user-select:none;width:100%;white-space:nowrap;z-index:2}@media (min-width: 768px){.Layout:not(.is-menu-toggled) sparkle-header.hidden{transform:translateY(-100%)}}@media (max-width: 768px){.Layout.is-menu-toggled sparkle-header.hidden{transform:translateY(-100%)}}sparkle-header header{align-items:center;display:flex;height:var(--header-height);padding:0 1.4rem 0 0.8rem}sparkle-header a{color:inherit;font-weight:500;padding:10px 0}sparkle-header ion-icon{font-size:16px;color:#b2becd}sparkle-header .link-active{color:var(--ion-color-sparkle)}@media (hover: hover){sparkle-header a:not(.link-active):hover{color:var(--text-color)}}sparkle-header sparkle-menu-toggle{flex:none;margin-right:0.75em}sparkle-header .HeaderLogo{color:var(--text-color--dark);font-family:var(--heading-font-family);height:25px;margin-right:2em;display:flex;justify-content:center;align-items:center;font-size:1.5em}sparkle-header .SectionNav stencil-route{display:flex}sparkle-header .SectionNav .Dropdown{align-self:center;color:var(--text-color);margin-right:0.75em}sparkle-header .SectionNav .Dropdown-button{border:solid 1px #dee3ea;border-radius:6px;color:var(--text-color--dark);padding:10px;transition:border-color 100ms ease}sparkle-header .SectionNav .Dropdown.is-open .Dropdown-button{border-color:var(--line-rule-color)}sparkle-header .SectionNav .Dropdown-panel{min-width:180px}sparkle-header .SectionNav .Dropdown-panel a{display:flex;justify-content:space-between}sparkle-header .SectionNav .Dropdown-panel svg{height:1em;width:1em}sparkle-header .SectionNav .Dropdown-panel .Nav-link{margin-left:0;margin-right:0}sparkle-header .SectionNav-tabs>*{align-items:center;display:inline-flex;height:var(--header-height);margin-right:1em;padding:0px 1em;position:relative}sparkle-header .SectionNav-tabs .link-active:after{background-color:currentColor;bottom:0;content:'';display:block;height:2px;left:0;position:absolute;width:100%}sparkle-header .UtilNav{align-items:center;display:flex;font-size:12px;margin-left:auto}sparkle-header .UtilNav>*{margin-left:1em}sparkle-header .UtilNav .Dropdown.is-open{color:var(--text-color)}sparkle-header .UtilNav .Dropdown-button{padding:10px 0}@media (hover: hover){sparkle-header .UtilNav .Dropdown-button:hover{color:var(--text-color)}}sparkle-header .UtilNav .Dropdown-panel{font-size:14px}sparkle-header .class-room-toggle-container{display:flex;justify-content:start;align-items:center;padding-left:20px}sparkle-header .class-room-mode-toggle-title{padding-right:5px}sparkle-header .class-room-mode-toggle{align-items:center;display:flex;justify-content:center;width:90px;height:28px;background:var(--ion-color-sparkle-step-50);border-radius:18px}sparkle-header .class-room-mode-toggle button{background-color:transparent;border:none;border-radius:16px;color:#5b708b;cursor:pointer;font-family:var(--font-family);font-size:11px;letter-spacing:-0.02em;width:calc(50% - 2px);line-height:21px;padding-top:2px;transition:200ms background-color ease, 200ms color ease}sparkle-header .class-room-mode-toggle button:focus,sparkle-header .class-room-mode-toggle button:active{outline:none}sparkle-header .class-room-mode-toggle button.is-selected{background-color:var(--ion-color-sparkle);color:var(--ion-color-sparkle-contrast);font-weight:600;box-shadow:0px 2px 3px #a7b5c7}sparkle-header .girls-inc-logo{display:block;max-width:40px;max-height:40px;width:auto;height:auto}sparkle-header sparkle-dropdown.profile-dropdown .Dropdown-icon{height:30px;width:30px}sparkle-header sparkle-dropdown.profile-dropdown .Dropdown-arrow{height:30px}";const{state:wo,reset:Bo}=W({mediaUploading:!1}),mo={state:wo,reset:Bo};class bo{constructor(){}static getInstance(){return bo.instance||(bo.instance=new bo),bo.instance}async uploadImage(A){let t,i=new FormData;for(let t=0;t<A.length;t++)i.append("uploads[]",A[t],A[t].name);mo.state.mediaUploading=!0;try{t=await gA.http.post("api/v1/MediaItems/Upload",i),t&&(mo.state.mediaUploading=!1)}catch(A){mo.state.mediaUploading=!1}return t}}const vo=class{constructor(A){t(this,A),this.uploadedImageUrl="",this.heartRate=0,this.public=!0,this.submitted=!1}async postFeed(){const A=tA.getInstance().get("sparkle"),t=await z.getInstance().loadJsonFile(A.tocPath);var i={PostText:rA(this.heartRate),ExternalResourceUrl:this.uploadedImageUrl,IsPublic:this.public,MiniAppId:eA.MY_HEALTH_APP_ID,CourseId:t.id,PostTextJSON:oA(this.heartRate)};(await wA.getInstance().createPost(i)).Succeeded&&this.history.replace("/home")}async uploadImage(A){if(this.submitted=!0,console.log(A.target.files),A.target.files&&A.target.files[0]){const t=await bo.getInstance().uploadImage(A.target.files);t.Succeeded&&t.Data&&t.Data.length>0&&(this.uploadedImageUrl=t.Data[0].FullImageUrl,console.log(this.uploadedImageUrl))}}selectFile(){this.el.querySelector("#fileInput").click()}render(){return i(n,null,i("div",null,i("h3",null,"MY HEALTH"),i("p",null,"This mini-app will help girls develop and instil good physical health habits"),i("ion-list",null,i("ion-list-header",null,"Select Heart Rate"),i("ion-item",{lines:"none"},i("ion-range",{min:0,max:150,step:1,snaps:!0,pin:!0,onIonChange:A=>this.heartRate=+A.detail.value},i("ion-icon",{size:"small",slot:"start",name:"pulse"}),i("ion-icon",{name:"pulse",size:"small"}),i("div",{slot:"end"},i("strong",null,this.heartRate)))),this.uploadedImageUrl&&i("ion-item",{lines:"none"},i("img",{class:"health-image",src:this.uploadedImageUrl})),i("ion-item",{lines:"none"},i("input",{type:"file",id:"fileInput",onChange:A=>this.uploadImage(A),style:{display:"none"},accept:"image/*"}),i("div",null,i("ion-button",{onClick:()=>this.selectFile(),disabled:mo.state.mediaUploading},mo.state.mediaUploading&&i("ion-spinner",{name:"dots"}),"Upload Image"))),i("ion-item",{lines:"none"},i("ion-label",null,"Share to Community Wall"),i("ion-checkbox",{slot:"start",onChange:A=>this.public=A.detail.checked,checked:!0})),i("ion-item",{lines:"none"},i("ion-button",{slot:"end",color:"primary",size:"default",onClick:()=>this.postFeed(),disabled:mo.state.mediaUploading||BA.state.createPostLoading},BA.state.createPostLoading&&i("ion-spinner",{name:"dots"})," POST")))))}get el(){return e(this)}};vo.style=":host{display:block}.health-image{display:block;max-width:300px;max-height:200px;width:auto;height:auto}";const Qo=class{constructor(A){t(this,A),this.userDidLogIn=r(this,"userDidLogIn",7),this.username={valid:!1,value:""},this.password={valid:!1,value:""},this.rememberMe={valid:!0,value:!1},this.submitted=!1}handleUsername(A){this.validateUsername(),this.username=Object.assign(Object.assign({},this.username),{value:A.target.value})}handlePassword(A){this.validatePassword(),this.password.value=A.target.value,this.password=Object.assign(Object.assign({},this.password),{value:A.target.value})}handleRememberMe(A){this.rememberMe=Object.assign(Object.assign({},this.password),{value:A.target.checked}),console.log(this.rememberMe.value)}validateUsername(){this.username=Object.assign(Object.assign({},this.username),this.username.value&&this.username.value.length>0?{valid:!0}:{valid:!1})}validatePassword(){if(this.password.value&&this.password.value.length>0)return this.password.valid=!0,void(this.password=Object.assign(Object.assign({},this.password),{valid:!0}));this.password=Object.assign(Object.assign({},this.password),{valid:!1})}async componentWillLoad(){this.destroyListener=J.onChange("authUser",(async A=>{this.notsignin=!A})),this.notsignin=!J.state.authUser}disconnectedCallback(){this.destroyListener&&this.destroyListener()}async onLogin(A){A.preventDefault(),this.validatePassword(),this.validateUsername(),this.submitted=!0,this.password.valid&&this.username.valid&&(await R.getInstance().authenticate({Email:this.username.value,Password:this.password.value,RememberClient:this.rememberMe.value}),sessionStorage.setItem("rememberMe",1==this.rememberMe.value?"1":"0"),this.userDidLogIn.emit({loginStatus:!0}))}async onSignup(A){A.preventDefault()}renderLogin(){return[i("div",null,i("div",{class:"login-logo"},i("img",{src:A("/assets/img/G3-Girls.jpg"),alt:"Girls Inc"})),i("form",{novalidate:"true",onSubmit:A=>this.onLogin(A)},i("ion-list",{"no-lines":!0},i("ion-item",null,i("ion-label",{position:"stacked",color:"primary"},"Username"),i("ion-input",{name:"username",type:"text",value:this.username.value,onInput:A=>this.handleUsername(A),spellcheck:!1,autocapitalize:"off",required:!0})),i("ion-text",{color:"danger"},i("p",{hidden:this.username.valid||!1===this.submitted,class:"ion-padding-left"},"Username is required")),i("ion-item",null,i("ion-label",{position:"stacked",color:"primary"},"Password"),i("ion-input",{name:"password",type:"password",value:this.password.value,onInput:A=>this.handlePassword(A),required:!0})),i("ion-text",{color:"danger"},i("p",{hidden:this.password.valid||!1===this.submitted,class:"ion-padding-left"},"Password is required")),i("ion-item",{lines:"none"},i("ion-label",null,"Remember Me"),i("ion-checkbox",{slot:"start",checked:this.rememberMe.value,onIonChange:A=>this.handleRememberMe(A)})),i("ion-item",{lines:"none"},i("stencil-route-link",{slot:"end",url:"/forgot-password",exact:!0},"Forgot Password?"))),i("ion-row",null,i("ion-col",null,i("ion-button",{type:"submit",expand:"block",disabled:J.state.loading},J.state.loading&&i("ion-spinner",{name:"dots"})," Log In"))),i("ion-item",{lines:"none"},i("span",null," Not registered yet? ",i("stencil-route-link",{url:"/signup",exact:!0},"Sign Up")))))]}render(){return this.notsignin?this.renderLogin():i("stencil-router-redirect",{url:"home"})}};Qo.style="sparkle-login .list{margin-bottom:0}";const Co=class{constructor(A){t(this,A),this.config={showRomanNumber:!1,showModuleIndex:!0,showSessionIndex:!0}}render(){return[i("header",null,i("sparkle-menu-toggle",{onClick:this.toggleClickFn}),i("stencil-route-link",{url:"/docs/"},i("div",{class:"MenuLogo"},this.toc.name))),i("stencil-route-switch",{scrollTopOffset:0,class:"Menu"},i("sparkle-nav",{toc:this.toc,config:this.config}))]}};Co.style="sparkle-menu{background-color:var(--background);border-right:solid 1px var(--line-rule-color);display:flex;flex-direction:column;height:100vh;left:0;position:fixed;top:0;transition:transform 200ms cubic-bezier(0.2, 1, 0.2, 1);transform:var(--menu-transform, none);width:var(--menu-width);z-index:1}sparkle-menu>header{align-items:center;border-bottom:solid 1px var(--line-rule-color);display:flex;flex:none;height:var(--header-height);padding:0 1.4rem 0 0.8rem;user-select:none}sparkle-menu sparkle-menu-toggle{margin-right:0.75em}sparkle-menu .MenuLogo{color:var(--text-color--dark);font-family:var(--heading-font-family);height:25px}sparkle-menu>.Menu{overflow-y:auto;-webkit-overflow-scrolling:touch}sparkle-menu nav{padding:2rem 1.5rem}.MenuControls{border-bottom:solid 1px var(--line-rule-color);box-shadow:0 5px 10px -10px rgba(0, 0, 0, 0.1);font-size:13px;padding:1em}.CourseSelect,.CourseSelect .Dropdown,.CourseSelect .Dropdown-button{width:100%}.CourseSelect-course{align-items:center;display:flex}.CourseSelect-icon{height:14px;width:14px;margin-right:0.5em}.CourseSelect .Select-option{padding-left:0.75em}";const Fo=class{constructor(A){t(this,A)}hostData(){return{role:"button",tabindex:"0","aria-label":"Toggle Menu"}}__stencil_render(){return i(g,null)}render(){return i(n,this.hostData(),this.__stencil_render())}};Fo.style="sparkle-menu-toggle{background-color:rgba(0, 0, 0, var(--bg-alpha, 0));border-radius:50%;color:var(--text-color--light);cursor:pointer;height:40px;padding:8px;width:40px}@media (hover: hover){sparkle-menu-toggle:focus,sparkle-menu-toggle:hover{--bg-alpha:0.03;outline:none}sparkle-menu-toggle:active{--bg-alpha:0.06}}sparkle-menu-toggle svg{fill:currentColor}";const Uo=class{constructor(A){t(this,A),this.feelingItems=["Anger","Fear","Disgust","Happiness","Sadness","Suprise","Neutral","Anxiety","Love","Depression","Contempt","Pride","Shame","Envy"],this.intensityItems=["1","2","3","4","5","6","7","8","9","10"],this.locationItems=["anger.jpg","fear.jpg","disgust.jpg","happiness.jpg","sadness.jpg","neutral.jpg","anxiety.jpg","love.jpg","depression.jpg","contempt.jpg","pride.jpg","shame.jpg","envy.jpg"],this.feeling=this.feelingItems[0],this.intensity=this.intensityItems[0],this.location=this.locationItems[0],this.public=!0,this.submitted=!1,this.currentStep="FEELING"}back(){"LOCATION"==this.currentStep?this.currentStep="INTENSITY":"INTENSITY"==this.currentStep&&(this.currentStep="FEELING")}async next(){if("FEELING"==this.currentStep)this.currentStep="INTENSITY";else if("INTENSITY"==this.currentStep)this.currentStep="LOCATION";else if("LOCATION"==this.currentStep){const i=tA.getInstance().get("sparkle");var t={CourseId:(await z.getInstance().loadJsonFile(i.tocPath)).id,PostText:sA(this.feeling,this.intensity,A("../assets/img/mood/"+this.location)),PostTextJSON:aA(this.feeling,this.intensity,A("../assets/img/mood/"+this.location)),ExternalResourceUrl:"",IsPublic:this.public,MiniAppId:eA.MY_MOOD_APP_ID};(await wA.getInstance().createPost(t)).Succeeded&&this.history.replace("/home")}}render(){const t="LOCATION"==this.currentStep?"SUBMIT":"NEXT";return i(n,null,i("div",{class:"FEELING"==this.currentStep?"":"hide"},i("ion-list",null,i("ion-radio-group",{name:"feeling",value:this.feeling,onIonChange:A=>this.feeling=A.detail.value},i("ion-list-header",null,i("ion-label",null,"FEELING")),this.feelingItems.map((A=>i("ion-item",null,i("ion-label",null,A),i("ion-radio",{slot:"start",value:A}))))))),i("div",{class:"INTENSITY"==this.currentStep?"":"hide"},i("ion-list",null,i("ion-radio-group",{name:"intesity",value:this.intensity,onIonChange:A=>this.intensity=A.detail.value},i("ion-list-header",null,i("ion-label",null,"INTENSITY")),this.intensityItems.map((A=>i("ion-item",null,i("ion-label",null,A),i("ion-radio",{slot:"start",value:A}))))))),i("div",{class:"LOCATION"==this.currentStep?"":"hide"},i("ion-list",null,i("ion-radio-group",{name:"location",value:this.location,onIonChange:A=>this.location=A.detail.value},i("ion-list-header",null,i("ion-label",null,i("h3",null,"LOCATION"))),this.locationItems.map((t=>i("ion-item",null,i("ion-label",null,i("img",{src:A("../assets/img/mood/"+t)})),i("ion-radio",{slot:"start",value:t}))))),i("ion-item",{lines:"none"},i("ion-label",null,"Share to Community Wall"),i("ion-checkbox",{slot:"start",onChange:A=>this.public=A.detail.checked,checked:!0})))),i("ion-item",{lines:"none"},"FEELING"!=this.currentStep&&i("ion-button",{size:"default",slot:"start",onClick:()=>this.back()},"BACK"),i("ion-button",{slot:"end",color:"primary",size:"default",onClick:()=>this.next(),disabled:BA.state.createPostLoading},BA.state.createPostLoading&&i("ion-spinner",{name:"dots"}),t)))}};Uo.style=":host{display:block}.show{display:block}.hide{display:none}";const yo=class{constructor(A){t(this,A),this.config={showRomanNumber:!1,showModuleIndex:!0,showSessionIndex:!0},this.toggleParent=A=>t=>{t.preventDefault(),this.selectedParent=A}}componentDidLoad(){}pageDidLoadHandler(A){if(A){let A=window.location.pathname.split("/").filter((A=>!!A&&"course"!=A));if(this.moduleURLName=A[0],this.sessionURLName=A[1],this.toc){let A=this.toc.courseModules.find((A=>A.urlName==this.moduleURLName));this.selectedParent=A}}}toggleLeftSidebar(){}romanize(A){if(isNaN(A))return NaN;for(var t=String(+A).split(""),i=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],e="",n=3;n--;)e=(i[+t.pop()+10*n]||"")+e;return Array(+t.join("")+1).join("M")+e}getModuleIndex(A,t){return this.config.showModuleIndex&&!t?(this.config.showRomanNumber?this.romanize(A):A)+". ":""}getSessionIndex(A,t){return this.config.showSessionIndex&&!t?(this.config.showRomanNumber?this.romanize(A):A)+". ":""}hostData(){return{role:"navigation"}}__stencil_render(){let A=0,t=0;return i("ul",{class:"module-list"},this.toc&&this.toc.courseModules.map((e=>(t=0,e.preventNumbering||A++,e.sessions.length>0&&i("li",null,i("a",{class:{"link-active":e.urlName==this.moduleURLName},href:e.sessions[0].urlName||"#",onClick:this.toggleParent(e)},i("span",{class:"section-label"},this.getModuleIndex(A,e.preventNumbering),e.name,e.comingSoon&&i("span",{class:"coming-soon"}," Coming soon"))),i("ul",{class:{collapsed:this.selectedParent?e!==this.selectedParent:0!==A,"session-list":!0}},e.sessions.map((A=>(A.preventNumbering||t++,i("li",{class:{active:e.urlName==this.moduleURLName&&A.urlName==this.sessionURLName}},i("stencil-route-link",{class:{"is-completed":!0,"link-active":e.urlName==this.moduleURLName&&A.urlName==this.sessionURLName},url:"course/"+e.urlName+"/"+A.urlName+"/"+A.pages[0].urlName,onClick:()=>this.toggleLeftSidebar()},this.getSessionIndex(t,A.preventNumbering),A.name,A.comingSoon&&i("span",{class:"coming-soon"}," Coming soon"))))))))))))}get el(){return e(this)}render(){return i(n,this.hostData(),this.__stencil_render())}};yo.style="sparkle-nav{display:block;flex:0 0 auto;z-index:1}sparkle-nav .wrapper{position:relative}sparkle-nav .section-label{margin-bottom:0;font-size:14px;font-weight:600}sparkle-nav .module-list li,sparkle-nav .module-list ul li{list-style-type:none;margin:0;padding:0}sparkle-nav .module-list{margin-top:0;padding:0}sparkle-nav .module-list .section-label:first-of-type{margin-top:0}sparkle-nav .module-list li{font-size:14px;padding:10px 10px 0px 14px}sparkle-nav .module-list>li{margin-top:10px}sparkle-nav .module-list a{font-weight:400;color:#6c6c8b;text-decoration:none;white-space:nowrap;border:0}sparkle-nav .module-list a:not(.link-active){transition:color 0.2s}sparkle-nav .module-list a:hover{border:0}sparkle-nav .module-list .link-active{font-weight:bold;color:var(--ion-color-sparkle)}sparkle-nav .module-list .link-active a{color:var(--ion-color-sparkle)}sparkle-nav .module-list a:hover:not(.link-active){color:var(--ion-color-sparkle)}sparkle-nav .module-list ul li{padding-left:12px;transition:80ms height;display:block;overflow:hidden;text-overflow:ellipsis}sparkle-nav .module-list ul.collapsed li{height:0}sparkle-nav ul.session-list{margin:0;padding:10px 0px 0px 0px}sparkle-nav ul.session-list li a{display:flex;flex-direction:column;padding:15px 24px;position:relative}sparkle-nav ul.session-list li a:before{content:'';width:10px;height:10px;border-radius:50%;background:#dfe1e3;display:block;position:absolute;left:1px;top:50%;margin-top:-5px;z-index:5}sparkle-nav ul.session-list li a:after{content:'';background:#dfe1e3;height:100%;position:absolute;width:2px;display:block;left:5px;top:0}sparkle-nav ul.session-list li a.is-active{color:var(--ion-color-sparkle)}sparkle-nav ul.session-list li a.is-active:before{width:14px;height:14px;left:23px;margin-top:-7px;background:var(--ion-color-sparkle);box-shadow:0 0 4px var(--ion-color-sparkle)}sparkle-nav ul.session-list li a.is-active:after{background:#dfe1e3}sparkle-nav ul.session-list li stencil-route-link.is-completed a{}sparkle-nav ul.session-list li stencil-route-link.is-completed a:before{background:var(--ion-color-sparkle)}sparkle-nav ul.session-list li stencil-route-link.is-completed a:after{background:var(--ion-color-sparkle)}sparkle-nav ul.session-list li a p{color:#fff;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:.2s ease-in-out color}sparkle-nav ul.session-list li a span{display:block;line-height:12px}sparkle-nav ul li span.coming-soon{font-size:0.7rem;display:block;background:0 0;color:#f6c95b;line-height:14px;border-radius:4px;padding:1px 4px 0;box-shadow:none;border:1px solid #f6c95b;width:85px;text-align:center}sparkle-nav ul.session-list li a:hover p{color:var(--ion-color-sparkle)}sparkle-nav ul.session-list li:first-child a:after{height:50%;top:50%}sparkle-nav ul.session-list li:last-child a:after{height:50%;bottom:50%}";const ko=class{constructor(A){t(this,A),this.onlineStudents=[],this.handleStudentChange=(A,t)=>{console.log("handle student change"),"list"==t&&(cA.state.onlineStudents=[...A])}}componentDidLoad(){console.log("componentDidLoad"),io.getInstance().connection.on("StudentAction",this.handleStudentChange),this.refreshList()}navigateStudentTo(A){io.getInstance().callSignalR("NavigateStudentTo",{userId:A.userId,url:this.path.replace(".json","")})}refreshList(){io.getInstance().callSignalR("GetOnlineStudents",{CourseClassId:1})}render(){return console.log("faciliatator state",cA.state.onlineStudents),i("div",null,i("div",{class:"p-2 pb-4 d-md-flex justify-content-md-end"},i("button",{class:"btn btn-primary pull-right",type:"button",onClick:()=>this.refreshList()},"Refresh")),i("div",null,cA.state.onlineStudents.length>0&&i("ol",{class:"list-group list-group-numbered"},cA.state.onlineStudents.map((A=>i("li",{class:"list-group-item d-flex justify-content-between align-items-start",key:A.userId},i("div",{class:"ms-2 me-auto"},i("div",{class:"fw-bold"},A.name),A.currentUrl),i("button",{type:"button",class:"btn btn-primary btn-sm",onClick:()=>this.navigateStudentTo(A)},"Navigate"))))),0==cA.state.onlineStudents.length&&i("div",{class:"text-center"},i("h3",null,"No Students"))))}};ko.style="";const xo=class{constructor(A){t(this,A),this.pageDidLoad=r(this,"pageDidLoad",7),this.presentation=!1,this.page={title:null,path:null,body:null,pageInfo:null},this.isLesson=!1,this.handleFacilitatorNavigationChange=A=>{this.history.replace(A,{})},this.validateFetch=A=>{if(!A.ok)throw A;return A.json()},this.handleNewPage=A=>{this.badFetch=null,this.page=A,this.presentation&&(this.page=Object.assign(Object.assign({},this.page),{previousUrl:"/presentation"+this.page.previousUrl,nextUrl:"/presentation"+this.page.nextUrl})),eo.getInstance().UpdateTocPageInfo(this.page.pageInfo),this.isLesson=this.page.pageInfo.pageId>0,this.pageDidLoad.emit({pageInfo:this.page.pageInfo})},this.handleBadFetch=A=>{this.badFetch=A,this.page={title:A.statusText,body:null,path:null,pageInfo:null}}}componentWillLoad(){if(this.path)return this.fetchPage(this.path)}componentDidLoad(){this.presentation&&to.onChange("connected",(A=>{A&&io.getInstance().connection.on("NavigateFacilitatorPresentationCourseTo",this.handleFacilitatorNavigationChange)}))}fetchPage(A,t){if("Connected"==io.getInstance().connection.connectionState&&(io.getInstance().callSignalR("OnStudentNavigate",{url:window.location.href}),this.presentation&&(console.log("register listener"),io.getInstance().connection.on("NavigateFacilitatorPresentationCourseTo",this.handleFacilitatorNavigationChange))),null!==A&&A!==t)return A=/^\/docs\/pages\/[a-z]{2}\.json$/.test(A)?A.replace(".json","/index.json"):A,fetch(A).then(this.validateFetch).then(this.handleNewPage).catch(this.handleBadFetch)}disconnectedCallback(){eo.getInstance().UpdateTocPageInfo(null)}setDocumentMeta(A){const{title:t,meta:i={}}=A,e={title:document.head.querySelectorAll(".meta-title"),description:document.head.querySelectorAll(".meta-description"),url:document.head.querySelectorAll('.meta-url, link[rel="canonical"]'),image:document.head.querySelectorAll(".meta-image")},n=(A,t)=>{A.forEach((A=>{["href","content"].forEach((i=>{A.hasAttribute(i)&&A.setAttribute(i,t(A.getAttribute(i)))}))}))},r=()=>{const A=(/^\/docs\/pages\/appflow.*$/.test(this.path),"Sparkle");return i.title||t?`${t} - ${A}`:A};document.title=r(),n(e.title,r),n(e.url,(A=>{const t="/docs/",i=location.pathname.split(t)[1];return A.split(t)[0]+t+i})),n(e.description,(()=>i.description||"Sparkle is the free open-source platform for creating learning content on web, mobile and desktop.")),n(e.image,(()=>i.image||"https://girlsinclearning.com//images/logo-primary.png"))}hostData(){return{class:{[this.page.pageClass]:"string"==typeof this.page.pageClass}}}async presentFeedbackModal(){const A=await uA.create({component:"sparkle-feedback",cssClass:"sparkle-modal sparkle-feedback-modal"});await A.present()}async openProjectorPage(){$.state.user.FacilitatorClassList.length>1?await this.presentAlertClasses():this.openWindows()}async presentAlertClasses(){var A=[];$.state.user.FacilitatorClassList.forEach(((t,i)=>A.push({name:"radio"+i,type:"radio",label:t.CourseName,value:t.CourseClassId})));const t=await dA.create({header:"Classes",inputs:A,buttons:[{text:"Cancel",role:"cancel",cssClass:"secondary",handler:()=>{}},{text:"Ok",handler:()=>{}}]});await t.present()}openWindows(){window.open(window.location.origin+"/presentation"+this.path.replace(".json",""),"_blank"),setTimeout((()=>{window.open(window.location.origin+"/presentation/teacher"+this.path.replace(".json",""),"_blank")}),500)}renderControls(){return J.state.isAuthenticated?i("div",{class:"controls"},i("ion-button",{onClick:()=>this.presentFeedbackModal()},i("ion-icon",{name:"chatbox-outline"})),this.isLesson&&$.state.user&&$.state.user.Roles.indexOf("Facilitator")>-1&&i("ion-button",{onClick:()=>this.openProjectorPage()},i("ion-icon",{name:"desktop-outline"}))):""}__stencil_render(){if(this.path){const{page:A}=this;if(this.badFetch)return Vt.error(this.badFetch);const t=Vt[A.template]||Vt.default;return[i("main",{class:"no-demo"},this.renderControls(),i(t,{page:A}))]}return i("main",{class:"no-demo"},i("slot",null))}static get watchers(){return{path:["fetchPage"],page:["setDocumentMeta"]}}render(){return i(n,this.hostData(),this.__stencil_render())}};xo.style=".Error{align-items:center;background-color:var(--offset-background);color:var(--text-color--light);display:flex;flex-direction:column;justify-content:center;line-height:1;white-space:nowrap}.Error.full-screen{padding-bottom:3rem}.Error>*{margin:10px}.Error h1,.Error div{color:inherit;font-size:3rem}.Error div{text-shadow:3px 3px 3px rgba(0,0,0,0.1)}.Error p{font-size:18px}sparkle-page{display:grid;font-size:16px;grid-template-columns:1fr minmax(0, var(--page-width, 720px)) 1fr;line-height:2;margin-left:var(--page-margin-left);margin-top:var(--header-height);overflow-x:hidden;transform:var(--page-transform, none);transition:transform 200ms cubic-bezier(0.2, 1, 0.2, 1)}@media (min-width: 1234px){sparkle-page{grid-template-columns:1fr minmax(0, var(--page-width, 720px)) 3fr}}@media (min-width: 1800px){sparkle-page{grid-template-columns:1fr minmax(0, var(--page-width, 720px)) 1fr 240px}}sparkle-page>main{position:relative;grid-column:2;margin-bottom:3rem;padding:var(--page-padding, 2rem 1rem);position:relative}sparkle-page sparkle-pagination{grid-column:1 / -1}sparkle-page .full-screen{grid-column:1 / -1;height:calc(100vh - var(--header-height));margin-bottom:0;overflow:hidden;padding:0}sparkle-page .page-heading-encapsulation{text-transform:uppercase;background:transparent;color:#2d4665;border:1px solid #dee3ea;border-radius:14px;height:24px;padding:2px 8px;font-weight:600;font-size:10px;line-height:14px;display:inline-flex;align-items:center;align-self:center;justify-self:flex-end;letter-spacing:0.08em;float:right}sparkle-page .page-heading-encapsulation:hover{border-color:#92a1b3}sparkle-page h1{display:flex;justify-content:space-between;margin-top:2rem;margin-bottom:1rem}sparkle-page h2 a[href^='#'],sparkle-page h3 a[href^='#'],sparkle-page h4 a[href^='#'],sparkle-page h5 a[href^='#'],sparkle-page h6 a[href^='#']{color:inherit;position:relative}sparkle-page h2 a[href^='#']:before,sparkle-page h3 a[href^='#']:before,sparkle-page h4 a[href^='#']:before,sparkle-page h5 a[href^='#']:before,sparkle-page h6 a[href^='#']:before{content:'#';opacity:0;padding-right:5px;position:absolute;right:100%;transition:opacity 100ms ease}sparkle-page h2 a[href^='#']:hover:before,sparkle-page h3 a[href^='#']:hover:before,sparkle-page h4 a[href^='#']:hover:before,sparkle-page h5 a[href^='#']:hover:before,sparkle-page h6 a[href^='#']:hover:before{opacity:1}sparkle-page h2 code,sparkle-page h3 code,sparkle-page h4 code,sparkle-page h5 code,sparkle-page h6 code{background:none;font-size:inherit}sparkle-page aside{float:right;margin-left:20px;margin-bottom:20px}@media (min-width: 1234px){sparkle-page main.no-demo .page-meta{position:fixed;right:0;top:100px;width:240px;transition:0.2s transform ease}sparkle-header.hidden~stencil-route sparkle-page main.no-demo .page-meta{transform:translateY(-60px)}}sparkle-page main.has-demo .page-meta internal-ad{display:none}sparkle-page .controls{display:flex;justify-content:flex-end}";const Lo=class{constructor(A){t(this,A)}hostData(){return{role:"contentinfo"}}__stencil_render(){const{page:A}=this;return A.previousText&&A.previousUrl||A.nextText&&A.nextUrl?i("sparkle-pagination",{page:A}):""}render(){return i(n,this.hostData(),this.__stencil_render())}};Lo.style="sparkle-page-footer{margin-top:6rem}sparkle-page-footer .last-updated{color:var(--text-color--light);font-weight:normal;margin-left:auto;text-decoration:underline}sparkle-page-footer .page-footer__row{align-items:center;display:flex;font-size:12px;margin-top:2rem}";const Eo=class{constructor(A){t(this,A),this.page={title:null,path:null,body:null,pageInfo:null}}render(){const{previousText:A,previousUrl:t,nextText:e,nextUrl:n}=this.page,r=e&&n,o=[];return A&&t&&o.push(i("stencil-route-link",{url:t,key:"previous",class:"previous",anchorTitle:A},i("div",{class:"pagination__title"},"Previous"),i("div",{class:"pagination__text"},i(f,null),i("span",null,A)))),r&&o.push(i("stencil-route-link",{url:n,key:"next",class:"next",anchorTitle:e},i("div",{class:"pagination__title"},"Next"),i("div",{class:"pagination__text"},i("span",null,e),i(p,null)))),o}};Eo.style="sparkle-pagination{border-color:var(--line-rule-color);border-style:solid;border-width:0 0 1px;display:flex;flex-wrap:wrap-reverse;padding:var(--page-padding, 2rem 0rem) 0}sparkle-pagination .next,sparkle-pagination .previous{max-width:100%;overflow:hidden}sparkle-pagination .next{margin-left:auto}sparkle-pagination a{border-radius:4px;display:flex;align-items:flex-start;flex-direction:column;padding:1em 1.5em;color:rgb(var(--accent-color-rgb))}sparkle-pagination .previous a{padding-left:0}sparkle-pagination .next a{padding-right:0;align-items:flex-end}@media (max-width: 700px){sparkle-pagination .previous a{padding-right:.5rem}sparkle-pagination .next a{padding-left:.5rem}}@media (hover: hover){sparkle-pagination a:hover,sparkle-pagination a:active{filter:brightness(0.8)}}sparkle-pagination .pagination__title{color:var(--text-color--lighter);font-size:12px;display:block}sparkle-pagination .pagination__text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;color:var(--ion-color-sparkle)}sparkle-pagination span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sparkle-pagination svg{fill:currentColor;flex:none;height:1em;margin-bottom:-0.125em;width:1em}sparkle-pagination .next svg{margin-left:0.5em}sparkle-pagination .previous svg{margin-right:0.5em}";const Ho=class{constructor(A){t(this,A),this.formControls={password:{isValid:!1,value:"",validate:A=>!!A},confirmPassword:{isValid:!1,value:"",validate:A=>!!A}},this.submitted=!1}componentDidLoad(){console.log(this.history.location.query.code),console.log(this.history.location.query.email)}changeFormValue(A,t){this.formControls=Object.assign(Object.assign({},this.formControls),{[A]:Object.assign(Object.assign({},this.formControls[A]),{value:t,isValid:this.formControls[A].validate(t)})})}async handleSubmit(A){A.preventDefault(),this.submitted=!0;let t=!0;for(let A in this.formControls){let i=this.formControls[A];i.validate(i.value),i.isValid||(t=!1)}if(t){let A=await ro.getInstance().resetPassword({Email:this.history.location.query.email,Token:this.history.location.query.code,Password:this.formControls.password.value,ConfirmPassword:this.formControls.confirmPassword.value});A.Succeeded?this.history.replace("/login",{}):A.Failed&&A.Errors.length>0&&(this.validationErrors=A.Errors)}}render(){return i(n,null,i("div",{class:"login-logo"},i("img",{src:A("/assets/img/G3-Girls.jpg"),alt:"Girls Inc"})),i("sparkle-validation-error",{errors:this.validationErrors}),i("form",{novalidate:"true",onSubmit:A=>this.handleSubmit(A)},i("ion-item",null,i("ion-label",{position:"stacked",color:"primary"},"Password"),i("ion-input",{name:"password",type:"password",value:this.formControls.password.value,onInput:A=>this.changeFormValue("password",A.target.value)})),i("ion-text",{color:"danger"},i("p",{hidden:this.formControls.password.isValid||!1===this.submitted,class:"ion-padding-start"},"Password is required")),i("ion-item",null,i("ion-label",{position:"stacked",color:"primary"},"Confirm Password"),i("ion-input",{name:"confirmPassword",type:"password",value:this.formControls.confirmPassword.value,onInput:A=>this.changeFormValue("confirmPassword",A.target.value)})),i("ion-text",{color:"danger"},i("p",{hidden:this.formControls.confirmPassword.isValid||!1===this.submitted,class:"ion-padding-start"},"Confirm Password is required")),i("br",null),i("div",{class:"ion-padding"},i("ion-button",{type:"submit",expand:"block",disabled:J.state.loading},J.state.loading&&i("ion-spinner",{name:"dots"})," Reset Password"))))}};Ho.style=":host{display:block}";const Io=class{constructor(A){t(this,A),this.history=null,this.handleStudentNavigationChange=A=>{this.history.replace(A,{})}}async componentWillLoad(){V({sparkle:Object.assign(Object.assign({},this.config),{prod:!0})}),await gA.getInstance(),await gA.init();var A=tA.getInstance().get("sparkle");if(A&&A.auth&&A.auth.getToken()&&(J.state.isAuthenticated=!0),J.onChange("isAuthenticated",(async A=>{A&&(console.log("authenticated"),await AA.getInstance().fetchUserConfiguration())})),J.state.isAuthenticated)return await AA.getInstance().fetchUserConfiguration()}componentDidLoad(){io.getInstance().connection.on("NavigateStudentTo",this.handleStudentNavigationChange),J.onChange("isAuthenticated",(async A=>{A&&io.getInstance().start()})),J.state.isAuthenticated&&io.getInstance().start()}render(){return i(n,null,i("slot",null))}};mt(Io),Io.style=":root{--page-padding:2rem 0}sparkle-root{overflow-y:auto}.Layout{display:flex;overflow-x:hidden}.Layout>stencil-route,.Layout>stencil-route-switch{width:100%}.Layout.is-menu-toggled{--menu-transform:translateX(calc(-1 * var(--menu-width)));--page-margin-left:0}@media (max-width: 768px){.Layout{--menu-transform:translateX(calc(-1 * var(--menu-width)));--page-padding:1.5rem;--page-margin-left:0}.Layout.is-menu-toggled{--menu-transform:none;--page-transform:translateX(var(--menu-width))}.Layout.is-menu-toggled sparkle-page>*{opacity:0.2;pointer-events:none}body.scroll-lock{overflow-y:hidden}}#messagesList{display:grid;font-size:12px;font-weight:bold;grid-template-columns:1fr minmax(0, var(--page-width, 720px)) 1fr;line-height:2;margin-left:var(--page-margin-left);margin-top:var(--header-height);overflow-x:hidden;transform:var(--page-transform, none);margin-top:56px;padding:4px;background:#e50739;color:#fff}";const No=class{constructor(A){t(this,A),this.formControls={firstName:{isValid:!1,value:"",validate:A=>!!A},lastName:{isValid:!1,value:"",validate:A=>!!A},userName:{isValid:!1,value:"",validate:A=>!!A},email:{isValid:!1,value:"",validate:A=>!!A},password:{isValid:!1,value:"",validate:A=>!!A},confirmPassword:{isValid:!1,value:"",validate:A=>!!A}},this.submitted=!1}changeFormValue(A,t){this.formControls=Object.assign(Object.assign({},this.formControls),{[A]:Object.assign(Object.assign({},this.formControls[A]),{value:t,isValid:this.formControls[A].validate(t)})})}async handleSubmit(A){A.preventDefault(),this.submitted=!0;let t=!0;for(let A in this.formControls){let i=this.formControls[A];i.validate(i.value),i.isValid||(t=!1)}if(t){let A=await ro.getInstance().register({Email:this.formControls.email.value,UserName:this.formControls.userName.value,FirstName:this.formControls.firstName.value,LastName:this.formControls.lastName.value,Password:this.formControls.password.value,ConfirmPassword:this.formControls.confirmPassword.value});A.Succeeded?this.history.replace("/login",{}):A.Failed&&A.Errors.length>0&&(this.validationErrors=A.Errors)}}render(){return[i("div",null,i("div",{class:"signup-logo"},i("img",{src:A("/assets/img/G3-Girls.jpg"),alt:"Girls Inc"})),i("sparkle-validation-error",{errors:this.validationErrors}),i("form",{onSubmit:A=>this.handleSubmit(A),novalidate:!0},i("ion-list",{"no-lines":!0},i("ion-item",null,i("ion-label",{position:"stacked",color:"primary"},"First Name"),i("ion-input",{name:"firstName",type:"text",value:this.formControls.firstName.value,onInput:A=>this.changeFormValue("firstName",A.target.value)})),i("ion-text",{color:"danger"},i("p",{hidden:this.formControls.firstName.isValid||!1===this.submitted,class:"ion-padding-start"},"First Name is required")),i("ion-item",null,i("ion-label",{position:"stacked",color:"primary"},"Last Name"),i("ion-input",{name:"lastName",type:"text",value:this.formControls.lastName.value,onInput:A=>this.changeFormValue("lastName",A.target.value)})),i("ion-text",{color:"danger"},i("p",{hidden:this.formControls.lastName.isValid||!1===this.submitted,class:"ion-padding-start"},"Last Name is required")),i("ion-item",null,i("ion-label",{position:"stacked",color:"primary"},"Username"),i("ion-input",{name:"userName",type:"text",value:this.formControls.userName.value,onInput:A=>this.changeFormValue("userName",A.target.value)})),i("ion-text",{color:"danger"},i("p",{hidden:this.formControls.userName.isValid||!1===this.submitted,class:"ion-padding-start"},"Username is required")),i("ion-item",null,i("ion-label",{position:"stacked",color:"primary"},"Email"),i("ion-input",{name:"email",type:"text",value:this.formControls.email.value,onInput:A=>this.changeFormValue("email",A.target.value)})),i("ion-text",{color:"danger"},i("p",{hidden:this.formControls.email.isValid||!1===this.submitted,class:"ion-padding-start"},"Email is required")),i("ion-item",null,i("ion-label",{position:"stacked",color:"primary"},"Password"),i("ion-input",{name:"password",type:"password",value:this.formControls.password.value,onInput:A=>this.changeFormValue("password",A.target.value)})),i("ion-text",{color:"danger"},i("p",{hidden:this.formControls.password.isValid||!1===this.submitted,class:"ion-padding-start"},"Password is required")),i("ion-item",null,i("ion-label",{position:"stacked",color:"primary"},"Confirm Password"),i("ion-input",{name:"confirmPassword",type:"password",value:this.formControls.confirmPassword.value,onInput:A=>this.changeFormValue("confirmPassword",A.target.value)})),i("ion-text",{color:"danger"},i("p",{hidden:this.formControls.confirmPassword.isValid||!1===this.submitted,class:"ion-padding-start"},"Confirm Password is required"))),i("div",{class:"ion-padding"},i("ion-button",{type:"submit",expand:"block",disabled:J.state.loading},J.state.loading&&i("ion-spinner",{name:"dots"}),"Register")),i("ion-item",{lines:"none"},"Already have an account? ",i("stencil-route-link",{url:"/login",exact:!0},"Log In"))))]}};No.style="sparkle-signup .list{margin-bottom:0}";const So=class{constructor(A){t(this,A)}render(){return i(n,{class:{unauthorized:!0}},i("div",{class:"content"},i("h1",null,"401"),i("p",null,"Unauthorized")))}};So.style=":host{display:block}.unauthorized{display:block;padding-left:var(--page-margin-left);padding-top:var(--header-height)}.content{text-align:center;padding-top:40px}";const Do=class{constructor(A){t(this,A),this.enrollmentFormControls={ShortCode:{isValid:!1,value:"",validate:A=>!!A}},this.enrollmentFormSubmitted=!1}changeEnrollmentFormValue(A,t){this.enrollmentFormControls=Object.assign(Object.assign({},this.enrollmentFormControls),{[A]:Object.assign(Object.assign({},this.enrollmentFormControls[A]),{value:t,isValid:this.enrollmentFormControls[A].validate(t)})})}async handleEnrollmentFormSubmit(A){A.preventDefault(),this.enrollmentFormSubmitted=!0;let t=!0;for(let A in this.enrollmentFormControls){let i=this.enrollmentFormControls[A];i.validate(i.value),i.isValid||(t=!1)}if(t){let A=await AA.getInstance().enrollClass({ShortCode:this.enrollmentFormControls.ShortCode.value});console.log(A)}}async leaveClass(A){let t=await AA.getInstance().leaveClass({Id:A});console.log(t)}renderEnrollmentList(){return $.state.enrollmentList.length>0?$.state.enrollmentList.map((A=>i("ion-item",null,i("ion-label",null,A.Name),i("ion-button",{onClick:()=>this.leaveClass(A.Id)},i("ion-icon",{name:"trash"}))))):i("ion-item",{lines:"none"},i("ion-text",{class:"ion-text-center"},"No data found"))}render(){return i(n,null,i("form",{onSubmit:A=>this.handleEnrollmentFormSubmit(A),novalidate:!0},i("ion-list",{"no-lines":!0},i("ion-list-header",null,"Enrollment"),i("ion-grid",null,i("ion-row",{class:"ion-align-items-center"},i("ion-col",{size:"9"},i("ion-item",null,i("ion-label",{position:"stacked",color:"primary"},"Short Code"),i("ion-input",{name:"ShortCode",type:"text",value:this.enrollmentFormControls.ShortCode.value,onInput:A=>this.changeEnrollmentFormValue("ShortCode",A.target.value)})),i("ion-text",{color:"danger"},i("p",{hidden:this.enrollmentFormControls.ShortCode.isValid||!1===this.enrollmentFormSubmitted,class:"ion-padding-start"},"Short Code is required"))),i("ion-col",{size:"3"},i("div",null,i("ion-button",{slot:"end",type:"submit",expand:"block"},"Enroll"))))))),i("ion-list",null,i("ion-list-header",null,"Enroll List"),this.renderEnrollmentList()))}};Do.style=":host{display:block}";const Mo=class{constructor(A){t(this,A),this.profileFormControls={ProfileImage:{isValid:!0,value:"",validate:()=>!0},FirstName:{isValid:!1,value:"",validate:A=>!!A},LastName:{isValid:!1,value:"",validate:A=>!!A},ProfileText:{isValid:!0,value:"",validate:A=>!!A}},this.profileFormSubmitted=!1}componentWillLoad(){if($.state.user){const A=$.state.user;this.changeFormValue("FirstName",A.FirstName),this.changeFormValue("LastName",A.LastName),this.changeFormValue("ProfileText",A.ProfileText),this.changeFormValue("ProfileImage",A.ProfileImage)}}changeFormValue(A,t){this.profileFormControls=Object.assign(Object.assign({},this.profileFormControls),{[A]:Object.assign(Object.assign({},this.profileFormControls[A]),{value:t,isValid:this.profileFormControls[A].validate(t)})})}async handleProfileFormSubmit(A){A.preventDefault(),await this.updateUser()}async updateUser(){this.profileFormSubmitted=!0;let A=!0;for(let t in this.profileFormControls){let i=this.profileFormControls[t];i.validate(i.value),i.isValid||(A=!1)}A&&await AA.getInstance().updateProfile({FirstName:this.profileFormControls.FirstName.value,LastName:this.profileFormControls.LastName.value,ProfileImage:this.profileFormControls.ProfileImage.value,ProfileText:this.profileFormControls.ProfileText.value})}async uploadProfileImage(A){if(A.target.files&&A.target.files[0]){const t=await bo.getInstance().uploadImage(A.target.files);t.Succeeded&&t.Data&&t.Data.length>0&&(this.changeFormValue("ProfileImage",t.Data[0].FullImageUrl),await this.updateUser())}}selectFile(){this.el.querySelector("#fileInput").click()}render(){return i(n,null,i("ion-card",{color:"sparkle"},i("div",{class:"img-wrapper"},i("img",{class:mo.state.mediaUploading?"loading":"",src:this.profileFormControls.ProfileImage.value||A("../assets/svg/profile.svg")}),i("input",{type:"file",id:"fileInput",onChange:A=>this.uploadProfileImage(A),style:{display:"none"},accept:"image/*"}),i("ion-button",{color:"sparkle",onClick:()=>this.selectFile(),disabled:mo.state.mediaUploading},i("ion-icon",{slot:"icon-only",name:"camera-outline"})),mo.state.mediaUploading&&i("ion-spinner",{class:"image-upload-loading",name:"dots"})),i("ion-card-content",{class:"ion-text-center"},i("h2",null,this.profileFormControls.FirstName.value," ",this.profileFormControls.LastName.value),i("h3",null,this.profileFormControls.ProfileText.value))),i("form",{onSubmit:A=>this.handleProfileFormSubmit(A),novalidate:!0},i("ion-list",{"no-lines":!0},i("ion-item",null,i("ion-label",{position:"stacked",color:"primary"},"First Name"),i("ion-input",{name:"firstName",type:"text",value:this.profileFormControls.FirstName.value,onInput:A=>this.changeFormValue("FirstName",A.target.value)})),i("ion-text",{color:"danger"},i("p",{hidden:this.profileFormControls.FirstName.isValid||!1===this.profileFormSubmitted,class:"ion-padding-start"},"First Name is required")),i("ion-item",null,i("ion-label",{position:"stacked",color:"primary"},"Last Name"),i("ion-input",{name:"lastName",type:"text",value:this.profileFormControls.LastName.value,onInput:A=>this.changeFormValue("LastName",A.target.value)})),i("ion-text",{color:"danger"},i("p",{hidden:this.profileFormControls.LastName.isValid||!1===this.profileFormSubmitted,class:"ion-padding-start"},"Last Name is required")),i("ion-item",null,i("ion-label",{position:"stacked",color:"primary"},"Profile Bio"),i("ion-input",{name:"lastName",type:"text",value:this.profileFormControls.ProfileText.value,onInput:A=>this.changeFormValue("ProfileText",A.target.value)})),i("ion-text",{color:"danger"},i("p",{hidden:this.profileFormControls.ProfileText.isValid||!1===this.profileFormSubmitted,class:"ion-padding-start"},"Profile Bio is required"))),i("div",{class:"ion-padding"},i("ion-button",{type:"submit",expand:"block",disabled:$.state.updateLoading},$.state.updateLoading&&i("ion-spinner",{name:"dots"})," Update"))))}get el(){return e(this)}};Mo.style=":host{display:block}ion-card{box-shadow:0px 2px 2px rgba(0, 0, 0, 0.2);overflow:visible;margin:16px 0 24px;position:relative;padding-top:60px}ion-card .img-wrapper{background-color:#f5f5f5;border-radius:10px;position:absolute;left:50%;top:-30px;transform:translateX(-50%)}ion-card .img-wrapper img{border-radius:10px;width:80px;height:80px}ion-card .img-wrapper ion-button{--border-width:1px;--border-color:var(--ion-color-sparkle);--border-style:solid;--padding-start:0;--padding-end:0;--padding-bottom:0;--padding-top:0;--border-radius:50%;height:26px;width:26px;position:absolute;right:-10px;bottom:-10px}ion-card .img-wrapper ion-button ion-icon{width:14px;height:14px}ion-card .img-wrapper img.loading{opacity:0.1}.image-upload-loading{position:absolute;top:40%;left:35%}";const Ko=class{constructor(A){t(this,A),this.errors=[]}render(){return i(n,null,this.errors.length>0&&i("div",{class:"alert alert-danger",role:"alert"},i("ul",null,this.errors.map((A=>i("li",null,i("b",null,A.Field,": "),A.Message))))))}};Ko.style=":host{display:block}sparkle-validation-error ul{padding:10px 0px}sparkle-validation-error .alert-danger{margin-top:10px;font-size:12px}";const Oo=class{constructor(A){t(this,A),this.group=null,this.match=null,this.componentProps={},this.exact=!1,this.scrollOnNextRender=!1,this.previousMatch=null}computeMatch(A){const t=null!=this.group||null!=this.el.parentElement&&"stencil-route-switch"===this.el.parentElement.tagName.toLowerCase();if(A&&!t)return this.previousMatch=this.match,this.match=Tt(A.pathname,{path:this.url,exact:this.exact,strict:!0})}async loadCompleted(){let A={};this.history&&this.history.location.hash?A={scrollToId:this.history.location.hash.substr(1)}:this.scrollTopOffset&&(A={scrollTopOffset:this.scrollTopOffset}),"function"==typeof this.componentUpdated?this.componentUpdated(A):this.match&&!((A,t)=>null==A&&null==t||null!=t&&A&&t&&A.path===t.path&&A.url===t.url&&Dt(A.params,t.params))(this.match,this.previousMatch)&&this.routeViewsUpdated&&this.routeViewsUpdated(A)}async componentDidUpdate(){await this.loadCompleted()}async componentDidLoad(){await this.loadCompleted()}render(){if(!this.match||!this.history)return null;const A=Object.assign({},this.componentProps,{history:this.history,match:this.match});return this.routeRender?this.routeRender(Object.assign({},A,{component:this.component})):this.component?i(this.component,Object.assign({},A)):void 0}get el(){return e(this)}static get watchers(){return{location:["computeMatch"]}}};j.injectProps(Oo,["location","history","historyType","routeViewsUpdated"]),Oo.style="stencil-route.inactive{display:none}";const To=(A,t,i)=>i(A.confirm(t)),Po=(A,t)=>{const i=A[t],e="__storage_test__";try{return i.setItem(e,e),i.removeItem(e),!0}catch(A){return A instanceof DOMException&&(22===A.code||1014===A.code||"QuotaExceededError"===A.name||"NS_ERROR_DOM_QUOTA_REACHED"===A.name)&&0!==i.length}},jo=class{constructor(A){t(this,A),this.unsubscribe=()=>{},this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}componentWillLoad(){this.computeMatch()}computeMatch(){this.location&&(this.match=Tt(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict}))}handleClick(A){var t,i,e;if(!((t=A).metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&this.history&&this.url&&this.root)return A.preventDefault(),this.history.push((e=this.root,"/"==(i=this.url).charAt(0)&&"/"==e.charAt(e.length-1)?e.slice(0,e.length-1)+i:e+i))}render(){let A={class:{[this.activeClass]:null!==this.match},onClick:this.handleClick.bind(this)};return this.anchorClass&&(A.class[this.anchorClass]=!0),"a"===this.custom&&(A=Object.assign({},A,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})),i(this.custom,Object.assign({},A),i("slot",null))}get el(){return e(this)}static get watchers(){return{location:["computeMatch"]}}};j.injectProps(jo,["history","location","root"]);const qo=A=>"STENCIL-ROUTE"===A.tagName,Ro=class{constructor(A){t(this,A),this.group=((1e17*Math.random()).toString().match(/.{4}/g)||[]).join("-"),this.subscribers=[],this.queue=c(this,"queue")}componentWillLoad(){null!=this.location&&this.regenerateSubscribers(this.location)}async regenerateSubscribers(A){if(null==A)return;let t=-1;if(this.subscribers=Array.prototype.slice.call(this.el.children).filter(qo).map(((i,e)=>{const n=Tt(A.pathname,{path:i.url,exact:i.exact,strict:!0});return n&&-1===t&&(t=e),{el:i,match:n}})),-1===t)return;if(this.activeIndex===t)return void(this.subscribers[t].el.match=this.subscribers[t].match);this.activeIndex=t;const i=this.subscribers[this.activeIndex];this.scrollTopOffset&&(i.el.scrollTopOffset=this.scrollTopOffset),i.el.group=this.group,i.el.match=i.match,i.el.componentUpdated=A=>{this.queue.write((()=>{this.subscribers.forEach(((A,t)=>{if(A.el.componentUpdated=void 0,t===this.activeIndex)return A.el.style.display="";this.scrollTopOffset&&(A.el.scrollTopOffset=this.scrollTopOffset),A.el.group=this.group,A.el.match=null,A.el.style.display="none"}))})),this.routeViewsUpdated&&this.routeViewsUpdated(Object.assign({scrollTopOffset:this.scrollTopOffset},A))}}render(){return i("slot",null)}get el(){return e(this)}static get watchers(){return{location:["regenerateSubscribers"]}}};j.injectProps(Ro,["location","routeViewsUpdated"]);const Go=(A,...t)=>{A||console.warn(...t)},Vo=()=>{let A,t=[];return{setPrompt:t=>(Go(null==A,"A history supports only one prompt at a time"),A=t,()=>{A===t&&(A=null)}),confirmTransitionTo:(t,i,e,n)=>{if(null!=A){const r="function"==typeof A?A(t,i):A;"string"==typeof r?"function"==typeof e?e(r,n):(Go(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),n(!0)):n(!1!==r)}else n(!0)},appendListener:A=>{let i=!0;const e=(...t)=>{i&&A(...t)};return t.push(e),()=>{i=!1,t=t.filter((A=>A!==e))}},notifyListeners:(...A)=>{t.forEach((t=>t(...A)))}}},zo=(A,t="scrollPositions")=>{let i=new Map;const e=(t,e)=>{if(i.set(t,e),Po(A,"sessionStorage")){const t=[];i.forEach(((A,i)=>{t.push([i,A])})),A.sessionStorage.setItem("scrollPositions",JSON.stringify(t))}};if(Po(A,"sessionStorage")){const e=A.sessionStorage.getItem(t);i=e?new Map(JSON.parse(e)):i}return"scrollRestoration"in A.history&&(history.scrollRestoration="manual"),{set:e,get:A=>i.get(A),has:A=>i.has(A),capture:t=>{e(t,[A.scrollX,A.scrollY])}}},Jo={hashbang:{encodePath:A=>"!"===A.charAt(0)?A:"!/"+Et(A),decodePath:A=>"!"===A.charAt(0)?A.substr(1):A},noslash:{encodePath:Et,decodePath:Lt},slash:{encodePath:Lt,decodePath:Lt}},Xo=(A,t)=>{const i=0==A.pathname.indexOf(t)?"/"+A.pathname.slice(t.length):A.pathname;return Object.assign({},A,{pathname:i})},_o={browser:(A,t={})=>{let i=!1;const e=A.history,n=A.location,r=A.navigator,o=(A=>{const t=A.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&A.history&&"pushState"in A.history})(A),s=!(-1===r.userAgent.indexOf("Trident")),a=zo(A),l=null!=t.forceRefresh&&t.forceRefresh,c=null!=t.getUserConfirmation?t.getUserConfirmation:To,h=null!=t.keyLength?t.keyLength:6,u=t.basename?xt(Lt(t.basename)):"",d=()=>{try{return A.history.state||{}}catch(A){return{}}},g=A=>{A=A||{};const{key:t,state:i}=A,{pathname:e,search:r,hash:o}=n;let s=e+r+o;return Go(!u||yt(s,u),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+s+'" to begin with "'+u+'".'),u&&(s=kt(s,u)),Mt(s,i,t||Nt(h))},f=Vo(),p=A=>{a.capture(x.location.key),Object.assign(x,A),x.location.scrollPosition=a.get(x.location.key),x.length=e.length,f.notifyListeners(x.location,x.action)},w=A=>{((A,t)=>void 0===t.state&&-1===A.userAgent.indexOf("CriOS"))(r,A)||m(g(A.state))},B=()=>{m(g(d()))},m=A=>{if(i)i=!1,p();else{const t="POP";f.confirmTransitionTo(A,t,c,(i=>{i?p({action:t,location:A}):b(A)}))}},b=A=>{let t=Q.indexOf(x.location.key),e=Q.indexOf(A.key);-1===t&&(t=0),-1===e&&(e=0);const n=t-e;n&&(i=!0,y(n))},v=g(d());let Q=[v.key],C=0,F=!1;const U=A=>u+Ht(A),y=A=>{e.go(A)},k=t=>{C+=t,1===C?(A.addEventListener("popstate",w),s&&A.addEventListener("hashchange",B)):0===C&&(A.removeEventListener("popstate",w),s&&A.removeEventListener("hashchange",B))},x={length:e.length,action:"POP",location:v,createHref:U,push:(A,t)=>{Go(!("object"==typeof A&&void 0!==A.state&&void 0!==t),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");const i="PUSH",r=Mt(A,t,Nt(h),x.location);f.confirmTransitionTo(r,i,c,(A=>{if(!A)return;const t=U(r),{key:s,state:a}=r;if(o)if(e.pushState({key:s,state:a},"",t),l)n.href=t;else{const A=Q.indexOf(x.location.key),t=Q.slice(0,-1===A?0:A+1);t.push(r.key),Q=t,p({action:i,location:r})}else Go(void 0===a,"Browser history cannot push state in browsers that do not support HTML5 history"),n.href=t}))},replace:(A,t)=>{Go(!("object"==typeof A&&void 0!==A.state&&void 0!==t),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");const i="REPLACE",r=Mt(A,t,Nt(h),x.location);f.confirmTransitionTo(r,i,c,(A=>{if(!A)return;const t=U(r),{key:s,state:a}=r;if(o)if(e.replaceState({key:s,state:a},"",t),l)n.replace(t);else{const A=Q.indexOf(x.location.key);-1!==A&&(Q[A]=r.key),p({action:i,location:r})}else Go(void 0===a,"Browser history cannot replace state in browsers that do not support HTML5 history"),n.replace(t)}))},go:y,goBack:()=>y(-1),goForward:()=>y(1),block:(A="")=>{const t=f.setPrompt(A);return F||(k(1),F=!0),()=>(F&&(F=!1,k(-1)),t())},listen:A=>{const t=f.appendListener(A);return k(1),()=>{k(-1),t()}},win:A};return x},hash:(A,t={})=>{let i=!1,e=null,n=0,r=!1;const o=A.location,s=A.history,a=-1===A.navigator.userAgent.indexOf("Firefox"),l=null!=t.keyLength?t.keyLength:6,{getUserConfirmation:c=To,hashType:h="slash"}=t,u=t.basename?xt(Lt(t.basename)):"",{encodePath:d,decodePath:g}=Jo[h],f=()=>{const A=o.href,t=A.indexOf("#");return-1===t?"":A.substring(t+1)},p=A=>{const t=o.href.indexOf("#");o.replace(o.href.slice(0,t>=0?t:0)+"#"+A)},w=()=>{let A=g(f());return Go(!u||yt(A,u),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+A+'" to begin with "'+u+'".'),u&&(A=kt(A,u)),Mt(A,void 0,Nt(l))},B=Vo(),m=A=>{Object.assign(L,A),L.length=s.length,B.notifyListeners(L.location,L.action)},b=()=>{const A=f(),t=d(A);if(A!==t)p(t);else{const A=w(),t=L.location;if(!i&&((A,t)=>A.pathname===t.pathname&&A.search===t.search&&A.hash===t.hash&&A.key===t.key&&Dt(A.state,t.state))(t,A))return;if(e===Ht(A))return;e=null,v(A)}},v=A=>{if(i)i=!1,m();else{const t="POP";B.confirmTransitionTo(A,t,c,(i=>{i?m({action:t,location:A}):Q(A)}))}},Q=A=>{let t=y.lastIndexOf(Ht(L.location)),e=y.lastIndexOf(Ht(A));-1===t&&(t=0),-1===e&&(e=0);const n=t-e;n&&(i=!0,k(n))},C=f(),F=d(C);C!==F&&p(F);const U=w();let y=[Ht(U)];const k=A=>{Go(a,"Hash history go(n) causes a full page reload in this browser"),s.go(A)},x=(A,t)=>{n+=t,1===n?A.addEventListener("hashchange",b):0===n&&A.removeEventListener("hashchange",b)},L={length:s.length,action:"POP",location:U,createHref:A=>"#"+d(u+Ht(A)),push:(A,t)=>{Go(void 0===t,"Hash history cannot push state; it is ignored");const i="PUSH",n=Mt(A,void 0,Nt(l),L.location);B.confirmTransitionTo(n,i,c,(A=>{if(!A)return;const t=Ht(n),r=d(u+t);if(f()!==r){e=t,(A=>{o.hash=A})(r);const A=y.lastIndexOf(Ht(L.location)),s=y.slice(0,-1===A?0:A+1);s.push(t),y=s,m({action:i,location:n})}else Go(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),m()}))},replace:(A,t)=>{Go(void 0===t,"Hash history cannot replace state; it is ignored");const i="REPLACE",n=Mt(A,void 0,Nt(l),L.location);B.confirmTransitionTo(n,i,c,(A=>{if(!A)return;const t=Ht(n),r=d(u+t);f()!==r&&(e=t,p(r));const o=y.indexOf(Ht(L.location));-1!==o&&(y[o]=t),m({action:i,location:n})}))},go:k,goBack:()=>k(-1),goForward:()=>k(1),block:(t="")=>{const i=B.setPrompt(t);return r||(x(A,1),r=!0),()=>(r&&(r=!1,x(A,-1)),i())},listen:t=>{const i=B.appendListener(t);return x(A,1),()=>{x(A,-1),i()}},win:A};return L}},Yo=class{constructor(A){t(this,A),this.root="/",this.historyType="browser",this.titleSuffix="",this.routeViewsUpdated=(A={})=>{if(this.history&&A.scrollToId&&"browser"===this.historyType){const t=this.history.win.document.getElementById(A.scrollToId);if(t)return t.scrollIntoView()}this.scrollTo(A.scrollTopOffset||this.scrollTopOffset)},this.isServer=c(this,"isServer"),this.queue=c(this,"queue")}componentWillLoad(){this.history=_o[this.historyType](this.el.ownerDocument.defaultView),this.history.listen((A=>{A=Xo(A,this.root),this.location=A})),this.location=Xo(this.history.location,this.root)}scrollTo(A){const t=this.history;if(null!=A&&!this.isServer&&t)return"POP"===t.action&&Array.isArray(t.location.scrollPosition)?this.queue.write((()=>{t&&t.location&&Array.isArray(t.location.scrollPosition)&&t.win.scrollTo(t.location.scrollPosition[0],t.location.scrollPosition[1])})):this.queue.write((()=>{t.win.scrollTo(0,A)}))}render(){if(this.location&&this.history)return i(j.Provider,{state:{historyType:this.historyType,location:this.location,titleSuffix:this.titleSuffix,root:this.root,history:this.history,routeViewsUpdated:this.routeViewsUpdated}},i("slot",null))}get el(){return e(this)}},Wo=class{constructor(A){t(this,A)}componentWillLoad(){if(this.history&&this.root&&this.url)return this.history.replace((t=this.root,"/"==(A=this.url).charAt(0)&&"/"==t.charAt(t.length-1)?t.slice(0,t.length-1)+A:t+A));var A,t}get el(){return e(this)}};j.injectProps(Wo,["history","root"]);export{UA as header_mobile_collapse,yA as ion_avatar,kA as ion_button,xA as ion_card,LA as ion_card_content,EA as ion_checkbox,KA as ion_col,OA as ion_grid,qA as ion_icon,VA as ion_input,JA as ion_item,XA as ion_label,_A as ion_list,YA as ion_list_header,WA as ion_note,ZA as ion_radio,At as ion_radio_group,it as ion_range,st as ion_ripple_effect,ht as ion_row,ut as ion_spinner,ft as ion_text,pt as sparkle_button,wt as sparkle_card,Bt as sparkle_cards,Pt as sparkle_course_root,jt as sparkle_dropdown,$n as sparkle_export_lessons,Ar as sparkle_facilitator_dashboard,tr as sparkle_facilitator_header,ir as sparkle_facilitator_notes,no as sparkle_facilitator_page,oo as sparkle_forgot_password,so as sparkle_goal_item,ao as sparkle_goal_progress,lo as sparkle_goals,co as sparkle_gww,uo as sparkle_gww_item,po as sparkle_header,vo as sparkle_health,Qo as sparkle_login,Co as sparkle_menu,Fo as sparkle_menu_toggle,Uo as sparkle_mood,yo as sparkle_nav,ko as sparkle_online_students,xo as sparkle_page,Lo as sparkle_page_footer,Eo as sparkle_pagination,Ho as sparkle_reset_password,Io as sparkle_root,No as sparkle_signup,So as sparkle_unauthorized,Do as sparkle_user_enrollment,Mo as sparkle_user_profile,Ko as sparkle_validation_error,Oo as stencil_route,jo as stencil_route_link,Ro as stencil_route_switch,Yo as stencil_router,Wo as stencil_router_redirect}
|