@getflip/swirl-components-react 0.80.3 → 0.81.0
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/{file-manager.entry.b9851df5.js → file-manager.entry.b3791826.js} +4 -4
- package/dist/{index.5e647dd4.js → index.e636c5f9.js} +255 -255
- package/dist/{swirl-action-list-section.entry.d28ae1f1.js → swirl-action-list-section.entry.7a3e0165.js} +1 -1
- package/dist/{swirl-action-list_3.entry.186c04f5.js → swirl-action-list_3.entry.dc064cc9.js} +21 -21
- package/dist/{swirl-app-bar.entry.c657a292.js → swirl-app-bar.entry.33eb8f2e.js} +2 -2
- package/dist/{swirl-app-icon.entry.e4f3c8f4.js → swirl-app-icon.entry.ae3fb019.js} +1 -1
- package/dist/{swirl-app-layout_7.entry.b4058612.js → swirl-app-layout_7.entry.651d9586.js} +8 -8
- package/dist/{swirl-autocomplete.entry.466a5a72.js → swirl-autocomplete.entry.5e2b3422.js} +21 -21
- package/dist/{swirl-avatar-group.entry.fb672c8f.js → swirl-avatar-group.entry.78097e6c.js} +1 -1
- package/dist/{swirl-avatar.entry.fddcf0c4.js → swirl-avatar.entry.e9382b92.js} +1 -1
- package/dist/{swirl-badge.entry.21b2cf2e.js → swirl-badge.entry.cc7ed1a9.js} +1 -1
- package/dist/{swirl-banner.entry.3e9a1497.js → swirl-banner.entry.4c73c5d4.js} +8 -8
- package/dist/{swirl-button-group.entry.f147a047.js → swirl-button-group.entry.77f938d6.js} +1 -1
- package/dist/{swirl-button.entry.1a3aad3c.js → swirl-button.entry.d89c91e3.js} +2 -2
- package/dist/{swirl-card.entry.dac11b4c.js → swirl-card.entry.39e12b1d.js} +1 -1
- package/dist/{swirl-carousel-slide.entry.4b15cd1a.js → swirl-carousel-slide.entry.589b97d1.js} +1 -1
- package/dist/{swirl-carousel.entry.63882653.js → swirl-carousel.entry.cf905a6a.js} +2 -2
- package/dist/{swirl-checkbox.entry.1b23520f.js → swirl-checkbox.entry.9897935c.js} +1 -1
- package/dist/{swirl-chip.entry.d2d4dc0f.js → swirl-chip.entry.f5196b00.js} +4 -4
- package/dist/{swirl-columns.entry.b4ec1c95.js → swirl-columns.entry.d2a32467.js} +1 -1
- package/dist/swirl-components-react.js +1 -1
- package/dist/swirl-components-react.umd.cjs +47 -47
- package/dist/{swirl-console-layout.entry.b2d0a947.js → swirl-console-layout.entry.89add690.js} +19 -19
- package/dist/{swirl-date-input.entry.9edd3cbd.js → swirl-date-input.entry.fce5a544.js} +16 -14
- package/dist/{swirl-date-picker_2.entry.0e85edda.js → swirl-date-picker_2.entry.8e8dcf90.js} +1 -1
- package/dist/{swirl-description-list-item.entry.380c7304.js → swirl-description-list-item.entry.a8f5af0c.js} +1 -1
- package/dist/{swirl-description-list.entry.1d91f38c.js → swirl-description-list.entry.07a3a754.js} +1 -1
- package/dist/{swirl-dialog.entry.bde4536b.js → swirl-dialog.entry.102c937d.js} +11 -11
- package/dist/{swirl-file-uploader.entry.0f33989f.js → swirl-file-uploader.entry.d9351a1e.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.a5a4de69.js → swirl-file-viewer_7.entry.5faefd6f.js} +316 -316
- package/dist/{swirl-form-control.entry.08554a90.js → swirl-form-control.entry.e871fd01.js} +13 -13
- package/dist/{swirl-form-group.entry.0b2dd0bf.js → swirl-form-group.entry.20ebe0d5.js} +1 -1
- package/dist/{swirl-heading.entry.6f2a13a0.js → swirl-heading.entry.00b9abb2.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.7f873b1c.js → swirl-icon-add-photo.entry.51a8f644.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.494134fe.js → swirl-icon-add_6.entry.1e3f407b.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.8a3d8e2a.js → swirl-icon-admin-panel-settings.entry.19cdbe6d.js} +1 -1
- package/dist/{swirl-icon-ai.entry.edb3e042.js → swirl-icon-ai.entry.236313f3.js} +1 -1
- package/dist/{swirl-icon-arrow-back.entry.2e29cb10.js → swirl-icon-arrow-back.entry.262aea95.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.d17a1891.js → swirl-icon-arrow-downward_2.entry.d63dd34c.js} +1 -1
- package/dist/{swirl-icon-arrow-forward.entry.b902b7d3.js → swirl-icon-arrow-forward.entry.73fb825e.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.3213de78.js → swirl-icon-arrow-left_4.entry.3b54f63d.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.3992b20f.js → swirl-icon-arrow-right-small.entry.3631c0e1.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.6c44cb44.js → swirl-icon-attachment.entry.8e3de451.js} +1 -1
- package/dist/{swirl-icon-bar-chart.entry.aaa2c29a.js → swirl-icon-bar-chart.entry.04381fb7.js} +1 -1
- package/dist/{swirl-icon-block.entry.914ddf1d.js → swirl-icon-block.entry.56a413fd.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.17475e31.js → swirl-icon-bookmark.entry.23f8f970.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.2227adc5.js → swirl-icon-cancel_4.entry.4f419de1.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.3d41bc1a.js → swirl-icon-chat-bubble.entry.28770125.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.20b5367d.js → swirl-icon-chats-filled.entry.aa201e59.js} +1 -1
- package/dist/{swirl-icon-chats-outlined.entry.5e76e493.js → swirl-icon-chats-outlined.entry.837d65ee.js} +1 -1
- package/dist/{swirl-icon-check-circle_3.entry.4fe044b7.js → swirl-icon-check-circle_3.entry.9b0706d0.js} +1 -1
- package/dist/{swirl-icon-check-small_3.entry.fb033b24.js → swirl-icon-check-small_3.entry.c059fd85.js} +28 -28
- package/dist/{swirl-icon-check-strong.entry.3201d721.js → swirl-icon-check-strong.entry.e607fc4a.js} +1 -1
- package/dist/{swirl-icon-check.entry.d39ea356.js → swirl-icon-check.entry.1580dc19.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.3b35a2d2.js → swirl-icon-chevron-left.entry.07a065ca.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.502bbe12.js → swirl-icon-chevron-right.entry.60eab9ee.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.df1886df.js → swirl-icon-close-small.entry.063676b2.js} +1 -1
- package/dist/{swirl-icon-close.entry.bbe775a7.js → swirl-icon-close.entry.960816b9.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.cd57769a.js → swirl-icon-cloud-upload.entry.c284ecdd.js} +1 -1
- package/dist/{swirl-icon-column.entry.3fca2705.js → swirl-icon-column.entry.3f736961.js} +1 -1
- package/dist/{swirl-icon-comment.entry.65fb55dc.js → swirl-icon-comment.entry.764e8900.js} +1 -1
- package/dist/{swirl-icon-copy.entry.77c534bc.js → swirl-icon-copy.entry.fd290297.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.92758172.js → swirl-icon-date-range.entry.79537b28.js} +1 -1
- package/dist/{swirl-icon-delete.entry.5b5a980b.js → swirl-icon-delete.entry.4e8fe7ea.js} +1 -1
- package/dist/{swirl-icon-description.entry.f347a321.js → swirl-icon-description.entry.35d4309e.js} +1 -1
- package/dist/{swirl-icon-double-arrow-left.entry.46e279ed.js → swirl-icon-double-arrow-left.entry.b0b441b8.js} +1 -1
- package/dist/{swirl-icon-double-arrow-right.entry.2aaedd44.js → swirl-icon-double-arrow-right.entry.e2e761ca.js} +1 -1
- package/dist/{swirl-icon-download.entry.eb3374bc.js → swirl-icon-download.entry.197b999c.js} +1 -1
- package/dist/{swirl-icon-edit.entry.5770f772.js → swirl-icon-edit.entry.0b9e23e6.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.2397ee50.js → swirl-icon-emoji-mood.entry.d31c57dd.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.0df361e8.js → swirl-icon-emoji-satisfied.entry.34f7e28a.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.243182b2.js → swirl-icon-error_3.entry.007ef916.js} +2 -2
- package/dist/{swirl-icon-expand-more.entry.13e01d24.js → swirl-icon-expand-more.entry.9b27954b.js} +1 -1
- package/dist/{swirl-icon-filter.entry.57a8bd1e.js → swirl-icon-filter.entry.36444189.js} +1 -1
- package/dist/{swirl-icon-folder.entry.fb8b43c0.js → swirl-icon-folder.entry.346cb7b9.js} +1 -1
- package/dist/{swirl-icon-format-h-one.entry.63cf7da1.js → swirl-icon-format-h-one.entry.1e5bf43e.js} +1 -1
- package/dist/{swirl-icon-gif.entry.4f2be4a5.js → swirl-icon-gif.entry.7476dd66.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.acad92f1.js → swirl-icon-group-assign.entry.ce09e62d.js} +1 -1
- package/dist/{swirl-icon-groups-custom.entry.49ce757a.js → swirl-icon-groups-custom.entry.8cd01bbc.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.2e974c8e.js → swirl-icon-groups-filled.entry.774a85f0.js} +1 -1
- package/dist/{swirl-icon-groups-outlined.entry.1d178821.js → swirl-icon-groups-outlined.entry.2d116130.js} +1 -1
- package/dist/{swirl-icon-groups.entry.1d0ec86a.js → swirl-icon-groups.entry.e2224964.js} +1 -1
- package/dist/{swirl-icon-help.entry.a0545c23.js → swirl-icon-help.entry.63de46ec.js} +1 -1
- package/dist/{swirl-icon-highlight.entry.af49e91e.js → swirl-icon-highlight.entry.ef2106f9.js} +1 -1
- package/dist/{swirl-icon-home.entry.96d4cb1f.js → swirl-icon-home.entry.c1ff9712.js} +1 -1
- package/dist/{swirl-icon-image.entry.8d7c6abe.js → swirl-icon-image.entry.0c4e9685.js} +1 -1
- package/dist/{swirl-icon-improve-text.entry.fb16ef29.js → swirl-icon-improve-text.entry.ae19bc62.js} +1 -1
- package/dist/{swirl-icon-insert-below.entry.84809345.js → swirl-icon-insert-below.entry.c48a1e04.js} +1 -1
- package/dist/{swirl-icon-insert-on-top.entry.a37204b8.js → swirl-icon-insert-on-top.entry.90ca518d.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.90317eef.js → swirl-icon-inventory.entry.73bd60d3.js} +1 -1
- package/dist/{swirl-icon-like.entry.f789daec.js → swirl-icon-like.entry.551068de.js} +1 -1
- package/dist/{swirl-icon-link.entry.4efab4e2.js → swirl-icon-link.entry.668ae305.js} +1 -1
- package/dist/{swirl-icon-lock-person.entry.674f85d6.js → swirl-icon-lock-person.entry.1c0569e3.js} +1 -1
- package/dist/{swirl-icon-lock.entry.7b2d87a0.js → swirl-icon-lock.entry.c30a9b6f.js} +1 -1
- package/dist/{swirl-icon-logout.entry.26bc6037.js → swirl-icon-logout.entry.6e10fe89.js} +1 -1
- package/dist/{swirl-icon-long-text.entry.c58f972b.js → swirl-icon-long-text.entry.289f5aed.js} +1 -1
- package/dist/{swirl-icon-mail.entry.8a65460a.js → swirl-icon-mail.entry.0338b6ab.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.9e1ceb60.js → swirl-icon-manage-accounts.entry.b9b2373a.js} +1 -1
- package/dist/{swirl-icon-mark-chat-read.entry.40a29c0e.js → swirl-icon-mark-chat-read.entry.042147bd.js} +1 -1
- package/dist/{swirl-icon-mark-chat-unread.entry.aa9a49a9.js → swirl-icon-mark-chat-unread.entry.e545fb9d.js} +1 -1
- package/dist/{swirl-icon-mention.entry.22454a33.js → swirl-icon-mention.entry.32a92db5.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.5d1a09da.js → swirl-icon-menu-filled.entry.fb2c2888.js} +1 -1
- package/dist/{swirl-icon-menu-outlined.entry.3ee457c7.js → swirl-icon-menu-outlined.entry.a962d730.js} +1 -1
- package/dist/{swirl-icon-menu.entry.73568421.js → swirl-icon-menu.entry.9a1ce0ec.js} +1 -1
- package/dist/{swirl-icon-message.entry.c1622c0d.js → swirl-icon-message.entry.e7a89d18.js} +1 -1
- package/dist/{swirl-icon-mic.entry.37da83ca.js → swirl-icon-mic.entry.4ef9fb4d.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.66974243.js → swirl-icon-more-horizontal.entry.1bbf1ea1.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.8e21795d.js → swirl-icon-news-filled.entry.7804dbea.js} +1 -1
- package/dist/{swirl-icon-news-outlined.entry.a1f8e33a.js → swirl-icon-news-outlined.entry.011fd823.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.4b2bb4a5.js → swirl-icon-notifications-active.entry.50117738.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.d537fa04.js → swirl-icon-notifications-off.entry.c110676e.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.0b3ced26.js → swirl-icon-notifications.entry.6230eefb.js} +1 -1
- package/dist/{swirl-icon-open-in-full.entry.4a2d5b54.js → swirl-icon-open-in-full.entry.2aec37e4.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.14416f58.js → swirl-icon-open-in-new.entry.50d95a3e.js} +1 -1
- package/dist/{swirl-icon-pause-circle.entry.1fbc1d2b.js → swirl-icon-pause-circle.entry.7cc6abcf.js} +1 -1
- package/dist/{swirl-icon-pause.entry.37bcdb7b.js → swirl-icon-pause.entry.ddc1361c.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.3186021f.js → swirl-icon-people-alt.entry.9a7bdff3.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.911a2f09.js → swirl-icon-person-off.entry.e69676b0.js} +1 -1
- package/dist/{swirl-icon-person.entry.0f59e8f4.js → swirl-icon-person.entry.f4ea1f0b.js} +1 -1
- package/dist/{swirl-icon-phone.entry.58581a41.js → swirl-icon-phone.entry.351a77a6.js} +1 -1
- package/dist/{swirl-icon-play-arrow.entry.43b50f38.js → swirl-icon-play-arrow.entry.2e224af4.js} +1 -1
- package/dist/{swirl-icon-poll.entry.b9eb92ab.js → swirl-icon-poll.entry.f59cee62.js} +1 -1
- package/dist/{swirl-icon-print.entry.3ce7d59c.js → swirl-icon-print.entry.41b4d9a5.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.0e10191c.js → swirl-icon-recieved.entry.643ea760.js} +1 -1
- package/dist/{swirl-icon-reply.entry.75a21e71.js → swirl-icon-reply.entry.e108f007.js} +1 -1
- package/dist/{swirl-icon-report.entry.fa88c30f.js → swirl-icon-report.entry.67803c07.js} +1 -1
- package/dist/{swirl-icon-roadmap.entry.433bab61.js → swirl-icon-roadmap.entry.473fcce2.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.dc3eb362.js → swirl-icon-search-strong.entry.dde9e172.js} +1 -1
- package/dist/{swirl-icon-search.entry.0e097cc7.js → swirl-icon-search.entry.89399725.js} +1 -1
- package/dist/{swirl-icon-send.entry.b41f63db.js → swirl-icon-send.entry.474ec225.js} +1 -1
- package/dist/{swirl-icon-settings.entry.e6825071.js → swirl-icon-settings.entry.32fa9252.js} +1 -1
- package/dist/{swirl-icon-short-text.entry.5cf268ed.js → swirl-icon-short-text.entry.b731d142.js} +1 -1
- package/dist/{swirl-icon-simplify.entry.ca8effd5.js → swirl-icon-simplify.entry.4a2786cd.js} +1 -1
- package/dist/{swirl-icon-spellcheck.entry.951e0626.js → swirl-icon-spellcheck.entry.b17312ca.js} +1 -1
- package/dist/{swirl-icon-stop.entry.89029529.js → swirl-icon-stop.entry.5488a28f.js} +1 -1
- package/dist/{swirl-icon-sync.entry.babf4aa4.js → swirl-icon-sync.entry.26e9c6d1.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.2542cb11.js → swirl-icon-tasks-filled.entry.fc277955.js} +1 -1
- package/dist/{swirl-icon-tasks-outlined.entry.3bd8baa1.js → swirl-icon-tasks-outlined.entry.b8cefb96.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.4464af74.js → swirl-icon-time-filled.entry.f80d4284.js} +1 -1
- package/dist/{swirl-icon-time-outlined.entry.4bbc612b.js → swirl-icon-time-outlined.entry.f34b56b4.js} +1 -1
- package/dist/{swirl-icon-translate.entry.1c10a4f1.js → swirl-icon-translate.entry.08944f90.js} +1 -1
- package/dist/{swirl-icon-undo.entry.ec02f929.js → swirl-icon-undo.entry.84c45bfc.js} +1 -1
- package/dist/{swirl-icon-unlock-person.entry.8856d62e.js → swirl-icon-unlock-person.entry.f1b5d8f9.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.3e97e3ae.js → swirl-icon-user-assign.entry.37189459.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.7f167b73.js → swirl-icon-video-camera.entry.37ed0cdc.js} +1 -1
- package/dist/{swirl-icon-video-library.entry.cfc5e1ef.js → swirl-icon-video-library.entry.de0bb66a.js} +1 -1
- package/dist/{swirl-icon-voice.entry.eaa90e1d.js → swirl-icon-voice.entry.5bb70c5c.js} +1 -1
- package/dist/{swirl-icon.entry.82a9c8cf.js → swirl-icon.entry.38896300.js} +1 -1
- package/dist/{swirl-image-grid-item.entry.82982e6f.js → swirl-image-grid-item.entry.71ff7988.js} +1 -1
- package/dist/{swirl-image-grid.entry.07593005.js → swirl-image-grid.entry.2f52e4e9.js} +1 -1
- package/dist/{swirl-inline-notification.entry.34972ac6.js → swirl-inline-notification.entry.77a0445e.js} +1 -1
- package/dist/{swirl-inline-status.entry.b8ad3fc5.js → swirl-inline-status.entry.206c370c.js} +2 -2
- package/dist/{swirl-lightbox.entry.8b2e307b.js → swirl-lightbox.entry.f0c03b0b.js} +31 -31
- package/dist/{swirl-link.entry.b64f03b5.js → swirl-link.entry.feed9415.js} +1 -1
- package/dist/{swirl-list.entry.1350eade.js → swirl-list.entry.1251ccfb.js} +1 -1
- package/dist/{swirl-menu-item.entry.58b7b0cc.js → swirl-menu-item.entry.86369605.js} +11 -11
- package/dist/{swirl-menu.entry.28fff537.js → swirl-menu.entry.66eec06a.js} +51 -51
- package/dist/{swirl-modal.entry.d0f6c3c3.js → swirl-modal.entry.32c6b7b1.js} +218 -214
- package/dist/{swirl-option-list-section.entry.0f7ec0f5.js → swirl-option-list-section.entry.9d925024.js} +1 -1
- package/dist/{swirl-option-list.entry.8a777415.js → swirl-option-list.entry.ded36730.js} +22 -22
- package/dist/{swirl-pagination.entry.71a815fc.js → swirl-pagination.entry.c06fc83e.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.1bfcd52e.js → swirl-pdf-reader.entry.b61cdb34.js} +9 -9
- package/dist/{swirl-popover_2.entry.11c726bf.js → swirl-popover_2.entry.70a32904.js} +40 -40
- package/dist/{swirl-progress-indicator.entry.13f33972.js → swirl-progress-indicator.entry.91e07d09.js} +1 -1
- package/dist/{swirl-radio-group.entry.9b114523.js → swirl-radio-group.entry.8af0efcb.js} +1 -1
- package/dist/{swirl-radio.entry.11bd9ce4.js → swirl-radio.entry.900b5022.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.50497699.js → swirl-resource-list-file-item.entry.96c1d597.js} +14 -14
- package/dist/{swirl-search.entry.0eb6548b.js → swirl-search.entry.df4c6f34.js} +8 -6
- package/dist/{swirl-select.entry.8dfd26e0.js → swirl-select.entry.f2f64ee2.js} +20 -20
- package/dist/{swirl-shell-layout.entry.cd1c28f0.js → swirl-shell-layout.entry.aceed146.js} +2 -2
- package/dist/{swirl-shell-navigation-item.entry.71e0369b.js → swirl-shell-navigation-item.entry.39786f9c.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.9b87df33.js → swirl-skeleton-box.entry.cbe5257e.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.228b649d.js → swirl-skeleton-text.entry.3e9540d7.js} +1 -1
- package/dist/{swirl-stack.entry.99d24876.js → swirl-stack.entry.d58b3e5d.js} +1 -1
- package/dist/{swirl-status-indicator.entry.0886c5fb.js → swirl-status-indicator.entry.ca8e2279.js} +1 -1
- package/dist/{swirl-switch.entry.9be3c75d.js → swirl-switch.entry.438729e0.js} +1 -1
- package/dist/{swirl-symbol-account-circle.entry.e0073a7f.js → swirl-symbol-account-circle.entry.f793dce1.js} +1 -1
- package/dist/{swirl-symbol-alternate-email.entry.f7b19168.js → swirl-symbol-alternate-email.entry.0fcd64a7.js} +1 -1
- package/dist/{swirl-symbol-android.entry.49e54cd1.js → swirl-symbol-android.entry.3ec80e43.js} +1 -1
- package/dist/{swirl-symbol-announcement.entry.378fc25f.js → swirl-symbol-announcement.entry.86222c62.js} +1 -1
- package/dist/{swirl-symbol-backup.entry.53bcaf0d.js → swirl-symbol-backup.entry.d88ee08a.js} +1 -1
- package/dist/{swirl-symbol-beach-access.entry.92881ee4.js → swirl-symbol-beach-access.entry.2946b2f1.js} +1 -1
- package/dist/{swirl-symbol-bookmark.entry.df67cc4f.js → swirl-symbol-bookmark.entry.dc7ef37f.js} +1 -1
- package/dist/{swirl-symbol-cloud.entry.bac796cf.js → swirl-symbol-cloud.entry.fc39318c.js} +1 -1
- package/dist/{swirl-symbol-coronavirus.entry.db4cea0a.js → swirl-symbol-coronavirus.entry.6e1834d9.js} +1 -1
- package/dist/{swirl-symbol-desktop-windows.entry.d9841f0f.js → swirl-symbol-desktop-windows.entry.1a049626.js} +1 -1
- package/dist/{swirl-symbol-directions-car-filled.entry.323506fa.js → swirl-symbol-directions-car-filled.entry.efc77590.js} +1 -1
- package/dist/{swirl-symbol-edit-calendar.entry.89d9fc46.js → swirl-symbol-edit-calendar.entry.8eedb042.js} +1 -1
- package/dist/{swirl-symbol-email.entry.39a87b42.js → swirl-symbol-email.entry.3abbe2bb.js} +1 -1
- package/dist/{swirl-symbol-emoji-food-beverage.entry.b1eeffd4.js → swirl-symbol-emoji-food-beverage.entry.dd3929c8.js} +1 -1
- package/dist/{swirl-symbol-event-menu.entry.d15050c4.js → swirl-symbol-event-menu.entry.7199f5eb.js} +1 -1
- package/dist/{swirl-symbol-facebook.entry.98d246d3.js → swirl-symbol-facebook.entry.0df1bb53.js} +1 -1
- package/dist/{swirl-symbol-favorite.entry.ccb85054.js → swirl-symbol-favorite.entry.532fac2e.js} +1 -1
- package/dist/{swirl-symbol-fitness-center.entry.658e1d60.js → swirl-symbol-fitness-center.entry.25cdd9eb.js} +1 -1
- package/dist/{swirl-symbol-flag.entry.00a24bcb.js → swirl-symbol-flag.entry.394768ef.js} +1 -1
- package/dist/{swirl-symbol-folder.entry.b43c1dcb.js → swirl-symbol-folder.entry.20b1981c.js} +1 -1
- package/dist/{swirl-symbol-globe.entry.ea8d2274.js → swirl-symbol-globe.entry.dc84c360.js} +1 -1
- package/dist/{swirl-symbol-groups.entry.ca9d1a0f.js → swirl-symbol-groups.entry.ffca31e4.js} +1 -1
- package/dist/{swirl-symbol-help.entry.c02b3f79.js → swirl-symbol-help.entry.d4a0c7ae.js} +1 -1
- package/dist/{swirl-symbol-image.entry.454cf93c.js → swirl-symbol-image.entry.1268ed29.js} +1 -1
- package/dist/{swirl-symbol-info-menu.entry.d3ba324d.js → swirl-symbol-info-menu.entry.c1c84d60.js} +1 -1
- package/dist/{swirl-symbol-instagram.entry.f0382e67.js → swirl-symbol-instagram.entry.02af7c36.js} +1 -1
- package/dist/{swirl-symbol-ios.entry.eb4a0ad2.js → swirl-symbol-ios.entry.71ce1f97.js} +1 -1
- package/dist/{swirl-symbol-language.entry.366c1fee.js → swirl-symbol-language.entry.93e49d8b.js} +1 -1
- package/dist/{swirl-symbol-leaderboard.entry.a93fee25.js → swirl-symbol-leaderboard.entry.8159627c.js} +1 -1
- package/dist/{swirl-symbol-lightbulb.entry.f09d3ace.js → swirl-symbol-lightbulb.entry.a448f50a.js} +1 -1
- package/dist/{swirl-symbol-linkedin.entry.b726dc11.js → swirl-symbol-linkedin.entry.2b087adf.js} +1 -1
- package/dist/{swirl-symbol-location-on.entry.86b295cb.js → swirl-symbol-location-on.entry.15f3e620.js} +1 -1
- package/dist/{swirl-symbol-loyalty.entry.086834d3.js → swirl-symbol-loyalty.entry.3fcf0631.js} +1 -1
- package/dist/{swirl-symbol-maps-home-work.entry.ae3472b4.js → swirl-symbol-maps-home-work.entry.ae3325d5.js} +1 -1
- package/dist/{swirl-symbol-notifications.entry.73162180.js → swirl-symbol-notifications.entry.24d5c3bf.js} +1 -1
- package/dist/{swirl-symbol-open-in-new.entry.05a7ad60.js → swirl-symbol-open-in-new.entry.b616c807.js} +1 -1
- package/dist/{swirl-symbol-pedal-bike.entry.a491ddbb.js → swirl-symbol-pedal-bike.entry.27959d69.js} +1 -1
- package/dist/{swirl-symbol-pinterest.entry.ccfb3c33.js → swirl-symbol-pinterest.entry.4f792137.js} +1 -1
- package/dist/{swirl-symbol-policy.entry.478b5349.js → swirl-symbol-policy.entry.87da3679.js} +1 -1
- package/dist/{swirl-symbol-push-pin.entry.f30feab5.js → swirl-symbol-push-pin.entry.4a027788.js} +1 -1
- package/dist/{swirl-symbol-redeem.entry.8072d95c.js → swirl-symbol-redeem.entry.83f4796d.js} +1 -1
- package/dist/{swirl-symbol-report-problem.entry.56ede5d9.js → swirl-symbol-report-problem.entry.8b0ac67e.js} +1 -1
- package/dist/{swirl-symbol-restaurant.entry.e598109c.js → swirl-symbol-restaurant.entry.b07164d3.js} +1 -1
- package/dist/{swirl-symbol-roadmap.entry.b5b6b59f.js → swirl-symbol-roadmap.entry.c26367de.js} +1 -1
- package/dist/{swirl-symbol-room.entry.318d0e7d.js → swirl-symbol-room.entry.0cea80a2.js} +1 -1
- package/dist/{swirl-symbol-savings.entry.051d68a7.js → swirl-symbol-savings.entry.f779d16f.js} +1 -1
- package/dist/{swirl-symbol-settings-voice.entry.191d634c.js → swirl-symbol-settings-voice.entry.7e675b6a.js} +1 -1
- package/dist/{swirl-symbol-shopping-cart.entry.e2ff7405.js → swirl-symbol-shopping-cart.entry.cb804592.js} +1 -1
- package/dist/{swirl-symbol-smartphone.entry.fe88e35a.js → swirl-symbol-smartphone.entry.ae07209d.js} +1 -1
- package/dist/{swirl-symbol-star.entry.8ee54da6.js → swirl-symbol-star.entry.716aae27.js} +1 -1
- package/dist/{swirl-symbol-supervisor-account.entry.7af9ca10.js → swirl-symbol-supervisor-account.entry.9bfddfb1.js} +1 -1
- package/dist/{swirl-symbol-thumbs-up-down.entry.fa8aedee.js → swirl-symbol-thumbs-up-down.entry.393305ee.js} +1 -1
- package/dist/{swirl-symbol-twitter.entry.b4b6e5ff.js → swirl-symbol-twitter.entry.a8fef8cd.js} +1 -1
- package/dist/{swirl-symbol-wb-sunny.entry.f55fd7db.js → swirl-symbol-wb-sunny.entry.7097357c.js} +1 -1
- package/dist/{swirl-symbol-wechat.entry.ed3a81bb.js → swirl-symbol-wechat.entry.0dd08fd2.js} +1 -1
- package/dist/{swirl-symbol-weibo.entry.5db713cb.js → swirl-symbol-weibo.entry.5111da86.js} +1 -1
- package/dist/{swirl-symbol-work.entry.f022cff4.js → swirl-symbol-work.entry.8cdbe640.js} +1 -1
- package/dist/{swirl-symbol-xing.entry.220ba17b.js → swirl-symbol-xing.entry.32bad642.js} +1 -1
- package/dist/{swirl-symbol-youtube.entry.2c513504.js → swirl-symbol-youtube.entry.b1a26c3b.js} +1 -1
- package/dist/{swirl-symbol.entry.7848da1e.js → swirl-symbol.entry.321b7561.js} +1 -1
- package/dist/{swirl-tab-bar.entry.80cc5bc4.js → swirl-tab-bar.entry.99ea19ca.js} +1 -1
- package/dist/{swirl-tab.entry.6ed06db6.js → swirl-tab.entry.efd5aa1b.js} +1 -1
- package/dist/{swirl-table-cell.entry.61b9a0b1.js → swirl-table-cell.entry.a4d79fde.js} +1 -1
- package/dist/{swirl-table-column.entry.4e312508.js → swirl-table-column.entry.72f25118.js} +1 -1
- package/dist/{swirl-table-row-group.entry.7af69faf.js → swirl-table-row-group.entry.4461a288.js} +1 -1
- package/dist/{swirl-table-row.entry.aa107ef9.js → swirl-table-row.entry.5658b371.js} +3 -3
- package/dist/{swirl-table.entry.f9a50763.js → swirl-table.entry.6d8a99ee.js} +16 -16
- package/dist/{swirl-tabs.entry.e5cf7916.js → swirl-tabs.entry.870e4b68.js} +7 -7
- package/dist/{swirl-tag.entry.8501812d.js → swirl-tag.entry.bb3dc64b.js} +2 -2
- package/dist/{swirl-text-input.entry.08949cd3.js → swirl-text-input.entry.24628066.js} +21 -19
- package/dist/{swirl-text.entry.c57661bc.js → swirl-text.entry.ec8c7688.js} +1 -1
- package/dist/{swirl-theme-provider.entry.835a3b54.js → swirl-theme-provider.entry.a0de950c.js} +78 -66
- package/dist/{swirl-time-input.entry.fda4f54e.js → swirl-time-input.entry.dcf164da.js} +40 -38
- package/dist/{swirl-toast-provider.entry.a1d6c3c8.js → swirl-toast-provider.entry.a45bf498.js} +14 -9
- package/dist/{swirl-toast.entry.b6adb276.js → swirl-toast.entry.168b2471.js} +9 -9
- package/dist/{swirl-tooltip.entry.43b622b1.js → swirl-tooltip.entry.16cf40ce.js} +14 -14
- package/dist/{swirl-tree-navigation-item.entry.b41012b1.js → swirl-tree-navigation-item.entry.fb55295c.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.115fcbc5.js → swirl-video-thumbnail.entry.ef584013.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.5c6d4226.js → swirl-visually-hidden.entry.22de9ea0.js} +1 -1
- package/dist/{wc-datepicker.entry.1fa3ba12.js → wc-datepicker.entry.f8f6861f.js} +1 -1
- package/package.json +2 -2
package/dist/{swirl-file-viewer_7.entry.a5a4de69.js → swirl-file-viewer_7.entry.5faefd6f.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as jt, c as Rt, h as qe, H as $t, g as Qt } from "./index.
|
|
1
|
+
import { r as jt, c as Rt, h as qe, H as $t, g as Qt } from "./index.e636c5f9.js";
|
|
2
2
|
import { a as cr, c as Qi, b as vt, g as Ji, d as qr, e as Zi } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { d as ea, b as ta, i as ra } from "./utils-bc84f36e.1fee9865.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
var na = cr(function(De,
|
|
6
|
+
var na = cr(function(De, Ce) {
|
|
7
7
|
(function(Ie, Te) {
|
|
8
8
|
Te();
|
|
9
9
|
})(vt, function() {
|
|
@@ -76,22 +76,22 @@ var na = cr(function(De, we) {
|
|
|
76
76
|
});
|
|
77
77
|
const ia = ":host{display:block;width:100%;height:100%}:host *{box-sizing:border-box}.file-viewer{display:flex;width:100%;height:100%;justify-content:center;align-items:center}.file-viewer__file{display:inline-flex;width:100%;height:100%;justify-content:center;align-items:center}", aa = class {
|
|
78
78
|
constructor(De) {
|
|
79
|
-
jt(this, De), this.activate = Rt(this, "activate", 7), this.visiblePagesChange = Rt(this, "visiblePagesChange", 7), this.onActivate = (
|
|
80
|
-
this.activate.emit(
|
|
81
|
-
}, this.onVisiblePagesChange = (
|
|
82
|
-
this.visiblePagesChange.emit(
|
|
79
|
+
jt(this, De), this.activate = Rt(this, "activate", 7), this.visiblePagesChange = Rt(this, "visiblePagesChange", 7), this.onActivate = (Ce) => {
|
|
80
|
+
this.activate.emit(Ce.detail);
|
|
81
|
+
}, this.onVisiblePagesChange = (Ce) => {
|
|
82
|
+
this.visiblePagesChange.emit(Ce.detail);
|
|
83
83
|
}, this.active = !0, this.autoplay = void 0, this.description = void 0, this.errorMessage = "File could not be loaded.", this.file = void 0, this.thumbnailUrl = void 0, this.type = void 0, this.typeUnsupportedMessage = "File type is not supported.", this.viewMode = "single", this.zoom = 1;
|
|
84
84
|
}
|
|
85
85
|
async download() {
|
|
86
|
-
const De = this.file.split("/").pop(),
|
|
87
|
-
na.saveAs(await
|
|
86
|
+
const De = this.file.split("/").pop(), Ce = await fetch(this.file);
|
|
87
|
+
na.saveAs(await Ce.blob(), De);
|
|
88
88
|
}
|
|
89
89
|
async print() {
|
|
90
90
|
this.type === "application/pdf" && this.viewer.print();
|
|
91
91
|
}
|
|
92
92
|
render() {
|
|
93
93
|
const De = !Boolean(this.type) || !this.type.startsWith("image/") && !this.type.startsWith("video/") && !this.type.startsWith("audio/") && this.type !== "text/plain" && this.type !== "text/csv" && this.type !== "application/pdf";
|
|
94
|
-
return qe($t, null, qe("div", { class: "file-viewer" }, this.type && this.active && qe("div", { class: "file-viewer__file" }, this.type.startsWith("image/") && qe("swirl-file-viewer-image", { description: this.description, errorMessage: this.errorMessage, file: this.file, ref: (
|
|
94
|
+
return qe($t, null, qe("div", { class: "file-viewer" }, this.type && this.active && qe("div", { class: "file-viewer__file" }, this.type.startsWith("image/") && qe("swirl-file-viewer-image", { description: this.description, errorMessage: this.errorMessage, file: this.file, ref: (Ce) => this.viewer = Ce }), this.type === "text/plain" && qe("swirl-file-viewer-text", { errorMessage: this.errorMessage, file: this.file, ref: (Ce) => this.viewer = Ce }), this.type === "text/csv" && qe("swirl-file-viewer-csv", { errorMessage: this.errorMessage, file: this.file, ref: (Ce) => this.viewer = Ce }), this.type === "application/pdf" && qe("swirl-file-viewer-pdf", { errorMessage: this.errorMessage, file: this.file, onActivate: this.onActivate, onVisiblePagesChange: this.onVisiblePagesChange, ref: (Ce) => this.viewer = Ce, viewMode: this.viewMode, zoom: this.zoom }), this.type.startsWith("video/") && qe("swirl-file-viewer-video", { autoplay: this.autoplay, file: this.file, ref: (Ce) => this.viewer = Ce, type: this.type }), this.type.startsWith("audio/") && qe("swirl-file-viewer-audio", { autoplay: this.autoplay, file: this.file, ref: (Ce) => this.viewer = Ce, type: this.type }), De && qe("swirl-inline-error", { message: this.typeUnsupportedMessage }))));
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
aa.style = ia;
|
|
@@ -110,7 +110,7 @@ const sa = ":host{display:inline-flex;width:100%;height:100%}:host *{box-sizing:
|
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
112
|
oa.style = sa;
|
|
113
|
-
var la = cr(function(De,
|
|
113
|
+
var la = cr(function(De, Ce) {
|
|
114
114
|
/* @license
|
|
115
115
|
Papa Parse
|
|
116
116
|
v5.3.2
|
|
@@ -454,16 +454,16 @@ var la = cr(function(De, we) {
|
|
|
454
454
|
var X, J, ie, se;
|
|
455
455
|
L = L || [",", " ", "|", ";", n.RECORD_SEP, n.UNIT_SEP];
|
|
456
456
|
for (var he = 0; he < L.length; he++) {
|
|
457
|
-
var le = L[he], fe = 0, ve = 0,
|
|
457
|
+
var le = L[he], fe = 0, ve = 0, we = 0;
|
|
458
458
|
ie = void 0;
|
|
459
|
-
for (var
|
|
460
|
-
if (_ && U(
|
|
461
|
-
|
|
459
|
+
for (var Ee = new D({ comments: M, delimiter: le, newline: d, preview: 10 }).parse(s), Oe = 0; Oe < Ee.data.length; Oe++)
|
|
460
|
+
if (_ && U(Ee.data[Oe]))
|
|
461
|
+
we++;
|
|
462
462
|
else {
|
|
463
|
-
var ze =
|
|
463
|
+
var ze = Ee.data[Oe].length;
|
|
464
464
|
ve += ze, ie !== void 0 ? 0 < ze && (fe += Math.abs(ze - ie), ie = ze) : ie = ze;
|
|
465
465
|
}
|
|
466
|
-
0 <
|
|
466
|
+
0 < Ee.data.length && (ve /= Ee.data.length - we), (J === void 0 || fe <= J) && (se === void 0 || se < ve) && 1.99 < ve && (J = fe, X = le, se = ve);
|
|
467
467
|
}
|
|
468
468
|
return { successful: !!(p.delimiter = X), bestDelimiter: X };
|
|
469
469
|
}(Se, p.newline, p.skipEmptyLines, p.comments, p.delimitersToGuess);
|
|
@@ -657,12 +657,12 @@ const ca = ":host{position:relative;display:inline-flex;width:100%;max-height:10
|
|
|
657
657
|
var De;
|
|
658
658
|
this.error = !1, this.loading = !0;
|
|
659
659
|
try {
|
|
660
|
-
const
|
|
660
|
+
const Ce = await fetch(this.file), Ie = la.parse(await Ce.text(), {
|
|
661
661
|
dynamicTyping: !0,
|
|
662
662
|
fastMode: !1,
|
|
663
663
|
skipEmptyLines: !0
|
|
664
664
|
});
|
|
665
|
-
if (((De = Ie.errors)
|
|
665
|
+
if (((De = Ie.errors) == null ? void 0 : De.length) > 0) {
|
|
666
666
|
this.error = !0, this.loading = !1;
|
|
667
667
|
return;
|
|
668
668
|
}
|
|
@@ -673,7 +673,7 @@ const ca = ":host{position:relative;display:inline-flex;width:100%;max-height:10
|
|
|
673
673
|
}
|
|
674
674
|
render() {
|
|
675
675
|
var De;
|
|
676
|
-
return qe($t, { class: "file-viewer-csv", exportparts: "file-viewer-csv__table" }, this.error && qe("swirl-inline-error", { class: "file-viewer-csv__error", message: this.errorMessage }), qe("div", { class: "file-viewer-csv__csv", tabIndex: 0 }, qe("table", { class: "file-viewer-csv__table", part: "file-viewer-csv__table" }, qe("tbody", null, (De = this.data)
|
|
676
|
+
return qe($t, { class: "file-viewer-csv", exportparts: "file-viewer-csv__table" }, this.error && qe("swirl-inline-error", { class: "file-viewer-csv__error", message: this.errorMessage }), qe("div", { class: "file-viewer-csv__csv", tabIndex: 0 }, qe("table", { class: "file-viewer-csv__table", part: "file-viewer-csv__table" }, qe("tbody", null, (De = this.data) == null ? void 0 : De.map((Ce, Ie) => qe("tr", { class: "file-viewer-csv__row", key: `row-${Ie}` }, Ce.map((Te, Le) => qe("td", { class: "file-viewer-csv__cell", key: `cell-${Ie}-${Le}` }, Te))))))), this.loading && qe("div", { class: "file-viewer-csv__spinner" }, qe("swirl-spinner", null)));
|
|
677
677
|
}
|
|
678
678
|
get el() {
|
|
679
679
|
return Qt(this);
|
|
@@ -691,56 +691,56 @@ const da = ":host{position:relative;display:inline-flex;max-height:100%}:host *{
|
|
|
691
691
|
this.error = !0, this.loading = !1;
|
|
692
692
|
}, this.onLoad = () => {
|
|
693
693
|
this.error = !1, this.loading = !1;
|
|
694
|
-
}, this.onDblClick = (
|
|
695
|
-
this.clickToZoom(
|
|
696
|
-
}, this.onWheel = (
|
|
697
|
-
|
|
698
|
-
const Ie = Math.min(Math.max(1, this.zoom + -1 *
|
|
694
|
+
}, this.onDblClick = (Ce) => {
|
|
695
|
+
this.clickToZoom(Ce);
|
|
696
|
+
}, this.onWheel = (Ce) => {
|
|
697
|
+
Ce.preventDefault();
|
|
698
|
+
const Ie = Math.min(Math.max(1, this.zoom + -1 * Ce.deltaY / 100), this.maxZoom);
|
|
699
699
|
if (Ie === this.zoom)
|
|
700
700
|
return;
|
|
701
|
-
const Te =
|
|
701
|
+
const Te = Ce.offsetX, Le = Ce.offsetY;
|
|
702
702
|
this.updateTransformOrigin(Te, Le), this.updateZoomAndPan(Ie, 0, 0);
|
|
703
|
-
}, this.onPointerDown = (
|
|
704
|
-
this.startPan(
|
|
705
|
-
}, this.onPointerMove = (
|
|
706
|
-
this.pan(
|
|
703
|
+
}, this.onPointerDown = (Ce) => {
|
|
704
|
+
this.startPan(Ce);
|
|
705
|
+
}, this.onPointerMove = (Ce) => {
|
|
706
|
+
this.pan(Ce);
|
|
707
707
|
}, this.onPointerUp = () => {
|
|
708
708
|
this.endPan();
|
|
709
|
-
}, this.onTouchStart = (
|
|
710
|
-
|
|
711
|
-
}, this.onTouchMove = (
|
|
712
|
-
|
|
713
|
-
}, this.onTouchEnd = (
|
|
714
|
-
|
|
715
|
-
}, this.startPinchToZoom = (
|
|
716
|
-
!Boolean(this.imageEl) || (this.pinchDistance = this.getPinchDistance(
|
|
717
|
-
}, this.pinchToZoom = (
|
|
718
|
-
const Ie = this.getPinchDistance(
|
|
719
|
-
this.zoom !== Te && (this.pinchDistance = this.getPinchDistance(
|
|
709
|
+
}, this.onTouchStart = (Ce) => {
|
|
710
|
+
Ce.preventDefault(), Ce.touches.length === 2 && this.startPinchToZoom(Ce);
|
|
711
|
+
}, this.onTouchMove = (Ce) => {
|
|
712
|
+
Ce.preventDefault(), this.pinching && this.pinchToZoom(Ce);
|
|
713
|
+
}, this.onTouchEnd = (Ce) => {
|
|
714
|
+
Ce.preventDefault(), this.pinching && this.endPinchToZoom();
|
|
715
|
+
}, this.startPinchToZoom = (Ce) => {
|
|
716
|
+
!Boolean(this.imageEl) || (this.pinchDistance = this.getPinchDistance(Ce), this.pinching = !0);
|
|
717
|
+
}, this.pinchToZoom = (Ce) => {
|
|
718
|
+
const Ie = this.getPinchDistance(Ce) - this.pinchDistance, Te = Math.min(Math.max(1, this.zoom + Ie / 100), this.maxZoom);
|
|
719
|
+
this.zoom !== Te && (this.pinchDistance = this.getPinchDistance(Ce), this.updateZoomAndPan(Te));
|
|
720
720
|
}, this.endPinchToZoom = () => {
|
|
721
721
|
this.pinching = !1, Math.abs(this.zoom - 1) < 0.2 && (this.zoom = 1, this.imageEl.style.transform = "");
|
|
722
|
-
}, this.getPinchDistance = (
|
|
722
|
+
}, this.getPinchDistance = (Ce) => Math.hypot(Ce.touches[0].pageX - Ce.touches[1].pageX, Ce.touches[0].pageY - Ce.touches[1].pageY), this.clickToZoom = (Ce) => {
|
|
723
723
|
if (!(navigator.maxTouchPoints > 1))
|
|
724
724
|
if (this.zoom === 1) {
|
|
725
|
-
const Te =
|
|
725
|
+
const Te = Ce.pageX - this.el.getBoundingClientRect().x, Le = Ce.pageY - this.el.getBoundingClientRect().y;
|
|
726
726
|
this.updateTransformOrigin(Te, Le), this.updateZoomAndPan(2);
|
|
727
727
|
} else
|
|
728
728
|
this.updateZoomAndPan(1);
|
|
729
|
-
}, this.updateZoomAndPan = (
|
|
730
|
-
const Le =
|
|
729
|
+
}, this.updateZoomAndPan = (Ce, Ie, Te) => {
|
|
730
|
+
const Le = Ce === void 0 ? this.zoom : Ce, Qe = Le - this.zoom, B = Ie === void 0 ? this.panX + this.panX * Qe : Ie, v = Ie === void 0 ? this.panY + this.panY * Qe : Te, n = this.panX, o = this.panY;
|
|
731
731
|
this.zoom = Le, this.panX = B, this.panY = v;
|
|
732
732
|
const c = (this.el.parentElement || this.el).getBoundingClientRect(), T = this.imageEl.getBoundingClientRect(), R = T.right < c.right && B < n || T.left > c.left && B > n, O = T.bottom < c.bottom && v < o || T.top > c.top && v > o;
|
|
733
733
|
R && (this.panX = n), O && (this.panY = o), this.zoom === 1 && (this.panX = 0, this.panY = 0), this.imageEl.style.transform = `matrix(${this.zoom}, 0, 0, ${this.zoom}, ${this.panX}, ${this.panY})`;
|
|
734
|
-
}, this.updateTransformOrigin = (
|
|
735
|
-
this.transformOriginX =
|
|
736
|
-
}, this.startPan = (
|
|
737
|
-
this.panning = !0, this.previousScreenX =
|
|
738
|
-
}, this.pan = (
|
|
734
|
+
}, this.updateTransformOrigin = (Ce, Ie) => {
|
|
735
|
+
this.transformOriginX = Ce, this.transformOriginY = Ie, this.imageEl.style.transformOrigin = `${this.transformOriginX}px ${this.transformOriginY}px`;
|
|
736
|
+
}, this.startPan = (Ce) => {
|
|
737
|
+
this.panning = !0, this.previousScreenX = Ce.screenX, this.previousScreenY = Ce.screenY;
|
|
738
|
+
}, this.pan = (Ce) => {
|
|
739
739
|
const Ie = this.previousScreenX || 0, Te = this.previousScreenY || 0;
|
|
740
|
-
if (this.previousScreenX =
|
|
740
|
+
if (this.previousScreenX = Ce.screenX, this.previousScreenY = Ce.screenY, !this.panning || this.pinching)
|
|
741
741
|
return;
|
|
742
|
-
|
|
743
|
-
const Le = this.panX +
|
|
742
|
+
Ce.preventDefault();
|
|
743
|
+
const Le = this.panX + Ce.screenX - Ie, Qe = this.panY + Ce.screenY - Te;
|
|
744
744
|
this.updateZoomAndPan(this.zoom, Le, Qe);
|
|
745
745
|
}, this.endPan = () => {
|
|
746
746
|
this.panning = !1;
|
|
@@ -771,7 +771,7 @@ const da = ":host{position:relative;display:inline-flex;max-height:100%}:host *{
|
|
|
771
771
|
}
|
|
772
772
|
};
|
|
773
773
|
ha.style = da;
|
|
774
|
-
var fa = cr(function(De,
|
|
774
|
+
var fa = cr(function(De, Ce) {
|
|
775
775
|
/*!
|
|
776
776
|
* DOMMatrix v1.0.3 (https://thednp.github.io/dommatrix/)
|
|
777
777
|
* Copyright 2022 © thednp
|
|
@@ -1064,9 +1064,9 @@ var fa = cr(function(De, we) {
|
|
|
1064
1064
|
var y = "1.0.3", D = y;
|
|
1065
1065
|
return Object.assign(P, { Version: D }), P;
|
|
1066
1066
|
});
|
|
1067
|
-
}), pa = cr(function(De,
|
|
1067
|
+
}), pa = cr(function(De, Ce) {
|
|
1068
1068
|
(function(Ie, Te) {
|
|
1069
|
-
Te(
|
|
1069
|
+
Te(Ce);
|
|
1070
1070
|
})(vt, function(Ie) {
|
|
1071
1071
|
var Te = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol : function(e) {
|
|
1072
1072
|
return "Symbol(" + e + ")";
|
|
@@ -1328,10 +1328,10 @@ var fa = cr(function(De, we) {
|
|
|
1328
1328
|
function ve(e) {
|
|
1329
1329
|
return new TypeError("ReadableStreamDefaultReader.prototype." + e + " can only be used on a ReadableStreamDefaultReader");
|
|
1330
1330
|
}
|
|
1331
|
-
var
|
|
1332
|
-
typeof Te.asyncIterator == "symbol" && (
|
|
1331
|
+
var we, Ee;
|
|
1332
|
+
typeof Te.asyncIterator == "symbol" && (Ee = (we = {}, we[Te.asyncIterator] = function() {
|
|
1333
1333
|
return this;
|
|
1334
|
-
},
|
|
1334
|
+
}, we), Object.defineProperty(Ee, Te.asyncIterator, { enumerable: !1 }));
|
|
1335
1335
|
var Oe = function() {
|
|
1336
1336
|
function e(i, x) {
|
|
1337
1337
|
this._ongoingPromise = void 0, this._isFinished = !1, this._reader = i, this._preventCancel = x;
|
|
@@ -1392,7 +1392,7 @@ var fa = cr(function(De, we) {
|
|
|
1392
1392
|
return Pe(this) ? this._asyncIteratorImpl.return(e) : m(V("return"));
|
|
1393
1393
|
}
|
|
1394
1394
|
};
|
|
1395
|
-
|
|
1395
|
+
Ee !== void 0 && Object.setPrototypeOf(ze, Ee);
|
|
1396
1396
|
function Fe(e, i) {
|
|
1397
1397
|
var x = L(e), K = new Oe(x, i), pe = Object.create(ze);
|
|
1398
1398
|
return pe._asyncIteratorImpl = K, pe;
|
|
@@ -1421,7 +1421,7 @@ var fa = cr(function(De, we) {
|
|
|
1421
1421
|
function oe(e) {
|
|
1422
1422
|
return e;
|
|
1423
1423
|
}
|
|
1424
|
-
function
|
|
1424
|
+
function _e(e, i, x) {
|
|
1425
1425
|
if (e.slice)
|
|
1426
1426
|
return e.slice(i, x);
|
|
1427
1427
|
var K = x - i, pe = new ArrayBuffer(K);
|
|
@@ -1431,7 +1431,7 @@ var fa = cr(function(De, we) {
|
|
|
1431
1431
|
return !(typeof e != "number" || Q(e) || e < 0);
|
|
1432
1432
|
}
|
|
1433
1433
|
function ce(e) {
|
|
1434
|
-
var i =
|
|
1434
|
+
var i = _e(e.buffer, e.byteOffset, e.byteOffset + e.byteLength);
|
|
1435
1435
|
return new Uint8Array(i);
|
|
1436
1436
|
}
|
|
1437
1437
|
function Re(e) {
|
|
@@ -1694,7 +1694,7 @@ var fa = cr(function(De, we) {
|
|
|
1694
1694
|
nt(e);
|
|
1695
1695
|
var K = x.bytesFilled % x.elementSize;
|
|
1696
1696
|
if (K > 0) {
|
|
1697
|
-
var pe = x.byteOffset + x.bytesFilled, Ae =
|
|
1697
|
+
var pe = x.byteOffset + x.bytesFilled, Ae = _e(x.buffer, pe - K, pe);
|
|
1698
1698
|
$e(e, Ae, 0, Ae.byteLength);
|
|
1699
1699
|
}
|
|
1700
1700
|
x.bytesFilled -= K, xe(e._controlledReadableByteStream, x), Ze(e);
|
|
@@ -3451,7 +3451,7 @@ const ga = {}, ma = /* @__PURE__ */ Object.freeze({
|
|
|
3451
3451
|
__proto__: null,
|
|
3452
3452
|
default: ga
|
|
3453
3453
|
}), zt = /* @__PURE__ */ Zi(ma);
|
|
3454
|
-
var Kr = cr(function(De,
|
|
3454
|
+
var Kr = cr(function(De, Ce) {
|
|
3455
3455
|
(function(Te, Le) {
|
|
3456
3456
|
De.exports = Le();
|
|
3457
3457
|
})(globalThis, () => (() => {
|
|
@@ -3460,7 +3460,7 @@ var Kr = cr(function(De, we) {
|
|
|
3460
3460
|
(B, v, n) => {
|
|
3461
3461
|
Object.defineProperty(v, "__esModule", {
|
|
3462
3462
|
value: !0
|
|
3463
|
-
}), v.VerbosityLevel = v.Util = v.UnknownErrorException = v.UnexpectedResponseException = v.UNSUPPORTED_FEATURES = v.TextRenderingMode = v.StreamType = v.RenderingIntentFlag = v.PermissionFlag = v.PasswordResponses = v.PasswordException = v.PageActionEventType = v.OPS = v.MissingPDFException = v.LINE_FACTOR = v.LINE_DESCENT_FACTOR = v.InvalidPDFException = v.ImageKind = v.IDENTITY_MATRIX = v.FormatError = v.FontType = v.FeatureTest = v.FONT_IDENTITY_MATRIX = v.DocumentActionEventType = v.CMapCompressionType = v.BaseException = v.AnnotationType = v.AnnotationStateModelType = v.AnnotationReviewState = v.AnnotationReplyType = v.AnnotationMode = v.AnnotationMarkedState = v.AnnotationFlag = v.AnnotationFieldFlag = v.AnnotationEditorType = v.AnnotationEditorPrefix = v.AnnotationEditorParamsType = v.AnnotationBorderStyleType = v.AnnotationActionEventType = v.AbortException = void 0, v.arrayByteLength = se, v.arraysToBytes = he, v.assert = Se, v.bytesToString = J, v.createPromiseCapability = Be, v.createValidAbsoluteUrl = C, v.escapeString = Q, v.getModificationDate = Re, v.getVerbosityLevel = I, v.info = ee, v.isArrayBuffer = ke, v.isArrayEqual = ce, v.isAscii = G, v.objectFromMap = ve, v.objectSize = fe, v.setVerbosityLevel = U, v.shadow = S, v.string32 = le, v.stringToBytes = ie, v.stringToPDFString = V, v.stringToUTF16BEString = H, v.stringToUTF8String = oe, v.unreachable = ye, v.utf8StringToString =
|
|
3463
|
+
}), v.VerbosityLevel = v.Util = v.UnknownErrorException = v.UnexpectedResponseException = v.UNSUPPORTED_FEATURES = v.TextRenderingMode = v.StreamType = v.RenderingIntentFlag = v.PermissionFlag = v.PasswordResponses = v.PasswordException = v.PageActionEventType = v.OPS = v.MissingPDFException = v.LINE_FACTOR = v.LINE_DESCENT_FACTOR = v.InvalidPDFException = v.ImageKind = v.IDENTITY_MATRIX = v.FormatError = v.FontType = v.FeatureTest = v.FONT_IDENTITY_MATRIX = v.DocumentActionEventType = v.CMapCompressionType = v.BaseException = v.AnnotationType = v.AnnotationStateModelType = v.AnnotationReviewState = v.AnnotationReplyType = v.AnnotationMode = v.AnnotationMarkedState = v.AnnotationFlag = v.AnnotationFieldFlag = v.AnnotationEditorType = v.AnnotationEditorPrefix = v.AnnotationEditorParamsType = v.AnnotationBorderStyleType = v.AnnotationActionEventType = v.AbortException = void 0, v.arrayByteLength = se, v.arraysToBytes = he, v.assert = Se, v.bytesToString = J, v.createPromiseCapability = Be, v.createValidAbsoluteUrl = C, v.escapeString = Q, v.getModificationDate = Re, v.getVerbosityLevel = I, v.info = ee, v.isArrayBuffer = ke, v.isArrayEqual = ce, v.isAscii = G, v.objectFromMap = ve, v.objectSize = fe, v.setVerbosityLevel = U, v.shadow = S, v.string32 = le, v.stringToBytes = ie, v.stringToPDFString = V, v.stringToUTF16BEString = H, v.stringToUTF8String = oe, v.unreachable = ye, v.utf8StringToString = _e, v.warn = de, n(2);
|
|
3464
3464
|
const o = [1, 0, 0, 1, 0, 0];
|
|
3465
3465
|
v.IDENTITY_MATRIX = o;
|
|
3466
3466
|
const c = [1e-3, 0, 0, 1e-3, 0, 0];
|
|
@@ -3991,19 +3991,19 @@ var Kr = cr(function(De, we) {
|
|
|
3991
3991
|
te[ae] = be;
|
|
3992
3992
|
return te;
|
|
3993
3993
|
}
|
|
3994
|
-
function
|
|
3994
|
+
function we() {
|
|
3995
3995
|
const ge = new Uint8Array(4);
|
|
3996
3996
|
return ge[0] = 1, new Uint32Array(ge.buffer, 0, 1)[0] === 1;
|
|
3997
3997
|
}
|
|
3998
|
-
function
|
|
3998
|
+
function Ee() {
|
|
3999
3999
|
return !1;
|
|
4000
4000
|
}
|
|
4001
4001
|
class Oe {
|
|
4002
4002
|
static get isLittleEndian() {
|
|
4003
|
-
return S(this, "isLittleEndian",
|
|
4003
|
+
return S(this, "isLittleEndian", we());
|
|
4004
4004
|
}
|
|
4005
4005
|
static get isEvalSupported() {
|
|
4006
|
-
return S(this, "isEvalSupported",
|
|
4006
|
+
return S(this, "isEvalSupported", Ee());
|
|
4007
4007
|
}
|
|
4008
4008
|
static get isOffscreenCanvasSupported() {
|
|
4009
4009
|
return S(this, "isOffscreenCanvasSupported", typeof OffscreenCanvas < "u");
|
|
@@ -4115,7 +4115,7 @@ var Kr = cr(function(De, we) {
|
|
|
4115
4115
|
function oe(ge) {
|
|
4116
4116
|
return decodeURIComponent(escape(ge));
|
|
4117
4117
|
}
|
|
4118
|
-
function
|
|
4118
|
+
function _e(ge) {
|
|
4119
4119
|
return unescape(encodeURIComponent(ge));
|
|
4120
4120
|
}
|
|
4121
4121
|
function ke(ge) {
|
|
@@ -5588,7 +5588,7 @@ var Kr = cr(function(De, we) {
|
|
|
5588
5588
|
}, c);
|
|
5589
5589
|
},
|
|
5590
5590
|
(B, v, n) => {
|
|
5591
|
-
var o = n(37), c = n(6), T = n(7), R = n(25), O = n(17), P = n(10), m = n(42), y = n(23), D = n(120), r = n(22), l = n(24), A = n(105), h = n(48), w = n(80), F = n(40), p = n(101), b = n(45), u = n(65), t = n(121), a = n(122), f = n(124), g = n(29), E = n(125), W = n(126), k = n(127), ne = T.Object, q = T.Date, re = T.Error, Z = T.EvalError, z = T.RangeError, $ = T.ReferenceError, U = T.SyntaxError, I = T.TypeError, ee = T.URIError, de = T.PerformanceMark, ye = T.WebAssembly, Se = ye && ye.CompileError || re, Y = ye && ye.LinkError || re, C = ye && ye.RuntimeError || re, S = R("DOMException"), N = R("Set"), j = R("Map"), s = j.prototype, d = O(s.has), _ = O(s.get), M = O(s.set), L = O(N.prototype.add), X = R("Object", "keys"), J = O([].push), ie = O((!0).valueOf), se = O(1 .valueOf), he = O("".valueOf), le = O(q.prototype.getTime), fe = m("structuredClone"), ve = "DataCloneError",
|
|
5591
|
+
var o = n(37), c = n(6), T = n(7), R = n(25), O = n(17), P = n(10), m = n(42), y = n(23), D = n(120), r = n(22), l = n(24), A = n(105), h = n(48), w = n(80), F = n(40), p = n(101), b = n(45), u = n(65), t = n(121), a = n(122), f = n(124), g = n(29), E = n(125), W = n(126), k = n(127), ne = T.Object, q = T.Date, re = T.Error, Z = T.EvalError, z = T.RangeError, $ = T.ReferenceError, U = T.SyntaxError, I = T.TypeError, ee = T.URIError, de = T.PerformanceMark, ye = T.WebAssembly, Se = ye && ye.CompileError || re, Y = ye && ye.LinkError || re, C = ye && ye.RuntimeError || re, S = R("DOMException"), N = R("Set"), j = R("Map"), s = j.prototype, d = O(s.has), _ = O(s.get), M = O(s.set), L = O(N.prototype.add), X = R("Object", "keys"), J = O([].push), ie = O((!0).valueOf), se = O(1 .valueOf), he = O("".valueOf), le = O(q.prototype.getTime), fe = m("structuredClone"), ve = "DataCloneError", we = "Transferring", Ee = function(ce) {
|
|
5592
5592
|
return !P(function() {
|
|
5593
5593
|
var Re = new T.Set([7]), Be = ce(Re), ge = ce(ne(7));
|
|
5594
5594
|
return Be == Re || !Be.has(7) || typeof ge != "object" || ge != 7;
|
|
@@ -5606,9 +5606,9 @@ var Kr = cr(function(De, we) {
|
|
|
5606
5606
|
var Re = ce(new T.AggregateError([1], fe, { cause: 3 }));
|
|
5607
5607
|
return Re.name != "AggregateError" || Re.errors[0] != 1 || Re.message != fe || Re.cause != 3;
|
|
5608
5608
|
});
|
|
5609
|
-
}, Fe = T.structuredClone, Pe = o || !Oe(Fe, re) || !Oe(Fe, S) || !ze(Fe), V = !Fe &&
|
|
5609
|
+
}, Fe = T.structuredClone, Pe = o || !Oe(Fe, re) || !Oe(Fe, S) || !ze(Fe), V = !Fe && Ee(function(ce) {
|
|
5610
5610
|
return new de(fe, { detail: ce }).detail;
|
|
5611
|
-
}), Q =
|
|
5611
|
+
}), Q = Ee(Fe) || V, G = function(ce) {
|
|
5612
5612
|
throw new S("Uncloneable type: " + ce, ve);
|
|
5613
5613
|
}, H = function(ce, Re) {
|
|
5614
5614
|
throw new S((Re || "Cloning") + " of " + ce + " cannot be properly polyfilled in this engine", ve);
|
|
@@ -5832,7 +5832,7 @@ var Kr = cr(function(De, we) {
|
|
|
5832
5832
|
f && b(be, "stack", oe(ce.stack, Re));
|
|
5833
5833
|
}
|
|
5834
5834
|
return be;
|
|
5835
|
-
},
|
|
5835
|
+
}, _e = Fe && !P(function() {
|
|
5836
5836
|
if (W && g > 92 || k && g > 94 || E && g > 97)
|
|
5837
5837
|
return !1;
|
|
5838
5838
|
var ce = new ArrayBuffer(8), Re = Fe(ce, { transfer: [ce] });
|
|
@@ -5845,7 +5845,7 @@ var Kr = cr(function(De, we) {
|
|
|
5845
5845
|
J(Be, h(Ne));
|
|
5846
5846
|
});
|
|
5847
5847
|
var ge = 0, te = u(Be), ae, be, We, He, me, ue, xe;
|
|
5848
|
-
if (
|
|
5848
|
+
if (_e)
|
|
5849
5849
|
for (He = Fe(Be, { transfer: Be }); ge < te; )
|
|
5850
5850
|
M(Re, Be[ge], He[ge++]);
|
|
5851
5851
|
else
|
|
@@ -5854,7 +5854,7 @@ var Kr = cr(function(De, we) {
|
|
|
5854
5854
|
throw new S("Duplicate transferable", ve);
|
|
5855
5855
|
switch (be = w(ae), be) {
|
|
5856
5856
|
case "ImageBitmap":
|
|
5857
|
-
We = T.OffscreenCanvas, D(We) || H(be,
|
|
5857
|
+
We = T.OffscreenCanvas, D(We) || H(be, we);
|
|
5858
5858
|
try {
|
|
5859
5859
|
ue = new We(ae.width, ae.height), xe = ue.getContext("bitmaprenderer"), xe.transferFromImageBitmap(ae), me = ue.transferToImageBitmap();
|
|
5860
5860
|
} catch {
|
|
@@ -5862,7 +5862,7 @@ var Kr = cr(function(De, we) {
|
|
|
5862
5862
|
break;
|
|
5863
5863
|
case "AudioData":
|
|
5864
5864
|
case "VideoFrame":
|
|
5865
|
-
(!y(ae.clone) || !y(ae.close)) && H(be,
|
|
5865
|
+
(!y(ae.clone) || !y(ae.close)) && H(be, we);
|
|
5866
5866
|
try {
|
|
5867
5867
|
me = ae.clone(), ae.close();
|
|
5868
5868
|
} catch {
|
|
@@ -5874,7 +5874,7 @@ var Kr = cr(function(De, we) {
|
|
|
5874
5874
|
case "ReadableStream":
|
|
5875
5875
|
case "TransformStream":
|
|
5876
5876
|
case "WritableStream":
|
|
5877
|
-
H(be,
|
|
5877
|
+
H(be, we);
|
|
5878
5878
|
}
|
|
5879
5879
|
if (me === void 0)
|
|
5880
5880
|
throw new S("This object cannot be transferred: " + be, ve);
|
|
@@ -5884,7 +5884,7 @@ var Kr = cr(function(De, we) {
|
|
|
5884
5884
|
c({
|
|
5885
5885
|
global: !0,
|
|
5886
5886
|
enumerable: !0,
|
|
5887
|
-
sham: !
|
|
5887
|
+
sham: !_e,
|
|
5888
5888
|
forced: Pe
|
|
5889
5889
|
}, {
|
|
5890
5890
|
structuredClone: function(Re) {
|
|
@@ -6118,11 +6118,11 @@ var Kr = cr(function(De, we) {
|
|
|
6118
6118
|
};
|
|
6119
6119
|
oe = ke.port ? d.fromPort(ke) : new d(ke), V._worker = oe;
|
|
6120
6120
|
}
|
|
6121
|
-
const
|
|
6121
|
+
const _e = V.docId;
|
|
6122
6122
|
return oe.promise.then(function() {
|
|
6123
6123
|
if (V.destroyed)
|
|
6124
6124
|
throw new Error("Loading aborted");
|
|
6125
|
-
const ke = ee(oe, G, H,
|
|
6125
|
+
const ke = ee(oe, G, H, _e), ce = new Promise(function(Re) {
|
|
6126
6126
|
let Be;
|
|
6127
6127
|
H ? Be = new l.PDFDataTransportStream({
|
|
6128
6128
|
length: G.length,
|
|
@@ -6145,7 +6145,7 @@ var Kr = cr(function(De, we) {
|
|
|
6145
6145
|
let [Be, ge] = Re;
|
|
6146
6146
|
if (V.destroyed)
|
|
6147
6147
|
throw new Error("Loading aborted");
|
|
6148
|
-
const te = new y.MessageHandler(
|
|
6148
|
+
const te = new y.MessageHandler(_e, Be, oe.port), ae = new ie(te, V, ge, G);
|
|
6149
6149
|
V._transport = ae, te.send("Ready", null);
|
|
6150
6150
|
});
|
|
6151
6151
|
}).catch(V._capability.reject), V;
|
|
@@ -6430,7 +6430,7 @@ var Kr = cr(function(De, we) {
|
|
|
6430
6430
|
var Q, G, H;
|
|
6431
6431
|
let {
|
|
6432
6432
|
canvasContext: oe,
|
|
6433
|
-
viewport:
|
|
6433
|
+
viewport: _e,
|
|
6434
6434
|
intent: ke = "display",
|
|
6435
6435
|
annotationMode: ce = o.AnnotationMode.ENABLE,
|
|
6436
6436
|
transform: Re = null,
|
|
@@ -6461,11 +6461,11 @@ var Kr = cr(function(De, we) {
|
|
|
6461
6461
|
intentState: ue,
|
|
6462
6462
|
reason: Ve instanceof Error ? Ve : new Error(Ve)
|
|
6463
6463
|
})) : Ge.capability.resolve(), this._stats && (this._stats.timeEnd("Rendering"), this._stats.timeEnd("Overall"));
|
|
6464
|
-
}, Ge = new
|
|
6464
|
+
}, Ge = new Ee({
|
|
6465
6465
|
callback: $e,
|
|
6466
6466
|
params: {
|
|
6467
6467
|
canvasContext: oe,
|
|
6468
|
-
viewport:
|
|
6468
|
+
viewport: _e,
|
|
6469
6469
|
transform: Re,
|
|
6470
6470
|
imageLayer: Be,
|
|
6471
6471
|
background: te
|
|
@@ -6501,22 +6501,22 @@ var Kr = cr(function(De, we) {
|
|
|
6501
6501
|
printAnnotationStorage: G = null
|
|
6502
6502
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6503
6503
|
function H() {
|
|
6504
|
-
|
|
6504
|
+
_e.operatorList.lastChunk && (_e.opListReadCapability.resolve(_e.operatorList), _e.renderTasks.delete(ke));
|
|
6505
6505
|
}
|
|
6506
6506
|
const oe = this._transport.getRenderingIntent(V, Q, G, !0);
|
|
6507
|
-
let
|
|
6508
|
-
|
|
6507
|
+
let _e = this._intentStates.get(oe.cacheKey);
|
|
6508
|
+
_e || (_e = /* @__PURE__ */ Object.create(null), this._intentStates.set(oe.cacheKey, _e));
|
|
6509
6509
|
let ke;
|
|
6510
|
-
if (!
|
|
6510
|
+
if (!_e.opListReadCapability) {
|
|
6511
6511
|
var ce;
|
|
6512
|
-
ke = /* @__PURE__ */ Object.create(null), ke.operatorListChanged = H,
|
|
6512
|
+
ke = /* @__PURE__ */ Object.create(null), ke.operatorListChanged = H, _e.opListReadCapability = (0, o.createPromiseCapability)(), ((ce = _e).renderTasks || (ce.renderTasks = /* @__PURE__ */ new Set())).add(ke), _e.operatorList = {
|
|
6513
6513
|
fnArray: [],
|
|
6514
6514
|
argsArray: [],
|
|
6515
6515
|
lastChunk: !1,
|
|
6516
6516
|
separateAnnots: null
|
|
6517
6517
|
}, this._stats && this._stats.time("Page Request"), this._pumpOperatorList(oe);
|
|
6518
6518
|
}
|
|
6519
|
-
return
|
|
6519
|
+
return _e.opListReadCapability.promise;
|
|
6520
6520
|
}
|
|
6521
6521
|
streamTextContent() {
|
|
6522
6522
|
let {
|
|
@@ -6542,7 +6542,7 @@ var Kr = cr(function(De, we) {
|
|
|
6542
6542
|
const Q = this.streamTextContent(V);
|
|
6543
6543
|
return new Promise(function(G, H) {
|
|
6544
6544
|
function oe() {
|
|
6545
|
-
|
|
6545
|
+
_e.read().then(function(ce) {
|
|
6546
6546
|
let {
|
|
6547
6547
|
value: Re,
|
|
6548
6548
|
done: Be
|
|
@@ -6554,7 +6554,7 @@ var Kr = cr(function(De, we) {
|
|
|
6554
6554
|
Object.assign(ke.styles, Re.styles), ke.items.push(...Re.items), oe();
|
|
6555
6555
|
}, H);
|
|
6556
6556
|
}
|
|
6557
|
-
const
|
|
6557
|
+
const _e = Q.getReader(), ke = {
|
|
6558
6558
|
items: [],
|
|
6559
6559
|
styles: /* @__PURE__ */ Object.create(null)
|
|
6560
6560
|
};
|
|
@@ -6617,15 +6617,15 @@ var Kr = cr(function(De, we) {
|
|
|
6617
6617
|
cacheKey: G,
|
|
6618
6618
|
annotationStorageMap: H
|
|
6619
6619
|
} = V;
|
|
6620
|
-
const
|
|
6620
|
+
const _e = this._transport.messageHandler.sendWithStream("GetOperatorList", {
|
|
6621
6621
|
pageIndex: this._pageIndex,
|
|
6622
6622
|
intent: Q,
|
|
6623
6623
|
cacheKey: G,
|
|
6624
6624
|
annotationStorage: H
|
|
6625
6625
|
}).getReader(), ke = this._intentStates.get(G);
|
|
6626
|
-
ke.streamReader =
|
|
6626
|
+
ke.streamReader = _e;
|
|
6627
6627
|
const ce = () => {
|
|
6628
|
-
|
|
6628
|
+
_e.read().then((Re) => {
|
|
6629
6629
|
let {
|
|
6630
6630
|
value: Be,
|
|
6631
6631
|
done: ge
|
|
@@ -6677,8 +6677,8 @@ var Kr = cr(function(De, we) {
|
|
|
6677
6677
|
}
|
|
6678
6678
|
if (Q.streamReader.cancel(new o.AbortException(G.message)).catch(() => {
|
|
6679
6679
|
}), Q.streamReader = null, !this._transport.destroyed) {
|
|
6680
|
-
for (const [oe,
|
|
6681
|
-
if (
|
|
6680
|
+
for (const [oe, _e] of this._intentStates)
|
|
6681
|
+
if (_e === Q) {
|
|
6682
6682
|
this._intentStates.delete(oe);
|
|
6683
6683
|
break;
|
|
6684
6684
|
}
|
|
@@ -6799,16 +6799,16 @@ var Kr = cr(function(De, we) {
|
|
|
6799
6799
|
return;
|
|
6800
6800
|
}
|
|
6801
6801
|
try {
|
|
6802
|
-
|
|
6802
|
+
_e();
|
|
6803
6803
|
} catch {
|
|
6804
6804
|
this._setupFakeWorker();
|
|
6805
6805
|
}
|
|
6806
6806
|
});
|
|
6807
|
-
const
|
|
6807
|
+
const _e = () => {
|
|
6808
6808
|
const ke = new Uint8Array();
|
|
6809
6809
|
G.send("test", ke, [ke.buffer]);
|
|
6810
6810
|
};
|
|
6811
|
-
|
|
6811
|
+
_e();
|
|
6812
6812
|
return;
|
|
6813
6813
|
} catch {
|
|
6814
6814
|
(0, o.info)("The worker has been disabled.");
|
|
@@ -6907,7 +6907,7 @@ var Kr = cr(function(De, we) {
|
|
|
6907
6907
|
return u(this, M);
|
|
6908
6908
|
}
|
|
6909
6909
|
getRenderingIntent(V) {
|
|
6910
|
-
let Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : o.AnnotationMode.ENABLE, G = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, H = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, oe = o.RenderingIntentFlag.DISPLAY,
|
|
6910
|
+
let Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : o.AnnotationMode.ENABLE, G = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, H = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, oe = o.RenderingIntentFlag.DISPLAY, _e = null;
|
|
6911
6911
|
switch (V) {
|
|
6912
6912
|
case "any":
|
|
6913
6913
|
oe = o.RenderingIntentFlag.ANY;
|
|
@@ -6930,15 +6930,15 @@ var Kr = cr(function(De, we) {
|
|
|
6930
6930
|
oe += o.RenderingIntentFlag.ANNOTATIONS_FORMS;
|
|
6931
6931
|
break;
|
|
6932
6932
|
case o.AnnotationMode.ENABLE_STORAGE:
|
|
6933
|
-
oe += o.RenderingIntentFlag.ANNOTATIONS_STORAGE,
|
|
6933
|
+
oe += o.RenderingIntentFlag.ANNOTATIONS_STORAGE, _e = (oe & o.RenderingIntentFlag.PRINT && G instanceof c.PrintAnnotationStorage ? G : this.annotationStorage).serializable;
|
|
6934
6934
|
break;
|
|
6935
6935
|
default:
|
|
6936
6936
|
(0, o.warn)(`getRenderingIntent - invalid annotationMode: ${Q}`);
|
|
6937
6937
|
}
|
|
6938
6938
|
return H && (oe += o.RenderingIntentFlag.OPLIST), {
|
|
6939
6939
|
renderingIntent: oe,
|
|
6940
|
-
cacheKey: `${oe}_${c.AnnotationStorage.getHash(
|
|
6941
|
-
annotationStorageMap:
|
|
6940
|
+
cacheKey: `${oe}_${c.AnnotationStorage.getHash(_e)}`,
|
|
6941
|
+
annotationStorageMap: _e
|
|
6942
6942
|
};
|
|
6943
6943
|
}
|
|
6944
6944
|
destroy() {
|
|
@@ -6968,21 +6968,21 @@ var Kr = cr(function(De, we) {
|
|
|
6968
6968
|
}, H.onPull = () => {
|
|
6969
6969
|
this._fullReader.read().then(function(oe) {
|
|
6970
6970
|
let {
|
|
6971
|
-
value:
|
|
6971
|
+
value: _e,
|
|
6972
6972
|
done: ke
|
|
6973
6973
|
} = oe;
|
|
6974
6974
|
if (ke) {
|
|
6975
6975
|
H.close();
|
|
6976
6976
|
return;
|
|
6977
6977
|
}
|
|
6978
|
-
(0, o.assert)((0, o.isArrayBuffer)(
|
|
6978
|
+
(0, o.assert)((0, o.isArrayBuffer)(_e), "GetReader - expected an ArrayBuffer."), H.enqueue(new Uint8Array(_e), 1, [_e]);
|
|
6979
6979
|
}).catch((oe) => {
|
|
6980
6980
|
H.error(oe);
|
|
6981
6981
|
});
|
|
6982
6982
|
}, H.onCancel = (oe) => {
|
|
6983
|
-
this._fullReader.cancel(oe), H.ready.catch((
|
|
6983
|
+
this._fullReader.cancel(oe), H.ready.catch((_e) => {
|
|
6984
6984
|
if (!this.destroyed)
|
|
6985
|
-
throw
|
|
6985
|
+
throw _e;
|
|
6986
6986
|
});
|
|
6987
6987
|
};
|
|
6988
6988
|
}), V.on("ReaderHeadersReady", (G) => {
|
|
@@ -6990,8 +6990,8 @@ var Kr = cr(function(De, we) {
|
|
|
6990
6990
|
return oe.headersReady.then(() => {
|
|
6991
6991
|
if (!oe.isStreamingSupported || !oe.isRangeSupported) {
|
|
6992
6992
|
if (this._lastProgress) {
|
|
6993
|
-
var
|
|
6994
|
-
(
|
|
6993
|
+
var _e;
|
|
6994
|
+
(_e = Q.onProgress) === null || _e === void 0 || _e.call(Q, this._lastProgress);
|
|
6995
6995
|
}
|
|
6996
6996
|
oe.onProgress = (ke) => {
|
|
6997
6997
|
var ce;
|
|
@@ -7015,21 +7015,21 @@ var Kr = cr(function(De, we) {
|
|
|
7015
7015
|
return;
|
|
7016
7016
|
}
|
|
7017
7017
|
H.onPull = () => {
|
|
7018
|
-
oe.read().then(function(
|
|
7018
|
+
oe.read().then(function(_e) {
|
|
7019
7019
|
let {
|
|
7020
7020
|
value: ke,
|
|
7021
7021
|
done: ce
|
|
7022
|
-
} =
|
|
7022
|
+
} = _e;
|
|
7023
7023
|
if (ce) {
|
|
7024
7024
|
H.close();
|
|
7025
7025
|
return;
|
|
7026
7026
|
}
|
|
7027
7027
|
(0, o.assert)((0, o.isArrayBuffer)(ke), "GetRangeReader - expected an ArrayBuffer."), H.enqueue(new Uint8Array(ke), 1, [ke]);
|
|
7028
|
-
}).catch((
|
|
7029
|
-
H.error(
|
|
7028
|
+
}).catch((_e) => {
|
|
7029
|
+
H.error(_e);
|
|
7030
7030
|
});
|
|
7031
|
-
}, H.onCancel = (
|
|
7032
|
-
oe.cancel(
|
|
7031
|
+
}, H.onCancel = (_e) => {
|
|
7032
|
+
oe.cancel(_e), H.ready.catch((ke) => {
|
|
7033
7033
|
if (!this.destroyed)
|
|
7034
7034
|
throw ke;
|
|
7035
7035
|
});
|
|
@@ -7088,9 +7088,9 @@ var Kr = cr(function(De, we) {
|
|
|
7088
7088
|
u(this, L).get(G.pageIndex)._startRenderPage(G.transparency, G.cacheKey);
|
|
7089
7089
|
}), V.on("commonobj", (G) => {
|
|
7090
7090
|
var H;
|
|
7091
|
-
let [oe,
|
|
7091
|
+
let [oe, _e, ke] = G;
|
|
7092
7092
|
if (!this.destroyed && !this.commonObjs.has(oe))
|
|
7093
|
-
switch (
|
|
7093
|
+
switch (_e) {
|
|
7094
7094
|
case "Font":
|
|
7095
7095
|
const ce = this._params;
|
|
7096
7096
|
if ("error" in ke) {
|
|
@@ -7122,15 +7122,15 @@ var Kr = cr(function(De, we) {
|
|
|
7122
7122
|
this.commonObjs.resolve(oe, ke);
|
|
7123
7123
|
break;
|
|
7124
7124
|
default:
|
|
7125
|
-
throw new Error(`Got unknown common object type ${
|
|
7125
|
+
throw new Error(`Got unknown common object type ${_e}`);
|
|
7126
7126
|
}
|
|
7127
7127
|
}), V.on("obj", (G) => {
|
|
7128
|
-
let [H, oe,
|
|
7128
|
+
let [H, oe, _e, ke] = G;
|
|
7129
7129
|
if (this.destroyed)
|
|
7130
7130
|
return;
|
|
7131
7131
|
const ce = u(this, L).get(oe);
|
|
7132
7132
|
if (!ce.objs.has(H))
|
|
7133
|
-
switch (
|
|
7133
|
+
switch (_e) {
|
|
7134
7134
|
case "Image":
|
|
7135
7135
|
ce.objs.resolve(H, ke);
|
|
7136
7136
|
const Be = 8e6;
|
|
@@ -7154,7 +7154,7 @@ var Kr = cr(function(De, we) {
|
|
|
7154
7154
|
ce.objs.resolve(H, ke);
|
|
7155
7155
|
break;
|
|
7156
7156
|
default:
|
|
7157
|
-
throw new Error(`Got unknown object type ${
|
|
7157
|
+
throw new Error(`Got unknown object type ${_e}`);
|
|
7158
7158
|
}
|
|
7159
7159
|
}), V.on("DocProgress", (G) => {
|
|
7160
7160
|
var H;
|
|
@@ -7190,8 +7190,8 @@ var Kr = cr(function(De, we) {
|
|
|
7190
7190
|
}).then((oe) => {
|
|
7191
7191
|
if (this.destroyed)
|
|
7192
7192
|
throw new Error("Transport destroyed");
|
|
7193
|
-
const
|
|
7194
|
-
return u(this, L).set(Q,
|
|
7193
|
+
const _e = new C(Q, oe, this, this._params.ownerDocument, this._params.pdfBug);
|
|
7194
|
+
return u(this, L).set(Q, _e), _e;
|
|
7195
7195
|
});
|
|
7196
7196
|
return u(this, X).set(Q, H), H;
|
|
7197
7197
|
}
|
|
@@ -7349,7 +7349,7 @@ var Kr = cr(function(De, we) {
|
|
|
7349
7349
|
});
|
|
7350
7350
|
}
|
|
7351
7351
|
var ve = /* @__PURE__ */ new WeakMap();
|
|
7352
|
-
class
|
|
7352
|
+
class we {
|
|
7353
7353
|
constructor(V) {
|
|
7354
7354
|
F(this, ve, {
|
|
7355
7355
|
writable: !0,
|
|
@@ -7374,15 +7374,15 @@ var Kr = cr(function(De, we) {
|
|
|
7374
7374
|
return V.form || V.canvas && (Q == null ? void 0 : Q.size) > 0;
|
|
7375
7375
|
}
|
|
7376
7376
|
}
|
|
7377
|
-
v.RenderTask =
|
|
7378
|
-
class
|
|
7377
|
+
v.RenderTask = we;
|
|
7378
|
+
class Ee {
|
|
7379
7379
|
constructor(V) {
|
|
7380
7380
|
let {
|
|
7381
7381
|
callback: Q,
|
|
7382
7382
|
params: G,
|
|
7383
7383
|
objs: H,
|
|
7384
7384
|
commonObjs: oe,
|
|
7385
|
-
annotationCanvasMap:
|
|
7385
|
+
annotationCanvasMap: _e,
|
|
7386
7386
|
operatorList: ke,
|
|
7387
7387
|
pageIndex: ce,
|
|
7388
7388
|
canvasFactory: Re,
|
|
@@ -7390,7 +7390,7 @@ var Kr = cr(function(De, we) {
|
|
|
7390
7390
|
pdfBug: ge = !1,
|
|
7391
7391
|
pageColors: te = null
|
|
7392
7392
|
} = V;
|
|
7393
|
-
this.callback = Q, this.params = G, this.objs = H, this.commonObjs = oe, this.annotationCanvasMap =
|
|
7393
|
+
this.callback = Q, this.params = G, this.objs = H, this.commonObjs = oe, this.annotationCanvasMap = _e, this.operatorListIdx = null, this.operatorList = ke, this._pageIndex = ce, this.canvasFactory = Re, this._pdfBug = ge, this.pageColors = te, this.running = !1, this.graphicsReadyCallback = null, this.graphicsReady = !1, this._useRequestAnimationFrame = Be === !0 && typeof window < "u", this.cancelled = !1, this.capability = (0, o.createPromiseCapability)(), this.task = new we(this), this._cancelBound = this.cancel.bind(this), this._continueBound = this._continue.bind(this), this._scheduleNextBound = this._scheduleNext.bind(this), this._nextBound = this._next.bind(this), this._canvas = G.canvasContext.canvas;
|
|
7394
7394
|
}
|
|
7395
7395
|
get completed() {
|
|
7396
7396
|
return this.capability.promise.catch(function() {
|
|
@@ -7405,28 +7405,28 @@ var Kr = cr(function(De, we) {
|
|
|
7405
7405
|
if (this.cancelled)
|
|
7406
7406
|
return;
|
|
7407
7407
|
if (this._canvas) {
|
|
7408
|
-
if (g(
|
|
7408
|
+
if (g(Ee, Ee, Oe).has(this._canvas))
|
|
7409
7409
|
throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");
|
|
7410
|
-
g(
|
|
7410
|
+
g(Ee, Ee, Oe).add(this._canvas);
|
|
7411
7411
|
}
|
|
7412
7412
|
this._pdfBug && (Q = globalThis.StepperManager) !== null && Q !== void 0 && Q.enabled && (this.stepper = globalThis.StepperManager.create(this._pageIndex), this.stepper.init(this.operatorList), this.stepper.nextBreakPoint = this.stepper.getNextBreakPoint());
|
|
7413
7413
|
const {
|
|
7414
7414
|
canvasContext: oe,
|
|
7415
|
-
viewport:
|
|
7415
|
+
viewport: _e,
|
|
7416
7416
|
transform: ke,
|
|
7417
7417
|
imageLayer: ce,
|
|
7418
7418
|
background: Re
|
|
7419
7419
|
} = this.params;
|
|
7420
7420
|
this.gfx = new O.CanvasGraphics(oe, this.commonObjs, this.objs, this.canvasFactory, ce, H, this.annotationCanvasMap, this.pageColors), this.gfx.beginDrawing({
|
|
7421
7421
|
transform: ke,
|
|
7422
|
-
viewport:
|
|
7422
|
+
viewport: _e,
|
|
7423
7423
|
transparency: G,
|
|
7424
7424
|
background: Re
|
|
7425
7425
|
}), this.operatorListIdx = 0, this.graphicsReady = !0, this.graphicsReadyCallback && this.graphicsReadyCallback();
|
|
7426
7426
|
}
|
|
7427
7427
|
cancel() {
|
|
7428
7428
|
let V = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
|
|
7429
|
-
this.running = !1, this.cancelled = !0, this.gfx && this.gfx.endDrawing(), this._canvas && g(
|
|
7429
|
+
this.running = !1, this.cancelled = !0, this.gfx && this.gfx.endDrawing(), this._canvas && g(Ee, Ee, Oe).delete(this._canvas), this.callback(V || new T.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex + 1}`, "canvas"));
|
|
7430
7430
|
}
|
|
7431
7431
|
operatorListChanged() {
|
|
7432
7432
|
if (!this.graphicsReady) {
|
|
@@ -7444,7 +7444,7 @@ var Kr = cr(function(De, we) {
|
|
|
7444
7444
|
}) : Promise.resolve().then(this._nextBound).catch(this._cancelBound);
|
|
7445
7445
|
}
|
|
7446
7446
|
async _next() {
|
|
7447
|
-
this.cancelled || (this.operatorListIdx = this.gfx.executeOperatorList(this.operatorList, this.operatorListIdx, this._continueBound, this.stepper), this.operatorListIdx === this.operatorList.argsArray.length && (this.running = !1, this.operatorList.lastChunk && (this.gfx.endDrawing(), this._canvas && g(
|
|
7447
|
+
this.cancelled || (this.operatorListIdx = this.gfx.executeOperatorList(this.operatorList, this.operatorListIdx, this._continueBound, this.stepper), this.operatorListIdx === this.operatorList.argsArray.length && (this.running = !1, this.operatorList.lastChunk && (this.gfx.endDrawing(), this._canvas && g(Ee, Ee, Oe).delete(this._canvas), this.callback())));
|
|
7448
7448
|
}
|
|
7449
7449
|
}
|
|
7450
7450
|
var Oe = {
|
|
@@ -7844,8 +7844,8 @@ var Kr = cr(function(De, we) {
|
|
|
7844
7844
|
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
7845
7845
|
}
|
|
7846
7846
|
function y(G, H, oe) {
|
|
7847
|
-
var
|
|
7848
|
-
return D(G,
|
|
7847
|
+
var _e = l(G, H, "set");
|
|
7848
|
+
return D(G, _e, oe), oe;
|
|
7849
7849
|
}
|
|
7850
7850
|
function D(G, H, oe) {
|
|
7851
7851
|
if (H.set)
|
|
@@ -7869,8 +7869,8 @@ var Kr = cr(function(De, we) {
|
|
|
7869
7869
|
return H.get ? H.get.call(G) : H.value;
|
|
7870
7870
|
}
|
|
7871
7871
|
function h(G, H, oe) {
|
|
7872
|
-
for (const
|
|
7873
|
-
H.addEventListener(
|
|
7872
|
+
for (const _e of oe)
|
|
7873
|
+
H.addEventListener(_e, G[_e].bind(G));
|
|
7874
7874
|
}
|
|
7875
7875
|
function w(G) {
|
|
7876
7876
|
return Math.round(Math.min(255, Math.max(1, 255 * G))).toString(16).padStart(2, "0");
|
|
@@ -7909,7 +7909,7 @@ var Kr = cr(function(De, we) {
|
|
|
7909
7909
|
add(H) {
|
|
7910
7910
|
let {
|
|
7911
7911
|
cmd: oe,
|
|
7912
|
-
undo:
|
|
7912
|
+
undo: _e,
|
|
7913
7913
|
mustExec: ke,
|
|
7914
7914
|
type: ce = NaN,
|
|
7915
7915
|
overwriteIfSameType: Re = !1,
|
|
@@ -7919,7 +7919,7 @@ var Kr = cr(function(De, we) {
|
|
|
7919
7919
|
return;
|
|
7920
7920
|
const ge = {
|
|
7921
7921
|
cmd: oe,
|
|
7922
|
-
undo:
|
|
7922
|
+
undo: _e,
|
|
7923
7923
|
type: ce
|
|
7924
7924
|
};
|
|
7925
7925
|
if (r(this, a) === -1) {
|
|
@@ -7955,8 +7955,8 @@ var Kr = cr(function(De, we) {
|
|
|
7955
7955
|
constructor(H) {
|
|
7956
7956
|
R(this, g), this.buffer = [], this.callbacks = /* @__PURE__ */ new Map(), this.allKeys = /* @__PURE__ */ new Set();
|
|
7957
7957
|
const oe = E.platform.isMac;
|
|
7958
|
-
for (const [
|
|
7959
|
-
for (const ce of
|
|
7958
|
+
for (const [_e, ke] of H)
|
|
7959
|
+
for (const ce of _e) {
|
|
7960
7960
|
const Re = ce.startsWith("mac+");
|
|
7961
7961
|
oe && Re ? (this.callbacks.set(ce.slice(4), ke), this.allKeys.add(ce.split("+").at(-1))) : !oe && !Re && (this.callbacks.set(ce, ke), this.allKeys.add(ce.split("+").at(-1)));
|
|
7962
7962
|
}
|
|
@@ -7971,8 +7971,8 @@ var Kr = cr(function(De, we) {
|
|
|
7971
7971
|
exec(H, oe) {
|
|
7972
7972
|
if (!this.allKeys.has(oe.key))
|
|
7973
7973
|
return;
|
|
7974
|
-
const
|
|
7975
|
-
!
|
|
7974
|
+
const _e = this.callbacks.get(O(this, g, W).call(this, oe));
|
|
7975
|
+
!_e || (_e.bind(H)(), oe.stopPropagation(), oe.preventDefault());
|
|
7976
7976
|
}
|
|
7977
7977
|
}
|
|
7978
7978
|
v.KeyboardManager = E;
|
|
@@ -8011,9 +8011,9 @@ var Kr = cr(function(De, we) {
|
|
|
8011
8011
|
const oe = (0, c.getRGB)(H);
|
|
8012
8012
|
if (!window.matchMedia("(forced-colors: active)").matches)
|
|
8013
8013
|
return oe;
|
|
8014
|
-
for (const [
|
|
8014
|
+
for (const [_e, ke] of this._colors)
|
|
8015
8015
|
if (ke.every((ce, Re) => ce === oe[Re]))
|
|
8016
|
-
return q._colorsMapping.get(
|
|
8016
|
+
return q._colorsMapping.get(_e);
|
|
8017
8017
|
return oe;
|
|
8018
8018
|
}
|
|
8019
8019
|
getHexCode(H) {
|
|
@@ -8086,7 +8086,7 @@ var Kr = cr(function(De, we) {
|
|
|
8086
8086
|
}), y(this, d, H), y(this, de, oe), r(this, de)._on("editingaction", r(this, N)), r(this, de)._on("pagechanging", r(this, j));
|
|
8087
8087
|
}
|
|
8088
8088
|
destroy() {
|
|
8089
|
-
O(this, M,
|
|
8089
|
+
O(this, M, we).call(this), r(this, de)._off("editingaction", r(this, N)), r(this, de)._off("pagechanging", r(this, j));
|
|
8090
8090
|
for (const H of r(this, z).values())
|
|
8091
8091
|
H.destroy();
|
|
8092
8092
|
r(this, z).clear(), r(this, Z).clear(), y(this, re, null), r(this, C).clear(), r(this, $).destroy(), r(this, U).destroy();
|
|
@@ -8108,14 +8108,14 @@ var Kr = cr(function(De, we) {
|
|
|
8108
8108
|
["undo", "redo", "cut", "copy", "paste", "delete", "selectAll"].includes(H.name) && this[H.name]();
|
|
8109
8109
|
}
|
|
8110
8110
|
setEditingState(H) {
|
|
8111
|
-
H ? (O(this, _, ve).call(this), O(this, L,
|
|
8111
|
+
H ? (O(this, _, ve).call(this), O(this, L, Ee).call(this, {
|
|
8112
8112
|
isEditing: r(this, Y) !== o.AnnotationEditorType.NONE,
|
|
8113
8113
|
isEmpty: O(this, he, V).call(this),
|
|
8114
8114
|
hasSomethingToUndo: r(this, U).hasSomethingToUndo(),
|
|
8115
8115
|
hasSomethingToRedo: r(this, U).hasSomethingToRedo(),
|
|
8116
8116
|
hasSelectedEditor: !1,
|
|
8117
8117
|
hasEmptyClipboard: r(this, $).isEmpty()
|
|
8118
|
-
})) : (O(this, M,
|
|
8118
|
+
})) : (O(this, M, we).call(this), O(this, L, Ee).call(this, {
|
|
8119
8119
|
isEditing: !1
|
|
8120
8120
|
}));
|
|
8121
8121
|
}
|
|
@@ -8149,15 +8149,15 @@ var Kr = cr(function(De, we) {
|
|
|
8149
8149
|
});
|
|
8150
8150
|
}
|
|
8151
8151
|
updateParams(H, oe) {
|
|
8152
|
-
for (const
|
|
8153
|
-
|
|
8154
|
-
for (const
|
|
8155
|
-
|
|
8152
|
+
for (const _e of r(this, C))
|
|
8153
|
+
_e.updateParams(H, oe);
|
|
8154
|
+
for (const _e of r(this, ee))
|
|
8155
|
+
_e.updateDefaultParams(H, oe);
|
|
8156
8156
|
}
|
|
8157
8157
|
getEditors(H) {
|
|
8158
8158
|
const oe = [];
|
|
8159
|
-
for (const
|
|
8160
|
-
|
|
8159
|
+
for (const _e of r(this, Z).values())
|
|
8160
|
+
_e.pageIndex === H && oe.push(_e);
|
|
8161
8161
|
return oe;
|
|
8162
8162
|
}
|
|
8163
8163
|
getEditor(H) {
|
|
@@ -8174,19 +8174,19 @@ var Kr = cr(function(De, we) {
|
|
|
8174
8174
|
}
|
|
8175
8175
|
toggleSelected(H) {
|
|
8176
8176
|
if (r(this, C).has(H)) {
|
|
8177
|
-
r(this, C).delete(H), H.unselect(), O(this, L,
|
|
8177
|
+
r(this, C).delete(H), H.unselect(), O(this, L, Ee).call(this, {
|
|
8178
8178
|
hasSelectedEditor: this.hasSelection
|
|
8179
8179
|
});
|
|
8180
8180
|
return;
|
|
8181
8181
|
}
|
|
8182
|
-
r(this, C).add(H), H.select(), O(this, X, Oe).call(this, H.propertiesToUpdate), O(this, L,
|
|
8182
|
+
r(this, C).add(H), H.select(), O(this, X, Oe).call(this, H.propertiesToUpdate), O(this, L, Ee).call(this, {
|
|
8183
8183
|
hasSelectedEditor: !0
|
|
8184
8184
|
});
|
|
8185
8185
|
}
|
|
8186
8186
|
setSelected(H) {
|
|
8187
8187
|
for (const oe of r(this, C))
|
|
8188
8188
|
oe !== H && oe.unselect();
|
|
8189
|
-
r(this, C).clear(), r(this, C).add(H), H.select(), O(this, X, Oe).call(this, H.propertiesToUpdate), O(this, L,
|
|
8189
|
+
r(this, C).clear(), r(this, C).add(H), H.select(), O(this, X, Oe).call(this, H.propertiesToUpdate), O(this, L, Ee).call(this, {
|
|
8190
8190
|
hasSelectedEditor: !0
|
|
8191
8191
|
});
|
|
8192
8192
|
}
|
|
@@ -8194,7 +8194,7 @@ var Kr = cr(function(De, we) {
|
|
|
8194
8194
|
return r(this, C).has(H);
|
|
8195
8195
|
}
|
|
8196
8196
|
unselect(H) {
|
|
8197
|
-
H.unselect(), r(this, C).delete(H), O(this, L,
|
|
8197
|
+
H.unselect(), r(this, C).delete(H), O(this, L, Ee).call(this, {
|
|
8198
8198
|
hasSelectedEditor: this.hasSelection
|
|
8199
8199
|
});
|
|
8200
8200
|
}
|
|
@@ -8202,21 +8202,21 @@ var Kr = cr(function(De, we) {
|
|
|
8202
8202
|
return r(this, C).size !== 0;
|
|
8203
8203
|
}
|
|
8204
8204
|
undo() {
|
|
8205
|
-
r(this, U).undo(), O(this, L,
|
|
8205
|
+
r(this, U).undo(), O(this, L, Ee).call(this, {
|
|
8206
8206
|
hasSomethingToUndo: r(this, U).hasSomethingToUndo(),
|
|
8207
8207
|
hasSomethingToRedo: !0,
|
|
8208
8208
|
isEmpty: O(this, he, V).call(this)
|
|
8209
8209
|
});
|
|
8210
8210
|
}
|
|
8211
8211
|
redo() {
|
|
8212
|
-
r(this, U).redo(), O(this, L,
|
|
8212
|
+
r(this, U).redo(), O(this, L, Ee).call(this, {
|
|
8213
8213
|
hasSomethingToUndo: !0,
|
|
8214
8214
|
hasSomethingToRedo: r(this, U).hasSomethingToRedo(),
|
|
8215
8215
|
isEmpty: O(this, he, V).call(this)
|
|
8216
8216
|
});
|
|
8217
8217
|
}
|
|
8218
8218
|
addCommands(H) {
|
|
8219
|
-
r(this, U).add(H), O(this, L,
|
|
8219
|
+
r(this, U).add(H), O(this, L, Ee).call(this, {
|
|
8220
8220
|
hasSomethingToUndo: !0,
|
|
8221
8221
|
hasSomethingToRedo: !1,
|
|
8222
8222
|
isEmpty: O(this, he, V).call(this)
|
|
@@ -8228,13 +8228,13 @@ var Kr = cr(function(De, we) {
|
|
|
8228
8228
|
const H = [...r(this, C)], oe = () => {
|
|
8229
8229
|
for (const ke of H)
|
|
8230
8230
|
ke.remove();
|
|
8231
|
-
},
|
|
8231
|
+
}, _e = () => {
|
|
8232
8232
|
for (const ke of H)
|
|
8233
8233
|
O(this, se, Pe).call(this, ke);
|
|
8234
8234
|
};
|
|
8235
8235
|
this.addCommands({
|
|
8236
8236
|
cmd: oe,
|
|
8237
|
-
undo:
|
|
8237
|
+
undo: _e,
|
|
8238
8238
|
mustExec: !0
|
|
8239
8239
|
});
|
|
8240
8240
|
}
|
|
@@ -8245,7 +8245,7 @@ var Kr = cr(function(De, we) {
|
|
|
8245
8245
|
oe.isEmpty() || H.push(oe);
|
|
8246
8246
|
if (H.length === 0)
|
|
8247
8247
|
return;
|
|
8248
|
-
r(this, $).copy(H), O(this, L,
|
|
8248
|
+
r(this, $).copy(H), O(this, L, Ee).call(this, {
|
|
8249
8249
|
hasEmptyClipboard: !1
|
|
8250
8250
|
});
|
|
8251
8251
|
}
|
|
@@ -8257,7 +8257,7 @@ var Kr = cr(function(De, we) {
|
|
|
8257
8257
|
if (r(this, $).isEmpty())
|
|
8258
8258
|
return;
|
|
8259
8259
|
this.unselectAll();
|
|
8260
|
-
const H = r(this, z).get(r(this, I)), oe = r(this, $).paste().map((ce) => H.deserialize(ce)),
|
|
8260
|
+
const H = r(this, z).get(r(this, I)), oe = r(this, $).paste().map((ce) => H.deserialize(ce)), _e = () => {
|
|
8261
8261
|
for (const ce of oe)
|
|
8262
8262
|
O(this, se, Pe).call(this, ce);
|
|
8263
8263
|
O(this, le, Q).call(this, oe);
|
|
@@ -8266,7 +8266,7 @@ var Kr = cr(function(De, we) {
|
|
|
8266
8266
|
ce.remove();
|
|
8267
8267
|
};
|
|
8268
8268
|
this.addCommands({
|
|
8269
|
-
cmd:
|
|
8269
|
+
cmd: _e,
|
|
8270
8270
|
undo: ke,
|
|
8271
8271
|
mustExec: !0
|
|
8272
8272
|
});
|
|
@@ -8284,7 +8284,7 @@ var Kr = cr(function(De, we) {
|
|
|
8284
8284
|
if (O(this, le, Q).size !== 0) {
|
|
8285
8285
|
for (const H of r(this, C))
|
|
8286
8286
|
H.unselect();
|
|
8287
|
-
r(this, C).clear(), O(this, L,
|
|
8287
|
+
r(this, C).clear(), O(this, L, Ee).call(this, {
|
|
8288
8288
|
hasSelectedEditor: !1
|
|
8289
8289
|
});
|
|
8290
8290
|
}
|
|
@@ -8303,13 +8303,13 @@ var Kr = cr(function(De, we) {
|
|
|
8303
8303
|
function ve() {
|
|
8304
8304
|
r(this, d).addEventListener("keydown", r(this, S));
|
|
8305
8305
|
}
|
|
8306
|
-
function
|
|
8306
|
+
function we() {
|
|
8307
8307
|
r(this, d).removeEventListener("keydown", r(this, S));
|
|
8308
8308
|
}
|
|
8309
|
-
function
|
|
8309
|
+
function Ee(G) {
|
|
8310
8310
|
Object.entries(G).some((oe) => {
|
|
8311
|
-
let [
|
|
8312
|
-
return r(this, s)[
|
|
8311
|
+
let [_e, ke] = oe;
|
|
8312
|
+
return r(this, s)[_e] !== ke;
|
|
8313
8313
|
}) && r(this, de).dispatch("annotationeditorstateschanged", {
|
|
8314
8314
|
source: this,
|
|
8315
8315
|
details: Object.assign(r(this, s), G)
|
|
@@ -8351,7 +8351,7 @@ var Kr = cr(function(De, we) {
|
|
|
8351
8351
|
r(this, C).clear();
|
|
8352
8352
|
for (const H of G)
|
|
8353
8353
|
H.isEmpty() || (r(this, C).add(H), H.select());
|
|
8354
|
-
O(this, L,
|
|
8354
|
+
O(this, L, Ee).call(this, {
|
|
8355
8355
|
hasSelectedEditor: !0
|
|
8356
8356
|
});
|
|
8357
8357
|
}
|
|
@@ -9117,12 +9117,12 @@ var Kr = cr(function(De, we) {
|
|
|
9117
9117
|
function u(Y, C, S, N, j, s, d, _, M, L) {
|
|
9118
9118
|
const [X, J, ie, se, he, le] = (0, o.getCurrentTransform)(Y);
|
|
9119
9119
|
if (J === 0 && ie === 0) {
|
|
9120
|
-
const
|
|
9121
|
-
return Y.setTransform(Math.sign(X), 0, 0, Math.sign(se),
|
|
9120
|
+
const we = d * X + he, Ee = Math.round(we), Oe = _ * se + le, ze = Math.round(Oe), Fe = (d + M) * X + he, Pe = Math.abs(Math.round(Fe) - Ee) || 1, V = (_ + L) * se + le, Q = Math.abs(Math.round(V) - ze) || 1;
|
|
9121
|
+
return Y.setTransform(Math.sign(X), 0, 0, Math.sign(se), Ee, ze), Y.drawImage(C, S, N, j, s, 0, 0, Pe, Q), Y.setTransform(X, J, ie, se, he, le), [Pe, Q];
|
|
9122
9122
|
}
|
|
9123
9123
|
if (X === 0 && se === 0) {
|
|
9124
|
-
const
|
|
9125
|
-
return Y.setTransform(0, Math.sign(J), Math.sign(ie), 0,
|
|
9124
|
+
const we = _ * ie + he, Ee = Math.round(we), Oe = d * J + le, ze = Math.round(Oe), Fe = (_ + L) * ie + he, Pe = Math.abs(Math.round(Fe) - Ee) || 1, V = (d + M) * J + le, Q = Math.abs(Math.round(V) - ze) || 1;
|
|
9125
|
+
return Y.setTransform(0, Math.sign(J), Math.sign(ie), 0, Ee, ze), Y.drawImage(C, S, N, j, s, 0, 0, Q, Pe), Y.setTransform(X, J, ie, se, he, le), [Q, Pe];
|
|
9126
9126
|
}
|
|
9127
9127
|
Y.drawImage(C, S, N, j, s, d, _, M, L);
|
|
9128
9128
|
const fe = Math.hypot(X, J), ve = Math.hypot(ie, se);
|
|
@@ -9140,9 +9140,9 @@ var Kr = cr(function(De, we) {
|
|
|
9140
9140
|
const X = C + 7 & -8;
|
|
9141
9141
|
let J = new Uint8Array(X * S), ie = 0;
|
|
9142
9142
|
for (const ve of Y.data) {
|
|
9143
|
-
let
|
|
9144
|
-
for (;
|
|
9145
|
-
J[ie++] = ve &
|
|
9143
|
+
let we = 128;
|
|
9144
|
+
for (; we > 0; )
|
|
9145
|
+
J[ie++] = ve & we ? 0 : 255, we >>= 1;
|
|
9146
9146
|
}
|
|
9147
9147
|
let se = 0;
|
|
9148
9148
|
for (ie = 0, J[ie] !== 0 && (d[0] = 1, ++se), M = 1; M < C; M++)
|
|
@@ -9162,13 +9162,13 @@ var Kr = cr(function(De, we) {
|
|
|
9162
9162
|
const he = new Int32Array([0, s, -1, 0, -s, 0, 0, 0, 1]), le = new Path2D();
|
|
9163
9163
|
for (_ = 0; se && _ <= S; _++) {
|
|
9164
9164
|
let ve = _ * s;
|
|
9165
|
-
const
|
|
9166
|
-
for (; ve <
|
|
9165
|
+
const we = ve + C;
|
|
9166
|
+
for (; ve < we && !d[ve]; )
|
|
9167
9167
|
ve++;
|
|
9168
|
-
if (ve ===
|
|
9168
|
+
if (ve === we)
|
|
9169
9169
|
continue;
|
|
9170
9170
|
le.moveTo(ve % s, _);
|
|
9171
|
-
const
|
|
9171
|
+
const Ee = ve;
|
|
9172
9172
|
let Oe = d[ve];
|
|
9173
9173
|
do {
|
|
9174
9174
|
const ze = he[Oe];
|
|
@@ -9177,7 +9177,7 @@ var Kr = cr(function(De, we) {
|
|
|
9177
9177
|
while (!d[ve]);
|
|
9178
9178
|
const Fe = d[ve];
|
|
9179
9179
|
Fe !== 5 && Fe !== 10 ? (Oe = Fe, d[ve] = 0) : (Oe = Fe & 51 * Oe >> 4, d[ve] &= Oe >> 2 | Oe << 2), le.lineTo(ve % s, ve / s | 0), d[ve] || --se;
|
|
9180
|
-
} while (
|
|
9180
|
+
} while (Ee !== ve);
|
|
9181
9181
|
--_;
|
|
9182
9182
|
}
|
|
9183
9183
|
return J = null, d = null, function(ve) {
|
|
@@ -9247,14 +9247,14 @@ var Kr = cr(function(De, we) {
|
|
|
9247
9247
|
const N = C.height, j = C.width, s = N % F, d = (N - s) / F, _ = s === 0 ? d : d + 1, M = Y.createImageData(j, F);
|
|
9248
9248
|
let L = 0, X;
|
|
9249
9249
|
const J = C.data, ie = M.data;
|
|
9250
|
-
let se, he, le, fe, ve,
|
|
9250
|
+
let se, he, le, fe, ve, we, Ee, Oe;
|
|
9251
9251
|
if (S)
|
|
9252
9252
|
switch (S.length) {
|
|
9253
9253
|
case 1:
|
|
9254
|
-
ve = S[0],
|
|
9254
|
+
ve = S[0], we = S[0], Ee = S[0], Oe = S[0];
|
|
9255
9255
|
break;
|
|
9256
9256
|
case 4:
|
|
9257
|
-
ve = S[0],
|
|
9257
|
+
ve = S[0], we = S[1], Ee = S[2], Oe = S[3];
|
|
9258
9258
|
break;
|
|
9259
9259
|
}
|
|
9260
9260
|
if (C.kind === c.ImageKind.GRAYSCALE_1BPP) {
|
|
@@ -9264,11 +9264,11 @@ var Kr = cr(function(De, we) {
|
|
|
9264
9264
|
for (le = se < d ? F : s, X = 0, he = 0; he < le; he++) {
|
|
9265
9265
|
const H = ze - L;
|
|
9266
9266
|
let oe = 0;
|
|
9267
|
-
const
|
|
9267
|
+
const _e = H > V ? j : H * 8 - 7, ke = _e & -8;
|
|
9268
9268
|
let ce = 0, Re = 0;
|
|
9269
9269
|
for (; oe < ke; oe += 8)
|
|
9270
9270
|
Re = J[L++], Fe[X++] = Re & 128 ? Q : G, Fe[X++] = Re & 64 ? Q : G, Fe[X++] = Re & 32 ? Q : G, Fe[X++] = Re & 16 ? Q : G, Fe[X++] = Re & 8 ? Q : G, Fe[X++] = Re & 4 ? Q : G, Fe[X++] = Re & 2 ? Q : G, Fe[X++] = Re & 1 ? Q : G;
|
|
9271
|
-
for (; oe <
|
|
9271
|
+
for (; oe < _e; oe++)
|
|
9272
9272
|
ce === 0 && (Re = J[L++], ce = 128), Fe[X++] = Re & ce ? Q : G, ce >>= 1;
|
|
9273
9273
|
}
|
|
9274
9274
|
for (; X < Pe; )
|
|
@@ -9276,27 +9276,27 @@ var Kr = cr(function(De, we) {
|
|
|
9276
9276
|
Y.putImageData(M, 0, se * F);
|
|
9277
9277
|
}
|
|
9278
9278
|
} else if (C.kind === c.ImageKind.RGBA_32BPP) {
|
|
9279
|
-
const ze = !!(ve ||
|
|
9279
|
+
const ze = !!(ve || we || Ee);
|
|
9280
9280
|
for (he = 0, fe = j * F * 4, se = 0; se < d; se++) {
|
|
9281
9281
|
if (ie.set(J.subarray(L, L + fe)), L += fe, ze)
|
|
9282
9282
|
for (let Fe = 0; Fe < fe; Fe += 4)
|
|
9283
|
-
ve && (ie[Fe + 0] = ve[ie[Fe + 0]]),
|
|
9283
|
+
ve && (ie[Fe + 0] = ve[ie[Fe + 0]]), we && (ie[Fe + 1] = we[ie[Fe + 1]]), Ee && (ie[Fe + 2] = Ee[ie[Fe + 2]]);
|
|
9284
9284
|
Y.putImageData(M, 0, he), he += F;
|
|
9285
9285
|
}
|
|
9286
9286
|
if (se < _) {
|
|
9287
9287
|
if (fe = j * s * 4, ie.set(J.subarray(L, L + fe)), ze)
|
|
9288
9288
|
for (let Fe = 0; Fe < fe; Fe += 4)
|
|
9289
|
-
ve && (ie[Fe + 0] = ve[ie[Fe + 0]]),
|
|
9289
|
+
ve && (ie[Fe + 0] = ve[ie[Fe + 0]]), we && (ie[Fe + 1] = we[ie[Fe + 1]]), Ee && (ie[Fe + 2] = Ee[ie[Fe + 2]]);
|
|
9290
9290
|
Y.putImageData(M, 0, he);
|
|
9291
9291
|
}
|
|
9292
9292
|
} else if (C.kind === c.ImageKind.RGB_24BPP) {
|
|
9293
|
-
const ze = !!(ve ||
|
|
9293
|
+
const ze = !!(ve || we || Ee);
|
|
9294
9294
|
for (le = F, fe = j * le, se = 0; se < _; se++) {
|
|
9295
9295
|
for (se >= d && (le = s, fe = j * le), X = 0, he = fe; he--; )
|
|
9296
9296
|
ie[X++] = J[L++], ie[X++] = J[L++], ie[X++] = J[L++], ie[X++] = 255;
|
|
9297
9297
|
if (ze)
|
|
9298
9298
|
for (let Fe = 0; Fe < X; Fe += 4)
|
|
9299
|
-
ve && (ie[Fe + 0] = ve[ie[Fe + 0]]),
|
|
9299
|
+
ve && (ie[Fe + 0] = ve[ie[Fe + 0]]), we && (ie[Fe + 1] = we[ie[Fe + 1]]), Ee && (ie[Fe + 2] = Ee[ie[Fe + 2]]);
|
|
9300
9300
|
Y.putImageData(M, 0, se * F);
|
|
9301
9301
|
}
|
|
9302
9302
|
} else
|
|
@@ -9365,9 +9365,9 @@ var Kr = cr(function(De, we) {
|
|
|
9365
9365
|
let le;
|
|
9366
9366
|
j === "Luminosity" ? le = q : le = ne;
|
|
9367
9367
|
const ve = Math.min(N, Math.ceil(1048576 / S));
|
|
9368
|
-
for (let
|
|
9369
|
-
const
|
|
9370
|
-
J && k(Oe.data, ie, se, he), le(Oe.data, ze.data, d), C.putImageData(ze, _,
|
|
9368
|
+
for (let we = 0; we < N; we += ve) {
|
|
9369
|
+
const Ee = Math.min(ve, N - we), Oe = Y.getImageData(_ - L, we + (M - X), S, Ee), ze = C.getImageData(_, we + M, S, Ee);
|
|
9370
|
+
J && k(Oe.data, ie, se, he), le(Oe.data, ze.data, d), C.putImageData(ze, _, we + M);
|
|
9371
9371
|
}
|
|
9372
9372
|
}
|
|
9373
9373
|
function Z(Y, C, S, N) {
|
|
@@ -9407,9 +9407,9 @@ var Kr = cr(function(De, we) {
|
|
|
9407
9407
|
if (this.ctx.fillStyle = M, ie = this.ctx.fillStyle, J = typeof ie == "string" && /^#[0-9A-Fa-f]{6}$/.test(ie), L === "#000000" && X === "#ffffff" || L === X || !J)
|
|
9408
9408
|
this.foregroundColor = this.backgroundColor = null;
|
|
9409
9409
|
else {
|
|
9410
|
-
const [se, he, le] = (0, o.getRGB)(ie), fe = (
|
|
9411
|
-
this.selectColor = (
|
|
9412
|
-
const ze = 0.2126 * fe(
|
|
9410
|
+
const [se, he, le] = (0, o.getRGB)(ie), fe = (we) => (we /= 255, we <= 0.03928 ? we / 12.92 : ((we + 0.055) / 1.055) ** 2.4), ve = Math.round(0.2126 * fe(se) + 0.7152 * fe(he) + 0.0722 * fe(le));
|
|
9411
|
+
this.selectColor = (we, Ee, Oe) => {
|
|
9412
|
+
const ze = 0.2126 * fe(we) + 0.7152 * fe(Ee) + 0.0722 * fe(Oe);
|
|
9413
9413
|
return Math.round(ze) === ve ? X : L;
|
|
9414
9414
|
};
|
|
9415
9415
|
}
|
|
@@ -9495,11 +9495,11 @@ var Kr = cr(function(De, we) {
|
|
|
9495
9495
|
X || (J = this.cachedCanvases.getCanvas("maskCanvas", N, j), g(J.context, C));
|
|
9496
9496
|
let ie = c.Util.transform(_, [1 / N, 0, 0, -1 / j, 0, 0]);
|
|
9497
9497
|
ie = c.Util.transform(ie, [1, 0, 0, 1, 0, -j]);
|
|
9498
|
-
const se = c.Util.applyTransform([0, 0], ie), he = c.Util.applyTransform([N, j], ie), le = c.Util.normalizeRect([se[0], se[1], he[0], he[1]]), fe = Math.round(le[2] - le[0]) || 1, ve = Math.round(le[3] - le[1]) || 1,
|
|
9499
|
-
|
|
9500
|
-
const Fe = c.Util.transform((0, o.getCurrentTransformInverse)(
|
|
9501
|
-
return
|
|
9502
|
-
canvas:
|
|
9498
|
+
const se = c.Util.applyTransform([0, 0], ie), he = c.Util.applyTransform([N, j], ie), le = c.Util.normalizeRect([se[0], se[1], he[0], he[1]]), fe = Math.round(le[2] - le[0]) || 1, ve = Math.round(le[3] - le[1]) || 1, we = this.cachedCanvases.getCanvas("fillCanvas", fe, ve), Ee = we.context, Oe = Math.min(se[0], he[0]), ze = Math.min(se[1], he[1]);
|
|
9499
|
+
Ee.translate(-Oe, -ze), Ee.transform(...ie), X || (X = this._scaleImage(J.canvas, (0, o.getCurrentTransformInverse)(Ee)), X = X.img, M && d && M.set(L, X)), Ee.imageSmoothingEnabled = z((0, o.getCurrentTransform)(Ee), C.interpolate), u(Ee, X, 0, 0, X.width, X.height, 0, 0, N, j), Ee.globalCompositeOperation = "source-in";
|
|
9500
|
+
const Fe = c.Util.transform((0, o.getCurrentTransformInverse)(Ee), [1, 0, 0, 1, -Oe, -ze]);
|
|
9501
|
+
return Ee.fillStyle = d ? s.getPattern(S, this, Fe, T.PathType.FILL) : s, Ee.fillRect(0, 0, N, j), M && !d && (this.cachedCanvases.delete("fillCanvas"), M.set(L, we.canvas)), {
|
|
9502
|
+
canvas: we.canvas,
|
|
9503
9503
|
offsetX: Math.round(Oe),
|
|
9504
9504
|
offsetY: Math.round(ze)
|
|
9505
9505
|
};
|
|
@@ -9615,8 +9615,8 @@ var Kr = cr(function(De, we) {
|
|
|
9615
9615
|
switch (C[se] | 0) {
|
|
9616
9616
|
case c.OPS.rectangle:
|
|
9617
9617
|
d = S[he++], _ = S[he++];
|
|
9618
|
-
const fe = S[he++], ve = S[he++],
|
|
9619
|
-
j.moveTo(d, _), fe === 0 || ve === 0 ? j.lineTo(
|
|
9618
|
+
const fe = S[he++], ve = S[he++], we = d + fe, Ee = _ + ve;
|
|
9619
|
+
j.moveTo(d, _), fe === 0 || ve === 0 ? j.lineTo(we, Ee) : (j.lineTo(we, _), j.lineTo(we, Ee), j.lineTo(d, Ee)), J || s.updateRectMinMax(X, [d, _, we, Ee]), j.closePath();
|
|
9620
9620
|
break;
|
|
9621
9621
|
case c.OPS.moveTo:
|
|
9622
9622
|
d = S[he++], _ = S[he++], j.moveTo(d, _), J || s.updatePathMinMax(X, d, _);
|
|
@@ -9779,14 +9779,14 @@ var Kr = cr(function(De, we) {
|
|
|
9779
9779
|
const Fe = S.fillColor.getPattern(s, this, (0, o.getCurrentTransformInverse)(s), T.PathType.FILL);
|
|
9780
9780
|
ve = (0, o.getCurrentTransform)(s), s.restore(), s.fillStyle = Fe;
|
|
9781
9781
|
}
|
|
9782
|
-
let
|
|
9783
|
-
const
|
|
9784
|
-
if (
|
|
9782
|
+
let we = S.lineWidth;
|
|
9783
|
+
const Ee = S.textMatrixScale;
|
|
9784
|
+
if (Ee === 0 || we === 0) {
|
|
9785
9785
|
const Fe = S.textRenderingMode & c.TextRenderingMode.FILL_STROKE_MASK;
|
|
9786
|
-
(Fe === c.TextRenderingMode.STROKE || Fe === c.TextRenderingMode.FILL_STROKE) && (
|
|
9786
|
+
(Fe === c.TextRenderingMode.STROKE || Fe === c.TextRenderingMode.FILL_STROKE) && (we = this.getSinglePixelWidth());
|
|
9787
9787
|
} else
|
|
9788
|
-
|
|
9789
|
-
d !== 1 && (s.scale(d, d),
|
|
9788
|
+
we /= Ee;
|
|
9789
|
+
d !== 1 && (s.scale(d, d), we /= d), s.lineWidth = we;
|
|
9790
9790
|
let Oe = 0, ze;
|
|
9791
9791
|
for (ze = 0; ze < J; ++ze) {
|
|
9792
9792
|
const Fe = C[ze];
|
|
@@ -9796,19 +9796,19 @@ var Kr = cr(function(De, we) {
|
|
|
9796
9796
|
}
|
|
9797
9797
|
let Pe = !1;
|
|
9798
9798
|
const V = (Fe.isSpace ? M : 0) + _, Q = Fe.fontChar, G = Fe.accent;
|
|
9799
|
-
let H, oe,
|
|
9799
|
+
let H, oe, _e = Fe.width;
|
|
9800
9800
|
if (ie) {
|
|
9801
|
-
const ce = Fe.vmetric || he, Re = -(Fe.vmetric ? ce[1] :
|
|
9802
|
-
|
|
9801
|
+
const ce = Fe.vmetric || he, Re = -(Fe.vmetric ? ce[1] : _e * 0.5) * le, Be = ce[2] * le;
|
|
9802
|
+
_e = ce ? -ce[0] : _e, H = Re / d, oe = (Oe + Be) / d;
|
|
9803
9803
|
} else
|
|
9804
9804
|
H = Oe / d, oe = 0;
|
|
9805
|
-
if (N.remeasure &&
|
|
9805
|
+
if (N.remeasure && _e > 0) {
|
|
9806
9806
|
const ce = s.measureText(Q).width * 1e3 / j * d;
|
|
9807
|
-
if (
|
|
9808
|
-
const Re =
|
|
9807
|
+
if (_e < ce && this.isFontSubpixelAAEnabled) {
|
|
9808
|
+
const Re = _e / ce;
|
|
9809
9809
|
Pe = !0, s.save(), s.scale(Re, 1), H /= Re;
|
|
9810
9810
|
} else
|
|
9811
|
-
|
|
9811
|
+
_e !== ce && (H += (_e - ce) / 2e3 * j / d);
|
|
9812
9812
|
}
|
|
9813
9813
|
if (this.contentVisible && (Fe.isInFont || N.missingFile)) {
|
|
9814
9814
|
if (fe && !G)
|
|
@@ -9819,7 +9819,7 @@ var Kr = cr(function(De, we) {
|
|
|
9819
9819
|
}
|
|
9820
9820
|
}
|
|
9821
9821
|
let ke;
|
|
9822
|
-
ie ? ke =
|
|
9822
|
+
ie ? ke = _e * le - V * L : ke = _e * le + V * L, Oe += ke, Pe && s.restore();
|
|
9823
9823
|
}
|
|
9824
9824
|
ie ? S.y -= Oe : S.x += Oe * X, s.restore(), this.compose();
|
|
9825
9825
|
}
|
|
@@ -9832,12 +9832,12 @@ var Kr = cr(function(De, we) {
|
|
|
9832
9832
|
ve = _ * le * s / 1e3, this.ctx.translate(ve, 0), N.x += ve * X;
|
|
9833
9833
|
continue;
|
|
9834
9834
|
}
|
|
9835
|
-
const
|
|
9836
|
-
if (!
|
|
9835
|
+
const we = (le.isSpace ? L : 0) + M, Ee = j.charProcOperatorList[le.operatorListId];
|
|
9836
|
+
if (!Ee) {
|
|
9837
9837
|
(0, c.warn)(`Type3 character "${le.operatorListId}" is not available.`);
|
|
9838
9838
|
continue;
|
|
9839
9839
|
}
|
|
9840
|
-
this.contentVisible && (this.processingType3 = le, this.save(), S.scale(s, s), S.transform(...J), this.executeOperatorList(
|
|
9840
|
+
this.contentVisible && (this.processingType3 = le, this.save(), S.scale(s, s), S.transform(...J), this.executeOperatorList(Ee), this.restore()), fe = c.Util.applyTransform([le.width, 0], J)[0] * s + we, S.translate(fe, 0), N.x += fe * X;
|
|
9841
9841
|
}
|
|
9842
9842
|
S.restore(), this.processingType3 = null;
|
|
9843
9843
|
}
|
|
@@ -10272,10 +10272,10 @@ var Kr = cr(function(De, we) {
|
|
|
10272
10272
|
}
|
|
10273
10273
|
let fe;
|
|
10274
10274
|
le < Z ? fe = 0 : le > I ? fe = 1 : fe = (Z - le) / (Z - I), J = re - (re - U) * fe, ie = ee - (ee - S) * fe, se = de - (de - N) * fe, he = ye - (ye - j) * fe;
|
|
10275
|
-
const ve = Math.round(Math.min(_, J)),
|
|
10276
|
-
let
|
|
10277
|
-
for (let Oe = ve; Oe <=
|
|
10278
|
-
fe = (_ - Oe) / (_ - J), fe < 0 ? fe = 0 : fe > 1 && (fe = 1), k[
|
|
10275
|
+
const ve = Math.round(Math.min(_, J)), we = Math.round(Math.max(_, J));
|
|
10276
|
+
let Ee = ne * le + ve * 4;
|
|
10277
|
+
for (let Oe = ve; Oe <= we; Oe++)
|
|
10278
|
+
fe = (_ - Oe) / (_ - J), fe < 0 ? fe = 0 : fe > 1 && (fe = 1), k[Ee++] = M - (M - ie) * fe | 0, k[Ee++] = L - (L - se) * fe | 0, k[Ee++] = X - (X - he) * fe | 0, k[Ee++] = 255;
|
|
10279
10279
|
}
|
|
10280
10280
|
}
|
|
10281
10281
|
function D(F, p, b) {
|
|
@@ -12013,10 +12013,10 @@ var Kr = cr(function(De, we) {
|
|
|
12013
12013
|
p(this, U, ve).call(this, xe);
|
|
12014
12014
|
break;
|
|
12015
12015
|
case o.AnnotationEditorParamsType.INK_COLOR:
|
|
12016
|
-
p(this, I,
|
|
12016
|
+
p(this, I, we).call(this, xe);
|
|
12017
12017
|
break;
|
|
12018
12018
|
case o.AnnotationEditorParamsType.INK_OPACITY:
|
|
12019
|
-
p(this, ee,
|
|
12019
|
+
p(this, ee, Ee).call(this, xe);
|
|
12020
12020
|
break;
|
|
12021
12021
|
}
|
|
12022
12022
|
}
|
|
@@ -12028,7 +12028,7 @@ var Kr = cr(function(De, we) {
|
|
|
12028
12028
|
return [[o.AnnotationEditorParamsType.INK_THICKNESS, this.thickness || fe._defaultThickness], [o.AnnotationEditorParamsType.INK_COLOR, this.color || fe._defaultColor || c.AnnotationEditor._defaultLineColor], [o.AnnotationEditorParamsType.INK_OPACITY, Math.round(100 * ((ue = this.opacity) !== null && ue !== void 0 ? ue : fe._defaultOpacity))]];
|
|
12029
12029
|
}
|
|
12030
12030
|
rebuild() {
|
|
12031
|
-
super.rebuild(), this.div !== null && (this.canvas || (p(this, j, H).call(this), p(this, s, oe).call(this)), this.isAttachedToDOM || (this.parent.add(this), p(this, d,
|
|
12031
|
+
super.rebuild(), this.div !== null && (this.canvas || (p(this, j, H).call(this), p(this, s, oe).call(this)), this.isAttachedToDOM || (this.parent.add(this), p(this, d, _e).call(this)), p(this, he, We).call(this));
|
|
12032
12032
|
}
|
|
12033
12033
|
remove() {
|
|
12034
12034
|
this.canvas !== null && (this.isEmpty() || this.commit(), this.canvas.width = this.canvas.height = 0, this.canvas.remove(), this.canvas = null, h(this, re).disconnect(), l(this, re, null), super.remove());
|
|
@@ -12074,7 +12074,7 @@ var Kr = cr(function(De, we) {
|
|
|
12074
12074
|
const [Ne, $e, Ge, Xe] = p(this, de, Oe).call(this);
|
|
12075
12075
|
if (this.setAt(Ne, $e, 0, 0), this.setDims(Ge, Xe), p(this, j, H).call(this), this.width) {
|
|
12076
12076
|
const [Ve, je] = this.parent.viewportBaseDimensions;
|
|
12077
|
-
this.setAt(ue * Ve, xe * je, this.width * Ve, this.height * je), l(this, ne, !0), p(this, d,
|
|
12077
|
+
this.setAt(ue * Ve, xe * je, this.width * Ve, this.height * je), l(this, ne, !0), p(this, d, _e).call(this), this.setDims(this.width * Ve, this.height * je), p(this, S, Q).call(this), p(this, le, He).call(this), this.div.classList.add("disabled");
|
|
12078
12078
|
} else
|
|
12079
12079
|
this.div.classList.add("editing"), this.enableEditMode();
|
|
12080
12080
|
return p(this, s, oe).call(this), this.div;
|
|
@@ -12085,7 +12085,7 @@ var Kr = cr(function(De, we) {
|
|
|
12085
12085
|
return;
|
|
12086
12086
|
l(this, Z, Ne), l(this, z, $e), this.canvas.style.visibility = "hidden", h(this, u) && Math.abs(h(this, u) - ue / xe) > 0.01 && (xe = Math.ceil(ue / h(this, u)), this.setDims(ue, xe));
|
|
12087
12087
|
const [Ge, Xe] = this.parent.viewportBaseDimensions;
|
|
12088
|
-
this.width = ue / Ge, this.height = xe / Xe, h(this, k) && p(this, _, ke).call(this, ue, xe), p(this, d,
|
|
12088
|
+
this.width = ue / Ge, this.height = xe / Xe, h(this, k) && p(this, _, ke).call(this, ue, xe), p(this, d, _e).call(this), p(this, S, Q).call(this), this.canvas.style.visibility = "visible";
|
|
12089
12089
|
}
|
|
12090
12090
|
static deserialize(ue, xe) {
|
|
12091
12091
|
const Ne = super.deserialize(ue, xe);
|
|
@@ -12140,7 +12140,7 @@ var Kr = cr(function(De, we) {
|
|
|
12140
12140
|
keepUndo: !0
|
|
12141
12141
|
});
|
|
12142
12142
|
}
|
|
12143
|
-
function
|
|
12143
|
+
function we(me) {
|
|
12144
12144
|
const ue = this.color;
|
|
12145
12145
|
this.parent.addCommands({
|
|
12146
12146
|
cmd: () => {
|
|
@@ -12155,7 +12155,7 @@ var Kr = cr(function(De, we) {
|
|
|
12155
12155
|
keepUndo: !0
|
|
12156
12156
|
});
|
|
12157
12157
|
}
|
|
12158
|
-
function
|
|
12158
|
+
function Ee(me) {
|
|
12159
12159
|
me /= 100;
|
|
12160
12160
|
const ue = this.opacity;
|
|
12161
12161
|
this.parent.addCommands({
|
|
@@ -12194,7 +12194,7 @@ var Kr = cr(function(De, we) {
|
|
|
12194
12194
|
function Fe(me, ue) {
|
|
12195
12195
|
if (this.isEditing = !0, !h(this, ne)) {
|
|
12196
12196
|
var xe;
|
|
12197
|
-
l(this, ne, !0), p(this, d,
|
|
12197
|
+
l(this, ne, !0), p(this, d, _e).call(this), this.thickness || (this.thickness = fe._defaultThickness), this.color || (this.color = fe._defaultColor || c.AnnotationEditor._defaultLineColor), (xe = this.opacity) !== null && xe !== void 0 || (this.opacity = fe._defaultOpacity);
|
|
12198
12198
|
}
|
|
12199
12199
|
this.currentPath.push([me, ue]), l(this, q, null), p(this, ye, ze).call(this), this.ctx.beginPath(), this.ctx.moveTo(me, ue), l(this, $, () => {
|
|
12200
12200
|
!h(this, $) || (h(this, q) && (this.isEmpty() ? (this.ctx.setTransform(1, 0, 0, 1, 0, 0), this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height)) : p(this, S, Q).call(this), this.ctx.lineTo(...h(this, q)), l(this, q, null), this.ctx.stroke()), window.requestAnimationFrame(h(this, $)));
|
|
@@ -12257,7 +12257,7 @@ var Kr = cr(function(De, we) {
|
|
|
12257
12257
|
ue.width && ue.height && this.setDimensions(ue.width, ue.height);
|
|
12258
12258
|
})), h(this, re).observe(this.div);
|
|
12259
12259
|
}
|
|
12260
|
-
function
|
|
12260
|
+
function _e() {
|
|
12261
12261
|
if (!h(this, ne))
|
|
12262
12262
|
return;
|
|
12263
12263
|
const [me, ue] = this.parent.viewportBaseDimensions;
|
|
@@ -12337,7 +12337,7 @@ var Kr = cr(function(De, we) {
|
|
|
12337
12337
|
const Ne = Math.ceil(xe + h(this, a) * this.scaleFactor), $e = Math.ceil(xe + h(this, t) * this.scaleFactor), [Ge, Xe] = this.parent.viewportBaseDimensions;
|
|
12338
12338
|
this.width = Ne / Ge, this.height = $e / Xe, l(this, u, Ne / $e), p(this, le, He).call(this);
|
|
12339
12339
|
const Ve = this.translationX, je = this.translationY;
|
|
12340
|
-
this.translationX = -ue[0], this.translationY = -ue[1], p(this, d,
|
|
12340
|
+
this.translationX = -ue[0], this.translationY = -ue[1], p(this, d, _e).call(this), p(this, S, Q).call(this), l(this, Z, Ne), l(this, z, $e), this.setDims(Ne, $e);
|
|
12341
12341
|
const Ze = me ? xe / this.scaleFactor / 2 : 0;
|
|
12342
12342
|
this.translate(Ve - this.translationX - Ze, je - this.translationY - Ze);
|
|
12343
12343
|
}
|
|
@@ -12588,7 +12588,7 @@ var Kr = cr(function(De, we) {
|
|
|
12588
12588
|
height: J
|
|
12589
12589
|
} = l(d.rect), [ie, se, he, le] = M.viewBox, fe = he - ie, ve = le - se;
|
|
12590
12590
|
L.setAttribute("data-annotation-id", d.id);
|
|
12591
|
-
const
|
|
12591
|
+
const we = o.Util.normalizeRect([d.rect[0], _.view[3] - d.rect[1] + _.view[1], d.rect[2], _.view[3] - d.rect[3] + _.view[1]]);
|
|
12592
12592
|
if (!s && d.borderStyle.width > 0) {
|
|
12593
12593
|
L.style.borderWidth = `${d.borderStyle.width}px`;
|
|
12594
12594
|
const Oe = d.borderStyle.horizontalCornerRadius, ze = d.borderStyle.verticalCornerRadius;
|
|
@@ -12619,11 +12619,11 @@ var Kr = cr(function(De, we) {
|
|
|
12619
12619
|
const Fe = d.borderColor || null;
|
|
12620
12620
|
Fe ? L.style.borderColor = o.Util.makeHexColor(Fe[0] | 0, Fe[1] | 0, Fe[2] | 0) : L.style.borderWidth = 0;
|
|
12621
12621
|
}
|
|
12622
|
-
L.style.left = `${100 * (
|
|
12622
|
+
L.style.left = `${100 * (we[0] - ie) / fe}%`, L.style.top = `${100 * (we[1] - se) / ve}%`;
|
|
12623
12623
|
const {
|
|
12624
|
-
rotation:
|
|
12624
|
+
rotation: Ee
|
|
12625
12625
|
} = d;
|
|
12626
|
-
return d.hasOwnCanvas ||
|
|
12626
|
+
return d.hasOwnCanvas || Ee === 0 ? (L.style.width = `${100 * X / fe}%`, L.style.height = `${100 * J / ve}%`) : this.setRotation(Ee, L), L;
|
|
12627
12627
|
}
|
|
12628
12628
|
setRotation(s) {
|
|
12629
12629
|
let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.container;
|
|
@@ -12866,9 +12866,9 @@ var Kr = cr(function(De, we) {
|
|
|
12866
12866
|
for (const fe of M) {
|
|
12867
12867
|
const ve = this._fieldObjects[fe] || [];
|
|
12868
12868
|
for (const {
|
|
12869
|
-
id:
|
|
12869
|
+
id: we
|
|
12870
12870
|
} of ve)
|
|
12871
|
-
le.add(
|
|
12871
|
+
le.add(we);
|
|
12872
12872
|
}
|
|
12873
12873
|
for (const fe of Object.values(this._fieldObjects))
|
|
12874
12874
|
for (const ve of fe)
|
|
@@ -12883,25 +12883,25 @@ var Kr = cr(function(De, we) {
|
|
|
12883
12883
|
} = le;
|
|
12884
12884
|
switch (se.push(fe), le.type) {
|
|
12885
12885
|
case "text": {
|
|
12886
|
-
const
|
|
12886
|
+
const we = le.defaultValue || "";
|
|
12887
12887
|
ie.setValue(fe, {
|
|
12888
|
-
value:
|
|
12888
|
+
value: we
|
|
12889
12889
|
});
|
|
12890
12890
|
break;
|
|
12891
12891
|
}
|
|
12892
12892
|
case "checkbox":
|
|
12893
12893
|
case "radiobutton": {
|
|
12894
|
-
const
|
|
12894
|
+
const we = le.defaultValue === le.exportValues;
|
|
12895
12895
|
ie.setValue(fe, {
|
|
12896
|
-
value:
|
|
12896
|
+
value: we
|
|
12897
12897
|
});
|
|
12898
12898
|
break;
|
|
12899
12899
|
}
|
|
12900
12900
|
case "combobox":
|
|
12901
12901
|
case "listbox": {
|
|
12902
|
-
const
|
|
12902
|
+
const we = le.defaultValue || "";
|
|
12903
12903
|
ie.setValue(fe, {
|
|
12904
|
-
value:
|
|
12904
|
+
value: we
|
|
12905
12905
|
});
|
|
12906
12906
|
break;
|
|
12907
12907
|
}
|
|
@@ -13067,38 +13067,38 @@ var Kr = cr(function(De, we) {
|
|
|
13067
13067
|
}), _.addEventListener("updatefromsandbox", (le) => {
|
|
13068
13068
|
const fe = {
|
|
13069
13069
|
value(ve) {
|
|
13070
|
-
var
|
|
13071
|
-
ie.userValue = (
|
|
13070
|
+
var we;
|
|
13071
|
+
ie.userValue = (we = ve.detail.value) !== null && we !== void 0 ? we : "", s.setValue(d, {
|
|
13072
13072
|
value: ie.userValue.toString()
|
|
13073
13073
|
}), ve.target.value = ie.userValue;
|
|
13074
13074
|
},
|
|
13075
13075
|
formattedValue(ve) {
|
|
13076
13076
|
const {
|
|
13077
|
-
formattedValue:
|
|
13077
|
+
formattedValue: we
|
|
13078
13078
|
} = ve.detail;
|
|
13079
|
-
ie.formattedValue =
|
|
13080
|
-
formattedValue:
|
|
13079
|
+
ie.formattedValue = we, we != null && ve.target !== document.activeElement && (ve.target.value = we), s.setValue(d, {
|
|
13080
|
+
formattedValue: we
|
|
13081
13081
|
});
|
|
13082
13082
|
},
|
|
13083
13083
|
selRange(ve) {
|
|
13084
13084
|
ve.target.setSelectionRange(...ve.detail.selRange);
|
|
13085
13085
|
},
|
|
13086
13086
|
charLimit: (ve) => {
|
|
13087
|
-
var
|
|
13087
|
+
var we;
|
|
13088
13088
|
const {
|
|
13089
|
-
charLimit:
|
|
13089
|
+
charLimit: Ee
|
|
13090
13090
|
} = ve.detail, {
|
|
13091
13091
|
target: Oe
|
|
13092
13092
|
} = ve;
|
|
13093
|
-
if (
|
|
13093
|
+
if (Ee === 0) {
|
|
13094
13094
|
Oe.removeAttribute("maxLength");
|
|
13095
13095
|
return;
|
|
13096
13096
|
}
|
|
13097
|
-
Oe.setAttribute("maxLength",
|
|
13097
|
+
Oe.setAttribute("maxLength", Ee);
|
|
13098
13098
|
let ze = ie.userValue;
|
|
13099
|
-
!ze || ze.length <=
|
|
13099
|
+
!ze || ze.length <= Ee || (ze = ze.slice(0, Ee), Oe.value = ie.userValue = ze, s.setValue(d, {
|
|
13100
13100
|
value: ze
|
|
13101
|
-
}), (
|
|
13101
|
+
}), (we = this.linkService.eventBus) === null || we === void 0 || we.dispatch("dispatcheventinsandbox", {
|
|
13102
13102
|
source: this,
|
|
13103
13103
|
detail: {
|
|
13104
13104
|
id: d,
|
|
@@ -13119,14 +13119,14 @@ var Kr = cr(function(De, we) {
|
|
|
13119
13119
|
if (le.key === "Escape" ? ve = 0 : le.key === "Enter" ? ve = 2 : le.key === "Tab" && (ve = 3), ve === -1)
|
|
13120
13120
|
return;
|
|
13121
13121
|
const {
|
|
13122
|
-
value:
|
|
13122
|
+
value: we
|
|
13123
13123
|
} = le.target;
|
|
13124
|
-
ie.valueOnFocus !==
|
|
13124
|
+
ie.valueOnFocus !== we && (ie.userValue = we, (fe = this.linkService.eventBus) === null || fe === void 0 || fe.dispatch("dispatcheventinsandbox", {
|
|
13125
13125
|
source: this,
|
|
13126
13126
|
detail: {
|
|
13127
13127
|
id: d,
|
|
13128
13128
|
name: "Keystroke",
|
|
13129
|
-
value:
|
|
13129
|
+
value: we,
|
|
13130
13130
|
willCommit: !0,
|
|
13131
13131
|
commitKey: ve,
|
|
13132
13132
|
selStart: le.target.selectionStart,
|
|
@@ -13159,21 +13159,21 @@ var Kr = cr(function(De, we) {
|
|
|
13159
13159
|
var fe;
|
|
13160
13160
|
const {
|
|
13161
13161
|
data: ve,
|
|
13162
|
-
target:
|
|
13162
|
+
target: we
|
|
13163
13163
|
} = le, {
|
|
13164
|
-
value:
|
|
13164
|
+
value: Ee,
|
|
13165
13165
|
selectionStart: Oe,
|
|
13166
13166
|
selectionEnd: ze
|
|
13167
|
-
} =
|
|
13167
|
+
} = we;
|
|
13168
13168
|
let Fe = Oe, Pe = ze;
|
|
13169
13169
|
switch (le.inputType) {
|
|
13170
13170
|
case "deleteWordBackward": {
|
|
13171
|
-
const V =
|
|
13171
|
+
const V = Ee.substring(0, Oe).match(/\w*[^\w]*$/);
|
|
13172
13172
|
V && (Fe -= V[0].length);
|
|
13173
13173
|
break;
|
|
13174
13174
|
}
|
|
13175
13175
|
case "deleteWordForward": {
|
|
13176
|
-
const V =
|
|
13176
|
+
const V = Ee.substring(Oe).match(/^[^\w]*\w*/);
|
|
13177
13177
|
V && (Pe += V[0].length);
|
|
13178
13178
|
break;
|
|
13179
13179
|
}
|
|
@@ -13189,7 +13189,7 @@ var Kr = cr(function(De, we) {
|
|
|
13189
13189
|
detail: {
|
|
13190
13190
|
id: d,
|
|
13191
13191
|
name: "Keystroke",
|
|
13192
|
-
value:
|
|
13192
|
+
value: Ee,
|
|
13193
13193
|
change: ve || "",
|
|
13194
13194
|
willCommit: !1,
|
|
13195
13195
|
selStart: Fe,
|
|
@@ -13361,9 +13361,9 @@ var Kr = cr(function(De, we) {
|
|
|
13361
13361
|
value(le) {
|
|
13362
13362
|
var fe;
|
|
13363
13363
|
(fe = X) === null || fe === void 0 || fe();
|
|
13364
|
-
const ve = le.detail.value,
|
|
13365
|
-
for (const
|
|
13366
|
-
|
|
13364
|
+
const ve = le.detail.value, we = new Set(Array.isArray(ve) ? ve : [ve]);
|
|
13365
|
+
for (const Ee of M.options)
|
|
13366
|
+
Ee.selected = we.has(Ee.value);
|
|
13367
13367
|
s.setValue(d, {
|
|
13368
13368
|
value: J(le, !0)
|
|
13369
13369
|
});
|
|
@@ -13373,7 +13373,7 @@ var Kr = cr(function(De, we) {
|
|
|
13373
13373
|
},
|
|
13374
13374
|
remove(le) {
|
|
13375
13375
|
const fe = M.options, ve = le.detail.remove;
|
|
13376
|
-
fe[ve].selected = !1, M.remove(ve), fe.length > 0 && Array.prototype.findIndex.call(fe, (
|
|
13376
|
+
fe[ve].selected = !1, M.remove(ve), fe.length > 0 && Array.prototype.findIndex.call(fe, (Ee) => Ee.selected) === -1 && (fe[0].selected = !0), s.setValue(d, {
|
|
13377
13377
|
value: J(le, !0),
|
|
13378
13378
|
items: ie(le)
|
|
13379
13379
|
});
|
|
@@ -13390,9 +13390,9 @@ var Kr = cr(function(De, we) {
|
|
|
13390
13390
|
const {
|
|
13391
13391
|
index: fe,
|
|
13392
13392
|
displayValue: ve,
|
|
13393
|
-
exportValue:
|
|
13394
|
-
} = le.detail.insert,
|
|
13395
|
-
Oe.textContent = ve, Oe.value =
|
|
13393
|
+
exportValue: we
|
|
13394
|
+
} = le.detail.insert, Ee = M.children[fe], Oe = document.createElement("option");
|
|
13395
|
+
Oe.textContent = ve, Oe.value = we, Ee ? Ee.before(Oe) : M.append(Oe), s.setValue(d, {
|
|
13396
13396
|
value: J(le, !0),
|
|
13397
13397
|
items: ie(le)
|
|
13398
13398
|
});
|
|
@@ -13405,10 +13405,10 @@ var Kr = cr(function(De, we) {
|
|
|
13405
13405
|
M.remove(0);
|
|
13406
13406
|
for (const ve of fe) {
|
|
13407
13407
|
const {
|
|
13408
|
-
displayValue:
|
|
13409
|
-
exportValue:
|
|
13408
|
+
displayValue: we,
|
|
13409
|
+
exportValue: Ee
|
|
13410
13410
|
} = ve, Oe = document.createElement("option");
|
|
13411
|
-
Oe.textContent =
|
|
13411
|
+
Oe.textContent = we, Oe.value = Ee, M.append(Oe);
|
|
13412
13412
|
}
|
|
13413
13413
|
M.options.length > 0 && (M.options[0].selected = !0), s.setValue(d, {
|
|
13414
13414
|
value: J(le, !0),
|
|
@@ -13475,8 +13475,8 @@ var Kr = cr(function(De, we) {
|
|
|
13475
13475
|
modificationDate: this.data.modificationDate,
|
|
13476
13476
|
contentsObj: this.data.contentsObj,
|
|
13477
13477
|
richText: this.data.richText
|
|
13478
|
-
}), L = this.page, X = o.Util.normalizeRect([this.data.parentRect[0], L.view[3] - this.data.parentRect[1] + L.view[1], this.data.parentRect[2], L.view[3] - this.data.parentRect[3] + L.view[1]]), J = X[0] + this.data.parentRect[2] - this.data.parentRect[0], ie = X[1], [se, he, le, fe] = this.viewport.viewBox, ve = le - se,
|
|
13479
|
-
return this.container.style.left = `${100 * (J - se) / ve}%`, this.container.style.top = `${100 * (ie - he) /
|
|
13478
|
+
}), L = this.page, X = o.Util.normalizeRect([this.data.parentRect[0], L.view[3] - this.data.parentRect[1] + L.view[1], this.data.parentRect[2], L.view[3] - this.data.parentRect[3] + L.view[1]]), J = X[0] + this.data.parentRect[2] - this.data.parentRect[0], ie = X[1], [se, he, le, fe] = this.viewport.viewBox, ve = le - se, we = fe - he;
|
|
13479
|
+
return this.container.style.left = `${100 * (J - se) / ve}%`, this.container.style.top = `${100 * (ie - he) / we}%`, this.container.append(M.render()), this.container;
|
|
13480
13480
|
}
|
|
13481
13481
|
}
|
|
13482
13482
|
class E {
|
|
@@ -16168,14 +16168,14 @@ va.GlobalWorkerOptions.workerSrc = "/pdfjs/pdf.worker.min.js";
|
|
|
16168
16168
|
const ya = class {
|
|
16169
16169
|
constructor(De) {
|
|
16170
16170
|
jt(this, De), this.activate = Rt(this, "activate", 7), this.visiblePagesChange = Rt(this, "visiblePagesChange", 7), this.pages = [], this.renderingPageNumbers = [], this.recentScrollPosition = { x: 0, y: 0 }, this.determineScrollStatus = () => {
|
|
16171
|
-
var
|
|
16172
|
-
const
|
|
16173
|
-
|
|
16171
|
+
var Ie, Te, Le;
|
|
16172
|
+
const Ce = Math.ceil(((Ie = this.scrollContainer) == null ? void 0 : Ie.scrollTop) + ((Te = this.scrollContainer) == null ? void 0 : Te.offsetHeight)) >= ((Le = this.scrollContainer) == null ? void 0 : Le.scrollHeight);
|
|
16173
|
+
Ce !== this.scrolledDown && (this.scrolledDown = Ce);
|
|
16174
16174
|
}, this.storeRecentScrollPosition = () => {
|
|
16175
|
-
var
|
|
16175
|
+
var Ce, Ie, Te, Le;
|
|
16176
16176
|
this.recentScrollPosition = {
|
|
16177
|
-
x: Math.round(((
|
|
16178
|
-
y: Math.round(((Te = this.scrollContainer)
|
|
16177
|
+
x: Math.round(((Ce = this.scrollContainer) == null ? void 0 : Ce.scrollLeft) / ((Ie = this.scrollContainer) == null ? void 0 : Ie.scrollWidth) * 100) / 100,
|
|
16178
|
+
y: Math.round(((Te = this.scrollContainer) == null ? void 0 : Te.scrollTop) / ((Le = this.scrollContainer) == null ? void 0 : Le.scrollHeight) * 100) / 100
|
|
16179
16179
|
};
|
|
16180
16180
|
}, this.onScroll = ea(() => {
|
|
16181
16181
|
this.updateVisiblePages(), this.determineScrollStatus(), this.storeRecentScrollPosition();
|
|
@@ -16189,7 +16189,7 @@ const ya = class {
|
|
|
16189
16189
|
}
|
|
16190
16190
|
disconnectedCallback() {
|
|
16191
16191
|
var De;
|
|
16192
|
-
(De = this.doc)
|
|
16192
|
+
(De = this.doc) == null || De.destroy();
|
|
16193
16193
|
}
|
|
16194
16194
|
async onWindowResize() {
|
|
16195
16195
|
this.visiblePages = [], this.renderedPages = [], await this.updateVisiblePages(), this.determineScrollStatus();
|
|
@@ -16209,9 +16209,9 @@ const ya = class {
|
|
|
16209
16209
|
}
|
|
16210
16210
|
async getThumbnails() {
|
|
16211
16211
|
return await Promise.all(this.pages.filter(Boolean).map((De) => {
|
|
16212
|
-
const
|
|
16213
|
-
Ie.width =
|
|
16214
|
-
const Te = Math.min(Ie.width /
|
|
16212
|
+
const Ce = De.getViewport({ scale: 1 }), Ie = document.createElement("canvas");
|
|
16213
|
+
Ie.width = Ce.width, Ie.height = Ce.height;
|
|
16214
|
+
const Te = Math.min(Ie.width / Ce.width, Ie.height / Ce.height);
|
|
16215
16215
|
return De.render({
|
|
16216
16216
|
canvasContext: Ie.getContext("2d"),
|
|
16217
16217
|
viewport: De.getViewport({ scale: Te })
|
|
@@ -16237,8 +16237,8 @@ const ya = class {
|
|
|
16237
16237
|
try {
|
|
16238
16238
|
Boolean(this.doc) && this.doc.destroy(), this.doc = await Kr.getDocument(this.file).promise;
|
|
16239
16239
|
for (let De = 1; De <= this.doc.numPages; De++) {
|
|
16240
|
-
const
|
|
16241
|
-
this.pages[De] =
|
|
16240
|
+
const Ce = await this.doc.getPage(De);
|
|
16241
|
+
this.pages[De] = Ce;
|
|
16242
16242
|
}
|
|
16243
16243
|
this.loading = !1;
|
|
16244
16244
|
} catch {
|
|
@@ -16246,8 +16246,8 @@ const ya = class {
|
|
|
16246
16246
|
}
|
|
16247
16247
|
}
|
|
16248
16248
|
async renderVisiblePages(De) {
|
|
16249
|
-
const
|
|
16250
|
-
for (const Te of
|
|
16249
|
+
const Ce = Array.from(this.el.shadowRoot.querySelectorAll("canvas")), Ie = [];
|
|
16250
|
+
for (const Te of Ce) {
|
|
16251
16251
|
const Le = Te.closest(".file-viewer-pdf__page"), Qe = this.pages.find((B) => (B == null ? void 0 : B.pageNumber) === +(Le == null ? void 0 : Le.dataset.pageNumber));
|
|
16252
16252
|
if (!(!Boolean(Qe) || this.renderingPageNumbers.includes(Qe.pageNumber))) {
|
|
16253
16253
|
if (!this.visiblePages.includes(Qe.pageNumber)) {
|
|
@@ -16263,11 +16263,11 @@ const ya = class {
|
|
|
16263
16263
|
}
|
|
16264
16264
|
this.renderedPages = Ie;
|
|
16265
16265
|
}
|
|
16266
|
-
async renderPage(De,
|
|
16267
|
-
const Te =
|
|
16266
|
+
async renderPage(De, Ce, Ie) {
|
|
16267
|
+
const Te = Ce.closest(".file-viewer-pdf__page"), Le = Te == null ? void 0 : Te.querySelector(".file-viewer-pdf__text-container");
|
|
16268
16268
|
this.renderingPageNumbers = [...this.renderingPageNumbers, De.pageNumber];
|
|
16269
|
-
const Qe = Ie ? 2 : this.getScale(De), B = window.devicePixelRatio || 1, v = B !== 1 ? [B, 0, 0, B, 0, 0] : null, n = De.getViewport({ scale: Qe }), o =
|
|
16270
|
-
|
|
16269
|
+
const Qe = Ie ? 2 : this.getScale(De), B = window.devicePixelRatio || 1, v = B !== 1 ? [B, 0, 0, B, 0, 0] : null, n = De.getViewport({ scale: Qe }), o = Ce.getContext("2d");
|
|
16270
|
+
Ce.height = Math.floor(n.height * B), Ce.width = Math.floor(n.width * B);
|
|
16271
16271
|
const c = {
|
|
16272
16272
|
canvasContext: o,
|
|
16273
16273
|
transform: v,
|
|
@@ -16279,21 +16279,21 @@ const ya = class {
|
|
|
16279
16279
|
}
|
|
16280
16280
|
}
|
|
16281
16281
|
destroyPage(De) {
|
|
16282
|
-
const
|
|
16282
|
+
const Ce = this.el.shadowRoot.querySelector(`[data-page-number="${De.pageNumber}"]`), Ie = Ce.querySelector("canvas"), Te = Ce.querySelector(".file-viewer-pdf__text-container");
|
|
16283
16283
|
Ie.width = 1, Ie.height = 1, Ie.getContext("2d").clearRect(0, 0, Ie.width, Ie.height), Te.innerHTML = "";
|
|
16284
16284
|
}
|
|
16285
16285
|
async updateVisiblePages(De) {
|
|
16286
|
-
const
|
|
16286
|
+
const Ce = Array.from(this.el.shadowRoot.querySelectorAll(".file-viewer-pdf__page"));
|
|
16287
16287
|
let Ie = [];
|
|
16288
16288
|
if (this.singlePageMode)
|
|
16289
16289
|
Ie = [this.singlePageModePage];
|
|
16290
|
-
else if (Ie = De ?
|
|
16290
|
+
else if (Ie = De ? Ce.map((Le) => +Le.dataset.pageNumber) : Ce.filter((Le) => ta(Le, this.scrollContainer) > 0).map((Le) => +Le.dataset.pageNumber), this.visiblePages.length === Ie.length && this.visiblePages.every((Le) => Ie.includes(Le)))
|
|
16291
16291
|
return;
|
|
16292
16292
|
this.visiblePages = Ie, await this.renderVisiblePages(De), this.visiblePagesChange.emit(this.visiblePages);
|
|
16293
16293
|
}
|
|
16294
|
-
async renderTextLayer(De,
|
|
16294
|
+
async renderTextLayer(De, Ce) {
|
|
16295
16295
|
Kr.renderTextLayer({
|
|
16296
|
-
container:
|
|
16296
|
+
container: Ce,
|
|
16297
16297
|
textContent: await De.getTextContent(),
|
|
16298
16298
|
viewport: De.getViewport({
|
|
16299
16299
|
scale: this.getScale(De)
|
|
@@ -16302,7 +16302,7 @@ const ya = class {
|
|
|
16302
16302
|
}
|
|
16303
16303
|
async openPrintDialog() {
|
|
16304
16304
|
const De = Array.from(this.scrollContainer.querySelectorAll("canvas"));
|
|
16305
|
-
let
|
|
16305
|
+
let Ce = `
|
|
16306
16306
|
*, *:before, *:after {
|
|
16307
16307
|
margin: 0;
|
|
16308
16308
|
padding: 0;
|
|
@@ -16321,7 +16321,7 @@ const ya = class {
|
|
|
16321
16321
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
16322
16322
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
16323
16323
|
<title>${this.file}</title>
|
|
16324
|
-
<style>${
|
|
16324
|
+
<style>${Ce}</style>
|
|
16325
16325
|
</head>
|
|
16326
16326
|
<body>
|
|
16327
16327
|
`;
|
|
@@ -16337,16 +16337,16 @@ const ya = class {
|
|
|
16337
16337
|
Le.document.write(Ie), Le.focus(), await new Promise((Qe) => setTimeout(Qe, 100)), Le.print(), Te.remove();
|
|
16338
16338
|
}
|
|
16339
16339
|
getScale(De) {
|
|
16340
|
-
var
|
|
16341
|
-
const
|
|
16342
|
-
return this.zoom === "auto" ? (((
|
|
16340
|
+
var Ie;
|
|
16341
|
+
const Ce = ra() ? 0 : 32;
|
|
16342
|
+
return this.zoom === "auto" ? (((Ie = this.scrollContainer) == null ? void 0 : Ie.clientWidth) - Ce) / De.view[2] : isNaN(this.zoom) ? 1 : this.zoom;
|
|
16343
16343
|
}
|
|
16344
16344
|
restoreScrollPosition() {
|
|
16345
|
-
var De,
|
|
16346
|
-
this.scrollContainer.scrollTop = this.recentScrollPosition.y * ((De = this.scrollContainer)
|
|
16345
|
+
var De, Ce;
|
|
16346
|
+
this.scrollContainer.scrollTop = this.recentScrollPosition.y * ((De = this.scrollContainer) == null ? void 0 : De.scrollHeight), this.scrollContainer.scrollLeft = this.recentScrollPosition.x * ((Ce = this.scrollContainer) == null ? void 0 : Ce.scrollWidth);
|
|
16347
16347
|
}
|
|
16348
16348
|
render() {
|
|
16349
|
-
const De = !this.error && !this.loading && this.visiblePages.length > 0,
|
|
16349
|
+
const De = !this.error && !this.loading && this.visiblePages.length > 0, Ce = this.scrolledDown && !this.singlePageMode ? this.pages.length - 1 : this.visiblePages[0], Ie = this.loading, Te = Qi("file-viewer-pdf", `file-viewer-pdf--view-mode-${this.viewMode}`);
|
|
16350
16350
|
return qe($t, { class: Te, exportparts: "file-viewer-pdf__pagination" }, this.error && qe("swirl-inline-error", { class: "file-viewer-pdf__error", message: this.errorMessage }), qe("div", { "aria-describedby": "pagination", class: "file-viewer-pdf__pages", onScroll: this.onScroll, ref: (Le) => this.scrollContainer = Le }, this.pages.map((Le) => {
|
|
16351
16351
|
const Qe = Le.getViewport({
|
|
16352
16352
|
scale: this.getScale(Le)
|
|
@@ -16355,7 +16355,7 @@ const ya = class {
|
|
|
16355
16355
|
width: `${v}px`,
|
|
16356
16356
|
height: `${B}px`
|
|
16357
16357
|
}, tabIndex: 0 }, !n && qe("swirl-spinner", { class: "file-viewer-pdf__page-spinner" }), qe("canvas", { class: "file-viewer-pdf__canvas", style: { opacity: n ? "1" : "0" } }), qe("div", { class: "file-viewer-pdf__text-container" }));
|
|
16358
|
-
})), De && qe("span", { class: "file-viewer-pdf__pagination", id: "pagination", part: "file-viewer-pdf__pagination" }, qe("span", { "aria-current": "page" },
|
|
16358
|
+
})), De && qe("span", { class: "file-viewer-pdf__pagination", id: "pagination", part: "file-viewer-pdf__pagination" }, qe("span", { "aria-current": "page" }, Ce), " / ", this.doc.numPages), Ie && qe("div", { class: "file-viewer-pdf__spinner" }, qe("swirl-spinner", null)));
|
|
16359
16359
|
}
|
|
16360
16360
|
get el() {
|
|
16361
16361
|
return Qt(this);
|