@weavy/uikit-react 13.0.0 → 14.0.1
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/changelog.md +30 -0
- package/dist/cjs/{types/client → client}/WeavyClient.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Attachment.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Avatar.d.ts +0 -0
- package/dist/{esm/types → cjs}/components/Chat.d.ts +1 -1
- package/dist/cjs/{types/components → components}/Conversation.d.ts +0 -0
- package/dist/cjs/{types/components → components}/ConversationBadge.d.ts +0 -0
- package/dist/cjs/{types/components → components}/ConversationForm.d.ts +0 -0
- package/dist/cjs/{types/components → components}/ConversationList.d.ts +0 -0
- package/dist/cjs/{types/components → components}/ConversationListItem.d.ts +0 -0
- package/dist/cjs/{types/components → components}/File.d.ts +0 -0
- package/dist/cjs/{types/components → components}/FileBrowser.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Image.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Meeting.d.ts +0 -0
- package/dist/cjs/{types/components → components}/MeetingCard.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Meetings.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Message.d.ts +0 -0
- package/dist/{esm/types → cjs}/components/Messages.d.ts +3 -1
- package/dist/cjs/{types/components → components}/Messenger.d.ts +0 -0
- package/dist/cjs/{types/components → components}/NewConversation.d.ts +0 -0
- package/dist/cjs/{types/components → components}/PdfViewer.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Presence.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Preview.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Reactions.d.ts +0 -0
- package/dist/cjs/{types/components → components}/SearchUsers.d.ts +0 -0
- package/dist/cjs/{types/components → components}/SeenBy.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Typing.d.ts +0 -0
- package/dist/cjs/{types/contexts → contexts}/MessengerContext.d.ts +0 -0
- package/dist/cjs/{types/contexts → contexts}/PreviewContext.d.ts +0 -0
- package/dist/cjs/{types/contexts → contexts}/UserContext.d.ts +0 -0
- package/dist/cjs/{types/contexts → contexts}/WeavyContext.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useBadge.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useChat.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useConversation.d.ts +0 -0
- package/dist/cjs/hooks/useConversations.d.ts +1 -0
- package/dist/cjs/{types/hooks → hooks}/useDebounce.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useEvents.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useFileUploader.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMembers.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMessages.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateChat.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateConversation.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateConversationName.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateDeleteReaction.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateExternalBlobs.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateMeeting.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateMembers.d.ts +0 -0
- package/dist/{esm/types → cjs}/hooks/useMutateMessage.d.ts +1 -1
- package/dist/cjs/{types/hooks → hooks}/useMutatePinned.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateReaction.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateRead.d.ts +1 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateRemoveMembers.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateTyping.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/usePresence.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/usePreview.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useReactions.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useSearchUsers.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useThrottle.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useUser.d.ts +0 -0
- package/dist/cjs/{types/index.d.ts → index.d.ts} +0 -0
- package/dist/cjs/index.js +6 -28
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/{types/Chat.d.ts → Chat.d.ts} +1 -0
- package/dist/cjs/types/{types/Conversation.d.ts → Conversation.d.ts} +0 -0
- package/dist/cjs/types/{types/ConversationListItem.d.ts → ConversationListItem.d.ts} +0 -0
- package/dist/{esm/types → cjs}/types/Message.d.ts +2 -0
- package/dist/cjs/types/{types/Messenger.d.ts → Messenger.d.ts} +0 -0
- package/dist/cjs/types/{types/types.d.ts → types.d.ts} +47 -4
- package/dist/cjs/{types/ui → ui}/Button.d.ts +0 -0
- package/dist/cjs/{types/ui → ui}/Dropdown.d.ts +0 -0
- package/dist/cjs/{types/ui → ui}/Icon.d.ts +0 -0
- package/dist/cjs/{types/ui → ui}/Overlay.d.ts +0 -0
- package/dist/cjs/{types/ui → ui}/Spinner.d.ts +2 -1
- package/dist/cjs/{types/utils → utils}/fileUtilities.d.ts +0 -0
- package/dist/css/weavy-chat.css +1543 -959
- package/dist/css/weavy-messenger.css +1903 -1302
- package/dist/css/weavy.css +1703 -1102
- package/dist/esm/{types/client → client}/WeavyClient.d.ts +0 -0
- package/dist/esm/{types/components → components}/Attachment.d.ts +0 -0
- package/dist/esm/{types/components → components}/Avatar.d.ts +0 -0
- package/dist/{cjs/types → esm}/components/Chat.d.ts +1 -1
- package/dist/esm/{types/components → components}/Conversation.d.ts +0 -0
- package/dist/esm/{types/components → components}/ConversationBadge.d.ts +0 -0
- package/dist/esm/{types/components → components}/ConversationForm.d.ts +0 -0
- package/dist/esm/{types/components → components}/ConversationList.d.ts +0 -0
- package/dist/esm/{types/components → components}/ConversationListItem.d.ts +0 -0
- package/dist/esm/{types/components → components}/File.d.ts +0 -0
- package/dist/esm/{types/components → components}/FileBrowser.d.ts +0 -0
- package/dist/esm/{types/components → components}/Image.d.ts +0 -0
- package/dist/esm/{types/components → components}/Meeting.d.ts +0 -0
- package/dist/esm/{types/components → components}/MeetingCard.d.ts +0 -0
- package/dist/esm/{types/components → components}/Meetings.d.ts +0 -0
- package/dist/esm/{types/components → components}/Message.d.ts +0 -0
- package/dist/{cjs/types → esm}/components/Messages.d.ts +3 -1
- package/dist/esm/{types/components → components}/Messenger.d.ts +0 -0
- package/dist/esm/{types/components → components}/NewConversation.d.ts +0 -0
- package/dist/esm/{types/components → components}/PdfViewer.d.ts +0 -0
- package/dist/esm/{types/components → components}/Presence.d.ts +0 -0
- package/dist/esm/{types/components → components}/Preview.d.ts +0 -0
- package/dist/esm/{types/components → components}/Reactions.d.ts +0 -0
- package/dist/esm/{types/components → components}/SearchUsers.d.ts +0 -0
- package/dist/esm/{types/components → components}/SeenBy.d.ts +0 -0
- package/dist/esm/{types/components → components}/Typing.d.ts +0 -0
- package/dist/esm/{types/contexts → contexts}/MessengerContext.d.ts +0 -0
- package/dist/esm/{types/contexts → contexts}/PreviewContext.d.ts +0 -0
- package/dist/esm/{types/contexts → contexts}/UserContext.d.ts +0 -0
- package/dist/esm/{types/contexts → contexts}/WeavyContext.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useBadge.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useChat.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useConversation.d.ts +0 -0
- package/dist/esm/hooks/useConversations.d.ts +1 -0
- package/dist/esm/{types/hooks → hooks}/useDebounce.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useEvents.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useFileUploader.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMembers.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMessages.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateChat.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateConversation.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateConversationName.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateDeleteReaction.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateExternalBlobs.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateMeeting.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateMembers.d.ts +0 -0
- package/dist/{cjs/types → esm}/hooks/useMutateMessage.d.ts +1 -1
- package/dist/esm/{types/hooks → hooks}/useMutatePinned.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateReaction.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateRead.d.ts +1 -0
- package/dist/esm/{types/hooks → hooks}/useMutateRemoveMembers.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateTyping.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/usePresence.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/usePreview.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useReactions.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useSearchUsers.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useThrottle.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useUser.d.ts +0 -0
- package/dist/esm/{types/index.d.ts → index.d.ts} +0 -0
- package/dist/esm/index.js +6 -28
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/{types/Chat.d.ts → Chat.d.ts} +1 -0
- package/dist/esm/types/{types/Conversation.d.ts → Conversation.d.ts} +0 -0
- package/dist/esm/types/{types/ConversationListItem.d.ts → ConversationListItem.d.ts} +0 -0
- package/dist/{cjs/types → esm}/types/Message.d.ts +2 -0
- package/dist/esm/types/{types/Messenger.d.ts → Messenger.d.ts} +0 -0
- package/dist/esm/types/{types/types.d.ts → types.d.ts} +47 -4
- package/dist/esm/{types/ui → ui}/Button.d.ts +0 -0
- package/dist/esm/{types/ui → ui}/Dropdown.d.ts +0 -0
- package/dist/esm/{types/ui → ui}/Icon.d.ts +0 -0
- package/dist/esm/{types/ui → ui}/Overlay.d.ts +0 -0
- package/dist/esm/{types/ui → ui}/Spinner.d.ts +2 -1
- package/dist/esm/{types/utils → utils}/fileUtilities.d.ts +0 -0
- package/dist/index.d.ts +2 -1
- package/package.json +18 -15
- package/{rollup.config.js → rollup.config.mjs} +10 -3
- package/src/client/WeavyClient.ts +12 -17
- package/src/components/Attachment.tsx +5 -5
- package/src/components/Chat.tsx +6 -5
- package/src/components/Conversation.tsx +26 -20
- package/src/components/ConversationBadge.tsx +7 -5
- package/src/components/ConversationForm.tsx +1 -1
- package/src/components/ConversationList.tsx +59 -11
- package/src/components/ConversationListItem.tsx +94 -58
- package/src/components/FileBrowser.tsx +53 -50
- package/src/components/Image.tsx +2 -1
- package/src/components/MeetingCard.tsx +35 -13
- package/src/components/Meetings.tsx +1 -1
- package/src/components/Message.tsx +41 -42
- package/src/components/Messages.tsx +61 -60
- package/src/components/Messenger.tsx +7 -2
- package/src/components/NewConversation.tsx +1 -1
- package/src/components/PdfViewer.tsx +5 -5
- package/src/components/Preview.tsx +2 -2
- package/src/components/Reactions.tsx +11 -5
- package/src/components/SearchUsers.tsx +19 -9
- package/src/components/SeenBy.tsx +13 -7
- package/src/components/Typing.tsx +11 -12
- package/src/contexts/UserContext.tsx +1 -1
- package/src/contexts/WeavyContext.tsx +3 -3
- package/src/hooks/useConversations.ts +15 -5
- package/src/hooks/useMutateMessage.ts +1 -5
- package/src/hooks/useMutateRead.ts +5 -3
- package/src/hooks/usePresence.ts +2 -3
- package/src/hooks/useReactions.ts +11 -12
- package/src/scss/theme/_alert.scss +61 -63
- package/src/scss/theme/_appbar.scss +105 -30
- package/src/scss/theme/_avatar.scss +23 -28
- package/src/scss/theme/_badge.scss +26 -18
- package/src/scss/theme/_buttons.scss +107 -52
- package/src/scss/theme/_card.scss +102 -4
- package/src/scss/theme/_checkbox.scss +16 -20
- package/src/scss/theme/_code-vscode-dark.scss +3 -3
- package/src/scss/theme/_code-vscode-light.scss +3 -3
- package/src/scss/theme/_code.scss +0 -2
- package/src/scss/theme/_comment-editor-cm.scss +97 -0
- package/src/scss/theme/_comment-editor.scss +129 -0
- package/src/scss/theme/_comments.scss +66 -0
- package/src/scss/theme/_content.scss +33 -5
- package/src/scss/theme/_conversations.scss +19 -78
- package/src/scss/theme/_dropdown.scss +102 -15
- package/src/scss/theme/_embed.scss +135 -0
- package/src/scss/theme/_facepile.scss +11 -0
- package/src/scss/theme/_filebrowser.scss +1 -1
- package/src/scss/theme/_files.scss +76 -47
- package/src/scss/theme/_grid.scss +8 -0
- package/src/scss/theme/_icons.scss +155 -19
- package/src/scss/theme/_image-grid.scss +7 -12
- package/src/scss/theme/_input.scss +160 -0
- package/src/scss/theme/_item.scss +169 -0
- package/src/scss/theme/_list.scss +57 -0
- package/src/scss/theme/_meeting.scss +11 -0
- package/src/scss/theme/_message-editor-cm.scss +95 -0
- package/src/scss/theme/_message-editor.scss +65 -19
- package/src/scss/theme/_messages.scss +51 -105
- package/src/scss/theme/_meta.scss +12 -0
- package/src/scss/theme/_overlays.scss +31 -76
- package/src/scss/theme/_pager.scss +5 -1
- package/src/scss/theme/_pane.scss +13 -2
- package/src/scss/theme/_panels.scss +33 -28
- package/src/scss/theme/_picker-list.scss +5 -3
- package/src/scss/theme/_placeholder.scss +19 -0
- package/src/scss/theme/_poll.scss +49 -0
- package/src/scss/theme/_post-editor-cm.scss +100 -0
- package/src/scss/theme/_post-editor.scss +127 -0
- package/src/scss/theme/_post.scss +83 -0
- package/src/scss/theme/_preview-code.scss +11 -2
- package/src/scss/theme/_preview-embed.scss +8 -2
- package/src/scss/theme/_preview-image.scss +8 -26
- package/src/scss/theme/_preview-media.scss +1 -0
- package/src/scss/theme/_preview-pdf.scss +10 -15
- package/src/scss/theme/_preview.scss +57 -79
- package/src/scss/theme/_reactions.scss +48 -17
- package/src/scss/theme/_sheet.scss +59 -0
- package/src/scss/theme/_sidebar.scss +86 -0
- package/src/scss/theme/_spinner.scss +11 -7
- package/src/scss/theme/_tab.scss +72 -0
- package/src/scss/theme/_tables.scss +70 -23
- package/src/scss/theme/_toasts.scss +56 -26
- package/src/scss/theme/_type.scss +41 -0
- package/src/scss/theme/{mixins → base}/_backdrop.scss +0 -0
- package/src/scss/theme/{bootstrap/mixins → base}/_breakpoints.scss +9 -0
- package/src/scss/theme/base/_colors.scss +315 -0
- package/src/scss/theme/base/_md.scss +19 -0
- package/src/scss/theme/base/_palette.scss +130 -0
- package/src/scss/theme/{mixins → base}/_position.scss +5 -5
- package/src/scss/theme/base/_reboot.scss +51 -0
- package/src/scss/theme/base/_scroll.scss +180 -0
- package/src/scss/theme/base/_svg.scss +49 -0
- package/src/scss/theme/base/_text.scss +23 -0
- package/src/scss/theme/base/_vars.scss +203 -0
- package/src/scss/theme/{fonts → base/fonts}/_fontmapping-roboto.scss +0 -0
- package/src/scss/theme/{fonts → base/fonts}/_fontmapping-segoe-ui.scss +0 -0
- package/src/scss/theme/base/fonts/_index.scss +2 -0
- package/src/scss/weavy-chat.scss +10 -4
- package/src/scss/weavy-messenger.scss +37 -21
- package/src/types/Chat.ts +2 -1
- package/src/types/Message.ts +3 -1
- package/src/types/types.ts +56 -5
- package/src/ui/Icon.tsx +1 -1
- package/src/ui/Spinner.tsx +3 -2
- package/src/utils/infiniteScroll.js +12 -3
- package/src/utils/postal-parent.js +398 -0
- package/src/utils/promise.js +187 -0
- package/src/utils/scrollbarDetection.js +71 -9
- package/src/utils/utils.js +547 -0
- package/dist/cjs/types/hooks/useConversations.d.ts +0 -1
- package/dist/esm/types/hooks/useConversations.d.ts +0 -1
- package/src/scss/theme/_attachments.scss +0 -74
- package/src/scss/theme/_cm-editor.scss +0 -42
- package/src/scss/theme/_colors.scss +0 -520
- package/src/scss/theme/_config.scss +0 -6
- package/src/scss/theme/_inputs.scss +0 -28
- package/src/scss/theme/_nav.scss +0 -52
- package/src/scss/theme/_palette.scss +0 -165
- package/src/scss/theme/_preview-icon.scss +0 -41
- package/src/scss/theme/_reboot.scss +0 -41
- package/src/scss/theme/_root.scss +0 -2
- package/src/scss/theme/_scroll.scss +0 -55
- package/src/scss/theme/_search.scss +0 -68
- package/src/scss/theme/_turbo.scss +0 -17
- package/src/scss/theme/_variables.scss +0 -139
- package/src/scss/theme/bootstrap/_accordion.scss +0 -146
- package/src/scss/theme/bootstrap/_alert.scss +0 -71
- package/src/scss/theme/bootstrap/_badge.scss +0 -38
- package/src/scss/theme/bootstrap/_breadcrumb.scss +0 -40
- package/src/scss/theme/bootstrap/_button-group.scss +0 -142
- package/src/scss/theme/bootstrap/_buttons.scss +0 -186
- package/src/scss/theme/bootstrap/_card.scss +0 -234
- package/src/scss/theme/bootstrap/_carousel.scss +0 -229
- package/src/scss/theme/bootstrap/_close.scss +0 -40
- package/src/scss/theme/bootstrap/_containers.scss +0 -41
- package/src/scss/theme/bootstrap/_dropdown.scss +0 -248
- package/src/scss/theme/bootstrap/_forms.scss +0 -9
- package/src/scss/theme/bootstrap/_functions.scss +0 -302
- package/src/scss/theme/bootstrap/_grid.scss +0 -33
- package/src/scss/theme/bootstrap/_helpers.scss +0 -10
- package/src/scss/theme/bootstrap/_images.scss +0 -42
- package/src/scss/theme/bootstrap/_list-group.scss +0 -191
- package/src/scss/theme/bootstrap/_maps.scss +0 -54
- package/src/scss/theme/bootstrap/_mixins.scss +0 -43
- package/src/scss/theme/bootstrap/_modal.scss +0 -237
- package/src/scss/theme/bootstrap/_nav.scss +0 -172
- package/src/scss/theme/bootstrap/_navbar.scss +0 -276
- package/src/scss/theme/bootstrap/_offcanvas.scss +0 -143
- package/src/scss/theme/bootstrap/_pagination.scss +0 -109
- package/src/scss/theme/bootstrap/_placeholders.scss +0 -51
- package/src/scss/theme/bootstrap/_popover.scss +0 -196
- package/src/scss/theme/bootstrap/_progress.scss +0 -59
- package/src/scss/theme/bootstrap/_reboot.scss +0 -610
- package/src/scss/theme/bootstrap/_root.scss +0 -73
- package/src/scss/theme/bootstrap/_spinners.scss +0 -85
- package/src/scss/theme/bootstrap/_tables.scss +0 -164
- package/src/scss/theme/bootstrap/_toasts.scss +0 -70
- package/src/scss/theme/bootstrap/_tooltip.scss +0 -120
- package/src/scss/theme/bootstrap/_transitions.scss +0 -27
- package/src/scss/theme/bootstrap/_type.scss +0 -106
- package/src/scss/theme/bootstrap/_utilities.scss +0 -647
- package/src/scss/theme/bootstrap/_variables.scss +0 -1633
- package/src/scss/theme/bootstrap/forms/_floating-labels.scss +0 -74
- package/src/scss/theme/bootstrap/forms/_form-check.scss +0 -175
- package/src/scss/theme/bootstrap/forms/_form-control.scss +0 -194
- package/src/scss/theme/bootstrap/forms/_form-range.scss +0 -91
- package/src/scss/theme/bootstrap/forms/_form-select.scss +0 -71
- package/src/scss/theme/bootstrap/forms/_form-text.scss +0 -11
- package/src/scss/theme/bootstrap/forms/_input-group.scss +0 -129
- package/src/scss/theme/bootstrap/forms/_labels.scss +0 -36
- package/src/scss/theme/bootstrap/forms/_validation.scss +0 -12
- package/src/scss/theme/bootstrap/helpers/_clearfix.scss +0 -3
- package/src/scss/theme/bootstrap/helpers/_color-bg.scss +0 -10
- package/src/scss/theme/bootstrap/helpers/_colored-links.scss +0 -12
- package/src/scss/theme/bootstrap/helpers/_position.scss +0 -36
- package/src/scss/theme/bootstrap/helpers/_ratio.scss +0 -26
- package/src/scss/theme/bootstrap/helpers/_stacks.scss +0 -15
- package/src/scss/theme/bootstrap/helpers/_stretched-link.scss +0 -15
- package/src/scss/theme/bootstrap/helpers/_text-truncation.scss +0 -7
- package/src/scss/theme/bootstrap/helpers/_visually-hidden.scss +0 -8
- package/src/scss/theme/bootstrap/helpers/_vr.scss +0 -8
- package/src/scss/theme/bootstrap/mixins/_alert.scss +0 -15
- package/src/scss/theme/bootstrap/mixins/_backdrop.scss +0 -14
- package/src/scss/theme/bootstrap/mixins/_banner.scss +0 -9
- package/src/scss/theme/bootstrap/mixins/_border-radius.scss +0 -78
- package/src/scss/theme/bootstrap/mixins/_box-shadow.scss +0 -18
- package/src/scss/theme/bootstrap/mixins/_buttons.scss +0 -70
- package/src/scss/theme/bootstrap/mixins/_caret.scss +0 -64
- package/src/scss/theme/bootstrap/mixins/_clearfix.scss +0 -9
- package/src/scss/theme/bootstrap/mixins/_color-scheme.scss +0 -7
- package/src/scss/theme/bootstrap/mixins/_container.scss +0 -11
- package/src/scss/theme/bootstrap/mixins/_deprecate.scss +0 -10
- package/src/scss/theme/bootstrap/mixins/_forms.scss +0 -152
- package/src/scss/theme/bootstrap/mixins/_gradients.scss +0 -47
- package/src/scss/theme/bootstrap/mixins/_grid.scss +0 -151
- package/src/scss/theme/bootstrap/mixins/_image.scss +0 -16
- package/src/scss/theme/bootstrap/mixins/_list-group.scss +0 -24
- package/src/scss/theme/bootstrap/mixins/_lists.scss +0 -7
- package/src/scss/theme/bootstrap/mixins/_pagination.scss +0 -10
- package/src/scss/theme/bootstrap/mixins/_reset-text.scss +0 -17
- package/src/scss/theme/bootstrap/mixins/_resize.scss +0 -6
- package/src/scss/theme/bootstrap/mixins/_table-variants.scss +0 -24
- package/src/scss/theme/bootstrap/mixins/_text-truncate.scss +0 -8
- package/src/scss/theme/bootstrap/mixins/_transition.scss +0 -26
- package/src/scss/theme/bootstrap/mixins/_utilities.scss +0 -97
- package/src/scss/theme/bootstrap/mixins/_visually-hidden.scss +0 -29
- package/src/scss/theme/bootstrap/utilities/_api.scss +0 -47
- package/src/scss/theme/bootstrap/vendor/_rfs.scss +0 -354
- package/src/scss/theme/bs/_badge.scss +0 -20
- package/src/scss/theme/bs/_buttons.scss +0 -185
- package/src/scss/theme/bs/_dropdown.scss +0 -86
- package/src/scss/theme/bs/_forms.scss +0 -161
- package/src/scss/theme/bs/_list-group.scss +0 -73
- package/src/scss/theme/bs/_tables.scss +0 -46
- package/src/scss/theme/fonts/_index.scss +0 -2
- package/src/scss/theme/mixins/_palette.scss +0 -165
- package/src/scss/theme/mixins/_scrollbar.scss +0 -110
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React,{createContext,useState,Children,useRef,useCallback,useEffect,useContext,useLayoutEffect}from"react";import ReactDOM,{flushSync}from"react-dom";function __rest(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n}function __awaiter(e,t,n,a){return new(n||(n=Promise))((function(o,s){function r(e){try{f(a.next(e))}catch(e){s(e)}}function i(e){try{f(a.throw(e))}catch(e){s(e)}}function f(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,i)}f((a=a.apply(e,t||[])).next())}))}class HttpError extends Error{constructor(e,t){const n=new.target.prototype;super(`${e}: Status code '${t}'`),this.statusCode=t,this.__proto__=n}}class TimeoutError extends Error{constructor(e="A timeout occurred."){const t=new.target.prototype;super(e),this.__proto__=t}}class AbortError extends Error{constructor(e="An abort occurred."){const t=new.target.prototype;super(e),this.__proto__=t}}class UnsupportedTransportError extends Error{constructor(e,t){const n=new.target.prototype;super(e),this.transport=t,this.errorType="UnsupportedTransportError",this.__proto__=n}}class DisabledTransportError extends Error{constructor(e,t){const n=new.target.prototype;super(e),this.transport=t,this.errorType="DisabledTransportError",this.__proto__=n}}class FailedToStartTransportError extends Error{constructor(e,t){const n=new.target.prototype;super(e),this.transport=t,this.errorType="FailedToStartTransportError",this.__proto__=n}}class FailedToNegotiateWithServerError extends Error{constructor(e){const t=new.target.prototype;super(e),this.errorType="FailedToNegotiateWithServerError",this.__proto__=t}}class AggregateErrors extends Error{constructor(e,t){const n=new.target.prototype;super(e),this.innerErrors=t,this.__proto__=n}}class HttpResponse{constructor(e,t,n){this.statusCode=e,this.statusText=t,this.content=n}}class HttpClient{get(e,t){return this.send({...t,method:"GET",url:e})}post(e,t){return this.send({...t,method:"POST",url:e})}delete(e,t){return this.send({...t,method:"DELETE",url:e})}getCookieString(e){return""}}var LogLevel;!function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Information=2]="Information",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.None=6]="None"}(LogLevel||(LogLevel={}));class NullLogger{constructor(){}log(e,t){}}NullLogger.instance=new NullLogger;const VERSION="6.0.5";class Arg{static isRequired(e,t){if(null==e)throw new Error(`The '${t}' argument is required.`)}static isNotEmpty(e,t){if(!e||e.match(/^\s*$/))throw new Error(`The '${t}' argument should not be empty.`)}static isIn(e,t,n){if(!(e in t))throw new Error(`Unknown ${n} value: ${e}.`)}}class Platform{static get isBrowser(){return"object"==typeof window&&"object"==typeof window.document}static get isWebWorker(){return"object"==typeof self&&"importScripts"in self}static get isReactNative(){return"object"==typeof window&&void 0===window.document}static get isNode(){return!this.isBrowser&&!this.isWebWorker&&!this.isReactNative}}function getDataDetail(e,t){let n="";return isArrayBuffer(e)?(n=`Binary data of length ${e.byteLength}`,t&&(n+=`. Content: '${formatArrayBuffer(e)}'`)):"string"==typeof e&&(n=`String data of length ${e.length}`,t&&(n+=`. Content: '${e}'`)),n}function formatArrayBuffer(e){const t=new Uint8Array(e);let n="";return t.forEach((e=>{n+=`0x${e<16?"0":""}${e.toString(16)} `})),n.substr(0,n.length-1)}function isArrayBuffer(e){return e&&"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}async function sendMessage(e,t,n,a,o,s,r){let i={};if(o){const e=await o();e&&(i={Authorization:`Bearer ${e}`})}const[f,c]=getUserAgentHeader();i[f]=c,e.log(LogLevel.Trace,`(${t} transport) sending data. ${getDataDetail(s,r.logMessageContent)}.`);const l=isArrayBuffer(s)?"arraybuffer":"text",u=await n.post(a,{content:s,headers:{...i,...r.headers},responseType:l,timeout:r.timeout,withCredentials:r.withCredentials});e.log(LogLevel.Trace,`(${t} transport) request complete. Response status: ${u.statusCode}.`)}function createLogger(e){return void 0===e?new ConsoleLogger(LogLevel.Information):null===e?NullLogger.instance:void 0!==e.log?e:new ConsoleLogger(e)}class SubjectSubscription{constructor(e,t){this._subject=e,this._observer=t}dispose(){const e=this._subject.observers.indexOf(this._observer);e>-1&&this._subject.observers.splice(e,1),0===this._subject.observers.length&&this._subject.cancelCallback&&this._subject.cancelCallback().catch((e=>{}))}}class ConsoleLogger{constructor(e){this._minLevel=e,this.out=console}log(e,t){if(e>=this._minLevel){const n=`[${(new Date).toISOString()}] ${LogLevel[e]}: ${t}`;switch(e){case LogLevel.Critical:case LogLevel.Error:this.out.error(n);break;case LogLevel.Warning:this.out.warn(n);break;case LogLevel.Information:this.out.info(n);break;default:this.out.log(n)}}}}function getUserAgentHeader(){let e="X-SignalR-User-Agent";return Platform.isNode&&(e="User-Agent"),[e,constructUserAgent(VERSION,getOsName(),getRuntime(),getRuntimeVersion())]}function constructUserAgent(e,t,n,a){let o="Microsoft SignalR/";const s=e.split(".");return o+=`${s[0]}.${s[1]}`,o+=` (${e}; `,o+=t&&""!==t?`${t}; `:"Unknown OS; ",o+=`${n}`,o+=a?`; ${a}`:"; Unknown Runtime Version",o+=")",o}function getOsName(){if(!Platform.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}function getRuntimeVersion(){if(Platform.isNode)return process.versions.node}function getRuntime(){return Platform.isNode?"NodeJS":"Browser"}function getErrorString(e){return e.stack?e.stack:e.message?e.message:`${e}`}function getGlobalThis(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("could not find global")}class FetchHttpClient extends HttpClient{constructor(e){if(super(),this._logger=e,"undefined"==typeof fetch){const e="function"==typeof __webpack_require__?__non_webpack_require__:require;this._jar=new(e("tough-cookie").CookieJar),this._fetchType=e("node-fetch"),this._fetchType=e("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(getGlobalThis());if("undefined"==typeof AbortController){const e="function"==typeof __webpack_require__?__non_webpack_require__:require;this._abortControllerType=e("abort-controller")}else this._abortControllerType=AbortController}async send(e){if(e.abortSignal&&e.abortSignal.aborted)throw new AbortError;if(!e.method)throw new Error("No method defined.");if(!e.url)throw new Error("No url defined.");const t=new this._abortControllerType;let n;e.abortSignal&&(e.abortSignal.onabort=()=>{t.abort(),n=new AbortError});let a,o=null;if(e.timeout){const a=e.timeout;o=setTimeout((()=>{t.abort(),this._logger.log(LogLevel.Warning,"Timeout from HTTP request."),n=new TimeoutError}),a)}try{a=await this._fetchType(e.url,{body:e.content,cache:"no-cache",credentials:!0===e.withCredentials?"include":"same-origin",headers:{"Content-Type":"text/plain;charset=UTF-8","X-Requested-With":"XMLHttpRequest",...e.headers},method:e.method,mode:"cors",redirect:"follow",signal:t.signal})}catch(e){if(n)throw n;throw this._logger.log(LogLevel.Warning,`Error from HTTP request. ${e}.`),e}finally{o&&clearTimeout(o),e.abortSignal&&(e.abortSignal.onabort=null)}if(!a.ok){const e=await deserializeContent(a,"text");throw new HttpError(e||a.statusText,a.status)}const s=deserializeContent(a,e.responseType),r=await s;return new HttpResponse(a.status,a.statusText,r)}getCookieString(e){let t="";return Platform.isNode&&this._jar&&this._jar.getCookies(e,((e,n)=>t=n.join("; "))),t}}function deserializeContent(e,t){let n;switch(t){case"arraybuffer":n=e.arrayBuffer();break;case"text":default:n=e.text();break;case"blob":case"document":case"json":throw new Error(`${t} is not supported.`)}return n}class XhrHttpClient extends HttpClient{constructor(e){super(),this._logger=e}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new AbortError):e.method?e.url?new Promise(((t,n)=>{const a=new XMLHttpRequest;a.open(e.method,e.url,!0),a.withCredentials=void 0===e.withCredentials||e.withCredentials,a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.setRequestHeader("Content-Type","text/plain;charset=UTF-8");const o=e.headers;o&&Object.keys(o).forEach((e=>{a.setRequestHeader(e,o[e])})),e.responseType&&(a.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=()=>{a.abort(),n(new AbortError)}),e.timeout&&(a.timeout=e.timeout),a.onload=()=>{e.abortSignal&&(e.abortSignal.onabort=null),a.status>=200&&a.status<300?t(new HttpResponse(a.status,a.statusText,a.response||a.responseText)):n(new HttpError(a.response||a.responseText||a.statusText,a.status))},a.onerror=()=>{this._logger.log(LogLevel.Warning,`Error from HTTP request. ${a.status}: ${a.statusText}.`),n(new HttpError(a.statusText,a.status))},a.ontimeout=()=>{this._logger.log(LogLevel.Warning,"Timeout from HTTP request."),n(new TimeoutError)},a.send(e.content||"")})):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class DefaultHttpClient extends HttpClient{constructor(e){if(super(),"undefined"!=typeof fetch||Platform.isNode)this._httpClient=new FetchHttpClient(e);else{if("undefined"==typeof XMLHttpRequest)throw new Error("No usable HttpClient found.");this._httpClient=new XhrHttpClient(e)}}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new AbortError):e.method?e.url?this._httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(e){return this._httpClient.getCookieString(e)}}class TextMessageFormat{static write(e){return`${e}${TextMessageFormat.RecordSeparator}`}static parse(e){if(e[e.length-1]!==TextMessageFormat.RecordSeparator)throw new Error("Message is incomplete.");const t=e.split(TextMessageFormat.RecordSeparator);return t.pop(),t}}TextMessageFormat.RecordSeparatorCode=30,TextMessageFormat.RecordSeparator=String.fromCharCode(TextMessageFormat.RecordSeparatorCode);class HandshakeProtocol{writeHandshakeRequest(e){return TextMessageFormat.write(JSON.stringify(e))}parseHandshakeResponse(e){let t,n;if(isArrayBuffer(e)){const a=new Uint8Array(e),o=a.indexOf(TextMessageFormat.RecordSeparatorCode);if(-1===o)throw new Error("Message is incomplete.");const s=o+1;t=String.fromCharCode.apply(null,Array.prototype.slice.call(a.slice(0,s))),n=a.byteLength>s?a.slice(s).buffer:null}else{const a=e,o=a.indexOf(TextMessageFormat.RecordSeparator);if(-1===o)throw new Error("Message is incomplete.");const s=o+1;t=a.substring(0,s),n=a.length>s?a.substring(s):null}const a=TextMessageFormat.parse(t),o=JSON.parse(a[0]);if(o.type)throw new Error("Expected a handshake response from the server.");return[n,o]}}var MessageType;!function(e){e[e.Invocation=1]="Invocation",e[e.StreamItem=2]="StreamItem",e[e.Completion=3]="Completion",e[e.StreamInvocation=4]="StreamInvocation",e[e.CancelInvocation=5]="CancelInvocation",e[e.Ping=6]="Ping",e[e.Close=7]="Close"}(MessageType||(MessageType={}));class Subject{constructor(){this.observers=[]}next(e){for(const t of this.observers)t.next(e)}error(e){for(const t of this.observers)t.error&&t.error(e)}complete(){for(const e of this.observers)e.complete&&e.complete()}subscribe(e){return this.observers.push(e),new SubjectSubscription(this,e)}}const DEFAULT_TIMEOUT_IN_MS=3e4,DEFAULT_PING_INTERVAL_IN_MS=15e3;var HubConnectionState;!function(e){e.Disconnected="Disconnected",e.Connecting="Connecting",e.Connected="Connected",e.Disconnecting="Disconnecting",e.Reconnecting="Reconnecting"}(HubConnectionState||(HubConnectionState={}));class HubConnection{constructor(e,t,n,a){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(LogLevel.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://docs.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},Arg.isRequired(e,"connection"),Arg.isRequired(t,"logger"),Arg.isRequired(n,"protocol"),this.serverTimeoutInMilliseconds=DEFAULT_TIMEOUT_IN_MS,this.keepAliveIntervalInMilliseconds=DEFAULT_PING_INTERVAL_IN_MS,this._logger=t,this._protocol=n,this.connection=e,this._reconnectPolicy=a,this._handshakeProtocol=new HandshakeProtocol,this.connection.onreceive=e=>this._processIncomingData(e),this.connection.onclose=e=>this._connectionClosed(e),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=HubConnectionState.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:MessageType.Ping})}static create(e,t,n,a){return new HubConnection(e,t,n,a)}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(e){if(this._connectionState!==HubConnectionState.Disconnected&&this._connectionState!==HubConnectionState.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==HubConnectionState.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=HubConnectionState.Connecting,this._logger.log(LogLevel.Debug,"Starting HubConnection.");try{await this._startInternal(),Platform.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=HubConnectionState.Connected,this._connectionStarted=!0,this._logger.log(LogLevel.Debug,"HubConnection connected successfully.")}catch(e){return this._connectionState=HubConnectionState.Disconnected,this._logger.log(LogLevel.Debug,`HubConnection failed to start successfully because of error '${e}'.`),Promise.reject(e)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const e=new Promise(((e,t)=>{this._handshakeResolver=e,this._handshakeRejecter=t}));await this.connection.start(this._protocol.transferFormat);try{const t={protocol:this._protocol.name,version:this._protocol.version};if(this._logger.log(LogLevel.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(t)),this._logger.log(LogLevel.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await e,this._stopDuringStartError)throw this._stopDuringStartError}catch(e){throw this._logger.log(LogLevel.Debug,`Hub handshake failed with error '${e}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(e),e}}async stop(){const e=this._startPromise;this._stopPromise=this._stopInternal(),await this._stopPromise;try{await e}catch(e){}}_stopInternal(e){return this._connectionState===HubConnectionState.Disconnected?(this._logger.log(LogLevel.Debug,`Call to HubConnection.stop(${e}) ignored because it is already in the disconnected state.`),Promise.resolve()):this._connectionState===HubConnectionState.Disconnecting?(this._logger.log(LogLevel.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState=HubConnectionState.Disconnecting,this._logger.log(LogLevel.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(LogLevel.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=e||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(e)))}stream(e,...t){const[n,a]=this._replaceStreamingParams(t),o=this._createStreamInvocation(e,t,a);let s;const r=new Subject;return r.cancelCallback=()=>{const e=this._createCancelInvocation(o.invocationId);return delete this._callbacks[o.invocationId],s.then((()=>this._sendWithProtocol(e)))},this._callbacks[o.invocationId]=(e,t)=>{t?r.error(t):e&&(e.type===MessageType.Completion?e.error?r.error(new Error(e.error)):r.complete():r.next(e.item))},s=this._sendWithProtocol(o).catch((e=>{r.error(e),delete this._callbacks[o.invocationId]})),this._launchStreams(n,s),r}_sendMessage(e){return this._resetKeepAliveInterval(),this.connection.send(e)}_sendWithProtocol(e){return this._sendMessage(this._protocol.writeMessage(e))}send(e,...t){const[n,a]=this._replaceStreamingParams(t),o=this._sendWithProtocol(this._createInvocation(e,t,!0,a));return this._launchStreams(n,o),o}invoke(e,...t){const[n,a]=this._replaceStreamingParams(t),o=this._createInvocation(e,t,!1,a);return new Promise(((e,t)=>{this._callbacks[o.invocationId]=(n,a)=>{a?t(a):n&&(n.type===MessageType.Completion?n.error?t(new Error(n.error)):e(n.result):t(new Error(`Unexpected message type: ${n.type}`)))};const a=this._sendWithProtocol(o).catch((e=>{t(e),delete this._callbacks[o.invocationId]}));this._launchStreams(n,a)}))}on(e,t){e&&t&&(e=e.toLowerCase(),this._methods[e]||(this._methods[e]=[]),-1===this._methods[e].indexOf(t)&&this._methods[e].push(t))}off(e,t){if(!e)return;e=e.toLowerCase();const n=this._methods[e];if(n)if(t){const a=n.indexOf(t);-1!==a&&(n.splice(a,1),0===n.length&&delete this._methods[e])}else delete this._methods[e]}onclose(e){e&&this._closedCallbacks.push(e)}onreconnecting(e){e&&this._reconnectingCallbacks.push(e)}onreconnected(e){e&&this._reconnectedCallbacks.push(e)}_processIncomingData(e){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(e=this._processHandshakeResponse(e),this._receivedHandshakeResponse=!0),e){const t=this._protocol.parseMessages(e,this._logger);for(const e of t)switch(e.type){case MessageType.Invocation:this._invokeClientMethod(e);break;case MessageType.StreamItem:case MessageType.Completion:{const t=this._callbacks[e.invocationId];if(t){e.type===MessageType.Completion&&delete this._callbacks[e.invocationId];try{t(e)}catch(e){this._logger.log(LogLevel.Error,`Stream callback threw error: ${getErrorString(e)}`)}}break}case MessageType.Ping:break;case MessageType.Close:{this._logger.log(LogLevel.Information,"Close message received from server.");const t=e.error?new Error("Server returned an error on close: "+e.error):void 0;!0===e.allowReconnect?this.connection.stop(t):this._stopPromise=this._stopInternal(t);break}default:this._logger.log(LogLevel.Warning,`Invalid message type: ${e.type}.`)}}this._resetTimeoutPeriod()}_processHandshakeResponse(e){let t,n;try{[n,t]=this._handshakeProtocol.parseHandshakeResponse(e)}catch(e){const t="Error parsing handshake response: "+e;this._logger.log(LogLevel.Error,t);const n=new Error(t);throw this._handshakeRejecter(n),n}if(t.error){const e="Server returned handshake error: "+t.error;this._logger.log(LogLevel.Error,e);const n=new Error(e);throw this._handshakeRejecter(n),n}return this._logger.log(LogLevel.Debug,"Server handshake complete."),this._handshakeResolver(),n}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this._timeoutHandle=setTimeout((()=>this.serverTimeout()),this.serverTimeoutInMilliseconds),void 0!==this._pingServerHandle))){let e=this._nextKeepAlive-(new Date).getTime();e<0&&(e=0),this._pingServerHandle=setTimeout((async()=>{if(this._connectionState===HubConnectionState.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}}),e)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}_invokeClientMethod(e){const t=this._methods[e.target.toLowerCase()];if(t){try{t.forEach((t=>t.apply(this,e.arguments)))}catch(t){this._logger.log(LogLevel.Error,`A callback for the method ${e.target.toLowerCase()} threw error '${t}'.`)}if(e.invocationId){const e="Server requested a response, which is not supported in this version of the client.";this._logger.log(LogLevel.Error,e),this._stopPromise=this._stopInternal(new Error(e))}}else this._logger.log(LogLevel.Warning,`No client method with the name '${e.target}' found.`)}_connectionClosed(e){this._logger.log(LogLevel.Debug,`HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||e||new Error("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===HubConnectionState.Disconnecting?this._completeClose(e):this._connectionState===HubConnectionState.Connected&&this._reconnectPolicy?this._reconnect(e):this._connectionState===HubConnectionState.Connected&&this._completeClose(e)}_completeClose(e){if(this._connectionStarted){this._connectionState=HubConnectionState.Disconnected,this._connectionStarted=!1,Platform.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach((t=>t.apply(this,[e])))}catch(t){this._logger.log(LogLevel.Error,`An onclose callback called with error '${e}' threw error '${t}'.`)}}}async _reconnect(e){const t=Date.now();let n=0,a=void 0!==e?e:new Error("Attempting to reconnect due to a unknown error."),o=this._getNextRetryDelay(n++,0,a);if(null===o)return this._logger.log(LogLevel.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void this._completeClose(e);if(this._connectionState=HubConnectionState.Reconnecting,e?this._logger.log(LogLevel.Information,`Connection reconnecting because of error '${e}'.`):this._logger.log(LogLevel.Information,"Connection reconnecting."),0!==this._reconnectingCallbacks.length){try{this._reconnectingCallbacks.forEach((t=>t.apply(this,[e])))}catch(t){this._logger.log(LogLevel.Error,`An onreconnecting callback called with error '${e}' threw error '${t}'.`)}if(this._connectionState!==HubConnectionState.Reconnecting)return void this._logger.log(LogLevel.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;null!==o;){if(this._logger.log(LogLevel.Information,`Reconnect attempt number ${n} will start in ${o} ms.`),await new Promise((e=>{this._reconnectDelayHandle=setTimeout(e,o)})),this._reconnectDelayHandle=void 0,this._connectionState!==HubConnectionState.Reconnecting)return void this._logger.log(LogLevel.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(await this._startInternal(),this._connectionState=HubConnectionState.Connected,this._logger.log(LogLevel.Information,"HubConnection reconnected successfully."),0!==this._reconnectedCallbacks.length)try{this._reconnectedCallbacks.forEach((e=>e.apply(this,[this.connection.connectionId])))}catch(e){this._logger.log(LogLevel.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${e}'.`)}return}catch(e){if(this._logger.log(LogLevel.Information,`Reconnect attempt failed because of error '${e}'.`),this._connectionState!==HubConnectionState.Reconnecting)return this._logger.log(LogLevel.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(this._connectionState===HubConnectionState.Disconnecting&&this._completeClose());a=e instanceof Error?e:new Error(e.toString()),o=this._getNextRetryDelay(n++,Date.now()-t,a)}}this._logger.log(LogLevel.Information,`Reconnect retries have been exhausted after ${Date.now()-t} ms and ${n} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(e,t,n){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:t,previousRetryCount:e,retryReason:n})}catch(n){return this._logger.log(LogLevel.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${e}, ${t}) threw error '${n}'.`),null}}_cancelCallbacksWithError(e){const t=this._callbacks;this._callbacks={},Object.keys(t).forEach((n=>{const a=t[n];try{a(null,e)}catch(t){this._logger.log(LogLevel.Error,`Stream 'error' callback called with '${e}' threw error: ${getErrorString(t)}`)}}))}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(e,t,n,a){if(n)return 0!==a.length?{arguments:t,streamIds:a,target:e,type:MessageType.Invocation}:{arguments:t,target:e,type:MessageType.Invocation};{const n=this._invocationId;return this._invocationId++,0!==a.length?{arguments:t,invocationId:n.toString(),streamIds:a,target:e,type:MessageType.Invocation}:{arguments:t,invocationId:n.toString(),target:e,type:MessageType.Invocation}}}_launchStreams(e,t){if(0!==e.length){t||(t=Promise.resolve());for(const n in e)e[n].subscribe({complete:()=>{t=t.then((()=>this._sendWithProtocol(this._createCompletionMessage(n))))},error:e=>{let a;a=e instanceof Error?e.message:e&&e.toString?e.toString():"Unknown error",t=t.then((()=>this._sendWithProtocol(this._createCompletionMessage(n,a))))},next:e=>{t=t.then((()=>this._sendWithProtocol(this._createStreamItemMessage(n,e))))}})}}_replaceStreamingParams(e){const t=[],n=[];for(let a=0;a<e.length;a++){const o=e[a];if(this._isObservable(o)){const s=this._invocationId;this._invocationId++,t[s]=o,n.push(s.toString()),e.splice(a,1)}}return[t,n]}_isObservable(e){return e&&e.subscribe&&"function"==typeof e.subscribe}_createStreamInvocation(e,t,n){const a=this._invocationId;return this._invocationId++,0!==n.length?{arguments:t,invocationId:a.toString(),streamIds:n,target:e,type:MessageType.StreamInvocation}:{arguments:t,invocationId:a.toString(),target:e,type:MessageType.StreamInvocation}}_createCancelInvocation(e){return{invocationId:e,type:MessageType.CancelInvocation}}_createStreamItemMessage(e,t){return{invocationId:e,item:t,type:MessageType.StreamItem}}_createCompletionMessage(e,t,n){return t?{error:t,invocationId:e,type:MessageType.Completion}:{invocationId:e,result:n,type:MessageType.Completion}}}const DEFAULT_RETRY_DELAYS_IN_MILLISECONDS=[0,2e3,1e4,3e4,null];class DefaultReconnectPolicy{constructor(e){this._retryDelays=void 0!==e?[...e,null]:DEFAULT_RETRY_DELAYS_IN_MILLISECONDS}nextRetryDelayInMilliseconds(e){return this._retryDelays[e.previousRetryCount]}}class HeaderNames{}var HttpTransportType,TransferFormat;HeaderNames.Authorization="Authorization",HeaderNames.Cookie="Cookie",function(e){e[e.None=0]="None",e[e.WebSockets=1]="WebSockets",e[e.ServerSentEvents=2]="ServerSentEvents",e[e.LongPolling=4]="LongPolling"}(HttpTransportType||(HttpTransportType={})),function(e){e[e.Text=1]="Text",e[e.Binary=2]="Binary"}(TransferFormat||(TransferFormat={}));class AbortController$1{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}}class LongPollingTransport{constructor(e,t,n,a){this._httpClient=e,this._accessTokenFactory=t,this._logger=n,this._pollAbort=new AbortController$1,this._options=a,this._running=!1,this.onreceive=null,this.onclose=null}get pollAborted(){return this._pollAbort.aborted}async connect(e,t){if(Arg.isRequired(e,"url"),Arg.isRequired(t,"transferFormat"),Arg.isIn(t,TransferFormat,"transferFormat"),this._url=e,this._logger.log(LogLevel.Trace,"(LongPolling transport) Connecting."),t===TransferFormat.Binary&&"undefined"!=typeof XMLHttpRequest&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[n,a]=getUserAgentHeader(),o={[n]:a,...this._options.headers},s={abortSignal:this._pollAbort.signal,headers:o,timeout:1e5,withCredentials:this._options.withCredentials};t===TransferFormat.Binary&&(s.responseType="arraybuffer");const r=await this._getAccessToken();this._updateHeaderToken(s,r);const i=`${e}&_=${Date.now()}`;this._logger.log(LogLevel.Trace,`(LongPolling transport) polling: ${i}.`);const f=await this._httpClient.get(i,s);200!==f.statusCode?(this._logger.log(LogLevel.Error,`(LongPolling transport) Unexpected response code: ${f.statusCode}.`),this._closeError=new HttpError(f.statusText||"",f.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,s)}async _getAccessToken(){return this._accessTokenFactory?await this._accessTokenFactory():null}_updateHeaderToken(e,t){e.headers||(e.headers={}),t?e.headers[HeaderNames.Authorization]=`Bearer ${t}`:e.headers[HeaderNames.Authorization]&&delete e.headers[HeaderNames.Authorization]}async _poll(e,t){try{for(;this._running;){const n=await this._getAccessToken();this._updateHeaderToken(t,n);try{const n=`${e}&_=${Date.now()}`;this._logger.log(LogLevel.Trace,`(LongPolling transport) polling: ${n}.`);const a=await this._httpClient.get(n,t);204===a.statusCode?(this._logger.log(LogLevel.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):200!==a.statusCode?(this._logger.log(LogLevel.Error,`(LongPolling transport) Unexpected response code: ${a.statusCode}.`),this._closeError=new HttpError(a.statusText||"",a.statusCode),this._running=!1):a.content?(this._logger.log(LogLevel.Trace,`(LongPolling transport) data received. ${getDataDetail(a.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(a.content)):this._logger.log(LogLevel.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(e){this._running?e instanceof TimeoutError?this._logger.log(LogLevel.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=e,this._running=!1):this._logger.log(LogLevel.Trace,`(LongPolling transport) Poll errored after shutdown: ${e.message}`)}}}finally{this._logger.log(LogLevel.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(e){return this._running?sendMessage(this._logger,"LongPolling",this._httpClient,this._url,this._accessTokenFactory,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(LogLevel.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(LogLevel.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const e={},[t,n]=getUserAgentHeader();e[t]=n;const a={headers:{...e,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials},o=await this._getAccessToken();this._updateHeaderToken(a,o),await this._httpClient.delete(this._url,a),this._logger.log(LogLevel.Trace,"(LongPolling transport) DELETE request sent.")}finally{this._logger.log(LogLevel.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let e="(LongPolling transport) Firing onclose event.";this._closeError&&(e+=" Error: "+this._closeError),this._logger.log(LogLevel.Trace,e),this.onclose(this._closeError)}}}class ServerSentEventsTransport{constructor(e,t,n,a){this._httpClient=e,this._accessTokenFactory=t,this._logger=n,this._options=a,this.onreceive=null,this.onclose=null}async connect(e,t){if(Arg.isRequired(e,"url"),Arg.isRequired(t,"transferFormat"),Arg.isIn(t,TransferFormat,"transferFormat"),this._logger.log(LogLevel.Trace,"(SSE transport) Connecting."),this._url=e,this._accessTokenFactory){const t=await this._accessTokenFactory();t&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(t)}`)}return new Promise(((n,a)=>{let o,s=!1;if(t===TransferFormat.Text){if(Platform.isBrowser||Platform.isWebWorker)o=new this._options.EventSource(e,{withCredentials:this._options.withCredentials});else{const t=this._httpClient.getCookieString(e),n={};n.Cookie=t;const[a,s]=getUserAgentHeader();n[a]=s,o=new this._options.EventSource(e,{withCredentials:this._options.withCredentials,headers:{...n,...this._options.headers}})}try{o.onmessage=e=>{if(this.onreceive)try{this._logger.log(LogLevel.Trace,`(SSE transport) data received. ${getDataDetail(e.data,this._options.logMessageContent)}.`),this.onreceive(e.data)}catch(e){return void this._close(e)}},o.onerror=e=>{s?this._close():a(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},o.onopen=()=>{this._logger.log(LogLevel.Information,`SSE connected to ${this._url}`),this._eventSource=o,s=!0,n()}}catch(e){return void a(e)}}else a(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))}))}async send(e){return this._eventSource?sendMessage(this._logger,"SSE",this._httpClient,this._url,this._accessTokenFactory,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(e){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(e))}}class WebSocketTransport{constructor(e,t,n,a,o,s){this._logger=n,this._accessTokenFactory=t,this._logMessageContent=a,this._webSocketConstructor=o,this._httpClient=e,this.onreceive=null,this.onclose=null,this._headers=s}async connect(e,t){if(Arg.isRequired(e,"url"),Arg.isRequired(t,"transferFormat"),Arg.isIn(t,TransferFormat,"transferFormat"),this._logger.log(LogLevel.Trace,"(WebSockets transport) Connecting."),this._accessTokenFactory){const t=await this._accessTokenFactory();t&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(t)}`)}return new Promise(((n,a)=>{let o;e=e.replace(/^http/,"ws");const s=this._httpClient.getCookieString(e);let r=!1;if(Platform.isNode){const t={},[n,a]=getUserAgentHeader();t[n]=a,s&&(t[HeaderNames.Cookie]=`${s}`),o=new this._webSocketConstructor(e,void 0,{headers:{...t,...this._headers}})}o||(o=new this._webSocketConstructor(e)),t===TransferFormat.Binary&&(o.binaryType="arraybuffer"),o.onopen=t=>{this._logger.log(LogLevel.Information,`WebSocket connected to ${e}.`),this._webSocket=o,r=!0,n()},o.onerror=e=>{let t=null;t="undefined"!=typeof ErrorEvent&&e instanceof ErrorEvent?e.error:"There was an error with the transport",this._logger.log(LogLevel.Information,`(WebSockets transport) ${t}.`)},o.onmessage=e=>{if(this._logger.log(LogLevel.Trace,`(WebSockets transport) data received. ${getDataDetail(e.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(e.data)}catch(e){return void this._close(e)}},o.onclose=e=>{if(r)this._close(e);else{let t=null;t="undefined"!=typeof ErrorEvent&&e instanceof ErrorEvent?e.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",a(new Error(t))}}}))}send(e){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(LogLevel.Trace,`(WebSockets transport) sending data. ${getDataDetail(e,this._logMessageContent)}.`),this._webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(e){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(LogLevel.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this._isCloseEvent(e)||!1!==e.wasClean&&1e3===e.code?e instanceof Error?this.onclose(e):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${e.code} (${e.reason||"no reason given"}).`)))}_isCloseEvent(e){return e&&"boolean"==typeof e.wasClean&&"number"==typeof e.code}}const MAX_REDIRECTS=100;class HttpConnection{constructor(e,t={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,Arg.isRequired(e,"url"),this._logger=createLogger(t.logger),this.baseUrl=this._resolveUrl(e),(t=t||{}).logMessageContent=void 0!==t.logMessageContent&&t.logMessageContent,"boolean"!=typeof t.withCredentials&&void 0!==t.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");t.withCredentials=void 0===t.withCredentials||t.withCredentials,t.timeout=void 0===t.timeout?1e5:t.timeout;let n=null,a=null;if(Platform.isNode&&"undefined"!=typeof require){const e="function"==typeof __webpack_require__?__non_webpack_require__:require;n=e("ws"),a=e("eventsource")}Platform.isNode||"undefined"==typeof WebSocket||t.WebSocket?Platform.isNode&&!t.WebSocket&&n&&(t.WebSocket=n):t.WebSocket=WebSocket,Platform.isNode||"undefined"==typeof EventSource||t.EventSource?Platform.isNode&&!t.EventSource&&void 0!==a&&(t.EventSource=a):t.EventSource=EventSource,this._httpClient=t.httpClient||new DefaultHttpClient(this._logger),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=t,this.onreceive=null,this.onclose=null}async start(e){if(e=e||TransferFormat.Binary,Arg.isIn(e,TransferFormat,"transferFormat"),this._logger.log(LogLevel.Debug,`Starting connection with transfer format '${TransferFormat[e]}'.`),"Disconnected"!==this._connectionState)return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(e),await this._startInternalPromise,"Disconnecting"===this._connectionState){const e="Failed to start the HttpConnection before stop() was called.";return this._logger.log(LogLevel.Error,e),await this._stopPromise,Promise.reject(new Error(e))}if("Connected"!==this._connectionState){const e="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(LogLevel.Error,e),Promise.reject(new Error(e))}this._connectionStarted=!0}send(e){return"Connected"!==this._connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new TransportSendQueue(this.transport)),this._sendQueue.send(e))}async stop(e){return"Disconnected"===this._connectionState?(this._logger.log(LogLevel.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):"Disconnecting"===this._connectionState?(this._logger.log(LogLevel.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState="Disconnecting",this._stopPromise=new Promise((e=>{this._stopPromiseResolver=e})),await this._stopInternal(e),void await this._stopPromise)}async _stopInternal(e){this._stopError=e;try{await this._startInternalPromise}catch(e){}if(this.transport){try{await this.transport.stop()}catch(e){this._logger.log(LogLevel.Error,`HttpConnection.transport.stop() threw error '${e}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(LogLevel.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(e){let t=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory;try{if(this._options.skipNegotiation){if(this._options.transport!==HttpTransportType.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");this.transport=this._constructTransport(HttpTransportType.WebSockets),await this._startTransport(t,e)}else{let n=null,a=0;do{if(n=await this._getNegotiationResponse(t),"Disconnecting"===this._connectionState||"Disconnected"===this._connectionState)throw new Error("The connection was stopped during negotiation.");if(n.error)throw new Error(n.error);if(n.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(n.url&&(t=n.url),n.accessToken){const e=n.accessToken;this._accessTokenFactory=()=>e}a++}while(n.url&&a<MAX_REDIRECTS);if(a===MAX_REDIRECTS&&n.url)throw new Error("Negotiate redirection limit exceeded.");await this._createTransport(t,this._options.transport,n,e)}this.transport instanceof LongPollingTransport&&(this.features.inherentKeepAlive=!0),"Connecting"===this._connectionState&&(this._logger.log(LogLevel.Debug,"The HttpConnection connected successfully."),this._connectionState="Connected")}catch(e){return this._logger.log(LogLevel.Error,"Failed to start the connection: "+e),this._connectionState="Disconnected",this.transport=void 0,this._stopPromiseResolver(),Promise.reject(e)}}async _getNegotiationResponse(e){const t={};if(this._accessTokenFactory){const e=await this._accessTokenFactory();e&&(t[HeaderNames.Authorization]=`Bearer ${e}`)}const[n,a]=getUserAgentHeader();t[n]=a;const o=this._resolveNegotiateUrl(e);this._logger.log(LogLevel.Debug,`Sending negotiation request: ${o}.`);try{const e=await this._httpClient.post(o,{content:"",headers:{...t,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials});if(200!==e.statusCode)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${e.statusCode}'`));const n=JSON.parse(e.content);return(!n.negotiateVersion||n.negotiateVersion<1)&&(n.connectionToken=n.connectionId),n}catch(e){let t="Failed to complete negotiation with the server: "+e;return e instanceof HttpError&&404===e.statusCode&&(t+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this._logger.log(LogLevel.Error,t),Promise.reject(new FailedToNegotiateWithServerError(t))}}_createConnectUrl(e,t){return t?e+(-1===e.indexOf("?")?"?":"&")+`id=${t}`:e}async _createTransport(e,t,n,a){let o=this._createConnectUrl(e,n.connectionToken);if(this._isITransport(t))return this._logger.log(LogLevel.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=t,await this._startTransport(o,a),void(this.connectionId=n.connectionId);const s=[],r=n.availableTransports||[];let i=n;for(const n of r){const r=this._resolveTransportOrError(n,t,a);if(r instanceof Error)s.push(`${n.transport} failed:`),s.push(r);else if(this._isITransport(r)){if(this.transport=r,!i){try{i=await this._getNegotiationResponse(e)}catch(e){return Promise.reject(e)}o=this._createConnectUrl(e,i.connectionToken)}try{return await this._startTransport(o,a),void(this.connectionId=i.connectionId)}catch(e){if(this._logger.log(LogLevel.Error,`Failed to start the transport '${n.transport}': ${e}`),i=void 0,s.push(new FailedToStartTransportError(`${n.transport} failed: ${e}`,HttpTransportType[n.transport])),"Connecting"!==this._connectionState){const e="Failed to select transport before stop() was called.";return this._logger.log(LogLevel.Debug,e),Promise.reject(new Error(e))}}}}return s.length>0?Promise.reject(new AggregateErrors(`Unable to connect to the server with any of the available transports. ${s.join(" ")}`,s)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(e){switch(e){case HttpTransportType.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new WebSocketTransport(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case HttpTransportType.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new ServerSentEventsTransport(this._httpClient,this._accessTokenFactory,this._logger,this._options);case HttpTransportType.LongPolling:return new LongPollingTransport(this._httpClient,this._accessTokenFactory,this._logger,this._options);default:throw new Error(`Unknown transport: ${e}.`)}}_startTransport(e,t){return this.transport.onreceive=this.onreceive,this.transport.onclose=e=>this._stopConnection(e),this.transport.connect(e,t)}_resolveTransportOrError(e,t,n){const a=HttpTransportType[e.transport];if(null==a)return this._logger.log(LogLevel.Debug,`Skipping transport '${e.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);if(!transportMatches(t,a))return this._logger.log(LogLevel.Debug,`Skipping transport '${HttpTransportType[a]}' because it was disabled by the client.`),new DisabledTransportError(`'${HttpTransportType[a]}' is disabled by the client.`,a);if(!(e.transferFormats.map((e=>TransferFormat[e])).indexOf(n)>=0))return this._logger.log(LogLevel.Debug,`Skipping transport '${HttpTransportType[a]}' because it does not support the requested transfer format '${TransferFormat[n]}'.`),new Error(`'${HttpTransportType[a]}' does not support ${TransferFormat[n]}.`);if(a===HttpTransportType.WebSockets&&!this._options.WebSocket||a===HttpTransportType.ServerSentEvents&&!this._options.EventSource)return this._logger.log(LogLevel.Debug,`Skipping transport '${HttpTransportType[a]}' because it is not supported in your environment.'`),new UnsupportedTransportError(`'${HttpTransportType[a]}' is not supported in your environment.`,a);this._logger.log(LogLevel.Debug,`Selecting transport '${HttpTransportType[a]}'.`);try{return this._constructTransport(a)}catch(e){return e}}_isITransport(e){return e&&"object"==typeof e&&"connect"in e}_stopConnection(e){if(this._logger.log(LogLevel.Debug,`HttpConnection.stopConnection(${e}) called while in state ${this._connectionState}.`),this.transport=void 0,e=this._stopError||e,this._stopError=void 0,"Disconnected"!==this._connectionState){if("Connecting"===this._connectionState)throw this._logger.log(LogLevel.Warning,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${e}) was called while the connection is still in the connecting state.`);if("Disconnecting"===this._connectionState&&this._stopPromiseResolver(),e?this._logger.log(LogLevel.Error,`Connection disconnected with error '${e}'.`):this._logger.log(LogLevel.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch((e=>{this._logger.log(LogLevel.Error,`TransportSendQueue.stop() threw error '${e}'.`)})),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(e)}catch(t){this._logger.log(LogLevel.Error,`HttpConnection.onclose(${e}) threw error '${t}'.`)}}}else this._logger.log(LogLevel.Debug,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is already in the disconnected state.`)}_resolveUrl(e){if(0===e.lastIndexOf("https://",0)||0===e.lastIndexOf("http://",0))return e;if(!Platform.isBrowser)throw new Error(`Cannot resolve '${e}'.`);const t=window.document.createElement("a");return t.href=e,this._logger.log(LogLevel.Information,`Normalizing '${e}' to '${t.href}'.`),t.href}_resolveNegotiateUrl(e){const t=e.indexOf("?");let n=e.substring(0,-1===t?e.length:t);return"/"!==n[n.length-1]&&(n+="/"),n+="negotiate",n+=-1===t?"":e.substring(t),-1===n.indexOf("negotiateVersion")&&(n+=-1===t?"?":"&",n+="negotiateVersion="+this._negotiateVersion),n}}function transportMatches(e,t){return!e||0!=(t&e)}class TransportSendQueue{constructor(e){this._transport=e,this._buffer=[],this._executing=!0,this._sendBufferedData=new PromiseSource,this._transportResult=new PromiseSource,this._sendLoopPromise=this._sendLoop()}send(e){return this._bufferData(e),this._transportResult||(this._transportResult=new PromiseSource),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(e){if(this._buffer.length&&typeof this._buffer[0]!=typeof e)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof e}`);this._buffer.push(e),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new PromiseSource;const e=this._transportResult;this._transportResult=void 0;const t="string"==typeof this._buffer[0]?this._buffer.join(""):TransportSendQueue._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(t),e.resolve()}catch(t){e.reject(t)}}}static _concatBuffers(e){const t=e.map((e=>e.byteLength)).reduce(((e,t)=>e+t)),n=new Uint8Array(t);let a=0;for(const t of e)n.set(new Uint8Array(t),a),a+=t.byteLength;return n.buffer}}class PromiseSource{constructor(){this.promise=new Promise(((e,t)=>[this._resolver,this._rejecter]=[e,t]))}resolve(){this._resolver()}reject(e){this._rejecter(e)}}const JSON_HUB_PROTOCOL_NAME="json";class JsonHubProtocol{constructor(){this.name=JSON_HUB_PROTOCOL_NAME,this.version=1,this.transferFormat=TransferFormat.Text}parseMessages(e,t){if("string"!=typeof e)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];null===t&&(t=NullLogger.instance);const n=TextMessageFormat.parse(e),a=[];for(const e of n){const n=JSON.parse(e);if("number"!=typeof n.type)throw new Error("Invalid payload.");switch(n.type){case MessageType.Invocation:this._isInvocationMessage(n);break;case MessageType.StreamItem:this._isStreamItemMessage(n);break;case MessageType.Completion:this._isCompletionMessage(n);break;case MessageType.Ping:case MessageType.Close:break;default:t.log(LogLevel.Information,"Unknown message type '"+n.type+"' ignored.");continue}a.push(n)}return a}writeMessage(e){return TextMessageFormat.write(JSON.stringify(e))}_isInvocationMessage(e){this._assertNotEmptyString(e.target,"Invalid payload for Invocation message."),void 0!==e.invocationId&&this._assertNotEmptyString(e.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(e){if(this._assertNotEmptyString(e.invocationId,"Invalid payload for StreamItem message."),void 0===e.item)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(e){if(e.result&&e.error)throw new Error("Invalid payload for Completion message.");!e.result&&e.error&&this._assertNotEmptyString(e.error,"Invalid payload for Completion message."),this._assertNotEmptyString(e.invocationId,"Invalid payload for Completion message.")}_assertNotEmptyString(e,t){if("string"!=typeof e||""===e)throw new Error(t)}}const LogLevelNameMapping={trace:LogLevel.Trace,debug:LogLevel.Debug,info:LogLevel.Information,information:LogLevel.Information,warn:LogLevel.Warning,warning:LogLevel.Warning,error:LogLevel.Error,critical:LogLevel.Critical,none:LogLevel.None};function parseLogLevel(e){const t=LogLevelNameMapping[e.toLowerCase()];if(void 0!==t)return t;throw new Error(`Unknown log level: ${e}`)}class HubConnectionBuilder{configureLogging(e){if(Arg.isRequired(e,"logging"),isLogger(e))this.logger=e;else if("string"==typeof e){const t=parseLogLevel(e);this.logger=new ConsoleLogger(t)}else this.logger=new ConsoleLogger(e);return this}withUrl(e,t){return Arg.isRequired(e,"url"),Arg.isNotEmpty(e,"url"),this.url=e,this.httpConnectionOptions="object"==typeof t?{...this.httpConnectionOptions,...t}:{...this.httpConnectionOptions,transport:t},this}withHubProtocol(e){return Arg.isRequired(e,"protocol"),this.protocol=e,this}withAutomaticReconnect(e){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return e?Array.isArray(e)?this.reconnectPolicy=new DefaultReconnectPolicy(e):this.reconnectPolicy=e:this.reconnectPolicy=new DefaultReconnectPolicy,this}build(){const e=this.httpConnectionOptions||{};if(void 0===e.logger&&(e.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const t=new HttpConnection(this.url,e);return HubConnection.create(t,this.logger||NullLogger.instance,this.protocol||new JsonHubProtocol,this.reconnectPolicy)}}function isLogger(e){return void 0!==e.log}class WeavyClient{constructor(e){this.groups=[],this.connectionEvents=[],this.token="",this.EVENT_NAMESPACE=".connection",this.EVENT_CLOSE="close",this.EVENT_RECONNECTING="reconnecting",this.EVENT_RECONNECTED="reconnected",this.url=e.url,this.tokenFactory=e.tokenFactory,this.tokenPromise=null,this.connection=(new HubConnectionBuilder).configureLogging(LogLevel.None).withUrl(this.url+"/hubs/rtm",{accessTokenFactory:()=>this.tokenFactoryInternal.call(this,!0,!0)}).withAutomaticReconnect().build(),this.isConnectionStarted=this.connection.start(),this.connection.onclose((e=>this.triggerHandler(this.EVENT_CLOSE,e))),this.connection.onreconnecting((e=>this.triggerHandler(this.EVENT_RECONNECTING,e))),this.connection.onreconnected((e=>this.triggerHandler(this.EVENT_RECONNECTED,e)))}get(e,t=!0){return __awaiter(this,void 0,void 0,(function*(){const n=yield fetch(this.url+e,{headers:{"content-type":"application/json",Authorization:"Bearer "+(yield this.tokenFactoryInternal())}});if(!n.ok){if((401===n.status||403===n.status)&&t)return yield this.tokenFactoryInternal(!0),yield this.get(e,!1);console.error(`Error calling endpoint ${e}`,n)}return n}))}post(e,t,n,a="application/json",o=!0){return __awaiter(this,void 0,void 0,(function*(){let s={Authorization:"Bearer "+(yield this.tokenFactoryInternal())};""!==a&&(s["content-type"]=a);const r=yield fetch(this.url+e,{method:t,body:n,headers:s});if(!r.ok){if((401===r.status||403===r.status)&&o)return yield this.tokenFactoryInternal(!0),yield this.post(e,t,n,a,!1);console.error(`Error calling endpoint ${e}`,r)}return r}))}getToken(e){return __awaiter(this,void 0,void 0,(function*(){return console.log("Refresh, ",e),this.token&&!e||(console.log("Getting new token..."),this.token=yield this.tokenFactory(!0)),console.log("Resolve new token..."),this.token}))}tokenFactoryInternal(e=!1,t=!1){return __awaiter(this,void 0,void 0,(function*(){if(this.token&&!e)return this.token;if(this.tokenPromise)return this.tokenPromise;{this.tokenPromise=this.tokenFactory(e);let t=yield this.tokenPromise;return this.tokenPromise=null,this.token=t,this.token}}))}subscribe(e,t,n){return __awaiter(this,void 0,void 0,(function*(){yield this.isConnectionStarted;try{var a=e?e+":"+t:t;yield this.connection.invoke("AddToGroup",a),this.groups.push(a),this.connection.on(a,n)}catch(e){console.warn("Error in AddToGroup:",e)}}))}unsubscribe(e,t,n){return __awaiter(this,void 0,void 0,(function*(){yield this.isConnectionStarted;var a=e?e+":"+t:t;const o=this.groups.findIndex((e=>e===a));if(-1!==o){this.groups=this.groups.splice(o,1);try{this.groups.find((e=>e===a))||(yield this.connection.invoke("RemoveFromGroup",a))}catch(e){console.warn("Error in RemoveFromGroup:",e)}}this.connection.off(a,n)}))}destroy(){this.connection.stop()}triggerHandler(e,...t){e=e.endsWith(this.EVENT_NAMESPACE)?e:e+this.EVENT_NAMESPACE;let n=new CustomEvent(e,{cancelable:!1});if(console.debug("triggerHandler",e),this.connectionEvents.forEach((a=>{a.name===e&&a.handler(n,...t)})),e===this.EVENT_RECONNECTED+this.EVENT_NAMESPACE)for(var a=0;a<this.groups.length;a++)this.connection.invoke("AddToGroup",this.groups[a])}}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}var Subscribable=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},_extends$1.apply(this,arguments)}var isServer="undefined"==typeof window;function noop(){}function functionalUpdate(e,t){return"function"==typeof e?e(t):e}function isValidTimeout(e){return"number"==typeof e&&e>=0&&e!==1/0}function ensureQueryKeyArray(e){return Array.isArray(e)?e:[e]}function timeUntilStale(e,t){return Math.max(e+(t||0)-Date.now(),0)}function parseQueryArgs(e,t,n){return isQueryKey(e)?"function"==typeof t?_extends$1({},n,{queryKey:e,queryFn:t}):_extends$1({},t,{queryKey:e}):e}function parseMutationArgs(e,t,n){return isQueryKey(e)?"function"==typeof t?_extends$1({},n,{mutationKey:e,mutationFn:t}):_extends$1({},t,{mutationKey:e}):"function"==typeof e?_extends$1({},t,{mutationFn:e}):_extends$1({},e)}function parseFilterArgs(e,t,n){return isQueryKey(e)?[_extends$1({},t,{queryKey:e}),n]:[e||{},t]}function mapQueryStatusFilter(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}function matchQuery(e,t){var n=e.active,a=e.exact,o=e.fetching,s=e.inactive,r=e.predicate,i=e.queryKey,f=e.stale;if(isQueryKey(i))if(a){if(t.queryHash!==hashQueryKeyByOptions(i,t.options))return!1}else if(!partialMatchKey(t.queryKey,i))return!1;var c=mapQueryStatusFilter(n,s);if("none"===c)return!1;if("all"!==c){var l=t.isActive();if("active"===c&&!l)return!1;if("inactive"===c&&l)return!1}return("boolean"!=typeof f||t.isStale()===f)&&(("boolean"!=typeof o||t.isFetching()===o)&&!(r&&!r(t)))}function matchMutation(e,t){var n=e.exact,a=e.fetching,o=e.predicate,s=e.mutationKey;if(isQueryKey(s)){if(!t.options.mutationKey)return!1;if(n){if(hashQueryKey(t.options.mutationKey)!==hashQueryKey(s))return!1}else if(!partialMatchKey(t.options.mutationKey,s))return!1}return("boolean"!=typeof a||"loading"===t.state.status===a)&&!(o&&!o(t))}function hashQueryKeyByOptions(e,t){return((null==t?void 0:t.queryKeyHashFn)||hashQueryKey)(e)}function hashQueryKey(e){return stableValueHash(ensureQueryKeyArray(e))}function stableValueHash(e){return JSON.stringify(e,(function(e,t){return isPlainObject(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function partialMatchKey(e,t){return partialDeepEqual(ensureQueryKeyArray(e),ensureQueryKeyArray(t))}function partialDeepEqual(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((function(n){return!partialDeepEqual(e[n],t[n])})))}function replaceEqualDeep(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||isPlainObject(e)&&isPlainObject(t)){for(var a=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),s=o.length,r=n?[]:{},i=0,f=0;f<s;f++){var c=n?f:o[f];r[c]=replaceEqualDeep(e[c],t[c]),r[c]===e[c]&&i++}return a===s&&i===a?e:r}return t}function shallowEqualObjects(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function isPlainObject(e){if(!hasObjectPrototype(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!hasObjectPrototype(n)&&!!n.hasOwnProperty("isPrototypeOf")}function hasObjectPrototype(e){return"[object Object]"===Object.prototype.toString.call(e)}function isQueryKey(e){return"string"==typeof e||Array.isArray(e)}function sleep(e){return new Promise((function(t){setTimeout(t,e)}))}function scheduleMicrotask(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function getAbortController(){if("function"==typeof AbortController)return new AbortController}var FocusManager=function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!isServer&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}_inheritsLoose(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setFocused(e):n.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(Subscribable),focusManager$1=new FocusManager,OnlineManager=function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!isServer&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}_inheritsLoose(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setOnline(e):n.onOnline()}))},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(e){e()}))},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(Subscribable),onlineManager=new OnlineManager;function defaultRetryDelay(e){return Math.min(1e3*Math.pow(2,e),3e4)}function isCancelable(e){return"function"==typeof(null==e?void 0:e.cancel)}var CancelledError=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function isCancelledError(e){return e instanceof CancelledError}var Retryer=function(e){var t,n,a,o,s=this,r=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){a=e,o=t}));var i=function(t){s.isResolved||(s.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),a(t))},f=function(t){s.isResolved||(s.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),o(t))};!function a(){if(!s.isResolved){var o;try{o=e.fn()}catch(e){o=Promise.reject(e)}t=function(e){if(!s.isResolved&&(f(new CancelledError(e)),null==s.abort||s.abort(),isCancelable(o)))try{o.cancel()}catch(e){}},s.isTransportCancelable=isCancelable(o),Promise.resolve(o).then(i).catch((function(t){var o,i;if(!s.isResolved){var c=null!=(o=e.retry)?o:3,l=null!=(i=e.retryDelay)?i:defaultRetryDelay,u="function"==typeof l?l(s.failureCount,t):l,_=!0===c||"number"==typeof c&&s.failureCount<c||"function"==typeof c&&c(s.failureCount,t);!r&&_?(s.failureCount++,null==e.onFail||e.onFail(s.failureCount,t),sleep(u).then((function(){if(!focusManager$1.isFocused()||!onlineManager.isOnline())return new Promise((function(t){n=t,s.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){n=void 0,s.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){r?f(t):a()}))):f(t)}}))}}()},NotifyManager=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):scheduleMicrotask((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];t.schedule((function(){e.apply(void 0,a)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&scheduleMicrotask((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}(),notifyManager=new NotifyManager,logger$1=console;function getLogger(){return logger$1}function setLogger(e){logger$1=e}var Query=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=_extends$1({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),isValidTimeout(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){clearTimeout(this.gcTimeout),this.gcTimeout=void 0},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,a,o=this.state.data,s=functionalUpdate(e,o);return(null==(n=(a=this.options).isDataEqual)?void 0:n.call(a,o,s))?s=o:!1!==this.options.structuralSharing&&(s=replaceEqualDeep(o,s)),this.dispatch({data:s,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),s},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(noop).catch(noop):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!timeUntilStale(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,a,o,s=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var r;return null==(r=this.retryer)||r.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var i=this.observers.find((function(e){return e.options.queryFn}));i&&this.setOptions(i.options)}var f=ensureQueryKeyArray(this.queryKey),c=getAbortController(),l={queryKey:f,pageParam:void 0,meta:this.meta};Object.defineProperty(l,"signal",{enumerable:!0,get:function(){if(c)return s.abortSignalConsumed=!0,c.signal}});var u,_,d={fetchOptions:t,options:this.options,queryKey:f,state:this.state,fetchFn:function(){return s.options.queryFn?(s.abortSignalConsumed=!1,s.options.queryFn(l)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(u=this.options.behavior)||u.onFetch(d));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(a=d.fetchOptions)?void 0:a.meta))||this.dispatch({type:"fetch",meta:null==(_=d.fetchOptions)?void 0:_.meta});return this.retryer=new Retryer({fn:d.fetchFn,abort:null==c||null==(o=c.abort)?void 0:o.bind(c),onSuccess:function(e){s.setData(e),null==s.cache.config.onSuccess||s.cache.config.onSuccess(e,s),0===s.cacheTime&&s.optionalRemove()},onError:function(e){isCancelledError(e)&&e.silent||s.dispatch({type:"error",error:e}),isCancelledError(e)||(null==s.cache.config.onError||s.cache.config.onError(e,s),getLogger().error(e)),0===s.cacheTime&&s.optionalRemove()},onFail:function(){s.dispatch({type:"failed"})},onPause:function(){s.dispatch({type:"pause"})},onContinue:function(){s.dispatch({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),notifyManager.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,a=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:a?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:a?"success":"idle"}},t.reducer=function(e,t){var n,a;switch(t.type){case"failed":return _extends$1({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return _extends$1({},e,{isPaused:!0});case"continue":return _extends$1({},e,{isPaused:!1});case"fetch":return _extends$1({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return _extends$1({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(a=t.dataUpdatedAt)?a:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var o=t.error;return isCancelledError(o)&&o.revert&&this.revertState?_extends$1({},this.revertState):_extends$1({},e,{error:o,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return _extends$1({},e,{isInvalidated:!0});case"setState":return _extends$1({},e,t.state);default:return e}},e}(),QueryCache=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}_inheritsLoose(t,e);var n=t.prototype;return n.build=function(e,t,n){var a,o=t.queryKey,s=null!=(a=t.queryHash)?a:hashQueryKeyByOptions(o,t),r=this.get(s);return r||(r=new Query({cache:this,queryKey:o,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o),meta:t.meta}),this.add(r)),r},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;notifyManager.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=parseFilterArgs(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find((function(e){return matchQuery(n,e)}))},n.findAll=function(e,t){var n=parseFilterArgs(e,t)[0];return Object.keys(n).length>0?this.queries.filter((function(e){return matchQuery(n,e)})):this.queries},n.notify=function(e){var t=this;notifyManager.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){var e=this;notifyManager.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},n.onOnline=function(){var e=this;notifyManager.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(Subscribable),Mutation=function(){function e(e){this.options=_extends$1({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||getDefaultState(),this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(noop).catch(noop)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,a=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),a=a.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),a.then((function(){return t.executeMutation()})).then((function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),getLogger().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new Retryer({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=reducer(this.state,e),notifyManager.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function reducer(e,t){switch(t.type){case"failed":return _extends$1({},e,{failureCount:e.failureCount+1});case"pause":return _extends$1({},e,{isPaused:!0});case"continue":return _extends$1({},e,{isPaused:!1});case"loading":return _extends$1({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return _extends$1({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return _extends$1({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return _extends$1({},e,t.state);default:return e}}var MutationCache=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}_inheritsLoose(t,e);var n=t.prototype;return n.build=function(e,t,n){var a=new Mutation({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(a),a},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},n.clear=function(){var e=this;notifyManager.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((function(t){return matchMutation(e,t)}))},n.findAll=function(e){return this.mutations.filter((function(t){return matchMutation(e,t)}))},n.notify=function(e){var t=this;notifyManager.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return notifyManager.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(noop)}))}),Promise.resolve())}))},t}(Subscribable);function infiniteQueryBehavior(){return{onFetch:function(e){e.fetchFn=function(){var t,n,a,o,s,r,i,f=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(a=e.fetchOptions)||null==(o=a.meta)?void 0:o.fetchMore,l=null==c?void 0:c.pageParam,u="forward"===(null==c?void 0:c.direction),_="backward"===(null==c?void 0:c.direction),d=(null==(s=e.state.data)?void 0:s.pages)||[],h=(null==(r=e.state.data)?void 0:r.pageParams)||[],m=getAbortController(),p=null==m?void 0:m.signal,g=h,b=!1,y=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},v=function(e,t,n,a){return g=a?[t].concat(g):[].concat(g,[t]),a?[n].concat(e):[].concat(e,[n])},w=function(t,n,a,o){if(b)return Promise.reject("Cancelled");if(void 0===a&&!n&&t.length)return Promise.resolve(t);var s={queryKey:e.queryKey,signal:p,pageParam:a,meta:e.meta},r=y(s),i=Promise.resolve(r).then((function(e){return v(t,a,e,o)}));isCancelable(r)&&(i.cancel=r.cancel);return i};if(d.length)if(u){var k=void 0!==l,E=k?l:getNextPageParam(e.options,d);i=w(d,k,E)}else if(_){var S=void 0!==l,C=S?l:getPreviousPageParam(e.options,d);i=w(d,S,C,!0)}else!function(){g=[];var t=void 0===e.options.getNextPageParam,n=!f||!d[0]||f(d[0],0,d);i=n?w([],t,h[0]):Promise.resolve(v([],h[0],d[0]));for(var a=function(n){i=i.then((function(a){if(!f||!d[n]||f(d[n],n,d)){var o=t?h[n]:getNextPageParam(e.options,a);return w(a,t,o)}return Promise.resolve(v(a,h[n],d[n]))}))},o=1;o<d.length;o++)a(o)}();else i=w([]);var A=i.then((function(e){return{pages:e,pageParams:g}}));return A.cancel=function(){b=!0,null==m||m.abort(),isCancelable(i)&&i.cancel()},A}}}}function getNextPageParam(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function getPreviousPageParam(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}function hasNextPage(e,t){if(e.getNextPageParam&&Array.isArray(t)){var n=getNextPageParam(e,t);return null!=n&&!1!==n}}function hasPreviousPage(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){var n=getPreviousPageParam(e,t);return null!=n&&!1!==n}}var QueryClient=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new QueryCache,this.mutationCache=e.mutationCache||new MutationCache,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=focusManager$1.subscribe((function(){focusManager$1.isFocused()&&onlineManager.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=onlineManager.subscribe((function(){focusManager$1.isFocused()&&onlineManager.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=parseFilterArgs(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll(_extends$1({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,n){var a=parseQueryArgs(e),o=this.defaultQueryOptions(a);return this.queryCache.build(this,o).setData(t,n)},t.setQueriesData=function(e,t,n){var a=this;return notifyManager.batch((function(){return a.getQueryCache().findAll(e).map((function(e){var o=e.queryKey;return[o,a.setQueryData(o,t,n)]}))}))},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=parseFilterArgs(e,t)[0],a=this.queryCache;notifyManager.batch((function(){a.findAll(n).forEach((function(e){a.remove(e)}))}))},t.resetQueries=function(e,t,n){var a=this,o=parseFilterArgs(e,t,n),s=o[0],r=o[1],i=this.queryCache,f=_extends$1({},s,{active:!0});return notifyManager.batch((function(){return i.findAll(s).forEach((function(e){e.reset()})),a.refetchQueries(f,r)}))},t.cancelQueries=function(e,t,n){var a=this,o=parseFilterArgs(e,t,n),s=o[0],r=o[1],i=void 0===r?{}:r;void 0===i.revert&&(i.revert=!0);var f=notifyManager.batch((function(){return a.queryCache.findAll(s).map((function(e){return e.cancel(i)}))}));return Promise.all(f).then(noop).catch(noop)},t.invalidateQueries=function(e,t,n){var a,o,s,r=this,i=parseFilterArgs(e,t,n),f=i[0],c=i[1],l=_extends$1({},f,{active:null==(a=null!=(o=f.refetchActive)?o:f.active)||a,inactive:null!=(s=f.refetchInactive)&&s});return notifyManager.batch((function(){return r.queryCache.findAll(f).forEach((function(e){e.invalidate()})),r.refetchQueries(l,c)}))},t.refetchQueries=function(e,t,n){var a=this,o=parseFilterArgs(e,t,n),s=o[0],r=o[1],i=notifyManager.batch((function(){return a.queryCache.findAll(s).map((function(e){return e.fetch(void 0,_extends$1({},r,{meta:{refetchPage:null==s?void 0:s.refetchPage}}))}))})),f=Promise.all(i).then(noop);return(null==r?void 0:r.throwOnError)||(f=f.catch(noop)),f},t.fetchQuery=function(e,t,n){var a=parseQueryArgs(e,t,n),o=this.defaultQueryOptions(a);void 0===o.retry&&(o.retry=!1);var s=this.queryCache.build(this,o);return s.isStaleByTime(o.staleTime)?s.fetch(o):Promise.resolve(s.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(noop).catch(noop)},t.fetchInfiniteQuery=function(e,t,n){var a=parseQueryArgs(e,t,n);return a.behavior=infiniteQueryBehavior(),this.fetchQuery(a)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(noop).catch(noop)},t.cancelMutations=function(){var e=this,t=notifyManager.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(noop).catch(noop)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find((function(t){return hashQueryKey(e)===hashQueryKey(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return partialMatchKey(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find((function(t){return hashQueryKey(e)===hashQueryKey(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return partialMatchKey(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=_extends$1({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=hashQueryKeyByOptions(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:_extends$1({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),QueryObserver=function(e){function t(t,n){var a;return(a=e.call(this)||this).client=t,a.options=n,a.trackedProps=[],a.selectError=null,a.bindMethods(),a.setOptions(n),a}_inheritsLoose(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),shouldFetchOnMount(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var o=this.hasListeners();o&&shouldFetchOptionally(this.currentQuery,a,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===a&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var s=this.computeRefetchInterval();!o||this.currentQuery===a&&this.options.enabled===n.enabled&&s===this.currentRefetchInterval||this.updateRefetchInterval(s)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,a={},o=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(a,t,{configurable:!1,enumerable:!0,get:function(){return o(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&o("error"),a},n.getNextResult=function(e){var t=this;return new Promise((function(n,a){var o=t.subscribe((function(t){t.isFetching||(o(),t.isError&&(null==e?void 0:e.throwOnError)?a(t.error):n(t))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch(_extends$1({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),a=this.client.getQueryCache().build(this.client,n);return a.fetch().then((function(){return t.createResult(a,n)}))},n.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(noop)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!isServer&&!this.currentResult.isStale&&isValidTimeout(this.options.staleTime)){var t=timeUntilStale(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},n.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!isServer&&!1!==this.options.enabled&&isValidTimeout(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||focusManager$1.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0},n.clearRefetchInterval=function(){clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0},n.createResult=function(e,t){var n,a=this.currentQuery,o=this.options,s=this.currentResult,r=this.currentResultState,i=this.currentResultOptions,f=e!==a,c=f?e.state:this.currentQueryInitialState,l=f?this.currentResult:this.previousQueryResult,u=e.state,_=u.dataUpdatedAt,d=u.error,h=u.errorUpdatedAt,m=u.isFetching,p=u.status,g=!1,b=!1;if(t.optimisticResults){var y=this.hasListeners(),v=!y&&shouldFetchOnMount(e,t),w=y&&shouldFetchOptionally(e,a,t,o);(v||w)&&(m=!0,_||(p="loading"))}if(t.keepPreviousData&&!u.dataUpdateCount&&(null==l?void 0:l.isSuccess)&&"error"!==p)n=l.data,_=l.dataUpdatedAt,p=l.status,g=!0;else if(t.select&&void 0!==u.data)if(s&&u.data===(null==r?void 0:r.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(u.data),!1!==t.structuralSharing&&(n=replaceEqualDeep(null==s?void 0:s.data,n)),this.selectResult=n,this.selectError=null}catch(e){getLogger().error(e),this.selectError=e}else n=u.data;if(void 0!==t.placeholderData&&void 0===n&&("loading"===p||"idle"===p)){var k;if((null==s?void 0:s.isPlaceholderData)&&t.placeholderData===(null==i?void 0:i.placeholderData))k=s.data;else if(k="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==k)try{k=t.select(k),!1!==t.structuralSharing&&(k=replaceEqualDeep(null==s?void 0:s.data,k)),this.selectError=null}catch(e){getLogger().error(e),this.selectError=e}void 0!==k&&(p="success",n=k,b=!0)}return this.selectError&&(d=this.selectError,n=this.selectResult,h=Date.now(),p="error"),{status:p,isLoading:"loading"===p,isSuccess:"success"===p,isError:"error"===p,isIdle:"idle"===p,data:n,dataUpdatedAt:_,error:d,errorUpdatedAt:h,failureCount:u.fetchFailureCount,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>c.dataUpdateCount||u.errorUpdateCount>c.errorUpdateCount,isFetching:m,isRefetching:m&&"loading"!==p,isLoadingError:"error"===p&&0===u.dataUpdatedAt,isPlaceholderData:b,isPreviousData:g,isRefetchError:"error"===p&&0!==u.dataUpdatedAt,isStale:isStale(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,a=n.notifyOnChangeProps,o=n.notifyOnChangePropsExclusions;if(!a&&!o)return!0;if("tracked"===a&&!this.trackedProps.length)return!0;var s="tracked"===a?this.trackedProps:a;return Object.keys(e).some((function(n){var a=n,r=e[a]!==t[a],i=null==s?void 0:s.some((function(e){return e===n})),f=null==o?void 0:o.some((function(e){return e===n}));return r&&!f&&(!s||i)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!shallowEqualObjects(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify(_extends$1({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||isCancelledError(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;notifyManager.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(Subscribable);function shouldLoadOnMount(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}function shouldFetchOnMount(e,t){return shouldLoadOnMount(e,t)||e.state.dataUpdatedAt>0&&shouldFetchOn(e,t,t.refetchOnMount)}function shouldFetchOn(e,t,n){if(!1!==t.enabled){var a="function"==typeof n?n(e):n;return"always"===a||!1!==a&&isStale(e,t)}return!1}function shouldFetchOptionally(e,t,n,a){return!1!==n.enabled&&(e!==t||!1===a.enabled)&&(!n.suspense||"error"!==e.state.status)&&isStale(e,n)}function isStale(e,t){return e.isStaleByTime(t.staleTime)}var InfiniteQueryObserver=function(e){function t(t,n){return e.call(this,t,n)||this}_inheritsLoose(t,e);var n=t.prototype;return n.bindMethods=function(){e.prototype.bindMethods.call(this),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)},n.setOptions=function(t,n){e.prototype.setOptions.call(this,_extends$1({},t,{behavior:infiniteQueryBehavior()}),n)},n.getOptimisticResult=function(t){return t.behavior=infiniteQueryBehavior(),e.prototype.getOptimisticResult.call(this,t)},n.fetchNextPage=function(e){var t;return this.fetch({cancelRefetch:null==(t=null==e?void 0:e.cancelRefetch)||t,throwOnError:null==e?void 0:e.throwOnError,meta:{fetchMore:{direction:"forward",pageParam:null==e?void 0:e.pageParam}}})},n.fetchPreviousPage=function(e){var t;return this.fetch({cancelRefetch:null==(t=null==e?void 0:e.cancelRefetch)||t,throwOnError:null==e?void 0:e.throwOnError,meta:{fetchMore:{direction:"backward",pageParam:null==e?void 0:e.pageParam}}})},n.createResult=function(t,n){var a,o,s,r,i,f,c=t.state;return _extends$1({},e.prototype.createResult.call(this,t,n),{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:hasNextPage(n,null==(a=c.data)?void 0:a.pages),hasPreviousPage:hasPreviousPage(n,null==(o=c.data)?void 0:o.pages),isFetchingNextPage:c.isFetching&&"forward"===(null==(s=c.fetchMeta)||null==(r=s.fetchMore)?void 0:r.direction),isFetchingPreviousPage:c.isFetching&&"backward"===(null==(i=c.fetchMeta)||null==(f=i.fetchMore)?void 0:f.direction)})},t}(QueryObserver),MutationObserver=function(e){function t(t,n){var a;return(a=e.call(this)||this).client=t,a.setOptions(n),a.bindMethods(),a.updateResult(),a}_inheritsLoose(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){var e;this.listeners.length||(null==(e=this.currentMutation)||e.removeObserver(this))},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,_extends$1({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:getDefaultState(),t=_extends$1({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},n.notify=function(e){var t=this;notifyManager.batch((function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)}))}))},t}(Subscribable),unstable_batchedUpdates=ReactDOM.unstable_batchedUpdates;notifyManager.setBatchNotifyFunction(unstable_batchedUpdates);var logger=console;setLogger(logger);var defaultContext=React.createContext(void 0),QueryClientSharingContext=React.createContext(!1);function getQueryClientContext(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=defaultContext),window.ReactQueryClientContext):defaultContext}var useQueryClient=function(){var e=React.useContext(getQueryClientContext(React.useContext(QueryClientSharingContext)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},QueryClientProvider=function(e){var t=e.client,n=e.contextSharing,a=void 0!==n&&n,o=e.children;React.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var s=getQueryClientContext(a);return React.createElement(QueryClientSharingContext.Provider,{value:a},React.createElement(s.Provider,{value:t},o))};function createValue(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var QueryErrorResetBoundaryContext=React.createContext(createValue()),useQueryErrorResetBoundary=function(){return React.useContext(QueryErrorResetBoundaryContext)};function shouldThrowError(e,t,n){return"function"==typeof t?t.apply(void 0,n):"boolean"==typeof t?t:!!e}function useMutation(e,t,n){var a=React.useRef(!1),o=React.useState(0)[1],s=parseMutationArgs(e,t,n),r=useQueryClient(),i=React.useRef();i.current?i.current.setOptions(s):i.current=new MutationObserver(r,s);var f=i.current.getCurrentResult();React.useEffect((function(){a.current=!0;var e=i.current.subscribe(notifyManager.batchCalls((function(){a.current&&o((function(e){return e+1}))})));return function(){a.current=!1,e()}}),[]);var c=React.useCallback((function(e,t){i.current.mutate(e,t).catch(noop)}),[]);if(f.error&&shouldThrowError(void 0,i.current.options.useErrorBoundary,[f.error]))throw f.error;return _extends$1({},f,{mutate:c,mutateAsync:f.mutate})}function useBaseQuery(e,t){var n=React.useRef(!1),a=React.useState(0)[1],o=useQueryClient(),s=useQueryErrorResetBoundary(),r=o.defaultQueryObserverOptions(e);r.optimisticResults=!0,r.onError&&(r.onError=notifyManager.batchCalls(r.onError)),r.onSuccess&&(r.onSuccess=notifyManager.batchCalls(r.onSuccess)),r.onSettled&&(r.onSettled=notifyManager.batchCalls(r.onSettled)),r.suspense&&("number"!=typeof r.staleTime&&(r.staleTime=1e3),0===r.cacheTime&&(r.cacheTime=1)),(r.suspense||r.useErrorBoundary)&&(s.isReset()||(r.retryOnMount=!1));var i=React.useState((function(){return new t(o,r)}))[0],f=i.getOptimisticResult(r);if(React.useEffect((function(){n.current=!0,s.clearReset();var e=i.subscribe(notifyManager.batchCalls((function(){n.current&&a((function(e){return e+1}))})));return i.updateResult(),function(){n.current=!1,e()}}),[s,i]),React.useEffect((function(){i.setOptions(r,{listeners:!1})}),[r,i]),r.suspense&&f.isLoading)throw i.fetchOptimistic(r).then((function(e){var t=e.data;null==r.onSuccess||r.onSuccess(t),null==r.onSettled||r.onSettled(t,null)})).catch((function(e){s.clearReset(),null==r.onError||r.onError(e),null==r.onSettled||r.onSettled(void 0,e)}));if(f.isError&&!s.isReset()&&!f.isFetching&&shouldThrowError(r.suspense,r.useErrorBoundary,[f.error,i.getCurrentQuery()]))throw f.error;return"tracked"===r.notifyOnChangeProps&&(f=i.trackResult(f,r)),f}function useQuery(e,t,n){return useBaseQuery(parseQueryArgs(e,t,n),QueryObserver)}function useInfiniteQuery(e,t,n){return useBaseQuery(parseQueryArgs(e,t,n),InfiniteQueryObserver)}function useUser(e){if(!e)throw new Error("useUser must be used within an WeavyProvider");return useQuery("user",(()=>__awaiter(this,void 0,void 0,(function*(){try{const t=yield e.get("/api/user");return t.ok?yield t.json():(console.error("Could not load Weavy user data..."),null)}catch(t){console.error(`Could not connect to the Weavy backend. Please make sure ${e.url} is up and running!`)}}))))}const UserContext=createContext({user:{id:-1,username:"anonymous",name:"Anonymous",email:"",title:"",presence:"",avatar_url:""}}),UserProvider=({children:e,client:t})=>{const{isLoading:n,data:a}=useUser(t);return React.createElement(React.Fragment,null,!n&&a&&React.createElement(UserContext.Provider,{value:{user:a}},e))};var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){var t=e.default;if("function"==typeof t){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})})),n}var dayjs_min={exports:{}};dayjs_min.exports=function(){var e=1e3,t=6e4,n=36e5,a="millisecond",o="second",s="minute",r="hour",i="day",f="week",c="month",l="quarter",u="year",_="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g=function(e,t,n){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(n)+e},b={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),a=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(a,2,"0")+":"+g(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var a=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(a,c),s=n-o<0,r=t.clone().add(a+(s?-1:1),c);return+(-(a+(n-o)/(s?o-r:r-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:u,w:f,d:i,D:_,h:r,m:s,s:o,ms:a,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",v={};v[y]=p;var w=function(e){return e instanceof C},k=function e(t,n,a){var o;if(!t)return y;if("string"==typeof t){var s=t.toLowerCase();v[s]&&(o=s),n&&(v[s]=n,o=s);var r=t.split("-");if(!o&&r.length>1)return e(r[0])}else{var i=t.name;v[i]=t,o=i}return!a&&o&&(y=o),o||!a&&y},E=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},S=b;S.l=k,S.i=w,S.w=function(e,t){return E(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function p(e){this.$L=k(e.locale,null,!0),this.parse(e)}var g=p.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var a=t.match(h);if(a){var o=a[2]-1||0,s=(a[7]||"0").substring(0,3);return n?new Date(Date.UTC(a[1],o,a[3]||1,a[4]||0,a[5]||0,a[6]||0,s)):new Date(a[1],o,a[3]||1,a[4]||0,a[5]||0,a[6]||0,s)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(e,t){var n=E(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return E(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<E(e)},g.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,a=!!S.u(t)||t,l=S.p(e),d=function(e,t){var o=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return a?o:o.endOf(i)},h=function(e,t){return S.w(n.toDate()[e].apply(n.toDate("s"),(a?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,p=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(l){case u:return a?d(1,0):d(31,11);case c:return a?d(1,p):d(0,p+1);case f:var y=this.$locale().weekStart||0,v=(m<y?m+7:m)-y;return d(a?g-v:g+(6-v),p);case i:case _:return h(b+"Hours",0);case r:return h(b+"Minutes",1);case s:return h(b+"Seconds",2);case o:return h(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,f=S.p(e),l="set"+(this.$u?"UTC":""),d=(n={},n[i]=l+"Date",n[_]=l+"Date",n[c]=l+"Month",n[u]=l+"FullYear",n[r]=l+"Hours",n[s]=l+"Minutes",n[o]=l+"Seconds",n[a]=l+"Milliseconds",n)[f],h=f===i?this.$D+(t-this.$W):t;if(f===c||f===u){var m=this.clone().set(_,1);m.$d[d](h),m.init(),this.$d=m.set(_,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](h);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[S.p(e)]()},g.add=function(a,l){var _,d=this;a=Number(a);var h=S.p(l),m=function(e){var t=E(d);return S.w(t.date(t.date()+Math.round(e*a)),d)};if(h===c)return this.set(c,this.$M+a);if(h===u)return this.set(u,this.$y+a);if(h===i)return m(1);if(h===f)return m(7);var p=(_={},_[s]=t,_[r]=n,_[o]=e,_)[h]||1,g=this.$d.getTime()+a*p;return S.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var a=e||"YYYY-MM-DDTHH:mm:ssZ",o=S.z(this),s=this.$H,r=this.$m,i=this.$M,f=n.weekdays,c=n.months,l=function(e,n,o,s){return e&&(e[n]||e(t,a))||o[n].slice(0,s)},u=function(e){return S.s(s%12||12,e,"0")},_=n.meridiem||function(e,t,n){var a=e<12?"AM":"PM";return n?a.toLowerCase():a},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:i+1,MM:S.s(i+1,2,"0"),MMM:l(n.monthsShort,i,c,3),MMMM:l(c,i),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,f,2),ddd:l(n.weekdaysShort,this.$W,f,3),dddd:f[this.$W],H:String(s),HH:S.s(s,2,"0"),h:u(1),hh:u(2),a:_(s,r,!0),A:_(s,r,!1),m:String(r),mm:S.s(r,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:o};return a.replace(m,(function(e,t){return t||h[e]||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(a,_,d){var h,m=S.p(_),p=E(a),g=(p.utcOffset()-this.utcOffset())*t,b=this-p,y=S.m(this,p);return y=(h={},h[u]=y/12,h[c]=y,h[l]=y/3,h[f]=(b-g)/6048e5,h[i]=(b-g)/864e5,h[r]=b/n,h[s]=b/t,h[o]=b/e,h)[m]||b,d?y:S.a(y)},g.daysInMonth=function(){return this.endOf(c).$D},g.$locale=function(){return v[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),a=k(e,t,!0);return a&&(n.$L=a),n},g.clone=function(){return S.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},p}(),A=C.prototype;return E.prototype=A,[["$ms",a],["$s",o],["$m",s],["$H",r],["$W",i],["$M",c],["$y",u],["$D",_]].forEach((function(e){A[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),E.extend=function(e,t){return e.$i||(e(t,C,E),e.$i=!0),E},E.locale=k,E.isDayjs=w,E.unix=function(e){return E(1e3*e)},E.en=v[y],E.Ls=v,E.p={},E}();var dayjs=dayjs_min.exports,relativeTime$1={exports:{}};relativeTime$1.exports=function(e,t,n){e=e||{};var a=t.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(e,t,n,o){return a.fromToBase(e,t,n,o)}n.en.relativeTime=o,a.fromToBase=function(t,a,s,r,i){for(var f,c,l,u=s.$locale().relativeTime||o,_=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],d=_.length,h=0;h<d;h+=1){var m=_[h];m.d&&(f=r?n(t).diff(s,m.d,!0):s.diff(t,m.d,!0));var p=(e.rounding||Math.round)(Math.abs(f));if(l=f>0,p<=m.r||!m.r){p<=1&&h>0&&(m=_[h-1]);var g=u[m.l];i&&(p=i(""+p)),c="string"==typeof g?g.replace("%d",p):g(p,a,m.l,l);break}}if(a)return c;var b=l?u.future:u.past;return"function"==typeof b?b(c):b.replace("%s",c)},a.to=function(e,t){return s(e,t,this,!0)},a.from=function(e,t){return s(e,t,this)};var r=function(e){return e.$u?n.utc():n()};a.toNow=function(e){return this.to(r(this),e)},a.fromNow=function(e){return this.from(r(this),e)}};var relativeTime=relativeTime$1.exports,utc$1={exports:{}},t,i,e;utc$1.exports=(t="minute",i=/[+-]\d\d(?::?\d\d)?/g,e=/([+-]|\d\d)/g,function(n,a,o){var s=a.prototype;o.utc=function(e){return new a({date:e,utc:!0,args:arguments})},s.utc=function(e){var n=o(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var r=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),r.call(this,e)};var f=s.init;s.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else f.call(this)};var c=s.utcOffset;s.utcOffset=function(n,a){var o=this.$utils().u;if(o(n))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof n&&(n=function(t){void 0===t&&(t="");var n=t.match(i);if(!n)return null;var a=(""+n[0]).match(e)||["-",0,0],o=a[0],s=60*+a[1]+ +a[2];return 0===s?0:"+"===o?s:-s}(n),null===n))return this;var s=Math.abs(n)<=16?60*n:n,r=this;if(a)return r.$offset=s,r.$u=0===n,r;if(0!==n){var f=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(r=this.local().add(s+f,t)).$offset=s,r.$x.$localOffset=f}else r=this.utc();return r};var l=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var u=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var _=s.diff;s.diff=function(e,t,n){if(e&&this.$u===e.$u)return _.call(this,e,t,n);var a=this.local(),s=o(e).local();return _.call(a,s,t,n)}});var utc=utc$1.exports,timezone$1={exports:{}};timezone$1.exports=function(){var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,a,o){var s,r=function(e,n,a){void 0===a&&(a={});var o=new Date(e),s=function(e,n){void 0===n&&(n={});var a=n.timeZoneName||"short",o=e+"|"+a,s=t[o];return s||(s=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:a}),t[o]=s),s}(n,a);return s.formatToParts(o)},i=function(t,n){for(var a=r(t,n),s=[],i=0;i<a.length;i+=1){var f=a[i],c=f.type,l=f.value,u=e[c];u>=0&&(s[u]=parseInt(l,10))}var _=s[3],d=24===_?0:_,h=s[0]+"-"+s[1]+"-"+s[2]+" "+d+":"+s[4]+":"+s[5]+":000",m=+t;return(o.utc(h).valueOf()-(m-=m%1e3))/6e4},f=a.prototype;f.tz=function(e,t){void 0===e&&(e=s);var n=this.utcOffset(),a=this.toDate(),r=a.toLocaleString("en-US",{timeZone:e}),i=Math.round((a-new Date(r))/1e3/60),f=o(r).$set("millisecond",this.$ms).utcOffset(15*-Math.round(a.getTimezoneOffset()/15)-i,!0);if(t){var c=f.utcOffset();f=f.add(n-c,"minute")}return f.$x.$timezone=e,f},f.offsetName=function(e){var t=this.$x.$timezone||o.tz.guess(),n=r(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var c=f.startOf;f.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(n,e,t).tz(this.$x.$timezone,!0)},o.tz=function(e,t,n){var a=n&&t,r=n||t||s,f=i(+o(),r);if("string"!=typeof e)return o(e).tz(r);var c=function(e,t,n){var a=e-60*t*1e3,o=i(a,n);if(t===o)return[a,t];var s=i(a-=60*(o-t)*1e3,n);return o===s?[a,o]:[e-60*Math.min(o,s)*1e3,Math.max(o,s)]}(o.utc(e,a).valueOf(),f,r),l=c[0],u=c[1],_=o(l).utcOffset(u);return _.$x.$timezone=r,_},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(e){s=e}}}();var timezone=timezone$1.exports,localizedFormat$1={exports:{}};localizedFormat$1.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,a){var o=n.prototype,s=o.format;a.en.formats=e,o.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,a=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,a,o){var s=o&&o.toUpperCase();return a||n[o]||e[o]||n[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,void 0===n?{}:n);return s.call(this,a)}}}();var localizedFormat=localizedFormat$1.exports,lib={exports:{}},Modal$2={},propTypes={exports:{}},reactIs={exports:{}},reactIs_production_min={},hasRequiredReactIs_production_min;function requireReactIs_production_min(){if(hasRequiredReactIs_production_min)return reactIs_production_min;hasRequiredReactIs_production_min=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,r=e?Symbol.for("react.provider"):60109,i=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var _=e.$$typeof;switch(_){case t:switch(e=e.type){case f:case c:case a:case s:case o:case u:return e;default:switch(e=e&&e.$$typeof){case i:case l:case h:case d:case r:return e;default:return _}}case n:return _}}}function v(e){return y(e)===c}return reactIs_production_min.AsyncMode=f,reactIs_production_min.ConcurrentMode=c,reactIs_production_min.ContextConsumer=i,reactIs_production_min.ContextProvider=r,reactIs_production_min.Element=t,reactIs_production_min.ForwardRef=l,reactIs_production_min.Fragment=a,reactIs_production_min.Lazy=h,reactIs_production_min.Memo=d,reactIs_production_min.Portal=n,reactIs_production_min.Profiler=s,reactIs_production_min.StrictMode=o,reactIs_production_min.Suspense=u,reactIs_production_min.isAsyncMode=function(e){return v(e)||y(e)===f},reactIs_production_min.isConcurrentMode=v,reactIs_production_min.isContextConsumer=function(e){return y(e)===i},reactIs_production_min.isContextProvider=function(e){return y(e)===r},reactIs_production_min.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},reactIs_production_min.isForwardRef=function(e){return y(e)===l},reactIs_production_min.isFragment=function(e){return y(e)===a},reactIs_production_min.isLazy=function(e){return y(e)===h},reactIs_production_min.isMemo=function(e){return y(e)===d},reactIs_production_min.isPortal=function(e){return y(e)===n},reactIs_production_min.isProfiler=function(e){return y(e)===s},reactIs_production_min.isStrictMode=function(e){return y(e)===o},reactIs_production_min.isSuspense=function(e){return y(e)===u},reactIs_production_min.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===c||e===s||e===o||e===u||e===_||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===d||e.$$typeof===r||e.$$typeof===i||e.$$typeof===l||e.$$typeof===p||e.$$typeof===g||e.$$typeof===b||e.$$typeof===m)},reactIs_production_min.typeOf=y,reactIs_production_min}var reactIs_development={},hasRequiredReactIs_development,hasRequiredReactIs,objectAssign,hasRequiredObjectAssign,ReactPropTypesSecret_1,hasRequiredReactPropTypesSecret,has,hasRequiredHas,checkPropTypes_1,hasRequiredCheckPropTypes,factoryWithTypeCheckers,hasRequiredFactoryWithTypeCheckers,factoryWithThrowingShims,hasRequiredFactoryWithThrowingShims,hasRequiredPropTypes;
|
|
1
|
+
import React,{createContext,useState,Children,useRef,useCallback,useEffect,useContext,useLayoutEffect}from"react";import ReactDOM,{flushSync}from"react-dom";function __rest(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function __awaiter(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}l((r=r.apply(e,t||[])).next())}))}class HttpError extends Error{constructor(e,t){const n=new.target.prototype;super(`${e}: Status code '${t}'`),this.statusCode=t,this.__proto__=n}}class TimeoutError extends Error{constructor(e="A timeout occurred."){const t=new.target.prototype;super(e),this.__proto__=t}}class AbortError extends Error{constructor(e="An abort occurred."){const t=new.target.prototype;super(e),this.__proto__=t}}class UnsupportedTransportError extends Error{constructor(e,t){const n=new.target.prototype;super(e),this.transport=t,this.errorType="UnsupportedTransportError",this.__proto__=n}}class DisabledTransportError extends Error{constructor(e,t){const n=new.target.prototype;super(e),this.transport=t,this.errorType="DisabledTransportError",this.__proto__=n}}class FailedToStartTransportError extends Error{constructor(e,t){const n=new.target.prototype;super(e),this.transport=t,this.errorType="FailedToStartTransportError",this.__proto__=n}}class FailedToNegotiateWithServerError extends Error{constructor(e){const t=new.target.prototype;super(e),this.errorType="FailedToNegotiateWithServerError",this.__proto__=t}}class AggregateErrors extends Error{constructor(e,t){const n=new.target.prototype;super(e),this.innerErrors=t,this.__proto__=n}}class HttpResponse{constructor(e,t,n){this.statusCode=e,this.statusText=t,this.content=n}}class HttpClient{get(e,t){return this.send({...t,method:"GET",url:e})}post(e,t){return this.send({...t,method:"POST",url:e})}delete(e,t){return this.send({...t,method:"DELETE",url:e})}getCookieString(e){return""}}var LogLevel;!function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Information=2]="Information",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.None=6]="None"}(LogLevel||(LogLevel={}));class NullLogger{constructor(){}log(e,t){}}NullLogger.instance=new NullLogger;const VERSION="6.0.5";class Arg{static isRequired(e,t){if(null==e)throw new Error(`The '${t}' argument is required.`)}static isNotEmpty(e,t){if(!e||e.match(/^\s*$/))throw new Error(`The '${t}' argument should not be empty.`)}static isIn(e,t,n){if(!(e in t))throw new Error(`Unknown ${n} value: ${e}.`)}}class Platform{static get isBrowser(){return"object"==typeof window&&"object"==typeof window.document}static get isWebWorker(){return"object"==typeof self&&"importScripts"in self}static get isReactNative(){return"object"==typeof window&&void 0===window.document}static get isNode(){return!this.isBrowser&&!this.isWebWorker&&!this.isReactNative}}function getDataDetail(e,t){let n="";return isArrayBuffer(e)?(n=`Binary data of length ${e.byteLength}`,t&&(n+=`. Content: '${formatArrayBuffer(e)}'`)):"string"==typeof e&&(n=`String data of length ${e.length}`,t&&(n+=`. Content: '${e}'`)),n}function formatArrayBuffer(e){const t=new Uint8Array(e);let n="";return t.forEach((e=>{n+=`0x${e<16?"0":""}${e.toString(16)} `})),n.substr(0,n.length-1)}function isArrayBuffer(e){return e&&"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}async function sendMessage(e,t,n,r,i,s,a){let o={};if(i){const e=await i();e&&(o={Authorization:`Bearer ${e}`})}const[l,c]=getUserAgentHeader();o[l]=c,e.log(LogLevel.Trace,`(${t} transport) sending data. ${getDataDetail(s,a.logMessageContent)}.`);const u=isArrayBuffer(s)?"arraybuffer":"text",d=await n.post(r,{content:s,headers:{...o,...a.headers},responseType:u,timeout:a.timeout,withCredentials:a.withCredentials});e.log(LogLevel.Trace,`(${t} transport) request complete. Response status: ${d.statusCode}.`)}function createLogger(e){return void 0===e?new ConsoleLogger(LogLevel.Information):null===e?NullLogger.instance:void 0!==e.log?e:new ConsoleLogger(e)}class SubjectSubscription{constructor(e,t){this._subject=e,this._observer=t}dispose(){const e=this._subject.observers.indexOf(this._observer);e>-1&&this._subject.observers.splice(e,1),0===this._subject.observers.length&&this._subject.cancelCallback&&this._subject.cancelCallback().catch((e=>{}))}}class ConsoleLogger{constructor(e){this._minLevel=e,this.out=console}log(e,t){if(e>=this._minLevel){const n=`[${(new Date).toISOString()}] ${LogLevel[e]}: ${t}`;switch(e){case LogLevel.Critical:case LogLevel.Error:this.out.error(n);break;case LogLevel.Warning:this.out.warn(n);break;case LogLevel.Information:this.out.info(n);break;default:this.out.log(n)}}}}function getUserAgentHeader(){let e="X-SignalR-User-Agent";return Platform.isNode&&(e="User-Agent"),[e,constructUserAgent(VERSION,getOsName(),getRuntime(),getRuntimeVersion())]}function constructUserAgent(e,t,n,r){let i="Microsoft SignalR/";const s=e.split(".");return i+=`${s[0]}.${s[1]}`,i+=` (${e}; `,i+=t&&""!==t?`${t}; `:"Unknown OS; ",i+=`${n}`,i+=r?`; ${r}`:"; Unknown Runtime Version",i+=")",i}function getOsName(){if(!Platform.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}function getRuntimeVersion(){if(Platform.isNode)return process.versions.node}function getRuntime(){return Platform.isNode?"NodeJS":"Browser"}function getErrorString(e){return e.stack?e.stack:e.message?e.message:`${e}`}function getGlobalThis(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("could not find global")}class FetchHttpClient extends HttpClient{constructor(e){if(super(),this._logger=e,"undefined"==typeof fetch){const e="function"==typeof __webpack_require__?__non_webpack_require__:require;this._jar=new(e("tough-cookie").CookieJar),this._fetchType=e("node-fetch"),this._fetchType=e("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(getGlobalThis());if("undefined"==typeof AbortController){const e="function"==typeof __webpack_require__?__non_webpack_require__:require;this._abortControllerType=e("abort-controller")}else this._abortControllerType=AbortController}async send(e){if(e.abortSignal&&e.abortSignal.aborted)throw new AbortError;if(!e.method)throw new Error("No method defined.");if(!e.url)throw new Error("No url defined.");const t=new this._abortControllerType;let n;e.abortSignal&&(e.abortSignal.onabort=()=>{t.abort(),n=new AbortError});let r,i=null;if(e.timeout){const r=e.timeout;i=setTimeout((()=>{t.abort(),this._logger.log(LogLevel.Warning,"Timeout from HTTP request."),n=new TimeoutError}),r)}try{r=await this._fetchType(e.url,{body:e.content,cache:"no-cache",credentials:!0===e.withCredentials?"include":"same-origin",headers:{"Content-Type":"text/plain;charset=UTF-8","X-Requested-With":"XMLHttpRequest",...e.headers},method:e.method,mode:"cors",redirect:"follow",signal:t.signal})}catch(e){if(n)throw n;throw this._logger.log(LogLevel.Warning,`Error from HTTP request. ${e}.`),e}finally{i&&clearTimeout(i),e.abortSignal&&(e.abortSignal.onabort=null)}if(!r.ok){const e=await deserializeContent(r,"text");throw new HttpError(e||r.statusText,r.status)}const s=deserializeContent(r,e.responseType),a=await s;return new HttpResponse(r.status,r.statusText,a)}getCookieString(e){let t="";return Platform.isNode&&this._jar&&this._jar.getCookies(e,((e,n)=>t=n.join("; "))),t}}function deserializeContent(e,t){let n;switch(t){case"arraybuffer":n=e.arrayBuffer();break;case"text":default:n=e.text();break;case"blob":case"document":case"json":throw new Error(`${t} is not supported.`)}return n}class XhrHttpClient extends HttpClient{constructor(e){super(),this._logger=e}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new AbortError):e.method?e.url?new Promise(((t,n)=>{const r=new XMLHttpRequest;r.open(e.method,e.url,!0),r.withCredentials=void 0===e.withCredentials||e.withCredentials,r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.setRequestHeader("Content-Type","text/plain;charset=UTF-8");const i=e.headers;i&&Object.keys(i).forEach((e=>{r.setRequestHeader(e,i[e])})),e.responseType&&(r.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=()=>{r.abort(),n(new AbortError)}),e.timeout&&(r.timeout=e.timeout),r.onload=()=>{e.abortSignal&&(e.abortSignal.onabort=null),r.status>=200&&r.status<300?t(new HttpResponse(r.status,r.statusText,r.response||r.responseText)):n(new HttpError(r.response||r.responseText||r.statusText,r.status))},r.onerror=()=>{this._logger.log(LogLevel.Warning,`Error from HTTP request. ${r.status}: ${r.statusText}.`),n(new HttpError(r.statusText,r.status))},r.ontimeout=()=>{this._logger.log(LogLevel.Warning,"Timeout from HTTP request."),n(new TimeoutError)},r.send(e.content||"")})):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class DefaultHttpClient extends HttpClient{constructor(e){if(super(),"undefined"!=typeof fetch||Platform.isNode)this._httpClient=new FetchHttpClient(e);else{if("undefined"==typeof XMLHttpRequest)throw new Error("No usable HttpClient found.");this._httpClient=new XhrHttpClient(e)}}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new AbortError):e.method?e.url?this._httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(e){return this._httpClient.getCookieString(e)}}class TextMessageFormat{static write(e){return`${e}${TextMessageFormat.RecordSeparator}`}static parse(e){if(e[e.length-1]!==TextMessageFormat.RecordSeparator)throw new Error("Message is incomplete.");const t=e.split(TextMessageFormat.RecordSeparator);return t.pop(),t}}TextMessageFormat.RecordSeparatorCode=30,TextMessageFormat.RecordSeparator=String.fromCharCode(TextMessageFormat.RecordSeparatorCode);class HandshakeProtocol{writeHandshakeRequest(e){return TextMessageFormat.write(JSON.stringify(e))}parseHandshakeResponse(e){let t,n;if(isArrayBuffer(e)){const r=new Uint8Array(e),i=r.indexOf(TextMessageFormat.RecordSeparatorCode);if(-1===i)throw new Error("Message is incomplete.");const s=i+1;t=String.fromCharCode.apply(null,Array.prototype.slice.call(r.slice(0,s))),n=r.byteLength>s?r.slice(s).buffer:null}else{const r=e,i=r.indexOf(TextMessageFormat.RecordSeparator);if(-1===i)throw new Error("Message is incomplete.");const s=i+1;t=r.substring(0,s),n=r.length>s?r.substring(s):null}const r=TextMessageFormat.parse(t),i=JSON.parse(r[0]);if(i.type)throw new Error("Expected a handshake response from the server.");return[n,i]}}var MessageType;!function(e){e[e.Invocation=1]="Invocation",e[e.StreamItem=2]="StreamItem",e[e.Completion=3]="Completion",e[e.StreamInvocation=4]="StreamInvocation",e[e.CancelInvocation=5]="CancelInvocation",e[e.Ping=6]="Ping",e[e.Close=7]="Close"}(MessageType||(MessageType={}));class Subject{constructor(){this.observers=[]}next(e){for(const t of this.observers)t.next(e)}error(e){for(const t of this.observers)t.error&&t.error(e)}complete(){for(const e of this.observers)e.complete&&e.complete()}subscribe(e){return this.observers.push(e),new SubjectSubscription(this,e)}}const DEFAULT_TIMEOUT_IN_MS=3e4,DEFAULT_PING_INTERVAL_IN_MS=15e3;var HubConnectionState;!function(e){e.Disconnected="Disconnected",e.Connecting="Connecting",e.Connected="Connected",e.Disconnecting="Disconnecting",e.Reconnecting="Reconnecting"}(HubConnectionState||(HubConnectionState={}));class HubConnection{constructor(e,t,n,r){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(LogLevel.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://docs.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},Arg.isRequired(e,"connection"),Arg.isRequired(t,"logger"),Arg.isRequired(n,"protocol"),this.serverTimeoutInMilliseconds=DEFAULT_TIMEOUT_IN_MS,this.keepAliveIntervalInMilliseconds=DEFAULT_PING_INTERVAL_IN_MS,this._logger=t,this._protocol=n,this.connection=e,this._reconnectPolicy=r,this._handshakeProtocol=new HandshakeProtocol,this.connection.onreceive=e=>this._processIncomingData(e),this.connection.onclose=e=>this._connectionClosed(e),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=HubConnectionState.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:MessageType.Ping})}static create(e,t,n,r){return new HubConnection(e,t,n,r)}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(e){if(this._connectionState!==HubConnectionState.Disconnected&&this._connectionState!==HubConnectionState.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==HubConnectionState.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=HubConnectionState.Connecting,this._logger.log(LogLevel.Debug,"Starting HubConnection.");try{await this._startInternal(),Platform.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=HubConnectionState.Connected,this._connectionStarted=!0,this._logger.log(LogLevel.Debug,"HubConnection connected successfully.")}catch(e){return this._connectionState=HubConnectionState.Disconnected,this._logger.log(LogLevel.Debug,`HubConnection failed to start successfully because of error '${e}'.`),Promise.reject(e)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const e=new Promise(((e,t)=>{this._handshakeResolver=e,this._handshakeRejecter=t}));await this.connection.start(this._protocol.transferFormat);try{const t={protocol:this._protocol.name,version:this._protocol.version};if(this._logger.log(LogLevel.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(t)),this._logger.log(LogLevel.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await e,this._stopDuringStartError)throw this._stopDuringStartError}catch(e){throw this._logger.log(LogLevel.Debug,`Hub handshake failed with error '${e}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(e),e}}async stop(){const e=this._startPromise;this._stopPromise=this._stopInternal(),await this._stopPromise;try{await e}catch(e){}}_stopInternal(e){return this._connectionState===HubConnectionState.Disconnected?(this._logger.log(LogLevel.Debug,`Call to HubConnection.stop(${e}) ignored because it is already in the disconnected state.`),Promise.resolve()):this._connectionState===HubConnectionState.Disconnecting?(this._logger.log(LogLevel.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState=HubConnectionState.Disconnecting,this._logger.log(LogLevel.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(LogLevel.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=e||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(e)))}stream(e,...t){const[n,r]=this._replaceStreamingParams(t),i=this._createStreamInvocation(e,t,r);let s;const a=new Subject;return a.cancelCallback=()=>{const e=this._createCancelInvocation(i.invocationId);return delete this._callbacks[i.invocationId],s.then((()=>this._sendWithProtocol(e)))},this._callbacks[i.invocationId]=(e,t)=>{t?a.error(t):e&&(e.type===MessageType.Completion?e.error?a.error(new Error(e.error)):a.complete():a.next(e.item))},s=this._sendWithProtocol(i).catch((e=>{a.error(e),delete this._callbacks[i.invocationId]})),this._launchStreams(n,s),a}_sendMessage(e){return this._resetKeepAliveInterval(),this.connection.send(e)}_sendWithProtocol(e){return this._sendMessage(this._protocol.writeMessage(e))}send(e,...t){const[n,r]=this._replaceStreamingParams(t),i=this._sendWithProtocol(this._createInvocation(e,t,!0,r));return this._launchStreams(n,i),i}invoke(e,...t){const[n,r]=this._replaceStreamingParams(t),i=this._createInvocation(e,t,!1,r);return new Promise(((e,t)=>{this._callbacks[i.invocationId]=(n,r)=>{r?t(r):n&&(n.type===MessageType.Completion?n.error?t(new Error(n.error)):e(n.result):t(new Error(`Unexpected message type: ${n.type}`)))};const r=this._sendWithProtocol(i).catch((e=>{t(e),delete this._callbacks[i.invocationId]}));this._launchStreams(n,r)}))}on(e,t){e&&t&&(e=e.toLowerCase(),this._methods[e]||(this._methods[e]=[]),-1===this._methods[e].indexOf(t)&&this._methods[e].push(t))}off(e,t){if(!e)return;e=e.toLowerCase();const n=this._methods[e];if(n)if(t){const r=n.indexOf(t);-1!==r&&(n.splice(r,1),0===n.length&&delete this._methods[e])}else delete this._methods[e]}onclose(e){e&&this._closedCallbacks.push(e)}onreconnecting(e){e&&this._reconnectingCallbacks.push(e)}onreconnected(e){e&&this._reconnectedCallbacks.push(e)}_processIncomingData(e){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(e=this._processHandshakeResponse(e),this._receivedHandshakeResponse=!0),e){const t=this._protocol.parseMessages(e,this._logger);for(const e of t)switch(e.type){case MessageType.Invocation:this._invokeClientMethod(e);break;case MessageType.StreamItem:case MessageType.Completion:{const t=this._callbacks[e.invocationId];if(t){e.type===MessageType.Completion&&delete this._callbacks[e.invocationId];try{t(e)}catch(e){this._logger.log(LogLevel.Error,`Stream callback threw error: ${getErrorString(e)}`)}}break}case MessageType.Ping:break;case MessageType.Close:{this._logger.log(LogLevel.Information,"Close message received from server.");const t=e.error?new Error("Server returned an error on close: "+e.error):void 0;!0===e.allowReconnect?this.connection.stop(t):this._stopPromise=this._stopInternal(t);break}default:this._logger.log(LogLevel.Warning,`Invalid message type: ${e.type}.`)}}this._resetTimeoutPeriod()}_processHandshakeResponse(e){let t,n;try{[n,t]=this._handshakeProtocol.parseHandshakeResponse(e)}catch(e){const t="Error parsing handshake response: "+e;this._logger.log(LogLevel.Error,t);const n=new Error(t);throw this._handshakeRejecter(n),n}if(t.error){const e="Server returned handshake error: "+t.error;this._logger.log(LogLevel.Error,e);const n=new Error(e);throw this._handshakeRejecter(n),n}return this._logger.log(LogLevel.Debug,"Server handshake complete."),this._handshakeResolver(),n}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this._timeoutHandle=setTimeout((()=>this.serverTimeout()),this.serverTimeoutInMilliseconds),void 0!==this._pingServerHandle))){let e=this._nextKeepAlive-(new Date).getTime();e<0&&(e=0),this._pingServerHandle=setTimeout((async()=>{if(this._connectionState===HubConnectionState.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}}),e)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}_invokeClientMethod(e){const t=this._methods[e.target.toLowerCase()];if(t){try{t.forEach((t=>t.apply(this,e.arguments)))}catch(t){this._logger.log(LogLevel.Error,`A callback for the method ${e.target.toLowerCase()} threw error '${t}'.`)}if(e.invocationId){const e="Server requested a response, which is not supported in this version of the client.";this._logger.log(LogLevel.Error,e),this._stopPromise=this._stopInternal(new Error(e))}}else this._logger.log(LogLevel.Warning,`No client method with the name '${e.target}' found.`)}_connectionClosed(e){this._logger.log(LogLevel.Debug,`HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||e||new Error("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===HubConnectionState.Disconnecting?this._completeClose(e):this._connectionState===HubConnectionState.Connected&&this._reconnectPolicy?this._reconnect(e):this._connectionState===HubConnectionState.Connected&&this._completeClose(e)}_completeClose(e){if(this._connectionStarted){this._connectionState=HubConnectionState.Disconnected,this._connectionStarted=!1,Platform.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach((t=>t.apply(this,[e])))}catch(t){this._logger.log(LogLevel.Error,`An onclose callback called with error '${e}' threw error '${t}'.`)}}}async _reconnect(e){const t=Date.now();let n=0,r=void 0!==e?e:new Error("Attempting to reconnect due to a unknown error."),i=this._getNextRetryDelay(n++,0,r);if(null===i)return this._logger.log(LogLevel.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void this._completeClose(e);if(this._connectionState=HubConnectionState.Reconnecting,e?this._logger.log(LogLevel.Information,`Connection reconnecting because of error '${e}'.`):this._logger.log(LogLevel.Information,"Connection reconnecting."),0!==this._reconnectingCallbacks.length){try{this._reconnectingCallbacks.forEach((t=>t.apply(this,[e])))}catch(t){this._logger.log(LogLevel.Error,`An onreconnecting callback called with error '${e}' threw error '${t}'.`)}if(this._connectionState!==HubConnectionState.Reconnecting)return void this._logger.log(LogLevel.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;null!==i;){if(this._logger.log(LogLevel.Information,`Reconnect attempt number ${n} will start in ${i} ms.`),await new Promise((e=>{this._reconnectDelayHandle=setTimeout(e,i)})),this._reconnectDelayHandle=void 0,this._connectionState!==HubConnectionState.Reconnecting)return void this._logger.log(LogLevel.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(await this._startInternal(),this._connectionState=HubConnectionState.Connected,this._logger.log(LogLevel.Information,"HubConnection reconnected successfully."),0!==this._reconnectedCallbacks.length)try{this._reconnectedCallbacks.forEach((e=>e.apply(this,[this.connection.connectionId])))}catch(e){this._logger.log(LogLevel.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${e}'.`)}return}catch(e){if(this._logger.log(LogLevel.Information,`Reconnect attempt failed because of error '${e}'.`),this._connectionState!==HubConnectionState.Reconnecting)return this._logger.log(LogLevel.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(this._connectionState===HubConnectionState.Disconnecting&&this._completeClose());r=e instanceof Error?e:new Error(e.toString()),i=this._getNextRetryDelay(n++,Date.now()-t,r)}}this._logger.log(LogLevel.Information,`Reconnect retries have been exhausted after ${Date.now()-t} ms and ${n} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(e,t,n){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:t,previousRetryCount:e,retryReason:n})}catch(n){return this._logger.log(LogLevel.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${e}, ${t}) threw error '${n}'.`),null}}_cancelCallbacksWithError(e){const t=this._callbacks;this._callbacks={},Object.keys(t).forEach((n=>{const r=t[n];try{r(null,e)}catch(t){this._logger.log(LogLevel.Error,`Stream 'error' callback called with '${e}' threw error: ${getErrorString(t)}`)}}))}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(e,t,n,r){if(n)return 0!==r.length?{arguments:t,streamIds:r,target:e,type:MessageType.Invocation}:{arguments:t,target:e,type:MessageType.Invocation};{const n=this._invocationId;return this._invocationId++,0!==r.length?{arguments:t,invocationId:n.toString(),streamIds:r,target:e,type:MessageType.Invocation}:{arguments:t,invocationId:n.toString(),target:e,type:MessageType.Invocation}}}_launchStreams(e,t){if(0!==e.length){t||(t=Promise.resolve());for(const n in e)e[n].subscribe({complete:()=>{t=t.then((()=>this._sendWithProtocol(this._createCompletionMessage(n))))},error:e=>{let r;r=e instanceof Error?e.message:e&&e.toString?e.toString():"Unknown error",t=t.then((()=>this._sendWithProtocol(this._createCompletionMessage(n,r))))},next:e=>{t=t.then((()=>this._sendWithProtocol(this._createStreamItemMessage(n,e))))}})}}_replaceStreamingParams(e){const t=[],n=[];for(let r=0;r<e.length;r++){const i=e[r];if(this._isObservable(i)){const s=this._invocationId;this._invocationId++,t[s]=i,n.push(s.toString()),e.splice(r,1)}}return[t,n]}_isObservable(e){return e&&e.subscribe&&"function"==typeof e.subscribe}_createStreamInvocation(e,t,n){const r=this._invocationId;return this._invocationId++,0!==n.length?{arguments:t,invocationId:r.toString(),streamIds:n,target:e,type:MessageType.StreamInvocation}:{arguments:t,invocationId:r.toString(),target:e,type:MessageType.StreamInvocation}}_createCancelInvocation(e){return{invocationId:e,type:MessageType.CancelInvocation}}_createStreamItemMessage(e,t){return{invocationId:e,item:t,type:MessageType.StreamItem}}_createCompletionMessage(e,t,n){return t?{error:t,invocationId:e,type:MessageType.Completion}:{invocationId:e,result:n,type:MessageType.Completion}}}const DEFAULT_RETRY_DELAYS_IN_MILLISECONDS=[0,2e3,1e4,3e4,null];class DefaultReconnectPolicy{constructor(e){this._retryDelays=void 0!==e?[...e,null]:DEFAULT_RETRY_DELAYS_IN_MILLISECONDS}nextRetryDelayInMilliseconds(e){return this._retryDelays[e.previousRetryCount]}}class HeaderNames{}var HttpTransportType,TransferFormat;HeaderNames.Authorization="Authorization",HeaderNames.Cookie="Cookie",function(e){e[e.None=0]="None",e[e.WebSockets=1]="WebSockets",e[e.ServerSentEvents=2]="ServerSentEvents",e[e.LongPolling=4]="LongPolling"}(HttpTransportType||(HttpTransportType={})),function(e){e[e.Text=1]="Text",e[e.Binary=2]="Binary"}(TransferFormat||(TransferFormat={}));let AbortController$1=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}};class LongPollingTransport{constructor(e,t,n,r){this._httpClient=e,this._accessTokenFactory=t,this._logger=n,this._pollAbort=new AbortController$1,this._options=r,this._running=!1,this.onreceive=null,this.onclose=null}get pollAborted(){return this._pollAbort.aborted}async connect(e,t){if(Arg.isRequired(e,"url"),Arg.isRequired(t,"transferFormat"),Arg.isIn(t,TransferFormat,"transferFormat"),this._url=e,this._logger.log(LogLevel.Trace,"(LongPolling transport) Connecting."),t===TransferFormat.Binary&&"undefined"!=typeof XMLHttpRequest&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[n,r]=getUserAgentHeader(),i={[n]:r,...this._options.headers},s={abortSignal:this._pollAbort.signal,headers:i,timeout:1e5,withCredentials:this._options.withCredentials};t===TransferFormat.Binary&&(s.responseType="arraybuffer");const a=await this._getAccessToken();this._updateHeaderToken(s,a);const o=`${e}&_=${Date.now()}`;this._logger.log(LogLevel.Trace,`(LongPolling transport) polling: ${o}.`);const l=await this._httpClient.get(o,s);200!==l.statusCode?(this._logger.log(LogLevel.Error,`(LongPolling transport) Unexpected response code: ${l.statusCode}.`),this._closeError=new HttpError(l.statusText||"",l.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,s)}async _getAccessToken(){return this._accessTokenFactory?await this._accessTokenFactory():null}_updateHeaderToken(e,t){e.headers||(e.headers={}),t?e.headers[HeaderNames.Authorization]=`Bearer ${t}`:e.headers[HeaderNames.Authorization]&&delete e.headers[HeaderNames.Authorization]}async _poll(e,t){try{for(;this._running;){const n=await this._getAccessToken();this._updateHeaderToken(t,n);try{const n=`${e}&_=${Date.now()}`;this._logger.log(LogLevel.Trace,`(LongPolling transport) polling: ${n}.`);const r=await this._httpClient.get(n,t);204===r.statusCode?(this._logger.log(LogLevel.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):200!==r.statusCode?(this._logger.log(LogLevel.Error,`(LongPolling transport) Unexpected response code: ${r.statusCode}.`),this._closeError=new HttpError(r.statusText||"",r.statusCode),this._running=!1):r.content?(this._logger.log(LogLevel.Trace,`(LongPolling transport) data received. ${getDataDetail(r.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(r.content)):this._logger.log(LogLevel.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(e){this._running?e instanceof TimeoutError?this._logger.log(LogLevel.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=e,this._running=!1):this._logger.log(LogLevel.Trace,`(LongPolling transport) Poll errored after shutdown: ${e.message}`)}}}finally{this._logger.log(LogLevel.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(e){return this._running?sendMessage(this._logger,"LongPolling",this._httpClient,this._url,this._accessTokenFactory,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(LogLevel.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(LogLevel.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const e={},[t,n]=getUserAgentHeader();e[t]=n;const r={headers:{...e,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials},i=await this._getAccessToken();this._updateHeaderToken(r,i),await this._httpClient.delete(this._url,r),this._logger.log(LogLevel.Trace,"(LongPolling transport) DELETE request sent.")}finally{this._logger.log(LogLevel.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let e="(LongPolling transport) Firing onclose event.";this._closeError&&(e+=" Error: "+this._closeError),this._logger.log(LogLevel.Trace,e),this.onclose(this._closeError)}}}class ServerSentEventsTransport{constructor(e,t,n,r){this._httpClient=e,this._accessTokenFactory=t,this._logger=n,this._options=r,this.onreceive=null,this.onclose=null}async connect(e,t){if(Arg.isRequired(e,"url"),Arg.isRequired(t,"transferFormat"),Arg.isIn(t,TransferFormat,"transferFormat"),this._logger.log(LogLevel.Trace,"(SSE transport) Connecting."),this._url=e,this._accessTokenFactory){const t=await this._accessTokenFactory();t&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(t)}`)}return new Promise(((n,r)=>{let i,s=!1;if(t===TransferFormat.Text){if(Platform.isBrowser||Platform.isWebWorker)i=new this._options.EventSource(e,{withCredentials:this._options.withCredentials});else{const t=this._httpClient.getCookieString(e),n={};n.Cookie=t;const[r,s]=getUserAgentHeader();n[r]=s,i=new this._options.EventSource(e,{withCredentials:this._options.withCredentials,headers:{...n,...this._options.headers}})}try{i.onmessage=e=>{if(this.onreceive)try{this._logger.log(LogLevel.Trace,`(SSE transport) data received. ${getDataDetail(e.data,this._options.logMessageContent)}.`),this.onreceive(e.data)}catch(e){return void this._close(e)}},i.onerror=e=>{s?this._close():r(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},i.onopen=()=>{this._logger.log(LogLevel.Information,`SSE connected to ${this._url}`),this._eventSource=i,s=!0,n()}}catch(e){return void r(e)}}else r(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))}))}async send(e){return this._eventSource?sendMessage(this._logger,"SSE",this._httpClient,this._url,this._accessTokenFactory,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(e){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(e))}}class WebSocketTransport{constructor(e,t,n,r,i,s){this._logger=n,this._accessTokenFactory=t,this._logMessageContent=r,this._webSocketConstructor=i,this._httpClient=e,this.onreceive=null,this.onclose=null,this._headers=s}async connect(e,t){if(Arg.isRequired(e,"url"),Arg.isRequired(t,"transferFormat"),Arg.isIn(t,TransferFormat,"transferFormat"),this._logger.log(LogLevel.Trace,"(WebSockets transport) Connecting."),this._accessTokenFactory){const t=await this._accessTokenFactory();t&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(t)}`)}return new Promise(((n,r)=>{let i;e=e.replace(/^http/,"ws");const s=this._httpClient.getCookieString(e);let a=!1;if(Platform.isNode){const t={},[n,r]=getUserAgentHeader();t[n]=r,s&&(t[HeaderNames.Cookie]=`${s}`),i=new this._webSocketConstructor(e,void 0,{headers:{...t,...this._headers}})}i||(i=new this._webSocketConstructor(e)),t===TransferFormat.Binary&&(i.binaryType="arraybuffer"),i.onopen=t=>{this._logger.log(LogLevel.Information,`WebSocket connected to ${e}.`),this._webSocket=i,a=!0,n()},i.onerror=e=>{let t=null;t="undefined"!=typeof ErrorEvent&&e instanceof ErrorEvent?e.error:"There was an error with the transport",this._logger.log(LogLevel.Information,`(WebSockets transport) ${t}.`)},i.onmessage=e=>{if(this._logger.log(LogLevel.Trace,`(WebSockets transport) data received. ${getDataDetail(e.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(e.data)}catch(e){return void this._close(e)}},i.onclose=e=>{if(a)this._close(e);else{let t=null;t="undefined"!=typeof ErrorEvent&&e instanceof ErrorEvent?e.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",r(new Error(t))}}}))}send(e){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(LogLevel.Trace,`(WebSockets transport) sending data. ${getDataDetail(e,this._logMessageContent)}.`),this._webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(e){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(LogLevel.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this._isCloseEvent(e)||!1!==e.wasClean&&1e3===e.code?e instanceof Error?this.onclose(e):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${e.code} (${e.reason||"no reason given"}).`)))}_isCloseEvent(e){return e&&"boolean"==typeof e.wasClean&&"number"==typeof e.code}}const MAX_REDIRECTS=100;class HttpConnection{constructor(e,t={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,Arg.isRequired(e,"url"),this._logger=createLogger(t.logger),this.baseUrl=this._resolveUrl(e),(t=t||{}).logMessageContent=void 0!==t.logMessageContent&&t.logMessageContent,"boolean"!=typeof t.withCredentials&&void 0!==t.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");t.withCredentials=void 0===t.withCredentials||t.withCredentials,t.timeout=void 0===t.timeout?1e5:t.timeout;let n=null,r=null;if(Platform.isNode&&"undefined"!=typeof require){const e="function"==typeof __webpack_require__?__non_webpack_require__:require;n=e("ws"),r=e("eventsource")}Platform.isNode||"undefined"==typeof WebSocket||t.WebSocket?Platform.isNode&&!t.WebSocket&&n&&(t.WebSocket=n):t.WebSocket=WebSocket,Platform.isNode||"undefined"==typeof EventSource||t.EventSource?Platform.isNode&&!t.EventSource&&void 0!==r&&(t.EventSource=r):t.EventSource=EventSource,this._httpClient=t.httpClient||new DefaultHttpClient(this._logger),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=t,this.onreceive=null,this.onclose=null}async start(e){if(e=e||TransferFormat.Binary,Arg.isIn(e,TransferFormat,"transferFormat"),this._logger.log(LogLevel.Debug,`Starting connection with transfer format '${TransferFormat[e]}'.`),"Disconnected"!==this._connectionState)return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(e),await this._startInternalPromise,"Disconnecting"===this._connectionState){const e="Failed to start the HttpConnection before stop() was called.";return this._logger.log(LogLevel.Error,e),await this._stopPromise,Promise.reject(new Error(e))}if("Connected"!==this._connectionState){const e="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(LogLevel.Error,e),Promise.reject(new Error(e))}this._connectionStarted=!0}send(e){return"Connected"!==this._connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new TransportSendQueue(this.transport)),this._sendQueue.send(e))}async stop(e){return"Disconnected"===this._connectionState?(this._logger.log(LogLevel.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):"Disconnecting"===this._connectionState?(this._logger.log(LogLevel.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState="Disconnecting",this._stopPromise=new Promise((e=>{this._stopPromiseResolver=e})),await this._stopInternal(e),void await this._stopPromise)}async _stopInternal(e){this._stopError=e;try{await this._startInternalPromise}catch(e){}if(this.transport){try{await this.transport.stop()}catch(e){this._logger.log(LogLevel.Error,`HttpConnection.transport.stop() threw error '${e}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(LogLevel.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(e){let t=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory;try{if(this._options.skipNegotiation){if(this._options.transport!==HttpTransportType.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");this.transport=this._constructTransport(HttpTransportType.WebSockets),await this._startTransport(t,e)}else{let n=null,r=0;do{if(n=await this._getNegotiationResponse(t),"Disconnecting"===this._connectionState||"Disconnected"===this._connectionState)throw new Error("The connection was stopped during negotiation.");if(n.error)throw new Error(n.error);if(n.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(n.url&&(t=n.url),n.accessToken){const e=n.accessToken;this._accessTokenFactory=()=>e}r++}while(n.url&&r<MAX_REDIRECTS);if(r===MAX_REDIRECTS&&n.url)throw new Error("Negotiate redirection limit exceeded.");await this._createTransport(t,this._options.transport,n,e)}this.transport instanceof LongPollingTransport&&(this.features.inherentKeepAlive=!0),"Connecting"===this._connectionState&&(this._logger.log(LogLevel.Debug,"The HttpConnection connected successfully."),this._connectionState="Connected")}catch(e){return this._logger.log(LogLevel.Error,"Failed to start the connection: "+e),this._connectionState="Disconnected",this.transport=void 0,this._stopPromiseResolver(),Promise.reject(e)}}async _getNegotiationResponse(e){const t={};if(this._accessTokenFactory){const e=await this._accessTokenFactory();e&&(t[HeaderNames.Authorization]=`Bearer ${e}`)}const[n,r]=getUserAgentHeader();t[n]=r;const i=this._resolveNegotiateUrl(e);this._logger.log(LogLevel.Debug,`Sending negotiation request: ${i}.`);try{const e=await this._httpClient.post(i,{content:"",headers:{...t,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials});if(200!==e.statusCode)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${e.statusCode}'`));const n=JSON.parse(e.content);return(!n.negotiateVersion||n.negotiateVersion<1)&&(n.connectionToken=n.connectionId),n}catch(e){let t="Failed to complete negotiation with the server: "+e;return e instanceof HttpError&&404===e.statusCode&&(t+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this._logger.log(LogLevel.Error,t),Promise.reject(new FailedToNegotiateWithServerError(t))}}_createConnectUrl(e,t){return t?e+(-1===e.indexOf("?")?"?":"&")+`id=${t}`:e}async _createTransport(e,t,n,r){let i=this._createConnectUrl(e,n.connectionToken);if(this._isITransport(t))return this._logger.log(LogLevel.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=t,await this._startTransport(i,r),void(this.connectionId=n.connectionId);const s=[],a=n.availableTransports||[];let o=n;for(const n of a){const a=this._resolveTransportOrError(n,t,r);if(a instanceof Error)s.push(`${n.transport} failed:`),s.push(a);else if(this._isITransport(a)){if(this.transport=a,!o){try{o=await this._getNegotiationResponse(e)}catch(e){return Promise.reject(e)}i=this._createConnectUrl(e,o.connectionToken)}try{return await this._startTransport(i,r),void(this.connectionId=o.connectionId)}catch(e){if(this._logger.log(LogLevel.Error,`Failed to start the transport '${n.transport}': ${e}`),o=void 0,s.push(new FailedToStartTransportError(`${n.transport} failed: ${e}`,HttpTransportType[n.transport])),"Connecting"!==this._connectionState){const e="Failed to select transport before stop() was called.";return this._logger.log(LogLevel.Debug,e),Promise.reject(new Error(e))}}}}return s.length>0?Promise.reject(new AggregateErrors(`Unable to connect to the server with any of the available transports. ${s.join(" ")}`,s)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(e){switch(e){case HttpTransportType.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new WebSocketTransport(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case HttpTransportType.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new ServerSentEventsTransport(this._httpClient,this._accessTokenFactory,this._logger,this._options);case HttpTransportType.LongPolling:return new LongPollingTransport(this._httpClient,this._accessTokenFactory,this._logger,this._options);default:throw new Error(`Unknown transport: ${e}.`)}}_startTransport(e,t){return this.transport.onreceive=this.onreceive,this.transport.onclose=e=>this._stopConnection(e),this.transport.connect(e,t)}_resolveTransportOrError(e,t,n){const r=HttpTransportType[e.transport];if(null==r)return this._logger.log(LogLevel.Debug,`Skipping transport '${e.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);if(!transportMatches(t,r))return this._logger.log(LogLevel.Debug,`Skipping transport '${HttpTransportType[r]}' because it was disabled by the client.`),new DisabledTransportError(`'${HttpTransportType[r]}' is disabled by the client.`,r);if(!(e.transferFormats.map((e=>TransferFormat[e])).indexOf(n)>=0))return this._logger.log(LogLevel.Debug,`Skipping transport '${HttpTransportType[r]}' because it does not support the requested transfer format '${TransferFormat[n]}'.`),new Error(`'${HttpTransportType[r]}' does not support ${TransferFormat[n]}.`);if(r===HttpTransportType.WebSockets&&!this._options.WebSocket||r===HttpTransportType.ServerSentEvents&&!this._options.EventSource)return this._logger.log(LogLevel.Debug,`Skipping transport '${HttpTransportType[r]}' because it is not supported in your environment.'`),new UnsupportedTransportError(`'${HttpTransportType[r]}' is not supported in your environment.`,r);this._logger.log(LogLevel.Debug,`Selecting transport '${HttpTransportType[r]}'.`);try{return this._constructTransport(r)}catch(e){return e}}_isITransport(e){return e&&"object"==typeof e&&"connect"in e}_stopConnection(e){if(this._logger.log(LogLevel.Debug,`HttpConnection.stopConnection(${e}) called while in state ${this._connectionState}.`),this.transport=void 0,e=this._stopError||e,this._stopError=void 0,"Disconnected"!==this._connectionState){if("Connecting"===this._connectionState)throw this._logger.log(LogLevel.Warning,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${e}) was called while the connection is still in the connecting state.`);if("Disconnecting"===this._connectionState&&this._stopPromiseResolver(),e?this._logger.log(LogLevel.Error,`Connection disconnected with error '${e}'.`):this._logger.log(LogLevel.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch((e=>{this._logger.log(LogLevel.Error,`TransportSendQueue.stop() threw error '${e}'.`)})),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(e)}catch(t){this._logger.log(LogLevel.Error,`HttpConnection.onclose(${e}) threw error '${t}'.`)}}}else this._logger.log(LogLevel.Debug,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is already in the disconnected state.`)}_resolveUrl(e){if(0===e.lastIndexOf("https://",0)||0===e.lastIndexOf("http://",0))return e;if(!Platform.isBrowser)throw new Error(`Cannot resolve '${e}'.`);const t=window.document.createElement("a");return t.href=e,this._logger.log(LogLevel.Information,`Normalizing '${e}' to '${t.href}'.`),t.href}_resolveNegotiateUrl(e){const t=e.indexOf("?");let n=e.substring(0,-1===t?e.length:t);return"/"!==n[n.length-1]&&(n+="/"),n+="negotiate",n+=-1===t?"":e.substring(t),-1===n.indexOf("negotiateVersion")&&(n+=-1===t?"?":"&",n+="negotiateVersion="+this._negotiateVersion),n}}function transportMatches(e,t){return!e||0!=(t&e)}class TransportSendQueue{constructor(e){this._transport=e,this._buffer=[],this._executing=!0,this._sendBufferedData=new PromiseSource,this._transportResult=new PromiseSource,this._sendLoopPromise=this._sendLoop()}send(e){return this._bufferData(e),this._transportResult||(this._transportResult=new PromiseSource),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(e){if(this._buffer.length&&typeof this._buffer[0]!=typeof e)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof e}`);this._buffer.push(e),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new PromiseSource;const e=this._transportResult;this._transportResult=void 0;const t="string"==typeof this._buffer[0]?this._buffer.join(""):TransportSendQueue._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(t),e.resolve()}catch(t){e.reject(t)}}}static _concatBuffers(e){const t=e.map((e=>e.byteLength)).reduce(((e,t)=>e+t)),n=new Uint8Array(t);let r=0;for(const t of e)n.set(new Uint8Array(t),r),r+=t.byteLength;return n.buffer}}class PromiseSource{constructor(){this.promise=new Promise(((e,t)=>[this._resolver,this._rejecter]=[e,t]))}resolve(){this._resolver()}reject(e){this._rejecter(e)}}const JSON_HUB_PROTOCOL_NAME="json";class JsonHubProtocol{constructor(){this.name=JSON_HUB_PROTOCOL_NAME,this.version=1,this.transferFormat=TransferFormat.Text}parseMessages(e,t){if("string"!=typeof e)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];null===t&&(t=NullLogger.instance);const n=TextMessageFormat.parse(e),r=[];for(const e of n){const n=JSON.parse(e);if("number"!=typeof n.type)throw new Error("Invalid payload.");switch(n.type){case MessageType.Invocation:this._isInvocationMessage(n);break;case MessageType.StreamItem:this._isStreamItemMessage(n);break;case MessageType.Completion:this._isCompletionMessage(n);break;case MessageType.Ping:case MessageType.Close:break;default:t.log(LogLevel.Information,"Unknown message type '"+n.type+"' ignored.");continue}r.push(n)}return r}writeMessage(e){return TextMessageFormat.write(JSON.stringify(e))}_isInvocationMessage(e){this._assertNotEmptyString(e.target,"Invalid payload for Invocation message."),void 0!==e.invocationId&&this._assertNotEmptyString(e.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(e){if(this._assertNotEmptyString(e.invocationId,"Invalid payload for StreamItem message."),void 0===e.item)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(e){if(e.result&&e.error)throw new Error("Invalid payload for Completion message.");!e.result&&e.error&&this._assertNotEmptyString(e.error,"Invalid payload for Completion message."),this._assertNotEmptyString(e.invocationId,"Invalid payload for Completion message.")}_assertNotEmptyString(e,t){if("string"!=typeof e||""===e)throw new Error(t)}}const LogLevelNameMapping={trace:LogLevel.Trace,debug:LogLevel.Debug,info:LogLevel.Information,information:LogLevel.Information,warn:LogLevel.Warning,warning:LogLevel.Warning,error:LogLevel.Error,critical:LogLevel.Critical,none:LogLevel.None};function parseLogLevel(e){const t=LogLevelNameMapping[e.toLowerCase()];if(void 0!==t)return t;throw new Error(`Unknown log level: ${e}`)}class HubConnectionBuilder{configureLogging(e){if(Arg.isRequired(e,"logging"),isLogger(e))this.logger=e;else if("string"==typeof e){const t=parseLogLevel(e);this.logger=new ConsoleLogger(t)}else this.logger=new ConsoleLogger(e);return this}withUrl(e,t){return Arg.isRequired(e,"url"),Arg.isNotEmpty(e,"url"),this.url=e,this.httpConnectionOptions="object"==typeof t?{...this.httpConnectionOptions,...t}:{...this.httpConnectionOptions,transport:t},this}withHubProtocol(e){return Arg.isRequired(e,"protocol"),this.protocol=e,this}withAutomaticReconnect(e){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return e?Array.isArray(e)?this.reconnectPolicy=new DefaultReconnectPolicy(e):this.reconnectPolicy=e:this.reconnectPolicy=new DefaultReconnectPolicy,this}build(){const e=this.httpConnectionOptions||{};if(void 0===e.logger&&(e.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const t=new HttpConnection(this.url,e);return HubConnection.create(t,this.logger||NullLogger.instance,this.protocol||new JsonHubProtocol,this.reconnectPolicy)}}function isLogger(e){return void 0!==e.log}class WeavyClient{constructor(e){this.groups=[],this.connectionEvents=[],this.token="",this.EVENT_NAMESPACE=".connection",this.EVENT_CLOSE="close",this.EVENT_RECONNECTING="reconnecting",this.EVENT_RECONNECTED="reconnected",this.url=e.url,this.tokenFactory=e.tokenFactory,this.tokenPromise=null,this.connection=(new HubConnectionBuilder).configureLogging(LogLevel.None).withUrl(this.url+"/hubs/rtm",{accessTokenFactory:()=>this.tokenFactoryInternal.call(this,!0,!0)}).withAutomaticReconnect().build(),this.isConnectionStarted=this.connection.start(),this.connection.onclose((e=>this.triggerHandler(this.EVENT_CLOSE,e))),this.connection.onreconnecting((e=>this.triggerHandler(this.EVENT_RECONNECTING,e))),this.connection.onreconnected((e=>this.triggerHandler(this.EVENT_RECONNECTED,e)))}get(e,t=!0){return __awaiter(this,void 0,void 0,(function*(){const n=yield fetch(this.url+e,{headers:{"content-type":"application/json",Authorization:"Bearer "+(yield this.tokenFactoryInternal())}});if(!n.ok){if((401===n.status||403===n.status)&&t)return yield this.tokenFactoryInternal(!0),yield this.get(e,!1);console.error(`Error calling endpoint ${e}`,n)}return n}))}post(e,t,n,r="application/json",i=!0){return __awaiter(this,void 0,void 0,(function*(){let s={Authorization:"Bearer "+(yield this.tokenFactoryInternal())};""!==r&&(s["content-type"]=r);const a=yield fetch(this.url+e,{method:t,body:n,headers:s});if(!a.ok){if((401===a.status||403===a.status)&&i)return yield this.tokenFactoryInternal(!0),yield this.post(e,t,n,r,!1);console.error(`Error calling endpoint ${e}`,a)}return a}))}getToken(e){return __awaiter(this,void 0,void 0,(function*(){return this.token&&!e||(this.token=yield this.tokenFactory(!0)),this.token}))}tokenFactoryInternal(e=!1,t=!1){return __awaiter(this,void 0,void 0,(function*(){if(this.token&&!e)return this.token;if(this.tokenPromise)return this.tokenPromise;{this.tokenPromise=this.tokenFactory(e);let t=yield this.tokenPromise;return this.tokenPromise=null,this.token=t,this.token}}))}subscribe(e,t,n){return __awaiter(this,void 0,void 0,(function*(){yield this.isConnectionStarted;try{var r=e?e+":"+t:t;yield this.connection.invoke("Subscribe",r),this.groups.push(r),this.connection.on(r,n)}catch(e){console.warn("Error in Subscribe:",e)}}))}unsubscribe(e,t,n){return __awaiter(this,void 0,void 0,(function*(){yield this.isConnectionStarted;var r=e?e+":"+t:t;const i=this.groups.findIndex((e=>e===r));if(-1!==i){this.groups=this.groups.splice(i,1);try{this.groups.find((e=>e===r))||(yield this.connection.invoke("Unsubscribe",r))}catch(e){console.warn("Error in Unsubscribe:",e)}}this.connection.off(r,n)}))}destroy(){this.connection.stop()}triggerHandler(e,...t){e=e.endsWith(this.EVENT_NAMESPACE)?e:e+this.EVENT_NAMESPACE;let n=new CustomEvent(e,{cancelable:!1});if(console.debug("triggerHandler",e),this.connectionEvents.forEach((r=>{r.name===e&&r.handler(n,...t)})),e===this.EVENT_RECONNECTED+this.EVENT_NAMESPACE)for(var r=0;r<this.groups.length;r++)this.connection.invoke("Subscribe",this.groups[r])}}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}var Subscribable=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_extends$1.apply(this,arguments)}var isServer="undefined"==typeof window;function noop(){}function functionalUpdate(e,t){return"function"==typeof e?e(t):e}function isValidTimeout(e){return"number"==typeof e&&e>=0&&e!==1/0}function ensureQueryKeyArray(e){return Array.isArray(e)?e:[e]}function timeUntilStale(e,t){return Math.max(e+(t||0)-Date.now(),0)}function parseQueryArgs(e,t,n){return isQueryKey(e)?"function"==typeof t?_extends$1({},n,{queryKey:e,queryFn:t}):_extends$1({},t,{queryKey:e}):e}function parseMutationArgs(e,t,n){return isQueryKey(e)?"function"==typeof t?_extends$1({},n,{mutationKey:e,mutationFn:t}):_extends$1({},t,{mutationKey:e}):"function"==typeof e?_extends$1({},t,{mutationFn:e}):_extends$1({},e)}function parseFilterArgs(e,t,n){return isQueryKey(e)?[_extends$1({},t,{queryKey:e}),n]:[e||{},t]}function mapQueryStatusFilter(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}function matchQuery(e,t){var n=e.active,r=e.exact,i=e.fetching,s=e.inactive,a=e.predicate,o=e.queryKey,l=e.stale;if(isQueryKey(o))if(r){if(t.queryHash!==hashQueryKeyByOptions(o,t.options))return!1}else if(!partialMatchKey(t.queryKey,o))return!1;var c=mapQueryStatusFilter(n,s);if("none"===c)return!1;if("all"!==c){var u=t.isActive();if("active"===c&&!u)return!1;if("inactive"===c&&u)return!1}return("boolean"!=typeof l||t.isStale()===l)&&(("boolean"!=typeof i||t.isFetching()===i)&&!(a&&!a(t)))}function matchMutation(e,t){var n=e.exact,r=e.fetching,i=e.predicate,s=e.mutationKey;if(isQueryKey(s)){if(!t.options.mutationKey)return!1;if(n){if(hashQueryKey(t.options.mutationKey)!==hashQueryKey(s))return!1}else if(!partialMatchKey(t.options.mutationKey,s))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function hashQueryKeyByOptions(e,t){return((null==t?void 0:t.queryKeyHashFn)||hashQueryKey)(e)}function hashQueryKey(e){return stableValueHash(ensureQueryKeyArray(e))}function stableValueHash(e){return JSON.stringify(e,(function(e,t){return isPlainObject$1(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function partialMatchKey(e,t){return partialDeepEqual(ensureQueryKeyArray(e),ensureQueryKeyArray(t))}function partialDeepEqual(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((function(n){return!partialDeepEqual(e[n],t[n])})))}function replaceEqualDeep(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||isPlainObject$1(e)&&isPlainObject$1(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{},o=0,l=0;l<s;l++){var c=n?l:i[l];a[c]=replaceEqualDeep(e[c],t[c]),a[c]===e[c]&&o++}return r===s&&o===r?e:a}return t}function shallowEqualObjects(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function isPlainObject$1(e){if(!hasObjectPrototype(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!hasObjectPrototype(n)&&!!n.hasOwnProperty("isPrototypeOf")}function hasObjectPrototype(e){return"[object Object]"===Object.prototype.toString.call(e)}function isQueryKey(e){return"string"==typeof e||Array.isArray(e)}function sleep(e){return new Promise((function(t){setTimeout(t,e)}))}function scheduleMicrotask(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function getAbortController(){if("function"==typeof AbortController)return new AbortController}var FocusManager=function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!isServer&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}_inheritsLoose(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setFocused(e):n.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(Subscribable),focusManager$1=new FocusManager,OnlineManager=function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!isServer&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}_inheritsLoose(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setOnline(e):n.onOnline()}))},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(e){e()}))},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(Subscribable),onlineManager=new OnlineManager;function defaultRetryDelay(e){return Math.min(1e3*Math.pow(2,e),3e4)}function isCancelable(e){return"function"==typeof(null==e?void 0:e.cancel)}var CancelledError=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function isCancelledError(e){return e instanceof CancelledError}var Retryer=function(e){var t,n,r,i,s=this,a=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){a=!0},this.continueRetry=function(){a=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){r=e,i=t}));var o=function(t){s.isResolved||(s.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),r(t))},l=function(t){s.isResolved||(s.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),i(t))};!function r(){if(!s.isResolved){var i;try{i=e.fn()}catch(e){i=Promise.reject(e)}t=function(e){if(!s.isResolved&&(l(new CancelledError(e)),null==s.abort||s.abort(),isCancelable(i)))try{i.cancel()}catch(e){}},s.isTransportCancelable=isCancelable(i),Promise.resolve(i).then(o).catch((function(t){var i,o;if(!s.isResolved){var c=null!=(i=e.retry)?i:3,u=null!=(o=e.retryDelay)?o:defaultRetryDelay,d="function"==typeof u?u(s.failureCount,t):u,h=!0===c||"number"==typeof c&&s.failureCount<c||"function"==typeof c&&c(s.failureCount,t);!a&&h?(s.failureCount++,null==e.onFail||e.onFail(s.failureCount,t),sleep(d).then((function(){if(!focusManager$1.isFocused()||!onlineManager.isOnline())return new Promise((function(t){n=t,s.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){n=void 0,s.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){a?l(t):r()}))):l(t)}}))}}()},NotifyManager=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):scheduleMicrotask((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.schedule((function(){e.apply(void 0,r)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&scheduleMicrotask((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}(),notifyManager=new NotifyManager,logger$1=console;function getLogger(){return logger$1}function setLogger(e){logger$1=e}var Query=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=_extends$1({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),isValidTimeout(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){clearTimeout(this.gcTimeout),this.gcTimeout=void 0},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,i=this.state.data,s=functionalUpdate(e,i);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,i,s))?s=i:!1!==this.options.structuralSharing&&(s=replaceEqualDeep(i,s)),this.dispatch({data:s,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),s},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(noop).catch(noop):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!timeUntilStale(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,i,s=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var a;return null==(a=this.retryer)||a.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var o=this.observers.find((function(e){return e.options.queryFn}));o&&this.setOptions(o.options)}var l=ensureQueryKeyArray(this.queryKey),c=getAbortController(),u={queryKey:l,pageParam:void 0,meta:this.meta};Object.defineProperty(u,"signal",{enumerable:!0,get:function(){if(c)return s.abortSignalConsumed=!0,c.signal}});var d,h,p={fetchOptions:t,options:this.options,queryKey:l,state:this.state,fetchFn:function(){return s.options.queryFn?(s.abortSignalConsumed=!1,s.options.queryFn(u)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(d=this.options.behavior)||d.onFetch(p));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=p.fetchOptions)?void 0:r.meta))||this.dispatch({type:"fetch",meta:null==(h=p.fetchOptions)?void 0:h.meta});return this.retryer=new Retryer({fn:p.fetchFn,abort:null==c||null==(i=c.abort)?void 0:i.bind(c),onSuccess:function(e){s.setData(e),null==s.cache.config.onSuccess||s.cache.config.onSuccess(e,s),0===s.cacheTime&&s.optionalRemove()},onError:function(e){isCancelledError(e)&&e.silent||s.dispatch({type:"error",error:e}),isCancelledError(e)||(null==s.cache.config.onError||s.cache.config.onError(e,s),getLogger().error(e)),0===s.cacheTime&&s.optionalRemove()},onFail:function(){s.dispatch({type:"failed"})},onPause:function(){s.dispatch({type:"pause"})},onContinue:function(){s.dispatch({type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),notifyManager.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var n,r;switch(t.type){case"failed":return _extends$1({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return _extends$1({},e,{isPaused:!0});case"continue":return _extends$1({},e,{isPaused:!1});case"fetch":return _extends$1({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return _extends$1({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(r=t.dataUpdatedAt)?r:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var i=t.error;return isCancelledError(i)&&i.revert&&this.revertState?_extends$1({},this.revertState):_extends$1({},e,{error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return _extends$1({},e,{isInvalidated:!0});case"setState":return _extends$1({},e,t.state);default:return e}},e}(),QueryCache=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}_inheritsLoose(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,i=t.queryKey,s=null!=(r=t.queryHash)?r:hashQueryKeyByOptions(i,t),a=this.get(s);return a||(a=new Query({cache:this,queryKey:i,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i),meta:t.meta}),this.add(a)),a},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;notifyManager.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=parseFilterArgs(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find((function(e){return matchQuery(n,e)}))},n.findAll=function(e,t){var n=parseFilterArgs(e,t)[0];return Object.keys(n).length>0?this.queries.filter((function(e){return matchQuery(n,e)})):this.queries},n.notify=function(e){var t=this;notifyManager.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){var e=this;notifyManager.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},n.onOnline=function(){var e=this;notifyManager.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(Subscribable),Mutation=function(){function e(e){this.options=_extends$1({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||getDefaultState(),this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(noop).catch(noop)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),r.then((function(){return t.executeMutation()})).then((function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),getLogger().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new Retryer({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=reducer(this.state,e),notifyManager.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function reducer(e,t){switch(t.type){case"failed":return _extends$1({},e,{failureCount:e.failureCount+1});case"pause":return _extends$1({},e,{isPaused:!0});case"continue":return _extends$1({},e,{isPaused:!1});case"loading":return _extends$1({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return _extends$1({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return _extends$1({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return _extends$1({},e,t.state);default:return e}}var MutationCache=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}_inheritsLoose(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new Mutation({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},n.clear=function(){var e=this;notifyManager.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((function(t){return matchMutation(e,t)}))},n.findAll=function(e){return this.mutations.filter((function(t){return matchMutation(e,t)}))},n.notify=function(e){var t=this;notifyManager.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return notifyManager.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(noop)}))}),Promise.resolve())}))},t}(Subscribable);function infiniteQueryBehavior(){return{onFetch:function(e){e.fetchFn=function(){var t,n,r,i,s,a,o,l=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(r=e.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,u=null==c?void 0:c.pageParam,d="forward"===(null==c?void 0:c.direction),h="backward"===(null==c?void 0:c.direction),p=(null==(s=e.state.data)?void 0:s.pages)||[],f=(null==(a=e.state.data)?void 0:a.pageParams)||[],g=getAbortController(),m=null==g?void 0:g.signal,v=f,y=!1,b=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},_=function(e,t,n,r){return v=r?[t].concat(v):[].concat(v,[t]),r?[n].concat(e):[].concat(e,[n])},w=function(t,n,r,i){if(y)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);var s={queryKey:e.queryKey,signal:m,pageParam:r,meta:e.meta},a=b(s),o=Promise.resolve(a).then((function(e){return _(t,r,e,i)}));isCancelable(a)&&(o.cancel=a.cancel);return o};if(p.length)if(d){var E=void 0!==u,S=E?u:getNextPageParam(e.options,p);o=w(p,E,S)}else if(h){var C=void 0!==u,A=C?u:getPreviousPageParam(e.options,p);o=w(p,C,A,!0)}else!function(){v=[];var t=void 0===e.options.getNextPageParam,n=!l||!p[0]||l(p[0],0,p);o=n?w([],t,f[0]):Promise.resolve(_([],f[0],p[0]));for(var r=function(n){o=o.then((function(r){if(!l||!p[n]||l(p[n],n,p)){var i=t?f[n]:getNextPageParam(e.options,r);return w(r,t,i)}return Promise.resolve(_(r,f[n],p[n]))}))},i=1;i<p.length;i++)r(i)}();else o=w([]);var P=o.then((function(e){return{pages:e,pageParams:v}}));return P.cancel=function(){y=!0,null==g||g.abort(),isCancelable(o)&&o.cancel()},P}}}}function getNextPageParam(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function getPreviousPageParam(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}function hasNextPage(e,t){if(e.getNextPageParam&&Array.isArray(t)){var n=getNextPageParam(e,t);return null!=n&&!1!==n}}function hasPreviousPage(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){var n=getPreviousPageParam(e,t);return null!=n&&!1!==n}}var QueryClient=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new QueryCache,this.mutationCache=e.mutationCache||new MutationCache,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=focusManager$1.subscribe((function(){focusManager$1.isFocused()&&onlineManager.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=onlineManager.subscribe((function(){focusManager$1.isFocused()&&onlineManager.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=parseFilterArgs(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll(_extends$1({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,n){var r=parseQueryArgs(e),i=this.defaultQueryOptions(r);return this.queryCache.build(this,i).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return notifyManager.batch((function(){return r.getQueryCache().findAll(e).map((function(e){var i=e.queryKey;return[i,r.setQueryData(i,t,n)]}))}))},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=parseFilterArgs(e,t)[0],r=this.queryCache;notifyManager.batch((function(){r.findAll(n).forEach((function(e){r.remove(e)}))}))},t.resetQueries=function(e,t,n){var r=this,i=parseFilterArgs(e,t,n),s=i[0],a=i[1],o=this.queryCache,l=_extends$1({},s,{active:!0});return notifyManager.batch((function(){return o.findAll(s).forEach((function(e){e.reset()})),r.refetchQueries(l,a)}))},t.cancelQueries=function(e,t,n){var r=this,i=parseFilterArgs(e,t,n),s=i[0],a=i[1],o=void 0===a?{}:a;void 0===o.revert&&(o.revert=!0);var l=notifyManager.batch((function(){return r.queryCache.findAll(s).map((function(e){return e.cancel(o)}))}));return Promise.all(l).then(noop).catch(noop)},t.invalidateQueries=function(e,t,n){var r,i,s,a=this,o=parseFilterArgs(e,t,n),l=o[0],c=o[1],u=_extends$1({},l,{active:null==(r=null!=(i=l.refetchActive)?i:l.active)||r,inactive:null!=(s=l.refetchInactive)&&s});return notifyManager.batch((function(){return a.queryCache.findAll(l).forEach((function(e){e.invalidate()})),a.refetchQueries(u,c)}))},t.refetchQueries=function(e,t,n){var r=this,i=parseFilterArgs(e,t,n),s=i[0],a=i[1],o=notifyManager.batch((function(){return r.queryCache.findAll(s).map((function(e){return e.fetch(void 0,_extends$1({},a,{meta:{refetchPage:null==s?void 0:s.refetchPage}}))}))})),l=Promise.all(o).then(noop);return(null==a?void 0:a.throwOnError)||(l=l.catch(noop)),l},t.fetchQuery=function(e,t,n){var r=parseQueryArgs(e,t,n),i=this.defaultQueryOptions(r);void 0===i.retry&&(i.retry=!1);var s=this.queryCache.build(this,i);return s.isStaleByTime(i.staleTime)?s.fetch(i):Promise.resolve(s.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(noop).catch(noop)},t.fetchInfiniteQuery=function(e,t,n){var r=parseQueryArgs(e,t,n);return r.behavior=infiniteQueryBehavior(),this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(noop).catch(noop)},t.cancelMutations=function(){var e=this,t=notifyManager.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(noop).catch(noop)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find((function(t){return hashQueryKey(e)===hashQueryKey(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return partialMatchKey(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find((function(t){return hashQueryKey(e)===hashQueryKey(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return partialMatchKey(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=_extends$1({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=hashQueryKeyByOptions(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:_extends$1({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),QueryObserver=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}_inheritsLoose(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),shouldFetchOnMount(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var i=this.hasListeners();i&&shouldFetchOptionally(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var s=this.computeRefetchInterval();!i||this.currentQuery===r&&this.options.enabled===n.enabled&&s===this.currentRefetchInterval||this.updateRefetchInterval(s)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},i=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return i(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&i("error"),r},n.getNextResult=function(e){var t=this;return new Promise((function(n,r){var i=t.subscribe((function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch(_extends$1({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then((function(){return t.createResult(r,n)}))},n.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(noop)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!isServer&&!this.currentResult.isStale&&isValidTimeout(this.options.staleTime)){var t=timeUntilStale(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},n.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!isServer&&!1!==this.options.enabled&&isValidTimeout(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||focusManager$1.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0},n.clearRefetchInterval=function(){clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0},n.createResult=function(e,t){var n,r=this.currentQuery,i=this.options,s=this.currentResult,a=this.currentResultState,o=this.currentResultOptions,l=e!==r,c=l?e.state:this.currentQueryInitialState,u=l?this.currentResult:this.previousQueryResult,d=e.state,h=d.dataUpdatedAt,p=d.error,f=d.errorUpdatedAt,g=d.isFetching,m=d.status,v=!1,y=!1;if(t.optimisticResults){var b=this.hasListeners(),_=!b&&shouldFetchOnMount(e,t),w=b&&shouldFetchOptionally(e,r,t,i);(_||w)&&(g=!0,h||(m="loading"))}if(t.keepPreviousData&&!d.dataUpdateCount&&(null==u?void 0:u.isSuccess)&&"error"!==m)n=u.data,h=u.dataUpdatedAt,m=u.status,v=!0;else if(t.select&&void 0!==d.data)if(s&&d.data===(null==a?void 0:a.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(d.data),!1!==t.structuralSharing&&(n=replaceEqualDeep(null==s?void 0:s.data,n)),this.selectResult=n,this.selectError=null}catch(e){getLogger().error(e),this.selectError=e}else n=d.data;if(void 0!==t.placeholderData&&void 0===n&&("loading"===m||"idle"===m)){var E;if((null==s?void 0:s.isPlaceholderData)&&t.placeholderData===(null==o?void 0:o.placeholderData))E=s.data;else if(E="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==E)try{E=t.select(E),!1!==t.structuralSharing&&(E=replaceEqualDeep(null==s?void 0:s.data,E)),this.selectError=null}catch(e){getLogger().error(e),this.selectError=e}void 0!==E&&(m="success",n=E,y=!0)}return this.selectError&&(p=this.selectError,n=this.selectResult,f=Date.now(),m="error"),{status:m,isLoading:"loading"===m,isSuccess:"success"===m,isError:"error"===m,isIdle:"idle"===m,data:n,dataUpdatedAt:h,error:p,errorUpdatedAt:f,failureCount:d.fetchFailureCount,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:g,isRefetching:g&&"loading"!==m,isLoadingError:"error"===m&&0===d.dataUpdatedAt,isPlaceholderData:y,isPreviousData:v,isRefetchError:"error"===m&&0!==d.dataUpdatedAt,isStale:isStale(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var s="tracked"===r?this.trackedProps:r;return Object.keys(e).some((function(n){var r=n,a=e[r]!==t[r],o=null==s?void 0:s.some((function(e){return e===n})),l=null==i?void 0:i.some((function(e){return e===n}));return a&&!l&&(!s||o)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!shallowEqualObjects(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify(_extends$1({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||isCancelledError(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;notifyManager.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(Subscribable);function shouldLoadOnMount(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}function shouldFetchOnMount(e,t){return shouldLoadOnMount(e,t)||e.state.dataUpdatedAt>0&&shouldFetchOn(e,t,t.refetchOnMount)}function shouldFetchOn(e,t,n){if(!1!==t.enabled){var r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&isStale(e,t)}return!1}function shouldFetchOptionally(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&isStale(e,n)}function isStale(e,t){return e.isStaleByTime(t.staleTime)}var InfiniteQueryObserver=function(e){function t(t,n){return e.call(this,t,n)||this}_inheritsLoose(t,e);var n=t.prototype;return n.bindMethods=function(){e.prototype.bindMethods.call(this),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)},n.setOptions=function(t,n){e.prototype.setOptions.call(this,_extends$1({},t,{behavior:infiniteQueryBehavior()}),n)},n.getOptimisticResult=function(t){return t.behavior=infiniteQueryBehavior(),e.prototype.getOptimisticResult.call(this,t)},n.fetchNextPage=function(e){var t;return this.fetch({cancelRefetch:null==(t=null==e?void 0:e.cancelRefetch)||t,throwOnError:null==e?void 0:e.throwOnError,meta:{fetchMore:{direction:"forward",pageParam:null==e?void 0:e.pageParam}}})},n.fetchPreviousPage=function(e){var t;return this.fetch({cancelRefetch:null==(t=null==e?void 0:e.cancelRefetch)||t,throwOnError:null==e?void 0:e.throwOnError,meta:{fetchMore:{direction:"backward",pageParam:null==e?void 0:e.pageParam}}})},n.createResult=function(t,n){var r,i,s,a,o,l,c=t.state;return _extends$1({},e.prototype.createResult.call(this,t,n),{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:hasNextPage(n,null==(r=c.data)?void 0:r.pages),hasPreviousPage:hasPreviousPage(n,null==(i=c.data)?void 0:i.pages),isFetchingNextPage:c.isFetching&&"forward"===(null==(s=c.fetchMeta)||null==(a=s.fetchMore)?void 0:a.direction),isFetchingPreviousPage:c.isFetching&&"backward"===(null==(o=c.fetchMeta)||null==(l=o.fetchMore)?void 0:l.direction)})},t}(QueryObserver),MutationObserver$1=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.setOptions(n),r.bindMethods(),r.updateResult(),r}_inheritsLoose(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){var e;this.listeners.length||(null==(e=this.currentMutation)||e.removeObserver(this))},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,_extends$1({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:getDefaultState(),t=_extends$1({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},n.notify=function(e){var t=this;notifyManager.batch((function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)}))}))},t}(Subscribable),unstable_batchedUpdates=ReactDOM.unstable_batchedUpdates;notifyManager.setBatchNotifyFunction(unstable_batchedUpdates);var logger=console;setLogger(logger);var defaultContext=React.createContext(void 0),QueryClientSharingContext=React.createContext(!1);function getQueryClientContext(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=defaultContext),window.ReactQueryClientContext):defaultContext}var useQueryClient=function(){var e=React.useContext(getQueryClientContext(React.useContext(QueryClientSharingContext)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},QueryClientProvider=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,i=e.children;React.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var s=getQueryClientContext(r);return React.createElement(QueryClientSharingContext.Provider,{value:r},React.createElement(s.Provider,{value:t},i))};function createValue(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var QueryErrorResetBoundaryContext=React.createContext(createValue()),useQueryErrorResetBoundary=function(){return React.useContext(QueryErrorResetBoundaryContext)};function shouldThrowError(e,t,n){return"function"==typeof t?t.apply(void 0,n):"boolean"==typeof t?t:!!e}function useMutation(e,t,n){var r=React.useRef(!1),i=React.useState(0)[1],s=parseMutationArgs(e,t,n),a=useQueryClient(),o=React.useRef();o.current?o.current.setOptions(s):o.current=new MutationObserver$1(a,s);var l=o.current.getCurrentResult();React.useEffect((function(){r.current=!0;var e=o.current.subscribe(notifyManager.batchCalls((function(){r.current&&i((function(e){return e+1}))})));return function(){r.current=!1,e()}}),[]);var c=React.useCallback((function(e,t){o.current.mutate(e,t).catch(noop)}),[]);if(l.error&&shouldThrowError(void 0,o.current.options.useErrorBoundary,[l.error]))throw l.error;return _extends$1({},l,{mutate:c,mutateAsync:l.mutate})}function useBaseQuery(e,t){var n=React.useRef(!1),r=React.useState(0)[1],i=useQueryClient(),s=useQueryErrorResetBoundary(),a=i.defaultQueryObserverOptions(e);a.optimisticResults=!0,a.onError&&(a.onError=notifyManager.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=notifyManager.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=notifyManager.batchCalls(a.onSettled)),a.suspense&&("number"!=typeof a.staleTime&&(a.staleTime=1e3),0===a.cacheTime&&(a.cacheTime=1)),(a.suspense||a.useErrorBoundary)&&(s.isReset()||(a.retryOnMount=!1));var o=React.useState((function(){return new t(i,a)}))[0],l=o.getOptimisticResult(a);if(React.useEffect((function(){n.current=!0,s.clearReset();var e=o.subscribe(notifyManager.batchCalls((function(){n.current&&r((function(e){return e+1}))})));return o.updateResult(),function(){n.current=!1,e()}}),[s,o]),React.useEffect((function(){o.setOptions(a,{listeners:!1})}),[a,o]),a.suspense&&l.isLoading)throw o.fetchOptimistic(a).then((function(e){var t=e.data;null==a.onSuccess||a.onSuccess(t),null==a.onSettled||a.onSettled(t,null)})).catch((function(e){s.clearReset(),null==a.onError||a.onError(e),null==a.onSettled||a.onSettled(void 0,e)}));if(l.isError&&!s.isReset()&&!l.isFetching&&shouldThrowError(a.suspense,a.useErrorBoundary,[l.error,o.getCurrentQuery()]))throw l.error;return"tracked"===a.notifyOnChangeProps&&(l=o.trackResult(l,a)),l}function useQuery(e,t,n){return useBaseQuery(parseQueryArgs(e,t,n),QueryObserver)}function useInfiniteQuery(e,t,n){return useBaseQuery(parseQueryArgs(e,t,n),InfiniteQueryObserver)}function useUser(e){if(!e)throw new Error("useUser must be used within an WeavyProvider");return useQuery("user",(()=>__awaiter(this,void 0,void 0,(function*(){try{const t=yield e.get("/api/user");return t.ok?yield t.json():(console.error("Could not load Weavy user data..."),null)}catch(t){console.error(`Could not connect to the Weavy backend. Please make sure ${e.url} is up and running!`)}}))))}const UserContext=createContext({user:{id:-1,uid:"",username:"anonymous",name:"Anonymous",email:"",display_name:"",presence:"",avatar_url:""}}),UserProvider=({children:e,client:t})=>{const{isLoading:n,data:r}=useUser(t);return React.createElement(React.Fragment,null,!n&&r&&React.createElement(UserContext.Provider,{value:{user:r}},e))};var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){var t=e.default;if("function"==typeof t){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var dayjs_min={exports:{}};dayjs_min.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",s="minute",a="hour",o="day",l="week",c="month",u="quarter",d="year",h="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,c),s=n-i<0,a=t.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:o,D:h,h:a,m:s,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",_={};_[b]=m;var w=function(e){return e instanceof A},E=function e(t,n,r){var i;if(!t)return b;if("string"==typeof t){var s=t.toLowerCase();_[s]&&(i=s),n&&(_[s]=n,i=s);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var o=t.name;_[o]=t,i=o}return!r&&i&&(b=i),i||!r&&b},S=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new A(n)},C=y;C.l=E,C.i=w,C.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var A=function(){function m(e){this.$L=E(e.locale,null,!0),this.parse(e)}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return S(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<S(e)},v.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!C.u(t)||t,u=C.p(e),p=function(e,t){var i=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(o)},f=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case c:return r?p(1,m):p(0,m+1);case l:var b=this.$locale().weekStart||0,_=(g<b?g+7:g)-b;return p(r?v-_:v+(6-_),m);case o:case h:return f(y+"Hours",0);case a:return f(y+"Minutes",1);case s:return f(y+"Seconds",2);case i:return f(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=C.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[o]=u+"Date",n[h]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[s]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],f=l===o?this.$D+(t-this.$W):t;if(l===c||l===d){var g=this.clone().set(h,1);g.$d[p](f),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[C.p(e)]()},v.add=function(r,u){var h,p=this;r=Number(r);var f=C.p(u),g=function(e){var t=S(p);return C.w(t.date(t.date()+Math.round(e*r)),p)};if(f===c)return this.set(c,this.$M+r);if(f===d)return this.set(d,this.$y+r);if(f===o)return g(1);if(f===l)return g(7);var m=(h={},h[s]=t,h[a]=n,h[i]=e,h)[f]||1,v=this.$d.getTime()+r*m;return C.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=C.z(this),s=this.$H,a=this.$m,o=this.$M,l=n.weekdays,c=n.months,u=function(e,n,i,s){return e&&(e[n]||e(t,r))||i[n].slice(0,s)},d=function(e){return C.s(s%12||12,e,"0")},h=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},f={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:C.s(o+1,2,"0"),MMM:u(n.monthsShort,o,c,3),MMMM:u(c,o),D:this.$D,DD:C.s(this.$D,2,"0"),d:String(this.$W),dd:u(n.weekdaysMin,this.$W,l,2),ddd:u(n.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(s),HH:C.s(s,2,"0"),h:d(1),hh:d(2),a:h(s,a,!0),A:h(s,a,!1),m:String(a),mm:C.s(a,2,"0"),s:String(this.$s),ss:C.s(this.$s,2,"0"),SSS:C.s(this.$ms,3,"0"),Z:i};return r.replace(g,(function(e,t){return t||f[e]||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,h,p){var f,g=C.p(h),m=S(r),v=(m.utcOffset()-this.utcOffset())*t,y=this-m,b=C.m(this,m);return b=(f={},f[d]=b/12,f[c]=b,f[u]=b/3,f[l]=(y-v)/6048e5,f[o]=(y-v)/864e5,f[a]=y/n,f[s]=y/t,f[i]=y/e,f)[g]||y,p?b:C.a(b)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return _[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=E(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return C.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),P=A.prototype;return S.prototype=P,[["$ms",r],["$s",i],["$m",s],["$H",a],["$W",o],["$M",c],["$y",d],["$D",h]].forEach((function(e){P[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,A,S),e.$i=!0),S},S.locale=E,S.isDayjs=w,S.unix=function(e){return S(1e3*e)},S.en=_[b],S.Ls=_,S.p={},S}();var dayjs=dayjs_min.exports,relativeTime$1={exports:{}};relativeTime$1.exports=function(e,t,n){e=e||{};var r=t.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(e,t,n,i){return r.fromToBase(e,t,n,i)}n.en.relativeTime=i,r.fromToBase=function(t,r,s,a,o){for(var l,c,u,d=s.$locale().relativeTime||i,h=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],p=h.length,f=0;f<p;f+=1){var g=h[f];g.d&&(l=a?n(t).diff(s,g.d,!0):s.diff(t,g.d,!0));var m=(e.rounding||Math.round)(Math.abs(l));if(u=l>0,m<=g.r||!g.r){m<=1&&f>0&&(g=h[f-1]);var v=d[g.l];o&&(m=o(""+m)),c="string"==typeof v?v.replace("%d",m):v(m,r,g.l,u);break}}if(r)return c;var y=u?d.future:d.past;return"function"==typeof y?y(c):y.replace("%s",c)},r.to=function(e,t){return s(e,t,this,!0)},r.from=function(e,t){return s(e,t,this)};var a=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(a(this),e)},r.fromNow=function(e){return this.from(a(this),e)}};var relativeTime=relativeTime$1.exports,utc$1={exports:{}},t,i,e;utc$1.exports=(t="minute",i=/[+-]\d\d(?::?\d\d)?/g,e=/([+-]|\d\d)/g,function(n,r,s){var a=r.prototype;s.utc=function(e){return new r({date:e,utc:!0,args:arguments})},a.utc=function(e){var n=s(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},a.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var o=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),o.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=a.utcOffset;a.utcOffset=function(n,r){var s=this.$utils().u;if(s(n))return this.$u?0:s(this.$offset)?c.call(this):this.$offset;if("string"==typeof n&&(n=function(t){void 0===t&&(t="");var n=t.match(i);if(!n)return null;var r=(""+n[0]).match(e)||["-",0,0],s=r[0],a=60*+r[1]+ +r[2];return 0===a?0:"+"===s?a:-a}(n),null===n))return this;var a=Math.abs(n)<=16?60*n:n,o=this;if(r)return o.$offset=a,o.$u=0===n,o;if(0!==n){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(a+l,t)).$offset=a,o.$x.$localOffset=l}else o=this.utc();return o};var u=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var h=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return h.call(this,e,t,n);var r=this.local(),i=s(e).local();return h.call(r,i,t,n)}});var utc=utc$1.exports,timezone$1={exports:{}};timezone$1.exports=function(){var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,i){var s,a=function(e,n,r){void 0===r&&(r={});var i=new Date(e),s=function(e,n){void 0===n&&(n={});var r=n.timeZoneName||"short",i=e+"|"+r,s=t[i];return s||(s=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),t[i]=s),s}(n,r);return s.formatToParts(i)},o=function(t,n){for(var r=a(t,n),s=[],o=0;o<r.length;o+=1){var l=r[o],c=l.type,u=l.value,d=e[c];d>=0&&(s[d]=parseInt(u,10))}var h=s[3],p=24===h?0:h,f=s[0]+"-"+s[1]+"-"+s[2]+" "+p+":"+s[4]+":"+s[5]+":000",g=+t;return(i.utc(f).valueOf()-(g-=g%1e3))/6e4},l=r.prototype;l.tz=function(e,t){void 0===e&&(e=s);var n=this.utcOffset(),r=this.toDate(),a=r.toLocaleString("en-US",{timeZone:e}),o=Math.round((r-new Date(a))/1e3/60),l=i(a).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-o,!0);if(t){var c=l.utcOffset();l=l.add(n-c,"minute")}return l.$x.$timezone=e,l},l.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var c=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(n,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,n){var r=n&&t,a=n||t||s,l=o(+i(),a);if("string"!=typeof e)return i(e).tz(a);var c=function(e,t,n){var r=e-60*t*1e3,i=o(r,n);if(t===i)return[r,t];var s=o(r-=60*(i-t)*1e3,n);return i===s?[r,i]:[e-60*Math.min(i,s)*1e3,Math.max(i,s)]}(i.utc(e,r).valueOf(),l,a),u=c[0],d=c[1],h=i(u).utcOffset(d);return h.$x.$timezone=a,h},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){s=e}}}();var timezone=timezone$1.exports,localizedFormat$1={exports:{}};localizedFormat$1.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var i=n.prototype,s=i.format;r.en.formats=e,i.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var s=i&&i.toUpperCase();return r||n[i]||e[i]||n[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,void 0===n?{}:n);return s.call(this,r)}}}();var localizedFormat=localizedFormat$1.exports,lib={exports:{}},Modal$2={},propTypes={exports:{}},reactIs={exports:{}},reactIs_production_min={},hasRequiredReactIs_production_min;function requireReactIs_production_min(){if(hasRequiredReactIs_production_min)return reactIs_production_min;hasRequiredReactIs_production_min=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case l:case c:case r:case s:case i:case d:return e;default:switch(e=e&&e.$$typeof){case o:case u:case f:case p:case a:return e;default:return h}}case n:return h}}}function _(e){return b(e)===c}return reactIs_production_min.AsyncMode=l,reactIs_production_min.ConcurrentMode=c,reactIs_production_min.ContextConsumer=o,reactIs_production_min.ContextProvider=a,reactIs_production_min.Element=t,reactIs_production_min.ForwardRef=u,reactIs_production_min.Fragment=r,reactIs_production_min.Lazy=f,reactIs_production_min.Memo=p,reactIs_production_min.Portal=n,reactIs_production_min.Profiler=s,reactIs_production_min.StrictMode=i,reactIs_production_min.Suspense=d,reactIs_production_min.isAsyncMode=function(e){return _(e)||b(e)===l},reactIs_production_min.isConcurrentMode=_,reactIs_production_min.isContextConsumer=function(e){return b(e)===o},reactIs_production_min.isContextProvider=function(e){return b(e)===a},reactIs_production_min.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},reactIs_production_min.isForwardRef=function(e){return b(e)===u},reactIs_production_min.isFragment=function(e){return b(e)===r},reactIs_production_min.isLazy=function(e){return b(e)===f},reactIs_production_min.isMemo=function(e){return b(e)===p},reactIs_production_min.isPortal=function(e){return b(e)===n},reactIs_production_min.isProfiler=function(e){return b(e)===s},reactIs_production_min.isStrictMode=function(e){return b(e)===i},reactIs_production_min.isSuspense=function(e){return b(e)===d},reactIs_production_min.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===s||e===i||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===a||e.$$typeof===o||e.$$typeof===u||e.$$typeof===m||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},reactIs_production_min.typeOf=b,reactIs_production_min}var reactIs_development={},hasRequiredReactIs_development,hasRequiredReactIs,objectAssign,hasRequiredObjectAssign,ReactPropTypesSecret_1,hasRequiredReactPropTypesSecret,has,hasRequiredHas,checkPropTypes_1,hasRequiredCheckPropTypes,factoryWithTypeCheckers,hasRequiredFactoryWithTypeCheckers,factoryWithThrowingShims,hasRequiredFactoryWithThrowingShims,hasRequiredPropTypes;
|
|
2
2
|
/** @license React v16.13.1
|
|
3
3
|
* react-is.development.js
|
|
4
4
|
*
|
|
@@ -6,12 +6,12 @@ import React,{createContext,useState,Children,useRef,useCallback,useEffect,useCo
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/function requireReactIs_development(){return hasRequiredReactIs_development||(hasRequiredReactIs_development=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,
|
|
9
|
+
*/function requireReactIs_development(){return hasRequiredReactIs_development||(hasRequiredReactIs_development=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var g=e.type;switch(g){case l:case c:case r:case s:case i:case d:return g;default:var m=g&&g.$$typeof;switch(m){case o:case u:case f:case p:case a:return m;default:return h}}case n:return h}}}var _=l,w=c,E=o,S=a,C=t,A=u,P=r,x=f,T=p,M=n,R=s,L=i,I=d,k=!1;function O(e){return b(e)===c}reactIs_development.AsyncMode=_,reactIs_development.ConcurrentMode=w,reactIs_development.ContextConsumer=E,reactIs_development.ContextProvider=S,reactIs_development.Element=C,reactIs_development.ForwardRef=A,reactIs_development.Fragment=P,reactIs_development.Lazy=x,reactIs_development.Memo=T,reactIs_development.Portal=M,reactIs_development.Profiler=R,reactIs_development.StrictMode=L,reactIs_development.Suspense=I,reactIs_development.isAsyncMode=function(e){return k||(k=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),O(e)||b(e)===l},reactIs_development.isConcurrentMode=O,reactIs_development.isContextConsumer=function(e){return b(e)===o},reactIs_development.isContextProvider=function(e){return b(e)===a},reactIs_development.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},reactIs_development.isForwardRef=function(e){return b(e)===u},reactIs_development.isFragment=function(e){return b(e)===r},reactIs_development.isLazy=function(e){return b(e)===f},reactIs_development.isMemo=function(e){return b(e)===p},reactIs_development.isPortal=function(e){return b(e)===n},reactIs_development.isProfiler=function(e){return b(e)===s},reactIs_development.isStrictMode=function(e){return b(e)===i},reactIs_development.isSuspense=function(e){return b(e)===d},reactIs_development.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===s||e===i||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===a||e.$$typeof===o||e.$$typeof===u||e.$$typeof===m||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},reactIs_development.typeOf=b}()),reactIs_development}function requireReactIs(){return hasRequiredReactIs||(hasRequiredReactIs=1,e=reactIs,"production"===process.env.NODE_ENV?e.exports=requireReactIs_production_min():e.exports=requireReactIs_development()),reactIs.exports;var e}
|
|
10
10
|
/*
|
|
11
11
|
object-assign
|
|
12
12
|
(c) Sindre Sorhus
|
|
13
13
|
@license MIT
|
|
14
|
-
*/function requireObjectAssign(){if(hasRequiredObjectAssign)return objectAssign;hasRequiredObjectAssign=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}return objectAssign=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(o,s){for(var r,i,f=a(o),c=1;c<arguments.length;c++){for(var l in r=Object(arguments[c]))t.call(r,l)&&(f[l]=r[l]);if(e){i=e(r);for(var u=0;u<i.length;u++)n.call(r,i[u])&&(f[i[u]]=r[i[u]])}}return f},objectAssign}function requireReactPropTypesSecret(){if(hasRequiredReactPropTypesSecret)return ReactPropTypesSecret_1;hasRequiredReactPropTypesSecret=1;return ReactPropTypesSecret_1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function requireHas(){return hasRequiredHas?has:(hasRequiredHas=1,has=Function.call.bind(Object.prototype.hasOwnProperty))}function requireCheckPropTypes(){if(hasRequiredCheckPropTypes)return checkPropTypes_1;hasRequiredCheckPropTypes=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=requireReactPropTypesSecret(),n={},a=requireHas();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,s,r,i,f){if("production"!==process.env.NODE_ENV)for(var c in o)if(a(o,c)){var l;try{if("function"!=typeof o[c]){var u=Error((i||"React class")+": "+r+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}l=o[c](s,c,i,r,null,t)}catch(e){l=e}if(!l||l instanceof Error||e((i||"React class")+": type specification of "+r+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof l+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),l instanceof Error&&!(l.message in n)){n[l.message]=!0;var _=f?f():"";e("Failed "+r+" type: "+l.message+(null!=_?_:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},checkPropTypes_1=o}function requireFactoryWithTypeCheckers(){if(hasRequiredFactoryWithTypeCheckers)return factoryWithTypeCheckers;hasRequiredFactoryWithTypeCheckers=1;var e=requireReactIs(),t=requireObjectAssign(),n=requireReactPropTypesSecret(),a=requireHas(),o=requireCheckPropTypes(),s=function(){};function r(){return null}return"production"!==process.env.NODE_ENV&&(s=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),factoryWithTypeCheckers=function(i,f){var c="function"==typeof Symbol&&Symbol.iterator;var l="<<anonymous>>",u={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:h(r),arrayOf:function(e){return h((function(t,a,o,s,r){if("function"!=typeof e)return new d("Property `"+r+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var i=t[a];if(!Array.isArray(i))return new d("Invalid "+s+" `"+r+"` of type `"+b(i)+"` supplied to `"+o+"`, expected an array.");for(var f=0;f<i.length;f++){var c=e(i,f,o,s,r+"["+f+"]",n);if(c instanceof Error)return c}return null}))},element:h((function(e,t,n,a,o){var s=e[t];return i(s)?null:new d("Invalid "+a+" `"+o+"` of type `"+b(s)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:h((function(t,n,a,o,s){var r=t[n];return e.isValidElementType(r)?null:new d("Invalid "+o+" `"+s+"` of type `"+b(r)+"` supplied to `"+a+"`, expected a single ReactElement type.")})),instanceOf:function(e){return h((function(t,n,a,o,s){if(!(t[n]instanceof e)){var r=e.name||l;return new d("Invalid "+o+" `"+s+"` of type `"+(((i=t[n]).constructor&&i.constructor.name?i.constructor.name:l)+"` supplied to `")+a+"`, expected instance of `"+r+"`.")}var i;return null}))},node:h((function(e,t,n,a,o){return g(e[t])?null:new d("Invalid "+a+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,o,s,r,i){if("function"!=typeof e)return new d("Property `"+i+"` of component `"+s+"` has invalid PropType notation inside objectOf.");var f=t[o],c=b(f);if("object"!==c)return new d("Invalid "+r+" `"+i+"` of type `"+c+"` supplied to `"+s+"`, expected an object.");for(var l in f)if(a(f,l)){var u=e(f,l,s,r,i+"."+l,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&s(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),r;function t(t,n,a,o,s){for(var r=t[n],i=0;i<e.length;i++)if(_(r,e[i]))return null;var f=JSON.stringify(e,(function(e,t){return"symbol"===y(t)?String(t):t}));return new d("Invalid "+o+" `"+s+"` of value `"+String(r)+"` supplied to `"+a+"`, expected one of "+f+".")}return h(t)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&s("Invalid argument supplied to oneOfType, expected an instance of array."),r;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+v(o)+" at index "+t+"."),r}return h((function(t,o,s,r,i){for(var f=[],c=0;c<e.length;c++){var l=(0,e[c])(t,o,s,r,i,n);if(null==l)return null;l.data&&a(l.data,"expectedType")&&f.push(l.data.expectedType)}return new d("Invalid "+r+" `"+i+"` supplied to `"+s+"`"+(f.length>0?", expected one of type ["+f.join(", ")+"]":"")+".")}))},shape:function(e){return h((function(t,a,o,s,r){var i=t[a],f=b(i);if("object"!==f)return new d("Invalid "+s+" `"+r+"` of type `"+f+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var l=e[c];if("function"!=typeof l)return p(o,s,r,c,y(l));var u=l(i,c,o,s,r+"."+c,n);if(u)return u}return null}))},exact:function(e){return h((function(o,s,r,i,f){var c=o[s],l=b(c);if("object"!==l)return new d("Invalid "+i+" `"+f+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");var u=t({},o[s],e);for(var _ in u){var h=e[_];if(a(e,_)&&"function"!=typeof h)return p(r,i,f,_,y(h));if(!h)return new d("Invalid "+i+" `"+f+"` key `"+_+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(o[s],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=h(c,_,r,i,f+"."+_,n);if(m)return m}return null}))}};function _(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},a=0;function o(o,r,i,c,u,_,h){if(c=c||l,_=_||i,h!==n){if(f){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var p=c+":"+i;!t[p]&&a<3&&(s("You are manually calling a React.PropTypes validation function for the `"+_+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[p]=!0,a++)}}return null==r[i]?o?null===r[i]?new d("The "+u+" `"+_+"` is marked as required in `"+c+"`, but its value is `null`."):new d("The "+u+" `"+_+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(r,i,c,u,_)}var r=o.bind(null,!1);return r.isRequired=o.bind(null,!0),r}function m(e){return h((function(t,n,a,o,s,r){var i=t[n];return b(i)!==e?new d("Invalid "+o+" `"+s+"` of type `"+y(i)+"` supplied to `"+a+"`, expected `"+e+"`.",{expectedType:e}):null}))}function p(e,t,n,a,o){return new d((e||"React class")+": "+t+" type `"+n+"."+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function g(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(g);if(null===e||i(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,a=t.call(e);if(t!==e.entries){for(;!(n=a.next()).done;)if(!g(n.value))return!1}else for(;!(n=a.next()).done;){var o=n.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function v(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return d.prototype=Error.prototype,u.checkPropTypes=o,u.resetWarningCache=o.resetWarningCache,u.PropTypes=u,u},factoryWithTypeCheckers}function requireFactoryWithThrowingShims(){if(hasRequiredFactoryWithThrowingShims)return factoryWithThrowingShims;hasRequiredFactoryWithThrowingShims=1;var e=requireReactPropTypesSecret();function t(){}function n(){}return n.resetWarningCache=t,factoryWithThrowingShims=function(){function a(t,n,a,o,s,r){if(r!==e){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function o(){return a}a.isRequired=a;var s={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:o,element:a,elementType:a,instanceOf:o,node:a,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s}}function requirePropTypes(){if(hasRequiredPropTypes)return propTypes.exports;if(hasRequiredPropTypes=1,"production"!==process.env.NODE_ENV){var e=requireReactIs();propTypes.exports=requireFactoryWithTypeCheckers()(e.isElement,!0)}else propTypes.exports=requireFactoryWithThrowingShims()();return propTypes.exports}var ModalPortal={exports:{}},focusManager={},tabbable={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]);return n.filter(s)};
|
|
14
|
+
*/function requireObjectAssign(){if(hasRequiredObjectAssign)return objectAssign;hasRequiredObjectAssign=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}return objectAssign=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(i,s){for(var a,o,l=r(i),c=1;c<arguments.length;c++){for(var u in a=Object(arguments[c]))t.call(a,u)&&(l[u]=a[u]);if(e){o=e(a);for(var d=0;d<o.length;d++)n.call(a,o[d])&&(l[o[d]]=a[o[d]])}}return l},objectAssign}function requireReactPropTypesSecret(){if(hasRequiredReactPropTypesSecret)return ReactPropTypesSecret_1;hasRequiredReactPropTypesSecret=1;return ReactPropTypesSecret_1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function requireHas(){return hasRequiredHas?has:(hasRequiredHas=1,has=Function.call.bind(Object.prototype.hasOwnProperty))}function requireCheckPropTypes(){if(hasRequiredCheckPropTypes)return checkPropTypes_1;hasRequiredCheckPropTypes=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=requireReactPropTypesSecret(),n={},r=requireHas();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function i(i,s,a,o,l){if("production"!==process.env.NODE_ENV)for(var c in i)if(r(i,c)){var u;try{if("function"!=typeof i[c]){var d=Error((o||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=i[c](s,c,o,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((o||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var h=l?l():"";e("Failed "+a+" type: "+u.message+(null!=h?h:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},checkPropTypes_1=i}function requireFactoryWithTypeCheckers(){if(hasRequiredFactoryWithTypeCheckers)return factoryWithTypeCheckers;hasRequiredFactoryWithTypeCheckers=1;var e=requireReactIs(),t=requireObjectAssign(),n=requireReactPropTypesSecret(),r=requireHas(),i=requireCheckPropTypes(),s=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(s=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),factoryWithTypeCheckers=function(o,l){var c="function"==typeof Symbol&&Symbol.iterator;var u="<<anonymous>>",d={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:f(a),arrayOf:function(e){return f((function(t,r,i,s,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var o=t[r];if(!Array.isArray(o))return new p("Invalid "+s+" `"+a+"` of type `"+y(o)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<o.length;l++){var c=e(o,l,i,s,a+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(e,t,n,r,i){var s=e[t];return o(s)?null:new p("Invalid "+r+" `"+i+"` of type `"+y(s)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(t,n,r,i,s){var a=t[n];return e.isValidElementType(a)?null:new p("Invalid "+i+" `"+s+"` of type `"+y(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return f((function(t,n,r,i,s){if(!(t[n]instanceof e)){var a=e.name||u;return new p("Invalid "+i+" `"+s+"` of type `"+(((o=t[n]).constructor&&o.constructor.name?o.constructor.name:u)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var o;return null}))},node:f((function(e,t,n,r,i){return v(e[t])?null:new p("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,i,s,a,o){if("function"!=typeof e)return new p("Property `"+o+"` of component `"+s+"` has invalid PropType notation inside objectOf.");var l=t[i],c=y(l);if("object"!==c)return new p("Invalid "+a+" `"+o+"` of type `"+c+"` supplied to `"+s+"`, expected an object.");for(var u in l)if(r(l,u)){var d=e(l,u,s,a,o+"."+u,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&s(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;function t(t,n,r,i,s){for(var a=t[n],o=0;o<e.length;o++)if(h(a,e[o]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===b(t)?String(t):t}));return new p("Invalid "+i+" `"+s+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+l+".")}return f(t)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var i=e[t];if("function"!=typeof i)return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+_(i)+" at index "+t+"."),a}return f((function(t,i,s,a,o){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,i,s,a,o,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&l.push(u.data.expectedType)}return new p("Invalid "+a+" `"+o+"` supplied to `"+s+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(t,r,i,s,a){var o=t[r],l=y(o);if("object"!==l)return new p("Invalid "+s+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return m(i,s,a,c,b(u));var d=u(o,c,i,s,a+"."+c,n);if(d)return d}return null}))},exact:function(e){return f((function(i,s,a,o,l){var c=i[s],u=y(c);if("object"!==u)return new p("Invalid "+o+" `"+l+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var d=t({},i[s],e);for(var h in d){var f=e[h];if(r(e,h)&&"function"!=typeof f)return m(a,o,l,h,b(f));if(!f)return new p("Invalid "+o+" `"+l+"` key `"+h+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[s],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=f(c,h,a,o,l+"."+h,n);if(g)return g}return null}))}};function h(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function i(i,a,o,c,d,h,f){if(c=c||u,h=h||o,f!==n){if(l){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var m=c+":"+o;!t[m]&&r<3&&(s("You are manually calling a React.PropTypes validation function for the `"+h+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[m]=!0,r++)}}return null==a[o]?i?null===a[o]?new p("The "+d+" `"+h+"` is marked as required in `"+c+"`, but its value is `null`."):new p("The "+d+" `"+h+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,o,c,d,h)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function g(e){return f((function(t,n,r,i,s,a){var o=t[n];return y(o)!==e?new p("Invalid "+i+" `"+s+"` of type `"+b(o)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function m(e,t,n,r,i){return new p((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function v(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(v);if(null===e||o(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!v(i[1]))return!1}return!0;default:return!1}}function y(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=y(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function _(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,d.checkPropTypes=i,d.resetWarningCache=i.resetWarningCache,d.PropTypes=d,d},factoryWithTypeCheckers}function requireFactoryWithThrowingShims(){if(hasRequiredFactoryWithThrowingShims)return factoryWithThrowingShims;hasRequiredFactoryWithThrowingShims=1;var e=requireReactPropTypesSecret();function t(){}function n(){}return n.resetWarningCache=t,factoryWithThrowingShims=function(){function r(t,n,r,i,s,a){if(a!==e){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function i(){return r}r.isRequired=r;var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s}}function requirePropTypes(){if(hasRequiredPropTypes)return propTypes.exports;if(hasRequiredPropTypes=1,"production"!==process.env.NODE_ENV){var e=requireReactIs();propTypes.exports=requireFactoryWithTypeCheckers()(e.isElement,!0)}else propTypes.exports=requireFactoryWithThrowingShims()();return propTypes.exports}var ModalPortal={exports:{}},focusManager={},tabbable={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]);return n.filter(s)};
|
|
15
15
|
/*!
|
|
16
16
|
* Adapted from jQuery UI core
|
|
17
17
|
*
|
|
@@ -23,39 +23,17 @@ object-assign
|
|
|
23
23
|
*
|
|
24
24
|
* http://api.jqueryui.com/category/ui-core/
|
|
25
25
|
*/
|
|
26
|
-
var n=/input|select|textarea|button|object|iframe/;function
|
|
26
|
+
var n=/input|select|textarea|button|object|iframe/;function r(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}catch(e){return console.warn("Failed to inspect element style"),!1}}function i(e,t){var i=e.nodeName.toLowerCase();return(n.test(i)&&!e.disabled||"a"===i&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),r(t))return!1;t=t.parentNode}return!0}(e)}function s(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&i(e,!n)}e.exports=t.default}(tabbable,tabbable.exports),Object.defineProperty(focusManager,"__esModule",{value:!0}),focusManager.resetState=resetState$4,focusManager.log=log$4,focusManager.handleBlur=handleBlur,focusManager.handleFocus=handleFocus,focusManager.markForFocusLater=markForFocusLater,focusManager.returnFocus=returnFocus,focusManager.popWithoutFocus=popWithoutFocus,focusManager.setupScopedFocus=setupScopedFocus,focusManager.teardownScopedFocus=teardownScopedFocus;var _tabbable=tabbable.exports,_tabbable2=_interopRequireDefault$4(_tabbable);function _interopRequireDefault$4(e){return e&&e.__esModule?e:{default:e}}var focusLaterElements=[],modalElement=null,needToFocus=!1;function resetState$4(){focusLaterElements=[]}function log$4(){"production"!==process.env.NODE_ENV&&(console.log("focusManager ----------"),focusLaterElements.forEach((function(e){var t=e||{};console.log(t.nodeName,t.className,t.id)})),console.log("end focusManager ----------"))}function handleBlur(){needToFocus=!0}function handleFocus(){if(needToFocus){if(needToFocus=!1,!modalElement)return;setTimeout((function(){modalElement.contains(document.activeElement)||((0,_tabbable2.default)(modalElement)[0]||modalElement).focus()}),0)}}function markForFocusLater(){focusLaterElements.push(document.activeElement)}function returnFocus(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==focusLaterElements.length&&(t=focusLaterElements.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}}function popWithoutFocus(){focusLaterElements.length>0&&focusLaterElements.pop()}function setupScopedFocus(e){modalElement=e,window.addEventListener?(window.addEventListener("blur",handleBlur,!1),document.addEventListener("focus",handleFocus,!0)):(window.attachEvent("onBlur",handleBlur),document.attachEvent("onFocus",handleFocus))}function teardownScopedFocus(){modalElement=null,window.addEventListener?(window.removeEventListener("blur",handleBlur),document.removeEventListener("focus",handleFocus)):(window.detachEvent("onBlur",handleBlur),document.detachEvent("onFocus",handleFocus))}var scopeTab={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,a=t.shiftKey,o=n[0],l=n[n.length-1],c=s();if(e===c){if(!a)return;r=l}l!==c||a||(r=o);o===c&&a&&(r=l);if(r)return t.preventDefault(),void r.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==u||"Chrome"==u[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var d=n.indexOf(c);d>-1&&(d+=a?-1:1);if(void 0===(r=n[d]))return t.preventDefault(),void(r=a?l:o).focus();t.preventDefault(),r.focus()};var n,r=tabbable.exports,i=(n=r)&&n.__esModule?n:{default:n};function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?s(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default}(scopeTab,scopeTab.exports);var ariaAppHider$1={},__DEV__="production"!==process.env.NODE_ENV,warning=function(){};if(__DEV__){var printWarning=function(e,t){var n=arguments.length;t=new Array(n>1?n-1:0);for(var r=1;r<n;r++)t[r-1]=arguments[r];var i=0,s="Warning: "+e.replace(/%s/g,(function(){return t[i++]}));"undefined"!=typeof console&&console.error(s);try{throw new Error(s)}catch(e){}};warning=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var i=2;i<r;i++)n[i-2]=arguments[i];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||printWarning.apply(null,[t].concat(n))}}var warning_1=warning,safeHTMLElement={},exenv={exports:{}},module,canUseDOM,ExecutionEnvironment;
|
|
27
27
|
/*!
|
|
28
28
|
Copyright (c) 2015 Jed Watson.
|
|
29
29
|
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
30
30
|
All rights reserved.
|
|
31
31
|
*/
|
|
32
|
-
module=exenv,canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),ExecutionEnvironment={canUseDOM:canUseDOM,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:canUseDOM&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:canUseDOM&&!!window.screen},module.exports?module.exports=ExecutionEnvironment:window.ExecutionEnvironment=ExecutionEnvironment,Object.defineProperty(safeHTMLElement,"__esModule",{value:!0}),safeHTMLElement.canUseDOM=safeHTMLElement.SafeNodeList=safeHTMLElement.SafeHTMLCollection=void 0;var _exenv=exenv.exports,_exenv2=_interopRequireDefault$3(_exenv);function _interopRequireDefault$3(e){return e&&e.__esModule?e:{default:e}}var EE=_exenv2.default,SafeHTMLElement=EE.canUseDOM?window.HTMLElement:{};safeHTMLElement.SafeHTMLCollection=EE.canUseDOM?window.HTMLCollection:{},safeHTMLElement.SafeNodeList=EE.canUseDOM?window.NodeList:{},safeHTMLElement.canUseDOM=EE.canUseDOM,safeHTMLElement.default=SafeHTMLElement,Object.defineProperty(ariaAppHider$1,"__esModule",{value:!0}),ariaAppHider$1.resetState=resetState$3,ariaAppHider$1.log=log$3,ariaAppHider$1.assertNodeList=assertNodeList,ariaAppHider$1.setElement=setElement,ariaAppHider$1.validateElement=validateElement,ariaAppHider$1.hide=hide,ariaAppHider$1.show=show,ariaAppHider$1.documentNotReadyOrSSRTesting=documentNotReadyOrSSRTesting;var _warning=warning_1,_warning2=_interopRequireDefault$2(_warning),_safeHTMLElement$1=safeHTMLElement;function _interopRequireDefault$2(e){return e&&e.__esModule?e:{default:e}}var globalElement=null;function resetState$3(){globalElement&&(globalElement.removeAttribute?globalElement.removeAttribute("aria-hidden"):null!=globalElement.length?globalElement.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(globalElement).forEach((function(e){return e.removeAttribute("aria-hidden")}))),globalElement=null}function log$3(){if("production"!==process.env.NODE_ENV){var e=globalElement||{};console.log("ariaAppHider ----------"),console.log(e.nodeName,e.className,e.id),console.log("end ariaAppHider ----------")}}function assertNodeList(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function setElement(e){var t=e;if("string"==typeof t&&_safeHTMLElement$1.canUseDOM){var n=document.querySelectorAll(t);assertNodeList(n,t),t=n}return globalElement=t||globalElement}function validateElement(e){var t=e||globalElement;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,_warning2.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function hide(e){var t=!0,n=!1,a=void 0;try{for(var o,s=validateElement(e)[Symbol.iterator]();!(t=(o=s.next()).done);t=!0){o.value.setAttribute("aria-hidden","true")}}catch(e){n=!0,a=e}finally{try{!t&&s.return&&s.return()}finally{if(n)throw a}}}function show(e){var t=!0,n=!1,a=void 0;try{for(var o,s=validateElement(e)[Symbol.iterator]();!(t=(o=s.next()).done);t=!0){o.value.removeAttribute("aria-hidden")}}catch(e){n=!0,a=e}finally{try{!t&&s.return&&s.return()}finally{if(n)throw a}}}function documentNotReadyOrSSRTesting(){globalElement=null}var classList={};Object.defineProperty(classList,"__esModule",{value:!0}),classList.resetState=resetState$2,classList.log=log$2;var htmlClassList={},docBodyClassList={};function removeClass(e,t){e.classList.remove(t)}function resetState$2(){var e=document.getElementsByTagName("html")[0];for(var t in htmlClassList)removeClass(e,htmlClassList[t]);var n=document.body;for(var a in docBodyClassList)removeClass(n,docBodyClassList[a]);htmlClassList={},docBodyClassList={}}function log$2(){if("production"!==process.env.NODE_ENV){var e=document.getElementsByTagName("html")[0].className,t="Show tracked classes:\n\n";for(var n in t+="<html /> ("+e+"):\n ",htmlClassList)t+=" "+n+" "+htmlClassList[n]+"\n ";for(var a in t+="\n\ndoc.body ("+(e=document.body.className)+"):\n ",docBodyClassList)t+=" "+a+" "+docBodyClassList[a]+"\n ";t+="\n",console.log(t)}}var incrementReference=function(e,t){return e[t]||(e[t]=0),e[t]+=1,t},decrementReference=function(e,t){return e[t]&&(e[t]-=1),t},trackClass=function(e,t,n){n.forEach((function(n){incrementReference(t,n),e.add(n)}))},untrackClass=function(e,t,n){n.forEach((function(n){decrementReference(t,n),0===t[n]&&e.remove(n)}))};classList.add=function(e,t){return trackClass(e.classList,"html"==e.nodeName.toLowerCase()?htmlClassList:docBodyClassList,t.split(" "))},classList.remove=function(e,t){return untrackClass(e.classList,"html"==e.nodeName.toLowerCase()?htmlClassList:docBodyClassList,t.split(" "))};var portalOpenInstances$1={};function _classCallCheck$1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(portalOpenInstances$1,"__esModule",{value:!0}),portalOpenInstances$1.log=log$1,portalOpenInstances$1.resetState=resetState$1;var PortalOpenInstances=function e(){var t=this;_classCallCheck$1(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)?(t.openInstances.push(e),t.emit("register")):"production"!==process.env.NODE_ENV&&console.warn("React-Modal: Cannot register modal instance that's already open")},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n?(t.openInstances.splice(n,1),t.emit("deregister")):"production"!==process.env.NODE_ENV&&console.warn("React-Modal: Unable to deregister "+e+" as it was never registered")},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},portalOpenInstances=new PortalOpenInstances;function log$1(){console.log("portalOpenInstances ----------"),console.log(portalOpenInstances.openInstances.length),portalOpenInstances.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")}function resetState$1(){portalOpenInstances=new PortalOpenInstances}portalOpenInstances$1.default=portalOpenInstances;var bodyTrap$1={};Object.defineProperty(bodyTrap$1,"__esModule",{value:!0}),bodyTrap$1.resetState=resetState,bodyTrap$1.log=log;var _portalOpenInstances=portalOpenInstances$1,_portalOpenInstances2=_interopRequireDefault$1(_portalOpenInstances);function _interopRequireDefault$1(e){return e&&e.__esModule?e:{default:e}}var before=void 0,after=void 0,instances=[];function resetState(){for(var e=[before,after],t=0;t<e.length;t++){var n=e[t];n&&(n.parentNode&&n.parentNode.removeChild(n))}before=after=null,instances=[]}function log(){console.log("bodyTrap ----------"),console.log(instances.length);for(var e=[before,after],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")}function focusContent(){0!==instances.length?instances[instances.length-1].focusContent():"production"!==process.env.NODE_ENV&&console.warn("React-Modal: Open instances > 0 expected")}function bodyTrap(e,t){before||after||((before=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),before.style.position="absolute",before.style.opacity="0",before.setAttribute("tabindex","0"),before.addEventListener("focus",focusContent),(after=before.cloneNode()).addEventListener("focus",focusContent)),(instances=t).length>0?(document.body.firstChild!==before&&document.body.insertBefore(before,document.body.firstChild),document.body.lastChild!==after&&document.body.appendChild(after)):(before.parentElement&&before.parentElement.removeChild(before),after.parentElement&&after.parentElement.removeChild(after))}function componentWillMount(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function componentWillReceiveProps(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function componentWillUpdate(e,t){try{var n=this.props,a=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,a)}finally{this.props=n,this.state=a}}function polyfill(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,o=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==o){var s=e.displayName||e.name,r="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+r+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=componentWillMount,t.componentWillReceiveProps=componentWillReceiveProps),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=componentWillUpdate;var i=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var a=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;i.call(this,e,t,a)}}return e}_portalOpenInstances2.default.subscribe(bodyTrap),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),s=React,r=m(requirePropTypes()),i=h(focusManager),f=m(scopeTab.exports),c=h(ariaAppHider$1),l=h(classList),u=safeHTMLElement,_=m(u),d=m(portalOpenInstances$1);function h(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function m(e){return e&&e.__esModule?e:{default:e}}var p={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},g=0,b=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,a=e.ariaHideApp,o=e.htmlOpenClassName,s=e.bodyOpenClassName;s&&l.remove(document.body,s),o&&l.remove(document.getElementsByTagName("html")[0],o),a&&g>0&&0===(g-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(i.returnFocus(n.props.preventScroll),i.teardownScopedFocus()):i.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),d.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(i.setupScopedFocus(n.node),i.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){9===e.keyCode&&(0,f.default)(n.content,e),n.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===(void 0===t?"undefined":a(t))?t:{base:p[e],afterOpen:p[e]+"--after-open",beforeClose:p[e]+"--before-close"},s=o.base;return n.state.afterOpen&&(s=s+" "+o.afterOpen),n.state.beforeClose&&(s=s+" "+o.beforeClose),"string"==typeof t&&t?s+" "+t:s},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,a){return n[e+"-"+a]=t[a],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){"production"!==process.env.NODE_ENV&&(e.bodyOpenClassName!==this.props.bodyOpenClassName&&console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'),e.htmlOpenClassName!==this.props.htmlOpenClassName&&console.warn('React-Modal: "htmlOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.')),this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,a=e.htmlOpenClassName,o=e.bodyOpenClassName;o&&l.add(document.body,o),a&&l.add(document.getElementsByTagName("html")[0],a),n&&(g+=1,c.hide(t)),d.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,a=e.className,o=e.overlayClassName,s=e.defaultStyles,r=e.children,i=a?{}:s.content,f=o?{}:s.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:n({},f,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},l=n({id:t,ref:this.setContentRef,style:n({},i,this.props.style.content),className:this.buildClassName("content",a),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),u=this.props.contentElement(l,r);return this.props.overlayElement(c,u)}}]),t}(s.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:r.default.bool.isRequired,defaultStyles:r.default.shape({content:r.default.object,overlay:r.default.object}),style:r.default.shape({content:r.default.object,overlay:r.default.object}),className:r.default.oneOfType([r.default.string,r.default.object]),overlayClassName:r.default.oneOfType([r.default.string,r.default.object]),bodyOpenClassName:r.default.string,htmlOpenClassName:r.default.string,ariaHideApp:r.default.bool,appElement:r.default.oneOfType([r.default.instanceOf(_.default),r.default.instanceOf(u.SafeHTMLCollection),r.default.instanceOf(u.SafeNodeList),r.default.arrayOf(r.default.instanceOf(_.default))]),onAfterOpen:r.default.func,onAfterClose:r.default.func,onRequestClose:r.default.func,closeTimeoutMS:r.default.number,shouldFocusAfterRender:r.default.bool,shouldCloseOnOverlayClick:r.default.bool,shouldReturnFocusAfterClose:r.default.bool,preventScroll:r.default.bool,role:r.default.string,contentLabel:r.default.string,aria:r.default.object,data:r.default.object,children:r.default.node,shouldCloseOnEsc:r.default.bool,overlayRef:r.default.func,contentRef:r.default.func,id:r.default.string,overlayElement:r.default.func,contentElement:r.default.func,testId:r.default.string},t.default=b,e.exports=t.default}(ModalPortal,ModalPortal.exports),componentWillMount.__suppressDeprecationWarning=!0,componentWillReceiveProps.__suppressDeprecationWarning=!0,componentWillUpdate.__suppressDeprecationWarning=!0;var reactLifecyclesCompat_es=Object.freeze({__proto__:null,polyfill:polyfill}),require$$6=getAugmentedNamespace(reactLifecyclesCompat_es);Object.defineProperty(Modal$2,"__esModule",{value:!0}),Modal$2.bodyOpenClassName=Modal$2.portalClassName=void 0;var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},_createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),_react=React,_react2=_interopRequireDefault(_react),_reactDom=ReactDOM,_reactDom2=_interopRequireDefault(_reactDom),_propTypes=requirePropTypes(),_propTypes2=_interopRequireDefault(_propTypes),_ModalPortal=ModalPortal.exports,_ModalPortal2=_interopRequireDefault(_ModalPortal),_ariaAppHider=ariaAppHider$1,ariaAppHider=_interopRequireWildcard(_ariaAppHider),_safeHTMLElement=safeHTMLElement,_safeHTMLElement2=_interopRequireDefault(_safeHTMLElement),_reactLifecyclesCompat=require$$6;function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var portalClassName=Modal$2.portalClassName="ReactModalPortal",bodyOpenClassName=Modal$2.bodyOpenClassName="ReactModal__Body--open",isReact16=_safeHTMLElement.canUseDOM&&void 0!==_reactDom2.default.createPortal,createHTMLElement=function(e){return document.createElement(e)},getCreatePortal=function(){return isReact16?_reactDom2.default.createPortal:_reactDom2.default.unstable_renderSubtreeIntoContainer};function getParentElement(e){return e()}var Modal$1=function(e){function t(){var e,n,a;_classCallCheck(this,t);for(var o=arguments.length,s=Array(o),r=0;r<o;r++)s[r]=arguments[r];return n=a=_possibleConstructorReturn(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),a.removePortal=function(){!isReact16&&_reactDom2.default.unmountComponentAtNode(a.node);var e=getParentElement(a.props.parentSelector);e&&e.contains(a.node)?e.removeChild(a.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},a.portalRef=function(e){a.portal=e},a.renderPortal=function(e){var n=getCreatePortal()(a,_react2.default.createElement(_ModalPortal2.default,_extends({defaultStyles:t.defaultStyles},e)),a.node);a.portalRef(n)},_possibleConstructorReturn(a,n)}return _inherits(t,_react.Component),_createClass(t,[{key:"componentDidMount",value:function(){_safeHTMLElement.canUseDOM&&(isReact16||(this.node=createHTMLElement("div")),this.node.className=this.props.portalClassName,getParentElement(this.props.parentSelector).appendChild(this.node),!isReact16&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:getParentElement(e.parentSelector),nextParent:getParentElement(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(_safeHTMLElement.canUseDOM){var a=this.props,o=a.isOpen,s=a.portalClassName;e.portalClassName!==s&&(this.node.className=s);var r=n.prevParent,i=n.nextParent;i!==r&&(r.removeChild(this.node),i.appendChild(this.node)),(e.isOpen||o)&&!isReact16&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(_safeHTMLElement.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return _safeHTMLElement.canUseDOM&&isReact16?(!this.node&&isReact16&&(this.node=createHTMLElement("div")),getCreatePortal()(_react2.default.createElement(_ModalPortal2.default,_extends({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){ariaAppHider.setElement(e)}}]),t}();Modal$1.propTypes={isOpen:_propTypes2.default.bool.isRequired,style:_propTypes2.default.shape({content:_propTypes2.default.object,overlay:_propTypes2.default.object}),portalClassName:_propTypes2.default.string,bodyOpenClassName:_propTypes2.default.string,htmlOpenClassName:_propTypes2.default.string,className:_propTypes2.default.oneOfType([_propTypes2.default.string,_propTypes2.default.shape({base:_propTypes2.default.string.isRequired,afterOpen:_propTypes2.default.string.isRequired,beforeClose:_propTypes2.default.string.isRequired})]),overlayClassName:_propTypes2.default.oneOfType([_propTypes2.default.string,_propTypes2.default.shape({base:_propTypes2.default.string.isRequired,afterOpen:_propTypes2.default.string.isRequired,beforeClose:_propTypes2.default.string.isRequired})]),appElement:_propTypes2.default.oneOfType([_propTypes2.default.instanceOf(_safeHTMLElement2.default),_propTypes2.default.instanceOf(_safeHTMLElement.SafeHTMLCollection),_propTypes2.default.instanceOf(_safeHTMLElement.SafeNodeList),_propTypes2.default.arrayOf(_propTypes2.default.instanceOf(_safeHTMLElement2.default))]),onAfterOpen:_propTypes2.default.func,onRequestClose:_propTypes2.default.func,closeTimeoutMS:_propTypes2.default.number,ariaHideApp:_propTypes2.default.bool,shouldFocusAfterRender:_propTypes2.default.bool,shouldCloseOnOverlayClick:_propTypes2.default.bool,shouldReturnFocusAfterClose:_propTypes2.default.bool,preventScroll:_propTypes2.default.bool,parentSelector:_propTypes2.default.func,aria:_propTypes2.default.object,data:_propTypes2.default.object,role:_propTypes2.default.string,contentLabel:_propTypes2.default.string,shouldCloseOnEsc:_propTypes2.default.bool,overlayRef:_propTypes2.default.func,contentRef:_propTypes2.default.func,id:_propTypes2.default.string,overlayElement:_propTypes2.default.func,contentElement:_propTypes2.default.func},Modal$1.defaultProps={isOpen:!1,portalClassName:portalClassName,bodyOpenClassName:bodyOpenClassName,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return _react2.default.createElement("div",e,t)},contentElement:function(e,t){return _react2.default.createElement("div",e,t)}},Modal$1.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,_reactLifecyclesCompat.polyfill)(Modal$1),"production"!==process.env.NODE_ENV&&(Modal$1.setCreateHTMLElement=function(e){return createHTMLElement=e}),Modal$2.default=Modal$1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,a=(n=Modal$2)&&n.__esModule?n:{default:n};t.default=a.default,e.exports=t.default}(lib,lib.exports);var Modal=getDefaultExportFromCjs(lib.exports),classnames={exports:{}};
|
|
32
|
+
module=exenv,canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),ExecutionEnvironment={canUseDOM:canUseDOM,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:canUseDOM&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:canUseDOM&&!!window.screen},module.exports?module.exports=ExecutionEnvironment:window.ExecutionEnvironment=ExecutionEnvironment,Object.defineProperty(safeHTMLElement,"__esModule",{value:!0}),safeHTMLElement.canUseDOM=safeHTMLElement.SafeNodeList=safeHTMLElement.SafeHTMLCollection=void 0;var _exenv=exenv.exports,_exenv2=_interopRequireDefault$3(_exenv);function _interopRequireDefault$3(e){return e&&e.__esModule?e:{default:e}}var EE=_exenv2.default,SafeHTMLElement=EE.canUseDOM?window.HTMLElement:{};safeHTMLElement.SafeHTMLCollection=EE.canUseDOM?window.HTMLCollection:{},safeHTMLElement.SafeNodeList=EE.canUseDOM?window.NodeList:{},safeHTMLElement.canUseDOM=EE.canUseDOM,safeHTMLElement.default=SafeHTMLElement,Object.defineProperty(ariaAppHider$1,"__esModule",{value:!0}),ariaAppHider$1.resetState=resetState$3,ariaAppHider$1.log=log$3,ariaAppHider$1.assertNodeList=assertNodeList,ariaAppHider$1.setElement=setElement,ariaAppHider$1.validateElement=validateElement,ariaAppHider$1.hide=hide,ariaAppHider$1.show=show,ariaAppHider$1.documentNotReadyOrSSRTesting=documentNotReadyOrSSRTesting;var _warning=warning_1,_warning2=_interopRequireDefault$2(_warning),_safeHTMLElement$1=safeHTMLElement;function _interopRequireDefault$2(e){return e&&e.__esModule?e:{default:e}}var globalElement=null;function resetState$3(){globalElement&&(globalElement.removeAttribute?globalElement.removeAttribute("aria-hidden"):null!=globalElement.length?globalElement.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(globalElement).forEach((function(e){return e.removeAttribute("aria-hidden")}))),globalElement=null}function log$3(){if("production"!==process.env.NODE_ENV){var e=globalElement||{};console.log("ariaAppHider ----------"),console.log(e.nodeName,e.className,e.id),console.log("end ariaAppHider ----------")}}function assertNodeList(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function setElement(e){var t=e;if("string"==typeof t&&_safeHTMLElement$1.canUseDOM){var n=document.querySelectorAll(t);assertNodeList(n,t),t=n}return globalElement=t||globalElement}function validateElement(e){var t=e||globalElement;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,_warning2.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function hide(e){var t=!0,n=!1,r=void 0;try{for(var i,s=validateElement(e)[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){i.value.setAttribute("aria-hidden","true")}}catch(e){n=!0,r=e}finally{try{!t&&s.return&&s.return()}finally{if(n)throw r}}}function show(e){var t=!0,n=!1,r=void 0;try{for(var i,s=validateElement(e)[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){i.value.removeAttribute("aria-hidden")}}catch(e){n=!0,r=e}finally{try{!t&&s.return&&s.return()}finally{if(n)throw r}}}function documentNotReadyOrSSRTesting(){globalElement=null}var classList={};Object.defineProperty(classList,"__esModule",{value:!0}),classList.resetState=resetState$2,classList.log=log$2;var htmlClassList={},docBodyClassList={};function removeClass(e,t){e.classList.remove(t)}function resetState$2(){var e=document.getElementsByTagName("html")[0];for(var t in htmlClassList)removeClass(e,htmlClassList[t]);var n=document.body;for(var r in docBodyClassList)removeClass(n,docBodyClassList[r]);htmlClassList={},docBodyClassList={}}function log$2(){if("production"!==process.env.NODE_ENV){var e=document.getElementsByTagName("html")[0].className,t="Show tracked classes:\n\n";for(var n in t+="<html /> ("+e+"):\n ",htmlClassList)t+=" "+n+" "+htmlClassList[n]+"\n ";for(var r in t+="\n\ndoc.body ("+(e=document.body.className)+"):\n ",docBodyClassList)t+=" "+r+" "+docBodyClassList[r]+"\n ";t+="\n",console.log(t)}}var incrementReference=function(e,t){return e[t]||(e[t]=0),e[t]+=1,t},decrementReference=function(e,t){return e[t]&&(e[t]-=1),t},trackClass=function(e,t,n){n.forEach((function(n){incrementReference(t,n),e.add(n)}))},untrackClass=function(e,t,n){n.forEach((function(n){decrementReference(t,n),0===t[n]&&e.remove(n)}))};classList.add=function(e,t){return trackClass(e.classList,"html"==e.nodeName.toLowerCase()?htmlClassList:docBodyClassList,t.split(" "))},classList.remove=function(e,t){return untrackClass(e.classList,"html"==e.nodeName.toLowerCase()?htmlClassList:docBodyClassList,t.split(" "))};var portalOpenInstances$1={};function _classCallCheck$1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(portalOpenInstances$1,"__esModule",{value:!0}),portalOpenInstances$1.log=log$1,portalOpenInstances$1.resetState=resetState$1;var PortalOpenInstances=function e(){var t=this;_classCallCheck$1(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)?(t.openInstances.push(e),t.emit("register")):"production"!==process.env.NODE_ENV&&console.warn("React-Modal: Cannot register modal instance that's already open")},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n?(t.openInstances.splice(n,1),t.emit("deregister")):"production"!==process.env.NODE_ENV&&console.warn("React-Modal: Unable to deregister "+e+" as it was never registered")},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},portalOpenInstances=new PortalOpenInstances;function log$1(){console.log("portalOpenInstances ----------"),console.log(portalOpenInstances.openInstances.length),portalOpenInstances.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")}function resetState$1(){portalOpenInstances=new PortalOpenInstances}portalOpenInstances$1.default=portalOpenInstances;var bodyTrap$1={};Object.defineProperty(bodyTrap$1,"__esModule",{value:!0}),bodyTrap$1.resetState=resetState,bodyTrap$1.log=log;var _portalOpenInstances=portalOpenInstances$1,_portalOpenInstances2=_interopRequireDefault$1(_portalOpenInstances);function _interopRequireDefault$1(e){return e&&e.__esModule?e:{default:e}}var before=void 0,after=void 0,instances=[];function resetState(){for(var e=[before,after],t=0;t<e.length;t++){var n=e[t];n&&(n.parentNode&&n.parentNode.removeChild(n))}before=after=null,instances=[]}function log(){console.log("bodyTrap ----------"),console.log(instances.length);for(var e=[before,after],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")}function focusContent(){0!==instances.length?instances[instances.length-1].focusContent():"production"!==process.env.NODE_ENV&&console.warn("React-Modal: Open instances > 0 expected")}function bodyTrap(e,t){before||after||((before=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),before.style.position="absolute",before.style.opacity="0",before.setAttribute("tabindex","0"),before.addEventListener("focus",focusContent),(after=before.cloneNode()).addEventListener("focus",focusContent)),(instances=t).length>0?(document.body.firstChild!==before&&document.body.insertBefore(before,document.body.firstChild),document.body.lastChild!==after&&document.body.appendChild(after)):(before.parentElement&&before.parentElement.removeChild(before),after.parentElement&&after.parentElement.removeChild(after))}_portalOpenInstances2.default.subscribe(bodyTrap),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=React,a=g(requirePropTypes()),o=f(focusManager),l=g(scopeTab.exports),c=f(ariaAppHider$1),u=f(classList),d=safeHTMLElement,h=g(d),p=g(portalOpenInstances$1);function f(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}var m={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},v=0,y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,i=e.htmlOpenClassName,s=e.bodyOpenClassName;s&&u.remove(document.body,s),i&&u.remove(document.getElementsByTagName("html")[0],i),r&&v>0&&0===(v-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(o.returnFocus(n.props.preventScroll),o.teardownScopedFocus()):o.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),p.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(o.setupScopedFocus(n.node),o.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){9===e.keyCode&&(0,l.default)(n.content,e),n.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var i="object"===(void 0===t?"undefined":r(t))?t:{base:m[e],afterOpen:m[e]+"--after-open",beforeClose:m[e]+"--before-close"},s=i.base;return n.state.afterOpen&&(s=s+" "+i.afterOpen),n.state.beforeClose&&(s=s+" "+i.beforeClose),"string"==typeof t&&t?s+" "+t:s},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){"production"!==process.env.NODE_ENV&&(e.bodyOpenClassName!==this.props.bodyOpenClassName&&console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'),e.htmlOpenClassName!==this.props.htmlOpenClassName&&console.warn('React-Modal: "htmlOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.')),this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,i=e.bodyOpenClassName;i&&u.add(document.body,i),r&&u.add(document.getElementsByTagName("html")[0],r),n&&(v+=1,c.hide(t)),p.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,r=e.className,i=e.overlayClassName,s=e.defaultStyles,a=e.children,o=r?{}:s.content,l=i?{}:s.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",i),style:n({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=n({id:t,ref:this.setContentRef,style:n({},o,this.props.style.content),className:this.buildClassName("content",r),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,a);return this.props.overlayElement(c,d)}}]),t}(s.Component);y.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},y.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(h.default),a.default.instanceOf(d.SafeHTMLCollection),a.default.instanceOf(d.SafeNodeList),a.default.arrayOf(a.default.instanceOf(h.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},t.default=y,e.exports=t.default}(ModalPortal,ModalPortal.exports);var reactLifecyclesCompat_cjs={};function componentWillMount(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function componentWillReceiveProps(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function componentWillUpdate(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function polyfill(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,i=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?i="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==i){var s=e.displayName||e.name,a="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==i?"\n "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=componentWillMount,t.componentWillReceiveProps=componentWillReceiveProps),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=componentWillUpdate;var o=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;o.call(this,e,t,r)}}return e}Object.defineProperty(reactLifecyclesCompat_cjs,"__esModule",{value:!0}),componentWillMount.__suppressDeprecationWarning=!0,componentWillReceiveProps.__suppressDeprecationWarning=!0,componentWillUpdate.__suppressDeprecationWarning=!0,reactLifecyclesCompat_cjs.polyfill=polyfill,Object.defineProperty(Modal$2,"__esModule",{value:!0}),Modal$2.bodyOpenClassName=Modal$2.portalClassName=void 0;var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),_react=React,_react2=_interopRequireDefault(_react),_reactDom=ReactDOM,_reactDom2=_interopRequireDefault(_reactDom),_propTypes=requirePropTypes(),_propTypes2=_interopRequireDefault(_propTypes),_ModalPortal=ModalPortal.exports,_ModalPortal2=_interopRequireDefault(_ModalPortal),_ariaAppHider=ariaAppHider$1,ariaAppHider=_interopRequireWildcard(_ariaAppHider),_safeHTMLElement=safeHTMLElement,_safeHTMLElement2=_interopRequireDefault(_safeHTMLElement),_reactLifecyclesCompat=reactLifecyclesCompat_cjs;function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var portalClassName=Modal$2.portalClassName="ReactModalPortal",bodyOpenClassName=Modal$2.bodyOpenClassName="ReactModal__Body--open",isReact16=_safeHTMLElement.canUseDOM&&void 0!==_reactDom2.default.createPortal,createHTMLElement=function(e){return document.createElement(e)},getCreatePortal=function(){return isReact16?_reactDom2.default.createPortal:_reactDom2.default.unstable_renderSubtreeIntoContainer};function getParentElement(e){return e()}var Modal$1=function(e){function t(){var e,n,r;_classCallCheck(this,t);for(var i=arguments.length,s=Array(i),a=0;a<i;a++)s[a]=arguments[a];return n=r=_possibleConstructorReturn(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r.removePortal=function(){!isReact16&&_reactDom2.default.unmountComponentAtNode(r.node);var e=getParentElement(r.props.parentSelector);e&&e.contains(r.node)?e.removeChild(r.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},r.portalRef=function(e){r.portal=e},r.renderPortal=function(e){var n=getCreatePortal()(r,_react2.default.createElement(_ModalPortal2.default,_extends({defaultStyles:t.defaultStyles},e)),r.node);r.portalRef(n)},_possibleConstructorReturn(r,n)}return _inherits(t,_react.Component),_createClass(t,[{key:"componentDidMount",value:function(){_safeHTMLElement.canUseDOM&&(isReact16||(this.node=createHTMLElement("div")),this.node.className=this.props.portalClassName,getParentElement(this.props.parentSelector).appendChild(this.node),!isReact16&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:getParentElement(e.parentSelector),nextParent:getParentElement(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(_safeHTMLElement.canUseDOM){var r=this.props,i=r.isOpen,s=r.portalClassName;e.portalClassName!==s&&(this.node.className=s);var a=n.prevParent,o=n.nextParent;o!==a&&(a.removeChild(this.node),o.appendChild(this.node)),(e.isOpen||i)&&!isReact16&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(_safeHTMLElement.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return _safeHTMLElement.canUseDOM&&isReact16?(!this.node&&isReact16&&(this.node=createHTMLElement("div")),getCreatePortal()(_react2.default.createElement(_ModalPortal2.default,_extends({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){ariaAppHider.setElement(e)}}]),t}();Modal$1.propTypes={isOpen:_propTypes2.default.bool.isRequired,style:_propTypes2.default.shape({content:_propTypes2.default.object,overlay:_propTypes2.default.object}),portalClassName:_propTypes2.default.string,bodyOpenClassName:_propTypes2.default.string,htmlOpenClassName:_propTypes2.default.string,className:_propTypes2.default.oneOfType([_propTypes2.default.string,_propTypes2.default.shape({base:_propTypes2.default.string.isRequired,afterOpen:_propTypes2.default.string.isRequired,beforeClose:_propTypes2.default.string.isRequired})]),overlayClassName:_propTypes2.default.oneOfType([_propTypes2.default.string,_propTypes2.default.shape({base:_propTypes2.default.string.isRequired,afterOpen:_propTypes2.default.string.isRequired,beforeClose:_propTypes2.default.string.isRequired})]),appElement:_propTypes2.default.oneOfType([_propTypes2.default.instanceOf(_safeHTMLElement2.default),_propTypes2.default.instanceOf(_safeHTMLElement.SafeHTMLCollection),_propTypes2.default.instanceOf(_safeHTMLElement.SafeNodeList),_propTypes2.default.arrayOf(_propTypes2.default.instanceOf(_safeHTMLElement2.default))]),onAfterOpen:_propTypes2.default.func,onRequestClose:_propTypes2.default.func,closeTimeoutMS:_propTypes2.default.number,ariaHideApp:_propTypes2.default.bool,shouldFocusAfterRender:_propTypes2.default.bool,shouldCloseOnOverlayClick:_propTypes2.default.bool,shouldReturnFocusAfterClose:_propTypes2.default.bool,preventScroll:_propTypes2.default.bool,parentSelector:_propTypes2.default.func,aria:_propTypes2.default.object,data:_propTypes2.default.object,role:_propTypes2.default.string,contentLabel:_propTypes2.default.string,shouldCloseOnEsc:_propTypes2.default.bool,overlayRef:_propTypes2.default.func,contentRef:_propTypes2.default.func,id:_propTypes2.default.string,overlayElement:_propTypes2.default.func,contentElement:_propTypes2.default.func},Modal$1.defaultProps={isOpen:!1,portalClassName:portalClassName,bodyOpenClassName:bodyOpenClassName,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return _react2.default.createElement("div",e,t)},contentElement:function(e,t){return _react2.default.createElement("div",e,t)}},Modal$1.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,_reactLifecyclesCompat.polyfill)(Modal$1),"production"!==process.env.NODE_ENV&&(Modal$1.setCreateHTMLElement=function(e){return createHTMLElement=e}),Modal$2.default=Modal$1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,r=(n=Modal$2)&&n.__esModule?n:{default:n};t.default=r.default,e.exports=t.default}(lib,lib.exports);var Modal=getDefaultExportFromCjs(lib.exports),classnames={exports:{}};
|
|
33
33
|
/*!
|
|
34
34
|
Copyright (c) 2018 Jed Watson.
|
|
35
35
|
Licensed under the MIT License (MIT), see
|
|
36
36
|
http://jedwatson.github.io/classnames
|
|
37
37
|
*/
|
|
38
|
-
!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],a=0;a<arguments.length;a++){var o=arguments[a];if(o){var s=typeof o;if("string"===s||"number"===s)e.push(o);else if(Array.isArray(o)){if(o.length){var r=n.apply(null,o);r&&e.push(r)}}else if("object"===s)if(o.toString===Object.prototype.toString)for(var i in o)t.call(o,i)&&o[i]&&e.push(i);else e.push(o.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(classnames);var classNames=classnames.exports;const OverlayImpl=({children:e,className:t="",isOpen:n,style:a})=>{const[o,s]=useState(!1);return React.createElement(Modal,{isOpen:n,ariaHideApp:!1,onAfterOpen:()=>{s(!0)},onRequestClose:()=>{s(!1)},className:classNames("wy-panel wy-overlay wy-transition",t,{"wy-open":o}),overlayClassName:"wy-overlays wy-viewport",contentLabel:"Example Modal",style:a},e)},UIOverlay={UI:OverlayImpl};var mdiArrowLeft="M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z",mdiArrowRight="M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z",mdiAttachment="M7.5,18A5.5,5.5 0 0,1 2,12.5A5.5,5.5 0 0,1 7.5,7H18A4,4 0 0,1 22,11A4,4 0 0,1 18,15H9.5A2.5,2.5 0 0,1 7,12.5A2.5,2.5 0 0,1 9.5,10H17V11.5H9.5A1,1 0 0,0 8.5,12.5A1,1 0 0,0 9.5,13.5H18A2.5,2.5 0 0,0 20.5,11A2.5,2.5 0 0,0 18,8.5H7.5A4,4 0 0,0 3.5,12.5A4,4 0 0,0 7.5,16.5H17V18H7.5Z",mdiBox="M15.39,14.04V14.04C15.39,12.62 14.24,11.47 12.82,11.47C11.41,11.47 10.26,12.62 10.26,14.04V14.04C10.26,15.45 11.41,16.6 12.82,16.6C14.24,16.6 15.39,15.45 15.39,14.04M17.1,14.04C17.1,16.4 15.18,18.31 12.82,18.31C11.19,18.31 9.77,17.39 9.05,16.04C8.33,17.39 6.91,18.31 5.28,18.31C2.94,18.31 1.04,16.43 1,14.11V14.11H1V7H1V7C1,6.56 1.39,6.18 1.86,6.18C2.33,6.18 2.7,6.56 2.71,7V7H2.71V10.62C3.43,10.08 4.32,9.76 5.28,9.76C6.91,9.76 8.33,10.68 9.05,12.03C9.77,10.68 11.19,9.76 12.82,9.76C15.18,9.76 17.1,11.68 17.1,14.04V14.04M7.84,14.04V14.04C7.84,12.62 6.69,11.47 5.28,11.47C3.86,11.47 2.71,12.62 2.71,14.04V14.04C2.71,15.45 3.86,16.6 5.28,16.6C6.69,16.6 7.84,15.45 7.84,14.04M22.84,16.96V16.96C22.95,17.12 23,17.3 23,17.47C23,17.73 22.88,18 22.66,18.15C22.5,18.26 22.33,18.32 22.15,18.32C21.9,18.32 21.65,18.21 21.5,18L19.59,15.47L17.7,18V18C17.53,18.21 17.28,18.32 17.03,18.32C16.85,18.32 16.67,18.26 16.5,18.15C16.29,18 16.17,17.72 16.17,17.46C16.17,17.29 16.23,17.11 16.33,16.96V16.96H16.33V16.96L18.5,14.04L16.33,11.11V11.11H16.33V11.11C16.22,10.96 16.17,10.79 16.17,10.61C16.17,10.35 16.29,10.1 16.5,9.93C16.89,9.65 17.41,9.72 17.7,10.09V10.09L19.59,12.61L21.5,10.09C21.76,9.72 22.29,9.65 22.66,9.93C22.89,10.1 23,10.36 23,10.63C23,10.8 22.95,10.97 22.84,11.11V11.11H22.84V11.11L20.66,14.04L22.84,16.96V16.96H22.84Z",mdiClose="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",mdiCloseCircle="M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",mdiCloud="M19.35,10.03C18.67,6.59 15.64,4 12,4C9.11,4 6.6,5.64 5.35,8.03C2.34,8.36 0,10.9 0,14A6,6 0 0,0 6,20H19A5,5 0 0,0 24,15C24,12.36 21.95,10.22 19.35,10.03Z",mdiDotsVertical="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",mdiDownload="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z",mdiDropbox="M3 6.2L8 9.39L13 6.2L8 3L3 6.2M13 6.2L18 9.39L23 6.2L18 3L13 6.2M3 12.55L8 15.74L13 12.55L8 9.35L3 12.55M18 9.35L13 12.55L18 15.74L23 12.55L18 9.35M8.03 16.8L13.04 20L18.04 16.8L13.04 13.61L8.03 16.8Z",mdiEmail="M20,8L12,13L4,8V6L12,11L20,6M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z",mdiFile="M13,9V3.5L18.5,9M6,2C4.89,2 4,2.89 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2H6Z",mdiFileCode="M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M6.12,15.5L9.86,19.24L11.28,17.83L8.95,15.5L11.28,13.17L9.86,11.76L6.12,15.5M17.28,15.5L13.54,11.76L12.12,13.17L14.45,15.5L12.12,17.83L13.54,19.24L17.28,15.5Z",mdiFileDocument="M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z",mdiFileExcel="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M15.8,20H14L12,16.6L10,20H8.2L11.1,15.5L8.2,11H10L12,14.4L14,11H15.8L12.9,15.5L15.8,20M13,9V3.5L18.5,9H13Z",mdiFileImage="M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M6,20H15L18,20V12L14,16L12,14L6,20M8,9A2,2 0 0,0 6,11A2,2 0 0,0 8,13A2,2 0 0,0 10,11A2,2 0 0,0 8,9Z",mdiFileMusic="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M13,13H11V18A2,2 0 0,1 9,20A2,2 0 0,1 7,18A2,2 0 0,1 9,16C9.4,16 9.7,16.1 10,16.3V11H13V13M13,9V3.5L18.5,9H13Z",mdiFilePowerpoint="M12.6,12.3H10.6V15.5H12.7C13.3,15.5 13.6,15.3 13.9,15C14.2,14.7 14.3,14.4 14.3,13.9C14.3,13.4 14.2,13.1 13.9,12.8C13.6,12.5 13.2,12.3 12.6,12.3M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M15.2,16C14.6,16.5 14.1,16.7 12.8,16.7H10.6V20H9V11H12.8C14.1,11 14.7,11.3 15.2,11.8C15.8,12.4 16,13 16,13.9C16,14.8 15.8,15.5 15.2,16M13,9V3.5L18.5,9H13Z",mdiFileVideo="M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M17,19V13L14,15.2V13H7V19H14V16.8L17,19Z",mdiFileWord="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M15.2,20H13.8L12,13.2L10.2,20H8.8L6.6,11H8.1L9.5,17.8L11.3,11H12.6L14.4,17.8L15.8,11H17.3L15.2,20M13,9V3.5L18.5,9H13Z",mdiFitToPage="M20,2H4C2.89,2 2,2.89 2,4V20C2,21.11 2.89,22 4,22H20C21.11,22 22,21.11 22,20V4C22,2.89 21.11,2 20,2M12,4L15,7H13V9H11V7H9M7,15L4,12L7,9V11H9V13H7M12,20L9,17H11V15H13V17H15M17,15V13H15V11H17V9L20,12",mdiFitToScreen="M17 4H20C21.1 4 22 4.9 22 6V8H20V6H17V4M4 8V6H7V4H4C2.9 4 2 4.9 2 6V8H4M20 16V18H17V20H20C21.1 20 22 19.1 22 18V16H20M7 18H4V16H2V18C2 19.1 2.9 20 4 20H7V18M18 8H6V16H18V8Z",mdiFolderZip="M20 6H12L10 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V8C22 6.9 21.1 6 20 6M18 12H16V14H18V16H16V18H14V16H16V14H14V12H16V10H14V8H16V10H18V12Z",mdiGoogleDrive="M7.71,3.5L1.15,15L4.58,21L11.13,9.5M9.73,15L6.3,21H19.42L22.85,15M22.28,14L15.42,2H8.58L8.57,2L15.43,14H22.28Z",mdiMagnify="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",mdiMicrosoftOnedrive="M18.21 10.29Q19 10.34 19.7 10.68 20.39 11 20.9 11.57 21.41 12.12 21.71 12.83 22 13.54 22 14.34 22 15.18 21.68 15.92 21.36 16.66 20.8 17.21 20.25 17.76 19.5 18.08 18.78 18.41 17.94 18.41H7Q5.97 18.41 5.06 18 4.15 17.61 3.47 16.94 2.79 16.26 2.4 15.35 2 14.44 2 13.41 2 12.59 2.26 11.83 2.5 11.08 3 10.45 3.44 9.82 4.08 9.35 4.72 8.88 5.5 8.63 5.87 8.5 6.21 8.5 6.56 8.43 6.93 8.41H6.94Q7.37 7.75 7.95 7.23 8.5 6.71 9.2 6.34 9.87 6 10.62 5.78 11.37 5.59 12.16 5.59 13.22 5.59 14.2 5.94 15.18 6.29 16 6.91 16.8 7.53 17.37 8.39 17.95 9.26 18.21 10.29M12.16 6.84Q11.05 6.84 10.06 7.3 9.06 7.75 8.36 8.6 8.73 8.7 9.07 8.85 9.4 9 9.73 9.2L13.71 11.58L16 10.62Q16.21 10.53 16.44 10.45 16.67 10.38 16.92 10.33 16.68 9.55 16.21 8.91 15.74 8.27 15.11 7.81 14.5 7.35 13.73 7.1 13 6.84 12.16 6.84M4 15.66L12.27 12.18L9.08 10.26Q8.59 9.97 8.06 9.81 7.5 9.66 6.95 9.66 6.19 9.66 5.5 9.96 4.84 10.26 4.34 10.77 3.84 11.29 3.54 11.97 3.25 12.65 3.25 13.41 3.25 14 3.45 14.59 3.64 15.19 4 15.66M17.94 17.16Q18.41 17.16 18.84 17 19.27 16.86 19.64 16.58L13.61 13L5.03 16.59Q5.47 16.86 5.97 17 6.47 17.16 7 17.16M20.45 15.61Q20.75 15 20.75 14.34 20.75 13.7 20.5 13.17 20.26 12.65 19.85 12.28 19.43 11.91 18.88 11.71 18.32 11.5 17.7 11.5 17.35 11.5 17 11.6 16.66 11.68 16.33 11.81 16 11.93 15.67 12.08 15.35 12.23 15.04 12.37Z",mdiMinus="M19,13H5V11H19V13Z",mdiOpenInNew="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",mdiPin="M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z",mdiPlus="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",mdiPlusCircleOutline="M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z",mdiSend="M2,21L23,12L2,3V10L17,12L2,14V21Z",mdiVideo="M17,10.5V7A1,1 0 0,0 16,6H4A1,1 0 0,0 3,7V17A1,1 0 0,0 4,18H16A1,1 0 0,0 17,17V13.5L21,17.5V6.5L17,10.5Z",Icon$1=function(e){var t={};function n(a){if(t[a])return t[a].exports;var o=t[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(a,o,function(t){return e[t]}.bind(null,o));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t){e.exports=requirePropTypes()},function(e,t){e.exports=React},function(e,t,n){n.r(t);var a=n(1),o=n(0),s=function(){return(s=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},r=0,i=a.forwardRef((function(e,t){var n=e.title,o=void 0===n?null:n,i=e.description,f=void 0===i?null:i,c=e.size,l=void 0===c?null:c,u=e.color,_=void 0===u?"currentColor":u,d=e.horizontal,h=void 0===d?null:d,m=e.vertical,p=void 0===m?null:m,g=e.rotate,b=void 0===g?null:g,y=e.spin,v=void 0===y?null:y,w=e.style,k=void 0===w?{}:w,E=e.children,S=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n}(e,["title","description","size","color","horizontal","vertical","rotate","spin","style","children"]);r++;var C,A=null!==v&&v,x=a.Children.map(E,(function(e){var t=e;!0!==A&&(A=!0===(null===v?t.props.spin:v));var n=t.props.size;"number"==typeof l&&"number"==typeof t.props.size&&(n=t.props.size/l);var o={size:n,color:null===_?t.props.color:_,horizontal:null===h?t.props.horizontal:h,vertical:null===p?t.props.vertical:p,rotate:null===b?t.props.rotate:b,spin:null===v?t.props.spin:v,inStack:!0};return a.cloneElement(t,o)}));null!==l&&(k.width="string"==typeof l?l:1.5*l+"rem");var P,T="stack_labelledby_"+r,M="stack_describedby_"+r;if(o)C=f?T+" "+M:T;else if(P="presentation",f)throw new Error("title attribute required when description is set");return a.createElement("svg",s({ref:t,viewBox:"0 0 24 24",style:k,role:P,"aria-labelledby":C},S),o&&a.createElement("title",{id:T},o),f&&a.createElement("desc",{id:M},f),A&&a.createElement("style",null,"@keyframes spin { to { transform: rotate(360deg) } }","@keyframes spin-inverse { to { transform: rotate(-360deg) } }"),x)}));i.displayName="Stack",i.propTypes={size:o.oneOfType([o.number,o.string]),color:o.string,horizontal:o.bool,vertical:o.bool,rotate:o.number,spin:o.oneOfType([o.bool,o.number]),children:o.oneOfType([o.arrayOf(o.node),o.node]).isRequired,className:o.string,style:o.object},i.defaultProps={size:null,color:null,horizontal:null,vertical:null,rotate:null,spin:null};var f=i;n.d(t,"Icon",(function(){return u})),n.d(t,"Stack",(function(){return f}));var c=function(){return(c=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},l=0,u=a.forwardRef((function(e,t){var n=e.path,o=e.id,s=void 0===o?++l:o,r=e.title,i=void 0===r?null:r,f=e.description,u=void 0===f?null:f,_=e.size,d=void 0===_?null:_,h=e.color,m=void 0===h?"currentColor":h,p=e.horizontal,g=void 0!==p&&p,b=e.vertical,y=void 0!==b&&b,v=e.rotate,w=void 0===v?0:v,k=e.spin,E=void 0!==k&&k,S=e.style,C=void 0===S?{}:S,A=e.inStack,x=void 0!==A&&A,P=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n}(e,["path","id","title","description","size","color","horizontal","vertical","rotate","spin","style","inStack"]),T={},M=[];null!==d&&(x?M.push("scale("+d+")"):(C.width="string"==typeof d?d:1.5*d+"rem",C.height=C.width)),g&&M.push("scaleX(-1)"),y&&M.push("scaleY(-1)"),0!==w&&M.push("rotate("+w+"deg)"),null!==m&&(T.fill=m);var R=a.createElement("path",c({d:n,style:T},x?P:{})),L=R;M.length>0&&(C.transform=M.join(" "),C.transformOrigin="center",x&&(L=a.createElement("g",{style:C},R,a.createElement("rect",{width:"24",height:"24",fill:"transparent"}))));var I,O=L,D=!0===E||"number"!=typeof E?2:E,F=!x&&(g||y);if(D<0&&(F=!F),E&&(O=a.createElement("g",{style:{animation:"spin"+(F?"-inverse":"")+" linear "+Math.abs(D)+"s infinite",transformOrigin:"center"}},L,!(g||y||0!==w)&&a.createElement("rect",{width:"24",height:"24",fill:"transparent"}))),x)return O;var N,j="icon_labelledby_"+s,U="icon_describedby_"+s;if(i)I=u?j+" "+U:j;else if(N="presentation",u)throw new Error("title attribute required when description is set");return a.createElement("svg",c({ref:t,viewBox:"0 0 24 24",style:C,role:N,"aria-labelledby":I},P),i&&a.createElement("title",{id:j},i),u&&a.createElement("desc",{id:U},u),!x&&E&&(F?a.createElement("style",null,"@keyframes spin-inverse { to { transform: rotate(-360deg) } }"):a.createElement("style",null,"@keyframes spin { to { transform: rotate(360deg) } }")),O)}));u.displayName="Icon",u.propTypes={path:o.string.isRequired,size:o.oneOfType([o.number,o.string]),color:o.string,horizontal:o.bool,vertical:o.bool,rotate:o.number,spin:o.oneOfType([o.bool,o.number]),style:o.object,inStack:o.bool,className:o.string},u.defaultProps={size:null,color:"currentColor",horizontal:!1,vertical:!1,rotate:0,spin:!1},t.default=u}]);const iconMapping={attachment:mdiAttachment,back:mdiArrowLeft,close:mdiClose,"close-circle":mdiCloseCircle,"dots-vertical":mdiDotsVertical,download:mdiDownload,"emoticon-plus":"M 19 0 L 19 3 L 16 3 L 16 5 L 19 5 L 19 8 L 21 8 L 21 5 L 24 5 L 24 3 L 21 3 L 21 0 L 19 0 z M 12 2 C 6.5 2 2 6.5 2 12 C 2 17.5 6.5 22 12 22 C 17.5 22 22 17.5 22 12 L 20 12 C 20 16.4 16.4 20 12 20 C 7.6 20 4 16.4 4 12 C 4 7.6 7.6 4 12 4 L 12 2 z M 8.5 8 C 7.7 8 7 8.7 7 9.5 C 7 10.3 7.7 11 8.5 11 C 9.3 11 10 10.3 10 9.5 C 10 8.7 9.3 8 8.5 8 z M 15.5 8 C 14.7 8 14 8.7 14 9.5 C 14 10.3 14.7 11 15.5 11 C 16.3 11 17 10.3 17 9.5 C 17 8.7 16.3 8 15.5 8 z M 6.9 14 C 7.7 16 9.7 17.5 12 17.5 C 14.3 17.5 16.3 16 17.1 14 L 6.9 14 z","fit-screen":mdiFitToScreen,"fit-width":mdiFitToPage,magnify:mdiMagnify,minus:mdiMinus,next:mdiArrowRight,"open-in-new":mdiOpenInNew,pin:mdiPin,plus:mdiPlus,"plus-circle-outline":mdiPlusCircleOutline,previous:mdiArrowLeft,send:mdiSend,video:mdiVideo,email:mdiEmail,file:mdiFile,"file-music":mdiFileMusic,"file-image":mdiFileImage,"file-video":mdiFileVideo,"file-code":mdiFileCode,"file-xml":mdiFileCode,"file-document":mdiFileDocument,"file-word":mdiFileWord,"file-excel":mdiFileExcel,"file-pdf":mdiFileDocument,"file-powerpoint":mdiFilePowerpoint,"file-compressed":mdiFolderZip,dropbox:mdiDropbox,ondedrive:mdiMicrosoftOnedrive,box:mdiBox,"google-drive":mdiGoogleDrive,zoom:"m12 2c-5.6 0-10 4.5-10 10 0 5.6 4.5 10 10 10 5.5 0 9.9-4.5 9.9-10 .1-5.6-4.4-10-9.9-10zm2.6 13.1c0 .2-.1.3-.3.3h-6.9c-1.1 0-1.9-.8-1.9-1.9v-4.6c0-.2.1-.3.3-.3h6.9c1 0 1.9.8 1.9 1.9zm3.8.1c0 .4-.2.4-.5.2l-2.8-2.1v-2.6l2.8-2.1c.2-.2.5-.1.5.2z",cloud:mdiCloud};function getIconMapping(e){let[t]=e.split("+");return t in iconMapping?iconMapping[t]:""}function getIconOverlay(e){let[,t]=e.split("+");return t in iconMapping?iconMapping[t]:""}const Icon=e=>{var{name:t,color:n="",size:a}=e,o=__rest(e,["name","color","size"]);let s=getIconMapping(t),r=getIconOverlay(t);return React.createElement("span",Object.assign({className:"wy-icon "+n,style:{width:a&&1.5*a+"rem",height:a&&1.5*a+"rem"}},o),s?React.createElement(Icon$1.Icon,{color:n,path:s,size:a}):t,r&&React.createElement(Icon$1.Icon,{color:n,path:r,className:"wy-icon-overlay",size:(a||1)/2}))},UIIcon={UI:Icon},Button=e=>{var{active:t=!1,type:n="button",onClick:a,className:o="",children:s}=e,r=__rest(e,["active","type","onClick","className","children"]);let i=1===Children.count(s)&&Children.toArray(s).pop(),f=classNames("wy-button",o,{"wy-active":t,"wy-button-icon":(null==i?void 0:i.type)===UIIcon.UI});return React.createElement("button",Object.assign({type:n,className:f,onClick:a},r),s)},UIButton={UI:Button},SpinnerImpl=({spin:e=!0,size:t=24})=>React.createElement("svg",{className:classNames("wy-spinner",{"wy-spin":e}),width:t,height:t,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("circle",{fill:"none",cx:"12",cy:"12",r:"11","stroke-linecap":"butt","stroke-width":"2"})),UISpinner={UI:SpinnerImpl};function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pdf={exports:{}},_nodeResolve_empty={},_nodeResolve_empty$1=Object.freeze({__proto__:null,default:_nodeResolve_empty}),require$$5=getAugmentedNamespace(_nodeResolve_empty$1);
|
|
39
|
-
/**
|
|
40
|
-
* @licstart The following is the entire license notice for the
|
|
41
|
-
* JavaScript code in this page
|
|
42
|
-
*
|
|
43
|
-
* Copyright 2022 Mozilla Foundation
|
|
44
|
-
*
|
|
45
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
46
|
-
* you may not use this file except in compliance with the License.
|
|
47
|
-
* You may obtain a copy of the License at
|
|
48
|
-
*
|
|
49
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
50
|
-
*
|
|
51
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
52
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
53
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
54
|
-
* See the License for the specific language governing permissions and
|
|
55
|
-
* limitations under the License.
|
|
56
|
-
*
|
|
57
|
-
* @licend The above is the entire license notice for the
|
|
58
|
-
* JavaScript code in this page
|
|
59
|
-
*/
|
|
60
|
-
(function(module,exports){var factory;globalThis,factory=()=>(()=>{var __webpack_modules__=[,(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.UNSUPPORTED_FEATURES=t.TextRenderingMode=t.StreamType=t.RenderingIntentFlag=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FontType=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMode=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.arrayByteLength=l,t.arraysToBytes=function(e){const t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];let n=0;for(let a=0;a<t;a++)n+=l(e[a]);let a=0;const o=new Uint8Array(n);for(let n=0;n<t;n++){let t=e[n];t instanceof Uint8Array||(t="string"==typeof t?c(t):new Uint8Array(t));const s=t.byteLength;o.set(t,a),a+=s}return o},t.assert=function(e,t){e||r(t)},t.bytesToString=function(e){"object"==typeof e&&null!==e&&void 0!==e.length||r("Invalid argument for bytesToString");const t=e.length,n=8192;if(t<n)return String.fromCharCode.apply(null,e);const a=[];for(let o=0;o<t;o+=n){const s=Math.min(o+n,t),r=e.subarray(o,s);a.push(String.fromCharCode.apply(null,r))}return a.join("")},t.createPromiseCapability=function(){const e=Object.create(null);let t=!1;return Object.defineProperty(e,"settled",{get:()=>t}),e.promise=new Promise((function(n,a){e.resolve=function(e){t=!0,n(e)},e.reject=function(e){t=!0,a(e)}})),e},t.createValidAbsoluteUrl=function(e,t=null,n=null){if(!e)return null;try{if(n&&"string"==typeof e){if(n.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);t&&t.length>=2&&(e=`http://${e}`)}if(n.tryConvertEncoding)try{e=h(e)}catch(e){}}const a=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(a))return a}catch(e){}return null},t.escapeString=function(e){return e.replace(/([()\\\n\r])/g,(e=>"\n"===e?"\\n":"\r"===e?"\\r":`\\${e}`))},t.getModificationDate=function(e=new Date){return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getVerbosityLevel=function(){return o},t.info=function(e){o>=a.INFOS&&console.log(`Info: ${e}`)},t.isArrayBuffer=function(e){return"object"==typeof e&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(let n=0,a=e.length;n<a;n++)if(e[n]!==t[n])return!1;return!0},t.isAscii=function(e){return/^[\x00-\x7F]*$/.test(e)},t.objectFromMap=function(e){const t=Object.create(null);for(const[n,a]of e)t[n]=a;return t},t.objectSize=function(e){return Object.keys(e).length},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(o=e)},t.shadow=i,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=c,t.stringToPDFString=function(e){if(e[0]>="ï"){let t;if("þ"===e[0]&&"ÿ"===e[1]?t="utf-16be":"ÿ"===e[0]&&"þ"===e[1]?t="utf-16le":"ï"===e[0]&&"»"===e[1]&&"¿"===e[2]&&(t="utf-8"),t)try{const n=new TextDecoder(t,{fatal:!0}),a=c(e);return n.decode(a)}catch(e){s(`stringToPDFString: "${e}".`)}}const t=[];for(let n=0,a=e.length;n<a;n++){const a=d[e.charCodeAt(n)];t.push(a?String.fromCharCode(a):e.charAt(n))}return t.join("")},t.stringToUTF16BEString=function(e){const t=["þÿ"];for(let n=0,a=e.length;n<a;n++){const a=e.charCodeAt(n);t.push(String.fromCharCode(a>>8&255),String.fromCharCode(255&a))}return t.join("")},t.stringToUTF8String=h,t.unreachable=r,t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=s,n(2),t.IDENTITY_MATRIX=[1,0,0,1,0,0],t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],t.LINE_FACTOR=1.35,t.LINE_DESCENT_FACTOR=.35,t.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},t.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},t.AnnotationEditorPrefix="pdfjs_internal_editor_",t.AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,INK:15},t.AnnotationEditorParamsType={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13},t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},t.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},t.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},t.AnnotationReplyType={GROUP:"Group",REPLY:"R"},t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},t.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},t.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},t.PageActionEventType={O:"PageOpen",C:"PageClose"},t.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},t.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};const a={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=a,t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},t.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},t.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"},t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let o=a.WARNINGS;function s(e){o>=a.WARNINGS&&console.log(`Warning: ${e}`)}function r(e){throw new Error(e)}function i(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}const f=function(){function e(t,n){this.constructor===e&&r("Cannot initialize BaseException."),this.message=t,this.name=n}return e.prototype=new Error,e.constructor=e,e}();function c(e){"string"!=typeof e&&r("Invalid argument for stringToBytes");const t=e.length,n=new Uint8Array(t);for(let a=0;a<t;++a)n[a]=255&e.charCodeAt(a);return n}function l(e){return void 0!==e.length?e.length:void 0!==e.byteLength?e.byteLength:void r("Invalid argument for arrayByteLength")}t.BaseException=f,t.PasswordException=class extends f{constructor(e,t){super(e,"PasswordException"),this.code=t}},t.UnknownErrorException=class extends f{constructor(e,t){super(e,"UnknownErrorException"),this.details=t}},t.InvalidPDFException=class extends f{constructor(e){super(e,"InvalidPDFException")}},t.MissingPDFException=class extends f{constructor(e){super(e,"MissingPDFException")}},t.UnexpectedResponseException=class extends f{constructor(e,t){super(e,"UnexpectedResponseException"),this.status=t}},t.FormatError=class extends f{constructor(e){super(e,"FormatError")}},t.AbortException=class extends f{constructor(e){super(e,"AbortException")}},t.FeatureTest=class{static get isLittleEndian(){return i(this,"isLittleEndian",function(){const e=new Uint8Array(4);return e[0]=1,1===new Uint32Array(e.buffer,0,1)[0]}())}static get isEvalSupported(){return i(this,"isEvalSupported",function(){try{return new Function(""),!0}catch(e){return!1}}())}static get isOffscreenCanvasSupported(){return i(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}};const u=[...Array(256).keys()].map((e=>e.toString(16).padStart(2,"0")));class _{static makeHexColor(e,t,n){return`#${u[e]}${u[t]}${u[n]}`}static scaleMinMax(e,t){let n;e[0]?(e[0]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[3],t[3]*=e[3]):(n=t[0],t[0]=t[2],t[2]=n,n=t[1],t[1]=t[3],t[3]=n,e[1]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const n=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n]}static getAxialAlignedBoundingBox(e,t){const n=_.applyTransform(e,t),a=_.applyTransform(e.slice(2,4),t),o=_.applyTransform([e[0],e[3]],t),s=_.applyTransform([e[2],e[1]],t);return[Math.min(n[0],a[0],o[0],s[0]),Math.min(n[1],a[1],o[1],s[1]),Math.max(n[0],a[0],o[0],s[0]),Math.max(n[1],a[1],o[1],s[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static apply3dTransform(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],a=e[0]*t[1]+e[1]*t[3],o=e[2]*t[0]+e[3]*t[2],s=e[2]*t[1]+e[3]*t[3],r=(n+s)/2,i=Math.sqrt((n+s)**2-4*(n*s-o*a))/2,f=r+i||1,c=r-i||1;return[Math.sqrt(f),Math.sqrt(c)]}static normalizeRect(e){const t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){const n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),a=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(n>a)return null;const o=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),s=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return o>s?null:[n,o,a,s]}static bezierBoundingBox(e,t,n,a,o,s,r,i){const f=[],c=[[],[]];let l,u,_,d,h,m,p,g;for(let c=0;c<2;++c)if(0===c?(u=6*e-12*n+6*o,l=-3*e+9*n-9*o+3*r,_=3*n-3*e):(u=6*t-12*a+6*s,l=-3*t+9*a-9*s+3*i,_=3*a-3*t),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;d=-_/u,0<d&&d<1&&f.push(d)}else p=u*u-4*_*l,g=Math.sqrt(p),p<0||(h=(-u+g)/(2*l),0<h&&h<1&&f.push(h),m=(-u-g)/(2*l),0<m&&m<1&&f.push(m));let b,y=f.length;const v=y;for(;y--;)d=f[y],b=1-d,c[0][y]=b*b*b*e+3*b*b*d*n+3*b*d*d*o+d*d*d*r,c[1][y]=b*b*b*t+3*b*b*d*a+3*b*d*d*s+d*d*d*i;return c[0][v]=e,c[1][v]=t,c[0][v+1]=r,c[1][v+1]=i,c[0].length=c[1].length=v+2,[Math.min(...c[0]),Math.min(...c[1]),Math.max(...c[0]),Math.max(...c[1])]}}t.Util=_;const d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function h(e){return decodeURIComponent(escape(e))}},(e,t,n)=>{n(3)},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;const n=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=n},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StatTimer=t.RenderingCancelledException=t.PixelsPerInch=t.PageViewport=t.PDFDateString=t.DOMStandardFontDataFactory=t.DOMSVGFactory=t.DOMCanvasFactory=t.DOMCMapReaderFactory=void 0,t.binarySearchFirstItem=function(e,t,n=0){let a=n,o=e.length-1;if(o<0||!t(e[o]))return e.length;if(t(e[a]))return a;for(;a<o;){const n=a+o>>1,s=e[n];t(s)?o=n:a=n+1}return a},t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.getColorValues=function(e){const t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);for(const n of e.keys()){t.style.color=n;const a=window.getComputedStyle(t).color;e.set(n,p(a))}t.remove()},t.getFilenameFromUrl=function(e){const t=e.indexOf("#"),n=e.indexOf("?"),a=Math.min(t>0?t:e.length,n>0?n:e.length);return e.substring(e.lastIndexOf("/",a)+1,a)},t.getPdfFilenameFromUrl=function(e,t="document.pdf"){if("string"!=typeof e)return t;if(d(e))return(0,o.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;const n=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,a=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e);let s=n.exec(a[1])||n.exec(a[2])||n.exec(a[3]);if(s&&(s=s[0],s.includes("%")))try{s=n.exec(decodeURIComponent(s))[0]}catch(e){}return s||t},t.getRGB=p,t.getXfaPageViewport=function(e,{scale:t=1,rotation:n=0}){const{width:a,height:o}=e.attributes.style,s=[0,0,parseInt(a),parseInt(o)];return new u({viewBox:s,scale:t,rotation:n})},t.isDataScheme=d,t.isPdfFile=function(e){return"string"==typeof e&&/\.pdf$/i.test(e)},t.isValidFetchUrl=h,t.loadScript=function(e,t=!1){return new Promise(((n,a)=>{const o=document.createElement("script");o.src=e,o.onload=function(e){t&&o.remove(),n(e)},o.onerror=function(){a(new Error(`Cannot load script at: ${o.src}`))},(document.head||document.documentElement).append(o)}))};var a=n(5),o=n(1);class s{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF}t.PixelsPerInch=s;class r extends a.BaseCanvasFactory{constructor({ownerDocument:e=globalThis.document}={}){super(),this._document=e}_createCanvas(e,t){const n=this._document.createElement("canvas");return n.width=e,n.height=t,n}}async function i(e,t=!1){if(h(e,document.baseURI)){const n=await fetch(e);if(!n.ok)throw new Error(n.statusText);return t?new Uint8Array(await n.arrayBuffer()):(0,o.stringToBytes)(await n.text())}return new Promise(((n,a)=>{const s=new XMLHttpRequest;s.open("GET",e,!0),t&&(s.responseType="arraybuffer"),s.onreadystatechange=()=>{if(s.readyState===XMLHttpRequest.DONE){if(200===s.status||0===s.status){let e;if(t&&s.response?e=new Uint8Array(s.response):!t&&s.responseText&&(e=(0,o.stringToBytes)(s.responseText)),e)return void n(e)}a(new Error(s.statusText))}},s.send(null)}))}t.DOMCanvasFactory=r;class f extends a.BaseCMapReaderFactory{_fetchData(e,t){return i(e,this.isCompressed).then((e=>({cMapData:e,compressionType:t})))}}t.DOMCMapReaderFactory=f;class c extends a.BaseStandardFontDataFactory{_fetchData(e){return i(e,!0)}}t.DOMStandardFontDataFactory=c;class l extends a.BaseSVGFactory{_createSVG(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}}t.DOMSVGFactory=l;class u{constructor({viewBox:e,scale:t,rotation:n,offsetX:a=0,offsetY:o=0,dontFlip:s=!1}){this.viewBox=e,this.scale=t,this.rotation=n,this.offsetX=a,this.offsetY=o;const r=(e[2]+e[0])/2,i=(e[3]+e[1])/2;let f,c,l,u,_,d,h,m;switch((n%=360)<0&&(n+=360),n){case 180:f=-1,c=0,l=0,u=1;break;case 90:f=0,c=1,l=1,u=0;break;case 270:f=0,c=-1,l=-1,u=0;break;case 0:f=1,c=0,l=0,u=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}s&&(l=-l,u=-u),0===f?(_=Math.abs(i-e[1])*t+a,d=Math.abs(r-e[0])*t+o,h=Math.abs(e[3]-e[1])*t,m=Math.abs(e[2]-e[0])*t):(_=Math.abs(r-e[0])*t+a,d=Math.abs(i-e[1])*t+o,h=Math.abs(e[2]-e[0])*t,m=Math.abs(e[3]-e[1])*t),this.transform=[f*t,c*t,l*t,u*t,_-f*t*r-l*t*i,d-c*t*r-u*t*i],this.width=h,this.height=m}clone({scale:e=this.scale,rotation:t=this.rotation,offsetX:n=this.offsetX,offsetY:a=this.offsetY,dontFlip:o=!1}={}){return new u({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:n,offsetY:a,dontFlip:o})}convertToViewportPoint(e,t){return o.Util.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){const t=o.Util.applyTransform([e[0],e[1]],this.transform),n=o.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]}convertToPdfPoint(e,t){return o.Util.applyInverseTransform([e,t],this.transform)}}t.PageViewport=u;class _ extends o.BaseException{constructor(e,t){super(e,"RenderingCancelledException"),this.type=t}}function d(e){const t=e.length;let n=0;for(;n<t&&""===e[n].trim();)n++;return"data:"===e.substring(n,n+5).toLowerCase()}function h(e,t){try{const{protocol:n}=t?new URL(e,t):new URL(e);return"http:"===n||"https:"===n}catch(e){return!1}}let m;function p(e){if(e.startsWith("#")){const t=parseInt(e.slice(1),16);return[(16711680&t)>>16,(65280&t)>>8,255&t]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map((e=>parseInt(e))):e.startsWith("rgba(")?e.slice(5,-1).split(",").map((e=>parseInt(e))).slice(0,3):((0,o.warn)(`Not a valid color format: "${e}"`),[0,0,0])}t.RenderingCancelledException=_,t.StatTimer=class{constructor(){this.started=Object.create(null),this.times=[]}time(e){e in this.started&&(0,o.warn)(`Timer is already running for ${e}`),this.started[e]=Date.now()}timeEnd(e){e in this.started||(0,o.warn)(`Timer has not been started for ${e}`),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){const e=[];let t=0;for(const e of this.times){const n=e.name;n.length>t&&(t=n.length)}for(const n of this.times){const a=n.end-n.start;e.push(`${n.name.padEnd(t)} ${a}ms\n`)}return e.join("")}},t.PDFDateString=class{static toDateObject(e){if(!e||"string"!=typeof e)return null;m||(m=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const t=m.exec(e);if(!t)return null;const n=parseInt(t[1],10);let a=parseInt(t[2],10);a=a>=1&&a<=12?a-1:0;let o=parseInt(t[3],10);o=o>=1&&o<=31?o:1;let s=parseInt(t[4],10);s=s>=0&&s<=23?s:0;let r=parseInt(t[5],10);r=r>=0&&r<=59?r:0;let i=parseInt(t[6],10);i=i>=0&&i<=59?i:0;const f=t[7]||"Z";let c=parseInt(t[8],10);c=c>=0&&c<=23?c:0;let l=parseInt(t[9],10)||0;return l=l>=0&&l<=59?l:0,"-"===f?(s+=c,r+=l):"+"===f&&(s-=c,r-=l),new Date(Date.UTC(n,a,o,s,r,i))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStandardFontDataFactory=t.BaseSVGFactory=t.BaseCanvasFactory=t.BaseCMapReaderFactory=void 0;var a=n(1);class o{constructor(){this.constructor===o&&(0,a.unreachable)("Cannot initialize BaseCanvasFactory.")}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");const n=this._createCanvas(e,t);return{canvas:n,context:n.getContext("2d")}}reset(e,t,n){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||n<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=n}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,t){(0,a.unreachable)("Abstract method `_createCanvas` called.")}}t.BaseCanvasFactory=o;class s{constructor({baseUrl:e=null,isCompressed:t=!1}){this.constructor===s&&(0,a.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=e,this.isCompressed=t}async fetch({name:e}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!e)throw new Error("CMap name must be specified.");const t=this.baseUrl+e+(this.isCompressed?".bcmap":""),n=this.isCompressed?a.CMapCompressionType.BINARY:a.CMapCompressionType.NONE;return this._fetchData(t,n).catch((e=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${t}`)}))}_fetchData(e,t){(0,a.unreachable)("Abstract method `_fetchData` called.")}}t.BaseCMapReaderFactory=s;class r{constructor({baseUrl:e=null}){this.constructor===r&&(0,a.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=e}async fetch({filename:e}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!e)throw new Error("Font filename must be specified.");const t=`${this.baseUrl}${e}`;return this._fetchData(t).catch((e=>{throw new Error(`Unable to load font data at: ${t}`)}))}_fetchData(e){(0,a.unreachable)("Abstract method `_fetchData` called.")}}t.BaseStandardFontDataFactory=r;class i{constructor(){this.constructor===i&&(0,a.unreachable)("Cannot initialize BaseSVGFactory.")}create(e,t,n=!1){if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");const a=this._createSVG("svg:svg");return a.setAttribute("version","1.1"),n||(a.setAttribute("width",`${e}px`),a.setAttribute("height",`${t}px`)),a.setAttribute("preserveAspectRatio","none"),a.setAttribute("viewBox",`0 0 ${e} ${t}`),a}createElement(e){if("string"!=typeof e)throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){(0,a.unreachable)("Abstract method `_createSVG` called.")}}t.BaseSVGFactory=i},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.build=exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(7),_display_utils=__w_pdfjs_require__(4),_font_loader=__w_pdfjs_require__(11),_canvas=__w_pdfjs_require__(12),_worker_options=__w_pdfjs_require__(15),_is_node=__w_pdfjs_require__(3),_message_handler=__w_pdfjs_require__(16),_metadata=__w_pdfjs_require__(17),_optional_content_config=__w_pdfjs_require__(18),_transport_stream=__w_pdfjs_require__(19),_xfa_text=__w_pdfjs_require__(20);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100;let DefaultCanvasFactory=_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;let DefaultCMapReaderFactory=_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;let DefaultStandardFontDataFactory=_display_utils.DOMStandardFontDataFactory,createPDFNetworkStream;if(exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory,_is_node.isNodeJS){const{NodeCanvasFactory:e,NodeCMapReaderFactory:t,NodeStandardFontDataFactory:n}=__w_pdfjs_require__(21);exports.DefaultCanvasFactory=DefaultCanvasFactory=e,exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory=t,exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory=n}function setPDFNetworkStreamFactory(e){createPDFNetworkStream=e}function getDocument(e){const t=new PDFDocumentLoadingTask;let n;if("string"==typeof e||e instanceof URL)n={url:e};else if((0,_util.isArrayBuffer)(e))n={data:e};else if(e instanceof PDFDataRangeTransport)n={range:e};else{if("object"!=typeof e)throw new Error("Invalid parameter in getDocument, need either string, URL, Uint8Array, or parameter object.");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");n=e}const a=Object.create(null);let o=null,s=null;for(const e in n){const t=n[e];switch(e){case"url":if("undefined"!=typeof window)try{a[e]=new URL(t,window.location).href;continue}catch(e){(0,_util.warn)(`Cannot create valid URL: "${e}".`)}else if("string"==typeof t||t instanceof URL){a[e]=t.toString();continue}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");case"range":o=t;continue;case"worker":s=t;continue;case"data":if(_is_node.isNodeJS&&"undefined"!=typeof Buffer&&t instanceof Buffer)a[e]=new Uint8Array(t);else{if(t instanceof Uint8Array)break;if("string"==typeof t)a[e]=(0,_util.stringToBytes)(t);else if("object"!=typeof t||null===t||isNaN(t.length)){if(!(0,_util.isArrayBuffer)(t))throw new Error("Invalid PDF binary data: either typed array, string, or array-like object is expected in the data property.");a[e]=new Uint8Array(t)}else a[e]=new Uint8Array(t)}continue}a[e]=t}if(a.CMapReaderFactory=a.CMapReaderFactory||DefaultCMapReaderFactory,a.StandardFontDataFactory=a.StandardFontDataFactory||DefaultStandardFontDataFactory,a.ignoreErrors=!0!==a.stopAtErrors,a.fontExtraProperties=!0===a.fontExtraProperties,a.pdfBug=!0===a.pdfBug,a.enableXfa=!0===a.enableXfa,(!Number.isInteger(a.rangeChunkSize)||a.rangeChunkSize<1)&&(a.rangeChunkSize=DEFAULT_RANGE_CHUNK_SIZE),("string"!=typeof a.docBaseUrl||(0,_display_utils.isDataScheme)(a.docBaseUrl))&&(a.docBaseUrl=null),(!Number.isInteger(a.maxImageSize)||a.maxImageSize<-1)&&(a.maxImageSize=-1),"string"!=typeof a.cMapUrl&&(a.cMapUrl=null),"string"!=typeof a.standardFontDataUrl&&(a.standardFontDataUrl=null),"boolean"!=typeof a.useWorkerFetch&&(a.useWorkerFetch=a.CMapReaderFactory===_display_utils.DOMCMapReaderFactory&&a.StandardFontDataFactory===_display_utils.DOMStandardFontDataFactory),"boolean"!=typeof a.isEvalSupported&&(a.isEvalSupported=!0),"boolean"!=typeof a.disableFontFace&&(a.disableFontFace=_is_node.isNodeJS),"boolean"!=typeof a.useSystemFonts&&(a.useSystemFonts=!_is_node.isNodeJS&&!a.disableFontFace),"object"==typeof a.ownerDocument&&null!==a.ownerDocument||(a.ownerDocument=globalThis.document),"boolean"!=typeof a.disableRange&&(a.disableRange=!1),"boolean"!=typeof a.disableStream&&(a.disableStream=!1),"boolean"!=typeof a.disableAutoFetch&&(a.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(a.verbosity),!s){const e={verbosity:a.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};s=e.port?PDFWorker.fromPort(e):new PDFWorker(e),t._worker=s}const r=t.docId;return s.promise.then((function(){if(t.destroyed)throw new Error("Loading aborted");const e=_fetchDocument(s,a,o,r),n=new Promise((function(e){let t;o?t=new _transport_stream.PDFDataTransportStream({length:a.length,initialData:a.initialData,progressiveDone:a.progressiveDone,contentDispositionFilename:a.contentDispositionFilename,disableRange:a.disableRange,disableStream:a.disableStream},o):a.data||(t=createPDFNetworkStream({url:a.url,length:a.length,httpHeaders:a.httpHeaders,withCredentials:a.withCredentials,rangeChunkSize:a.rangeChunkSize,disableRange:a.disableRange,disableStream:a.disableStream})),e(t)}));return Promise.all([e,n]).then((function([e,n]){if(t.destroyed)throw new Error("Loading aborted");const o=new _message_handler.MessageHandler(r,e,s.port),i=new WorkerTransport(o,t,n,a);t._transport=i,o.send("Ready",null)}))})).catch(t._capability.reject),t}async function _fetchDocument(e,t,n,a){if(e.destroyed)throw new Error("Worker was destroyed");n&&(t.length=n.length,t.initialData=n.initialData,t.progressiveDone=n.progressiveDone,t.contentDispositionFilename=n.contentDispositionFilename);const o=await e.messageHandler.sendWithPromise("GetDocRequest",{docId:a,apiVersion:"2.15.349",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,docBaseUrl:t.docBaseUrl,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported,fontExtraProperties:t.fontExtraProperties,enableXfa:t.enableXfa,useSystemFonts:t.useSystemFonts,cMapUrl:t.useWorkerFetch?t.cMapUrl:null,standardFontDataUrl:t.useWorkerFetch?t.standardFontDataUrl:null});if(t.data&&(t.data=null),e.destroyed)throw new Error("Worker was destroyed");return o}class PDFDocumentLoadingTask{static#e=0;constructor(){this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+PDFDocumentLoadingTask.#e++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0,await(this._transport?.destroy()),this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(e,t,n=!1,a=null){this.length=e,this.initialData=t,this.progressiveDone=n,this.contentDispositionFilename=a,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,t){for(const n of this._rangeListeners)n(e,t)}onDataProgress(e,t){this._readyCapability.promise.then((()=>{for(const n of this._progressListeners)n(e,t)}))}onDataProgressiveRead(e){this._readyCapability.promise.then((()=>{for(const t of this._progressiveReadListeners)t(e)}))}onDataProgressiveDone(){this._readyCapability.promise.then((()=>{for(const e of this._progressiveDoneListeners)e()}))}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(e,t){this._pdfInfo=e,this._transport=t,Object.defineProperty(this,"fingerprint",{get(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.fingerprint`, please use `PDFDocumentProxy.fingerprints` instead."),this.fingerprints[0]}}),Object.defineProperty(this,"getStats",{value:async()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getStats`, please use the `PDFDocumentProxy.stats`-getter instead."),this.stats||{streamTypes:{},fontTypes:{}})})}get annotationStorage(){return this._transport.annotationStorage}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get stats(){return this._transport.stats}get isPureXfa(){return!!this._transport._htmlForXfa}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(e=!1){return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}saveDocument(){return this._transport.annotationStorage.size<=0&&(0,_display_utils.deprecated)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."),this._transport.saveDocument()}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(e,t,n,a,o=!1){this._pageIndex=e,this._pageInfo=t,this._ownerDocument=a,this._transport=n,this._stats=o?new _display_utils.StatTimer:null,this._pdfBug=o,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this._bitmaps=new Set,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this._annotationPromises=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:e,rotation:t=this.rotate,offsetX:n=0,offsetY:a=0,dontFlip:o=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:t,offsetX:n,offsetY:a,dontFlip:o})}getAnnotations({intent:e="display"}={}){const t=this._transport.getRenderingIntent(e);let n=this._annotationPromises.get(t.cacheKey);return n||(n=this._transport.getAnnotations(this._pageIndex,t.renderingIntent),this._annotationPromises.set(t.cacheKey,n),n=n.then((e=>{for(const t of e)void 0!==t.titleObj&&Object.defineProperty(t,"title",{get:()=>((0,_display_utils.deprecated)("`title`-property on annotation, please use `titleObj` instead."),t.titleObj.str)}),void 0!==t.contentsObj&&Object.defineProperty(t,"contents",{get:()=>((0,_display_utils.deprecated)("`contents`-property on annotation, please use `contentsObj` instead."),t.contentsObj.str)});return e}))),n}getJSActions(){return this._jsActionsPromise||=this._transport.getPageJSActions(this._pageIndex)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:e,viewport:t,intent:n="display",annotationMode:a=_util.AnnotationMode.ENABLE,transform:o=null,imageLayer:s=null,canvasFactory:r=null,background:i=null,optionalContentConfigPromise:f=null,annotationCanvasMap:c=null,pageColors:l=null,printAnnotationStorage:u=null}){void 0!==arguments[0]?.renderInteractiveForms&&((0,_display_utils.deprecated)("render no longer accepts the `renderInteractiveForms`-option, please use the `annotationMode`-option instead."),!0===arguments[0].renderInteractiveForms&&a===_util.AnnotationMode.ENABLE&&(a=_util.AnnotationMode.ENABLE_FORMS)),void 0!==arguments[0]?.includeAnnotationStorage&&((0,_display_utils.deprecated)("render no longer accepts the `includeAnnotationStorage`-option, please use the `annotationMode`-option instead."),!0===arguments[0].includeAnnotationStorage&&a===_util.AnnotationMode.ENABLE&&(a=_util.AnnotationMode.ENABLE_STORAGE)),this._stats&&this._stats.time("Overall");const _=this._transport.getRenderingIntent(n,a,u);this.pendingCleanup=!1,f||(f=this._transport.getOptionalContentConfig());let d=this._intentStates.get(_.cacheKey);d||(d=Object.create(null),this._intentStates.set(_.cacheKey,d)),d.streamReaderCancelTimeout&&(clearTimeout(d.streamReaderCancelTimeout),d.streamReaderCancelTimeout=null);const h=r||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),m=!!(_.renderingIntent&_util.RenderingIntentFlag.PRINT);d.displayReadyCapability||(d.displayReadyCapability=(0,_util.createPromiseCapability)(),d.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(_));const p=e=>{d.renderTasks.delete(g),(this.cleanupAfterRender||m)&&(this.pendingCleanup=!0),this._tryCleanup(),e?(g.capability.reject(e),this._abortOperatorList({intentState:d,reason:e instanceof Error?e:new Error(e)})):g.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},g=new InternalRenderTask({callback:p,params:{canvasContext:e,viewport:t,transform:o,imageLayer:s,background:i},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:c,operatorList:d.operatorList,pageIndex:this._pageIndex,canvasFactory:h,useRequestAnimationFrame:!m,pdfBug:this._pdfBug,pageColors:l});(d.renderTasks||=new Set).add(g);const b=g.task;return Promise.all([d.displayReadyCapability.promise,f]).then((([e,t])=>{this.pendingCleanup?p():(this._stats&&this._stats.time("Rendering"),g.initializeGraphics({transparency:e,optionalContentConfig:t}),g.operatorListChanged())})).catch(p),b}getOperatorList({intent:e="display",annotationMode:t=_util.AnnotationMode.ENABLE,printAnnotationStorage:n=null}={}){const a=this._transport.getRenderingIntent(e,t,n,!0);let o,s=this._intentStates.get(a.cacheKey);return s||(s=Object.create(null),this._intentStates.set(a.cacheKey,s)),s.opListReadCapability||(o=Object.create(null),o.operatorListChanged=function(){s.operatorList.lastChunk&&(s.opListReadCapability.resolve(s.operatorList),s.renderTasks.delete(o))},s.opListReadCapability=(0,_util.createPromiseCapability)(),(s.renderTasks||=new Set).add(o),s.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(a)),s.opListReadCapability.promise}streamTextContent({disableCombineTextItems:e=!1,includeMarkedContent:t=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,combineTextItems:!0!==e,includeMarkedContent:!0===t},{highWaterMark:100,size:e=>e.items.length})}getTextContent(e={}){if(this._transport._htmlForXfa)return this.getXfa().then((e=>_xfa_text.XfaText.textContent(e)));const t=this.streamTextContent(e);return new Promise((function(e,n){const a=t.getReader(),o={items:[],styles:Object.create(null)};!function t(){a.read().then((function({value:n,done:a}){a?e(o):(Object.assign(o.styles,n.styles),o.items.push(...n.items),t())}),n)}()}))}getStructTree(){return this._structTreePromise||=this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const e=[];for(const t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:new Error("Page was destroyed."),force:!0}),!t.opListReadCapability)for(const n of t.renderTasks)e.push(n.completed),n.cancel();this.objs.clear();for(const e of this._bitmaps)e.close();return this._bitmaps.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,this.pendingCleanup=!1,Promise.all(e)}cleanup(e=!1){return this.pendingCleanup=!0,this._tryCleanup(e)}_tryCleanup(e=!1){if(!this.pendingCleanup)return!1;for(const{renderTasks:e,operatorList:t}of this._intentStates.values())if(e.size>0||!t.lastChunk)return!1;this._intentStates.clear(),this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,e&&this._stats&&(this._stats=new _display_utils.StatTimer);for(const e of this._bitmaps)e.close();return this._bitmaps.clear(),this.pendingCleanup=!1,!0}_startRenderPage(e,t){const n=this._intentStates.get(t);n&&(this._stats&&this._stats.timeEnd("Page Request"),n.displayReadyCapability&&n.displayReadyCapability.resolve(e))}_renderPageChunk(e,t){for(let n=0,a=e.length;n<a;n++)t.operatorList.fnArray.push(e.fnArray[n]),t.operatorList.argsArray.push(e.argsArray[n]);t.operatorList.lastChunk=e.lastChunk,t.operatorList.separateAnnots=e.separateAnnots;for(const e of t.renderTasks)e.operatorListChanged();e.lastChunk&&this._tryCleanup()}_pumpOperatorList({renderingIntent:e,cacheKey:t,annotationStorageMap:n}){const a=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:e,cacheKey:t,annotationStorage:n}).getReader(),o=this._intentStates.get(t);o.streamReader=a;const s=()=>{a.read().then((({value:e,done:t})=>{t?o.streamReader=null:this._transport.destroyed||(this._renderPageChunk(e,o),s())}),(e=>{if(o.streamReader=null,!this._transport.destroyed){if(o.operatorList){o.operatorList.lastChunk=!0;for(const e of o.renderTasks)e.operatorListChanged();this._tryCleanup()}if(o.displayReadyCapability)o.displayReadyCapability.reject(e);else{if(!o.opListReadCapability)throw e;o.opListReadCapability.reject(e)}}}))};s()}_abortOperatorList({intentState:e,reason:t,force:n=!1}){if(e.streamReader){if(!n){if(e.renderTasks.size>0)return;if(t instanceof _display_utils.RenderingCancelledException)return void(e.streamReaderCancelTimeout=setTimeout((()=>{this._abortOperatorList({intentState:e,reason:t,force:!0}),e.streamReaderCancelTimeout=null}),RENDERING_CANCELLED_TIMEOUT))}if(e.streamReader.cancel(new _util.AbortException(t.message)).catch((()=>{})),e.streamReader=null,!this._transport.destroyed){for(const[t,n]of this._intentStates)if(n===e){this._intentStates.delete(t);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(){this._listeners=[],this._deferred=Promise.resolve()}postMessage(e,t){const n={data:structuredClone(e,t)};this._deferred.then((()=>{for(const e of this._listeners)e.call(this,n)}))}addEventListener(e,t){this._listeners.push(t)}removeEventListener(e,t){const n=this._listeners.indexOf(t);this._listeners.splice(n,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_is_node.isNodeJS&&"function"==typeof commonjsRequire)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"==typeof document){const e=document?.currentScript?.src;e&&(PDFWorkerUtil.fallbackWorkerSrc=e.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(e,t){let n;try{if(n=new URL(e),!n.origin||"null"===n.origin)return!1}catch(e){return!1}const a=new URL(t,n);return n.origin===a.origin},PDFWorkerUtil.createCDNWrapper=function(e){const t=`importScripts("${e}");`;return URL.createObjectURL(new Blob([t]))};class PDFWorker{static#t=new WeakMap;constructor({name:e=null,port:t=null,verbosity:n=(0,_util.getVerbosityLevel)()}={}){if(t&&PDFWorker.#t.has(t))throw new Error("Cannot use more than one PDFWorker per port.");if(this.name=e,this.destroyed=!1,this.verbosity=n,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,t)return PDFWorker.#t.set(t,this),void this._initializeFromPort(t);this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve()}_initialize(){if("undefined"!=typeof Worker&&!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){let e=PDFWorker.workerSrc;try{PDFWorkerUtil.isSameOrigin(window.location.href,e)||(e=PDFWorkerUtil.createCDNWrapper(new URL(e,window.location).href));const t=new Worker(e),n=new _message_handler.MessageHandler("main","worker",t),a=()=>{t.removeEventListener("error",o),n.destroy(),t.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},o=()=>{this._webWorker||a()};t.addEventListener("error",o),n.on("test",(e=>{t.removeEventListener("error",o),this.destroyed?a():e?(this._messageHandler=n,this._port=t,this._webWorker=t,this._readyCapability.resolve(),n.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),n.destroy(),t.terminate())})),n.on("ready",(e=>{if(t.removeEventListener("error",o),this.destroyed)a();else try{s()}catch(e){this._setupFakeWorker()}}));const s=()=>{const e=new Uint8Array;n.send("test",e,[e.buffer])};return void s()}catch(e){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then((e=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const t=new LoopbackPort;this._port=t;const n="fake"+PDFWorkerUtil.fakeWorkerId++,a=new _message_handler.MessageHandler(n+"_worker",n,t);e.setup(a,t);const o=new _message_handler.MessageHandler(n,n+"_worker",t);this._messageHandler=o,this._readyCapability.resolve(),o.send("configure",{verbosity:this.verbosity})})).catch((e=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${e.message}".`))}))}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),PDFWorker.#t.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(e){if(!e?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return this.#t.has(e.port)?this.#t.get(e.port):new PDFWorker(e)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch(e){return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS&&"function"==typeof commonjsRequire){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}exports.PDFWorker=PDFWorker,PDFWorker.getWorkerSrc=function(){return(0,_display_utils.deprecated)("`PDFWorker.getWorkerSrc()`, please use `PDFWorker.workerSrc` instead."),this.workerSrc};class WorkerTransport{#n=null;#a=new Map;#o=new Map;#s=null;constructor(e,t,n,a){this.messageHandler=e,this.loadingTask=t,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:t.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:a.ownerDocument,styleElement:a.styleElement}),this._params=a,a.useWorkerFetch||(this.CMapReaderFactory=new a.CMapReaderFactory({baseUrl:a.cMapUrl,isCompressed:a.cMapPacked}),this.StandardFontDataFactory=new a.StandardFontDataFactory({baseUrl:a.standardFontDataUrl})),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}get stats(){return this.#n}getRenderingIntent(e,t=_util.AnnotationMode.ENABLE,n=null,a=!1){let o=_util.RenderingIntentFlag.DISPLAY,s=null;switch(e){case"any":o=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":o=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${e}`)}switch(t){case _util.AnnotationMode.DISABLE:o+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:o+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:o+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,s=(o&_util.RenderingIntentFlag.PRINT&&n instanceof _annotation_storage.PrintAnnotationStorage?n:this.annotationStorage).serializable;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${t}`)}return a&&(o+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:o,cacheKey:`${o}_${_annotation_storage.AnnotationStorage.getHash(s)}`,annotationStorageMap:s}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));const e=[];for(const t of this.#a.values())e.push(t._destroy());this.#a.clear(),this.#o.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const t=this.messageHandler.sendWithPromise("Terminate",null);return e.push(t),Promise.all(e).then((()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#s=null,this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null,this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:t}=this;e.on("GetReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=e=>{this._lastProgress={loaded:e.loaded,total:e.total}},t.onPull=()=>{this._fullReader.read().then((function({value:e,done:n}){n?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{this._fullReader.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}})),e.on("ReaderHeadersReady",(e=>{const n=(0,_util.createPromiseCapability)(),a=this._fullReader;return a.headersReady.then((()=>{a.isStreamingSupported&&a.isRangeSupported||(this._lastProgress&&t.onProgress?.(this._lastProgress),a.onProgress=e=>{t.onProgress?.({loaded:e.loaded,total:e.total})}),n.resolve({isStreamingSupported:a.isStreamingSupported,isRangeSupported:a.isRangeSupported,contentLength:a.contentLength})}),n.reject),n.promise})),e.on("GetRangeReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const n=this._networkStream.getRangeReader(e.begin,e.end);n?(t.onPull=()=>{n.read().then((function({value:e,done:n}){n?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{n.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}):t.close()})),e.on("GetDoc",(({pdfInfo:e})=>{this._numPages=e.numPages,this._htmlForXfa=e.htmlForXfa,delete e.htmlForXfa,t._capability.resolve(new PDFDocumentProxy(e,this))})),e.on("DocException",(function(e){let n;switch(e.name){case"PasswordException":n=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":n=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":n=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":n=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":n=new _util.UnknownErrorException(e.message,e.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}t._capability.reject(n)})),e.on("PasswordRequest",(e=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),t.onPassword){const n=e=>{e instanceof Error?this._passwordCapability.reject(e):this._passwordCapability.resolve({password:e})};try{t.onPassword(n,e.code)}catch(e){this._passwordCapability.reject(e)}}else this._passwordCapability.reject(new _util.PasswordException(e.message,e.code));return this._passwordCapability.promise})),e.on("DataLoaded",(e=>{t.onProgress?.({loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(e=>{this.destroyed||this.#a.get(e.pageIndex)._startRenderPage(e.transparency,e.cacheKey)})),e.on("commonobj",(([t,n,a])=>{if(!this.destroyed&&!this.commonObjs.has(t))switch(n){case"Font":const o=this._params;if("error"in a){const e=a.error;(0,_util.warn)(`Error during font loading: ${e}`),this.commonObjs.resolve(t,e);break}let s=null;o.pdfBug&&globalThis.FontInspector?.enabled&&(s={registerFont(e,t){globalThis.FontInspector.fontAdded(e,t)}});const r=new _font_loader.FontFaceObject(a,{isEvalSupported:o.isEvalSupported,disableFontFace:o.disableFontFace,ignoreErrors:o.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:s});this.fontLoader.bind(r).catch((n=>e.sendWithPromise("FontFallback",{id:t}))).finally((()=>{!o.fontExtraProperties&&r.data&&(r.data=null),this.commonObjs.resolve(t,r)}));break;case"FontPath":case"Image":this.commonObjs.resolve(t,a);break;default:throw new Error(`Got unknown common object type ${n}`)}})),e.on("obj",(([e,t,n,a])=>{if(this.destroyed)return;const o=this.#a.get(t);if(!o.objs.has(e))switch(n){case"Image":o.objs.resolve(e,a);const t=8e6;if(a){let e;if(a.bitmap){const{bitmap:t,width:n,height:s}=a;e=n*s*4,o._bitmaps.add(t)}else e=a.data?.length||0;e>t&&(o.cleanupAfterRender=!0)}break;case"Pattern":o.objs.resolve(e,a);break;default:throw new Error(`Got unknown object type ${n}`)}})),e.on("DocProgress",(e=>{this.destroyed||t.onProgress?.({loaded:e.loaded,total:e.total})})),e.on("DocStats",(e=>{this.destroyed||(this.#n=Object.freeze({streamTypes:Object.freeze(e.streamTypes),fontTypes:Object.freeze(e.fontTypes)}))})),e.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),e.on("FetchBuiltInCMap",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.CMapReaderFactory?this.CMapReaderFactory.fetch(e):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.")))),e.on("FetchStandardFontData",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.StandardFontDataFactory?this.StandardFontDataFactory.fetch(e):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))))}_onUnsupportedFeature({featureId:e}){this.destroyed||this.loadingTask.onUnsupportedFeature?.(e)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));const t=e-1,n=this.#o.get(t);if(n)return n;const a=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then((e=>{if(this.destroyed)throw new Error("Transport destroyed");const n=new PDFPageProxy(t,e,this,this._params.ownerDocument,this._params.pdfBug);return this.#a.set(t,n),n}));return this.#o.set(t,a),a}getPageIndex(e){return"object"!=typeof e||null===e||!Number.isInteger(e.num)||e.num<0||!Number.isInteger(e.gen)||e.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen})}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}saveDocument(){return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:this._fullReader?.filename??null}).finally((()=>{this.annotationStorage.resetModified()}))}getFieldObjects(){return this._getFieldObjectsPromise||=this.messageHandler.sendWithPromise("GetFieldObjects",null)}hasJSActions(){return this._hasJSActionsPromise||=this.messageHandler.sendWithPromise("HasJSActions",null)}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!=typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getDocJSActions(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((e=>new _optional_content_config.OptionalContentConfig(e)))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return this.#s||=this.messageHandler.sendWithPromise("GetMetadata",null).then((e=>({info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null})))}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(e=!1){if(await this.messageHandler.sendWithPromise("Cleanup",null),!this.destroyed){for(const e of this.#a.values())if(!e.cleanup())throw new Error(`startCleanup: Page ${e.pageNumber} is currently rendering.`);this.commonObjs.clear(),e||this.fontLoader.clear(),this.#s=null,this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null}}get loadingParams(){const e=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch,enableXfa:e.enableXfa})}}class PDFObjects{#r=Object.create(null);#i(e){const t=this.#r[e];return t||(this.#r[e]={capability:(0,_util.createPromiseCapability)(),data:null})}get(e,t=null){if(t){const n=this.#i(e);return n.capability.promise.then((()=>t(n.data))),null}const n=this.#r[e];if(!n?.capability.settled)throw new Error(`Requesting object that isn't resolved yet ${e}.`);return n.data}has(e){return this.#r[e]?.capability.settled||!1}resolve(e,t=null){const n=this.#i(e);n.data=t,n.capability.resolve()}clear(){this.#r=Object.create(null)}}class RenderTask{#f=null;constructor(e){this.#f=e,this.onContinue=null}get promise(){return this.#f.capability.promise}cancel(){this.#f.cancel()}get separateAnnots(){const{separateAnnots:e}=this.#f.operatorList;if(!e)return!1;const{annotationCanvasMap:t}=this.#f;return e.form||e.canvas&&t?.size>0}}exports.RenderTask=RenderTask;class InternalRenderTask{static#c=new WeakSet;constructor({callback:e,params:t,objs:n,commonObjs:a,annotationCanvasMap:o,operatorList:s,pageIndex:r,canvasFactory:i,useRequestAnimationFrame:f=!1,pdfBug:c=!1,pageColors:l=null}){this.callback=e,this.params=t,this.objs=n,this.commonObjs=a,this.annotationCanvasMap=o,this.operatorListIdx=null,this.operatorList=s,this._pageIndex=r,this.canvasFactory=i,this._pdfBug=c,this.pageColors=l,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===f&&"undefined"!=typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(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=t.canvasContext.canvas}get completed(){return this.capability.promise.catch((function(){}))}initializeGraphics({transparency:e=!1,optionalContentConfig:t}){if(this.cancelled)return;if(this._canvas){if(InternalRenderTask.#c.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");InternalRenderTask.#c.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:n,viewport:a,transform:o,imageLayer:s,background:r}=this.params;this.gfx=new _canvas.CanvasGraphics(n,this.commonObjs,this.objs,this.canvasFactory,s,t,this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:o,viewport:a,transparency:e,background:r}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}cancel(e=null){this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&InternalRenderTask.#c.delete(this._canvas),this.callback(e||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas"))}operatorListChanged(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame((()=>{this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){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&&InternalRenderTask.#c.delete(this._canvas),this.callback())))}}const version="2.15.349";exports.version=version;const build="b8aa9c622";exports.build=build},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PrintAnnotationStorage=t.AnnotationStorage=void 0;var a=n(1),o=n(8),s=n(10);class r{constructor(){this._storage=new Map,this._modified=!1,this.onSetModified=null,this.onResetModified=null}getValue(e,t){const n=this._storage.get(e);return void 0===n?t:Object.assign(t,n)}getRawValue(e){return this._storage.get(e)}removeKey(e){this._storage.delete(e),0===this._storage.size&&this.resetModified()}setValue(e,t){const n=this._storage.get(e);let a=!1;if(void 0!==n)for(const[e,o]of Object.entries(t))n[e]!==o&&(a=!0,n[e]=o);else a=!0,this._storage.set(e,t);a&&this.#l()}has(e){return this._storage.has(e)}getAll(){return this._storage.size>0?(0,a.objectFromMap)(this._storage):null}get size(){return this._storage.size}#l(){this._modified||(this._modified=!0,"function"==typeof this.onSetModified&&this.onSetModified())}resetModified(){this._modified&&(this._modified=!1,"function"==typeof this.onResetModified&&this.onResetModified())}get print(){return new i(this)}get serializable(){if(0===this._storage.size)return null;const e=new Map;for(const[t,n]of this._storage){const a=n instanceof o.AnnotationEditor?n.serialize():n;a&&e.set(t,a)}return e}static getHash(e){if(!e)return"";const t=new s.MurmurHash3_64;for(const[n,a]of e)t.update(`${n}:${JSON.stringify(a)}`);return t.hexdigest()}}t.AnnotationStorage=r;class i extends r{#u=null;constructor(e){super(),this.#u=structuredClone(e.serializable)}get print(){(0,a.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#u}}t.PrintAnnotationStorage=i},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditor=void 0;var a=n(9),o=n(1);class s{#_=this.focusin.bind(this);#d=this.focusout.bind(this);#h=!1;#m=!1;#p=!1;#g=s._zIndex++;static _colorManager=new a.ColorManager;static _zIndex=1;constructor(e){this.constructor===s&&(0,o.unreachable)("Cannot initialize AnnotationEditor."),this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null;const[t,n]=this.parent.viewportBaseDimensions;this.x=e.x/t,this.y=e.y/n,this.rotation=this.parent.viewport.rotation,this.isAttachedToDOM=!1}static get _defaultLineColor(){return(0,o.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#g}focusin(e){this.#h?this.#h=!1:this.parent.setSelected(this)}focusout(e){this.isAttachedToDOM&&(e.relatedTarget?.closest(`#${this.id}`)||(e.preventDefault(),this.parent.isMultipleSelection||this.commitOrRemove()))}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.parent.addToAnnotationStorage(this)}dragstart(e){const t=this.parent.div.getBoundingClientRect();this.startX=e.clientX-t.x,this.startY=e.clientY-t.y,e.dataTransfer.setData("text/plain",this.id),e.dataTransfer.effectAllowed="move"}setAt(e,t,n,a){const[o,s]=this.parent.viewportBaseDimensions;[n,a]=this.screenToPageTranslation(n,a),this.x=(e+n)/o,this.y=(t+a)/s,this.div.style.left=100*this.x+"%",this.div.style.top=100*this.y+"%"}translate(e,t){const[n,a]=this.parent.viewportBaseDimensions;[e,t]=this.screenToPageTranslation(e,t),this.x+=e/n,this.y+=t/a,this.div.style.left=100*this.x+"%",this.div.style.top=100*this.y+"%"}screenToPageTranslation(e,t){const{rotation:n}=this.parent.viewport;switch(n){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}}setDims(e,t){const[n,a]=this.parent.viewportBaseDimensions;this.div.style.width=100*e/n+"%",this.div.style.height=100*t/a+"%"}getInitialTranslation(){return[0,0]}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",this.#_),this.div.addEventListener("focusout",this.#d);const[e,t]=this.getInitialTranslation();return this.translate(e,t),(0,a.bindEvents)(this,this.div,["dragstart","pointerdown"]),this.div}pointerdown(e){const t=a.KeyboardManager.platform.isMac;0!==e.button||e.ctrlKey&&t?e.preventDefault():(e.ctrlKey&&!t||e.shiftKey||e.metaKey&&t?this.parent.toggleSelected(this):this.parent.setSelected(this),this.#h=!0)}getRect(e,t){const[n,a]=this.parent.viewportBaseDimensions,[o,s]=this.parent.pageDimensions,r=o*e/n,i=s*t/a,f=this.x*o,c=this.y*s,l=this.width*o,u=this.height*s;switch(this.rotation){case 0:return[f+r,s-c-i-u,f+r+l,s-c-i];case 90:return[f+i,s-c+r,f+i+u,s-c+r+l];case 180:return[f-r-l,s-c+i,f-r,s-c+i+u];case 270:return[f-i-u,s-c-r-l,f-i,s-c-r];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,t){const[n,a,o,s]=e,r=o-n,i=s-a;switch(this.rotation){case 0:return[n,t-s,r,i];case 90:return[n,t-a,i,r];case 180:return[o,t-a,r,i];case 270:return[o,t-s,i,r];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){this.#p=!0}disableEditMode(){this.#p=!1}isInEditMode(){return this.#p}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){this.div?.addEventListener("focusin",this.#_)}serialize(){(0,o.unreachable)("An editor must be serializable")}static deserialize(e,t){const n=new this.prototype.constructor({parent:t,id:t.getNextId()});n.rotation=e.rotation;const[a,o]=t.pageDimensions,[s,r,i,f]=n.getRectInCurrentCoords(e.rect,o);return n.x=s/a,n.y=r/o,n.width=i/a,n.height=f/o,n}remove(){this.div.removeEventListener("focusin",this.#_),this.div.removeEventListener("focusout",this.#d),this.isEmpty()||this.commit(),this.parent.remove(this)}select(){this.div?.classList.add("selectedEditor")}unselect(){this.div?.classList.remove("selectedEditor")}updateParams(e,t){}disableEditing(){}enableEditing(){}getIdForTextLayer(){return this.id}get propertiesToUpdate(){return{}}get contentDiv(){return this.div}get isEditing(){return this.#m}set isEditing(e){this.#m=e,e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null)}}t.AnnotationEditor=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardManager=t.CommandManager=t.ColorManager=t.AnnotationEditorUIManager=void 0,t.bindEvents=function(e,t,n){for(const a of n)t.addEventListener(a,e[a].bind(e))},t.opacityToHex=function(e){return Math.round(Math.min(255,Math.max(1,255*e))).toString(16).padStart(2,"0")};var a=n(1),o=n(4);class s{#b=0;getId(){return`${a.AnnotationEditorPrefix}${this.#b++}`}}class r{#y=[];#v=!1;#w;#k=-1;constructor(e=128){this.#w=e}add({cmd:e,undo:t,mustExec:n,type:a=NaN,overwriteIfSameType:o=!1,keepUndo:s=!1}){if(n&&e(),this.#v)return;const r={cmd:e,undo:t,type:a};if(-1===this.#k)return this.#y.length>0&&(this.#y.length=0),this.#k=0,void this.#y.push(r);if(o&&this.#y[this.#k].type===a)return s&&(r.undo=this.#y[this.#k].undo),void(this.#y[this.#k]=r);const i=this.#k+1;i===this.#w?this.#y.splice(0,1):(this.#k=i,i<this.#y.length&&this.#y.splice(i)),this.#y.push(r)}undo(){-1!==this.#k&&(this.#v=!0,this.#y[this.#k].undo(),this.#v=!1,this.#k-=1)}redo(){this.#k<this.#y.length-1&&(this.#k+=1,this.#v=!0,this.#y[this.#k].cmd(),this.#v=!1)}hasSomethingToUndo(){return-1!==this.#k}hasSomethingToRedo(){return this.#k<this.#y.length-1}destroy(){this.#y=null}}t.CommandManager=r;class i{constructor(e){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const t=i.platform.isMac;for(const[n,a]of e)for(const e of n){const n=e.startsWith("mac+");t&&n?(this.callbacks.set(e.slice(4),a),this.allKeys.add(e.split("+").at(-1))):t||n||(this.callbacks.set(e,a),this.allKeys.add(e.split("+").at(-1)))}}static get platform(){const e="undefined"!=typeof navigator?navigator.platform:"";return(0,a.shadow)(this,"platform",{isWin:e.includes("Win"),isMac:e.includes("Mac")})}#E(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);const t=this.buffer.join("+");return this.buffer.length=0,t}exec(e,t){if(!this.allKeys.has(t.key))return;const n=this.callbacks.get(this.#E(t));n&&(n.bind(e)(),t.stopPropagation(),t.preventDefault())}}t.KeyboardManager=i;class f{#S=null;copy(e){e&&(Array.isArray(e)?this.#S=e.map((e=>e.serialize())):this.#S=[e.serialize()],this.#S=this.#S.filter((e=>!!e)),0===this.#S.length&&(this.#S=null))}paste(){return this.#S}isEmpty(){return null===this.#S}destroy(){this.#S=null}}class c{static _colorsMapping=new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]);get _colors(){const e=new Map([["CanvasText",null],["Canvas",null]]);return(0,o.getColorValues)(e),(0,a.shadow)(this,"_colors",e)}convert(e){const t=(0,o.getRGB)(e);if(!window.matchMedia("(forced-colors: active)").matches)return t;for(const[e,n]of this._colors)if(n.every(((e,n)=>e===t[n])))return c._colorsMapping.get(e);return t}getHexCode(e){const t=this._colors.get(e);return t?a.Util.makeHexColor(...t):e}}t.ColorManager=c;class l{#C=null;#A=new Map;#x=new Map;#P=new f;#T=new r;#M=0;#R=null;#L=null;#I=new s;#O=!1;#D=a.AnnotationEditorType.NONE;#F=new Set;#N=this.keydown.bind(this);#j=this.onEditingAction.bind(this);#U=this.onPageChanging.bind(this);#H=this.onTextLayerRendered.bind(this);#$={isEditing:!1,isEmpty:!0,hasEmptyClipboard:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1};#B=null;static _keyboardManager=new i([[["ctrl+a","mac+meta+a"],l.prototype.selectAll],[["ctrl+c","mac+meta+c"],l.prototype.copy],[["ctrl+v","mac+meta+v"],l.prototype.paste],[["ctrl+x","mac+meta+x"],l.prototype.cut],[["ctrl+z","mac+meta+z"],l.prototype.undo],[["ctrl+y","ctrl+shift+Z","mac+meta+shift+Z"],l.prototype.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete"],l.prototype.delete],[["Escape","mac+Escape"],l.prototype.unselectAll]]);constructor(e,t){this.#B=e,this.#L=t,this.#L._on("editingaction",this.#j),this.#L._on("pagechanging",this.#U),this.#L._on("textlayerrendered",this.#H)}destroy(){this.#V(),this.#L._off("editingaction",this.#j),this.#L._off("pagechanging",this.#U),this.#L._off("textlayerrendered",this.#H);for(const e of this.#x.values())e.destroy();this.#x.clear(),this.#A.clear(),this.#C=null,this.#F.clear(),this.#P.destroy(),this.#T.destroy()}onPageChanging({pageNumber:e}){this.#M=e-1}onTextLayerRendered({pageNumber:e}){const t=e-1;this.#x.get(t)?.onTextLayerRendered()}focusMainContainer(){this.#B.focus()}#q(){this.#B.addEventListener("keydown",this.#N)}#V(){this.#B.removeEventListener("keydown",this.#N)}keydown(e){this.getActive()?.shouldGetKeyboardEvents()||l._keyboardManager.exec(this,e)}onEditingAction(e){["undo","redo","cut","copy","paste","delete","selectAll"].includes(e.name)&&this[e.name]()}#W(e){Object.entries(e).some((([e,t])=>this.#$[e]!==t))&&this.#L.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#$,e)})}#z(e){this.#L.dispatch("annotationeditorparamschanged",{source:this,details:e})}setEditingState(e){e?(this.#q(),this.#W({isEditing:this.#D!==a.AnnotationEditorType.NONE,isEmpty:this.#G(),hasSomethingToUndo:this.#T.hasSomethingToUndo(),hasSomethingToRedo:this.#T.hasSomethingToRedo(),hasSelectedEditor:!1,hasEmptyClipboard:this.#P.isEmpty()})):(this.#V(),this.#W({isEditing:!1}))}registerEditorTypes(e){this.#R=e;for(const e of this.#R)this.#z(e.defaultPropertiesToUpdate)}getId(){return this.#I.getId()}addLayer(e){this.#x.set(e.pageIndex,e),this.#O?e.enable():e.disable()}removeLayer(e){this.#x.delete(e.pageIndex)}updateMode(e){if(this.#D=e,e===a.AnnotationEditorType.NONE)this.setEditingState(!1),this.#Q();else{this.setEditingState(!0),this.#X();for(const t of this.#x.values())t.updateMode(e)}}updateToolbar(e){e!==this.#D&&this.#L.dispatch("switchannotationeditormode",{source:this,mode:e})}updateParams(e,t){for(const n of this.#F)n.updateParams(e,t);for(const n of this.#R)n.updateDefaultParams(e,t)}#X(){if(!this.#O){this.#O=!0;for(const e of this.#x.values())e.enable()}}#Q(){if(this.unselectAll(),this.#O){this.#O=!1;for(const e of this.#x.values())e.disable()}}getEditors(e){const t=[];for(const n of this.#A.values())n.pageIndex===e&&t.push(n);return t}getEditor(e){return this.#A.get(e)}addEditor(e){this.#A.set(e.id,e)}removeEditor(e){this.#A.delete(e.id),this.unselect(e)}#K(e){const t=this.#x.get(e.pageIndex);t?t.addOrRebuild(e):this.addEditor(e)}setActiveEditor(e){this.#C!==e&&(this.#C=e,e&&this.#z(e.propertiesToUpdate))}toggleSelected(e){if(this.#F.has(e))return this.#F.delete(e),e.unselect(),void this.#W({hasSelectedEditor:this.hasSelection});this.#F.add(e),e.select(),this.#z(e.propertiesToUpdate),this.#W({hasSelectedEditor:!0})}setSelected(e){for(const t of this.#F)t!==e&&t.unselect();this.#F.clear(),this.#F.add(e),e.select(),this.#z(e.propertiesToUpdate),this.#W({hasSelectedEditor:!0})}isSelected(e){return this.#F.has(e)}unselect(e){e.unselect(),this.#F.delete(e),this.#W({hasSelectedEditor:this.hasSelection})}get hasSelection(){return 0!==this.#F.size}undo(){this.#T.undo(),this.#W({hasSomethingToUndo:this.#T.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#G()})}redo(){this.#T.redo(),this.#W({hasSomethingToUndo:!0,hasSomethingToRedo:this.#T.hasSomethingToRedo(),isEmpty:this.#G()})}addCommands(e){this.#T.add(e),this.#W({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#G()})}#G(){if(0===this.#A.size)return!0;if(1===this.#A.size)for(const e of this.#A.values())return e.isEmpty();return!1}delete(){if(this.#C&&this.#C.commitOrRemove(),!this.hasSelection)return;const e=[...this.#F];this.addCommands({cmd:()=>{for(const t of e)t.remove()},undo:()=>{for(const t of e)this.#K(t)},mustExec:!0})}copy(){if(this.#C&&this.#C.commitOrRemove(),this.hasSelection){const e=[];for(const t of this.#F)t.isEmpty()||e.push(t);if(0===e.length)return;this.#P.copy(e),this.#W({hasEmptyClipboard:!1})}}cut(){this.copy(),this.delete()}paste(){if(this.#P.isEmpty())return;this.unselectAll();const e=this.#x.get(this.#M),t=this.#P.paste().map((t=>e.deserialize(t)));this.addCommands({cmd:()=>{for(const e of t)this.#K(e);this.#Y(t)},undo:()=>{for(const e of t)e.remove()},mustExec:!0})}#Y(e){this.#F.clear();for(const t of e)t.isEmpty()||(this.#F.add(t),t.select());this.#W({hasSelectedEditor:!0})}selectAll(){for(const e of this.#F)e.commit();this.#Y(this.#A.values())}unselectAll(){if(this.#C)this.#C.commitOrRemove();else if(0!==this.#Y.size){for(const e of this.#F)e.unselect();this.#F.clear(),this.#W({hasSelectedEditor:!1})}}isActive(e){return this.#C===e}getActive(){return this.#C}getMode(){return this.#D}}t.AnnotationEditorUIManager=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var a=n(1);const o=3285377520,s=4294901760,r=65535;t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:o,this.h2=e?4294967295&e:o}update(e){let t,n;if("string"==typeof e){t=new Uint8Array(2*e.length),n=0;for(let a=0,o=e.length;a<o;a++){const o=e.charCodeAt(a);o<=255?t[n++]=o:(t[n++]=o>>>8,t[n++]=255&o)}}else{if(!(0,a.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");t=e.slice(),n=t.byteLength}const o=n>>2,i=n-4*o,f=new Uint32Array(t.buffer,0,o);let c=0,l=0,u=this.h1,_=this.h2;const d=3432918353,h=461845907,m=11601,p=13715;for(let e=0;e<o;e++)1&e?(c=f[e],c=c*d&s|c*m&r,c=c<<15|c>>>17,c=c*h&s|c*p&r,u^=c,u=u<<13|u>>>19,u=5*u+3864292196):(l=f[e],l=l*d&s|l*m&r,l=l<<15|l>>>17,l=l*h&s|l*p&r,_^=l,_=_<<13|_>>>19,_=5*_+3864292196);switch(c=0,i){case 3:c^=t[4*o+2]<<16;case 2:c^=t[4*o+1]<<8;case 1:c^=t[4*o],c=c*d&s|c*m&r,c=c<<15|c>>>17,c=c*h&s|c*p&r,1&o?u^=c:_^=c}this.h1=u,this.h2=_}hexdigest(){let e=this.h1,t=this.h2;e^=t>>>1,e=3981806797*e&s|36045*e&r,t=4283543511*t&s|(2950163797*(t<<16|e>>>16)&s)>>>16,e^=t>>>1,e=444984403*e&s|60499*e&r,t=3301882366*t&s|(3120437893*(t<<16|e>>>16)&s)>>>16,e^=t>>>1;const n=(e>>>0).toString(16),a=(t>>>0).toString(16);return n.padStart(8,"0")+a.padStart(8,"0")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var a=n(1);class o{constructor({docId:e,onUnsupportedFeature:t,ownerDocument:n=globalThis.document,styleElement:s=null}){this.constructor===o&&(0,a.unreachable)("Cannot initialize BaseFontLoader."),this.docId=e,this._onUnsupportedFeature=t,this._document=n,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(e){this.nativeFontFaces.push(e),this._document.fonts.add(e)}insertRule(e){let t=this.styleElement;t||(t=this.styleElement=this._document.createElement("style"),t.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,this._document.documentElement.getElementsByTagName("head")[0].append(t));const n=t.sheet;n.insertRule(e,n.cssRules.length)}clear(){for(const e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async bind(e){if(e.attached||e.missingFile)return;if(e.attached=!0,this.isFontLoadingAPISupported){const t=e.createNativeFontFace();if(t){this.addNativeFontFace(t);try{await t.loaded}catch(n){throw this._onUnsupportedFeature({featureId:a.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,a.warn)(`Failed to load font '${t.family}': '${n}'.`),e.disableFontFace=!0,n}}return}const t=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;await new Promise((n=>{const a=this._queueLoadingCallback(n);this._prepareFontLoadEvent([t],[e],a)}))}}_queueLoadingCallback(e){(0,a.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){const e=!!this._document?.fonts;return(0,a.shadow)(this,"isFontLoadingAPISupported",e)}get isSyncFontLoadingSupported(){(0,a.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,a.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(e,t,n){(0,a.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let s;t.FontLoader=s,t.FontLoader=s=class extends o{constructor(e){super(e),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let e=!1;return("undefined"==typeof navigator||/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent)?.[1]>=14)&&(e=!0),(0,a.shadow)(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){const t=this.loadingContext,n={id:"pdfjs-font-loading-"+t.nextRequestId++,done:!1,complete:function(){for((0,a.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;t.requests.length>0&&t.requests[0].done;){const e=t.requests.shift();setTimeout(e.callback,0)}},callback:e};return t.requests.push(n),n}get _loadTestFont(){return(0,a.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(e,t,n){function o(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function s(e,t,n,a){return e.substring(0,t)+a+e.substring(t+n)}let r,i;const f=this._document.createElement("canvas");f.width=1,f.height=1;const c=f.getContext("2d");let l=0;const u=`lt${Date.now()}${this.loadTestFontId++}`;let _=this._loadTestFont;_=s(_,976,u.length,u);const d=1482184792;let h=o(_,16);for(r=0,i=u.length-3;r<i;r+=4)h=h-d+o(u,r)|0;r<u.length&&(h=h-d+o(u+"XXX",r)|0),_=s(_,16,4,(0,a.string32)(h));const m=`@font-face {font-family:"${u}";src:url(data:font/opentype;base64,${btoa(_)});}`;this.insertRule(m);const p=[];for(const e of t)p.push(e.loadedName);p.push(u);const g=this._document.createElement("div");g.style.visibility="hidden",g.style.width=g.style.height="10px",g.style.position="absolute",g.style.top=g.style.left="0px";for(const e of p){const t=this._document.createElement("span");t.textContent="Hi",t.style.fontFamily=e,g.append(t)}this._document.body.append(g),function e(t,n){if(l++,l>30)return(0,a.warn)("Load test font never loaded."),void n();c.font="30px "+t,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0?n():setTimeout(e.bind(null,t,n))}(u,(()=>{g.remove(),n.complete()}))}},t.FontFaceObject=class{constructor(e,{isEvalSupported:t=!0,disableFontFace:n=!1,ignoreErrors:a=!1,onUnsupportedFeature:o,fontRegistry:s=null}){this.compiledGlyphs=Object.create(null);for(const t in e)this[t]=e[t];this.isEvalSupported=!1!==t,this.disableFontFace=!0===n,this.ignoreErrors=!0===a,this._onUnsupportedFeature=o,this.fontRegistry=s}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let e;if(this.cssFontInfo){const t={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(t.style=`oblique ${this.cssFontInfo.italicAngle}deg`),e=new FontFace(this.cssFontInfo.fontFamily,this.data,t)}else e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const e=(0,a.bytesToString)(this.data),t=`url(data:${this.mimetype};base64,${btoa(e)});`;let n;if(this.cssFontInfo){let e=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(e+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),n=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${e}src:${t}}`}else n=`@font-face {font-family:"${this.loadedName}";src:${t}}`;return this.fontRegistry&&this.fontRegistry.registerFont(this,t),n}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];let n;try{n=e.get(this.loadedName+"_path_"+t)}catch(e){if(!this.ignoreErrors)throw e;return this._onUnsupportedFeature({featureId:a.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,a.warn)(`getPathGenerator - ignoring character: "${e}".`),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&a.FeatureTest.isEvalSupported){const e=[];for(const t of n){const n=void 0!==t.args?t.args.join(","):"";e.push("c.",t.cmd,"(",n,");\n")}return this.compiledGlyphs[t]=new Function("c","size",e.join(""))}return this.compiledGlyphs[t]=function(e,t){for(const a of n)"scale"===a.cmd&&(a.args=[t,-t]),e[a.cmd].apply(e,a.args)}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var a=n(1),o=n(4),s=n(13),r=n(14),i=n(3);const f=4096,c=16;function l(e){if(e._transformStack&&(e._transformStack=[]),!e.mozCurrentTransform){e._originalSave=e.save,e._originalRestore=e.restore,e._originalRotate=e.rotate,e._originalScale=e.scale,e._originalTranslate=e.translate,e._originalTransform=e.transform,e._originalSetTransform=e.setTransform,e._originalResetTransform=e.resetTransform,e._transformMatrix=e._transformMatrix||[1,0,0,1,0,0],e._transformStack=[];try{const t=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"lineWidth");e._setLineWidth=t.set,e._getLineWidth=t.get,Object.defineProperty(e,"lineWidth",{set:function(e){this._setLineWidth(1.000001*e)},get:function(){return this._getLineWidth()}})}catch(e){}Object.defineProperty(e,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(e,"mozCurrentTransformInverse",{get:function(){const[e,t,n,a,o,s]=this._transformMatrix,r=e*a-t*n,i=t*n-e*a;return[a/r,t/i,n/i,e/r,(a*o-n*s)/i,(t*o-e*s)/r]}}),e.save=function(){const e=this._transformMatrix;this._transformStack.push(e),this._transformMatrix=e.slice(0,6),this._originalSave()},e.restore=function(){0===this._transformStack.length&&(0,a.warn)("Tried to restore a ctx when the stack was already empty.");const e=this._transformStack.pop();e&&(this._transformMatrix=e,this._originalRestore())},e.translate=function(e,t){const n=this._transformMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5],this._originalTranslate(e,t)},e.scale=function(e,t){const n=this._transformMatrix;n[0]*=e,n[1]*=e,n[2]*=t,n[3]*=t,this._originalScale(e,t)},e.transform=function(t,n,a,o,s,r){const i=this._transformMatrix;this._transformMatrix=[i[0]*t+i[2]*n,i[1]*t+i[3]*n,i[0]*a+i[2]*o,i[1]*a+i[3]*o,i[0]*s+i[2]*r+i[4],i[1]*s+i[3]*r+i[5]],e._originalTransform(t,n,a,o,s,r)},e.setTransform=function(t,n,a,o,s,r){this._transformMatrix=[t,n,a,o,s,r],e._originalSetTransform(t,n,a,o,s,r)},e.resetTransform=function(){this._transformMatrix=[1,0,0,1,0,0],e._originalResetTransform()},e.rotate=function(e){const t=Math.cos(e),n=Math.sin(e),a=this._transformMatrix;this._transformMatrix=[a[0]*t+a[2]*n,a[1]*t+a[3]*n,a[0]*-n+a[2]*t,a[1]*-n+a[3]*t,a[4],a[5]],this._originalRotate(e)}}}class u{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,t,n,a){let o;return void 0!==this.cache[e]?(o=this.cache[e],this.canvasFactory.reset(o,t,n),o.context.setTransform(1,0,0,1,0,0)):(o=this.canvasFactory.create(t,n),this.cache[e]=o),a&&l(o.context),o}delete(e){delete this.cache[e]}clear(){for(const e in this.cache){const t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}}function _(e,t,n,a,o,s,r,i,f,c){const[l,u,_,d,h,m]=e.mozCurrentTransform;if(0===u&&0===_){const p=r*l+h,g=Math.round(p),b=i*d+m,y=Math.round(b),v=(r+f)*l+h,w=Math.abs(Math.round(v)-g)||1,k=(i+c)*d+m,E=Math.abs(Math.round(k)-y)||1;return e.setTransform(Math.sign(l),0,0,Math.sign(d),g,y),e.drawImage(t,n,a,o,s,0,0,w,E),e.setTransform(l,u,_,d,h,m),[w,E]}if(0===l&&0===d){const p=i*_+h,g=Math.round(p),b=r*u+m,y=Math.round(b),v=(i+c)*_+h,w=Math.abs(Math.round(v)-g)||1,k=(r+f)*u+m,E=Math.abs(Math.round(k)-y)||1;return e.setTransform(0,Math.sign(u),Math.sign(_),0,g,y),e.drawImage(t,n,a,o,s,0,0,E,w),e.setTransform(l,u,_,d,h,m),[E,w]}return e.drawImage(t,n,a,o,s,r,i,f,c),[Math.hypot(l,u)*f,Math.hypot(_,d)*c]}class d{constructor(e,t){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=a.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=a.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=a.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps=null,this.startNewPathAndClipBox([0,0,e,t])}clone(){const e=Object.create(this);return e.clipBox=this.clipBox.slice(),e}setCurrentPoint(e,t){this.x=e,this.y=t}updatePathMinMax(e,t,n){[t,n]=a.Util.applyTransform([t,n],e),this.minX=Math.min(this.minX,t),this.minY=Math.min(this.minY,n),this.maxX=Math.max(this.maxX,t),this.maxY=Math.max(this.maxY,n)}updateRectMinMax(e,t){const n=a.Util.applyTransform(t,e),o=a.Util.applyTransform(t.slice(2),e);this.minX=Math.min(this.minX,n[0],o[0]),this.minY=Math.min(this.minY,n[1],o[1]),this.maxX=Math.max(this.maxX,n[0],o[0]),this.maxY=Math.max(this.maxY,n[1],o[1])}updateScalingPathMinMax(e,t){a.Util.scaleMinMax(e,t),this.minX=Math.min(this.minX,t[0]),this.maxX=Math.max(this.maxX,t[1]),this.minY=Math.min(this.minY,t[2]),this.maxY=Math.max(this.maxY,t[3])}updateCurvePathMinMax(e,t,n,o,s,r,i,f,c,l){const u=a.Util.bezierBoundingBox(t,n,o,s,r,i,f,c);if(l)return l[0]=Math.min(l[0],u[0],u[2]),l[1]=Math.max(l[1],u[0],u[2]),l[2]=Math.min(l[2],u[1],u[3]),void(l[3]=Math.max(l[3],u[1],u[3]));this.updateRectMinMax(e,u)}getPathBoundingBox(e=s.PathType.FILL,t=null){const n=[this.minX,this.minY,this.maxX,this.maxY];if(e===s.PathType.STROKE){t||(0,a.unreachable)("Stroke bounding box must include transform.");const e=a.Util.singularValueDecompose2dScale(t),o=e[0]*this.lineWidth/2,s=e[1]*this.lineWidth/2;n[0]-=o,n[1]-=s,n[2]+=o,n[3]+=s}return n}updateClipFromPath(){const e=a.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(e){this.clipBox=e,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(e=s.PathType.FILL,t=null){return a.Util.intersect(this.clipBox,this.getPathBoundingBox(e,t))}}function h(e,t,n=null){if("undefined"!=typeof ImageData&&t instanceof ImageData)return void e.putImageData(t,0,0);const o=t.height,s=t.width,r=o%c,i=(o-r)/c,f=0===r?i:i+1,l=e.createImageData(s,c);let u,_=0;const d=t.data,h=l.data;let m,p,g,b,y,v,w,k;if(n)switch(n.length){case 1:y=n[0],v=n[0],w=n[0],k=n[0];break;case 4:y=n[0],v=n[1],w=n[2],k=n[3]}if(t.kind===a.ImageKind.GRAYSCALE_1BPP){const t=d.byteLength,n=new Uint32Array(h.buffer,0,h.byteLength>>2),o=n.length,b=s+7>>3;let y=4294967295,v=a.FeatureTest.isLittleEndian?4278190080:255;for(k&&255===k[0]&&0===k[255]&&([y,v]=[v,y]),m=0;m<f;m++){for(g=m<i?c:r,u=0,p=0;p<g;p++){const e=t-_;let a=0;const o=e>b?s:8*e-7,r=-8&o;let i=0,f=0;for(;a<r;a+=8)f=d[_++],n[u++]=128&f?y:v,n[u++]=64&f?y:v,n[u++]=32&f?y:v,n[u++]=16&f?y:v,n[u++]=8&f?y:v,n[u++]=4&f?y:v,n[u++]=2&f?y:v,n[u++]=1&f?y:v;for(;a<o;a++)0===i&&(f=d[_++],i=128),n[u++]=f&i?y:v,i>>=1}for(;u<o;)n[u++]=0;e.putImageData(l,0,m*c)}}else if(t.kind===a.ImageKind.RGBA_32BPP){const t=!!(y||v||w);for(p=0,b=s*c*4,m=0;m<i;m++){if(h.set(d.subarray(_,_+b)),_+=b,t)for(let e=0;e<b;e+=4)y&&(h[e+0]=y[h[e+0]]),v&&(h[e+1]=v[h[e+1]]),w&&(h[e+2]=w[h[e+2]]);e.putImageData(l,0,p),p+=c}if(m<f){if(b=s*r*4,h.set(d.subarray(_,_+b)),t)for(let e=0;e<b;e+=4)y&&(h[e+0]=y[h[e+0]]),v&&(h[e+1]=v[h[e+1]]),w&&(h[e+2]=w[h[e+2]]);e.putImageData(l,0,p)}}else{if(t.kind!==a.ImageKind.RGB_24BPP)throw new Error(`bad image kind: ${t.kind}`);{const t=!!(y||v||w);for(g=c,b=s*g,m=0;m<f;m++){for(m>=i&&(g=r,b=s*g),u=0,p=b;p--;)h[u++]=d[_++],h[u++]=d[_++],h[u++]=d[_++],h[u++]=255;if(t)for(let e=0;e<u;e+=4)y&&(h[e+0]=y[h[e+0]]),v&&(h[e+1]=v[h[e+1]]),w&&(h[e+2]=w[h[e+2]]);e.putImageData(l,0,m*c)}}}}function m(e,t){if(t.bitmap)return void e.drawImage(t.bitmap,0,0);const n=t.height,a=t.width,o=n%c,s=(n-o)/c,i=0===o?s:s+1,f=e.createImageData(a,c);let l=0;const u=t.data,_=f.data;for(let t=0;t<i;t++){const n=t<s?c:o;({srcPos:l}=(0,r.applyMaskImageData)({src:u,srcPos:l,dest:_,width:a,height:n})),e.putImageData(f,0,t*c)}}function p(e,t){const n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"];for(let a=0,o=n.length;a<o;a++){const o=n[a];void 0!==e[o]&&(t[o]=e[o])}void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function g(e,t){e.strokeStyle=e.fillStyle=t||"#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0)}function b(e,t,n,a){const o=e.length;for(let s=3;s<o;s+=4){const o=e[s];if(0===o)e[s-3]=t,e[s-2]=n,e[s-1]=a;else if(o<255){const r=255-o;e[s-3]=e[s-3]*o+t*r>>8,e[s-2]=e[s-2]*o+n*r>>8,e[s-1]=e[s-1]*o+a*r>>8}}}function y(e,t,n){const a=e.length;for(let o=3;o<a;o+=4){const a=n?n[e[o]]:e[o];t[o]=t[o]*a*.00392156862745098|0}}function v(e,t,n){const a=e.length;for(let o=3;o<a;o+=4){const a=77*e[o-3]+152*e[o-2]+28*e[o-1];t[o]=n?t[o]*n[a>>8]>>8:t[o]*a>>16}}function w(e,t,n,a){const o=a[0],s=a[1],r=a[2]-o,i=a[3]-s;0!==r&&0!==i&&(function(e,t,n,a,o,s,r,i,f,c,l){const u=!!s,_=u?s[0]:0,d=u?s[1]:0,h=u?s[2]:0;let m;m="Luminosity"===o?v:y;const p=Math.min(a,Math.ceil(1048576/n));for(let o=0;o<a;o+=p){const s=Math.min(p,a-o),g=e.getImageData(i-c,o+(f-l),n,s),y=t.getImageData(i,o+f,n,s);u&&b(g.data,_,d,h),m(g.data,y.data,r),t.putImageData(y,i,o+f)}}(t.context,n,r,i,t.subtype,t.backdrop,t.transferMap,o,s,t.offsetX,t.offsetY),e.save(),e.globalAlpha=1,e.globalCompositeOperation="source-over",e.setTransform(1,0,0,1,0,0),e.drawImage(n.canvas,0,0),e.restore())}function k(e,t){const n=a.Util.singularValueDecompose2dScale(e);n[0]=Math.fround(n[0]),n[1]=Math.fround(n[1]);const s=Math.fround((globalThis.devicePixelRatio||1)*o.PixelsPerInch.PDF_TO_CSS_UNITS);return void 0!==t?t:n[0]<=s||n[1]<=s}const E=["butt","round","square"],S=["miter","round","bevel"],C={},A={};class x{constructor(e,t,n,a,o,s,r,i){this.ctx=e,this.current=new d(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=n,this.canvasFactory=a,this.imageLayer=o,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=s,this.cachedCanvases=new u(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=r,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.backgroundColor=i?.background||null,this.foregroundColor=i?.foreground||null,e&&l(e),this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(e,t=null){return"string"==typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}beginDrawing({transform:e,viewport:t,transparency:n=!1,background:a=null}){const s=this.ctx.canvas.width,r=this.ctx.canvas.height,i=a||"#ffffff";if(this.ctx.save(),this.foregroundColor&&this.backgroundColor){this.ctx.fillStyle=this.foregroundColor;const e=this.foregroundColor=this.ctx.fillStyle;this.ctx.fillStyle=this.backgroundColor;const t=this.backgroundColor=this.ctx.fillStyle;let n=!0,a=i;if(this.ctx.fillStyle=i,a=this.ctx.fillStyle,n="string"==typeof a&&/^#[0-9A-Fa-f]{6}$/.test(a),"#000000"===e&&"#ffffff"===t||e===t||!n)this.foregroundColor=this.backgroundColor=null;else{const[n,s,r]=(0,o.getRGB)(a),i=e=>(e/=255)<=.03928?e/12.92:((e+.055)/1.055)**2.4,f=Math.round(.2126*i(n)+.7152*i(s)+.0722*i(r));this.selectColor=(n,a,o)=>{const s=.2126*i(n)+.7152*i(a)+.0722*i(o);return Math.round(s)===f?t:e}}}if(this.ctx.fillStyle=this.backgroundColor||i,this.ctx.fillRect(0,0,s,r),this.ctx.restore(),n){const e=this.cachedCanvases.getCanvas("transparent",s,r,!0);this.compositeCtx=this.ctx,this.transparentCanvas=e.canvas,this.ctx=e.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),g(this.ctx,this.foregroundColor),e&&(this.ctx.transform.apply(this.ctx,e),this.outputScaleX=e[0],this.outputScaleY=e[0]),this.ctx.transform.apply(this.ctx,t.transform),this.viewportScale=t.scale,this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()}executeOperatorList(e,t,n,o){const s=e.argsArray,r=e.fnArray;let i=t||0;const f=s.length;if(f===i)return i;const c=f-i>10&&"function"==typeof n,l=c?Date.now()+15:0;let u=0;const _=this.commonObjs,d=this.objs;let h;for(;;){if(void 0!==o&&i===o.nextBreakPoint)return o.breakIt(i,n),i;if(h=r[i],h!==a.OPS.dependency)this[h].apply(this,s[i]);else for(const e of s[i]){const t=e.startsWith("g_")?_:d;if(!t.has(e))return t.get(e,n),i}if(i++,i===f)return i;if(c&&++u>10){if(Date.now()>l)return n(),i;u=0}}}#J(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#J(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const e of this._cachedBitmapsMap.values()){for(const t of e.values())"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement&&(t.width=t.height=0);e.clear()}this._cachedBitmapsMap.clear(),this.imageLayer&&this.imageLayer.endLayout()}_scaleImage(e,t){const n=e.width,a=e.height;let o,s,r=Math.max(Math.hypot(t[0],t[1]),1),i=Math.max(Math.hypot(t[2],t[3]),1),f=n,c=a,l="prescale1";for(;r>2&&f>1||i>2&&c>1;){let t=f,n=c;r>2&&f>1&&(t=Math.ceil(f/2),r/=f/t),i>2&&c>1&&(n=Math.ceil(c/2),i/=c/n),o=this.cachedCanvases.getCanvas(l,t,n,!1),s=o.context,s.clearRect(0,0,t,n),s.drawImage(e,0,0,f,c,0,0,t,n),e=o.canvas,f=t,c=n,l="prescale1"===l?"prescale2":"prescale1"}return{img:e,paintWidth:f,paintHeight:c}}_createMaskCanvas(e){const t=this.ctx,{width:n,height:o}=e,r=this.current.fillColor,i=this.current.patternFill,f=t.mozCurrentTransform;let c,l,u,d;if((e.bitmap||e.data)&&e.count>1){const t=e.bitmap||e.data.buffer,n=f.slice(0,4);l=JSON.stringify(i?n:[n,r]),c=this._cachedBitmapsMap.get(t),c||(c=new Map,this._cachedBitmapsMap.set(t,c));const a=c.get(l);if(a&&!i)return{canvas:a,offsetX:Math.round(Math.min(f[0],f[2])+f[4]),offsetY:Math.round(Math.min(f[1],f[3])+f[5])};u=a}u||(d=this.cachedCanvases.getCanvas("maskCanvas",n,o,!1),m(d.context,e));let h=a.Util.transform(f,[1/n,0,0,-1/o,0,0]);h=a.Util.transform(h,[1,0,0,1,0,-o]);const p=a.Util.applyTransform([0,0],h),g=a.Util.applyTransform([n,o],h),b=a.Util.normalizeRect([p[0],p[1],g[0],g[1]]),y=Math.round(b[2]-b[0])||1,v=Math.round(b[3]-b[1])||1,w=this.cachedCanvases.getCanvas("fillCanvas",y,v,!0),E=w.context,S=Math.min(p[0],g[0]),C=Math.min(p[1],g[1]);E.translate(-S,-C),E.transform.apply(E,h),u||(u=this._scaleImage(d.canvas,E.mozCurrentTransformInverse),u=u.img,c&&i&&c.set(l,u)),E.imageSmoothingEnabled=k(E.mozCurrentTransform,e.interpolate),_(E,u,0,0,u.width,u.height,0,0,n,o),E.globalCompositeOperation="source-in";const A=a.Util.transform(E.mozCurrentTransformInverse,[1,0,0,1,-S,-C]);return E.fillStyle=i?r.getPattern(t,this,A,s.PathType.FILL):r,E.fillRect(0,0,n,o),c&&!i&&(this.cachedCanvases.delete("fillCanvas"),c.set(l,w.canvas)),{canvas:w.canvas,offsetX:Math.round(S),offsetY:Math.round(C)}}setLineWidth(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking=null),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(e){this.ctx.lineCap=E[e]}setLineJoin(e){this.ctx.lineJoin=S[e]}setMiterLimit(e){this.ctx.miterLimit=e}setDash(e,t){const n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(e),n.lineDashOffset=t)}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(let t=0,n=e.length;t<n;t++){const n=e[t],a=n[0],o=n[1];switch(a){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"RI":this.setRenderingIntent(o);break;case"FL":this.setFlatness(o);break;case"Font":this.setFont(o[0],o[1]);break;case"CA":this.current.strokeAlpha=n[1];break;case"ca":this.current.fillAlpha=n[1],this.ctx.globalAlpha=n[1];break;case"BM":this.ctx.globalCompositeOperation=o;break;case"SMask":this.current.activeSMask=o?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.current.transferMaps=o}}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const e=this.ctx.canvas.width,t=this.ctx.canvas.height,n="smaskGroupAt"+this.groupLevel,a=this.cachedCanvases.getCanvas(n,e,t,!0);this.suspendedCtx=this.ctx,this.ctx=a.context;const o=this.ctx;o.setTransform.apply(o,this.suspendedCtx.mozCurrentTransform),p(this.suspendedCtx,o),function(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(e,n){t.translate(e,n),this.__originalTranslate(e,n)},e.scale=function(e,n){t.scale(e,n),this.__originalScale(e,n)},e.transform=function(e,n,a,o,s,r){t.transform(e,n,a,o,s,r),this.__originalTransform(e,n,a,o,s,r)},e.setTransform=function(e,n,a,o,s,r){t.setTransform(e,n,a,o,s,r),this.__originalSetTransform(e,n,a,o,s,r)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(e){t.rotate(e),this.__originalRotate(e)},e.clip=function(e){t.clip(e),this.__originalClip(e)},e.moveTo=function(e,n){t.moveTo(e,n),this.__originalMoveTo(e,n)},e.lineTo=function(e,n){t.lineTo(e,n),this.__originalLineTo(e,n)},e.bezierCurveTo=function(e,n,a,o,s,r){t.bezierCurveTo(e,n,a,o,s,r),this.__originalBezierCurveTo(e,n,a,o,s,r)},e.rect=function(e,n,a,o){t.rect(e,n,a,o),this.__originalRect(e,n,a,o)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}(o,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),p(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return;e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const t=this.current.activeSMask;w(this.suspendedCtx,t,this.ctx,e),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}save(){this.inSMaskMode?(p(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const e=this.current;this.stateStack.push(e),this.current=e.clone()}restore(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),p(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null)}transform(e,t,n,a,o,s){this.ctx.transform(e,t,n,a,o,s),this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null}constructPath(e,t,n){const o=this.ctx,s=this.current;let r,i,f=s.x,c=s.y;const l=o.mozCurrentTransform,u=0===l[0]&&0===l[3]||0===l[1]&&0===l[2],_=u?n.slice(0):null;for(let n=0,d=0,h=e.length;n<h;n++)switch(0|e[n]){case a.OPS.rectangle:f=t[d++],c=t[d++];const e=t[d++],n=t[d++],h=f+e,m=c+n;o.moveTo(f,c),0===e||0===n?o.lineTo(h,m):(o.lineTo(h,c),o.lineTo(h,m),o.lineTo(f,m)),u||s.updateRectMinMax(l,[f,c,h,m]),o.closePath();break;case a.OPS.moveTo:f=t[d++],c=t[d++],o.moveTo(f,c),u||s.updatePathMinMax(l,f,c);break;case a.OPS.lineTo:f=t[d++],c=t[d++],o.lineTo(f,c),u||s.updatePathMinMax(l,f,c);break;case a.OPS.curveTo:r=f,i=c,f=t[d+4],c=t[d+5],o.bezierCurveTo(t[d],t[d+1],t[d+2],t[d+3],f,c),s.updateCurvePathMinMax(l,r,i,t[d],t[d+1],t[d+2],t[d+3],f,c,_),d+=6;break;case a.OPS.curveTo2:r=f,i=c,o.bezierCurveTo(f,c,t[d],t[d+1],t[d+2],t[d+3]),s.updateCurvePathMinMax(l,r,i,f,c,t[d],t[d+1],t[d+2],t[d+3],_),f=t[d+2],c=t[d+3],d+=4;break;case a.OPS.curveTo3:r=f,i=c,f=t[d+2],c=t[d+3],o.bezierCurveTo(t[d],t[d+1],f,c,f,c),s.updateCurvePathMinMax(l,r,i,t[d],t[d+1],f,c,f,c,_),d+=4;break;case a.OPS.closePath:o.closePath()}u&&s.updateScalingPathMinMax(l,_),s.setCurrentPoint(f,c)}closePath(){this.ctx.closePath()}stroke(e){e=void 0===e||e;const t=this.ctx,n=this.current.strokeColor;t.globalAlpha=this.current.strokeAlpha,this.contentVisible&&("object"==typeof n&&n?.getPattern?(t.save(),t.strokeStyle=n.getPattern(t,this,t.mozCurrentTransformInverse,s.PathType.STROKE),this.rescaleAndStroke(!1),t.restore()):this.rescaleAndStroke(!0)),e&&this.consumePath(this.current.getClippedPathBoundingBox()),t.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(e){e=void 0===e||e;const t=this.ctx,n=this.current.fillColor;let a=!1;this.current.patternFill&&(t.save(),t.fillStyle=n.getPattern(t,this,t.mozCurrentTransformInverse,s.PathType.FILL),a=!0);const o=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==o&&(this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill()),a&&t.restore(),e&&this.consumePath(o)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=C}eoClip(){this.pendingClip=A}beginText(){this.current.textMatrix=a.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){t.save(),t.beginPath();for(const n of e)t.setTransform.apply(t,n.transform),t.translate(n.x,n.y),n.addToPath(t,n.fontSize);t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()}setCharSpacing(e){this.current.charSpacing=e}setWordSpacing(e){this.current.wordSpacing=e}setHScale(e){this.current.textHScale=e/100}setLeading(e){this.current.leading=-e}setFont(e,t){const n=this.commonObjs.get(e),o=this.current;if(!n)throw new Error(`Can't find font for ${e}`);if(o.fontMatrix=n.fontMatrix||a.FONT_IDENTITY_MATRIX,0!==o.fontMatrix[0]&&0!==o.fontMatrix[3]||(0,a.warn)("Invalid font matrix for font "+e),t<0?(t=-t,o.fontDirection=-1):o.fontDirection=1,this.current.font=n,this.current.fontSize=t,n.isType3Font)return;const s=n.loadedName||"sans-serif";let r="normal";n.black?r="900":n.bold&&(r="bold");const i=n.italic?"italic":"normal",f=`"${s}", ${n.fallbackName}`;let c=t;t<16?c=16:t>100&&(c=100),this.current.fontSizeScale=t/c,this.ctx.font=`${i} ${r} ${c}px ${f}`}setTextRenderingMode(e){this.current.textRenderingMode=e}setTextRise(e){this.current.textRise=e}moveText(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}setTextMatrix(e,t,n,a,o,s){this.current.textMatrix=[e,t,n,a,o,s],this.current.textMatrixScale=Math.hypot(e,t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(e,t,n,o){const s=this.ctx,r=this.current,i=r.font,f=r.textRenderingMode,c=r.fontSize/r.fontSizeScale,l=f&a.TextRenderingMode.FILL_STROKE_MASK,u=!!(f&a.TextRenderingMode.ADD_TO_PATH_FLAG),_=r.patternFill&&!i.missingFile;let d;(i.disableFontFace||u||_)&&(d=i.getPathGenerator(this.commonObjs,e)),i.disableFontFace||_?(s.save(),s.translate(t,n),s.beginPath(),d(s,c),o&&s.setTransform.apply(s,o),l!==a.TextRenderingMode.FILL&&l!==a.TextRenderingMode.FILL_STROKE||s.fill(),l!==a.TextRenderingMode.STROKE&&l!==a.TextRenderingMode.FILL_STROKE||s.stroke(),s.restore()):(l!==a.TextRenderingMode.FILL&&l!==a.TextRenderingMode.FILL_STROKE||s.fillText(e,t,n),l!==a.TextRenderingMode.STROKE&&l!==a.TextRenderingMode.FILL_STROKE||s.strokeText(e,t,n)),u&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:s.mozCurrentTransform,x:t,y:n,fontSize:c,addToPath:d})}get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10,!1);e.scale(1.5,1),e.fillText("I",0,10);const t=e.getImageData(0,0,10,10).data;let n=!1;for(let e=3;e<t.length;e+=4)if(t[e]>0&&t[e]<255){n=!0;break}return(0,a.shadow)(this,"isFontSubpixelAAEnabled",n)}showText(e){const t=this.current,n=t.font;if(n.isType3Font)return this.showType3Text(e);const o=t.fontSize;if(0===o)return;const r=this.ctx,i=t.fontSizeScale,f=t.charSpacing,c=t.wordSpacing,l=t.fontDirection,u=t.textHScale*l,_=e.length,d=n.vertical,h=d?1:-1,m=n.defaultVMetrics,p=o*t.fontMatrix[0],g=t.textRenderingMode===a.TextRenderingMode.FILL&&!n.disableFontFace&&!t.patternFill;let b;if(r.save(),r.transform.apply(r,t.textMatrix),r.translate(t.x,t.y+t.textRise),l>0?r.scale(u,-1):r.scale(u,1),t.patternFill){r.save();const e=t.fillColor.getPattern(r,this,r.mozCurrentTransformInverse,s.PathType.FILL);b=r.mozCurrentTransform,r.restore(),r.fillStyle=e}let y=t.lineWidth;const v=t.textMatrixScale;if(0===v||0===y){const e=t.textRenderingMode&a.TextRenderingMode.FILL_STROKE_MASK;e!==a.TextRenderingMode.STROKE&&e!==a.TextRenderingMode.FILL_STROKE||(y=this.getSinglePixelWidth())}else y/=v;1!==i&&(r.scale(i,i),y/=i),r.lineWidth=y;let w,k=0;for(w=0;w<_;++w){const t=e[w];if("number"==typeof t){k+=h*t*o/1e3;continue}let a=!1;const s=(t.isSpace?c:0)+f,u=t.fontChar,_=t.accent;let y,v,E,S=t.width;if(d){const e=t.vmetric||m,n=-(t.vmetric?e[1]:.5*S)*p,a=e[2]*p;S=e?-e[0]:S,y=n/i,v=(k+a)/i}else y=k/i,v=0;if(n.remeasure&&S>0){const e=1e3*r.measureText(u).width/o*i;if(S<e&&this.isFontSubpixelAAEnabled){const t=S/e;a=!0,r.save(),r.scale(t,1),y/=t}else S!==e&&(y+=(S-e)/2e3*o/i)}if(this.contentVisible&&(t.isInFont||n.missingFile))if(g&&!_)r.fillText(u,y,v);else if(this.paintChar(u,y,v,b),_){const e=y+o*_.offset.x/i,t=v-o*_.offset.y/i;this.paintChar(_.fontChar,e,t,b)}E=d?S*p-s*l:S*p+s*l,k+=E,a&&r.restore()}d?t.y-=k:t.x+=k*u,r.restore(),this.compose()}showType3Text(e){const t=this.ctx,n=this.current,o=n.font,s=n.fontSize,r=n.fontDirection,i=o.vertical?1:-1,f=n.charSpacing,c=n.wordSpacing,l=n.textHScale*r,u=n.fontMatrix||a.FONT_IDENTITY_MATRIX,_=e.length;let d,h,m,p;if(n.textRenderingMode!==a.TextRenderingMode.INVISIBLE&&0!==s){for(this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,t.save(),t.transform.apply(t,n.textMatrix),t.translate(n.x,n.y),t.scale(l,r),d=0;d<_;++d){if(h=e[d],"number"==typeof h){p=i*h*s/1e3,this.ctx.translate(p,0),n.x+=p*l;continue}const r=(h.isSpace?c:0)+f,_=o.charProcOperatorList[h.operatorListId];_?(this.contentVisible&&(this.processingType3=h,this.save(),t.scale(s,s),t.transform.apply(t,u),this.executeOperatorList(_),this.restore()),m=a.Util.applyTransform([h.width,0],u)[0]*s+r,t.translate(m,0),n.x+=m*l):(0,a.warn)(`Type3 character "${h.operatorListId}" is not available.`)}t.restore(),this.processingType3=null}}setCharWidth(e,t){}setCharWidthAndBounds(e,t,n,a,o,s){this.ctx.rect(n,a,o-n,s-a),this.ctx.clip(),this.endPath()}getColorN_Pattern(e){let t;if("TilingPattern"===e[0]){const n=e[1],a=this.baseTransform||this.ctx.mozCurrentTransform.slice(),o={createCanvasGraphics:e=>new x(e,this.commonObjs,this.objs,this.canvasFactory)};t=new s.TilingPattern(e,n,this.ctx,o,a)}else t=this._getPattern(e[1],e[2]);return t}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(e,t,n){const o=this.selectColor?.(e,t,n)||a.Util.makeHexColor(e,t,n);this.ctx.strokeStyle=o,this.current.strokeColor=o}setFillRGBColor(e,t,n){const o=this.selectColor?.(e,t,n)||a.Util.makeHexColor(e,t,n);this.ctx.fillStyle=o,this.current.fillColor=o,this.current.patternFill=!1}_getPattern(e,t=null){let n;return this.cachedPatterns.has(e)?n=this.cachedPatterns.get(e):(n=(0,s.getShadingPattern)(this.objs.get(e)),this.cachedPatterns.set(e,n)),t&&(n.matrix=t),n}shadingFill(e){if(!this.contentVisible)return;const t=this.ctx;this.save();const n=this._getPattern(e);t.fillStyle=n.getPattern(t,this,t.mozCurrentTransformInverse,s.PathType.SHADING);const o=t.mozCurrentTransformInverse;if(o){const e=t.canvas,n=e.width,s=e.height,r=a.Util.applyTransform([0,0],o),i=a.Util.applyTransform([0,s],o),f=a.Util.applyTransform([n,0],o),c=a.Util.applyTransform([n,s],o),l=Math.min(r[0],i[0],f[0],c[0]),u=Math.min(r[1],i[1],f[1],c[1]),_=Math.max(r[0],i[0],f[0],c[0]),d=Math.max(r[1],i[1],f[1],c[1]);this.ctx.fillRect(l,u,_-l,d-u)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,a.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,a.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform.apply(this,e),this.baseTransform=this.ctx.mozCurrentTransform,t)){const e=t[2]-t[0],n=t[3]-t[1];this.ctx.rect(t[0],t[1],e,n),this.current.updateRectMinMax(this.ctx.mozCurrentTransform,t),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const t=this.ctx;e.isolated||(0,a.info)("TODO: Support non-isolated groups."),e.knockout&&(0,a.warn)("Knockout groups not supported.");const n=t.mozCurrentTransform;if(e.matrix&&t.transform.apply(t,e.matrix),!e.bbox)throw new Error("Bounding box is required.");let o=a.Util.getAxialAlignedBoundingBox(e.bbox,t.mozCurrentTransform);const s=[0,0,t.canvas.width,t.canvas.height];o=a.Util.intersect(o,s)||[0,0,0,0];const r=Math.floor(o[0]),i=Math.floor(o[1]);let c=Math.max(Math.ceil(o[2])-r,1),l=Math.max(Math.ceil(o[3])-i,1),u=1,_=1;c>f&&(u=c/f,c=f),l>f&&(_=l/f,l=f),this.current.startNewPathAndClipBox([0,0,c,l]);let d="groupAt"+this.groupLevel;e.smask&&(d+="_smask_"+this.smaskCounter++%2);const h=this.cachedCanvases.getCanvas(d,c,l,!0),m=h.context;m.scale(1/u,1/_),m.translate(-r,-i),m.transform.apply(m,n),e.smask?this.smaskStack.push({canvas:h.canvas,context:m,offsetX:r,offsetY:i,scaleX:u,scaleY:_,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(r,i),t.scale(u,_),t.save()),p(t,m),this.ctx=m,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++}endGroup(e){if(!this.contentVisible)return;this.groupLevel--;const t=this.ctx,n=this.groupStack.pop();if(this.ctx=n,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const e=this.ctx.mozCurrentTransform;this.restore(),this.ctx.save(),this.ctx.setTransform.apply(this.ctx,e);const n=a.Util.getAxialAlignedBoundingBox([0,0,t.canvas.width,t.canvas.height],e);this.ctx.drawImage(t.canvas,0,0),this.ctx.restore(),this.compose(n)}}beginAnnotation(e,t,n,o,s){if(this.#J(),g(this.ctx,this.foregroundColor),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform),Array.isArray(t)&&4===t.length){const o=t[2]-t[0],r=t[3]-t[1];if(s&&this.annotationCanvasMap){(n=n.slice())[4]-=t[0],n[5]-=t[1],(t=t.slice())[0]=t[1]=0,t[2]=o,t[3]=r;const[s,i]=a.Util.singularValueDecompose2dScale(this.ctx.mozCurrentTransform),{viewportScale:f}=this,c=Math.ceil(o*this.outputScaleX*f),u=Math.ceil(r*this.outputScaleY*f);this.annotationCanvas=this.canvasFactory.create(c,u);const{canvas:_,context:d}=this.annotationCanvas;this.annotationCanvasMap.set(e,_),this.annotationCanvas.savedCtx=this.ctx,this.ctx=d,l(this.ctx),this.ctx.setTransform(s,0,0,-i,0,r*i),g(this.ctx,this.foregroundColor)}else g(this.ctx,this.foregroundColor),this.ctx.rect(t[0],t[1],o,r),this.ctx.clip(),this.endPath()}this.current=new d(this.ctx.canvas.width,this.ctx.canvas.height),this.transform.apply(this,n),this.transform.apply(this,o)}endAnnotation(){this.annotationCanvas&&(this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e){if(!this.contentVisible)return;const t=e.count;(e=this.getObject(e.data,e)).count=t;const n=this.ctx,a=this.processingType3;if(a&&(void 0===a.compiled&&(a.compiled=function(e){const{width:t,height:n}=e;if(t>1e3||n>1e3)return null;const a=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),o=t+1;let s,r,f,c=new Uint8Array(o*(n+1));const l=t+7&-8;let u=new Uint8Array(l*n),_=0;for(const t of e.data){let e=128;for(;e>0;)u[_++]=t&e?0:255,e>>=1}let d=0;for(_=0,0!==u[_]&&(c[0]=1,++d),r=1;r<t;r++)u[_]!==u[_+1]&&(c[r]=u[_]?2:1,++d),_++;for(0!==u[_]&&(c[r]=2,++d),s=1;s<n;s++){_=s*l,f=s*o,u[_-l]!==u[_]&&(c[f]=u[_]?1:8,++d);let e=(u[_]?4:0)+(u[_-l]?8:0);for(r=1;r<t;r++)e=(e>>2)+(u[_+1]?4:0)+(u[_-l+1]?8:0),a[e]&&(c[f+r]=a[e],++d),_++;if(u[_-l]!==u[_]&&(c[f+r]=u[_]?2:4,++d),d>1e3)return null}for(_=l*(n-1),f=s*o,0!==u[_]&&(c[f]=8,++d),r=1;r<t;r++)u[_]!==u[_+1]&&(c[f+r]=u[_]?4:8,++d),_++;if(0!==u[_]&&(c[f+r]=4,++d),d>1e3)return null;const h=new Int32Array([0,o,-1,0,-o,0,0,0,1]);let m,p,g;for(i.isNodeJS?p=[]:m=new Path2D,s=0;d&&s<=n;s++){let e=s*o;const n=e+t;for(;e<n&&!c[e];)e++;if(e===n)continue;m?m.moveTo(e%o,s):g=[e%o,s];const a=e;let r=c[e];do{const t=h[r];do{e+=t}while(!c[e]);const n=c[e];5!==n&&10!==n?(r=n,c[e]=0):(r=n&51*r>>4,c[e]&=r>>2|r<<2),m?m.lineTo(e%o,e/o|0):g.push(e%o,e/o|0),c[e]||--d}while(a!==e);m||p.push(g),--s}return u=null,c=null,function(e){if(e.save(),e.scale(1/t,-1/n),e.translate(0,-n),m)e.fill(m);else{e.beginPath();for(const t of p){e.moveTo(t[0],t[1]);for(let n=2,a=t.length;n<a;n+=2)e.lineTo(t[n],t[n+1])}e.fill()}e.beginPath(),e.restore()}}(e)),a.compiled))return void a.compiled(n);const o=this._createMaskCanvas(e),s=o.canvas;n.save(),n.setTransform(1,0,0,1,0,0),n.drawImage(s,o.offsetX,o.offsetY),n.restore(),this.compose()}paintImageMaskXObjectRepeat(e,t,n=0,o=0,s,r){if(!this.contentVisible)return;e=this.getObject(e.data,e);const i=this.ctx;i.save();const f=i.mozCurrentTransform;i.transform(t,n,o,s,0,0);const c=this._createMaskCanvas(e);i.setTransform(1,0,0,1,0,0);for(let e=0,l=r.length;e<l;e+=2){const l=a.Util.transform(f,[t,n,o,s,r[e],r[e+1]]),[u,_]=a.Util.applyTransform([0,0],l);i.drawImage(c.canvas,u,_)}i.restore(),this.compose()}paintImageMaskXObjectGroup(e){if(!this.contentVisible)return;const t=this.ctx,n=this.current.fillColor,a=this.current.patternFill;for(const o of e){const{data:e,width:r,height:i,transform:f}=o,c=this.cachedCanvases.getCanvas("maskCanvas",r,i,!1),l=c.context;l.save(),m(l,this.getObject(e,o)),l.globalCompositeOperation="source-in",l.fillStyle=a?n.getPattern(l,this,t.mozCurrentTransformInverse,s.PathType.FILL):n,l.fillRect(0,0,r,i),l.restore(),t.save(),t.transform.apply(t,f),t.scale(1,-1),_(t,c.canvas,0,0,r,i,0,-1,1,1),t.restore()}this.compose()}paintImageXObject(e){if(!this.contentVisible)return;const t=this.getObject(e);t?this.paintInlineImageXObject(t):(0,a.warn)("Dependent image isn't ready yet")}paintImageXObjectRepeat(e,t,n,o){if(!this.contentVisible)return;const s=this.getObject(e);if(!s)return void(0,a.warn)("Dependent image isn't ready yet");const r=s.width,i=s.height,f=[];for(let e=0,a=o.length;e<a;e+=2)f.push({transform:[t,0,0,n,o[e],o[e+1]],x:0,y:0,w:r,h:i});this.paintInlineImageXObjectGroup(s,f)}paintInlineImageXObject(e){if(!this.contentVisible)return;const t=e.width,n=e.height,a=this.ctx;let o;if(this.save(),a.scale(1/t,-1/n),"function"==typeof HTMLElement&&e instanceof HTMLElement||!e.data)o=e;else{const a=this.cachedCanvases.getCanvas("inlineImage",t,n,!1);h(a.context,e,this.current.transferMaps),o=a.canvas}const s=this._scaleImage(o,a.mozCurrentTransformInverse);a.imageSmoothingEnabled=k(a.mozCurrentTransform,e.interpolate);const[r,i]=_(a,s.img,0,0,s.paintWidth,s.paintHeight,0,-n,t,n);if(this.imageLayer){const t=this.getCanvasPosition(0,-n);this.imageLayer.appendImage({imgData:e,left:t[0],top:t[1],width:r,height:i})}this.compose(),this.restore()}paintInlineImageXObjectGroup(e,t){if(!this.contentVisible)return;const n=this.ctx,a=e.width,o=e.height,s=this.cachedCanvases.getCanvas("inlineImage",a,o,!1);h(s.context,e,this.current.transferMaps);for(let r=0,i=t.length;r<i;r++){const i=t[r];if(n.save(),n.transform.apply(n,i.transform),n.scale(1,-1),_(n,s.canvas,i.x,i.y,i.w,i.h,0,-1,1,1),this.imageLayer){const t=this.getCanvasPosition(i.x,i.y);this.imageLayer.appendImage({imgData:e,left:t[0],top:t[1],width:a,height:o})}n.restore()}this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(e){}markPointProps(e,t){}beginMarkedContent(e){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(e,t){"OC"===e?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(t)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(e){const t=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(e);const n=this.ctx;this.pendingClip&&(t||(this.pendingClip===A?n.clip("evenodd"):n.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),n.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const e=this.ctx.mozCurrentTransform;if(0===e[1]&&0===e[2])this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(e[0]),Math.abs(e[3]));else{const t=Math.abs(e[0]*e[3]-e[2]*e[1]),n=Math.hypot(e[0],e[2]),a=Math.hypot(e[1],e[3]);this._cachedGetSinglePixelWidth=Math.max(n,a)/t}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(!this._cachedScaleForStroking){const{lineWidth:e}=this.current,t=this.ctx.mozCurrentTransform;let n,a;if(0===t[1]&&0===t[2]){const o=Math.abs(t[0]),s=Math.abs(t[3]);if(0===e)n=1/o,a=1/s;else{const t=o*e,r=s*e;n=t<1?1/t:1,a=r<1?1/r:1}}else{const o=Math.abs(t[0]*t[3]-t[2]*t[1]),s=Math.hypot(t[0],t[1]),r=Math.hypot(t[2],t[3]);if(0===e)n=r/o,a=s/o;else{const t=e*o;n=r>t?r/t:1,a=s>t?s/t:1}}this._cachedScaleForStroking=[n,a]}return this._cachedScaleForStroking}rescaleAndStroke(e){const{ctx:t}=this,{lineWidth:n}=this.current,[a,o]=this.getScaleForStroking();if(t.lineWidth=n||1,1===a&&1===o)return void t.stroke();let s,r,i;e&&(s=t.mozCurrentTransform.slice(),r=t.getLineDash().slice(),i=t.lineDashOffset),t.scale(a,o);const f=Math.max(a,o);t.setLineDash(t.getLineDash().map((e=>e/f))),t.lineDashOffset/=f,t.stroke(),e&&(t.setTransform(...s),t.setLineDash(r),t.lineDashOffset=i)}getCanvasPosition(e,t){const n=this.ctx.mozCurrentTransform;return[n[0]*e+n[2]*t+n[4],n[1]*e+n[3]*t+n[5]]}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}t.CanvasGraphics=x;for(const e in a.OPS)void 0!==x.prototype[e]&&(x.prototype[a.OPS[e]]=x.prototype[e])},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.PathType=void 0,t.getShadingPattern=function(e){switch(e[0]){case"RadialAxial":return new f(e);case"Mesh":return new u(e);case"Dummy":return new _}throw new Error(`Unknown IR type: ${e[0]}`)};var a=n(1),o=n(3);const s={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function r(e,t){if(!t||o.isNodeJS)return;const n=t[2]-t[0],a=t[3]-t[1],s=new Path2D;s.rect(t[0],t[1],n,a),e.clip(s)}t.PathType=s;class i{constructor(){this.constructor===i&&(0,a.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,a.unreachable)("Abstract method `getPattern` called.")}}class f extends i{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let t;"axial"===this._type?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const e of this._colorStops)t.addColorStop(e[0],e[1]);return t}getPattern(e,t,n,o){let i;if(o===s.STROKE||o===s.FILL){const s=t.current.getClippedPathBoundingBox(o,e.mozCurrentTransform)||[0,0,0,0],f=Math.ceil(s[2]-s[0])||1,c=Math.ceil(s[3]-s[1])||1,l=t.cachedCanvases.getCanvas("pattern",f,c,!0),u=l.context;u.clearRect(0,0,u.canvas.width,u.canvas.height),u.beginPath(),u.rect(0,0,u.canvas.width,u.canvas.height),u.translate(-s[0],-s[1]),n=a.Util.transform(n,[1,0,0,1,s[0],s[1]]),u.transform.apply(u,t.baseTransform),this.matrix&&u.transform.apply(u,this.matrix),r(u,this._bbox),u.fillStyle=this._createGradient(u),u.fill(),i=e.createPattern(l.canvas,"no-repeat");const _=new DOMMatrix(n);try{i.setTransform(_)}catch(e){(0,a.warn)(`RadialAxialShadingPattern.getPattern: "${e?.message}".`)}}else r(e,this._bbox),i=this._createGradient(e);return i}}function c(e,t,n,a,o,s,r,i){const f=t.coords,c=t.colors,l=e.data,u=4*e.width;let _;f[n+1]>f[a+1]&&(_=n,n=a,a=_,_=s,s=r,r=_),f[a+1]>f[o+1]&&(_=a,a=o,o=_,_=r,r=i,i=_),f[n+1]>f[a+1]&&(_=n,n=a,a=_,_=s,s=r,r=_);const d=(f[n]+t.offsetX)*t.scaleX,h=(f[n+1]+t.offsetY)*t.scaleY,m=(f[a]+t.offsetX)*t.scaleX,p=(f[a+1]+t.offsetY)*t.scaleY,g=(f[o]+t.offsetX)*t.scaleX,b=(f[o+1]+t.offsetY)*t.scaleY;if(h>=b)return;const y=c[s],v=c[s+1],w=c[s+2],k=c[r],E=c[r+1],S=c[r+2],C=c[i],A=c[i+1],x=c[i+2],P=Math.round(h),T=Math.round(b);let M,R,L,I,O,D,F,N;for(let e=P;e<=T;e++){if(e<p){let t;t=e<h?0:(h-e)/(h-p),M=d-(d-m)*t,R=y-(y-k)*t,L=v-(v-E)*t,I=w-(w-S)*t}else{let t;t=e>b?1:p===b?0:(p-e)/(p-b),M=m-(m-g)*t,R=k-(k-C)*t,L=E-(E-A)*t,I=S-(S-x)*t}let t;t=e<h?0:e>b?1:(h-e)/(h-b),O=d-(d-g)*t,D=y-(y-C)*t,F=v-(v-A)*t,N=w-(w-x)*t;const n=Math.round(Math.min(M,O)),a=Math.round(Math.max(M,O));let o=u*e+4*n;for(let e=n;e<=a;e++)t=(M-e)/(M-O),t<0?t=0:t>1&&(t=1),l[o++]=R-(R-D)*t|0,l[o++]=L-(L-F)*t|0,l[o++]=I-(I-N)*t|0,l[o++]=255}}function l(e,t,n){const a=t.coords,o=t.colors;let s,r;switch(t.type){case"lattice":const i=t.verticesPerRow,f=Math.floor(a.length/i)-1,l=i-1;for(s=0;s<f;s++){let t=s*i;for(let s=0;s<l;s++,t++)c(e,n,a[t],a[t+1],a[t+i],o[t],o[t+1],o[t+i]),c(e,n,a[t+i+1],a[t+1],a[t+i],o[t+i+1],o[t+1],o[t+i])}break;case"triangles":for(s=0,r=a.length;s<r;s+=3)c(e,n,a[s],a[s+1],a[s+2],o[s],o[s+1],o[s+2]);break;default:throw new Error("illegal figure")}}class u extends i{constructor(e){super(),this._coords=e[2],this._colors=e[3],this._figures=e[4],this._bounds=e[5],this._bbox=e[7],this._background=e[8],this.matrix=null}_createMeshCanvas(e,t,n){const a=Math.floor(this._bounds[0]),o=Math.floor(this._bounds[1]),s=Math.ceil(this._bounds[2])-a,r=Math.ceil(this._bounds[3])-o,i=Math.min(Math.ceil(Math.abs(s*e[0]*1.1)),3e3),f=Math.min(Math.ceil(Math.abs(r*e[1]*1.1)),3e3),c=s/i,u=r/f,_={coords:this._coords,colors:this._colors,offsetX:-a,offsetY:-o,scaleX:1/c,scaleY:1/u},d=i+4,h=f+4,m=n.getCanvas("mesh",d,h,!1),p=m.context,g=p.createImageData(i,f);if(t){const e=g.data;for(let n=0,a=e.length;n<a;n+=4)e[n]=t[0],e[n+1]=t[1],e[n+2]=t[2],e[n+3]=255}for(const e of this._figures)l(g,e,_);return p.putImageData(g,2,2),{canvas:m.canvas,offsetX:a-2*c,offsetY:o-2*u,scaleX:c,scaleY:u}}getPattern(e,t,n,o){let i;if(r(e,this._bbox),o===s.SHADING)i=a.Util.singularValueDecompose2dScale(e.mozCurrentTransform);else if(i=a.Util.singularValueDecompose2dScale(t.baseTransform),this.matrix){const e=a.Util.singularValueDecompose2dScale(this.matrix);i=[i[0]*e[0],i[1]*e[1]]}const f=this._createMeshCanvas(i,o===s.SHADING?null:this._background,t.cachedCanvases);return o!==s.SHADING&&(e.setTransform.apply(e,t.baseTransform),this.matrix&&e.transform.apply(e,this.matrix)),e.translate(f.offsetX,f.offsetY),e.scale(f.scaleX,f.scaleY),e.createPattern(f.canvas,"no-repeat")}}class _ extends i{getPattern(){return"hotpink"}}const d=1,h=2;class m{static get MAX_PATTERN_SIZE(){return(0,a.shadow)(this,"MAX_PATTERN_SIZE",3e3)}constructor(e,t,n,a,o){this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.ctx=n,this.canvasGraphicsFactory=a,this.baseTransform=o}createPatternCanvas(e){const t=this.operatorList,n=this.bbox,o=this.xstep,s=this.ystep,r=this.paintType,i=this.tilingType,f=this.color,c=this.canvasGraphicsFactory;(0,a.info)("TilingType: "+i);const l=n[0],u=n[1],_=n[2],d=n[3],h=a.Util.singularValueDecompose2dScale(this.matrix),m=a.Util.singularValueDecompose2dScale(this.baseTransform),p=[h[0]*m[0],h[1]*m[1]],g=this.getSizeAndScale(o,this.ctx.canvas.width,p[0]),b=this.getSizeAndScale(s,this.ctx.canvas.height,p[1]),y=e.cachedCanvases.getCanvas("pattern",g.size,b.size,!0),v=y.context,w=c.createCanvasGraphics(v);w.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(w,r,f);let k=l,E=u,S=_,C=d;return l<0&&(k=0,S+=Math.abs(l)),u<0&&(E=0,C+=Math.abs(u)),v.translate(-g.scale*k,-b.scale*E),w.transform(g.scale,0,0,b.scale,0,0),v.save(),this.clipBbox(w,k,E,S,C),w.baseTransform=w.ctx.mozCurrentTransform.slice(),w.executeOperatorList(t),w.endDrawing(),{canvas:y.canvas,scaleX:g.scale,scaleY:b.scale,offsetX:k,offsetY:E}}getSizeAndScale(e,t,n){e=Math.abs(e);const a=Math.max(m.MAX_PATTERN_SIZE,t);let o=Math.ceil(e*n);return o>=a?o=a:n=o/e,{scale:n,size:o}}clipBbox(e,t,n,a,o){const s=a-t,r=o-n;e.ctx.rect(t,n,s,r),e.current.updateRectMinMax(e.ctx.mozCurrentTransform,[t,n,a,o]),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,n){const o=e.ctx,s=e.current;switch(t){case d:const e=this.ctx;o.fillStyle=e.fillStyle,o.strokeStyle=e.strokeStyle,s.fillColor=e.fillStyle,s.strokeColor=e.strokeStyle;break;case h:const r=a.Util.makeHexColor(n[0],n[1],n[2]);o.fillStyle=r,o.strokeStyle=r,s.fillColor=r,s.strokeColor=r;break;default:throw new a.FormatError(`Unsupported paint type: ${t}`)}}getPattern(e,t,n,o){let r=n;o!==s.SHADING&&(r=a.Util.transform(r,t.baseTransform),this.matrix&&(r=a.Util.transform(r,this.matrix)));const i=this.createPatternCanvas(t);let f=new DOMMatrix(r);f=f.translate(i.offsetX,i.offsetY),f=f.scale(1/i.scaleX,1/i.scaleY);const c=e.createPattern(i.canvas,"repeat");try{c.setTransform(f)}catch(e){(0,a.warn)(`TilingPattern.getPattern: "${e?.message}".`)}return c}}t.TilingPattern=m},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.applyMaskImageData=function({src:e,srcPos:t=0,dest:n,destPos:o=0,width:s,height:r,inverseDecode:i=!1}){const f=a.FeatureTest.isLittleEndian?4278190080:255,[c,l]=i?[0,f]:[f,0],u=s>>3,_=7&s,d=e.length;n=new Uint32Array(n.buffer);for(let a=0;a<r;a++){for(const a=t+u;t<a;t++){const a=t<d?e[t]:255;n[o++]=128&a?l:c,n[o++]=64&a?l:c,n[o++]=32&a?l:c,n[o++]=16&a?l:c,n[o++]=8&a?l:c,n[o++]=4&a?l:c,n[o++]=2&a?l:c,n[o++]=1&a?l:c}if(0===_)continue;const a=t<d?e[t++]:255;for(let e=0;e<_;e++)n[o++]=a&1<<7-e?l:c}return{srcPos:t,destPos:o}};var a=n(1)},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;const n=Object.create(null);t.GlobalWorkerOptions=n,n.workerPort=void 0===n.workerPort?null:n.workerPort,n.workerSrc=void 0===n.workerSrc?"":n.workerSrc},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var a=n(1);const o=1,s=2,r=1,i=2,f=3,c=4,l=5,u=6,_=7,d=8;function h(e){switch(e instanceof Error||"object"==typeof e&&null!==e||(0,a.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new a.AbortException(e.message);case"MissingPDFException":return new a.MissingPDFException(e.message);case"PasswordException":return new a.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new a.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new a.UnknownErrorException(e.message,e.details);default:return new a.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,n){this.sourceName=e,this.targetName=t,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=e=>{const t=e.data;if(t.targetName!==this.sourceName)return;if(t.stream)return void this._processStreamMessage(t);if(t.callback){const e=t.callbackId,n=this.callbackCapabilities[e];if(!n)throw new Error(`Cannot resolve callback ${e}`);if(delete this.callbackCapabilities[e],t.callback===o)n.resolve(t.data);else{if(t.callback!==s)throw new Error("Unexpected callback case");n.reject(h(t.reason))}return}const a=this.actionHandler[t.action];if(!a)throw new Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){const e=this.sourceName,r=t.sourceName;new Promise((function(e){e(a(t.data))})).then((function(a){n.postMessage({sourceName:e,targetName:r,callback:o,callbackId:t.callbackId,data:a})}),(function(a){n.postMessage({sourceName:e,targetName:r,callback:s,callbackId:t.callbackId,reason:h(a)})}))}else t.streamId?this._createStreamSink(t):a(t.data)},n.addEventListener("message",this._onComObjOnMessage)}on(e,t){const n=this.actionHandler;if(n[e])throw new Error(`There is already an actionName called "${e}"`);n[e]=t}send(e,t,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){const o=this.callbackId++,s=(0,a.createPromiseCapability)();this.callbackCapabilities[o]=s;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:o,data:t},n)}catch(e){s.reject(e)}return s.promise}sendWithStream(e,t,n,o){const s=this.streamId++,i=this.sourceName,f=this.targetName,c=this.comObj;return new ReadableStream({start:n=>{const r=(0,a.createPromiseCapability)();return this.streamControllers[s]={controller:n,startCall:r,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:i,targetName:f,action:e,streamId:s,data:t,desiredSize:n.desiredSize},o),r.promise},pull:e=>{const t=(0,a.createPromiseCapability)();return this.streamControllers[s].pullCall=t,c.postMessage({sourceName:i,targetName:f,stream:u,streamId:s,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,a.assert)(e instanceof Error,"cancel must have a valid reason");const t=(0,a.createPromiseCapability)();return this.streamControllers[s].cancelCall=t,this.streamControllers[s].isClosed=!0,c.postMessage({sourceName:i,targetName:f,stream:r,streamId:s,reason:h(e)}),t.promise}},n)}_createStreamSink(e){const t=e.streamId,n=this.sourceName,o=e.sourceName,s=this.comObj,r=this,i=this.actionHandler[e.action],u={enqueue(e,r=1,i){if(this.isCancelled)return;const f=this.desiredSize;this.desiredSize-=r,f>0&&this.desiredSize<=0&&(this.sinkCapability=(0,a.createPromiseCapability)(),this.ready=this.sinkCapability.promise),s.postMessage({sourceName:n,targetName:o,stream:c,streamId:t,chunk:e},i)},close(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:n,targetName:o,stream:f,streamId:t}),delete r.streamSinks[t])},error(e){(0,a.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:n,targetName:o,stream:l,streamId:t,reason:h(e)}))},sinkCapability:(0,a.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};u.sinkCapability.resolve(),u.ready=u.sinkCapability.promise,this.streamSinks[t]=u,new Promise((function(t){t(i(e.data,u))})).then((function(){s.postMessage({sourceName:n,targetName:o,stream:d,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:n,targetName:o,stream:d,streamId:t,reason:h(e)})}))}_processStreamMessage(e){const t=e.streamId,n=this.sourceName,o=e.sourceName,s=this.comObj,m=this.streamControllers[t],p=this.streamSinks[t];switch(e.stream){case d:e.success?m.startCall.resolve():m.startCall.reject(h(e.reason));break;case _:e.success?m.pullCall.resolve():m.pullCall.reject(h(e.reason));break;case u:if(!p){s.postMessage({sourceName:n,targetName:o,stream:_,streamId:t,success:!0});break}p.desiredSize<=0&&e.desiredSize>0&&p.sinkCapability.resolve(),p.desiredSize=e.desiredSize,new Promise((function(e){e(p.onPull&&p.onPull())})).then((function(){s.postMessage({sourceName:n,targetName:o,stream:_,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:n,targetName:o,stream:_,streamId:t,reason:h(e)})}));break;case c:if((0,a.assert)(m,"enqueue should have stream controller"),m.isClosed)break;m.controller.enqueue(e.chunk);break;case f:if((0,a.assert)(m,"close should have stream controller"),m.isClosed)break;m.isClosed=!0,m.controller.close(),this._deleteStreamController(m,t);break;case l:(0,a.assert)(m,"error should have stream controller"),m.controller.error(h(e.reason)),this._deleteStreamController(m,t);break;case i:e.success?m.cancelCall.resolve():m.cancelCall.reject(h(e.reason)),this._deleteStreamController(m,t);break;case r:if(!p)break;new Promise((function(t){t(p.onCancel&&p.onCancel(h(e.reason)))})).then((function(){s.postMessage({sourceName:n,targetName:o,stream:i,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:n,targetName:o,stream:i,streamId:t,reason:h(e)})})),p.sinkCapability.reject(h(e.reason)),p.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(e,t){await Promise.allSettled([e.startCall&&e.startCall.promise,e.pullCall&&e.pullCall.promise,e.cancelCall&&e.cancelCall.promise]),delete this.streamControllers[t]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var a=n(1);t.Metadata=class{#Z;#ee;constructor({parsedData:e,rawData:t}){this.#Z=e,this.#ee=t}getRaw(){return this.#ee}get(e){return this.#Z.get(e)??null}getAll(){return(0,a.objectFromMap)(this.#Z)}has(e){return this.#Z.has(e)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var a=n(1);const o=Symbol("INTERNAL");class s{#te=!0;constructor(e,t){this.name=e,this.intent=t}get visible(){return this.#te}_setVisible(e,t){e!==o&&(0,a.unreachable)("Internal method `_setVisible` called."),this.#te=t}}t.OptionalContentConfig=class{#ne=!0;#ae=new Map;#oe=null;#se=null;constructor(e){if(this.name=null,this.creator=null,null!==e){this.name=e.name,this.creator=e.creator,this.#se=e.order;for(const t of e.groups)this.#ae.set(t.id,new s(t.name,t.intent));if("OFF"===e.baseState)for(const e of this.#ae.values())e._setVisible(o,!1);for(const t of e.on)this.#ae.get(t)._setVisible(o,!0);for(const t of e.off)this.#ae.get(t)._setVisible(o,!1);this.#oe=new Map;for(const[e,t]of this.#ae)this.#oe.set(e,t.visible)}}#re(e){const t=e.length;if(t<2)return!0;const n=e[0];for(let o=1;o<t;o++){const t=e[o];let s;if(Array.isArray(t))s=this.#re(t);else{if(!this.#ae.has(t))return(0,a.warn)(`Optional content group not found: ${t}`),!0;s=this.#ae.get(t).visible}switch(n){case"And":if(!s)return!1;break;case"Or":if(s)return!0;break;case"Not":return!s;default:return!0}}return"And"===n}isVisible(e){if(0===this.#ae.size)return!0;if(!e)return(0,a.warn)("Optional content group not defined."),!0;if("OCG"===e.type)return this.#ae.has(e.id)?this.#ae.get(e.id).visible:((0,a.warn)(`Optional content group not found: ${e.id}`),!0);if("OCMD"===e.type){if(e.expression)return this.#re(e.expression);if(!e.policy||"AnyOn"===e.policy){for(const t of e.ids){if(!this.#ae.has(t))return(0,a.warn)(`Optional content group not found: ${t}`),!0;if(this.#ae.get(t).visible)return!0}return!1}if("AllOn"===e.policy){for(const t of e.ids){if(!this.#ae.has(t))return(0,a.warn)(`Optional content group not found: ${t}`),!0;if(!this.#ae.get(t).visible)return!1}return!0}if("AnyOff"===e.policy){for(const t of e.ids){if(!this.#ae.has(t))return(0,a.warn)(`Optional content group not found: ${t}`),!0;if(!this.#ae.get(t).visible)return!0}return!1}if("AllOff"===e.policy){for(const t of e.ids){if(!this.#ae.has(t))return(0,a.warn)(`Optional content group not found: ${t}`),!0;if(this.#ae.get(t).visible)return!1}return!0}return(0,a.warn)(`Unknown optional content policy ${e.policy}.`),!0}return(0,a.warn)(`Unknown group type ${e.type}.`),!0}setVisibility(e,t=!0){this.#ae.has(e)?(this.#ae.get(e)._setVisible(o,!!t),this.#ne=null):(0,a.warn)(`Optional content group not found: ${e}`)}get hasInitialVisibility(){if(null!==this.#ne)return this.#ne;for(const[e,t]of this.#ae){const n=this.#oe.get(e);if(t.visible!==n)return this.#ne=!1}return this.#ne=!0}getOrder(){return this.#ae.size?this.#se?this.#se.slice():[...this.#ae.keys()]:null}getGroups(){return this.#ae.size>0?(0,a.objectFromMap)(this.#ae):null}getGroup(e){return this.#ae.get(e)||null}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var a=n(1),o=n(4);t.PDFDataTransportStream=class{constructor(e,t){(0,a.assert)(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=e.progressiveDone||!1,this._contentDispositionFilename=e.contentDispositionFilename||null;const n=e.initialData;if(n?.length>0){const e=new Uint8Array(n).buffer;this._queuedChunks.push(e)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._contentLength=e.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(((e,t)=>{this._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener(((e,t)=>{this._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((e=>{this._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((()=>{this._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}_onReceiveData(e){const t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{const n=this._rangeReaders.some((function(n){return n._begin===e.begin&&(n._enqueue(t),!0)}));(0,a.assert)(n,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(e){if(void 0===e.total){const t=this._rangeReaders[0];t?.onProgress&&t.onProgress({loaded:e.loaded})}else{const t=this._fullRequestReader;t?.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){(0,a.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new s(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new r(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);for(const t of this._rangeReaders.slice(0))t.cancel(e);this._pdfDataRangeTransport.abort()}};class s{constructor(e,t,n=!1,a=null){this._stream=e,this._done=n||!1,this._filename=(0,o.isPdfFile)(a)?a:null,this._queuedChunks=t||[],this._loaded=0;for(const e of this._queuedChunks)this._loaded+=e.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=(0,a.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class r{constructor(e,t,n){this._stream=e,this._begin=t,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,a.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaText=void 0;class n{static textContent(e){const t=[],a={items:t,styles:Object.create(null)};return function e(a){if(!a)return;let o=null;const s=a.name;if("#text"===s)o=a.value;else{if(!n.shouldBuildText(s))return;a?.attributes?.textContent?o=a.attributes.textContent:a.value&&(o=a.value)}if(null!==o&&t.push({str:o}),a.children)for(const t of a.children)e(t)}(e),a}static shouldBuildText(e){return!("textarea"===e||"input"===e||"option"===e||"select"===e)}}t.XfaText=n},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeCanvasFactory=t.NodeCMapReaderFactory=void 0;var a=n(5);const o=function(e){return new Promise(((t,n)=>{require$$5.readFile(e,((e,a)=>{!e&&a?t(new Uint8Array(a)):n(new Error(e))}))}))};class s extends a.BaseCanvasFactory{_createCanvas(e,t){return require$$5.createCanvas(e,t)}}t.NodeCanvasFactory=s;class r extends a.BaseCMapReaderFactory{_fetchData(e,t){return o(e).then((e=>({cMapData:e,compressionType:t})))}}t.NodeCMapReaderFactory=r;class i extends a.BaseStandardFontDataFactory{_fetchData(e){return o(e)}}t.NodeStandardFontDataFactory=i},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayer=void 0;var a=n(1),o=n(9),s=n(4),r=n(23),i=n(24);class f{#ie=!1;#fe=this.pointerup.bind(this);#ce=this.pointerdown.bind(this);#le=new Map;#ue=!1;#_e=new WeakMap;#de=new Map;#he;#me=new Set;static _initialized=!1;constructor(e){f._initialized||(f._initialized=!0,r.FreeTextEditor.initialize(e.l10n),i.InkEditor.initialize(e.l10n),e.uiManager.registerEditorTypes([r.FreeTextEditor,i.InkEditor])),this.#he=e.uiManager,this.annotationStorage=e.annotationStorage,this.pageIndex=e.pageIndex,this.div=e.div,this.#he.addLayer(this)}get textLayerElements(){const e=this.div.parentNode.getElementsByClassName("textLayer").item(0);if(!e)return(0,a.shadow)(this,"textLayerElements",null);let t=this.#_e.get(e);return t||(t=e.querySelectorAll('span[role="presentation"]'),0===t.length?(0,a.shadow)(this,"textLayerElements",null):(t=Array.from(t),t.sort(f.#pe),this.#_e.set(e,t),t))}get#ge(){return!!this.div.parentNode.querySelector(".textLayer .endOfContent")}updateToolbar(e){this.#he.updateToolbar(e)}updateMode(e=this.#he.getMode()){this.#be(),e===a.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),this.#he.unselectAll()}addInkEditorIfNeeded(e){if(e||this.#he.getMode()===a.AnnotationEditorType.INK){if(!e)for(const e of this.#le.values())if(e.isEmpty())return void e.setInBackground();this.#ye({offsetX:0,offsetY:0}).setInBackground()}}setEditingState(e){this.#he.setEditingState(e)}addCommands(e){this.#he.addCommands(e)}enable(){this.div.style.pointerEvents="auto";for(const e of this.#le.values())e.enableEditing()}disable(){this.div.style.pointerEvents="none";for(const e of this.#le.values())e.disableEditing()}setActiveEditor(e){this.#he.getActive()!==e&&this.#he.setActiveEditor(e)}enableClick(){this.div.addEventListener("pointerdown",this.#ce),this.div.addEventListener("pointerup",this.#fe)}disableClick(){this.div.removeEventListener("pointerdown",this.#ce),this.div.removeEventListener("pointerup",this.#fe)}attach(e){this.#le.set(e.id,e)}detach(e){this.#le.delete(e.id),this.removePointerInTextLayer(e)}remove(e){this.#he.removeEditor(e),this.detach(e),this.annotationStorage.removeKey(e.id),e.div.style.display="none",setTimeout((()=>{e.div.style.display="",e.div.remove(),e.isAttachedToDOM=!1,document.activeElement===document.body&&this.#he.focusMainContainer()}),0),this.#ue||this.addInkEditorIfNeeded(!1)}#ve(e){e.parent!==this&&(this.attach(e),e.pageIndex=this.pageIndex,e.parent?.detach(e),e.parent=this,e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}static#pe(e,t){const n=e.getBoundingClientRect(),a=t.getBoundingClientRect();return n.y+n.height<=a.y?-1:a.y+a.height<=n.y?1:n.x+n.width/2-(a.x+a.width/2)}onTextLayerRendered(){this.#de.clear();for(const e of this.#me)e.isAttachedToDOM&&this.addPointerInTextLayer(e);this.#me.clear()}removePointerInTextLayer(e){if(!this.#ge)return void this.#me.delete(e);const{id:t}=e,n=this.#de.get(t);if(!n)return;this.#de.delete(t);let a=n.getAttribute("aria-owns");a?.includes(t)&&(a=a.split(" ").filter((e=>e!==t)).join(" "),a?n.setAttribute("aria-owns",a):(n.removeAttribute("aria-owns"),n.setAttribute("role","presentation")))}addPointerInTextLayer(e){if(!this.#ge)return void this.#me.add(e);this.removePointerInTextLayer(e);const t=this.textLayerElements;if(!t)return;const{contentDiv:n}=e,a=e.getIdForTextLayer(),o=(0,s.binarySearchFirstItem)(t,(e=>f.#pe(n,e)<0)),r=t[Math.max(0,o-1)],i=r.getAttribute("aria-owns");i?.includes(a)||r.setAttribute("aria-owns",i?`${i} ${a}`:a),r.removeAttribute("role"),this.#de.set(a,r)}moveDivInDOM(e){this.addPointerInTextLayer(e);const{div:t,contentDiv:n}=e;if(!this.div.hasChildNodes())return void this.div.append(t);const a=Array.from(this.div.childNodes).filter((e=>e!==t));if(0===a.length)return;const o=(0,s.binarySearchFirstItem)(a,(e=>f.#pe(n,e)<0));0===o?a[0].before(t):a[o-1].after(t)}add(e){if(this.#ve(e),this.addToAnnotationStorage(e),this.#he.addEditor(e),this.attach(e),!e.isAttachedToDOM){const t=e.render();this.div.append(t),e.isAttachedToDOM=!0}this.moveDivInDOM(e),e.onceAdded()}addToAnnotationStorage(e){e.isEmpty()||this.annotationStorage.has(e.id)||this.annotationStorage.setValue(e.id,e)}addOrRebuild(e){e.needsToBeRebuilt()?e.rebuild():this.add(e)}addANewEditor(e){this.addCommands({cmd:()=>{this.addOrRebuild(e)},undo:()=>{e.remove()},mustExec:!0})}addUndoableEditor(e){this.addCommands({cmd:()=>{this.addOrRebuild(e)},undo:()=>{e.remove()},mustExec:!1})}getNextId(){return this.#he.getId()}#we(e){switch(this.#he.getMode()){case a.AnnotationEditorType.FREETEXT:return new r.FreeTextEditor(e);case a.AnnotationEditorType.INK:return new i.InkEditor(e)}return null}deserialize(e){switch(e.annotationType){case a.AnnotationEditorType.FREETEXT:return r.FreeTextEditor.deserialize(e,this);case a.AnnotationEditorType.INK:return i.InkEditor.deserialize(e,this)}return null}#ye(e){const t=this.getNextId(),n=this.#we({parent:this,id:t,x:e.offsetX,y:e.offsetY});return n&&this.add(n),n}setSelected(e){this.#he.setSelected(e)}toggleSelected(e){this.#he.toggleSelected(e)}isSelected(e){return this.#he.isSelected(e)}unselect(e){this.#he.unselect(e)}pointerup(e){const t=o.KeyboardManager.platform.isMac;0!==e.button||e.ctrlKey&&t||e.target===this.div&&(this.#ie?this.#ye(e):this.#ie=!0)}pointerdown(e){const t=o.KeyboardManager.platform.isMac;if(0!==e.button||e.ctrlKey&&t)return;if(e.target!==this.div)return;const n=this.#he.getActive();this.#ie=!n||n.isEmpty()}drop(e){const t=e.dataTransfer.getData("text/plain"),n=this.#he.getEditor(t);if(!n)return;e.preventDefault(),e.dataTransfer.dropEffect="move",this.#ve(n);const a=this.div.getBoundingClientRect(),o=e.clientX-a.x,s=e.clientY-a.y;n.translate(o-n.startX,s-n.startY),this.moveDivInDOM(n),n.div.focus()}dragover(e){e.preventDefault()}destroy(){this.#he.getActive()?.parent===this&&this.#he.setActiveEditor(null);for(const e of this.#le.values())this.removePointerInTextLayer(e),e.isAttachedToDOM=!1,e.div.remove(),e.parent=null;this.#de.clear(),this.div=null,this.#le.clear(),this.#me.clear(),this.#he.removeLayer(this)}#be(){this.#ue=!0;for(const e of this.#le.values())e.isEmpty()&&e.remove();this.#ue=!1}render(e){this.viewport=e.viewport,(0,o.bindEvents)(this,this.div,["dragover","drop"]),this.setDimensions();for(const e of this.#he.getEditors(this.pageIndex))this.add(e);this.updateMode()}update(e){this.viewport=e.viewport,this.setDimensions(),this.updateMode()}get scaleFactor(){return this.viewport.scale}get pageDimensions(){const[e,t,n,a]=this.viewport.viewBox;return[n-e,a-t]}get viewportBaseDimensions(){const{width:e,height:t,rotation:n}=this.viewport;return n%180==0?[e,t]:[t,e]}setDimensions(){const{width:e,height:t,rotation:n}=this.viewport,a=n%180!=0,o=Math.floor(e)+"px",s=Math.floor(t)+"px";this.div.style.width=a?s:o,this.div.style.height=a?o:s,this.div.setAttribute("data-main-rotation",n)}}t.AnnotationEditorLayer=f},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FreeTextEditor=void 0;var a=n(1),o=n(9),s=n(8);class r extends s.AnnotationEditor{#ke=this.editorDivBlur.bind(this);#Ee=this.editorDivFocus.bind(this);#Se=this.editorDivKeydown.bind(this);#Ce;#Ae="";#xe="";#Pe=!1;#Te;static _freeTextDefaultContent="";static _l10nPromise;static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static _keyboardManager=new o.KeyboardManager([[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],r.prototype.commitOrRemove]]);constructor(e){super({...e,name:"freeTextEditor"}),this.#Ce=e.color||r._defaultColor||s.AnnotationEditor._defaultLineColor,this.#Te=e.fontSize||r._defaultFontSize}static initialize(e){this._l10nPromise=new Map(["free_text_default_content","editor_free_text_aria_label"].map((t=>[t,e.get(t)])));const t=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(t.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,t){switch(e){case a.AnnotationEditorParamsType.FREETEXT_SIZE:r._defaultFontSize=t;break;case a.AnnotationEditorParamsType.FREETEXT_COLOR:r._defaultColor=t}}updateParams(e,t){switch(e){case a.AnnotationEditorParamsType.FREETEXT_SIZE:this.#Me(t);break;case a.AnnotationEditorParamsType.FREETEXT_COLOR:this.#Re(t)}}static get defaultPropertiesToUpdate(){return[[a.AnnotationEditorParamsType.FREETEXT_SIZE,r._defaultFontSize],[a.AnnotationEditorParamsType.FREETEXT_COLOR,r._defaultColor||s.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[a.AnnotationEditorParamsType.FREETEXT_SIZE,this.#Te],[a.AnnotationEditorParamsType.FREETEXT_COLOR,this.#Ce]]}#Me(e){const t=e=>{this.editorDiv.style.fontSize=`calc(${e}px * var(--scale-factor))`,this.translate(0,-(e-this.#Te)*this.parent.scaleFactor),this.#Te=e,this.#Le()},n=this.#Te;this.parent.addCommands({cmd:()=>{t(e)},undo:()=>{t(n)},mustExec:!0,type:a.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}#Re(e){const t=this.#Ce;this.parent.addCommands({cmd:()=>{this.#Ce=e,this.editorDiv.style.color=e},undo:()=>{this.#Ce=t,this.editorDiv.style.color=t},mustExec:!0,type:a.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}getInitialTranslation(){return[-r._internalPadding*this.parent.scaleFactor,-(r._internalPadding+this.#Te)*this.parent.scaleFactor]}rebuild(){super.rebuild(),null!==this.div&&(this.isAttachedToDOM||this.parent.add(this))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(a.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this.div.draggable=!1,this.editorDiv.addEventListener("keydown",this.#Se),this.editorDiv.addEventListener("focus",this.#Ee),this.editorDiv.addEventListener("blur",this.#ke))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.draggable=!0,this.editorDiv.removeEventListener("keydown",this.#Se),this.editorDiv.removeEventListener("focus",this.#Ee),this.editorDiv.removeEventListener("blur",this.#ke),this.div.focus(),this.isEditing=!1)}focusin(e){super.focusin(e),e.target!==this.editorDiv&&this.editorDiv.focus()}onceAdded(){this.width||(this.enableEditMode(),this.editorDiv.focus())}isEmpty(){return!this.editorDiv||""===this.editorDiv.innerText.trim()}remove(){this.isEditing=!1,this.parent.setEditingState(!0),super.remove()}#Ie(){const e=this.editorDiv.getElementsByTagName("div");if(0===e.length)return this.editorDiv.innerText;const t=[];for(let n=0,a=e.length;n<a;n++){const a=e[n].firstChild;"#text"===a?.nodeName?t.push(a.data):t.push("")}return t.join("\n")}#Le(){const[e,t]=this.parent.viewportBaseDimensions,n=this.div.getBoundingClientRect();this.width=n.width/e,this.height=n.height/t}commit(){super.commit(),this.#Pe||(this.#Pe=!0,this.parent.addUndoableEditor(this)),this.disableEditMode(),this.#xe=this.editorDiv.innerHTML,this.#Ae=this.#Ie().trimEnd(),this.#Le()}shouldGetKeyboardEvents(){return this.isInEditMode()}dblclick(e){this.enableEditMode(),this.editorDiv.focus()}keydown(e){e.target===this.div&&"Enter"===e.key&&(this.enableEditMode(),this.editorDiv.focus())}editorDivKeydown(e){r._keyboardManager.exec(this,e)}editorDivFocus(e){this.isEditing=!0}editorDivBlur(e){this.isEditing=!1}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}getIdForTextLayer(){return this.editorDiv.id}render(){if(this.div)return this.div;let e,t;this.width&&(e=this.x,t=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",`${this.id}-editor`),this.enableEditing(),r._l10nPromise.get("editor_free_text_aria_label").then((e=>this.editorDiv?.setAttribute("aria-label",e))),r._l10nPromise.get("free_text_default_content").then((e=>this.editorDiv?.setAttribute("default-content",e))),this.editorDiv.contentEditable=!0;const{style:n}=this.editorDiv;if(n.fontSize=`calc(${this.#Te}px * var(--scale-factor))`,n.color=this.#Ce,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,o.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[n,a]=this.parent.viewportBaseDimensions;this.setAt(e*n,t*a,this.width*n,this.height*a),this.editorDiv.innerHTML=this.#xe,this.div.draggable=!0,this.editorDiv.contentEditable=!1}else this.div.draggable=!1,this.editorDiv.contentEditable=!0;return this.div}get contentDiv(){return this.editorDiv}static deserialize(e,t){const n=super.deserialize(e,t);return n.#Te=e.fontSize,n.#Ce=a.Util.makeHexColor(...e.color),n.#Ae=e.value,n.#xe=e.value.split("\n").map((e=>`<div>${e}</div>`)).join(""),n}serialize(){if(this.isEmpty())return null;const e=r._internalPadding*this.parent.scaleFactor,t=this.getRect(e,e),n=s.AnnotationEditor._colorManager.convert(getComputedStyle(this.editorDiv).color);return{annotationType:a.AnnotationEditorType.FREETEXT,color:n,fontSize:this.#Te,value:this.#Ae,pageIndex:this.parent.pageIndex,rect:t,rotation:this.rotation}}}t.FreeTextEditor=r},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InkEditor=void 0,Object.defineProperty(t,"fitCurve",{enumerable:!0,get:function(){return s.fitCurve}});var a=n(1),o=n(8),s=n(25),r=n(9);const i=16;class f extends o.AnnotationEditor{#Oe=0;#De=0;#Fe=0;#Ne=this.canvasPointermove.bind(this);#je=this.canvasPointerleave.bind(this);#Ue=this.canvasPointerup.bind(this);#He=this.canvasPointerdown.bind(this);#$e=!1;#Be=!1;#Ve=null;#qe=null;#We=0;#ze=0;#Ge=null;static _defaultColor=null;static _defaultOpacity=1;static _defaultThickness=1;static _l10nPromise;constructor(e){super({...e,name:"inkEditor"}),this.color=e.color||null,this.thickness=e.thickness||null,this.opacity=e.opacity||null,this.paths=[],this.bezierPath2D=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0}static initialize(e){this._l10nPromise=new Map(["editor_ink_canvas_aria_label","editor_ink_aria_label"].map((t=>[t,e.get(t)])))}static updateDefaultParams(e,t){switch(e){case a.AnnotationEditorParamsType.INK_THICKNESS:f._defaultThickness=t;break;case a.AnnotationEditorParamsType.INK_COLOR:f._defaultColor=t;break;case a.AnnotationEditorParamsType.INK_OPACITY:f._defaultOpacity=t/100}}updateParams(e,t){switch(e){case a.AnnotationEditorParamsType.INK_THICKNESS:this.#Qe(t);break;case a.AnnotationEditorParamsType.INK_COLOR:this.#Re(t);break;case a.AnnotationEditorParamsType.INK_OPACITY:this.#Xe(t)}}static get defaultPropertiesToUpdate(){return[[a.AnnotationEditorParamsType.INK_THICKNESS,f._defaultThickness],[a.AnnotationEditorParamsType.INK_COLOR,f._defaultColor||o.AnnotationEditor._defaultLineColor],[a.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*f._defaultOpacity)]]}get propertiesToUpdate(){return[[a.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||f._defaultThickness],[a.AnnotationEditorParamsType.INK_COLOR,this.color||f._defaultColor||o.AnnotationEditor._defaultLineColor],[a.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(this.opacity??f._defaultOpacity))]]}#Qe(e){const t=this.thickness;this.parent.addCommands({cmd:()=>{this.thickness=e,this.#Ke()},undo:()=>{this.thickness=t,this.#Ke()},mustExec:!0,type:a.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}#Re(e){const t=this.color;this.parent.addCommands({cmd:()=>{this.color=e,this.#Ye()},undo:()=>{this.color=t,this.#Ye()},mustExec:!0,type:a.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}#Xe(e){e/=100;const t=this.opacity;this.parent.addCommands({cmd:()=>{this.opacity=e,this.#Ye()},undo:()=>{this.opacity=t,this.#Ye()},mustExec:!0,type:a.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}rebuild(){super.rebuild(),null!==this.div&&(this.canvas||(this.#Je(),this.#Ze()),this.isAttachedToDOM||(this.parent.add(this),this.#et()),this.#Ke())}remove(){null!==this.canvas&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,this.#qe.disconnect(),this.#qe=null,super.remove())}enableEditMode(){this.#$e||null===this.canvas||(super.enableEditMode(),this.div.draggable=!1,this.canvas.addEventListener("pointerdown",this.#He),this.canvas.addEventListener("pointerup",this.#Ue))}disableEditMode(){this.isInEditMode()&&null!==this.canvas&&(super.disableEditMode(),this.div.draggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",this.#He),this.canvas.removeEventListener("pointerup",this.#Ue))}onceAdded(){this.div.draggable=!this.isEmpty()}isEmpty(){return 0===this.paths.length||1===this.paths.length&&0===this.paths[0].length}#tt(){const{width:e,height:t,rotation:n}=this.parent.viewport;switch(n){case 90:return[0,e,e,t];case 180:return[e,t,e,t];case 270:return[t,0,e,t];default:return[0,0,e,t]}}#nt(){this.ctx.lineWidth=this.thickness*this.parent.scaleFactor/this.scaleFactor,this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.miterLimit=10,this.ctx.strokeStyle=`${this.color}${(0,r.opacityToHex)(this.opacity)}`}#at(e,t){this.isEditing=!0,this.#Be||(this.#Be=!0,this.#et(),this.thickness||=f._defaultThickness,this.color||=f._defaultColor||o.AnnotationEditor._defaultLineColor,this.opacity??=f._defaultOpacity),this.currentPath.push([e,t]),this.#Ve=null,this.#nt(),this.ctx.beginPath(),this.ctx.moveTo(e,t),this.#Ge=()=>{this.#Ge&&(this.#Ve&&(this.isEmpty()?(this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)):this.#Ye(),this.ctx.lineTo(...this.#Ve),this.#Ve=null,this.ctx.stroke()),window.requestAnimationFrame(this.#Ge))},window.requestAnimationFrame(this.#Ge)}#ot(e,t){const[n,a]=this.currentPath.at(-1);e===n&&t===a||(this.currentPath.push([e,t]),this.#Ve=[e,t])}#st(e,t){this.ctx.closePath(),this.#Ge=null,e=Math.min(Math.max(e,0),this.canvas.width),t=Math.min(Math.max(t,0),this.canvas.height);const[n,a]=this.currentPath.at(-1);let o;if(e===n&&t===a||this.currentPath.push([e,t]),1!==this.currentPath.length)o=(0,s.fitCurve)(this.currentPath,30,null);else{const n=[e,t];o=[[n,n.slice(),n.slice(),n]]}const r=f.#rt(o);this.currentPath.length=0,this.parent.addCommands({cmd:()=>{this.paths.push(o),this.bezierPath2D.push(r),this.rebuild()},undo:()=>{this.paths.pop(),this.bezierPath2D.pop(),0===this.paths.length?this.remove():(this.canvas||(this.#Je(),this.#Ze()),this.#Ke())},mustExec:!0})}#Ye(){if(this.isEmpty())return void this.#it();this.#nt();const{canvas:e,ctx:t}=this;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e.width,e.height),this.#it();for(const e of this.bezierPath2D)t.stroke(e)}commit(){this.#$e||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),this.#$e=!0,this.div.classList.add("disabled"),this.#Ke(!0),this.parent.addInkEditorIfNeeded(!0),this.parent.moveDivInDOM(this),this.div.focus())}focusin(e){super.focusin(e),this.enableEditMode()}canvasPointerdown(e){0===e.button&&this.isInEditMode()&&!this.#$e&&(this.setInForeground(),"mouse"!==e.type&&this.div.focus(),e.stopPropagation(),this.canvas.addEventListener("pointerleave",this.#je),this.canvas.addEventListener("pointermove",this.#Ne),this.#at(e.offsetX,e.offsetY))}canvasPointermove(e){e.stopPropagation(),this.#ot(e.offsetX,e.offsetY)}canvasPointerup(e){0===e.button&&this.isInEditMode()&&0!==this.currentPath.length&&(e.stopPropagation(),this.#ft(e),this.setInBackground())}canvasPointerleave(e){this.#ft(e),this.setInBackground()}#ft(e){this.#st(e.offsetX,e.offsetY),this.canvas.removeEventListener("pointerleave",this.#je),this.canvas.removeEventListener("pointermove",this.#Ne),this.parent.addToAnnotationStorage(this)}#Je(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",f._l10nPromise.get("editor_ink_canvas_aria_label").then((e=>this.canvas?.setAttribute("aria-label",e))),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}#Ze(){this.#qe=new ResizeObserver((e=>{const t=e[0].contentRect;t.width&&t.height&&this.setDimensions(t.width,t.height)})),this.#qe.observe(this.div)}render(){if(this.div)return this.div;let e,t;this.width&&(e=this.x,t=this.y),super.render(),f._l10nPromise.get("editor_ink_aria_label").then((e=>this.div?.setAttribute("aria-label",e)));const[n,a,o,s]=this.#tt();if(this.setAt(n,a,0,0),this.setDims(o,s),this.#Je(),this.width){const[n,a]=this.parent.viewportBaseDimensions;this.setAt(e*n,t*a,this.width*n,this.height*a),this.#Be=!0,this.#et(),this.setDims(this.width*n,this.height*a),this.#Ye(),this.#ct(),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return this.#Ze(),this.div}#et(){if(!this.#Be)return;const[e,t]=this.parent.viewportBaseDimensions;this.canvas.width=Math.ceil(this.width*e),this.canvas.height=Math.ceil(this.height*t),this.#it()}setDimensions(e,t){const n=Math.round(e),a=Math.round(t);if(this.#We===n&&this.#ze===a)return;this.#We=n,this.#ze=a,this.canvas.style.visibility="hidden",this.#Oe&&Math.abs(this.#Oe-e/t)>.01&&(t=Math.ceil(e/this.#Oe),this.setDims(e,t));const[o,s]=this.parent.viewportBaseDimensions;this.width=e/o,this.height=t/s,this.#$e&&this.#lt(e,t),this.#et(),this.#Ye(),this.canvas.style.visibility="visible"}#lt(e,t){const n=this.#ut(),a=(e-n)/this.#Fe,o=(t-n)/this.#De;this.scaleFactor=Math.min(a,o)}#it(){const e=this.#ut()/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+e,this.translationY*this.scaleFactor+e)}static#rt(e){const t=new Path2D;for(let n=0,a=e.length;n<a;n++){const[a,o,s,r]=e[n];0===n&&t.moveTo(...a),t.bezierCurveTo(o[0],o[1],s[0],s[1],r[0],r[1])}return t}#_t(e,t,n,a){const o=[],s=this.thickness/2;let r,i;for(const f of this.paths){r=[],i=[];for(let o=0,c=f.length;o<c;o++){const[c,l,u,_]=f[o],d=e*(c[0]+t)+s,h=a-e*(c[1]+n)-s,m=e*(l[0]+t)+s,p=a-e*(l[1]+n)-s,g=e*(u[0]+t)+s,b=a-e*(u[1]+n)-s,y=e*(_[0]+t)+s,v=a-e*(_[1]+n)-s;0===o&&(r.push(d,h),i.push(d,h)),r.push(m,p,g,b,y,v),this.#dt(d,h,m,p,g,b,y,v,4,i)}o.push({bezier:r,points:i})}return o}#dt(e,t,n,a,o,s,r,i,f,c){if(this.#ht(e,t,n,a,o,s,r,i))c.push(r,i);else{for(let l=1;l<f-1;l++){const u=l/f,_=1-u;let d=u*e+_*n,h=u*t+_*a,m=u*n+_*o,p=u*a+_*s;d=u*d+_*m,h=u*h+_*p,m=u*m+_*(u*o+_*r),p=u*p+_*(u*s+_*i),d=u*d+_*m,h=u*h+_*p,c.push(d,h)}c.push(r,i)}}#ht(e,t,n,a,o,s,r,i){const f=(3*n-2*e-r)**2,c=(3*a-2*t-i)**2,l=(3*o-e-2*r)**2,u=(3*s-t-2*i)**2;return Math.max(f,l)+Math.max(c,u)<=10}#mt(){let e=1/0,t=-1/0,n=1/0,o=-1/0;for(const s of this.paths)for(const[r,i,f,c]of s){const s=a.Util.bezierBoundingBox(...r,...i,...f,...c);e=Math.min(e,s[0]),n=Math.min(n,s[1]),t=Math.max(t,s[2]),o=Math.max(o,s[3])}return[e,n,t,o]}#ut(){return this.#$e?Math.ceil(this.thickness*this.parent.scaleFactor):0}#Ke(e=!1){if(this.isEmpty())return;if(!this.#$e)return void this.#Ye();const t=this.#mt(),n=this.#ut();this.#Fe=Math.max(i,t[2]-t[0]),this.#De=Math.max(i,t[3]-t[1]);const a=Math.ceil(n+this.#Fe*this.scaleFactor),o=Math.ceil(n+this.#De*this.scaleFactor),[s,r]=this.parent.viewportBaseDimensions;this.width=a/s,this.height=o/r,this.#Oe=a/o,this.#ct();const f=this.translationX,c=this.translationY;this.translationX=-t[0],this.translationY=-t[1],this.#et(),this.#Ye(),this.#We=a,this.#ze=o,this.setDims(a,o);const l=e?n/this.scaleFactor/2:0;this.translate(f-this.translationX-l,c-this.translationY-l)}#ct(){const{style:e}=this.div;this.#Oe>=1?(e.minHeight="16px",e.minWidth=`${Math.round(this.#Oe*i)}px`):(e.minWidth="16px",e.minHeight=`${Math.round(i/this.#Oe)}px`)}static deserialize(e,t){const n=super.deserialize(e,t);n.thickness=e.thickness,n.color=a.Util.makeHexColor(...e.color),n.opacity=e.opacity;const[o,s]=t.pageDimensions,r=n.width*o,i=n.height*s,f=t.scaleFactor,c=e.thickness/2;n.#Oe=r/i,n.#$e=!0,n.#We=Math.round(r),n.#ze=Math.round(i);for(const{bezier:t}of e.paths){const e=[];n.paths.push(e);let a=f*(t[0]-c),o=f*(i-t[1]-c);for(let n=2,s=t.length;n<s;n+=6){const s=f*(t[n]-c),r=f*(i-t[n+1]-c),l=f*(t[n+2]-c),u=f*(i-t[n+3]-c),_=f*(t[n+4]-c),d=f*(i-t[n+5]-c);e.push([[a,o],[s,r],[l,u],[_,d]]),a=_,o=d}const s=this.#rt(e);n.bezierPath2D.push(s)}const l=n.#mt();return n.#Fe=l[2]-l[0],n.#De=l[3]-l[1],n.#lt(r,i),n}serialize(){if(this.isEmpty())return null;const e=this.getRect(0,0),t=this.rotation%180==0?e[3]-e[1]:e[2]-e[0],n=o.AnnotationEditor._colorManager.convert(this.ctx.strokeStyle);return{annotationType:a.AnnotationEditorType.INK,color:n,thickness:this.thickness,opacity:this.opacity,paths:this.#_t(this.scaleFactor/this.parent.scaleFactor,this.translationX,this.translationY,t),pageIndex:this.parent.pageIndex,rect:e,rotation:this.rotation}}}t.InkEditor=f},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fitCurve=void 0;const a=n(26);t.fitCurve=a},e=>{function t(e,o,s,r,i){var c,l,u,_,d,h,m,p,g,b,y,v,w;if(2===e.length)return v=f.vectorLen(f.subtract(e[0],e[1]))/3,[c=[e[0],f.addArrays(e[0],f.mulItems(o,v)),f.addArrays(e[1],f.mulItems(s,v)),e[1]]];if(l=function(e){var t,n,a,o=[];return e.forEach(((e,s)=>{t=s?n+f.vectorLen(f.subtract(e,a)):0,o.push(t),n=t,a=e})),o=o.map((e=>e/n))}(e),[c,_,h]=n(e,l,l,o,s,i),0===_||_<r)return[c];if(_<r*r)for(u=l,d=_,m=h,w=0;w<20;w++){if(u=a(c,e,u),[c,_,h]=n(e,l,u,o,s,i),_<r)return[c];if(h===m){let e=_/d;if(e>.9999&&e<1.0001)break}d=_,m=h}return y=[],(p=f.subtract(e[h-1],e[h+1])).every((e=>0===e))&&(p=f.subtract(e[h-1],e[h]),[p[0],p[1]]=[-p[1],p[0]]),g=f.normalize(p),b=f.mulItems(g,-1),y=(y=y.concat(t(e.slice(0,h+1),o,g,r,i))).concat(t(e.slice(h),b,s,r,i))}function n(e,t,n,a,o,i){var l,u,_;return l=function(e,t,n,a){var o,s,r,i,l,u,_,d,h,m,p,g,b,y,v,w,k,E=e[0],S=e[e.length-1];for(o=[E,null,null,S],s=f.zeros_Xx2x2(t.length),b=0,y=t.length;b<y;b++)k=1-(w=t[b]),(r=s[b])[0]=f.mulItems(n,3*w*(k*k)),r[1]=f.mulItems(a,3*k*(w*w));for(i=[[0,0],[0,0]],l=[0,0],b=0,y=e.length;b<y;b++)w=t[b],r=s[b],i[0][0]+=f.dot(r[0],r[0]),i[0][1]+=f.dot(r[0],r[1]),i[1][0]+=f.dot(r[0],r[1]),i[1][1]+=f.dot(r[1],r[1]),v=f.subtract(e[b],c.q([E,E,S,S],w)),l[0]+=f.dot(r[0],v),l[1]+=f.dot(r[1],v);return u=i[0][0]*i[1][1]-i[1][0]*i[0][1],_=i[0][0]*l[1]-i[1][0]*l[0],d=l[0]*i[1][1]-l[1]*i[0][1],h=0===u?0:d/u,m=0===u?0:_/u,g=f.vectorLen(f.subtract(E,S)),h<(p=1e-6*g)||m<p?(o[1]=f.addArrays(E,f.mulItems(n,g/3)),o[2]=f.addArrays(S,f.mulItems(a,g/3))):(o[1]=f.addArrays(E,f.mulItems(n,h)),o[2]=f.addArrays(S,f.mulItems(a,m))),o}(e,n,a,o),[u,_]=function(e,t,n){var a,o,i,l,u,_,d,h;o=0,i=Math.floor(e.length/2);const m=s(t,10);for(u=0,_=e.length;u<_;u++)d=e[u],h=r(0,n[u],m,10),(a=(l=f.subtract(c.q(t,h),d))[0]*l[0]+l[1]*l[1])>o&&(o=a,i=u);return[o,i]}(e,l,t),i&&i({bez:l,points:e,params:t,maxErr:u,maxPoint:_}),[l,u,_]}function a(e,t,n){return n.map(((n,a)=>o(e,t[a],n)))}function o(e,t,n){var a=f.subtract(c.q(e,n),t),o=c.qprime(e,n),s=f.mulMatrix(a,o),r=f.sum(f.squareItems(o))+2*f.mulMatrix(a,c.qprimeprime(e,n));return 0===r?n:n-s/r}var s=function(e,t){for(var n,a=[0],o=e[0],s=0,r=1;r<=t;r++)n=c.q(e,r/t),s+=f.vectorLen(f.subtract(n,o)),a.push(s),o=n;return a=a.map((e=>e/s))};function r(e,t,n,a){if(t<0)return 0;if(t>1)return 1;for(var o,s,r,i,f=1;f<=a;f++)if(t<=n[f]){r=(f-1)/a,s=f/a,i=(t-(o=n[f-1]))/(n[f]-o)*(s-r)+r;break}return i}function i(e,t){return f.normalize(f.subtract(e,t))}class f{static zeros_Xx2x2(e){for(var t=[];e--;)t.push([0,0]);return t}static mulItems(e,t){return e.map((e=>e*t))}static mulMatrix(e,t){return e.reduce(((e,n,a)=>e+n*t[a]),0)}static subtract(e,t){return e.map(((e,n)=>e-t[n]))}static addArrays(e,t){return e.map(((e,n)=>e+t[n]))}static addItems(e,t){return e.map((e=>e+t))}static sum(e){return e.reduce(((e,t)=>e+t))}static dot(e,t){return f.mulMatrix(e,t)}static vectorLen(e){return Math.hypot(...e)}static divItems(e,t){return e.map((e=>e/t))}static squareItems(e){return e.map((e=>e*e))}static normalize(e){return this.divItems(e,this.vectorLen(e))}}class c{static q(e,t){var n=1-t,a=f.mulItems(e[0],n*n*n),o=f.mulItems(e[1],3*n*n*t),s=f.mulItems(e[2],3*n*t*t),r=f.mulItems(e[3],t*t*t);return f.addArrays(f.addArrays(a,o),f.addArrays(s,r))}static qprime(e,t){var n=1-t,a=f.mulItems(f.subtract(e[1],e[0]),3*n*n),o=f.mulItems(f.subtract(e[2],e[1]),6*n*t),s=f.mulItems(f.subtract(e[3],e[2]),3*t*t);return f.addArrays(f.addArrays(a,o),s)}static qprimeprime(e,t){return f.addArrays(f.mulItems(f.addArrays(f.subtract(e[2],f.mulItems(e[1],2)),e[0]),6*(1-t)),f.mulItems(f.addArrays(f.subtract(e[3],f.mulItems(e[2],2)),e[1]),6*t))}}e.exports=function(e,n,a){if(!Array.isArray(e))throw new TypeError("First argument should be an array");if(e.forEach((t=>{if(!Array.isArray(t)||t.some((e=>"number"!=typeof e))||t.length!==e[0].length)throw Error("Each point should be an array of numbers. Each point should have the same amount of numbers.")})),e=e.filter(((t,n)=>0===n||!t.every(((t,a)=>t===e[n-1][a])))),e.length<2)return[];const o=e.length,s=i(e[1],e[0]),r=i(e[o-2],e[o-1]);return t(e,s,r,n,a)},e.exports.fitCubic=t,e.exports.createTangent=i},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var a=n(1),o=n(4),s=n(7),r=n(28),i=n(29);const f=1e3,c=new WeakSet;function l(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class u{static create(e){switch(e.data.annotationType){case a.AnnotationType.LINK:return new d(e);case a.AnnotationType.TEXT:return new h(e);case a.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new p(e);case"Btn":return e.data.radioButton?new b(e):e.data.checkBox?new g(e):new y(e);case"Ch":return new v(e)}return new m(e);case a.AnnotationType.POPUP:return new w(e);case a.AnnotationType.FREETEXT:return new E(e);case a.AnnotationType.LINE:return new S(e);case a.AnnotationType.SQUARE:return new C(e);case a.AnnotationType.CIRCLE:return new A(e);case a.AnnotationType.POLYLINE:return new x(e);case a.AnnotationType.CARET:return new T(e);case a.AnnotationType.INK:return new M(e);case a.AnnotationType.POLYGON:return new P(e);case a.AnnotationType.HIGHLIGHT:return new R(e);case a.AnnotationType.UNDERLINE:return new L(e);case a.AnnotationType.SQUIGGLY:return new I(e);case a.AnnotationType.STRIKEOUT:return new O(e);case a.AnnotationType.STAMP:return new D(e);case a.AnnotationType.FILEATTACHMENT:return new F(e);default:return new _(e)}}}class _{constructor(e,{isRenderable:t=!1,ignoreBorder:n=!1,createQuadrilaterals:a=!1}={}){this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.page=e.page,this.viewport=e.viewport,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this._mouseState=e.mouseState,t&&(this.container=this._createContainer(n)),a&&(this.quadrilaterals=this._createQuadrilaterals(n))}_createContainer(e=!1){const t=this.data,n=this.page,o=this.viewport,s=document.createElement("section"),{width:r,height:i}=l(t.rect),[f,c,u,_]=o.viewBox,d=u-f,h=_-c;s.setAttribute("data-annotation-id",t.id);const m=a.Util.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]);if(!e&&t.borderStyle.width>0){s.style.borderWidth=`${t.borderStyle.width}px`;const e=t.borderStyle.horizontalCornerRadius,n=t.borderStyle.verticalCornerRadius;if(e>0||n>0){const t=`calc(${e}px * var(--scale-factor)) / calc(${n}px * var(--scale-factor))`;s.style.borderRadius=t}switch(t.borderStyle.style){case a.AnnotationBorderStyleType.SOLID:s.style.borderStyle="solid";break;case a.AnnotationBorderStyleType.DASHED:s.style.borderStyle="dashed";break;case a.AnnotationBorderStyleType.BEVELED:(0,a.warn)("Unimplemented border style: beveled");break;case a.AnnotationBorderStyleType.INSET:(0,a.warn)("Unimplemented border style: inset");break;case a.AnnotationBorderStyleType.UNDERLINE:s.style.borderBottomStyle="solid"}const o=t.borderColor||null;o?s.style.borderColor=a.Util.makeHexColor(0|o[0],0|o[1],0|o[2]):s.style.borderWidth=0}s.style.left=100*(m[0]-f)/d+"%",s.style.top=100*(m[1]-c)/h+"%";const{rotation:p}=t;return t.hasOwnCanvas||0===p?(s.style.width=100*r/d+"%",s.style.height=100*i/h+"%"):this.setRotation(p,s),s}setRotation(e,t=this.container){const[n,a,o,s]=this.viewport.viewBox,r=o-n,i=s-a,{width:f,height:c}=l(this.data.rect);let u,_;e%180==0?(u=100*f/r,_=100*c/i):(u=100*c/r,_=100*f/i),t.style.width=`${u}%`,t.style.height=`${_}%`,t.setAttribute("data-main-rotation",(360-e)%360)}get _commonActions(){const e=(e,t,n)=>{const a=n.detail[e];n.target.style[t]=r.ColorConverters[`${a[0]}_HTML`](a.slice(1))};return(0,a.shadow)(this,"_commonActions",{display:e=>{const t=e.detail.display%2==1;this.container.style.visibility=t?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:t,print:0===e.detail.display||3===e.detail.display})},print:e=>{this.annotationStorage.setValue(this.data.id,{print:e.detail.print})},hidden:e=>{this.container.style.visibility=e.detail.hidden?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:e.detail.hidden})},focus:e=>{setTimeout((()=>e.target.focus({preventScroll:!1})),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.detail.readonly?e.target.setAttribute("readonly",""):e.target.removeAttribute("readonly")},required:e=>{this._setRequired(e.target,e.detail.required)},bgColor:t=>{e("bgColor","backgroundColor",t)},fillColor:t=>{e("fillColor","backgroundColor",t)},fgColor:t=>{e("fgColor","color",t)},textColor:t=>{e("textColor","color",t)},borderColor:t=>{e("borderColor","borderColor",t)},strokeColor:t=>{e("strokeColor","borderColor",t)},rotation:e=>{const t=e.detail.rotation;this.setRotation(t),this.annotationStorage.setValue(this.data.id,{rotation:t})}})}_dispatchEventFromSandbox(e,t){const n=this._commonActions;for(const a of Object.keys(t.detail)){const o=e[a]||n[a];o&&o(t)}}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;const t=this.annotationStorage.getRawValue(this.data.id);if(!t)return;const n=this._commonActions;for(const[a,o]of Object.entries(t)){const s=n[a];s&&(s({detail:o,target:e}),delete t[a])}}_createQuadrilaterals(e=!1){if(!this.data.quadPoints)return null;const t=[],n=this.data.rect;for(const n of this.data.quadPoints)this.data.rect=[n[2].x,n[2].y,n[1].x,n[1].y],t.push(this._createContainer(e));return this.data.rect=n,t}_createPopup(e,t){let n=this.container;this.quadrilaterals&&(e=e||this.quadrilaterals,n=this.quadrilaterals[0]),e||((e=document.createElement("div")).className="popupTriggerArea",n.append(e));const a=new k({container:n,trigger:e,color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,hideWrapper:!0}).render();a.style.left="100%",n.append(a)}_renderQuadrilaterals(e){for(const t of this.quadrilaterals)t.className=e;return this.quadrilaterals}render(){(0,a.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(e,t=null){const n=[];if(this._fieldObjects){const o=this._fieldObjects[e];if(o)for(const{page:e,id:s,exportValues:r}of o){if(-1===e)continue;if(s===t)continue;const o="string"==typeof r?r:null,i=document.querySelector(`[data-element-id="${s}"]`);!i||c.has(i)?n.push({id:s,exportValue:o,domElement:i}):(0,a.warn)(`_getElementsByName - element not allowed: ${s}`)}return n}for(const a of document.getElementsByName(e)){const{id:e,exportValue:o}=a;e!==t&&c.has(a)&&n.push({id:e,exportValue:o,domElement:a})}return n}static get platform(){const e="undefined"!=typeof navigator?navigator.platform:"";return(0,a.shadow)(this,"platform",{isWin:e.includes("Win"),isMac:e.includes("Mac")})}}class d extends _{constructor(e,t=null){super(e,{isRenderable:!0,ignoreBorder:!!t?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=e.data.isTooltipOnly}render(){const{data:e,linkService:t}=this,n=document.createElement("a");n.setAttribute("data-element-id",e.id);let a=!1;return e.url?(t.addLinkAttributes(n,e.url,e.newWindow),a=!0):e.action?(this._bindNamedAction(n,e.action),a=!0):e.dest?(this._bindLink(n,e.dest),a=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,e),a=!0),e.resetForm?(this._bindResetFormAction(n,e.resetForm),a=!0):this.isTooltipOnly&&!a&&(this._bindLink(n,""),a=!0)),this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map(((e,t)=>{const a=0===t?n:n.cloneNode();return e.append(a),e})):(this.container.className="linkAnnotation",a&&this.container.append(n),this.container)}_bindLink(e,t){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.goToDestination(t),!1),(t||""===t)&&(e.className="internalLink")}_bindNamedAction(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),e.className="internalLink"}_bindJSAction(e,t){e.href=this.linkService.getAnchorUrl("");const n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const a of Object.keys(t.actions)){const o=n.get(a);o&&(e[o]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t.id,name:a}}),!1))}e.onclick||(e.onclick=()=>!1),e.className="internalLink"}_bindResetFormAction(e,t){const n=e.onclick;if(n||(e.href=this.linkService.getAnchorUrl("")),e.className="internalLink",!this._fieldObjects)return(0,a.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(n||(e.onclick=()=>!1));e.onclick=()=>{n&&n();const{fields:e,refs:o,include:s}=t,r=[];if(0!==e.length||0!==o.length){const t=new Set(o);for(const n of e){const e=this._fieldObjects[n]||[];for(const{id:n}of e)t.add(n)}for(const e of Object.values(this._fieldObjects))for(const n of e)t.has(n.id)===s&&r.push(n)}else for(const e of Object.values(this._fieldObjects))r.push(...e);const i=this.annotationStorage,f=[];for(const e of r){const{id:t}=e;switch(f.push(t),e.type){case"text":{const n=e.defaultValue||"";i.setValue(t,{value:n});break}case"checkbox":case"radiobutton":{const n=e.defaultValue===e.exportValues;i.setValue(t,{value:n});break}case"combobox":case"listbox":{const n=e.defaultValue||"";i.setValue(t,{value:n});break}default:continue}const n=document.querySelector(`[data-element-id="${t}"]`);n&&(c.has(n)?n.dispatchEvent(new Event("resetform")):(0,a.warn)(`_bindResetFormAction - element not allowed: ${t}`))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:f,name:"ResetForm"}}),!1}}}class h extends _{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str)})}render(){this.container.className="textAnnotation";const e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(e,this.data),this.container.append(e),this.container}}class m extends _{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}_getKeyModifier(e){const{isWin:t,isMac:n}=_.platform;return t&&e.ctrlKey||n&&e.metaKey}_setEventListener(e,t,n,a){t.includes("mouse")?e.addEventListener(t,(e=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:a(e),shift:e.shiftKey,modifier:this._getKeyModifier(e)}})})):e.addEventListener(t,(e=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:a(e)}})}))}_setEventListeners(e,t,n){for(const[a,o]of t)("Action"===o||this.data.actions?.[o])&&this._setEventListener(e,a,o,n)}_setBackgroundColor(e){const t=this.data.backgroundColor||null;e.style.backgroundColor=null===t?"transparent":a.Util.makeHexColor(t[0],t[1],t[2])}_setTextStyle(e){const t=["left","center","right"],{fontColor:n}=this.data.defaultAppearanceData,o=this.data.defaultAppearanceData.fontSize||9,s=e.style;let r;if(this.data.multiLine){const e=Math.abs(this.data.rect[3]-this.data.rect[1]),t=e/(Math.round(e/(a.LINE_FACTOR*o))||1);r=Math.min(o,Math.round(t/a.LINE_FACTOR))}else{const e=Math.abs(this.data.rect[3]-this.data.rect[1]);r=Math.min(o,Math.round(e/a.LINE_FACTOR))}s.fontSize=`calc(${r}px * var(--scale-factor))`,s.color=a.Util.makeHexColor(n[0],n[1],n[2]),null!==this.data.textAlignment&&(s.textAlign=t[this.data.textAlignment])}_setRequired(e,t){t?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",t)}}class p extends m{constructor(e){super(e,{isRenderable:e.renderForms||!e.data.hasAppearance&&!!e.data.fieldValue})}setPropertyOnSiblings(e,t,n,a){const o=this.annotationStorage;for(const s of this._getElementsByName(e.name,e.id))s.domElement&&(s.domElement[t]=n),o.setValue(s.id,{[a]:n})}render(){const e=this.annotationStorage,t=this.data.id;this.container.className="textWidgetAnnotation";let n=null;if(this.renderForms){const a=e.getValue(t,{value:this.data.fieldValue}),o=a.formattedValue||a.value||"",s={userValue:o,formattedValue:null,valueOnFocus:""};this.data.multiLine?(n=document.createElement("textarea"),n.textContent=o,this.data.doNotScroll&&(n.style.overflowY="hidden")):(n=document.createElement("input"),n.type="text",n.setAttribute("value",o),this.data.doNotScroll&&(n.style.overflowX="hidden")),c.add(n),n.setAttribute("data-element-id",t),n.disabled=this.data.readOnly,n.name=this.data.fieldName,n.tabIndex=f,this._setRequired(n,this.data.required),n.addEventListener("input",(a=>{e.setValue(t,{value:a.target.value}),this.setPropertyOnSiblings(n,"value",a.target.value,"value")})),n.addEventListener("resetform",(e=>{const t=this.data.defaultFieldValue??"";n.value=s.userValue=t,s.formattedValue=null}));let r=e=>{const{formattedValue:t}=s;null!=t&&(e.target.value=t),e.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){n.addEventListener("focus",(e=>{s.userValue&&(e.target.value=s.userValue),s.valueOnFocus=e.target.value})),n.addEventListener("updatefromsandbox",(n=>{const a={value(n){s.userValue=n.detail.value??"",e.setValue(t,{value:s.userValue.toString()}),n.target.value=s.userValue},formattedValue(n){const{formattedValue:a}=n.detail;s.formattedValue=a,null!=a&&n.target!==document.activeElement&&(n.target.value=a),e.setValue(t,{formattedValue:a})},selRange(e){e.target.setSelectionRange(...e.detail.selRange)}};this._dispatchEventFromSandbox(a,n)})),n.addEventListener("keydown",(e=>{let n=-1;if("Escape"===e.key?n=0:"Enter"===e.key?n=2:"Tab"===e.key&&(n=3),-1===n)return;const{value:a}=e.target;s.valueOnFocus!==a&&(s.userValue=a,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:a,willCommit:!0,commitKey:n,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))}));const a=r;r=null,n.addEventListener("blur",(e=>{const{value:n}=e.target;s.userValue=n,this._mouseState.isDown&&s.valueOnFocus!==n&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:n,willCommit:!0,commitKey:1,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}),a(e)})),this.data.actions?.Keystroke&&n.addEventListener("beforeinput",(e=>{const{data:n,target:a}=e,{value:o,selectionStart:s,selectionEnd:r}=a;let i=s,f=r;switch(e.inputType){case"deleteWordBackward":{const e=o.substring(0,s).match(/\w*[^\w]*$/);e&&(i-=e[0].length);break}case"deleteWordForward":{const e=o.substring(s).match(/^[^\w]*\w*/);e&&(f+=e[0].length);break}case"deleteContentBackward":s===r&&(i-=1);break;case"deleteContentForward":s===r&&(f+=1)}e.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:o,change:n||"",willCommit:!1,selStart:i,selEnd:f}})})),this._setEventListeners(n,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.value))}if(r&&n.addEventListener("blur",r),null!==this.data.maxLen&&(n.maxLength=this.data.maxLen),this.data.comb){const e=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;n.classList.add("comb"),n.style.letterSpacing=`calc(${e}px * var(--scale-factor) - 1ch)`}}else n=document.createElement("div"),n.textContent=this.data.fieldValue,n.style.verticalAlign="middle",n.style.display="table-cell";return this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class g extends m{constructor(e){super(e,{isRenderable:e.renderForms})}render(){const e=this.annotationStorage,t=this.data,n=t.id;let a=e.getValue(n,{value:t.exportValue===t.fieldValue}).value;"string"==typeof a&&(a="Off"!==a,e.setValue(n,{value:a})),this.container.className="buttonWidgetAnnotation checkBox";const o=document.createElement("input");return c.add(o),o.setAttribute("data-element-id",n),o.disabled=t.readOnly,this._setRequired(o,this.data.required),o.type="checkbox",o.name=t.fieldName,a&&o.setAttribute("checked",!0),o.setAttribute("exportValue",t.exportValue),o.tabIndex=f,o.addEventListener("change",(a=>{const{name:o,checked:s}=a.target;for(const a of this._getElementsByName(o,n)){const n=s&&a.exportValue===t.exportValue;a.domElement&&(a.domElement.checked=n),e.setValue(a.id,{value:n})}e.setValue(n,{value:s})})),o.addEventListener("resetform",(e=>{const n=t.defaultFieldValue||"Off";e.target.checked=n===t.exportValue})),this.enableScripting&&this.hasJSActions&&(o.addEventListener("updatefromsandbox",(t=>{const a={value(t){t.target.checked="Off"!==t.detail.value,e.setValue(n,{value:t.target.checked})}};this._dispatchEventFromSandbox(a,t)})),this._setEventListeners(o,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))),this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class b extends m{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.className="buttonWidgetAnnotation radioButton";const e=this.annotationStorage,t=this.data,n=t.id;let a=e.getValue(n,{value:t.fieldValue===t.buttonValue}).value;"string"==typeof a&&(a=a!==t.buttonValue,e.setValue(n,{value:a}));const o=document.createElement("input");if(c.add(o),o.setAttribute("data-element-id",n),o.disabled=t.readOnly,this._setRequired(o,this.data.required),o.type="radio",o.name=t.fieldName,a&&o.setAttribute("checked",!0),o.tabIndex=f,o.addEventListener("change",(t=>{const{name:a,checked:o}=t.target;for(const t of this._getElementsByName(a,n))e.setValue(t.id,{value:!1});e.setValue(n,{value:o})})),o.addEventListener("resetform",(e=>{const n=t.defaultFieldValue;e.target.checked=null!=n&&n===t.buttonValue})),this.enableScripting&&this.hasJSActions){const a=t.buttonValue;o.addEventListener("updatefromsandbox",(t=>{const o={value:t=>{const o=a===t.detail.value;for(const a of this._getElementsByName(t.target.name)){const t=o&&a.id===n;a.domElement&&(a.domElement.checked=t),e.setValue(a.id,{value:t})}}};this._dispatchEventFromSandbox(o,t)})),this._setEventListeners(o,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))}return this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class y extends d{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){const e=super.render();e.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(e.title=this.data.alternativeText);const t=e.lastChild;return this.enableScripting&&this.hasJSActions&&t&&(this._setDefaultPropertiesFromJS(t),t.addEventListener("updatefromsandbox",(e=>{this._dispatchEventFromSandbox({},e)}))),e}}class v extends m{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.className="choiceWidgetAnnotation";const e=this.annotationStorage,t=this.data.id,n=e.getValue(t,{value:this.data.fieldValue}),a=document.createElement("select");c.add(a),a.setAttribute("data-element-id",t),a.disabled=this.data.readOnly,this._setRequired(a,this.data.required),a.name=this.data.fieldName,a.tabIndex=f;let o=this.data.combo&&this.data.options.length>0;this.data.combo||(a.size=this.data.options.length,this.data.multiSelect&&(a.multiple=!0)),a.addEventListener("resetform",(e=>{const t=this.data.defaultFieldValue;for(const e of a.options)e.selected=e.value===t}));for(const e of this.data.options){const t=document.createElement("option");t.textContent=e.displayValue,t.value=e.exportValue,n.value.includes(e.exportValue)&&(t.setAttribute("selected",!0),o=!1),a.append(t)}let s=null;if(o){const e=document.createElement("option");e.value=" ",e.setAttribute("hidden",!0),e.setAttribute("selected",!0),a.prepend(e),s=()=>{e.remove(),a.removeEventListener("input",s),s=null},a.addEventListener("input",s)}const r=(e,t)=>{const n=t?"value":"textContent",a=e.target.options;return e.target.multiple?Array.prototype.filter.call(a,(e=>e.selected)).map((e=>e[n])):-1===a.selectedIndex?null:a[a.selectedIndex][n]},i=e=>{const t=e.target.options;return Array.prototype.map.call(t,(e=>({displayValue:e.textContent,exportValue:e.value})))};return this.enableScripting&&this.hasJSActions?(a.addEventListener("updatefromsandbox",(n=>{const o={value(n){s?.();const o=n.detail.value,i=new Set(Array.isArray(o)?o:[o]);for(const e of a.options)e.selected=i.has(e.value);e.setValue(t,{value:r(n,!0)})},multipleSelection(e){a.multiple=!0},remove(n){const o=a.options,s=n.detail.remove;o[s].selected=!1,a.remove(s),o.length>0&&-1===Array.prototype.findIndex.call(o,(e=>e.selected))&&(o[0].selected=!0),e.setValue(t,{value:r(n,!0),items:i(n)})},clear(n){for(;0!==a.length;)a.remove(0);e.setValue(t,{value:null,items:[]})},insert(n){const{index:o,displayValue:s,exportValue:f}=n.detail.insert,c=a.children[o],l=document.createElement("option");l.textContent=s,l.value=f,c?c.before(l):a.append(l),e.setValue(t,{value:r(n,!0),items:i(n)})},items(n){const{items:o}=n.detail;for(;0!==a.length;)a.remove(0);for(const e of o){const{displayValue:t,exportValue:n}=e,o=document.createElement("option");o.textContent=t,o.value=n,a.append(o)}a.options.length>0&&(a.options[0].selected=!0),e.setValue(t,{value:r(n,!0),items:i(n)})},indices(n){const a=new Set(n.detail.indices);for(const e of n.target.options)e.selected=a.has(e.index);e.setValue(t,{value:r(n,!0)})},editable(e){e.target.disabled=!e.detail.editable}};this._dispatchEventFromSandbox(o,n)})),a.addEventListener("input",(n=>{const a=r(n,!0),o=r(n,!1);e.setValue(t,{value:a}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:o,changeEx:a,willCommit:!0,commitKey:1,keyDown:!1}})})),this._setEventListeners(a,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],(e=>e.target.checked))):a.addEventListener("input",(function(n){e.setValue(t,{value:r(n,!0)})})),this.data.combo&&this._setTextStyle(a),this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.append(a),this.container}}class w extends _{constructor(e){super(e,{isRenderable:!!(e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str)})}render(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;const e=`[data-annotation-id="${this.data.parentId}"]`,t=this.layer.querySelectorAll(e);if(0===t.length)return this.container;const n=new k({container:this.container,trigger:Array.from(t),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),o=this.page,s=a.Util.normalizeRect([this.data.parentRect[0],o.view[3]-this.data.parentRect[1]+o.view[1],this.data.parentRect[2],o.view[3]-this.data.parentRect[3]+o.view[1]]),r=s[0]+this.data.parentRect[2]-this.data.parentRect[0],i=s[1],[f,c,l,u]=this.viewport.viewBox,_=l-f,d=u-c;return this.container.style.left=100*(r-f)/_+"%",this.container.style.top=100*(i-c)/d+"%",this.container.append(n.render()),this.container}}class k{constructor(e){this.container=e.container,this.trigger=e.trigger,this.color=e.color,this.titleObj=e.titleObj,this.modificationDate=e.modificationDate,this.contentsObj=e.contentsObj,this.richText=e.richText,this.hideWrapper=e.hideWrapper||!1,this.pinned=!1}render(){const e=document.createElement("div");e.className="popupWrapper",this.hideElement=this.hideWrapper?e:this.container,this.hideElement.hidden=!0;const t=document.createElement("div");t.className="popup";const n=this.color;if(n){const e=.7*(255-n[0])+n[0],o=.7*(255-n[1])+n[1],s=.7*(255-n[2])+n[2];t.style.backgroundColor=a.Util.makeHexColor(0|e,0|o,0|s)}const s=document.createElement("h1");s.dir=this.titleObj.dir,s.textContent=this.titleObj.str,t.append(s);const r=o.PDFDateString.toDateObject(this.modificationDate);if(r){const e=document.createElement("span");e.className="popupDate",e.textContent="{{date}}, {{time}}",e.dataset.l10nId="annotation_date_string",e.dataset.l10nArgs=JSON.stringify({date:r.toLocaleDateString(),time:r.toLocaleTimeString()}),t.append(e)}if(!this.richText?.str||this.contentsObj?.str&&this.contentsObj.str!==this.richText.str){const e=this._formatContents(this.contentsObj);t.append(e)}else i.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:t}),t.lastChild.className="richText popupContent";Array.isArray(this.trigger)||(this.trigger=[this.trigger]);for(const e of this.trigger)e.addEventListener("click",this._toggle.bind(this)),e.addEventListener("mouseover",this._show.bind(this,!1)),e.addEventListener("mouseout",this._hide.bind(this,!1));return t.addEventListener("click",this._hide.bind(this,!0)),e.append(t),e}_formatContents({str:e,dir:t}){const n=document.createElement("p");n.className="popupContent",n.dir=t;const a=e.split(/(?:\r\n?|\n)/);for(let e=0,t=a.length;e<t;++e){const o=a[e];n.append(document.createTextNode(o)),e<t-1&&n.append(document.createElement("br"))}return n}_toggle(){this.pinned?this._hide(!0):this._show(!0)}_show(e=!1){e&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex+=1)}_hide(e=!0){e&&(this.pinned=!1),this.hideElement.hidden||this.pinned||(this.hideElement.hidden=!0,this.container.style.zIndex-=1)}}class E extends _{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0})}render(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class S extends _{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0})}render(){this.container.className="lineAnnotation";const e=this.data,{width:t,height:n}=l(e.rect),a=this.svgFactory.create(t,n,!0),o=this.svgFactory.createElement("svg:line");return o.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),o.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),o.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),o.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),o.setAttribute("stroke-width",e.borderStyle.width||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),a.append(o),this.container.append(a),this._createPopup(o,e),this.container}}class C extends _{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0})}render(){this.container.className="squareAnnotation";const e=this.data,{width:t,height:n}=l(e.rect),a=this.svgFactory.create(t,n,!0),o=e.borderStyle.width,s=this.svgFactory.createElement("svg:rect");return s.setAttribute("x",o/2),s.setAttribute("y",o/2),s.setAttribute("width",t-o),s.setAttribute("height",n-o),s.setAttribute("stroke-width",o||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","transparent"),a.append(s),this.container.append(a),this._createPopup(s,e),this.container}}class A extends _{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0})}render(){this.container.className="circleAnnotation";const e=this.data,{width:t,height:n}=l(e.rect),a=this.svgFactory.create(t,n,!0),o=e.borderStyle.width,s=this.svgFactory.createElement("svg:ellipse");return s.setAttribute("cx",t/2),s.setAttribute("cy",n/2),s.setAttribute("rx",t/2-o/2),s.setAttribute("ry",n/2-o/2),s.setAttribute("stroke-width",o||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","transparent"),a.append(s),this.container.append(a),this._createPopup(s,e),this.container}}class x extends _{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const e=this.data,{width:t,height:n}=l(e.rect),a=this.svgFactory.create(t,n,!0);let o=[];for(const t of e.vertices){const n=t.x-e.rect[0],a=e.rect[3]-t.y;o.push(n+","+a)}o=o.join(" ");const s=this.svgFactory.createElement(this.svgElementName);return s.setAttribute("points",o),s.setAttribute("stroke-width",e.borderStyle.width||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","transparent"),a.append(s),this.container.append(a),this._createPopup(s,e),this.container}}class P extends x{constructor(e){super(e),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class T extends _{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0})}render(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class M extends _{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const e=this.data,{width:t,height:n}=l(e.rect),a=this.svgFactory.create(t,n,!0);for(const t of e.inkLists){let n=[];for(const a of t){const t=a.x-e.rect[0],o=e.rect[3]-a.y;n.push(`${t},${o}`)}n=n.join(" ");const o=this.svgFactory.createElement(this.svgElementName);o.setAttribute("points",n),o.setAttribute("stroke-width",e.borderStyle.width||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),this._createPopup(o,e),a.append(o)}return this.container.append(a),this.container}}class R extends _{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.className="highlightAnnotation",this.container)}}class L extends _{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.className="underlineAnnotation",this.container)}}class I extends _{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.className="squigglyAnnotation",this.container)}}class O extends _{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.className="strikeoutAnnotation",this.container)}}class D extends _{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0})}render(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class F extends _{constructor(e){super(e,{isRenderable:!0});const{filename:t,content:n}=this.data.file;this.filename=(0,o.getFilenameFromUrl)(t),this.content=n,this.linkService.eventBus?.dispatch("fileattachmentannotation",{source:this,filename:t,content:n})}render(){this.container.className="fileAttachmentAnnotation";const e=document.createElement("div");return e.className="popupTriggerArea",e.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&(this.data.titleObj?.str||this.data.contentsObj?.str||this.data.richText)&&this._createPopup(e,this.data),this.container.append(e),this.container}_download(){this.downloadManager?.openOrDownloadData(this.container,this.content,this.filename)}}t.AnnotationLayer=class{static render(e){const{annotations:t,div:n,viewport:r}=e;this.#pt(n,r);const i=[],f=[];for(const e of t){if(!e)continue;if(e.annotationType===a.AnnotationType.POPUP){f.push(e);continue}const{width:t,height:n}=l(e.rect);t<=0||n<=0||i.push(e)}f.length&&i.push(...f);for(const t of i){const a=u.create({data:t,layer:n,page:e.page,viewport:r,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:!1!==e.renderForms,svgFactory:new o.DOMSVGFactory,annotationStorage:e.annotationStorage||new s.AnnotationStorage,enableScripting:e.enableScripting,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,mouseState:e.mouseState||{isDown:!1}});if(a.isRenderable){const e=a.render();if(t.hidden&&(e.style.visibility="hidden"),Array.isArray(e))for(const t of e)n.append(t);else a instanceof w?n.prepend(e):n.append(e)}}this.#gt(n,e.annotationCanvasMap)}static update(e){const{annotationCanvasMap:t,div:n,viewport:a}=e;this.#pt(n,a),this.#gt(n,t),n.hidden=!1}static#pt(e,{width:t,height:n,rotation:a}){const{style:o}=e,s=a%180!=0,r=Math.floor(t)+"px",i=Math.floor(n)+"px";o.width=s?i:r,o.height=s?r:i,e.setAttribute("data-main-rotation",a)}static#gt(e,t){if(t){for(const[n,a]of t){const t=e.querySelector(`[data-annotation-id="${n}"]`);if(!t)continue;const{firstChild:o}=t;o?"CANVAS"===o.nodeName?o.replaceWith(a):o.before(a):t.append(a)}t.clear()}}}},(e,t)=>{function n(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void 0,t.ColorConverters=class{static CMYK_G([e,t,n,a]){return["G",1-Math.min(1,.3*e+.59*n+.11*t+a)]}static G_CMYK([e]){return["CMYK",0,0,0,1-e]}static G_RGB([e]){return["RGB",e,e,e]}static G_HTML([e]){const t=n(e);return`#${t}${t}${t}`}static RGB_G([e,t,n]){return["G",.3*e+.59*t+.11*n]}static RGB_HTML([e,t,a]){return`#${n(e)}${n(t)}${n(a)}`}static T_HTML(){return"#00000000"}static CMYK_RGB([e,t,n,a]){return["RGB",1-Math.min(1,e+a),1-Math.min(1,n+a),1-Math.min(1,t+a)]}static CMYK_HTML(e){const t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}static RGB_CMYK([e,t,n]){const a=1-e,o=1-t,s=1-n;return["CMYK",a,o,s,Math.min(a,o,s)]}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0;var a=n(20);t.XfaLayer=class{static setupStorage(e,t,n,a,o){const s=a.getValue(t,{value:null});switch(n.name){case"textarea":if(null!==s.value&&(e.textContent=s.value),"print"===o)break;e.addEventListener("input",(e=>{a.setValue(t,{value:e.target.value})}));break;case"input":if("radio"===n.attributes.type||"checkbox"===n.attributes.type){if(s.value===n.attributes.xfaOn?e.setAttribute("checked",!0):s.value===n.attributes.xfaOff&&e.removeAttribute("checked"),"print"===o)break;e.addEventListener("change",(e=>{a.setValue(t,{value:e.target.checked?e.target.getAttribute("xfaOn"):e.target.getAttribute("xfaOff")})}))}else{if(null!==s.value&&e.setAttribute("value",s.value),"print"===o)break;e.addEventListener("input",(e=>{a.setValue(t,{value:e.target.value})}))}break;case"select":if(null!==s.value)for(const e of n.children)e.attributes.value===s.value&&(e.attributes.selected=!0);e.addEventListener("input",(e=>{const n=e.target.options,o=-1===n.selectedIndex?"":n[n.selectedIndex].value;a.setValue(t,{value:o})}))}}static setAttributes({html:e,element:t,storage:n=null,intent:a,linkService:o}){const{attributes:s}=t,r=e instanceof HTMLAnchorElement;"radio"===s.type&&(s.name=`${s.name}-${a}`);for(const[t,n]of Object.entries(s))if(null!=n)switch(t){case"class":n.length&&e.setAttribute(t,n.join(" "));break;case"dataId":break;case"id":e.setAttribute("data-element-id",n);break;case"style":Object.assign(e.style,n);break;case"textContent":e.textContent=n;break;default:(!r||"href"!==t&&"newWindow"!==t)&&e.setAttribute(t,n)}r&&o.addLinkAttributes(e,s.href,s.newWindow),n&&s.dataId&&this.setupStorage(e,s.dataId,t,n)}static render(e){const t=e.annotationStorage,n=e.linkService,o=e.xfaHtml,s=e.intent||"display",r=document.createElement(o.name);o.attributes&&this.setAttributes({html:r,element:o,intent:s,linkService:n});const i=[[o,-1,r]],f=e.div;if(f.append(r),e.viewport){const t=`matrix(${e.viewport.transform.join(",")})`;f.style.transform=t}"richText"!==s&&f.setAttribute("class","xfaLayer xfaFont");const c=[];for(;i.length>0;){const[e,o,r]=i.at(-1);if(o+1===e.children.length){i.pop();continue}const f=e.children[++i.at(-1)[1]];if(null===f)continue;const{name:l}=f;if("#text"===l){const e=document.createTextNode(f.value);c.push(e),r.append(e);continue}let u;if(u=f?.attributes?.xmlns?document.createElementNS(f.attributes.xmlns,l):document.createElement(l),r.append(u),f.attributes&&this.setAttributes({html:u,element:f,storage:t,intent:s,linkService:n}),f.children&&f.children.length>0)i.push([f,-1,u]);else if(f.value){const e=document.createTextNode(f.value);a.XfaText.shouldBuildText(l)&&c.push(e),u.append(e)}}for(const e of f.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))e.setAttribute("readOnly",!0);return{textDivs:c}}static update(e){const t=`matrix(${e.viewport.transform.join(",")})`;e.div.style.transform=t,e.div.hidden=!1}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerRenderTask=void 0,t.renderTextLayer=function(e){const t=new d({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});return t._render(e.timeout),t};var a=n(1),o=n(4);const s=30,r=new Map,i=/^\s+$/g;function f(e,t,n,o){const f=document.createElement("span"),c=e._enhanceTextSelection?{angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1,fontSize:0}:{angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,fontSize:0};e._textDivs.push(f);const l=a.Util.transform(e._viewport.transform,t.transform);let u=Math.atan2(l[1],l[0]);const _=n[t.fontName];_.vertical&&(u+=Math.PI/2);const d=Math.hypot(l[2],l[3]),h=d*function(e,t){const n=r.get(e);if(n)return n;t.save(),t.font=`30px ${e}`;const a=t.measureText("");let o=a.fontBoundingBoxAscent,i=Math.abs(a.fontBoundingBoxDescent);if(o){t.restore();const n=o/(o+i);return r.set(e,n),n}t.strokeStyle="red",t.clearRect(0,0,s,s),t.strokeText("g",0,0);let f=t.getImageData(0,0,s,s).data;i=0;for(let e=f.length-1-3;e>=0;e-=4)if(f[e]>0){i=Math.ceil(e/4/s);break}t.clearRect(0,0,s,s),t.strokeText("A",0,s),f=t.getImageData(0,0,s,s).data,o=0;for(let e=0,t=f.length;e<t;e+=4)if(f[e]>0){o=s-Math.floor(e/4/s);break}if(t.restore(),o){const t=o/(o+i);return r.set(e,t),t}return r.set(e,.8),.8}(_.fontFamily,o);let m,p;0===u?(m=l[4],p=l[5]-h):(m=l[4]+h*Math.sin(u),p=l[5]-h*Math.cos(u)),f.style.left=`${m}px`,f.style.top=`${p}px`,f.style.fontSize=`${d}px`,f.style.fontFamily=_.fontFamily,c.fontSize=d,f.setAttribute("role","presentation"),f.textContent=t.str,f.dir=t.dir,e._fontInspectorEnabled&&(f.dataset.fontName=t.fontName),0!==u&&(c.angle=u*(180/Math.PI));let g=!1;if(t.str.length>1||e._enhanceTextSelection&&i.test(t.str))g=!0;else if(" "!==t.str&&t.transform[0]!==t.transform[3]){const e=Math.abs(t.transform[0]),n=Math.abs(t.transform[3]);e!==n&&Math.max(e,n)/Math.min(e,n)>1.5&&(g=!0)}if(g&&(_.vertical?c.canvasWidth=t.height*e._viewport.scale:c.canvasWidth=t.width*e._viewport.scale),e._textDivProperties.set(f,c),e._textContentStream&&e._layoutText(f),e._enhanceTextSelection&&c.hasText){let n=1,o=0;0!==u&&(n=Math.cos(u),o=Math.sin(u));const s=(_.vertical?t.height:t.width)*e._viewport.scale,r=d;let i,c;0!==u?(i=[n,o,-o,n,m,p],c=a.Util.getAxialAlignedBoundingBox([0,0,s,r],i)):c=[m,p,m+s,p+r],e._bounds.push({left:c[0],top:c[1],right:c[2],bottom:c[3],div:f,size:[s,r],m:i})}}function c(e){if(e._canceled)return;const t=e._textDivs,n=e._capability,a=t.length;if(a>1e5)return e._renderingDone=!0,void n.resolve();if(!e._textContentStream)for(let n=0;n<a;n++)e._layoutText(t[n]);e._renderingDone=!0,n.resolve()}function l(e,t,n){let a=0;for(let o=0;o<n;o++){const n=e[t++];n>0&&(a=a?Math.min(n,a):n)}return a}function u(e){const t=e._bounds,n=e._viewport,o=function(e,t,n){const a=n.map((function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}}));_(e,a);const o=new Array(n.length);for(const e of a){const t=e.index;o[t]={left:e.x1New,top:0,right:e.x2New,bottom:0}}n.map((function(t,n){const s=o[n],r=a[n];r.x1=t.top,r.y1=e-s.right,r.x2=t.bottom,r.y2=e-s.left,r.index=n,r.x1New=void 0,r.x2New=void 0})),_(t,a);for(const e of a){const t=e.index;o[t].top=e.x1New,o[t].bottom=e.x2New}return o}(n.width,n.height,t);for(let n=0;n<o.length;n++){const s=t[n].div,r=e._textDivProperties.get(s);if(0===r.angle){r.paddingLeft=t[n].left-o[n].left,r.paddingTop=t[n].top-o[n].top,r.paddingRight=o[n].right-t[n].right,r.paddingBottom=o[n].bottom-t[n].bottom,e._textDivProperties.set(s,r);continue}const i=o[n],f=t[n],c=f.m,u=c[0],_=c[1],d=[[0,0],[0,f.size[1]],[f.size[0],0],f.size],h=new Float64Array(64);for(let e=0,t=d.length;e<t;e++){const t=a.Util.applyTransform(d[e],c);h[e+0]=u&&(i.left-t[0])/u,h[e+4]=_&&(i.top-t[1])/_,h[e+8]=u&&(i.right-t[0])/u,h[e+12]=_&&(i.bottom-t[1])/_,h[e+16]=_&&(i.left-t[0])/-_,h[e+20]=u&&(i.top-t[1])/u,h[e+24]=_&&(i.right-t[0])/-_,h[e+28]=u&&(i.bottom-t[1])/u,h[e+32]=u&&(i.left-t[0])/-u,h[e+36]=_&&(i.top-t[1])/-_,h[e+40]=u&&(i.right-t[0])/-u,h[e+44]=_&&(i.bottom-t[1])/-_,h[e+48]=_&&(i.left-t[0])/_,h[e+52]=u&&(i.top-t[1])/-u,h[e+56]=_&&(i.right-t[0])/_,h[e+60]=u&&(i.bottom-t[1])/-u}const m=1+Math.min(Math.abs(u),Math.abs(_));r.paddingLeft=l(h,32,16)/m,r.paddingTop=l(h,48,16)/m,r.paddingRight=l(h,0,16)/m,r.paddingBottom=l(h,16,16)/m,e._textDivProperties.set(s,r)}}function _(e,t){t.sort((function(e,t){return e.x1-t.x1||e.index-t.index}));const n=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];for(const e of t){let t=0;for(;t<n.length&&n[t].end<=e.y1;)t++;let a,o,s=n.length-1;for(;s>=0&&n[s].start>=e.y2;)s--;let r,i,f=-1/0;for(r=t;r<=s;r++){let t;a=n[r],o=a.boundary,t=o.x2>e.x1?o.index>e.index?o.x1New:e.x1:void 0===o.x2New?(o.x2+e.x1)/2:o.x2New,t>f&&(f=t)}for(e.x1New=f,r=t;r<=s;r++)a=n[r],o=a.boundary,void 0===o.x2New?o.x2>e.x1?o.index>e.index&&(o.x2New=o.x2):o.x2New=f:o.x2New>f&&(o.x2New=Math.max(f,o.x2));const c=[];let l=null;for(r=t;r<=s;r++){a=n[r],o=a.boundary;const t=o.x2>e.x2?o:e;l===t?c.at(-1).end=a.end:(c.push({start:a.start,end:a.end,boundary:t}),l=t)}for(n[t].start<e.y1&&(c[0].start=e.y1,c.unshift({start:n[t].start,end:e.y1,boundary:n[t].boundary})),e.y2<n[s].end&&(c.at(-1).end=e.y2,c.push({start:e.y2,end:n[s].end,boundary:n[s].boundary})),r=t;r<=s;r++){if(a=n[r],o=a.boundary,void 0!==o.x2New)continue;let e=!1;for(i=t-1;!e&&i>=0&&n[i].start>=o.y1;i--)e=n[i].boundary===o;for(i=s+1;!e&&i<n.length&&n[i].end<=o.y2;i++)e=n[i].boundary===o;for(i=0;!e&&i<c.length;i++)e=c[i].boundary===o;e||(o.x2New=f)}Array.prototype.splice.apply(n,[t,s-t+1,...c])}for(const t of n){const n=t.boundary;void 0===n.x2New&&(n.x2New=Math.max(e,n.x2))}}class d{constructor({textContent:e,textContentStream:t,container:n,viewport:s,textDivs:r,textContentItemsStr:i,enhanceTextSelection:f}){f&&(0,o.deprecated)("The `enhanceTextSelection` functionality will be removed in the future."),this._textContent=e,this._textContentStream=t,this._container=n,this._document=n.ownerDocument,this._viewport=s,this._textDivs=r||[],this._textContentItemsStr=i||[],this._enhanceTextSelection=!!f,this._fontInspectorEnabled=!!globalThis.FontInspector?.enabled,this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,a.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._devicePixelRatio=globalThis.devicePixelRatio||1,this._capability.promise.finally((()=>{this._enhanceTextSelection||(this._textDivProperties=null),this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)})).catch((()=>{}))}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new a.AbortException("TextLayer task cancelled.")).catch((()=>{})),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))}_processItems(e,t){for(let n=0,a=e.length;n<a;n++)if(void 0!==e[n].str)this._textContentItemsStr.push(e[n].str),f(this,e[n],t,this._layoutTextCtx);else if("beginMarkedContentProps"===e[n].type||"beginMarkedContent"===e[n].type){const t=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==e[n].id&&this._container.setAttribute("id",`${e[n].id}`),t.append(this._container)}else"endMarkedContent"===e[n].type&&(this._container=this._container.parentNode)}_layoutText(e){const t=this._textDivProperties.get(e);let n="";if(0!==t.canvasWidth&&t.hasText){const{fontFamily:a}=e.style,{fontSize:o}=t;o===this._layoutTextLastFontSize&&a===this._layoutTextLastFontFamily||(this._layoutTextCtx.font=`${o*this._devicePixelRatio}px ${a}`,this._layoutTextLastFontSize=o,this._layoutTextLastFontFamily=a);const{width:s}=this._layoutTextCtx.measureText(e.textContent);if(s>0){const e=this._devicePixelRatio*t.canvasWidth/s;this._enhanceTextSelection&&(t.scale=e),n=`scaleX(${e})`}}if(0!==t.angle&&(n=`rotate(${t.angle}deg) ${n}`),n.length>0&&(this._enhanceTextSelection&&(t.originalTransform=n),e.style.transform=n),t.hasText&&this._container.append(e),t.hasEOL){const e=document.createElement("br");e.setAttribute("role","presentation"),this._container.append(e)}}_render(e=0){const t=(0,a.createPromiseCapability)();let n=Object.create(null);const o=this._document.createElement("canvas");if(o.height=o.width=s,this._layoutTextCtx=o.getContext("2d",{alpha:!1}),this._textContent){const e=this._textContent.items,n=this._textContent.styles;this._processItems(e,n),t.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');{const e=()=>{this._reader.read().then((({value:a,done:o})=>{o?t.resolve():(Object.assign(n,a.styles),this._processItems(a.items,n),e())}),t.reject)};this._reader=this._textContentStream.getReader(),e()}}t.promise.then((()=>{n=null,e?this._renderTimer=setTimeout((()=>{c(this),this._renderTimer=null}),e):c(this)}),this._capability.reject)}expandTextDivs(e=!1){if(!this._enhanceTextSelection||!this._renderingDone)return;null!==this._bounds&&(u(this),this._bounds=null);const t=[],n=[];for(let a=0,o=this._textDivs.length;a<o;a++){const o=this._textDivs[a],s=this._textDivProperties.get(o);s.hasText&&(e?(t.length=0,n.length=0,s.originalTransform&&t.push(s.originalTransform),s.paddingTop>0?(n.push(`${s.paddingTop}px`),t.push(`translateY(${-s.paddingTop}px)`)):n.push(0),s.paddingRight>0?n.push(s.paddingRight/s.scale+"px"):n.push(0),s.paddingBottom>0?n.push(`${s.paddingBottom}px`):n.push(0),s.paddingLeft>0?(n.push(s.paddingLeft/s.scale+"px"),t.push(`translateX(${-s.paddingLeft/s.scale}px)`)):n.push(0),o.style.padding=n.join(" "),t.length&&(o.style.transform=t.join(" "))):(o.style.padding=null,o.style.transform=s.originalTransform))}}}t.TextLayerRenderTask=d},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var a=n(4),o=n(1),s=n(3);let r=class{constructor(){(0,o.unreachable)("Not implemented: SVGGraphics")}};t.SVGGraphics=r;{const c={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},l="http://www.w3.org/XML/1998/namespace",u="http://www.w3.org/1999/xlink",_=["butt","round","square"],d=["miter","round","bevel"],h=function(e,t="",n=!1){if(URL.createObjectURL&&"undefined"!=typeof Blob&&!n)return URL.createObjectURL(new Blob([e],{type:t}));const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let o=`data:${t};base64,`;for(let t=0,n=e.length;t<n;t+=3){const s=255&e[t],r=255&e[t+1],i=255&e[t+2];o+=a[s>>2]+a[(3&s)<<4|r>>4]+a[t+1<n?(15&r)<<2|i>>6:64]+a[t+2<n?63&i:64]}return o},m=function(){const e=new Uint8Array([137,80,78,71,13,10,26,10]),t=new Int32Array(256);for(let e=0;e<256;e++){let n=e;for(let e=0;e<8;e++)n=1&n?3988292384^n>>1&2147483647:n>>1&2147483647;t[e]=n}function n(e,n,a,o){let s=o;const r=n.length;a[s]=r>>24&255,a[s+1]=r>>16&255,a[s+2]=r>>8&255,a[s+3]=255&r,s+=4,a[s]=255&e.charCodeAt(0),a[s+1]=255&e.charCodeAt(1),a[s+2]=255&e.charCodeAt(2),a[s+3]=255&e.charCodeAt(3),s+=4,a.set(n,s),s+=n.length;const i=function(e,n,a){let o=-1;for(let s=n;s<a;s++){const n=255&(o^e[s]);o=o>>>8^t[n]}return-1^o}(a,o+4,s);a[s]=i>>24&255,a[s+1]=i>>16&255,a[s+2]=i>>8&255,a[s+3]=255&i}function a(e){let t=e.length;const n=65535,a=Math.ceil(t/n),o=new Uint8Array(2+t+5*a+4);let s=0;o[s++]=120,o[s++]=156;let r=0;for(;t>n;)o[s++]=0,o[s++]=255,o[s++]=255,o[s++]=0,o[s++]=0,o.set(e.subarray(r,r+n),s),s+=n,r+=n,t-=n;o[s++]=1,o[s++]=255&t,o[s++]=t>>8&255,o[s++]=255&~t,o[s++]=(65535&~t)>>8&255,o.set(e.subarray(r),s),s+=e.length-r;const i=function(e,t,n){let a=1,o=0;for(let s=t;s<n;++s)a=(a+(255&e[s]))%65521,o=(o+a)%65521;return o<<16|a}(e,0,e.length);return o[s++]=i>>24&255,o[s++]=i>>16&255,o[s++]=i>>8&255,o[s++]=255&i,o}function r(t,r,i,f){const c=t.width,l=t.height;let u,_,d;const m=t.data;switch(r){case o.ImageKind.GRAYSCALE_1BPP:_=0,u=1,d=c+7>>3;break;case o.ImageKind.RGB_24BPP:_=2,u=8,d=3*c;break;case o.ImageKind.RGBA_32BPP:_=6,u=8,d=4*c;break;default:throw new Error("invalid format")}const p=new Uint8Array((1+d)*l);let g=0,b=0;for(let e=0;e<l;++e)p[g++]=0,p.set(m.subarray(b,b+d),g),b+=d,g+=d;if(r===o.ImageKind.GRAYSCALE_1BPP&&f){g=0;for(let e=0;e<l;e++){g++;for(let e=0;e<d;e++)p[g++]^=255}}const y=new Uint8Array([c>>24&255,c>>16&255,c>>8&255,255&c,l>>24&255,l>>16&255,l>>8&255,255&l,u,_,0,0,0]),v=function(e){if(!s.isNodeJS)return a(e);try{let t;t=parseInt(process.versions.node)>=8?e:Buffer.from(e);const n=require$$5.deflateSync(t,{level:9});return n instanceof Uint8Array?n:new Uint8Array(n)}catch(e){(0,o.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+e)}return a(e)}(p),w=e.length+36+y.length+v.length,k=new Uint8Array(w);let E=0;return k.set(e,E),E+=e.length,n("IHDR",y,k,E),E+=12+y.length,n("IDATA",v,k,E),E+=12+v.length,n("IEND",new Uint8Array(0),k,E),h(k,"image/png",i)}return function(e,t,n){return r(e,void 0===e.kind?o.ImageKind.GRAYSCALE_1BPP:e.kind,t,n)}}();class p{constructor(){this.fontSizeScale=1,this.fontWeight=c.fontWeight,this.fontSize=0,this.textMatrix=o.IDENTITY_MATRIX,this.fontMatrix=o.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=o.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=c.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(e,t){this.x=e,this.y=t}}function i(e){if(Number.isInteger(e))return e.toString();const t=e.toFixed(10);let n=t.length-1;if("0"!==t[n])return t;do{n--}while("0"===t[n]);return t.substring(0,"."===t[n]?n:n+1)}function f(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":`scale(${i(e[0])} ${i(e[3])})`;if(e[0]===e[3]&&e[1]===-e[2])return`rotate(${i(180*Math.acos(e[0])/Math.PI)})`}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return`translate(${i(e[4])} ${i(e[5])})`;return`matrix(${i(e[0])} ${i(e[1])} ${i(e[2])} ${i(e[3])} ${i(e[4])} ${i(e[5])})`}let g=0,b=0,y=0;t.SVGGraphics=r=class{constructor(e,t,n=!1){(0,a.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new a.DOMSVGFactory,this.current=new p,this.transformMatrix=o.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!n,this._operatorIdMapping=[];for(const e in o.OPS)this._operatorIdMapping[o.OPS[e]]=e}save(){this.transformStack.push(this.transformMatrix);const e=this.current;this.extraStack.push(e),this.current=e.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(e){this.save(),this.executeOpTree(e),this.restore()}loadDependencies(e){const t=e.fnArray,n=e.argsArray;for(let e=0,a=t.length;e<a;e++)if(t[e]===o.OPS.dependency)for(const t of n[e]){const e=t.startsWith("g_")?this.commonObjs:this.objs,n=new Promise((n=>{e.get(t,n)}));this.current.dependencies.push(n)}return Promise.all(this.current.dependencies)}transform(e,t,n,a,s,r){const i=[e,t,n,a,s,r];this.transformMatrix=o.Util.transform(this.transformMatrix,i),this.tgrp=null}getSVG(e,t){this.viewport=t;const n=this._initialize(t);return this.loadDependencies(e).then((()=>(this.transformMatrix=o.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(e)),n)))}convertOpList(e){const t=this._operatorIdMapping,n=e.argsArray,a=e.fnArray,o=[];for(let e=0,s=a.length;e<s;e++){const s=a[e];o.push({fnId:s,fn:t[s],args:n[e]})}return function(e){let t=[];const n=[];for(const a of e)"save"!==a.fn?"restore"===a.fn?t=n.pop():t.push(a):(t.push({fnId:92,fn:"group",items:[]}),n.push(t),t=t.at(-1).items);return t}(o)}executeOpTree(e){for(const t of e){const e=t.fn,n=t.fnId,a=t.args;switch(0|n){case o.OPS.beginText:this.beginText();break;case o.OPS.dependency:break;case o.OPS.setLeading:this.setLeading(a);break;case o.OPS.setLeadingMoveText:this.setLeadingMoveText(a[0],a[1]);break;case o.OPS.setFont:this.setFont(a);break;case o.OPS.showText:case o.OPS.showSpacedText:this.showText(a[0]);break;case o.OPS.endText:this.endText();break;case o.OPS.moveText:this.moveText(a[0],a[1]);break;case o.OPS.setCharSpacing:this.setCharSpacing(a[0]);break;case o.OPS.setWordSpacing:this.setWordSpacing(a[0]);break;case o.OPS.setHScale:this.setHScale(a[0]);break;case o.OPS.setTextMatrix:this.setTextMatrix(a[0],a[1],a[2],a[3],a[4],a[5]);break;case o.OPS.setTextRise:this.setTextRise(a[0]);break;case o.OPS.setTextRenderingMode:this.setTextRenderingMode(a[0]);break;case o.OPS.setLineWidth:this.setLineWidth(a[0]);break;case o.OPS.setLineJoin:this.setLineJoin(a[0]);break;case o.OPS.setLineCap:this.setLineCap(a[0]);break;case o.OPS.setMiterLimit:this.setMiterLimit(a[0]);break;case o.OPS.setFillRGBColor:this.setFillRGBColor(a[0],a[1],a[2]);break;case o.OPS.setStrokeRGBColor:this.setStrokeRGBColor(a[0],a[1],a[2]);break;case o.OPS.setStrokeColorN:this.setStrokeColorN(a);break;case o.OPS.setFillColorN:this.setFillColorN(a);break;case o.OPS.shadingFill:this.shadingFill(a[0]);break;case o.OPS.setDash:this.setDash(a[0],a[1]);break;case o.OPS.setRenderingIntent:this.setRenderingIntent(a[0]);break;case o.OPS.setFlatness:this.setFlatness(a[0]);break;case o.OPS.setGState:this.setGState(a[0]);break;case o.OPS.fill:this.fill();break;case o.OPS.eoFill:this.eoFill();break;case o.OPS.stroke:this.stroke();break;case o.OPS.fillStroke:this.fillStroke();break;case o.OPS.eoFillStroke:this.eoFillStroke();break;case o.OPS.clip:this.clip("nonzero");break;case o.OPS.eoClip:this.clip("evenodd");break;case o.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case o.OPS.paintImageXObject:this.paintImageXObject(a[0]);break;case o.OPS.paintInlineImageXObject:this.paintInlineImageXObject(a[0]);break;case o.OPS.paintImageMaskXObject:this.paintImageMaskXObject(a[0]);break;case o.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(a[0],a[1]);break;case o.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case o.OPS.closePath:this.closePath();break;case o.OPS.closeStroke:this.closeStroke();break;case o.OPS.closeFillStroke:this.closeFillStroke();break;case o.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case o.OPS.nextLine:this.nextLine();break;case o.OPS.transform:this.transform(a[0],a[1],a[2],a[3],a[4],a[5]);break;case o.OPS.constructPath:this.constructPath(a[0],a[1]);break;case o.OPS.endPath:this.endPath();break;case 92:this.group(t.items);break;default:(0,o.warn)(`Unimplemented operator ${e}`)}}}setWordSpacing(e){this.current.wordSpacing=e}setCharSpacing(e){this.current.charSpacing=e}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(e,t,n,a,o,s){const r=this.current;r.textMatrix=r.lineMatrix=[e,t,n,a,o,s],r.textMatrixScale=Math.hypot(e,t),r.x=r.lineX=0,r.y=r.lineY=0,r.xcoords=[],r.ycoords=[],r.tspan=this.svgFactory.createElement("svg:tspan"),r.tspan.setAttributeNS(null,"font-family",r.fontFamily),r.tspan.setAttributeNS(null,"font-size",`${i(r.fontSize)}px`),r.tspan.setAttributeNS(null,"y",i(-r.y)),r.txtElement=this.svgFactory.createElement("svg:text"),r.txtElement.append(r.tspan)}beginText(){const e=this.current;e.x=e.lineX=0,e.y=e.lineY=0,e.textMatrix=o.IDENTITY_MATRIX,e.lineMatrix=o.IDENTITY_MATRIX,e.textMatrixScale=1,e.tspan=this.svgFactory.createElement("svg:tspan"),e.txtElement=this.svgFactory.createElement("svg:text"),e.txtgrp=this.svgFactory.createElement("svg:g"),e.xcoords=[],e.ycoords=[]}moveText(e,t){const n=this.current;n.x=n.lineX+=e,n.y=n.lineY+=t,n.xcoords=[],n.ycoords=[],n.tspan=this.svgFactory.createElement("svg:tspan"),n.tspan.setAttributeNS(null,"font-family",n.fontFamily),n.tspan.setAttributeNS(null,"font-size",`${i(n.fontSize)}px`),n.tspan.setAttributeNS(null,"y",i(-n.y))}showText(e){const t=this.current,n=t.font,a=t.fontSize;if(0===a)return;const s=t.fontSizeScale,r=t.charSpacing,u=t.wordSpacing,_=t.fontDirection,d=t.textHScale*_,h=n.vertical,m=h?1:-1,p=n.defaultVMetrics,g=a*t.fontMatrix[0];let b=0;for(const o of e){if(null===o){b+=_*u;continue}if("number"==typeof o){b+=m*o*a/1e3;continue}const e=(o.isSpace?u:0)+r,i=o.fontChar;let f,c,l,d=o.width;if(h){let e;const t=o.vmetric||p;e=o.vmetric?t[1]:.5*d,e=-e*g;const n=t[2]*g;d=t?-t[0]:d,f=e/s,c=(b+n)/s}else f=b/s,c=0;(o.isInFont||n.missingFile)&&(t.xcoords.push(t.x+f),h&&t.ycoords.push(-t.y+c),t.tspan.textContent+=i),l=h?d*g-e*_:d*g+e*_,b+=l}t.tspan.setAttributeNS(null,"x",t.xcoords.map(i).join(" ")),h?t.tspan.setAttributeNS(null,"y",t.ycoords.map(i).join(" ")):t.tspan.setAttributeNS(null,"y",i(-t.y)),h?t.y-=b:t.x+=b*d,t.tspan.setAttributeNS(null,"font-family",t.fontFamily),t.tspan.setAttributeNS(null,"font-size",`${i(t.fontSize)}px`),t.fontStyle!==c.fontStyle&&t.tspan.setAttributeNS(null,"font-style",t.fontStyle),t.fontWeight!==c.fontWeight&&t.tspan.setAttributeNS(null,"font-weight",t.fontWeight);const y=t.textRenderingMode&o.TextRenderingMode.FILL_STROKE_MASK;if(y===o.TextRenderingMode.FILL||y===o.TextRenderingMode.FILL_STROKE?(t.fillColor!==c.fillColor&&t.tspan.setAttributeNS(null,"fill",t.fillColor),t.fillAlpha<1&&t.tspan.setAttributeNS(null,"fill-opacity",t.fillAlpha)):t.textRenderingMode===o.TextRenderingMode.ADD_TO_PATH?t.tspan.setAttributeNS(null,"fill","transparent"):t.tspan.setAttributeNS(null,"fill","none"),y===o.TextRenderingMode.STROKE||y===o.TextRenderingMode.FILL_STROKE){const e=1/(t.textMatrixScale||1);this._setStrokeAttributes(t.tspan,e)}let v=t.textMatrix;0!==t.textRise&&(v=v.slice(),v[5]+=t.textRise),t.txtElement.setAttributeNS(null,"transform",`${f(v)} scale(${i(d)}, -1)`),t.txtElement.setAttributeNS(l,"xml:space","preserve"),t.txtElement.append(t.tspan),t.txtgrp.append(t.txtElement),this._ensureTransformGroup().append(t.txtElement)}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}addFontStyle(e){if(!e.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.append(this.cssStyle));const t=h(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${e.loadedName}"; src: url(${t}); }\n`}setFont(e){const t=this.current,n=this.commonObjs.get(e[0]);let a=e[1];t.font=n,!this.embedFonts||n.missingFile||this.embeddedFonts[n.loadedName]||(this.addFontStyle(n),this.embeddedFonts[n.loadedName]=n),t.fontMatrix=n.fontMatrix||o.FONT_IDENTITY_MATRIX;let s="normal";n.black?s="900":n.bold&&(s="bold");const r=n.italic?"italic":"normal";a<0?(a=-a,t.fontDirection=-1):t.fontDirection=1,t.fontSize=a,t.fontFamily=n.loadedName,t.fontWeight=s,t.fontStyle=r,t.tspan=this.svgFactory.createElement("svg:tspan"),t.tspan.setAttributeNS(null,"y",i(-t.y)),t.xcoords=[],t.ycoords=[]}endText(){const e=this.current;e.textRenderingMode&o.TextRenderingMode.ADD_TO_PATH_FLAG&&e.txtElement?.hasChildNodes()&&(e.element=e.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(e){e>0&&(this.current.lineWidth=e)}setLineCap(e){this.current.lineCap=_[e]}setLineJoin(e){this.current.lineJoin=d[e]}setMiterLimit(e){this.current.miterLimit=e}setStrokeAlpha(e){this.current.strokeAlpha=e}setStrokeRGBColor(e,t,n){this.current.strokeColor=o.Util.makeHexColor(e,t,n)}setFillAlpha(e){this.current.fillAlpha=e}setFillRGBColor(e,t,n){this.current.fillColor=o.Util.makeHexColor(e,t,n),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(e){this.current.strokeColor=this._makeColorN_Pattern(e)}setFillColorN(e){this.current.fillColor=this._makeColorN_Pattern(e)}shadingFill(e){const t=this.viewport.width,n=this.viewport.height,a=o.Util.inverseTransform(this.transformMatrix),s=o.Util.applyTransform([0,0],a),r=o.Util.applyTransform([0,n],a),i=o.Util.applyTransform([t,0],a),f=o.Util.applyTransform([t,n],a),c=Math.min(s[0],r[0],i[0],f[0]),l=Math.min(s[1],r[1],i[1],f[1]),u=Math.max(s[0],r[0],i[0],f[0]),_=Math.max(s[1],r[1],i[1],f[1]),d=this.svgFactory.createElement("svg:rect");d.setAttributeNS(null,"x",c),d.setAttributeNS(null,"y",l),d.setAttributeNS(null,"width",u-c),d.setAttributeNS(null,"height",_-l),d.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&d.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(d)}_makeColorN_Pattern(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}_makeTilingPattern(e){const t=e[1],n=e[2],a=e[3]||o.IDENTITY_MATRIX,[s,r,i,f]=e[4],c=e[5],l=e[6],u=e[7],_="shading"+y++,[d,h,m,p]=o.Util.normalizeRect([...o.Util.applyTransform([s,r],a),...o.Util.applyTransform([i,f],a)]),[g,b]=o.Util.singularValueDecompose2dScale(a),v=c*g,w=l*b,k=this.svgFactory.createElement("svg:pattern");k.setAttributeNS(null,"id",_),k.setAttributeNS(null,"patternUnits","userSpaceOnUse"),k.setAttributeNS(null,"width",v),k.setAttributeNS(null,"height",w),k.setAttributeNS(null,"x",`${d}`),k.setAttributeNS(null,"y",`${h}`);const E=this.svg,S=this.transformMatrix,C=this.current.fillColor,A=this.current.strokeColor,x=this.svgFactory.create(m-d,p-h);if(this.svg=x,this.transformMatrix=a,2===u){const e=o.Util.makeHexColor(...t);this.current.fillColor=e,this.current.strokeColor=e}return this.executeOpTree(this.convertOpList(n)),this.svg=E,this.transformMatrix=S,this.current.fillColor=C,this.current.strokeColor=A,k.append(x.childNodes[0]),this.defs.append(k),`url(#${_})`}_makeShadingPattern(e){switch("string"==typeof e&&(e=this.objs.get(e)),e[0]){case"RadialAxial":const t="shading"+y++,n=e[3];let a;switch(e[1]){case"axial":const n=e[4],o=e[5];a=this.svgFactory.createElement("svg:linearGradient"),a.setAttributeNS(null,"id",t),a.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),a.setAttributeNS(null,"x1",n[0]),a.setAttributeNS(null,"y1",n[1]),a.setAttributeNS(null,"x2",o[0]),a.setAttributeNS(null,"y2",o[1]);break;case"radial":const s=e[4],r=e[5],i=e[6],f=e[7];a=this.svgFactory.createElement("svg:radialGradient"),a.setAttributeNS(null,"id",t),a.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),a.setAttributeNS(null,"cx",r[0]),a.setAttributeNS(null,"cy",r[1]),a.setAttributeNS(null,"r",f),a.setAttributeNS(null,"fx",s[0]),a.setAttributeNS(null,"fy",s[1]),a.setAttributeNS(null,"fr",i);break;default:throw new Error(`Unknown RadialAxial type: ${e[1]}`)}for(const e of n){const t=this.svgFactory.createElement("svg:stop");t.setAttributeNS(null,"offset",e[0]),t.setAttributeNS(null,"stop-color",e[1]),a.append(t)}return this.defs.append(a),`url(#${t})`;case"Mesh":return(0,o.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${e[0]}`)}}setDash(e,t){this.current.dashArray=e,this.current.dashPhase=t}constructPath(e,t){const n=this.current;let a=n.x,s=n.y,r=[],f=0;for(const n of e)switch(0|n){case o.OPS.rectangle:a=t[f++],s=t[f++];const e=a+t[f++],n=s+t[f++];r.push("M",i(a),i(s),"L",i(e),i(s),"L",i(e),i(n),"L",i(a),i(n),"Z");break;case o.OPS.moveTo:a=t[f++],s=t[f++],r.push("M",i(a),i(s));break;case o.OPS.lineTo:a=t[f++],s=t[f++],r.push("L",i(a),i(s));break;case o.OPS.curveTo:a=t[f+4],s=t[f+5],r.push("C",i(t[f]),i(t[f+1]),i(t[f+2]),i(t[f+3]),i(a),i(s)),f+=6;break;case o.OPS.curveTo2:r.push("C",i(a),i(s),i(t[f]),i(t[f+1]),i(t[f+2]),i(t[f+3])),a=t[f+2],s=t[f+3],f+=4;break;case o.OPS.curveTo3:a=t[f+2],s=t[f+3],r.push("C",i(t[f]),i(t[f+1]),i(a),i(s),i(a),i(s)),f+=4;break;case o.OPS.closePath:r.push("Z")}r=r.join(" "),n.path&&e.length>0&&e[0]!==o.OPS.rectangle&&e[0]!==o.OPS.moveTo?r=n.path.getAttributeNS(null,"d")+r:(n.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(n.path)),n.path.setAttributeNS(null,"d",r),n.path.setAttributeNS(null,"fill","none"),n.element=n.path,n.setCurrentPoint(a,s)}endPath(){const e=this.current;if(e.path=null,!this.pendingClip)return;if(!e.element)return void(this.pendingClip=null);const t="clippath"+g++,n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",t),n.setAttributeNS(null,"transform",f(this.transformMatrix));const a=e.element.cloneNode(!0);if("evenodd"===this.pendingClip?a.setAttributeNS(null,"clip-rule","evenodd"):a.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,n.append(a),this.defs.append(n),e.activeClipUrl){e.clipGroup=null;for(const e of this.extraStack)e.clipGroup=null;n.setAttributeNS(null,"clip-path",e.activeClipUrl)}e.activeClipUrl=`url(#${t})`,this.tgrp=null}clip(e){this.pendingClip=e}closePath(){const e=this.current;if(e.path){const t=`${e.path.getAttributeNS(null,"d")}Z`;e.path.setAttributeNS(null,"d",t)}}setLeading(e){this.current.leading=-e}setTextRise(e){this.current.textRise=e}setTextRenderingMode(e){this.current.textRenderingMode=e}setHScale(e){this.current.textHScale=e/100}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,n]of e)switch(t){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n);break;case"CA":this.setStrokeAlpha(n);break;case"ca":this.setFillAlpha(n);break;default:(0,o.warn)(`Unimplemented graphic state operator ${t}`)}}fill(){const e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}stroke(){const e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(e,t=1){const n=this.current;let a=n.dashArray;1!==t&&a.length>0&&(a=a.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",n.strokeColor),e.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",i(n.miterLimit)),e.setAttributeNS(null,"stroke-linecap",n.lineCap),e.setAttributeNS(null,"stroke-linejoin",n.lineJoin),e.setAttributeNS(null,"stroke-width",i(t*n.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",a.map(i).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",i(t*n.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(e)}paintImageXObject(e){const t=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);t?this.paintInlineImageXObject(t):(0,o.warn)(`Dependent image with object ID ${e} is not ready yet`)}paintInlineImageXObject(e,t){const n=e.width,a=e.height,o=m(e,this.forceDataSchema,!!t),s=this.svgFactory.createElement("svg:rect");s.setAttributeNS(null,"x","0"),s.setAttributeNS(null,"y","0"),s.setAttributeNS(null,"width",i(n)),s.setAttributeNS(null,"height",i(a)),this.current.element=s,this.clip("nonzero");const r=this.svgFactory.createElement("svg:image");r.setAttributeNS(u,"xlink:href",o),r.setAttributeNS(null,"x","0"),r.setAttributeNS(null,"y",i(-a)),r.setAttributeNS(null,"width",i(n)+"px"),r.setAttributeNS(null,"height",i(a)+"px"),r.setAttributeNS(null,"transform",`scale(${i(1/n)} ${i(-1/a)})`),t?t.append(r):this._ensureTransformGroup().append(r)}paintImageMaskXObject(e){const t=this.current,n=e.width,a=e.height,o=t.fillColor;t.maskId="mask"+b++;const s=this.svgFactory.createElement("svg:mask");s.setAttributeNS(null,"id",t.maskId);const r=this.svgFactory.createElement("svg:rect");r.setAttributeNS(null,"x","0"),r.setAttributeNS(null,"y","0"),r.setAttributeNS(null,"width",i(n)),r.setAttributeNS(null,"height",i(a)),r.setAttributeNS(null,"fill",o),r.setAttributeNS(null,"mask",`url(#${t.maskId})`),this.defs.append(s),this._ensureTransformGroup().append(r),this.paintInlineImageXObject(e,s)}paintFormXObjectBegin(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){const e=t[2]-t[0],n=t[3]-t[1],a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x",t[0]),a.setAttributeNS(null,"y",t[1]),a.setAttributeNS(null,"width",i(e)),a.setAttributeNS(null,"height",i(n)),this.current.element=a,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(e){const t=this.svgFactory.create(e.width,e.height),n=this.svgFactory.createElement("svg:defs");t.append(n),this.defs=n;const a=this.svgFactory.createElement("svg:g");return a.setAttributeNS(null,"transform",f(e.transform)),t.append(a),this.svg=a,t}_ensureClipGroup(){if(!this.current.clipGroup){const e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(e),this.current.clipGroup=e}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",f(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var a=n(1),o=n(33);const s=require$$5,r=require$$5,i=require$$5,f=require$$5,c=/^file:\/\/\/[a-zA-Z]:\//;t.PDFNodeStream=class{constructor(e){this.source=e,this.url=function(e){const t=f.parse(e);return"file:"===t.protocol||t.host?t:/^[a-z]:[/\\]/i.test(e)?f.parse(`file:///${e}`):(t.host||(t.protocol="file:"),t)}(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,a.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new m(this):new d(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=this.isFsUrl?new p(this,e,t):new h(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class l{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=(0,a.createPromiseCapability)(),this._headersCapability=(0,a.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return null===e?(this._readCapability=(0,a.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new a.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class u{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,a.createPromiseCapability)();const t=e.source;this._isStreamingSupported=!t.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return null===e?(this._readCapability=(0,a.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}function _(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class d extends l{constructor(e){super(e);const t=t=>{if(404===t.statusCode){const e=new a.MissingPDFException(`Missing PDF "${this._url}".`);return this._storedError=e,void this._headersCapability.reject(e)}this._headersCapability.resolve(),this._setReadableStream(t);const n=e=>this._readableStream.headers[e.toLowerCase()],{allowRangeRequests:s,suggestedLength:r}=(0,o.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=s,this._contentLength=r||this._contentLength,this._filename=(0,o.extractFilenameFromHeader)(n)};this._request=null,"http:"===this._url.protocol?this._request=r.request(_(this._url,e.httpHeaders),t):this._request=i.request(_(this._url,e.httpHeaders),t),this._request.on("error",(e=>{this._storedError=e,this._headersCapability.reject(e)})),this._request.end()}}class h extends u{constructor(e,t,n){super(e),this._httpHeaders={};for(const t in e.httpHeaders){const n=e.httpHeaders[t];void 0!==n&&(this._httpHeaders[t]=n)}this._httpHeaders.Range=`bytes=${t}-${n-1}`;const o=e=>{if(404!==e.statusCode)this._setReadableStream(e);else{const e=new a.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=e}};this._request=null,"http:"===this._url.protocol?this._request=r.request(_(this._url,this._httpHeaders),o):this._request=i.request(_(this._url,this._httpHeaders),o),this._request.on("error",(e=>{this._storedError=e})),this._request.end()}}class m extends l{constructor(e){super(e);let t=decodeURIComponent(this._url.path);c.test(this._url.href)&&(t=t.replace(/^\//,"")),s.lstat(t,((e,n)=>{if(e)return"ENOENT"===e.code&&(e=new a.MissingPDFException(`Missing PDF "${t}".`)),this._storedError=e,void this._headersCapability.reject(e);this._contentLength=n.size,this._setReadableStream(s.createReadStream(t)),this._headersCapability.resolve()}))}}class p extends u{constructor(e,t,n){super(e);let a=decodeURIComponent(this._url.path);c.test(this._url.href)&&(a=a.replace(/^\//,"")),this._setReadableStream(s.createReadStream(a,{start:t,end:n-1}))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new a.MissingPDFException('Missing PDF "'+t+'".'):new a.UnexpectedResponseException(`Unexpected server response (${e}) while retrieving PDF "${t}".`,e)},t.extractFilenameFromHeader=function(e){const t=e("Content-Disposition");if(t){let e=(0,o.getFilenameFromContentDispositionHeader)(t);if(e.includes("%"))try{e=decodeURIComponent(e)}catch(e){}if((0,s.isPdfFile)(e))return e}return null},t.validateRangeRequestCapabilities=function({getResponseHeader:e,isHttp:t,rangeChunkSize:n,disableRange:a}){const o={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(e("Content-Length"),10);return Number.isInteger(s)?(o.suggestedLength=s,s<=2*n||a||!t||"bytes"!==e("Accept-Ranges")||"identity"!==(e("Content-Encoding")||"identity")||(o.allowRangeRequests=!0),o):o},t.validateResponseStatus=function(e){return 200===e||206===e};var a=n(1),o=n(34),s=n(4)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){let t=!0,n=o("filename\\*","i").exec(e);if(n){n=n[1];let e=i(n);return e=unescape(e),e=f(e),e=c(e),r(e)}if(n=function(e){const t=[];let n;const a=o("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(n=a.exec(e));){let[,e,a,o]=n;if(e=parseInt(e,10),e in t){if(0===e)break}else t[e]=[a,o]}const s=[];for(let e=0;e<t.length&&e in t;++e){let[n,a]=t[e];a=i(a),n&&(a=unescape(a),0===e&&(a=f(a))),s.push(a)}return s.join("")}(e),n)return r(c(n));if(n=o("filename","i").exec(e),n){n=n[1];let e=i(n);return e=c(e),r(e)}function o(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function s(e,n){if(e){if(!/^[\x00-\xFF]+$/.test(n))return n;try{const o=new TextDecoder(e,{fatal:!0}),s=(0,a.stringToBytes)(n);n=o.decode(s),t=!1}catch(e){}}return n}function r(e){return t&&/[\x80-\xff]/.test(e)&&(e=s("utf-8",e),t&&(e=s("iso-8859-1",e))),e}function i(e){if(e.startsWith('"')){const t=e.slice(1).split('\\"');for(let e=0;e<t.length;++e){const n=t[e].indexOf('"');-1!==n&&(t[e]=t[e].slice(0,n),t.length=e+1),t[e]=t[e].replace(/\\(.)/g,"$1")}e=t.join('"')}return e}function f(e){const t=e.indexOf("'");return-1===t?e:s(e.slice(0,t),e.slice(t+1).replace(/^[^']*'/,""))}function c(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,(function(e,t,n,a){if("q"===n||"Q"===n)return s(t,a=(a=a.replace(/_/g," ")).replace(/=([0-9a-fA-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})));try{a=atob(a)}catch(e){}return s(t,a)}))}return""};var a=n(1)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var a=n(1),o=n(33);class s{constructor(e,t={}){this.url=e,this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&t.httpHeaders||Object.create(null),this.withCredentials=t.withCredentials||!1,this.getXhr=t.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,t,n){const a={begin:e,end:t};for(const e in n)a[e]=n[e];return this.request(a)}requestFull(e){return this.request(e)}request(e){const t=this.getXhr(),n=this.currXhrId++,a=this.pendingRequests[n]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(const e in this.httpHeaders){const n=this.httpHeaders[e];void 0!==n&&t.setRequestHeader(e,n)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),a.expectedStatus=206):a.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(n){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,n),t.onprogress=this.onProgress.bind(this,n),a.onHeadersReceived=e.onHeadersReceived,a.onDone=e.onDone,a.onError=e.onError,a.onProgress=e.onProgress,t.send(null),n}onProgress(e,t){const n=this.pendingRequests[e];n&&n.onProgress?.(t)}onStateChange(e,t){const n=this.pendingRequests[e];if(!n)return;const o=n.xhr;if(o.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4!==o.readyState)return;if(!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],0===o.status&&this.isHttp)return void n.onError?.(o.status);const s=o.status||200;if((200!==s||206!==n.expectedStatus)&&s!==n.expectedStatus)return void n.onError?.(o.status);const r=function(e){const t=e.response;return"string"!=typeof t?t:(0,a.stringToBytes)(t).buffer}(o);if(206===s){const e=o.getResponseHeader("Content-Range"),t=/bytes (\d+)-(\d+)\/(\d+)/.exec(e);n.onDone({begin:parseInt(t[1],10),chunk:r})}else r?n.onDone({begin:0,chunk:r}):n.onError?.(o.status)}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){const t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}t.PDFNetworkStream=class{constructor(e){this._source=e,this._manager=new s(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return(0,a.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new r(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){const n=new i(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class r{constructor(e,t){this._manager=e;const n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._fullRequestId=e.requestFull(n),this._headersReceivedCapability=(0,a.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const e=this._fullRequestId,t=this._manager.getRequestXhr(e),n=e=>t.getResponseHeader(e),{allowRangeRequests:a,suggestedLength:s}=(0,o.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});a&&(this._isRangeSupported=!0),this._contentLength=s||this._contentLength,this._filename=(0,o.extractFilenameFromHeader)(n),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=(0,o.createResponseStatusError)(e,this._url),this._headersReceivedCapability.reject(this._storedError);for(const e of this._requests)e.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){this.onProgress?.({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=(0,a.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e);for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class i{constructor(e,t,n){this._manager=e;const a={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._requestId=e.requestRange(t,n,a),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){this.onClosed?.(this)}_onDone(e){const t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError=(0,o.createResponseStatusError)(e,this._url);for(const e of this._requests)e.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){this.isStreamingSupported||this.onProgress?.({loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(null!==this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,a.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var a=n(1),o=n(33);function s(e,t,n){return{method:"GET",headers:e,signal:n?.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function r(e){const t=new Headers;for(const n in e){const a=e[n];void 0!==a&&t.append(n,a)}return t}t.PDFFetchStream=class{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,a.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new i(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new f(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class i{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;const t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=(0,a.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=r(this._stream.httpHeaders);const n=t.url;fetch(n,s(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,o.validateResponseStatus)(e.status))throw(0,o.createResponseStatusError)(e.status,n);this._reader=e.body.getReader(),this._headersCapability.resolve();const t=t=>e.headers.get(t),{allowRangeRequests:s,suggestedLength:r}=(0,o.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=s,this._contentLength=r||this._contentLength,this._filename=(0,o.extractFilenameFromHeader)(t),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new a.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}class f{constructor(e,t,n){this._stream=e,this._reader=null,this._loaded=0;const i=e.source;this._withCredentials=i.withCredentials||!1,this._readCapability=(0,a.createPromiseCapability)(),this._isStreamingSupported=!i.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=r(this._stream.httpHeaders),this._headers.append("Range",`bytes=${t}-${n-1}`);const f=i.url;fetch(f,s(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,o.validateResponseStatus)(e.status))throw(0,o.createResponseStatusError)(e.status,f);this._readCapability.resolve(),this._reader=e.body.getReader()})).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__w_pdfjs_require__),n.exports}var __webpack_exports__={};return(()=>{var e=__webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AnnotationEditorLayer",{enumerable:!0,get:function(){return o.AnnotationEditorLayer}}),Object.defineProperty(e,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return t.AnnotationEditorParamsType}}),Object.defineProperty(e,"AnnotationEditorType",{enumerable:!0,get:function(){return t.AnnotationEditorType}}),Object.defineProperty(e,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return s.AnnotationEditorUIManager}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return r.AnnotationLayer}}),Object.defineProperty(e,"AnnotationMode",{enumerable:!0,get:function(){return t.AnnotationMode}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return t.CMapCompressionType}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return i.GlobalWorkerOptions}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return t.InvalidPDFException}}),Object.defineProperty(e,"LoopbackPort",{enumerable:!0,get:function(){return a.LoopbackPort}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return t.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return t.OPS}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return a.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return n.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return a.PDFWorker}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return t.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return t.PermissionFlag}}),Object.defineProperty(e,"PixelsPerInch",{enumerable:!0,get:function(){return n.PixelsPerInch}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return n.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return l.SVGGraphics}}),Object.defineProperty(e,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return t.UNSUPPORTED_FEATURES}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return t.UnexpectedResponseException}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return t.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return t.VerbosityLevel}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return u.XfaLayer}}),Object.defineProperty(e,"binarySearchFirstItem",{enumerable:!0,get:function(){return n.binarySearchFirstItem}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return a.build}}),Object.defineProperty(e,"createPromiseCapability",{enumerable:!0,get:function(){return t.createPromiseCapability}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return a.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return n.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return n.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return n.getXfaPageViewport}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return n.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return n.loadScript}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return c.renderTextLayer}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return t.shadow}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return a.version}});var t=__w_pdfjs_require__(1),n=__w_pdfjs_require__(4),a=__w_pdfjs_require__(6),o=__w_pdfjs_require__(22),s=__w_pdfjs_require__(9),r=__w_pdfjs_require__(27),i=__w_pdfjs_require__(15),f=__w_pdfjs_require__(3),c=__w_pdfjs_require__(30),l=__w_pdfjs_require__(31),u=__w_pdfjs_require__(29);if(f.isNodeJS){const{PDFNodeStream:e}=__w_pdfjs_require__(32);(0,a.setPDFNetworkStreamFactory)((t=>new e(t)))}else{const{PDFNetworkStream:e}=__w_pdfjs_require__(35),{PDFFetchStream:t}=__w_pdfjs_require__(36);(0,a.setPDFNetworkStreamFactory)((a=>(0,n.isValidFetchUrl)(a.url)?new t(a):new e(a)))}})(),__webpack_exports__})(),module.exports=factory()})(pdf);var pdfjsLib=getDefaultExportFromCjs(pdf.exports),pdf_viewer={exports:{}},factory;globalThis,factory=()=>(()=>{var e=[,(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultXfaLayerFactory=t.DefaultTextLayerFactory=t.DefaultStructTreeLayerFactory=t.DefaultAnnotationLayerFactory=t.DefaultAnnotationEditorLayerFactory=void 0;var a=n(2),o=n(5),s=n(4),r=n(6),i=n(8),f=n(9),c=n(10);t.DefaultAnnotationLayerFactory=class{createAnnotationLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n=null,imageResourcesPath:a="",renderForms:i=!0,l10n:f=s.NullL10n,enableScripting:c=!1,hasJSActionsPromise:l=null,mouseState:u=null,fieldObjectsPromise:_=null,annotationCanvasMap:d=null}){return new o.AnnotationLayerBuilder({pageDiv:e,pdfPage:t,imageResourcesPath:a,renderForms:i,linkService:new r.SimpleLinkService,l10n:f,annotationStorage:n,enableScripting:c,hasJSActionsPromise:l,fieldObjectsPromise:_,mouseState:u,annotationCanvasMap:d})}},t.DefaultAnnotationEditorLayerFactory=class{createAnnotationEditorLayerBuilder({uiManager:e=null,pageDiv:t,pdfPage:n,l10n:o,annotationStorage:s=null}){return new a.AnnotationEditorLayerBuilder({uiManager:e,pageDiv:t,pdfPage:n,l10n:o,annotationStorage:s})}},t.DefaultStructTreeLayerFactory=class{createStructTreeLayerBuilder({pdfPage:e}){return new i.StructTreeLayerBuilder({pdfPage:e})}},t.DefaultTextLayerFactory=class{createTextLayerBuilder({textLayerDiv:e,pageIndex:t,viewport:n,enhanceTextSelection:a=!1,eventBus:o,highlighter:s}){return new f.TextLayerBuilder({textLayerDiv:e,pageIndex:t,viewport:n,enhanceTextSelection:a,eventBus:o,highlighter:s})}},t.DefaultXfaLayerFactory=class{createXfaLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n=null}){return new c.XfaLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n,linkService:new r.SimpleLinkService})}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayerBuilder=void 0;var a=n(3),o=n(4);t.AnnotationEditorLayerBuilder=class{#he;constructor(e){this.pageDiv=e.pageDiv,this.pdfPage=e.pdfPage,this.annotationStorage=e.annotationStorage||null,this.l10n=e.l10n||o.NullL10n,this.annotationEditorLayer=null,this.div=null,this._cancelled=!1,this.#he=e.uiManager}async render(e,t="display"){if("display"!==t)return;if(this._cancelled)return;const n=e.clone({dontFlip:!0});if(this.div)return this.annotationEditorLayer.update({viewport:n}),void this.show();this.div=document.createElement("div"),this.div.className="annotationEditorLayer",this.div.tabIndex=0,this.pageDiv.append(this.div),this.annotationEditorLayer=new a.AnnotationEditorLayer({uiManager:this.#he,div:this.div,annotationStorage:this.annotationStorage,pageIndex:this.pdfPage._pageIndex,l10n:this.l10n,viewport:n});const o={viewport:n,div:this.div,annotations:null,intent:t};this.annotationEditorLayer.render(o)}cancel(){this._cancelled=!0,this.destroy()}hide(){this.div&&(this.div.hidden=!0)}show(){this.div&&(this.div.hidden=!1)}destroy(){this.div&&(this.pageDiv=null,this.annotationEditorLayer.destroy(),this.div.remove())}}},e=>{let t;t="undefined"!=typeof window&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:pdf.exports,e.exports=t},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NullL10n=void 0,t.fixupLangCode=function(e){return o[e?.toLowerCase()]||e},t.getL10nFallback=a;const n={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} × {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",print_progress_percent:"{{progress}}%","toggle_sidebar.title":"Toggle Sidebar","toggle_sidebar_notification2.title":"Toggle Sidebar (document contains outline/attachments/layers)",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",error_version_info:"PDF.js v{{version}} (build: {{build}})",error_message:"Message: {{message}}",error_stack:"Stack: {{stack}}",error_file:"File: {{file}}",error_line:"Line: {{line}}",rendering_error:"An error occurred while rendering the page.",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading:"Loading…",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text_default_content:"Enter text…",editor_free_text_aria_label:"FreeText Editor",editor_ink_aria_label:"Ink Editor",editor_ink_canvas_aria_label:"User-created image"};function a(e,t){switch(e){case"find_match_count":e=`find_match_count[${1===t.total?"one":"other"}]`;break;case"find_match_count_limit":e=`find_match_count_limit[${1===t.limit?"one":"other"}]`}return n[e]||""}const o={en:"en-US",es:"es-ES",fy:"fy-NL",ga:"ga-IE",gu:"gu-IN",hi:"hi-IN",hy:"hy-AM",nb:"nb-NO",ne:"ne-NP",nn:"nn-NO",pa:"pa-IN",pt:"pt-PT",sv:"sv-SE",zh:"zh-CN"},s={getLanguage:async()=>"en-us",getDirection:async()=>"ltr",get:async(e,t=null,n=a(e,t))=>function(e,t){return t?e.replace(/\{\{\s*(\w+)\s*\}\}/g,((e,n)=>n in t?t[n]:"{{"+n+"}}")):e}(n,t),async translate(e){}};t.NullL10n=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayerBuilder=void 0;var a=n(3),o=n(4);t.AnnotationLayerBuilder=class{constructor({pageDiv:e,pdfPage:t,linkService:n,downloadManager:a,annotationStorage:s=null,imageResourcesPath:r="",renderForms:i=!0,l10n:f=o.NullL10n,enableScripting:c=!1,hasJSActionsPromise:l=null,fieldObjectsPromise:u=null,mouseState:_=null,annotationCanvasMap:d=null}){this.pageDiv=e,this.pdfPage=t,this.linkService=n,this.downloadManager=a,this.imageResourcesPath=r,this.renderForms=i,this.l10n=f,this.annotationStorage=s,this.enableScripting=c,this._hasJSActionsPromise=l,this._fieldObjectsPromise=u,this._mouseState=_,this._annotationCanvasMap=d,this.div=null,this._cancelled=!1}async render(e,t="display"){const[n,o=!1,s=null]=await Promise.all([this.pdfPage.getAnnotations({intent:t}),this._hasJSActionsPromise,this._fieldObjectsPromise]);if(this._cancelled||0===n.length)return;const r={viewport:e.clone({dontFlip:!0}),div:this.div,annotations:n,page:this.pdfPage,imageResourcesPath:this.imageResourcesPath,renderForms:this.renderForms,linkService:this.linkService,downloadManager:this.downloadManager,annotationStorage:this.annotationStorage,enableScripting:this.enableScripting,hasJSActions:o,fieldObjects:s,mouseState:this._mouseState,annotationCanvasMap:this._annotationCanvasMap};this.div?a.AnnotationLayer.update(r):(this.div=document.createElement("div"),this.div.className="annotationLayer",this.pageDiv.append(this.div),r.div=this.div,a.AnnotationLayer.render(r),this.l10n.translate(this.div))}cancel(){this._cancelled=!0}hide(){this.div&&(this.div.hidden=!0)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleLinkService=t.PDFLinkService=t.LinkTarget=void 0;var a=n(7);const o={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function s(e,{url:t,target:n,rel:s,enabled:r=!0}){if(!t||"string"!=typeof t)throw new Error('A valid "url" parameter must provided.');const i=(0,a.removeNullCharacters)(t);r?e.href=e.title=i:(e.href="",e.title=`Disabled: ${i}`,e.onclick=()=>!1);let f="";switch(n){case o.NONE:break;case o.SELF:f="_self";break;case o.BLANK:f="_blank";break;case o.PARENT:f="_parent";break;case o.TOP:f="_top"}e.target=f,e.rel="string"==typeof s?s:"noopener noreferrer nofollow"}t.LinkTarget=o;class r{#bt=new Map;constructor({eventBus:e,externalLinkTarget:t=null,externalLinkRel:n=null,ignoreDestinationZoom:a=!1}={}){this.eventBus=e,this.externalLinkTarget=t,this.externalLinkRel=n,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=a,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null}setDocument(e,t=null){this.baseUrl=t,this.pdfDocument=e,this.#bt.clear()}setViewer(e){this.pdfViewer=e}setHistory(e){this.pdfHistory=e}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfViewer.currentPageNumber}set page(e){this.pdfViewer.currentPageNumber=e}get rotation(){return this.pdfViewer.pagesRotation}set rotation(e){this.pdfViewer.pagesRotation=e}#yt(e,t=null,n){const a=n[0];let o;if("object"==typeof a&&null!==a){if(o=this._cachedPageNumber(a),!o)return void this.pdfDocument.getPageIndex(a).then((o=>{this.cachePageRef(o+1,a),this.#yt(e,t,n)})).catch((()=>{console.error(`PDFLinkService.#goToDestinationHelper: "${a}" is not a valid page reference, for dest="${e}".`)}))}else{if(!Number.isInteger(a))return void console.error(`PDFLinkService.#goToDestinationHelper: "${a}" is not a valid destination reference, for dest="${e}".`);o=a+1}!o||o<1||o>this.pagesCount?console.error(`PDFLinkService.#goToDestinationHelper: "${o}" is not a valid page number, for dest="${e}".`):(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:t,explicitDest:n,pageNumber:o})),this.pdfViewer.scrollPageIntoView({pageNumber:o,destArray:n,ignoreDestinationZoom:this._ignoreDestinationZoom}))}async goToDestination(e){if(!this.pdfDocument)return;let t,n;"string"==typeof e?(t=e,n=await this.pdfDocument.getDestination(e)):(t=null,n=await e),Array.isArray(n)?this.#yt(e,t,n):console.error(`PDFLinkService.goToDestination: "${n}" is not a valid destination array, for dest="${e}".`)}goToPage(e){if(!this.pdfDocument)return;const t="string"==typeof e&&this.pdfViewer.pageLabelToPageNumber(e)||0|e;Number.isInteger(t)&&t>0&&t<=this.pagesCount?(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.pushPage(t)),this.pdfViewer.scrollPageIntoView({pageNumber:t})):console.error(`PDFLinkService.goToPage: "${e}" is not a valid page.`)}addLinkAttributes(e,t,n=!1){s(e,{url:t,target:n?o.BLANK:this.externalLinkTarget,rel:this.externalLinkRel,enabled:this.externalLinkEnabled})}getDestinationHash(e){if("string"==typeof e){if(e.length>0)return this.getAnchorUrl("#"+escape(e))}else if(Array.isArray(e)){const t=JSON.stringify(e);if(t.length>0)return this.getAnchorUrl("#"+escape(t))}return this.getAnchorUrl("")}getAnchorUrl(e){return(this.baseUrl||"")+e}setHash(e){if(!this.pdfDocument)return;let t,n;if(e.includes("=")){const o=(0,a.parseQueryString)(e);if(o.has("search")&&this.eventBus.dispatch("findfromurlhash",{source:this,query:o.get("search").replace(/"/g,""),phraseSearch:"true"===o.get("phrase")}),o.has("page")&&(t=0|o.get("page")||1),o.has("zoom")){const e=o.get("zoom").split(","),t=e[0],a=parseFloat(t);t.includes("Fit")?"Fit"===t||"FitB"===t?n=[null,{name:t}]:"FitH"===t||"FitBH"===t||"FitV"===t||"FitBV"===t?n=[null,{name:t},e.length>1?0|e[1]:null]:"FitR"===t?5!==e.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):n=[null,{name:t},0|e[1],0|e[2],0|e[3],0|e[4]]:console.error(`PDFLinkService.setHash: "${t}" is not a valid zoom value.`):n=[null,{name:"XYZ"},e.length>1?0|e[1]:null,e.length>2?0|e[2]:null,a?a/100:t]}n?this.pdfViewer.scrollPageIntoView({pageNumber:t||this.page,destArray:n,allowNegativeOffset:!0}):t&&(this.page=t),o.has("pagemode")&&this.eventBus.dispatch("pagemode",{source:this,mode:o.get("pagemode")}),o.has("nameddest")&&this.goToDestination(o.get("nameddest"))}else{n=unescape(e);try{n=JSON.parse(n),Array.isArray(n)||(n=n.toString())}catch(e){}if("string"==typeof n||r.#vt(n))return void this.goToDestination(n);console.error(`PDFLinkService.setHash: "${unescape(e)}" is not a valid destination.`)}}executeNamedAction(e){switch(e){case"GoBack":this.pdfHistory?.back();break;case"GoForward":this.pdfHistory?.forward();break;case"NextPage":this.pdfViewer.nextPage();break;case"PrevPage":this.pdfViewer.previousPage();break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:e})}cachePageRef(e,t){if(!t)return;const n=0===t.gen?`${t.num}R`:`${t.num}R${t.gen}`;this.#bt.set(n,e)}_cachedPageNumber(e){if(!e)return null;const t=0===e.gen?`${e.num}R`:`${e.num}R${e.gen}`;return this.#bt.get(t)||null}isPageVisible(e){return this.pdfViewer.isPageVisible(e)}isPageCached(e){return this.pdfViewer.isPageCached(e)}static#vt(e){if(!Array.isArray(e))return!1;const t=e.length;if(t<2)return!1;const n=e[0];if(!("object"==typeof n&&Number.isInteger(n.num)&&Number.isInteger(n.gen)||Number.isInteger(n)&&n>=0))return!1;const a=e[1];if("object"!=typeof a||"string"!=typeof a.name)return!1;let o=!0;switch(a.name){case"XYZ":if(5!==t)return!1;break;case"Fit":case"FitB":return 2===t;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==t)return!1;break;case"FitR":if(6!==t)return!1;o=!1;break;default:return!1}for(let n=2;n<t;n++){const t=e[n];if(!("number"==typeof t||o&&null===t))return!1}return!0}}t.PDFLinkService=r,t.SimpleLinkService=class{constructor(){this.externalLinkEnabled=!0}get pagesCount(){return 0}get page(){return 0}set page(e){}get rotation(){return 0}set rotation(e){}async goToDestination(e){}goToPage(e){}addLinkAttributes(e,t,n=!1){s(e,{url:t,enabled:this.externalLinkEnabled})}getDestinationHash(e){return"#"}getAnchorUrl(e){return"#"}setHash(e){}executeNamedAction(e){}cachePageRef(e,t){}isPageVisible(e){return!0}isPageCached(e){return!0}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.animationStarted=t.VERTICAL_PADDING=t.UNKNOWN_SCALE=t.TextLayerMode=t.SpreadMode=t.SidebarView=t.ScrollMode=t.SCROLLBAR_PADDING=t.RenderingStates=t.RendererType=t.ProgressBar=t.PresentationModeState=t.OutputScale=t.MIN_SCALE=t.MAX_SCALE=t.MAX_AUTO_SCALE=t.DEFAULT_SCALE_VALUE=t.DEFAULT_SCALE_DELTA=t.DEFAULT_SCALE=t.AutoPrintRegExp=void 0,t.apiPageLayoutToViewerModes=function(e){let t=s.VERTICAL,n=r.NONE;switch(e){case"SinglePage":t=s.PAGE;break;case"OneColumn":break;case"TwoPageLeft":t=s.PAGE;case"TwoColumnLeft":n=r.ODD;break;case"TwoPageRight":t=s.PAGE;case"TwoColumnRight":n=r.EVEN}return{scrollMode:t,spreadMode:n}},t.apiPageModeToSidebarView=function(e){switch(e){case"UseNone":return o.NONE;case"UseThumbs":return o.THUMBS;case"UseOutlines":return o.OUTLINE;case"UseAttachments":return o.ATTACHMENTS;case"UseOC":return o.LAYERS}return o.NONE},t.approximateFraction=function(e){if(Math.floor(e)===e)return[e,1];const t=1/e;if(t>8)return[1,8];if(Math.floor(t)===t)return[1,t];const n=e>1?t:e;let a,o=0,s=1,r=1,i=1;for(;;){const e=o+r,t=s+i;if(t>8)break;n<=e/t?(r=e,i=t):(o=e,s=t)}return a=n-o/s<r/i-n?n===e?[o,s]:[s,o]:n===e?[r,i]:[i,r],a},t.backtrackBeforeAllVisibleElements=c,t.docStyle=void 0,t.getActiveOrFocusedElement=function(){let e=document,t=e.activeElement||e.querySelector(":focus");for(;t?.shadowRoot;)e=t.shadowRoot,t=e.activeElement||e.querySelector(":focus");return t},t.getPageSizeInches=function({view:e,userUnit:t,rotate:n}){const[a,o,s,r]=e,i=n%180!=0,f=(s-a)/72*t,c=(r-o)/72*t;return{width:i?c:f,height:i?f:c}},t.getVisibleElements=function({scrollEl:e,views:t,sortByVisibility:n=!1,horizontal:o=!1,rtl:s=!1}){const r=e.scrollTop,i=r+e.clientHeight,f=e.scrollLeft,l=f+e.clientWidth,u=[],_=new Set,d=t.length;let h=(0,a.binarySearchFirstItem)(t,o?function(e){const t=e.div,n=t.offsetLeft+t.clientLeft,a=n+t.clientWidth;return s?n<l:a>f}:function(e){const t=e.div;return t.offsetTop+t.clientTop+t.clientHeight>r});h>0&&h<d&&!o&&(h=c(h,t,r));let m=o?l:-1;for(let e=h;e<d;e++){const n=t[e],a=n.div,s=a.offsetLeft+a.clientLeft,c=a.offsetTop+a.clientTop,d=a.clientWidth,h=a.clientHeight,p=s+d,g=c+h;if(-1===m)g>=i&&(m=g);else if((o?s:c)>m)break;if(g<=r||c>=i||p<=f||s>=l)continue;const b=Math.max(0,r-c)+Math.max(0,g-i),y=Math.max(0,f-s)+Math.max(0,p-l),v=(d-y)/d,w=(h-b)/h*v*100|0;u.push({id:n.id,x:s,y:c,view:n,percent:w,widthPercent:100*v|0}),_.add(n.id)}const p=u[0],g=u.at(-1);return n&&u.sort((function(e,t){const n=e.percent-t.percent;return Math.abs(n)>.001?-n:e.id-t.id})),{first:p,last:g,views:u,ids:_}},t.isPortraitOrientation=function(e){return e.width<=e.height},t.isValidRotation=function(e){return Number.isInteger(e)&&e%90==0},t.isValidScrollMode=function(e){return Number.isInteger(e)&&Object.values(s).includes(e)&&e!==s.UNKNOWN},t.isValidSpreadMode=function(e){return Number.isInteger(e)&&Object.values(r).includes(e)&&e!==r.UNKNOWN},t.noContextMenuHandler=function(e){e.preventDefault()},t.normalizeWheelEventDelta=function(e){let t=l(e);return 0===e.deltaMode?t/=900:1===e.deltaMode&&(t/=30),t},t.normalizeWheelEventDirection=l,t.parseQueryString=function(e){const t=new Map;for(const[n,a]of new URLSearchParams(e))t.set(n.toLowerCase(),a);return t},t.removeNullCharacters=function(e,t=!1){return"string"!=typeof e?(console.error("The argument must be a string."),e):(t&&(e=e.replace(f," ")),e.replace(i,""))},t.roundToDivide=function(e,t){const n=e%t;return 0===n?e:Math.round(e-n+t)},t.scrollIntoView=function(e,t,n=!1){let a=e.offsetParent;if(!a)return void console.error("offsetParent is not set -- cannot scroll");let o=e.offsetTop+e.clientTop,s=e.offsetLeft+e.clientLeft;for(;a.clientHeight===a.scrollHeight&&a.clientWidth===a.scrollWidth||n&&(a.classList.contains("markedContent")||"hidden"===getComputedStyle(a).overflow);)if(o+=a.offsetTop,s+=a.offsetLeft,a=a.offsetParent,!a)return;t&&(void 0!==t.top&&(o+=t.top),void 0!==t.left&&(s+=t.left,a.scrollLeft=s)),a.scrollTop=o},t.watchScroll=function(e,t){const n=function(n){o||(o=window.requestAnimationFrame((function(){o=null;const n=e.scrollLeft,s=a.lastX;n!==s&&(a.right=n>s),a.lastX=n;const r=e.scrollTop,i=a.lastY;r!==i&&(a.down=r>i),a.lastY=r,t(a)})))},a={right:!0,down:!0,lastX:e.scrollLeft,lastY:e.scrollTop,_eventHandler:n};let o=null;return e.addEventListener("scroll",n,!0),a};var a=n(3);t.DEFAULT_SCALE_VALUE="auto",t.DEFAULT_SCALE=1,t.DEFAULT_SCALE_DELTA=1.1,t.MIN_SCALE=.1,t.MAX_SCALE=10,t.UNKNOWN_SCALE=0,t.MAX_AUTO_SCALE=1.25,t.SCROLLBAR_PADDING=40,t.VERTICAL_PADDING=5,t.RenderingStates={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3},t.PresentationModeState={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};const o={UNKNOWN:-1,NONE:0,THUMBS:1,OUTLINE:2,ATTACHMENTS:3,LAYERS:4};t.SidebarView=o,t.RendererType={CANVAS:"canvas",SVG:"svg"},t.TextLayerMode={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};const s={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3};t.ScrollMode=s;const r={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};t.SpreadMode=r,t.AutoPrintRegExp=/\bprint\s*\(/,t.OutputScale=class{constructor(){const e=window.devicePixelRatio||1;this.sx=e,this.sy=e}get scaled(){return 1!==this.sx||1!==this.sy}};const i=/\x00/g,f=/[\x01-\x1F]/g;function c(e,t,n){if(e<2)return e;let a=t[e].div,o=a.offsetTop+a.clientTop;o>=n&&(a=t[e-1].div,o=a.offsetTop+a.clientTop);for(let n=e-2;n>=0&&(a=t[n].div,!(a.offsetTop+a.clientTop+a.clientHeight<=o));--n)e=n;return e}function l(e){let t=Math.hypot(e.deltaX,e.deltaY);const n=Math.atan2(e.deltaY,e.deltaX);return-.25*Math.PI<n&&n<.75*Math.PI&&(t=-t),t}const u=new Promise((function(e){window.requestAnimationFrame(e)}));t.animationStarted=u;const _=document.documentElement.style;t.docStyle=_,t.ProgressBar=class{#wt=null;#kt=0;#te=!0;constructor(e){if(arguments.length>1)throw new Error("ProgressBar no longer accepts any additional options, please use CSS rules to modify its appearance instead.");const t=document.getElementById(e);this.#wt=t.classList}get percent(){return this.#kt}set percent(e){var t,n,a;this.#kt=(t=e,n=0,a=100,Math.min(Math.max(t,n),a)),isNaN(e)?this.#wt.add("indeterminate"):(this.#wt.remove("indeterminate"),_.setProperty("--progressBar-percent",`${this.#kt}%`))}setWidth(e){if(!e)return;const t=e.parentNode.offsetWidth-e.offsetWidth;t>0&&_.setProperty("--progressBar-end-offset",`${t}px`)}hide(){this.#te&&(this.#te=!1,this.#wt.add("hidden"))}show(){this.#te||(this.#te=!0,this.#wt.remove("hidden"))}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StructTreeLayerBuilder=void 0;const n={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},a=/^H(\d+)$/;t.StructTreeLayerBuilder=class{constructor({pdfPage:e}){this.pdfPage=e}render(e){return this._walk(e)}_setAttributes(e,t){void 0!==e.alt&&t.setAttribute("aria-label",e.alt),void 0!==e.id&&t.setAttribute("aria-owns",e.id),void 0!==e.lang&&t.setAttribute("lang",e.lang)}_walk(e){if(!e)return null;const t=document.createElement("span");if("role"in e){const{role:o}=e,s=o.match(a);s?(t.setAttribute("role","heading"),t.setAttribute("aria-level",s[1])):n[o]&&t.setAttribute("role",n[o])}if(this._setAttributes(e,t),e.children)if(1===e.children.length&&"id"in e.children[0])this._setAttributes(e.children[0],t);else for(const n of e.children)t.append(this._walk(n));return t}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerBuilder=void 0;var a=n(3);t.TextLayerBuilder=class{constructor({textLayerDiv:e,eventBus:t,pageIndex:n,viewport:a,highlighter:o=null,enhanceTextSelection:s=!1}){this.textLayerDiv=e,this.eventBus=t,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageNumber=n+1,this.viewport=a,this.textDivs=[],this.textLayerRenderTask=null,this.highlighter=o,this.enhanceTextSelection=s,this._bindMouse()}_finishRendering(){if(this.renderingDone=!0,!this.enhanceTextSelection){const e=document.createElement("div");e.className="endOfContent",this.textLayerDiv.append(e)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}render(e=0){if(!this.textContent&&!this.textContentStream||this.renderingDone)return;this.cancel(),this.textDivs.length=0,this.highlighter?.setTextMapping(this.textDivs,this.textContentItemsStr);const t=document.createDocumentFragment();this.textLayerRenderTask=(0,a.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:t,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:e,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then((()=>{this.textLayerDiv.append(t),this._finishRendering(),this.highlighter?.enable()}),(function(e){}))}cancel(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this.highlighter?.disable()}setTextContentStream(e){this.cancel(),this.textContentStream=e}setTextContent(e){this.cancel(),this.textContent=e}_bindMouse(){const e=this.textLayerDiv;let t=null;e.addEventListener("mousedown",(n=>{if(this.enhanceTextSelection&&this.textLayerRenderTask)return this.textLayerRenderTask.expandTextDivs(!0),void(t&&(clearTimeout(t),t=null));const a=e.querySelector(".endOfContent");if(!a)return;let o=n.target!==e;if(o=o&&"none"!==window.getComputedStyle(a).getPropertyValue("-moz-user-select"),o){const t=e.getBoundingClientRect(),o=Math.max(0,(n.pageY-t.top)/t.height);a.style.top=(100*o).toFixed(2)+"%"}a.classList.add("active")})),e.addEventListener("mouseup",(()=>{if(this.enhanceTextSelection&&this.textLayerRenderTask)return void(t=setTimeout((()=>{this.textLayerRenderTask&&this.textLayerRenderTask.expandTextDivs(!1),t=null}),300));const n=e.querySelector(".endOfContent");n&&(n.style.top="",n.classList.remove("active"))}))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayerBuilder=void 0;var a=n(3);t.XfaLayerBuilder=class{constructor({pageDiv:e,pdfPage:t,annotationStorage:n=null,linkService:a,xfaHtml:o=null}){this.pageDiv=e,this.pdfPage=t,this.annotationStorage=n,this.linkService=a,this.xfaHtml=o,this.div=null,this._cancelled=!1}render(e,t="display"){if("print"===t){const n={viewport:e.clone({dontFlip:!0}),div:this.div,xfaHtml:this.xfaHtml,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:t},o=document.createElement("div");this.pageDiv.append(o),n.div=o;const s=a.XfaLayer.render(n);return Promise.resolve(s)}return this.pdfPage.getXfa().then((n=>{if(this._cancelled||!n)return{textDivs:[]};const o={viewport:e.clone({dontFlip:!0}),div:this.div,xfaHtml:n,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:t};return this.div?a.XfaLayer.update(o):(this.div=document.createElement("div"),this.pageDiv.append(this.div),o.div=this.div,a.XfaLayer.render(o))})).catch((e=>{console.error(e)}))}cancel(){this._cancelled=!0}hide(){this.div&&(this.div.hidden=!0)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFViewer=t.PDFSinglePageViewer=void 0;var a=n(7),o=n(12);class s extends o.BaseViewer{}t.PDFViewer=s;class r extends o.BaseViewer{_resetView(){super._resetView(),this._scrollMode=a.ScrollMode.PAGE,this._spreadMode=a.SpreadMode.NONE}set scrollMode(e){}_updateScrollMode(){}set spreadMode(e){}_updateSpreadMode(){}}t.PDFSinglePageViewer=r},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PagesCountLimit=t.PDFPageViewBuffer=t.BaseViewer=void 0;var a=n(3),o=n(7),s=n(2),r=n(5),i=n(13),f=n(4),c=n(14),l=n(15),u=n(6),_=n(8),d=n(16),h=n(9),m=n(10);const p="enablePermissions",g={FORCE_SCROLL_MODE_PAGE:15e3,FORCE_LAZY_PAGE_INIT:7500,PAUSE_EAGER_PAGE_INIT:250};t.PagesCountLimit=g;const b=i.compatibilityParams.annotationEditorMode??a.AnnotationEditorType.DISABLE;function y(e){return Object.values(a.AnnotationEditorType).includes(e)&&e!==a.AnnotationEditorType.DISABLE}class v{#Et=new Set;#St=0;constructor(e){this.#St=e}push(e){const t=this.#Et;t.has(e)&&t.delete(e),t.add(e),t.size>this.#St&&this.#Ct()}resize(e,t=null){this.#St=e;const n=this.#Et;if(t){const e=n.size;let a=1;for(const o of n)if(t.has(o.id)&&(n.delete(o),n.add(o)),++a>e)break}for(;n.size>this.#St;)this.#Ct()}has(e){return this.#Et.has(e)}[Symbol.iterator](){return this.#Et.keys()}#Ct(){const e=this.#Et.keys().next().value;e?.destroy(),this.#Et.delete(e)}}t.PDFPageViewBuffer=v;class w{#At=null;#xt=a.AnnotationEditorType.DISABLE;#Pt=null;#Tt=a.AnnotationMode.ENABLE_FORMS;#Mt=!1;#Rt=0;#Lt=null;#It=null;constructor(e){if(this.constructor===w)throw new Error("Cannot initialize BaseViewer.");const t="2.15.349";if(a.version!==t)throw new Error(`The API version "${a.version}" does not match the Viewer version "2.15.349".`);if(this.container=e.container,this.viewer=e.viewer||e.container.firstElementChild,"DIV"!==this.container?.tagName.toUpperCase()||"DIV"!==this.viewer?.tagName.toUpperCase())throw new Error("Invalid `container` and/or `viewer` option.");if(this.container.offsetParent&&"absolute"!==getComputedStyle(this.container).position)throw new Error("The `container` must be absolutely positioned.");this.eventBus=e.eventBus,this.linkService=e.linkService||new u.SimpleLinkService,this.downloadManager=e.downloadManager||null,this.findController=e.findController||null,this._scriptingManager=e.scriptingManager||null,this.removePageBorders=e.removePageBorders||!1,this.textLayerMode=e.textLayerMode??o.TextLayerMode.ENABLE,this.#Tt=e.annotationMode??a.AnnotationMode.ENABLE_FORMS,this.#xt=e.annotationEditorMode??b,this.imageResourcesPath=e.imageResourcesPath||"",this.enablePrintAutoRotate=e.enablePrintAutoRotate||!1,this.renderer=e.renderer||o.RendererType.CANVAS,this.useOnlyCssZoom=e.useOnlyCssZoom||!1,this.maxCanvasPixels=e.maxCanvasPixels,this.l10n=e.l10n||f.NullL10n,this.#Mt=e.enablePermissions||!1,this.pageColors=e.pageColors||null,!this.pageColors||CSS.supports("color",this.pageColors.background)&&CSS.supports("color",this.pageColors.foreground)||((this.pageColors.background||this.pageColors.foreground)&&console.warn("BaseViewer: Ignoring `pageColors`-option, since the browser doesn't support the values used."),this.pageColors=null),this.defaultRenderingQueue=!e.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new l.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=e.renderingQueue,this.scroll=(0,o.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=o.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),this.updateContainerHeightCss()}get pagesCount(){return this._pages.length}getPageView(e){return this._pages[e]}get pageViewsReady(){return!!this._pagesCapability.settled&&this._pages.every((function(e){return e?.pdfPage}))}get renderForms(){return this.#Tt===a.AnnotationMode.ENABLE_FORMS}get enableScripting(){return!!this._scriptingManager}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(e){if(!Number.isInteger(e))throw new Error("Invalid page number.");this.pdfDocument&&(this._setCurrentPageNumber(e,!0)||console.error(`currentPageNumber: "${e}" is not a valid page.`))}_setCurrentPageNumber(e,t=!1){if(this._currentPageNumber===e)return t&&this.#Ot(),!0;if(!(0<e&&e<=this.pagesCount))return!1;const n=this._currentPageNumber;return this._currentPageNumber=e,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:e,pageLabel:this._pageLabels?.[e-1]??null,previous:n}),t&&this.#Ot(),!0}get currentPageLabel(){return this._pageLabels?.[this._currentPageNumber-1]??null}set currentPageLabel(e){if(!this.pdfDocument)return;let t=0|e;if(this._pageLabels){const n=this._pageLabels.indexOf(e);n>=0&&(t=n+1)}this._setCurrentPageNumber(t,!0)||console.error(`currentPageLabel: "${e}" is not a valid page.`)}get currentScale(){return this._currentScale!==o.UNKNOWN_SCALE?this._currentScale:o.DEFAULT_SCALE}set currentScale(e){if(isNaN(e))throw new Error("Invalid numeric scale.");this.pdfDocument&&this._setScale(e,!1)}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(e){this.pdfDocument&&this._setScale(e,!1)}get pagesRotation(){return this._pagesRotation}set pagesRotation(e){if(!(0,o.isValidRotation)(e))throw new Error("Invalid pages rotation angle.");if(!this.pdfDocument)return;if((e%=360)<0&&(e+=360),this._pagesRotation===e)return;this._pagesRotation=e;const t=this._currentPageNumber,n={rotation:e};for(const e of this._pages)e.update(n);this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:e,pageNumber:t}),this.defaultRenderingQueue&&this.update()}get firstPagePromise(){return this.pdfDocument?this._firstPageCapability.promise:null}get onePageRendered(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}get pagesPromise(){return this.pdfDocument?this._pagesCapability.promise:null}#Dt(e){const t={annotationEditorMode:this.#xt,annotationMode:this.#Tt,textLayerMode:this.textLayerMode};return e?(e.includes(a.PermissionFlag.COPY)||this.viewer.classList.add(p),e.includes(a.PermissionFlag.MODIFY_CONTENTS)||(t.annotationEditorMode=a.AnnotationEditorType.DISABLE),e.includes(a.PermissionFlag.MODIFY_ANNOTATIONS)||e.includes(a.PermissionFlag.FILL_INTERACTIVE_FORMS)||this.#Tt!==a.AnnotationMode.ENABLE_FORMS||(t.annotationMode=a.AnnotationMode.ENABLE),t):t}#Ft(){if("hidden"===document.visibilityState||!this.container.offsetParent||0===this._getVisiblePages().views.length)return Promise.resolve();const e=new Promise((e=>{this.#It=()=>{"hidden"===document.visibilityState&&(e(),document.removeEventListener("visibilitychange",this.#It),this.#It=null)},document.addEventListener("visibilitychange",this.#It)}));return Promise.race([this._onePageRenderedCapability.promise,e])}setDocument(e){if(this.pdfDocument&&(this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null),this._scriptingManager&&this._scriptingManager.setDocument(null),this.#Pt&&(this.#Pt.destroy(),this.#Pt=null)),this.pdfDocument=e,!e)return;const t=e.isPureXfa,n=e.numPages,s=e.getPage(1),r=e.getOptionalContentConfig(),i=this.#Mt?e.getPermissions():Promise.resolve();if(n>g.FORCE_SCROLL_MODE_PAGE){console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document.");const e=this._scrollMode=o.ScrollMode.PAGE;this.eventBus.dispatch("scrollmodechanged",{source:this,mode:e})}this._pagesCapability.promise.then((()=>{this.eventBus.dispatch("pagesloaded",{source:this,pagesCount:n})}),(()=>{})),this._onBeforeDraw=e=>{const t=this._pages[e.pageNumber-1];t&&this.#At.push(t)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=e=>{e.cssTransform||this._onePageRenderedCapability.settled||(this._onePageRenderedCapability.resolve({timestamp:e.timestamp}),this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null,this.#It&&(document.removeEventListener("visibilitychange",this.#It),this.#It=null))},this.eventBus._on("pagerendered",this._onAfterDraw),Promise.all([s,i]).then((([s,i])=>{if(e!==this.pdfDocument)return;this._firstPageCapability.resolve(s),this._optionalContentConfigPromise=r;const{annotationEditorMode:f,annotationMode:l,textLayerMode:u}=this.#Dt(i);if(f!==a.AnnotationEditorType.DISABLE){const e=f;t?console.warn("Warning: XFA-editing is not implemented."):y(e)?(this.eventBus.dispatch("annotationeditormodechanged",{source:this,mode:e}),this.#Pt=new a.AnnotationEditorUIManager(this.container,this.eventBus),e!==a.AnnotationEditorType.NONE&&this.#Pt.updateMode(e)):console.error(`Invalid AnnotationEditor mode: ${e}`)}const _=this._scrollMode===o.ScrollMode.PAGE?null:this.viewer,d=this.currentScale,h=s.getViewport({scale:d*a.PixelsPerInch.PDF_TO_CSS_UNITS}),m=u===o.TextLayerMode.DISABLE||t?null:this,p=l!==a.AnnotationMode.DISABLE?this:null,b=t?this:null,v=this.#Pt?this:null;for(let e=1;e<=n;++e){const t=new c.PDFPageView({container:_,eventBus:this.eventBus,id:e,scale:d,defaultViewport:h.clone(),optionalContentConfigPromise:r,renderingQueue:this.renderingQueue,textLayerFactory:m,textLayerMode:u,annotationLayerFactory:p,annotationMode:l,xfaLayerFactory:b,annotationEditorLayerFactory:v,textHighlighterFactory:this,structTreeLayerFactory:this,imageResourcesPath:this.imageResourcesPath,renderer:this.renderer,useOnlyCssZoom:this.useOnlyCssZoom,maxCanvasPixels:this.maxCanvasPixels,pageColors:this.pageColors,l10n:this.l10n});this._pages.push(t)}const w=this._pages[0];w&&(w.setPdfPage(s),this.linkService.cachePageRef(1,s.ref)),this._scrollMode===o.ScrollMode.PAGE?this.#Nt():this._spreadMode!==o.SpreadMode.NONE&&this._updateSpreadMode(),this.#Ft().then((async()=>{if(this.findController&&this.findController.setDocument(e),this._scriptingManager&&this._scriptingManager.setDocument(e),e.loadingParams.disableAutoFetch||n>g.FORCE_LAZY_PAGE_INIT)return void this._pagesCapability.resolve();let t=n-1;if(t<=0)this._pagesCapability.resolve();else for(let a=2;a<=n;++a){const n=e.getPage(a).then((e=>{const n=this._pages[a-1];n.pdfPage||n.setPdfPage(e),this.linkService.cachePageRef(a,e.ref),0==--t&&this._pagesCapability.resolve()}),(e=>{console.error(`Unable to get page ${a} to initialize viewer`,e),0==--t&&this._pagesCapability.resolve()}));a%g.PAUSE_EAGER_PAGE_INIT==0&&await n}})),this.eventBus.dispatch("pagesinit",{source:this}),e.getMetadata().then((({info:t})=>{e===this.pdfDocument&&t.Language&&(this.viewer.lang=t.Language)})),this.defaultRenderingQueue&&this.update()})).catch((e=>{console.error("Unable to initialize viewer",e),this._pagesCapability.reject(e)}))}setPageLabels(e){if(this.pdfDocument){e?Array.isArray(e)&&this.pdfDocument.numPages===e.length?this._pageLabels=e:(this._pageLabels=null,console.error("setPageLabels: Invalid page labels.")):this._pageLabels=null;for(let e=0,t=this._pages.length;e<t;e++)this._pages[e].setPageLabel(this._pageLabels?.[e]??null)}}_resetView(){this._pages=[],this._currentPageNumber=1,this._currentScale=o.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,this.#At=new v(10),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._firstPageCapability=(0,a.createPromiseCapability)(),this._onePageRenderedCapability=(0,a.createPromiseCapability)(),this._pagesCapability=(0,a.createPromiseCapability)(),this._scrollMode=o.ScrollMode.VERTICAL,this._previousScrollMode=o.ScrollMode.UNKNOWN,this._spreadMode=o.SpreadMode.NONE,this.#Lt={previousPageNumber:1,scrollDown:!0,pages:[]},this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),this.#It&&(document.removeEventListener("visibilitychange",this.#It),this.#It=null),this.viewer.textContent="",this._updateScrollMode(),this.viewer.removeAttribute("lang"),this.viewer.classList.remove(p)}#Nt(){if(this._scrollMode!==o.ScrollMode.PAGE)throw new Error("#ensurePageViewVisible: Invalid scrollMode value.");const e=this._currentPageNumber,t=this.#Lt,n=this.viewer;if(n.textContent="",t.pages.length=0,this._spreadMode!==o.SpreadMode.NONE||this.isInPresentationMode){const a=new Set,o=this._spreadMode-1;-1===o?a.add(e-1):e%2!==o?(a.add(e-1),a.add(e)):(a.add(e-2),a.add(e-1));const s=document.createElement("div");if(s.className="spread",this.isInPresentationMode){const e=document.createElement("div");e.className="dummyPage",s.append(e)}for(const e of a){const n=this._pages[e];n&&(s.append(n.div),t.pages.push(n))}n.append(s)}else{const a=this._pages[e-1];n.append(a.div),t.pages.push(a)}t.scrollDown=e>=t.previousPageNumber,t.previousPageNumber=e}_scrollUpdate(){0!==this.pagesCount&&this.update()}#jt(e,t=null){const{div:n,id:a}=e;if(this._scrollMode===o.ScrollMode.PAGE&&(this._setCurrentPageNumber(a),this.#Nt(),this.update()),!t&&!this.isInPresentationMode){const e=n.offsetLeft+n.clientLeft,a=e+n.clientWidth,{scrollLeft:s,clientWidth:r}=this.container;(this._scrollMode===o.ScrollMode.HORIZONTAL||e<s||a>s+r)&&(t={left:0,top:0})}(0,o.scrollIntoView)(n,t)}#Ut(e){return e===this._currentScale||Math.abs(e-this._currentScale)<1e-15}_setScaleUpdatePages(e,t,n=!1,s=!1){if(this._currentScaleValue=t.toString(),this.#Ut(e))return void(s&&this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:t}));o.docStyle.setProperty("--scale-factor",e*a.PixelsPerInch.PDF_TO_CSS_UNITS);const r={scale:e};for(const e of this._pages)e.update(r);if(this._currentScale=e,!n){let e,t=this._currentPageNumber;!this._location||this.isInPresentationMode||this.isChangingPresentationMode||(t=this._location.pageNumber,e=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:t,destArray:e,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:s?t:void 0}),this.defaultRenderingQueue&&this.update(),this.updateContainerHeightCss()}get _pageWidthScaleFactor(){return this._spreadMode!==o.SpreadMode.NONE&&this._scrollMode!==o.ScrollMode.HORIZONTAL?2:1}_setScale(e,t=!1){let n=parseFloat(e);if(n>0)this._setScaleUpdatePages(n,e,t,!1);else{const a=this._pages[this._currentPageNumber-1];if(!a)return;let s=o.SCROLLBAR_PADDING,r=o.VERTICAL_PADDING;this.isInPresentationMode?s=r=4:this.removePageBorders?s=r=0:this._scrollMode===o.ScrollMode.HORIZONTAL&&([s,r]=[r,s]);const i=(this.container.clientWidth-s)/a.width*a.scale/this._pageWidthScaleFactor,f=(this.container.clientHeight-r)/a.height*a.scale;switch(e){case"page-actual":n=1;break;case"page-width":n=i;break;case"page-height":n=f;break;case"page-fit":n=Math.min(i,f);break;case"auto":const t=(0,o.isPortraitOrientation)(a)?i:Math.min(f,i);n=Math.min(o.MAX_AUTO_SCALE,t);break;default:return void console.error(`_setScale: "${e}" is an unknown zoom value.`)}this._setScaleUpdatePages(n,e,t,!0)}}#Ot(){const e=this._pages[this._currentPageNumber-1];this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0),this.#jt(e)}pageLabelToPageNumber(e){if(!this._pageLabels)return null;const t=this._pageLabels.indexOf(e);return t<0?null:t+1}scrollPageIntoView({pageNumber:e,destArray:t=null,allowNegativeOffset:n=!1,ignoreDestinationZoom:s=!1}){if(!this.pdfDocument)return;const r=Number.isInteger(e)&&this._pages[e-1];if(!r)return void console.error(`scrollPageIntoView: "${e}" is not a valid pageNumber parameter.`);if(this.isInPresentationMode||!t)return void this._setCurrentPageNumber(e,!0);let i,f,c=0,l=0,u=0,_=0;const d=r.rotation%180!=0,h=(d?r.height:r.width)/r.scale/a.PixelsPerInch.PDF_TO_CSS_UNITS,m=(d?r.width:r.height)/r.scale/a.PixelsPerInch.PDF_TO_CSS_UNITS;let p=0;switch(t[1].name){case"XYZ":c=t[2],l=t[3],p=t[4],c=null!==c?c:0,l=null!==l?l:m;break;case"Fit":case"FitB":p="page-fit";break;case"FitH":case"FitBH":l=t[2],p="page-width",null===l&&this._location?(c=this._location.left,l=this._location.top):("number"!=typeof l||l<0)&&(l=m);break;case"FitV":case"FitBV":c=t[2],u=h,_=m,p="page-height";break;case"FitR":c=t[2],l=t[3],u=t[4]-c,_=t[5]-l;const e=this.removePageBorders?0:o.SCROLLBAR_PADDING,n=this.removePageBorders?0:o.VERTICAL_PADDING;i=(this.container.clientWidth-e)/u/a.PixelsPerInch.PDF_TO_CSS_UNITS,f=(this.container.clientHeight-n)/_/a.PixelsPerInch.PDF_TO_CSS_UNITS,p=Math.min(Math.abs(i),Math.abs(f));break;default:return void console.error(`scrollPageIntoView: "${t[1].name}" is not a valid destination type.`)}if(s||(p&&p!==this._currentScale?this.currentScaleValue=p:this._currentScale===o.UNKNOWN_SCALE&&(this.currentScaleValue=o.DEFAULT_SCALE_VALUE)),"page-fit"===p&&!t[4])return void this.#jt(r);const g=[r.viewport.convertToViewportPoint(c,l),r.viewport.convertToViewportPoint(c+u,l+_)];let b=Math.min(g[0][0],g[1][0]),y=Math.min(g[0][1],g[1][1]);n||(b=Math.max(b,0),y=Math.max(y,0)),this.#jt(r,{left:b,top:y})}_updateLocation(e){const t=this._currentScale,n=this._currentScaleValue,a=parseFloat(n)===t?Math.round(1e4*t)/100:n,o=e.id,s=this._pages[o-1],r=this.container,i=s.getPagePoint(r.scrollLeft-e.x,r.scrollTop-e.y),f=Math.round(i[0]),c=Math.round(i[1]);let l=`#page=${o}`;this.isInPresentationMode||(l+=`&zoom=${a},${f},${c}`),this._location={pageNumber:o,scale:a,top:c,left:f,rotation:this._pagesRotation,pdfOpenParams:l}}update(){const e=this._getVisiblePages(),t=e.views,n=t.length;if(0===n)return;const a=Math.max(10,2*n+1);this.#At.resize(a,e.ids),this.renderingQueue.renderHighestPriority(e);const s=this._spreadMode===o.SpreadMode.NONE&&(this._scrollMode===o.ScrollMode.PAGE||this._scrollMode===o.ScrollMode.VERTICAL),r=this._currentPageNumber;let i=!1;for(const e of t){if(e.percent<100)break;if(e.id===r&&s){i=!0;break}}this._setCurrentPageNumber(i?r:t[0].id),this._updateLocation(e.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}containsElement(e){return this.container.contains(e)}focus(){this.container.focus()}get _isContainerRtl(){return"rtl"===getComputedStyle(this.container).direction}get isInPresentationMode(){return this.presentationModeState===o.PresentationModeState.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===o.PresentationModeState.CHANGING}get isHorizontalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}get isVerticalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}_getVisiblePages(){const e=this._scrollMode===o.ScrollMode.PAGE?this.#Lt.pages:this._pages,t=this._scrollMode===o.ScrollMode.HORIZONTAL,n=t&&this._isContainerRtl;return(0,o.getVisibleElements)({scrollEl:this.container,views:e,sortByVisibility:!0,horizontal:t,rtl:n})}isPageVisible(e){return!!this.pdfDocument&&(Number.isInteger(e)&&e>0&&e<=this.pagesCount?this._getVisiblePages().ids.has(e):(console.error(`isPageVisible: "${e}" is not a valid page.`),!1))}isPageCached(e){if(!this.pdfDocument)return!1;if(!(Number.isInteger(e)&&e>0&&e<=this.pagesCount))return console.error(`isPageCached: "${e}" is not a valid page.`),!1;const t=this._pages[e-1];return this.#At.has(t)}cleanup(){for(const e of this._pages)e.renderingState!==o.RenderingStates.FINISHED&&e.reset()}_cancelRendering(){for(const e of this._pages)e.cancelRendering()}async#Ht(e){if(e.pdfPage)return e.pdfPage;try{const t=await this.pdfDocument.getPage(e.id);return e.pdfPage||e.setPdfPage(t),this.linkService._cachedPageNumber?.(t.ref)||this.linkService.cachePageRef(e.id,t.ref),t}catch(e){return console.error("Unable to get page for page view",e),null}}#$t(e){if(1===e.first?.id)return!0;if(e.last?.id===this.pagesCount)return!1;switch(this._scrollMode){case o.ScrollMode.PAGE:return this.#Lt.scrollDown;case o.ScrollMode.HORIZONTAL:return this.scroll.right}return this.scroll.down}#Bt(e){for(const t of e)this._pages[t-1]?.toggleLoadingIconSpinner(!0);for(const t of this.#At)e.has(t.id)||t.toggleLoadingIconSpinner(!1)}forceRendering(e){const t=e||this._getVisiblePages(),n=this.#$t(t),a=this._spreadMode!==o.SpreadMode.NONE&&this._scrollMode!==o.ScrollMode.HORIZONTAL,s=this.renderingQueue.getHighestPriority(t,this._pages,n,a);return this.#Bt(t.ids),!!s&&(this.#Ht(s).then((()=>{this.renderingQueue.renderView(s)})),!0)}createTextLayerBuilder({textLayerDiv:e,pageIndex:t,viewport:n,enhanceTextSelection:a=!1,eventBus:o,highlighter:s}){return new h.TextLayerBuilder({textLayerDiv:e,eventBus:o,pageIndex:t,viewport:n,enhanceTextSelection:!this.isInPresentationMode&&a,highlighter:s})}createTextHighlighter({pageIndex:e,eventBus:t}){return new d.TextHighlighter({eventBus:t,pageIndex:e,findController:this.isInPresentationMode?null:this.findController})}createAnnotationLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n=this.pdfDocument?.annotationStorage,imageResourcesPath:a="",renderForms:o=!0,l10n:s=f.NullL10n,enableScripting:i=this.enableScripting,hasJSActionsPromise:c=this.pdfDocument?.hasJSActions(),mouseState:l=this._scriptingManager?.mouseState,fieldObjectsPromise:u=this.pdfDocument?.getFieldObjects(),annotationCanvasMap:_=null}){return new r.AnnotationLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n,imageResourcesPath:a,renderForms:o,linkService:this.linkService,downloadManager:this.downloadManager,l10n:s,enableScripting:i,hasJSActionsPromise:c,mouseState:l,fieldObjectsPromise:u,annotationCanvasMap:_})}createAnnotationEditorLayerBuilder({uiManager:e=this.#Pt,pageDiv:t,pdfPage:n,l10n:a,annotationStorage:o=this.pdfDocument?.annotationStorage}){return new s.AnnotationEditorLayerBuilder({uiManager:e,pageDiv:t,pdfPage:n,annotationStorage:o,l10n:a})}createXfaLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n=this.pdfDocument?.annotationStorage}){return new m.XfaLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n,linkService:this.linkService})}createStructTreeLayerBuilder({pdfPage:e}){return new _.StructTreeLayerBuilder({pdfPage:e})}get hasEqualPageSizes(){const e=this._pages[0];for(let t=1,n=this._pages.length;t<n;++t){const n=this._pages[t];if(n.width!==e.width||n.height!==e.height)return!1}return!0}getPagesOverview(){return this._pages.map((e=>{const t=e.pdfPage.getViewport({scale:1});return!this.enablePrintAutoRotate||(0,o.isPortraitOrientation)(t)?{width:t.width,height:t.height,rotation:t.rotation}:{width:t.height,height:t.width,rotation:(t.rotation-90)%360}}))}get optionalContentConfigPromise(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:(console.error("optionalContentConfigPromise: Not initialized yet."),this.pdfDocument.getOptionalContentConfig()):Promise.resolve(null)}set optionalContentConfigPromise(e){if(!(e instanceof Promise))throw new Error(`Invalid optionalContentConfigPromise: ${e}`);if(!this.pdfDocument)return;if(!this._optionalContentConfigPromise)return;this._optionalContentConfigPromise=e;const t={optionalContentConfigPromise:e};for(const e of this._pages)e.update(t);this.update(),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:e})}get scrollMode(){return this._scrollMode}set scrollMode(e){if(this._scrollMode!==e){if(!(0,o.isValidScrollMode)(e))throw new Error(`Invalid scroll mode: ${e}`);this.pagesCount>g.FORCE_SCROLL_MODE_PAGE||(this._previousScrollMode=this._scrollMode,this._scrollMode=e,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:e}),this._updateScrollMode(this._currentPageNumber))}}_updateScrollMode(e=null){const t=this._scrollMode,n=this.viewer;n.classList.toggle("scrollHorizontal",t===o.ScrollMode.HORIZONTAL),n.classList.toggle("scrollWrapped",t===o.ScrollMode.WRAPPED),this.pdfDocument&&e&&(t===o.ScrollMode.PAGE?this.#Nt():this._previousScrollMode===o.ScrollMode.PAGE&&this._updateSpreadMode(),this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(e,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(e){if(this._spreadMode!==e){if(!(0,o.isValidSpreadMode)(e))throw new Error(`Invalid spread mode: ${e}`);this._spreadMode=e,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:e}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(e=null){if(!this.pdfDocument)return;const t=this.viewer,n=this._pages;if(this._scrollMode===o.ScrollMode.PAGE)this.#Nt();else if(t.textContent="",this._spreadMode===o.SpreadMode.NONE)for(const e of this._pages)t.append(e.div);else{const e=this._spreadMode-1;let a=null;for(let o=0,s=n.length;o<s;++o)null===a?(a=document.createElement("div"),a.className="spread",t.append(a)):o%2===e&&(a=a.cloneNode(!1),t.append(a)),a.append(n[o].div)}e&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(e,!0),this.update())}_getPageAdvance(e,t=!1){switch(this._scrollMode){case o.ScrollMode.WRAPPED:{const{views:n}=this._getVisiblePages(),a=new Map;for(const{id:e,y:t,percent:o,widthPercent:s}of n){if(0===o||s<100)continue;let n=a.get(t);n||a.set(t,n||=[]),n.push(e)}for(const n of a.values()){const a=n.indexOf(e);if(-1===a)continue;const o=n.length;if(1===o)break;if(t)for(let t=a-1,o=0;t>=o;t--){const a=n[t],o=n[t+1]-1;if(a<o)return e-o}else for(let t=a+1,s=o;t<s;t++){const a=n[t],o=n[t-1]+1;if(a>o)return o-e}if(t){const t=n[0];if(t<e)return e-t+1}else{const t=n[o-1];if(t>e)return t-e+1}break}break}case o.ScrollMode.HORIZONTAL:break;case o.ScrollMode.PAGE:case o.ScrollMode.VERTICAL:{if(this._spreadMode===o.SpreadMode.NONE)break;const n=this._spreadMode-1;if(t&&e%2!==n)break;if(!t&&e%2===n)break;const{views:a}=this._getVisiblePages(),s=t?e-1:e+1;for(const{id:e,percent:t,widthPercent:n}of a)if(e===s){if(t>0&&100===n)return 2;break}break}}return 1}nextPage(){const e=this._currentPageNumber,t=this.pagesCount;if(e>=t)return!1;const n=this._getPageAdvance(e,!1)||1;return this.currentPageNumber=Math.min(e+n,t),!0}previousPage(){const e=this._currentPageNumber;if(e<=1)return!1;const t=this._getPageAdvance(e,!0)||1;return this.currentPageNumber=Math.max(e-t,1),!0}increaseScale(e=1){let t=this._currentScale;do{t=(t*o.DEFAULT_SCALE_DELTA).toFixed(2),t=Math.ceil(10*t)/10,t=Math.min(o.MAX_SCALE,t)}while(--e>0&&t<o.MAX_SCALE);this.currentScaleValue=t}decreaseScale(e=1){let t=this._currentScale;do{t=(t/o.DEFAULT_SCALE_DELTA).toFixed(2),t=Math.floor(10*t)/10,t=Math.max(o.MIN_SCALE,t)}while(--e>0&&t>o.MIN_SCALE);this.currentScaleValue=t}updateContainerHeightCss(){const e=this.container.clientHeight;e!==this.#Rt&&(this.#Rt=e,o.docStyle.setProperty("--viewer-container-height",`${e}px`))}get annotationEditorMode(){return this.#Pt?this.#xt:a.AnnotationEditorType.DISABLE}set annotationEditorMode(e){if(!this.#Pt)throw new Error("The AnnotationEditor is not enabled.");if(this.#xt!==e){if(!y(e))throw new Error(`Invalid AnnotationEditor mode: ${e}`);this.pdfDocument&&(this.#xt=e,this.eventBus.dispatch("annotationeditormodechanged",{source:this,mode:e}),this.#Pt.updateMode(e))}}set annotationEditorParams({type:e,value:t}){if(!this.#Pt)throw new Error("The AnnotationEditor is not enabled.");this.#Pt.updateParams(e,t)}}t.BaseViewer=w},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.compatibilityParams=t.OptionKind=t.AppOptions=void 0;const n=Object.create(null);t.compatibilityParams=n;{const e=navigator.userAgent||"",t=navigator.platform||"",a=navigator.maxTouchPoints||1,o=/Android/.test(e);(/\b(iPad|iPhone|iPod)(?=;)/.test(e)||"MacIntel"===t&&a>1||o)&&(n.maxCanvasPixels=5242880),"undefined"==typeof ResizeObserver&&(n.annotationEditorMode=-1)}const a={VIEWER:2,API:4,WORKER:8,PREFERENCE:128};t.OptionKind=a;const o={annotationEditorMode:{value:-1,kind:a.VIEWER+a.PREFERENCE},annotationMode:{value:2,kind:a.VIEWER+a.PREFERENCE},cursorToolOnLoad:{value:0,kind:a.VIEWER+a.PREFERENCE},defaultZoomValue:{value:"",kind:a.VIEWER+a.PREFERENCE},disableHistory:{value:!1,kind:a.VIEWER},disablePageLabels:{value:!1,kind:a.VIEWER+a.PREFERENCE},enablePermissions:{value:!1,kind:a.VIEWER+a.PREFERENCE},enablePrintAutoRotate:{value:!0,kind:a.VIEWER+a.PREFERENCE},enableScripting:{value:!0,kind:a.VIEWER+a.PREFERENCE},externalLinkRel:{value:"noopener noreferrer nofollow",kind:a.VIEWER},externalLinkTarget:{value:0,kind:a.VIEWER+a.PREFERENCE},historyUpdateUrl:{value:!1,kind:a.VIEWER+a.PREFERENCE},ignoreDestinationZoom:{value:!1,kind:a.VIEWER+a.PREFERENCE},imageResourcesPath:{value:"./images/",kind:a.VIEWER},maxCanvasPixels:{value:16777216,kind:a.VIEWER},forcePageColors:{value:!1,kind:a.VIEWER+a.PREFERENCE},pageColorsBackground:{value:"Canvas",kind:a.VIEWER+a.PREFERENCE},pageColorsForeground:{value:"CanvasText",kind:a.VIEWER+a.PREFERENCE},pdfBugEnabled:{value:!1,kind:a.VIEWER+a.PREFERENCE},printResolution:{value:150,kind:a.VIEWER},sidebarViewOnLoad:{value:-1,kind:a.VIEWER+a.PREFERENCE},scrollModeOnLoad:{value:-1,kind:a.VIEWER+a.PREFERENCE},spreadModeOnLoad:{value:-1,kind:a.VIEWER+a.PREFERENCE},textLayerMode:{value:1,kind:a.VIEWER+a.PREFERENCE},useOnlyCssZoom:{value:!1,kind:a.VIEWER+a.PREFERENCE},viewerCssTheme:{value:0,kind:a.VIEWER+a.PREFERENCE},viewOnLoad:{value:0,kind:a.VIEWER+a.PREFERENCE},cMapPacked:{value:!0,kind:a.API},cMapUrl:{value:"../web/cmaps/",kind:a.API},disableAutoFetch:{value:!1,kind:a.API+a.PREFERENCE},disableFontFace:{value:!1,kind:a.API+a.PREFERENCE},disableRange:{value:!1,kind:a.API+a.PREFERENCE},disableStream:{value:!1,kind:a.API+a.PREFERENCE},docBaseUrl:{value:"",kind:a.API},enableXfa:{value:!0,kind:a.API+a.PREFERENCE},fontExtraProperties:{value:!1,kind:a.API},isEvalSupported:{value:!0,kind:a.API},maxImageSize:{value:-1,kind:a.API},pdfBug:{value:!1,kind:a.API},standardFontDataUrl:{value:"../web/standard_fonts/",kind:a.API},verbosity:{value:1,kind:a.API},workerPort:{value:null,kind:a.WORKER},workerSrc:{value:"../build/pdf.worker.js",kind:a.WORKER}};o.defaultUrl={value:"compressed.tracemonkey-pldi-09.pdf",kind:a.VIEWER},o.disablePreferences={value:!1,kind:a.VIEWER},o.locale={value:navigator.language||"en-US",kind:a.VIEWER},o.renderer={value:"canvas",kind:a.VIEWER+a.PREFERENCE},o.sandboxBundleSrc={value:"../build/pdf.sandbox.js",kind:a.VIEWER};const s=Object.create(null);t.AppOptions=class{constructor(){throw new Error("Cannot initialize AppOptions.")}static get(e){const t=s[e];if(void 0!==t)return t;const a=o[e];return void 0!==a?n[e]??a.value:void 0}static getAll(e=null){const t=Object.create(null);for(const r in o){const i=o[r];if(e){if(0==(e&i.kind))continue;if(e===a.PREFERENCE){const e=i.value,n=typeof e;if("boolean"===n||"string"===n||"number"===n&&Number.isInteger(e)){t[r]=e;continue}throw new Error(`Invalid type for preference: ${r}`)}}const f=s[r];t[r]=void 0!==f?f:n[r]??i.value}return t}static set(e,t){s[e]=t}static setAll(e){for(const t in e)s[t]=e[t]}static remove(e){delete s[e]}static _hasUserOptions(){return Object.keys(s).length>0}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFPageView=void 0;var a=n(3),o=n(7),s=n(13),r=n(4);const i=s.compatibilityParams.maxCanvasPixels||16777216;t.PDFPageView=class{#Tt=a.AnnotationMode.ENABLE_FORMS;#Vt={initialOptionalContent:!0,regularAnnotations:!0};constructor(e){const t=e.container,n=e.defaultViewport;this.id=e.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=e.scale||o.DEFAULT_SCALE,this.viewport=n,this.pdfPageRotate=n.rotation,this._optionalContentConfigPromise=e.optionalContentConfigPromise||null,this.hasRestrictedScaling=!1,this.textLayerMode=e.textLayerMode??o.TextLayerMode.ENABLE,this.#Tt=e.annotationMode??a.AnnotationMode.ENABLE_FORMS,this.imageResourcesPath=e.imageResourcesPath||"",this.useOnlyCssZoom=e.useOnlyCssZoom||!1,this.maxCanvasPixels=e.maxCanvasPixels||i,this.pageColors=e.pageColors||null,this.eventBus=e.eventBus,this.renderingQueue=e.renderingQueue,this.textLayerFactory=e.textLayerFactory,this.annotationLayerFactory=e.annotationLayerFactory,this.annotationEditorLayerFactory=e.annotationEditorLayerFactory,this.xfaLayerFactory=e.xfaLayerFactory,this.textHighlighter=e.textHighlighterFactory?.createTextHighlighter({pageIndex:this.id-1,eventBus:this.eventBus}),this.structTreeLayerFactory=e.structTreeLayerFactory,this.renderer=e.renderer||o.RendererType.CANVAS,this.l10n=e.l10n||r.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=o.RenderingStates.INITIAL,this.resume=null,this._renderError=null,this._isStandalone=!this.renderingQueue?.hasViewer(),this._annotationCanvasMap=null,this.annotationLayer=null,this.annotationEditorLayer=null,this.textLayer=null,this.zoomLayer=null,this.xfaLayer=null,this.structTreeLayer=null;const s=document.createElement("div");if(s.className="page",s.style.width=Math.floor(this.viewport.width)+"px",s.style.height=Math.floor(this.viewport.height)+"px",s.setAttribute("data-page-number",this.id),s.setAttribute("role","region"),this.l10n.get("page_landmark",{page:this.id}).then((e=>{s.setAttribute("aria-label",e)})),this.div=s,t?.append(s),this._isStandalone){const{optionalContentConfigPromise:t}=e;t&&t.then((e=>{t===this._optionalContentConfigPromise&&(this.#Vt.initialOptionalContent=e.hasInitialVisibility)}))}}setPdfPage(e){this.pdfPage=e,this.pdfPageRotate=e.rotate;const t=(this.rotation+this.pdfPageRotate)%360;this.viewport=e.getViewport({scale:this.scale*a.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:t}),this.reset()}destroy(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}async _renderAnnotationLayer(){let e=null;try{await this.annotationLayer.render(this.viewport,"display")}catch(t){e=t}finally{this.eventBus.dispatch("annotationlayerrendered",{source:this,pageNumber:this.id,error:e})}}async _renderAnnotationEditorLayer(){let e=null;try{await this.annotationEditorLayer.render(this.viewport,"display")}catch(t){e=t}finally{this.eventBus.dispatch("annotationeditorlayerrendered",{source:this,pageNumber:this.id,error:e})}}async _renderXfaLayer(){let e=null;try{const t=await this.xfaLayer.render(this.viewport,"display");this.textHighlighter&&this._buildXfaTextContentItems(t.textDivs)}catch(t){e=t}finally{this.eventBus.dispatch("xfalayerrendered",{source:this,pageNumber:this.id,error:e})}}async _buildXfaTextContentItems(e){const t=await this.pdfPage.getTextContent(),n=[];for(const e of t.items)n.push(e.str);this.textHighlighter.setTextMapping(e,n),this.textHighlighter.enable()}_resetZoomLayer(e=!1){if(!this.zoomLayer)return;const t=this.zoomLayer.firstChild;this.paintedViewportMap.delete(t),t.width=0,t.height=0,e&&this.zoomLayer.remove(),this.zoomLayer=null}reset({keepZoomLayer:e=!1,keepAnnotationLayer:t=!1,keepAnnotationEditorLayer:n=!1,keepXfaLayer:a=!1}={}){this.cancelRendering({keepAnnotationLayer:t,keepAnnotationEditorLayer:n,keepXfaLayer:a}),this.renderingState=o.RenderingStates.INITIAL;const s=this.div;s.style.width=Math.floor(this.viewport.width)+"px",s.style.height=Math.floor(this.viewport.height)+"px";const r=s.childNodes,i=e&&this.zoomLayer||null,f=t&&this.annotationLayer?.div||null,c=n&&this.annotationEditorLayer?.div||null,l=a&&this.xfaLayer?.div||null;for(let e=r.length-1;e>=0;e--){const t=r[e];switch(t){case i:case f:case c:case l:continue}t.remove()}s.removeAttribute("data-loaded"),f&&this.annotationLayer.hide(),c?this.annotationEditorLayer.hide():this.annotationEditorLayer?.destroy(),l&&this.xfaLayer.hide(),i||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon notVisible",this._isStandalone&&this.toggleLoadingIconSpinner(!0),this.loadingIconDiv.setAttribute("role","img"),this.l10n.get("loading").then((e=>{this.loadingIconDiv?.setAttribute("aria-label",e)})),s.append(this.loadingIconDiv)}update({scale:e=0,rotation:t=null,optionalContentConfigPromise:n=null}){this.scale=e||this.scale,"number"==typeof t&&(this.rotation=t),n instanceof Promise&&(this._optionalContentConfigPromise=n,n.then((e=>{n===this._optionalContentConfigPromise&&(this.#Vt.initialOptionalContent=e.hasInitialVisibility)})));const s=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*a.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:s}),this._isStandalone&&o.docStyle.setProperty("--scale-factor",this.viewport.scale),this.svg)return this.cssTransform({target:this.svg,redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0}),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});let r=!1;if(this.canvas&&this.maxCanvasPixels>0){const e=this.outputScale;(Math.floor(this.viewport.width)*e.sx|0)*(Math.floor(this.viewport.height)*e.sy|0)>this.maxCanvasPixels&&(r=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&r)return this.cssTransform({target:this.canvas,redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0}),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});this.zoomLayer||this.canvas.hidden||(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform({target:this.zoomLayer.firstChild}),this.reset({keepZoomLayer:!0,keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0})}cancelRendering({keepAnnotationLayer:e=!1,keepAnnotationEditorLayer:t=!1,keepXfaLayer:n=!1}={}){this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!this.annotationLayer||e&&this.annotationLayer.div||(this.annotationLayer.cancel(),this.annotationLayer=null,this._annotationCanvasMap=null),!this.annotationEditorLayer||t&&this.annotationEditorLayer.div||(this.annotationEditorLayer.cancel(),this.annotationEditorLayer=null),!this.xfaLayer||n&&this.xfaLayer.div||(this.xfaLayer.cancel(),this.xfaLayer=null,this.textHighlighter?.disable()),this._onTextLayerRendered&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null)}cssTransform({target:e,redrawAnnotationLayer:t=!1,redrawAnnotationEditorLayer:n=!1,redrawXfaLayer:a=!1}){const o=this.viewport.width,s=this.viewport.height,r=this.div;e.style.width=e.parentNode.style.width=r.style.width=Math.floor(o)+"px",e.style.height=e.parentNode.style.height=r.style.height=Math.floor(s)+"px";const i=this.viewport.rotation-this.paintedViewportMap.get(e).rotation,f=Math.abs(i);let c=1,l=1;if(90!==f&&270!==f||(c=s/o,l=o/s),e.style.transform=`rotate(${i}deg) scale(${c}, ${l})`,this.textLayer){const e=this.textLayer.viewport,t=this.viewport.rotation-e.rotation,n=Math.abs(t);let a=o/e.width;90!==n&&270!==n||(a=o/e.height);const s=this.textLayer.textLayerDiv;let r,i;switch(n){case 0:r=i=0;break;case 90:r=0,i="-"+s.style.height;break;case 180:r="-"+s.style.width,i="-"+s.style.height;break;case 270:r="-"+s.style.width,i=0;break;default:console.error("Bad rotation value.")}s.style.transform=`rotate(${n}deg) scale(${a}) translate(${r}, ${i})`,s.style.transformOrigin="0% 0%"}t&&this.annotationLayer&&this._renderAnnotationLayer(),n&&this.annotationEditorLayer&&this._renderAnnotationEditorLayer(),a&&this.xfaLayer&&this._renderXfaLayer()}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(e,t){return this.viewport.convertToPdfPoint(e,t)}toggleLoadingIconSpinner(e=!1){this.loadingIconDiv?.classList.toggle("notVisible",!e)}draw(){this.renderingState!==o.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());const{div:e,pdfPage:t}=this;if(!t)return this.renderingState=o.RenderingStates.FINISHED,this.loadingIconDiv&&(this.loadingIconDiv.remove(),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=o.RenderingStates.RUNNING;const n=document.createElement("div");n.style.width=e.style.width,n.style.height=e.style.height,n.classList.add("canvasWrapper");const s=this.annotationLayer?.div||this.annotationEditorLayer?.div;s?s.before(n):e.append(n);let r=null;if(this.textLayerMode!==o.TextLayerMode.DISABLE&&this.textLayerFactory){const t=document.createElement("div");t.className="textLayer",t.style.width=n.style.width,t.style.height=n.style.height,s?s.before(t):e.append(t),r=this.textLayerFactory.createTextLayerBuilder({textLayerDiv:t,pageIndex:this.id-1,viewport:this.viewport,enhanceTextSelection:this.textLayerMode===o.TextLayerMode.ENABLE_ENHANCE,eventBus:this.eventBus,highlighter:this.textHighlighter})}this.textLayer=r,this.#Tt!==a.AnnotationMode.DISABLE&&this.annotationLayerFactory&&(this._annotationCanvasMap||=new Map,this.annotationLayer||=this.annotationLayerFactory.createAnnotationLayerBuilder({pageDiv:e,pdfPage:t,imageResourcesPath:this.imageResourcesPath,renderForms:this.#Tt===a.AnnotationMode.ENABLE_FORMS,l10n:this.l10n,annotationCanvasMap:this._annotationCanvasMap})),this.xfaLayer?.div&&e.append(this.xfaLayer.div);let i=null;this.renderingQueue&&(i=e=>{if(!this.renderingQueue.isHighestPriority(this))return this.renderingState=o.RenderingStates.PAUSED,void(this.resume=()=>{this.renderingState=o.RenderingStates.RUNNING,e()});e()});const f=async(e=null)=>{if(c===this.paintTask&&(this.paintTask=null),e instanceof a.RenderingCancelledException)this._renderError=null;else if(this._renderError=e,this.renderingState=o.RenderingStates.FINISHED,this.loadingIconDiv&&(this.loadingIconDiv.remove(),delete this.loadingIconDiv),this._resetZoomLayer(!0),this.#Vt.regularAnnotations=!c.separateAnnots,this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!1,timestamp:performance.now(),error:this._renderError}),e)throw e},c=this.renderer===o.RendererType.SVG?this.paintOnSvg(n):this.paintOnCanvas(n);c.onRenderContinue=i,this.paintTask=c;const l=c.promise.then((()=>f(null).then((()=>{if(r){const e=t.streamTextContent({includeMarkedContent:!0});r.setTextContentStream(e),r.render()}this.annotationLayer&&this._renderAnnotationLayer().then((()=>{this.annotationEditorLayerFactory&&(this.annotationEditorLayer||=this.annotationEditorLayerFactory.createAnnotationEditorLayerBuilder({pageDiv:e,pdfPage:t,l10n:this.l10n}),this._renderAnnotationEditorLayer())}))}))),(function(e){return f(e)}));return this.xfaLayerFactory&&(this.xfaLayer||(this.xfaLayer=this.xfaLayerFactory.createXfaLayerBuilder({pageDiv:e,pdfPage:t})),this._renderXfaLayer()),this.structTreeLayerFactory&&this.textLayer&&this.canvas&&(this._onTextLayerRendered=e=>{e.pageNumber===this.id&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null,this.canvas&&this.pdfPage.getStructTree().then((e=>{if(!e)return;if(!this.canvas)return;const t=this.structTreeLayer.render(e);t.classList.add("structTree"),this.canvas.append(t)})))},this.eventBus._on("textlayerrendered",this._onTextLayerRendered),this.structTreeLayer=this.structTreeLayerFactory.createStructTreeLayerBuilder({pdfPage:t})),e.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),l}paintOnCanvas(e){const t=(0,a.createPromiseCapability)(),n={promise:t.promise,onRenderContinue(e){e()},cancel(){h.cancel()},get separateAnnots(){return h.separateAnnots}},s=this.viewport,r=document.createElement("canvas");r.setAttribute("role","presentation"),r.hidden=!0;let i=!0;const f=function(){i&&(r.hidden=!1,i=!1)};e.append(r),this.canvas=r;const c=r.getContext("2d",{alpha:!1}),l=this.outputScale=new o.OutputScale;if(this.useOnlyCssZoom){const e=s.clone({scale:a.PixelsPerInch.PDF_TO_CSS_UNITS});l.sx*=e.width/s.width,l.sy*=e.height/s.height}if(this.maxCanvasPixels>0){const e=s.width*s.height,t=Math.sqrt(this.maxCanvasPixels/e);l.sx>t||l.sy>t?(l.sx=t,l.sy=t,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}const u=(0,o.approximateFraction)(l.sx),_=(0,o.approximateFraction)(l.sy);r.width=(0,o.roundToDivide)(s.width*l.sx,u[0]),r.height=(0,o.roundToDivide)(s.height*l.sy,_[0]),r.style.width=(0,o.roundToDivide)(s.width,u[1])+"px",r.style.height=(0,o.roundToDivide)(s.height,_[1])+"px",this.paintedViewportMap.set(r,s);const d={canvasContext:c,transform:l.scaled?[l.sx,0,0,l.sy,0,0]:null,viewport:this.viewport,annotationMode:this.#Tt,optionalContentConfigPromise:this._optionalContentConfigPromise,annotationCanvasMap:this._annotationCanvasMap,pageColors:this.pageColors},h=this.pdfPage.render(d);return h.onContinue=function(e){f(),n.onRenderContinue?n.onRenderContinue(e):e()},h.promise.then((function(){f(),t.resolve()}),(function(e){f(),t.reject(e)})),n}paintOnSvg(e){let t=!1;const n=()=>{if(t)throw new a.RenderingCancelledException(`Rendering cancelled, page ${this.id}`,"svg")},s=this.pdfPage,r=this.viewport.clone({scale:a.PixelsPerInch.PDF_TO_CSS_UNITS});return{promise:s.getOperatorList({annotationMode:this.#Tt}).then((t=>(n(),new a.SVGGraphics(s.commonObjs,s.objs).getSVG(t,r).then((t=>{n(),this.svg=t,this.paintedViewportMap.set(t,r),t.style.width=e.style.width,t.style.height=e.style.height,this.renderingState=o.RenderingStates.FINISHED,e.append(t)}))))),onRenderContinue(e){e()},cancel(){t=!0},get separateAnnots(){return!1}}}setPageLabel(e){this.pageLabel="string"==typeof e?e:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}get thumbnailCanvas(){const{initialOptionalContent:e,regularAnnotations:t}=this.#Vt;return e&&t?this.canvas:null}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFRenderingQueue=void 0;var a=n(3),o=n(7);t.PDFRenderingQueue=class{constructor(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}setViewer(e){this.pdfViewer=e}setThumbnailViewer(e){this.pdfThumbnailViewer=e}isHighestPriority(e){return this.highestPriorityPage===e.renderingId}hasViewer(){return!!this.pdfViewer}renderHighestPriority(e){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.pdfViewer.forceRendering(e)||this.isThumbnailViewEnabled&&this.pdfThumbnailViewer?.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4))}getHighestPriority(e,t,n,a=!1){const o=e.views,s=o.length;if(0===s)return null;for(let e=0;e<s;e++){const t=o[e].view;if(!this.isViewFinished(t))return t}const r=e.first.id,i=e.last.id;if(i-r+1>s){const a=e.ids;for(let e=1,o=i-r;e<o;e++){const o=n?r+e:i-e;if(a.has(o))continue;const s=t[o-1];if(!this.isViewFinished(s))return s}}let f=n?i:r-2,c=t[f];return c&&!this.isViewFinished(c)||a&&(f+=n?1:-1,c=t[f],c&&!this.isViewFinished(c))?c:null}isViewFinished(e){return e.renderingState===o.RenderingStates.FINISHED}renderView(e){switch(e.renderingState){case o.RenderingStates.FINISHED:return!1;case o.RenderingStates.PAUSED:this.highestPriorityPage=e.renderingId,e.resume();break;case o.RenderingStates.RUNNING:this.highestPriorityPage=e.renderingId;break;case o.RenderingStates.INITIAL:this.highestPriorityPage=e.renderingId,e.draw().finally((()=>{this.renderHighestPriority()})).catch((e=>{e instanceof a.RenderingCancelledException||console.error(`renderView: "${e}"`)}))}return!0}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextHighlighter=void 0,t.TextHighlighter=class{constructor({findController:e,eventBus:t,pageIndex:n}){this.findController=e,this.matches=[],this.eventBus=t,this.pageIdx=n,this._onUpdateTextLayerMatches=null,this.textDivs=null,this.textContentItemsStr=null,this.enabled=!1}setTextMapping(e,t){this.textDivs=e,this.textContentItemsStr=t}enable(){if(!this.textDivs||!this.textContentItemsStr)throw new Error("Text divs and strings have not been set.");if(this.enabled)throw new Error("TextHighlighter is already enabled.");this.enabled=!0,this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=e=>{e.pageIndex!==this.pageIdx&&-1!==e.pageIndex||this._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches)),this._updateMatches()}disable(){this.enabled&&(this.enabled=!1,this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null))}_convertMatches(e,t){if(!e)return[];const{textContentItemsStr:n}=this;let a=0,o=0;const s=n.length-1,r=[];for(let i=0,f=e.length;i<f;i++){let f=e[i];for(;a!==s&&f>=o+n[a].length;)o+=n[a].length,a++;a===n.length&&console.error("Could not find a matching mapping");const c={begin:{divIdx:a,offset:f-o}};for(f+=t[i];a!==s&&f>o+n[a].length;)o+=n[a].length,a++;c.end={divIdx:a,offset:f-o},r.push(c)}return r}_renderMatches(e){if(0===e.length)return;const{findController:t,pageIdx:n}=this,{textContentItemsStr:a,textDivs:o}=this,s=n===t.selected.pageIdx,r=t.selected.matchIdx;let i=null;const f={divIdx:-1,offset:void 0};function c(e,t){const n=e.divIdx;return o[n].textContent="",l(n,0,e.offset,t)}function l(e,t,n,s){let r=o[e];if(r.nodeType===Node.TEXT_NODE){const t=document.createElement("span");r.before(t),t.append(r),o[e]=t,r=t}const i=a[e].substring(t,n),f=document.createTextNode(i);if(s){const e=document.createElement("span");return e.className=`${s} appended`,e.append(f),r.append(e),s.includes("selected")?e.offsetLeft:0}return r.append(f),0}let u=r,_=u+1;if(t.state.highlightAll)u=0,_=e.length;else if(!s)return;for(let a=u;a<_;a++){const u=e[a],_=u.begin,d=u.end,h=s&&a===r,m=h?" selected":"";let p=0;if(i&&_.divIdx===i.divIdx?l(i.divIdx,i.offset,_.offset):(null!==i&&l(i.divIdx,i.offset,f.offset),c(_)),_.divIdx===d.divIdx)p=l(_.divIdx,_.offset,d.offset,"highlight"+m);else{p=l(_.divIdx,_.offset,f.offset,"highlight begin"+m);for(let e=_.divIdx+1,t=d.divIdx;e<t;e++)o[e].className="highlight middle"+m;c(d,"highlight end"+m)}i=d,h&&t.scrollMatchIntoView({element:o[_.divIdx],selectedLeft:p,pageIndex:n,matchIndex:r})}i&&l(i.divIdx,i.offset,f.offset)}_updateMatches(){if(!this.enabled)return;const{findController:e,matches:t,pageIdx:n}=this,{textContentItemsStr:a,textDivs:o}=this;let s=-1;for(let e=0,n=t.length;e<n;e++){const n=t[e];for(let e=Math.max(s,n.begin.divIdx),t=n.end.divIdx;e<=t;e++){const t=o[e];t.textContent=a[e],t.className=""}s=n.end.divIdx+1}if(!e?.highlightMatches)return;const r=e.pageMatches[n]||null,i=e.pageMatchesLength[n]||null;this.matches=this._convertMatches(r,i),this._renderMatches(this.matches)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadManager=void 0;var a=n(3);function o(e,t){const n=document.createElement("a");if(!n.click)throw new Error('DownloadManager: "a.click()" is not supported.');n.href=e,n.target="_parent","download"in n&&(n.download=t),(document.body||document.documentElement).append(n),n.click(),n.remove()}t.DownloadManager=class{constructor(){this._openBlobUrls=new WeakMap}downloadUrl(e,t){(0,a.createValidAbsoluteUrl)(e,"http://example.com")?o(e+"#pdfjs.action=download",t):console.error(`downloadUrl - not a valid URL: ${e}`)}downloadData(e,t,n){o(URL.createObjectURL(new Blob([e],{type:n})),t)}openOrDownloadData(e,t,n){const o=(0,a.isPdfFile)(n),s=o?"application/pdf":"";if(o){let a,o=this._openBlobUrls.get(e);o||(o=URL.createObjectURL(new Blob([t],{type:s})),this._openBlobUrls.set(e,o)),a="?file="+encodeURIComponent(o+"#"+n);try{return window.open(a),!0}catch(t){console.error(`openOrDownloadData: ${t}`),URL.revokeObjectURL(o),this._openBlobUrls.delete(e)}}return this.downloadData(t,n,s),!1}download(e,t,n){o(URL.createObjectURL(e),n)}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WaitOnType=t.EventBus=t.AutomationEventBus=void 0,t.waitOnEventOrTimeout=function({target:e,name:t,delay:o=0}){return new Promise((function(s,r){if("object"!=typeof e||!t||"string"!=typeof t||!(Number.isInteger(o)&&o>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function i(n){e instanceof a?e._off(t,f):e.removeEventListener(t,f),l&&clearTimeout(l),s(n)}const f=i.bind(null,n.EVENT);e instanceof a?e._on(t,f):e.addEventListener(t,f);const c=i.bind(null,n.TIMEOUT),l=setTimeout(c,o)}))};const n={EVENT:"event",TIMEOUT:"timeout"};t.WaitOnType=n;class a{constructor(){this._listeners=Object.create(null)}on(e,t,n=null){this._on(e,t,{external:!0,once:n?.once})}off(e,t,n=null){this._off(e,t,{external:!0,once:n?.once})}dispatch(e,t){const n=this._listeners[e];if(!n||0===n.length)return;let a;for(const{listener:o,external:s,once:r}of n.slice(0))r&&this._off(e,o),s?(a||=[]).push(o):o(t);if(a){for(const e of a)e(t);a=null}}_on(e,t,n=null){(this._listeners[e]||=[]).push({listener:t,external:!0===n?.external,once:!0===n?.once})}_off(e,t,n=null){const a=this._listeners[e];if(a)for(let e=0,n=a.length;e<n;e++)if(a[e].listener===t)return void a.splice(e,1)}}t.EventBus=a,t.AutomationEventBus=class extends a{dispatch(e,t){throw new Error("Not implemented: AutomationEventBus.dispatch")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GenericL10n=void 0,n(20);var a=n(4);const o=document.webL10n;t.GenericL10n=class{constructor(e){this._lang=e,this._ready=new Promise(((t,n)=>{o.setLanguage((0,a.fixupLangCode)(e),(()=>{t(o)}))}))}async getLanguage(){return(await this._ready).getLanguage()}async getDirection(){return(await this._ready).getDirection()}async get(e,t=null,n=(0,a.getL10nFallback)(e,t)){return(await this._ready).get(e,t,n)}async translate(e){return(await this._ready).translate(e)}}},()=>{document.webL10n=function(e,t,n){var a={},o="",s="textContent",r="",i={},f="loading";function c(e,t,n){t=t||function(e){},n=n||function(){};var a=new XMLHttpRequest;a.open("GET",e,!0),a.overrideMimeType&&a.overrideMimeType("text/plain; charset=utf-8"),a.onreadystatechange=function(){4==a.readyState&&(200==a.status||0===a.status?t(a.responseText):n())},a.onerror=n,a.ontimeout=n;try{a.send(null)}catch(e){n()}}function l(e,t,n,r){var i=e.replace(/[^\/]*$/,"")||"./";function f(e){return e.lastIndexOf("\\")<0?e:e.replace(/\\\\/g,"\\").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}c(e,(function(e){o+=e,function(e,n){var a={},o=/^\s*|\s*$/,s=/^\s*#|^\s*$/,r=/^\s*\[(.*)\]\s*$/,l=/^\s*@import\s+url\((.*)\)\s*$/i,u=/^([^=\s]*)\s*=\s*(.+)$/;function _(e,n,c){var _=e.replace(o,"").split(/[\r\n]+/),h="*",m=t.split("-",1)[0],p=!1,g="";!function e(){for(;;){if(!_.length)return void c();var o=_.shift();if(!s.test(o)){if(n){if(g=r.exec(o)){h=g[1].toLowerCase(),p="*"!==h&&h!==t&&h!==m;continue}if(p)continue;if(g=l.exec(o))return void d(i+g[1],e)}var b=o.match(u);b&&3==b.length&&(a[b[1]]=f(b[2]))}}}()}function d(e,t){c(e,(function(e){_(e,!1,t)}),(function(){console.warn(e+" not found."),t()}))}_(e,!0,(function(){n(a)}))}(e,(function(e){for(var t in e){var o,r,i=t.lastIndexOf(".");i>0?(o=t.substring(0,i),r=t.substring(i+1)):(o=t,r=s),a[o]||(a[o]={}),a[o][r]=e[t]}n&&n()}))}),r)}function u(e,n){e&&(e=e.toLowerCase()),n=n||function(){},a={},o="",r="",r=e;var s=t.querySelectorAll('link[type="application/l10n"]'),i=s.length;if(0!==i){var c,u,_=0;u=function(){++_>=i&&(n(),f="complete")};for(var d=0;d<i;d++)new g(s[d]).load(e,u)}else{var h=(c=t.querySelector('script[type="application/l10n"]'))?JSON.parse(c.innerHTML):null;if(h&&h.locales&&h.default_locale){if(console.log("using the embedded JSON directory, early way out"),!(a=h.locales[e])){var m=h.default_locale.toLowerCase();for(var p in h.locales){if((p=p.toLowerCase())===e){a=h.locales[e];break}p===m&&(a=h.locales[m])}}n()}else console.log("no resource to load, early way out");f="complete"}function g(e){var t=e.href;this.load=function(e,n){l(t,e,n,(function(){console.warn(t+" not found."),console.warn('"'+e+'" resource not found'),r="",n()}))}}}function _(e,t,n){var o=a[e];if(!o){if(console.warn("#"+e+" is undefined."),!n)return null;o=n}var s={};for(var r in o){var i=o[r];i=h(i=d(i,t,e,r),t,e),s[r]=i}return s}function d(e,t,n,o){var s=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/.exec(e);if(!s||!s.length)return e;var r,f=s[1],c=s[2];return t&&c in t?r=t[c]:c in a&&(r=a[c]),f in i&&(e=(0,i[f])(e,r,n,o)),e}function h(e,t,n){return e.replace(/\{\{\s*(.+?)\s*\}\}/g,(function(e,o){return t&&o in t?t[o]:o in a?a[o]:(console.log("argument {{"+o+"}} for #"+n+" is undefined."),e)}))}function m(e){var n=function(e){if(!e)return{};var t=e.getAttribute("data-l10n-id"),n=e.getAttribute("data-l10n-args"),a={};if(n)try{a=JSON.parse(n)}catch(e){console.warn("could not parse arguments for #"+t)}return{id:t,args:a}}(e);if(n.id){var a=_(n.id,n.args);if(a){if(a[s]){if(0===function(e){if(e.children)return e.children.length;if(void 0!==e.childElementCount)return e.childElementCount;for(var t=0,n=0;n<e.childNodes.length;n++)t+=1===e.nodeType?1:0;return t}(e))e[s]=a[s];else{for(var o=e.childNodes,r=!1,i=0,f=o.length;i<f;i++)3===o[i].nodeType&&/\S/.test(o[i].nodeValue)&&(r?o[i].nodeValue="":(o[i].nodeValue=a[s],r=!0));if(!r){var c=t.createTextNode(a[s]);e.prepend(c)}}delete a[s]}for(var l in a)e[l]=a[l]}else console.warn("#"+n.id+" is undefined.")}}return i.plural=function(e,t,n,o){var f=parseFloat(t);if(isNaN(f))return e;if(o!=s)return e;i._pluralRules||(i._pluralRules=function(e){function t(e,t){return-1!==t.indexOf(e)}function n(e,t,n){return t<=e&&e<=n}var a={0:function(e){return"other"},1:function(e){return n(e%100,3,10)?"few":0===e?"zero":n(e%100,11,99)?"many":2==e?"two":1==e?"one":"other"},2:function(e){return 0!==e&&e%10==0?"many":2==e?"two":1==e?"one":"other"},3:function(e){return 1==e?"one":"other"},4:function(e){return n(e,0,1)?"one":"other"},5:function(e){return n(e,0,2)&&2!=e?"one":"other"},6:function(e){return 0===e?"zero":e%10==1&&e%100!=11?"one":"other"},7:function(e){return 2==e?"two":1==e?"one":"other"},8:function(e){return n(e,3,6)?"few":n(e,7,10)?"many":2==e?"two":1==e?"one":"other"},9:function(e){return 0===e||1!=e&&n(e%100,1,19)?"few":1==e?"one":"other"},10:function(e){return n(e%10,2,9)&&!n(e%100,11,19)?"few":e%10!=1||n(e%100,11,19)?"other":"one"},11:function(e){return n(e%10,2,4)&&!n(e%100,12,14)?"few":e%10==0||n(e%10,5,9)||n(e%100,11,14)?"many":e%10==1&&e%100!=11?"one":"other"},12:function(e){return n(e,2,4)?"few":1==e?"one":"other"},13:function(e){return n(e%10,2,4)&&!n(e%100,12,14)?"few":1!=e&&n(e%10,0,1)||n(e%10,5,9)||n(e%100,12,14)?"many":1==e?"one":"other"},14:function(e){return n(e%100,3,4)?"few":e%100==2?"two":e%100==1?"one":"other"},15:function(e){return 0===e||n(e%100,2,10)?"few":n(e%100,11,19)?"many":1==e?"one":"other"},16:function(e){return e%10==1&&11!=e?"one":"other"},17:function(e){return 3==e?"few":0===e?"zero":6==e?"many":2==e?"two":1==e?"one":"other"},18:function(e){return 0===e?"zero":n(e,0,2)&&0!==e&&2!=e?"one":"other"},19:function(e){return n(e,2,10)?"few":n(e,0,1)?"one":"other"},20:function(e){return!n(e%10,3,4)&&e%10!=9||n(e%100,10,19)||n(e%100,70,79)||n(e%100,90,99)?e%1e6==0&&0!==e?"many":e%10!=2||t(e%100,[12,72,92])?e%10!=1||t(e%100,[11,71,91])?"other":"one":"two":"few"},21:function(e){return 0===e?"zero":1==e?"one":"other"},22:function(e){return n(e,0,1)||n(e,11,99)?"one":"other"},23:function(e){return n(e%10,1,2)||e%20==0?"one":"other"},24:function(e){return n(e,3,10)||n(e,13,19)?"few":t(e,[2,12])?"two":t(e,[1,11])?"one":"other"}},o={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3}[e.replace(/-.*$/,"")];return o in a?a[o]:(console.warn("plural form unknown for ["+e+"]"),function(){return"other"})}(r));var c="["+i._pluralRules(f)+"]";return 0===f&&n+"[zero]"in a?e=a[n+"[zero]"][o]:1==f&&n+"[one]"in a?e=a[n+"[one]"][o]:2==f&&n+"[two]"in a?e=a[n+"[two]"][o]:n+c in a?e=a[n+c][o]:n+"[other]"in a&&(e=a[n+"[other]"][o]),e},{get:function(e,t,n){var a,o=e.lastIndexOf("."),r=s;o>0&&(r=e.substring(o+1),e=e.substring(0,o)),n&&((a={})[r]=n);var i=_(e,t,a);return i&&r in i?i[r]:"{{"+e+"}}"},getData:function(){return a},getText:function(){return o},getLanguage:function(){return r},setLanguage:function(e,t){u(e,(function(){t&&t()}))},getDirection:function(){var e=r.split("-",1)[0];return["ar","he","fa","ps","ur"].indexOf(e)>=0?"rtl":"ltr"},translate:function(e){for(var n=function(e){return e?e.querySelectorAll("*[data-l10n-id]"):[]}(e=e||t.documentElement),a=n.length,o=0;o<a;o++)m(n[o]);m(e)},getReadyState:function(){return f},ready:function(n){n&&("complete"==f||"interactive"==f?e.setTimeout((function(){n()})):t.addEventListener&&t.addEventListener("localized",(function e(){t.removeEventListener("localized",e),n()})))}}}(window,document)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFindController=t.FindState=void 0;var a=n(3),o=n(22),s=n(7);const r={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};t.FindState=r;const i={"‐":"-","‘":"'","’":"'","‚":"'","‛":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"},f=new Set([12441,12442,2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,3642,3770,3972,4153,4154,5908,5940,6098,6752,6980,7082,7083,7154,7155,11647,43014,43052,43204,43347,43456,43766,44013,3158,3953,3954,3962,3963,3964,3965,3968,3956]),c=[...f.values()].map((e=>String.fromCharCode(e))).join(""),l=/\p{M}+/gu,u=/([.*+?^${}()|[\]\\])|(\p{P})|(\s+)|(\p{M})|(\p{L})/gu,_=/([^\p{M}])\p{M}*$/u,d=/^\p{M}*([^\p{M}])/u,h=/[\uAC00-\uD7AF\uFA6C\uFACF-\uFAD1\uFAD5-\uFAD7]+/g,m=new Map;let p=null,g=null;function b(e){const t=[];let n,a;for(;null!==(n=h.exec(e));){let{index:e}=n;for(const a of n[0]){let n=m.get(a);n||(n=a.normalize("NFD").length,m.set(a,n)),t.push([n,e++])}}if(0===t.length&&p)a=p;else if(t.length>0&&g)a=g;else{const e=`([${Object.keys(i).join("")}])|(\\p{M}+(?:-\\n)?)|(\\S-\\n)|(\\n)`;a=0===t.length?p=new RegExp(e+"|(\\u0000)","gum"):g=new RegExp(e+"|([\\u1100-\\u1112\\ud7a4-\\ud7af\\ud84a\\ud84c\\ud850\\ud854\\ud857\\ud85f])","gum")}const o=[];for(;null!==(n=l.exec(e));)o.push([n[0].length,n.index]);let s=e.normalize("NFD");const r=[[0,0]];let f=0,c=0,u=0,_=0,d=0,b=!1;return s=s.replace(a,((e,n,a,s,l,h,m)=>{if(m-=_,n){const t=i[e],n=t.length;for(let e=1;e<n;e++)r.push([m-u+e,u-e]);return u-=n-1,t}if(a){const e=a.endsWith("\n"),t=e?a.length-2:a.length;b=!0;let n=t;m+d===o[f]?.[1]&&(n-=o[f][0],++f);for(let e=1;e<=n;e++)r.push([m-1-u+e,u-e]);return u-=n,_+=n,e?(m+=t-1,r.push([m-u+1,1+u]),u+=1,_+=1,d+=1,a.slice(0,t)):a}if(s)return r.push([m-u+1,1+u]),u+=1,_+=1,d+=1,s.charAt(0);if(l)return r.push([m-u+1,u-1]),u-=1,_+=1,d+=1," ";if(m+d===t[c]?.[1]){const e=t[c][0]-1;++c;for(let t=1;t<=e;t++)r.push([m-(u-t),u-t]);u-=e,_+=e}return h})),r.push([s.length,u]),[s,r,b]}function y(e,t,n){if(!e)return[t,n];const o=t,s=t+n;let r=(0,a.binarySearchFirstItem)(e,(e=>e[0]>=o));e[r][0]>o&&--r;let i=(0,a.binarySearchFirstItem)(e,(e=>e[0]>=s),r);return e[i][0]>s&&--i,[o+e[r][1],n+e[i][1]-e[r][1]]}t.PDFFindController=class{constructor({linkService:e,eventBus:t}){this._linkService=e,this._eventBus=t,this.#qt(),t._on("find",this.#Wt.bind(this)),t._on("findbarclose",this.#zt.bind(this))}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return this._state}setDocument(e){this._pdfDocument&&this.#qt(),e&&(this._pdfDocument=e,this._firstPageCapability.resolve())}#Wt(e){if(!e)return;const t=this._pdfDocument,{type:n}=e;(null===this._state||this.#Gt(e))&&(this._dirtyMatch=!0),this._state=e,"highlightallchange"!==n&&this.#Qt(r.PENDING),this._firstPageCapability.promise.then((()=>{if(!this._pdfDocument||t&&this._pdfDocument!==t)return;this.#Ie();const e=!this._highlightMatches,a=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),n?this._dirtyMatch?this.#Xt():"again"===n?(this.#Xt(),e&&this._state.highlightAll&&this.#Kt()):"highlightallchange"===n?(a?this.#Xt():this._highlightMatches=!0,this.#Kt()):this.#Xt():this._findTimeout=setTimeout((()=>{this.#Xt(),this._findTimeout=null}),250)}))}scrollMatchIntoView({element:e=null,selectedLeft:t=0,pageIndex:n=-1,matchIndex:a=-1}){if(!this._scrollMatches||!e)return;if(-1===a||a!==this._selected.matchIdx)return;if(-1===n||n!==this._selected.pageIdx)return;this._scrollMatches=!1;const o={top:-50,left:t+-400};(0,s.scrollIntoView)(e,o,!0)}#qt(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._hasDiacritics=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,a.createPromiseCapability)()}get#Yt(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,[this._normalizedQuery]=b(this._state.query)),this._normalizedQuery}#Gt(e){if(e.query!==this._state.query)return!0;switch(e.type){case"again":const e=this._selected.pageIdx+1,t=this._linkService;return e>=1&&e<=t.pagesCount&&e!==t.page&&!t.isPageVisible(e);case"highlightallchange":return!1}return!0}#Jt(e,t,n){let a=e.slice(0,t).match(_);if(a){const n=e.charCodeAt(t),s=a[1].charCodeAt(0);if((0,o.getCharacterType)(n)===(0,o.getCharacterType)(s))return!1}if(a=e.slice(t+n).match(d),a){const s=e.charCodeAt(t+n-1),r=a[1].charCodeAt(0);if((0,o.getCharacterType)(s)===(0,o.getCharacterType)(r))return!1}return!0}#Zt(e,t,n,a){const o=[],s=[],r=this._pageDiffs[n];let i;for(;null!==(i=e.exec(a));){if(t&&!this.#Jt(a,i.index,i[0].length))continue;const[e,n]=y(r,i.index,i[0].length);n&&(o.push(e),s.push(n))}this._pageMatches[n]=o,this._pageMatchesLength[n]=s}#en(e,t){const{matchDiacritics:n}=this._state;let a=!1;const o="[ ]*";return(e=e.replace(u,((e,o,s,r,i,c)=>o?`[ ]*\\${o}[ ]*`:s?`[ ]*${s}[ ]*`:r?"[ ]+":n?i||c:i?f.has(i.charCodeAt(0))?i:"":t?(a=!0,`${c}\\p{M}*`):c))).endsWith(o)&&(e=e.slice(0,e.length-o.length)),n&&t&&(a=!0,e=`${e}(?=[${c}]|[^\\p{M}]|$)`),[a,e]}#tn(e){let t=this.#Yt;if(0===t.length)return;const{caseSensitive:n,entireWord:a,phraseSearch:o}=this._state,s=this._pageContents[e],r=this._hasDiacritics[e];let i=!1;if(o)[i,t]=this.#en(t,r);else{const e=t.match(/\S+/g);e&&(t=e.sort().reverse().map((e=>{const[t,n]=this.#en(e,r);return i||=t,`(${n})`})).join("|"))}t=new RegExp(t,`g${i?"u":""}${n?"":"i"}`),this.#Zt(t,a,e,s),this._state.highlightAll&&this.#nn(e),this._resumePageIdx===e&&(this._resumePageIdx=null,this.#an());const f=this._pageMatches[e].length;f>0&&(this._matchesCountTotal+=f,this.#on())}#Ie(){if(this._extractTextPromises.length>0)return;let e=Promise.resolve();for(let t=0,n=this._linkService.pagesCount;t<n;t++){const n=(0,a.createPromiseCapability)();this._extractTextPromises[t]=n.promise,e=e.then((()=>this._pdfDocument.getPage(t+1).then((e=>e.getTextContent())).then((e=>{const a=[];for(const t of e.items)a.push(t.str),t.hasEOL&&a.push("\n");[this._pageContents[t],this._pageDiffs[t],this._hasDiacritics[t]]=b(a.join("")),n.resolve()}),(e=>{console.error(`Unable to get text content for page ${t+1}`,e),this._pageContents[t]="",this._pageDiffs[t]=null,this._hasDiacritics[t]=!1,n.resolve()}))))}}#nn(e){this._scrollMatches&&this._selected.pageIdx===e&&(this._linkService.page=e+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:e})}#Kt(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}#Xt(){const e=this._state.findPrevious,t=this._linkService.page-1,n=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=t,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,this.#Kt();for(let e=0;e<n;e++)this._pendingFindMatches.has(e)||(this._pendingFindMatches.add(e),this._extractTextPromises[e].then((()=>{this._pendingFindMatches.delete(e),this.#tn(e)})))}if(""===this.#Yt)return void this.#Qt(r.FOUND);if(this._resumePageIdx)return;const a=this._offset;if(this._pagesToSearch=n,null!==a.matchIdx){const t=this._pageMatches[a.pageIdx].length;if(!e&&a.matchIdx+1<t||e&&a.matchIdx>0)return a.matchIdx=e?a.matchIdx-1:a.matchIdx+1,void this.#sn(!0);this.#rn(e)}this.#an()}#in(e){const t=this._offset,n=e.length,a=this._state.findPrevious;return n?(t.matchIdx=a?n-1:0,this.#sn(!0),!0):(this.#rn(a),!!(t.wrapped&&(t.matchIdx=null,this._pagesToSearch<0))&&(this.#sn(!1),!0))}#an(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");let e=null;do{const t=this._offset.pageIdx;if(e=this._pageMatches[t],!e){this._resumePageIdx=t;break}}while(!this.#in(e))}#rn(e){const t=this._offset,n=this._linkService.pagesCount;t.pageIdx=e?t.pageIdx-1:t.pageIdx+1,t.matchIdx=null,this._pagesToSearch--,(t.pageIdx>=n||t.pageIdx<0)&&(t.pageIdx=e?n-1:0,t.wrapped=!0)}#sn(e=!1){let t=r.NOT_FOUND;const n=this._offset.wrapped;if(this._offset.wrapped=!1,e){const e=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,t=n?r.WRAPPED:r.FOUND,-1!==e&&e!==this._selected.pageIdx&&this.#nn(e)}this.#Qt(t,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this.#nn(this._selected.pageIdx))}#zt(e){const t=this._pdfDocument;this._firstPageCapability.promise.then((()=>{!this._pdfDocument||t&&this._pdfDocument!==t||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),this.#Qt(r.FOUND),this._highlightMatches=!1,this.#Kt())}))}#fn(){const{pageIdx:e,matchIdx:t}=this._selected;let n=0,a=this._matchesCountTotal;if(-1!==t){for(let t=0;t<e;t++)n+=this._pageMatches[t]?.length||0;n+=t+1}return(n<1||n>a)&&(n=a=0),{current:n,total:a}}#on(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this.#fn()})}#Qt(e,t=!1){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:e,previous:t,matchesCount:this.#fn(),rawQuery:this._state?.query??null})}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterType=void 0,t.getCharacterType=function(e){return function(e){return e<11904}(e)?function(e){return 0==(65408&e)}(e)?function(e){return 32===e||9===e||13===e||10===e}(e)?n.SPACE:function(e){return e>=97&&e<=122||e>=65&&e<=90}(e)||function(e){return e>=48&&e<=57}(e)||95===e?n.ALPHA_LETTER:n.PUNCT:function(e){return 3584==(65408&e)}(e)?n.THAI_LETTER:160===e?n.SPACE:n.ALPHA_LETTER:function(e){return e>=13312&&e<=40959||e>=63744&&e<=64255}(e)?n.HAN_LETTER:function(e){return e>=12448&&e<=12543}(e)?n.KATAKANA_LETTER:function(e){return e>=12352&&e<=12447}(e)?n.HIRAGANA_LETTER:function(e){return e>=65376&&e<=65439}(e)?n.HALFWIDTH_KATAKANA_LETTER:n.ALPHA_LETTER};const n={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};t.CharacterType=n},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFHistory=void 0,t.isDestArraysEqual=i,t.isDestHashesEqual=r;var a=n(7),o=n(18);function s(){return document.location.hash}function r(e,t){return"string"==typeof e&&"string"==typeof t&&(e===t||(0,a.parseQueryString)(e).get("nameddest")===t)}function i(e,t){function n(e,t){if(typeof e!=typeof t)return!1;if(Array.isArray(e)||Array.isArray(t))return!1;if(null!==e&&"object"==typeof e&&null!==t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const a in e)if(!n(e[a],t[a]))return!1;return!0}return e===t||Number.isNaN(e)&&Number.isNaN(t)}if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(let a=0,o=e.length;a<o;a++)if(!n(e[a],t[a]))return!1;return!0}t.PDFHistory=class{constructor({linkService:e,eventBus:t}){this.linkService=e,this.eventBus=t,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this.eventBus._on("pagesinit",(()=>{this._isPagesLoaded=!1,this.eventBus._on("pagesloaded",(e=>{this._isPagesLoaded=!!e.pagesCount}),{once:!0})}))}initialize({fingerprint:e,resetHistory:t=!1,updateUrl:n=!1}){if(!e||"string"!=typeof e)return void console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');this._initialized&&this.reset();const a=""!==this._fingerprint&&this._fingerprint!==e;this._fingerprint=e,this._updateUrl=!0===n,this._initialized=!0,this._bindEvents();const o=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=s(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(o,!0)||t){const{hash:e,page:n,rotation:o}=this._parseCurrentHash(!0);return!e||a||t?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:e,page:n,rotation:o},!0)}const r=o.destination;this._updateInternalState(r,o.uid,!0),void 0!==r.rotation&&(this._initialRotation=r.rotation),r.dest?(this._initialBookmark=JSON.stringify(r.dest),this._destination.page=null):r.hash?this._initialBookmark=r.hash:r.page&&(this._initialBookmark=`page=${r.page}`)}reset(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push({namedDest:e=null,explicitDest:t,pageNumber:n}){if(!this._initialized)return;if(e&&"string"!=typeof e)return void console.error(`PDFHistory.push: "${e}" is not a valid namedDest parameter.`);if(!Array.isArray(t))return void console.error(`PDFHistory.push: "${t}" is not a valid explicitDest parameter.`);if(!this._isValidPage(n)&&(null!==n||this._destination))return void console.error(`PDFHistory.push: "${n}" is not a valid pageNumber parameter.`);const a=e||JSON.stringify(t);if(!a)return;let o=!1;if(this._destination&&(r(this._destination.hash,a)||i(this._destination.dest,t))){if(this._destination.page)return;o=!0}this._popStateInProgress&&!o||(this._pushOrReplaceState({dest:t,hash:a,page:n,rotation:this.linkService.rotation},o),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then((()=>{this._popStateInProgress=!1}))))}pushPage(e){this._initialized&&(this._isValidPage(e)?this._destination?.page!==e&&(this._popStateInProgress||(this._pushOrReplaceState({dest:null,hash:`page=${e}`,page:e,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then((()=>{this._popStateInProgress=!1}))))):console.error(`PDFHistory.pushPage: "${e}" is not a valid page number.`))}pushCurrentPosition(){this._initialized&&!this._popStateInProgress&&this._tryPushCurrentPosition()}back(){if(!this._initialized||this._popStateInProgress)return;const e=window.history.state;this._isValidState(e)&&e.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;const e=window.history.state;this._isValidState(e)&&e.uid<this._maxUid&&window.history.forward()}get popStateInProgress(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}get initialBookmark(){return this._initialized?this._initialBookmark:null}get initialRotation(){return this._initialized?this._initialRotation:null}_pushOrReplaceState(e,t=!1){const n=t||!this._destination,a={fingerprint:this._fingerprint,uid:n?this._uid:this._uid+1,destination:e};let o;if(this._updateInternalState(e,a.uid),this._updateUrl&&e?.hash){const t=document.location.href.split("#")[0];t.startsWith("file://")||(o=`${t}#${e.hash}`)}n?window.history.replaceState(a,"",o):window.history.pushState(a,"",o)}_tryPushCurrentPosition(e=!1){if(!this._position)return;let t=this._position;if(e&&(t=Object.assign(Object.create(null),this._position),t.temporary=!0),!this._destination)return void this._pushOrReplaceState(t);if(this._destination.temporary)return void this._pushOrReplaceState(t,!0);if(this._destination.hash===t.hash)return;if(!this._destination.page&&this._numPositionUpdates<=50)return;let n=!1;if(this._destination.page>=t.first&&this._destination.page<=t.page){if(void 0!==this._destination.dest||!this._destination.first)return;n=!0}this._pushOrReplaceState(t,n)}_isValidPage(e){return Number.isInteger(e)&&e>0&&e<=this.linkService.pagesCount}_isValidState(e,t=!1){if(!e)return!1;if(e.fingerprint!==this._fingerprint){if(!t)return!1;{if("string"!=typeof e.fingerprint||e.fingerprint.length!==this._fingerprint.length)return!1;const[t]=performance.getEntriesByType("navigation");if("reload"!==t?.type)return!1}}return!(!Number.isInteger(e.uid)||e.uid<0)&&null!==e.destination&&"object"==typeof e.destination}_updateInternalState(e,t,n=!1){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),n&&e?.temporary&&delete e.temporary,this._destination=e,this._uid=t,this._maxUid=Math.max(this._maxUid,t),this._numPositionUpdates=0}_parseCurrentHash(e=!1){const t=unescape(s()).substring(1),n=(0,a.parseQueryString)(t),o=n.get("nameddest")||"";let r=0|n.get("page");return(!this._isValidPage(r)||e&&o.length>0)&&(r=null),{hash:t,page:r,rotation:this.linkService.rotation}}_updateViewarea({location:e}){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:e.pdfOpenParams.substring(1),page:this.linkService.page,first:e.pageNumber,rotation:e.rotation},this._popStateInProgress||(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout((()=>{this._popStateInProgress||this._tryPushCurrentPosition(!0),this._updateViewareaTimeout=null}),1e3))}_popState({state:e}){const t=s(),n=this._currentHash!==t;if(this._currentHash=t,!e){this._uid++;const{hash:e,page:t,rotation:n}=this._parseCurrentHash();return void this._pushOrReplaceState({hash:e,page:t,rotation:n},!0)}if(!this._isValidState(e))return;this._popStateInProgress=!0,n&&(this._blockHashChange++,(0,o.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then((()=>{this._blockHashChange--})));const r=e.destination;this._updateInternalState(r,e.uid,!0),(0,a.isValidRotation)(r.rotation)&&(this.linkService.rotation=r.rotation),r.dest?this.linkService.goToDestination(r.dest):r.hash?this.linkService.setHash(r.hash):r.page&&(this.linkService.page=r.page),Promise.resolve().then((()=>{this._popStateInProgress=!1}))}_pageHide(){this._destination&&!this._destination.temporary||this._tryPushCurrentPosition()}_bindEvents(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}_unbindEvents(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFScriptingManager=void 0;var a=n(7),o=n(3);t.PDFScriptingManager=class{constructor({eventBus:e,sandboxBundleSrc:t=null,scriptingFactory:n=null,docPropertiesLookup:a=null}){this._pdfDocument=null,this._pdfViewer=null,this._closeCapability=null,this._destroyCapability=null,this._scripting=null,this._mouseState=Object.create(null),this._ready=!1,this._eventBus=e,this._sandboxBundleSrc=t,this._scriptingFactory=n,this._docPropertiesLookup=a,this._scriptingFactory||window.addEventListener("updatefromsandbox",(e=>{this._eventBus.dispatch("updatefromsandbox",{source:window,detail:e.detail})}))}setViewer(e){this._pdfViewer=e}async setDocument(e){if(this._pdfDocument&&await this._destroyScripting(),this._pdfDocument=e,!e)return;const[t,n,a]=await Promise.all([e.getFieldObjects(),e.getCalculationOrderIds(),e.getJSActions()]);if(t||a){if(e===this._pdfDocument){try{this._scripting=this._createScripting()}catch(e){return console.error(`PDFScriptingManager.setDocument: "${e?.message}".`),void await this._destroyScripting()}this._internalEvents.set("updatefromsandbox",(e=>{e?.source===window&&this._updateFromSandbox(e.detail)})),this._internalEvents.set("dispatcheventinsandbox",(e=>{this._scripting?.dispatchEventInSandbox(e.detail)})),this._internalEvents.set("pagechanging",(({pageNumber:e,previous:t})=>{e!==t&&(this._dispatchPageClose(t),this._dispatchPageOpen(e))})),this._internalEvents.set("pagerendered",(({pageNumber:e})=>{this._pageOpenPending.has(e)&&e===this._pdfViewer.currentPageNumber&&this._dispatchPageOpen(e)})),this._internalEvents.set("pagesdestroy",(async e=>{await this._dispatchPageClose(this._pdfViewer.currentPageNumber),await(this._scripting?.dispatchEventInSandbox({id:"doc",name:"WillClose"})),this._closeCapability?.resolve()})),this._domEvents.set("mousedown",(e=>{this._mouseState.isDown=!0})),this._domEvents.set("mouseup",(e=>{this._mouseState.isDown=!1}));for(const[e,t]of this._internalEvents)this._eventBus._on(e,t);for(const[e,t]of this._domEvents)window.addEventListener(e,t,!0);try{const o=await this._getDocProperties();if(e!==this._pdfDocument)return;await this._scripting.createSandbox({objects:t,calculationOrder:n,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:{...o,actions:a}}),this._eventBus.dispatch("sandboxcreated",{source:this})}catch(e){return console.error(`PDFScriptingManager.setDocument: "${e?.message}".`),void await this._destroyScripting()}await(this._scripting?.dispatchEventInSandbox({id:"doc",name:"Open"})),await this._dispatchPageOpen(this._pdfViewer.currentPageNumber,!0),Promise.resolve().then((()=>{e===this._pdfDocument&&(this._ready=!0)}))}}else await this._destroyScripting()}async dispatchWillSave(e){return this._scripting?.dispatchEventInSandbox({id:"doc",name:"WillSave"})}async dispatchDidSave(e){return this._scripting?.dispatchEventInSandbox({id:"doc",name:"DidSave"})}async dispatchWillPrint(e){return this._scripting?.dispatchEventInSandbox({id:"doc",name:"WillPrint"})}async dispatchDidPrint(e){return this._scripting?.dispatchEventInSandbox({id:"doc",name:"DidPrint"})}get mouseState(){return this._mouseState}get destroyPromise(){return this._destroyCapability?.promise||null}get ready(){return this._ready}get _internalEvents(){return(0,o.shadow)(this,"_internalEvents",new Map)}get _domEvents(){return(0,o.shadow)(this,"_domEvents",new Map)}get _pageOpenPending(){return(0,o.shadow)(this,"_pageOpenPending",new Set)}get _visitedPages(){return(0,o.shadow)(this,"_visitedPages",new Map)}async _updateFromSandbox(e){const t=this._pdfViewer.isInPresentationMode||this._pdfViewer.isChangingPresentationMode,{id:n,siblings:o,command:s,value:r}=e;if(!n){switch(s){case"clear":console.clear();break;case"error":console.error(r);break;case"layout":if(t)return;const e=(0,a.apiPageLayoutToViewerModes)(r);this._pdfViewer.spreadMode=e.spreadMode;break;case"page-num":this._pdfViewer.currentPageNumber=r+1;break;case"print":await this._pdfViewer.pagesPromise,this._eventBus.dispatch("print",{source:this});break;case"println":console.log(r);break;case"zoom":if(t)return;this._pdfViewer.currentScaleValue=r;break;case"SaveAs":this._eventBus.dispatch("download",{source:this});break;case"FirstPage":this._pdfViewer.currentPageNumber=1;break;case"LastPage":this._pdfViewer.currentPageNumber=this._pdfViewer.pagesCount;break;case"NextPage":this._pdfViewer.nextPage();break;case"PrevPage":this._pdfViewer.previousPage();break;case"ZoomViewIn":if(t)return;this._pdfViewer.increaseScale();break;case"ZoomViewOut":if(t)return;this._pdfViewer.decreaseScale()}return}if(t&&e.focus)return;delete e.id,delete e.siblings;const i=o?[n,...o]:[n];for(const t of i){const n=document.querySelector(`[data-element-id="${t}"]`);n?n.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:e})):this._pdfDocument?.annotationStorage.setValue(t,e)}}async _dispatchPageOpen(e,t=!1){const n=this._pdfDocument,s=this._visitedPages;if(t&&(this._closeCapability=(0,o.createPromiseCapability)()),!this._closeCapability)return;const r=this._pdfViewer.getPageView(e-1);if(r?.renderingState!==a.RenderingStates.FINISHED)return void this._pageOpenPending.add(e);this._pageOpenPending.delete(e);const i=(async()=>{const t=await(s.has(e)?null:r.pdfPage?.getJSActions());n===this._pdfDocument&&await(this._scripting?.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:e,actions:t}))})();s.set(e,i)}async _dispatchPageClose(e){const t=this._pdfDocument,n=this._visitedPages;if(!this._closeCapability)return;if(this._pageOpenPending.has(e))return;const a=n.get(e);a&&(n.set(e,null),await a,t===this._pdfDocument&&await(this._scripting?.dispatchEventInSandbox({id:"page",name:"PageClose",pageNumber:e})))}async _getDocProperties(){if(this._docPropertiesLookup)return this._docPropertiesLookup(this._pdfDocument);const{docPropertiesLookup:e}=n(25);return e(this._pdfDocument)}_createScripting(){if(this._destroyCapability=(0,o.createPromiseCapability)(),this._scripting)throw new Error("_createScripting: Scripting already exists.");if(this._scriptingFactory)return this._scriptingFactory.createScripting({sandboxBundleSrc:this._sandboxBundleSrc});const{GenericScripting:e}=n(25);return new e(this._sandboxBundleSrc)}async _destroyScripting(){if(!this._scripting)return this._pdfDocument=null,void this._destroyCapability?.resolve();this._closeCapability&&(await Promise.race([this._closeCapability.promise,new Promise((e=>{setTimeout(e,1e3)}))]).catch((e=>{})),this._closeCapability=null),this._pdfDocument=null;try{await this._scripting.destroySandbox()}catch(e){}for(const[e,t]of this._internalEvents)this._eventBus._off(e,t);this._internalEvents.clear();for(const[e,t]of this._domEvents)window.removeEventListener(e,t,!0);this._domEvents.clear(),this._pageOpenPending.clear(),this._visitedPages.clear(),this._scripting=null,delete this._mouseState.isDown,this._ready=!1,this._destroyCapability?.resolve()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GenericScripting=void 0,t.docPropertiesLookup=async function(e){const t="".split("#")[0];let{info:n,metadata:o,contentDispositionFilename:s,contentLength:r}=await e.getMetadata();if(!r){const{length:t}=await e.getDownloadInfo();r=t}return{...n,baseURL:t,filesize:r,filename:s||(0,a.getPdfFilenameFromUrl)(""),metadata:o?.getRaw(),authors:o?.get("dc:creator"),numPages:e.numPages,URL:""}};var a=n(3);t.GenericScripting=class{constructor(e){this._ready=(0,a.loadScript)(e,!0).then((()=>window.pdfjsSandbox.QuickJSSandbox()))}async createSandbox(e){(await this._ready).create(e)}async dispatchEventInSandbox(e){const t=await this._ready;setTimeout((()=>t.dispatchEvent(e)),0)}async destroySandbox(){(await this._ready).nukeSandbox()}}}],t={};function n(a){var o=t[a];if(void 0!==o)return o.exports;var s=t[a]={exports:{}};return e[a](s,s.exports,n),s.exports}var a={};return(()=>{var e=a;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return i.AnnotationLayerBuilder}}),Object.defineProperty(e,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return t.DefaultAnnotationLayerFactory}}),Object.defineProperty(e,"DefaultStructTreeLayerFactory",{enumerable:!0,get:function(){return t.DefaultStructTreeLayerFactory}}),Object.defineProperty(e,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return t.DefaultTextLayerFactory}}),Object.defineProperty(e,"DefaultXfaLayerFactory",{enumerable:!0,get:function(){return t.DefaultXfaLayerFactory}}),Object.defineProperty(e,"DownloadManager",{enumerable:!0,get:function(){return f.DownloadManager}}),Object.defineProperty(e,"EventBus",{enumerable:!0,get:function(){return c.EventBus}}),Object.defineProperty(e,"GenericL10n",{enumerable:!0,get:function(){return l.GenericL10n}}),Object.defineProperty(e,"LinkTarget",{enumerable:!0,get:function(){return o.LinkTarget}}),Object.defineProperty(e,"NullL10n",{enumerable:!0,get:function(){return u.NullL10n}}),Object.defineProperty(e,"PDFFindController",{enumerable:!0,get:function(){return _.PDFFindController}}),Object.defineProperty(e,"PDFHistory",{enumerable:!0,get:function(){return d.PDFHistory}}),Object.defineProperty(e,"PDFLinkService",{enumerable:!0,get:function(){return o.PDFLinkService}}),Object.defineProperty(e,"PDFPageView",{enumerable:!0,get:function(){return h.PDFPageView}}),Object.defineProperty(e,"PDFScriptingManager",{enumerable:!0,get:function(){return m.PDFScriptingManager}}),Object.defineProperty(e,"PDFSinglePageViewer",{enumerable:!0,get:function(){return r.PDFSinglePageViewer}}),Object.defineProperty(e,"PDFViewer",{enumerable:!0,get:function(){return r.PDFViewer}}),Object.defineProperty(e,"ProgressBar",{enumerable:!0,get:function(){return s.ProgressBar}}),Object.defineProperty(e,"SimpleLinkService",{enumerable:!0,get:function(){return o.SimpleLinkService}}),Object.defineProperty(e,"StructTreeLayerBuilder",{enumerable:!0,get:function(){return p.StructTreeLayerBuilder}}),Object.defineProperty(e,"TextLayerBuilder",{enumerable:!0,get:function(){return g.TextLayerBuilder}}),Object.defineProperty(e,"XfaLayerBuilder",{enumerable:!0,get:function(){return b.XfaLayerBuilder}}),Object.defineProperty(e,"parseQueryString",{enumerable:!0,get:function(){return s.parseQueryString}});var t=n(1),o=n(6),s=n(7),r=n(11),i=n(5),f=n(17),c=n(18),l=n(19),u=n(4),_=n(21),d=n(23),h=n(14),m=n(24),p=n(8),g=n(9),b=n(10)})(),a})(),pdf_viewer.exports=factory();const PdfViewer=({src:e,pdfCMapsUrl:t,pdfWorkerUrl:n})=>{const a=useRef(null),o=useRef(null),s=useRef(null),[r,i]=useState((()=>new pdf_viewer.exports.EventBus)),[f,c]=useState((()=>new pdf_viewer.exports.PDFLinkService({eventBus:r}))),[l,u]=useState((()=>new pdf_viewer.exports.PDFFindController({eventBus:r,linkService:f}))),[_,d]=useState(),h=t||"",m=n||"";pdfjsLib.GlobalWorkerOptions.workerSrc=m;const[p,g]=useState(),b=useCallback((e=>{g(e)}),[]);function y(e){_&&(_.currentScaleValue="number"==typeof e?e.toFixed(2):e)}function v(e){_&&(_.currentPageNumber=e)}function w(e){e.target.setSelectionRange(0,e.target.value.length)}return useEffect((()=>{let e=_;if(p)return!_&&r&&(e=new pdf_viewer.exports.PDFViewer({container:p,eventBus:r,linkService:f,findController:l}),f.setViewer(e),d(e),r.on("scalechanging",(function(){s.current.value=Math.round(100*e.currentScale).toFixed(0)+"%"})),r.on("pagechanging",(function(){a.current&&(a.current.value=e.currentPageNumber.toFixed(0))})),r.on("pagesinit",(function(){e.currentScaleValue="auto",a.current.value="1",o.current.innerText=e.pagesCount.toFixed(0)}))),()=>{e&&(e.cleanup(),d(null))}}),[p]),useEffect((()=>{if(e&&_){let t=pdfjsLib.getDocument({url:e,enableXfa:true,cMapUrl:h,cMapPacked:true});return t.promise.then((e=>{_.setDocument(e),f.setDocument(e,null)})),()=>{t&&(t.destroy(),_.setDocument(null),f.setDocument(null,null))}}}),[e,_]),React.createElement("div",{className:"wy-content-pdf","data-controller":"pdf","data-pdf-url-value":""},React.createElement("div",{className:"wy-toolbar"},React.createElement("nav",{className:"wy-tools"},React.createElement("div",{className:"wy-tool"},React.createElement("input",{type:"text",className:"wy-input",ref:a,onChange:function(){if(_&&a.current){let e=parseInt(a.current.value);isNaN(e)?v(_.currentPageNumber):e>_.pagesCount?v(_.pagesCount):v(e<=0?1:e)}},onClick:w,"data-pdf-target":"pageNumber"}),React.createElement("span",null,"/"),React.createElement("span",{ref:o},"1")),React.createElement("div",{className:"wy-tool"},React.createElement("button",{className:"wy-button wy-button-icon btn-zoom-out",onClick:function(){if(_){let e=_.currentScale,t=1;do{e/=1.1,e=Math.floor(10*e)/10,e=Math.max(.2,e)}while(--t>0&&e>.2);y(e)}},title:"Zoom out"},React.createElement(UIIcon.UI,{name:"minus"})),React.createElement("input",{type:"text",className:"wy-input",ref:s,onChange:function(){if(_&&s.current){let e=parseFloat(s.current.value.replace("%",""));isNaN(e)?y(_.currentScale+1e-4):y(e/100)}},onClick:w,value:"100%","data-pdf-target":"zoomLevel"}),React.createElement("button",{className:"wy-button wy-button-icon btn-zoom-in",onClick:function(){if(console.debug("zoomIn"),_){let e=_.currentScale,t=1;do{e*=1.1,e=Math.floor(10*e)/10,e=Math.min(3,e)}while(--t>0&&e<3);y(e)}},title:"Zoom in"},React.createElement(UIIcon.UI,{name:"plus"}))),React.createElement("div",{className:"wy-tool"},React.createElement("button",{className:"wy-button wy-button-icon btn-fit-page",onClick:function(){y("page-width")},title:"Fit to width"},React.createElement(UIIcon.UI,{name:"fit-width"})),React.createElement("button",{className:"wy-button wy-button-icon",onClick:function(){y("page-fit")},title:"Fit to screen"},React.createElement(UIIcon.UI,{name:"fit-screen"}))))),React.createElement("div",{ref:b,className:"wy-pdf-container"},React.createElement("div",{id:"viewer",className:"pdfViewer"})))};function checkImageLoad(e){e.complete&&0!==e.naturalHeight?e.classList.contains("wy-loading")?e.decode().then((()=>{console.debug("image is loaded after delay"),e.classList.add("wy-loaded")})):(console.debug("image is instantly loaded"),e.classList.add("wy-loading","wy-loaded")):(console.debug("image is loading"),e.classList.add("wy-loading"))}function imageLoaded(e){var t=e.target;"IMG"===t.tagName&&t.classList.contains("wy-loading")&&!t.classList.contains("wy-loaded")&&(console.debug("load event"),t.classList.add("wy-loaded"))}const Image=({src:e,previewSrc:t,width:n,height:a,more:o,onClick:s})=>{let r=n/a,i=r.toPrecision(5),f=(64*r).toPrecision(5)+"px",c=(100/r).toPrecision(5)+"%",l=n+"px",u=2*n+"px";const _=useCallback((e=>{e&&checkImageLoad(e)}),[]);return React.createElement("a",{href:e,className:"wy-image",onClick:e=>s(e),style:{flexBasis:f,flexGrow:i,flexShrink:i,width:l,maxWidth:u}},React.createElement("div",{className:"wy-image-area",style:{paddingBottom:c}},React.createElement("img",{ref:_,src:t,onLoad:imageLoaded,alt:"",loading:"lazy",decoding:"async"}),!!o&&React.createElement("span",{className:"wy-more"},"+",o)))},ImageGrid=({children:e,limit:t=3})=>{let n=React.Children.toArray(e),a=n.length>t?n.length-t:0,o=n.slice(0,t),s=o[o.length-1];return React.isValidElement(s)&&(o[o.length-1]=React.cloneElement(s,{more:a})),React.createElement("div",{className:"wy-image-grid"},o)},getStream=e=>{if(e&&e.ok&&e.body){const t=e.body.getReader();return new ReadableStream({start(e){let n=()=>t.read().then((({done:t,value:a})=>{if(!t)return e.enqueue(a),n();e.close()}));return n()}})}},PreviewImage=({src:e,width:t,height:n})=>{const a=useCallback((e=>{e&&checkImageLoad(e)}),[]);return React.createElement(React.Fragment,null,t&&n?React.createElement("div",{className:"wy-content-image wy-responsive-image",style:{"--width":t,"--height":n}},React.createElement("img",{className:"wy-loading-transition",ref:a,src:e,onLoad:imageLoaded,width:t,height:n,decoding:"async"}),React.createElement(UISpinner.UI,null)):React.createElement("div",{className:"wy-content-image wy-responsive-image wy-intrinsic-image"},React.createElement("img",{ref:a,src:e,onLoad:imageLoaded,decoding:"async"})))},PreviewDocument=({src:e,client:t})=>{let n=new URL("/js/preview.worker.js",t.url).toString(),a=new URL("/js/cmaps/",t.url).toString();return React.createElement(PdfViewer,{src:e,pdfWorkerUrl:n,pdfCMapsUrl:a})};function mediaFallback(e){e.classList.contains("wy-loading")&&e.classList.add("wy-loaded"),e.classList.add("wy-error"),e.outerHTML=e.outerHTML.replace(/<(video|audio)/,"<div").replace(/(video|audio)>/,"div>")}function mediaLoaded(e){var t=e.target;"VIDEO"!==t.tagName&&"AUDIO"!==t.tagName||t.classList.contains("wy-loading")&&(console.log("loaded"),t.classList.add("wy-loaded"))}function mediaError(e){var t,n=e.target;"SOURCE"===n.tagName&&((t=n.parentNode).dataset.errors=(t.dataset.errors||0)+1,t.querySelectorAll("source").length>=t.dataset.errors&&(console.warn(t.tagName.toLowerCase()+" source error, switching to fallback"),mediaFallback(t)))}function codecError(e){var t=e.target;"VIDEO"!==t.tagName&&"AUDIO"!==t.tagName||("VIDEO"===t.tagName&&!t.videoWidth||"AUDIO"===t.tagName&&!t.duration)&&(console.warn(t.tagName.toLowerCase()+" track not available, switching to fallback"),mediaFallback(t))}const PreviewMedia=({format:e,src:t,name:n,mediaType:a})=>{const[o,s]=useState(),r=useCallback((e=>{e&&(e.classList.add("wy-loading"),s(e))}),[]);return useEffect((()=>{if(o)return o.addEventListener("error",mediaError,!0),o.addEventListener("loadedmetadata",mediaLoaded,!0),o.addEventListener("loadedmetadata",codecError,!0),()=>{o.pause(),o.removeAttribute("autoplay"),o.setAttribute("preload","none"),o.removeEventListener("error",mediaError,!0),o.removeEventListener("loadedmetadata",mediaLoaded,!0),o.removeEventListener("loadedmetadata",codecError,!0)}}),[o]),"video"===e?React.createElement(React.Fragment,null,React.createElement("video",{ref:r,className:"wy-content-video",controls:!0,crossOrigin:"use-credentials",autoPlay:!0},React.createElement("source",{src:t,type:a}),React.createElement(PreviewIcon,{src:t,name:n,icon:"file-video",download:!0})),React.createElement(UISpinner.UI,null)):React.createElement(React.Fragment,null,React.createElement(PreviewIcon,{src:t,name:n,icon:"file-music",download:!0},React.createElement("audio",{ref:r,className:"wy-content-audio",controls:!0,crossOrigin:"use-credentials",autoPlay:!0},React.createElement("source",{src:t,type:a}))))},PreviewText=({src:e,html:t=!1,code:n=!1})=>{const[a,o]=useState("");return useEffect((()=>{fetch(e).then(getStream).then((e=>new Response(e))).then((e=>e.text())).then((e=>{o(e)}))}),[e]),React.createElement(React.Fragment,null,t?n?React.createElement("div",{className:"wy-content-code wy-code",dangerouslySetInnerHTML:{__html:a}}):React.createElement("div",{className:"wy-document"},React.createElement("div",{className:"wy-content-html",dangerouslySetInnerHTML:{__html:a}})):n?React.createElement("div",{className:"wy-content-code"},a):React.createElement("div",{className:"wy-document"},React.createElement("pre",{className:"wy-content-text"},a)))},PreviewEmbed=({src:e,name:t,icon:n,provider:a})=>{const[o,s]=useState(),r=useCallback((e=>{e&&(e.classList.add("wy-loading"),s(e))}),[]);return useEffect((()=>{if(o){let e=setTimeout((function(){console.log("fallback"),o.classList.add("wy-fallback")}),2500),t=t=>{var n=t.target;"OBJECT"===n.tagName&&n.classList.contains("wy-loading")&&!n.classList.contains("wy-loaded")&&(console.log("loaded"),n.classList.add("wy-loaded"),clearTimeout(e))};return o.addEventListener("load",t,!0),()=>{o.removeEventListener("load",t,!0),clearTimeout(e)}}}),[o]),React.createElement(React.Fragment,null,React.createElement("object",{ref:r,className:"wy-content-iframe",data:e}),React.createElement(UISpinner.UI,null),React.createElement(PreviewIcon,{src:e,name:t,icon:n,provider:a,className:"wy-content-iframe-fallback"}))},PreviewIcon=({children:e,src:t,icon:n,name:a,provider:o,download:s=!1,className:r})=>React.createElement("div",{className:classNames("wy-content-icon",r)},React.createElement("div",{className:"wy-content-icon"},React.createElement(UIIcon.UI,{name:n})),React.createElement("div",{className:"wy-content-name"},o?React.createElement(React.Fragment,null,React.createElement("span",null,"No preview available. "),React.createElement("a",{href:t,target:"_blank",title:a},`Open in ${o}?`)):s?React.createElement("a",{href:t,target:"_top",download:!0},a):React.createElement("a",{href:t,target:"_blank"},a," ",React.createElement(UIIcon.UI,{name:"open-in-new",size:1}))),e),Preview=({client:e,src:t,link:n,format:a,name:o,icon:s,width:r,height:i,mediaType:f,provider:c})=>React.createElement(React.Fragment,null,"image"===a&&React.createElement(PreviewImage,{key:t,src:t,width:r,height:i}),"pdf"===a&&React.createElement(PreviewDocument,{src:t,client:e}),("video"===a||"audio"===a)&&React.createElement(PreviewMedia,{key:t,format:a,src:t,name:o,mediaType:f}),"text"===a&&React.createElement(PreviewText,{key:t,src:t}),"code"===a&&React.createElement(PreviewText,{key:t,src:t,html:!0,code:!0}),"html"===a&&React.createElement(PreviewText,{key:t,src:t,html:!0}),"embed"===a&&React.createElement(PreviewEmbed,{key:t,src:t,name:o,icon:s,provider:c}),"none"===a&&(n?React.createElement(PreviewIcon,{src:t,name:o,icon:s,provider:c}):React.createElement(PreviewIcon,{src:t,name:o,icon:s,download:!0}))),fileSizeAsString=e=>{for(var t=e,n=[" B"," KB"," MB"," GB"," TB"," PB"," EB"," ZB"," YB"],a=0;a<n.length-1&&t>=1024;)t=100*t/1024/100,a++;return t.toLocaleString()+n[a]};function getExtension(e){return e.substring(e.lastIndexOf("."),e.length)||e}function isAudio(e){switch(e){case".aac":case".aif":case".aiff":case".au":case".gsm":case".m4a":case".mid":case".midi":case".mka":case".mp3":case".oga":case".ogg":case".ra":case".ram":case".snd":case".spx":case".wav":case".wma":return!0;default:return!1}}function isImage(e){switch(e){case".ai":case".apng":case".bmp":case".emf":case".eps":case".gif":case".heic":case".ico":case".jpg":case".jpeg":case".png":case".psd":case".svg":case".tif":case".tiff":case".webp":case".wmf":return!0;default:return!1}}function isVideo(e){switch(e){case".3g2":case".asx":case".asf":case".avi":case".flv":case".mk3d":case".mkv":case".mov":case".mp4":case".mpeg":case".mpg":case".ogm":case".ogv":case".ogx":case".qt":case".rm":case".rv":case".smi":case".smil":case".swf":case".webm":case".wmv":case".xaml":return!0;default:return!1}}function isMarkdown(e){switch(e){case".markdown":case".md":return!0;default:return!1}}function isMarkup(e){switch(e){case".htm":case".html":case".xhtml":case".xml":return!0;default:return!1}}function isCode(e){if(isMarkup(e))return!0;switch(e){case".as":case".as3":case".asm":case".aspx":case".bat":case".c":case".cc":case".cmake":case".coffee":case".cpp":case".cs":case".css":case".cxx":case".diff":case".erb":case".erl":case".groovy":case".gvy":case".h":case".haml":case".hh":case".hpp":case".hxx":case".java":case".js":case".json":case".jsx":case".less":case".lst":case".m":case".make":case".ml":case".mm":case".out":case".patch":case".php":case".pl":case".plist":case".properties":case".py":case".rb":case".sass":case".scala":case".scm":case".script":case".scss":case".sh":case".sml":case".sql":case".vb":case".vi":case".vim":case".xsd":case".xsl":case".yaml":case".yml":return!0;default:return!1}}function isText(e){return!(!isCode(e)&&!isMarkdown(e))||".txt"===e}function getIcon(e,t){var n=getExtension(e);if(""===n)return{icon:"file"};if(isAudio(n))return{icon:"file-music",color:"indigo"};if(isImage(n))return{icon:"file-image",color:"cyan"};if(isVideo(n))return{icon:"file-video",color:"pink"};if(isMarkup(n))return{icon:"file-xml",color:"purple"};if(isCode(n))return{icon:"file-code",color:"purple"};if(isText(n))return{icon:"file-document"};switch(n){case".7z":case".zip":return{icon:"file-compressed",color:"orange"};case".doc":case".docm":case".docx":case".dotm":case".dotx":return{icon:"file-word",color:"native"};case".eml":case".msg":return{icon:"email",color:""};case".xls":case".xlsm":case".xlsx":case".xltx":return{icon:"file-excel",color:"native"};case".pdf":return{icon:"file-pdf",color:"native"};case".ppt":case".pptm":case".pptx":case".potx":return{icon:"file-powerpoint",color:"native"};case".pages":return{icon:"file",color:"orange"};case".numbers":return{icon:"file",color:"green"};case".keynote":return{icon:"file",color:"blue"}}return{icon:"file"}}const PreviewContext=createContext({openPreview:Function,closePreview:Function});function allowedKeyTarget(e){return!e.target.matches("input, textarea, select")&&!e.target.closest('[contenteditable="true"]')}const PreviewProvider=({client:e,children:t})=>{const[n,a]=useState(!1),[o,s]=useState([]),[r,i]=useState(),[f,c]=useState(),[l,u]=useState(),[_,d]=useState();useEffect((()=>{if(f){var e=o.map((function(e){return e.id})).indexOf(f);d(e>0?o[e-1].id:null),u(e+1<o.length?o[e+1].id:null),i(o.find((e=>e.id===f)))}}),[o,f]);const h=()=>{a(!1)};useEffect((()=>{if(r){const e=e=>{27===e.which?(e.stopImmediatePropagation(),h()):37===e.which?allowedKeyTarget(e)&&c(_):39===e.which&&allowedKeyTarget(e)&&c(l)};return document.addEventListener("keyup",e),()=>{document.removeEventListener("keyup",e)}}}),[r]);let m=getExtension((null==r?void 0:r.name)||""),p=getIcon((null==r?void 0:r.name)||"").icon,g=(null==r?void 0:r.preview_url)||(null==r?void 0:r.download_url)||"";return"image"===(null==r?void 0:r.preview_format)&&(".gif"===m||".svg"===m)&&(g=(null==r?void 0:r.download_url)||""),React.createElement(React.Fragment,null,React.createElement(PreviewContext.Provider,{value:{openPreview:(e,t)=>{s(e),c(t),a(!0)},closePreview:h}},t),React.createElement(UIOverlay.UI,{isOpen:n,className:"wy-dark"},React.createElement("header",{className:"wy-appbars"},React.createElement("nav",{className:"wy-appbar"},React.createElement(UIButton.UI,{onClick:h},React.createElement(UIIcon.UI,{name:"close"})),React.createElement("div",{className:"wy-appbar-text"},r&&React.createElement("span",null,r.name)),React.createElement("div",{className:"wy-appbar-buttons"},(null==r?void 0:r.application_url)?React.createElement(UIButton.UI,{onClick:()=>{window.open(`${null==r?void 0:r.application_url}`,"_top")},title:"Open in app"},React.createElement(UIIcon.UI,{name:p})):(null==r?void 0:r.external_url)?React.createElement(UIButton.UI,{onClick:()=>{window.open(`${null==r?void 0:r.external_url}`,"_blank")},title:`Open in ${r.provider}`},React.createElement(UIIcon.UI,{name:p})):React.createElement(UIButton.UI,{onClick:()=>{window.open(`${null==r?void 0:r.download_url}&d=1`,"_top")}},React.createElement(UIIcon.UI,{name:"download"}))))),React.createElement("div",{className:"wy-preview wy-scroll-y wy-scroll-x"},r&&React.createElement(React.Fragment,null,_&&React.createElement("nav",{className:"wy-nav-prev"},React.createElement(UIButton.UI,{onClick:()=>{c(_)}},React.createElement(UIIcon.UI,{name:"previous"}))),l&&React.createElement("nav",{className:"wy-nav-next"},React.createElement(UIButton.UI,{onClick:()=>{c(l)}},React.createElement(UIIcon.UI,{name:"next"}))),React.createElement(Preview,{client:e,src:g,link:r.external_url,format:r.preview_format,name:r.name,icon:p,width:r.width,height:r.height,mediaType:r.media_type,provider:r.provider})))))};var scrollbarClassnameTarget=document.documentElement;function checkScrollbar(e){var t;for(var n in e){t=e[n].target;try{(t===document.documentElement?window.innerWidth:t.clientWidth)!==t.offsetWidth?scrollbarClassnameTarget.classList.add("wy-scrollbars"):scrollbarClassnameTarget.classList.remove("wy-scrollbars")}catch(e){console.warn("scrollbar detection failed",e)}}}function observeScrollbars(){var e=document.getElementById("wy-scrollbar-detection");e||((e=document.createElement("aside")).id="wy-scrollbar-detection",e.className="wy-scrollbar-detection",document.documentElement.insertBefore(e,document.body)),new ResizeObserver(checkScrollbar).observe(e)}dayjs.extend(relativeTime),dayjs.extend(utc),dayjs.extend(timezone),dayjs.extend(localizedFormat);const WeavyContext=createContext({client:null,options:{}}),queryClient=new QueryClient({defaultOptions:{queries:{cacheTime:864e5}}}),WeavyProvider=({children:e,client:t,options:n})=>{let a={zoomAuthenticationUrl:void 0,teamsAuthenticationUrl:void 0,enableCloudFiles:!0,enableScrollbarDetection:!0,filebrowserUrl:"https://filebrowser.weavycloud.com/index10.html",reactions:["😍","😎","😉","😜","👍"]},o=Object.assign(Object.assign({},a),n);return o.enableScrollbarDetection&&observeScrollbars(),t||queryClient.clear(),React.createElement(React.Fragment,null,t&&React.createElement(QueryClientProvider,{client:queryClient},React.createElement(WeavyContext.Provider,{value:{client:t,options:o}},React.createElement(UserProvider,{client:t},React.createElement(PreviewProvider,{client:t},e)))))};function usePresence(){const{client:e}=useContext(WeavyContext);if(!e)throw new Error("usePresence must be used within an WeavyProvider");useEffect((()=>{e.subscribe("online","online",t)}),[]);const t=e=>{Array.isArray(e)?(document.querySelectorAll(".wy-presence").forEach((function(e){e.classList.remove("wy-presence-active")})),e.forEach((function(e){document.querySelectorAll("[data-presence-id='"+e+"']").forEach((function(e){e.classList.add("wy-presence-active")}))}))):document.querySelectorAll("[data-presence-id='"+e+"']").forEach((function(e){e.classList.add("wy-presence-active")}))}}const MessengerContext=createContext({selectedConversationId:null,setSelectedConversationId:e=>{}}),MessengerProvider=({children:e})=>{const[t,n]=useState(null);usePresence();return React.createElement(React.Fragment,null,React.createElement(MessengerContext.Provider,{value:{selectedConversationId:t,setSelectedConversationId:e=>{n(e)}}},e))};function useMembers(e,t){const{client:n}=useContext(WeavyContext);if(!n)throw new Error("useMembers must be used within an WeavyProvider");return useQuery(["members",e],(()=>__awaiter(this,void 0,void 0,(function*(){const t=yield n.get("/api/apps/"+e+"/members");return yield t.json()}))),t)}const Typing=({children:e,id:t,context:n})=>{const[a,o]=useState([]),[s,r]=useState(""),i=useRef(null),{client:f}=useContext(WeavyContext),{user:c}=useContext(UserContext);useEffect((()=>(l(),()=>{clearTimeout(i.current)})),[a,t,n]),useEffect((()=>(o([]),null==f||f.subscribe(`a${t}`,"typing",u),null==f||f.subscribe(`a${t}`,"message-inserted",_),()=>{null==f||f.unsubscribe(`a${t}`,"typing",u),null==f||f.unsubscribe(`a${t}`,"message-inserted",_)})),[t]);const l=()=>{let e=a;i.current&&(clearTimeout(i.current),i.current=null);let t=Date.now();if(e.forEach((function(n,a){t-n.time>5e3&&e.splice(a,1)})),e.length){let n=Math.round((t-Math.max.apply(null,e.map((function(e){return e.time}))))/1e3)%3+1,a=".".repeat(n),o=e.map((e=>e.display_name)).sort(),s="";for(let e=0;e<o.length;e++)e>0&&(e===o.length-1?s+=" and ":s+=", "),s+=o[e];1===o.length?s+=" is typing":s+=" are typing",r(s+a),i.current=setTimeout(l,1e3)}else r("")},u=useCallback((e=>{e.conversation.id===t&&e.member.id!==c.id&&(e=>{a.forEach((function(t,n){t.member.id===e.member.id&&o(a.splice(n,1))})),e.member.time=Date.now(),o([...a,e.member])})(e)}),[t,n,a]),_=useCallback((e=>{e.app_id===t&&o([])}),[t,n,a]);return React.createElement(React.Fragment,null,""!==s&&React.createElement(React.Fragment,null,s),""===s&&React.createElement(React.Fragment,null,e))};var Typing$1=React.memo(Typing);const Dropdown=e=>{var{directionX:t="right",directionY:n="down",children:a,className:o=""}=e,s=__rest(e,["directionX","directionY","children","className"]);const[r,i]=useState(!1);useEffect((()=>{r?document.addEventListener("click",(()=>{i(!1)})):document.removeEventListener("click",(()=>{i(!1)}))}),[r]);return React.createElement("span",Object.assign({className:classNames("wy-dropdown",{"wy-dropup":"up"===n},o)},s),React.createElement(UIButton.UI,{onClick:e=>(e=>{e.stopPropagation(),i(!r)})(e),className:classNames({"wy-active":r})},React.createElement(UIIcon.UI,{name:"dots-vertical"})),React.createElement("div",{className:classNames("wy-dropdown-menu",{"wy-dropdown-menu-end":"left"===t}),hidden:!r},a))},DropdownItem=e=>{var{children:t,className:n="",onClick:a}=e,o=__rest(e,["children","className","onClick"]);return React.createElement("div",Object.assign({className:classNames("wy-dropdown-item",n),onClick:a},o),t)},UIDropdown={UI:Dropdown,Item:DropdownItem};var FUNC_ERROR_TEXT$1="Expected a function",NAN$1=NaN,symbolTag$1="[object Symbol]",reTrim$1=/^\s+|\s+$/g,reIsBadHex$1=/^[-+]0x[0-9a-f]+$/i,reIsBinary$1=/^0b[01]+$/i,reIsOctal$1=/^0o[0-7]+$/i,freeParseInt$1=parseInt,freeGlobal$1="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf$1="object"==typeof self&&self&&self.Object===Object&&self,root$1=freeGlobal$1||freeSelf$1||Function("return this")(),objectProto$1=Object.prototype,objectToString$1=objectProto$1.toString,nativeMax$1=Math.max,nativeMin$1=Math.min,now$1=function(){return root$1.Date.now()};function debounce$1(e,t,n){var a,o,s,r,i,f,c=0,l=!1,u=!1,_=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$1);function d(t){var n=a,s=o;return a=o=void 0,c=t,r=e.apply(s,n)}function h(e){return c=e,i=setTimeout(p,t),l?d(e):r}function m(e){var n=e-f;return void 0===f||n>=t||n<0||u&&e-c>=s}function p(){var e=now$1();if(m(e))return g(e);i=setTimeout(p,function(e){var n=t-(e-f);return u?nativeMin$1(n,s-(e-c)):n}(e))}function g(e){return i=void 0,_&&a?d(e):(a=o=void 0,r)}function b(){var e=now$1(),n=m(e);if(a=arguments,o=this,f=e,n){if(void 0===i)return h(f);if(u)return i=setTimeout(p,t),d(f)}return void 0===i&&(i=setTimeout(p,t)),r}return t=toNumber$1(t)||0,isObject$1(n)&&(l=!!n.leading,s=(u="maxWait"in n)?nativeMax$1(toNumber$1(n.maxWait)||0,t):s,_="trailing"in n?!!n.trailing:_),b.cancel=function(){void 0!==i&&clearTimeout(i),c=0,a=f=o=i=void 0},b.flush=function(){return void 0===i?r:g(now$1())},b}function isObject$1(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function isObjectLike$1(e){return!!e&&"object"==typeof e}function isSymbol$1(e){return"symbol"==typeof e||isObjectLike$1(e)&&objectToString$1.call(e)==symbolTag$1}function toNumber$1(e){if("number"==typeof e)return e;if(isSymbol$1(e))return NAN$1;if(isObject$1(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject$1(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(reTrim$1,"");var n=reIsBinary$1.test(e);return n||reIsOctal$1.test(e)?freeParseInt$1(e.slice(2),n?2:8):reIsBadHex$1.test(e)?NAN$1:+e}var lodash_debounce=debounce$1;function useDebounce(e,t){const n=useRef({cb:e,delay:t});return useEffect((()=>{n.current={cb:e,delay:t}})),useCallback(lodash_debounce(((...e)=>{n.current.delay===t&&n.current.cb(...e)}),t,{leading:!1,trailing:!0}),[t,lodash_debounce])}function useSearchUsers(e,t){const{client:n}=useContext(WeavyContext);if(!n)throw new Error("useSearchUsers must be used within an WeavyProvider");return useQuery("users",(()=>__awaiter(this,void 0,void 0,(function*(){const t=yield n.get("/api/users?q="+e+"&skip=0&top=10");return yield t.json()}))),t)}const Presence=({id:e,status:t})=>React.createElement("span",{className:classNames("wy-presence",{"wy-presence-active":"active"===t}),"data-presence-id":e}),Avatar=({id:e,src:t,name:n,presence:a,size:o=48,className:s})=>React.createElement("div",{className:classNames("wy-avatar-presence",s)},React.createElement("img",{alt:"",title:n,className:"wy-avatar",height:o,width:o,src:t}),a&&e&&React.createElement(Presence,{id:e,status:a})),SearchUsers=({handleSubmit:e,buttonTitle:t})=>{const[n,a]=useState(""),[o,s]=useState([]),{isLoading:r,isError:i,data:f,error:c,isFetching:l,refetch:u}=useSearchUsers(n,{enabled:!1}),_=useDebounce((()=>u()),250);useEffect(_,[n]);return React.createElement("div",{className:"wy-search wy-scroll-y"},React.createElement("div",{className:"wy-search-form wy-pane-group"},React.createElement(UIButton.UI,null,React.createElement(UIIcon.UI,{name:"magnify"})),React.createElement("input",{className:"wy-search-input",value:n,onChange:e=>a(e.target.value),name:"text",placeholder:"Search..."})),React.createElement("div",{className:"wy-pane-group"},f&&(!f.data||0===f.data.length)&&React.createElement("div",{className:"wy-search-no-result"},"Your search did not match any people."),React.createElement("table",{className:"wy-search-result-table"},React.createElement("tbody",null,f&&f.data&&f.data.length>0&&f.data.map((e=>{return React.createElement("tr",{key:e.id,className:"wy-search-result-table-checkbox"},React.createElement("td",{className:"wy-search-result-table-icon"},React.createElement(Avatar,{src:e.avatar_url,size:24,id:e.id,presence:e.presence,name:e.display_name})),React.createElement("td",null,React.createElement("label",{htmlFor:"chk"+e.id},e.display_name)),React.createElement("td",{className:"wy-search-result-table-icon"},React.createElement("input",{type:"checkbox",id:"chk"+e.id,checked:(t=e.id,null!=o.find((e=>e.id===t))),onChange:t=>((e,t)=>{e.target.checked?s([...o,t]):s(o.filter((e=>e.id!==t.id)))})(t,e)})));var t}))))),React.createElement("div",{className:"wy-footerbars"},React.createElement("div",{className:"wy-footerbar"},React.createElement("div",{className:"wy-pane-group"},React.createElement("div",{className:"wy-buttons"},React.createElement("button",{className:"wy-button wy-button-primary",type:"button",onClick:()=>{e(o),s([]),a("")},disabled:0===o.length},t))))))};function useMutateMembers(){const{client:e}=useContext(WeavyContext),t=useQueryClient();if(!e)throw new Error("useMutateMembers must be used within an WeavyProvider");return useMutation((({id:t,members:n})=>__awaiter(this,void 0,void 0,(function*(){return yield e.post("/api/apps/"+t+"/members/","POST",JSON.stringify(n))}))),{onSuccess:(e,n,a)=>{t.invalidateQueries("conversations"),t.invalidateQueries(["conversation",n.id]),t.invalidateQueries(["members",n.id])}})}function useConversation(e,t){const{client:n}=useContext(WeavyContext);if(!n)throw new Error("useConversation must be used within an WeavyProvider");return useQuery(["conversation",e],(()=>__awaiter(this,void 0,void 0,(function*(){const t=yield n.get("/api/conversations/"+e);return yield t.json()}))),t)}function useMutateConversationName(){const{client:e}=useContext(WeavyContext),t=useQueryClient();if(!e)throw new Error("useMutateConversationName must be used within an WeavyProvider");return useMutation((({id:t,name:n})=>__awaiter(this,void 0,void 0,(function*(){return(yield e.post("/api/apps/"+t,"PATCH",JSON.stringify({type:"ChatRoom",name:n}))).json()}))),{onSuccess:(e,n,a)=>{t.invalidateQueries("conversations"),t.invalidateQueries(["conversation",n.id])}})}function useMutateRemoveMembers(){const{client:e}=useContext(WeavyContext),{setSelectedConversationId:t}=useContext(MessengerContext),n=useQueryClient();if(!e)throw new Error("useMutateRemoveMembers must be used within an WeavyProvider");return useMutation((({id:t,members:n})=>__awaiter(this,void 0,void 0,(function*(){return yield e.post("/api/apps/"+t+"/members/"+n.join(","),"DELETE",JSON.stringify(n))}))),{onSuccess:()=>{n.invalidateQueries("conversations"),t(null)}})}function useMessages(e,t){const{client:n}=useContext(WeavyContext);if(!n)throw new Error("useMessages must be used within an WeavyProvider");var a=Object.assign(Object.assign({},t),{getNextPageParam:(e,t)=>{if((null==e?void 0:e.end)<(null==e?void 0:e.count))return 25*t.length},select:e=>({pages:[...e.pages].reverse(),pageParams:[...e.pageParams].reverse()})});return useInfiniteQuery(["messages",e],(t=>__awaiter(this,void 0,void 0,(function*(){var a;let o=t.pageParam||0;const s=yield n.get("/api/apps/"+e+"/messages?orderby=createdat+desc&skip="+o+"&top=25");let r=yield s.json();return r.data=(null===(a=r.data)||void 0===a?void 0:a.reverse())||[],r}))),a)}const Attachment=({previewFormat:e,url:t,previewUrl:n,mediaType:a,name:o,kind:s,size:r,provider:i,onClick:f})=>{let c=r>0?fileSizeAsString(r):null,{icon:l,color:u}=getIcon(o);return React.createElement("a",{href:n||t,className:"wy-attachment",target:"_blank",title:o,onClick:f?e=>f(e):void 0},React.createElement("div",{className:"wy-attachment-icon",title:s},React.createElement(UIIcon.UI,{name:l,color:u,size:2})),React.createElement("div",{className:"wy-attachment-content"},React.createElement("div",{className:"wy-attachment-title"},o),c&&React.createElement("div",{className:"wy-attachment-meta",title:c},c)))};function useMutateReaction(){const{client:e}=useContext(WeavyContext);if(useContext(UserContext),!e)throw new Error("useMutateReaction must be used within an WeavyProvider");return useMutation((({id:t,reaction:n})=>__awaiter(this,void 0,void 0,(function*(){return yield e.post("/api/messages/"+t+"/reactions/","POST",JSON.stringify({content:n}))}))))}const events=[],callbacks={};function useForceUpdate(){const[,e]=useState({});return useCallback((()=>e({})),[])}function useEvents(){const e=useForceUpdate();return{dispatch:(t,n)=>{events.push({event:t,data:n,created:Date.now()}),((t,n)=>{t&&(t.forEach((e=>e(n))),e())})(callbacks[t],n)},on:(e,t)=>(callbacks[e]?callbacks[e].push(t):callbacks[e]=[t],()=>callbacks[e]=callbacks[e].filter((e=>e!==t))),off:(e,t)=>{callbacks[e]=callbacks[e].filter((e=>e!==t))},events:events}}function useReactions(e,t){const{on:n,off:a}=useEvents(),{user:o}=useContext(UserContext),[s,r]=useState([]),i=useCallback((e=>[...new Map(e.map((e=>[e.content,e]))).values()].map((t=>({content:t.content,count:e.filter((e=>e.content===t.content)).length,has_reacted:e.filter((e=>e.content===t.content&&e.created_by_id===o.id)).length>0})))),[s]),f=useCallback((t=>{t.parent.id===e&&r((e=>[...e||[],{content:t.content,created_by_id:t.created_by.id}]))}),[e,s]),c=useCallback((t=>{t.parent.id===e&&r((e=>e.filter((e=>e.created_by_id!==t.created_by.id))))}),[e,s]);return useLayoutEffect((()=>{r(t||[])}),[t]),useEffect((()=>(n("reaction-inserted",f),n("reaction-deleted",c),()=>{a("reaction-inserted",f),a("reaction-deleted",c)})),[e]),{reactionsList:i(s)}}function useMutateDeleteReaction(){const{client:e}=useContext(WeavyContext);if(useContext(UserContext),!e)throw new Error("useMutateDeleteReaction must be used within an WeavyProvider");return useMutation((({id:t,reaction:n})=>__awaiter(this,void 0,void 0,(function*(){return yield e.post("/api/messages/"+t+"/reactions/","DELETE","")}))))}const ReactionsMenu=({id:e,reactions:t})=>{const{reactionsList:n}=useReactions(e,t),a=useMutateReaction(),o=useMutateDeleteReaction(),[s,r]=useState(!1),{options:i}=useContext(WeavyContext),[f,c]=useState(""),l=null==i?void 0:i.reactions;useEffect((()=>{var e=n.find((e=>e.has_reacted));c(e?e.content:"")}),[n]),useEffect((()=>{s?document.addEventListener("click",(()=>{r(!1)})):document.removeEventListener("click",(()=>{r(!1)}))}),[s]);const u=t=>__awaiter(void 0,void 0,void 0,(function*(){const s=n.find((e=>e.has_reacted)),i=t.target.dataset.emoji;s&&(yield o.mutateAsync({id:e,reaction:i})),s&&s.content===i||(yield a.mutateAsync({id:e,reaction:i})),r(!1)}));return React.createElement("div",{className:classNames({"wy-active":s}),style:{position:"relative"}},React.createElement(UIButton.UI,{onClick:e=>{e.stopPropagation(),r(!s)}},React.createElement(UIIcon.UI,{name:"emoticon-plus",size:1})),React.createElement("div",{className:"wy-reaction-menu wy-dropdown-menu",style:{display:s?"block":"none",position:"absolute",top:"-3.25rem"}},React.createElement("div",{className:"wy-reaction-picker"},null==l?void 0:l.map(((e,t)=>React.createElement(UIButton.UI,{key:t,onClick:u,className:classNames("wy-button-icon wy-reaction-button",{"wy-active":f===e}),"data-emoji":e},e))))))},ReactionsList=({id:e,reactions:t})=>{const{reactionsList:n}=useReactions(e,t);return React.createElement(React.Fragment,null,n&&n.map(((e,t)=>React.createElement("span",{key:t,className:"wy-reaction",title:e.count.toString()},e.content))))};var joypixels$1={exports:{}};!function(e){!function(e){e.emojiList={":england:":{uc_base:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",uc_full:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",shortnames:[],category:"flags"},":scotland:":{uc_base:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",uc_full:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",shortnames:[],category:"flags"},":wales:":{uc_base:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",uc_full:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",shortnames:[],category:"flags"},":kiss_man_man_tone1:":{uc_base:"1f468-1f3fb-2764-1f48b-1f468-1f3fb",uc_full:"1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",shortnames:[":kiss_man_man_light_skin_tone:"],category:"people"},":kiss_man_man_tone1_tone2:":{uc_base:"1f468-1f3fb-2764-1f48b-1f468-1f3fc",uc_full:"1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",shortnames:[":kiss_man_man_light_skin_tone_medium_light_skin_tone:"],category:"people"},":kiss_man_man_tone1_tone3:":{uc_base:"1f468-1f3fb-2764-1f48b-1f468-1f3fd",uc_full:"1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",shortnames:[":kiss_man_man_light_skin_tone_medium_skin_tone:"],category:"people"},":kiss_man_man_tone1_tone4:":{uc_base:"1f468-1f3fb-2764-1f48b-1f468-1f3fe",uc_full:"1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",shortnames:[":kiss_man_man_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":kiss_man_man_tone1_tone5:":{uc_base:"1f468-1f3fb-2764-1f48b-1f468-1f3ff",uc_full:"1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",shortnames:[":kiss_man_man_light_skin_tone_dark_skin_tone:"],category:"people"},":kiss_man_man_tone2:":{uc_base:"1f468-1f3fc-2764-1f48b-1f468-1f3fc",uc_full:"1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",shortnames:[":kiss_man_man_medium_light_skin_tone:"],category:"people"},":kiss_man_man_tone2_tone1:":{uc_base:"1f468-1f3fc-2764-1f48b-1f468-1f3fb",uc_full:"1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",shortnames:[":kiss_man_man_medium_light_skin_tone_light_skin_tone:"],category:"people"},":kiss_man_man_tone2_tone3:":{uc_base:"1f468-1f3fc-2764-1f48b-1f468-1f3fd",uc_full:"1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",shortnames:[":kiss_man_man_medium_light_skin_tone_medium_skin_tone:"],category:"people"},":kiss_man_man_tone2_tone4:":{uc_base:"1f468-1f3fc-2764-1f48b-1f468-1f3fe",uc_full:"1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",shortnames:[":kiss_man_man_medium_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":kiss_man_man_tone2_tone5:":{uc_base:"1f468-1f3fc-2764-1f48b-1f468-1f3ff",uc_full:"1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",shortnames:[":kiss_man_man_medium_light_skin_tone_dark_skin_tone:"],category:"people"},":kiss_man_man_tone3:":{uc_base:"1f468-1f3fd-2764-1f48b-1f468-1f3fd",uc_full:"1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",shortnames:[":kiss_man_man_medium_skin_tone:"],category:"people"},":kiss_man_man_tone3_tone1:":{uc_base:"1f468-1f3fd-2764-1f48b-1f468-1f3fb",uc_full:"1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",shortnames:[":kiss_man_man_medium_skin_tone_light_skin_tone:"],category:"people"},":kiss_man_man_tone3_tone2:":{uc_base:"1f468-1f3fd-2764-1f48b-1f468-1f3fc",uc_full:"1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",shortnames:[":kiss_man_man_medium_skin_tone_medium_light_skin_tone:"],category:"people"},":kiss_man_man_tone3_tone4:":{uc_base:"1f468-1f3fd-2764-1f48b-1f468-1f3fe",uc_full:"1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",shortnames:[":kiss_man_man_medium_skin_tone_medium_dark_skin_tone:"],category:"people"},":kiss_man_man_tone3_tone5:":{uc_base:"1f468-1f3fd-2764-1f48b-1f468-1f3ff",uc_full:"1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",shortnames:[":kiss_man_man_medium_skin_tone_dark_skin_tone:"],category:"people"},":kiss_man_man_tone4:":{uc_base:"1f468-1f3fe-2764-1f48b-1f468-1f3fe",uc_full:"1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",shortnames:[":kiss_man_man_medium_dark_skin_tone:"],category:"people"},":kiss_man_man_tone4_tone1:":{uc_base:"1f468-1f3fe-2764-1f48b-1f468-1f3fb",uc_full:"1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",shortnames:[":kiss_man_man_medium_dark_skin_tone_light_skin_tone:"],category:"people"},":kiss_man_man_tone4_tone2:":{uc_base:"1f468-1f3fe-2764-1f48b-1f468-1f3fc",uc_full:"1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",shortnames:[":kiss_man_man_medium_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":kiss_man_man_tone4_tone3:":{uc_base:"1f468-1f3fe-2764-1f48b-1f468-1f3fd",uc_full:"1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",shortnames:[":kiss_man_man_medium_dark_skin_tone_medium_skin_tone:"],category:"people"},":kiss_man_man_tone4_tone5:":{uc_base:"1f468-1f3fe-2764-1f48b-1f468-1f3ff",uc_full:"1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",shortnames:[":kiss_man_man_medium_dark_skin_tone_dark_skin_tone:"],category:"people"},":kiss_man_man_tone5:":{uc_base:"1f468-1f3ff-2764-1f48b-1f468-1f3ff",uc_full:"1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",shortnames:[":kiss_man_man_dark_skin_tone:"],category:"people"},":kiss_man_man_tone5_tone1:":{uc_base:"1f468-1f3ff-2764-1f48b-1f468-1f3fb",uc_full:"1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",shortnames:[":kiss_man_man_dark_skin_tone_light_skin_tone:"],category:"people"},":kiss_man_man_tone5_tone2:":{uc_base:"1f468-1f3ff-2764-1f48b-1f468-1f3fc",uc_full:"1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",shortnames:[":kiss_man_man_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":kiss_man_man_tone5_tone3:":{uc_base:"1f468-1f3ff-2764-1f48b-1f468-1f3fd",uc_full:"1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",shortnames:[":kiss_man_man_dark_skin_tone_medium_skin_tone:"],category:"people"},":kiss_man_man_tone5_tone4:":{uc_base:"1f468-1f3ff-2764-1f48b-1f468-1f3fe",uc_full:"1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",shortnames:[":kiss_man_man_dark_skin_tone_medium_dark_skin_tone:"],category:"people"},":kiss_person_person_tone1_tone2:":{uc_base:"1f9d1-1f3fb-2764-1f48b-1f9d1-1f3fc",uc_full:"1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc",shortnames:[":kiss_person_person_light_skin_tone_medium_light_skin_tone:"],category:"people"},":kiss_person_person_tone1_tone3:":{uc_base:"1f9d1-1f3fb-2764-1f48b-1f9d1-1f3fd",uc_full:"1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd",shortnames:[":kiss_person_person_light_skin_tone_medium_skin_tone:"],category:"people"},":kiss_person_person_tone1_tone4:":{uc_base:"1f9d1-1f3fb-2764-1f48b-1f9d1-1f3fe",uc_full:"1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe",shortnames:[":kiss_person_person_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":kiss_person_person_tone1_tone5:":{uc_base:"1f9d1-1f3fb-2764-1f48b-1f9d1-1f3ff",uc_full:"1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff",shortnames:[":kiss_person_person_light_skin_tone_dark_skin_tone:"],category:"people"},":kiss_person_person_tone2_tone1:":{uc_base:"1f9d1-1f3fc-2764-1f48b-1f9d1-1f3fb",uc_full:"1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb",shortnames:[":kiss_person_person_medium_light_skin_tone_light_skin_tone:"],category:"people"},":kiss_person_person_tone2_tone3:":{uc_base:"1f9d1-1f3fc-2764-1f48b-1f9d1-1f3fd",uc_full:"1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd",shortnames:[":kiss_person_person_medium_light_skin_tone_medium_skin_tone:"],category:"people"},":kiss_person_person_tone2_tone4:":{uc_base:"1f9d1-1f3fc-2764-1f48b-1f9d1-1f3fe",uc_full:"1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe",shortnames:[":kiss_person_person_medium_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":kiss_person_person_tone2_tone5:":{uc_base:"1f9d1-1f3fc-2764-1f48b-1f9d1-1f3ff",uc_full:"1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff",shortnames:[":kiss_person_person_medium_light_skin_tone_dark_skin_tone:"],category:"people"},":kiss_person_person_tone3_tone1:":{uc_base:"1f9d1-1f3fd-2764-1f48b-1f9d1-1f3fb",uc_full:"1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb",shortnames:[":kiss_person_person_medium_skin_tone_light_skin_tone:"],category:"people"},":kiss_person_person_tone3_tone2:":{uc_base:"1f9d1-1f3fd-2764-1f48b-1f9d1-1f3fc",uc_full:"1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc",shortnames:[":kiss_person_person_medium_skin_tone_medium_light_skin_tone:"],category:"people"},":kiss_person_person_tone3_tone4:":{uc_base:"1f9d1-1f3fd-2764-1f48b-1f9d1-1f3fe",uc_full:"1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe",shortnames:[":kiss_person_person_medium_skin_tone_medium_dark_skin_tone:"],category:"people"},":kiss_person_person_tone3_tone5:":{uc_base:"1f9d1-1f3fd-2764-1f48b-1f9d1-1f3ff",uc_full:"1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff",shortnames:[":kiss_person_person_medium_skin_tone_dark_skin_tone:"],category:"people"},":kiss_person_person_tone4_tone1:":{uc_base:"1f9d1-1f3fe-2764-1f48b-1f9d1-1f3fb",uc_full:"1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb",shortnames:[":kiss_person_person_medium_dark_skin_tone_light_skin_tone:"],category:"people"},":kiss_person_person_tone4_tone2:":{uc_base:"1f9d1-1f3fe-2764-1f48b-1f9d1-1f3fc",uc_full:"1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc",shortnames:[":kiss_person_person_medium_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":kiss_person_person_tone4_tone3:":{uc_base:"1f9d1-1f3fe-2764-1f48b-1f9d1-1f3fd",uc_full:"1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd",shortnames:[":kiss_person_person_medium_dark_skin_tone_medium_skin_tone:"],category:"people"},":kiss_person_person_tone4_tone5:":{uc_base:"1f9d1-1f3fe-2764-1f48b-1f9d1-1f3ff",uc_full:"1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff",shortnames:[":kiss_person_person_medium_dark_skin_tone_dark_skin_tone:"],category:"people"},":kiss_person_person_tone5_tone1:":{uc_base:"1f9d1-1f3ff-2764-1f48b-1f9d1-1f3fb",uc_full:"1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb",shortnames:[":kiss_person_person_dark_skin_tone_light_skin_tone:"],category:"people"},":kiss_person_person_tone5_tone2:":{uc_base:"1f9d1-1f3ff-2764-1f48b-1f9d1-1f3fc",uc_full:"1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc",shortnames:[":kiss_person_person_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":kiss_person_person_tone5_tone3:":{uc_base:"1f9d1-1f3ff-2764-1f48b-1f9d1-1f3fd",uc_full:"1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd",shortnames:[":kiss_person_person_dark_skin_tone_medium_skin_tone:"],category:"people"},":kiss_person_person_tone5_tone4:":{uc_base:"1f9d1-1f3ff-2764-1f48b-1f9d1-1f3fe",uc_full:"1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe",shortnames:[":kiss_person_person_dark_skin_tone_medium_dark_skin_tone:"],category:"people"},":kiss_woman_man_tone1:":{uc_base:"1f469-1f3fb-2764-1f48b-1f468-1f3fb",uc_full:"1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",shortnames:[":kiss_woman_man_light_skin_tone:"],category:"people"},":kiss_woman_man_tone1_tone2:":{uc_base:"1f469-1f3fb-2764-1f48b-1f468-1f3fc",uc_full:"1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",shortnames:[":kiss_woman_man_light_skin_tone_medium_light_skin_tone:"],category:"people"},":kiss_woman_man_tone1_tone3:":{uc_base:"1f469-1f3fb-2764-1f48b-1f468-1f3fd",uc_full:"1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",shortnames:[":kiss_woman_man_light_skin_tone_medium_skin_tone:"],category:"people"},":kiss_woman_man_tone1_tone4:":{uc_base:"1f469-1f3fb-2764-1f48b-1f468-1f3fe",uc_full:"1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",shortnames:[":kiss_woman_man_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":kiss_woman_man_tone1_tone5:":{uc_base:"1f469-1f3fb-2764-1f48b-1f468-1f3ff",uc_full:"1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",shortnames:[":kiss_woman_man_light_skin_tone_dark_skin_tone:"],category:"people"},":kiss_woman_man_tone2:":{uc_base:"1f469-1f3fc-2764-1f48b-1f468-1f3fc",uc_full:"1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",shortnames:[":kiss_woman_man_medium_light_skin_tone:"],category:"people"},":kiss_woman_man_tone2_tone1:":{uc_base:"1f469-1f3fc-2764-1f48b-1f468-1f3fb",uc_full:"1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",shortnames:[":kiss_woman_man_medium_light_skin_tone_light_skin_tone:"],category:"people"},":kiss_woman_man_tone2_tone3:":{uc_base:"1f469-1f3fc-2764-1f48b-1f468-1f3fd",uc_full:"1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",shortnames:[":kiss_woman_man_medium_light_skin_tone_medium_skin_tone:"],category:"people"},":kiss_woman_man_tone2_tone4:":{uc_base:"1f469-1f3fc-2764-1f48b-1f468-1f3fe",uc_full:"1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",shortnames:[":kiss_woman_man_medium_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":kiss_woman_man_tone2_tone5:":{uc_base:"1f469-1f3fc-2764-1f48b-1f468-1f3ff",uc_full:"1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",shortnames:[":kiss_woman_man_medium_light_skin_tone_dark_skin_tone:"],category:"people"},":kiss_woman_man_tone3:":{uc_base:"1f469-1f3fd-2764-1f48b-1f468-1f3fd",uc_full:"1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",shortnames:[":kiss_woman_man_medium_skin_tone:"],category:"people"},":kiss_woman_man_tone3_tone1:":{uc_base:"1f469-1f3fd-2764-1f48b-1f468-1f3fb",uc_full:"1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",shortnames:[":kiss_woman_man_medium_skin_tone_light_skin_tone:"],category:"people"},":kiss_woman_man_tone3_tone2:":{uc_base:"1f469-1f3fd-2764-1f48b-1f468-1f3fc",uc_full:"1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",shortnames:[":kiss_woman_man_medium_skin_tone_medium_light_skin_tone:"],category:"people"},":kiss_woman_man_tone3_tone4:":{uc_base:"1f469-1f3fd-2764-1f48b-1f468-1f3fe",uc_full:"1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",shortnames:[":kiss_woman_man_medium_skin_tone_medium_dark_skin_tone:"],category:"people"},":kiss_woman_man_tone3_tone5:":{uc_base:"1f469-1f3fd-2764-1f48b-1f468-1f3ff",uc_full:"1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",shortnames:[":kiss_woman_man_medium_skin_tone_dark_skin_tone:"],category:"people"},":kiss_woman_man_tone4:":{uc_base:"1f469-1f3fe-2764-1f48b-1f468-1f3fe",uc_full:"1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",shortnames:[":kiss_woman_man_medium_dark_skin_tone:"],category:"people"},":kiss_woman_man_tone4_tone1:":{uc_base:"1f469-1f3fe-2764-1f48b-1f468-1f3fb",uc_full:"1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",shortnames:[":kiss_woman_man_medium_dark_skin_tone_light_skin_tone:"],category:"people"},":kiss_woman_man_tone4_tone2:":{uc_base:"1f469-1f3fe-2764-1f48b-1f468-1f3fc",uc_full:"1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",shortnames:[":kiss_woman_man_medium_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":kiss_woman_man_tone4_tone3:":{uc_base:"1f469-1f3fe-2764-1f48b-1f468-1f3fd",uc_full:"1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",shortnames:[":kiss_woman_man_medium_dark_skin_tone_medium_skin_tone:"],category:"people"},":kiss_woman_man_tone4_tone5:":{uc_base:"1f469-1f3fe-2764-1f48b-1f468-1f3ff",uc_full:"1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",shortnames:[":kiss_woman_man_medium_dark_skin_tone_dark_skin_tone:"],category:"people"},":kiss_woman_man_tone5:":{uc_base:"1f469-1f3ff-2764-1f48b-1f468-1f3ff",uc_full:"1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",shortnames:[":kiss_woman_man_dark_skin_tone:"],category:"people"},":kiss_woman_man_tone5_tone1:":{uc_base:"1f469-1f3ff-2764-1f48b-1f468-1f3fb",uc_full:"1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",shortnames:[":kiss_woman_man_dark_skin_tone_light_skin_tone:"],category:"people"},":kiss_woman_man_tone5_tone2:":{uc_base:"1f469-1f3ff-2764-1f48b-1f468-1f3fc",uc_full:"1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",shortnames:[":kiss_woman_man_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":kiss_woman_man_tone5_tone3:":{uc_base:"1f469-1f3ff-2764-1f48b-1f468-1f3fd",uc_full:"1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",shortnames:[":kiss_woman_man_dark_skin_tone_medium_skin_tone:"],category:"people"},":kiss_woman_man_tone5_tone4:":{uc_base:"1f469-1f3ff-2764-1f48b-1f468-1f3fe",uc_full:"1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",shortnames:[":kiss_woman_man_dark_skin_tone_medium_dark_skin_tone:"],category:"people"},":kiss_woman_woman_tone1:":{uc_base:"1f469-1f3fb-2764-1f48b-1f469-1f3fb",uc_full:"1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb",shortnames:[":kiss_woman_woman_light_skin_tone:"],category:"people"},":kiss_woman_woman_tone1_tone2:":{uc_base:"1f469-1f3fb-2764-1f48b-1f469-1f3fc",uc_full:"1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc",shortnames:[":kiss_woman_woman_light_skin_tone_medium_light_skin_tone:"],category:"people"},":kiss_woman_woman_tone1_tone3:":{uc_base:"1f469-1f3fb-2764-1f48b-1f469-1f3fd",uc_full:"1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd",shortnames:[":kiss_woman_woman_light_skin_tone_medium_skin_tone:"],category:"people"},":kiss_woman_woman_tone1_tone4:":{uc_base:"1f469-1f3fb-2764-1f48b-1f469-1f3fe",uc_full:"1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe",shortnames:[":kiss_woman_woman_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":kiss_woman_woman_tone1_tone5:":{uc_base:"1f469-1f3fb-2764-1f48b-1f469-1f3ff",uc_full:"1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff",shortnames:[":kiss_woman_woman_light_skin_tone_dark_skin_tone:"],category:"people"},":kiss_woman_woman_tone2:":{uc_base:"1f469-1f3fc-2764-1f48b-1f469-1f3fc",uc_full:"1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc",shortnames:[":kiss_woman_woman_medium_light_skin_tone:"],category:"people"},":kiss_woman_woman_tone2_tone1:":{uc_base:"1f469-1f3fc-2764-1f48b-1f469-1f3fb",uc_full:"1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb",shortnames:[":kiss_woman_woman_medium_light_skin_tone_light_skin_tone:"],category:"people"},":kiss_woman_woman_tone2_tone3:":{uc_base:"1f469-1f3fc-2764-1f48b-1f469-1f3fd",uc_full:"1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd",shortnames:[":kiss_woman_woman_medium_light_skin_tone_medium_skin_tone:"],category:"people"},":kiss_woman_woman_tone2_tone4:":{uc_base:"1f469-1f3fc-2764-1f48b-1f469-1f3fe",uc_full:"1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe",shortnames:[":kiss_woman_woman_medium_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":kiss_woman_woman_tone2_tone5:":{uc_base:"1f469-1f3fc-2764-1f48b-1f469-1f3ff",uc_full:"1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff",shortnames:[":kiss_woman_woman_medium_light_skin_tone_dark_skin_tone:"],category:"people"},":kiss_woman_woman_tone3:":{uc_base:"1f469-1f3fd-2764-1f48b-1f469-1f3fd",uc_full:"1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd",shortnames:[":kiss_woman_woman_medium_skin_tone:"],category:"people"},":kiss_woman_woman_tone3_tone1:":{uc_base:"1f469-1f3fd-2764-1f48b-1f469-1f3fb",uc_full:"1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb",shortnames:[":kiss_woman_woman_medium_skin_tone_light_skin_tone:"],category:"people"},":kiss_woman_woman_tone3_tone2:":{uc_base:"1f469-1f3fd-2764-1f48b-1f469-1f3fc",uc_full:"1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc",shortnames:[":kiss_woman_woman_medium_skin_tone_medium_light_skin_tone:"],category:"people"},":kiss_woman_woman_tone3_tone4:":{uc_base:"1f469-1f3fd-2764-1f48b-1f469-1f3fe",uc_full:"1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe",shortnames:[":kiss_woman_woman_medium_skin_tone_medium_dark_skin_tone:"],category:"people"},":kiss_woman_woman_tone3_tone5:":{uc_base:"1f469-1f3fd-2764-1f48b-1f469-1f3ff",uc_full:"1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff",shortnames:[":kiss_woman_woman_medium_skin_tone_dark_skin_tone:"],category:"people"},":kiss_woman_woman_tone4:":{uc_base:"1f469-1f3fe-2764-1f48b-1f469-1f3fe",uc_full:"1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe",shortnames:[":kiss_woman_woman_medium_dark_skin_tone:"],category:"people"},":kiss_woman_woman_tone4_tone1:":{uc_base:"1f469-1f3fe-2764-1f48b-1f469-1f3fb",uc_full:"1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb",shortnames:[":kiss_woman_woman_medium_dark_skin_tone_light_skin_tone:"],category:"people"},":kiss_woman_woman_tone4_tone2:":{uc_base:"1f469-1f3fe-2764-1f48b-1f469-1f3fc",uc_full:"1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc",shortnames:[":kiss_woman_woman_medium_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":kiss_woman_woman_tone4_tone3:":{uc_base:"1f469-1f3fe-2764-1f48b-1f469-1f3fd",uc_full:"1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd",shortnames:[":kiss_woman_woman_medium_dark_skin_tone_medium_skin_tone:"],category:"people"},":kiss_woman_woman_tone4_tone5:":{uc_base:"1f469-1f3fe-2764-1f48b-1f469-1f3ff",uc_full:"1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff",shortnames:[":kiss_woman_woman_medium_dark_skin_tone_dark_skin_tone:"],category:"people"},":kiss_woman_woman_tone5:":{uc_base:"1f469-1f3ff-2764-1f48b-1f469-1f3ff",uc_full:"1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff",shortnames:[":kiss_woman_woman_dark_skin_tone:"],category:"people"},":kiss_woman_woman_tone5_tone1:":{uc_base:"1f469-1f3ff-2764-1f48b-1f469-1f3fb",uc_full:"1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb",shortnames:[":kiss_woman_woman_dark_skin_tone_light_skin_tone:"],category:"people"},":kiss_woman_woman_tone5_tone2:":{uc_base:"1f469-1f3ff-2764-1f48b-1f469-1f3fc",uc_full:"1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc",shortnames:[":kiss_woman_woman_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":kiss_woman_woman_tone5_tone3:":{uc_base:"1f469-1f3ff-2764-1f48b-1f469-1f3fd",uc_full:"1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd",shortnames:[":kiss_woman_woman_dark_skin_tone_medium_skin_tone:"],category:"people"},":kiss_woman_woman_tone5_tone4:":{uc_base:"1f469-1f3ff-2764-1f48b-1f469-1f3fe",uc_full:"1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe",shortnames:[":kiss_woman_woman_dark_skin_tone_medium_dark_skin_tone:"],category:"people"},":men_holding_hands_tone1_tone2:":{uc_base:"1f468-1f3fb-1f91d-1f468-1f3fc",uc_full:"1f468-1f3fb-200d-1f91d-200d-1f468-1f3fc",shortnames:[":men_holding_hands_light_skin_tone_medium_light_skin_tone:"],category:"people"},":men_holding_hands_tone1_tone3:":{uc_base:"1f468-1f3fb-1f91d-1f468-1f3fd",uc_full:"1f468-1f3fb-200d-1f91d-200d-1f468-1f3fd",shortnames:[":men_holding_hands_light_skin_tone_medium_skin_tone:"],category:"people"},":men_holding_hands_tone1_tone4:":{uc_base:"1f468-1f3fb-1f91d-1f468-1f3fe",uc_full:"1f468-1f3fb-200d-1f91d-200d-1f468-1f3fe",shortnames:[":men_holding_hands_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":men_holding_hands_tone1_tone5:":{uc_base:"1f468-1f3fb-1f91d-1f468-1f3ff",uc_full:"1f468-1f3fb-200d-1f91d-200d-1f468-1f3ff",shortnames:[":men_holding_hands_light_skin_tone_dark_skin_tone:"],category:"people"},":men_holding_hands_tone2_tone1:":{uc_base:"1f468-1f3fc-1f91d-1f468-1f3fb",uc_full:"1f468-1f3fc-200d-1f91d-200d-1f468-1f3fb",shortnames:[":men_holding_hands_medium_light_skin_tone_light_skin_tone:"],category:"people"},":men_holding_hands_tone2_tone3:":{uc_base:"1f468-1f3fc-1f91d-1f468-1f3fd",uc_full:"1f468-1f3fc-200d-1f91d-200d-1f468-1f3fd",shortnames:[":men_holding_hands_medium_light_skin_tone_medium_skin_tone:"],category:"people"},":men_holding_hands_tone2_tone4:":{uc_base:"1f468-1f3fc-1f91d-1f468-1f3fe",uc_full:"1f468-1f3fc-200d-1f91d-200d-1f468-1f3fe",shortnames:[":men_holding_hands_medium_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":men_holding_hands_tone2_tone5:":{uc_base:"1f468-1f3fc-1f91d-1f468-1f3ff",uc_full:"1f468-1f3fc-200d-1f91d-200d-1f468-1f3ff",shortnames:[":men_holding_hands_medium_light_skin_tone_dark_skin_tone:"],category:"people"},":men_holding_hands_tone3_tone1:":{uc_base:"1f468-1f3fd-1f91d-1f468-1f3fb",uc_full:"1f468-1f3fd-200d-1f91d-200d-1f468-1f3fb",shortnames:[":men_holding_hands_medium_skin_tone_light_skin_tone:"],category:"people"},":men_holding_hands_tone3_tone2:":{uc_base:"1f468-1f3fd-1f91d-1f468-1f3fc",uc_full:"1f468-1f3fd-200d-1f91d-200d-1f468-1f3fc",shortnames:[":men_holding_hands_medium_skin_tone_medium_light_skin_tone:"],category:"people"},":men_holding_hands_tone3_tone4:":{uc_base:"1f468-1f3fd-1f91d-1f468-1f3fe",uc_full:"1f468-1f3fd-200d-1f91d-200d-1f468-1f3fe",shortnames:[":men_holding_hands_medium_skin_tone_medium_dark_skin_tone:"],category:"people"},":men_holding_hands_tone3_tone5:":{uc_base:"1f468-1f3fd-1f91d-1f468-1f3ff",uc_full:"1f468-1f3fd-200d-1f91d-200d-1f468-1f3ff",shortnames:[":men_holding_hands_medium_skin_tone_dark_skin_tone:"],category:"people"},":men_holding_hands_tone4_tone1:":{uc_base:"1f468-1f3fe-1f91d-1f468-1f3fb",uc_full:"1f468-1f3fe-200d-1f91d-200d-1f468-1f3fb",shortnames:[":men_holding_hands_medium_dark_skin_tone_light_skin_tone:"],category:"people"},":men_holding_hands_tone4_tone2:":{uc_base:"1f468-1f3fe-1f91d-1f468-1f3fc",uc_full:"1f468-1f3fe-200d-1f91d-200d-1f468-1f3fc",shortnames:[":men_holding_hands_medium_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":men_holding_hands_tone4_tone3:":{uc_base:"1f468-1f3fe-1f91d-1f468-1f3fd",uc_full:"1f468-1f3fe-200d-1f91d-200d-1f468-1f3fd",shortnames:[":men_holding_hands_medium_dark_skin_tone_medium_skin_tone:"],category:"people"},":men_holding_hands_tone4_tone5:":{uc_base:"1f468-1f3fe-1f91d-1f468-1f3ff",uc_full:"1f468-1f3fe-200d-1f91d-200d-1f468-1f3ff",shortnames:[":men_holding_hands_medium_dark_skin_tone_dark_skin_tone:"],category:"people"},":men_holding_hands_tone5_tone1:":{uc_base:"1f468-1f3ff-1f91d-1f468-1f3fb",uc_full:"1f468-1f3ff-200d-1f91d-200d-1f468-1f3fb",shortnames:[":men_holding_hands_dark_skin_tone_light_skin_tone:"],category:"people"},":men_holding_hands_tone5_tone2:":{uc_base:"1f468-1f3ff-1f91d-1f468-1f3fc",uc_full:"1f468-1f3ff-200d-1f91d-200d-1f468-1f3fc",shortnames:[":men_holding_hands_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":men_holding_hands_tone5_tone3:":{uc_base:"1f468-1f3ff-1f91d-1f468-1f3fd",uc_full:"1f468-1f3ff-200d-1f91d-200d-1f468-1f3fd",shortnames:[":men_holding_hands_dark_skin_tone_medium_skin_tone:"],category:"people"},":men_holding_hands_tone5_tone4:":{uc_base:"1f468-1f3ff-1f91d-1f468-1f3fe",uc_full:"1f468-1f3ff-200d-1f91d-200d-1f468-1f3fe",shortnames:[":men_holding_hands_dark_skin_tone_medium_dark_skin_tone:"],category:"people"},":people_holding_hands_tone1:":{uc_base:"1f9d1-1f3fb-1f91d-1f9d1-1f3fb",uc_full:"1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fb",shortnames:[":people_holding_hands_light_skin_tone:"],category:"people"},":people_holding_hands_tone1_tone2:":{uc_base:"1f9d1-1f3fb-1f91d-1f9d1-1f3fc",uc_full:"1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fc",shortnames:[":people_holding_hands_light_skin_tone_medium_light_skin_tone:"],category:"people"},":people_holding_hands_tone1_tone3:":{uc_base:"1f9d1-1f3fb-1f91d-1f9d1-1f3fd",uc_full:"1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fd",shortnames:[":people_holding_hands_light_skin_tone_medium_skin_tone:"],category:"people"},":people_holding_hands_tone1_tone4:":{uc_base:"1f9d1-1f3fb-1f91d-1f9d1-1f3fe",uc_full:"1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fe",shortnames:[":people_holding_hands_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":people_holding_hands_tone1_tone5:":{uc_base:"1f9d1-1f3fb-1f91d-1f9d1-1f3ff",uc_full:"1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3ff",shortnames:[":people_holding_hands_light_skin_tone_dark_skin_tone:"],category:"people"},":people_holding_hands_tone2:":{uc_base:"1f9d1-1f3fc-1f91d-1f9d1-1f3fc",uc_full:"1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fc",shortnames:[":people_holding_hands_medium_light_skin_tone:"],category:"people"},":people_holding_hands_tone2_tone1:":{uc_base:"1f9d1-1f3fc-1f91d-1f9d1-1f3fb",uc_full:"1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fb",shortnames:[":people_holding_hands_medium_light_skin_tone_light_skin_tone:"],category:"people"},":people_holding_hands_tone2_tone3:":{uc_base:"1f9d1-1f3fc-1f91d-1f9d1-1f3fd",uc_full:"1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fd",shortnames:[":people_holding_hands_medium_light_skin_tone_medium_skin_tone:"],category:"people"},":people_holding_hands_tone2_tone4:":{uc_base:"1f9d1-1f3fc-1f91d-1f9d1-1f3fe",uc_full:"1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fe",shortnames:[":people_holding_hands_medium_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":people_holding_hands_tone2_tone5:":{uc_base:"1f9d1-1f3fc-1f91d-1f9d1-1f3ff",uc_full:"1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3ff",shortnames:[":people_holding_hands_medium_light_skin_tone_dark_skin_tone:"],category:"people"},":people_holding_hands_tone3:":{uc_base:"1f9d1-1f3fd-1f91d-1f9d1-1f3fd",uc_full:"1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fd",shortnames:[":people_holding_hands_medium_skin_tone:"],category:"people"},":people_holding_hands_tone3_tone1:":{uc_base:"1f9d1-1f3fd-1f91d-1f9d1-1f3fb",uc_full:"1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fb",shortnames:[":people_holding_hands_medium_skin_tone_light_skin_tone:"],category:"people"},":people_holding_hands_tone3_tone2:":{uc_base:"1f9d1-1f3fd-1f91d-1f9d1-1f3fc",uc_full:"1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fc",shortnames:[":people_holding_hands_medium_skin_tone_medium_light_skin_tone:"],category:"people"},":people_holding_hands_tone3_tone4:":{uc_base:"1f9d1-1f3fd-1f91d-1f9d1-1f3fe",uc_full:"1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fe",shortnames:[":people_holding_hands_medium_skin_tone_medium_dark_skin_tone:"],category:"people"},":people_holding_hands_tone3_tone5:":{uc_base:"1f9d1-1f3fd-1f91d-1f9d1-1f3ff",uc_full:"1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3ff",shortnames:[":people_holding_hands_medium_skin_tone_dark_skin_tone:"],category:"people"},":people_holding_hands_tone4:":{uc_base:"1f9d1-1f3fe-1f91d-1f9d1-1f3fe",uc_full:"1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fe",shortnames:[":people_holding_hands_medium_dark_skin_tone:"],category:"people"},":people_holding_hands_tone4_tone1:":{uc_base:"1f9d1-1f3fe-1f91d-1f9d1-1f3fb",uc_full:"1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fb",shortnames:[":people_holding_hands_medium_dark_skin_tone_light_skin_tone:"],category:"people"},":people_holding_hands_tone4_tone2:":{uc_base:"1f9d1-1f3fe-1f91d-1f9d1-1f3fc",uc_full:"1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fc",shortnames:[":people_holding_hands_medium_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":people_holding_hands_tone4_tone3:":{uc_base:"1f9d1-1f3fe-1f91d-1f9d1-1f3fd",uc_full:"1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fd",shortnames:[":people_holding_hands_medium_dark_skin_tone_medium_skin_tone:"],category:"people"},":people_holding_hands_tone4_tone5:":{uc_base:"1f9d1-1f3fe-1f91d-1f9d1-1f3ff",uc_full:"1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3ff",shortnames:[":people_holding_hands_medium_dark_skin_tone_dark_skin_tone:"],category:"people"},":people_holding_hands_tone5:":{uc_base:"1f9d1-1f3ff-1f91d-1f9d1-1f3ff",uc_full:"1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3ff",shortnames:[":people_holding_hands_dark_skin_tone:"],category:"people"},":people_holding_hands_tone5_tone1:":{uc_base:"1f9d1-1f3ff-1f91d-1f9d1-1f3fb",uc_full:"1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fb",shortnames:[":people_holding_hands_dark_skin_tone_light_skin_tone:"],category:"people"},":people_holding_hands_tone5_tone2:":{uc_base:"1f9d1-1f3ff-1f91d-1f9d1-1f3fc",uc_full:"1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fc",shortnames:[":people_holding_hands_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":people_holding_hands_tone5_tone3:":{uc_base:"1f9d1-1f3ff-1f91d-1f9d1-1f3fd",uc_full:"1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fd",shortnames:[":people_holding_hands_dark_skin_tone_medium_skin_tone:"],category:"people"},":people_holding_hands_tone5_tone4:":{uc_base:"1f9d1-1f3ff-1f91d-1f9d1-1f3fe",uc_full:"1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fe",shortnames:[":people_holding_hands_dark_skin_tone_medium_dark_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone1_tone2:":{uc_base:"1f469-1f3fb-1f91d-1f468-1f3fc",uc_full:"1f469-1f3fb-200d-1f91d-200d-1f468-1f3fc",shortnames:[":woman_and_man_holding_hands_light_skin_tone_medium_light_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone1_tone3:":{uc_base:"1f469-1f3fb-1f91d-1f468-1f3fd",uc_full:"1f469-1f3fb-200d-1f91d-200d-1f468-1f3fd",shortnames:[":woman_and_man_holding_hands_light_skin_tone_medium_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone1_tone4:":{uc_base:"1f469-1f3fb-1f91d-1f468-1f3fe",uc_full:"1f469-1f3fb-200d-1f91d-200d-1f468-1f3fe",shortnames:[":woman_and_man_holding_hands_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone1_tone5:":{uc_base:"1f469-1f3fb-1f91d-1f468-1f3ff",uc_full:"1f469-1f3fb-200d-1f91d-200d-1f468-1f3ff",shortnames:[":woman_and_man_holding_hands_light_skin_tone_dark_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone2_tone1:":{uc_base:"1f469-1f3fc-1f91d-1f468-1f3fb",uc_full:"1f469-1f3fc-200d-1f91d-200d-1f468-1f3fb",shortnames:[":woman_and_man_holding_hands_medium_light_skin_tone_light_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone2_tone3:":{uc_base:"1f469-1f3fc-1f91d-1f468-1f3fd",uc_full:"1f469-1f3fc-200d-1f91d-200d-1f468-1f3fd",shortnames:[":woman_and_man_holding_hands_medium_light_skin_tone_medium_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone2_tone4:":{uc_base:"1f469-1f3fc-1f91d-1f468-1f3fe",uc_full:"1f469-1f3fc-200d-1f91d-200d-1f468-1f3fe",shortnames:[":woman_and_man_holding_hands_medium_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone2_tone5:":{uc_base:"1f469-1f3fc-1f91d-1f468-1f3ff",uc_full:"1f469-1f3fc-200d-1f91d-200d-1f468-1f3ff",shortnames:[":woman_and_man_holding_hands_medium_light_skin_tone_dark_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone3_tone1:":{uc_base:"1f469-1f3fd-1f91d-1f468-1f3fb",uc_full:"1f469-1f3fd-200d-1f91d-200d-1f468-1f3fb",shortnames:[":woman_and_man_holding_hands_medium_skin_tone_light_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone3_tone2:":{uc_base:"1f469-1f3fd-1f91d-1f468-1f3fc",uc_full:"1f469-1f3fd-200d-1f91d-200d-1f468-1f3fc",shortnames:[":woman_and_man_holding_hands_medium_skin_tone_medium_light_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone3_tone4:":{uc_base:"1f469-1f3fd-1f91d-1f468-1f3fe",uc_full:"1f469-1f3fd-200d-1f91d-200d-1f468-1f3fe",shortnames:[":woman_and_man_holding_hands_medium_skin_tone_medium_dark_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone3_tone5:":{uc_base:"1f469-1f3fd-1f91d-1f468-1f3ff",uc_full:"1f469-1f3fd-200d-1f91d-200d-1f468-1f3ff",shortnames:[":woman_and_man_holding_hands_medium_skin_tone_dark_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone4_tone1:":{uc_base:"1f469-1f3fe-1f91d-1f468-1f3fb",uc_full:"1f469-1f3fe-200d-1f91d-200d-1f468-1f3fb",shortnames:[":woman_and_man_holding_hands_medium_dark_skin_tone_light_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone4_tone2:":{uc_base:"1f469-1f3fe-1f91d-1f468-1f3fc",uc_full:"1f469-1f3fe-200d-1f91d-200d-1f468-1f3fc",shortnames:[":woman_and_man_holding_hands_medium_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone4_tone3:":{uc_base:"1f469-1f3fe-1f91d-1f468-1f3fd",uc_full:"1f469-1f3fe-200d-1f91d-200d-1f468-1f3fd",shortnames:[":woman_and_man_holding_hands_medium_dark_skin_tone_medium_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone4_tone5:":{uc_base:"1f469-1f3fe-1f91d-1f468-1f3ff",uc_full:"1f469-1f3fe-200d-1f91d-200d-1f468-1f3ff",shortnames:[":woman_and_man_holding_hands_medium_dark_skin_tone_dark_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone5_tone1:":{uc_base:"1f469-1f3ff-1f91d-1f468-1f3fb",uc_full:"1f469-1f3ff-200d-1f91d-200d-1f468-1f3fb",shortnames:[":woman_and_man_holding_hands_dark_skin_tone_light_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone5_tone2:":{uc_base:"1f469-1f3ff-1f91d-1f468-1f3fc",uc_full:"1f469-1f3ff-200d-1f91d-200d-1f468-1f3fc",shortnames:[":woman_and_man_holding_hands_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone5_tone3:":{uc_base:"1f469-1f3ff-1f91d-1f468-1f3fd",uc_full:"1f469-1f3ff-200d-1f91d-200d-1f468-1f3fd",shortnames:[":woman_and_man_holding_hands_dark_skin_tone_medium_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone5_tone4:":{uc_base:"1f469-1f3ff-1f91d-1f468-1f3fe",uc_full:"1f469-1f3ff-200d-1f91d-200d-1f468-1f3fe",shortnames:[":woman_and_man_holding_hands_dark_skin_tone_medium_dark_skin_tone:"],category:"people"},":women_holding_hands_tone1_tone2:":{uc_base:"1f469-1f3fb-1f91d-1f469-1f3fc",uc_full:"1f469-1f3fb-200d-1f91d-200d-1f469-1f3fc",shortnames:[":women_holding_hands_light_skin_tone_medium_light_skin_tone:"],category:"people"},":women_holding_hands_tone1_tone3:":{uc_base:"1f469-1f3fb-1f91d-1f469-1f3fd",uc_full:"1f469-1f3fb-200d-1f91d-200d-1f469-1f3fd",shortnames:[":women_holding_hands_light_skin_tone_medium_skin_tone:"],category:"people"},":women_holding_hands_tone1_tone4:":{uc_base:"1f469-1f3fb-1f91d-1f469-1f3fe",uc_full:"1f469-1f3fb-200d-1f91d-200d-1f469-1f3fe",shortnames:[":women_holding_hands_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":women_holding_hands_tone1_tone5:":{uc_base:"1f469-1f3fb-1f91d-1f469-1f3ff",uc_full:"1f469-1f3fb-200d-1f91d-200d-1f469-1f3ff",shortnames:[":women_holding_hands_light_skin_tone_dark_skin_tone:"],category:"people"},":women_holding_hands_tone2_tone1:":{uc_base:"1f469-1f3fc-1f91d-1f469-1f3fb",uc_full:"1f469-1f3fc-200d-1f91d-200d-1f469-1f3fb",shortnames:[":women_holding_hands_medium_light_skin_tone_light_skin_tone:"],category:"people"},":women_holding_hands_tone2_tone3:":{uc_base:"1f469-1f3fc-1f91d-1f469-1f3fd",uc_full:"1f469-1f3fc-200d-1f91d-200d-1f469-1f3fd",shortnames:[":women_holding_hands_medium_light_skin_tone_medium_skin_tone:"],category:"people"},":women_holding_hands_tone2_tone4:":{uc_base:"1f469-1f3fc-1f91d-1f469-1f3fe",uc_full:"1f469-1f3fc-200d-1f91d-200d-1f469-1f3fe",shortnames:[":women_holding_hands_medium_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":women_holding_hands_tone2_tone5:":{uc_base:"1f469-1f3fc-1f91d-1f469-1f3ff",uc_full:"1f469-1f3fc-200d-1f91d-200d-1f469-1f3ff",shortnames:[":women_holding_hands_medium_light_skin_tone_dark_skin_tone:"],category:"people"},":women_holding_hands_tone3_tone1:":{uc_base:"1f469-1f3fd-1f91d-1f469-1f3fb",uc_full:"1f469-1f3fd-200d-1f91d-200d-1f469-1f3fb",shortnames:[":women_holding_hands_medium_skin_tone_light_skin_tone:"],category:"people"},":women_holding_hands_tone3_tone2:":{uc_base:"1f469-1f3fd-1f91d-1f469-1f3fc",uc_full:"1f469-1f3fd-200d-1f91d-200d-1f469-1f3fc",shortnames:[":women_holding_hands_medium_skin_tone_medium_light_skin_tone:"],category:"people"},":women_holding_hands_tone3_tone4:":{uc_base:"1f469-1f3fd-1f91d-1f469-1f3fe",uc_full:"1f469-1f3fd-200d-1f91d-200d-1f469-1f3fe",shortnames:[":women_holding_hands_medium_skin_tone_medium_dark_skin_tone:"],category:"people"},":women_holding_hands_tone3_tone5:":{uc_base:"1f469-1f3fd-1f91d-1f469-1f3ff",uc_full:"1f469-1f3fd-200d-1f91d-200d-1f469-1f3ff",shortnames:[":women_holding_hands_medium_skin_tone_dark_skin_tone:"],category:"people"},":women_holding_hands_tone4_tone1:":{uc_base:"1f469-1f3fe-1f91d-1f469-1f3fb",uc_full:"1f469-1f3fe-200d-1f91d-200d-1f469-1f3fb",shortnames:[":women_holding_hands_medium_dark_skin_tone_light_skin_tone:"],category:"people"},":women_holding_hands_tone4_tone2:":{uc_base:"1f469-1f3fe-1f91d-1f469-1f3fc",uc_full:"1f469-1f3fe-200d-1f91d-200d-1f469-1f3fc",shortnames:[":women_holding_hands_medium_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":women_holding_hands_tone4_tone3:":{uc_base:"1f469-1f3fe-1f91d-1f469-1f3fd",uc_full:"1f469-1f3fe-200d-1f91d-200d-1f469-1f3fd",shortnames:[":women_holding_hands_medium_dark_skin_tone_medium_skin_tone:"],category:"people"},":women_holding_hands_tone4_tone5:":{uc_base:"1f469-1f3fe-1f91d-1f469-1f3ff",uc_full:"1f469-1f3fe-200d-1f91d-200d-1f469-1f3ff",shortnames:[":women_holding_hands_medium_dark_skin_tone_dark_skin_tone:"],category:"people"},":women_holding_hands_tone5_tone1:":{uc_base:"1f469-1f3ff-1f91d-1f469-1f3fb",uc_full:"1f469-1f3ff-200d-1f91d-200d-1f469-1f3fb",shortnames:[":women_holding_hands_dark_skin_tone_light_skin_tone:"],category:"people"},":women_holding_hands_tone5_tone2:":{uc_base:"1f469-1f3ff-1f91d-1f469-1f3fc",uc_full:"1f469-1f3ff-200d-1f91d-200d-1f469-1f3fc",shortnames:[":women_holding_hands_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":women_holding_hands_tone5_tone3:":{uc_base:"1f469-1f3ff-1f91d-1f469-1f3fd",uc_full:"1f469-1f3ff-200d-1f91d-200d-1f469-1f3fd",shortnames:[":women_holding_hands_dark_skin_tone_medium_skin_tone:"],category:"people"},":women_holding_hands_tone5_tone4:":{uc_base:"1f469-1f3ff-1f91d-1f469-1f3fe",uc_full:"1f469-1f3ff-200d-1f91d-200d-1f469-1f3fe",shortnames:[":women_holding_hands_dark_skin_tone_medium_dark_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone1:":{uc_base:"1f468-1f3fb-2764-1f468-1f3fb",uc_full:"1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fb",shortnames:[":couple_with_heart_man_man_light_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone1_tone2:":{uc_base:"1f468-1f3fb-2764-1f468-1f3fc",uc_full:"1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fc",shortnames:[":couple_with_heart_man_man_light_skin_tone_medium_light_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone1_tone3:":{uc_base:"1f468-1f3fb-2764-1f468-1f3fd",uc_full:"1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fd",shortnames:[":couple_with_heart_man_man_light_skin_tone_medium_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone1_tone4:":{uc_base:"1f468-1f3fb-2764-1f468-1f3fe",uc_full:"1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fe",shortnames:[":couple_with_heart_man_man_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone1_tone5:":{uc_base:"1f468-1f3fb-2764-1f468-1f3ff",uc_full:"1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3ff",shortnames:[":couple_with_heart_man_man_light_skin_tone_dark_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone2:":{uc_base:"1f468-1f3fc-2764-1f468-1f3fc",uc_full:"1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fc",shortnames:[":couple_with_heart_man_man_medium_light_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone2_tone1:":{uc_base:"1f468-1f3fc-2764-1f468-1f3fb",uc_full:"1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fb",shortnames:[":couple_with_heart_man_man_medium_light_skin_tone_light_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone2_tone3:":{uc_base:"1f468-1f3fc-2764-1f468-1f3fd",uc_full:"1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fd",shortnames:[":couple_with_heart_man_man_medium_light_skin_tone_medium_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone2_tone4:":{uc_base:"1f468-1f3fc-2764-1f468-1f3fe",uc_full:"1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fe",shortnames:[":couple_with_heart_man_man_medium_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone2_tone5:":{uc_base:"1f468-1f3fc-2764-1f468-1f3ff",uc_full:"1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3ff",shortnames:[":couple_with_heart_man_man_medium_light_skin_tone_dark_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone3:":{uc_base:"1f468-1f3fd-2764-1f468-1f3fd",uc_full:"1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fd",shortnames:[":couple_with_heart_man_man_medium_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone3_tone1:":{uc_base:"1f468-1f3fd-2764-1f468-1f3fb",uc_full:"1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fb",shortnames:[":couple_with_heart_man_man_medium_skin_tone_light_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone3_tone2:":{uc_base:"1f468-1f3fd-2764-1f468-1f3fc",uc_full:"1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fc",shortnames:[":couple_with_heart_man_man_medium_skin_tone_medium_light_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone3_tone4:":{uc_base:"1f468-1f3fd-2764-1f468-1f3fe",uc_full:"1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fe",shortnames:[":couple_with_heart_man_man_medium_skin_tone_medium_dark_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone3_tone5:":{uc_base:"1f468-1f3fd-2764-1f468-1f3ff",uc_full:"1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3ff",shortnames:[":couple_with_heart_man_man_medium_skin_tone_dark_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone4:":{uc_base:"1f468-1f3fe-2764-1f468-1f3fe",uc_full:"1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fe",shortnames:[":couple_with_heart_man_man_medium_dark_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone4_tone1:":{uc_base:"1f468-1f3fe-2764-1f468-1f3fb",uc_full:"1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fb",shortnames:[":couple_with_heart_man_man_medium_dark_skin_tone_light_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone4_tone2:":{uc_base:"1f468-1f3fe-2764-1f468-1f3fc",uc_full:"1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fc",shortnames:[":couple_with_heart_man_man_medium_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone4_tone3:":{uc_base:"1f468-1f3fe-2764-1f468-1f3fd",uc_full:"1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fd",shortnames:[":couple_with_heart_man_man_medium_dark_skin_tone_medium_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone4_tone5:":{uc_base:"1f468-1f3fe-2764-1f468-1f3ff",uc_full:"1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3ff",shortnames:[":couple_with_heart_man_man_medium_dark_skin_tone_dark_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone5:":{uc_base:"1f468-1f3ff-2764-1f468-1f3ff",uc_full:"1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3ff",shortnames:[":couple_with_heart_man_man_dark_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone5_tone1:":{uc_base:"1f468-1f3ff-2764-1f468-1f3fb",uc_full:"1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fb",shortnames:[":couple_with_heart_man_man_dark_skin_tone_light_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone5_tone2:":{uc_base:"1f468-1f3ff-2764-1f468-1f3fc",uc_full:"1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fc",shortnames:[":couple_with_heart_man_man_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone5_tone3:":{uc_base:"1f468-1f3ff-2764-1f468-1f3fd",uc_full:"1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fd",shortnames:[":couple_with_heart_man_man_dark_skin_tone_medium_skin_tone:"],category:"people"},":couple_with_heart_man_man_tone5_tone4:":{uc_base:"1f468-1f3ff-2764-1f468-1f3fe",uc_full:"1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fe",shortnames:[":couple_with_heart_man_man_dark_skin_tone_medium_dark_skin_tone:"],category:"people"},":couple_with_heart_person_person_tone1_tone2:":{uc_base:"1f9d1-1f3fb-2764-1f9d1-1f3fc",uc_full:"1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3fc",shortnames:[":couple_with_heart_person_person_light_skin_tone_medium_light_skin_tone:"],category:"people"},":couple_with_heart_person_person_tone1_tone3:":{uc_base:"1f9d1-1f3fb-2764-1f9d1-1f3fd",uc_full:"1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3fd",shortnames:[":couple_with_heart_person_person_light_skin_tone_medium_skin_tone:"],category:"people"},":couple_with_heart_person_person_tone1_tone4:":{uc_base:"1f9d1-1f3fb-2764-1f9d1-1f3fe",uc_full:"1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3fe",shortnames:[":couple_with_heart_person_person_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":couple_with_heart_person_person_tone1_tone5:":{uc_base:"1f9d1-1f3fb-2764-1f9d1-1f3ff",uc_full:"1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3ff",shortnames:[":couple_with_heart_person_person_light_skin_tone_dark_skin_tone:"],category:"people"},":couple_with_heart_person_person_tone2_tone1:":{uc_base:"1f9d1-1f3fc-2764-1f9d1-1f3fb",uc_full:"1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3fb",shortnames:[":couple_with_heart_person_person_medium_light_skin_tone_light_skin_tone:"],category:"people"},":couple_with_heart_person_person_tone2_tone3:":{uc_base:"1f9d1-1f3fc-2764-1f9d1-1f3fd",uc_full:"1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3fd",shortnames:[":couple_with_heart_person_person_medium_light_skin_tone_medium_skin_tone:"],category:"people"},":couple_with_heart_person_person_tone2_tone4:":{uc_base:"1f9d1-1f3fc-2764-1f9d1-1f3fe",uc_full:"1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3fe",shortnames:[":couple_with_heart_person_person_medium_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":couple_with_heart_person_person_tone2_tone5:":{uc_base:"1f9d1-1f3fc-2764-1f9d1-1f3ff",uc_full:"1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3ff",shortnames:[":couple_with_heart_person_person_medium_light_skin_tone_dark_skin_tone:"],category:"people"},":couple_with_heart_person_person_tone3_tone1:":{uc_base:"1f9d1-1f3fd-2764-1f9d1-1f3fb",uc_full:"1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3fb",shortnames:[":couple_with_heart_person_person_medium_skin_tone_light_skin_tone:"],category:"people"},":couple_with_heart_person_person_tone3_tone2:":{uc_base:"1f9d1-1f3fd-2764-1f9d1-1f3fc",uc_full:"1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3fc",shortnames:[":couple_with_heart_person_person_medium_skin_tone_medium_light_skin_tone:"],category:"people"},":couple_with_heart_person_person_tone3_tone4:":{uc_base:"1f9d1-1f3fd-2764-1f9d1-1f3fe",uc_full:"1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3fe",shortnames:[":couple_with_heart_person_person_medium_skin_tone_medium_dark_skin_tone:"],category:"people"},":couple_with_heart_person_person_tone3_tone5:":{uc_base:"1f9d1-1f3fd-2764-1f9d1-1f3ff",uc_full:"1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3ff",shortnames:[":couple_with_heart_person_person_medium_skin_tone_dark_skin_tone:"],category:"people"},":couple_with_heart_person_person_tone4_tone1:":{uc_base:"1f9d1-1f3fe-2764-1f9d1-1f3fb",uc_full:"1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3fb",shortnames:[":couple_with_heart_person_person_medium_dark_skin_tone_light_skin_tone:"],category:"people"},":couple_with_heart_person_person_tone4_tone2:":{uc_base:"1f9d1-1f3fe-2764-1f9d1-1f3fc",uc_full:"1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3fc",shortnames:[":couple_with_heart_person_person_medium_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":couple_with_heart_person_person_tone4_tone3:":{uc_base:"1f9d1-1f3fe-2764-1f9d1-1f3fd",uc_full:"1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3fd",shortnames:[":couple_with_heart_person_person_medium_dark_skin_tone_medium_skin_tone:"],category:"people"},":couple_with_heart_person_person_tone4_tone5:":{uc_base:"1f9d1-1f3fe-2764-1f9d1-1f3ff",uc_full:"1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3ff",shortnames:[":couple_with_heart_person_person_medium_dark_skin_tone_dark_skin_tone:"],category:"people"},":couple_with_heart_person_person_tone5_tone1:":{uc_base:"1f9d1-1f3ff-2764-1f9d1-1f3fb",uc_full:"1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fb",shortnames:[":couple_with_heart_person_person_dark_skin_tone_light_skin_tone:"],category:"people"},":couple_with_heart_person_person_tone5_tone2:":{uc_base:"1f9d1-1f3ff-2764-1f9d1-1f3fc",uc_full:"1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fc",shortnames:[":couple_with_heart_person_person_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":couple_with_heart_person_person_tone5_tone3:":{uc_base:"1f9d1-1f3ff-2764-1f9d1-1f3fd",uc_full:"1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fd",shortnames:[":couple_with_heart_person_person_dark_skin_tone_medium_skin_tone:"],category:"people"},":couple_with_heart_person_person_tone5_tone4:":{uc_base:"1f9d1-1f3ff-2764-1f9d1-1f3fe",uc_full:"1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fe",shortnames:[":couple_with_heart_person_person_dark_skin_tone_medium_dark_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone1:":{uc_base:"1f469-1f3fb-2764-1f468-1f3fb",uc_full:"1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fb",shortnames:[":couple_with_heart_woman_man_light_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone1_tone2:":{uc_base:"1f469-1f3fb-2764-1f468-1f3fc",uc_full:"1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fc",shortnames:[":couple_with_heart_woman_man_light_skin_tone_medium_light_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone1_tone3:":{uc_base:"1f469-1f3fb-2764-1f468-1f3fd",uc_full:"1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fd",shortnames:[":couple_with_heart_woman_man_light_skin_tone_medium_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone1_tone4:":{uc_base:"1f469-1f3fb-2764-1f468-1f3fe",uc_full:"1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fe",shortnames:[":couple_with_heart_woman_man_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone1_tone5:":{uc_base:"1f469-1f3fb-2764-1f468-1f3ff",uc_full:"1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3ff",shortnames:[":couple_with_heart_woman_man_light_skin_tone_dark_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone2:":{uc_base:"1f469-1f3fc-2764-1f468-1f3fc",uc_full:"1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fc",shortnames:[":couple_with_heart_woman_man_medium_light_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone2_tone1:":{uc_base:"1f469-1f3fc-2764-1f468-1f3fb",uc_full:"1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fb",shortnames:[":couple_with_heart_woman_man_medium_light_skin_tone_light_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone2_tone3:":{uc_base:"1f469-1f3fc-2764-1f468-1f3fd",uc_full:"1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fd",shortnames:[":couple_with_heart_woman_man_medium_light_skin_tone_medium_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone2_tone4:":{uc_base:"1f469-1f3fc-2764-1f468-1f3fe",uc_full:"1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fe",shortnames:[":couple_with_heart_woman_man_medium_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone2_tone5:":{uc_base:"1f469-1f3fc-2764-1f468-1f3ff",uc_full:"1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3ff",shortnames:[":couple_with_heart_woman_man_medium_light_skin_tone_dark_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone3:":{uc_base:"1f469-1f3fd-2764-1f468-1f3fd",uc_full:"1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fd",shortnames:[":couple_with_heart_woman_man_medium_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone3_tone1:":{uc_base:"1f469-1f3fd-2764-1f468-1f3fb",uc_full:"1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fb",shortnames:[":couple_with_heart_woman_man_medium_skin_tone_light_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone3_tone2:":{uc_base:"1f469-1f3fd-2764-1f468-1f3fc",uc_full:"1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fc",shortnames:[":couple_with_heart_woman_man_medium_skin_tone_medium_light_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone3_tone4:":{uc_base:"1f469-1f3fd-2764-1f468-1f3fe",uc_full:"1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fe",shortnames:[":couple_with_heart_woman_man_medium_skin_tone_medium_dark_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone3_tone5:":{uc_base:"1f469-1f3fd-2764-1f468-1f3ff",uc_full:"1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3ff",shortnames:[":couple_with_heart_woman_man_medium_skin_tone_dark_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone4:":{uc_base:"1f469-1f3fe-2764-1f468-1f3fe",uc_full:"1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fe",shortnames:[":couple_with_heart_woman_man_medium_dark_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone4_tone1:":{uc_base:"1f469-1f3fe-2764-1f468-1f3fb",uc_full:"1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fb",shortnames:[":couple_with_heart_woman_man_medium_dark_skin_tone_light_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone4_tone2:":{uc_base:"1f469-1f3fe-2764-1f468-1f3fc",uc_full:"1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fc",shortnames:[":couple_with_heart_woman_man_medium_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone4_tone3:":{uc_base:"1f469-1f3fe-2764-1f468-1f3fd",uc_full:"1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fd",shortnames:[":couple_with_heart_woman_man_medium_dark_skin_tone_medium_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone4_tone5:":{uc_base:"1f469-1f3fe-2764-1f468-1f3ff",uc_full:"1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3ff",shortnames:[":couple_with_heart_woman_man_medium_dark_skin_tone_dark_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone5:":{uc_base:"1f469-1f3ff-2764-1f468-1f3ff",uc_full:"1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3ff",shortnames:[":couple_with_heart_woman_man_dark_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone5_tone1:":{uc_base:"1f469-1f3ff-2764-1f468-1f3fb",uc_full:"1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fb",shortnames:[":couple_with_heart_woman_man_dark_skin_tone_light_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone5_tone2:":{uc_base:"1f469-1f3ff-2764-1f468-1f3fc",uc_full:"1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fc",shortnames:[":couple_with_heart_woman_man_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone5_tone3:":{uc_base:"1f469-1f3ff-2764-1f468-1f3fd",uc_full:"1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fd",shortnames:[":couple_with_heart_woman_man_dark_skin_tone_medium_skin_tone:"],category:"people"},":couple_with_heart_woman_man_tone5_tone4:":{uc_base:"1f469-1f3ff-2764-1f468-1f3fe",uc_full:"1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fe",shortnames:[":couple_with_heart_woman_man_dark_skin_tone_medium_dark_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone1:":{uc_base:"1f469-1f3fb-2764-1f469-1f3fb",uc_full:"1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fb",shortnames:[":couple_with_heart_woman_woman_light_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone1_tone2:":{uc_base:"1f469-1f3fb-2764-1f469-1f3fc",uc_full:"1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fc",shortnames:[":couple_with_heart_woman_woman_light_skin_tone_medium_light_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone1_tone3:":{uc_base:"1f469-1f3fb-2764-1f469-1f3fd",uc_full:"1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fd",shortnames:[":couple_with_heart_woman_woman_light_skin_tone_medium_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone1_tone4:":{uc_base:"1f469-1f3fb-2764-1f469-1f3fe",uc_full:"1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fe",shortnames:[":couple_with_heart_woman_woman_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone1_tone5:":{uc_base:"1f469-1f3fb-2764-1f469-1f3ff",uc_full:"1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3ff",shortnames:[":couple_with_heart_woman_woman_light_skin_tone_dark_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone2:":{uc_base:"1f469-1f3fc-2764-1f469-1f3fc",uc_full:"1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fc",shortnames:[":couple_with_heart_woman_woman_medium_light_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone2_tone1:":{uc_base:"1f469-1f3fc-2764-1f469-1f3fb",uc_full:"1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fb",shortnames:[":couple_with_heart_woman_woman_medium_light_skin_tone_light_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone2_tone3:":{uc_base:"1f469-1f3fc-2764-1f469-1f3fd",uc_full:"1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fd",shortnames:[":couple_with_heart_woman_woman_medium_light_skin_tone_medium_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone2_tone4:":{uc_base:"1f469-1f3fc-2764-1f469-1f3fe",uc_full:"1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fe",shortnames:[":couple_with_heart_woman_woman_medium_light_skin_tone_medium_dark_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone2_tone5:":{uc_base:"1f469-1f3fc-2764-1f469-1f3ff",uc_full:"1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3ff",shortnames:[":couple_with_heart_woman_woman_medium_light_skin_tone_dark_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone3:":{uc_base:"1f469-1f3fd-2764-1f469-1f3fd",uc_full:"1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fd",shortnames:[":couple_with_heart_woman_woman_medium_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone3_tone1:":{uc_base:"1f469-1f3fd-2764-1f469-1f3fb",uc_full:"1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fb",shortnames:[":couple_with_heart_woman_woman_medium_skin_tone_light_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone3_tone2:":{uc_base:"1f469-1f3fd-2764-1f469-1f3fc",uc_full:"1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fc",shortnames:[":couple_with_heart_woman_woman_medium_skin_tone_medium_light_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone3_tone4:":{uc_base:"1f469-1f3fd-2764-1f469-1f3fe",uc_full:"1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fe",shortnames:[":couple_with_heart_woman_woman_medium_skin_tone_medium_dark_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone3_tone5:":{uc_base:"1f469-1f3fd-2764-1f469-1f3ff",uc_full:"1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3ff",shortnames:[":couple_with_heart_woman_woman_medium_skin_tone_dark_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone4:":{uc_base:"1f469-1f3fe-2764-1f469-1f3fe",uc_full:"1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fe",shortnames:[":couple_with_heart_woman_woman_medium_dark_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone4_tone1:":{uc_base:"1f469-1f3fe-2764-1f469-1f3fb",uc_full:"1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fb",shortnames:[":couple_with_heart_woman_woman_medium_dark_skin_tone_light_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone4_tone2:":{uc_base:"1f469-1f3fe-2764-1f469-1f3fc",uc_full:"1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fc",shortnames:[":couple_with_heart_woman_woman_medium_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone4_tone3:":{uc_base:"1f469-1f3fe-2764-1f469-1f3fd",uc_full:"1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fd",shortnames:[":couple_with_heart_woman_woman_medium_dark_skin_tone_medium_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone4_tone5:":{uc_base:"1f469-1f3fe-2764-1f469-1f3ff",uc_full:"1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3ff",shortnames:[":couple_with_heart_woman_woman_medium_dark_skin_tone_dark_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone5:":{uc_base:"1f469-1f3ff-2764-1f469-1f3ff",uc_full:"1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3ff",shortnames:[":couple_with_heart_woman_woman_dark_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone5_tone1:":{uc_base:"1f469-1f3ff-2764-1f469-1f3fb",uc_full:"1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fb",shortnames:[":couple_with_heart_woman_woman_dark_skin_tone_light_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone5_tone2:":{uc_base:"1f469-1f3ff-2764-1f469-1f3fc",uc_full:"1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fc",shortnames:[":couple_with_heart_woman_woman_dark_skin_tone_medium_light_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone5_tone3:":{uc_base:"1f469-1f3ff-2764-1f469-1f3fd",uc_full:"1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fd",shortnames:[":couple_with_heart_woman_woman_dark_skin_tone_medium_skin_tone:"],category:"people"},":couple_with_heart_woman_woman_tone5_tone4:":{uc_base:"1f469-1f3ff-2764-1f469-1f3fe",uc_full:"1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fe",shortnames:[":couple_with_heart_woman_woman_dark_skin_tone_medium_dark_skin_tone:"],category:"people"},":family_mmbb:":{uc_base:"1f468-1f468-1f466-1f466",uc_full:"1f468-200d-1f468-200d-1f466-200d-1f466",shortnames:[],category:"people"},":family_mmgb:":{uc_base:"1f468-1f468-1f467-1f466",uc_full:"1f468-200d-1f468-200d-1f467-200d-1f466",shortnames:[],category:"people"},":family_mmgg:":{uc_base:"1f468-1f468-1f467-1f467",uc_full:"1f468-200d-1f468-200d-1f467-200d-1f467",shortnames:[],category:"people"},":family_mwbb:":{uc_base:"1f468-1f469-1f466-1f466",uc_full:"1f468-200d-1f469-200d-1f466-200d-1f466",shortnames:[],category:"people"},":family_mwgb:":{uc_base:"1f468-1f469-1f467-1f466",uc_full:"1f468-200d-1f469-200d-1f467-200d-1f466",shortnames:[],category:"people"},":family_mwgg:":{uc_base:"1f468-1f469-1f467-1f467",uc_full:"1f468-200d-1f469-200d-1f467-200d-1f467",shortnames:[],category:"people"},":family_wwbb:":{uc_base:"1f469-1f469-1f466-1f466",uc_full:"1f469-200d-1f469-200d-1f466-200d-1f466",shortnames:[],category:"people"},":family_wwgb:":{uc_base:"1f469-1f469-1f467-1f466",uc_full:"1f469-200d-1f469-200d-1f467-200d-1f466",shortnames:[],category:"people"},":family_wwgg:":{uc_base:"1f469-1f469-1f467-1f467",uc_full:"1f469-200d-1f469-200d-1f467-200d-1f467",shortnames:[],category:"people"},":kiss_mm:":{uc_base:"1f468-2764-1f48b-1f468",uc_full:"1f468-200d-2764-fe0f-200d-1f48b-200d-1f468",shortnames:[":couplekiss_mm:"],category:"people"},":kiss_woman_man:":{uc_base:"1f469-2764-1f48b-1f468",uc_full:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f468",shortnames:[],category:"people"},":kiss_ww:":{uc_base:"1f469-2764-1f48b-1f469",uc_full:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f469",shortnames:[":couplekiss_ww:"],category:"people"},":artist_tone1:":{uc_base:"1f9d1-1f3fb-1f3a8",uc_full:"1f9d1-1f3fb-200d-1f3a8",shortnames:[":artist_light_skin_tone:"],category:"people"},":artist_tone2:":{uc_base:"1f9d1-1f3fc-1f3a8",uc_full:"1f9d1-1f3fc-200d-1f3a8",shortnames:[":artist_medium_light_skin_tone:"],category:"people"},":artist_tone3:":{uc_base:"1f9d1-1f3fd-1f3a8",uc_full:"1f9d1-1f3fd-200d-1f3a8",shortnames:[":artist_medium_skin_tone:"],category:"people"},":artist_tone4:":{uc_base:"1f9d1-1f3fe-1f3a8",uc_full:"1f9d1-1f3fe-200d-1f3a8",shortnames:[":artist_medium_dark_skin_tone:"],category:"people"},":artist_tone5:":{uc_base:"1f9d1-1f3ff-1f3a8",uc_full:"1f9d1-1f3ff-200d-1f3a8",shortnames:[":artist_dark_skin_tone:"],category:"people"},":astronaut_tone1:":{uc_base:"1f9d1-1f3fb-1f680",uc_full:"1f9d1-1f3fb-200d-1f680",shortnames:[":astronaut_light_skin_tone:"],category:"people"},":astronaut_tone2:":{uc_base:"1f9d1-1f3fc-1f680",uc_full:"1f9d1-1f3fc-200d-1f680",shortnames:[":astronaut_medium_light_skin_tone:"],category:"people"},":astronaut_tone3:":{uc_base:"1f9d1-1f3fd-1f680",uc_full:"1f9d1-1f3fd-200d-1f680",shortnames:[":astronaut_medium_skin_tone:"],category:"people"},":astronaut_tone4:":{uc_base:"1f9d1-1f3fe-1f680",uc_full:"1f9d1-1f3fe-200d-1f680",shortnames:[":astronaut_medium_dark_skin_tone:"],category:"people"},":astronaut_tone5:":{uc_base:"1f9d1-1f3ff-1f680",uc_full:"1f9d1-1f3ff-200d-1f680",shortnames:[":astronaut_dark_skin_tone:"],category:"people"},":cook_tone1:":{uc_base:"1f9d1-1f3fb-1f373",uc_full:"1f9d1-1f3fb-200d-1f373",shortnames:[":cook_light_skin_tone:"],category:"people"},":cook_tone2:":{uc_base:"1f9d1-1f3fc-1f373",uc_full:"1f9d1-1f3fc-200d-1f373",shortnames:[":cook_medium_light_skin_tone:"],category:"people"},":cook_tone3:":{uc_base:"1f9d1-1f3fd-1f373",uc_full:"1f9d1-1f3fd-200d-1f373",shortnames:[":cook_medium_skin_tone:"],category:"people"},":cook_tone4:":{uc_base:"1f9d1-1f3fe-1f373",uc_full:"1f9d1-1f3fe-200d-1f373",shortnames:[":cook_medium_dark_skin_tone:"],category:"people"},":cook_tone5:":{uc_base:"1f9d1-1f3ff-1f373",uc_full:"1f9d1-1f3ff-200d-1f373",shortnames:[":cook_dark_skin_tone:"],category:"people"},":factory_worker_tone1:":{uc_base:"1f9d1-1f3fb-1f3ed",uc_full:"1f9d1-1f3fb-200d-1f3ed",shortnames:[":factory_worker_light_skin_tone:"],category:"people"},":factory_worker_tone2:":{uc_base:"1f9d1-1f3fc-1f3ed",uc_full:"1f9d1-1f3fc-200d-1f3ed",shortnames:[":factory_worker_medium_light_skin_tone:"],category:"people"},":factory_worker_tone3:":{uc_base:"1f9d1-1f3fd-1f3ed",uc_full:"1f9d1-1f3fd-200d-1f3ed",shortnames:[":factory_worker_medium_skin_tone:"],category:"people"},":factory_worker_tone4:":{uc_base:"1f9d1-1f3fe-1f3ed",uc_full:"1f9d1-1f3fe-200d-1f3ed",shortnames:[":factory_worker_medium_dark_skin_tone:"],category:"people"},":factory_worker_tone5:":{uc_base:"1f9d1-1f3ff-1f3ed",uc_full:"1f9d1-1f3ff-200d-1f3ed",shortnames:[":factory_worker_dark_skin_tone:"],category:"people"},":family_man_boy_boy:":{uc_base:"1f468-1f466-1f466",uc_full:"1f468-200d-1f466-200d-1f466",shortnames:[],category:"people"},":family_man_girl_boy:":{uc_base:"1f468-1f467-1f466",uc_full:"1f468-200d-1f467-200d-1f466",shortnames:[],category:"people"},":family_man_girl_girl:":{uc_base:"1f468-1f467-1f467",uc_full:"1f468-200d-1f467-200d-1f467",shortnames:[],category:"people"},":family_man_woman_boy:":{uc_base:"1f468-1f469-1f466",uc_full:"1f468-200d-1f469-200d-1f466",shortnames:[],category:"people"},":family_mmb:":{uc_base:"1f468-1f468-1f466",uc_full:"1f468-200d-1f468-200d-1f466",shortnames:[],category:"people"},":family_mmg:":{uc_base:"1f468-1f468-1f467",uc_full:"1f468-200d-1f468-200d-1f467",shortnames:[],category:"people"},":family_mwg:":{uc_base:"1f468-1f469-1f467",uc_full:"1f468-200d-1f469-200d-1f467",shortnames:[],category:"people"},":family_woman_boy_boy:":{uc_base:"1f469-1f466-1f466",uc_full:"1f469-200d-1f466-200d-1f466",shortnames:[],category:"people"},":family_woman_girl_boy:":{uc_base:"1f469-1f467-1f466",uc_full:"1f469-200d-1f467-200d-1f466",shortnames:[],category:"people"},":family_woman_girl_girl:":{uc_base:"1f469-1f467-1f467",uc_full:"1f469-200d-1f467-200d-1f467",shortnames:[],category:"people"},":family_wwb:":{uc_base:"1f469-1f469-1f466",uc_full:"1f469-200d-1f469-200d-1f466",shortnames:[],category:"people"},":family_wwg:":{uc_base:"1f469-1f469-1f467",uc_full:"1f469-200d-1f469-200d-1f467",shortnames:[],category:"people"},":farmer_tone1:":{uc_base:"1f9d1-1f3fb-1f33e",uc_full:"1f9d1-1f3fb-200d-1f33e",shortnames:[":farmer_light_skin_tone:"],category:"people"},":farmer_tone2:":{uc_base:"1f9d1-1f3fc-1f33e",uc_full:"1f9d1-1f3fc-200d-1f33e",shortnames:[":farmer_medium_light_skin_tone:"],category:"people"},":farmer_tone3:":{uc_base:"1f9d1-1f3fd-1f33e",uc_full:"1f9d1-1f3fd-200d-1f33e",shortnames:[":farmer_medium_skin_tone:"],category:"people"},":farmer_tone4:":{uc_base:"1f9d1-1f3fe-1f33e",uc_full:"1f9d1-1f3fe-200d-1f33e",shortnames:[":farmer_medium_dark_skin_tone:"],category:"people"},":farmer_tone5:":{uc_base:"1f9d1-1f3ff-1f33e",uc_full:"1f9d1-1f3ff-200d-1f33e",shortnames:[":farmer_dark_skin_tone:"],category:"people"},":firefighter_tone1:":{uc_base:"1f9d1-1f3fb-1f692",uc_full:"1f9d1-1f3fb-200d-1f692",shortnames:[":firefighter_light_skin_tone:"],category:"people"},":firefighter_tone2:":{uc_base:"1f9d1-1f3fc-1f692",uc_full:"1f9d1-1f3fc-200d-1f692",shortnames:[":firefighter_medium_light_skin_tone:"],category:"people"},":firefighter_tone3:":{uc_base:"1f9d1-1f3fd-1f692",uc_full:"1f9d1-1f3fd-200d-1f692",shortnames:[":firefighter_medium_skin_tone:"],category:"people"},":firefighter_tone4:":{uc_base:"1f9d1-1f3fe-1f692",uc_full:"1f9d1-1f3fe-200d-1f692",shortnames:[":firefighter_medium_dark_skin_tone:"],category:"people"},":firefighter_tone5:":{uc_base:"1f9d1-1f3ff-1f692",uc_full:"1f9d1-1f3ff-200d-1f692",shortnames:[":firefighter_dark_skin_tone:"],category:"people"},":man_artist_tone1:":{uc_base:"1f468-1f3fb-1f3a8",uc_full:"1f468-1f3fb-200d-1f3a8",shortnames:[":man_artist_light_skin_tone:"],category:"people"},":man_artist_tone2:":{uc_base:"1f468-1f3fc-1f3a8",uc_full:"1f468-1f3fc-200d-1f3a8",shortnames:[":man_artist_medium_light_skin_tone:"],category:"people"},":man_artist_tone3:":{uc_base:"1f468-1f3fd-1f3a8",uc_full:"1f468-1f3fd-200d-1f3a8",shortnames:[":man_artist_medium_skin_tone:"],category:"people"},":man_artist_tone4:":{uc_base:"1f468-1f3fe-1f3a8",uc_full:"1f468-1f3fe-200d-1f3a8",shortnames:[":man_artist_medium_dark_skin_tone:"],category:"people"},":man_artist_tone5:":{uc_base:"1f468-1f3ff-1f3a8",uc_full:"1f468-1f3ff-200d-1f3a8",shortnames:[":man_artist_dark_skin_tone:"],category:"people"},":man_astronaut_tone1:":{uc_base:"1f468-1f3fb-1f680",uc_full:"1f468-1f3fb-200d-1f680",shortnames:[":man_astronaut_light_skin_tone:"],category:"people"},":man_astronaut_tone2:":{uc_base:"1f468-1f3fc-1f680",uc_full:"1f468-1f3fc-200d-1f680",shortnames:[":man_astronaut_medium_light_skin_tone:"],category:"people"},":man_astronaut_tone3:":{uc_base:"1f468-1f3fd-1f680",uc_full:"1f468-1f3fd-200d-1f680",shortnames:[":man_astronaut_medium_skin_tone:"],category:"people"},":man_astronaut_tone4:":{uc_base:"1f468-1f3fe-1f680",uc_full:"1f468-1f3fe-200d-1f680",shortnames:[":man_astronaut_medium_dark_skin_tone:"],category:"people"},":man_astronaut_tone5:":{uc_base:"1f468-1f3ff-1f680",uc_full:"1f468-1f3ff-200d-1f680",shortnames:[":man_astronaut_dark_skin_tone:"],category:"people"},":man_bald_tone1:":{uc_base:"1f468-1f3fb-1f9b2",uc_full:"1f468-1f3fb-200d-1f9b2",shortnames:[":man_bald_light_skin_tone:"],category:"people"},":man_bald_tone2:":{uc_base:"1f468-1f3fc-1f9b2",uc_full:"1f468-1f3fc-200d-1f9b2",shortnames:[":man_bald_medium_light_skin_tone:"],category:"people"},":man_bald_tone3:":{uc_base:"1f468-1f3fd-1f9b2",uc_full:"1f468-1f3fd-200d-1f9b2",shortnames:[":man_bald_medium_skin_tone:"],category:"people"},":man_bald_tone4:":{uc_base:"1f468-1f3fe-1f9b2",uc_full:"1f468-1f3fe-200d-1f9b2",shortnames:[":man_bald_medium_dark_skin_tone:"],category:"people"},":man_bald_tone5:":{uc_base:"1f468-1f3ff-1f9b2",uc_full:"1f468-1f3ff-200d-1f9b2",shortnames:[":man_bald_dark_skin_tone:"],category:"people"},":man_cook_tone1:":{uc_base:"1f468-1f3fb-1f373",uc_full:"1f468-1f3fb-200d-1f373",shortnames:[":man_cook_light_skin_tone:"],category:"people"},":man_cook_tone2:":{uc_base:"1f468-1f3fc-1f373",uc_full:"1f468-1f3fc-200d-1f373",shortnames:[":man_cook_medium_light_skin_tone:"],category:"people"},":man_cook_tone3:":{uc_base:"1f468-1f3fd-1f373",uc_full:"1f468-1f3fd-200d-1f373",shortnames:[":man_cook_medium_skin_tone:"],category:"people"},":man_cook_tone4:":{uc_base:"1f468-1f3fe-1f373",uc_full:"1f468-1f3fe-200d-1f373",shortnames:[":man_cook_medium_dark_skin_tone:"],category:"people"},":man_cook_tone5:":{uc_base:"1f468-1f3ff-1f373",uc_full:"1f468-1f3ff-200d-1f373",shortnames:[":man_cook_dark_skin_tone:"],category:"people"},":man_curly_haired_tone1:":{uc_base:"1f468-1f3fb-1f9b1",uc_full:"1f468-1f3fb-200d-1f9b1",shortnames:[":man_curly_haired_light_skin_tone:"],category:"people"},":man_curly_haired_tone2:":{uc_base:"1f468-1f3fc-1f9b1",uc_full:"1f468-1f3fc-200d-1f9b1",shortnames:[":man_curly_haired_medium_light_skin_tone:"],category:"people"},":man_curly_haired_tone3:":{uc_base:"1f468-1f3fd-1f9b1",uc_full:"1f468-1f3fd-200d-1f9b1",shortnames:[":man_curly_haired_medium_skin_tone:"],category:"people"},":man_curly_haired_tone4:":{uc_base:"1f468-1f3fe-1f9b1",uc_full:"1f468-1f3fe-200d-1f9b1",shortnames:[":man_curly_haired_medium_dark_skin_tone:"],category:"people"},":man_curly_haired_tone5:":{uc_base:"1f468-1f3ff-1f9b1",uc_full:"1f468-1f3ff-200d-1f9b1",shortnames:[":man_curly_haired_dark_skin_tone:"],category:"people"},":man_factory_worker_tone1:":{uc_base:"1f468-1f3fb-1f3ed",uc_full:"1f468-1f3fb-200d-1f3ed",shortnames:[":man_factory_worker_light_skin_tone:"],category:"people"},":man_factory_worker_tone2:":{uc_base:"1f468-1f3fc-1f3ed",uc_full:"1f468-1f3fc-200d-1f3ed",shortnames:[":man_factory_worker_medium_light_skin_tone:"],category:"people"},":man_factory_worker_tone3:":{uc_base:"1f468-1f3fd-1f3ed",uc_full:"1f468-1f3fd-200d-1f3ed",shortnames:[":man_factory_worker_medium_skin_tone:"],category:"people"},":man_factory_worker_tone4:":{uc_base:"1f468-1f3fe-1f3ed",uc_full:"1f468-1f3fe-200d-1f3ed",shortnames:[":man_factory_worker_medium_dark_skin_tone:"],category:"people"},":man_factory_worker_tone5:":{uc_base:"1f468-1f3ff-1f3ed",uc_full:"1f468-1f3ff-200d-1f3ed",shortnames:[":man_factory_worker_dark_skin_tone:"],category:"people"},":man_farmer_tone1:":{uc_base:"1f468-1f3fb-1f33e",uc_full:"1f468-1f3fb-200d-1f33e",shortnames:[":man_farmer_light_skin_tone:"],category:"people"},":man_farmer_tone2:":{uc_base:"1f468-1f3fc-1f33e",uc_full:"1f468-1f3fc-200d-1f33e",shortnames:[":man_farmer_medium_light_skin_tone:"],category:"people"},":man_farmer_tone3:":{uc_base:"1f468-1f3fd-1f33e",uc_full:"1f468-1f3fd-200d-1f33e",shortnames:[":man_farmer_medium_skin_tone:"],category:"people"},":man_farmer_tone4:":{uc_base:"1f468-1f3fe-1f33e",uc_full:"1f468-1f3fe-200d-1f33e",shortnames:[":man_farmer_medium_dark_skin_tone:"],category:"people"},":man_farmer_tone5:":{uc_base:"1f468-1f3ff-1f33e",uc_full:"1f468-1f3ff-200d-1f33e",shortnames:[":man_farmer_dark_skin_tone:"],category:"people"},":man_feeding_baby_tone1:":{uc_base:"1f468-1f3fb-1f37c",uc_full:"1f468-1f3fb-200d-1f37c",shortnames:[":man_feeding_baby_light_skin_tone:"],category:"people"},":man_feeding_baby_tone2:":{uc_base:"1f468-1f3fc-1f37c",uc_full:"1f468-1f3fc-200d-1f37c",shortnames:[":man_feeding_baby_medium_light_skin_tone:"],category:"people"},":man_feeding_baby_tone3:":{uc_base:"1f468-1f3fd-1f37c",uc_full:"1f468-1f3fd-200d-1f37c",shortnames:[":man_feeding_baby_medium_skin_tone:"],category:"people"},":man_feeding_baby_tone4:":{uc_base:"1f468-1f3fe-1f37c",uc_full:"1f468-1f3fe-200d-1f37c",shortnames:[":man_feeding_baby_medium_dark_skin_tone:"],category:"people"},":man_feeding_baby_tone5:":{uc_base:"1f468-1f3ff-1f37c",uc_full:"1f468-1f3ff-200d-1f37c",shortnames:[":man_feeding_baby_dark_skin_tone:"],category:"people"},":man_firefighter_tone1:":{uc_base:"1f468-1f3fb-1f692",uc_full:"1f468-1f3fb-200d-1f692",shortnames:[":man_firefighter_light_skin_tone:"],category:"people"},":man_firefighter_tone2:":{uc_base:"1f468-1f3fc-1f692",uc_full:"1f468-1f3fc-200d-1f692",shortnames:[":man_firefighter_medium_light_skin_tone:"],category:"people"},":man_firefighter_tone3:":{uc_base:"1f468-1f3fd-1f692",uc_full:"1f468-1f3fd-200d-1f692",shortnames:[":man_firefighter_medium_skin_tone:"],category:"people"},":man_firefighter_tone4:":{uc_base:"1f468-1f3fe-1f692",uc_full:"1f468-1f3fe-200d-1f692",shortnames:[":man_firefighter_medium_dark_skin_tone:"],category:"people"},":man_firefighter_tone5:":{uc_base:"1f468-1f3ff-1f692",uc_full:"1f468-1f3ff-200d-1f692",shortnames:[":man_firefighter_dark_skin_tone:"],category:"people"},":man_in_manual_wheelchair_tone1:":{uc_base:"1f468-1f3fb-1f9bd",uc_full:"1f468-1f3fb-200d-1f9bd",shortnames:[":man_in_manual_wheelchair_light_skin_tone:"],category:"people"},":man_in_manual_wheelchair_tone2:":{uc_base:"1f468-1f3fc-1f9bd",uc_full:"1f468-1f3fc-200d-1f9bd",shortnames:[":man_in_manual_wheelchair_medium_light_skin_tone:"],category:"people"},":man_in_manual_wheelchair_tone3:":{uc_base:"1f468-1f3fd-1f9bd",uc_full:"1f468-1f3fd-200d-1f9bd",shortnames:[":man_in_manual_wheelchair_medium_skin_tone:"],category:"people"},":man_in_manual_wheelchair_tone4:":{uc_base:"1f468-1f3fe-1f9bd",uc_full:"1f468-1f3fe-200d-1f9bd",shortnames:[":man_in_manual_wheelchair_medium_dark_skin_tone:"],category:"people"},":man_in_manual_wheelchair_tone5:":{uc_base:"1f468-1f3ff-1f9bd",uc_full:"1f468-1f3ff-200d-1f9bd",shortnames:[":man_in_manual_wheelchair_dark_skin_tone:"],category:"people"},":man_in_motorized_wheelchair_tone1:":{uc_base:"1f468-1f3fb-1f9bc",uc_full:"1f468-1f3fb-200d-1f9bc",shortnames:[":man_in_motorized_wheelchair_light_skin_tone:"],category:"people"},":man_in_motorized_wheelchair_tone2:":{uc_base:"1f468-1f3fc-1f9bc",uc_full:"1f468-1f3fc-200d-1f9bc",shortnames:[":man_in_motorized_wheelchair_medium_light_skin_tone:"],category:"people"},":man_in_motorized_wheelchair_tone3:":{uc_base:"1f468-1f3fd-1f9bc",uc_full:"1f468-1f3fd-200d-1f9bc",shortnames:[":man_in_motorized_wheelchair_medium_skin_tone:"],category:"people"},":man_in_motorized_wheelchair_tone4:":{uc_base:"1f468-1f3fe-1f9bc",uc_full:"1f468-1f3fe-200d-1f9bc",shortnames:[":man_in_motorized_wheelchair_medium_dark_skin_tone:"],category:"people"},":man_in_motorized_wheelchair_tone5:":{uc_base:"1f468-1f3ff-1f9bc",uc_full:"1f468-1f3ff-200d-1f9bc",shortnames:[":man_in_motorized_wheelchair_dark_skin_tone:"],category:"people"},":man_mechanic_tone1:":{uc_base:"1f468-1f3fb-1f527",uc_full:"1f468-1f3fb-200d-1f527",shortnames:[":man_mechanic_light_skin_tone:"],category:"people"},":man_mechanic_tone2:":{uc_base:"1f468-1f3fc-1f527",uc_full:"1f468-1f3fc-200d-1f527",shortnames:[":man_mechanic_medium_light_skin_tone:"],category:"people"},":man_mechanic_tone3:":{uc_base:"1f468-1f3fd-1f527",uc_full:"1f468-1f3fd-200d-1f527",shortnames:[":man_mechanic_medium_skin_tone:"],category:"people"},":man_mechanic_tone4:":{uc_base:"1f468-1f3fe-1f527",uc_full:"1f468-1f3fe-200d-1f527",shortnames:[":man_mechanic_medium_dark_skin_tone:"],category:"people"},":man_mechanic_tone5:":{uc_base:"1f468-1f3ff-1f527",uc_full:"1f468-1f3ff-200d-1f527",shortnames:[":man_mechanic_dark_skin_tone:"],category:"people"},":man_office_worker_tone1:":{uc_base:"1f468-1f3fb-1f4bc",uc_full:"1f468-1f3fb-200d-1f4bc",shortnames:[":man_office_worker_light_skin_tone:"],category:"people"},":man_office_worker_tone2:":{uc_base:"1f468-1f3fc-1f4bc",uc_full:"1f468-1f3fc-200d-1f4bc",shortnames:[":man_office_worker_medium_light_skin_tone:"],category:"people"},":man_office_worker_tone3:":{uc_base:"1f468-1f3fd-1f4bc",uc_full:"1f468-1f3fd-200d-1f4bc",shortnames:[":man_office_worker_medium_skin_tone:"],category:"people"},":man_office_worker_tone4:":{uc_base:"1f468-1f3fe-1f4bc",uc_full:"1f468-1f3fe-200d-1f4bc",shortnames:[":man_office_worker_medium_dark_skin_tone:"],category:"people"},":man_office_worker_tone5:":{uc_base:"1f468-1f3ff-1f4bc",uc_full:"1f468-1f3ff-200d-1f4bc",shortnames:[":man_office_worker_dark_skin_tone:"],category:"people"},":man_red_haired_tone1:":{uc_base:"1f468-1f3fb-1f9b0",uc_full:"1f468-1f3fb-200d-1f9b0",shortnames:[":man_red_haired_light_skin_tone:"],category:"people"},":man_red_haired_tone2:":{uc_base:"1f468-1f3fc-1f9b0",uc_full:"1f468-1f3fc-200d-1f9b0",shortnames:[":man_red_haired_medium_light_skin_tone:"],category:"people"},":man_red_haired_tone3:":{uc_base:"1f468-1f3fd-1f9b0",uc_full:"1f468-1f3fd-200d-1f9b0",shortnames:[":man_red_haired_medium_skin_tone:"],category:"people"},":man_red_haired_tone4:":{uc_base:"1f468-1f3fe-1f9b0",uc_full:"1f468-1f3fe-200d-1f9b0",shortnames:[":man_red_haired_medium_dark_skin_tone:"],category:"people"},":man_red_haired_tone5:":{uc_base:"1f468-1f3ff-1f9b0",uc_full:"1f468-1f3ff-200d-1f9b0",shortnames:[":man_red_haired_dark_skin_tone:"],category:"people"},":man_scientist_tone1:":{uc_base:"1f468-1f3fb-1f52c",uc_full:"1f468-1f3fb-200d-1f52c",shortnames:[":man_scientist_light_skin_tone:"],category:"people"},":man_scientist_tone2:":{uc_base:"1f468-1f3fc-1f52c",uc_full:"1f468-1f3fc-200d-1f52c",shortnames:[":man_scientist_medium_light_skin_tone:"],category:"people"},":man_scientist_tone3:":{uc_base:"1f468-1f3fd-1f52c",uc_full:"1f468-1f3fd-200d-1f52c",shortnames:[":man_scientist_medium_skin_tone:"],category:"people"},":man_scientist_tone4:":{uc_base:"1f468-1f3fe-1f52c",uc_full:"1f468-1f3fe-200d-1f52c",shortnames:[":man_scientist_medium_dark_skin_tone:"],category:"people"},":man_scientist_tone5:":{uc_base:"1f468-1f3ff-1f52c",uc_full:"1f468-1f3ff-200d-1f52c",shortnames:[":man_scientist_dark_skin_tone:"],category:"people"},":man_singer_tone1:":{uc_base:"1f468-1f3fb-1f3a4",uc_full:"1f468-1f3fb-200d-1f3a4",shortnames:[":man_singer_light_skin_tone:"],category:"people"},":man_singer_tone2:":{uc_base:"1f468-1f3fc-1f3a4",uc_full:"1f468-1f3fc-200d-1f3a4",shortnames:[":man_singer_medium_light_skin_tone:"],category:"people"},":man_singer_tone3:":{uc_base:"1f468-1f3fd-1f3a4",uc_full:"1f468-1f3fd-200d-1f3a4",shortnames:[":man_singer_medium_skin_tone:"],category:"people"},":man_singer_tone4:":{uc_base:"1f468-1f3fe-1f3a4",uc_full:"1f468-1f3fe-200d-1f3a4",shortnames:[":man_singer_medium_dark_skin_tone:"],category:"people"},":man_singer_tone5:":{uc_base:"1f468-1f3ff-1f3a4",uc_full:"1f468-1f3ff-200d-1f3a4",shortnames:[":man_singer_dark_skin_tone:"],category:"people"},":man_student_tone1:":{uc_base:"1f468-1f3fb-1f393",uc_full:"1f468-1f3fb-200d-1f393",shortnames:[":man_student_light_skin_tone:"],category:"people"},":man_student_tone2:":{uc_base:"1f468-1f3fc-1f393",uc_full:"1f468-1f3fc-200d-1f393",shortnames:[":man_student_medium_light_skin_tone:"],category:"people"},":man_student_tone3:":{uc_base:"1f468-1f3fd-1f393",uc_full:"1f468-1f3fd-200d-1f393",shortnames:[":man_student_medium_skin_tone:"],category:"people"},":man_student_tone4:":{uc_base:"1f468-1f3fe-1f393",uc_full:"1f468-1f3fe-200d-1f393",shortnames:[":man_student_medium_dark_skin_tone:"],category:"people"},":man_student_tone5:":{uc_base:"1f468-1f3ff-1f393",uc_full:"1f468-1f3ff-200d-1f393",shortnames:[":man_student_dark_skin_tone:"],category:"people"},":man_teacher_tone1:":{uc_base:"1f468-1f3fb-1f3eb",uc_full:"1f468-1f3fb-200d-1f3eb",shortnames:[":man_teacher_light_skin_tone:"],category:"people"},":man_teacher_tone2:":{uc_base:"1f468-1f3fc-1f3eb",uc_full:"1f468-1f3fc-200d-1f3eb",shortnames:[":man_teacher_medium_light_skin_tone:"],category:"people"},":man_teacher_tone3:":{uc_base:"1f468-1f3fd-1f3eb",uc_full:"1f468-1f3fd-200d-1f3eb",shortnames:[":man_teacher_medium_skin_tone:"],category:"people"},":man_teacher_tone4:":{uc_base:"1f468-1f3fe-1f3eb",uc_full:"1f468-1f3fe-200d-1f3eb",shortnames:[":man_teacher_medium_dark_skin_tone:"],category:"people"},":man_teacher_tone5:":{uc_base:"1f468-1f3ff-1f3eb",uc_full:"1f468-1f3ff-200d-1f3eb",shortnames:[":man_teacher_dark_skin_tone:"],category:"people"},":man_technologist_tone1:":{uc_base:"1f468-1f3fb-1f4bb",uc_full:"1f468-1f3fb-200d-1f4bb",shortnames:[":man_technologist_light_skin_tone:"],category:"people"},":man_technologist_tone2:":{uc_base:"1f468-1f3fc-1f4bb",uc_full:"1f468-1f3fc-200d-1f4bb",shortnames:[":man_technologist_medium_light_skin_tone:"],category:"people"},":man_technologist_tone3:":{uc_base:"1f468-1f3fd-1f4bb",uc_full:"1f468-1f3fd-200d-1f4bb",shortnames:[":man_technologist_medium_skin_tone:"],category:"people"},":man_technologist_tone4:":{uc_base:"1f468-1f3fe-1f4bb",uc_full:"1f468-1f3fe-200d-1f4bb",shortnames:[":man_technologist_medium_dark_skin_tone:"],category:"people"},":man_technologist_tone5:":{uc_base:"1f468-1f3ff-1f4bb",uc_full:"1f468-1f3ff-200d-1f4bb",shortnames:[":man_technologist_dark_skin_tone:"],category:"people"},":man_white_haired_tone1:":{uc_base:"1f468-1f3fb-1f9b3",uc_full:"1f468-1f3fb-200d-1f9b3",shortnames:[":man_white_haired_light_skin_tone:"],category:"people"},":man_white_haired_tone2:":{uc_base:"1f468-1f3fc-1f9b3",uc_full:"1f468-1f3fc-200d-1f9b3",shortnames:[":man_white_haired_medium_light_skin_tone:"],category:"people"},":man_white_haired_tone3:":{uc_base:"1f468-1f3fd-1f9b3",uc_full:"1f468-1f3fd-200d-1f9b3",shortnames:[":man_white_haired_medium_skin_tone:"],category:"people"},":man_white_haired_tone4:":{uc_base:"1f468-1f3fe-1f9b3",uc_full:"1f468-1f3fe-200d-1f9b3",shortnames:[":man_white_haired_medium_dark_skin_tone:"],category:"people"},":man_white_haired_tone5:":{uc_base:"1f468-1f3ff-1f9b3",uc_full:"1f468-1f3ff-200d-1f9b3",shortnames:[":man_white_haired_dark_skin_tone:"],category:"people"},":man_with_probing_cane_tone1:":{uc_base:"1f468-1f3fb-1f9af",uc_full:"1f468-1f3fb-200d-1f9af",shortnames:[":man_with_probing_cane_light_skin_tone:"],category:"people"},":man_with_probing_cane_tone2:":{uc_base:"1f468-1f3fc-1f9af",uc_full:"1f468-1f3fc-200d-1f9af",shortnames:[":man_with_probing_cane_medium_light_skin_tone:"],category:"people"},":man_with_probing_cane_tone3:":{uc_base:"1f468-1f3fd-1f9af",uc_full:"1f468-1f3fd-200d-1f9af",shortnames:[":man_with_probing_cane_medium_skin_tone:"],category:"people"},":man_with_probing_cane_tone4:":{uc_base:"1f468-1f3fe-1f9af",uc_full:"1f468-1f3fe-200d-1f9af",shortnames:[":man_with_probing_cane_medium_dark_skin_tone:"],category:"people"},":man_with_probing_cane_tone5:":{uc_base:"1f468-1f3ff-1f9af",uc_full:"1f468-1f3ff-200d-1f9af",shortnames:[":man_with_probing_cane_dark_skin_tone:"],category:"people"},":mechanic_tone1:":{uc_base:"1f9d1-1f3fb-1f527",uc_full:"1f9d1-1f3fb-200d-1f527",shortnames:[":mechanic_light_skin_tone:"],category:"people"},":mechanic_tone2:":{uc_base:"1f9d1-1f3fc-1f527",uc_full:"1f9d1-1f3fc-200d-1f527",shortnames:[":mechanic_medium_light_skin_tone:"],category:"people"},":mechanic_tone3:":{uc_base:"1f9d1-1f3fd-1f527",uc_full:"1f9d1-1f3fd-200d-1f527",shortnames:[":mechanic_medium_skin_tone:"],category:"people"},":mechanic_tone4:":{uc_base:"1f9d1-1f3fe-1f527",uc_full:"1f9d1-1f3fe-200d-1f527",shortnames:[":mechanic_medium_dark_skin_tone:"],category:"people"},":mechanic_tone5:":{uc_base:"1f9d1-1f3ff-1f527",uc_full:"1f9d1-1f3ff-200d-1f527",shortnames:[":mechanic_dark_skin_tone:"],category:"people"},":mx_claus_tone1:":{uc_base:"1f9d1-1f3fb-1f384",uc_full:"1f9d1-1f3fb-200d-1f384",shortnames:[":mx_claus_light_skin_tone:"],category:"people"},":mx_claus_tone2:":{uc_base:"1f9d1-1f3fc-1f384",uc_full:"1f9d1-1f3fc-200d-1f384",shortnames:[":mx_claus_medium_light_skin_tone:"],category:"people"},":mx_claus_tone3:":{uc_base:"1f9d1-1f3fd-1f384",uc_full:"1f9d1-1f3fd-200d-1f384",shortnames:[":mx_claus_medium_skin_tone:"],category:"people"},":mx_claus_tone4:":{uc_base:"1f9d1-1f3fe-1f384",uc_full:"1f9d1-1f3fe-200d-1f384",shortnames:[":mx_claus_medium_dark_skin_tone:"],category:"people"},":mx_claus_tone5:":{uc_base:"1f9d1-1f3ff-1f384",uc_full:"1f9d1-1f3ff-200d-1f384",shortnames:[":mx_claus_dark_skin_tone:"],category:"people"},":office_worker_tone1:":{uc_base:"1f9d1-1f3fb-1f4bc",uc_full:"1f9d1-1f3fb-200d-1f4bc",shortnames:[":office_worker_light_skin_tone:"],category:"people"},":office_worker_tone2:":{uc_base:"1f9d1-1f3fc-1f4bc",uc_full:"1f9d1-1f3fc-200d-1f4bc",shortnames:[":office_worker_medium_light_skin_tone:"],category:"people"},":office_worker_tone3:":{uc_base:"1f9d1-1f3fd-1f4bc",uc_full:"1f9d1-1f3fd-200d-1f4bc",shortnames:[":office_worker_medium_skin_tone:"],category:"people"},":office_worker_tone4:":{uc_base:"1f9d1-1f3fe-1f4bc",uc_full:"1f9d1-1f3fe-200d-1f4bc",shortnames:[":office_worker_medium_dark_skin_tone:"],category:"people"},":office_worker_tone5:":{uc_base:"1f9d1-1f3ff-1f4bc",uc_full:"1f9d1-1f3ff-200d-1f4bc",shortnames:[":office_worker_dark_skin_tone:"],category:"people"},":people_holding_hands:":{uc_base:"1f9d1-1f91d-1f9d1",uc_full:"1f9d1-200d-1f91d-200d-1f9d1",shortnames:[],category:"people"},":person_feeding_baby_tone1:":{uc_base:"1f9d1-1f3fb-1f37c",uc_full:"1f9d1-1f3fb-200d-1f37c",shortnames:[":person_feeding_baby_light_skin_tone:"],category:"people"},":person_feeding_baby_tone2:":{uc_base:"1f9d1-1f3fc-1f37c",uc_full:"1f9d1-1f3fc-200d-1f37c",shortnames:[":person_feeding_baby_medium_light_skin_tone:"],category:"people"},":person_feeding_baby_tone3:":{uc_base:"1f9d1-1f3fd-1f37c",uc_full:"1f9d1-1f3fd-200d-1f37c",shortnames:[":person_feeding_baby_medium_skin_tone:"],category:"people"},":person_feeding_baby_tone4:":{uc_base:"1f9d1-1f3fe-1f37c",uc_full:"1f9d1-1f3fe-200d-1f37c",shortnames:[":person_feeding_baby_medium_dark_skin_tone:"],category:"people"},":person_feeding_baby_tone5:":{uc_base:"1f9d1-1f3ff-1f37c",uc_full:"1f9d1-1f3ff-200d-1f37c",shortnames:[":person_feeding_baby_dark_skin_tone:"],category:"people"},":person_in_manual_wheelchair_tone1:":{uc_base:"1f9d1-1f3fb-1f9bd",uc_full:"1f9d1-1f3fb-200d-1f9bd",shortnames:[":person_in_manual_wheelchair_light_skin_tone:"],category:"people"},":person_in_manual_wheelchair_tone2:":{uc_base:"1f9d1-1f3fc-1f9bd",uc_full:"1f9d1-1f3fc-200d-1f9bd",shortnames:[":person_in_manual_wheelchair_medium_light_skin_tone:"],category:"people"},":person_in_manual_wheelchair_tone3:":{uc_base:"1f9d1-1f3fd-1f9bd",uc_full:"1f9d1-1f3fd-200d-1f9bd",shortnames:[":person_in_manual_wheelchair_medium_skin_tone:"],category:"people"},":person_in_manual_wheelchair_tone4:":{uc_base:"1f9d1-1f3fe-1f9bd",uc_full:"1f9d1-1f3fe-200d-1f9bd",shortnames:[":person_in_manual_wheelchair_medium_dark_skin_tone:"],category:"people"},":person_in_manual_wheelchair_tone5:":{uc_base:"1f9d1-1f3ff-1f9bd",uc_full:"1f9d1-1f3ff-200d-1f9bd",shortnames:[":person_in_manual_wheelchair_dark_skin_tone:"],category:"people"},":person_in_motorized_wheelchair_tone1:":{uc_base:"1f9d1-1f3fb-1f9bc",uc_full:"1f9d1-1f3fb-200d-1f9bc",shortnames:[":person_in_motorized_wheelchair_light_skin_tone:"],category:"people"},":person_in_motorized_wheelchair_tone2:":{uc_base:"1f9d1-1f3fc-1f9bc",uc_full:"1f9d1-1f3fc-200d-1f9bc",shortnames:[":person_in_motorized_wheelchair_medium_light_skin_tone:"],category:"people"},":person_in_motorized_wheelchair_tone3:":{uc_base:"1f9d1-1f3fd-1f9bc",uc_full:"1f9d1-1f3fd-200d-1f9bc",shortnames:[":person_in_motorized_wheelchair_medium_skin_tone:"],category:"people"},":person_in_motorized_wheelchair_tone4:":{uc_base:"1f9d1-1f3fe-1f9bc",uc_full:"1f9d1-1f3fe-200d-1f9bc",shortnames:[":person_in_motorized_wheelchair_medium_dark_skin_tone:"],category:"people"},":person_in_motorized_wheelchair_tone5:":{uc_base:"1f9d1-1f3ff-1f9bc",uc_full:"1f9d1-1f3ff-200d-1f9bc",shortnames:[":person_in_motorized_wheelchair_dark_skin_tone:"],category:"people"},":person_tone1_bald:":{uc_base:"1f9d1-1f3fb-1f9b2",uc_full:"1f9d1-1f3fb-200d-1f9b2",shortnames:[":person_light_skin_tone_bald:"],category:"people"},":person_tone1_curly_hair:":{uc_base:"1f9d1-1f3fb-1f9b1",uc_full:"1f9d1-1f3fb-200d-1f9b1",shortnames:[":person_light_skin_tone_curly_hair:"],category:"people"},":person_tone1_red_hair:":{uc_base:"1f9d1-1f3fb-1f9b0",uc_full:"1f9d1-1f3fb-200d-1f9b0",shortnames:[":person_light_skin_tone_red_hair:"],category:"people"},":person_tone1_white_hair:":{uc_base:"1f9d1-1f3fb-1f9b3",uc_full:"1f9d1-1f3fb-200d-1f9b3",shortnames:[":person_light_skin_tone_white_hair:"],category:"people"},":person_tone2_bald:":{uc_base:"1f9d1-1f3fc-1f9b2",uc_full:"1f9d1-1f3fc-200d-1f9b2",shortnames:[":person_medium_light_skin_tone_bald:"],category:"people"},":person_tone2_curly_hair:":{uc_base:"1f9d1-1f3fc-1f9b1",uc_full:"1f9d1-1f3fc-200d-1f9b1",shortnames:[":person_medium_light_skin_tone_curly_hair:"],category:"people"},":person_tone2_red_hair:":{uc_base:"1f9d1-1f3fc-1f9b0",uc_full:"1f9d1-1f3fc-200d-1f9b0",shortnames:[":person_medium_light_skin_tone_red_hair:"],category:"people"},":person_tone2_white_hair:":{uc_base:"1f9d1-1f3fc-1f9b3",uc_full:"1f9d1-1f3fc-200d-1f9b3",shortnames:[":person_medium_light_skin_tone_white_hair:"],category:"people"},":person_tone3_bald:":{uc_base:"1f9d1-1f3fd-1f9b2",uc_full:"1f9d1-1f3fd-200d-1f9b2",shortnames:[":person_medium_skin_tone_bald:"],category:"people"},":person_tone3_curly_hair:":{uc_base:"1f9d1-1f3fd-1f9b1",uc_full:"1f9d1-1f3fd-200d-1f9b1",shortnames:[":person_medium_skin_tone_curly_hair:"],category:"people"},":person_tone3_red_hair:":{uc_base:"1f9d1-1f3fd-1f9b0",uc_full:"1f9d1-1f3fd-200d-1f9b0",shortnames:[":person_medium_skin_tone_red_hair:"],category:"people"},":person_tone3_white_hair:":{uc_base:"1f9d1-1f3fd-1f9b3",uc_full:"1f9d1-1f3fd-200d-1f9b3",shortnames:[":person_medium_skin_tone_white_hair:"],category:"people"},":person_tone4_bald:":{uc_base:"1f9d1-1f3fe-1f9b2",uc_full:"1f9d1-1f3fe-200d-1f9b2",shortnames:[":person_medium_dark_skin_tone_bald:"],category:"people"},":person_tone4_curly_hair:":{uc_base:"1f9d1-1f3fe-1f9b1",uc_full:"1f9d1-1f3fe-200d-1f9b1",shortnames:[":person_medium_dark_skin_tone_curly_hair:"],category:"people"},":person_tone4_red_hair:":{uc_base:"1f9d1-1f3fe-1f9b0",uc_full:"1f9d1-1f3fe-200d-1f9b0",shortnames:[":person_medium_dark_skin_tone_red_hair:"],category:"people"},":person_tone4_white_hair:":{uc_base:"1f9d1-1f3fe-1f9b3",uc_full:"1f9d1-1f3fe-200d-1f9b3",shortnames:[":person_medium_dark_skin_tone_white_hair:"],category:"people"},":person_tone5_bald:":{uc_base:"1f9d1-1f3ff-1f9b2",uc_full:"1f9d1-1f3ff-200d-1f9b2",shortnames:[":person_dark_skin_tone_bald:"],category:"people"},":person_tone5_curly_hair:":{uc_base:"1f9d1-1f3ff-1f9b1",uc_full:"1f9d1-1f3ff-200d-1f9b1",shortnames:[":person_dark_skin_tone_curly_hair:"],category:"people"},":person_tone5_red_hair:":{uc_base:"1f9d1-1f3ff-1f9b0",uc_full:"1f9d1-1f3ff-200d-1f9b0",shortnames:[":person_dark_skin_tone_red_hair:"],category:"people"},":person_tone5_white_hair:":{uc_base:"1f9d1-1f3ff-1f9b3",uc_full:"1f9d1-1f3ff-200d-1f9b3",shortnames:[":person_dark_skin_tone_white_hair:"],category:"people"},":person_with_probing_cane_tone1:":{uc_base:"1f9d1-1f3fb-1f9af",uc_full:"1f9d1-1f3fb-200d-1f9af",shortnames:[":person_with_probing_cane_light_skin_tone:"],category:"people"},":person_with_probing_cane_tone2:":{uc_base:"1f9d1-1f3fc-1f9af",uc_full:"1f9d1-1f3fc-200d-1f9af",shortnames:[":person_with_probing_cane_medium_light_skin_tone:"],category:"people"},":person_with_probing_cane_tone3:":{uc_base:"1f9d1-1f3fd-1f9af",uc_full:"1f9d1-1f3fd-200d-1f9af",shortnames:[":person_with_probing_cane_medium_skin_tone:"],category:"people"},":person_with_probing_cane_tone4:":{uc_base:"1f9d1-1f3fe-1f9af",uc_full:"1f9d1-1f3fe-200d-1f9af",shortnames:[":person_with_probing_cane_medium_dark_skin_tone:"],category:"people"},":person_with_probing_cane_tone5:":{uc_base:"1f9d1-1f3ff-1f9af",uc_full:"1f9d1-1f3ff-200d-1f9af",shortnames:[":person_with_probing_cane_dark_skin_tone:"],category:"people"},":scientist_tone1:":{uc_base:"1f9d1-1f3fb-1f52c",uc_full:"1f9d1-1f3fb-200d-1f52c",shortnames:[":scientist_light_skin_tone:"],category:"people"},":scientist_tone2:":{uc_base:"1f9d1-1f3fc-1f52c",uc_full:"1f9d1-1f3fc-200d-1f52c",shortnames:[":scientist_medium_light_skin_tone:"],category:"people"},":scientist_tone3:":{uc_base:"1f9d1-1f3fd-1f52c",uc_full:"1f9d1-1f3fd-200d-1f52c",shortnames:[":scientist_medium_skin_tone:"],category:"people"},":scientist_tone4:":{uc_base:"1f9d1-1f3fe-1f52c",uc_full:"1f9d1-1f3fe-200d-1f52c",shortnames:[":scientist_medium_dark_skin_tone:"],category:"people"},":scientist_tone5:":{uc_base:"1f9d1-1f3ff-1f52c",uc_full:"1f9d1-1f3ff-200d-1f52c",shortnames:[":scientist_dark_skin_tone:"],category:"people"},":singer_tone1:":{uc_base:"1f9d1-1f3fb-1f3a4",uc_full:"1f9d1-1f3fb-200d-1f3a4",shortnames:[":singer_light_skin_tone:"],category:"people"},":singer_tone2:":{uc_base:"1f9d1-1f3fc-1f3a4",uc_full:"1f9d1-1f3fc-200d-1f3a4",shortnames:[":singer_medium_light_skin_tone:"],category:"people"},":singer_tone3:":{uc_base:"1f9d1-1f3fd-1f3a4",uc_full:"1f9d1-1f3fd-200d-1f3a4",shortnames:[":singer_medium_skin_tone:"],category:"people"},":singer_tone4:":{uc_base:"1f9d1-1f3fe-1f3a4",uc_full:"1f9d1-1f3fe-200d-1f3a4",shortnames:[":singer_medium_dark_skin_tone:"],category:"people"},":singer_tone5:":{uc_base:"1f9d1-1f3ff-1f3a4",uc_full:"1f9d1-1f3ff-200d-1f3a4",shortnames:[":singer_dark_skin_tone:"],category:"people"},":student_tone1:":{uc_base:"1f9d1-1f3fb-1f393",uc_full:"1f9d1-1f3fb-200d-1f393",shortnames:[":student_light_skin_tone:"],category:"people"},":student_tone2:":{uc_base:"1f9d1-1f3fc-1f393",uc_full:"1f9d1-1f3fc-200d-1f393",shortnames:[":student_medium_light_skin_tone:"],category:"people"},":student_tone3:":{uc_base:"1f9d1-1f3fd-1f393",uc_full:"1f9d1-1f3fd-200d-1f393",shortnames:[":student_medium_skin_tone:"],category:"people"},":student_tone4:":{uc_base:"1f9d1-1f3fe-1f393",uc_full:"1f9d1-1f3fe-200d-1f393",shortnames:[":student_medium_dark_skin_tone:"],category:"people"},":student_tone5:":{uc_base:"1f9d1-1f3ff-1f393",uc_full:"1f9d1-1f3ff-200d-1f393",shortnames:[":student_dark_skin_tone:"],category:"people"},":teacher_tone1:":{uc_base:"1f9d1-1f3fb-1f3eb",uc_full:"1f9d1-1f3fb-200d-1f3eb",shortnames:[":teacher_light_skin_tone:"],category:"people"},":teacher_tone2:":{uc_base:"1f9d1-1f3fc-1f3eb",uc_full:"1f9d1-1f3fc-200d-1f3eb",shortnames:[":teacher_medium_light_skin_tone:"],category:"people"},":teacher_tone3:":{uc_base:"1f9d1-1f3fd-1f3eb",uc_full:"1f9d1-1f3fd-200d-1f3eb",shortnames:[":teacher_medium_skin_tone:"],category:"people"},":teacher_tone4:":{uc_base:"1f9d1-1f3fe-1f3eb",uc_full:"1f9d1-1f3fe-200d-1f3eb",shortnames:[":teacher_medium_dark_skin_tone:"],category:"people"},":teacher_tone5:":{uc_base:"1f9d1-1f3ff-1f3eb",uc_full:"1f9d1-1f3ff-200d-1f3eb",shortnames:[":teacher_dark_skin_tone:"],category:"people"},":technologist_tone1:":{uc_base:"1f9d1-1f3fb-1f4bb",uc_full:"1f9d1-1f3fb-200d-1f4bb",shortnames:[":technologist_light_skin_tone:"],category:"people"},":technologist_tone2:":{uc_base:"1f9d1-1f3fc-1f4bb",uc_full:"1f9d1-1f3fc-200d-1f4bb",shortnames:[":technologist_medium_light_skin_tone:"],category:"people"},":technologist_tone3:":{uc_base:"1f9d1-1f3fd-1f4bb",uc_full:"1f9d1-1f3fd-200d-1f4bb",shortnames:[":technologist_medium_skin_tone:"],category:"people"},":technologist_tone4:":{uc_base:"1f9d1-1f3fe-1f4bb",uc_full:"1f9d1-1f3fe-200d-1f4bb",shortnames:[":technologist_medium_dark_skin_tone:"],category:"people"},":technologist_tone5:":{uc_base:"1f9d1-1f3ff-1f4bb",uc_full:"1f9d1-1f3ff-200d-1f4bb",shortnames:[":technologist_dark_skin_tone:"],category:"people"},":woman_artist_tone1:":{uc_base:"1f469-1f3fb-1f3a8",uc_full:"1f469-1f3fb-200d-1f3a8",shortnames:[":woman_artist_light_skin_tone:"],category:"people"},":woman_artist_tone2:":{uc_base:"1f469-1f3fc-1f3a8",uc_full:"1f469-1f3fc-200d-1f3a8",shortnames:[":woman_artist_medium_light_skin_tone:"],category:"people"},":woman_artist_tone3:":{uc_base:"1f469-1f3fd-1f3a8",uc_full:"1f469-1f3fd-200d-1f3a8",shortnames:[":woman_artist_medium_skin_tone:"],category:"people"},":woman_artist_tone4:":{uc_base:"1f469-1f3fe-1f3a8",uc_full:"1f469-1f3fe-200d-1f3a8",shortnames:[":woman_artist_medium_dark_skin_tone:"],category:"people"},":woman_artist_tone5:":{uc_base:"1f469-1f3ff-1f3a8",uc_full:"1f469-1f3ff-200d-1f3a8",shortnames:[":woman_artist_dark_skin_tone:"],category:"people"},":woman_astronaut_tone1:":{uc_base:"1f469-1f3fb-1f680",uc_full:"1f469-1f3fb-200d-1f680",shortnames:[":woman_astronaut_light_skin_tone:"],category:"people"},":woman_astronaut_tone2:":{uc_base:"1f469-1f3fc-1f680",uc_full:"1f469-1f3fc-200d-1f680",shortnames:[":woman_astronaut_medium_light_skin_tone:"],category:"people"},":woman_astronaut_tone3:":{uc_base:"1f469-1f3fd-1f680",uc_full:"1f469-1f3fd-200d-1f680",shortnames:[":woman_astronaut_medium_skin_tone:"],category:"people"},":woman_astronaut_tone4:":{uc_base:"1f469-1f3fe-1f680",uc_full:"1f469-1f3fe-200d-1f680",shortnames:[":woman_astronaut_medium_dark_skin_tone:"],category:"people"},":woman_astronaut_tone5:":{uc_base:"1f469-1f3ff-1f680",uc_full:"1f469-1f3ff-200d-1f680",shortnames:[":woman_astronaut_dark_skin_tone:"],category:"people"},":woman_bald_tone1:":{uc_base:"1f469-1f3fb-1f9b2",uc_full:"1f469-1f3fb-200d-1f9b2",shortnames:[":woman_bald_light_skin_tone:"],category:"people"},":woman_bald_tone2:":{uc_base:"1f469-1f3fc-1f9b2",uc_full:"1f469-1f3fc-200d-1f9b2",shortnames:[":woman_bald_medium_light_skin_tone:"],category:"people"},":woman_bald_tone3:":{uc_base:"1f469-1f3fd-1f9b2",uc_full:"1f469-1f3fd-200d-1f9b2",shortnames:[":woman_bald_medium_skin_tone:"],category:"people"},":woman_bald_tone4:":{uc_base:"1f469-1f3fe-1f9b2",uc_full:"1f469-1f3fe-200d-1f9b2",shortnames:[":woman_bald_medium_dark_skin_tone:"],category:"people"},":woman_bald_tone5:":{uc_base:"1f469-1f3ff-1f9b2",uc_full:"1f469-1f3ff-200d-1f9b2",shortnames:[":woman_bald_dark_skin_tone:"],category:"people"},":woman_cook_tone1:":{uc_base:"1f469-1f3fb-1f373",uc_full:"1f469-1f3fb-200d-1f373",shortnames:[":woman_cook_light_skin_tone:"],category:"people"},":woman_cook_tone2:":{uc_base:"1f469-1f3fc-1f373",uc_full:"1f469-1f3fc-200d-1f373",shortnames:[":woman_cook_medium_light_skin_tone:"],category:"people"},":woman_cook_tone3:":{uc_base:"1f469-1f3fd-1f373",uc_full:"1f469-1f3fd-200d-1f373",shortnames:[":woman_cook_medium_skin_tone:"],category:"people"},":woman_cook_tone4:":{uc_base:"1f469-1f3fe-1f373",uc_full:"1f469-1f3fe-200d-1f373",shortnames:[":woman_cook_medium_dark_skin_tone:"],category:"people"},":woman_cook_tone5:":{uc_base:"1f469-1f3ff-1f373",uc_full:"1f469-1f3ff-200d-1f373",shortnames:[":woman_cook_dark_skin_tone:"],category:"people"},":woman_curly_haired_tone1:":{uc_base:"1f469-1f3fb-1f9b1",uc_full:"1f469-1f3fb-200d-1f9b1",shortnames:[":woman_curly_haired_light_skin_tone:"],category:"people"},":woman_curly_haired_tone2:":{uc_base:"1f469-1f3fc-1f9b1",uc_full:"1f469-1f3fc-200d-1f9b1",shortnames:[":woman_curly_haired_medium_light_skin_tone:"],category:"people"},":woman_curly_haired_tone3:":{uc_base:"1f469-1f3fd-1f9b1",uc_full:"1f469-1f3fd-200d-1f9b1",shortnames:[":woman_curly_haired_medium_skin_tone:"],category:"people"},":woman_curly_haired_tone4:":{uc_base:"1f469-1f3fe-1f9b1",uc_full:"1f469-1f3fe-200d-1f9b1",shortnames:[":woman_curly_haired_medium_dark_skin_tone:"],category:"people"},":woman_curly_haired_tone5:":{uc_base:"1f469-1f3ff-1f9b1",uc_full:"1f469-1f3ff-200d-1f9b1",shortnames:[":woman_curly_haired_dark_skin_tone:"],category:"people"},":woman_factory_worker_tone1:":{uc_base:"1f469-1f3fb-1f3ed",uc_full:"1f469-1f3fb-200d-1f3ed",shortnames:[":woman_factory_worker_light_skin_tone:"],category:"people"},":woman_factory_worker_tone2:":{uc_base:"1f469-1f3fc-1f3ed",uc_full:"1f469-1f3fc-200d-1f3ed",shortnames:[":woman_factory_worker_medium_light_skin_tone:"],category:"people"},":woman_factory_worker_tone3:":{uc_base:"1f469-1f3fd-1f3ed",uc_full:"1f469-1f3fd-200d-1f3ed",shortnames:[":woman_factory_worker_medium_skin_tone:"],category:"people"},":woman_factory_worker_tone4:":{uc_base:"1f469-1f3fe-1f3ed",uc_full:"1f469-1f3fe-200d-1f3ed",shortnames:[":woman_factory_worker_medium_dark_skin_tone:"],category:"people"},":woman_factory_worker_tone5:":{uc_base:"1f469-1f3ff-1f3ed",uc_full:"1f469-1f3ff-200d-1f3ed",shortnames:[":woman_factory_worker_dark_skin_tone:"],category:"people"},":woman_farmer_tone1:":{uc_base:"1f469-1f3fb-1f33e",uc_full:"1f469-1f3fb-200d-1f33e",shortnames:[":woman_farmer_light_skin_tone:"],category:"people"},":woman_farmer_tone2:":{uc_base:"1f469-1f3fc-1f33e",uc_full:"1f469-1f3fc-200d-1f33e",shortnames:[":woman_farmer_medium_light_skin_tone:"],category:"people"},":woman_farmer_tone3:":{uc_base:"1f469-1f3fd-1f33e",uc_full:"1f469-1f3fd-200d-1f33e",shortnames:[":woman_farmer_medium_skin_tone:"],category:"people"},":woman_farmer_tone4:":{uc_base:"1f469-1f3fe-1f33e",uc_full:"1f469-1f3fe-200d-1f33e",shortnames:[":woman_farmer_medium_dark_skin_tone:"],category:"people"},":woman_farmer_tone5:":{uc_base:"1f469-1f3ff-1f33e",uc_full:"1f469-1f3ff-200d-1f33e",shortnames:[":woman_farmer_dark_skin_tone:"],category:"people"},":woman_feeding_baby_tone1:":{uc_base:"1f469-1f3fb-1f37c",uc_full:"1f469-1f3fb-200d-1f37c",shortnames:[":woman_feeding_baby_light_skin_tone:"],category:"people"},":woman_feeding_baby_tone2:":{uc_base:"1f469-1f3fc-1f37c",uc_full:"1f469-1f3fc-200d-1f37c",shortnames:[":woman_feeding_baby_medium_light_skin_tone:"],category:"people"},":woman_feeding_baby_tone3:":{uc_base:"1f469-1f3fd-1f37c",uc_full:"1f469-1f3fd-200d-1f37c",shortnames:[":woman_feeding_baby_medium_skin_tone:"],category:"people"},":woman_feeding_baby_tone4:":{uc_base:"1f469-1f3fe-1f37c",uc_full:"1f469-1f3fe-200d-1f37c",shortnames:[":woman_feeding_baby_medium_dark_skin_tone:"],category:"people"},":woman_feeding_baby_tone5:":{uc_base:"1f469-1f3ff-1f37c",uc_full:"1f469-1f3ff-200d-1f37c",shortnames:[":woman_feeding_baby_dark_skin_tone:"],category:"people"},":woman_firefighter_tone1:":{uc_base:"1f469-1f3fb-1f692",uc_full:"1f469-1f3fb-200d-1f692",shortnames:[":woman_firefighter_light_skin_tone:"],category:"people"},":woman_firefighter_tone2:":{uc_base:"1f469-1f3fc-1f692",uc_full:"1f469-1f3fc-200d-1f692",shortnames:[":woman_firefighter_medium_light_skin_tone:"],category:"people"},":woman_firefighter_tone3:":{uc_base:"1f469-1f3fd-1f692",uc_full:"1f469-1f3fd-200d-1f692",shortnames:[":woman_firefighter_medium_skin_tone:"],category:"people"},":woman_firefighter_tone4:":{uc_base:"1f469-1f3fe-1f692",uc_full:"1f469-1f3fe-200d-1f692",shortnames:[":woman_firefighter_medium_dark_skin_tone:"],category:"people"},":woman_firefighter_tone5:":{uc_base:"1f469-1f3ff-1f692",uc_full:"1f469-1f3ff-200d-1f692",shortnames:[":woman_firefighter_dark_skin_tone:"],category:"people"},":woman_in_manual_wheelchair_tone1:":{uc_base:"1f469-1f3fb-1f9bd",uc_full:"1f469-1f3fb-200d-1f9bd",shortnames:[":woman_in_manual_wheelchair_light_skin_tone:"],category:"people"},":woman_in_manual_wheelchair_tone2:":{uc_base:"1f469-1f3fc-1f9bd",uc_full:"1f469-1f3fc-200d-1f9bd",shortnames:[":woman_in_manual_wheelchair_medium_light_skin_tone:"],category:"people"},":woman_in_manual_wheelchair_tone3:":{uc_base:"1f469-1f3fd-1f9bd",uc_full:"1f469-1f3fd-200d-1f9bd",shortnames:[":woman_in_manual_wheelchair_medium_skin_tone:"],category:"people"},":woman_in_manual_wheelchair_tone4:":{uc_base:"1f469-1f3fe-1f9bd",uc_full:"1f469-1f3fe-200d-1f9bd",shortnames:[":woman_in_manual_wheelchair_medium_dark_skin_tone:"],category:"people"},":woman_in_manual_wheelchair_tone5:":{uc_base:"1f469-1f3ff-1f9bd",uc_full:"1f469-1f3ff-200d-1f9bd",shortnames:[":woman_in_manual_wheelchair_dark_skin_tone:"],category:"people"},":woman_in_motorized_wheelchair_tone1:":{uc_base:"1f469-1f3fb-1f9bc",uc_full:"1f469-1f3fb-200d-1f9bc",shortnames:[":woman_in_motorized_wheelchair_light_skin_tone:"],category:"people"},":woman_in_motorized_wheelchair_tone2:":{uc_base:"1f469-1f3fc-1f9bc",uc_full:"1f469-1f3fc-200d-1f9bc",shortnames:[":woman_in_motorized_wheelchair_medium_light_skin_tone:"],category:"people"},":woman_in_motorized_wheelchair_tone3:":{uc_base:"1f469-1f3fd-1f9bc",uc_full:"1f469-1f3fd-200d-1f9bc",shortnames:[":woman_in_motorized_wheelchair_medium_skin_tone:"],category:"people"},":woman_in_motorized_wheelchair_tone4:":{uc_base:"1f469-1f3fe-1f9bc",uc_full:"1f469-1f3fe-200d-1f9bc",shortnames:[":woman_in_motorized_wheelchair_medium_dark_skin_tone:"],category:"people"},":woman_in_motorized_wheelchair_tone5:":{uc_base:"1f469-1f3ff-1f9bc",uc_full:"1f469-1f3ff-200d-1f9bc",shortnames:[":woman_in_motorized_wheelchair_dark_skin_tone:"],category:"people"},":woman_mechanic_tone1:":{uc_base:"1f469-1f3fb-1f527",uc_full:"1f469-1f3fb-200d-1f527",shortnames:[":woman_mechanic_light_skin_tone:"],category:"people"},":woman_mechanic_tone2:":{uc_base:"1f469-1f3fc-1f527",uc_full:"1f469-1f3fc-200d-1f527",shortnames:[":woman_mechanic_medium_light_skin_tone:"],category:"people"},":woman_mechanic_tone3:":{uc_base:"1f469-1f3fd-1f527",uc_full:"1f469-1f3fd-200d-1f527",shortnames:[":woman_mechanic_medium_skin_tone:"],category:"people"},":woman_mechanic_tone4:":{uc_base:"1f469-1f3fe-1f527",uc_full:"1f469-1f3fe-200d-1f527",shortnames:[":woman_mechanic_medium_dark_skin_tone:"],category:"people"},":woman_mechanic_tone5:":{uc_base:"1f469-1f3ff-1f527",uc_full:"1f469-1f3ff-200d-1f527",shortnames:[":woman_mechanic_dark_skin_tone:"],category:"people"},":woman_office_worker_tone1:":{uc_base:"1f469-1f3fb-1f4bc",uc_full:"1f469-1f3fb-200d-1f4bc",shortnames:[":woman_office_worker_light_skin_tone:"],category:"people"},":woman_office_worker_tone2:":{uc_base:"1f469-1f3fc-1f4bc",uc_full:"1f469-1f3fc-200d-1f4bc",shortnames:[":woman_office_worker_medium_light_skin_tone:"],category:"people"},":woman_office_worker_tone3:":{uc_base:"1f469-1f3fd-1f4bc",uc_full:"1f469-1f3fd-200d-1f4bc",shortnames:[":woman_office_worker_medium_skin_tone:"],category:"people"},":woman_office_worker_tone4:":{uc_base:"1f469-1f3fe-1f4bc",uc_full:"1f469-1f3fe-200d-1f4bc",shortnames:[":woman_office_worker_medium_dark_skin_tone:"],category:"people"},":woman_office_worker_tone5:":{uc_base:"1f469-1f3ff-1f4bc",uc_full:"1f469-1f3ff-200d-1f4bc",shortnames:[":woman_office_worker_dark_skin_tone:"],category:"people"},":woman_red_haired_tone1:":{uc_base:"1f469-1f3fb-1f9b0",uc_full:"1f469-1f3fb-200d-1f9b0",shortnames:[":woman_red_haired_light_skin_tone:"],category:"people"},":woman_red_haired_tone2:":{uc_base:"1f469-1f3fc-1f9b0",uc_full:"1f469-1f3fc-200d-1f9b0",shortnames:[":woman_red_haired_medium_light_skin_tone:"],category:"people"},":woman_red_haired_tone3:":{uc_base:"1f469-1f3fd-1f9b0",uc_full:"1f469-1f3fd-200d-1f9b0",shortnames:[":woman_red_haired_medium_skin_tone:"],category:"people"},":woman_red_haired_tone4:":{uc_base:"1f469-1f3fe-1f9b0",uc_full:"1f469-1f3fe-200d-1f9b0",shortnames:[":woman_red_haired_medium_dark_skin_tone:"],category:"people"},":woman_red_haired_tone5:":{uc_base:"1f469-1f3ff-1f9b0",uc_full:"1f469-1f3ff-200d-1f9b0",shortnames:[":woman_red_haired_dark_skin_tone:"],category:"people"},":woman_scientist_tone1:":{uc_base:"1f469-1f3fb-1f52c",uc_full:"1f469-1f3fb-200d-1f52c",shortnames:[":woman_scientist_light_skin_tone:"],category:"people"},":woman_scientist_tone2:":{uc_base:"1f469-1f3fc-1f52c",uc_full:"1f469-1f3fc-200d-1f52c",shortnames:[":woman_scientist_medium_light_skin_tone:"],category:"people"},":woman_scientist_tone3:":{uc_base:"1f469-1f3fd-1f52c",uc_full:"1f469-1f3fd-200d-1f52c",shortnames:[":woman_scientist_medium_skin_tone:"],category:"people"},":woman_scientist_tone4:":{uc_base:"1f469-1f3fe-1f52c",uc_full:"1f469-1f3fe-200d-1f52c",shortnames:[":woman_scientist_medium_dark_skin_tone:"],category:"people"},":woman_scientist_tone5:":{uc_base:"1f469-1f3ff-1f52c",uc_full:"1f469-1f3ff-200d-1f52c",shortnames:[":woman_scientist_dark_skin_tone:"],category:"people"},":woman_singer_tone1:":{uc_base:"1f469-1f3fb-1f3a4",uc_full:"1f469-1f3fb-200d-1f3a4",shortnames:[":woman_singer_light_skin_tone:"],category:"people"},":woman_singer_tone2:":{uc_base:"1f469-1f3fc-1f3a4",uc_full:"1f469-1f3fc-200d-1f3a4",shortnames:[":woman_singer_medium_light_skin_tone:"],category:"people"},":woman_singer_tone3:":{uc_base:"1f469-1f3fd-1f3a4",uc_full:"1f469-1f3fd-200d-1f3a4",shortnames:[":woman_singer_medium_skin_tone:"],category:"people"},":woman_singer_tone4:":{uc_base:"1f469-1f3fe-1f3a4",uc_full:"1f469-1f3fe-200d-1f3a4",shortnames:[":woman_singer_medium_dark_skin_tone:"],category:"people"},":woman_singer_tone5:":{uc_base:"1f469-1f3ff-1f3a4",uc_full:"1f469-1f3ff-200d-1f3a4",shortnames:[":woman_singer_dark_skin_tone:"],category:"people"},":woman_student_tone1:":{uc_base:"1f469-1f3fb-1f393",uc_full:"1f469-1f3fb-200d-1f393",shortnames:[":woman_student_light_skin_tone:"],category:"people"},":woman_student_tone2:":{uc_base:"1f469-1f3fc-1f393",uc_full:"1f469-1f3fc-200d-1f393",shortnames:[":woman_student_medium_light_skin_tone:"],category:"people"},":woman_student_tone3:":{uc_base:"1f469-1f3fd-1f393",uc_full:"1f469-1f3fd-200d-1f393",shortnames:[":woman_student_medium_skin_tone:"],category:"people"},":woman_student_tone4:":{uc_base:"1f469-1f3fe-1f393",uc_full:"1f469-1f3fe-200d-1f393",shortnames:[":woman_student_medium_dark_skin_tone:"],category:"people"},":woman_student_tone5:":{uc_base:"1f469-1f3ff-1f393",uc_full:"1f469-1f3ff-200d-1f393",shortnames:[":woman_student_dark_skin_tone:"],category:"people"},":woman_teacher_tone1:":{uc_base:"1f469-1f3fb-1f3eb",uc_full:"1f469-1f3fb-200d-1f3eb",shortnames:[":woman_teacher_light_skin_tone:"],category:"people"},":woman_teacher_tone2:":{uc_base:"1f469-1f3fc-1f3eb",uc_full:"1f469-1f3fc-200d-1f3eb",shortnames:[":woman_teacher_medium_light_skin_tone:"],category:"people"},":woman_teacher_tone3:":{uc_base:"1f469-1f3fd-1f3eb",uc_full:"1f469-1f3fd-200d-1f3eb",shortnames:[":woman_teacher_medium_skin_tone:"],category:"people"},":woman_teacher_tone4:":{uc_base:"1f469-1f3fe-1f3eb",uc_full:"1f469-1f3fe-200d-1f3eb",shortnames:[":woman_teacher_medium_dark_skin_tone:"],category:"people"},":woman_teacher_tone5:":{uc_base:"1f469-1f3ff-1f3eb",uc_full:"1f469-1f3ff-200d-1f3eb",shortnames:[":woman_teacher_dark_skin_tone:"],category:"people"},":woman_technologist_tone1:":{uc_base:"1f469-1f3fb-1f4bb",uc_full:"1f469-1f3fb-200d-1f4bb",shortnames:[":woman_technologist_light_skin_tone:"],category:"people"},":woman_technologist_tone2:":{uc_base:"1f469-1f3fc-1f4bb",uc_full:"1f469-1f3fc-200d-1f4bb",shortnames:[":woman_technologist_medium_light_skin_tone:"],category:"people"},":woman_technologist_tone3:":{uc_base:"1f469-1f3fd-1f4bb",uc_full:"1f469-1f3fd-200d-1f4bb",shortnames:[":woman_technologist_medium_skin_tone:"],category:"people"},":woman_technologist_tone4:":{uc_base:"1f469-1f3fe-1f4bb",uc_full:"1f469-1f3fe-200d-1f4bb",shortnames:[":woman_technologist_medium_dark_skin_tone:"],category:"people"},":woman_technologist_tone5:":{uc_base:"1f469-1f3ff-1f4bb",uc_full:"1f469-1f3ff-200d-1f4bb",shortnames:[":woman_technologist_dark_skin_tone:"],category:"people"},":woman_white_haired_tone1:":{uc_base:"1f469-1f3fb-1f9b3",uc_full:"1f469-1f3fb-200d-1f9b3",shortnames:[":woman_white_haired_light_skin_tone:"],category:"people"},":woman_white_haired_tone2:":{uc_base:"1f469-1f3fc-1f9b3",uc_full:"1f469-1f3fc-200d-1f9b3",shortnames:[":woman_white_haired_medium_light_skin_tone:"],category:"people"},":woman_white_haired_tone3:":{uc_base:"1f469-1f3fd-1f9b3",uc_full:"1f469-1f3fd-200d-1f9b3",shortnames:[":woman_white_haired_medium_skin_tone:"],category:"people"},":woman_white_haired_tone4:":{uc_base:"1f469-1f3fe-1f9b3",uc_full:"1f469-1f3fe-200d-1f9b3",shortnames:[":woman_white_haired_medium_dark_skin_tone:"],category:"people"},":woman_white_haired_tone5:":{uc_base:"1f469-1f3ff-1f9b3",uc_full:"1f469-1f3ff-200d-1f9b3",shortnames:[":woman_white_haired_dark_skin_tone:"],category:"people"},":woman_with_probing_cane_tone1:":{uc_base:"1f469-1f3fb-1f9af",uc_full:"1f469-1f3fb-200d-1f9af",shortnames:[":woman_with_probing_cane_light_skin_tone:"],category:"people"},":woman_with_probing_cane_tone2:":{uc_base:"1f469-1f3fc-1f9af",uc_full:"1f469-1f3fc-200d-1f9af",shortnames:[":woman_with_probing_cane_medium_light_skin_tone:"],category:"people"},":woman_with_probing_cane_tone3:":{uc_base:"1f469-1f3fd-1f9af",uc_full:"1f469-1f3fd-200d-1f9af",shortnames:[":woman_with_probing_cane_medium_skin_tone:"],category:"people"},":woman_with_probing_cane_tone4:":{uc_base:"1f469-1f3fe-1f9af",uc_full:"1f469-1f3fe-200d-1f9af",shortnames:[":woman_with_probing_cane_medium_dark_skin_tone:"],category:"people"},":woman_with_probing_cane_tone5:":{uc_base:"1f469-1f3ff-1f9af",uc_full:"1f469-1f3ff-200d-1f9af",shortnames:[":woman_with_probing_cane_dark_skin_tone:"],category:"people"},":blond-haired_man_tone1:":{uc_base:"1f471-1f3fb-2642",uc_full:"1f471-1f3fb-200d-2642-fe0f",shortnames:[":blond-haired_man_light_skin_tone:"],category:"people"},":blond-haired_man_tone2:":{uc_base:"1f471-1f3fc-2642",uc_full:"1f471-1f3fc-200d-2642-fe0f",shortnames:[":blond-haired_man_medium_light_skin_tone:"],category:"people"},":blond-haired_man_tone3:":{uc_base:"1f471-1f3fd-2642",uc_full:"1f471-1f3fd-200d-2642-fe0f",shortnames:[":blond-haired_man_medium_skin_tone:"],category:"people"},":blond-haired_man_tone4:":{uc_base:"1f471-1f3fe-2642",uc_full:"1f471-1f3fe-200d-2642-fe0f",shortnames:[":blond-haired_man_medium_dark_skin_tone:"],category:"people"},":blond-haired_man_tone5:":{uc_base:"1f471-1f3ff-2642",uc_full:"1f471-1f3ff-200d-2642-fe0f",shortnames:[":blond-haired_man_dark_skin_tone:"],category:"people"},":blond-haired_woman_tone1:":{uc_base:"1f471-1f3fb-2640",uc_full:"1f471-1f3fb-200d-2640-fe0f",shortnames:[":blond-haired_woman_light_skin_tone:"],category:"people"},":blond-haired_woman_tone2:":{uc_base:"1f471-1f3fc-2640",uc_full:"1f471-1f3fc-200d-2640-fe0f",shortnames:[":blond-haired_woman_medium_light_skin_tone:"],category:"people"},":blond-haired_woman_tone3:":{uc_base:"1f471-1f3fd-2640",uc_full:"1f471-1f3fd-200d-2640-fe0f",shortnames:[":blond-haired_woman_medium_skin_tone:"],category:"people"},":blond-haired_woman_tone4:":{uc_base:"1f471-1f3fe-2640",uc_full:"1f471-1f3fe-200d-2640-fe0f",shortnames:[":blond-haired_woman_medium_dark_skin_tone:"],category:"people"},":blond-haired_woman_tone5:":{uc_base:"1f471-1f3ff-2640",uc_full:"1f471-1f3ff-200d-2640-fe0f",shortnames:[":blond-haired_woman_dark_skin_tone:"],category:"people"},":couple_mm:":{uc_base:"1f468-2764-1f468",uc_full:"1f468-200d-2764-fe0f-200d-1f468",shortnames:[":couple_with_heart_mm:"],category:"people"},":couple_with_heart_woman_man:":{uc_base:"1f469-2764-1f468",uc_full:"1f469-200d-2764-fe0f-200d-1f468",shortnames:[],category:"people"},":couple_ww:":{uc_base:"1f469-2764-1f469",uc_full:"1f469-200d-2764-fe0f-200d-1f469",shortnames:[":couple_with_heart_ww:"],category:"people"},":deaf_man_tone1:":{uc_base:"1f9cf-1f3fb-2642",uc_full:"1f9cf-1f3fb-200d-2642-fe0f",shortnames:[":deaf_man_light_skin_tone:"],category:"people"},":deaf_man_tone2:":{uc_base:"1f9cf-1f3fc-2642",uc_full:"1f9cf-1f3fc-200d-2642-fe0f",shortnames:[":deaf_man_medium_light_skin_tone:"],category:"people"},":deaf_man_tone3:":{uc_base:"1f9cf-1f3fd-2642",uc_full:"1f9cf-1f3fd-200d-2642-fe0f",shortnames:[":deaf_man_medium_skin_tone:"],category:"people"},":deaf_man_tone4:":{uc_base:"1f9cf-1f3fe-2642",uc_full:"1f9cf-1f3fe-200d-2642-fe0f",shortnames:[":deaf_man_medium_dark_skin_tone:"],category:"people"},":deaf_man_tone5:":{uc_base:"1f9cf-1f3ff-2642",uc_full:"1f9cf-1f3ff-200d-2642-fe0f",shortnames:[":deaf_man_dark_skin_tone:"],category:"people"},":deaf_woman_tone1:":{uc_base:"1f9cf-1f3fb-2640",uc_full:"1f9cf-1f3fb-200d-2640-fe0f",shortnames:[":deaf_woman_light_skin_tone:"],category:"people"},":deaf_woman_tone2:":{uc_base:"1f9cf-1f3fc-2640",uc_full:"1f9cf-1f3fc-200d-2640-fe0f",shortnames:[":deaf_woman_medium_light_skin_tone:"],category:"people"},":deaf_woman_tone3:":{uc_base:"1f9cf-1f3fd-2640",uc_full:"1f9cf-1f3fd-200d-2640-fe0f",shortnames:[":deaf_woman_medium_skin_tone:"],category:"people"},":deaf_woman_tone4:":{uc_base:"1f9cf-1f3fe-2640",uc_full:"1f9cf-1f3fe-200d-2640-fe0f",shortnames:[":deaf_woman_medium_dark_skin_tone:"],category:"people"},":deaf_woman_tone5:":{uc_base:"1f9cf-1f3ff-2640",uc_full:"1f9cf-1f3ff-200d-2640-fe0f",shortnames:[":deaf_woman_dark_skin_tone:"],category:"people"},":health_worker_tone1:":{uc_base:"1f9d1-1f3fb-2695",uc_full:"1f9d1-1f3fb-200d-2695-fe0f",shortnames:[":health_worker_light_skin_tone:"],category:"people"},":health_worker_tone2:":{uc_base:"1f9d1-1f3fc-2695",uc_full:"1f9d1-1f3fc-200d-2695-fe0f",shortnames:[":health_worker_medium_light_skin_tone:"],category:"people"},":health_worker_tone3:":{uc_base:"1f9d1-1f3fd-2695",uc_full:"1f9d1-1f3fd-200d-2695-fe0f",shortnames:[":health_worker_medium_skin_tone:"],category:"people"},":health_worker_tone4:":{uc_base:"1f9d1-1f3fe-2695",uc_full:"1f9d1-1f3fe-200d-2695-fe0f",shortnames:[":health_worker_medium_dark_skin_tone:"],category:"people"},":health_worker_tone5:":{uc_base:"1f9d1-1f3ff-2695",uc_full:"1f9d1-1f3ff-200d-2695-fe0f",shortnames:[":health_worker_dark_skin_tone:"],category:"people"},":judge_tone1:":{uc_base:"1f9d1-1f3fb-2696",uc_full:"1f9d1-1f3fb-200d-2696-fe0f",shortnames:[":judge_light_skin_tone:"],category:"people"},":judge_tone2:":{uc_base:"1f9d1-1f3fc-2696",uc_full:"1f9d1-1f3fc-200d-2696-fe0f",shortnames:[":judge_medium_light_skin_tone:"],category:"people"},":judge_tone3:":{uc_base:"1f9d1-1f3fd-2696",uc_full:"1f9d1-1f3fd-200d-2696-fe0f",shortnames:[":judge_medium_skin_tone:"],category:"people"},":judge_tone4:":{uc_base:"1f9d1-1f3fe-2696",uc_full:"1f9d1-1f3fe-200d-2696-fe0f",shortnames:[":judge_medium_dark_skin_tone:"],category:"people"},":judge_tone5:":{uc_base:"1f9d1-1f3ff-2696",uc_full:"1f9d1-1f3ff-200d-2696-fe0f",shortnames:[":judge_dark_skin_tone:"],category:"people"},":man_biking_tone1:":{uc_base:"1f6b4-1f3fb-2642",uc_full:"1f6b4-1f3fb-200d-2642-fe0f",shortnames:[":man_biking_light_skin_tone:"],category:"activity"},":man_biking_tone2:":{uc_base:"1f6b4-1f3fc-2642",uc_full:"1f6b4-1f3fc-200d-2642-fe0f",shortnames:[":man_biking_medium_light_skin_tone:"],category:"activity"},":man_biking_tone3:":{uc_base:"1f6b4-1f3fd-2642",uc_full:"1f6b4-1f3fd-200d-2642-fe0f",shortnames:[":man_biking_medium_skin_tone:"],category:"activity"},":man_biking_tone4:":{uc_base:"1f6b4-1f3fe-2642",uc_full:"1f6b4-1f3fe-200d-2642-fe0f",shortnames:[":man_biking_medium_dark_skin_tone:"],category:"activity"},":man_biking_tone5:":{uc_base:"1f6b4-1f3ff-2642",uc_full:"1f6b4-1f3ff-200d-2642-fe0f",shortnames:[":man_biking_dark_skin_tone:"],category:"activity"},":man_bowing_tone1:":{uc_base:"1f647-1f3fb-2642",uc_full:"1f647-1f3fb-200d-2642-fe0f",shortnames:[":man_bowing_light_skin_tone:"],category:"people"},":man_bowing_tone2:":{uc_base:"1f647-1f3fc-2642",uc_full:"1f647-1f3fc-200d-2642-fe0f",shortnames:[":man_bowing_medium_light_skin_tone:"],category:"people"},":man_bowing_tone3:":{uc_base:"1f647-1f3fd-2642",uc_full:"1f647-1f3fd-200d-2642-fe0f",shortnames:[":man_bowing_medium_skin_tone:"],category:"people"},":man_bowing_tone4:":{uc_base:"1f647-1f3fe-2642",uc_full:"1f647-1f3fe-200d-2642-fe0f",shortnames:[":man_bowing_medium_dark_skin_tone:"],category:"people"},":man_bowing_tone5:":{uc_base:"1f647-1f3ff-2642",uc_full:"1f647-1f3ff-200d-2642-fe0f",shortnames:[":man_bowing_dark_skin_tone:"],category:"people"},":man_cartwheeling_tone1:":{uc_base:"1f938-1f3fb-2642",uc_full:"1f938-1f3fb-200d-2642-fe0f",shortnames:[":man_cartwheeling_light_skin_tone:"],category:"activity"},":man_cartwheeling_tone2:":{uc_base:"1f938-1f3fc-2642",uc_full:"1f938-1f3fc-200d-2642-fe0f",shortnames:[":man_cartwheeling_medium_light_skin_tone:"],category:"activity"},":man_cartwheeling_tone3:":{uc_base:"1f938-1f3fd-2642",uc_full:"1f938-1f3fd-200d-2642-fe0f",shortnames:[":man_cartwheeling_medium_skin_tone:"],category:"activity"},":man_cartwheeling_tone4:":{uc_base:"1f938-1f3fe-2642",uc_full:"1f938-1f3fe-200d-2642-fe0f",shortnames:[":man_cartwheeling_medium_dark_skin_tone:"],category:"activity"},":man_cartwheeling_tone5:":{uc_base:"1f938-1f3ff-2642",uc_full:"1f938-1f3ff-200d-2642-fe0f",shortnames:[":man_cartwheeling_dark_skin_tone:"],category:"activity"},":man_climbing_tone1:":{uc_base:"1f9d7-1f3fb-2642",uc_full:"1f9d7-1f3fb-200d-2642-fe0f",shortnames:[":man_climbing_light_skin_tone:"],category:"activity"},":man_climbing_tone2:":{uc_base:"1f9d7-1f3fc-2642",uc_full:"1f9d7-1f3fc-200d-2642-fe0f",shortnames:[":man_climbing_medium_light_skin_tone:"],category:"activity"},":man_climbing_tone3:":{uc_base:"1f9d7-1f3fd-2642",uc_full:"1f9d7-1f3fd-200d-2642-fe0f",shortnames:[":man_climbing_medium_skin_tone:"],category:"activity"},":man_climbing_tone4:":{uc_base:"1f9d7-1f3fe-2642",uc_full:"1f9d7-1f3fe-200d-2642-fe0f",shortnames:[":man_climbing_medium_dark_skin_tone:"],category:"activity"},":man_climbing_tone5:":{uc_base:"1f9d7-1f3ff-2642",uc_full:"1f9d7-1f3ff-200d-2642-fe0f",shortnames:[":man_climbing_dark_skin_tone:"],category:"activity"},":man_construction_worker_tone1:":{uc_base:"1f477-1f3fb-2642",uc_full:"1f477-1f3fb-200d-2642-fe0f",shortnames:[":man_construction_worker_light_skin_tone:"],category:"people"},":man_construction_worker_tone2:":{uc_base:"1f477-1f3fc-2642",uc_full:"1f477-1f3fc-200d-2642-fe0f",shortnames:[":man_construction_worker_medium_light_skin_tone:"],category:"people"},":man_construction_worker_tone3:":{uc_base:"1f477-1f3fd-2642",uc_full:"1f477-1f3fd-200d-2642-fe0f",shortnames:[":man_construction_worker_medium_skin_tone:"],category:"people"},":man_construction_worker_tone4:":{uc_base:"1f477-1f3fe-2642",uc_full:"1f477-1f3fe-200d-2642-fe0f",shortnames:[":man_construction_worker_medium_dark_skin_tone:"],category:"people"},":man_construction_worker_tone5:":{uc_base:"1f477-1f3ff-2642",uc_full:"1f477-1f3ff-200d-2642-fe0f",shortnames:[":man_construction_worker_dark_skin_tone:"],category:"people"},":man_detective_tone1:":{uc_base:"1f575-1f3fb-2642",uc_full:"1f575-1f3fb-200d-2642-fe0f",shortnames:[":man_detective_light_skin_tone:"],category:"people"},":man_detective_tone2:":{uc_base:"1f575-1f3fc-2642",uc_full:"1f575-1f3fc-200d-2642-fe0f",shortnames:[":man_detective_medium_light_skin_tone:"],category:"people"},":man_detective_tone3:":{uc_base:"1f575-1f3fd-2642",uc_full:"1f575-1f3fd-200d-2642-fe0f",shortnames:[":man_detective_medium_skin_tone:"],category:"people"},":man_detective_tone4:":{uc_base:"1f575-1f3fe-2642",uc_full:"1f575-1f3fe-200d-2642-fe0f",shortnames:[":man_detective_medium_dark_skin_tone:"],category:"people"},":man_detective_tone5:":{uc_base:"1f575-1f3ff-2642",uc_full:"1f575-1f3ff-200d-2642-fe0f",shortnames:[":man_detective_dark_skin_tone:"],category:"people"},":man_elf_tone1:":{uc_base:"1f9dd-1f3fb-2642",uc_full:"1f9dd-1f3fb-200d-2642-fe0f",shortnames:[":man_elf_light_skin_tone:"],category:"people"},":man_elf_tone2:":{uc_base:"1f9dd-1f3fc-2642",uc_full:"1f9dd-1f3fc-200d-2642-fe0f",shortnames:[":man_elf_medium_light_skin_tone:"],category:"people"},":man_elf_tone3:":{uc_base:"1f9dd-1f3fd-2642",uc_full:"1f9dd-1f3fd-200d-2642-fe0f",shortnames:[":man_elf_medium_skin_tone:"],category:"people"},":man_elf_tone4:":{uc_base:"1f9dd-1f3fe-2642",uc_full:"1f9dd-1f3fe-200d-2642-fe0f",shortnames:[":man_elf_medium_dark_skin_tone:"],category:"people"},":man_elf_tone5:":{uc_base:"1f9dd-1f3ff-2642",uc_full:"1f9dd-1f3ff-200d-2642-fe0f",shortnames:[":man_elf_dark_skin_tone:"],category:"people"},":man_facepalming_tone1:":{uc_base:"1f926-1f3fb-2642",uc_full:"1f926-1f3fb-200d-2642-fe0f",shortnames:[":man_facepalming_light_skin_tone:"],category:"people"},":man_facepalming_tone2:":{uc_base:"1f926-1f3fc-2642",uc_full:"1f926-1f3fc-200d-2642-fe0f",shortnames:[":man_facepalming_medium_light_skin_tone:"],category:"people"},":man_facepalming_tone3:":{uc_base:"1f926-1f3fd-2642",uc_full:"1f926-1f3fd-200d-2642-fe0f",shortnames:[":man_facepalming_medium_skin_tone:"],category:"people"},":man_facepalming_tone4:":{uc_base:"1f926-1f3fe-2642",uc_full:"1f926-1f3fe-200d-2642-fe0f",shortnames:[":man_facepalming_medium_dark_skin_tone:"],category:"people"},":man_facepalming_tone5:":{uc_base:"1f926-1f3ff-2642",uc_full:"1f926-1f3ff-200d-2642-fe0f",shortnames:[":man_facepalming_dark_skin_tone:"],category:"people"},":man_fairy_tone1:":{uc_base:"1f9da-1f3fb-2642",uc_full:"1f9da-1f3fb-200d-2642-fe0f",shortnames:[":man_fairy_light_skin_tone:"],category:"people"},":man_fairy_tone2:":{uc_base:"1f9da-1f3fc-2642",uc_full:"1f9da-1f3fc-200d-2642-fe0f",shortnames:[":man_fairy_medium_light_skin_tone:"],category:"people"},":man_fairy_tone3:":{uc_base:"1f9da-1f3fd-2642",uc_full:"1f9da-1f3fd-200d-2642-fe0f",shortnames:[":man_fairy_medium_skin_tone:"],category:"people"},":man_fairy_tone4:":{uc_base:"1f9da-1f3fe-2642",uc_full:"1f9da-1f3fe-200d-2642-fe0f",shortnames:[":man_fairy_medium_dark_skin_tone:"],category:"people"},":man_fairy_tone5:":{uc_base:"1f9da-1f3ff-2642",uc_full:"1f9da-1f3ff-200d-2642-fe0f",shortnames:[":man_fairy_dark_skin_tone:"],category:"people"},":man_frowning_tone1:":{uc_base:"1f64d-1f3fb-2642",uc_full:"1f64d-1f3fb-200d-2642-fe0f",shortnames:[":man_frowning_light_skin_tone:"],category:"people"},":man_frowning_tone2:":{uc_base:"1f64d-1f3fc-2642",uc_full:"1f64d-1f3fc-200d-2642-fe0f",shortnames:[":man_frowning_medium_light_skin_tone:"],category:"people"},":man_frowning_tone3:":{uc_base:"1f64d-1f3fd-2642",uc_full:"1f64d-1f3fd-200d-2642-fe0f",shortnames:[":man_frowning_medium_skin_tone:"],category:"people"},":man_frowning_tone4:":{uc_base:"1f64d-1f3fe-2642",uc_full:"1f64d-1f3fe-200d-2642-fe0f",shortnames:[":man_frowning_medium_dark_skin_tone:"],category:"people"},":man_frowning_tone5:":{uc_base:"1f64d-1f3ff-2642",uc_full:"1f64d-1f3ff-200d-2642-fe0f",shortnames:[":man_frowning_dark_skin_tone:"],category:"people"},":man_gesturing_no_tone1:":{uc_base:"1f645-1f3fb-2642",uc_full:"1f645-1f3fb-200d-2642-fe0f",shortnames:[":man_gesturing_no_light_skin_tone:"],category:"people"},":man_gesturing_no_tone2:":{uc_base:"1f645-1f3fc-2642",uc_full:"1f645-1f3fc-200d-2642-fe0f",shortnames:[":man_gesturing_no_medium_light_skin_tone:"],category:"people"},":man_gesturing_no_tone3:":{uc_base:"1f645-1f3fd-2642",uc_full:"1f645-1f3fd-200d-2642-fe0f",shortnames:[":man_gesturing_no_medium_skin_tone:"],category:"people"},":man_gesturing_no_tone4:":{uc_base:"1f645-1f3fe-2642",uc_full:"1f645-1f3fe-200d-2642-fe0f",shortnames:[":man_gesturing_no_medium_dark_skin_tone:"],category:"people"},":man_gesturing_no_tone5:":{uc_base:"1f645-1f3ff-2642",uc_full:"1f645-1f3ff-200d-2642-fe0f",shortnames:[":man_gesturing_no_dark_skin_tone:"],category:"people"},":man_gesturing_ok_tone1:":{uc_base:"1f646-1f3fb-2642",uc_full:"1f646-1f3fb-200d-2642-fe0f",shortnames:[":man_gesturing_ok_light_skin_tone:"],category:"people"},":man_gesturing_ok_tone2:":{uc_base:"1f646-1f3fc-2642",uc_full:"1f646-1f3fc-200d-2642-fe0f",shortnames:[":man_gesturing_ok_medium_light_skin_tone:"],category:"people"},":man_gesturing_ok_tone3:":{uc_base:"1f646-1f3fd-2642",uc_full:"1f646-1f3fd-200d-2642-fe0f",shortnames:[":man_gesturing_ok_medium_skin_tone:"],category:"people"},":man_gesturing_ok_tone4:":{uc_base:"1f646-1f3fe-2642",uc_full:"1f646-1f3fe-200d-2642-fe0f",shortnames:[":man_gesturing_ok_medium_dark_skin_tone:"],category:"people"},":man_gesturing_ok_tone5:":{uc_base:"1f646-1f3ff-2642",uc_full:"1f646-1f3ff-200d-2642-fe0f",shortnames:[":man_gesturing_ok_dark_skin_tone:"],category:"people"},":man_getting_face_massage_tone1:":{uc_base:"1f486-1f3fb-2642",uc_full:"1f486-1f3fb-200d-2642-fe0f",shortnames:[":man_getting_face_massage_light_skin_tone:"],category:"people"},":man_getting_face_massage_tone2:":{uc_base:"1f486-1f3fc-2642",uc_full:"1f486-1f3fc-200d-2642-fe0f",shortnames:[":man_getting_face_massage_medium_light_skin_tone:"],category:"people"},":man_getting_face_massage_tone3:":{uc_base:"1f486-1f3fd-2642",uc_full:"1f486-1f3fd-200d-2642-fe0f",shortnames:[":man_getting_face_massage_medium_skin_tone:"],category:"people"},":man_getting_face_massage_tone4:":{uc_base:"1f486-1f3fe-2642",uc_full:"1f486-1f3fe-200d-2642-fe0f",shortnames:[":man_getting_face_massage_medium_dark_skin_tone:"],category:"people"},":man_getting_face_massage_tone5:":{uc_base:"1f486-1f3ff-2642",uc_full:"1f486-1f3ff-200d-2642-fe0f",shortnames:[":man_getting_face_massage_dark_skin_tone:"],category:"people"},":man_getting_haircut_tone1:":{uc_base:"1f487-1f3fb-2642",uc_full:"1f487-1f3fb-200d-2642-fe0f",shortnames:[":man_getting_haircut_light_skin_tone:"],category:"people"},":man_getting_haircut_tone2:":{uc_base:"1f487-1f3fc-2642",uc_full:"1f487-1f3fc-200d-2642-fe0f",shortnames:[":man_getting_haircut_medium_light_skin_tone:"],category:"people"},":man_getting_haircut_tone3:":{uc_base:"1f487-1f3fd-2642",uc_full:"1f487-1f3fd-200d-2642-fe0f",shortnames:[":man_getting_haircut_medium_skin_tone:"],category:"people"},":man_getting_haircut_tone4:":{uc_base:"1f487-1f3fe-2642",uc_full:"1f487-1f3fe-200d-2642-fe0f",shortnames:[":man_getting_haircut_medium_dark_skin_tone:"],category:"people"},":man_getting_haircut_tone5:":{uc_base:"1f487-1f3ff-2642",uc_full:"1f487-1f3ff-200d-2642-fe0f",shortnames:[":man_getting_haircut_dark_skin_tone:"],category:"people"},":man_golfing_tone1:":{uc_base:"1f3cc-1f3fb-2642",uc_full:"1f3cc-1f3fb-200d-2642-fe0f",shortnames:[":man_golfing_light_skin_tone:"],category:"activity"},":man_golfing_tone2:":{uc_base:"1f3cc-1f3fc-2642",uc_full:"1f3cc-1f3fc-200d-2642-fe0f",shortnames:[":man_golfing_medium_light_skin_tone:"],category:"activity"},":man_golfing_tone3:":{uc_base:"1f3cc-1f3fd-2642",uc_full:"1f3cc-1f3fd-200d-2642-fe0f",shortnames:[":man_golfing_medium_skin_tone:"],category:"activity"},":man_golfing_tone4:":{uc_base:"1f3cc-1f3fe-2642",uc_full:"1f3cc-1f3fe-200d-2642-fe0f",shortnames:[":man_golfing_medium_dark_skin_tone:"],category:"activity"},":man_golfing_tone5:":{uc_base:"1f3cc-1f3ff-2642",uc_full:"1f3cc-1f3ff-200d-2642-fe0f",shortnames:[":man_golfing_dark_skin_tone:"],category:"activity"},":man_guard_tone1:":{uc_base:"1f482-1f3fb-2642",uc_full:"1f482-1f3fb-200d-2642-fe0f",shortnames:[":man_guard_light_skin_tone:"],category:"people"},":man_guard_tone2:":{uc_base:"1f482-1f3fc-2642",uc_full:"1f482-1f3fc-200d-2642-fe0f",shortnames:[":man_guard_medium_light_skin_tone:"],category:"people"},":man_guard_tone3:":{uc_base:"1f482-1f3fd-2642",uc_full:"1f482-1f3fd-200d-2642-fe0f",shortnames:[":man_guard_medium_skin_tone:"],category:"people"},":man_guard_tone4:":{uc_base:"1f482-1f3fe-2642",uc_full:"1f482-1f3fe-200d-2642-fe0f",shortnames:[":man_guard_medium_dark_skin_tone:"],category:"people"},":man_guard_tone5:":{uc_base:"1f482-1f3ff-2642",uc_full:"1f482-1f3ff-200d-2642-fe0f",shortnames:[":man_guard_dark_skin_tone:"],category:"people"},":man_health_worker_tone1:":{uc_base:"1f468-1f3fb-2695",uc_full:"1f468-1f3fb-200d-2695-fe0f",shortnames:[":man_health_worker_light_skin_tone:"],category:"people"},":man_health_worker_tone2:":{uc_base:"1f468-1f3fc-2695",uc_full:"1f468-1f3fc-200d-2695-fe0f",shortnames:[":man_health_worker_medium_light_skin_tone:"],category:"people"},":man_health_worker_tone3:":{uc_base:"1f468-1f3fd-2695",uc_full:"1f468-1f3fd-200d-2695-fe0f",shortnames:[":man_health_worker_medium_skin_tone:"],category:"people"},":man_health_worker_tone4:":{uc_base:"1f468-1f3fe-2695",uc_full:"1f468-1f3fe-200d-2695-fe0f",shortnames:[":man_health_worker_medium_dark_skin_tone:"],category:"people"},":man_health_worker_tone5:":{uc_base:"1f468-1f3ff-2695",uc_full:"1f468-1f3ff-200d-2695-fe0f",shortnames:[":man_health_worker_dark_skin_tone:"],category:"people"},":man_in_lotus_position_tone1:":{uc_base:"1f9d8-1f3fb-2642",uc_full:"1f9d8-1f3fb-200d-2642-fe0f",shortnames:[":man_in_lotus_position_light_skin_tone:"],category:"activity"},":man_in_lotus_position_tone2:":{uc_base:"1f9d8-1f3fc-2642",uc_full:"1f9d8-1f3fc-200d-2642-fe0f",shortnames:[":man_in_lotus_position_medium_light_skin_tone:"],category:"activity"},":man_in_lotus_position_tone3:":{uc_base:"1f9d8-1f3fd-2642",uc_full:"1f9d8-1f3fd-200d-2642-fe0f",shortnames:[":man_in_lotus_position_medium_skin_tone:"],category:"activity"},":man_in_lotus_position_tone4:":{uc_base:"1f9d8-1f3fe-2642",uc_full:"1f9d8-1f3fe-200d-2642-fe0f",shortnames:[":man_in_lotus_position_medium_dark_skin_tone:"],category:"activity"},":man_in_lotus_position_tone5:":{uc_base:"1f9d8-1f3ff-2642",uc_full:"1f9d8-1f3ff-200d-2642-fe0f",shortnames:[":man_in_lotus_position_dark_skin_tone:"],category:"activity"},":man_in_steamy_room_tone1:":{uc_base:"1f9d6-1f3fb-2642",uc_full:"1f9d6-1f3fb-200d-2642-fe0f",shortnames:[":man_in_steamy_room_light_skin_tone:"],category:"people"},":man_in_steamy_room_tone2:":{uc_base:"1f9d6-1f3fc-2642",uc_full:"1f9d6-1f3fc-200d-2642-fe0f",shortnames:[":man_in_steamy_room_medium_light_skin_tone:"],category:"people"},":man_in_steamy_room_tone3:":{uc_base:"1f9d6-1f3fd-2642",uc_full:"1f9d6-1f3fd-200d-2642-fe0f",shortnames:[":man_in_steamy_room_medium_skin_tone:"],category:"people"},":man_in_steamy_room_tone4:":{uc_base:"1f9d6-1f3fe-2642",uc_full:"1f9d6-1f3fe-200d-2642-fe0f",shortnames:[":man_in_steamy_room_medium_dark_skin_tone:"],category:"people"},":man_in_steamy_room_tone5:":{uc_base:"1f9d6-1f3ff-2642",uc_full:"1f9d6-1f3ff-200d-2642-fe0f",shortnames:[":man_in_steamy_room_dark_skin_tone:"],category:"people"},":man_in_tuxedo_tone1:":{uc_base:"1f935-1f3fb-2642",uc_full:"1f935-1f3fb-200d-2642-fe0f",shortnames:[":man_in_tuxedo_light_skin_tone:"],category:"people"},":man_in_tuxedo_tone2:":{uc_base:"1f935-1f3fc-2642",uc_full:"1f935-1f3fc-200d-2642-fe0f",shortnames:[":man_in_tuxedo_medium_light_skin_tone:"],category:"people"},":man_in_tuxedo_tone3:":{uc_base:"1f935-1f3fd-2642",uc_full:"1f935-1f3fd-200d-2642-fe0f",shortnames:[":man_in_tuxedo_medium_skin_tone:"],category:"people"},":man_in_tuxedo_tone4:":{uc_base:"1f935-1f3fe-2642",uc_full:"1f935-1f3fe-200d-2642-fe0f",shortnames:[":man_in_tuxedo_medium_dark_skin_tone:"],category:"people"},":man_in_tuxedo_tone5:":{uc_base:"1f935-1f3ff-2642",uc_full:"1f935-1f3ff-200d-2642-fe0f",shortnames:[":man_in_tuxedo_dark_skin_tone:"],category:"people"},":man_judge_tone1:":{uc_base:"1f468-1f3fb-2696",uc_full:"1f468-1f3fb-200d-2696-fe0f",shortnames:[":man_judge_light_skin_tone:"],category:"people"},":man_judge_tone2:":{uc_base:"1f468-1f3fc-2696",uc_full:"1f468-1f3fc-200d-2696-fe0f",shortnames:[":man_judge_medium_light_skin_tone:"],category:"people"},":man_judge_tone3:":{uc_base:"1f468-1f3fd-2696",uc_full:"1f468-1f3fd-200d-2696-fe0f",shortnames:[":man_judge_medium_skin_tone:"],category:"people"},":man_judge_tone4:":{uc_base:"1f468-1f3fe-2696",uc_full:"1f468-1f3fe-200d-2696-fe0f",shortnames:[":man_judge_medium_dark_skin_tone:"],category:"people"},":man_judge_tone5:":{uc_base:"1f468-1f3ff-2696",uc_full:"1f468-1f3ff-200d-2696-fe0f",shortnames:[":man_judge_dark_skin_tone:"],category:"people"},":man_juggling_tone1:":{uc_base:"1f939-1f3fb-2642",uc_full:"1f939-1f3fb-200d-2642-fe0f",shortnames:[":man_juggling_light_skin_tone:"],category:"activity"},":man_juggling_tone2:":{uc_base:"1f939-1f3fc-2642",uc_full:"1f939-1f3fc-200d-2642-fe0f",shortnames:[":man_juggling_medium_light_skin_tone:"],category:"activity"},":man_juggling_tone3:":{uc_base:"1f939-1f3fd-2642",uc_full:"1f939-1f3fd-200d-2642-fe0f",shortnames:[":man_juggling_medium_skin_tone:"],category:"activity"},":man_juggling_tone4:":{uc_base:"1f939-1f3fe-2642",uc_full:"1f939-1f3fe-200d-2642-fe0f",shortnames:[":man_juggling_medium_dark_skin_tone:"],category:"activity"},":man_juggling_tone5:":{uc_base:"1f939-1f3ff-2642",uc_full:"1f939-1f3ff-200d-2642-fe0f",shortnames:[":man_juggling_dark_skin_tone:"],category:"activity"},":man_kneeling_tone1:":{uc_base:"1f9ce-1f3fb-2642",uc_full:"1f9ce-1f3fb-200d-2642-fe0f",shortnames:[":man_kneeling_light_skin_tone:"],category:"people"},":man_kneeling_tone2:":{uc_base:"1f9ce-1f3fc-2642",uc_full:"1f9ce-1f3fc-200d-2642-fe0f",shortnames:[":man_kneeling_medium_light_skin_tone:"],category:"people"},":man_kneeling_tone3:":{uc_base:"1f9ce-1f3fd-2642",uc_full:"1f9ce-1f3fd-200d-2642-fe0f",shortnames:[":man_kneeling_medium_skin_tone:"],category:"people"},":man_kneeling_tone4:":{uc_base:"1f9ce-1f3fe-2642",uc_full:"1f9ce-1f3fe-200d-2642-fe0f",shortnames:[":man_kneeling_medium_dark_skin_tone:"],category:"people"},":man_kneeling_tone5:":{uc_base:"1f9ce-1f3ff-2642",uc_full:"1f9ce-1f3ff-200d-2642-fe0f",shortnames:[":man_kneeling_dark_skin_tone:"],category:"people"},":man_lifting_weights_tone1:":{uc_base:"1f3cb-1f3fb-2642",uc_full:"1f3cb-1f3fb-200d-2642-fe0f",shortnames:[":man_lifting_weights_light_skin_tone:"],category:"activity"},":man_lifting_weights_tone2:":{uc_base:"1f3cb-1f3fc-2642",uc_full:"1f3cb-1f3fc-200d-2642-fe0f",shortnames:[":man_lifting_weights_medium_light_skin_tone:"],category:"activity"},":man_lifting_weights_tone3:":{uc_base:"1f3cb-1f3fd-2642",uc_full:"1f3cb-1f3fd-200d-2642-fe0f",shortnames:[":man_lifting_weights_medium_skin_tone:"],category:"activity"},":man_lifting_weights_tone4:":{uc_base:"1f3cb-1f3fe-2642",uc_full:"1f3cb-1f3fe-200d-2642-fe0f",shortnames:[":man_lifting_weights_medium_dark_skin_tone:"],category:"activity"},":man_lifting_weights_tone5:":{uc_base:"1f3cb-1f3ff-2642",uc_full:"1f3cb-1f3ff-200d-2642-fe0f",shortnames:[":man_lifting_weights_dark_skin_tone:"],category:"activity"},":man_mage_tone1:":{uc_base:"1f9d9-1f3fb-2642",uc_full:"1f9d9-1f3fb-200d-2642-fe0f",shortnames:[":man_mage_light_skin_tone:"],category:"people"},":man_mage_tone2:":{uc_base:"1f9d9-1f3fc-2642",uc_full:"1f9d9-1f3fc-200d-2642-fe0f",shortnames:[":man_mage_medium_light_skin_tone:"],category:"people"},":man_mage_tone3:":{uc_base:"1f9d9-1f3fd-2642",uc_full:"1f9d9-1f3fd-200d-2642-fe0f",shortnames:[":man_mage_medium_skin_tone:"],category:"people"},":man_mage_tone4:":{uc_base:"1f9d9-1f3fe-2642",uc_full:"1f9d9-1f3fe-200d-2642-fe0f",shortnames:[":man_mage_medium_dark_skin_tone:"],category:"people"},":man_mage_tone5:":{uc_base:"1f9d9-1f3ff-2642",uc_full:"1f9d9-1f3ff-200d-2642-fe0f",shortnames:[":man_mage_dark_skin_tone:"],category:"people"},":man_mountain_biking_tone1:":{uc_base:"1f6b5-1f3fb-2642",uc_full:"1f6b5-1f3fb-200d-2642-fe0f",shortnames:[":man_mountain_biking_light_skin_tone:"],category:"activity"},":man_mountain_biking_tone2:":{uc_base:"1f6b5-1f3fc-2642",uc_full:"1f6b5-1f3fc-200d-2642-fe0f",shortnames:[":man_mountain_biking_medium_light_skin_tone:"],category:"activity"},":man_mountain_biking_tone3:":{uc_base:"1f6b5-1f3fd-2642",uc_full:"1f6b5-1f3fd-200d-2642-fe0f",shortnames:[":man_mountain_biking_medium_skin_tone:"],category:"activity"},":man_mountain_biking_tone4:":{uc_base:"1f6b5-1f3fe-2642",uc_full:"1f6b5-1f3fe-200d-2642-fe0f",shortnames:[":man_mountain_biking_medium_dark_skin_tone:"],category:"activity"},":man_mountain_biking_tone5:":{uc_base:"1f6b5-1f3ff-2642",uc_full:"1f6b5-1f3ff-200d-2642-fe0f",shortnames:[":man_mountain_biking_dark_skin_tone:"],category:"activity"},":man_pilot_tone1:":{uc_base:"1f468-1f3fb-2708",uc_full:"1f468-1f3fb-200d-2708-fe0f",shortnames:[":man_pilot_light_skin_tone:"],category:"people"},":man_pilot_tone2:":{uc_base:"1f468-1f3fc-2708",uc_full:"1f468-1f3fc-200d-2708-fe0f",shortnames:[":man_pilot_medium_light_skin_tone:"],category:"people"},":man_pilot_tone3:":{uc_base:"1f468-1f3fd-2708",uc_full:"1f468-1f3fd-200d-2708-fe0f",shortnames:[":man_pilot_medium_skin_tone:"],category:"people"},":man_pilot_tone4:":{uc_base:"1f468-1f3fe-2708",uc_full:"1f468-1f3fe-200d-2708-fe0f",shortnames:[":man_pilot_medium_dark_skin_tone:"],category:"people"},":man_pilot_tone5:":{uc_base:"1f468-1f3ff-2708",uc_full:"1f468-1f3ff-200d-2708-fe0f",shortnames:[":man_pilot_dark_skin_tone:"],category:"people"},":man_playing_handball_tone1:":{uc_base:"1f93e-1f3fb-2642",uc_full:"1f93e-1f3fb-200d-2642-fe0f",shortnames:[":man_playing_handball_light_skin_tone:"],category:"activity"},":man_playing_handball_tone2:":{uc_base:"1f93e-1f3fc-2642",uc_full:"1f93e-1f3fc-200d-2642-fe0f",shortnames:[":man_playing_handball_medium_light_skin_tone:"],category:"activity"},":man_playing_handball_tone3:":{uc_base:"1f93e-1f3fd-2642",uc_full:"1f93e-1f3fd-200d-2642-fe0f",shortnames:[":man_playing_handball_medium_skin_tone:"],category:"activity"},":man_playing_handball_tone4:":{uc_base:"1f93e-1f3fe-2642",uc_full:"1f93e-1f3fe-200d-2642-fe0f",shortnames:[":man_playing_handball_medium_dark_skin_tone:"],category:"activity"},":man_playing_handball_tone5:":{uc_base:"1f93e-1f3ff-2642",uc_full:"1f93e-1f3ff-200d-2642-fe0f",shortnames:[":man_playing_handball_dark_skin_tone:"],category:"activity"},":man_playing_water_polo_tone1:":{uc_base:"1f93d-1f3fb-2642",uc_full:"1f93d-1f3fb-200d-2642-fe0f",shortnames:[":man_playing_water_polo_light_skin_tone:"],category:"activity"},":man_playing_water_polo_tone2:":{uc_base:"1f93d-1f3fc-2642",uc_full:"1f93d-1f3fc-200d-2642-fe0f",shortnames:[":man_playing_water_polo_medium_light_skin_tone:"],category:"activity"},":man_playing_water_polo_tone3:":{uc_base:"1f93d-1f3fd-2642",uc_full:"1f93d-1f3fd-200d-2642-fe0f",shortnames:[":man_playing_water_polo_medium_skin_tone:"],category:"activity"},":man_playing_water_polo_tone4:":{uc_base:"1f93d-1f3fe-2642",uc_full:"1f93d-1f3fe-200d-2642-fe0f",shortnames:[":man_playing_water_polo_medium_dark_skin_tone:"],category:"activity"},":man_playing_water_polo_tone5:":{uc_base:"1f93d-1f3ff-2642",uc_full:"1f93d-1f3ff-200d-2642-fe0f",shortnames:[":man_playing_water_polo_dark_skin_tone:"],category:"activity"},":man_police_officer_tone1:":{uc_base:"1f46e-1f3fb-2642",uc_full:"1f46e-1f3fb-200d-2642-fe0f",shortnames:[":man_police_officer_light_skin_tone:"],category:"people"},":man_police_officer_tone2:":{uc_base:"1f46e-1f3fc-2642",uc_full:"1f46e-1f3fc-200d-2642-fe0f",shortnames:[":man_police_officer_medium_light_skin_tone:"],category:"people"},":man_police_officer_tone3:":{uc_base:"1f46e-1f3fd-2642",uc_full:"1f46e-1f3fd-200d-2642-fe0f",shortnames:[":man_police_officer_medium_skin_tone:"],category:"people"},":man_police_officer_tone4:":{uc_base:"1f46e-1f3fe-2642",uc_full:"1f46e-1f3fe-200d-2642-fe0f",shortnames:[":man_police_officer_medium_dark_skin_tone:"],category:"people"},":man_police_officer_tone5:":{uc_base:"1f46e-1f3ff-2642",uc_full:"1f46e-1f3ff-200d-2642-fe0f",shortnames:[":man_police_officer_dark_skin_tone:"],category:"people"},":man_pouting_tone1:":{uc_base:"1f64e-1f3fb-2642",uc_full:"1f64e-1f3fb-200d-2642-fe0f",shortnames:[":man_pouting_light_skin_tone:"],category:"people"},":man_pouting_tone2:":{uc_base:"1f64e-1f3fc-2642",uc_full:"1f64e-1f3fc-200d-2642-fe0f",shortnames:[":man_pouting_medium_light_skin_tone:"],category:"people"},":man_pouting_tone3:":{uc_base:"1f64e-1f3fd-2642",uc_full:"1f64e-1f3fd-200d-2642-fe0f",shortnames:[":man_pouting_medium_skin_tone:"],category:"people"},":man_pouting_tone4:":{uc_base:"1f64e-1f3fe-2642",uc_full:"1f64e-1f3fe-200d-2642-fe0f",shortnames:[":man_pouting_medium_dark_skin_tone:"],category:"people"},":man_pouting_tone5:":{uc_base:"1f64e-1f3ff-2642",uc_full:"1f64e-1f3ff-200d-2642-fe0f",shortnames:[":man_pouting_dark_skin_tone:"],category:"people"},":man_raising_hand_tone1:":{uc_base:"1f64b-1f3fb-2642",uc_full:"1f64b-1f3fb-200d-2642-fe0f",shortnames:[":man_raising_hand_light_skin_tone:"],category:"people"},":man_raising_hand_tone2:":{uc_base:"1f64b-1f3fc-2642",uc_full:"1f64b-1f3fc-200d-2642-fe0f",shortnames:[":man_raising_hand_medium_light_skin_tone:"],category:"people"},":man_raising_hand_tone3:":{uc_base:"1f64b-1f3fd-2642",uc_full:"1f64b-1f3fd-200d-2642-fe0f",shortnames:[":man_raising_hand_medium_skin_tone:"],category:"people"},":man_raising_hand_tone4:":{uc_base:"1f64b-1f3fe-2642",uc_full:"1f64b-1f3fe-200d-2642-fe0f",shortnames:[":man_raising_hand_medium_dark_skin_tone:"],category:"people"},":man_raising_hand_tone5:":{uc_base:"1f64b-1f3ff-2642",uc_full:"1f64b-1f3ff-200d-2642-fe0f",shortnames:[":man_raising_hand_dark_skin_tone:"],category:"people"},":man_rowing_boat_tone1:":{uc_base:"1f6a3-1f3fb-2642",uc_full:"1f6a3-1f3fb-200d-2642-fe0f",shortnames:[":man_rowing_boat_light_skin_tone:"],category:"activity"},":man_rowing_boat_tone2:":{uc_base:"1f6a3-1f3fc-2642",uc_full:"1f6a3-1f3fc-200d-2642-fe0f",shortnames:[":man_rowing_boat_medium_light_skin_tone:"],category:"activity"},":man_rowing_boat_tone3:":{uc_base:"1f6a3-1f3fd-2642",uc_full:"1f6a3-1f3fd-200d-2642-fe0f",shortnames:[":man_rowing_boat_medium_skin_tone:"],category:"activity"},":man_rowing_boat_tone4:":{uc_base:"1f6a3-1f3fe-2642",uc_full:"1f6a3-1f3fe-200d-2642-fe0f",shortnames:[":man_rowing_boat_medium_dark_skin_tone:"],category:"activity"},":man_rowing_boat_tone5:":{uc_base:"1f6a3-1f3ff-2642",uc_full:"1f6a3-1f3ff-200d-2642-fe0f",shortnames:[":man_rowing_boat_dark_skin_tone:"],category:"activity"},":man_running_tone1:":{uc_base:"1f3c3-1f3fb-2642",uc_full:"1f3c3-1f3fb-200d-2642-fe0f",shortnames:[":man_running_light_skin_tone:"],category:"people"},":man_running_tone2:":{uc_base:"1f3c3-1f3fc-2642",uc_full:"1f3c3-1f3fc-200d-2642-fe0f",shortnames:[":man_running_medium_light_skin_tone:"],category:"people"},":man_running_tone3:":{uc_base:"1f3c3-1f3fd-2642",uc_full:"1f3c3-1f3fd-200d-2642-fe0f",shortnames:[":man_running_medium_skin_tone:"],category:"people"},":man_running_tone4:":{uc_base:"1f3c3-1f3fe-2642",uc_full:"1f3c3-1f3fe-200d-2642-fe0f",shortnames:[":man_running_medium_dark_skin_tone:"],category:"people"},":man_running_tone5:":{uc_base:"1f3c3-1f3ff-2642",uc_full:"1f3c3-1f3ff-200d-2642-fe0f",shortnames:[":man_running_dark_skin_tone:"],category:"people"},":man_shrugging_tone1:":{uc_base:"1f937-1f3fb-2642",uc_full:"1f937-1f3fb-200d-2642-fe0f",shortnames:[":man_shrugging_light_skin_tone:"],category:"people"},":man_shrugging_tone2:":{uc_base:"1f937-1f3fc-2642",uc_full:"1f937-1f3fc-200d-2642-fe0f",shortnames:[":man_shrugging_medium_light_skin_tone:"],category:"people"},":man_shrugging_tone3:":{uc_base:"1f937-1f3fd-2642",uc_full:"1f937-1f3fd-200d-2642-fe0f",shortnames:[":man_shrugging_medium_skin_tone:"],category:"people"},":man_shrugging_tone4:":{uc_base:"1f937-1f3fe-2642",uc_full:"1f937-1f3fe-200d-2642-fe0f",shortnames:[":man_shrugging_medium_dark_skin_tone:"],category:"people"},":man_shrugging_tone5:":{uc_base:"1f937-1f3ff-2642",uc_full:"1f937-1f3ff-200d-2642-fe0f",shortnames:[":man_shrugging_dark_skin_tone:"],category:"people"},":man_standing_tone1:":{uc_base:"1f9cd-1f3fb-2642",uc_full:"1f9cd-1f3fb-200d-2642-fe0f",shortnames:[":man_standing_light_skin_tone:"],category:"people"},":man_standing_tone2:":{uc_base:"1f9cd-1f3fc-2642",uc_full:"1f9cd-1f3fc-200d-2642-fe0f",shortnames:[":man_standing_medium_light_skin_tone:"],category:"people"},":man_standing_tone3:":{uc_base:"1f9cd-1f3fd-2642",uc_full:"1f9cd-1f3fd-200d-2642-fe0f",shortnames:[":man_standing_medium_skin_tone:"],category:"people"},":man_standing_tone4:":{uc_base:"1f9cd-1f3fe-2642",uc_full:"1f9cd-1f3fe-200d-2642-fe0f",shortnames:[":man_standing_medium_dark_skin_tone:"],category:"people"},":man_standing_tone5:":{uc_base:"1f9cd-1f3ff-2642",uc_full:"1f9cd-1f3ff-200d-2642-fe0f",shortnames:[":man_standing_dark_skin_tone:"],category:"people"},":man_superhero_tone1:":{uc_base:"1f9b8-1f3fb-2642",uc_full:"1f9b8-1f3fb-200d-2642-fe0f",shortnames:[":man_superhero_light_skin_tone:"],category:"people"},":man_superhero_tone2:":{uc_base:"1f9b8-1f3fc-2642",uc_full:"1f9b8-1f3fc-200d-2642-fe0f",shortnames:[":man_superhero_medium_light_skin_tone:"],category:"people"},":man_superhero_tone3:":{uc_base:"1f9b8-1f3fd-2642",uc_full:"1f9b8-1f3fd-200d-2642-fe0f",shortnames:[":man_superhero_medium_skin_tone:"],category:"people"},":man_superhero_tone4:":{uc_base:"1f9b8-1f3fe-2642",uc_full:"1f9b8-1f3fe-200d-2642-fe0f",shortnames:[":man_superhero_medium_dark_skin_tone:"],category:"people"},":man_superhero_tone5:":{uc_base:"1f9b8-1f3ff-2642",uc_full:"1f9b8-1f3ff-200d-2642-fe0f",shortnames:[":man_superhero_dark_skin_tone:"],category:"people"},":man_supervillain_tone1:":{uc_base:"1f9b9-1f3fb-2642",uc_full:"1f9b9-1f3fb-200d-2642-fe0f",shortnames:[":man_supervillain_light_skin_tone:"],category:"people"},":man_supervillain_tone2:":{uc_base:"1f9b9-1f3fc-2642",uc_full:"1f9b9-1f3fc-200d-2642-fe0f",shortnames:[":man_supervillain_medium_light_skin_tone:"],category:"people"},":man_supervillain_tone3:":{uc_base:"1f9b9-1f3fd-2642",uc_full:"1f9b9-1f3fd-200d-2642-fe0f",shortnames:[":man_supervillain_medium_skin_tone:"],category:"people"},":man_supervillain_tone4:":{uc_base:"1f9b9-1f3fe-2642",uc_full:"1f9b9-1f3fe-200d-2642-fe0f",shortnames:[":man_supervillain_medium_dark_skin_tone:"],category:"people"},":man_supervillain_tone5:":{uc_base:"1f9b9-1f3ff-2642",uc_full:"1f9b9-1f3ff-200d-2642-fe0f",shortnames:[":man_supervillain_dark_skin_tone:"],category:"people"},":man_surfing_tone1:":{uc_base:"1f3c4-1f3fb-2642",uc_full:"1f3c4-1f3fb-200d-2642-fe0f",shortnames:[":man_surfing_light_skin_tone:"],category:"activity"},":man_surfing_tone2:":{uc_base:"1f3c4-1f3fc-2642",uc_full:"1f3c4-1f3fc-200d-2642-fe0f",shortnames:[":man_surfing_medium_light_skin_tone:"],category:"activity"},":man_surfing_tone3:":{uc_base:"1f3c4-1f3fd-2642",uc_full:"1f3c4-1f3fd-200d-2642-fe0f",shortnames:[":man_surfing_medium_skin_tone:"],category:"activity"},":man_surfing_tone4:":{uc_base:"1f3c4-1f3fe-2642",uc_full:"1f3c4-1f3fe-200d-2642-fe0f",shortnames:[":man_surfing_medium_dark_skin_tone:"],category:"activity"},":man_surfing_tone5:":{uc_base:"1f3c4-1f3ff-2642",uc_full:"1f3c4-1f3ff-200d-2642-fe0f",shortnames:[":man_surfing_dark_skin_tone:"],category:"activity"},":man_swimming_tone1:":{uc_base:"1f3ca-1f3fb-2642",uc_full:"1f3ca-1f3fb-200d-2642-fe0f",shortnames:[":man_swimming_light_skin_tone:"],category:"activity"},":man_swimming_tone2:":{uc_base:"1f3ca-1f3fc-2642",uc_full:"1f3ca-1f3fc-200d-2642-fe0f",shortnames:[":man_swimming_medium_light_skin_tone:"],category:"activity"},":man_swimming_tone3:":{uc_base:"1f3ca-1f3fd-2642",uc_full:"1f3ca-1f3fd-200d-2642-fe0f",shortnames:[":man_swimming_medium_skin_tone:"],category:"activity"},":man_swimming_tone4:":{uc_base:"1f3ca-1f3fe-2642",uc_full:"1f3ca-1f3fe-200d-2642-fe0f",shortnames:[":man_swimming_medium_dark_skin_tone:"],category:"activity"},":man_swimming_tone5:":{uc_base:"1f3ca-1f3ff-2642",uc_full:"1f3ca-1f3ff-200d-2642-fe0f",shortnames:[":man_swimming_dark_skin_tone:"],category:"activity"},":man_tipping_hand_tone1:":{uc_base:"1f481-1f3fb-2642",uc_full:"1f481-1f3fb-200d-2642-fe0f",shortnames:[":man_tipping_hand_light_skin_tone:"],category:"people"},":man_tipping_hand_tone2:":{uc_base:"1f481-1f3fc-2642",uc_full:"1f481-1f3fc-200d-2642-fe0f",shortnames:[":man_tipping_hand_medium_light_skin_tone:"],category:"people"},":man_tipping_hand_tone3:":{uc_base:"1f481-1f3fd-2642",uc_full:"1f481-1f3fd-200d-2642-fe0f",shortnames:[":man_tipping_hand_medium_skin_tone:"],category:"people"},":man_tipping_hand_tone4:":{uc_base:"1f481-1f3fe-2642",uc_full:"1f481-1f3fe-200d-2642-fe0f",shortnames:[":man_tipping_hand_medium_dark_skin_tone:"],category:"people"},":man_tipping_hand_tone5:":{uc_base:"1f481-1f3ff-2642",uc_full:"1f481-1f3ff-200d-2642-fe0f",shortnames:[":man_tipping_hand_dark_skin_tone:"],category:"people"},":man_tone1_beard:":{uc_base:"1f9d4-1f3fb-2642",uc_full:"1f9d4-1f3fb-200d-2642-fe0f",shortnames:[":man_light_skin_tone_beard:"],category:"people"},":man_tone2_beard:":{uc_base:"1f9d4-1f3fc-2642",uc_full:"1f9d4-1f3fc-200d-2642-fe0f",shortnames:[":man_medium_light_skin_tone_beard:"],category:"people"},":man_tone3_beard:":{uc_base:"1f9d4-1f3fd-2642",uc_full:"1f9d4-1f3fd-200d-2642-fe0f",shortnames:[":man_medium_skin_tone_beard:"],category:"people"},":man_tone4_beard:":{uc_base:"1f9d4-1f3fe-2642",uc_full:"1f9d4-1f3fe-200d-2642-fe0f",shortnames:[":man_medium_dark_skin_tone_beard:"],category:"people"},":man_tone5_beard:":{uc_base:"1f9d4-1f3ff-2642",uc_full:"1f9d4-1f3ff-200d-2642-fe0f",shortnames:[":man_dark_skin_tone_beard:"],category:"people"},":man_vampire_tone1:":{uc_base:"1f9db-1f3fb-2642",uc_full:"1f9db-1f3fb-200d-2642-fe0f",shortnames:[":man_vampire_light_skin_tone:"],category:"people"},":man_vampire_tone2:":{uc_base:"1f9db-1f3fc-2642",uc_full:"1f9db-1f3fc-200d-2642-fe0f",shortnames:[":man_vampire_medium_light_skin_tone:"],category:"people"},":man_vampire_tone3:":{uc_base:"1f9db-1f3fd-2642",uc_full:"1f9db-1f3fd-200d-2642-fe0f",shortnames:[":man_vampire_medium_skin_tone:"],category:"people"},":man_vampire_tone4:":{uc_base:"1f9db-1f3fe-2642",uc_full:"1f9db-1f3fe-200d-2642-fe0f",shortnames:[":man_vampire_medium_dark_skin_tone:"],category:"people"},":man_vampire_tone5:":{uc_base:"1f9db-1f3ff-2642",uc_full:"1f9db-1f3ff-200d-2642-fe0f",shortnames:[":man_vampire_dark_skin_tone:"],category:"people"},":man_walking_tone1:":{uc_base:"1f6b6-1f3fb-2642",uc_full:"1f6b6-1f3fb-200d-2642-fe0f",shortnames:[":man_walking_light_skin_tone:"],category:"people"},":man_walking_tone2:":{uc_base:"1f6b6-1f3fc-2642",uc_full:"1f6b6-1f3fc-200d-2642-fe0f",shortnames:[":man_walking_medium_light_skin_tone:"],category:"people"},":man_walking_tone3:":{uc_base:"1f6b6-1f3fd-2642",uc_full:"1f6b6-1f3fd-200d-2642-fe0f",shortnames:[":man_walking_medium_skin_tone:"],category:"people"},":man_walking_tone4:":{uc_base:"1f6b6-1f3fe-2642",uc_full:"1f6b6-1f3fe-200d-2642-fe0f",shortnames:[":man_walking_medium_dark_skin_tone:"],category:"people"},":man_walking_tone5:":{uc_base:"1f6b6-1f3ff-2642",uc_full:"1f6b6-1f3ff-200d-2642-fe0f",shortnames:[":man_walking_dark_skin_tone:"],category:"people"},":man_wearing_turban_tone1:":{uc_base:"1f473-1f3fb-2642",uc_full:"1f473-1f3fb-200d-2642-fe0f",shortnames:[":man_wearing_turban_light_skin_tone:"],category:"people"},":man_wearing_turban_tone2:":{uc_base:"1f473-1f3fc-2642",uc_full:"1f473-1f3fc-200d-2642-fe0f",shortnames:[":man_wearing_turban_medium_light_skin_tone:"],category:"people"},":man_wearing_turban_tone3:":{uc_base:"1f473-1f3fd-2642",uc_full:"1f473-1f3fd-200d-2642-fe0f",shortnames:[":man_wearing_turban_medium_skin_tone:"],category:"people"},":man_wearing_turban_tone4:":{uc_base:"1f473-1f3fe-2642",uc_full:"1f473-1f3fe-200d-2642-fe0f",shortnames:[":man_wearing_turban_medium_dark_skin_tone:"],category:"people"},":man_wearing_turban_tone5:":{uc_base:"1f473-1f3ff-2642",uc_full:"1f473-1f3ff-200d-2642-fe0f",shortnames:[":man_wearing_turban_dark_skin_tone:"],category:"people"},":man_with_veil_tone1:":{uc_base:"1f470-1f3fb-2642",uc_full:"1f470-1f3fb-200d-2642-fe0f",shortnames:[":man_with_veil_light_skin_tone:"],category:"people"},":man_with_veil_tone2:":{uc_base:"1f470-1f3fc-2642",uc_full:"1f470-1f3fc-200d-2642-fe0f",shortnames:[":man_with_veil_medium_light_skin_tone:"],category:"people"},":man_with_veil_tone3:":{uc_base:"1f470-1f3fd-2642",uc_full:"1f470-1f3fd-200d-2642-fe0f",shortnames:[":man_with_veil_medium_skin_tone:"],category:"people"},":man_with_veil_tone4:":{uc_base:"1f470-1f3fe-2642",uc_full:"1f470-1f3fe-200d-2642-fe0f",shortnames:[":man_with_veil_medium_dark_skin_tone:"],category:"people"},":man_with_veil_tone5:":{uc_base:"1f470-1f3ff-2642",uc_full:"1f470-1f3ff-200d-2642-fe0f",shortnames:[":man_with_veil_dark_skin_tone:"],category:"people"},":mermaid_tone1:":{uc_base:"1f9dc-1f3fb-2640",uc_full:"1f9dc-1f3fb-200d-2640-fe0f",shortnames:[":mermaid_light_skin_tone:"],category:"people"},":mermaid_tone2:":{uc_base:"1f9dc-1f3fc-2640",uc_full:"1f9dc-1f3fc-200d-2640-fe0f",shortnames:[":mermaid_medium_light_skin_tone:"],category:"people"},":mermaid_tone3:":{uc_base:"1f9dc-1f3fd-2640",uc_full:"1f9dc-1f3fd-200d-2640-fe0f",shortnames:[":mermaid_medium_skin_tone:"],category:"people"},":mermaid_tone4:":{uc_base:"1f9dc-1f3fe-2640",uc_full:"1f9dc-1f3fe-200d-2640-fe0f",shortnames:[":mermaid_medium_dark_skin_tone:"],category:"people"},":mermaid_tone5:":{uc_base:"1f9dc-1f3ff-2640",uc_full:"1f9dc-1f3ff-200d-2640-fe0f",shortnames:[":mermaid_dark_skin_tone:"],category:"people"},":merman_tone1:":{uc_base:"1f9dc-1f3fb-2642",uc_full:"1f9dc-1f3fb-200d-2642-fe0f",shortnames:[":merman_light_skin_tone:"],category:"people"},":merman_tone2:":{uc_base:"1f9dc-1f3fc-2642",uc_full:"1f9dc-1f3fc-200d-2642-fe0f",shortnames:[":merman_medium_light_skin_tone:"],category:"people"},":merman_tone3:":{uc_base:"1f9dc-1f3fd-2642",uc_full:"1f9dc-1f3fd-200d-2642-fe0f",shortnames:[":merman_medium_skin_tone:"],category:"people"},":merman_tone4:":{uc_base:"1f9dc-1f3fe-2642",uc_full:"1f9dc-1f3fe-200d-2642-fe0f",shortnames:[":merman_medium_dark_skin_tone:"],category:"people"},":merman_tone5:":{uc_base:"1f9dc-1f3ff-2642",uc_full:"1f9dc-1f3ff-200d-2642-fe0f",shortnames:[":merman_dark_skin_tone:"],category:"people"},":pilot_tone1:":{uc_base:"1f9d1-1f3fb-2708",uc_full:"1f9d1-1f3fb-200d-2708-fe0f",shortnames:[":pilot_light_skin_tone:"],category:"people"},":pilot_tone2:":{uc_base:"1f9d1-1f3fc-2708",uc_full:"1f9d1-1f3fc-200d-2708-fe0f",shortnames:[":pilot_medium_light_skin_tone:"],category:"people"},":pilot_tone3:":{uc_base:"1f9d1-1f3fd-2708",uc_full:"1f9d1-1f3fd-200d-2708-fe0f",shortnames:[":pilot_medium_skin_tone:"],category:"people"},":pilot_tone4:":{uc_base:"1f9d1-1f3fe-2708",uc_full:"1f9d1-1f3fe-200d-2708-fe0f",shortnames:[":pilot_medium_dark_skin_tone:"],category:"people"},":pilot_tone5:":{uc_base:"1f9d1-1f3ff-2708",uc_full:"1f9d1-1f3ff-200d-2708-fe0f",shortnames:[":pilot_dark_skin_tone:"],category:"people"},":woman_biking_tone1:":{uc_base:"1f6b4-1f3fb-2640",uc_full:"1f6b4-1f3fb-200d-2640-fe0f",shortnames:[":woman_biking_light_skin_tone:"],category:"activity"},":woman_biking_tone2:":{uc_base:"1f6b4-1f3fc-2640",uc_full:"1f6b4-1f3fc-200d-2640-fe0f",shortnames:[":woman_biking_medium_light_skin_tone:"],category:"activity"},":woman_biking_tone3:":{uc_base:"1f6b4-1f3fd-2640",uc_full:"1f6b4-1f3fd-200d-2640-fe0f",shortnames:[":woman_biking_medium_skin_tone:"],category:"activity"},":woman_biking_tone4:":{uc_base:"1f6b4-1f3fe-2640",uc_full:"1f6b4-1f3fe-200d-2640-fe0f",shortnames:[":woman_biking_medium_dark_skin_tone:"],category:"activity"},":woman_biking_tone5:":{uc_base:"1f6b4-1f3ff-2640",uc_full:"1f6b4-1f3ff-200d-2640-fe0f",shortnames:[":woman_biking_dark_skin_tone:"],category:"activity"},":woman_bowing_tone1:":{uc_base:"1f647-1f3fb-2640",uc_full:"1f647-1f3fb-200d-2640-fe0f",shortnames:[":woman_bowing_light_skin_tone:"],category:"people"},":woman_bowing_tone2:":{uc_base:"1f647-1f3fc-2640",uc_full:"1f647-1f3fc-200d-2640-fe0f",shortnames:[":woman_bowing_medium_light_skin_tone:"],category:"people"},":woman_bowing_tone3:":{uc_base:"1f647-1f3fd-2640",uc_full:"1f647-1f3fd-200d-2640-fe0f",shortnames:[":woman_bowing_medium_skin_tone:"],category:"people"},":woman_bowing_tone4:":{uc_base:"1f647-1f3fe-2640",uc_full:"1f647-1f3fe-200d-2640-fe0f",shortnames:[":woman_bowing_medium_dark_skin_tone:"],category:"people"},":woman_bowing_tone5:":{uc_base:"1f647-1f3ff-2640",uc_full:"1f647-1f3ff-200d-2640-fe0f",shortnames:[":woman_bowing_dark_skin_tone:"],category:"people"},":woman_cartwheeling_tone1:":{uc_base:"1f938-1f3fb-2640",uc_full:"1f938-1f3fb-200d-2640-fe0f",shortnames:[":woman_cartwheeling_light_skin_tone:"],category:"activity"},":woman_cartwheeling_tone2:":{uc_base:"1f938-1f3fc-2640",uc_full:"1f938-1f3fc-200d-2640-fe0f",shortnames:[":woman_cartwheeling_medium_light_skin_tone:"],category:"activity"},":woman_cartwheeling_tone3:":{uc_base:"1f938-1f3fd-2640",uc_full:"1f938-1f3fd-200d-2640-fe0f",shortnames:[":woman_cartwheeling_medium_skin_tone:"],category:"activity"},":woman_cartwheeling_tone4:":{uc_base:"1f938-1f3fe-2640",uc_full:"1f938-1f3fe-200d-2640-fe0f",shortnames:[":woman_cartwheeling_medium_dark_skin_tone:"],category:"activity"},":woman_cartwheeling_tone5:":{uc_base:"1f938-1f3ff-2640",uc_full:"1f938-1f3ff-200d-2640-fe0f",shortnames:[":woman_cartwheeling_dark_skin_tone:"],category:"activity"},":woman_climbing_tone1:":{uc_base:"1f9d7-1f3fb-2640",uc_full:"1f9d7-1f3fb-200d-2640-fe0f",shortnames:[":woman_climbing_light_skin_tone:"],category:"activity"},":woman_climbing_tone2:":{uc_base:"1f9d7-1f3fc-2640",uc_full:"1f9d7-1f3fc-200d-2640-fe0f",shortnames:[":woman_climbing_medium_light_skin_tone:"],category:"activity"},":woman_climbing_tone3:":{uc_base:"1f9d7-1f3fd-2640",uc_full:"1f9d7-1f3fd-200d-2640-fe0f",shortnames:[":woman_climbing_medium_skin_tone:"],category:"activity"},":woman_climbing_tone4:":{uc_base:"1f9d7-1f3fe-2640",uc_full:"1f9d7-1f3fe-200d-2640-fe0f",shortnames:[":woman_climbing_medium_dark_skin_tone:"],category:"activity"},":woman_climbing_tone5:":{uc_base:"1f9d7-1f3ff-2640",uc_full:"1f9d7-1f3ff-200d-2640-fe0f",shortnames:[":woman_climbing_dark_skin_tone:"],category:"activity"},":woman_construction_worker_tone1:":{uc_base:"1f477-1f3fb-2640",uc_full:"1f477-1f3fb-200d-2640-fe0f",shortnames:[":woman_construction_worker_light_skin_tone:"],category:"people"},":woman_construction_worker_tone2:":{uc_base:"1f477-1f3fc-2640",uc_full:"1f477-1f3fc-200d-2640-fe0f",shortnames:[":woman_construction_worker_medium_light_skin_tone:"],category:"people"},":woman_construction_worker_tone3:":{uc_base:"1f477-1f3fd-2640",uc_full:"1f477-1f3fd-200d-2640-fe0f",shortnames:[":woman_construction_worker_medium_skin_tone:"],category:"people"},":woman_construction_worker_tone4:":{uc_base:"1f477-1f3fe-2640",uc_full:"1f477-1f3fe-200d-2640-fe0f",shortnames:[":woman_construction_worker_medium_dark_skin_tone:"],category:"people"},":woman_construction_worker_tone5:":{uc_base:"1f477-1f3ff-2640",uc_full:"1f477-1f3ff-200d-2640-fe0f",shortnames:[":woman_construction_worker_dark_skin_tone:"],category:"people"},":woman_detective_tone1:":{uc_base:"1f575-1f3fb-2640",uc_full:"1f575-1f3fb-200d-2640-fe0f",shortnames:[":woman_detective_light_skin_tone:"],category:"people"},":woman_detective_tone2:":{uc_base:"1f575-1f3fc-2640",uc_full:"1f575-1f3fc-200d-2640-fe0f",shortnames:[":woman_detective_medium_light_skin_tone:"],category:"people"},":woman_detective_tone3:":{uc_base:"1f575-1f3fd-2640",uc_full:"1f575-1f3fd-200d-2640-fe0f",shortnames:[":woman_detective_medium_skin_tone:"],category:"people"},":woman_detective_tone4:":{uc_base:"1f575-1f3fe-2640",uc_full:"1f575-1f3fe-200d-2640-fe0f",shortnames:[":woman_detective_medium_dark_skin_tone:"],category:"people"},":woman_detective_tone5:":{uc_base:"1f575-1f3ff-2640",uc_full:"1f575-1f3ff-200d-2640-fe0f",shortnames:[":woman_detective_dark_skin_tone:"],category:"people"},":woman_elf_tone1:":{uc_base:"1f9dd-1f3fb-2640",uc_full:"1f9dd-1f3fb-200d-2640-fe0f",shortnames:[":woman_elf_light_skin_tone:"],category:"people"},":woman_elf_tone2:":{uc_base:"1f9dd-1f3fc-2640",uc_full:"1f9dd-1f3fc-200d-2640-fe0f",shortnames:[":woman_elf_medium_light_skin_tone:"],category:"people"},":woman_elf_tone3:":{uc_base:"1f9dd-1f3fd-2640",uc_full:"1f9dd-1f3fd-200d-2640-fe0f",shortnames:[":woman_elf_medium_skin_tone:"],category:"people"},":woman_elf_tone4:":{uc_base:"1f9dd-1f3fe-2640",uc_full:"1f9dd-1f3fe-200d-2640-fe0f",shortnames:[":woman_elf_medium_dark_skin_tone:"],category:"people"},":woman_elf_tone5:":{uc_base:"1f9dd-1f3ff-2640",uc_full:"1f9dd-1f3ff-200d-2640-fe0f",shortnames:[":woman_elf_dark_skin_tone:"],category:"people"},":woman_facepalming_tone1:":{uc_base:"1f926-1f3fb-2640",uc_full:"1f926-1f3fb-200d-2640-fe0f",shortnames:[":woman_facepalming_light_skin_tone:"],category:"people"},":woman_facepalming_tone2:":{uc_base:"1f926-1f3fc-2640",uc_full:"1f926-1f3fc-200d-2640-fe0f",shortnames:[":woman_facepalming_medium_light_skin_tone:"],category:"people"},":woman_facepalming_tone3:":{uc_base:"1f926-1f3fd-2640",uc_full:"1f926-1f3fd-200d-2640-fe0f",shortnames:[":woman_facepalming_medium_skin_tone:"],category:"people"},":woman_facepalming_tone4:":{uc_base:"1f926-1f3fe-2640",uc_full:"1f926-1f3fe-200d-2640-fe0f",shortnames:[":woman_facepalming_medium_dark_skin_tone:"],category:"people"},":woman_facepalming_tone5:":{uc_base:"1f926-1f3ff-2640",uc_full:"1f926-1f3ff-200d-2640-fe0f",shortnames:[":woman_facepalming_dark_skin_tone:"],category:"people"},":woman_fairy_tone1:":{uc_base:"1f9da-1f3fb-2640",uc_full:"1f9da-1f3fb-200d-2640-fe0f",shortnames:[":woman_fairy_light_skin_tone:"],category:"people"},":woman_fairy_tone2:":{uc_base:"1f9da-1f3fc-2640",uc_full:"1f9da-1f3fc-200d-2640-fe0f",shortnames:[":woman_fairy_medium_light_skin_tone:"],category:"people"},":woman_fairy_tone3:":{uc_base:"1f9da-1f3fd-2640",uc_full:"1f9da-1f3fd-200d-2640-fe0f",shortnames:[":woman_fairy_medium_skin_tone:"],category:"people"},":woman_fairy_tone4:":{uc_base:"1f9da-1f3fe-2640",uc_full:"1f9da-1f3fe-200d-2640-fe0f",shortnames:[":woman_fairy_medium_dark_skin_tone:"],category:"people"},":woman_fairy_tone5:":{uc_base:"1f9da-1f3ff-2640",uc_full:"1f9da-1f3ff-200d-2640-fe0f",shortnames:[":woman_fairy_dark_skin_tone:"],category:"people"},":woman_frowning_tone1:":{uc_base:"1f64d-1f3fb-2640",uc_full:"1f64d-1f3fb-200d-2640-fe0f",shortnames:[":woman_frowning_light_skin_tone:"],category:"people"},":woman_frowning_tone2:":{uc_base:"1f64d-1f3fc-2640",uc_full:"1f64d-1f3fc-200d-2640-fe0f",shortnames:[":woman_frowning_medium_light_skin_tone:"],category:"people"},":woman_frowning_tone3:":{uc_base:"1f64d-1f3fd-2640",uc_full:"1f64d-1f3fd-200d-2640-fe0f",shortnames:[":woman_frowning_medium_skin_tone:"],category:"people"},":woman_frowning_tone4:":{uc_base:"1f64d-1f3fe-2640",uc_full:"1f64d-1f3fe-200d-2640-fe0f",shortnames:[":woman_frowning_medium_dark_skin_tone:"],category:"people"},":woman_frowning_tone5:":{uc_base:"1f64d-1f3ff-2640",uc_full:"1f64d-1f3ff-200d-2640-fe0f",shortnames:[":woman_frowning_dark_skin_tone:"],category:"people"},":woman_gesturing_no_tone1:":{uc_base:"1f645-1f3fb-2640",uc_full:"1f645-1f3fb-200d-2640-fe0f",shortnames:[":woman_gesturing_no_light_skin_tone:"],category:"people"},":woman_gesturing_no_tone2:":{uc_base:"1f645-1f3fc-2640",uc_full:"1f645-1f3fc-200d-2640-fe0f",shortnames:[":woman_gesturing_no_medium_light_skin_tone:"],category:"people"},":woman_gesturing_no_tone3:":{uc_base:"1f645-1f3fd-2640",uc_full:"1f645-1f3fd-200d-2640-fe0f",shortnames:[":woman_gesturing_no_medium_skin_tone:"],category:"people"},":woman_gesturing_no_tone4:":{uc_base:"1f645-1f3fe-2640",uc_full:"1f645-1f3fe-200d-2640-fe0f",shortnames:[":woman_gesturing_no_medium_dark_skin_tone:"],category:"people"},":woman_gesturing_no_tone5:":{uc_base:"1f645-1f3ff-2640",uc_full:"1f645-1f3ff-200d-2640-fe0f",shortnames:[":woman_gesturing_no_dark_skin_tone:"],category:"people"},":woman_gesturing_ok_tone1:":{uc_base:"1f646-1f3fb-2640",uc_full:"1f646-1f3fb-200d-2640-fe0f",shortnames:[":woman_gesturing_ok_light_skin_tone:"],category:"people"},":woman_gesturing_ok_tone2:":{uc_base:"1f646-1f3fc-2640",uc_full:"1f646-1f3fc-200d-2640-fe0f",shortnames:[":woman_gesturing_ok_medium_light_skin_tone:"],category:"people"},":woman_gesturing_ok_tone3:":{uc_base:"1f646-1f3fd-2640",uc_full:"1f646-1f3fd-200d-2640-fe0f",shortnames:[":woman_gesturing_ok_medium_skin_tone:"],category:"people"},":woman_gesturing_ok_tone4:":{uc_base:"1f646-1f3fe-2640",uc_full:"1f646-1f3fe-200d-2640-fe0f",shortnames:[":woman_gesturing_ok_medium_dark_skin_tone:"],category:"people"},":woman_gesturing_ok_tone5:":{uc_base:"1f646-1f3ff-2640",uc_full:"1f646-1f3ff-200d-2640-fe0f",shortnames:[":woman_gesturing_ok_dark_skin_tone:"],category:"people"},":woman_getting_face_massage_tone1:":{uc_base:"1f486-1f3fb-2640",uc_full:"1f486-1f3fb-200d-2640-fe0f",shortnames:[":woman_getting_face_massage_light_skin_tone:"],category:"people"},":woman_getting_face_massage_tone2:":{uc_base:"1f486-1f3fc-2640",uc_full:"1f486-1f3fc-200d-2640-fe0f",shortnames:[":woman_getting_face_massage_medium_light_skin_tone:"],category:"people"},":woman_getting_face_massage_tone3:":{uc_base:"1f486-1f3fd-2640",uc_full:"1f486-1f3fd-200d-2640-fe0f",shortnames:[":woman_getting_face_massage_medium_skin_tone:"],category:"people"},":woman_getting_face_massage_tone4:":{uc_base:"1f486-1f3fe-2640",uc_full:"1f486-1f3fe-200d-2640-fe0f",shortnames:[":woman_getting_face_massage_medium_dark_skin_tone:"],category:"people"},":woman_getting_face_massage_tone5:":{uc_base:"1f486-1f3ff-2640",uc_full:"1f486-1f3ff-200d-2640-fe0f",shortnames:[":woman_getting_face_massage_dark_skin_tone:"],category:"people"},":woman_getting_haircut_tone1:":{uc_base:"1f487-1f3fb-2640",uc_full:"1f487-1f3fb-200d-2640-fe0f",shortnames:[":woman_getting_haircut_light_skin_tone:"],category:"people"},":woman_getting_haircut_tone2:":{uc_base:"1f487-1f3fc-2640",uc_full:"1f487-1f3fc-200d-2640-fe0f",shortnames:[":woman_getting_haircut_medium_light_skin_tone:"],category:"people"},":woman_getting_haircut_tone3:":{uc_base:"1f487-1f3fd-2640",uc_full:"1f487-1f3fd-200d-2640-fe0f",shortnames:[":woman_getting_haircut_medium_skin_tone:"],category:"people"},":woman_getting_haircut_tone4:":{uc_base:"1f487-1f3fe-2640",uc_full:"1f487-1f3fe-200d-2640-fe0f",shortnames:[":woman_getting_haircut_medium_dark_skin_tone:"],category:"people"},":woman_getting_haircut_tone5:":{uc_base:"1f487-1f3ff-2640",uc_full:"1f487-1f3ff-200d-2640-fe0f",shortnames:[":woman_getting_haircut_dark_skin_tone:"],category:"people"},":woman_golfing_tone1:":{uc_base:"1f3cc-1f3fb-2640",uc_full:"1f3cc-1f3fb-200d-2640-fe0f",shortnames:[":woman_golfing_light_skin_tone:"],category:"activity"},":woman_golfing_tone2:":{uc_base:"1f3cc-1f3fc-2640",uc_full:"1f3cc-1f3fc-200d-2640-fe0f",shortnames:[":woman_golfing_medium_light_skin_tone:"],category:"activity"},":woman_golfing_tone3:":{uc_base:"1f3cc-1f3fd-2640",uc_full:"1f3cc-1f3fd-200d-2640-fe0f",shortnames:[":woman_golfing_medium_skin_tone:"],category:"activity"},":woman_golfing_tone4:":{uc_base:"1f3cc-1f3fe-2640",uc_full:"1f3cc-1f3fe-200d-2640-fe0f",shortnames:[":woman_golfing_medium_dark_skin_tone:"],category:"activity"},":woman_golfing_tone5:":{uc_base:"1f3cc-1f3ff-2640",uc_full:"1f3cc-1f3ff-200d-2640-fe0f",shortnames:[":woman_golfing_dark_skin_tone:"],category:"activity"},":woman_guard_tone1:":{uc_base:"1f482-1f3fb-2640",uc_full:"1f482-1f3fb-200d-2640-fe0f",shortnames:[":woman_guard_light_skin_tone:"],category:"people"},":woman_guard_tone2:":{uc_base:"1f482-1f3fc-2640",uc_full:"1f482-1f3fc-200d-2640-fe0f",shortnames:[":woman_guard_medium_light_skin_tone:"],category:"people"},":woman_guard_tone3:":{uc_base:"1f482-1f3fd-2640",uc_full:"1f482-1f3fd-200d-2640-fe0f",shortnames:[":woman_guard_medium_skin_tone:"],category:"people"},":woman_guard_tone4:":{uc_base:"1f482-1f3fe-2640",uc_full:"1f482-1f3fe-200d-2640-fe0f",shortnames:[":woman_guard_medium_dark_skin_tone:"],category:"people"},":woman_guard_tone5:":{uc_base:"1f482-1f3ff-2640",uc_full:"1f482-1f3ff-200d-2640-fe0f",shortnames:[":woman_guard_dark_skin_tone:"],category:"people"},":woman_health_worker_tone1:":{uc_base:"1f469-1f3fb-2695",uc_full:"1f469-1f3fb-200d-2695-fe0f",shortnames:[":woman_health_worker_light_skin_tone:"],category:"people"},":woman_health_worker_tone2:":{uc_base:"1f469-1f3fc-2695",uc_full:"1f469-1f3fc-200d-2695-fe0f",shortnames:[":woman_health_worker_medium_light_skin_tone:"],category:"people"},":woman_health_worker_tone3:":{uc_base:"1f469-1f3fd-2695",uc_full:"1f469-1f3fd-200d-2695-fe0f",shortnames:[":woman_health_worker_medium_skin_tone:"],category:"people"},":woman_health_worker_tone4:":{uc_base:"1f469-1f3fe-2695",uc_full:"1f469-1f3fe-200d-2695-fe0f",shortnames:[":woman_health_worker_medium_dark_skin_tone:"],category:"people"},":woman_health_worker_tone5:":{uc_base:"1f469-1f3ff-2695",uc_full:"1f469-1f3ff-200d-2695-fe0f",shortnames:[":woman_health_worker_dark_skin_tone:"],category:"people"},":woman_in_lotus_position_tone1:":{uc_base:"1f9d8-1f3fb-2640",uc_full:"1f9d8-1f3fb-200d-2640-fe0f",shortnames:[":woman_in_lotus_position_light_skin_tone:"],category:"activity"},":woman_in_lotus_position_tone2:":{uc_base:"1f9d8-1f3fc-2640",uc_full:"1f9d8-1f3fc-200d-2640-fe0f",shortnames:[":woman_in_lotus_position_medium_light_skin_tone:"],category:"activity"},":woman_in_lotus_position_tone3:":{uc_base:"1f9d8-1f3fd-2640",uc_full:"1f9d8-1f3fd-200d-2640-fe0f",shortnames:[":woman_in_lotus_position_medium_skin_tone:"],category:"activity"},":woman_in_lotus_position_tone4:":{uc_base:"1f9d8-1f3fe-2640",uc_full:"1f9d8-1f3fe-200d-2640-fe0f",shortnames:[":woman_in_lotus_position_medium_dark_skin_tone:"],category:"activity"},":woman_in_lotus_position_tone5:":{uc_base:"1f9d8-1f3ff-2640",uc_full:"1f9d8-1f3ff-200d-2640-fe0f",shortnames:[":woman_in_lotus_position_dark_skin_tone:"],category:"activity"},":woman_in_steamy_room_tone1:":{uc_base:"1f9d6-1f3fb-2640",uc_full:"1f9d6-1f3fb-200d-2640-fe0f",shortnames:[":woman_in_steamy_room_light_skin_tone:"],category:"people"},":woman_in_steamy_room_tone2:":{uc_base:"1f9d6-1f3fc-2640",uc_full:"1f9d6-1f3fc-200d-2640-fe0f",shortnames:[":woman_in_steamy_room_medium_light_skin_tone:"],category:"people"},":woman_in_steamy_room_tone3:":{uc_base:"1f9d6-1f3fd-2640",uc_full:"1f9d6-1f3fd-200d-2640-fe0f",shortnames:[":woman_in_steamy_room_medium_skin_tone:"],category:"people"},":woman_in_steamy_room_tone4:":{uc_base:"1f9d6-1f3fe-2640",uc_full:"1f9d6-1f3fe-200d-2640-fe0f",shortnames:[":woman_in_steamy_room_medium_dark_skin_tone:"],category:"people"},":woman_in_steamy_room_tone5:":{uc_base:"1f9d6-1f3ff-2640",uc_full:"1f9d6-1f3ff-200d-2640-fe0f",shortnames:[":woman_in_steamy_room_dark_skin_tone:"],category:"people"},":woman_in_tuxedo_tone1:":{uc_base:"1f935-1f3fb-2640",uc_full:"1f935-1f3fb-200d-2640-fe0f",shortnames:[":woman_in_tuxedo_light_skin_tone:"],category:"people"},":woman_in_tuxedo_tone2:":{uc_base:"1f935-1f3fc-2640",uc_full:"1f935-1f3fc-200d-2640-fe0f",shortnames:[":woman_in_tuxedo_medium_light_skin_tone:"],category:"people"},":woman_in_tuxedo_tone3:":{uc_base:"1f935-1f3fd-2640",uc_full:"1f935-1f3fd-200d-2640-fe0f",shortnames:[":woman_in_tuxedo_medium_skin_tone:"],category:"people"},":woman_in_tuxedo_tone4:":{uc_base:"1f935-1f3fe-2640",uc_full:"1f935-1f3fe-200d-2640-fe0f",shortnames:[":woman_in_tuxedo_medium_dark_skin_tone:"],category:"people"},":woman_in_tuxedo_tone5:":{uc_base:"1f935-1f3ff-2640",uc_full:"1f935-1f3ff-200d-2640-fe0f",shortnames:[":woman_in_tuxedo_dark_skin_tone:"],category:"people"},":woman_judge_tone1:":{uc_base:"1f469-1f3fb-2696",uc_full:"1f469-1f3fb-200d-2696-fe0f",shortnames:[":woman_judge_light_skin_tone:"],category:"people"},":woman_judge_tone2:":{uc_base:"1f469-1f3fc-2696",uc_full:"1f469-1f3fc-200d-2696-fe0f",shortnames:[":woman_judge_medium_light_skin_tone:"],category:"people"},":woman_judge_tone3:":{uc_base:"1f469-1f3fd-2696",uc_full:"1f469-1f3fd-200d-2696-fe0f",shortnames:[":woman_judge_medium_skin_tone:"],category:"people"},":woman_judge_tone4:":{uc_base:"1f469-1f3fe-2696",uc_full:"1f469-1f3fe-200d-2696-fe0f",shortnames:[":woman_judge_medium_dark_skin_tone:"],category:"people"},":woman_judge_tone5:":{uc_base:"1f469-1f3ff-2696",uc_full:"1f469-1f3ff-200d-2696-fe0f",shortnames:[":woman_judge_dark_skin_tone:"],category:"people"},":woman_juggling_tone1:":{uc_base:"1f939-1f3fb-2640",uc_full:"1f939-1f3fb-200d-2640-fe0f",shortnames:[":woman_juggling_light_skin_tone:"],category:"activity"},":woman_juggling_tone2:":{uc_base:"1f939-1f3fc-2640",uc_full:"1f939-1f3fc-200d-2640-fe0f",shortnames:[":woman_juggling_medium_light_skin_tone:"],category:"activity"},":woman_juggling_tone3:":{uc_base:"1f939-1f3fd-2640",uc_full:"1f939-1f3fd-200d-2640-fe0f",shortnames:[":woman_juggling_medium_skin_tone:"],category:"activity"},":woman_juggling_tone4:":{uc_base:"1f939-1f3fe-2640",uc_full:"1f939-1f3fe-200d-2640-fe0f",shortnames:[":woman_juggling_medium_dark_skin_tone:"],category:"activity"},":woman_juggling_tone5:":{uc_base:"1f939-1f3ff-2640",uc_full:"1f939-1f3ff-200d-2640-fe0f",shortnames:[":woman_juggling_dark_skin_tone:"],category:"activity"},":woman_kneeling_tone1:":{uc_base:"1f9ce-1f3fb-2640",uc_full:"1f9ce-1f3fb-200d-2640-fe0f",shortnames:[":woman_kneeling_light_skin_tone:"],category:"people"},":woman_kneeling_tone2:":{uc_base:"1f9ce-1f3fc-2640",uc_full:"1f9ce-1f3fc-200d-2640-fe0f",shortnames:[":woman_kneeling_medium_light_skin_tone:"],category:"people"},":woman_kneeling_tone3:":{uc_base:"1f9ce-1f3fd-2640",uc_full:"1f9ce-1f3fd-200d-2640-fe0f",shortnames:[":woman_kneeling_medium_skin_tone:"],category:"people"},":woman_kneeling_tone4:":{uc_base:"1f9ce-1f3fe-2640",uc_full:"1f9ce-1f3fe-200d-2640-fe0f",shortnames:[":woman_kneeling_medium_dark_skin_tone:"],category:"people"},":woman_kneeling_tone5:":{uc_base:"1f9ce-1f3ff-2640",uc_full:"1f9ce-1f3ff-200d-2640-fe0f",shortnames:[":woman_kneeling_dark_skin_tone:"],category:"people"},":woman_lifting_weights_tone1:":{uc_base:"1f3cb-1f3fb-2640",uc_full:"1f3cb-1f3fb-200d-2640-fe0f",shortnames:[":woman_lifting_weights_light_skin_tone:"],category:"activity"},":woman_lifting_weights_tone2:":{uc_base:"1f3cb-1f3fc-2640",uc_full:"1f3cb-1f3fc-200d-2640-fe0f",shortnames:[":woman_lifting_weights_medium_light_skin_tone:"],category:"activity"},":woman_lifting_weights_tone3:":{uc_base:"1f3cb-1f3fd-2640",uc_full:"1f3cb-1f3fd-200d-2640-fe0f",shortnames:[":woman_lifting_weights_medium_skin_tone:"],category:"activity"},":woman_lifting_weights_tone4:":{uc_base:"1f3cb-1f3fe-2640",uc_full:"1f3cb-1f3fe-200d-2640-fe0f",shortnames:[":woman_lifting_weights_medium_dark_skin_tone:"],category:"activity"},":woman_lifting_weights_tone5:":{uc_base:"1f3cb-1f3ff-2640",uc_full:"1f3cb-1f3ff-200d-2640-fe0f",shortnames:[":woman_lifting_weights_dark_skin_tone:"],category:"activity"},":woman_mage_tone1:":{uc_base:"1f9d9-1f3fb-2640",uc_full:"1f9d9-1f3fb-200d-2640-fe0f",shortnames:[":woman_mage_light_skin_tone:"],category:"people"},":woman_mage_tone2:":{uc_base:"1f9d9-1f3fc-2640",uc_full:"1f9d9-1f3fc-200d-2640-fe0f",shortnames:[":woman_mage_medium_light_skin_tone:"],category:"people"},":woman_mage_tone3:":{uc_base:"1f9d9-1f3fd-2640",uc_full:"1f9d9-1f3fd-200d-2640-fe0f",shortnames:[":woman_mage_medium_skin_tone:"],category:"people"},":woman_mage_tone4:":{uc_base:"1f9d9-1f3fe-2640",uc_full:"1f9d9-1f3fe-200d-2640-fe0f",shortnames:[":woman_mage_medium_dark_skin_tone:"],category:"people"},":woman_mage_tone5:":{uc_base:"1f9d9-1f3ff-2640",uc_full:"1f9d9-1f3ff-200d-2640-fe0f",shortnames:[":woman_mage_dark_skin_tone:"],category:"people"},":woman_mountain_biking_tone1:":{uc_base:"1f6b5-1f3fb-2640",uc_full:"1f6b5-1f3fb-200d-2640-fe0f",shortnames:[":woman_mountain_biking_light_skin_tone:"],category:"activity"},":woman_mountain_biking_tone2:":{uc_base:"1f6b5-1f3fc-2640",uc_full:"1f6b5-1f3fc-200d-2640-fe0f",shortnames:[":woman_mountain_biking_medium_light_skin_tone:"],category:"activity"},":woman_mountain_biking_tone3:":{uc_base:"1f6b5-1f3fd-2640",uc_full:"1f6b5-1f3fd-200d-2640-fe0f",shortnames:[":woman_mountain_biking_medium_skin_tone:"],category:"activity"},":woman_mountain_biking_tone4:":{uc_base:"1f6b5-1f3fe-2640",uc_full:"1f6b5-1f3fe-200d-2640-fe0f",shortnames:[":woman_mountain_biking_medium_dark_skin_tone:"],category:"activity"},":woman_mountain_biking_tone5:":{uc_base:"1f6b5-1f3ff-2640",uc_full:"1f6b5-1f3ff-200d-2640-fe0f",shortnames:[":woman_mountain_biking_dark_skin_tone:"],category:"activity"},":woman_pilot_tone1:":{uc_base:"1f469-1f3fb-2708",uc_full:"1f469-1f3fb-200d-2708-fe0f",shortnames:[":woman_pilot_light_skin_tone:"],category:"people"},":woman_pilot_tone2:":{uc_base:"1f469-1f3fc-2708",uc_full:"1f469-1f3fc-200d-2708-fe0f",shortnames:[":woman_pilot_medium_light_skin_tone:"],category:"people"},":woman_pilot_tone3:":{uc_base:"1f469-1f3fd-2708",uc_full:"1f469-1f3fd-200d-2708-fe0f",shortnames:[":woman_pilot_medium_skin_tone:"],category:"people"},":woman_pilot_tone4:":{uc_base:"1f469-1f3fe-2708",uc_full:"1f469-1f3fe-200d-2708-fe0f",shortnames:[":woman_pilot_medium_dark_skin_tone:"],category:"people"},":woman_pilot_tone5:":{uc_base:"1f469-1f3ff-2708",uc_full:"1f469-1f3ff-200d-2708-fe0f",shortnames:[":woman_pilot_dark_skin_tone:"],category:"people"},":woman_playing_handball_tone1:":{uc_base:"1f93e-1f3fb-2640",uc_full:"1f93e-1f3fb-200d-2640-fe0f",shortnames:[":woman_playing_handball_light_skin_tone:"],category:"activity"},":woman_playing_handball_tone2:":{uc_base:"1f93e-1f3fc-2640",uc_full:"1f93e-1f3fc-200d-2640-fe0f",shortnames:[":woman_playing_handball_medium_light_skin_tone:"],category:"activity"},":woman_playing_handball_tone3:":{uc_base:"1f93e-1f3fd-2640",uc_full:"1f93e-1f3fd-200d-2640-fe0f",shortnames:[":woman_playing_handball_medium_skin_tone:"],category:"activity"},":woman_playing_handball_tone4:":{uc_base:"1f93e-1f3fe-2640",uc_full:"1f93e-1f3fe-200d-2640-fe0f",shortnames:[":woman_playing_handball_medium_dark_skin_tone:"],category:"activity"},":woman_playing_handball_tone5:":{uc_base:"1f93e-1f3ff-2640",uc_full:"1f93e-1f3ff-200d-2640-fe0f",shortnames:[":woman_playing_handball_dark_skin_tone:"],category:"activity"},":woman_playing_water_polo_tone1:":{uc_base:"1f93d-1f3fb-2640",uc_full:"1f93d-1f3fb-200d-2640-fe0f",shortnames:[":woman_playing_water_polo_light_skin_tone:"],category:"activity"},":woman_playing_water_polo_tone2:":{uc_base:"1f93d-1f3fc-2640",uc_full:"1f93d-1f3fc-200d-2640-fe0f",shortnames:[":woman_playing_water_polo_medium_light_skin_tone:"],category:"activity"},":woman_playing_water_polo_tone3:":{uc_base:"1f93d-1f3fd-2640",uc_full:"1f93d-1f3fd-200d-2640-fe0f",shortnames:[":woman_playing_water_polo_medium_skin_tone:"],category:"activity"},":woman_playing_water_polo_tone4:":{uc_base:"1f93d-1f3fe-2640",uc_full:"1f93d-1f3fe-200d-2640-fe0f",shortnames:[":woman_playing_water_polo_medium_dark_skin_tone:"],category:"activity"},":woman_playing_water_polo_tone5:":{uc_base:"1f93d-1f3ff-2640",uc_full:"1f93d-1f3ff-200d-2640-fe0f",shortnames:[":woman_playing_water_polo_dark_skin_tone:"],category:"activity"},":woman_police_officer_tone1:":{uc_base:"1f46e-1f3fb-2640",uc_full:"1f46e-1f3fb-200d-2640-fe0f",shortnames:[":woman_police_officer_light_skin_tone:"],category:"people"},":woman_police_officer_tone2:":{uc_base:"1f46e-1f3fc-2640",uc_full:"1f46e-1f3fc-200d-2640-fe0f",shortnames:[":woman_police_officer_medium_light_skin_tone:"],category:"people"},":woman_police_officer_tone3:":{uc_base:"1f46e-1f3fd-2640",uc_full:"1f46e-1f3fd-200d-2640-fe0f",shortnames:[":woman_police_officer_medium_skin_tone:"],category:"people"},":woman_police_officer_tone4:":{uc_base:"1f46e-1f3fe-2640",uc_full:"1f46e-1f3fe-200d-2640-fe0f",shortnames:[":woman_police_officer_medium_dark_skin_tone:"],category:"people"},":woman_police_officer_tone5:":{uc_base:"1f46e-1f3ff-2640",uc_full:"1f46e-1f3ff-200d-2640-fe0f",shortnames:[":woman_police_officer_dark_skin_tone:"],category:"people"},":woman_pouting_tone1:":{uc_base:"1f64e-1f3fb-2640",uc_full:"1f64e-1f3fb-200d-2640-fe0f",shortnames:[":woman_pouting_light_skin_tone:"],category:"people"},":woman_pouting_tone2:":{uc_base:"1f64e-1f3fc-2640",uc_full:"1f64e-1f3fc-200d-2640-fe0f",shortnames:[":woman_pouting_medium_light_skin_tone:"],category:"people"},":woman_pouting_tone3:":{uc_base:"1f64e-1f3fd-2640",uc_full:"1f64e-1f3fd-200d-2640-fe0f",shortnames:[":woman_pouting_medium_skin_tone:"],category:"people"},":woman_pouting_tone4:":{uc_base:"1f64e-1f3fe-2640",uc_full:"1f64e-1f3fe-200d-2640-fe0f",shortnames:[":woman_pouting_medium_dark_skin_tone:"],category:"people"},":woman_pouting_tone5:":{uc_base:"1f64e-1f3ff-2640",uc_full:"1f64e-1f3ff-200d-2640-fe0f",shortnames:[":woman_pouting_dark_skin_tone:"],category:"people"},":woman_raising_hand_tone1:":{uc_base:"1f64b-1f3fb-2640",uc_full:"1f64b-1f3fb-200d-2640-fe0f",shortnames:[":woman_raising_hand_light_skin_tone:"],category:"people"},":woman_raising_hand_tone2:":{uc_base:"1f64b-1f3fc-2640",uc_full:"1f64b-1f3fc-200d-2640-fe0f",shortnames:[":woman_raising_hand_medium_light_skin_tone:"],category:"people"},":woman_raising_hand_tone3:":{uc_base:"1f64b-1f3fd-2640",uc_full:"1f64b-1f3fd-200d-2640-fe0f",shortnames:[":woman_raising_hand_medium_skin_tone:"],category:"people"},":woman_raising_hand_tone4:":{uc_base:"1f64b-1f3fe-2640",uc_full:"1f64b-1f3fe-200d-2640-fe0f",shortnames:[":woman_raising_hand_medium_dark_skin_tone:"],category:"people"},":woman_raising_hand_tone5:":{uc_base:"1f64b-1f3ff-2640",uc_full:"1f64b-1f3ff-200d-2640-fe0f",shortnames:[":woman_raising_hand_dark_skin_tone:"],category:"people"},":woman_rowing_boat_tone1:":{uc_base:"1f6a3-1f3fb-2640",uc_full:"1f6a3-1f3fb-200d-2640-fe0f",shortnames:[":woman_rowing_boat_light_skin_tone:"],category:"activity"},":woman_rowing_boat_tone2:":{uc_base:"1f6a3-1f3fc-2640",uc_full:"1f6a3-1f3fc-200d-2640-fe0f",shortnames:[":woman_rowing_boat_medium_light_skin_tone:"],category:"activity"},":woman_rowing_boat_tone3:":{uc_base:"1f6a3-1f3fd-2640",uc_full:"1f6a3-1f3fd-200d-2640-fe0f",shortnames:[":woman_rowing_boat_medium_skin_tone:"],category:"activity"},":woman_rowing_boat_tone4:":{uc_base:"1f6a3-1f3fe-2640",uc_full:"1f6a3-1f3fe-200d-2640-fe0f",shortnames:[":woman_rowing_boat_medium_dark_skin_tone:"],category:"activity"},":woman_rowing_boat_tone5:":{uc_base:"1f6a3-1f3ff-2640",uc_full:"1f6a3-1f3ff-200d-2640-fe0f",shortnames:[":woman_rowing_boat_dark_skin_tone:"],category:"activity"},":woman_running_tone1:":{uc_base:"1f3c3-1f3fb-2640",uc_full:"1f3c3-1f3fb-200d-2640-fe0f",shortnames:[":woman_running_light_skin_tone:"],category:"people"},":woman_running_tone2:":{uc_base:"1f3c3-1f3fc-2640",uc_full:"1f3c3-1f3fc-200d-2640-fe0f",shortnames:[":woman_running_medium_light_skin_tone:"],category:"people"},":woman_running_tone3:":{uc_base:"1f3c3-1f3fd-2640",uc_full:"1f3c3-1f3fd-200d-2640-fe0f",shortnames:[":woman_running_medium_skin_tone:"],category:"people"},":woman_running_tone4:":{uc_base:"1f3c3-1f3fe-2640",uc_full:"1f3c3-1f3fe-200d-2640-fe0f",shortnames:[":woman_running_medium_dark_skin_tone:"],category:"people"},":woman_running_tone5:":{uc_base:"1f3c3-1f3ff-2640",uc_full:"1f3c3-1f3ff-200d-2640-fe0f",shortnames:[":woman_running_dark_skin_tone:"],category:"people"},":woman_shrugging_tone1:":{uc_base:"1f937-1f3fb-2640",uc_full:"1f937-1f3fb-200d-2640-fe0f",shortnames:[":woman_shrugging_light_skin_tone:"],category:"people"},":woman_shrugging_tone2:":{uc_base:"1f937-1f3fc-2640",uc_full:"1f937-1f3fc-200d-2640-fe0f",shortnames:[":woman_shrugging_medium_light_skin_tone:"],category:"people"},":woman_shrugging_tone3:":{uc_base:"1f937-1f3fd-2640",uc_full:"1f937-1f3fd-200d-2640-fe0f",shortnames:[":woman_shrugging_medium_skin_tone:"],category:"people"},":woman_shrugging_tone4:":{uc_base:"1f937-1f3fe-2640",uc_full:"1f937-1f3fe-200d-2640-fe0f",shortnames:[":woman_shrugging_medium_dark_skin_tone:"],category:"people"},":woman_shrugging_tone5:":{uc_base:"1f937-1f3ff-2640",uc_full:"1f937-1f3ff-200d-2640-fe0f",shortnames:[":woman_shrugging_dark_skin_tone:"],category:"people"},":woman_standing_tone1:":{uc_base:"1f9cd-1f3fb-2640",uc_full:"1f9cd-1f3fb-200d-2640-fe0f",shortnames:[":woman_standing_light_skin_tone:"],category:"people"},":woman_standing_tone2:":{uc_base:"1f9cd-1f3fc-2640",uc_full:"1f9cd-1f3fc-200d-2640-fe0f",shortnames:[":woman_standing_medium_light_skin_tone:"],category:"people"},":woman_standing_tone3:":{uc_base:"1f9cd-1f3fd-2640",uc_full:"1f9cd-1f3fd-200d-2640-fe0f",shortnames:[":woman_standing_medium_skin_tone:"],category:"people"},":woman_standing_tone4:":{uc_base:"1f9cd-1f3fe-2640",uc_full:"1f9cd-1f3fe-200d-2640-fe0f",shortnames:[":woman_standing_medium_dark_skin_tone:"],category:"people"},":woman_standing_tone5:":{uc_base:"1f9cd-1f3ff-2640",uc_full:"1f9cd-1f3ff-200d-2640-fe0f",shortnames:[":woman_standing_dark_skin_tone:"],category:"people"},":woman_superhero_tone1:":{uc_base:"1f9b8-1f3fb-2640",uc_full:"1f9b8-1f3fb-200d-2640-fe0f",shortnames:[":woman_superhero_light_skin_tone:"],category:"people"},":woman_superhero_tone2:":{uc_base:"1f9b8-1f3fc-2640",uc_full:"1f9b8-1f3fc-200d-2640-fe0f",shortnames:[":woman_superhero_medium_light_skin_tone:"],category:"people"},":woman_superhero_tone3:":{uc_base:"1f9b8-1f3fd-2640",uc_full:"1f9b8-1f3fd-200d-2640-fe0f",shortnames:[":woman_superhero_medium_skin_tone:"],category:"people"},":woman_superhero_tone4:":{uc_base:"1f9b8-1f3fe-2640",uc_full:"1f9b8-1f3fe-200d-2640-fe0f",shortnames:[":woman_superhero_medium_dark_skin_tone:"],category:"people"},":woman_superhero_tone5:":{uc_base:"1f9b8-1f3ff-2640",uc_full:"1f9b8-1f3ff-200d-2640-fe0f",shortnames:[":woman_superhero_dark_skin_tone:"],category:"people"},":woman_supervillain_tone1:":{uc_base:"1f9b9-1f3fb-2640",uc_full:"1f9b9-1f3fb-200d-2640-fe0f",shortnames:[":woman_supervillain_light_skin_tone:"],category:"people"},":woman_supervillain_tone2:":{uc_base:"1f9b9-1f3fc-2640",uc_full:"1f9b9-1f3fc-200d-2640-fe0f",shortnames:[":woman_supervillain_medium_light_skin_tone:"],category:"people"},":woman_supervillain_tone3:":{uc_base:"1f9b9-1f3fd-2640",uc_full:"1f9b9-1f3fd-200d-2640-fe0f",shortnames:[":woman_supervillain_medium_skin_tone:"],category:"people"},":woman_supervillain_tone4:":{uc_base:"1f9b9-1f3fe-2640",uc_full:"1f9b9-1f3fe-200d-2640-fe0f",shortnames:[":woman_supervillain_medium_dark_skin_tone:"],category:"people"},":woman_supervillain_tone5:":{uc_base:"1f9b9-1f3ff-2640",uc_full:"1f9b9-1f3ff-200d-2640-fe0f",shortnames:[":woman_supervillain_dark_skin_tone:"],category:"people"},":woman_surfing_tone1:":{uc_base:"1f3c4-1f3fb-2640",uc_full:"1f3c4-1f3fb-200d-2640-fe0f",shortnames:[":woman_surfing_light_skin_tone:"],category:"activity"},":woman_surfing_tone2:":{uc_base:"1f3c4-1f3fc-2640",uc_full:"1f3c4-1f3fc-200d-2640-fe0f",shortnames:[":woman_surfing_medium_light_skin_tone:"],category:"activity"},":woman_surfing_tone3:":{uc_base:"1f3c4-1f3fd-2640",uc_full:"1f3c4-1f3fd-200d-2640-fe0f",shortnames:[":woman_surfing_medium_skin_tone:"],category:"activity"},":woman_surfing_tone4:":{uc_base:"1f3c4-1f3fe-2640",uc_full:"1f3c4-1f3fe-200d-2640-fe0f",shortnames:[":woman_surfing_medium_dark_skin_tone:"],category:"activity"},":woman_surfing_tone5:":{uc_base:"1f3c4-1f3ff-2640",uc_full:"1f3c4-1f3ff-200d-2640-fe0f",shortnames:[":woman_surfing_dark_skin_tone:"],category:"activity"},":woman_swimming_tone1:":{uc_base:"1f3ca-1f3fb-2640",uc_full:"1f3ca-1f3fb-200d-2640-fe0f",shortnames:[":woman_swimming_light_skin_tone:"],category:"activity"},":woman_swimming_tone2:":{uc_base:"1f3ca-1f3fc-2640",uc_full:"1f3ca-1f3fc-200d-2640-fe0f",shortnames:[":woman_swimming_medium_light_skin_tone:"],category:"activity"},":woman_swimming_tone3:":{uc_base:"1f3ca-1f3fd-2640",uc_full:"1f3ca-1f3fd-200d-2640-fe0f",shortnames:[":woman_swimming_medium_skin_tone:"],category:"activity"},":woman_swimming_tone4:":{uc_base:"1f3ca-1f3fe-2640",uc_full:"1f3ca-1f3fe-200d-2640-fe0f",shortnames:[":woman_swimming_medium_dark_skin_tone:"],category:"activity"},":woman_swimming_tone5:":{uc_base:"1f3ca-1f3ff-2640",uc_full:"1f3ca-1f3ff-200d-2640-fe0f",shortnames:[":woman_swimming_dark_skin_tone:"],category:"activity"},":woman_tipping_hand_tone1:":{uc_base:"1f481-1f3fb-2640",uc_full:"1f481-1f3fb-200d-2640-fe0f",shortnames:[":woman_tipping_hand_light_skin_tone:"],category:"people"},":woman_tipping_hand_tone2:":{uc_base:"1f481-1f3fc-2640",uc_full:"1f481-1f3fc-200d-2640-fe0f",shortnames:[":woman_tipping_hand_medium_light_skin_tone:"],category:"people"},":woman_tipping_hand_tone3:":{uc_base:"1f481-1f3fd-2640",uc_full:"1f481-1f3fd-200d-2640-fe0f",shortnames:[":woman_tipping_hand_medium_skin_tone:"],category:"people"},":woman_tipping_hand_tone4:":{uc_base:"1f481-1f3fe-2640",uc_full:"1f481-1f3fe-200d-2640-fe0f",shortnames:[":woman_tipping_hand_medium_dark_skin_tone:"],category:"people"},":woman_tipping_hand_tone5:":{uc_base:"1f481-1f3ff-2640",uc_full:"1f481-1f3ff-200d-2640-fe0f",shortnames:[":woman_tipping_hand_dark_skin_tone:"],category:"people"},":woman_tone1_beard:":{uc_base:"1f9d4-1f3fb-2640",uc_full:"1f9d4-1f3fb-200d-2640-fe0f",shortnames:[":woman_light_skin_tone_beard:"],category:"people"},":woman_tone2_beard:":{uc_base:"1f9d4-1f3fc-2640",uc_full:"1f9d4-1f3fc-200d-2640-fe0f",shortnames:[":woman_medium_light_skin_tone_beard:"],category:"people"},":woman_tone3_beard:":{uc_base:"1f9d4-1f3fd-2640",uc_full:"1f9d4-1f3fd-200d-2640-fe0f",shortnames:[":woman_medium_skin_tone_beard:"],category:"people"},":woman_tone4_beard:":{uc_base:"1f9d4-1f3fe-2640",uc_full:"1f9d4-1f3fe-200d-2640-fe0f",shortnames:[":woman_medium_dark_skin_tone_beard:"],category:"people"},":woman_tone5_beard:":{uc_base:"1f9d4-1f3ff-2640",uc_full:"1f9d4-1f3ff-200d-2640-fe0f",shortnames:[":woman_dark_skin_tone_beard:"],category:"people"},":woman_vampire_tone1:":{uc_base:"1f9db-1f3fb-2640",uc_full:"1f9db-1f3fb-200d-2640-fe0f",shortnames:[":woman_vampire_light_skin_tone:"],category:"people"},":woman_vampire_tone2:":{uc_base:"1f9db-1f3fc-2640",uc_full:"1f9db-1f3fc-200d-2640-fe0f",shortnames:[":woman_vampire_medium_light_skin_tone:"],category:"people"},":woman_vampire_tone3:":{uc_base:"1f9db-1f3fd-2640",uc_full:"1f9db-1f3fd-200d-2640-fe0f",shortnames:[":woman_vampire_medium_skin_tone:"],category:"people"},":woman_vampire_tone4:":{uc_base:"1f9db-1f3fe-2640",uc_full:"1f9db-1f3fe-200d-2640-fe0f",shortnames:[":woman_vampire_medium_dark_skin_tone:"],category:"people"},":woman_vampire_tone5:":{uc_base:"1f9db-1f3ff-2640",uc_full:"1f9db-1f3ff-200d-2640-fe0f",shortnames:[":woman_vampire_dark_skin_tone:"],category:"people"},":woman_walking_tone1:":{uc_base:"1f6b6-1f3fb-2640",uc_full:"1f6b6-1f3fb-200d-2640-fe0f",shortnames:[":woman_walking_light_skin_tone:"],category:"people"},":woman_walking_tone2:":{uc_base:"1f6b6-1f3fc-2640",uc_full:"1f6b6-1f3fc-200d-2640-fe0f",shortnames:[":woman_walking_medium_light_skin_tone:"],category:"people"},":woman_walking_tone3:":{uc_base:"1f6b6-1f3fd-2640",uc_full:"1f6b6-1f3fd-200d-2640-fe0f",shortnames:[":woman_walking_medium_skin_tone:"],category:"people"},":woman_walking_tone4:":{uc_base:"1f6b6-1f3fe-2640",uc_full:"1f6b6-1f3fe-200d-2640-fe0f",shortnames:[":woman_walking_medium_dark_skin_tone:"],category:"people"},":woman_walking_tone5:":{uc_base:"1f6b6-1f3ff-2640",uc_full:"1f6b6-1f3ff-200d-2640-fe0f",shortnames:[":woman_walking_dark_skin_tone:"],category:"people"},":woman_wearing_turban_tone1:":{uc_base:"1f473-1f3fb-2640",uc_full:"1f473-1f3fb-200d-2640-fe0f",shortnames:[":woman_wearing_turban_light_skin_tone:"],category:"people"},":woman_wearing_turban_tone2:":{uc_base:"1f473-1f3fc-2640",uc_full:"1f473-1f3fc-200d-2640-fe0f",shortnames:[":woman_wearing_turban_medium_light_skin_tone:"],category:"people"},":woman_wearing_turban_tone3:":{uc_base:"1f473-1f3fd-2640",uc_full:"1f473-1f3fd-200d-2640-fe0f",shortnames:[":woman_wearing_turban_medium_skin_tone:"],category:"people"},":woman_wearing_turban_tone4:":{uc_base:"1f473-1f3fe-2640",uc_full:"1f473-1f3fe-200d-2640-fe0f",shortnames:[":woman_wearing_turban_medium_dark_skin_tone:"],category:"people"},":woman_wearing_turban_tone5:":{uc_base:"1f473-1f3ff-2640",uc_full:"1f473-1f3ff-200d-2640-fe0f",shortnames:[":woman_wearing_turban_dark_skin_tone:"],category:"people"},":woman_with_veil_tone1:":{uc_base:"1f470-1f3fb-2640",uc_full:"1f470-1f3fb-200d-2640-fe0f",shortnames:[":woman_with_veil_light_skin_tone:"],category:"people"},":woman_with_veil_tone2:":{uc_base:"1f470-1f3fc-2640",uc_full:"1f470-1f3fc-200d-2640-fe0f",shortnames:[":woman_with_veil_medium_light_skin_tone:"],category:"people"},":woman_with_veil_tone3:":{uc_base:"1f470-1f3fd-2640",uc_full:"1f470-1f3fd-200d-2640-fe0f",shortnames:[":woman_with_veil_medium_skin_tone:"],category:"people"},":woman_with_veil_tone4:":{uc_base:"1f470-1f3fe-2640",uc_full:"1f470-1f3fe-200d-2640-fe0f",shortnames:[":woman_with_veil_medium_dark_skin_tone:"],category:"people"},":woman_with_veil_tone5:":{uc_base:"1f470-1f3ff-2640",uc_full:"1f470-1f3ff-200d-2640-fe0f",shortnames:[":woman_with_veil_dark_skin_tone:"],category:"people"},":man_bouncing_ball_tone1:":{uc_base:"26f9-1f3fb-2642",uc_full:"26f9-1f3fb-200d-2642-fe0f",shortnames:[":man_bouncing_ball_light_skin_tone:"],category:"activity"},":man_bouncing_ball_tone2:":{uc_base:"26f9-1f3fc-2642",uc_full:"26f9-1f3fc-200d-2642-fe0f",shortnames:[":man_bouncing_ball_medium_light_skin_tone:"],category:"activity"},":man_bouncing_ball_tone3:":{uc_base:"26f9-1f3fd-2642",uc_full:"26f9-1f3fd-200d-2642-fe0f",shortnames:[":man_bouncing_ball_medium_skin_tone:"],category:"activity"},":man_bouncing_ball_tone4:":{uc_base:"26f9-1f3fe-2642",uc_full:"26f9-1f3fe-200d-2642-fe0f",shortnames:[":man_bouncing_ball_medium_dark_skin_tone:"],category:"activity"},":man_bouncing_ball_tone5:":{uc_base:"26f9-1f3ff-2642",uc_full:"26f9-1f3ff-200d-2642-fe0f",shortnames:[":man_bouncing_ball_dark_skin_tone:"],category:"activity"},":woman_bouncing_ball_tone1:":{uc_base:"26f9-1f3fb-2640",uc_full:"26f9-1f3fb-200d-2640-fe0f",shortnames:[":woman_bouncing_ball_light_skin_tone:"],category:"activity"},":woman_bouncing_ball_tone2:":{uc_base:"26f9-1f3fc-2640",uc_full:"26f9-1f3fc-200d-2640-fe0f",shortnames:[":woman_bouncing_ball_medium_light_skin_tone:"],category:"activity"},":woman_bouncing_ball_tone3:":{uc_base:"26f9-1f3fd-2640",uc_full:"26f9-1f3fd-200d-2640-fe0f",shortnames:[":woman_bouncing_ball_medium_skin_tone:"],category:"activity"},":woman_bouncing_ball_tone4:":{uc_base:"26f9-1f3fe-2640",uc_full:"26f9-1f3fe-200d-2640-fe0f",shortnames:[":woman_bouncing_ball_medium_dark_skin_tone:"],category:"activity"},":woman_bouncing_ball_tone5:":{uc_base:"26f9-1f3ff-2640",uc_full:"26f9-1f3ff-200d-2640-fe0f",shortnames:[":woman_bouncing_ball_dark_skin_tone:"],category:"activity"},":adult_tone1:":{uc_base:"1f9d1-1f3fb",uc_full:"1f9d1-1f3fb",shortnames:[":adult_light_skin_tone:"],category:"people"},":adult_tone2:":{uc_base:"1f9d1-1f3fc",uc_full:"1f9d1-1f3fc",shortnames:[":adult_medium_light_skin_tone:"],category:"people"},":adult_tone3:":{uc_base:"1f9d1-1f3fd",uc_full:"1f9d1-1f3fd",shortnames:[":adult_medium_skin_tone:"],category:"people"},":adult_tone4:":{uc_base:"1f9d1-1f3fe",uc_full:"1f9d1-1f3fe",shortnames:[":adult_medium_dark_skin_tone:"],category:"people"},":adult_tone5:":{uc_base:"1f9d1-1f3ff",uc_full:"1f9d1-1f3ff",shortnames:[":adult_dark_skin_tone:"],category:"people"},":angel_tone1:":{uc_base:"1f47c-1f3fb",uc_full:"1f47c-1f3fb",shortnames:[],category:"people"},":angel_tone2:":{uc_base:"1f47c-1f3fc",uc_full:"1f47c-1f3fc",shortnames:[],category:"people"},":angel_tone3:":{uc_base:"1f47c-1f3fd",uc_full:"1f47c-1f3fd",shortnames:[],category:"people"},":angel_tone4:":{uc_base:"1f47c-1f3fe",uc_full:"1f47c-1f3fe",shortnames:[],category:"people"},":angel_tone5:":{uc_base:"1f47c-1f3ff",uc_full:"1f47c-1f3ff",shortnames:[],category:"people"},":artist:":{uc_base:"1f9d1-1f3a8",uc_full:"1f9d1-200d-1f3a8",shortnames:[],category:"people"},":astronaut:":{uc_base:"1f9d1-1f680",uc_full:"1f9d1-200d-1f680",shortnames:[],category:"people"},":baby_tone1:":{uc_base:"1f476-1f3fb",uc_full:"1f476-1f3fb",shortnames:[],category:"people"},":baby_tone2:":{uc_base:"1f476-1f3fc",uc_full:"1f476-1f3fc",shortnames:[],category:"people"},":baby_tone3:":{uc_base:"1f476-1f3fd",uc_full:"1f476-1f3fd",shortnames:[],category:"people"},":baby_tone4:":{uc_base:"1f476-1f3fe",uc_full:"1f476-1f3fe",shortnames:[],category:"people"},":baby_tone5:":{uc_base:"1f476-1f3ff",uc_full:"1f476-1f3ff",shortnames:[],category:"people"},":bath_tone1:":{uc_base:"1f6c0-1f3fb",uc_full:"1f6c0-1f3fb",shortnames:[],category:"objects"},":bath_tone2:":{uc_base:"1f6c0-1f3fc",uc_full:"1f6c0-1f3fc",shortnames:[],category:"objects"},":bath_tone3:":{uc_base:"1f6c0-1f3fd",uc_full:"1f6c0-1f3fd",shortnames:[],category:"objects"},":bath_tone4:":{uc_base:"1f6c0-1f3fe",uc_full:"1f6c0-1f3fe",shortnames:[],category:"objects"},":bath_tone5:":{uc_base:"1f6c0-1f3ff",uc_full:"1f6c0-1f3ff",shortnames:[],category:"objects"},":bearded_person_tone1:":{uc_base:"1f9d4-1f3fb",uc_full:"1f9d4-1f3fb",shortnames:[":bearded_person_light_skin_tone:"],category:"people"},":bearded_person_tone2:":{uc_base:"1f9d4-1f3fc",uc_full:"1f9d4-1f3fc",shortnames:[":bearded_person_medium_light_skin_tone:"],category:"people"},":bearded_person_tone3:":{uc_base:"1f9d4-1f3fd",uc_full:"1f9d4-1f3fd",shortnames:[":bearded_person_medium_skin_tone:"],category:"people"},":bearded_person_tone4:":{uc_base:"1f9d4-1f3fe",uc_full:"1f9d4-1f3fe",shortnames:[":bearded_person_medium_dark_skin_tone:"],category:"people"},":bearded_person_tone5:":{uc_base:"1f9d4-1f3ff",uc_full:"1f9d4-1f3ff",shortnames:[":bearded_person_dark_skin_tone:"],category:"people"},":blond_haired_person_tone1:":{uc_base:"1f471-1f3fb",uc_full:"1f471-1f3fb",shortnames:[":person_with_blond_hair_tone1:"],category:"people"},":blond_haired_person_tone2:":{uc_base:"1f471-1f3fc",uc_full:"1f471-1f3fc",shortnames:[":person_with_blond_hair_tone2:"],category:"people"},":blond_haired_person_tone3:":{uc_base:"1f471-1f3fd",uc_full:"1f471-1f3fd",shortnames:[":person_with_blond_hair_tone3:"],category:"people"},":blond_haired_person_tone4:":{uc_base:"1f471-1f3fe",uc_full:"1f471-1f3fe",shortnames:[":person_with_blond_hair_tone4:"],category:"people"},":blond_haired_person_tone5:":{uc_base:"1f471-1f3ff",uc_full:"1f471-1f3ff",shortnames:[":person_with_blond_hair_tone5:"],category:"people"},":boy_tone1:":{uc_base:"1f466-1f3fb",uc_full:"1f466-1f3fb",shortnames:[],category:"people"},":boy_tone2:":{uc_base:"1f466-1f3fc",uc_full:"1f466-1f3fc",shortnames:[],category:"people"},":boy_tone3:":{uc_base:"1f466-1f3fd",uc_full:"1f466-1f3fd",shortnames:[],category:"people"},":boy_tone4:":{uc_base:"1f466-1f3fe",uc_full:"1f466-1f3fe",shortnames:[],category:"people"},":boy_tone5:":{uc_base:"1f466-1f3ff",uc_full:"1f466-1f3ff",shortnames:[],category:"people"},":breast_feeding_tone1:":{uc_base:"1f931-1f3fb",uc_full:"1f931-1f3fb",shortnames:[":breast_feeding_light_skin_tone:"],category:"people"},":breast_feeding_tone2:":{uc_base:"1f931-1f3fc",uc_full:"1f931-1f3fc",shortnames:[":breast_feeding_medium_light_skin_tone:"],category:"people"},":breast_feeding_tone3:":{uc_base:"1f931-1f3fd",uc_full:"1f931-1f3fd",shortnames:[":breast_feeding_medium_skin_tone:"],category:"people"},":breast_feeding_tone4:":{uc_base:"1f931-1f3fe",uc_full:"1f931-1f3fe",shortnames:[":breast_feeding_medium_dark_skin_tone:"],category:"people"},":breast_feeding_tone5:":{uc_base:"1f931-1f3ff",uc_full:"1f931-1f3ff",shortnames:[":breast_feeding_dark_skin_tone:"],category:"people"},":call_me_tone1:":{uc_base:"1f919-1f3fb",uc_full:"1f919-1f3fb",shortnames:[":call_me_hand_tone1:"],category:"people"},":call_me_tone2:":{uc_base:"1f919-1f3fc",uc_full:"1f919-1f3fc",shortnames:[":call_me_hand_tone2:"],category:"people"},":call_me_tone3:":{uc_base:"1f919-1f3fd",uc_full:"1f919-1f3fd",shortnames:[":call_me_hand_tone3:"],category:"people"},":call_me_tone4:":{uc_base:"1f919-1f3fe",uc_full:"1f919-1f3fe",shortnames:[":call_me_hand_tone4:"],category:"people"},":call_me_tone5:":{uc_base:"1f919-1f3ff",uc_full:"1f919-1f3ff",shortnames:[":call_me_hand_tone5:"],category:"people"},":child_tone1:":{uc_base:"1f9d2-1f3fb",uc_full:"1f9d2-1f3fb",shortnames:[":child_light_skin_tone:"],category:"people"},":child_tone2:":{uc_base:"1f9d2-1f3fc",uc_full:"1f9d2-1f3fc",shortnames:[":child_medium_light_skin_tone:"],category:"people"},":child_tone3:":{uc_base:"1f9d2-1f3fd",uc_full:"1f9d2-1f3fd",shortnames:[":child_medium_skin_tone:"],category:"people"},":child_tone4:":{uc_base:"1f9d2-1f3fe",uc_full:"1f9d2-1f3fe",shortnames:[":child_medium_dark_skin_tone:"],category:"people"},":child_tone5:":{uc_base:"1f9d2-1f3ff",uc_full:"1f9d2-1f3ff",shortnames:[":child_dark_skin_tone:"],category:"people"},":clap_tone1:":{uc_base:"1f44f-1f3fb",uc_full:"1f44f-1f3fb",shortnames:[],category:"people"},":clap_tone2:":{uc_base:"1f44f-1f3fc",uc_full:"1f44f-1f3fc",shortnames:[],category:"people"},":clap_tone3:":{uc_base:"1f44f-1f3fd",uc_full:"1f44f-1f3fd",shortnames:[],category:"people"},":clap_tone4:":{uc_base:"1f44f-1f3fe",uc_full:"1f44f-1f3fe",shortnames:[],category:"people"},":clap_tone5:":{uc_base:"1f44f-1f3ff",uc_full:"1f44f-1f3ff",shortnames:[],category:"people"},":construction_worker_tone1:":{uc_base:"1f477-1f3fb",uc_full:"1f477-1f3fb",shortnames:[],category:"people"},":construction_worker_tone2:":{uc_base:"1f477-1f3fc",uc_full:"1f477-1f3fc",shortnames:[],category:"people"},":construction_worker_tone3:":{uc_base:"1f477-1f3fd",uc_full:"1f477-1f3fd",shortnames:[],category:"people"},":construction_worker_tone4:":{uc_base:"1f477-1f3fe",uc_full:"1f477-1f3fe",shortnames:[],category:"people"},":construction_worker_tone5:":{uc_base:"1f477-1f3ff",uc_full:"1f477-1f3ff",shortnames:[],category:"people"},":cook:":{uc_base:"1f9d1-1f373",uc_full:"1f9d1-200d-1f373",shortnames:[],category:"people"},":couple_with_heart_tone1:":{uc_base:"1f491-1f3fb",uc_full:"1f491-1f3fb",shortnames:[":couple_with_heart_light_skin_tone:"],category:"people"},":couple_with_heart_tone2:":{uc_base:"1f491-1f3fc",uc_full:"1f491-1f3fc",shortnames:[":couple_with_heart_medium_light_skin_tone:"],category:"people"},":couple_with_heart_tone3:":{uc_base:"1f491-1f3fd",uc_full:"1f491-1f3fd",shortnames:[":couple_with_heart_medium_skin_tone:"],category:"people"},":couple_with_heart_tone4:":{uc_base:"1f491-1f3fe",uc_full:"1f491-1f3fe",shortnames:[":couple_with_heart_medium_dark_skin_tone:"],category:"people"},":couple_with_heart_tone5:":{uc_base:"1f491-1f3ff",uc_full:"1f491-1f3ff",shortnames:[":couple_with_heart_dark_skin_tone:"],category:"people"},":dancer_tone1:":{uc_base:"1f483-1f3fb",uc_full:"1f483-1f3fb",shortnames:[],category:"people"},":dancer_tone2:":{uc_base:"1f483-1f3fc",uc_full:"1f483-1f3fc",shortnames:[],category:"people"},":dancer_tone3:":{uc_base:"1f483-1f3fd",uc_full:"1f483-1f3fd",shortnames:[],category:"people"},":dancer_tone4:":{uc_base:"1f483-1f3fe",uc_full:"1f483-1f3fe",shortnames:[],category:"people"},":dancer_tone5:":{uc_base:"1f483-1f3ff",uc_full:"1f483-1f3ff",shortnames:[],category:"people"},":deaf_person_tone1:":{uc_base:"1f9cf-1f3fb",uc_full:"1f9cf-1f3fb",shortnames:[":deaf_person_light_skin_tone:"],category:"people"},":deaf_person_tone2:":{uc_base:"1f9cf-1f3fc",uc_full:"1f9cf-1f3fc",shortnames:[":deaf_person_medium_light_skin_tone:"],category:"people"},":deaf_person_tone3:":{uc_base:"1f9cf-1f3fd",uc_full:"1f9cf-1f3fd",shortnames:[":deaf_person_medium_skin_tone:"],category:"people"},":deaf_person_tone4:":{uc_base:"1f9cf-1f3fe",uc_full:"1f9cf-1f3fe",shortnames:[":deaf_person_medium_dark_skin_tone:"],category:"people"},":deaf_person_tone5:":{uc_base:"1f9cf-1f3ff",uc_full:"1f9cf-1f3ff",shortnames:[":deaf_person_dark_skin_tone:"],category:"people"},":detective_tone1:":{uc_base:"1f575-1f3fb",uc_full:"1f575-1f3fb",shortnames:[":spy_tone1:",":sleuth_or_spy_tone1:"],category:"people"},":detective_tone2:":{uc_base:"1f575-1f3fc",uc_full:"1f575-1f3fc",shortnames:[":spy_tone2:",":sleuth_or_spy_tone2:"],category:"people"},":detective_tone3:":{uc_base:"1f575-1f3fd",uc_full:"1f575-1f3fd",shortnames:[":spy_tone3:",":sleuth_or_spy_tone3:"],category:"people"},":detective_tone4:":{uc_base:"1f575-1f3fe",uc_full:"1f575-1f3fe",shortnames:[":spy_tone4:",":sleuth_or_spy_tone4:"],category:"people"},":detective_tone5:":{uc_base:"1f575-1f3ff",uc_full:"1f575-1f3ff",shortnames:[":spy_tone5:",":sleuth_or_spy_tone5:"],category:"people"},":ear_tone1:":{uc_base:"1f442-1f3fb",uc_full:"1f442-1f3fb",shortnames:[],category:"people"},":ear_tone2:":{uc_base:"1f442-1f3fc",uc_full:"1f442-1f3fc",shortnames:[],category:"people"},":ear_tone3:":{uc_base:"1f442-1f3fd",uc_full:"1f442-1f3fd",shortnames:[],category:"people"},":ear_tone4:":{uc_base:"1f442-1f3fe",uc_full:"1f442-1f3fe",shortnames:[],category:"people"},":ear_tone5:":{uc_base:"1f442-1f3ff",uc_full:"1f442-1f3ff",shortnames:[],category:"people"},":ear_with_hearing_aid_tone1:":{uc_base:"1f9bb-1f3fb",uc_full:"1f9bb-1f3fb",shortnames:[":ear_with_hearing_aid_light_skin_tone:"],category:"people"},":ear_with_hearing_aid_tone2:":{uc_base:"1f9bb-1f3fc",uc_full:"1f9bb-1f3fc",shortnames:[":ear_with_hearing_aid_medium_light_skin_tone:"],category:"people"},":ear_with_hearing_aid_tone3:":{uc_base:"1f9bb-1f3fd",uc_full:"1f9bb-1f3fd",shortnames:[":ear_with_hearing_aid_medium_skin_tone:"],category:"people"},":ear_with_hearing_aid_tone4:":{uc_base:"1f9bb-1f3fe",uc_full:"1f9bb-1f3fe",shortnames:[":ear_with_hearing_aid_medium_dark_skin_tone:"],category:"people"},":ear_with_hearing_aid_tone5:":{uc_base:"1f9bb-1f3ff",uc_full:"1f9bb-1f3ff",shortnames:[":ear_with_hearing_aid_dark_skin_tone:"],category:"people"},":elf_tone1:":{uc_base:"1f9dd-1f3fb",uc_full:"1f9dd-1f3fb",shortnames:[":elf_light_skin_tone:"],category:"people"},":elf_tone2:":{uc_base:"1f9dd-1f3fc",uc_full:"1f9dd-1f3fc",shortnames:[":elf_medium_light_skin_tone:"],category:"people"},":elf_tone3:":{uc_base:"1f9dd-1f3fd",uc_full:"1f9dd-1f3fd",shortnames:[":elf_medium_skin_tone:"],category:"people"},":elf_tone4:":{uc_base:"1f9dd-1f3fe",uc_full:"1f9dd-1f3fe",shortnames:[":elf_medium_dark_skin_tone:"],category:"people"},":elf_tone5:":{uc_base:"1f9dd-1f3ff",uc_full:"1f9dd-1f3ff",shortnames:[":elf_dark_skin_tone:"],category:"people"},":eye_in_speech_bubble:":{uc_base:"1f441-1f5e8",uc_full:"1f441-fe0f-200d-1f5e8-fe0f",shortnames:[],category:"symbols"},":face_exhaling:":{uc_base:"1f62e-1f4a8",uc_full:"1f62e-200d-1f4a8",shortnames:[],category:"people"},":face_in_clouds:":{uc_base:"1f636-1f32b",uc_full:"1f636-200d-1f32b-fe0f",shortnames:[],category:"people"},":face_with_spiral_eyes:":{uc_base:"1f635-1f4ab",uc_full:"1f635-200d-1f4ab",shortnames:[],category:"people"},":factory_worker:":{uc_base:"1f9d1-1f3ed",uc_full:"1f9d1-200d-1f3ed",shortnames:[],category:"people"},":fairy_tone1:":{uc_base:"1f9da-1f3fb",uc_full:"1f9da-1f3fb",shortnames:[":fairy_light_skin_tone:"],category:"people"},":fairy_tone2:":{uc_base:"1f9da-1f3fc",uc_full:"1f9da-1f3fc",shortnames:[":fairy_medium_light_skin_tone:"],category:"people"},":fairy_tone3:":{uc_base:"1f9da-1f3fd",uc_full:"1f9da-1f3fd",shortnames:[":fairy_medium_skin_tone:"],category:"people"},":fairy_tone4:":{uc_base:"1f9da-1f3fe",uc_full:"1f9da-1f3fe",shortnames:[":fairy_medium_dark_skin_tone:"],category:"people"},":fairy_tone5:":{uc_base:"1f9da-1f3ff",uc_full:"1f9da-1f3ff",shortnames:[":fairy_dark_skin_tone:"],category:"people"},":family_man_boy:":{uc_base:"1f468-1f466",uc_full:"1f468-200d-1f466",shortnames:[],category:"people"},":family_man_girl:":{uc_base:"1f468-1f467",uc_full:"1f468-200d-1f467",shortnames:[],category:"people"},":family_woman_boy:":{uc_base:"1f469-1f466",uc_full:"1f469-200d-1f466",shortnames:[],category:"people"},":family_woman_girl:":{uc_base:"1f469-1f467",uc_full:"1f469-200d-1f467",shortnames:[],category:"people"},":farmer:":{uc_base:"1f9d1-1f33e",uc_full:"1f9d1-200d-1f33e",shortnames:[],category:"people"},":fingers_crossed_tone1:":{uc_base:"1f91e-1f3fb",uc_full:"1f91e-1f3fb",shortnames:[":hand_with_index_and_middle_fingers_crossed_tone1:"],category:"people"},":fingers_crossed_tone2:":{uc_base:"1f91e-1f3fc",uc_full:"1f91e-1f3fc",shortnames:[":hand_with_index_and_middle_fingers_crossed_tone2:"],category:"people"},":fingers_crossed_tone3:":{uc_base:"1f91e-1f3fd",uc_full:"1f91e-1f3fd",shortnames:[":hand_with_index_and_middle_fingers_crossed_tone3:"],category:"people"},":fingers_crossed_tone4:":{uc_base:"1f91e-1f3fe",uc_full:"1f91e-1f3fe",shortnames:[":hand_with_index_and_middle_fingers_crossed_tone4:"],category:"people"},":fingers_crossed_tone5:":{uc_base:"1f91e-1f3ff",uc_full:"1f91e-1f3ff",shortnames:[":hand_with_index_and_middle_fingers_crossed_tone5:"],category:"people"},":firefighter:":{uc_base:"1f9d1-1f692",uc_full:"1f9d1-200d-1f692",shortnames:[],category:"people"},":flag_ac:":{uc_base:"1f1e6-1f1e8",uc_full:"1f1e6-1f1e8",shortnames:[":ac:"],category:"flags"},":flag_ad:":{uc_base:"1f1e6-1f1e9",uc_full:"1f1e6-1f1e9",shortnames:[":ad:"],category:"flags"},":flag_ae:":{uc_base:"1f1e6-1f1ea",uc_full:"1f1e6-1f1ea",shortnames:[":ae:"],category:"flags"},":flag_af:":{uc_base:"1f1e6-1f1eb",uc_full:"1f1e6-1f1eb",shortnames:[":af:"],category:"flags"},":flag_ag:":{uc_base:"1f1e6-1f1ec",uc_full:"1f1e6-1f1ec",shortnames:[":ag:"],category:"flags"},":flag_ai:":{uc_base:"1f1e6-1f1ee",uc_full:"1f1e6-1f1ee",shortnames:[":ai:"],category:"flags"},":flag_al:":{uc_base:"1f1e6-1f1f1",uc_full:"1f1e6-1f1f1",shortnames:[":al:"],category:"flags"},":flag_am:":{uc_base:"1f1e6-1f1f2",uc_full:"1f1e6-1f1f2",shortnames:[":am:"],category:"flags"},":flag_ao:":{uc_base:"1f1e6-1f1f4",uc_full:"1f1e6-1f1f4",shortnames:[":ao:"],category:"flags"},":flag_aq:":{uc_base:"1f1e6-1f1f6",uc_full:"1f1e6-1f1f6",shortnames:[":aq:"],category:"flags"},":flag_ar:":{uc_base:"1f1e6-1f1f7",uc_full:"1f1e6-1f1f7",shortnames:[":ar:"],category:"flags"},":flag_as:":{uc_base:"1f1e6-1f1f8",uc_full:"1f1e6-1f1f8",shortnames:[":as:"],category:"flags"},":flag_at:":{uc_base:"1f1e6-1f1f9",uc_full:"1f1e6-1f1f9",shortnames:[":at:"],category:"flags"},":flag_au:":{uc_base:"1f1e6-1f1fa",uc_full:"1f1e6-1f1fa",shortnames:[":au:"],category:"flags"},":flag_aw:":{uc_base:"1f1e6-1f1fc",uc_full:"1f1e6-1f1fc",shortnames:[":aw:"],category:"flags"},":flag_ax:":{uc_base:"1f1e6-1f1fd",uc_full:"1f1e6-1f1fd",shortnames:[":ax:"],category:"flags"},":flag_az:":{uc_base:"1f1e6-1f1ff",uc_full:"1f1e6-1f1ff",shortnames:[":az:"],category:"flags"},":flag_ba:":{uc_base:"1f1e7-1f1e6",uc_full:"1f1e7-1f1e6",shortnames:[":ba:"],category:"flags"},":flag_bb:":{uc_base:"1f1e7-1f1e7",uc_full:"1f1e7-1f1e7",shortnames:[":bb:"],category:"flags"},":flag_bd:":{uc_base:"1f1e7-1f1e9",uc_full:"1f1e7-1f1e9",shortnames:[":bd:"],category:"flags"},":flag_be:":{uc_base:"1f1e7-1f1ea",uc_full:"1f1e7-1f1ea",shortnames:[":be:"],category:"flags"},":flag_bf:":{uc_base:"1f1e7-1f1eb",uc_full:"1f1e7-1f1eb",shortnames:[":bf:"],category:"flags"},":flag_bg:":{uc_base:"1f1e7-1f1ec",uc_full:"1f1e7-1f1ec",shortnames:[":bg:"],category:"flags"},":flag_bh:":{uc_base:"1f1e7-1f1ed",uc_full:"1f1e7-1f1ed",shortnames:[":bh:"],category:"flags"},":flag_bi:":{uc_base:"1f1e7-1f1ee",uc_full:"1f1e7-1f1ee",shortnames:[":bi:"],category:"flags"},":flag_bj:":{uc_base:"1f1e7-1f1ef",uc_full:"1f1e7-1f1ef",shortnames:[":bj:"],category:"flags"},":flag_bl:":{uc_base:"1f1e7-1f1f1",uc_full:"1f1e7-1f1f1",shortnames:[":bl:"],category:"flags"},":flag_bm:":{uc_base:"1f1e7-1f1f2",uc_full:"1f1e7-1f1f2",shortnames:[":bm:"],category:"flags"},":flag_bn:":{uc_base:"1f1e7-1f1f3",uc_full:"1f1e7-1f1f3",shortnames:[":bn:"],category:"flags"},":flag_bo:":{uc_base:"1f1e7-1f1f4",uc_full:"1f1e7-1f1f4",shortnames:[":bo:"],category:"flags"},":flag_bq:":{uc_base:"1f1e7-1f1f6",uc_full:"1f1e7-1f1f6",shortnames:[":bq:"],category:"flags"},":flag_br:":{uc_base:"1f1e7-1f1f7",uc_full:"1f1e7-1f1f7",shortnames:[":br:"],category:"flags"},":flag_bs:":{uc_base:"1f1e7-1f1f8",uc_full:"1f1e7-1f1f8",shortnames:[":bs:"],category:"flags"},":flag_bt:":{uc_base:"1f1e7-1f1f9",uc_full:"1f1e7-1f1f9",shortnames:[":bt:"],category:"flags"},":flag_bv:":{uc_base:"1f1e7-1f1fb",uc_full:"1f1e7-1f1fb",shortnames:[":bv:"],category:"flags"},":flag_bw:":{uc_base:"1f1e7-1f1fc",uc_full:"1f1e7-1f1fc",shortnames:[":bw:"],category:"flags"},":flag_by:":{uc_base:"1f1e7-1f1fe",uc_full:"1f1e7-1f1fe",shortnames:[":by:"],category:"flags"},":flag_bz:":{uc_base:"1f1e7-1f1ff",uc_full:"1f1e7-1f1ff",shortnames:[":bz:"],category:"flags"},":flag_ca:":{uc_base:"1f1e8-1f1e6",uc_full:"1f1e8-1f1e6",shortnames:[":ca:"],category:"flags"},":flag_cc:":{uc_base:"1f1e8-1f1e8",uc_full:"1f1e8-1f1e8",shortnames:[":cc:"],category:"flags"},":flag_cd:":{uc_base:"1f1e8-1f1e9",uc_full:"1f1e8-1f1e9",shortnames:[":congo:"],category:"flags"},":flag_cf:":{uc_base:"1f1e8-1f1eb",uc_full:"1f1e8-1f1eb",shortnames:[":cf:"],category:"flags"},":flag_cg:":{uc_base:"1f1e8-1f1ec",uc_full:"1f1e8-1f1ec",shortnames:[":cg:"],category:"flags"},":flag_ch:":{uc_base:"1f1e8-1f1ed",uc_full:"1f1e8-1f1ed",shortnames:[":ch:"],category:"flags"},":flag_ci:":{uc_base:"1f1e8-1f1ee",uc_full:"1f1e8-1f1ee",shortnames:[":ci:"],category:"flags"},":flag_ck:":{uc_base:"1f1e8-1f1f0",uc_full:"1f1e8-1f1f0",shortnames:[":ck:"],category:"flags"},":flag_cl:":{uc_base:"1f1e8-1f1f1",uc_full:"1f1e8-1f1f1",shortnames:[":chile:"],category:"flags"},":flag_cm:":{uc_base:"1f1e8-1f1f2",uc_full:"1f1e8-1f1f2",shortnames:[":cm:"],category:"flags"},":flag_cn:":{uc_base:"1f1e8-1f1f3",uc_full:"1f1e8-1f1f3",shortnames:[":cn:"],category:"flags"},":flag_co:":{uc_base:"1f1e8-1f1f4",uc_full:"1f1e8-1f1f4",shortnames:[":co:"],category:"flags"},":flag_cp:":{uc_base:"1f1e8-1f1f5",uc_full:"1f1e8-1f1f5",shortnames:[":cp:"],category:"flags"},":flag_cr:":{uc_base:"1f1e8-1f1f7",uc_full:"1f1e8-1f1f7",shortnames:[":cr:"],category:"flags"},":flag_cu:":{uc_base:"1f1e8-1f1fa",uc_full:"1f1e8-1f1fa",shortnames:[":cu:"],category:"flags"},":flag_cv:":{uc_base:"1f1e8-1f1fb",uc_full:"1f1e8-1f1fb",shortnames:[":cv:"],category:"flags"},":flag_cw:":{uc_base:"1f1e8-1f1fc",uc_full:"1f1e8-1f1fc",shortnames:[":cw:"],category:"flags"},":flag_cx:":{uc_base:"1f1e8-1f1fd",uc_full:"1f1e8-1f1fd",shortnames:[":cx:"],category:"flags"},":flag_cy:":{uc_base:"1f1e8-1f1fe",uc_full:"1f1e8-1f1fe",shortnames:[":cy:"],category:"flags"},":flag_cz:":{uc_base:"1f1e8-1f1ff",uc_full:"1f1e8-1f1ff",shortnames:[":cz:"],category:"flags"},":flag_de:":{uc_base:"1f1e9-1f1ea",uc_full:"1f1e9-1f1ea",shortnames:[":de:"],category:"flags"},":flag_dg:":{uc_base:"1f1e9-1f1ec",uc_full:"1f1e9-1f1ec",shortnames:[":dg:"],category:"flags"},":flag_dj:":{uc_base:"1f1e9-1f1ef",uc_full:"1f1e9-1f1ef",shortnames:[":dj:"],category:"flags"},":flag_dk:":{uc_base:"1f1e9-1f1f0",uc_full:"1f1e9-1f1f0",shortnames:[":dk:"],category:"flags"},":flag_dm:":{uc_base:"1f1e9-1f1f2",uc_full:"1f1e9-1f1f2",shortnames:[":dm:"],category:"flags"},":flag_do:":{uc_base:"1f1e9-1f1f4",uc_full:"1f1e9-1f1f4",shortnames:[":do:"],category:"flags"},":flag_dz:":{uc_base:"1f1e9-1f1ff",uc_full:"1f1e9-1f1ff",shortnames:[":dz:"],category:"flags"},":flag_ea:":{uc_base:"1f1ea-1f1e6",uc_full:"1f1ea-1f1e6",shortnames:[":ea:"],category:"flags"},":flag_ec:":{uc_base:"1f1ea-1f1e8",uc_full:"1f1ea-1f1e8",shortnames:[":ec:"],category:"flags"},":flag_ee:":{uc_base:"1f1ea-1f1ea",uc_full:"1f1ea-1f1ea",shortnames:[":ee:"],category:"flags"},":flag_eg:":{uc_base:"1f1ea-1f1ec",uc_full:"1f1ea-1f1ec",shortnames:[":eg:"],category:"flags"},":flag_eh:":{uc_base:"1f1ea-1f1ed",uc_full:"1f1ea-1f1ed",shortnames:[":eh:"],category:"flags"},":flag_er:":{uc_base:"1f1ea-1f1f7",uc_full:"1f1ea-1f1f7",shortnames:[":er:"],category:"flags"},":flag_es:":{uc_base:"1f1ea-1f1f8",uc_full:"1f1ea-1f1f8",shortnames:[":es:"],category:"flags"},":flag_et:":{uc_base:"1f1ea-1f1f9",uc_full:"1f1ea-1f1f9",shortnames:[":et:"],category:"flags"},":flag_eu:":{uc_base:"1f1ea-1f1fa",uc_full:"1f1ea-1f1fa",shortnames:[":eu:"],category:"flags"},":flag_fi:":{uc_base:"1f1eb-1f1ee",uc_full:"1f1eb-1f1ee",shortnames:[":fi:"],category:"flags"},":flag_fj:":{uc_base:"1f1eb-1f1ef",uc_full:"1f1eb-1f1ef",shortnames:[":fj:"],category:"flags"},":flag_fk:":{uc_base:"1f1eb-1f1f0",uc_full:"1f1eb-1f1f0",shortnames:[":fk:"],category:"flags"},":flag_fm:":{uc_base:"1f1eb-1f1f2",uc_full:"1f1eb-1f1f2",shortnames:[":fm:"],category:"flags"},":flag_fo:":{uc_base:"1f1eb-1f1f4",uc_full:"1f1eb-1f1f4",shortnames:[":fo:"],category:"flags"},":flag_fr:":{uc_base:"1f1eb-1f1f7",uc_full:"1f1eb-1f1f7",shortnames:[":fr:"],category:"flags"},":flag_ga:":{uc_base:"1f1ec-1f1e6",uc_full:"1f1ec-1f1e6",shortnames:[":ga:"],category:"flags"},":flag_gb:":{uc_base:"1f1ec-1f1e7",uc_full:"1f1ec-1f1e7",shortnames:[":gb:"],category:"flags"},":flag_gd:":{uc_base:"1f1ec-1f1e9",uc_full:"1f1ec-1f1e9",shortnames:[":gd:"],category:"flags"},":flag_ge:":{uc_base:"1f1ec-1f1ea",uc_full:"1f1ec-1f1ea",shortnames:[":ge:"],category:"flags"},":flag_gf:":{uc_base:"1f1ec-1f1eb",uc_full:"1f1ec-1f1eb",shortnames:[":gf:"],category:"flags"},":flag_gg:":{uc_base:"1f1ec-1f1ec",uc_full:"1f1ec-1f1ec",shortnames:[":gg:"],category:"flags"},":flag_gh:":{uc_base:"1f1ec-1f1ed",uc_full:"1f1ec-1f1ed",shortnames:[":gh:"],category:"flags"},":flag_gi:":{uc_base:"1f1ec-1f1ee",uc_full:"1f1ec-1f1ee",shortnames:[":gi:"],category:"flags"},":flag_gl:":{uc_base:"1f1ec-1f1f1",uc_full:"1f1ec-1f1f1",shortnames:[":gl:"],category:"flags"},":flag_gm:":{uc_base:"1f1ec-1f1f2",uc_full:"1f1ec-1f1f2",shortnames:[":gm:"],category:"flags"},":flag_gn:":{uc_base:"1f1ec-1f1f3",uc_full:"1f1ec-1f1f3",shortnames:[":gn:"],category:"flags"},":flag_gp:":{uc_base:"1f1ec-1f1f5",uc_full:"1f1ec-1f1f5",shortnames:[":gp:"],category:"flags"},":flag_gq:":{uc_base:"1f1ec-1f1f6",uc_full:"1f1ec-1f1f6",shortnames:[":gq:"],category:"flags"},":flag_gr:":{uc_base:"1f1ec-1f1f7",uc_full:"1f1ec-1f1f7",shortnames:[":gr:"],category:"flags"},":flag_gs:":{uc_base:"1f1ec-1f1f8",uc_full:"1f1ec-1f1f8",shortnames:[":gs:"],category:"flags"},":flag_gt:":{uc_base:"1f1ec-1f1f9",uc_full:"1f1ec-1f1f9",shortnames:[":gt:"],category:"flags"},":flag_gu:":{uc_base:"1f1ec-1f1fa",uc_full:"1f1ec-1f1fa",shortnames:[":gu:"],category:"flags"},":flag_gw:":{uc_base:"1f1ec-1f1fc",uc_full:"1f1ec-1f1fc",shortnames:[":gw:"],category:"flags"},":flag_gy:":{uc_base:"1f1ec-1f1fe",uc_full:"1f1ec-1f1fe",shortnames:[":gy:"],category:"flags"},":flag_hk:":{uc_base:"1f1ed-1f1f0",uc_full:"1f1ed-1f1f0",shortnames:[":hk:"],category:"flags"},":flag_hm:":{uc_base:"1f1ed-1f1f2",uc_full:"1f1ed-1f1f2",shortnames:[":hm:"],category:"flags"},":flag_hn:":{uc_base:"1f1ed-1f1f3",uc_full:"1f1ed-1f1f3",shortnames:[":hn:"],category:"flags"},":flag_hr:":{uc_base:"1f1ed-1f1f7",uc_full:"1f1ed-1f1f7",shortnames:[":hr:"],category:"flags"},":flag_ht:":{uc_base:"1f1ed-1f1f9",uc_full:"1f1ed-1f1f9",shortnames:[":ht:"],category:"flags"},":flag_hu:":{uc_base:"1f1ed-1f1fa",uc_full:"1f1ed-1f1fa",shortnames:[":hu:"],category:"flags"},":flag_ic:":{uc_base:"1f1ee-1f1e8",uc_full:"1f1ee-1f1e8",shortnames:[":ic:"],category:"flags"},":flag_id:":{uc_base:"1f1ee-1f1e9",uc_full:"1f1ee-1f1e9",shortnames:[":indonesia:"],category:"flags"},":flag_ie:":{uc_base:"1f1ee-1f1ea",uc_full:"1f1ee-1f1ea",shortnames:[":ie:"],category:"flags"},":flag_il:":{uc_base:"1f1ee-1f1f1",uc_full:"1f1ee-1f1f1",shortnames:[":il:"],category:"flags"},":flag_im:":{uc_base:"1f1ee-1f1f2",uc_full:"1f1ee-1f1f2",shortnames:[":im:"],category:"flags"},":flag_in:":{uc_base:"1f1ee-1f1f3",uc_full:"1f1ee-1f1f3",shortnames:[":in:"],category:"flags"},":flag_io:":{uc_base:"1f1ee-1f1f4",uc_full:"1f1ee-1f1f4",shortnames:[":io:"],category:"flags"},":flag_iq:":{uc_base:"1f1ee-1f1f6",uc_full:"1f1ee-1f1f6",shortnames:[":iq:"],category:"flags"},":flag_ir:":{uc_base:"1f1ee-1f1f7",uc_full:"1f1ee-1f1f7",shortnames:[":ir:"],category:"flags"},":flag_is:":{uc_base:"1f1ee-1f1f8",uc_full:"1f1ee-1f1f8",shortnames:[":is:"],category:"flags"},":flag_it:":{uc_base:"1f1ee-1f1f9",uc_full:"1f1ee-1f1f9",shortnames:[":it:"],category:"flags"},":flag_je:":{uc_base:"1f1ef-1f1ea",uc_full:"1f1ef-1f1ea",shortnames:[":je:"],category:"flags"},":flag_jm:":{uc_base:"1f1ef-1f1f2",uc_full:"1f1ef-1f1f2",shortnames:[":jm:"],category:"flags"},":flag_jo:":{uc_base:"1f1ef-1f1f4",uc_full:"1f1ef-1f1f4",shortnames:[":jo:"],category:"flags"},":flag_jp:":{uc_base:"1f1ef-1f1f5",uc_full:"1f1ef-1f1f5",shortnames:[":jp:"],category:"flags"},":flag_ke:":{uc_base:"1f1f0-1f1ea",uc_full:"1f1f0-1f1ea",shortnames:[":ke:"],category:"flags"},":flag_kg:":{uc_base:"1f1f0-1f1ec",uc_full:"1f1f0-1f1ec",shortnames:[":kg:"],category:"flags"},":flag_kh:":{uc_base:"1f1f0-1f1ed",uc_full:"1f1f0-1f1ed",shortnames:[":kh:"],category:"flags"},":flag_ki:":{uc_base:"1f1f0-1f1ee",uc_full:"1f1f0-1f1ee",shortnames:[":ki:"],category:"flags"},":flag_km:":{uc_base:"1f1f0-1f1f2",uc_full:"1f1f0-1f1f2",shortnames:[":km:"],category:"flags"},":flag_kn:":{uc_base:"1f1f0-1f1f3",uc_full:"1f1f0-1f1f3",shortnames:[":kn:"],category:"flags"},":flag_kp:":{uc_base:"1f1f0-1f1f5",uc_full:"1f1f0-1f1f5",shortnames:[":kp:"],category:"flags"},":flag_kr:":{uc_base:"1f1f0-1f1f7",uc_full:"1f1f0-1f1f7",shortnames:[":kr:"],category:"flags"},":flag_kw:":{uc_base:"1f1f0-1f1fc",uc_full:"1f1f0-1f1fc",shortnames:[":kw:"],category:"flags"},":flag_ky:":{uc_base:"1f1f0-1f1fe",uc_full:"1f1f0-1f1fe",shortnames:[":ky:"],category:"flags"},":flag_kz:":{uc_base:"1f1f0-1f1ff",uc_full:"1f1f0-1f1ff",shortnames:[":kz:"],category:"flags"},":flag_la:":{uc_base:"1f1f1-1f1e6",uc_full:"1f1f1-1f1e6",shortnames:[":la:"],category:"flags"},":flag_lb:":{uc_base:"1f1f1-1f1e7",uc_full:"1f1f1-1f1e7",shortnames:[":lb:"],category:"flags"},":flag_lc:":{uc_base:"1f1f1-1f1e8",uc_full:"1f1f1-1f1e8",shortnames:[":lc:"],category:"flags"},":flag_li:":{uc_base:"1f1f1-1f1ee",uc_full:"1f1f1-1f1ee",shortnames:[":li:"],category:"flags"},":flag_lk:":{uc_base:"1f1f1-1f1f0",uc_full:"1f1f1-1f1f0",shortnames:[":lk:"],category:"flags"},":flag_lr:":{uc_base:"1f1f1-1f1f7",uc_full:"1f1f1-1f1f7",shortnames:[":lr:"],category:"flags"},":flag_ls:":{uc_base:"1f1f1-1f1f8",uc_full:"1f1f1-1f1f8",shortnames:[":ls:"],category:"flags"},":flag_lt:":{uc_base:"1f1f1-1f1f9",uc_full:"1f1f1-1f1f9",shortnames:[":lt:"],category:"flags"},":flag_lu:":{uc_base:"1f1f1-1f1fa",uc_full:"1f1f1-1f1fa",shortnames:[":lu:"],category:"flags"},":flag_lv:":{uc_base:"1f1f1-1f1fb",uc_full:"1f1f1-1f1fb",shortnames:[":lv:"],category:"flags"},":flag_ly:":{uc_base:"1f1f1-1f1fe",uc_full:"1f1f1-1f1fe",shortnames:[":ly:"],category:"flags"},":flag_ma:":{uc_base:"1f1f2-1f1e6",uc_full:"1f1f2-1f1e6",shortnames:[":ma:"],category:"flags"},":flag_mc:":{uc_base:"1f1f2-1f1e8",uc_full:"1f1f2-1f1e8",shortnames:[":mc:"],category:"flags"},":flag_md:":{uc_base:"1f1f2-1f1e9",uc_full:"1f1f2-1f1e9",shortnames:[":md:"],category:"flags"},":flag_me:":{uc_base:"1f1f2-1f1ea",uc_full:"1f1f2-1f1ea",shortnames:[":me:"],category:"flags"},":flag_mf:":{uc_base:"1f1f2-1f1eb",uc_full:"1f1f2-1f1eb",shortnames:[":mf:"],category:"flags"},":flag_mg:":{uc_base:"1f1f2-1f1ec",uc_full:"1f1f2-1f1ec",shortnames:[":mg:"],category:"flags"},":flag_mh:":{uc_base:"1f1f2-1f1ed",uc_full:"1f1f2-1f1ed",shortnames:[":mh:"],category:"flags"},":flag_mk:":{uc_base:"1f1f2-1f1f0",uc_full:"1f1f2-1f1f0",shortnames:[":mk:"],category:"flags"},":flag_ml:":{uc_base:"1f1f2-1f1f1",uc_full:"1f1f2-1f1f1",shortnames:[":ml:"],category:"flags"},":flag_mm:":{uc_base:"1f1f2-1f1f2",uc_full:"1f1f2-1f1f2",shortnames:[":mm:"],category:"flags"},":flag_mn:":{uc_base:"1f1f2-1f1f3",uc_full:"1f1f2-1f1f3",shortnames:[":mn:"],category:"flags"},":flag_mo:":{uc_base:"1f1f2-1f1f4",uc_full:"1f1f2-1f1f4",shortnames:[":mo:"],category:"flags"},":flag_mp:":{uc_base:"1f1f2-1f1f5",uc_full:"1f1f2-1f1f5",shortnames:[":mp:"],category:"flags"},":flag_mq:":{uc_base:"1f1f2-1f1f6",uc_full:"1f1f2-1f1f6",shortnames:[":mq:"],category:"flags"},":flag_mr:":{uc_base:"1f1f2-1f1f7",uc_full:"1f1f2-1f1f7",shortnames:[":mr:"],category:"flags"},":flag_ms:":{uc_base:"1f1f2-1f1f8",uc_full:"1f1f2-1f1f8",shortnames:[":ms:"],category:"flags"},":flag_mt:":{uc_base:"1f1f2-1f1f9",uc_full:"1f1f2-1f1f9",shortnames:[":mt:"],category:"flags"},":flag_mu:":{uc_base:"1f1f2-1f1fa",uc_full:"1f1f2-1f1fa",shortnames:[":mu:"],category:"flags"},":flag_mv:":{uc_base:"1f1f2-1f1fb",uc_full:"1f1f2-1f1fb",shortnames:[":mv:"],category:"flags"},":flag_mw:":{uc_base:"1f1f2-1f1fc",uc_full:"1f1f2-1f1fc",shortnames:[":mw:"],category:"flags"},":flag_mx:":{uc_base:"1f1f2-1f1fd",uc_full:"1f1f2-1f1fd",shortnames:[":mx:"],category:"flags"},":flag_my:":{uc_base:"1f1f2-1f1fe",uc_full:"1f1f2-1f1fe",shortnames:[":my:"],category:"flags"},":flag_mz:":{uc_base:"1f1f2-1f1ff",uc_full:"1f1f2-1f1ff",shortnames:[":mz:"],category:"flags"},":flag_na:":{uc_base:"1f1f3-1f1e6",uc_full:"1f1f3-1f1e6",shortnames:[":na:"],category:"flags"},":flag_nc:":{uc_base:"1f1f3-1f1e8",uc_full:"1f1f3-1f1e8",shortnames:[":nc:"],category:"flags"},":flag_ne:":{uc_base:"1f1f3-1f1ea",uc_full:"1f1f3-1f1ea",shortnames:[":ne:"],category:"flags"},":flag_nf:":{uc_base:"1f1f3-1f1eb",uc_full:"1f1f3-1f1eb",shortnames:[":nf:"],category:"flags"},":flag_ng:":{uc_base:"1f1f3-1f1ec",uc_full:"1f1f3-1f1ec",shortnames:[":nigeria:"],category:"flags"},":flag_ni:":{uc_base:"1f1f3-1f1ee",uc_full:"1f1f3-1f1ee",shortnames:[":ni:"],category:"flags"},":flag_nl:":{uc_base:"1f1f3-1f1f1",uc_full:"1f1f3-1f1f1",shortnames:[":nl:"],category:"flags"},":flag_no:":{uc_base:"1f1f3-1f1f4",uc_full:"1f1f3-1f1f4",shortnames:[":no:"],category:"flags"},":flag_np:":{uc_base:"1f1f3-1f1f5",uc_full:"1f1f3-1f1f5",shortnames:[":np:"],category:"flags"},":flag_nr:":{uc_base:"1f1f3-1f1f7",uc_full:"1f1f3-1f1f7",shortnames:[":nr:"],category:"flags"},":flag_nu:":{uc_base:"1f1f3-1f1fa",uc_full:"1f1f3-1f1fa",shortnames:[":nu:"],category:"flags"},":flag_nz:":{uc_base:"1f1f3-1f1ff",uc_full:"1f1f3-1f1ff",shortnames:[":nz:"],category:"flags"},":flag_om:":{uc_base:"1f1f4-1f1f2",uc_full:"1f1f4-1f1f2",shortnames:[":om:"],category:"flags"},":flag_pa:":{uc_base:"1f1f5-1f1e6",uc_full:"1f1f5-1f1e6",shortnames:[":pa:"],category:"flags"},":flag_pe:":{uc_base:"1f1f5-1f1ea",uc_full:"1f1f5-1f1ea",shortnames:[":pe:"],category:"flags"},":flag_pf:":{uc_base:"1f1f5-1f1eb",uc_full:"1f1f5-1f1eb",shortnames:[":pf:"],category:"flags"},":flag_pg:":{uc_base:"1f1f5-1f1ec",uc_full:"1f1f5-1f1ec",shortnames:[":pg:"],category:"flags"},":flag_ph:":{uc_base:"1f1f5-1f1ed",uc_full:"1f1f5-1f1ed",shortnames:[":ph:"],category:"flags"},":flag_pk:":{uc_base:"1f1f5-1f1f0",uc_full:"1f1f5-1f1f0",shortnames:[":pk:"],category:"flags"},":flag_pl:":{uc_base:"1f1f5-1f1f1",uc_full:"1f1f5-1f1f1",shortnames:[":pl:"],category:"flags"},":flag_pm:":{uc_base:"1f1f5-1f1f2",uc_full:"1f1f5-1f1f2",shortnames:[":pm:"],category:"flags"},":flag_pn:":{uc_base:"1f1f5-1f1f3",uc_full:"1f1f5-1f1f3",shortnames:[":pn:"],category:"flags"},":flag_pr:":{uc_base:"1f1f5-1f1f7",uc_full:"1f1f5-1f1f7",shortnames:[":pr:"],category:"flags"},":flag_ps:":{uc_base:"1f1f5-1f1f8",uc_full:"1f1f5-1f1f8",shortnames:[":ps:"],category:"flags"},":flag_pt:":{uc_base:"1f1f5-1f1f9",uc_full:"1f1f5-1f1f9",shortnames:[":pt:"],category:"flags"},":flag_pw:":{uc_base:"1f1f5-1f1fc",uc_full:"1f1f5-1f1fc",shortnames:[":pw:"],category:"flags"},":flag_py:":{uc_base:"1f1f5-1f1fe",uc_full:"1f1f5-1f1fe",shortnames:[":py:"],category:"flags"},":flag_qa:":{uc_base:"1f1f6-1f1e6",uc_full:"1f1f6-1f1e6",shortnames:[":qa:"],category:"flags"},":flag_re:":{uc_base:"1f1f7-1f1ea",uc_full:"1f1f7-1f1ea",shortnames:[":re:"],category:"flags"},":flag_ro:":{uc_base:"1f1f7-1f1f4",uc_full:"1f1f7-1f1f4",shortnames:[":ro:"],category:"flags"},":flag_rs:":{uc_base:"1f1f7-1f1f8",uc_full:"1f1f7-1f1f8",shortnames:[":rs:"],category:"flags"},":flag_ru:":{uc_base:"1f1f7-1f1fa",uc_full:"1f1f7-1f1fa",shortnames:[":ru:"],category:"flags"},":flag_rw:":{uc_base:"1f1f7-1f1fc",uc_full:"1f1f7-1f1fc",shortnames:[":rw:"],category:"flags"},":flag_sa:":{uc_base:"1f1f8-1f1e6",uc_full:"1f1f8-1f1e6",shortnames:[":saudiarabia:",":saudi:"],category:"flags"},":flag_sb:":{uc_base:"1f1f8-1f1e7",uc_full:"1f1f8-1f1e7",shortnames:[":sb:"],category:"flags"},":flag_sc:":{uc_base:"1f1f8-1f1e8",uc_full:"1f1f8-1f1e8",shortnames:[":sc:"],category:"flags"},":flag_sd:":{uc_base:"1f1f8-1f1e9",uc_full:"1f1f8-1f1e9",shortnames:[":sd:"],category:"flags"},":flag_se:":{uc_base:"1f1f8-1f1ea",uc_full:"1f1f8-1f1ea",shortnames:[":se:"],category:"flags"},":flag_sg:":{uc_base:"1f1f8-1f1ec",uc_full:"1f1f8-1f1ec",shortnames:[":sg:"],category:"flags"},":flag_sh:":{uc_base:"1f1f8-1f1ed",uc_full:"1f1f8-1f1ed",shortnames:[":sh:"],category:"flags"},":flag_si:":{uc_base:"1f1f8-1f1ee",uc_full:"1f1f8-1f1ee",shortnames:[":si:"],category:"flags"},":flag_sj:":{uc_base:"1f1f8-1f1ef",uc_full:"1f1f8-1f1ef",shortnames:[":sj:"],category:"flags"},":flag_sk:":{uc_base:"1f1f8-1f1f0",uc_full:"1f1f8-1f1f0",shortnames:[":sk:"],category:"flags"},":flag_sl:":{uc_base:"1f1f8-1f1f1",uc_full:"1f1f8-1f1f1",shortnames:[":sl:"],category:"flags"},":flag_sm:":{uc_base:"1f1f8-1f1f2",uc_full:"1f1f8-1f1f2",shortnames:[":sm:"],category:"flags"},":flag_sn:":{uc_base:"1f1f8-1f1f3",uc_full:"1f1f8-1f1f3",shortnames:[":sn:"],category:"flags"},":flag_so:":{uc_base:"1f1f8-1f1f4",uc_full:"1f1f8-1f1f4",shortnames:[":so:"],category:"flags"},":flag_sr:":{uc_base:"1f1f8-1f1f7",uc_full:"1f1f8-1f1f7",shortnames:[":sr:"],category:"flags"},":flag_ss:":{uc_base:"1f1f8-1f1f8",uc_full:"1f1f8-1f1f8",shortnames:[":ss:"],category:"flags"},":flag_st:":{uc_base:"1f1f8-1f1f9",uc_full:"1f1f8-1f1f9",shortnames:[":st:"],category:"flags"},":flag_sv:":{uc_base:"1f1f8-1f1fb",uc_full:"1f1f8-1f1fb",shortnames:[":sv:"],category:"flags"},":flag_sx:":{uc_base:"1f1f8-1f1fd",uc_full:"1f1f8-1f1fd",shortnames:[":sx:"],category:"flags"},":flag_sy:":{uc_base:"1f1f8-1f1fe",uc_full:"1f1f8-1f1fe",shortnames:[":sy:"],category:"flags"},":flag_sz:":{uc_base:"1f1f8-1f1ff",uc_full:"1f1f8-1f1ff",shortnames:[":sz:"],category:"flags"},":flag_ta:":{uc_base:"1f1f9-1f1e6",uc_full:"1f1f9-1f1e6",shortnames:[":ta:"],category:"flags"},":flag_tc:":{uc_base:"1f1f9-1f1e8",uc_full:"1f1f9-1f1e8",shortnames:[":tc:"],category:"flags"},":flag_td:":{uc_base:"1f1f9-1f1e9",uc_full:"1f1f9-1f1e9",shortnames:[":td:"],category:"flags"},":flag_tf:":{uc_base:"1f1f9-1f1eb",uc_full:"1f1f9-1f1eb",shortnames:[":tf:"],category:"flags"},":flag_tg:":{uc_base:"1f1f9-1f1ec",uc_full:"1f1f9-1f1ec",shortnames:[":tg:"],category:"flags"},":flag_th:":{uc_base:"1f1f9-1f1ed",uc_full:"1f1f9-1f1ed",shortnames:[":th:"],category:"flags"},":flag_tj:":{uc_base:"1f1f9-1f1ef",uc_full:"1f1f9-1f1ef",shortnames:[":tj:"],category:"flags"},":flag_tk:":{uc_base:"1f1f9-1f1f0",uc_full:"1f1f9-1f1f0",shortnames:[":tk:"],category:"flags"},":flag_tl:":{uc_base:"1f1f9-1f1f1",uc_full:"1f1f9-1f1f1",shortnames:[":tl:"],category:"flags"},":flag_tm:":{uc_base:"1f1f9-1f1f2",uc_full:"1f1f9-1f1f2",shortnames:[":turkmenistan:"],category:"flags"},":flag_tn:":{uc_base:"1f1f9-1f1f3",uc_full:"1f1f9-1f1f3",shortnames:[":tn:"],category:"flags"},":flag_to:":{uc_base:"1f1f9-1f1f4",uc_full:"1f1f9-1f1f4",shortnames:[":to:"],category:"flags"},":flag_tr:":{uc_base:"1f1f9-1f1f7",uc_full:"1f1f9-1f1f7",shortnames:[":tr:"],category:"flags"},":flag_tt:":{uc_base:"1f1f9-1f1f9",uc_full:"1f1f9-1f1f9",shortnames:[":tt:"],category:"flags"},":flag_tv:":{uc_base:"1f1f9-1f1fb",uc_full:"1f1f9-1f1fb",shortnames:[":tuvalu:"],category:"flags"},":flag_tw:":{uc_base:"1f1f9-1f1fc",uc_full:"1f1f9-1f1fc",shortnames:[":tw:"],category:"flags"},":flag_tz:":{uc_base:"1f1f9-1f1ff",uc_full:"1f1f9-1f1ff",shortnames:[":tz:"],category:"flags"},":flag_ua:":{uc_base:"1f1fa-1f1e6",uc_full:"1f1fa-1f1e6",shortnames:[":ua:"],category:"flags"},":flag_ug:":{uc_base:"1f1fa-1f1ec",uc_full:"1f1fa-1f1ec",shortnames:[":ug:"],category:"flags"},":flag_um:":{uc_base:"1f1fa-1f1f2",uc_full:"1f1fa-1f1f2",shortnames:[":um:"],category:"flags"},":flag_us:":{uc_base:"1f1fa-1f1f8",uc_full:"1f1fa-1f1f8",shortnames:[":us:"],category:"flags"},":flag_uy:":{uc_base:"1f1fa-1f1fe",uc_full:"1f1fa-1f1fe",shortnames:[":uy:"],category:"flags"},":flag_uz:":{uc_base:"1f1fa-1f1ff",uc_full:"1f1fa-1f1ff",shortnames:[":uz:"],category:"flags"},":flag_va:":{uc_base:"1f1fb-1f1e6",uc_full:"1f1fb-1f1e6",shortnames:[":va:"],category:"flags"},":flag_vc:":{uc_base:"1f1fb-1f1e8",uc_full:"1f1fb-1f1e8",shortnames:[":vc:"],category:"flags"},":flag_ve:":{uc_base:"1f1fb-1f1ea",uc_full:"1f1fb-1f1ea",shortnames:[":ve:"],category:"flags"},":flag_vg:":{uc_base:"1f1fb-1f1ec",uc_full:"1f1fb-1f1ec",shortnames:[":vg:"],category:"flags"},":flag_vi:":{uc_base:"1f1fb-1f1ee",uc_full:"1f1fb-1f1ee",shortnames:[":vi:"],category:"flags"},":flag_vn:":{uc_base:"1f1fb-1f1f3",uc_full:"1f1fb-1f1f3",shortnames:[":vn:"],category:"flags"},":flag_vu:":{uc_base:"1f1fb-1f1fa",uc_full:"1f1fb-1f1fa",shortnames:[":vu:"],category:"flags"},":flag_wf:":{uc_base:"1f1fc-1f1eb",uc_full:"1f1fc-1f1eb",shortnames:[":wf:"],category:"flags"},":flag_ws:":{uc_base:"1f1fc-1f1f8",uc_full:"1f1fc-1f1f8",shortnames:[":ws:"],category:"flags"},":flag_xk:":{uc_base:"1f1fd-1f1f0",uc_full:"1f1fd-1f1f0",shortnames:[":xk:"],category:"flags"},":flag_ye:":{uc_base:"1f1fe-1f1ea",uc_full:"1f1fe-1f1ea",shortnames:[":ye:"],category:"flags"},":flag_yt:":{uc_base:"1f1fe-1f1f9",uc_full:"1f1fe-1f1f9",shortnames:[":yt:"],category:"flags"},":flag_za:":{uc_base:"1f1ff-1f1e6",uc_full:"1f1ff-1f1e6",shortnames:[":za:"],category:"flags"},":flag_zm:":{uc_base:"1f1ff-1f1f2",uc_full:"1f1ff-1f1f2",shortnames:[":zm:"],category:"flags"},":flag_zw:":{uc_base:"1f1ff-1f1fc",uc_full:"1f1ff-1f1fc",shortnames:[":zw:"],category:"flags"},":foot_tone1:":{uc_base:"1f9b6-1f3fb",uc_full:"1f9b6-1f3fb",shortnames:[":foot_light_skin_tone:"],category:"people"},":foot_tone2:":{uc_base:"1f9b6-1f3fc",uc_full:"1f9b6-1f3fc",shortnames:[":foot_medium_light_skin_tone:"],category:"people"},":foot_tone3:":{uc_base:"1f9b6-1f3fd",uc_full:"1f9b6-1f3fd",shortnames:[":foot_medium_skin_tone:"],category:"people"},":foot_tone4:":{uc_base:"1f9b6-1f3fe",uc_full:"1f9b6-1f3fe",shortnames:[":foot_medium_dark_skin_tone:"],category:"people"},":foot_tone5:":{uc_base:"1f9b6-1f3ff",uc_full:"1f9b6-1f3ff",shortnames:[":foot_dark_skin_tone:"],category:"people"},":girl_tone1:":{uc_base:"1f467-1f3fb",uc_full:"1f467-1f3fb",shortnames:[],category:"people"},":girl_tone2:":{uc_base:"1f467-1f3fc",uc_full:"1f467-1f3fc",shortnames:[],category:"people"},":girl_tone3:":{uc_base:"1f467-1f3fd",uc_full:"1f467-1f3fd",shortnames:[],category:"people"},":girl_tone4:":{uc_base:"1f467-1f3fe",uc_full:"1f467-1f3fe",shortnames:[],category:"people"},":girl_tone5:":{uc_base:"1f467-1f3ff",uc_full:"1f467-1f3ff",shortnames:[],category:"people"},":guard_tone1:":{uc_base:"1f482-1f3fb",uc_full:"1f482-1f3fb",shortnames:[":guardsman_tone1:"],category:"people"},":guard_tone2:":{uc_base:"1f482-1f3fc",uc_full:"1f482-1f3fc",shortnames:[":guardsman_tone2:"],category:"people"},":guard_tone3:":{uc_base:"1f482-1f3fd",uc_full:"1f482-1f3fd",shortnames:[":guardsman_tone3:"],category:"people"},":guard_tone4:":{uc_base:"1f482-1f3fe",uc_full:"1f482-1f3fe",shortnames:[":guardsman_tone4:"],category:"people"},":guard_tone5:":{uc_base:"1f482-1f3ff",uc_full:"1f482-1f3ff",shortnames:[":guardsman_tone5:"],category:"people"},":hand_splayed_tone1:":{uc_base:"1f590-1f3fb",uc_full:"1f590-1f3fb",shortnames:[":raised_hand_with_fingers_splayed_tone1:"],category:"people"},":hand_splayed_tone2:":{uc_base:"1f590-1f3fc",uc_full:"1f590-1f3fc",shortnames:[":raised_hand_with_fingers_splayed_tone2:"],category:"people"},":hand_splayed_tone3:":{uc_base:"1f590-1f3fd",uc_full:"1f590-1f3fd",shortnames:[":raised_hand_with_fingers_splayed_tone3:"],category:"people"},":hand_splayed_tone4:":{uc_base:"1f590-1f3fe",uc_full:"1f590-1f3fe",shortnames:[":raised_hand_with_fingers_splayed_tone4:"],category:"people"},":hand_splayed_tone5:":{uc_base:"1f590-1f3ff",uc_full:"1f590-1f3ff",shortnames:[":raised_hand_with_fingers_splayed_tone5:"],category:"people"},":horse_racing_tone1:":{uc_base:"1f3c7-1f3fb",uc_full:"1f3c7-1f3fb",shortnames:[],category:"activity"},":horse_racing_tone2:":{uc_base:"1f3c7-1f3fc",uc_full:"1f3c7-1f3fc",shortnames:[],category:"activity"},":horse_racing_tone3:":{uc_base:"1f3c7-1f3fd",uc_full:"1f3c7-1f3fd",shortnames:[],category:"activity"},":horse_racing_tone4:":{uc_base:"1f3c7-1f3fe",uc_full:"1f3c7-1f3fe",shortnames:[],category:"activity"},":horse_racing_tone5:":{uc_base:"1f3c7-1f3ff",uc_full:"1f3c7-1f3ff",shortnames:[],category:"activity"},":kiss_tone1:":{uc_base:"1f48f-1f3fb",uc_full:"1f48f-1f3fb",shortnames:[":kiss_light_skin_tone:"],category:"people"},":kiss_tone2:":{uc_base:"1f48f-1f3fc",uc_full:"1f48f-1f3fc",shortnames:[":kiss_medium_light_skin_tone:"],category:"people"},":kiss_tone3:":{uc_base:"1f48f-1f3fd",uc_full:"1f48f-1f3fd",shortnames:[":kiss_medium_skin_tone:"],category:"people"},":kiss_tone4:":{uc_base:"1f48f-1f3fe",uc_full:"1f48f-1f3fe",shortnames:[":kiss_medium_dark_skin_tone:"],category:"people"},":kiss_tone5:":{uc_base:"1f48f-1f3ff",uc_full:"1f48f-1f3ff",shortnames:[":kiss_dark_skin_tone:"],category:"people"},":left_facing_fist_tone1:":{uc_base:"1f91b-1f3fb",uc_full:"1f91b-1f3fb",shortnames:[":left_fist_tone1:"],category:"people"},":left_facing_fist_tone2:":{uc_base:"1f91b-1f3fc",uc_full:"1f91b-1f3fc",shortnames:[":left_fist_tone2:"],category:"people"},":left_facing_fist_tone3:":{uc_base:"1f91b-1f3fd",uc_full:"1f91b-1f3fd",shortnames:[":left_fist_tone3:"],category:"people"},":left_facing_fist_tone4:":{uc_base:"1f91b-1f3fe",uc_full:"1f91b-1f3fe",shortnames:[":left_fist_tone4:"],category:"people"},":left_facing_fist_tone5:":{uc_base:"1f91b-1f3ff",uc_full:"1f91b-1f3ff",shortnames:[":left_fist_tone5:"],category:"people"},":leg_tone1:":{uc_base:"1f9b5-1f3fb",uc_full:"1f9b5-1f3fb",shortnames:[":leg_light_skin_tone:"],category:"people"},":leg_tone2:":{uc_base:"1f9b5-1f3fc",uc_full:"1f9b5-1f3fc",shortnames:[":leg_medium_light_skin_tone:"],category:"people"},":leg_tone3:":{uc_base:"1f9b5-1f3fd",uc_full:"1f9b5-1f3fd",shortnames:[":leg_medium_skin_tone:"],category:"people"},":leg_tone4:":{uc_base:"1f9b5-1f3fe",uc_full:"1f9b5-1f3fe",shortnames:[":leg_medium_dark_skin_tone:"],category:"people"},":leg_tone5:":{uc_base:"1f9b5-1f3ff",uc_full:"1f9b5-1f3ff",shortnames:[":leg_dark_skin_tone:"],category:"people"},":levitate_tone1:":{uc_base:"1f574-1f3fb",uc_full:"1f574-1f3fb",shortnames:[":man_in_business_suit_levitating_tone1:",":man_in_business_suit_levitating_light_skin_tone:"],category:"people"},":levitate_tone2:":{uc_base:"1f574-1f3fc",uc_full:"1f574-1f3fc",shortnames:[":man_in_business_suit_levitating_tone2:",":man_in_business_suit_levitating_medium_light_skin_tone:"],category:"people"},":levitate_tone3:":{uc_base:"1f574-1f3fd",uc_full:"1f574-1f3fd",shortnames:[":man_in_business_suit_levitating_tone3:",":man_in_business_suit_levitating_medium_skin_tone:"],category:"people"},":levitate_tone4:":{uc_base:"1f574-1f3fe",uc_full:"1f574-1f3fe",shortnames:[":man_in_business_suit_levitating_tone4:",":man_in_business_suit_levitating_medium_dark_skin_tone:"],category:"people"},":levitate_tone5:":{uc_base:"1f574-1f3ff",uc_full:"1f574-1f3ff",shortnames:[":man_in_business_suit_levitating_tone5:",":man_in_business_suit_levitating_dark_skin_tone:"],category:"people"},":love_you_gesture_tone1:":{uc_base:"1f91f-1f3fb",uc_full:"1f91f-1f3fb",shortnames:[":love_you_gesture_light_skin_tone:"],category:"people"},":love_you_gesture_tone2:":{uc_base:"1f91f-1f3fc",uc_full:"1f91f-1f3fc",shortnames:[":love_you_gesture_medium_light_skin_tone:"],category:"people"},":love_you_gesture_tone3:":{uc_base:"1f91f-1f3fd",uc_full:"1f91f-1f3fd",shortnames:[":love_you_gesture_medium_skin_tone:"],category:"people"},":love_you_gesture_tone4:":{uc_base:"1f91f-1f3fe",uc_full:"1f91f-1f3fe",shortnames:[":love_you_gesture_medium_dark_skin_tone:"],category:"people"},":love_you_gesture_tone5:":{uc_base:"1f91f-1f3ff",uc_full:"1f91f-1f3ff",shortnames:[":love_you_gesture_dark_skin_tone:"],category:"people"},":mage_tone1:":{uc_base:"1f9d9-1f3fb",uc_full:"1f9d9-1f3fb",shortnames:[":mage_light_skin_tone:"],category:"people"},":mage_tone2:":{uc_base:"1f9d9-1f3fc",uc_full:"1f9d9-1f3fc",shortnames:[":mage_medium_light_skin_tone:"],category:"people"},":mage_tone3:":{uc_base:"1f9d9-1f3fd",uc_full:"1f9d9-1f3fd",shortnames:[":mage_medium_skin_tone:"],category:"people"},":mage_tone4:":{uc_base:"1f9d9-1f3fe",uc_full:"1f9d9-1f3fe",shortnames:[":mage_medium_dark_skin_tone:"],category:"people"},":mage_tone5:":{uc_base:"1f9d9-1f3ff",uc_full:"1f9d9-1f3ff",shortnames:[":mage_dark_skin_tone:"],category:"people"},":man_artist:":{uc_base:"1f468-1f3a8",uc_full:"1f468-200d-1f3a8",shortnames:[],category:"people"},":man_astronaut:":{uc_base:"1f468-1f680",uc_full:"1f468-200d-1f680",shortnames:[],category:"people"},":man_bald:":{uc_base:"1f468-1f9b2",uc_full:"1f468-200d-1f9b2",shortnames:[],category:"people"},":man_cook:":{uc_base:"1f468-1f373",uc_full:"1f468-200d-1f373",shortnames:[],category:"people"},":man_curly_haired:":{uc_base:"1f468-1f9b1",uc_full:"1f468-200d-1f9b1",shortnames:[],category:"people"},":man_dancing_tone1:":{uc_base:"1f57a-1f3fb",uc_full:"1f57a-1f3fb",shortnames:[":male_dancer_tone1:"],category:"people"},":man_dancing_tone2:":{uc_base:"1f57a-1f3fc",uc_full:"1f57a-1f3fc",shortnames:[":male_dancer_tone2:"],category:"people"},":man_dancing_tone3:":{uc_base:"1f57a-1f3fd",uc_full:"1f57a-1f3fd",shortnames:[":male_dancer_tone3:"],category:"people"},":man_dancing_tone4:":{uc_base:"1f57a-1f3fe",uc_full:"1f57a-1f3fe",shortnames:[":male_dancer_tone4:"],category:"people"},":man_dancing_tone5:":{uc_base:"1f57a-1f3ff",uc_full:"1f57a-1f3ff",shortnames:[":male_dancer_tone5:"],category:"people"},":man_factory_worker:":{uc_base:"1f468-1f3ed",uc_full:"1f468-200d-1f3ed",shortnames:[],category:"people"},":man_farmer:":{uc_base:"1f468-1f33e",uc_full:"1f468-200d-1f33e",shortnames:[],category:"people"},":man_feeding_baby:":{uc_base:"1f468-1f37c",uc_full:"1f468-200d-1f37c",shortnames:[],category:"people"},":man_firefighter:":{uc_base:"1f468-1f692",uc_full:"1f468-200d-1f692",shortnames:[],category:"people"},":man_in_manual_wheelchair:":{uc_base:"1f468-1f9bd",uc_full:"1f468-200d-1f9bd",shortnames:[],category:"people"},":man_in_motorized_wheelchair:":{uc_base:"1f468-1f9bc",uc_full:"1f468-200d-1f9bc",shortnames:[],category:"people"},":man_mechanic:":{uc_base:"1f468-1f527",uc_full:"1f468-200d-1f527",shortnames:[],category:"people"},":man_office_worker:":{uc_base:"1f468-1f4bc",uc_full:"1f468-200d-1f4bc",shortnames:[],category:"people"},":man_red_haired:":{uc_base:"1f468-1f9b0",uc_full:"1f468-200d-1f9b0",shortnames:[],category:"people"},":man_scientist:":{uc_base:"1f468-1f52c",uc_full:"1f468-200d-1f52c",shortnames:[],category:"people"},":man_singer:":{uc_base:"1f468-1f3a4",uc_full:"1f468-200d-1f3a4",shortnames:[],category:"people"},":man_student:":{uc_base:"1f468-1f393",uc_full:"1f468-200d-1f393",shortnames:[],category:"people"},":man_teacher:":{uc_base:"1f468-1f3eb",uc_full:"1f468-200d-1f3eb",shortnames:[],category:"people"},":man_technologist:":{uc_base:"1f468-1f4bb",uc_full:"1f468-200d-1f4bb",shortnames:[],category:"people"},":man_tone1:":{uc_base:"1f468-1f3fb",uc_full:"1f468-1f3fb",shortnames:[],category:"people"},":man_tone2:":{uc_base:"1f468-1f3fc",uc_full:"1f468-1f3fc",shortnames:[],category:"people"},":man_tone3:":{uc_base:"1f468-1f3fd",uc_full:"1f468-1f3fd",shortnames:[],category:"people"},":man_tone4:":{uc_base:"1f468-1f3fe",uc_full:"1f468-1f3fe",shortnames:[],category:"people"},":man_tone5:":{uc_base:"1f468-1f3ff",uc_full:"1f468-1f3ff",shortnames:[],category:"people"},":man_white_haired:":{uc_base:"1f468-1f9b3",uc_full:"1f468-200d-1f9b3",shortnames:[],category:"people"},":man_with_chinese_cap_tone1:":{uc_base:"1f472-1f3fb",uc_full:"1f472-1f3fb",shortnames:[":man_with_gua_pi_mao_tone1:"],category:"people"},":man_with_chinese_cap_tone2:":{uc_base:"1f472-1f3fc",uc_full:"1f472-1f3fc",shortnames:[":man_with_gua_pi_mao_tone2:"],category:"people"},":man_with_chinese_cap_tone3:":{uc_base:"1f472-1f3fd",uc_full:"1f472-1f3fd",shortnames:[":man_with_gua_pi_mao_tone3:"],category:"people"},":man_with_chinese_cap_tone4:":{uc_base:"1f472-1f3fe",uc_full:"1f472-1f3fe",shortnames:[":man_with_gua_pi_mao_tone4:"],category:"people"},":man_with_chinese_cap_tone5:":{uc_base:"1f472-1f3ff",uc_full:"1f472-1f3ff",shortnames:[":man_with_gua_pi_mao_tone5:"],category:"people"},":man_with_probing_cane:":{uc_base:"1f468-1f9af",uc_full:"1f468-200d-1f9af",shortnames:[],category:"people"},":mechanic:":{uc_base:"1f9d1-1f527",uc_full:"1f9d1-200d-1f527",shortnames:[],category:"people"},":men_holding_hands_tone1:":{uc_base:"1f46c-1f3fb",uc_full:"1f46c-1f3fb",shortnames:[":men_holding_hands_light_skin_tone:"],category:"people"},":men_holding_hands_tone2:":{uc_base:"1f46c-1f3fc",uc_full:"1f46c-1f3fc",shortnames:[":men_holding_hands_medium_light_skin_tone:"],category:"people"},":men_holding_hands_tone3:":{uc_base:"1f46c-1f3fd",uc_full:"1f46c-1f3fd",shortnames:[":men_holding_hands_medium_skin_tone:"],category:"people"},":men_holding_hands_tone4:":{uc_base:"1f46c-1f3fe",uc_full:"1f46c-1f3fe",shortnames:[":men_holding_hands_medium_dark_skin_tone:"],category:"people"},":men_holding_hands_tone5:":{uc_base:"1f46c-1f3ff",uc_full:"1f46c-1f3ff",shortnames:[":men_holding_hands_dark_skin_tone:"],category:"people"},":merperson_tone1:":{uc_base:"1f9dc-1f3fb",uc_full:"1f9dc-1f3fb",shortnames:[":merperson_light_skin_tone:"],category:"people"},":merperson_tone2:":{uc_base:"1f9dc-1f3fc",uc_full:"1f9dc-1f3fc",shortnames:[":merperson_medium_light_skin_tone:"],category:"people"},":merperson_tone3:":{uc_base:"1f9dc-1f3fd",uc_full:"1f9dc-1f3fd",shortnames:[":merperson_medium_skin_tone:"],category:"people"},":merperson_tone4:":{uc_base:"1f9dc-1f3fe",uc_full:"1f9dc-1f3fe",shortnames:[":merperson_medium_dark_skin_tone:"],category:"people"},":merperson_tone5:":{uc_base:"1f9dc-1f3ff",uc_full:"1f9dc-1f3ff",shortnames:[":merperson_dark_skin_tone:"],category:"people"},":metal_tone1:":{uc_base:"1f918-1f3fb",uc_full:"1f918-1f3fb",shortnames:[":sign_of_the_horns_tone1:"],category:"people"},":metal_tone2:":{uc_base:"1f918-1f3fc",uc_full:"1f918-1f3fc",shortnames:[":sign_of_the_horns_tone2:"],category:"people"},":metal_tone3:":{uc_base:"1f918-1f3fd",uc_full:"1f918-1f3fd",shortnames:[":sign_of_the_horns_tone3:"],category:"people"},":metal_tone4:":{uc_base:"1f918-1f3fe",uc_full:"1f918-1f3fe",shortnames:[":sign_of_the_horns_tone4:"],category:"people"},":metal_tone5:":{uc_base:"1f918-1f3ff",uc_full:"1f918-1f3ff",shortnames:[":sign_of_the_horns_tone5:"],category:"people"},":middle_finger_tone1:":{uc_base:"1f595-1f3fb",uc_full:"1f595-1f3fb",shortnames:[":reversed_hand_with_middle_finger_extended_tone1:"],category:"people"},":middle_finger_tone2:":{uc_base:"1f595-1f3fc",uc_full:"1f595-1f3fc",shortnames:[":reversed_hand_with_middle_finger_extended_tone2:"],category:"people"},":middle_finger_tone3:":{uc_base:"1f595-1f3fd",uc_full:"1f595-1f3fd",shortnames:[":reversed_hand_with_middle_finger_extended_tone3:"],category:"people"},":middle_finger_tone4:":{uc_base:"1f595-1f3fe",uc_full:"1f595-1f3fe",shortnames:[":reversed_hand_with_middle_finger_extended_tone4:"],category:"people"},":middle_finger_tone5:":{uc_base:"1f595-1f3ff",uc_full:"1f595-1f3ff",shortnames:[":reversed_hand_with_middle_finger_extended_tone5:"],category:"people"},":mrs_claus_tone1:":{uc_base:"1f936-1f3fb",uc_full:"1f936-1f3fb",shortnames:[":mother_christmas_tone1:"],category:"people"},":mrs_claus_tone2:":{uc_base:"1f936-1f3fc",uc_full:"1f936-1f3fc",shortnames:[":mother_christmas_tone2:"],category:"people"},":mrs_claus_tone3:":{uc_base:"1f936-1f3fd",uc_full:"1f936-1f3fd",shortnames:[":mother_christmas_tone3:"],category:"people"},":mrs_claus_tone4:":{uc_base:"1f936-1f3fe",uc_full:"1f936-1f3fe",shortnames:[":mother_christmas_tone4:"],category:"people"},":mrs_claus_tone5:":{uc_base:"1f936-1f3ff",uc_full:"1f936-1f3ff",shortnames:[":mother_christmas_tone5:"],category:"people"},":muscle_tone1:":{uc_base:"1f4aa-1f3fb",uc_full:"1f4aa-1f3fb",shortnames:[],category:"people"},":muscle_tone2:":{uc_base:"1f4aa-1f3fc",uc_full:"1f4aa-1f3fc",shortnames:[],category:"people"},":muscle_tone3:":{uc_base:"1f4aa-1f3fd",uc_full:"1f4aa-1f3fd",shortnames:[],category:"people"},":muscle_tone4:":{uc_base:"1f4aa-1f3fe",uc_full:"1f4aa-1f3fe",shortnames:[],category:"people"},":muscle_tone5:":{uc_base:"1f4aa-1f3ff",uc_full:"1f4aa-1f3ff",shortnames:[],category:"people"},":mx_claus:":{uc_base:"1f9d1-1f384",uc_full:"1f9d1-200d-1f384",shortnames:[],category:"people"},":nail_care_tone1:":{uc_base:"1f485-1f3fb",uc_full:"1f485-1f3fb",shortnames:[],category:"people"},":nail_care_tone2:":{uc_base:"1f485-1f3fc",uc_full:"1f485-1f3fc",shortnames:[],category:"people"},":nail_care_tone3:":{uc_base:"1f485-1f3fd",uc_full:"1f485-1f3fd",shortnames:[],category:"people"},":nail_care_tone4:":{uc_base:"1f485-1f3fe",uc_full:"1f485-1f3fe",shortnames:[],category:"people"},":nail_care_tone5:":{uc_base:"1f485-1f3ff",uc_full:"1f485-1f3ff",shortnames:[],category:"people"},":ninja_tone1:":{uc_base:"1f977-1f3fb",uc_full:"1f977-1f3fb",shortnames:[":ninja_light_skin_tone:"],category:"people"},":ninja_tone2:":{uc_base:"1f977-1f3fc",uc_full:"1f977-1f3fc",shortnames:[":ninja_medium_light_skin_tone:"],category:"people"},":ninja_tone3:":{uc_base:"1f977-1f3fd",uc_full:"1f977-1f3fd",shortnames:[":ninja_medium_skin_tone:"],category:"people"},":ninja_tone4:":{uc_base:"1f977-1f3fe",uc_full:"1f977-1f3fe",shortnames:[":ninja_medium_dark_skin_tone:"],category:"people"},":ninja_tone5:":{uc_base:"1f977-1f3ff",uc_full:"1f977-1f3ff",shortnames:[":ninja_dark_skin_tone:"],category:"people"},":nose_tone1:":{uc_base:"1f443-1f3fb",uc_full:"1f443-1f3fb",shortnames:[],category:"people"},":nose_tone2:":{uc_base:"1f443-1f3fc",uc_full:"1f443-1f3fc",shortnames:[],category:"people"},":nose_tone3:":{uc_base:"1f443-1f3fd",uc_full:"1f443-1f3fd",shortnames:[],category:"people"},":nose_tone4:":{uc_base:"1f443-1f3fe",uc_full:"1f443-1f3fe",shortnames:[],category:"people"},":nose_tone5:":{uc_base:"1f443-1f3ff",uc_full:"1f443-1f3ff",shortnames:[],category:"people"},":office_worker:":{uc_base:"1f9d1-1f4bc",uc_full:"1f9d1-200d-1f4bc",shortnames:[],category:"people"},":ok_hand_tone1:":{uc_base:"1f44c-1f3fb",uc_full:"1f44c-1f3fb",shortnames:[],category:"people"},":ok_hand_tone2:":{uc_base:"1f44c-1f3fc",uc_full:"1f44c-1f3fc",shortnames:[],category:"people"},":ok_hand_tone3:":{uc_base:"1f44c-1f3fd",uc_full:"1f44c-1f3fd",shortnames:[],category:"people"},":ok_hand_tone4:":{uc_base:"1f44c-1f3fe",uc_full:"1f44c-1f3fe",shortnames:[],category:"people"},":ok_hand_tone5:":{uc_base:"1f44c-1f3ff",uc_full:"1f44c-1f3ff",shortnames:[],category:"people"},":older_adult_tone1:":{uc_base:"1f9d3-1f3fb",uc_full:"1f9d3-1f3fb",shortnames:[":older_adult_light_skin_tone:"],category:"people"},":older_adult_tone2:":{uc_base:"1f9d3-1f3fc",uc_full:"1f9d3-1f3fc",shortnames:[":older_adult_medium_light_skin_tone:"],category:"people"},":older_adult_tone3:":{uc_base:"1f9d3-1f3fd",uc_full:"1f9d3-1f3fd",shortnames:[":older_adult_medium_skin_tone:"],category:"people"},":older_adult_tone4:":{uc_base:"1f9d3-1f3fe",uc_full:"1f9d3-1f3fe",shortnames:[":older_adult_medium_dark_skin_tone:"],category:"people"},":older_adult_tone5:":{uc_base:"1f9d3-1f3ff",uc_full:"1f9d3-1f3ff",shortnames:[":older_adult_dark_skin_tone:"],category:"people"},":older_man_tone1:":{uc_base:"1f474-1f3fb",uc_full:"1f474-1f3fb",shortnames:[],category:"people"},":older_man_tone2:":{uc_base:"1f474-1f3fc",uc_full:"1f474-1f3fc",shortnames:[],category:"people"},":older_man_tone3:":{uc_base:"1f474-1f3fd",uc_full:"1f474-1f3fd",shortnames:[],category:"people"},":older_man_tone4:":{uc_base:"1f474-1f3fe",uc_full:"1f474-1f3fe",shortnames:[],category:"people"},":older_man_tone5:":{uc_base:"1f474-1f3ff",uc_full:"1f474-1f3ff",shortnames:[],category:"people"},":older_woman_tone1:":{uc_base:"1f475-1f3fb",uc_full:"1f475-1f3fb",shortnames:[":grandma_tone1:"],category:"people"},":older_woman_tone2:":{uc_base:"1f475-1f3fc",uc_full:"1f475-1f3fc",shortnames:[":grandma_tone2:"],category:"people"},":older_woman_tone3:":{uc_base:"1f475-1f3fd",uc_full:"1f475-1f3fd",shortnames:[":grandma_tone3:"],category:"people"},":older_woman_tone4:":{uc_base:"1f475-1f3fe",uc_full:"1f475-1f3fe",shortnames:[":grandma_tone4:"],category:"people"},":older_woman_tone5:":{uc_base:"1f475-1f3ff",uc_full:"1f475-1f3ff",shortnames:[":grandma_tone5:"],category:"people"},":open_hands_tone1:":{uc_base:"1f450-1f3fb",uc_full:"1f450-1f3fb",shortnames:[],category:"people"},":open_hands_tone2:":{uc_base:"1f450-1f3fc",uc_full:"1f450-1f3fc",shortnames:[],category:"people"},":open_hands_tone3:":{uc_base:"1f450-1f3fd",uc_full:"1f450-1f3fd",shortnames:[],category:"people"},":open_hands_tone4:":{uc_base:"1f450-1f3fe",uc_full:"1f450-1f3fe",shortnames:[],category:"people"},":open_hands_tone5:":{uc_base:"1f450-1f3ff",uc_full:"1f450-1f3ff",shortnames:[],category:"people"},":palms_up_together_tone1:":{uc_base:"1f932-1f3fb",uc_full:"1f932-1f3fb",shortnames:[":palms_up_together_light_skin_tone:"],category:"people"},":palms_up_together_tone2:":{uc_base:"1f932-1f3fc",uc_full:"1f932-1f3fc",shortnames:[":palms_up_together_medium_light_skin_tone:"],category:"people"},":palms_up_together_tone3:":{uc_base:"1f932-1f3fd",uc_full:"1f932-1f3fd",shortnames:[":palms_up_together_medium_skin_tone:"],category:"people"},":palms_up_together_tone4:":{uc_base:"1f932-1f3fe",uc_full:"1f932-1f3fe",shortnames:[":palms_up_together_medium_dark_skin_tone:"],category:"people"},":palms_up_together_tone5:":{uc_base:"1f932-1f3ff",uc_full:"1f932-1f3ff",shortnames:[":palms_up_together_dark_skin_tone:"],category:"people"},":person_bald:":{uc_base:"1f9d1-1f9b2",uc_full:"1f9d1-200d-1f9b2",shortnames:[],category:"people"},":person_biking_tone1:":{uc_base:"1f6b4-1f3fb",uc_full:"1f6b4-1f3fb",shortnames:[":bicyclist_tone1:"],category:"activity"},":person_biking_tone2:":{uc_base:"1f6b4-1f3fc",uc_full:"1f6b4-1f3fc",shortnames:[":bicyclist_tone2:"],category:"activity"},":person_biking_tone3:":{uc_base:"1f6b4-1f3fd",uc_full:"1f6b4-1f3fd",shortnames:[":bicyclist_tone3:"],category:"activity"},":person_biking_tone4:":{uc_base:"1f6b4-1f3fe",uc_full:"1f6b4-1f3fe",shortnames:[":bicyclist_tone4:"],category:"activity"},":person_biking_tone5:":{uc_base:"1f6b4-1f3ff",uc_full:"1f6b4-1f3ff",shortnames:[":bicyclist_tone5:"],category:"activity"},":person_bowing_tone1:":{uc_base:"1f647-1f3fb",uc_full:"1f647-1f3fb",shortnames:[":bow_tone1:"],category:"people"},":person_bowing_tone2:":{uc_base:"1f647-1f3fc",uc_full:"1f647-1f3fc",shortnames:[":bow_tone2:"],category:"people"},":person_bowing_tone3:":{uc_base:"1f647-1f3fd",uc_full:"1f647-1f3fd",shortnames:[":bow_tone3:"],category:"people"},":person_bowing_tone4:":{uc_base:"1f647-1f3fe",uc_full:"1f647-1f3fe",shortnames:[":bow_tone4:"],category:"people"},":person_bowing_tone5:":{uc_base:"1f647-1f3ff",uc_full:"1f647-1f3ff",shortnames:[":bow_tone5:"],category:"people"},":person_climbing_tone1:":{uc_base:"1f9d7-1f3fb",uc_full:"1f9d7-1f3fb",shortnames:[":person_climbing_light_skin_tone:"],category:"activity"},":person_climbing_tone2:":{uc_base:"1f9d7-1f3fc",uc_full:"1f9d7-1f3fc",shortnames:[":person_climbing_medium_light_skin_tone:"],category:"activity"},":person_climbing_tone3:":{uc_base:"1f9d7-1f3fd",uc_full:"1f9d7-1f3fd",shortnames:[":person_climbing_medium_skin_tone:"],category:"activity"},":person_climbing_tone4:":{uc_base:"1f9d7-1f3fe",uc_full:"1f9d7-1f3fe",shortnames:[":person_climbing_medium_dark_skin_tone:"],category:"activity"},":person_climbing_tone5:":{uc_base:"1f9d7-1f3ff",uc_full:"1f9d7-1f3ff",shortnames:[":person_climbing_dark_skin_tone:"],category:"activity"},":person_curly_hair:":{uc_base:"1f9d1-1f9b1",uc_full:"1f9d1-200d-1f9b1",shortnames:[],category:"people"},":person_doing_cartwheel_tone1:":{uc_base:"1f938-1f3fb",uc_full:"1f938-1f3fb",shortnames:[":cartwheel_tone1:"],category:"activity"},":person_doing_cartwheel_tone2:":{uc_base:"1f938-1f3fc",uc_full:"1f938-1f3fc",shortnames:[":cartwheel_tone2:"],category:"activity"},":person_doing_cartwheel_tone3:":{uc_base:"1f938-1f3fd",uc_full:"1f938-1f3fd",shortnames:[":cartwheel_tone3:"],category:"activity"},":person_doing_cartwheel_tone4:":{uc_base:"1f938-1f3fe",uc_full:"1f938-1f3fe",shortnames:[":cartwheel_tone4:"],category:"activity"},":person_doing_cartwheel_tone5:":{uc_base:"1f938-1f3ff",uc_full:"1f938-1f3ff",shortnames:[":cartwheel_tone5:"],category:"activity"},":person_facepalming_tone1:":{uc_base:"1f926-1f3fb",uc_full:"1f926-1f3fb",shortnames:[":face_palm_tone1:",":facepalm_tone1:"],category:"people"},":person_facepalming_tone2:":{uc_base:"1f926-1f3fc",uc_full:"1f926-1f3fc",shortnames:[":face_palm_tone2:",":facepalm_tone2:"],category:"people"},":person_facepalming_tone3:":{uc_base:"1f926-1f3fd",uc_full:"1f926-1f3fd",shortnames:[":face_palm_tone3:",":facepalm_tone3:"],category:"people"},":person_facepalming_tone4:":{uc_base:"1f926-1f3fe",uc_full:"1f926-1f3fe",shortnames:[":face_palm_tone4:",":facepalm_tone4:"],category:"people"},":person_facepalming_tone5:":{uc_base:"1f926-1f3ff",uc_full:"1f926-1f3ff",shortnames:[":face_palm_tone5:",":facepalm_tone5:"],category:"people"},":person_feeding_baby:":{uc_base:"1f9d1-1f37c",uc_full:"1f9d1-200d-1f37c",shortnames:[],category:"people"},":person_frowning_tone1:":{uc_base:"1f64d-1f3fb",uc_full:"1f64d-1f3fb",shortnames:[],category:"people"},":person_frowning_tone2:":{uc_base:"1f64d-1f3fc",uc_full:"1f64d-1f3fc",shortnames:[],category:"people"},":person_frowning_tone3:":{uc_base:"1f64d-1f3fd",uc_full:"1f64d-1f3fd",shortnames:[],category:"people"},":person_frowning_tone4:":{uc_base:"1f64d-1f3fe",uc_full:"1f64d-1f3fe",shortnames:[],category:"people"},":person_frowning_tone5:":{uc_base:"1f64d-1f3ff",uc_full:"1f64d-1f3ff",shortnames:[],category:"people"},":person_gesturing_no_tone1:":{uc_base:"1f645-1f3fb",uc_full:"1f645-1f3fb",shortnames:[":no_good_tone1:"],category:"people"},":person_gesturing_no_tone2:":{uc_base:"1f645-1f3fc",uc_full:"1f645-1f3fc",shortnames:[":no_good_tone2:"],category:"people"},":person_gesturing_no_tone3:":{uc_base:"1f645-1f3fd",uc_full:"1f645-1f3fd",shortnames:[":no_good_tone3:"],category:"people"},":person_gesturing_no_tone4:":{uc_base:"1f645-1f3fe",uc_full:"1f645-1f3fe",shortnames:[":no_good_tone4:"],category:"people"},":person_gesturing_no_tone5:":{uc_base:"1f645-1f3ff",uc_full:"1f645-1f3ff",shortnames:[":no_good_tone5:"],category:"people"},":person_gesturing_ok_tone1:":{uc_base:"1f646-1f3fb",uc_full:"1f646-1f3fb",shortnames:[":ok_woman_tone1:"],category:"people"},":person_gesturing_ok_tone2:":{uc_base:"1f646-1f3fc",uc_full:"1f646-1f3fc",shortnames:[":ok_woman_tone2:"],category:"people"},":person_gesturing_ok_tone3:":{uc_base:"1f646-1f3fd",uc_full:"1f646-1f3fd",shortnames:[":ok_woman_tone3:"],category:"people"},":person_gesturing_ok_tone4:":{uc_base:"1f646-1f3fe",uc_full:"1f646-1f3fe",shortnames:[":ok_woman_tone4:"],category:"people"},":person_gesturing_ok_tone5:":{uc_base:"1f646-1f3ff",uc_full:"1f646-1f3ff",shortnames:[":ok_woman_tone5:"],category:"people"},":person_getting_haircut_tone1:":{uc_base:"1f487-1f3fb",uc_full:"1f487-1f3fb",shortnames:[":haircut_tone1:"],category:"people"},":person_getting_haircut_tone2:":{uc_base:"1f487-1f3fc",uc_full:"1f487-1f3fc",shortnames:[":haircut_tone2:"],category:"people"},":person_getting_haircut_tone3:":{uc_base:"1f487-1f3fd",uc_full:"1f487-1f3fd",shortnames:[":haircut_tone3:"],category:"people"},":person_getting_haircut_tone4:":{uc_base:"1f487-1f3fe",uc_full:"1f487-1f3fe",shortnames:[":haircut_tone4:"],category:"people"},":person_getting_haircut_tone5:":{uc_base:"1f487-1f3ff",uc_full:"1f487-1f3ff",shortnames:[":haircut_tone5:"],category:"people"},":person_getting_massage_tone1:":{uc_base:"1f486-1f3fb",uc_full:"1f486-1f3fb",shortnames:[":massage_tone1:"],category:"people"},":person_getting_massage_tone2:":{uc_base:"1f486-1f3fc",uc_full:"1f486-1f3fc",shortnames:[":massage_tone2:"],category:"people"},":person_getting_massage_tone3:":{uc_base:"1f486-1f3fd",uc_full:"1f486-1f3fd",shortnames:[":massage_tone3:"],category:"people"},":person_getting_massage_tone4:":{uc_base:"1f486-1f3fe",uc_full:"1f486-1f3fe",shortnames:[":massage_tone4:"],category:"people"},":person_getting_massage_tone5:":{uc_base:"1f486-1f3ff",uc_full:"1f486-1f3ff",shortnames:[":massage_tone5:"],category:"people"},":person_golfing_tone1:":{uc_base:"1f3cc-1f3fb",uc_full:"1f3cc-1f3fb",shortnames:[":person_golfing_light_skin_tone:"],category:"activity"},":person_golfing_tone2:":{uc_base:"1f3cc-1f3fc",uc_full:"1f3cc-1f3fc",shortnames:[":person_golfing_medium_light_skin_tone:"],category:"activity"},":person_golfing_tone3:":{uc_base:"1f3cc-1f3fd",uc_full:"1f3cc-1f3fd",shortnames:[":person_golfing_medium_skin_tone:"],category:"activity"},":person_golfing_tone4:":{uc_base:"1f3cc-1f3fe",uc_full:"1f3cc-1f3fe",shortnames:[":person_golfing_medium_dark_skin_tone:"],category:"activity"},":person_golfing_tone5:":{uc_base:"1f3cc-1f3ff",uc_full:"1f3cc-1f3ff",shortnames:[":person_golfing_dark_skin_tone:"],category:"activity"},":person_in_bed_tone1:":{uc_base:"1f6cc-1f3fb",uc_full:"1f6cc-1f3fb",shortnames:[":person_in_bed_light_skin_tone:"],category:"objects"},":person_in_bed_tone2:":{uc_base:"1f6cc-1f3fc",uc_full:"1f6cc-1f3fc",shortnames:[":person_in_bed_medium_light_skin_tone:"],category:"objects"},":person_in_bed_tone3:":{uc_base:"1f6cc-1f3fd",uc_full:"1f6cc-1f3fd",shortnames:[":person_in_bed_medium_skin_tone:"],category:"objects"},":person_in_bed_tone4:":{uc_base:"1f6cc-1f3fe",uc_full:"1f6cc-1f3fe",shortnames:[":person_in_bed_medium_dark_skin_tone:"],category:"objects"},":person_in_bed_tone5:":{uc_base:"1f6cc-1f3ff",uc_full:"1f6cc-1f3ff",shortnames:[":person_in_bed_dark_skin_tone:"],category:"objects"},":person_in_lotus_position_tone1:":{uc_base:"1f9d8-1f3fb",uc_full:"1f9d8-1f3fb",shortnames:[":person_in_lotus_position_light_skin_tone:"],category:"activity"},":person_in_lotus_position_tone2:":{uc_base:"1f9d8-1f3fc",uc_full:"1f9d8-1f3fc",shortnames:[":person_in_lotus_position_medium_light_skin_tone:"],category:"activity"},":person_in_lotus_position_tone3:":{uc_base:"1f9d8-1f3fd",uc_full:"1f9d8-1f3fd",shortnames:[":person_in_lotus_position_medium_skin_tone:"],category:"activity"},":person_in_lotus_position_tone4:":{uc_base:"1f9d8-1f3fe",uc_full:"1f9d8-1f3fe",shortnames:[":person_in_lotus_position_medium_dark_skin_tone:"],category:"activity"},":person_in_lotus_position_tone5:":{uc_base:"1f9d8-1f3ff",uc_full:"1f9d8-1f3ff",shortnames:[":person_in_lotus_position_dark_skin_tone:"],category:"activity"},":person_in_manual_wheelchair:":{uc_base:"1f9d1-1f9bd",uc_full:"1f9d1-200d-1f9bd",shortnames:[],category:"people"},":person_in_motorized_wheelchair:":{uc_base:"1f9d1-1f9bc",uc_full:"1f9d1-200d-1f9bc",shortnames:[],category:"people"},":person_in_steamy_room_tone1:":{uc_base:"1f9d6-1f3fb",uc_full:"1f9d6-1f3fb",shortnames:[":person_in_steamy_room_light_skin_tone:"],category:"people"},":person_in_steamy_room_tone2:":{uc_base:"1f9d6-1f3fc",uc_full:"1f9d6-1f3fc",shortnames:[":person_in_steamy_room_medium_light_skin_tone:"],category:"people"},":person_in_steamy_room_tone3:":{uc_base:"1f9d6-1f3fd",uc_full:"1f9d6-1f3fd",shortnames:[":person_in_steamy_room_medium_skin_tone:"],category:"people"},":person_in_steamy_room_tone4:":{uc_base:"1f9d6-1f3fe",uc_full:"1f9d6-1f3fe",shortnames:[":person_in_steamy_room_medium_dark_skin_tone:"],category:"people"},":person_in_steamy_room_tone5:":{uc_base:"1f9d6-1f3ff",uc_full:"1f9d6-1f3ff",shortnames:[":person_in_steamy_room_dark_skin_tone:"],category:"people"},":person_in_tuxedo_tone1:":{uc_base:"1f935-1f3fb",uc_full:"1f935-1f3fb",shortnames:[":tuxedo_tone1:"],category:"people"},":person_in_tuxedo_tone2:":{uc_base:"1f935-1f3fc",uc_full:"1f935-1f3fc",shortnames:[":tuxedo_tone2:"],category:"people"},":person_in_tuxedo_tone3:":{uc_base:"1f935-1f3fd",uc_full:"1f935-1f3fd",shortnames:[":tuxedo_tone3:"],category:"people"},":person_in_tuxedo_tone4:":{uc_base:"1f935-1f3fe",uc_full:"1f935-1f3fe",shortnames:[":tuxedo_tone4:"],category:"people"},":person_in_tuxedo_tone5:":{uc_base:"1f935-1f3ff",uc_full:"1f935-1f3ff",shortnames:[":tuxedo_tone5:"],category:"people"},":person_juggling_tone1:":{uc_base:"1f939-1f3fb",uc_full:"1f939-1f3fb",shortnames:[":juggling_tone1:",":juggler_tone1:"],category:"activity"},":person_juggling_tone2:":{uc_base:"1f939-1f3fc",uc_full:"1f939-1f3fc",shortnames:[":juggling_tone2:",":juggler_tone2:"],category:"activity"},":person_juggling_tone3:":{uc_base:"1f939-1f3fd",uc_full:"1f939-1f3fd",shortnames:[":juggling_tone3:",":juggler_tone3:"],category:"activity"},":person_juggling_tone4:":{uc_base:"1f939-1f3fe",uc_full:"1f939-1f3fe",shortnames:[":juggling_tone4:",":juggler_tone4:"],category:"activity"},":person_juggling_tone5:":{uc_base:"1f939-1f3ff",uc_full:"1f939-1f3ff",shortnames:[":juggling_tone5:",":juggler_tone5:"],category:"activity"},":person_kneeling_tone1:":{uc_base:"1f9ce-1f3fb",uc_full:"1f9ce-1f3fb",shortnames:[":person_kneeling_light_skin_tone:"],category:"people"},":person_kneeling_tone2:":{uc_base:"1f9ce-1f3fc",uc_full:"1f9ce-1f3fc",shortnames:[":person_kneeling_medium_light_skin_tone:"],category:"people"},":person_kneeling_tone3:":{uc_base:"1f9ce-1f3fd",uc_full:"1f9ce-1f3fd",shortnames:[":person_kneeling_medium_skin_tone:"],category:"people"},":person_kneeling_tone4:":{uc_base:"1f9ce-1f3fe",uc_full:"1f9ce-1f3fe",shortnames:[":person_kneeling_medium_dark_skin_tone:"],category:"people"},":person_kneeling_tone5:":{uc_base:"1f9ce-1f3ff",uc_full:"1f9ce-1f3ff",shortnames:[":person_kneeling_dark_skin_tone:"],category:"people"},":person_lifting_weights_tone1:":{uc_base:"1f3cb-1f3fb",uc_full:"1f3cb-1f3fb",shortnames:[":lifter_tone1:",":weight_lifter_tone1:"],category:"activity"},":person_lifting_weights_tone2:":{uc_base:"1f3cb-1f3fc",uc_full:"1f3cb-1f3fc",shortnames:[":lifter_tone2:",":weight_lifter_tone2:"],category:"activity"},":person_lifting_weights_tone3:":{uc_base:"1f3cb-1f3fd",uc_full:"1f3cb-1f3fd",shortnames:[":lifter_tone3:",":weight_lifter_tone3:"],category:"activity"},":person_lifting_weights_tone4:":{uc_base:"1f3cb-1f3fe",uc_full:"1f3cb-1f3fe",shortnames:[":lifter_tone4:",":weight_lifter_tone4:"],category:"activity"},":person_lifting_weights_tone5:":{uc_base:"1f3cb-1f3ff",uc_full:"1f3cb-1f3ff",shortnames:[":lifter_tone5:",":weight_lifter_tone5:"],category:"activity"},":person_mountain_biking_tone1:":{uc_base:"1f6b5-1f3fb",uc_full:"1f6b5-1f3fb",shortnames:[":mountain_bicyclist_tone1:"],category:"activity"},":person_mountain_biking_tone2:":{uc_base:"1f6b5-1f3fc",uc_full:"1f6b5-1f3fc",shortnames:[":mountain_bicyclist_tone2:"],category:"activity"},":person_mountain_biking_tone3:":{uc_base:"1f6b5-1f3fd",uc_full:"1f6b5-1f3fd",shortnames:[":mountain_bicyclist_tone3:"],category:"activity"},":person_mountain_biking_tone4:":{uc_base:"1f6b5-1f3fe",uc_full:"1f6b5-1f3fe",shortnames:[":mountain_bicyclist_tone4:"],category:"activity"},":person_mountain_biking_tone5:":{uc_base:"1f6b5-1f3ff",uc_full:"1f6b5-1f3ff",shortnames:[":mountain_bicyclist_tone5:"],category:"activity"},":person_playing_handball_tone1:":{uc_base:"1f93e-1f3fb",uc_full:"1f93e-1f3fb",shortnames:[":handball_tone1:"],category:"activity"},":person_playing_handball_tone2:":{uc_base:"1f93e-1f3fc",uc_full:"1f93e-1f3fc",shortnames:[":handball_tone2:"],category:"activity"},":person_playing_handball_tone3:":{uc_base:"1f93e-1f3fd",uc_full:"1f93e-1f3fd",shortnames:[":handball_tone3:"],category:"activity"},":person_playing_handball_tone4:":{uc_base:"1f93e-1f3fe",uc_full:"1f93e-1f3fe",shortnames:[":handball_tone4:"],category:"activity"},":person_playing_handball_tone5:":{uc_base:"1f93e-1f3ff",uc_full:"1f93e-1f3ff",shortnames:[":handball_tone5:"],category:"activity"},":person_playing_water_polo_tone1:":{uc_base:"1f93d-1f3fb",uc_full:"1f93d-1f3fb",shortnames:[":water_polo_tone1:"],category:"activity"},":person_playing_water_polo_tone2:":{uc_base:"1f93d-1f3fc",uc_full:"1f93d-1f3fc",shortnames:[":water_polo_tone2:"],category:"activity"},":person_playing_water_polo_tone3:":{uc_base:"1f93d-1f3fd",uc_full:"1f93d-1f3fd",shortnames:[":water_polo_tone3:"],category:"activity"},":person_playing_water_polo_tone4:":{uc_base:"1f93d-1f3fe",uc_full:"1f93d-1f3fe",shortnames:[":water_polo_tone4:"],category:"activity"},":person_playing_water_polo_tone5:":{uc_base:"1f93d-1f3ff",uc_full:"1f93d-1f3ff",shortnames:[":water_polo_tone5:"],category:"activity"},":person_pouting_tone1:":{uc_base:"1f64e-1f3fb",uc_full:"1f64e-1f3fb",shortnames:[":person_with_pouting_face_tone1:"],category:"people"},":person_pouting_tone2:":{uc_base:"1f64e-1f3fc",uc_full:"1f64e-1f3fc",shortnames:[":person_with_pouting_face_tone2:"],category:"people"},":person_pouting_tone3:":{uc_base:"1f64e-1f3fd",uc_full:"1f64e-1f3fd",shortnames:[":person_with_pouting_face_tone3:"],category:"people"},":person_pouting_tone4:":{uc_base:"1f64e-1f3fe",uc_full:"1f64e-1f3fe",shortnames:[":person_with_pouting_face_tone4:"],category:"people"},":person_pouting_tone5:":{uc_base:"1f64e-1f3ff",uc_full:"1f64e-1f3ff",shortnames:[":person_with_pouting_face_tone5:"],category:"people"},":person_raising_hand_tone1:":{uc_base:"1f64b-1f3fb",uc_full:"1f64b-1f3fb",shortnames:[":raising_hand_tone1:"],category:"people"},":person_raising_hand_tone2:":{uc_base:"1f64b-1f3fc",uc_full:"1f64b-1f3fc",shortnames:[":raising_hand_tone2:"],category:"people"},":person_raising_hand_tone3:":{uc_base:"1f64b-1f3fd",uc_full:"1f64b-1f3fd",shortnames:[":raising_hand_tone3:"],category:"people"},":person_raising_hand_tone4:":{uc_base:"1f64b-1f3fe",uc_full:"1f64b-1f3fe",shortnames:[":raising_hand_tone4:"],category:"people"},":person_raising_hand_tone5:":{uc_base:"1f64b-1f3ff",uc_full:"1f64b-1f3ff",shortnames:[":raising_hand_tone5:"],category:"people"},":person_red_hair:":{uc_base:"1f9d1-1f9b0",uc_full:"1f9d1-200d-1f9b0",shortnames:[],category:"people"},":person_rowing_boat_tone1:":{uc_base:"1f6a3-1f3fb",uc_full:"1f6a3-1f3fb",shortnames:[":rowboat_tone1:"],category:"activity"},":person_rowing_boat_tone2:":{uc_base:"1f6a3-1f3fc",uc_full:"1f6a3-1f3fc",shortnames:[":rowboat_tone2:"],category:"activity"},":person_rowing_boat_tone3:":{uc_base:"1f6a3-1f3fd",uc_full:"1f6a3-1f3fd",shortnames:[":rowboat_tone3:"],category:"activity"},":person_rowing_boat_tone4:":{uc_base:"1f6a3-1f3fe",uc_full:"1f6a3-1f3fe",shortnames:[":rowboat_tone4:"],category:"activity"},":person_rowing_boat_tone5:":{uc_base:"1f6a3-1f3ff",uc_full:"1f6a3-1f3ff",shortnames:[":rowboat_tone5:"],category:"activity"},":person_running_tone1:":{uc_base:"1f3c3-1f3fb",uc_full:"1f3c3-1f3fb",shortnames:[":runner_tone1:"],category:"people"},":person_running_tone2:":{uc_base:"1f3c3-1f3fc",uc_full:"1f3c3-1f3fc",shortnames:[":runner_tone2:"],category:"people"},":person_running_tone3:":{uc_base:"1f3c3-1f3fd",uc_full:"1f3c3-1f3fd",shortnames:[":runner_tone3:"],category:"people"},":person_running_tone4:":{uc_base:"1f3c3-1f3fe",uc_full:"1f3c3-1f3fe",shortnames:[":runner_tone4:"],category:"people"},":person_running_tone5:":{uc_base:"1f3c3-1f3ff",uc_full:"1f3c3-1f3ff",shortnames:[":runner_tone5:"],category:"people"},":person_shrugging_tone1:":{uc_base:"1f937-1f3fb",uc_full:"1f937-1f3fb",shortnames:[":shrug_tone1:"],category:"people"},":person_shrugging_tone2:":{uc_base:"1f937-1f3fc",uc_full:"1f937-1f3fc",shortnames:[":shrug_tone2:"],category:"people"},":person_shrugging_tone3:":{uc_base:"1f937-1f3fd",uc_full:"1f937-1f3fd",shortnames:[":shrug_tone3:"],category:"people"},":person_shrugging_tone4:":{uc_base:"1f937-1f3fe",uc_full:"1f937-1f3fe",shortnames:[":shrug_tone4:"],category:"people"},":person_shrugging_tone5:":{uc_base:"1f937-1f3ff",uc_full:"1f937-1f3ff",shortnames:[":shrug_tone5:"],category:"people"},":person_standing_tone1:":{uc_base:"1f9cd-1f3fb",uc_full:"1f9cd-1f3fb",shortnames:[":person_standing_light_skin_tone:"],category:"people"},":person_standing_tone2:":{uc_base:"1f9cd-1f3fc",uc_full:"1f9cd-1f3fc",shortnames:[":person_standing_medium_light_skin_tone:"],category:"people"},":person_standing_tone3:":{uc_base:"1f9cd-1f3fd",uc_full:"1f9cd-1f3fd",shortnames:[":person_standing_medium_skin_tone:"],category:"people"},":person_standing_tone4:":{uc_base:"1f9cd-1f3fe",uc_full:"1f9cd-1f3fe",shortnames:[":person_standing_medium_dark_skin_tone:"],category:"people"},":person_standing_tone5:":{uc_base:"1f9cd-1f3ff",uc_full:"1f9cd-1f3ff",shortnames:[":person_standing_dark_skin_tone:"],category:"people"},":person_surfing_tone1:":{uc_base:"1f3c4-1f3fb",uc_full:"1f3c4-1f3fb",shortnames:[":surfer_tone1:"],category:"activity"},":person_surfing_tone2:":{uc_base:"1f3c4-1f3fc",uc_full:"1f3c4-1f3fc",shortnames:[":surfer_tone2:"],category:"activity"},":person_surfing_tone3:":{uc_base:"1f3c4-1f3fd",uc_full:"1f3c4-1f3fd",shortnames:[":surfer_tone3:"],category:"activity"},":person_surfing_tone4:":{uc_base:"1f3c4-1f3fe",uc_full:"1f3c4-1f3fe",shortnames:[":surfer_tone4:"],category:"activity"},":person_surfing_tone5:":{uc_base:"1f3c4-1f3ff",uc_full:"1f3c4-1f3ff",shortnames:[":surfer_tone5:"],category:"activity"},":person_swimming_tone1:":{uc_base:"1f3ca-1f3fb",uc_full:"1f3ca-1f3fb",shortnames:[":swimmer_tone1:"],category:"activity"},":person_swimming_tone2:":{uc_base:"1f3ca-1f3fc",uc_full:"1f3ca-1f3fc",shortnames:[":swimmer_tone2:"],category:"activity"},":person_swimming_tone3:":{uc_base:"1f3ca-1f3fd",uc_full:"1f3ca-1f3fd",shortnames:[":swimmer_tone3:"],category:"activity"},":person_swimming_tone4:":{uc_base:"1f3ca-1f3fe",uc_full:"1f3ca-1f3fe",shortnames:[":swimmer_tone4:"],category:"activity"},":person_swimming_tone5:":{uc_base:"1f3ca-1f3ff",uc_full:"1f3ca-1f3ff",shortnames:[":swimmer_tone5:"],category:"activity"},":person_tipping_hand_tone1:":{uc_base:"1f481-1f3fb",uc_full:"1f481-1f3fb",shortnames:[":information_desk_person_tone1:"],category:"people"},":person_tipping_hand_tone2:":{uc_base:"1f481-1f3fc",uc_full:"1f481-1f3fc",shortnames:[":information_desk_person_tone2:"],category:"people"},":person_tipping_hand_tone3:":{uc_base:"1f481-1f3fd",uc_full:"1f481-1f3fd",shortnames:[":information_desk_person_tone3:"],category:"people"},":person_tipping_hand_tone4:":{uc_base:"1f481-1f3fe",uc_full:"1f481-1f3fe",shortnames:[":information_desk_person_tone4:"],category:"people"},":person_tipping_hand_tone5:":{uc_base:"1f481-1f3ff",uc_full:"1f481-1f3ff",shortnames:[":information_desk_person_tone5:"],category:"people"},":person_walking_tone1:":{uc_base:"1f6b6-1f3fb",uc_full:"1f6b6-1f3fb",shortnames:[":walking_tone1:"],category:"people"},":person_walking_tone2:":{uc_base:"1f6b6-1f3fc",uc_full:"1f6b6-1f3fc",shortnames:[":walking_tone2:"],category:"people"},":person_walking_tone3:":{uc_base:"1f6b6-1f3fd",uc_full:"1f6b6-1f3fd",shortnames:[":walking_tone3:"],category:"people"},":person_walking_tone4:":{uc_base:"1f6b6-1f3fe",uc_full:"1f6b6-1f3fe",shortnames:[":walking_tone4:"],category:"people"},":person_walking_tone5:":{uc_base:"1f6b6-1f3ff",uc_full:"1f6b6-1f3ff",shortnames:[":walking_tone5:"],category:"people"},":person_wearing_turban_tone1:":{uc_base:"1f473-1f3fb",uc_full:"1f473-1f3fb",shortnames:[":man_with_turban_tone1:"],category:"people"},":person_wearing_turban_tone2:":{uc_base:"1f473-1f3fc",uc_full:"1f473-1f3fc",shortnames:[":man_with_turban_tone2:"],category:"people"},":person_wearing_turban_tone3:":{uc_base:"1f473-1f3fd",uc_full:"1f473-1f3fd",shortnames:[":man_with_turban_tone3:"],category:"people"},":person_wearing_turban_tone4:":{uc_base:"1f473-1f3fe",uc_full:"1f473-1f3fe",shortnames:[":man_with_turban_tone4:"],category:"people"},":person_wearing_turban_tone5:":{uc_base:"1f473-1f3ff",uc_full:"1f473-1f3ff",shortnames:[":man_with_turban_tone5:"],category:"people"},":person_white_hair:":{uc_base:"1f9d1-1f9b3",uc_full:"1f9d1-200d-1f9b3",shortnames:[],category:"people"},":person_with_probing_cane:":{uc_base:"1f9d1-1f9af",uc_full:"1f9d1-200d-1f9af",shortnames:[],category:"people"},":person_with_veil_tone1:":{uc_base:"1f470-1f3fb",uc_full:"1f470-1f3fb",shortnames:[],category:"people"},":person_with_veil_tone2:":{uc_base:"1f470-1f3fc",uc_full:"1f470-1f3fc",shortnames:[],category:"people"},":person_with_veil_tone3:":{uc_base:"1f470-1f3fd",uc_full:"1f470-1f3fd",shortnames:[],category:"people"},":person_with_veil_tone4:":{uc_base:"1f470-1f3fe",uc_full:"1f470-1f3fe",shortnames:[],category:"people"},":person_with_veil_tone5:":{uc_base:"1f470-1f3ff",uc_full:"1f470-1f3ff",shortnames:[],category:"people"},":pinched_fingers_tone1:":{uc_base:"1f90c-1f3fb",uc_full:"1f90c-1f3fb",shortnames:[":pinched_fingers_light_skin_tone:"],category:"people"},":pinched_fingers_tone2:":{uc_base:"1f90c-1f3fc",uc_full:"1f90c-1f3fc",shortnames:[":pinched_fingers_medium_light_skin_tone:"],category:"people"},":pinched_fingers_tone3:":{uc_base:"1f90c-1f3fd",uc_full:"1f90c-1f3fd",shortnames:[":pinched_fingers_medium_skin_tone:"],category:"people"},":pinched_fingers_tone4:":{uc_base:"1f90c-1f3fe",uc_full:"1f90c-1f3fe",shortnames:[":pinched_fingers_medium_dark_skin_tone:"],category:"people"},":pinched_fingers_tone5:":{uc_base:"1f90c-1f3ff",uc_full:"1f90c-1f3ff",shortnames:[":pinched_fingers_dark_skin_tone:"],category:"people"},":pinching_hand_tone1:":{uc_base:"1f90f-1f3fb",uc_full:"1f90f-1f3fb",shortnames:[":pinching_hand_light_skin_tone:"],category:"people"},":pinching_hand_tone2:":{uc_base:"1f90f-1f3fc",uc_full:"1f90f-1f3fc",shortnames:[":pinching_hand_medium_light_skin_tone:"],category:"people"},":pinching_hand_tone3:":{uc_base:"1f90f-1f3fd",uc_full:"1f90f-1f3fd",shortnames:[":pinching_hand_medium_skin_tone:"],category:"people"},":pinching_hand_tone4:":{uc_base:"1f90f-1f3fe",uc_full:"1f90f-1f3fe",shortnames:[":pinching_hand_medium_dark_skin_tone:"],category:"people"},":pinching_hand_tone5:":{uc_base:"1f90f-1f3ff",uc_full:"1f90f-1f3ff",shortnames:[":pinching_hand_dark_skin_tone:"],category:"people"},":point_down_tone1:":{uc_base:"1f447-1f3fb",uc_full:"1f447-1f3fb",shortnames:[],category:"people"},":point_down_tone2:":{uc_base:"1f447-1f3fc",uc_full:"1f447-1f3fc",shortnames:[],category:"people"},":point_down_tone3:":{uc_base:"1f447-1f3fd",uc_full:"1f447-1f3fd",shortnames:[],category:"people"},":point_down_tone4:":{uc_base:"1f447-1f3fe",uc_full:"1f447-1f3fe",shortnames:[],category:"people"},":point_down_tone5:":{uc_base:"1f447-1f3ff",uc_full:"1f447-1f3ff",shortnames:[],category:"people"},":point_left_tone1:":{uc_base:"1f448-1f3fb",uc_full:"1f448-1f3fb",shortnames:[],category:"people"},":point_left_tone2:":{uc_base:"1f448-1f3fc",uc_full:"1f448-1f3fc",shortnames:[],category:"people"},":point_left_tone3:":{uc_base:"1f448-1f3fd",uc_full:"1f448-1f3fd",shortnames:[],category:"people"},":point_left_tone4:":{uc_base:"1f448-1f3fe",uc_full:"1f448-1f3fe",shortnames:[],category:"people"},":point_left_tone5:":{uc_base:"1f448-1f3ff",uc_full:"1f448-1f3ff",shortnames:[],category:"people"},":point_right_tone1:":{uc_base:"1f449-1f3fb",uc_full:"1f449-1f3fb",shortnames:[],category:"people"},":point_right_tone2:":{uc_base:"1f449-1f3fc",uc_full:"1f449-1f3fc",shortnames:[],category:"people"},":point_right_tone3:":{uc_base:"1f449-1f3fd",uc_full:"1f449-1f3fd",shortnames:[],category:"people"},":point_right_tone4:":{uc_base:"1f449-1f3fe",uc_full:"1f449-1f3fe",shortnames:[],category:"people"},":point_right_tone5:":{uc_base:"1f449-1f3ff",uc_full:"1f449-1f3ff",shortnames:[],category:"people"},":point_up_2_tone1:":{uc_base:"1f446-1f3fb",uc_full:"1f446-1f3fb",shortnames:[],category:"people"},":point_up_2_tone2:":{uc_base:"1f446-1f3fc",uc_full:"1f446-1f3fc",shortnames:[],category:"people"},":point_up_2_tone3:":{uc_base:"1f446-1f3fd",uc_full:"1f446-1f3fd",shortnames:[],category:"people"},":point_up_2_tone4:":{uc_base:"1f446-1f3fe",uc_full:"1f446-1f3fe",shortnames:[],category:"people"},":point_up_2_tone5:":{uc_base:"1f446-1f3ff",uc_full:"1f446-1f3ff",shortnames:[],category:"people"},":police_officer_tone1:":{uc_base:"1f46e-1f3fb",uc_full:"1f46e-1f3fb",shortnames:[":cop_tone1:"],category:"people"},":police_officer_tone2:":{uc_base:"1f46e-1f3fc",uc_full:"1f46e-1f3fc",shortnames:[":cop_tone2:"],category:"people"},":police_officer_tone3:":{uc_base:"1f46e-1f3fd",uc_full:"1f46e-1f3fd",shortnames:[":cop_tone3:"],category:"people"},":police_officer_tone4:":{uc_base:"1f46e-1f3fe",uc_full:"1f46e-1f3fe",shortnames:[":cop_tone4:"],category:"people"},":police_officer_tone5:":{uc_base:"1f46e-1f3ff",uc_full:"1f46e-1f3ff",shortnames:[":cop_tone5:"],category:"people"},":pray_tone1:":{uc_base:"1f64f-1f3fb",uc_full:"1f64f-1f3fb",shortnames:[],category:"people"},":pray_tone2:":{uc_base:"1f64f-1f3fc",uc_full:"1f64f-1f3fc",shortnames:[],category:"people"},":pray_tone3:":{uc_base:"1f64f-1f3fd",uc_full:"1f64f-1f3fd",shortnames:[],category:"people"},":pray_tone4:":{uc_base:"1f64f-1f3fe",uc_full:"1f64f-1f3fe",shortnames:[],category:"people"},":pray_tone5:":{uc_base:"1f64f-1f3ff",uc_full:"1f64f-1f3ff",shortnames:[],category:"people"},":pregnant_woman_tone1:":{uc_base:"1f930-1f3fb",uc_full:"1f930-1f3fb",shortnames:[":expecting_woman_tone1:"],category:"people"},":pregnant_woman_tone2:":{uc_base:"1f930-1f3fc",uc_full:"1f930-1f3fc",shortnames:[":expecting_woman_tone2:"],category:"people"},":pregnant_woman_tone3:":{uc_base:"1f930-1f3fd",uc_full:"1f930-1f3fd",shortnames:[":expecting_woman_tone3:"],category:"people"},":pregnant_woman_tone4:":{uc_base:"1f930-1f3fe",uc_full:"1f930-1f3fe",shortnames:[":expecting_woman_tone4:"],category:"people"},":pregnant_woman_tone5:":{uc_base:"1f930-1f3ff",uc_full:"1f930-1f3ff",shortnames:[":expecting_woman_tone5:"],category:"people"},":prince_tone1:":{uc_base:"1f934-1f3fb",uc_full:"1f934-1f3fb",shortnames:[],category:"people"},":prince_tone2:":{uc_base:"1f934-1f3fc",uc_full:"1f934-1f3fc",shortnames:[],category:"people"},":prince_tone3:":{uc_base:"1f934-1f3fd",uc_full:"1f934-1f3fd",shortnames:[],category:"people"},":prince_tone4:":{uc_base:"1f934-1f3fe",uc_full:"1f934-1f3fe",shortnames:[],category:"people"},":prince_tone5:":{uc_base:"1f934-1f3ff",uc_full:"1f934-1f3ff",shortnames:[],category:"people"},":princess_tone1:":{uc_base:"1f478-1f3fb",uc_full:"1f478-1f3fb",shortnames:[],category:"people"},":princess_tone2:":{uc_base:"1f478-1f3fc",uc_full:"1f478-1f3fc",shortnames:[],category:"people"},":princess_tone3:":{uc_base:"1f478-1f3fd",uc_full:"1f478-1f3fd",shortnames:[],category:"people"},":princess_tone4:":{uc_base:"1f478-1f3fe",uc_full:"1f478-1f3fe",shortnames:[],category:"people"},":princess_tone5:":{uc_base:"1f478-1f3ff",uc_full:"1f478-1f3ff",shortnames:[],category:"people"},":punch_tone1:":{uc_base:"1f44a-1f3fb",uc_full:"1f44a-1f3fb",shortnames:[],category:"people"},":punch_tone2:":{uc_base:"1f44a-1f3fc",uc_full:"1f44a-1f3fc",shortnames:[],category:"people"},":punch_tone3:":{uc_base:"1f44a-1f3fd",uc_full:"1f44a-1f3fd",shortnames:[],category:"people"},":punch_tone4:":{uc_base:"1f44a-1f3fe",uc_full:"1f44a-1f3fe",shortnames:[],category:"people"},":punch_tone5:":{uc_base:"1f44a-1f3ff",uc_full:"1f44a-1f3ff",shortnames:[],category:"people"},":rainbow_flag:":{uc_base:"1f3f3-1f308",uc_full:"1f3f3-fe0f-200d-1f308",shortnames:[":gay_pride_flag:"],category:"flags"},":raised_back_of_hand_tone1:":{uc_base:"1f91a-1f3fb",uc_full:"1f91a-1f3fb",shortnames:[":back_of_hand_tone1:"],category:"people"},":raised_back_of_hand_tone2:":{uc_base:"1f91a-1f3fc",uc_full:"1f91a-1f3fc",shortnames:[":back_of_hand_tone2:"],category:"people"},":raised_back_of_hand_tone3:":{uc_base:"1f91a-1f3fd",uc_full:"1f91a-1f3fd",shortnames:[":back_of_hand_tone3:"],category:"people"},":raised_back_of_hand_tone4:":{uc_base:"1f91a-1f3fe",uc_full:"1f91a-1f3fe",shortnames:[":back_of_hand_tone4:"],category:"people"},":raised_back_of_hand_tone5:":{uc_base:"1f91a-1f3ff",uc_full:"1f91a-1f3ff",shortnames:[":back_of_hand_tone5:"],category:"people"},":raised_hands_tone1:":{uc_base:"1f64c-1f3fb",uc_full:"1f64c-1f3fb",shortnames:[],category:"people"},":raised_hands_tone2:":{uc_base:"1f64c-1f3fc",uc_full:"1f64c-1f3fc",shortnames:[],category:"people"},":raised_hands_tone3:":{uc_base:"1f64c-1f3fd",uc_full:"1f64c-1f3fd",shortnames:[],category:"people"},":raised_hands_tone4:":{uc_base:"1f64c-1f3fe",uc_full:"1f64c-1f3fe",shortnames:[],category:"people"},":raised_hands_tone5:":{uc_base:"1f64c-1f3ff",uc_full:"1f64c-1f3ff",shortnames:[],category:"people"},":right_facing_fist_tone1:":{uc_base:"1f91c-1f3fb",uc_full:"1f91c-1f3fb",shortnames:[":right_fist_tone1:"],category:"people"},":right_facing_fist_tone2:":{uc_base:"1f91c-1f3fc",uc_full:"1f91c-1f3fc",shortnames:[":right_fist_tone2:"],category:"people"},":right_facing_fist_tone3:":{uc_base:"1f91c-1f3fd",uc_full:"1f91c-1f3fd",shortnames:[":right_fist_tone3:"],category:"people"},":right_facing_fist_tone4:":{uc_base:"1f91c-1f3fe",uc_full:"1f91c-1f3fe",shortnames:[":right_fist_tone4:"],category:"people"},":right_facing_fist_tone5:":{uc_base:"1f91c-1f3ff",uc_full:"1f91c-1f3ff",shortnames:[":right_fist_tone5:"],category:"people"},":santa_tone1:":{uc_base:"1f385-1f3fb",uc_full:"1f385-1f3fb",shortnames:[],category:"people"},":santa_tone2:":{uc_base:"1f385-1f3fc",uc_full:"1f385-1f3fc",shortnames:[],category:"people"},":santa_tone3:":{uc_base:"1f385-1f3fd",uc_full:"1f385-1f3fd",shortnames:[],category:"people"},":santa_tone4:":{uc_base:"1f385-1f3fe",uc_full:"1f385-1f3fe",shortnames:[],category:"people"},":santa_tone5:":{uc_base:"1f385-1f3ff",uc_full:"1f385-1f3ff",shortnames:[],category:"people"},":scientist:":{uc_base:"1f9d1-1f52c",uc_full:"1f9d1-200d-1f52c",shortnames:[],category:"people"},":selfie_tone1:":{uc_base:"1f933-1f3fb",uc_full:"1f933-1f3fb",shortnames:[],category:"people"},":selfie_tone2:":{uc_base:"1f933-1f3fc",uc_full:"1f933-1f3fc",shortnames:[],category:"people"},":selfie_tone3:":{uc_base:"1f933-1f3fd",uc_full:"1f933-1f3fd",shortnames:[],category:"people"},":selfie_tone4:":{uc_base:"1f933-1f3fe",uc_full:"1f933-1f3fe",shortnames:[],category:"people"},":selfie_tone5:":{uc_base:"1f933-1f3ff",uc_full:"1f933-1f3ff",shortnames:[],category:"people"},":service_dog:":{uc_base:"1f415-1f9ba",uc_full:"1f415-200d-1f9ba",shortnames:[],category:"nature"},":singer:":{uc_base:"1f9d1-1f3a4",uc_full:"1f9d1-200d-1f3a4",shortnames:[],category:"people"},":snowboarder_tone1:":{uc_base:"1f3c2-1f3fb",uc_full:"1f3c2-1f3fb",shortnames:[":snowboarder_light_skin_tone:"],category:"activity"},":snowboarder_tone2:":{uc_base:"1f3c2-1f3fc",uc_full:"1f3c2-1f3fc",shortnames:[":snowboarder_medium_light_skin_tone:"],category:"activity"},":snowboarder_tone3:":{uc_base:"1f3c2-1f3fd",uc_full:"1f3c2-1f3fd",shortnames:[":snowboarder_medium_skin_tone:"],category:"activity"},":snowboarder_tone4:":{uc_base:"1f3c2-1f3fe",uc_full:"1f3c2-1f3fe",shortnames:[":snowboarder_medium_dark_skin_tone:"],category:"activity"},":snowboarder_tone5:":{uc_base:"1f3c2-1f3ff",uc_full:"1f3c2-1f3ff",shortnames:[":snowboarder_dark_skin_tone:"],category:"activity"},":student:":{uc_base:"1f9d1-1f393",uc_full:"1f9d1-200d-1f393",shortnames:[],category:"people"},":superhero_tone1:":{uc_base:"1f9b8-1f3fb",uc_full:"1f9b8-1f3fb",shortnames:[":superhero_light_skin_tone:"],category:"people"},":superhero_tone2:":{uc_base:"1f9b8-1f3fc",uc_full:"1f9b8-1f3fc",shortnames:[":superhero_medium_light_skin_tone:"],category:"people"},":superhero_tone3:":{uc_base:"1f9b8-1f3fd",uc_full:"1f9b8-1f3fd",shortnames:[":superhero_medium_skin_tone:"],category:"people"},":superhero_tone4:":{uc_base:"1f9b8-1f3fe",uc_full:"1f9b8-1f3fe",shortnames:[":superhero_medium_dark_skin_tone:"],category:"people"},":superhero_tone5:":{uc_base:"1f9b8-1f3ff",uc_full:"1f9b8-1f3ff",shortnames:[":superhero_dark_skin_tone:"],category:"people"},":supervillain_tone1:":{uc_base:"1f9b9-1f3fb",uc_full:"1f9b9-1f3fb",shortnames:[":supervillain_light_skin_tone:"],category:"people"},":supervillain_tone2:":{uc_base:"1f9b9-1f3fc",uc_full:"1f9b9-1f3fc",shortnames:[":supervillain_medium_light_skin_tone:"],category:"people"},":supervillain_tone3:":{uc_base:"1f9b9-1f3fd",uc_full:"1f9b9-1f3fd",shortnames:[":supervillain_medium_skin_tone:"],category:"people"},":supervillain_tone4:":{uc_base:"1f9b9-1f3fe",uc_full:"1f9b9-1f3fe",shortnames:[":supervillain_medium_dark_skin_tone:"],category:"people"},":supervillain_tone5:":{uc_base:"1f9b9-1f3ff",uc_full:"1f9b9-1f3ff",shortnames:[":supervillain_dark_skin_tone:"],category:"people"},":teacher:":{uc_base:"1f9d1-1f3eb",uc_full:"1f9d1-200d-1f3eb",shortnames:[],category:"people"},":technologist:":{uc_base:"1f9d1-1f4bb",uc_full:"1f9d1-200d-1f4bb",shortnames:[],category:"people"},":thumbsdown_tone1:":{uc_base:"1f44e-1f3fb",uc_full:"1f44e-1f3fb",shortnames:[":-1_tone1:",":thumbdown_tone1:"],category:"people"},":thumbsdown_tone2:":{uc_base:"1f44e-1f3fc",uc_full:"1f44e-1f3fc",shortnames:[":-1_tone2:",":thumbdown_tone2:"],category:"people"},":thumbsdown_tone3:":{uc_base:"1f44e-1f3fd",uc_full:"1f44e-1f3fd",shortnames:[":-1_tone3:",":thumbdown_tone3:"],category:"people"},":thumbsdown_tone4:":{uc_base:"1f44e-1f3fe",uc_full:"1f44e-1f3fe",shortnames:[":-1_tone4:",":thumbdown_tone4:"],category:"people"},":thumbsdown_tone5:":{uc_base:"1f44e-1f3ff",uc_full:"1f44e-1f3ff",shortnames:[":-1_tone5:",":thumbdown_tone5:"],category:"people"},":thumbsup_tone1:":{uc_base:"1f44d-1f3fb",uc_full:"1f44d-1f3fb",shortnames:[":+1_tone1:",":thumbup_tone1:"],category:"people"},":thumbsup_tone2:":{uc_base:"1f44d-1f3fc",uc_full:"1f44d-1f3fc",shortnames:[":+1_tone2:",":thumbup_tone2:"],category:"people"},":thumbsup_tone3:":{uc_base:"1f44d-1f3fd",uc_full:"1f44d-1f3fd",shortnames:[":+1_tone3:",":thumbup_tone3:"],category:"people"},":thumbsup_tone4:":{uc_base:"1f44d-1f3fe",uc_full:"1f44d-1f3fe",shortnames:[":+1_tone4:",":thumbup_tone4:"],category:"people"},":thumbsup_tone5:":{uc_base:"1f44d-1f3ff",uc_full:"1f44d-1f3ff",shortnames:[":+1_tone5:",":thumbup_tone5:"],category:"people"},":united_nations:":{uc_base:"1f1fa-1f1f3",uc_full:"1f1fa-1f1f3",shortnames:[],category:"flags"},":vampire_tone1:":{uc_base:"1f9db-1f3fb",uc_full:"1f9db-1f3fb",shortnames:[":vampire_light_skin_tone:"],category:"people"},":vampire_tone2:":{uc_base:"1f9db-1f3fc",uc_full:"1f9db-1f3fc",shortnames:[":vampire_medium_light_skin_tone:"],category:"people"},":vampire_tone3:":{uc_base:"1f9db-1f3fd",uc_full:"1f9db-1f3fd",shortnames:[":vampire_medium_skin_tone:"],category:"people"},":vampire_tone4:":{uc_base:"1f9db-1f3fe",uc_full:"1f9db-1f3fe",shortnames:[":vampire_medium_dark_skin_tone:"],category:"people"},":vampire_tone5:":{uc_base:"1f9db-1f3ff",uc_full:"1f9db-1f3ff",shortnames:[":vampire_dark_skin_tone:"],category:"people"},":vulcan_tone1:":{uc_base:"1f596-1f3fb",uc_full:"1f596-1f3fb",shortnames:[":raised_hand_with_part_between_middle_and_ring_fingers_tone1:"],category:"people"},":vulcan_tone2:":{uc_base:"1f596-1f3fc",uc_full:"1f596-1f3fc",shortnames:[":raised_hand_with_part_between_middle_and_ring_fingers_tone2:"],category:"people"},":vulcan_tone3:":{uc_base:"1f596-1f3fd",uc_full:"1f596-1f3fd",shortnames:[":raised_hand_with_part_between_middle_and_ring_fingers_tone3:"],category:"people"},":vulcan_tone4:":{uc_base:"1f596-1f3fe",uc_full:"1f596-1f3fe",shortnames:[":raised_hand_with_part_between_middle_and_ring_fingers_tone4:"],category:"people"},":vulcan_tone5:":{uc_base:"1f596-1f3ff",uc_full:"1f596-1f3ff",shortnames:[":raised_hand_with_part_between_middle_and_ring_fingers_tone5:"],category:"people"},":wave_tone1:":{uc_base:"1f44b-1f3fb",uc_full:"1f44b-1f3fb",shortnames:[],category:"people"},":wave_tone2:":{uc_base:"1f44b-1f3fc",uc_full:"1f44b-1f3fc",shortnames:[],category:"people"},":wave_tone3:":{uc_base:"1f44b-1f3fd",uc_full:"1f44b-1f3fd",shortnames:[],category:"people"},":wave_tone4:":{uc_base:"1f44b-1f3fe",uc_full:"1f44b-1f3fe",shortnames:[],category:"people"},":wave_tone5:":{uc_base:"1f44b-1f3ff",uc_full:"1f44b-1f3ff",shortnames:[],category:"people"},":woman_and_man_holding_hands_tone1:":{uc_base:"1f46b-1f3fb",uc_full:"1f46b-1f3fb",shortnames:[":woman_and_man_holding_hands_light_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone2:":{uc_base:"1f46b-1f3fc",uc_full:"1f46b-1f3fc",shortnames:[":woman_and_man_holding_hands_medium_light_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone3:":{uc_base:"1f46b-1f3fd",uc_full:"1f46b-1f3fd",shortnames:[":woman_and_man_holding_hands_medium_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone4:":{uc_base:"1f46b-1f3fe",uc_full:"1f46b-1f3fe",shortnames:[":woman_and_man_holding_hands_medium_dark_skin_tone:"],category:"people"},":woman_and_man_holding_hands_tone5:":{uc_base:"1f46b-1f3ff",uc_full:"1f46b-1f3ff",shortnames:[":woman_and_man_holding_hands_dark_skin_tone:"],category:"people"},":woman_artist:":{uc_base:"1f469-1f3a8",uc_full:"1f469-200d-1f3a8",shortnames:[],category:"people"},":woman_astronaut:":{uc_base:"1f469-1f680",uc_full:"1f469-200d-1f680",shortnames:[],category:"people"},":woman_bald:":{uc_base:"1f469-1f9b2",uc_full:"1f469-200d-1f9b2",shortnames:[],category:"people"},":woman_cook:":{uc_base:"1f469-1f373",uc_full:"1f469-200d-1f373",shortnames:[],category:"people"},":woman_curly_haired:":{uc_base:"1f469-1f9b1",uc_full:"1f469-200d-1f9b1",shortnames:[],category:"people"},":woman_factory_worker:":{uc_base:"1f469-1f3ed",uc_full:"1f469-200d-1f3ed",shortnames:[],category:"people"},":woman_farmer:":{uc_base:"1f469-1f33e",uc_full:"1f469-200d-1f33e",shortnames:[],category:"people"},":woman_feeding_baby:":{uc_base:"1f469-1f37c",uc_full:"1f469-200d-1f37c",shortnames:[],category:"people"},":woman_firefighter:":{uc_base:"1f469-1f692",uc_full:"1f469-200d-1f692",shortnames:[],category:"people"},":woman_in_manual_wheelchair:":{uc_base:"1f469-1f9bd",uc_full:"1f469-200d-1f9bd",shortnames:[],category:"people"},":woman_in_motorized_wheelchair:":{uc_base:"1f469-1f9bc",uc_full:"1f469-200d-1f9bc",shortnames:[],category:"people"},":woman_mechanic:":{uc_base:"1f469-1f527",uc_full:"1f469-200d-1f527",shortnames:[],category:"people"},":woman_office_worker:":{uc_base:"1f469-1f4bc",uc_full:"1f469-200d-1f4bc",shortnames:[],category:"people"},":woman_red_haired:":{uc_base:"1f469-1f9b0",uc_full:"1f469-200d-1f9b0",shortnames:[],category:"people"},":woman_scientist:":{uc_base:"1f469-1f52c",uc_full:"1f469-200d-1f52c",shortnames:[],category:"people"},":woman_singer:":{uc_base:"1f469-1f3a4",uc_full:"1f469-200d-1f3a4",shortnames:[],category:"people"},":woman_student:":{uc_base:"1f469-1f393",uc_full:"1f469-200d-1f393",shortnames:[],category:"people"},":woman_teacher:":{uc_base:"1f469-1f3eb",uc_full:"1f469-200d-1f3eb",shortnames:[],category:"people"},":woman_technologist:":{uc_base:"1f469-1f4bb",uc_full:"1f469-200d-1f4bb",shortnames:[],category:"people"},":woman_tone1:":{uc_base:"1f469-1f3fb",uc_full:"1f469-1f3fb",shortnames:[],category:"people"},":woman_tone2:":{uc_base:"1f469-1f3fc",uc_full:"1f469-1f3fc",shortnames:[],category:"people"},":woman_tone3:":{uc_base:"1f469-1f3fd",uc_full:"1f469-1f3fd",shortnames:[],category:"people"},":woman_tone4:":{uc_base:"1f469-1f3fe",uc_full:"1f469-1f3fe",shortnames:[],category:"people"},":woman_tone5:":{uc_base:"1f469-1f3ff",uc_full:"1f469-1f3ff",shortnames:[],category:"people"},":woman_white_haired:":{uc_base:"1f469-1f9b3",uc_full:"1f469-200d-1f9b3",shortnames:[],category:"people"},":woman_with_headscarf_tone1:":{uc_base:"1f9d5-1f3fb",uc_full:"1f9d5-1f3fb",shortnames:[":woman_with_headscarf_light_skin_tone:"],category:"people"},":woman_with_headscarf_tone2:":{uc_base:"1f9d5-1f3fc",uc_full:"1f9d5-1f3fc",shortnames:[":woman_with_headscarf_medium_light_skin_tone:"],category:"people"},":woman_with_headscarf_tone3:":{uc_base:"1f9d5-1f3fd",uc_full:"1f9d5-1f3fd",shortnames:[":woman_with_headscarf_medium_skin_tone:"],category:"people"},":woman_with_headscarf_tone4:":{uc_base:"1f9d5-1f3fe",uc_full:"1f9d5-1f3fe",shortnames:[":woman_with_headscarf_medium_dark_skin_tone:"],category:"people"},":woman_with_headscarf_tone5:":{uc_base:"1f9d5-1f3ff",uc_full:"1f9d5-1f3ff",shortnames:[":woman_with_headscarf_dark_skin_tone:"],category:"people"},":woman_with_probing_cane:":{uc_base:"1f469-1f9af",uc_full:"1f469-200d-1f9af",shortnames:[],category:"people"},":women_holding_hands_tone1:":{uc_base:"1f46d-1f3fb",uc_full:"1f46d-1f3fb",shortnames:[":women_holding_hands_light_skin_tone:"],category:"people"},":women_holding_hands_tone2:":{uc_base:"1f46d-1f3fc",uc_full:"1f46d-1f3fc",shortnames:[":women_holding_hands_medium_light_skin_tone:"],category:"people"},":women_holding_hands_tone3:":{uc_base:"1f46d-1f3fd",uc_full:"1f46d-1f3fd",shortnames:[":women_holding_hands_medium_skin_tone:"],category:"people"},":women_holding_hands_tone4:":{uc_base:"1f46d-1f3fe",uc_full:"1f46d-1f3fe",shortnames:[":women_holding_hands_medium_dark_skin_tone:"],category:"people"},":women_holding_hands_tone5:":{uc_base:"1f46d-1f3ff",uc_full:"1f46d-1f3ff",shortnames:[":women_holding_hands_dark_skin_tone:"],category:"people"},":black_cat:":{uc_base:"1f408-2b1b",uc_full:"1f408-200d-2b1b",shortnames:[],category:"nature"},":blond-haired_man:":{uc_base:"1f471-2642",uc_full:"1f471-200d-2642-fe0f",shortnames:[],category:"people"},":blond-haired_woman:":{uc_base:"1f471-2640",uc_full:"1f471-200d-2640-fe0f",shortnames:[],category:"people"},":deaf_man:":{uc_base:"1f9cf-2642",uc_full:"1f9cf-200d-2642-fe0f",shortnames:[],category:"people"},":deaf_woman:":{uc_base:"1f9cf-2640",uc_full:"1f9cf-200d-2640-fe0f",shortnames:[],category:"people"},":fist_tone1:":{uc_base:"270a-1f3fb",uc_full:"270a-1f3fb",shortnames:[],category:"people"},":fist_tone2:":{uc_base:"270a-1f3fc",uc_full:"270a-1f3fc",shortnames:[],category:"people"},":fist_tone3:":{uc_base:"270a-1f3fd",uc_full:"270a-1f3fd",shortnames:[],category:"people"},":fist_tone4:":{uc_base:"270a-1f3fe",uc_full:"270a-1f3fe",shortnames:[],category:"people"},":fist_tone5:":{uc_base:"270a-1f3ff",uc_full:"270a-1f3ff",shortnames:[],category:"people"},":health_worker:":{uc_base:"1f9d1-2695",uc_full:"1f9d1-200d-2695-fe0f",shortnames:[],category:"people"},":heart_on_fire:":{uc_base:"2764-1f525",uc_full:"2764-fe0f-200d-1f525",shortnames:[],category:"symbols"},":judge:":{uc_base:"1f9d1-2696",uc_full:"1f9d1-200d-2696-fe0f",shortnames:[],category:"people"},":man_beard:":{uc_base:"1f9d4-2642",uc_full:"1f9d4-200d-2642-fe0f",shortnames:[],category:"people"},":man_biking:":{uc_base:"1f6b4-2642",uc_full:"1f6b4-200d-2642-fe0f",shortnames:[],category:"activity"},":man_bowing:":{uc_base:"1f647-2642",uc_full:"1f647-200d-2642-fe0f",shortnames:[],category:"people"},":man_cartwheeling:":{uc_base:"1f938-2642",uc_full:"1f938-200d-2642-fe0f",shortnames:[],category:"activity"},":man_climbing:":{uc_base:"1f9d7-2642",uc_full:"1f9d7-200d-2642-fe0f",shortnames:[],category:"activity"},":man_construction_worker:":{uc_base:"1f477-2642",uc_full:"1f477-200d-2642-fe0f",shortnames:[],category:"people"},":man_detective:":{uc_base:"1f575-2642",uc_full:"1f575-fe0f-200d-2642-fe0f",shortnames:[],category:"people"},":man_elf:":{uc_base:"1f9dd-2642",uc_full:"1f9dd-200d-2642-fe0f",shortnames:[],category:"people"},":man_facepalming:":{uc_base:"1f926-2642",uc_full:"1f926-200d-2642-fe0f",shortnames:[],category:"people"},":man_fairy:":{uc_base:"1f9da-2642",uc_full:"1f9da-200d-2642-fe0f",shortnames:[],category:"people"},":man_frowning:":{uc_base:"1f64d-2642",uc_full:"1f64d-200d-2642-fe0f",shortnames:[],category:"people"},":man_genie:":{uc_base:"1f9de-2642",uc_full:"1f9de-200d-2642-fe0f",shortnames:[],category:"people"},":man_gesturing_no:":{uc_base:"1f645-2642",uc_full:"1f645-200d-2642-fe0f",shortnames:[],category:"people"},":man_gesturing_ok:":{uc_base:"1f646-2642",uc_full:"1f646-200d-2642-fe0f",shortnames:[],category:"people"},":man_getting_face_massage:":{uc_base:"1f486-2642",uc_full:"1f486-200d-2642-fe0f",shortnames:[],category:"people"},":man_getting_haircut:":{uc_base:"1f487-2642",uc_full:"1f487-200d-2642-fe0f",shortnames:[],category:"people"},":man_golfing:":{uc_base:"1f3cc-2642",uc_full:"1f3cc-fe0f-200d-2642-fe0f",shortnames:[],category:"activity"},":man_guard:":{uc_base:"1f482-2642",uc_full:"1f482-200d-2642-fe0f",shortnames:[],category:"people"},":man_health_worker:":{uc_base:"1f468-2695",uc_full:"1f468-200d-2695-fe0f",shortnames:[],category:"people"},":man_in_lotus_position:":{uc_base:"1f9d8-2642",uc_full:"1f9d8-200d-2642-fe0f",shortnames:[],category:"activity"},":man_in_steamy_room:":{uc_base:"1f9d6-2642",uc_full:"1f9d6-200d-2642-fe0f",shortnames:[],category:"people"},":man_in_tuxedo:":{uc_base:"1f935-2642",uc_full:"1f935-200d-2642-fe0f",shortnames:[],category:"people"},":man_judge:":{uc_base:"1f468-2696",uc_full:"1f468-200d-2696-fe0f",shortnames:[],category:"people"},":man_juggling:":{uc_base:"1f939-2642",uc_full:"1f939-200d-2642-fe0f",shortnames:[],category:"activity"},":man_kneeling:":{uc_base:"1f9ce-2642",uc_full:"1f9ce-200d-2642-fe0f",shortnames:[],category:"people"},":man_lifting_weights:":{uc_base:"1f3cb-2642",uc_full:"1f3cb-fe0f-200d-2642-fe0f",shortnames:[],category:"activity"},":man_mage:":{uc_base:"1f9d9-2642",uc_full:"1f9d9-200d-2642-fe0f",shortnames:[],category:"people"},":man_mountain_biking:":{uc_base:"1f6b5-2642",uc_full:"1f6b5-200d-2642-fe0f",shortnames:[],category:"activity"},":man_pilot:":{uc_base:"1f468-2708",uc_full:"1f468-200d-2708-fe0f",shortnames:[],category:"people"},":man_playing_handball:":{uc_base:"1f93e-2642",uc_full:"1f93e-200d-2642-fe0f",shortnames:[],category:"activity"},":man_playing_water_polo:":{uc_base:"1f93d-2642",uc_full:"1f93d-200d-2642-fe0f",shortnames:[],category:"activity"},":man_police_officer:":{uc_base:"1f46e-2642",uc_full:"1f46e-200d-2642-fe0f",shortnames:[],category:"people"},":man_pouting:":{uc_base:"1f64e-2642",uc_full:"1f64e-200d-2642-fe0f",shortnames:[],category:"people"},":man_raising_hand:":{uc_base:"1f64b-2642",uc_full:"1f64b-200d-2642-fe0f",shortnames:[],category:"people"},":man_rowing_boat:":{uc_base:"1f6a3-2642",uc_full:"1f6a3-200d-2642-fe0f",shortnames:[],category:"activity"},":man_running:":{uc_base:"1f3c3-2642",uc_full:"1f3c3-200d-2642-fe0f",shortnames:[],category:"people"},":man_shrugging:":{uc_base:"1f937-2642",uc_full:"1f937-200d-2642-fe0f",shortnames:[],category:"people"},":man_standing:":{uc_base:"1f9cd-2642",uc_full:"1f9cd-200d-2642-fe0f",shortnames:[],category:"people"},":man_superhero:":{uc_base:"1f9b8-2642",uc_full:"1f9b8-200d-2642-fe0f",shortnames:[],category:"people"},":man_supervillain:":{uc_base:"1f9b9-2642",uc_full:"1f9b9-200d-2642-fe0f",shortnames:[],category:"people"},":man_surfing:":{uc_base:"1f3c4-2642",uc_full:"1f3c4-200d-2642-fe0f",shortnames:[],category:"activity"},":man_swimming:":{uc_base:"1f3ca-2642",uc_full:"1f3ca-200d-2642-fe0f",shortnames:[],category:"activity"},":man_tipping_hand:":{uc_base:"1f481-2642",uc_full:"1f481-200d-2642-fe0f",shortnames:[],category:"people"},":man_vampire:":{uc_base:"1f9db-2642",uc_full:"1f9db-200d-2642-fe0f",shortnames:[],category:"people"},":man_walking:":{uc_base:"1f6b6-2642",uc_full:"1f6b6-200d-2642-fe0f",shortnames:[],category:"people"},":man_wearing_turban:":{uc_base:"1f473-2642",uc_full:"1f473-200d-2642-fe0f",shortnames:[],category:"people"},":man_with_veil:":{uc_base:"1f470-2642",uc_full:"1f470-200d-2642-fe0f",shortnames:[],category:"people"},":man_zombie:":{uc_base:"1f9df-2642",uc_full:"1f9df-200d-2642-fe0f",shortnames:[],category:"people"},":men_with_bunny_ears_partying:":{uc_base:"1f46f-2642",uc_full:"1f46f-200d-2642-fe0f",shortnames:[],category:"people"},":men_wrestling:":{uc_base:"1f93c-2642",uc_full:"1f93c-200d-2642-fe0f",shortnames:[],category:"activity"},":mending_heart:":{uc_base:"2764-1fa79",uc_full:"2764-fe0f-200d-1fa79",shortnames:[],category:"symbols"},":mermaid:":{uc_base:"1f9dc-2640",uc_full:"1f9dc-200d-2640-fe0f",shortnames:[],category:"people"},":merman:":{uc_base:"1f9dc-2642",uc_full:"1f9dc-200d-2642-fe0f",shortnames:[],category:"people"},":person_bouncing_ball_tone1:":{uc_base:"26f9-1f3fb",uc_full:"26f9-1f3fb",shortnames:[":basketball_player_tone1:",":person_with_ball_tone1:"],category:"activity"},":person_bouncing_ball_tone2:":{uc_base:"26f9-1f3fc",uc_full:"26f9-1f3fc",shortnames:[":basketball_player_tone2:",":person_with_ball_tone2:"],category:"activity"},":person_bouncing_ball_tone3:":{uc_base:"26f9-1f3fd",uc_full:"26f9-1f3fd",shortnames:[":basketball_player_tone3:",":person_with_ball_tone3:"],category:"activity"},":person_bouncing_ball_tone4:":{uc_base:"26f9-1f3fe",uc_full:"26f9-1f3fe",shortnames:[":basketball_player_tone4:",":person_with_ball_tone4:"],category:"activity"},":person_bouncing_ball_tone5:":{uc_base:"26f9-1f3ff",uc_full:"26f9-1f3ff",shortnames:[":basketball_player_tone5:",":person_with_ball_tone5:"],category:"activity"},":pilot:":{uc_base:"1f9d1-2708",uc_full:"1f9d1-200d-2708-fe0f",shortnames:[],category:"people"},":pirate_flag:":{uc_base:"1f3f4-2620",uc_full:"1f3f4-200d-2620-fe0f",shortnames:[],category:"flags"},":point_up_tone1:":{uc_base:"261d-1f3fb",uc_full:"261d-1f3fb",shortnames:[],category:"people"},":point_up_tone2:":{uc_base:"261d-1f3fc",uc_full:"261d-1f3fc",shortnames:[],category:"people"},":point_up_tone3:":{uc_base:"261d-1f3fd",uc_full:"261d-1f3fd",shortnames:[],category:"people"},":point_up_tone4:":{uc_base:"261d-1f3fe",uc_full:"261d-1f3fe",shortnames:[],category:"people"},":point_up_tone5:":{uc_base:"261d-1f3ff",uc_full:"261d-1f3ff",shortnames:[],category:"people"},":polar_bear:":{uc_base:"1f43b-2744",uc_full:"1f43b-200d-2744-fe0f",shortnames:[],category:"nature"},":raised_hand_tone1:":{uc_base:"270b-1f3fb",uc_full:"270b-1f3fb",shortnames:[],category:"people"},":raised_hand_tone2:":{uc_base:"270b-1f3fc",uc_full:"270b-1f3fc",shortnames:[],category:"people"},":raised_hand_tone3:":{uc_base:"270b-1f3fd",uc_full:"270b-1f3fd",shortnames:[],category:"people"},":raised_hand_tone4:":{uc_base:"270b-1f3fe",uc_full:"270b-1f3fe",shortnames:[],category:"people"},":raised_hand_tone5:":{uc_base:"270b-1f3ff",uc_full:"270b-1f3ff",shortnames:[],category:"people"},":transgender_flag:":{uc_base:"1f3f3-26a7",uc_full:"1f3f3-fe0f-200d-26a7-fe0f",shortnames:[],category:"flags"},":v_tone1:":{uc_base:"270c-1f3fb",uc_full:"270c-1f3fb",shortnames:[],category:"people"},":v_tone2:":{uc_base:"270c-1f3fc",uc_full:"270c-1f3fc",shortnames:[],category:"people"},":v_tone3:":{uc_base:"270c-1f3fd",uc_full:"270c-1f3fd",shortnames:[],category:"people"},":v_tone4:":{uc_base:"270c-1f3fe",uc_full:"270c-1f3fe",shortnames:[],category:"people"},":v_tone5:":{uc_base:"270c-1f3ff",uc_full:"270c-1f3ff",shortnames:[],category:"people"},":woman_beard:":{uc_base:"1f9d4-2640",uc_full:"1f9d4-200d-2640-fe0f",shortnames:[],category:"people"},":woman_biking:":{uc_base:"1f6b4-2640",uc_full:"1f6b4-200d-2640-fe0f",shortnames:[],category:"activity"},":woman_bowing:":{uc_base:"1f647-2640",uc_full:"1f647-200d-2640-fe0f",shortnames:[],category:"people"},":woman_cartwheeling:":{uc_base:"1f938-2640",uc_full:"1f938-200d-2640-fe0f",shortnames:[],category:"activity"},":woman_climbing:":{uc_base:"1f9d7-2640",uc_full:"1f9d7-200d-2640-fe0f",shortnames:[],category:"activity"},":woman_construction_worker:":{uc_base:"1f477-2640",uc_full:"1f477-200d-2640-fe0f",shortnames:[],category:"people"},":woman_detective:":{uc_base:"1f575-2640",uc_full:"1f575-fe0f-200d-2640-fe0f",shortnames:[],category:"people"},":woman_elf:":{uc_base:"1f9dd-2640",uc_full:"1f9dd-200d-2640-fe0f",shortnames:[],category:"people"},":woman_facepalming:":{uc_base:"1f926-2640",uc_full:"1f926-200d-2640-fe0f",shortnames:[],category:"people"},":woman_fairy:":{uc_base:"1f9da-2640",uc_full:"1f9da-200d-2640-fe0f",shortnames:[],category:"people"},":woman_frowning:":{uc_base:"1f64d-2640",uc_full:"1f64d-200d-2640-fe0f",shortnames:[],category:"people"},":woman_genie:":{uc_base:"1f9de-2640",uc_full:"1f9de-200d-2640-fe0f",shortnames:[],category:"people"},":woman_gesturing_no:":{uc_base:"1f645-2640",uc_full:"1f645-200d-2640-fe0f",shortnames:[],category:"people"},":woman_gesturing_ok:":{uc_base:"1f646-2640",uc_full:"1f646-200d-2640-fe0f",shortnames:[],category:"people"},":woman_getting_face_massage:":{uc_base:"1f486-2640",uc_full:"1f486-200d-2640-fe0f",shortnames:[],category:"people"},":woman_getting_haircut:":{uc_base:"1f487-2640",uc_full:"1f487-200d-2640-fe0f",shortnames:[],category:"people"},":woman_golfing:":{uc_base:"1f3cc-2640",uc_full:"1f3cc-fe0f-200d-2640-fe0f",shortnames:[],category:"activity"},":woman_guard:":{uc_base:"1f482-2640",uc_full:"1f482-200d-2640-fe0f",shortnames:[],category:"people"},":woman_health_worker:":{uc_base:"1f469-2695",uc_full:"1f469-200d-2695-fe0f",shortnames:[],category:"people"},":woman_in_lotus_position:":{uc_base:"1f9d8-2640",uc_full:"1f9d8-200d-2640-fe0f",shortnames:[],category:"activity"},":woman_in_steamy_room:":{uc_base:"1f9d6-2640",uc_full:"1f9d6-200d-2640-fe0f",shortnames:[],category:"people"},":woman_in_tuxedo:":{uc_base:"1f935-2640",uc_full:"1f935-200d-2640-fe0f",shortnames:[],category:"people"},":woman_judge:":{uc_base:"1f469-2696",uc_full:"1f469-200d-2696-fe0f",shortnames:[],category:"people"},":woman_juggling:":{uc_base:"1f939-2640",uc_full:"1f939-200d-2640-fe0f",shortnames:[],category:"activity"},":woman_kneeling:":{uc_base:"1f9ce-2640",uc_full:"1f9ce-200d-2640-fe0f",shortnames:[],category:"people"},":woman_lifting_weights:":{uc_base:"1f3cb-2640",uc_full:"1f3cb-fe0f-200d-2640-fe0f",shortnames:[],category:"activity"},":woman_mage:":{uc_base:"1f9d9-2640",uc_full:"1f9d9-200d-2640-fe0f",shortnames:[],category:"people"},":woman_mountain_biking:":{uc_base:"1f6b5-2640",uc_full:"1f6b5-200d-2640-fe0f",shortnames:[],category:"activity"},":woman_pilot:":{uc_base:"1f469-2708",uc_full:"1f469-200d-2708-fe0f",shortnames:[],category:"people"},":woman_playing_handball:":{uc_base:"1f93e-2640",uc_full:"1f93e-200d-2640-fe0f",shortnames:[],category:"activity"},":woman_playing_water_polo:":{uc_base:"1f93d-2640",uc_full:"1f93d-200d-2640-fe0f",shortnames:[],category:"activity"},":woman_police_officer:":{uc_base:"1f46e-2640",uc_full:"1f46e-200d-2640-fe0f",shortnames:[],category:"people"},":woman_pouting:":{uc_base:"1f64e-2640",uc_full:"1f64e-200d-2640-fe0f",shortnames:[],category:"people"},":woman_raising_hand:":{uc_base:"1f64b-2640",uc_full:"1f64b-200d-2640-fe0f",shortnames:[],category:"people"},":woman_rowing_boat:":{uc_base:"1f6a3-2640",uc_full:"1f6a3-200d-2640-fe0f",shortnames:[],category:"activity"},":woman_running:":{uc_base:"1f3c3-2640",uc_full:"1f3c3-200d-2640-fe0f",shortnames:[],category:"people"},":woman_shrugging:":{uc_base:"1f937-2640",uc_full:"1f937-200d-2640-fe0f",shortnames:[],category:"people"},":woman_standing:":{uc_base:"1f9cd-2640",uc_full:"1f9cd-200d-2640-fe0f",shortnames:[],category:"people"},":woman_superhero:":{uc_base:"1f9b8-2640",uc_full:"1f9b8-200d-2640-fe0f",shortnames:[],category:"people"},":woman_supervillain:":{uc_base:"1f9b9-2640",uc_full:"1f9b9-200d-2640-fe0f",shortnames:[],category:"people"},":woman_surfing:":{uc_base:"1f3c4-2640",uc_full:"1f3c4-200d-2640-fe0f",shortnames:[],category:"activity"},":woman_swimming:":{uc_base:"1f3ca-2640",uc_full:"1f3ca-200d-2640-fe0f",shortnames:[],category:"activity"},":woman_tipping_hand:":{uc_base:"1f481-2640",uc_full:"1f481-200d-2640-fe0f",shortnames:[],category:"people"},":woman_vampire:":{uc_base:"1f9db-2640",uc_full:"1f9db-200d-2640-fe0f",shortnames:[],category:"people"},":woman_walking:":{uc_base:"1f6b6-2640",uc_full:"1f6b6-200d-2640-fe0f",shortnames:[],category:"people"},":woman_wearing_turban:":{uc_base:"1f473-2640",uc_full:"1f473-200d-2640-fe0f",shortnames:[],category:"people"},":woman_with_veil:":{uc_base:"1f470-2640",uc_full:"1f470-200d-2640-fe0f",shortnames:[],category:"people"},":woman_zombie:":{uc_base:"1f9df-2640",uc_full:"1f9df-200d-2640-fe0f",shortnames:[],category:"people"},":women_with_bunny_ears_partying:":{uc_base:"1f46f-2640",uc_full:"1f46f-200d-2640-fe0f",shortnames:[],category:"people"},":women_wrestling:":{uc_base:"1f93c-2640",uc_full:"1f93c-200d-2640-fe0f",shortnames:[],category:"activity"},":writing_hand_tone1:":{uc_base:"270d-1f3fb",uc_full:"270d-1f3fb",shortnames:[],category:"people"},":writing_hand_tone2:":{uc_base:"270d-1f3fc",uc_full:"270d-1f3fc",shortnames:[],category:"people"},":writing_hand_tone3:":{uc_base:"270d-1f3fd",uc_full:"270d-1f3fd",shortnames:[],category:"people"},":writing_hand_tone4:":{uc_base:"270d-1f3fe",uc_full:"270d-1f3fe",shortnames:[],category:"people"},":writing_hand_tone5:":{uc_base:"270d-1f3ff",uc_full:"270d-1f3ff",shortnames:[],category:"people"},":asterisk:":{uc_base:"002a-20e3",uc_full:"002a-fe0f-20e3",shortnames:[":keycap_asterisk:"],category:"symbols"},":eight:":{uc_base:"0038-20e3",uc_full:"0038-fe0f-20e3",shortnames:[],category:"symbols"},":five:":{uc_base:"0035-20e3",uc_full:"0035-fe0f-20e3",shortnames:[],category:"symbols"},":four:":{uc_base:"0034-20e3",uc_full:"0034-fe0f-20e3",shortnames:[],category:"symbols"},":hash:":{uc_base:"0023-20e3",uc_full:"0023-fe0f-20e3",shortnames:[],category:"symbols"},":man_bouncing_ball:":{uc_base:"26f9-2642",uc_full:"26f9-fe0f-200d-2642-fe0f",shortnames:[],category:"activity"},":nine:":{uc_base:"0039-20e3",uc_full:"0039-fe0f-20e3",shortnames:[],category:"symbols"},":one:":{uc_base:"0031-20e3",uc_full:"0031-fe0f-20e3",shortnames:[],category:"symbols"},":seven:":{uc_base:"0037-20e3",uc_full:"0037-fe0f-20e3",shortnames:[],category:"symbols"},":six:":{uc_base:"0036-20e3",uc_full:"0036-fe0f-20e3",shortnames:[],category:"symbols"},":three:":{uc_base:"0033-20e3",uc_full:"0033-fe0f-20e3",shortnames:[],category:"symbols"},":two:":{uc_base:"0032-20e3",uc_full:"0032-fe0f-20e3",shortnames:[],category:"symbols"},":woman_bouncing_ball:":{uc_base:"26f9-2640",uc_full:"26f9-fe0f-200d-2640-fe0f",shortnames:[],category:"activity"},":zero:":{uc_base:"0030-20e3",uc_full:"0030-fe0f-20e3",shortnames:[],category:"symbols"},":100:":{uc_base:"1f4af",uc_full:"1f4af",shortnames:[],category:"symbols"},":1234:":{uc_base:"1f522",uc_full:"1f522",shortnames:[],category:"symbols"},":8ball:":{uc_base:"1f3b1",uc_full:"1f3b1",shortnames:[],category:"activity"},":a:":{uc_base:"1f170",uc_full:"1f170-fe0f",shortnames:[],category:"symbols"},":ab:":{uc_base:"1f18e",uc_full:"1f18e",shortnames:[],category:"symbols"},":abacus:":{uc_base:"1f9ee",uc_full:"1f9ee",shortnames:[],category:"objects"},":abc:":{uc_base:"1f524",uc_full:"1f524",shortnames:[],category:"symbols"},":abcd:":{uc_base:"1f521",uc_full:"1f521",shortnames:[],category:"symbols"},":accept:":{uc_base:"1f251",uc_full:"1f251",shortnames:[],category:"symbols"},":accordion:":{uc_base:"1fa97",uc_full:"1fa97",shortnames:[],category:"activity"},":adhesive_bandage:":{uc_base:"1fa79",uc_full:"1fa79",shortnames:[],category:"objects"},":adult:":{uc_base:"1f9d1",uc_full:"1f9d1",shortnames:[],category:"people"},":aerial_tramway:":{uc_base:"1f6a1",uc_full:"1f6a1",shortnames:[],category:"travel"},":airplane_arriving:":{uc_base:"1f6ec",uc_full:"1f6ec",shortnames:[],category:"travel"},":airplane_departure:":{uc_base:"1f6eb",uc_full:"1f6eb",shortnames:[],category:"travel"},":airplane_small:":{uc_base:"1f6e9",uc_full:"1f6e9-fe0f",shortnames:[":small_airplane:"],category:"travel"},":alien:":{uc_base:"1f47d",uc_full:"1f47d",shortnames:[],category:"people"},":ambulance:":{uc_base:"1f691",uc_full:"1f691",shortnames:[],category:"travel"},":amphora:":{uc_base:"1f3fa",uc_full:"1f3fa",shortnames:[],category:"objects"},":anatomical_heart:":{uc_base:"1fac0",uc_full:"1fac0",shortnames:[],category:"people"},":angel:":{uc_base:"1f47c",uc_full:"1f47c",shortnames:[],category:"people"},":anger:":{uc_base:"1f4a2",uc_full:"1f4a2",shortnames:[],category:"symbols"},":anger_right:":{uc_base:"1f5ef",uc_full:"1f5ef-fe0f",shortnames:[":right_anger_bubble:"],category:"symbols"},":angry:":{uc_base:"1f620",uc_full:"1f620",shortnames:[],category:"people"},":anguished:":{uc_base:"1f627",uc_full:"1f627",shortnames:[],category:"people"},":ant:":{uc_base:"1f41c",uc_full:"1f41c",shortnames:[],category:"nature"},":apple:":{uc_base:"1f34e",uc_full:"1f34e",shortnames:[],category:"food"},":arrow_down_small:":{uc_base:"1f53d",uc_full:"1f53d",shortnames:[],category:"symbols"},":arrow_up_small:":{uc_base:"1f53c",uc_full:"1f53c",shortnames:[],category:"symbols"},":arrows_clockwise:":{uc_base:"1f503",uc_full:"1f503",shortnames:[],category:"symbols"},":arrows_counterclockwise:":{uc_base:"1f504",uc_full:"1f504",shortnames:[],category:"symbols"},":art:":{uc_base:"1f3a8",uc_full:"1f3a8",shortnames:[],category:"activity"},":articulated_lorry:":{uc_base:"1f69b",uc_full:"1f69b",shortnames:[],category:"travel"},":astonished:":{uc_base:"1f632",uc_full:"1f632",shortnames:[],category:"people"},":athletic_shoe:":{uc_base:"1f45f",uc_full:"1f45f",shortnames:[],category:"people"},":atm:":{uc_base:"1f3e7",uc_full:"1f3e7",shortnames:[],category:"symbols"},":auto_rickshaw:":{uc_base:"1f6fa",uc_full:"1f6fa",shortnames:[],category:"travel"},":avocado:":{uc_base:"1f951",uc_full:"1f951",shortnames:[],category:"food"},":axe:":{uc_base:"1fa93",uc_full:"1fa93",shortnames:[],category:"objects"},":b:":{uc_base:"1f171",uc_full:"1f171-fe0f",shortnames:[],category:"symbols"},":baby:":{uc_base:"1f476",uc_full:"1f476",shortnames:[],category:"people"},":baby_bottle:":{uc_base:"1f37c",uc_full:"1f37c",shortnames:[],category:"food"},":baby_chick:":{uc_base:"1f424",uc_full:"1f424",shortnames:[],category:"nature"},":baby_symbol:":{uc_base:"1f6bc",uc_full:"1f6bc",shortnames:[],category:"symbols"},":back:":{uc_base:"1f519",uc_full:"1f519",shortnames:[],category:"symbols"},":bacon:":{uc_base:"1f953",uc_full:"1f953",shortnames:[],category:"food"},":badger:":{uc_base:"1f9a1",uc_full:"1f9a1",shortnames:[],category:"nature"},":badminton:":{uc_base:"1f3f8",uc_full:"1f3f8",shortnames:[],category:"activity"},":bagel:":{uc_base:"1f96f",uc_full:"1f96f",shortnames:[],category:"food"},":baggage_claim:":{uc_base:"1f6c4",uc_full:"1f6c4",shortnames:[],category:"symbols"},":bald:":{uc_base:"1f9b2",uc_full:"1f9b2",shortnames:[],category:"people"},":ballet_shoes:":{uc_base:"1fa70",uc_full:"1fa70",shortnames:[],category:"activity"},":balloon:":{uc_base:"1f388",uc_full:"1f388",shortnames:[],category:"objects"},":ballot_box:":{uc_base:"1f5f3",uc_full:"1f5f3-fe0f",shortnames:[":ballot_box_with_ballot:"],category:"objects"},":bamboo:":{uc_base:"1f38d",uc_full:"1f38d",shortnames:[],category:"nature"},":banana:":{uc_base:"1f34c",uc_full:"1f34c",shortnames:[],category:"food"},":banjo:":{uc_base:"1fa95",uc_full:"1fa95",shortnames:[],category:"activity"},":bank:":{uc_base:"1f3e6",uc_full:"1f3e6",shortnames:[],category:"travel"},":bar_chart:":{uc_base:"1f4ca",uc_full:"1f4ca",shortnames:[],category:"objects"},":barber:":{uc_base:"1f488",uc_full:"1f488",shortnames:[],category:"objects"},":basket:":{uc_base:"1f9fa",uc_full:"1f9fa",shortnames:[],category:"objects"},":basketball:":{uc_base:"1f3c0",uc_full:"1f3c0",shortnames:[],category:"activity"},":bat:":{uc_base:"1f987",uc_full:"1f987",shortnames:[],category:"nature"},":bath:":{uc_base:"1f6c0",uc_full:"1f6c0",shortnames:[],category:"objects"},":bathtub:":{uc_base:"1f6c1",uc_full:"1f6c1",shortnames:[],category:"objects"},":battery:":{uc_base:"1f50b",uc_full:"1f50b",shortnames:[],category:"objects"},":beach:":{uc_base:"1f3d6",uc_full:"1f3d6-fe0f",shortnames:[":beach_with_umbrella:"],category:"travel"},":bear:":{uc_base:"1f43b",uc_full:"1f43b",shortnames:[],category:"nature"},":bearded_person:":{uc_base:"1f9d4",uc_full:"1f9d4",shortnames:[],category:"people"},":beaver:":{uc_base:"1f9ab",uc_full:"1f9ab",shortnames:[],category:"nature"},":bed:":{uc_base:"1f6cf",uc_full:"1f6cf-fe0f",shortnames:[],category:"objects"},":bee:":{uc_base:"1f41d",uc_full:"1f41d",shortnames:[],category:"nature"},":beer:":{uc_base:"1f37a",uc_full:"1f37a",shortnames:[],category:"food"},":beers:":{uc_base:"1f37b",uc_full:"1f37b",shortnames:[],category:"food"},":beetle:":{uc_base:"1fab2",uc_full:"1fab2",shortnames:[],category:"nature"},":beginner:":{uc_base:"1f530",uc_full:"1f530",shortnames:[],category:"symbols"},":bell:":{uc_base:"1f514",uc_full:"1f514",shortnames:[],category:"symbols"},":bell_pepper:":{uc_base:"1fad1",uc_full:"1fad1",shortnames:[],category:"food"},":bellhop:":{uc_base:"1f6ce",uc_full:"1f6ce-fe0f",shortnames:[":bellhop_bell:"],category:"objects"},":bento:":{uc_base:"1f371",uc_full:"1f371",shortnames:[],category:"food"},":beverage_box:":{uc_base:"1f9c3",uc_full:"1f9c3",shortnames:[],category:"food"},":bike:":{uc_base:"1f6b2",uc_full:"1f6b2",shortnames:[],category:"travel"},":bikini:":{uc_base:"1f459",uc_full:"1f459",shortnames:[],category:"people"},":billed_cap:":{uc_base:"1f9e2",uc_full:"1f9e2",shortnames:[],category:"people"},":bird:":{uc_base:"1f426",uc_full:"1f426",shortnames:[],category:"nature"},":birthday:":{uc_base:"1f382",uc_full:"1f382",shortnames:[],category:"food"},":bison:":{uc_base:"1f9ac",uc_full:"1f9ac",shortnames:[],category:"nature"},":black_heart:":{uc_base:"1f5a4",uc_full:"1f5a4",shortnames:[],category:"symbols"},":black_joker:":{uc_base:"1f0cf",uc_full:"1f0cf",shortnames:[],category:"symbols"},":black_square_button:":{uc_base:"1f532",uc_full:"1f532",shortnames:[],category:"symbols"},":blond_haired_person:":{uc_base:"1f471",uc_full:"1f471",shortnames:[":person_with_blond_hair:"],category:"people"},":blossom:":{uc_base:"1f33c",uc_full:"1f33c",shortnames:[],category:"nature"},":blowfish:":{uc_base:"1f421",uc_full:"1f421",shortnames:[],category:"nature"},":blue_book:":{uc_base:"1f4d8",uc_full:"1f4d8",shortnames:[],category:"objects"},":blue_car:":{uc_base:"1f699",uc_full:"1f699",shortnames:[],category:"travel"},":blue_circle:":{uc_base:"1f535",uc_full:"1f535",shortnames:[],category:"symbols"},":blue_heart:":{uc_base:"1f499",uc_full:"1f499",shortnames:[],category:"symbols"},":blue_square:":{uc_base:"1f7e6",uc_full:"1f7e6",shortnames:[],category:"symbols"},":blueberries:":{uc_base:"1fad0",uc_full:"1fad0",shortnames:[],category:"food"},":blush:":{uc_base:"1f60a",uc_full:"1f60a",shortnames:[],category:"people"},":boar:":{uc_base:"1f417",uc_full:"1f417",shortnames:[],category:"nature"},":bomb:":{uc_base:"1f4a3",uc_full:"1f4a3",shortnames:[],category:"objects"},":bone:":{uc_base:"1f9b4",uc_full:"1f9b4",shortnames:[],category:"people"},":book:":{uc_base:"1f4d6",uc_full:"1f4d6",shortnames:[],category:"objects"},":bookmark:":{uc_base:"1f516",uc_full:"1f516",shortnames:[],category:"objects"},":bookmark_tabs:":{uc_base:"1f4d1",uc_full:"1f4d1",shortnames:[],category:"objects"},":books:":{uc_base:"1f4da",uc_full:"1f4da",shortnames:[],category:"objects"},":boom:":{uc_base:"1f4a5",uc_full:"1f4a5",shortnames:[],category:"nature"},":boomerang:":{uc_base:"1fa83",uc_full:"1fa83",shortnames:[],category:"activity"},":boot:":{uc_base:"1f462",uc_full:"1f462",shortnames:[],category:"people"},":bouquet:":{uc_base:"1f490",uc_full:"1f490",shortnames:[],category:"nature"},":bow_and_arrow:":{uc_base:"1f3f9",uc_full:"1f3f9",shortnames:[":archery:"],category:"activity"},":bowl_with_spoon:":{uc_base:"1f963",uc_full:"1f963",shortnames:[],category:"food"},":bowling:":{uc_base:"1f3b3",uc_full:"1f3b3",shortnames:[],category:"activity"},":boxing_glove:":{uc_base:"1f94a",uc_full:"1f94a",shortnames:[":boxing_gloves:"],category:"activity"},":boy:":{uc_base:"1f466",uc_full:"1f466",shortnames:[],category:"people"},":brain:":{uc_base:"1f9e0",uc_full:"1f9e0",shortnames:[],category:"people"},":bread:":{uc_base:"1f35e",uc_full:"1f35e",shortnames:[],category:"food"},":breast_feeding:":{uc_base:"1f931",uc_full:"1f931",shortnames:[],category:"people"},":bricks:":{uc_base:"1f9f1",uc_full:"1f9f1",shortnames:[],category:"objects"},":bridge_at_night:":{uc_base:"1f309",uc_full:"1f309",shortnames:[],category:"travel"},":briefcase:":{uc_base:"1f4bc",uc_full:"1f4bc",shortnames:[],category:"people"},":briefs:":{uc_base:"1fa72",uc_full:"1fa72",shortnames:[],category:"people"},":broccoli:":{uc_base:"1f966",uc_full:"1f966",shortnames:[],category:"food"},":broken_heart:":{uc_base:"1f494",uc_full:"1f494",shortnames:[],category:"symbols"},":broom:":{uc_base:"1f9f9",uc_full:"1f9f9",shortnames:[],category:"objects"},":brown_circle:":{uc_base:"1f7e4",uc_full:"1f7e4",shortnames:[],category:"symbols"},":brown_heart:":{uc_base:"1f90e",uc_full:"1f90e",shortnames:[],category:"symbols"},":brown_square:":{uc_base:"1f7eb",uc_full:"1f7eb",shortnames:[],category:"symbols"},":bubble_tea:":{uc_base:"1f9cb",uc_full:"1f9cb",shortnames:[],category:"food"},":bucket:":{uc_base:"1faa3",uc_full:"1faa3",shortnames:[],category:"objects"},":bug:":{uc_base:"1f41b",uc_full:"1f41b",shortnames:[],category:"nature"},":bulb:":{uc_base:"1f4a1",uc_full:"1f4a1",shortnames:[],category:"objects"},":bullettrain_front:":{uc_base:"1f685",uc_full:"1f685",shortnames:[],category:"travel"},":bullettrain_side:":{uc_base:"1f684",uc_full:"1f684",shortnames:[],category:"travel"},":burrito:":{uc_base:"1f32f",uc_full:"1f32f",shortnames:[],category:"food"},":bus:":{uc_base:"1f68c",uc_full:"1f68c",shortnames:[],category:"travel"},":busstop:":{uc_base:"1f68f",uc_full:"1f68f",shortnames:[],category:"travel"},":bust_in_silhouette:":{uc_base:"1f464",uc_full:"1f464",shortnames:[],category:"people"},":busts_in_silhouette:":{uc_base:"1f465",uc_full:"1f465",shortnames:[],category:"people"},":butter:":{uc_base:"1f9c8",uc_full:"1f9c8",shortnames:[],category:"food"},":butterfly:":{uc_base:"1f98b",uc_full:"1f98b",shortnames:[],category:"nature"},":cactus:":{uc_base:"1f335",uc_full:"1f335",shortnames:[],category:"nature"},":cake:":{uc_base:"1f370",uc_full:"1f370",shortnames:[],category:"food"},":calendar:":{uc_base:"1f4c6",uc_full:"1f4c6",shortnames:[],category:"objects"},":calendar_spiral:":{uc_base:"1f5d3",uc_full:"1f5d3-fe0f",shortnames:[":spiral_calendar_pad:"],category:"objects"},":call_me:":{uc_base:"1f919",uc_full:"1f919",shortnames:[":call_me_hand:"],category:"people"},":calling:":{uc_base:"1f4f2",uc_full:"1f4f2",shortnames:[],category:"objects"},":camel:":{uc_base:"1f42b",uc_full:"1f42b",shortnames:[],category:"nature"},":camera:":{uc_base:"1f4f7",uc_full:"1f4f7",shortnames:[],category:"objects"},":camera_with_flash:":{uc_base:"1f4f8",uc_full:"1f4f8",shortnames:[],category:"objects"},":camping:":{uc_base:"1f3d5",uc_full:"1f3d5-fe0f",shortnames:[],category:"travel"},":candle:":{uc_base:"1f56f",uc_full:"1f56f-fe0f",shortnames:[],category:"objects"},":candy:":{uc_base:"1f36c",uc_full:"1f36c",shortnames:[],category:"food"},":canned_food:":{uc_base:"1f96b",uc_full:"1f96b",shortnames:[],category:"food"},":canoe:":{uc_base:"1f6f6",uc_full:"1f6f6",shortnames:[":kayak:"],category:"travel"},":capital_abcd:":{uc_base:"1f520",uc_full:"1f520",shortnames:[],category:"symbols"},":card_box:":{uc_base:"1f5c3",uc_full:"1f5c3-fe0f",shortnames:[":card_file_box:"],category:"objects"},":card_index:":{uc_base:"1f4c7",uc_full:"1f4c7",shortnames:[],category:"objects"},":carousel_horse:":{uc_base:"1f3a0",uc_full:"1f3a0",shortnames:[],category:"travel"},":carpentry_saw:":{uc_base:"1fa9a",uc_full:"1fa9a",shortnames:[],category:"objects"},":carrot:":{uc_base:"1f955",uc_full:"1f955",shortnames:[],category:"food"},":cat2:":{uc_base:"1f408",uc_full:"1f408",shortnames:[],category:"nature"},":cat:":{uc_base:"1f431",uc_full:"1f431",shortnames:[],category:"nature"},":cd:":{uc_base:"1f4bf",uc_full:"1f4bf",shortnames:[],category:"objects"},":chair:":{uc_base:"1fa91",uc_full:"1fa91",shortnames:[],category:"objects"},":champagne:":{uc_base:"1f37e",uc_full:"1f37e",shortnames:[":bottle_with_popping_cork:"],category:"food"},":champagne_glass:":{uc_base:"1f942",uc_full:"1f942",shortnames:[":clinking_glass:"],category:"food"},":chart:":{uc_base:"1f4b9",uc_full:"1f4b9",shortnames:[],category:"symbols"},":chart_with_downwards_trend:":{uc_base:"1f4c9",uc_full:"1f4c9",shortnames:[],category:"objects"},":chart_with_upwards_trend:":{uc_base:"1f4c8",uc_full:"1f4c8",shortnames:[],category:"objects"},":checkered_flag:":{uc_base:"1f3c1",uc_full:"1f3c1",shortnames:[],category:"flags"},":cheese:":{uc_base:"1f9c0",uc_full:"1f9c0",shortnames:[":cheese_wedge:"],category:"food"},":cherries:":{uc_base:"1f352",uc_full:"1f352",shortnames:[],category:"food"},":cherry_blossom:":{uc_base:"1f338",uc_full:"1f338",shortnames:[],category:"nature"},":chestnut:":{uc_base:"1f330",uc_full:"1f330",shortnames:[],category:"food"},":chicken:":{uc_base:"1f414",uc_full:"1f414",shortnames:[],category:"nature"},":child:":{uc_base:"1f9d2",uc_full:"1f9d2",shortnames:[],category:"people"},":children_crossing:":{uc_base:"1f6b8",uc_full:"1f6b8",shortnames:[],category:"symbols"},":chipmunk:":{uc_base:"1f43f",uc_full:"1f43f-fe0f",shortnames:[],category:"nature"},":chocolate_bar:":{uc_base:"1f36b",uc_full:"1f36b",shortnames:[],category:"food"},":chopsticks:":{uc_base:"1f962",uc_full:"1f962",shortnames:[],category:"food"},":christmas_tree:":{uc_base:"1f384",uc_full:"1f384",shortnames:[],category:"nature"},":cinema:":{uc_base:"1f3a6",uc_full:"1f3a6",shortnames:[],category:"symbols"},":circus_tent:":{uc_base:"1f3aa",uc_full:"1f3aa",shortnames:[],category:"activity"},":city_dusk:":{uc_base:"1f306",uc_full:"1f306",shortnames:[],category:"travel"},":city_sunset:":{uc_base:"1f307",uc_full:"1f307",shortnames:[":city_sunrise:"],category:"travel"},":cityscape:":{uc_base:"1f3d9",uc_full:"1f3d9-fe0f",shortnames:[],category:"travel"},":cl:":{uc_base:"1f191",uc_full:"1f191",shortnames:[],category:"symbols"},":clap:":{uc_base:"1f44f",uc_full:"1f44f",shortnames:[],category:"people"},":clapper:":{uc_base:"1f3ac",uc_full:"1f3ac",shortnames:[],category:"activity"},":classical_building:":{uc_base:"1f3db",uc_full:"1f3db-fe0f",shortnames:[],category:"travel"},":clipboard:":{uc_base:"1f4cb",uc_full:"1f4cb",shortnames:[],category:"objects"},":clock1030:":{uc_base:"1f565",uc_full:"1f565",shortnames:[],category:"symbols"},":clock10:":{uc_base:"1f559",uc_full:"1f559",shortnames:[],category:"symbols"},":clock1130:":{uc_base:"1f566",uc_full:"1f566",shortnames:[],category:"symbols"},":clock11:":{uc_base:"1f55a",uc_full:"1f55a",shortnames:[],category:"symbols"},":clock1230:":{uc_base:"1f567",uc_full:"1f567",shortnames:[],category:"symbols"},":clock12:":{uc_base:"1f55b",uc_full:"1f55b",shortnames:[],category:"symbols"},":clock130:":{uc_base:"1f55c",uc_full:"1f55c",shortnames:[],category:"symbols"},":clock1:":{uc_base:"1f550",uc_full:"1f550",shortnames:[],category:"symbols"},":clock230:":{uc_base:"1f55d",uc_full:"1f55d",shortnames:[],category:"symbols"},":clock2:":{uc_base:"1f551",uc_full:"1f551",shortnames:[],category:"symbols"},":clock330:":{uc_base:"1f55e",uc_full:"1f55e",shortnames:[],category:"symbols"},":clock3:":{uc_base:"1f552",uc_full:"1f552",shortnames:[],category:"symbols"},":clock430:":{uc_base:"1f55f",uc_full:"1f55f",shortnames:[],category:"symbols"},":clock4:":{uc_base:"1f553",uc_full:"1f553",shortnames:[],category:"symbols"},":clock530:":{uc_base:"1f560",uc_full:"1f560",shortnames:[],category:"symbols"},":clock5:":{uc_base:"1f554",uc_full:"1f554",shortnames:[],category:"symbols"},":clock630:":{uc_base:"1f561",uc_full:"1f561",shortnames:[],category:"symbols"},":clock6:":{uc_base:"1f555",uc_full:"1f555",shortnames:[],category:"symbols"},":clock730:":{uc_base:"1f562",uc_full:"1f562",shortnames:[],category:"symbols"},":clock7:":{uc_base:"1f556",uc_full:"1f556",shortnames:[],category:"symbols"},":clock830:":{uc_base:"1f563",uc_full:"1f563",shortnames:[],category:"symbols"},":clock8:":{uc_base:"1f557",uc_full:"1f557",shortnames:[],category:"symbols"},":clock930:":{uc_base:"1f564",uc_full:"1f564",shortnames:[],category:"symbols"},":clock9:":{uc_base:"1f558",uc_full:"1f558",shortnames:[],category:"symbols"},":clock:":{uc_base:"1f570",uc_full:"1f570-fe0f",shortnames:[":mantlepiece_clock:"],category:"objects"},":closed_book:":{uc_base:"1f4d5",uc_full:"1f4d5",shortnames:[],category:"objects"},":closed_lock_with_key:":{uc_base:"1f510",uc_full:"1f510",shortnames:[],category:"objects"},":closed_umbrella:":{uc_base:"1f302",uc_full:"1f302",shortnames:[],category:"people"},":cloud_lightning:":{uc_base:"1f329",uc_full:"1f329-fe0f",shortnames:[":cloud_with_lightning:"],category:"nature"},":cloud_rain:":{uc_base:"1f327",uc_full:"1f327-fe0f",shortnames:[":cloud_with_rain:"],category:"nature"},":cloud_snow:":{uc_base:"1f328",uc_full:"1f328-fe0f",shortnames:[":cloud_with_snow:"],category:"nature"},":cloud_tornado:":{uc_base:"1f32a",uc_full:"1f32a-fe0f",shortnames:[":cloud_with_tornado:"],category:"nature"},":clown:":{uc_base:"1f921",uc_full:"1f921",shortnames:[":clown_face:"],category:"people"},":coat:":{uc_base:"1f9e5",uc_full:"1f9e5",shortnames:[],category:"people"},":cockroach:":{uc_base:"1fab3",uc_full:"1fab3",shortnames:[],category:"nature"},":cocktail:":{uc_base:"1f378",uc_full:"1f378",shortnames:[],category:"food"},":coconut:":{uc_base:"1f965",uc_full:"1f965",shortnames:[],category:"food"},":coin:":{uc_base:"1fa99",uc_full:"1fa99",shortnames:[],category:"objects"},":cold_face:":{uc_base:"1f976",uc_full:"1f976",shortnames:[],category:"people"},":cold_sweat:":{uc_base:"1f630",uc_full:"1f630",shortnames:[],category:"people"},":compass:":{uc_base:"1f9ed",uc_full:"1f9ed",shortnames:[],category:"objects"},":compression:":{uc_base:"1f5dc",uc_full:"1f5dc-fe0f",shortnames:[],category:"objects"},":computer:":{uc_base:"1f4bb",uc_full:"1f4bb",shortnames:[],category:"objects"},":confetti_ball:":{uc_base:"1f38a",uc_full:"1f38a",shortnames:[],category:"objects"},":confounded:":{uc_base:"1f616",uc_full:"1f616",shortnames:[],category:"people"},":confused:":{uc_base:"1f615",uc_full:"1f615",shortnames:[],category:"people"},":construction:":{uc_base:"1f6a7",uc_full:"1f6a7",shortnames:[],category:"travel"},":construction_site:":{uc_base:"1f3d7",uc_full:"1f3d7-fe0f",shortnames:[":building_construction:"],category:"travel"},":construction_worker:":{uc_base:"1f477",uc_full:"1f477",shortnames:[],category:"people"},":control_knobs:":{uc_base:"1f39b",uc_full:"1f39b-fe0f",shortnames:[],category:"objects"},":convenience_store:":{uc_base:"1f3ea",uc_full:"1f3ea",shortnames:[],category:"travel"},":cookie:":{uc_base:"1f36a",uc_full:"1f36a",shortnames:[],category:"food"},":cooking:":{uc_base:"1f373",uc_full:"1f373",shortnames:[],category:"food"},":cool:":{uc_base:"1f192",uc_full:"1f192",shortnames:[],category:"symbols"},":corn:":{uc_base:"1f33d",uc_full:"1f33d",shortnames:[],category:"food"},":couch:":{uc_base:"1f6cb",uc_full:"1f6cb-fe0f",shortnames:[":couch_and_lamp:"],category:"objects"},":couple:":{uc_base:"1f46b",uc_full:"1f46b",shortnames:[],category:"people"},":couple_with_heart:":{uc_base:"1f491",uc_full:"1f491",shortnames:[],category:"people"},":couplekiss:":{uc_base:"1f48f",uc_full:"1f48f",shortnames:[],category:"people"},":cow2:":{uc_base:"1f404",uc_full:"1f404",shortnames:[],category:"nature"},":cow:":{uc_base:"1f42e",uc_full:"1f42e",shortnames:[],category:"nature"},":cowboy:":{uc_base:"1f920",uc_full:"1f920",shortnames:[":face_with_cowboy_hat:"],category:"people"},":crab:":{uc_base:"1f980",uc_full:"1f980",shortnames:[],category:"nature"},":crayon:":{uc_base:"1f58d",uc_full:"1f58d-fe0f",shortnames:[":lower_left_crayon:"],category:"objects"},":credit_card:":{uc_base:"1f4b3",uc_full:"1f4b3",shortnames:[],category:"objects"},":crescent_moon:":{uc_base:"1f319",uc_full:"1f319",shortnames:[],category:"nature"},":cricket:":{uc_base:"1f997",uc_full:"1f997",shortnames:[],category:"nature"},":cricket_game:":{uc_base:"1f3cf",uc_full:"1f3cf",shortnames:[":cricket_bat_ball:"],category:"activity"},":crocodile:":{uc_base:"1f40a",uc_full:"1f40a",shortnames:[],category:"nature"},":croissant:":{uc_base:"1f950",uc_full:"1f950",shortnames:[],category:"food"},":crossed_flags:":{uc_base:"1f38c",uc_full:"1f38c",shortnames:[],category:"flags"},":crown:":{uc_base:"1f451",uc_full:"1f451",shortnames:[],category:"people"},":cruise_ship:":{uc_base:"1f6f3",uc_full:"1f6f3-fe0f",shortnames:[":passenger_ship:"],category:"travel"},":cry:":{uc_base:"1f622",uc_full:"1f622",shortnames:[],category:"people"},":crying_cat_face:":{uc_base:"1f63f",uc_full:"1f63f",shortnames:[],category:"people"},":crystal_ball:":{uc_base:"1f52e",uc_full:"1f52e",shortnames:[],category:"objects"},":cucumber:":{uc_base:"1f952",uc_full:"1f952",shortnames:[],category:"food"},":cup_with_straw:":{uc_base:"1f964",uc_full:"1f964",shortnames:[],category:"food"},":cupcake:":{uc_base:"1f9c1",uc_full:"1f9c1",shortnames:[],category:"food"},":cupid:":{uc_base:"1f498",uc_full:"1f498",shortnames:[],category:"symbols"},":curling_stone:":{uc_base:"1f94c",uc_full:"1f94c",shortnames:[],category:"activity"},":curly_haired:":{uc_base:"1f9b1",uc_full:"1f9b1",shortnames:[],category:"people"},":currency_exchange:":{uc_base:"1f4b1",uc_full:"1f4b1",shortnames:[],category:"symbols"},":curry:":{uc_base:"1f35b",uc_full:"1f35b",shortnames:[],category:"food"},":custard:":{uc_base:"1f36e",uc_full:"1f36e",shortnames:[":pudding:",":flan:"],category:"food"},":customs:":{uc_base:"1f6c3",uc_full:"1f6c3",shortnames:[],category:"symbols"},":cut_of_meat:":{uc_base:"1f969",uc_full:"1f969",shortnames:[],category:"food"},":cyclone:":{uc_base:"1f300",uc_full:"1f300",shortnames:[],category:"symbols"},":dagger:":{uc_base:"1f5e1",uc_full:"1f5e1-fe0f",shortnames:[":dagger_knife:"],category:"objects"},":dancer:":{uc_base:"1f483",uc_full:"1f483",shortnames:[],category:"people"},":dango:":{uc_base:"1f361",uc_full:"1f361",shortnames:[],category:"food"},":dark_sunglasses:":{uc_base:"1f576",uc_full:"1f576-fe0f",shortnames:[],category:"people"},":dart:":{uc_base:"1f3af",uc_full:"1f3af",shortnames:[],category:"activity"},":dash:":{uc_base:"1f4a8",uc_full:"1f4a8",shortnames:[],category:"nature"},":date:":{uc_base:"1f4c5",uc_full:"1f4c5",shortnames:[],category:"objects"},":deaf_person:":{uc_base:"1f9cf",uc_full:"1f9cf",shortnames:[],category:"people"},":deciduous_tree:":{uc_base:"1f333",uc_full:"1f333",shortnames:[],category:"nature"},":deer:":{uc_base:"1f98c",uc_full:"1f98c",shortnames:[],category:"nature"},":department_store:":{uc_base:"1f3ec",uc_full:"1f3ec",shortnames:[],category:"travel"},":desert:":{uc_base:"1f3dc",uc_full:"1f3dc-fe0f",shortnames:[],category:"travel"},":desktop:":{uc_base:"1f5a5",uc_full:"1f5a5-fe0f",shortnames:[":desktop_computer:"],category:"objects"},":detective:":{uc_base:"1f575",uc_full:"1f575",shortnames:[":spy:",":sleuth_or_spy:"],category:"people"},":diamond_shape_with_a_dot_inside:":{uc_base:"1f4a0",uc_full:"1f4a0",shortnames:[],category:"symbols"},":disappointed:":{uc_base:"1f61e",uc_full:"1f61e",shortnames:[],category:"people"},":disappointed_relieved:":{uc_base:"1f625",uc_full:"1f625",shortnames:[],category:"people"},":disguised_face:":{uc_base:"1f978",uc_full:"1f978",shortnames:[],category:"people"},":dividers:":{uc_base:"1f5c2",uc_full:"1f5c2-fe0f",shortnames:[":card_index_dividers:"],category:"objects"},":diving_mask:":{uc_base:"1f93f",uc_full:"1f93f",shortnames:[],category:"activity"},":diya_lamp:":{uc_base:"1fa94",uc_full:"1fa94",shortnames:[],category:"objects"},":dizzy:":{uc_base:"1f4ab",uc_full:"1f4ab",shortnames:[],category:"nature"},":dizzy_face:":{uc_base:"1f635",uc_full:"1f635",shortnames:[],category:"people"},":dna:":{uc_base:"1f9ec",uc_full:"1f9ec",shortnames:[],category:"objects"},":do_not_litter:":{uc_base:"1f6af",uc_full:"1f6af",shortnames:[],category:"symbols"},":dodo:":{uc_base:"1f9a4",uc_full:"1f9a4",shortnames:[],category:"nature"},":dog2:":{uc_base:"1f415",uc_full:"1f415",shortnames:[],category:"nature"},":dog:":{uc_base:"1f436",uc_full:"1f436",shortnames:[],category:"nature"},":dollar:":{uc_base:"1f4b5",uc_full:"1f4b5",shortnames:[],category:"objects"},":dolls:":{uc_base:"1f38e",uc_full:"1f38e",shortnames:[],category:"objects"},":dolphin:":{uc_base:"1f42c",uc_full:"1f42c",shortnames:[],category:"nature"},":door:":{uc_base:"1f6aa",uc_full:"1f6aa",shortnames:[],category:"objects"},":doughnut:":{uc_base:"1f369",uc_full:"1f369",shortnames:[],category:"food"},":dove:":{uc_base:"1f54a",uc_full:"1f54a-fe0f",shortnames:[":dove_of_peace:"],category:"nature"},":dragon:":{uc_base:"1f409",uc_full:"1f409",shortnames:[],category:"nature"},":dragon_face:":{uc_base:"1f432",uc_full:"1f432",shortnames:[],category:"nature"},":dress:":{uc_base:"1f457",uc_full:"1f457",shortnames:[],category:"people"},":dromedary_camel:":{uc_base:"1f42a",uc_full:"1f42a",shortnames:[],category:"nature"},":drooling_face:":{uc_base:"1f924",uc_full:"1f924",shortnames:[":drool:"],category:"people"},":drop_of_blood:":{uc_base:"1fa78",uc_full:"1fa78",shortnames:[],category:"objects"},":droplet:":{uc_base:"1f4a7",uc_full:"1f4a7",shortnames:[],category:"nature"},":drum:":{uc_base:"1f941",uc_full:"1f941",shortnames:[":drum_with_drumsticks:"],category:"activity"},":duck:":{uc_base:"1f986",uc_full:"1f986",shortnames:[],category:"nature"},":dumpling:":{uc_base:"1f95f",uc_full:"1f95f",shortnames:[],category:"food"},":dvd:":{uc_base:"1f4c0",uc_full:"1f4c0",shortnames:[],category:"objects"},":e-mail:":{uc_base:"1f4e7",uc_full:"1f4e7",shortnames:[":email:"],category:"objects"},":eagle:":{uc_base:"1f985",uc_full:"1f985",shortnames:[],category:"nature"},":ear:":{uc_base:"1f442",uc_full:"1f442",shortnames:[],category:"people"},":ear_of_rice:":{uc_base:"1f33e",uc_full:"1f33e",shortnames:[],category:"nature"},":ear_with_hearing_aid:":{uc_base:"1f9bb",uc_full:"1f9bb",shortnames:[],category:"people"},":earth_africa:":{uc_base:"1f30d",uc_full:"1f30d",shortnames:[],category:"nature"},":earth_americas:":{uc_base:"1f30e",uc_full:"1f30e",shortnames:[],category:"nature"},":earth_asia:":{uc_base:"1f30f",uc_full:"1f30f",shortnames:[],category:"nature"},":egg:":{uc_base:"1f95a",uc_full:"1f95a",shortnames:[],category:"food"},":eggplant:":{uc_base:"1f346",uc_full:"1f346",shortnames:[],category:"food"},":electric_plug:":{uc_base:"1f50c",uc_full:"1f50c",shortnames:[],category:"objects"},":elephant:":{uc_base:"1f418",uc_full:"1f418",shortnames:[],category:"nature"},":elevator:":{uc_base:"1f6d7",uc_full:"1f6d7",shortnames:[],category:"symbols"},":elf:":{uc_base:"1f9dd",uc_full:"1f9dd",shortnames:[],category:"people"},":end:":{uc_base:"1f51a",uc_full:"1f51a",shortnames:[],category:"symbols"},":envelope_with_arrow:":{uc_base:"1f4e9",uc_full:"1f4e9",shortnames:[],category:"objects"},":euro:":{uc_base:"1f4b6",uc_full:"1f4b6",shortnames:[],category:"objects"},":european_castle:":{uc_base:"1f3f0",uc_full:"1f3f0",shortnames:[],category:"travel"},":european_post_office:":{uc_base:"1f3e4",uc_full:"1f3e4",shortnames:[],category:"travel"},":evergreen_tree:":{uc_base:"1f332",uc_full:"1f332",shortnames:[],category:"nature"},":exploding_head:":{uc_base:"1f92f",uc_full:"1f92f",shortnames:[],category:"people"},":expressionless:":{uc_base:"1f611",uc_full:"1f611",shortnames:[],category:"people"},":eye:":{uc_base:"1f441",uc_full:"1f441-fe0f",shortnames:[],category:"people"},":eyeglasses:":{uc_base:"1f453",uc_full:"1f453",shortnames:[],category:"people"},":eyes:":{uc_base:"1f440",uc_full:"1f440",shortnames:[],category:"people"},":face_vomiting:":{uc_base:"1f92e",uc_full:"1f92e",shortnames:[],category:"people"},":face_with_hand_over_mouth:":{uc_base:"1f92d",uc_full:"1f92d",shortnames:[],category:"people"},":face_with_monocle:":{uc_base:"1f9d0",uc_full:"1f9d0",shortnames:[],category:"people"},":face_with_raised_eyebrow:":{uc_base:"1f928",uc_full:"1f928",shortnames:[],category:"people"},":face_with_symbols_over_mouth:":{uc_base:"1f92c",uc_full:"1f92c",shortnames:[],category:"people"},":factory:":{uc_base:"1f3ed",uc_full:"1f3ed",shortnames:[],category:"travel"},":fairy:":{uc_base:"1f9da",uc_full:"1f9da",shortnames:[],category:"people"},":falafel:":{uc_base:"1f9c6",uc_full:"1f9c6",shortnames:[],category:"food"},":fallen_leaf:":{uc_base:"1f342",uc_full:"1f342",shortnames:[],category:"nature"},":family:":{uc_base:"1f46a",uc_full:"1f46a",shortnames:[],category:"people"},":fax:":{uc_base:"1f4e0",uc_full:"1f4e0",shortnames:[],category:"objects"},":fearful:":{uc_base:"1f628",uc_full:"1f628",shortnames:[],category:"people"},":feather:":{uc_base:"1fab6",uc_full:"1fab6",shortnames:[],category:"nature"},":feet:":{uc_base:"1f43e",uc_full:"1f43e",shortnames:[":paw_prints:"],category:"nature"},":ferris_wheel:":{uc_base:"1f3a1",uc_full:"1f3a1",shortnames:[],category:"travel"},":field_hockey:":{uc_base:"1f3d1",uc_full:"1f3d1",shortnames:[],category:"activity"},":file_cabinet:":{uc_base:"1f5c4",uc_full:"1f5c4-fe0f",shortnames:[],category:"objects"},":file_folder:":{uc_base:"1f4c1",uc_full:"1f4c1",shortnames:[],category:"objects"},":film_frames:":{uc_base:"1f39e",uc_full:"1f39e-fe0f",shortnames:[],category:"objects"},":fingers_crossed:":{uc_base:"1f91e",uc_full:"1f91e",shortnames:[":hand_with_index_and_middle_finger_crossed:"],category:"people"},":fire:":{uc_base:"1f525",uc_full:"1f525",shortnames:[":flame:"],category:"nature"},":fire_engine:":{uc_base:"1f692",uc_full:"1f692",shortnames:[],category:"travel"},":fire_extinguisher:":{uc_base:"1f9ef",uc_full:"1f9ef",shortnames:[],category:"objects"},":firecracker:":{uc_base:"1f9e8",uc_full:"1f9e8",shortnames:[],category:"objects"},":fireworks:":{uc_base:"1f386",uc_full:"1f386",shortnames:[],category:"travel"},":first_place:":{uc_base:"1f947",uc_full:"1f947",shortnames:[":first_place_medal:"],category:"activity"},":first_quarter_moon:":{uc_base:"1f313",uc_full:"1f313",shortnames:[],category:"nature"},":first_quarter_moon_with_face:":{uc_base:"1f31b",uc_full:"1f31b",shortnames:[],category:"nature"},":fish:":{uc_base:"1f41f",uc_full:"1f41f",shortnames:[],category:"nature"},":fish_cake:":{uc_base:"1f365",uc_full:"1f365",shortnames:[],category:"food"},":fishing_pole_and_fish:":{uc_base:"1f3a3",uc_full:"1f3a3",shortnames:[],category:"activity"},":flag_black:":{uc_base:"1f3f4",uc_full:"1f3f4",shortnames:[":waving_black_flag:"],category:"flags"},":flag_white:":{uc_base:"1f3f3",uc_full:"1f3f3-fe0f",shortnames:[":waving_white_flag:"],category:"flags"},":flags:":{uc_base:"1f38f",uc_full:"1f38f",shortnames:[],category:"objects"},":flamingo:":{uc_base:"1f9a9",uc_full:"1f9a9",shortnames:[],category:"nature"},":flashlight:":{uc_base:"1f526",uc_full:"1f526",shortnames:[],category:"objects"},":flatbread:":{uc_base:"1fad3",uc_full:"1fad3",shortnames:[],category:"food"},":floppy_disk:":{uc_base:"1f4be",uc_full:"1f4be",shortnames:[],category:"objects"},":flower_playing_cards:":{uc_base:"1f3b4",uc_full:"1f3b4",shortnames:[],category:"symbols"},":flushed:":{uc_base:"1f633",uc_full:"1f633",shortnames:[],category:"people"},":fly:":{uc_base:"1fab0",uc_full:"1fab0",shortnames:[],category:"nature"},":flying_disc:":{uc_base:"1f94f",uc_full:"1f94f",shortnames:[],category:"activity"},":flying_saucer:":{uc_base:"1f6f8",uc_full:"1f6f8",shortnames:[],category:"travel"},":fog:":{uc_base:"1f32b",uc_full:"1f32b-fe0f",shortnames:[],category:"nature"},":foggy:":{uc_base:"1f301",uc_full:"1f301",shortnames:[],category:"travel"},":fondue:":{uc_base:"1fad5",uc_full:"1fad5",shortnames:[],category:"food"},":foot:":{uc_base:"1f9b6",uc_full:"1f9b6",shortnames:[],category:"people"},":football:":{uc_base:"1f3c8",uc_full:"1f3c8",shortnames:[],category:"activity"},":footprints:":{uc_base:"1f463",uc_full:"1f463",shortnames:[],category:"people"},":fork_and_knife:":{uc_base:"1f374",uc_full:"1f374",shortnames:[],category:"food"},":fork_knife_plate:":{uc_base:"1f37d",uc_full:"1f37d-fe0f",shortnames:[":fork_and_knife_with_plate:"],category:"food"},":fortune_cookie:":{uc_base:"1f960",uc_full:"1f960",shortnames:[],category:"food"},":four_leaf_clover:":{uc_base:"1f340",uc_full:"1f340",shortnames:[],category:"nature"},":fox:":{uc_base:"1f98a",uc_full:"1f98a",shortnames:[":fox_face:"],category:"nature"},":frame_photo:":{uc_base:"1f5bc",uc_full:"1f5bc-fe0f",shortnames:[":frame_with_picture:"],category:"objects"},":free:":{uc_base:"1f193",uc_full:"1f193",shortnames:[],category:"symbols"},":french_bread:":{uc_base:"1f956",uc_full:"1f956",shortnames:[":baguette_bread:"],category:"food"},":fried_shrimp:":{uc_base:"1f364",uc_full:"1f364",shortnames:[],category:"food"},":fries:":{uc_base:"1f35f",uc_full:"1f35f",shortnames:[],category:"food"},":frog:":{uc_base:"1f438",uc_full:"1f438",shortnames:[],category:"nature"},":frowning:":{uc_base:"1f626",uc_full:"1f626",shortnames:[],category:"people"},":full_moon:":{uc_base:"1f315",uc_full:"1f315",shortnames:[],category:"nature"},":full_moon_with_face:":{uc_base:"1f31d",uc_full:"1f31d",shortnames:[],category:"nature"},":game_die:":{uc_base:"1f3b2",uc_full:"1f3b2",shortnames:[],category:"activity"},":garlic:":{uc_base:"1f9c4",uc_full:"1f9c4",shortnames:[],category:"food"},":gem:":{uc_base:"1f48e",uc_full:"1f48e",shortnames:[],category:"objects"},":genie:":{uc_base:"1f9de",uc_full:"1f9de",shortnames:[],category:"people"},":ghost:":{uc_base:"1f47b",uc_full:"1f47b",shortnames:[],category:"people"},":gift:":{uc_base:"1f381",uc_full:"1f381",shortnames:[],category:"objects"},":gift_heart:":{uc_base:"1f49d",uc_full:"1f49d",shortnames:[],category:"symbols"},":giraffe:":{uc_base:"1f992",uc_full:"1f992",shortnames:[],category:"nature"},":girl:":{uc_base:"1f467",uc_full:"1f467",shortnames:[],category:"people"},":globe_with_meridians:":{uc_base:"1f310",uc_full:"1f310",shortnames:[],category:"symbols"},":gloves:":{uc_base:"1f9e4",uc_full:"1f9e4",shortnames:[],category:"people"},":goal:":{uc_base:"1f945",uc_full:"1f945",shortnames:[":goal_net:"],category:"activity"},":goat:":{uc_base:"1f410",uc_full:"1f410",shortnames:[],category:"nature"},":goggles:":{uc_base:"1f97d",uc_full:"1f97d",shortnames:[],category:"people"},":gorilla:":{uc_base:"1f98d",uc_full:"1f98d",shortnames:[],category:"nature"},":grapes:":{uc_base:"1f347",uc_full:"1f347",shortnames:[],category:"food"},":green_apple:":{uc_base:"1f34f",uc_full:"1f34f",shortnames:[],category:"food"},":green_book:":{uc_base:"1f4d7",uc_full:"1f4d7",shortnames:[],category:"objects"},":green_circle:":{uc_base:"1f7e2",uc_full:"1f7e2",shortnames:[],category:"symbols"},":green_heart:":{uc_base:"1f49a",uc_full:"1f49a",shortnames:[],category:"symbols"},":green_square:":{uc_base:"1f7e9",uc_full:"1f7e9",shortnames:[],category:"symbols"},":grimacing:":{uc_base:"1f62c",uc_full:"1f62c",shortnames:[],category:"people"},":grin:":{uc_base:"1f601",uc_full:"1f601",shortnames:[],category:"people"},":grinning:":{uc_base:"1f600",uc_full:"1f600",shortnames:[],category:"people"},":guard:":{uc_base:"1f482",uc_full:"1f482",shortnames:[":guardsman:"],category:"people"},":guide_dog:":{uc_base:"1f9ae",uc_full:"1f9ae",shortnames:[],category:"nature"},":guitar:":{uc_base:"1f3b8",uc_full:"1f3b8",shortnames:[],category:"activity"},":gun:":{uc_base:"1f52b",uc_full:"1f52b",shortnames:[],category:"objects"},":hamburger:":{uc_base:"1f354",uc_full:"1f354",shortnames:[],category:"food"},":hammer:":{uc_base:"1f528",uc_full:"1f528",shortnames:[],category:"objects"},":hamster:":{uc_base:"1f439",uc_full:"1f439",shortnames:[],category:"nature"},":hand_splayed:":{uc_base:"1f590",uc_full:"1f590",shortnames:[":raised_hand_with_fingers_splayed:"],category:"people"},":handbag:":{uc_base:"1f45c",uc_full:"1f45c",shortnames:[],category:"people"},":handshake:":{uc_base:"1f91d",uc_full:"1f91d",shortnames:[":shaking_hands:"],category:"people"},":hatched_chick:":{uc_base:"1f425",uc_full:"1f425",shortnames:[],category:"nature"},":hatching_chick:":{uc_base:"1f423",uc_full:"1f423",shortnames:[],category:"nature"},":head_bandage:":{uc_base:"1f915",uc_full:"1f915",shortnames:[":face_with_head_bandage:"],category:"people"},":headphones:":{uc_base:"1f3a7",uc_full:"1f3a7",shortnames:[],category:"activity"},":headstone:":{uc_base:"1faa6",uc_full:"1faa6",shortnames:[],category:"objects"},":hear_no_evil:":{uc_base:"1f649",uc_full:"1f649",shortnames:[],category:"nature"},":heart_decoration:":{uc_base:"1f49f",uc_full:"1f49f",shortnames:[],category:"symbols"},":heart_eyes:":{uc_base:"1f60d",uc_full:"1f60d",shortnames:[],category:"people"},":heart_eyes_cat:":{uc_base:"1f63b",uc_full:"1f63b",shortnames:[],category:"people"},":heartbeat:":{uc_base:"1f493",uc_full:"1f493",shortnames:[],category:"symbols"},":heartpulse:":{uc_base:"1f497",uc_full:"1f497",shortnames:[],category:"symbols"},":heavy_dollar_sign:":{uc_base:"1f4b2",uc_full:"1f4b2",shortnames:[],category:"symbols"},":hedgehog:":{uc_base:"1f994",uc_full:"1f994",shortnames:[],category:"nature"},":helicopter:":{uc_base:"1f681",uc_full:"1f681",shortnames:[],category:"travel"},":herb:":{uc_base:"1f33f",uc_full:"1f33f",shortnames:[],category:"nature"},":hibiscus:":{uc_base:"1f33a",uc_full:"1f33a",shortnames:[],category:"nature"},":high_brightness:":{uc_base:"1f506",uc_full:"1f506",shortnames:[],category:"symbols"},":high_heel:":{uc_base:"1f460",uc_full:"1f460",shortnames:[],category:"people"},":hiking_boot:":{uc_base:"1f97e",uc_full:"1f97e",shortnames:[],category:"people"},":hindu_temple:":{uc_base:"1f6d5",uc_full:"1f6d5",shortnames:[],category:"travel"},":hippopotamus:":{uc_base:"1f99b",uc_full:"1f99b",shortnames:[],category:"nature"},":hockey:":{uc_base:"1f3d2",uc_full:"1f3d2",shortnames:[],category:"activity"},":hole:":{uc_base:"1f573",uc_full:"1f573-fe0f",shortnames:[],category:"objects"},":homes:":{uc_base:"1f3d8",uc_full:"1f3d8-fe0f",shortnames:[":house_buildings:"],category:"travel"},":honey_pot:":{uc_base:"1f36f",uc_full:"1f36f",shortnames:[],category:"food"},":hook:":{uc_base:"1fa9d",uc_full:"1fa9d",shortnames:[],category:"objects"},":horse:":{uc_base:"1f434",uc_full:"1f434",shortnames:[],category:"nature"},":horse_racing:":{uc_base:"1f3c7",uc_full:"1f3c7",shortnames:[],category:"activity"},":hospital:":{uc_base:"1f3e5",uc_full:"1f3e5",shortnames:[],category:"travel"},":hot_face:":{uc_base:"1f975",uc_full:"1f975",shortnames:[],category:"people"},":hot_pepper:":{uc_base:"1f336",uc_full:"1f336-fe0f",shortnames:[],category:"food"},":hotdog:":{uc_base:"1f32d",uc_full:"1f32d",shortnames:[":hot_dog:"],category:"food"},":hotel:":{uc_base:"1f3e8",uc_full:"1f3e8",shortnames:[],category:"travel"},":house:":{uc_base:"1f3e0",uc_full:"1f3e0",shortnames:[],category:"travel"},":house_abandoned:":{uc_base:"1f3da",uc_full:"1f3da-fe0f",shortnames:[":derelict_house_building:"],category:"travel"},":house_with_garden:":{uc_base:"1f3e1",uc_full:"1f3e1",shortnames:[],category:"travel"},":hugging:":{uc_base:"1f917",uc_full:"1f917",shortnames:[":hugging_face:"],category:"people"},":hushed:":{uc_base:"1f62f",uc_full:"1f62f",shortnames:[],category:"people"},":hut:":{uc_base:"1f6d6",uc_full:"1f6d6",shortnames:[],category:"travel"},":ice_cream:":{uc_base:"1f368",uc_full:"1f368",shortnames:[],category:"food"},":ice_cube:":{uc_base:"1f9ca",uc_full:"1f9ca",shortnames:[],category:"food"},":icecream:":{uc_base:"1f366",uc_full:"1f366",shortnames:[],category:"food"},":id:":{uc_base:"1f194",uc_full:"1f194",shortnames:[],category:"symbols"},":ideograph_advantage:":{uc_base:"1f250",uc_full:"1f250",shortnames:[],category:"symbols"},":imp:":{uc_base:"1f47f",uc_full:"1f47f",shortnames:[],category:"people"},":inbox_tray:":{uc_base:"1f4e5",uc_full:"1f4e5",shortnames:[],category:"objects"},":incoming_envelope:":{uc_base:"1f4e8",uc_full:"1f4e8",shortnames:[],category:"objects"},":innocent:":{uc_base:"1f607",uc_full:"1f607",shortnames:[],category:"people"},":island:":{uc_base:"1f3dd",uc_full:"1f3dd-fe0f",shortnames:[":desert_island:"],category:"travel"},":izakaya_lantern:":{uc_base:"1f3ee",uc_full:"1f3ee",shortnames:[],category:"objects"},":jack_o_lantern:":{uc_base:"1f383",uc_full:"1f383",shortnames:[],category:"people"},":japan:":{uc_base:"1f5fe",uc_full:"1f5fe",shortnames:[],category:"travel"},":japanese_castle:":{uc_base:"1f3ef",uc_full:"1f3ef",shortnames:[],category:"travel"},":japanese_goblin:":{uc_base:"1f47a",uc_full:"1f47a",shortnames:[],category:"people"},":japanese_ogre:":{uc_base:"1f479",uc_full:"1f479",shortnames:[],category:"people"},":jeans:":{uc_base:"1f456",uc_full:"1f456",shortnames:[],category:"people"},":jigsaw:":{uc_base:"1f9e9",uc_full:"1f9e9",shortnames:[],category:"activity"},":joy:":{uc_base:"1f602",uc_full:"1f602",shortnames:[],category:"people"},":joy_cat:":{uc_base:"1f639",uc_full:"1f639",shortnames:[],category:"people"},":joystick:":{uc_base:"1f579",uc_full:"1f579-fe0f",shortnames:[],category:"objects"},":kaaba:":{uc_base:"1f54b",uc_full:"1f54b",shortnames:[],category:"travel"},":kangaroo:":{uc_base:"1f998",uc_full:"1f998",shortnames:[],category:"nature"},":key2:":{uc_base:"1f5dd",uc_full:"1f5dd-fe0f",shortnames:[":old_key:"],category:"objects"},":key:":{uc_base:"1f511",uc_full:"1f511",shortnames:[],category:"objects"},":keycap_ten:":{uc_base:"1f51f",uc_full:"1f51f",shortnames:[],category:"symbols"},":kimono:":{uc_base:"1f458",uc_full:"1f458",shortnames:[],category:"people"},":kiss:":{uc_base:"1f48b",uc_full:"1f48b",shortnames:[],category:"people"},":kissing:":{uc_base:"1f617",uc_full:"1f617",shortnames:[],category:"people"},":kissing_cat:":{uc_base:"1f63d",uc_full:"1f63d",shortnames:[],category:"people"},":kissing_closed_eyes:":{uc_base:"1f61a",uc_full:"1f61a",shortnames:[],category:"people"},":kissing_heart:":{uc_base:"1f618",uc_full:"1f618",shortnames:[],category:"people"},":kissing_smiling_eyes:":{uc_base:"1f619",uc_full:"1f619",shortnames:[],category:"people"},":kite:":{uc_base:"1fa81",uc_full:"1fa81",shortnames:[],category:"activity"},":kiwi:":{uc_base:"1f95d",uc_full:"1f95d",shortnames:[":kiwifruit:"],category:"food"},":knife:":{uc_base:"1f52a",uc_full:"1f52a",shortnames:[],category:"objects"},":knot:":{uc_base:"1faa2",uc_full:"1faa2",shortnames:[],category:"objects"},":koala:":{uc_base:"1f428",uc_full:"1f428",shortnames:[],category:"nature"},":koko:":{uc_base:"1f201",uc_full:"1f201",shortnames:[],category:"symbols"},":lab_coat:":{uc_base:"1f97c",uc_full:"1f97c",shortnames:[],category:"people"},":label:":{uc_base:"1f3f7",uc_full:"1f3f7-fe0f",shortnames:[],category:"objects"},":lacrosse:":{uc_base:"1f94d",uc_full:"1f94d",shortnames:[],category:"activity"},":ladder:":{uc_base:"1fa9c",uc_full:"1fa9c",shortnames:[],category:"objects"},":lady_beetle:":{uc_base:"1f41e",uc_full:"1f41e",shortnames:[],category:"nature"},":large_blue_diamond:":{uc_base:"1f537",uc_full:"1f537",shortnames:[],category:"symbols"},":large_orange_diamond:":{uc_base:"1f536",uc_full:"1f536",shortnames:[],category:"symbols"},":last_quarter_moon:":{uc_base:"1f317",uc_full:"1f317",shortnames:[],category:"nature"},":last_quarter_moon_with_face:":{uc_base:"1f31c",uc_full:"1f31c",shortnames:[],category:"nature"},":laughing:":{uc_base:"1f606",uc_full:"1f606",shortnames:[":satisfied:"],category:"people"},":leafy_green:":{uc_base:"1f96c",uc_full:"1f96c",shortnames:[],category:"food"},":leaves:":{uc_base:"1f343",uc_full:"1f343",shortnames:[],category:"nature"},":ledger:":{uc_base:"1f4d2",uc_full:"1f4d2",shortnames:[],category:"objects"},":left_facing_fist:":{uc_base:"1f91b",uc_full:"1f91b",shortnames:[":left_fist:"],category:"people"},":left_luggage:":{uc_base:"1f6c5",uc_full:"1f6c5",shortnames:[],category:"symbols"},":leg:":{uc_base:"1f9b5",uc_full:"1f9b5",shortnames:[],category:"people"},":lemon:":{uc_base:"1f34b",uc_full:"1f34b",shortnames:[],category:"food"},":leopard:":{uc_base:"1f406",uc_full:"1f406",shortnames:[],category:"nature"},":level_slider:":{uc_base:"1f39a",uc_full:"1f39a-fe0f",shortnames:[],category:"objects"},":levitate:":{uc_base:"1f574",uc_full:"1f574-fe0f",shortnames:[":man_in_business_suit_levitating:"],category:"people"},":light_rail:":{uc_base:"1f688",uc_full:"1f688",shortnames:[],category:"travel"},":link:":{uc_base:"1f517",uc_full:"1f517",shortnames:[],category:"objects"},":lion_face:":{uc_base:"1f981",uc_full:"1f981",shortnames:[":lion:"],category:"nature"},":lips:":{uc_base:"1f444",uc_full:"1f444",shortnames:[],category:"people"},":lipstick:":{uc_base:"1f484",uc_full:"1f484",shortnames:[],category:"people"},":lizard:":{uc_base:"1f98e",uc_full:"1f98e",shortnames:[],category:"nature"},":llama:":{uc_base:"1f999",uc_full:"1f999",shortnames:[],category:"nature"},":lobster:":{uc_base:"1f99e",uc_full:"1f99e",shortnames:[],category:"nature"},":lock:":{uc_base:"1f512",uc_full:"1f512",shortnames:[],category:"objects"},":lock_with_ink_pen:":{uc_base:"1f50f",uc_full:"1f50f",shortnames:[],category:"objects"},":lollipop:":{uc_base:"1f36d",uc_full:"1f36d",shortnames:[],category:"food"},":long_drum:":{uc_base:"1fa98",uc_full:"1fa98",shortnames:[],category:"activity"},":loud_sound:":{uc_base:"1f50a",uc_full:"1f50a",shortnames:[],category:"symbols"},":loudspeaker:":{uc_base:"1f4e2",uc_full:"1f4e2",shortnames:[],category:"symbols"},":love_hotel:":{uc_base:"1f3e9",uc_full:"1f3e9",shortnames:[],category:"travel"},":love_letter:":{uc_base:"1f48c",uc_full:"1f48c",shortnames:[],category:"objects"},":love_you_gesture:":{uc_base:"1f91f",uc_full:"1f91f",shortnames:[],category:"people"},":low_brightness:":{uc_base:"1f505",uc_full:"1f505",shortnames:[],category:"symbols"},":luggage:":{uc_base:"1f9f3",uc_full:"1f9f3",shortnames:[],category:"people"},":lungs:":{uc_base:"1fac1",uc_full:"1fac1",shortnames:[],category:"people"},":lying_face:":{uc_base:"1f925",uc_full:"1f925",shortnames:[":liar:"],category:"people"},":mag:":{uc_base:"1f50d",uc_full:"1f50d",shortnames:[],category:"objects"},":mag_right:":{uc_base:"1f50e",uc_full:"1f50e",shortnames:[],category:"objects"},":mage:":{uc_base:"1f9d9",uc_full:"1f9d9",shortnames:[],category:"people"},":magic_wand:":{uc_base:"1fa84",uc_full:"1fa84",shortnames:[],category:"objects"},":magnet:":{uc_base:"1f9f2",uc_full:"1f9f2",shortnames:[],category:"objects"},":mahjong:":{uc_base:"1f004",uc_full:"1f004",shortnames:[],category:"symbols"},":mailbox:":{uc_base:"1f4eb",uc_full:"1f4eb",shortnames:[],category:"objects"},":mailbox_closed:":{uc_base:"1f4ea",uc_full:"1f4ea",shortnames:[],category:"objects"},":mailbox_with_mail:":{uc_base:"1f4ec",uc_full:"1f4ec",shortnames:[],category:"objects"},":mailbox_with_no_mail:":{uc_base:"1f4ed",uc_full:"1f4ed",shortnames:[],category:"objects"},":mammoth:":{uc_base:"1f9a3",uc_full:"1f9a3",shortnames:[],category:"nature"},":man:":{uc_base:"1f468",uc_full:"1f468",shortnames:[],category:"people"},":man_dancing:":{uc_base:"1f57a",uc_full:"1f57a",shortnames:[":male_dancer:"],category:"people"},":man_with_chinese_cap:":{uc_base:"1f472",uc_full:"1f472",shortnames:[":man_with_gua_pi_mao:"],category:"people"},":mango:":{uc_base:"1f96d",uc_full:"1f96d",shortnames:[],category:"food"},":mans_shoe:":{uc_base:"1f45e",uc_full:"1f45e",shortnames:[],category:"people"},":manual_wheelchair:":{uc_base:"1f9bd",uc_full:"1f9bd",shortnames:[],category:"travel"},":map:":{uc_base:"1f5fa",uc_full:"1f5fa-fe0f",shortnames:[":world_map:"],category:"travel"},":maple_leaf:":{uc_base:"1f341",uc_full:"1f341",shortnames:[],category:"nature"},":martial_arts_uniform:":{uc_base:"1f94b",uc_full:"1f94b",shortnames:[":karate_uniform:"],category:"activity"},":mask:":{uc_base:"1f637",uc_full:"1f637",shortnames:[],category:"people"},":mate:":{uc_base:"1f9c9",uc_full:"1f9c9",shortnames:[],category:"food"},":meat_on_bone:":{uc_base:"1f356",uc_full:"1f356",shortnames:[],category:"food"},":mechanical_arm:":{uc_base:"1f9be",uc_full:"1f9be",shortnames:[],category:"people"},":mechanical_leg:":{uc_base:"1f9bf",uc_full:"1f9bf",shortnames:[],category:"people"},":medal:":{uc_base:"1f3c5",uc_full:"1f3c5",shortnames:[":sports_medal:"],category:"activity"},":mega:":{uc_base:"1f4e3",uc_full:"1f4e3",shortnames:[],category:"symbols"},":melon:":{uc_base:"1f348",uc_full:"1f348",shortnames:[],category:"food"},":menorah:":{uc_base:"1f54e",uc_full:"1f54e",shortnames:[],category:"symbols"},":mens:":{uc_base:"1f6b9",uc_full:"1f6b9",shortnames:[],category:"symbols"},":merperson:":{uc_base:"1f9dc",uc_full:"1f9dc",shortnames:[],category:"people"},":metal:":{uc_base:"1f918",uc_full:"1f918",shortnames:[":sign_of_the_horns:"],category:"people"},":metro:":{uc_base:"1f687",uc_full:"1f687",shortnames:[],category:"travel"},":microbe:":{uc_base:"1f9a0",uc_full:"1f9a0",shortnames:[],category:"objects"},":microphone2:":{uc_base:"1f399",uc_full:"1f399-fe0f",shortnames:[":studio_microphone:"],category:"objects"},":microphone:":{uc_base:"1f3a4",uc_full:"1f3a4",shortnames:[],category:"activity"},":microscope:":{uc_base:"1f52c",uc_full:"1f52c",shortnames:[],category:"objects"},":middle_finger:":{uc_base:"1f595",uc_full:"1f595",shortnames:[":reversed_hand_with_middle_finger_extended:"],category:"people"},":military_helmet:":{uc_base:"1fa96",uc_full:"1fa96",shortnames:[],category:"people"},":military_medal:":{uc_base:"1f396",uc_full:"1f396-fe0f",shortnames:[],category:"activity"},":milk:":{uc_base:"1f95b",uc_full:"1f95b",shortnames:[":glass_of_milk:"],category:"food"},":milky_way:":{uc_base:"1f30c",uc_full:"1f30c",shortnames:[],category:"travel"},":minibus:":{uc_base:"1f690",uc_full:"1f690",shortnames:[],category:"travel"},":minidisc:":{uc_base:"1f4bd",uc_full:"1f4bd",shortnames:[],category:"objects"},":mirror:":{uc_base:"1fa9e",uc_full:"1fa9e",shortnames:[],category:"objects"},":mobile_phone:":{uc_base:"1f4f1",uc_full:"1f4f1",shortnames:[],category:"objects"},":mobile_phone_off:":{uc_base:"1f4f4",uc_full:"1f4f4",shortnames:[],category:"symbols"},":money_mouth:":{uc_base:"1f911",uc_full:"1f911",shortnames:[":money_mouth_face:"],category:"people"},":money_with_wings:":{uc_base:"1f4b8",uc_full:"1f4b8",shortnames:[],category:"objects"},":moneybag:":{uc_base:"1f4b0",uc_full:"1f4b0",shortnames:[],category:"objects"},":monkey:":{uc_base:"1f412",uc_full:"1f412",shortnames:[],category:"nature"},":monkey_face:":{uc_base:"1f435",uc_full:"1f435",shortnames:[],category:"nature"},":monorail:":{uc_base:"1f69d",uc_full:"1f69d",shortnames:[],category:"travel"},":moon_cake:":{uc_base:"1f96e",uc_full:"1f96e",shortnames:[],category:"food"},":mortar_board:":{uc_base:"1f393",uc_full:"1f393",shortnames:[],category:"people"},":mosque:":{uc_base:"1f54c",uc_full:"1f54c",shortnames:[],category:"travel"},":mosquito:":{uc_base:"1f99f",uc_full:"1f99f",shortnames:[],category:"nature"},":motor_scooter:":{uc_base:"1f6f5",uc_full:"1f6f5",shortnames:[":motorbike:"],category:"travel"},":motorboat:":{uc_base:"1f6e5",uc_full:"1f6e5-fe0f",shortnames:[],category:"travel"},":motorcycle:":{uc_base:"1f3cd",uc_full:"1f3cd-fe0f",shortnames:[":racing_motorcycle:"],category:"travel"},":motorized_wheelchair:":{uc_base:"1f9bc",uc_full:"1f9bc",shortnames:[],category:"travel"},":motorway:":{uc_base:"1f6e3",uc_full:"1f6e3-fe0f",shortnames:[],category:"travel"},":mount_fuji:":{uc_base:"1f5fb",uc_full:"1f5fb",shortnames:[],category:"travel"},":mountain_cableway:":{uc_base:"1f6a0",uc_full:"1f6a0",shortnames:[],category:"travel"},":mountain_railway:":{uc_base:"1f69e",uc_full:"1f69e",shortnames:[],category:"travel"},":mountain_snow:":{uc_base:"1f3d4",uc_full:"1f3d4-fe0f",shortnames:[":snow_capped_mountain:"],category:"travel"},":mouse2:":{uc_base:"1f401",uc_full:"1f401",shortnames:[],category:"nature"},":mouse:":{uc_base:"1f42d",uc_full:"1f42d",shortnames:[],category:"nature"},":mouse_three_button:":{uc_base:"1f5b1",uc_full:"1f5b1-fe0f",shortnames:[":three_button_mouse:"],category:"objects"},":mouse_trap:":{uc_base:"1faa4",uc_full:"1faa4",shortnames:[],category:"objects"},":movie_camera:":{uc_base:"1f3a5",uc_full:"1f3a5",shortnames:[],category:"objects"},":moyai:":{uc_base:"1f5ff",uc_full:"1f5ff",shortnames:[],category:"travel"},":mrs_claus:":{uc_base:"1f936",uc_full:"1f936",shortnames:[":mother_christmas:"],category:"people"},":muscle:":{uc_base:"1f4aa",uc_full:"1f4aa",shortnames:[],category:"people"},":mushroom:":{uc_base:"1f344",uc_full:"1f344",shortnames:[],category:"nature"},":musical_keyboard:":{uc_base:"1f3b9",uc_full:"1f3b9",shortnames:[],category:"activity"},":musical_note:":{uc_base:"1f3b5",uc_full:"1f3b5",shortnames:[],category:"symbols"},":musical_score:":{uc_base:"1f3bc",uc_full:"1f3bc",shortnames:[],category:"activity"},":mute:":{uc_base:"1f507",uc_full:"1f507",shortnames:[],category:"symbols"},":nail_care:":{uc_base:"1f485",uc_full:"1f485",shortnames:[],category:"people"},":name_badge:":{uc_base:"1f4db",uc_full:"1f4db",shortnames:[],category:"symbols"},":nauseated_face:":{uc_base:"1f922",uc_full:"1f922",shortnames:[":sick:"],category:"people"},":nazar_amulet:":{uc_base:"1f9ff",uc_full:"1f9ff",shortnames:[],category:"objects"},":necktie:":{uc_base:"1f454",uc_full:"1f454",shortnames:[],category:"people"},":nerd:":{uc_base:"1f913",uc_full:"1f913",shortnames:[":nerd_face:"],category:"people"},":nesting_dolls:":{uc_base:"1fa86",uc_full:"1fa86",shortnames:[],category:"objects"},":neutral_face:":{uc_base:"1f610",uc_full:"1f610",shortnames:[],category:"people"},":new:":{uc_base:"1f195",uc_full:"1f195",shortnames:[],category:"symbols"},":new_moon:":{uc_base:"1f311",uc_full:"1f311",shortnames:[],category:"nature"},":new_moon_with_face:":{uc_base:"1f31a",uc_full:"1f31a",shortnames:[],category:"nature"},":newspaper2:":{uc_base:"1f5de",uc_full:"1f5de-fe0f",shortnames:[":rolled_up_newspaper:"],category:"objects"},":newspaper:":{uc_base:"1f4f0",uc_full:"1f4f0",shortnames:[],category:"objects"},":ng:":{uc_base:"1f196",uc_full:"1f196",shortnames:[],category:"symbols"},":night_with_stars:":{uc_base:"1f303",uc_full:"1f303",shortnames:[],category:"travel"},":ninja:":{uc_base:"1f977",uc_full:"1f977",shortnames:[],category:"people"},":no_bell:":{uc_base:"1f515",uc_full:"1f515",shortnames:[],category:"symbols"},":no_bicycles:":{uc_base:"1f6b3",uc_full:"1f6b3",shortnames:[],category:"symbols"},":no_entry_sign:":{uc_base:"1f6ab",uc_full:"1f6ab",shortnames:[],category:"symbols"},":no_mobile_phones:":{uc_base:"1f4f5",uc_full:"1f4f5",shortnames:[],category:"symbols"},":no_mouth:":{uc_base:"1f636",uc_full:"1f636",shortnames:[],category:"people"},":no_pedestrians:":{uc_base:"1f6b7",uc_full:"1f6b7",shortnames:[],category:"symbols"},":no_smoking:":{uc_base:"1f6ad",uc_full:"1f6ad",shortnames:[],category:"symbols"},":non-potable_water:":{uc_base:"1f6b1",uc_full:"1f6b1",shortnames:[],category:"symbols"},":nose:":{uc_base:"1f443",uc_full:"1f443",shortnames:[],category:"people"},":notebook:":{uc_base:"1f4d3",uc_full:"1f4d3",shortnames:[],category:"objects"},":notebook_with_decorative_cover:":{uc_base:"1f4d4",uc_full:"1f4d4",shortnames:[],category:"objects"},":notepad_spiral:":{uc_base:"1f5d2",uc_full:"1f5d2-fe0f",shortnames:[":spiral_note_pad:"],category:"objects"},":notes:":{uc_base:"1f3b6",uc_full:"1f3b6",shortnames:[],category:"symbols"},":nut_and_bolt:":{uc_base:"1f529",uc_full:"1f529",shortnames:[],category:"objects"},":o2:":{uc_base:"1f17e",uc_full:"1f17e-fe0f",shortnames:[],category:"symbols"},":ocean:":{uc_base:"1f30a",uc_full:"1f30a",shortnames:[],category:"nature"},":octagonal_sign:":{uc_base:"1f6d1",uc_full:"1f6d1",shortnames:[":stop_sign:"],category:"symbols"},":octopus:":{uc_base:"1f419",uc_full:"1f419",shortnames:[],category:"nature"},":oden:":{uc_base:"1f362",uc_full:"1f362",shortnames:[],category:"food"},":office:":{uc_base:"1f3e2",uc_full:"1f3e2",shortnames:[],category:"travel"},":oil:":{uc_base:"1f6e2",uc_full:"1f6e2-fe0f",shortnames:[":oil_drum:"],category:"objects"},":ok:":{uc_base:"1f197",uc_full:"1f197",shortnames:[],category:"symbols"},":ok_hand:":{uc_base:"1f44c",uc_full:"1f44c",shortnames:[],category:"people"},":older_adult:":{uc_base:"1f9d3",uc_full:"1f9d3",shortnames:[],category:"people"},":older_man:":{uc_base:"1f474",uc_full:"1f474",shortnames:[],category:"people"},":older_woman:":{uc_base:"1f475",uc_full:"1f475",shortnames:[":grandma:"],category:"people"},":olive:":{uc_base:"1fad2",uc_full:"1fad2",shortnames:[],category:"food"},":om_symbol:":{uc_base:"1f549",uc_full:"1f549-fe0f",shortnames:[],category:"symbols"},":on:":{uc_base:"1f51b",uc_full:"1f51b",shortnames:[],category:"symbols"},":oncoming_automobile:":{uc_base:"1f698",uc_full:"1f698",shortnames:[],category:"travel"},":oncoming_bus:":{uc_base:"1f68d",uc_full:"1f68d",shortnames:[],category:"travel"},":oncoming_police_car:":{uc_base:"1f694",uc_full:"1f694",shortnames:[],category:"travel"},":oncoming_taxi:":{uc_base:"1f696",uc_full:"1f696",shortnames:[],category:"travel"},":one_piece_swimsuit:":{uc_base:"1fa71",uc_full:"1fa71",shortnames:[],category:"people"},":onion:":{uc_base:"1f9c5",uc_full:"1f9c5",shortnames:[],category:"food"},":open_file_folder:":{uc_base:"1f4c2",uc_full:"1f4c2",shortnames:[],category:"objects"},":open_hands:":{uc_base:"1f450",uc_full:"1f450",shortnames:[],category:"people"},":open_mouth:":{uc_base:"1f62e",uc_full:"1f62e",shortnames:[],category:"people"},":orange_book:":{uc_base:"1f4d9",uc_full:"1f4d9",shortnames:[],category:"objects"},":orange_circle:":{uc_base:"1f7e0",uc_full:"1f7e0",shortnames:[],category:"symbols"},":orange_heart:":{uc_base:"1f9e1",uc_full:"1f9e1",shortnames:[],category:"symbols"},":orange_square:":{uc_base:"1f7e7",uc_full:"1f7e7",shortnames:[],category:"symbols"},":orangutan:":{uc_base:"1f9a7",uc_full:"1f9a7",shortnames:[],category:"nature"},":otter:":{uc_base:"1f9a6",uc_full:"1f9a6",shortnames:[],category:"nature"},":outbox_tray:":{uc_base:"1f4e4",uc_full:"1f4e4",shortnames:[],category:"objects"},":owl:":{uc_base:"1f989",uc_full:"1f989",shortnames:[],category:"nature"},":ox:":{uc_base:"1f402",uc_full:"1f402",shortnames:[],category:"nature"},":oyster:":{uc_base:"1f9aa",uc_full:"1f9aa",shortnames:[],category:"food"},":package:":{uc_base:"1f4e6",uc_full:"1f4e6",shortnames:[],category:"objects"},":page_facing_up:":{uc_base:"1f4c4",uc_full:"1f4c4",shortnames:[],category:"objects"},":page_with_curl:":{uc_base:"1f4c3",uc_full:"1f4c3",shortnames:[],category:"objects"},":pager:":{uc_base:"1f4df",uc_full:"1f4df",shortnames:[],category:"objects"},":paintbrush:":{uc_base:"1f58c",uc_full:"1f58c-fe0f",shortnames:[":lower_left_paintbrush:"],category:"objects"},":palm_tree:":{uc_base:"1f334",uc_full:"1f334",shortnames:[],category:"nature"},":palms_up_together:":{uc_base:"1f932",uc_full:"1f932",shortnames:[],category:"people"},":pancakes:":{uc_base:"1f95e",uc_full:"1f95e",shortnames:[],category:"food"},":panda_face:":{uc_base:"1f43c",uc_full:"1f43c",shortnames:[],category:"nature"},":paperclip:":{uc_base:"1f4ce",uc_full:"1f4ce",shortnames:[],category:"objects"},":paperclips:":{uc_base:"1f587",uc_full:"1f587-fe0f",shortnames:[":linked_paperclips:"],category:"objects"},":parachute:":{uc_base:"1fa82",uc_full:"1fa82",shortnames:[],category:"activity"},":park:":{uc_base:"1f3de",uc_full:"1f3de-fe0f",shortnames:[":national_park:"],category:"travel"},":parking:":{uc_base:"1f17f",uc_full:"1f17f-fe0f",shortnames:[],category:"symbols"},":parrot:":{uc_base:"1f99c",uc_full:"1f99c",shortnames:[],category:"nature"},":partying_face:":{uc_base:"1f973",uc_full:"1f973",shortnames:[],category:"people"},":passport_control:":{uc_base:"1f6c2",uc_full:"1f6c2",shortnames:[],category:"symbols"},":peach:":{uc_base:"1f351",uc_full:"1f351",shortnames:[],category:"food"},":peacock:":{uc_base:"1f99a",uc_full:"1f99a",shortnames:[],category:"nature"},":peanuts:":{uc_base:"1f95c",uc_full:"1f95c",shortnames:[":shelled_peanut:"],category:"food"},":pear:":{uc_base:"1f350",uc_full:"1f350",shortnames:[],category:"food"},":pen_ballpoint:":{uc_base:"1f58a",uc_full:"1f58a-fe0f",shortnames:[":lower_left_ballpoint_pen:"],category:"objects"},":pen_fountain:":{uc_base:"1f58b",uc_full:"1f58b-fe0f",shortnames:[":lower_left_fountain_pen:"],category:"objects"},":pencil:":{uc_base:"1f4dd",uc_full:"1f4dd",shortnames:[":memo:"],category:"objects"},":penguin:":{uc_base:"1f427",uc_full:"1f427",shortnames:[],category:"nature"},":pensive:":{uc_base:"1f614",uc_full:"1f614",shortnames:[],category:"people"},":people_hugging:":{uc_base:"1fac2",uc_full:"1fac2",shortnames:[],category:"people"},":people_with_bunny_ears_partying:":{uc_base:"1f46f",uc_full:"1f46f",shortnames:[":dancers:"],category:"people"},":people_wrestling:":{uc_base:"1f93c",uc_full:"1f93c",shortnames:[":wrestlers:",":wrestling:"],category:"activity"},":performing_arts:":{uc_base:"1f3ad",uc_full:"1f3ad",shortnames:[],category:"activity"},":persevere:":{uc_base:"1f623",uc_full:"1f623",shortnames:[],category:"people"},":person_biking:":{uc_base:"1f6b4",uc_full:"1f6b4",shortnames:[":bicyclist:"],category:"activity"},":person_bowing:":{uc_base:"1f647",uc_full:"1f647",shortnames:[":bow:"],category:"people"},":person_climbing:":{uc_base:"1f9d7",uc_full:"1f9d7",shortnames:[],category:"activity"},":person_doing_cartwheel:":{uc_base:"1f938",uc_full:"1f938",shortnames:[":cartwheel:"],category:"activity"},":person_facepalming:":{uc_base:"1f926",uc_full:"1f926",shortnames:[":face_palm:",":facepalm:"],category:"people"},":person_fencing:":{uc_base:"1f93a",uc_full:"1f93a",shortnames:[":fencer:",":fencing:"],category:"activity"},":person_frowning:":{uc_base:"1f64d",uc_full:"1f64d",shortnames:[],category:"people"},":person_gesturing_no:":{uc_base:"1f645",uc_full:"1f645",shortnames:[":no_good:"],category:"people"},":person_gesturing_ok:":{uc_base:"1f646",uc_full:"1f646",shortnames:[":ok_woman:"],category:"people"},":person_getting_haircut:":{uc_base:"1f487",uc_full:"1f487",shortnames:[":haircut:"],category:"people"},":person_getting_massage:":{uc_base:"1f486",uc_full:"1f486",shortnames:[":massage:"],category:"people"},":person_golfing:":{uc_base:"1f3cc",uc_full:"1f3cc",shortnames:[":golfer:"],category:"activity"},":person_in_lotus_position:":{uc_base:"1f9d8",uc_full:"1f9d8",shortnames:[],category:"activity"},":person_in_steamy_room:":{uc_base:"1f9d6",uc_full:"1f9d6",shortnames:[],category:"people"},":person_in_tuxedo:":{uc_base:"1f935",uc_full:"1f935",shortnames:[],category:"people"},":person_juggling:":{uc_base:"1f939",uc_full:"1f939",shortnames:[":juggling:",":juggler:"],category:"activity"},":person_kneeling:":{uc_base:"1f9ce",uc_full:"1f9ce",shortnames:[],category:"people"},":person_lifting_weights:":{uc_base:"1f3cb",uc_full:"1f3cb",shortnames:[":lifter:",":weight_lifter:"],category:"activity"},":person_mountain_biking:":{uc_base:"1f6b5",uc_full:"1f6b5",shortnames:[":mountain_bicyclist:"],category:"activity"},":person_playing_handball:":{uc_base:"1f93e",uc_full:"1f93e",shortnames:[":handball:"],category:"activity"},":person_playing_water_polo:":{uc_base:"1f93d",uc_full:"1f93d",shortnames:[":water_polo:"],category:"activity"},":person_pouting:":{uc_base:"1f64e",uc_full:"1f64e",shortnames:[":person_with_pouting_face:"],category:"people"},":person_raising_hand:":{uc_base:"1f64b",uc_full:"1f64b",shortnames:[":raising_hand:"],category:"people"},":person_rowing_boat:":{uc_base:"1f6a3",uc_full:"1f6a3",shortnames:[":rowboat:"],category:"activity"},":person_running:":{uc_base:"1f3c3",uc_full:"1f3c3",shortnames:[":runner:"],category:"people"},":person_shrugging:":{uc_base:"1f937",uc_full:"1f937",shortnames:[":shrug:"],category:"people"},":person_standing:":{uc_base:"1f9cd",uc_full:"1f9cd",shortnames:[],category:"people"},":person_surfing:":{uc_base:"1f3c4",uc_full:"1f3c4",shortnames:[":surfer:"],category:"activity"},":person_swimming:":{uc_base:"1f3ca",uc_full:"1f3ca",shortnames:[":swimmer:"],category:"activity"},":person_tipping_hand:":{uc_base:"1f481",uc_full:"1f481",shortnames:[":information_desk_person:"],category:"people"},":person_walking:":{uc_base:"1f6b6",uc_full:"1f6b6",shortnames:[":walking:"],category:"people"},":person_wearing_turban:":{uc_base:"1f473",uc_full:"1f473",shortnames:[":man_with_turban:"],category:"people"},":person_with_veil:":{uc_base:"1f470",uc_full:"1f470",shortnames:[],category:"people"},":petri_dish:":{uc_base:"1f9eb",uc_full:"1f9eb",shortnames:[],category:"objects"},":pickup_truck:":{uc_base:"1f6fb",uc_full:"1f6fb",shortnames:[],category:"travel"},":pie:":{uc_base:"1f967",uc_full:"1f967",shortnames:[],category:"food"},":pig2:":{uc_base:"1f416",uc_full:"1f416",shortnames:[],category:"nature"},":pig:":{uc_base:"1f437",uc_full:"1f437",shortnames:[],category:"nature"},":pig_nose:":{uc_base:"1f43d",uc_full:"1f43d",shortnames:[],category:"nature"},":pill:":{uc_base:"1f48a",uc_full:"1f48a",shortnames:[],category:"objects"},":pinched_fingers:":{uc_base:"1f90c",uc_full:"1f90c",shortnames:[],category:"people"},":pinching_hand:":{uc_base:"1f90f",uc_full:"1f90f",shortnames:[],category:"people"},":pineapple:":{uc_base:"1f34d",uc_full:"1f34d",shortnames:[],category:"food"},":ping_pong:":{uc_base:"1f3d3",uc_full:"1f3d3",shortnames:[":table_tennis:"],category:"activity"},":pizza:":{uc_base:"1f355",uc_full:"1f355",shortnames:[],category:"food"},":piñata:":{uc_base:"1fa85",uc_full:"1fa85",shortnames:[],category:"objects"},":placard:":{uc_base:"1faa7",uc_full:"1faa7",shortnames:[],category:"objects"},":place_of_worship:":{uc_base:"1f6d0",uc_full:"1f6d0",shortnames:[":worship_symbol:"],category:"symbols"},":pleading_face:":{uc_base:"1f97a",uc_full:"1f97a",shortnames:[],category:"people"},":plunger:":{uc_base:"1faa0",uc_full:"1faa0",shortnames:[],category:"objects"},":point_down:":{uc_base:"1f447",uc_full:"1f447",shortnames:[],category:"people"},":point_left:":{uc_base:"1f448",uc_full:"1f448",shortnames:[],category:"people"},":point_right:":{uc_base:"1f449",uc_full:"1f449",shortnames:[],category:"people"},":point_up_2:":{uc_base:"1f446",uc_full:"1f446",shortnames:[],category:"people"},":police_car:":{uc_base:"1f693",uc_full:"1f693",shortnames:[],category:"travel"},":police_officer:":{uc_base:"1f46e",uc_full:"1f46e",shortnames:[":cop:"],category:"people"},":poodle:":{uc_base:"1f429",uc_full:"1f429",shortnames:[],category:"nature"},":poop:":{uc_base:"1f4a9",uc_full:"1f4a9",shortnames:[":shit:",":hankey:",":poo:"],category:"people"},":popcorn:":{uc_base:"1f37f",uc_full:"1f37f",shortnames:[],category:"food"},":post_office:":{uc_base:"1f3e3",uc_full:"1f3e3",shortnames:[],category:"travel"},":postal_horn:":{uc_base:"1f4ef",uc_full:"1f4ef",shortnames:[],category:"objects"},":postbox:":{uc_base:"1f4ee",uc_full:"1f4ee",shortnames:[],category:"objects"},":potable_water:":{uc_base:"1f6b0",uc_full:"1f6b0",shortnames:[],category:"objects"},":potato:":{uc_base:"1f954",uc_full:"1f954",shortnames:[],category:"food"},":potted_plant:":{uc_base:"1fab4",uc_full:"1fab4",shortnames:[],category:"nature"},":pouch:":{uc_base:"1f45d",uc_full:"1f45d",shortnames:[],category:"people"},":poultry_leg:":{uc_base:"1f357",uc_full:"1f357",shortnames:[],category:"food"},":pound:":{uc_base:"1f4b7",uc_full:"1f4b7",shortnames:[],category:"objects"},":pouting_cat:":{uc_base:"1f63e",uc_full:"1f63e",shortnames:[],category:"people"},":pray:":{uc_base:"1f64f",uc_full:"1f64f",shortnames:[],category:"people"},":prayer_beads:":{uc_base:"1f4ff",uc_full:"1f4ff",shortnames:[],category:"objects"},":pregnant_woman:":{uc_base:"1f930",uc_full:"1f930",shortnames:[":expecting_woman:"],category:"people"},":pretzel:":{uc_base:"1f968",uc_full:"1f968",shortnames:[],category:"food"},":prince:":{uc_base:"1f934",uc_full:"1f934",shortnames:[],category:"people"},":princess:":{uc_base:"1f478",uc_full:"1f478",shortnames:[],category:"people"},":printer:":{uc_base:"1f5a8",uc_full:"1f5a8-fe0f",shortnames:[],category:"objects"},":probing_cane:":{uc_base:"1f9af",uc_full:"1f9af",shortnames:[],category:"travel"},":projector:":{uc_base:"1f4fd",uc_full:"1f4fd-fe0f",shortnames:[":film_projector:"],category:"objects"},":punch:":{uc_base:"1f44a",uc_full:"1f44a",shortnames:[],category:"people"},":purple_circle:":{uc_base:"1f7e3",uc_full:"1f7e3",shortnames:[],category:"symbols"},":purple_heart:":{uc_base:"1f49c",uc_full:"1f49c",shortnames:[],category:"symbols"},":purple_square:":{uc_base:"1f7ea",uc_full:"1f7ea",shortnames:[],category:"symbols"},":purse:":{uc_base:"1f45b",uc_full:"1f45b",shortnames:[],category:"people"},":pushpin:":{uc_base:"1f4cc",uc_full:"1f4cc",shortnames:[],category:"objects"},":put_litter_in_its_place:":{uc_base:"1f6ae",uc_full:"1f6ae",shortnames:[],category:"symbols"},":rabbit2:":{uc_base:"1f407",uc_full:"1f407",shortnames:[],category:"nature"},":rabbit:":{uc_base:"1f430",uc_full:"1f430",shortnames:[],category:"nature"},":raccoon:":{uc_base:"1f99d",uc_full:"1f99d",shortnames:[],category:"nature"},":race_car:":{uc_base:"1f3ce",uc_full:"1f3ce-fe0f",shortnames:[":racing_car:"],category:"travel"},":racehorse:":{uc_base:"1f40e",uc_full:"1f40e",shortnames:[],category:"nature"},":radio:":{uc_base:"1f4fb",uc_full:"1f4fb",shortnames:[],category:"objects"},":radio_button:":{uc_base:"1f518",uc_full:"1f518",shortnames:[],category:"symbols"},":rage:":{uc_base:"1f621",uc_full:"1f621",shortnames:[],category:"people"},":railway_car:":{uc_base:"1f683",uc_full:"1f683",shortnames:[],category:"travel"},":railway_track:":{uc_base:"1f6e4",uc_full:"1f6e4-fe0f",shortnames:[":railroad_track:"],category:"travel"},":rainbow:":{uc_base:"1f308",uc_full:"1f308",shortnames:[],category:"nature"},":raised_back_of_hand:":{uc_base:"1f91a",uc_full:"1f91a",shortnames:[":back_of_hand:"],category:"people"},":raised_hands:":{uc_base:"1f64c",uc_full:"1f64c",shortnames:[],category:"people"},":ram:":{uc_base:"1f40f",uc_full:"1f40f",shortnames:[],category:"nature"},":ramen:":{uc_base:"1f35c",uc_full:"1f35c",shortnames:[],category:"food"},":rat:":{uc_base:"1f400",uc_full:"1f400",shortnames:[],category:"nature"},":razor:":{uc_base:"1fa92",uc_full:"1fa92",shortnames:[],category:"objects"},":receipt:":{uc_base:"1f9fe",uc_full:"1f9fe",shortnames:[],category:"objects"},":red_car:":{uc_base:"1f697",uc_full:"1f697",shortnames:[],category:"travel"},":red_circle:":{uc_base:"1f534",uc_full:"1f534",shortnames:[],category:"symbols"},":red_envelope:":{uc_base:"1f9e7",uc_full:"1f9e7",shortnames:[],category:"objects"},":red_haired:":{uc_base:"1f9b0",uc_full:"1f9b0",shortnames:[],category:"people"},":red_square:":{uc_base:"1f7e5",uc_full:"1f7e5",shortnames:[],category:"symbols"},":regional_indicator_a:":{uc_base:"1f1e6",uc_full:"1f1e6",shortnames:[],category:"regional"},":regional_indicator_b:":{uc_base:"1f1e7",uc_full:"1f1e7",shortnames:[],category:"regional"},":regional_indicator_c:":{uc_base:"1f1e8",uc_full:"1f1e8",shortnames:[],category:"regional"},":regional_indicator_d:":{uc_base:"1f1e9",uc_full:"1f1e9",shortnames:[],category:"regional"},":regional_indicator_e:":{uc_base:"1f1ea",uc_full:"1f1ea",shortnames:[],category:"regional"},":regional_indicator_f:":{uc_base:"1f1eb",uc_full:"1f1eb",shortnames:[],category:"regional"},":regional_indicator_g:":{uc_base:"1f1ec",uc_full:"1f1ec",shortnames:[],category:"regional"},":regional_indicator_h:":{uc_base:"1f1ed",uc_full:"1f1ed",shortnames:[],category:"regional"},":regional_indicator_i:":{uc_base:"1f1ee",uc_full:"1f1ee",shortnames:[],category:"regional"},":regional_indicator_j:":{uc_base:"1f1ef",uc_full:"1f1ef",shortnames:[],category:"regional"},":regional_indicator_k:":{uc_base:"1f1f0",uc_full:"1f1f0",shortnames:[],category:"regional"},":regional_indicator_l:":{uc_base:"1f1f1",uc_full:"1f1f1",shortnames:[],category:"regional"},":regional_indicator_m:":{uc_base:"1f1f2",uc_full:"1f1f2",shortnames:[],category:"regional"},":regional_indicator_n:":{uc_base:"1f1f3",uc_full:"1f1f3",shortnames:[],category:"regional"},":regional_indicator_o:":{uc_base:"1f1f4",uc_full:"1f1f4",shortnames:[],category:"regional"},":regional_indicator_p:":{uc_base:"1f1f5",uc_full:"1f1f5",shortnames:[],category:"regional"},":regional_indicator_q:":{uc_base:"1f1f6",uc_full:"1f1f6",shortnames:[],category:"regional"},":regional_indicator_r:":{uc_base:"1f1f7",uc_full:"1f1f7",shortnames:[],category:"regional"},":regional_indicator_s:":{uc_base:"1f1f8",uc_full:"1f1f8",shortnames:[],category:"regional"},":regional_indicator_t:":{uc_base:"1f1f9",uc_full:"1f1f9",shortnames:[],category:"regional"},":regional_indicator_u:":{uc_base:"1f1fa",uc_full:"1f1fa",shortnames:[],category:"regional"},":regional_indicator_v:":{uc_base:"1f1fb",uc_full:"1f1fb",shortnames:[],category:"regional"},":regional_indicator_w:":{uc_base:"1f1fc",uc_full:"1f1fc",shortnames:[],category:"regional"},":regional_indicator_x:":{uc_base:"1f1fd",uc_full:"1f1fd",shortnames:[],category:"regional"},":regional_indicator_y:":{uc_base:"1f1fe",uc_full:"1f1fe",shortnames:[],category:"regional"},":regional_indicator_z:":{uc_base:"1f1ff",uc_full:"1f1ff",shortnames:[],category:"regional"},":relieved:":{uc_base:"1f60c",uc_full:"1f60c",shortnames:[],category:"people"},":reminder_ribbon:":{uc_base:"1f397",uc_full:"1f397-fe0f",shortnames:[],category:"activity"},":repeat:":{uc_base:"1f501",uc_full:"1f501",shortnames:[],category:"symbols"},":repeat_one:":{uc_base:"1f502",uc_full:"1f502",shortnames:[],category:"symbols"},":restroom:":{uc_base:"1f6bb",uc_full:"1f6bb",shortnames:[],category:"symbols"},":revolving_hearts:":{uc_base:"1f49e",uc_full:"1f49e",shortnames:[],category:"symbols"},":rhino:":{uc_base:"1f98f",uc_full:"1f98f",shortnames:[":rhinoceros:"],category:"nature"},":ribbon:":{uc_base:"1f380",uc_full:"1f380",shortnames:[],category:"objects"},":rice:":{uc_base:"1f35a",uc_full:"1f35a",shortnames:[],category:"food"},":rice_ball:":{uc_base:"1f359",uc_full:"1f359",shortnames:[],category:"food"},":rice_cracker:":{uc_base:"1f358",uc_full:"1f358",shortnames:[],category:"food"},":rice_scene:":{uc_base:"1f391",uc_full:"1f391",shortnames:[],category:"travel"},":right_facing_fist:":{uc_base:"1f91c",uc_full:"1f91c",shortnames:[":right_fist:"],category:"people"},":ring:":{uc_base:"1f48d",uc_full:"1f48d",shortnames:[],category:"people"},":ringed_planet:":{uc_base:"1fa90",uc_full:"1fa90",shortnames:[],category:"nature"},":robot:":{uc_base:"1f916",uc_full:"1f916",shortnames:[":robot_face:"],category:"people"},":rock:":{uc_base:"1faa8",uc_full:"1faa8",shortnames:[],category:"nature"},":rocket:":{uc_base:"1f680",uc_full:"1f680",shortnames:[],category:"travel"},":rofl:":{uc_base:"1f923",uc_full:"1f923",shortnames:[":rolling_on_the_floor_laughing:"],category:"people"},":roll_of_paper:":{uc_base:"1f9fb",uc_full:"1f9fb",shortnames:[],category:"objects"},":roller_coaster:":{uc_base:"1f3a2",uc_full:"1f3a2",shortnames:[],category:"travel"},":roller_skate:":{uc_base:"1f6fc",uc_full:"1f6fc",shortnames:[],category:"activity"},":rolling_eyes:":{uc_base:"1f644",uc_full:"1f644",shortnames:[":face_with_rolling_eyes:"],category:"people"},":rooster:":{uc_base:"1f413",uc_full:"1f413",shortnames:[],category:"nature"},":rose:":{uc_base:"1f339",uc_full:"1f339",shortnames:[],category:"nature"},":rosette:":{uc_base:"1f3f5",uc_full:"1f3f5-fe0f",shortnames:[],category:"activity"},":rotating_light:":{uc_base:"1f6a8",uc_full:"1f6a8",shortnames:[],category:"travel"},":round_pushpin:":{uc_base:"1f4cd",uc_full:"1f4cd",shortnames:[],category:"objects"},":rugby_football:":{uc_base:"1f3c9",uc_full:"1f3c9",shortnames:[],category:"activity"},":running_shirt_with_sash:":{uc_base:"1f3bd",uc_full:"1f3bd",shortnames:[],category:"activity"},":sa:":{uc_base:"1f202",uc_full:"1f202-fe0f",shortnames:[],category:"symbols"},":safety_pin:":{uc_base:"1f9f7",uc_full:"1f9f7",shortnames:[],category:"objects"},":safety_vest:":{uc_base:"1f9ba",uc_full:"1f9ba",shortnames:[],category:"people"},":sake:":{uc_base:"1f376",uc_full:"1f376",shortnames:[],category:"food"},":salad:":{uc_base:"1f957",uc_full:"1f957",shortnames:[":green_salad:"],category:"food"},":salt:":{uc_base:"1f9c2",uc_full:"1f9c2",shortnames:[],category:"food"},":sandal:":{uc_base:"1f461",uc_full:"1f461",shortnames:[],category:"people"},":sandwich:":{uc_base:"1f96a",uc_full:"1f96a",shortnames:[],category:"food"},":santa:":{uc_base:"1f385",uc_full:"1f385",shortnames:[],category:"people"},":sari:":{uc_base:"1f97b",uc_full:"1f97b",shortnames:[],category:"people"},":satellite:":{uc_base:"1f4e1",uc_full:"1f4e1",shortnames:[],category:"objects"},":satellite_orbital:":{uc_base:"1f6f0",uc_full:"1f6f0-fe0f",shortnames:[],category:"travel"},":sauropod:":{uc_base:"1f995",uc_full:"1f995",shortnames:[],category:"nature"},":saxophone:":{uc_base:"1f3b7",uc_full:"1f3b7",shortnames:[],category:"activity"},":scarf:":{uc_base:"1f9e3",uc_full:"1f9e3",shortnames:[],category:"people"},":school:":{uc_base:"1f3eb",uc_full:"1f3eb",shortnames:[],category:"travel"},":school_satchel:":{uc_base:"1f392",uc_full:"1f392",shortnames:[],category:"people"},":scooter:":{uc_base:"1f6f4",uc_full:"1f6f4",shortnames:[],category:"travel"},":scorpion:":{uc_base:"1f982",uc_full:"1f982",shortnames:[],category:"nature"},":scream:":{uc_base:"1f631",uc_full:"1f631",shortnames:[],category:"people"},":scream_cat:":{uc_base:"1f640",uc_full:"1f640",shortnames:[],category:"people"},":screwdriver:":{uc_base:"1fa9b",uc_full:"1fa9b",shortnames:[],category:"objects"},":scroll:":{uc_base:"1f4dc",uc_full:"1f4dc",shortnames:[],category:"objects"},":seal:":{uc_base:"1f9ad",uc_full:"1f9ad",shortnames:[],category:"nature"},":seat:":{uc_base:"1f4ba",uc_full:"1f4ba",shortnames:[],category:"travel"},":second_place:":{uc_base:"1f948",uc_full:"1f948",shortnames:[":second_place_medal:"],category:"activity"},":see_no_evil:":{uc_base:"1f648",uc_full:"1f648",shortnames:[],category:"nature"},":seedling:":{uc_base:"1f331",uc_full:"1f331",shortnames:[],category:"nature"},":selfie:":{uc_base:"1f933",uc_full:"1f933",shortnames:[],category:"people"},":sewing_needle:":{uc_base:"1faa1",uc_full:"1faa1",shortnames:[],category:"objects"},":shallow_pan_of_food:":{uc_base:"1f958",uc_full:"1f958",shortnames:[":paella:"],category:"food"},":shark:":{uc_base:"1f988",uc_full:"1f988",shortnames:[],category:"nature"},":shaved_ice:":{uc_base:"1f367",uc_full:"1f367",shortnames:[],category:"food"},":sheep:":{uc_base:"1f411",uc_full:"1f411",shortnames:[],category:"nature"},":shell:":{uc_base:"1f41a",uc_full:"1f41a",shortnames:[],category:"nature"},":shield:":{uc_base:"1f6e1",uc_full:"1f6e1-fe0f",shortnames:[],category:"objects"},":ship:":{uc_base:"1f6a2",uc_full:"1f6a2",shortnames:[],category:"travel"},":shirt:":{uc_base:"1f455",uc_full:"1f455",shortnames:[],category:"people"},":shopping_bags:":{uc_base:"1f6cd",uc_full:"1f6cd-fe0f",shortnames:[],category:"objects"},":shopping_cart:":{uc_base:"1f6d2",uc_full:"1f6d2",shortnames:[":shopping_trolley:"],category:"objects"},":shorts:":{uc_base:"1fa73",uc_full:"1fa73",shortnames:[],category:"people"},":shower:":{uc_base:"1f6bf",uc_full:"1f6bf",shortnames:[],category:"objects"},":shrimp:":{uc_base:"1f990",uc_full:"1f990",shortnames:[],category:"nature"},":shushing_face:":{uc_base:"1f92b",uc_full:"1f92b",shortnames:[],category:"people"},":signal_strength:":{uc_base:"1f4f6",uc_full:"1f4f6",shortnames:[],category:"symbols"},":six_pointed_star:":{uc_base:"1f52f",uc_full:"1f52f",shortnames:[],category:"symbols"},":skateboard:":{uc_base:"1f6f9",uc_full:"1f6f9",shortnames:[],category:"activity"},":ski:":{uc_base:"1f3bf",uc_full:"1f3bf",shortnames:[],category:"activity"},":skull:":{uc_base:"1f480",uc_full:"1f480",shortnames:[":skeleton:"],category:"people"},":skunk:":{uc_base:"1f9a8",uc_full:"1f9a8",shortnames:[],category:"nature"},":sled:":{uc_base:"1f6f7",uc_full:"1f6f7",shortnames:[],category:"activity"},":sleeping:":{uc_base:"1f634",uc_full:"1f634",shortnames:[],category:"people"},":sleeping_accommodation:":{uc_base:"1f6cc",uc_full:"1f6cc",shortnames:[],category:"objects"},":sleepy:":{uc_base:"1f62a",uc_full:"1f62a",shortnames:[],category:"people"},":slight_frown:":{uc_base:"1f641",uc_full:"1f641",shortnames:[":slightly_frowning_face:"],category:"people"},":slight_smile:":{uc_base:"1f642",uc_full:"1f642",shortnames:[":slightly_smiling_face:"],category:"people"},":slot_machine:":{uc_base:"1f3b0",uc_full:"1f3b0",shortnames:[],category:"activity"},":sloth:":{uc_base:"1f9a5",uc_full:"1f9a5",shortnames:[],category:"nature"},":small_blue_diamond:":{uc_base:"1f539",uc_full:"1f539",shortnames:[],category:"symbols"},":small_orange_diamond:":{uc_base:"1f538",uc_full:"1f538",shortnames:[],category:"symbols"},":small_red_triangle:":{uc_base:"1f53a",uc_full:"1f53a",shortnames:[],category:"symbols"},":small_red_triangle_down:":{uc_base:"1f53b",uc_full:"1f53b",shortnames:[],category:"symbols"},":smile:":{uc_base:"1f604",uc_full:"1f604",shortnames:[],category:"people"},":smile_cat:":{uc_base:"1f638",uc_full:"1f638",shortnames:[],category:"people"},":smiley:":{uc_base:"1f603",uc_full:"1f603",shortnames:[],category:"people"},":smiley_cat:":{uc_base:"1f63a",uc_full:"1f63a",shortnames:[],category:"people"},":smiling_face_with_3_hearts:":{uc_base:"1f970",uc_full:"1f970",shortnames:[],category:"people"},":smiling_face_with_tear:":{uc_base:"1f972",uc_full:"1f972",shortnames:[],category:"people"},":smiling_imp:":{uc_base:"1f608",uc_full:"1f608",shortnames:[],category:"people"},":smirk:":{uc_base:"1f60f",uc_full:"1f60f",shortnames:[],category:"people"},":smirk_cat:":{uc_base:"1f63c",uc_full:"1f63c",shortnames:[],category:"people"},":smoking:":{uc_base:"1f6ac",uc_full:"1f6ac",shortnames:[],category:"objects"},":snail:":{uc_base:"1f40c",uc_full:"1f40c",shortnames:[],category:"nature"},":snake:":{uc_base:"1f40d",uc_full:"1f40d",shortnames:[],category:"nature"},":sneezing_face:":{uc_base:"1f927",uc_full:"1f927",shortnames:[":sneeze:"],category:"people"},":snowboarder:":{uc_base:"1f3c2",uc_full:"1f3c2",shortnames:[],category:"activity"},":soap:":{uc_base:"1f9fc",uc_full:"1f9fc",shortnames:[],category:"objects"},":sob:":{uc_base:"1f62d",uc_full:"1f62d",shortnames:[],category:"people"},":socks:":{uc_base:"1f9e6",uc_full:"1f9e6",shortnames:[],category:"people"},":softball:":{uc_base:"1f94e",uc_full:"1f94e",shortnames:[],category:"activity"},":soon:":{uc_base:"1f51c",uc_full:"1f51c",shortnames:[],category:"symbols"},":sos:":{uc_base:"1f198",uc_full:"1f198",shortnames:[],category:"symbols"},":sound:":{uc_base:"1f509",uc_full:"1f509",shortnames:[],category:"symbols"},":space_invader:":{uc_base:"1f47e",uc_full:"1f47e",shortnames:[],category:"people"},":spaghetti:":{uc_base:"1f35d",uc_full:"1f35d",shortnames:[],category:"food"},":sparkler:":{uc_base:"1f387",uc_full:"1f387",shortnames:[],category:"travel"},":sparkling_heart:":{uc_base:"1f496",uc_full:"1f496",shortnames:[],category:"symbols"},":speak_no_evil:":{uc_base:"1f64a",uc_full:"1f64a",shortnames:[],category:"nature"},":speaker:":{uc_base:"1f508",uc_full:"1f508",shortnames:[],category:"symbols"},":speaking_head:":{uc_base:"1f5e3",uc_full:"1f5e3-fe0f",shortnames:[":speaking_head_in_silhouette:"],category:"people"},":speech_balloon:":{uc_base:"1f4ac",uc_full:"1f4ac",shortnames:[],category:"symbols"},":speech_left:":{uc_base:"1f5e8",uc_full:"1f5e8-fe0f",shortnames:[":left_speech_bubble:"],category:"symbols"},":speedboat:":{uc_base:"1f6a4",uc_full:"1f6a4",shortnames:[],category:"travel"},":spider:":{uc_base:"1f577",uc_full:"1f577-fe0f",shortnames:[],category:"nature"},":spider_web:":{uc_base:"1f578",uc_full:"1f578-fe0f",shortnames:[],category:"nature"},":sponge:":{uc_base:"1f9fd",uc_full:"1f9fd",shortnames:[],category:"objects"},":spoon:":{uc_base:"1f944",uc_full:"1f944",shortnames:[],category:"food"},":squeeze_bottle:":{uc_base:"1f9f4",uc_full:"1f9f4",shortnames:[],category:"objects"},":squid:":{uc_base:"1f991",uc_full:"1f991",shortnames:[],category:"nature"},":stadium:":{uc_base:"1f3df",uc_full:"1f3df-fe0f",shortnames:[],category:"travel"},":star2:":{uc_base:"1f31f",uc_full:"1f31f",shortnames:[],category:"nature"},":star_struck:":{uc_base:"1f929",uc_full:"1f929",shortnames:[],category:"people"},":stars:":{uc_base:"1f320",uc_full:"1f320",shortnames:[],category:"travel"},":station:":{uc_base:"1f689",uc_full:"1f689",shortnames:[],category:"travel"},":statue_of_liberty:":{uc_base:"1f5fd",uc_full:"1f5fd",shortnames:[],category:"travel"},":steam_locomotive:":{uc_base:"1f682",uc_full:"1f682",shortnames:[],category:"travel"},":stethoscope:":{uc_base:"1fa7a",uc_full:"1fa7a",shortnames:[],category:"objects"},":stew:":{uc_base:"1f372",uc_full:"1f372",shortnames:[],category:"food"},":straight_ruler:":{uc_base:"1f4cf",uc_full:"1f4cf",shortnames:[],category:"objects"},":strawberry:":{uc_base:"1f353",uc_full:"1f353",shortnames:[],category:"food"},":stuck_out_tongue:":{uc_base:"1f61b",uc_full:"1f61b",shortnames:[],category:"people"},":stuck_out_tongue_closed_eyes:":{uc_base:"1f61d",uc_full:"1f61d",shortnames:[],category:"people"},":stuck_out_tongue_winking_eye:":{uc_base:"1f61c",uc_full:"1f61c",shortnames:[],category:"people"},":stuffed_flatbread:":{uc_base:"1f959",uc_full:"1f959",shortnames:[":stuffed_pita:"],category:"food"},":sun_with_face:":{uc_base:"1f31e",uc_full:"1f31e",shortnames:[],category:"nature"},":sunflower:":{uc_base:"1f33b",uc_full:"1f33b",shortnames:[],category:"nature"},":sunglasses:":{uc_base:"1f60e",uc_full:"1f60e",shortnames:[],category:"people"},":sunrise:":{uc_base:"1f305",uc_full:"1f305",shortnames:[],category:"travel"},":sunrise_over_mountains:":{uc_base:"1f304",uc_full:"1f304",shortnames:[],category:"travel"},":superhero:":{uc_base:"1f9b8",uc_full:"1f9b8",shortnames:[],category:"people"},":supervillain:":{uc_base:"1f9b9",uc_full:"1f9b9",shortnames:[],category:"people"},":sushi:":{uc_base:"1f363",uc_full:"1f363",shortnames:[],category:"food"},":suspension_railway:":{uc_base:"1f69f",uc_full:"1f69f",shortnames:[],category:"travel"},":swan:":{uc_base:"1f9a2",uc_full:"1f9a2",shortnames:[],category:"nature"},":sweat:":{uc_base:"1f613",uc_full:"1f613",shortnames:[],category:"people"},":sweat_drops:":{uc_base:"1f4a6",uc_full:"1f4a6",shortnames:[],category:"nature"},":sweat_smile:":{uc_base:"1f605",uc_full:"1f605",shortnames:[],category:"people"},":sweet_potato:":{uc_base:"1f360",uc_full:"1f360",shortnames:[],category:"food"},":symbols:":{uc_base:"1f523",uc_full:"1f523",shortnames:[],category:"symbols"},":synagogue:":{uc_base:"1f54d",uc_full:"1f54d",shortnames:[],category:"travel"},":syringe:":{uc_base:"1f489",uc_full:"1f489",shortnames:[],category:"objects"},":t_rex:":{uc_base:"1f996",uc_full:"1f996",shortnames:[],category:"nature"},":taco:":{uc_base:"1f32e",uc_full:"1f32e",shortnames:[],category:"food"},":tada:":{uc_base:"1f389",uc_full:"1f389",shortnames:[],category:"objects"},":takeout_box:":{uc_base:"1f961",uc_full:"1f961",shortnames:[],category:"food"},":tamale:":{uc_base:"1fad4",uc_full:"1fad4",shortnames:[],category:"food"},":tanabata_tree:":{uc_base:"1f38b",uc_full:"1f38b",shortnames:[],category:"nature"},":tangerine:":{uc_base:"1f34a",uc_full:"1f34a",shortnames:[],category:"food"},":taxi:":{uc_base:"1f695",uc_full:"1f695",shortnames:[],category:"travel"},":tea:":{uc_base:"1f375",uc_full:"1f375",shortnames:[],category:"food"},":teapot:":{uc_base:"1fad6",uc_full:"1fad6",shortnames:[],category:"food"},":teddy_bear:":{uc_base:"1f9f8",uc_full:"1f9f8",shortnames:[],category:"objects"},":telephone_receiver:":{uc_base:"1f4de",uc_full:"1f4de",shortnames:[],category:"objects"},":telescope:":{uc_base:"1f52d",uc_full:"1f52d",shortnames:[],category:"objects"},":tennis:":{uc_base:"1f3be",uc_full:"1f3be",shortnames:[],category:"activity"},":test_tube:":{uc_base:"1f9ea",uc_full:"1f9ea",shortnames:[],category:"objects"},":thermometer:":{uc_base:"1f321",uc_full:"1f321-fe0f",shortnames:[],category:"objects"},":thermometer_face:":{uc_base:"1f912",uc_full:"1f912",shortnames:[":face_with_thermometer:"],category:"people"},":thinking:":{uc_base:"1f914",uc_full:"1f914",shortnames:[":thinking_face:"],category:"people"},":third_place:":{uc_base:"1f949",uc_full:"1f949",shortnames:[":third_place_medal:"],category:"activity"},":thong_sandal:":{uc_base:"1fa74",uc_full:"1fa74",shortnames:[],category:"people"},":thought_balloon:":{uc_base:"1f4ad",uc_full:"1f4ad",shortnames:[],category:"symbols"},":thread:":{uc_base:"1f9f5",uc_full:"1f9f5",shortnames:[],category:"people"},":thumbsdown:":{uc_base:"1f44e",uc_full:"1f44e",shortnames:[":-1:",":thumbdown:"],category:"people"},":thumbsup:":{uc_base:"1f44d",uc_full:"1f44d",shortnames:[":+1:",":thumbup:"],category:"people"},":ticket:":{uc_base:"1f3ab",uc_full:"1f3ab",shortnames:[],category:"activity"},":tickets:":{uc_base:"1f39f",uc_full:"1f39f-fe0f",shortnames:[":admission_tickets:"],category:"activity"},":tiger2:":{uc_base:"1f405",uc_full:"1f405",shortnames:[],category:"nature"},":tiger:":{uc_base:"1f42f",uc_full:"1f42f",shortnames:[],category:"nature"},":tired_face:":{uc_base:"1f62b",uc_full:"1f62b",shortnames:[],category:"people"},":toilet:":{uc_base:"1f6bd",uc_full:"1f6bd",shortnames:[],category:"objects"},":tokyo_tower:":{uc_base:"1f5fc",uc_full:"1f5fc",shortnames:[],category:"travel"},":tomato:":{uc_base:"1f345",uc_full:"1f345",shortnames:[],category:"food"},":tone1:":{uc_base:"1f3fb",uc_full:"1f3fb",shortnames:[],category:"modifier"},":tone2:":{uc_base:"1f3fc",uc_full:"1f3fc",shortnames:[],category:"modifier"},":tone3:":{uc_base:"1f3fd",uc_full:"1f3fd",shortnames:[],category:"modifier"},":tone4:":{uc_base:"1f3fe",uc_full:"1f3fe",shortnames:[],category:"modifier"},":tone5:":{uc_base:"1f3ff",uc_full:"1f3ff",shortnames:[],category:"modifier"},":tongue:":{uc_base:"1f445",uc_full:"1f445",shortnames:[],category:"people"},":toolbox:":{uc_base:"1f9f0",uc_full:"1f9f0",shortnames:[],category:"objects"},":tools:":{uc_base:"1f6e0",uc_full:"1f6e0-fe0f",shortnames:[":hammer_and_wrench:"],category:"objects"},":tooth:":{uc_base:"1f9b7",uc_full:"1f9b7",shortnames:[],category:"people"},":toothbrush:":{uc_base:"1faa5",uc_full:"1faa5",shortnames:[],category:"objects"},":top:":{uc_base:"1f51d",uc_full:"1f51d",shortnames:[],category:"symbols"},":tophat:":{uc_base:"1f3a9",uc_full:"1f3a9",shortnames:[],category:"people"},":trackball:":{uc_base:"1f5b2",uc_full:"1f5b2-fe0f",shortnames:[],category:"objects"},":tractor:":{uc_base:"1f69c",uc_full:"1f69c",shortnames:[],category:"travel"},":traffic_light:":{uc_base:"1f6a5",uc_full:"1f6a5",shortnames:[],category:"travel"},":train2:":{uc_base:"1f686",uc_full:"1f686",shortnames:[],category:"travel"},":train:":{uc_base:"1f68b",uc_full:"1f68b",shortnames:[],category:"travel"},":tram:":{uc_base:"1f68a",uc_full:"1f68a",shortnames:[],category:"travel"},":triangular_flag_on_post:":{uc_base:"1f6a9",uc_full:"1f6a9",shortnames:[],category:"flags"},":triangular_ruler:":{uc_base:"1f4d0",uc_full:"1f4d0",shortnames:[],category:"objects"},":trident:":{uc_base:"1f531",uc_full:"1f531",shortnames:[],category:"symbols"},":triumph:":{uc_base:"1f624",uc_full:"1f624",shortnames:[],category:"people"},":trolleybus:":{uc_base:"1f68e",uc_full:"1f68e",shortnames:[],category:"travel"},":trophy:":{uc_base:"1f3c6",uc_full:"1f3c6",shortnames:[],category:"activity"},":tropical_drink:":{uc_base:"1f379",uc_full:"1f379",shortnames:[],category:"food"},":tropical_fish:":{uc_base:"1f420",uc_full:"1f420",shortnames:[],category:"nature"},":truck:":{uc_base:"1f69a",uc_full:"1f69a",shortnames:[],category:"travel"},":trumpet:":{uc_base:"1f3ba",uc_full:"1f3ba",shortnames:[],category:"activity"},":tulip:":{uc_base:"1f337",uc_full:"1f337",shortnames:[],category:"nature"},":tumbler_glass:":{uc_base:"1f943",uc_full:"1f943",shortnames:[":whisky:"],category:"food"},":turkey:":{uc_base:"1f983",uc_full:"1f983",shortnames:[],category:"nature"},":turtle:":{uc_base:"1f422",uc_full:"1f422",shortnames:[],category:"nature"},":tv:":{uc_base:"1f4fa",uc_full:"1f4fa",shortnames:[],category:"objects"},":twisted_rightwards_arrows:":{uc_base:"1f500",uc_full:"1f500",shortnames:[],category:"symbols"},":two_hearts:":{uc_base:"1f495",uc_full:"1f495",shortnames:[],category:"symbols"},":two_men_holding_hands:":{uc_base:"1f46c",uc_full:"1f46c",shortnames:[],category:"people"},":two_women_holding_hands:":{uc_base:"1f46d",uc_full:"1f46d",shortnames:[],category:"people"},":u5272:":{uc_base:"1f239",uc_full:"1f239",shortnames:[],category:"symbols"},":u5408:":{uc_base:"1f234",uc_full:"1f234",shortnames:[],category:"symbols"},":u55b6:":{uc_base:"1f23a",uc_full:"1f23a",shortnames:[],category:"symbols"},":u6307:":{uc_base:"1f22f",uc_full:"1f22f",shortnames:[],category:"symbols"},":u6708:":{uc_base:"1f237",uc_full:"1f237-fe0f",shortnames:[],category:"symbols"},":u6709:":{uc_base:"1f236",uc_full:"1f236",shortnames:[],category:"symbols"},":u6e80:":{uc_base:"1f235",uc_full:"1f235",shortnames:[],category:"symbols"},":u7121:":{uc_base:"1f21a",uc_full:"1f21a",shortnames:[],category:"symbols"},":u7533:":{uc_base:"1f238",uc_full:"1f238",shortnames:[],category:"symbols"},":u7981:":{uc_base:"1f232",uc_full:"1f232",shortnames:[],category:"symbols"},":u7a7a:":{uc_base:"1f233",uc_full:"1f233",shortnames:[],category:"symbols"},":unamused:":{uc_base:"1f612",uc_full:"1f612",shortnames:[],category:"people"},":underage:":{uc_base:"1f51e",uc_full:"1f51e",shortnames:[],category:"symbols"},":unicorn:":{uc_base:"1f984",uc_full:"1f984",shortnames:[":unicorn_face:"],category:"nature"},":unlock:":{uc_base:"1f513",uc_full:"1f513",shortnames:[],category:"objects"},":up:":{uc_base:"1f199",uc_full:"1f199",shortnames:[],category:"symbols"},":upside_down:":{uc_base:"1f643",uc_full:"1f643",shortnames:[":upside_down_face:"],category:"people"},":vampire:":{uc_base:"1f9db",uc_full:"1f9db",shortnames:[],category:"people"},":vertical_traffic_light:":{uc_base:"1f6a6",uc_full:"1f6a6",shortnames:[],category:"travel"},":vhs:":{uc_base:"1f4fc",uc_full:"1f4fc",shortnames:[],category:"objects"},":vibration_mode:":{uc_base:"1f4f3",uc_full:"1f4f3",shortnames:[],category:"symbols"},":video_camera:":{uc_base:"1f4f9",uc_full:"1f4f9",shortnames:[],category:"objects"},":video_game:":{uc_base:"1f3ae",uc_full:"1f3ae",shortnames:[],category:"activity"},":violin:":{uc_base:"1f3bb",uc_full:"1f3bb",shortnames:[],category:"activity"},":volcano:":{uc_base:"1f30b",uc_full:"1f30b",shortnames:[],category:"travel"},":volleyball:":{uc_base:"1f3d0",uc_full:"1f3d0",shortnames:[],category:"activity"},":vs:":{uc_base:"1f19a",uc_full:"1f19a",shortnames:[],category:"symbols"},":vulcan:":{uc_base:"1f596",uc_full:"1f596",shortnames:[":raised_hand_with_part_between_middle_and_ring_fingers:"],category:"people"},":waffle:":{uc_base:"1f9c7",uc_full:"1f9c7",shortnames:[],category:"food"},":waning_crescent_moon:":{uc_base:"1f318",uc_full:"1f318",shortnames:[],category:"nature"},":waning_gibbous_moon:":{uc_base:"1f316",uc_full:"1f316",shortnames:[],category:"nature"},":wastebasket:":{uc_base:"1f5d1",uc_full:"1f5d1-fe0f",shortnames:[],category:"objects"},":water_buffalo:":{uc_base:"1f403",uc_full:"1f403",shortnames:[],category:"nature"},":watermelon:":{uc_base:"1f349",uc_full:"1f349",shortnames:[],category:"food"},":wave:":{uc_base:"1f44b",uc_full:"1f44b",shortnames:[],category:"people"},":waxing_crescent_moon:":{uc_base:"1f312",uc_full:"1f312",shortnames:[],category:"nature"},":waxing_gibbous_moon:":{uc_base:"1f314",uc_full:"1f314",shortnames:[],category:"nature"},":wc:":{uc_base:"1f6be",uc_full:"1f6be",shortnames:[],category:"symbols"},":weary:":{uc_base:"1f629",uc_full:"1f629",shortnames:[],category:"people"},":wedding:":{uc_base:"1f492",uc_full:"1f492",shortnames:[],category:"travel"},":whale2:":{uc_base:"1f40b",uc_full:"1f40b",shortnames:[],category:"nature"},":whale:":{uc_base:"1f433",uc_full:"1f433",shortnames:[],category:"nature"},":white_flower:":{uc_base:"1f4ae",uc_full:"1f4ae",shortnames:[],category:"symbols"},":white_haired:":{uc_base:"1f9b3",uc_full:"1f9b3",shortnames:[],category:"people"},":white_heart:":{uc_base:"1f90d",uc_full:"1f90d",shortnames:[],category:"symbols"},":white_square_button:":{uc_base:"1f533",uc_full:"1f533",shortnames:[],category:"symbols"},":white_sun_cloud:":{uc_base:"1f325",uc_full:"1f325-fe0f",shortnames:[":white_sun_behind_cloud:"],category:"nature"},":white_sun_rain_cloud:":{uc_base:"1f326",uc_full:"1f326-fe0f",shortnames:[":white_sun_behind_cloud_with_rain:"],category:"nature"},":white_sun_small_cloud:":{uc_base:"1f324",uc_full:"1f324-fe0f",shortnames:[":white_sun_with_small_cloud:"],category:"nature"},":wilted_rose:":{uc_base:"1f940",uc_full:"1f940",shortnames:[":wilted_flower:"],category:"nature"},":wind_blowing_face:":{uc_base:"1f32c",uc_full:"1f32c-fe0f",shortnames:[],category:"nature"},":wind_chime:":{uc_base:"1f390",uc_full:"1f390",shortnames:[],category:"objects"},":window:":{uc_base:"1fa9f",uc_full:"1fa9f",shortnames:[],category:"objects"},":wine_glass:":{uc_base:"1f377",uc_full:"1f377",shortnames:[],category:"food"},":wink:":{uc_base:"1f609",uc_full:"1f609",shortnames:[],category:"people"},":wolf:":{uc_base:"1f43a",uc_full:"1f43a",shortnames:[],category:"nature"},":woman:":{uc_base:"1f469",uc_full:"1f469",shortnames:[],category:"people"},":woman_with_headscarf:":{uc_base:"1f9d5",uc_full:"1f9d5",shortnames:[],category:"people"},":womans_clothes:":{uc_base:"1f45a",uc_full:"1f45a",shortnames:[],category:"people"},":womans_flat_shoe:":{uc_base:"1f97f",uc_full:"1f97f",shortnames:[],category:"people"},":womans_hat:":{uc_base:"1f452",uc_full:"1f452",shortnames:[],category:"people"},":womens:":{uc_base:"1f6ba",uc_full:"1f6ba",shortnames:[],category:"symbols"},":wood:":{uc_base:"1fab5",uc_full:"1fab5",shortnames:[],category:"nature"},":woozy_face:":{uc_base:"1f974",uc_full:"1f974",shortnames:[],category:"people"},":worm:":{uc_base:"1fab1",uc_full:"1fab1",shortnames:[],category:"nature"},":worried:":{uc_base:"1f61f",uc_full:"1f61f",shortnames:[],category:"people"},":wrench:":{uc_base:"1f527",uc_full:"1f527",shortnames:[],category:"objects"},":yarn:":{uc_base:"1f9f6",uc_full:"1f9f6",shortnames:[],category:"people"},":yawning_face:":{uc_base:"1f971",uc_full:"1f971",shortnames:[],category:"people"},":yellow_circle:":{uc_base:"1f7e1",uc_full:"1f7e1",shortnames:[],category:"symbols"},":yellow_heart:":{uc_base:"1f49b",uc_full:"1f49b",shortnames:[],category:"symbols"},":yellow_square:":{uc_base:"1f7e8",uc_full:"1f7e8",shortnames:[],category:"symbols"},":yen:":{uc_base:"1f4b4",uc_full:"1f4b4",shortnames:[],category:"objects"},":yo_yo:":{uc_base:"1fa80",uc_full:"1fa80",shortnames:[],category:"activity"},":yum:":{uc_base:"1f60b",uc_full:"1f60b",shortnames:[],category:"people"},":zany_face:":{uc_base:"1f92a",uc_full:"1f92a",shortnames:[],category:"people"},":zebra:":{uc_base:"1f993",uc_full:"1f993",shortnames:[],category:"nature"},":zipper_mouth:":{uc_base:"1f910",uc_full:"1f910",shortnames:[":zipper_mouth_face:"],category:"people"},":zombie:":{uc_base:"1f9df",uc_full:"1f9df",shortnames:[],category:"people"},":zzz:":{uc_base:"1f4a4",uc_full:"1f4a4",shortnames:[],category:"symbols"},":airplane:":{uc_base:"2708",uc_full:"2708-fe0f",shortnames:[],category:"travel"},":alarm_clock:":{uc_base:"23f0",uc_full:"23f0",shortnames:[],category:"objects"},":alembic:":{uc_base:"2697",uc_full:"2697-fe0f",shortnames:[],category:"objects"},":anchor:":{uc_base:"2693",uc_full:"2693",shortnames:[],category:"travel"},":aquarius:":{uc_base:"2652",uc_full:"2652",shortnames:[],category:"symbols"},":aries:":{uc_base:"2648",uc_full:"2648",shortnames:[],category:"symbols"},":arrow_backward:":{uc_base:"25c0",uc_full:"25c0-fe0f",shortnames:[],category:"symbols"},":arrow_double_down:":{uc_base:"23ec",uc_full:"23ec",shortnames:[],category:"symbols"},":arrow_double_up:":{uc_base:"23eb",uc_full:"23eb",shortnames:[],category:"symbols"},":arrow_down:":{uc_base:"2b07",uc_full:"2b07-fe0f",shortnames:[],category:"symbols"},":arrow_forward:":{uc_base:"25b6",uc_full:"25b6-fe0f",shortnames:[],category:"symbols"},":arrow_heading_down:":{uc_base:"2935",uc_full:"2935-fe0f",shortnames:[],category:"symbols"},":arrow_heading_up:":{uc_base:"2934",uc_full:"2934-fe0f",shortnames:[],category:"symbols"},":arrow_left:":{uc_base:"2b05",uc_full:"2b05-fe0f",shortnames:[],category:"symbols"},":arrow_lower_left:":{uc_base:"2199",uc_full:"2199-fe0f",shortnames:[],category:"symbols"},":arrow_lower_right:":{uc_base:"2198",uc_full:"2198-fe0f",shortnames:[],category:"symbols"},":arrow_right:":{uc_base:"27a1",uc_full:"27a1-fe0f",shortnames:[],category:"symbols"},":arrow_right_hook:":{uc_base:"21aa",uc_full:"21aa-fe0f",shortnames:[],category:"symbols"},":arrow_up:":{uc_base:"2b06",uc_full:"2b06-fe0f",shortnames:[],category:"symbols"},":arrow_up_down:":{uc_base:"2195",uc_full:"2195-fe0f",shortnames:[],category:"symbols"},":arrow_upper_left:":{uc_base:"2196",uc_full:"2196-fe0f",shortnames:[],category:"symbols"},":arrow_upper_right:":{uc_base:"2197",uc_full:"2197-fe0f",shortnames:[],category:"symbols"},":asterisk_symbol:":{uc_base:"002a",uc_full:"002a-fe0f",shortnames:[],category:"symbols"},":atom:":{uc_base:"269b",uc_full:"269b-fe0f",shortnames:[":atom_symbol:"],category:"symbols"},":ballot_box_with_check:":{uc_base:"2611",uc_full:"2611-fe0f",shortnames:[],category:"symbols"},":bangbang:":{uc_base:"203c",uc_full:"203c-fe0f",shortnames:[],category:"symbols"},":baseball:":{uc_base:"26be",uc_full:"26be",shortnames:[],category:"activity"},":beach_umbrella:":{uc_base:"26f1",uc_full:"26f1-fe0f",shortnames:[":umbrella_on_ground:"],category:"travel"},":biohazard:":{uc_base:"2623",uc_full:"2623-fe0f",shortnames:[":biohazard_sign:"],category:"symbols"},":black_circle:":{uc_base:"26ab",uc_full:"26ab",shortnames:[],category:"symbols"},":black_large_square:":{uc_base:"2b1b",uc_full:"2b1b",shortnames:[],category:"symbols"},":black_medium_small_square:":{uc_base:"25fe",uc_full:"25fe",shortnames:[],category:"symbols"},":black_medium_square:":{uc_base:"25fc",uc_full:"25fc-fe0f",shortnames:[],category:"symbols"},":black_nib:":{uc_base:"2712",uc_full:"2712-fe0f",shortnames:[],category:"objects"},":black_small_square:":{uc_base:"25aa",uc_full:"25aa-fe0f",shortnames:[],category:"symbols"},":cancer:":{uc_base:"264b",uc_full:"264b",shortnames:[],category:"symbols"},":capricorn:":{uc_base:"2651",uc_full:"2651",shortnames:[],category:"symbols"},":chains:":{uc_base:"26d3",uc_full:"26d3-fe0f",shortnames:[],category:"objects"},":chess_pawn:":{uc_base:"265f",uc_full:"265f-fe0f",shortnames:[],category:"activity"},":church:":{uc_base:"26ea",uc_full:"26ea",shortnames:[],category:"travel"},":cloud:":{uc_base:"2601",uc_full:"2601-fe0f",shortnames:[],category:"nature"},":clubs:":{uc_base:"2663",uc_full:"2663-fe0f",shortnames:[],category:"symbols"},":coffee:":{uc_base:"2615",uc_full:"2615",shortnames:[],category:"food"},":coffin:":{uc_base:"26b0",uc_full:"26b0-fe0f",shortnames:[],category:"objects"},":comet:":{uc_base:"2604",uc_full:"2604-fe0f",shortnames:[],category:"nature"},":congratulations:":{uc_base:"3297",uc_full:"3297-fe0f",shortnames:[],category:"symbols"},":copyright:":{uc_base:"00a9",uc_full:"00a9-fe0f",shortnames:[],category:"symbols"},":cross:":{uc_base:"271d",uc_full:"271d-fe0f",shortnames:[":latin_cross:"],category:"symbols"},":crossed_swords:":{uc_base:"2694",uc_full:"2694-fe0f",shortnames:[],category:"objects"},":curly_loop:":{uc_base:"27b0",uc_full:"27b0",shortnames:[],category:"symbols"},":diamonds:":{uc_base:"2666",uc_full:"2666-fe0f",shortnames:[],category:"symbols"},":digit_eight:":{uc_base:"0038",uc_full:"0038-fe0f",shortnames:[],category:"symbols"},":digit_five:":{uc_base:"0035",uc_full:"0035-fe0f",shortnames:[],category:"symbols"},":digit_four:":{uc_base:"0034",uc_full:"0034-fe0f",shortnames:[],category:"symbols"},":digit_nine:":{uc_base:"0039",uc_full:"0039-fe0f",shortnames:[],category:"symbols"},":digit_one:":{uc_base:"0031",uc_full:"0031-fe0f",shortnames:[],category:"symbols"},":digit_seven:":{uc_base:"0037",uc_full:"0037-fe0f",shortnames:[],category:"symbols"},":digit_six:":{uc_base:"0036",uc_full:"0036-fe0f",shortnames:[],category:"symbols"},":digit_three:":{uc_base:"0033",uc_full:"0033-fe0f",shortnames:[],category:"symbols"},":digit_two:":{uc_base:"0032",uc_full:"0032-fe0f",shortnames:[],category:"symbols"},":digit_zero:":{uc_base:"0030",uc_full:"0030-fe0f",shortnames:[],category:"symbols"},":eight_pointed_black_star:":{uc_base:"2734",uc_full:"2734-fe0f",shortnames:[],category:"symbols"},":eight_spoked_asterisk:":{uc_base:"2733",uc_full:"2733-fe0f",shortnames:[],category:"symbols"},":eject:":{uc_base:"23cf",uc_full:"23cf-fe0f",shortnames:[":eject_symbol:"],category:"symbols"},":envelope:":{uc_base:"2709",uc_full:"2709-fe0f",shortnames:[],category:"objects"},":exclamation:":{uc_base:"2757",uc_full:"2757",shortnames:[],category:"symbols"},":fast_forward:":{uc_base:"23e9",uc_full:"23e9",shortnames:[],category:"symbols"},":female_sign:":{uc_base:"2640",uc_full:"2640-fe0f",shortnames:[],category:"symbols"},":ferry:":{uc_base:"26f4",uc_full:"26f4-fe0f",shortnames:[],category:"travel"},":fist:":{uc_base:"270a",uc_full:"270a",shortnames:[],category:"people"},":fleur-de-lis:":{uc_base:"269c",uc_full:"269c-fe0f",shortnames:[],category:"symbols"},":fountain:":{uc_base:"26f2",uc_full:"26f2",shortnames:[],category:"travel"},":frowning2:":{uc_base:"2639",uc_full:"2639-fe0f",shortnames:[":white_frowning_face:"],category:"people"},":fuelpump:":{uc_base:"26fd",uc_full:"26fd",shortnames:[],category:"travel"},":gear:":{uc_base:"2699",uc_full:"2699-fe0f",shortnames:[],category:"objects"},":gemini:":{uc_base:"264a",uc_full:"264a",shortnames:[],category:"symbols"},":golf:":{uc_base:"26f3",uc_full:"26f3",shortnames:[],category:"activity"},":grey_exclamation:":{uc_base:"2755",uc_full:"2755",shortnames:[],category:"symbols"},":grey_question:":{uc_base:"2754",uc_full:"2754",shortnames:[],category:"symbols"},":hammer_pick:":{uc_base:"2692",uc_full:"2692-fe0f",shortnames:[":hammer_and_pick:"],category:"objects"},":heart:":{uc_base:"2764",uc_full:"2764-fe0f",shortnames:[],category:"symbols"},":heart_exclamation:":{uc_base:"2763",uc_full:"2763-fe0f",shortnames:[":heavy_heart_exclamation_mark_ornament:"],category:"symbols"},":hearts:":{uc_base:"2665",uc_full:"2665-fe0f",shortnames:[],category:"symbols"},":heavy_check_mark:":{uc_base:"2714",uc_full:"2714-fe0f",shortnames:[],category:"symbols"},":heavy_division_sign:":{uc_base:"2797",uc_full:"2797",shortnames:[],category:"symbols"},":heavy_minus_sign:":{uc_base:"2796",uc_full:"2796",shortnames:[],category:"symbols"},":heavy_multiplication_x:":{uc_base:"2716",uc_full:"2716-fe0f",shortnames:[],category:"symbols"},":heavy_plus_sign:":{uc_base:"2795",uc_full:"2795",shortnames:[],category:"symbols"},":helmet_with_cross:":{uc_base:"26d1",uc_full:"26d1-fe0f",shortnames:[":helmet_with_white_cross:"],category:"people"},":hotsprings:":{uc_base:"2668",uc_full:"2668-fe0f",shortnames:[],category:"symbols"},":hourglass:":{uc_base:"231b",uc_full:"231b",shortnames:[],category:"objects"},":hourglass_flowing_sand:":{uc_base:"23f3",uc_full:"23f3",shortnames:[],category:"objects"},":ice_skate:":{uc_base:"26f8",uc_full:"26f8-fe0f",shortnames:[],category:"activity"},":infinity:":{uc_base:"267e",uc_full:"267e-fe0f",shortnames:[],category:"symbols"},":information_source:":{uc_base:"2139",uc_full:"2139-fe0f",shortnames:[],category:"symbols"},":interrobang:":{uc_base:"2049",uc_full:"2049-fe0f",shortnames:[],category:"symbols"},":keyboard:":{uc_base:"2328",uc_full:"2328-fe0f",shortnames:[],category:"objects"},":left_right_arrow:":{uc_base:"2194",uc_full:"2194-fe0f",shortnames:[],category:"symbols"},":leftwards_arrow_with_hook:":{uc_base:"21a9",uc_full:"21a9-fe0f",shortnames:[],category:"symbols"},":leo:":{uc_base:"264c",uc_full:"264c",shortnames:[],category:"symbols"},":libra:":{uc_base:"264e",uc_full:"264e",shortnames:[],category:"symbols"},":loop:":{uc_base:"27bf",uc_full:"27bf",shortnames:[],category:"symbols"},":m:":{uc_base:"24c2",uc_full:"24c2-fe0f",shortnames:[],category:"symbols"},":male_sign:":{uc_base:"2642",uc_full:"2642-fe0f",shortnames:[],category:"symbols"},":medical_symbol:":{uc_base:"2695",uc_full:"2695-fe0f",shortnames:[],category:"symbols"},":mountain:":{uc_base:"26f0",uc_full:"26f0-fe0f",shortnames:[],category:"travel"},":negative_squared_cross_mark:":{uc_base:"274e",uc_full:"274e",shortnames:[],category:"symbols"},":no_entry:":{uc_base:"26d4",uc_full:"26d4",shortnames:[],category:"symbols"},":o:":{uc_base:"2b55",uc_full:"2b55",shortnames:[],category:"symbols"},":ophiuchus:":{uc_base:"26ce",uc_full:"26ce",shortnames:[],category:"symbols"},":orthodox_cross:":{uc_base:"2626",uc_full:"2626-fe0f",shortnames:[],category:"symbols"},":part_alternation_mark:":{uc_base:"303d",uc_full:"303d-fe0f",shortnames:[],category:"symbols"},":partly_sunny:":{uc_base:"26c5",uc_full:"26c5",shortnames:[],category:"nature"},":pause_button:":{uc_base:"23f8",uc_full:"23f8-fe0f",shortnames:[":double_vertical_bar:"],category:"symbols"},":peace:":{uc_base:"262e",uc_full:"262e-fe0f",shortnames:[":peace_symbol:"],category:"symbols"},":pencil2:":{uc_base:"270f",uc_full:"270f-fe0f",shortnames:[],category:"objects"},":person_bouncing_ball:":{uc_base:"26f9",uc_full:"26f9",shortnames:[":basketball_player:",":person_with_ball:"],category:"activity"},":pick:":{uc_base:"26cf",uc_full:"26cf-fe0f",shortnames:[],category:"objects"},":pisces:":{uc_base:"2653",uc_full:"2653",shortnames:[],category:"symbols"},":play_pause:":{uc_base:"23ef",uc_full:"23ef-fe0f",shortnames:[],category:"symbols"},":point_up:":{uc_base:"261d",uc_full:"261d-fe0f",shortnames:[],category:"people"},":pound_symbol:":{uc_base:"0023",uc_full:"0023-fe0f",shortnames:[],category:"symbols"},":question:":{uc_base:"2753",uc_full:"2753",shortnames:[],category:"symbols"},":radioactive:":{uc_base:"2622",uc_full:"2622-fe0f",shortnames:[":radioactive_sign:"],category:"symbols"},":raised_hand:":{uc_base:"270b",uc_full:"270b",shortnames:[],category:"people"},":record_button:":{uc_base:"23fa",uc_full:"23fa-fe0f",shortnames:[],category:"symbols"},":recycle:":{uc_base:"267b",uc_full:"267b-fe0f",shortnames:[],category:"symbols"},":registered:":{uc_base:"00ae",uc_full:"00ae-fe0f",shortnames:[],category:"symbols"},":relaxed:":{uc_base:"263a",uc_full:"263a-fe0f",shortnames:[],category:"people"},":rewind:":{uc_base:"23ea",uc_full:"23ea",shortnames:[],category:"symbols"},":sagittarius:":{uc_base:"2650",uc_full:"2650",shortnames:[],category:"symbols"},":sailboat:":{uc_base:"26f5",uc_full:"26f5",shortnames:[],category:"travel"},":scales:":{uc_base:"2696",uc_full:"2696-fe0f",shortnames:[],category:"objects"},":scissors:":{uc_base:"2702",uc_full:"2702-fe0f",shortnames:[],category:"objects"},":scorpius:":{uc_base:"264f",uc_full:"264f",shortnames:[],category:"symbols"},":secret:":{uc_base:"3299",uc_full:"3299-fe0f",shortnames:[],category:"symbols"},":shamrock:":{uc_base:"2618",uc_full:"2618-fe0f",shortnames:[],category:"nature"},":shinto_shrine:":{uc_base:"26e9",uc_full:"26e9-fe0f",shortnames:[],category:"travel"},":skier:":{uc_base:"26f7",uc_full:"26f7-fe0f",shortnames:[],category:"activity"},":skull_crossbones:":{uc_base:"2620",uc_full:"2620-fe0f",shortnames:[":skull_and_crossbones:"],category:"people"},":snowflake:":{uc_base:"2744",uc_full:"2744-fe0f",shortnames:[],category:"nature"},":snowman2:":{uc_base:"2603",uc_full:"2603-fe0f",shortnames:[],category:"nature"},":snowman:":{uc_base:"26c4",uc_full:"26c4",shortnames:[],category:"nature"},":soccer:":{uc_base:"26bd",uc_full:"26bd",shortnames:[],category:"activity"},":spades:":{uc_base:"2660",uc_full:"2660-fe0f",shortnames:[],category:"symbols"},":sparkle:":{uc_base:"2747",uc_full:"2747-fe0f",shortnames:[],category:"symbols"},":sparkles:":{uc_base:"2728",uc_full:"2728",shortnames:[],category:"nature"},":star:":{uc_base:"2b50",uc_full:"2b50",shortnames:[],category:"nature"},":star_and_crescent:":{uc_base:"262a",uc_full:"262a-fe0f",shortnames:[],category:"symbols"},":star_of_david:":{uc_base:"2721",uc_full:"2721-fe0f",shortnames:[],category:"symbols"},":stop_button:":{uc_base:"23f9",uc_full:"23f9-fe0f",shortnames:[],category:"symbols"},":stopwatch:":{uc_base:"23f1",uc_full:"23f1-fe0f",shortnames:[],category:"objects"},":sunny:":{uc_base:"2600",uc_full:"2600-fe0f",shortnames:[],category:"nature"},":taurus:":{uc_base:"2649",uc_full:"2649",shortnames:[],category:"symbols"},":telephone:":{uc_base:"260e",uc_full:"260e-fe0f",shortnames:[],category:"objects"},":tent:":{uc_base:"26fa",uc_full:"26fa",shortnames:[],category:"travel"},":thunder_cloud_rain:":{uc_base:"26c8",uc_full:"26c8-fe0f",shortnames:[":thunder_cloud_and_rain:"],category:"nature"},":timer:":{uc_base:"23f2",uc_full:"23f2-fe0f",shortnames:[":timer_clock:"],category:"objects"},":tm:":{uc_base:"2122",uc_full:"2122-fe0f",shortnames:[],category:"symbols"},":track_next:":{uc_base:"23ed",uc_full:"23ed-fe0f",shortnames:[":next_track:"],category:"symbols"},":track_previous:":{uc_base:"23ee",uc_full:"23ee-fe0f",shortnames:[":previous_track:"],category:"symbols"},":transgender_symbol:":{uc_base:"26a7",uc_full:"26a7",shortnames:[],category:"symbols"},":umbrella2:":{uc_base:"2602",uc_full:"2602-fe0f",shortnames:[],category:"nature"},":umbrella:":{uc_base:"2614",uc_full:"2614",shortnames:[],category:"nature"},":urn:":{uc_base:"26b1",uc_full:"26b1-fe0f",shortnames:[":funeral_urn:"],category:"objects"},":v:":{uc_base:"270c",uc_full:"270c-fe0f",shortnames:[],category:"people"},":virgo:":{uc_base:"264d",uc_full:"264d",shortnames:[],category:"symbols"},":warning:":{uc_base:"26a0",uc_full:"26a0-fe0f",shortnames:[],category:"symbols"},":watch:":{uc_base:"231a",uc_full:"231a",shortnames:[],category:"objects"},":wavy_dash:":{uc_base:"3030",uc_full:"3030-fe0f",shortnames:[],category:"symbols"},":wheel_of_dharma:":{uc_base:"2638",uc_full:"2638-fe0f",shortnames:[],category:"symbols"},":wheelchair:":{uc_base:"267f",uc_full:"267f",shortnames:[],category:"symbols"},":white_check_mark:":{uc_base:"2705",uc_full:"2705",shortnames:[],category:"symbols"},":white_circle:":{uc_base:"26aa",uc_full:"26aa",shortnames:[],category:"symbols"},":white_large_square:":{uc_base:"2b1c",uc_full:"2b1c",shortnames:[],category:"symbols"},":white_medium_small_square:":{uc_base:"25fd",uc_full:"25fd",shortnames:[],category:"symbols"},":white_medium_square:":{uc_base:"25fb",uc_full:"25fb-fe0f",shortnames:[],category:"symbols"},":white_small_square:":{uc_base:"25ab",uc_full:"25ab-fe0f",shortnames:[],category:"symbols"},":writing_hand:":{uc_base:"270d",uc_full:"270d-fe0f",shortnames:[],category:"people"},":x:":{uc_base:"274c",uc_full:"274c",shortnames:[],category:"symbols"},":yin_yang:":{uc_base:"262f",uc_full:"262f-fe0f",shortnames:[],category:"symbols"},":zap:":{uc_base:"26a1",uc_full:"26a1",shortnames:[],category:"nature"}},e.asciiList={"*\\0/*":"1f646","*\\O/*":"1f646","-___-":"1f611",":'-)":"1f602","':-)":"1f605","':-D":"1f605",">:-)":"1f606","':-(":"1f613",">:-(":"1f620",":'-(":"1f622","O:-)":"1f607","0:-3":"1f607","0:-)":"1f607","0;^)":"1f607","O;-)":"1f607","0;-)":"1f607","O:-3":"1f607","-__-":"1f611",":-Þ":"1f61b","</3":"1f494",":')":"1f602",":-D":"1f603","':)":"1f605","'=)":"1f605","':D":"1f605","'=D":"1f605",">:)":"1f606",">;)":"1f606",">=)":"1f606",";-)":"1f609","*-)":"1f609",";-]":"1f609",";^)":"1f609","':(":"1f613","'=(":"1f613",":-*":"1f618",":^*":"1f618",">:P":"1f61c","X-P":"1f61c",">:[":"1f61e",":-(":"1f61e",":-[":"1f61e",">:(":"1f620",":'(":"1f622",";-(":"1f622",">.<":"1f623","#-)":"1f635","%-)":"1f635","X-)":"1f635","\\0/":"1f646","\\O/":"1f646","0:3":"1f607","0:)":"1f607","O:)":"1f607","O=)":"1f607","O:3":"1f607","B-)":"1f60e","8-)":"1f60e","B-D":"1f60e","8-D":"1f60e","-_-":"1f611",">:\\":"1f615",">:/":"1f615",":-/":"1f615",":-.":"1f615",":-P":"1f61b",":Þ":"1f61b",":-b":"1f61b",":-O":"1f62e",O_O:"1f62e",">:O":"1f62e",":-X":"1f636",":-#":"1f636",":-)":"1f642","(y)":"1f44d","<3":"2764-fe0f","=D":"1f603",";)":"1f609","*)":"1f609",";]":"1f609",";D":"1f609",":*":"1f618","=*":"1f618",":(":"1f61e",":[":"1f61e","=(":"1f61e",":@":"1f620",";(":"1f622","D:":"1f628",":$":"1f633","=$":"1f633","#)":"1f635","%)":"1f635","X)":"1f635","B)":"1f60e","8)":"1f60e",":/":"1f615",":\\":"1f615","=/":"1f615","=\\":"1f615",":L":"1f615","=L":"1f615",":P":"1f61b","=P":"1f61b",":b":"1f61b",":O":"1f62e",":X":"1f636",":#":"1f636","=X":"1f636","=#":"1f636",":)":"1f642","=]":"1f642","=)":"1f642",":]":"1f642",":D":"1f604"},e.asciiRegexp="(\\*\\\\0\\/\\*|\\*\\\\O\\/\\*|\\-___\\-|\\:'\\-\\)|'\\:\\-\\)|'\\:\\-D|\\>\\:\\-\\)|>\\:\\-\\)|'\\:\\-\\(|\\>\\:\\-\\(|>\\:\\-\\(|\\:'\\-\\(|O\\:\\-\\)|0\\:\\-3|0\\:\\-\\)|0;\\^\\)|O;\\-\\)|0;\\-\\)|O\\:\\-3|\\-__\\-|\\:\\-Þ|\\:\\-Þ|\\<\\/3|<\\/3|\\:'\\)|\\:\\-D|'\\:\\)|'\\=\\)|'\\:D|'\\=D|\\>\\:\\)|>\\:\\)|\\>;\\)|>;\\)|\\>\\=\\)|>\\=\\)|;\\-\\)|\\*\\-\\)|;\\-\\]|;\\^\\)|'\\:\\(|'\\=\\(|\\:\\-\\*|\\:\\^\\*|\\>\\:P|>\\:P|X\\-P|\\>\\:\\[|>\\:\\[|\\:\\-\\(|\\:\\-\\[|\\>\\:\\(|>\\:\\(|\\:'\\(|;\\-\\(|\\>\\.\\<|>\\.<|#\\-\\)|%\\-\\)|X\\-\\)|\\\\0\\/|\\\\O\\/|0\\:3|0\\:\\)|O\\:\\)|O\\=\\)|O\\:3|B\\-\\)|8\\-\\)|B\\-D|8\\-D|\\-_\\-|\\>\\:\\\\|>\\:\\\\|\\>\\:\\/|>\\:\\/|\\:\\-\\/|\\:\\-\\.|\\:\\-P|\\:Þ|\\:Þ|\\:\\-b|\\:\\-O|O_O|\\>\\:O|>\\:O|\\:\\-X|\\:\\-#|\\:\\-\\)|\\(y\\)|\\<3|<3|\\=D|;\\)|\\*\\)|;\\]|;D|\\:\\*|\\=\\*|\\:\\(|\\:\\[|\\=\\(|\\:@|;\\(|D\\:|\\:\\$|\\=\\$|#\\)|%\\)|X\\)|B\\)|8\\)|\\:\\/|\\:\\\\|\\=\\/|\\=\\\\|\\:L|\\=L|\\:P|\\=P|\\:b|\\:O|\\:X|\\:#|\\=X|\\=#|\\:\\)|\\=\\]|\\=\\)|\\:\\]|\\:D)",e.emojiVersion="6.6",e.emojiSize="32",e.blacklistChars="",e.imagePathPNG="https://cdn.jsdelivr.net/joypixels/assets/"+e.emojiVersion+"/png/unicode/",e.defaultPathPNG=e.imagePathPNG,e.fileExtension=".png",e.imageTitleTag=!0,e.sprites=!1,e.unicodeAlt=!0,e.ascii=!1,e.riskyMatchAscii=!1,e.regAscii=new RegExp("<object[^>]*>.*?</object>|<span[^>]*>.*?</span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|((\\s|^)"+e.asciiRegexp+"(?=\\s|$|[!,.?]))","gi"),e.regAsciiRisky=new RegExp("<object[^>]*>.*?</object>|<span[^>]*>.*?</span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|(()"+e.asciiRegexp+"())","gi"),e.regUnicode=new RegExp("<object[^>]*>.*?</object>|<span[^>]*>.*?</span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|(?:[ᾑD[ἿB-ἿF]ᾟ1ᾑD[ἿB-ἿF]])|(?:🏳)️??(?:🌈)|(?:👁)️??(?:🗨)️?|[#-9]️?⃣|(?:(?:🏴)(?:\udb40[\udc60-\udcff]){1,6})|(?:\ud83c[\udde0-\uddff]){2}|(?:\ud83d[\udc68\udc69])️?(?:\ud83c[\udffa-\udfff])??(?:[⚕⚖✈]|\ud83c[\udf3e-\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92])|(?:\ud83d[\udc68\udc69]|\ud83e[\uddd0-\udddf])(?:\ud83c[\udffa-\udfff])??[♀♂⚕⚖✈]?️?|(?:(?:❤|\ud83d[\udc66-\udc69\udc8b])[️]{0,2}){1,3}(?:❤|\ud83d[\udc66-\udc69\udc8b])|(?:(?:❤|\ud83d[\udc66-\udc69\udc8b])️?){2,4}|(?:\ud83d[\udc68\udc69\udc6e\udc71-\udc87\udd75\ude45-\ude4e]|\ud83e[\udd26\udd37]|\ud83c[\udfc3-\udfcc]|\ud83e[\udd38-\udd3e]|\ud83d[\udea3-\udeb6]|⛹|👯)️?(?:\ud83c[\udffb-\udfff])??[♀♂]?️?|(?:[☝⛹✊-✍]|\ud83c[\udf85-\udfcc]|\ud83d[\udc42-\udcaa\udd74-\udd96\ude45-\ude4f\udea3-\udecc]|\ud83e[\udd18-\udd3e])️?(?:\ud83c[\udffb-\udfff])|(?:[↔-↙↩-↪]️?|[#*]|[〰〽]️?|(?:\ud83c[\udd70-\udd71]|🆎|\ud83c[\udd91-\udd9a])️?|Ⓜ️?|[㊗㊙]️?|(?:\ud83c[\ude01-\ude02]|🈚|🈯|\ud83c[\ude32-\ude3a]|\ud83c[\ude50-\ude51])️?|[‼⁉]️?|[▪-▫▶◀◻-◾]️?|[©®]️?|[™ℹ]️?|🀄️?|[⬅-⬇⬛-⬜⭐⭕]️?|[⌚-⌛⌨⏏⏩-⏳⏸-⏺]️?|🃏|[⤴⤵]️?)|[✀-➿]️?|[\ud800-\udbff][\udc00-\udfff]️?|[☀-⛿]️?|[0-9]️","g"),e.convert=function(e){if(e.indexOf("-")>-1){for(var t=[],n=e.split("-"),a=0;a<n.length;a++){var o=parseInt(n[a],16);if(o>=65536&&o<=1114111){var s=Math.floor((o-65536)/1024)+55296,r=(o-65536)%1024+56320;o=String.fromCharCode(s)+String.fromCharCode(r)}else o=String.fromCharCode(o);t.push(o)}return t.join("")}if((n=parseInt(e,16))>=65536&&n<=1114111){s=Math.floor((n-65536)/1024)+55296,r=(n-65536)%1024+56320;return String.fromCharCode(s)+String.fromCharCode(r)}return String.fromCharCode(n)},e.shortnameLookup=[],e.altShortNames=[],e.unicodeCharRegexCached=null;var t,n=[];for(t in e.emojiList)if(e.emojiList.hasOwnProperty(t)||""===t){n.push(t.replace(/[+]/g,"\\$&"));var a=e.convert(e.emojiList[t].uc_full),o=0;for(e.shortnameLookup[a]=t.replace(/[+]/g,"\\$&"),o=0;o<e.emojiList[t].shortnames.length;o++)n.push(e.emojiList[t].shortnames[o].replace(/[+]/g,"\\$&")),e.altShortNames[e.emojiList[t].shortnames[o]]=t}e.shortnames=n.join("|"),e.regShortNames=new RegExp("<object[^>]*>.*?</object>|<span[^>]*>.*?</span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|("+e.shortnames+")","gi"),e.init=function(){e.unicodeCharRegex()},e.toImage=function(t){return t=e.toShort(t),t=e.shortnameToImage(t)},e.unicodeToImage=function(e){return e},e.unifyUnicode=function(t){return t=e.toShort(t),t=e.shortnameToUnicode(t)},e.shortnameToAscii=function(t){var n,a=e.objectFlip(e.asciiList);return t=t.replace(e.regShortNames,(function(t){return void 0!==t&&""!==t&&t in e.emojiList?(n=e.emojiList[t].uc_full,void 0!==a[n]?a[n]:t):t}))},e.shortnameToUnicode=function(t){var n;if(t=t.replace(e.regShortNames,(function(t){if(void 0===t||""===t)return t;if(!(t in e.emojiList)){if(!(t in e.altShortNames))return t;t=e.altShortNames[t]}return n=e.emojiList[t].uc_full.toUpperCase(),e.emojiList[t].uc_base,e.convert(n)})),e.ascii){var a=e.riskyMatchAscii?e.regAsciiRisky:e.regAscii;t=t.replace(a,(function(t,a,o,s){return void 0!==s&&""!==s&&e.unescapeHTML(s)in e.asciiList?(s=e.unescapeHTML(s),n=e.asciiList[s].toUpperCase(),o+e.convert(n)):t}))}return t},e.shortnameToImage=function(t){var n,a,o,s,r,i,f,c;if(t=t.replace(e.regShortNames,(function(t){if(void 0===t||""===t)return t;if(!(t in e.emojiList)){if(!(t in e.altShortNames))return t;t=e.altShortNames[t]}return a=e.emojiList[t].uc_full,o=e.emojiList[t].uc_base,r=o.indexOf("-1f3f")>=0?"diversity":e.emojiList[t].category,i=e.imageTitleTag?'title="'+t+'"':"",f="32"==e.spriteSize||"64"==e.spriteSize?e.spriteSize:"32",c=e.defaultPathPNG!==e.imagePathPNG?e.imagePathPNG:e.defaultPathPNG+e.emojiSize+"/",s=e.unicodeAlt?e.convert(a.toUpperCase()):t,e.sprites?'<span class="joypixels joypixels-'+f+"-"+r+" _"+o+'" '+i+">"+s+"</span>":'<img class="joypixels" alt="'+s+'" '+i+' src="'+c+o+e.fileExtension+'"/>'})),e.ascii){var l=e.riskyMatchAscii?e.regAsciiRisky:e.regAscii;t=t.replace(l,(function(t,o,l,u){if(void 0===u||""===u||!(e.unescapeHTML(u)in e.asciiList))return t;u=e.unescapeHTML(u),a=e.asciiList[u];var _=e.mapUnicodeToShort();return n=_[a],r=a.indexOf("-1f3f")>=0?"diversity":e.emojiList[n].category,i=e.imageTitleTag?'title="'+e.escapeHTML(u)+'"':"",f="32"==e.spriteSize||"64"==e.spriteSize?e.spriteSize:"32",c=e.defaultPathPNG!==e.imagePathPNG?e.imagePathPNG:e.defaultPathPNG+e.emojiSize+"/",s=e.unicodeAlt?e.convert(a.toUpperCase()):e.escapeHTML(u),a=a.replace("-fe0f",""),e.sprites?l+'<span class="joypixels joypixels-'+f+"-"+r+" _"+a+'" '+i+">"+s+"</span>":l+'<img class="joypixels" alt="'+s+'" '+i+' src="'+c+a+e.fileExtension+'"/>'}))}return t},e.toShort=function(t){var n=e.unicodeCharRegex();return t=e.replaceAll(t,n)},e.escapeHTML=function(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,(function(e){return t[e]}))},e.unescapeHTML=function(e){var t={"&":"&","&":"&","&":"&","<":"<","<":"<","<":"<",">":">",">":">",">":">",""":'"',""":'"',""":'"',"'":"'","'":"'","'":"'"};return e.replace(/&(?:amp|#38|#x26|lt|#60|#x3C|gt|#62|#x3E|apos|#39|#x27|quot|#34|#x22);/gi,(function(e){return t[e]}))},e.shortnameConversionMap=function(){var t,n=[];for(t in e.emojiList)e.emojiList.hasOwnProperty(t)&&""!==t&&(n[e.convert(e.emojiList[t].uc_full)]=t);return n},e.unicodeCharRegex=function(){if(!e.unicodeCharRegexCached){var n=[];for(t in e.emojiList)e.emojiList.hasOwnProperty(t)&&""!==t&&n.push(e.convert(e.emojiList[t].uc_full));e.unicodeCharRegexCached=n.join("|")}return e.unicodeCharRegexCached},e.mapEmojiList=function(t){for(var n in e.emojiList){if(e.emojiList.hasOwnProperty(n))t(e.emojiList[n].uc_full,n)}},e.mapUnicodeToShort=function(){return e.memMapShortToUnicode||(e.memMapShortToUnicode={},e.mapEmojiList((function(t,n){e.memMapShortToUnicode[t]=n}))),e.memMapShortToUnicode},e.memorizeReplacement=function(){if(!e.unicodeReplacementRegEx||!e.memMapShortToUnicodeCharacters){var t=[];e.memMapShortToUnicodeCharacters={},e.mapEmojiList((function(n,a){var o=e.convert(n);e.memMapShortToUnicodeCharacters[o]=a,t.push(o)})),e.unicodeReplacementRegEx=t.join("|")}},e.mapUnicodeCharactersToShort=function(){return e.memorizeReplacement(),e.memMapShortToUnicodeCharacters},e.objectFlip=function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[e[t]]=t);return n},e.escapeRegExp=function(e){return e.replace(/[-[\]{}()*+?.,;:&\\^$#\s]/g,"\\$&")},e.replaceAll=function(t,n){var a=e.escapeRegExp(n),o=new RegExp("<object[^>]*>.*?</object>|<span[^>]*>.*?</span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|("+a+")","gi");return t.replace(o,(function(t,n){return void 0===n||""===n?t:e.shortnameLookup[n]}))}}(commonjsGlobal.joypixels=commonjsGlobal.joypixels||{}),e.exports=commonjsGlobal.joypixels}(joypixels$1);var joypixels=joypixels$1.exports;const SeenBy=({seenBy:e})=>React.createElement("div",{className:"wy-readby-status"},e&&e.length>0&&e.map((e=>{const t=dayjs.utc(e.read_at).tz(dayjs.tz.guess());return React.createElement(Avatar,{name:`Seen by ${e.name} at ${t.format("LLLL")}`,src:e.avatar_url,size:16,key:e.id})}))),MeetingCard=({meeting:e})=>React.createElement("div",{className:"wy-attachments"},React.createElement("a",{className:"wy-attachment",href:e.join_url,target:"_blank"},React.createElement("div",{className:"wy-attachment-icon",title:"Zoom meeting"},React.createElement(UIIcon.UI,{name:"zoom",color:"#4a8cff",size:4})),React.createElement("div",{className:"wy-attachment-content"},React.createElement("div",{className:"wy-attachment-title"},"Zoom meeting"),React.createElement("div",{className:"wy-attachment-meta"},"Meeting ID: ",`${e.provider_id.substring(0,3)}-${e.provider_id.substring(3,6)}-${e.provider_id.substring(6)}`),React.createElement(UIButton.UI,{className:"wy-button-primary"},"Join meeting"))));function usePreview(e){const{openPreview:t,closePreview:n}=useContext(PreviewContext);return{open:n=>{t(e,n)},close:()=>{n()}}}const Message=({id:e,html:t,temp:n,me:a,avatar:o,name:s,created_at:r,attachments:i,meeting:f,parentId:c,reactions:l,seenBy:u})=>{const{open:_,close:d}=usePreview(i);var h=null==i?void 0:i.filter((e=>"image"===e.kind&&e.thumbnail_url)),m=null==i?void 0:i.filter((e=>"image"!==e.kind||!e.thumbnail_url));const p=dayjs.utc(r).tz(dayjs.tz.guess()),g=(e,t)=>{e.preventDefault(),_(t)};return React.createElement(React.Fragment,null,React.createElement("div",{className:classNames("wy-message",{"wy-message-me":a})},!a&&React.createElement("div",{className:"wy-message-author"},o&&React.createElement(Avatar,{src:o,size:32,name:s})),React.createElement("div",{className:"wy-message-content"},React.createElement("div",{className:"wy-message-meta"},React.createElement("time",{dateTime:r,title:p.format("LLLL")},p.fromNow())),React.createElement("div",{className:"wy-message-content-row"},React.createElement("div",{className:"wy-message-bubble"},n&&React.createElement("div",{className:"wy-message-text"},t),!n&&React.createElement(React.Fragment,null,h&&!!h.length&&React.createElement(ImageGrid,null,h.map((e=>React.createElement(Image,{onClick:t=>g(t,e.id),key:e.id,src:e.download_url,previewSrc:e.preview_url,width:e.width,height:e.height})))),t&&React.createElement("div",{className:"wy-message-text",dangerouslySetInnerHTML:{__html:joypixels.shortnameToUnicode(t||"")}}),f&&React.createElement(MeetingCard,{meeting:f}),m&&!!m.length&&React.createElement("div",{className:"wy-attachments"},m.map((e=>React.createElement(Attachment,{key:e.id,onClick:t=>g(t,e.id),name:e.name,previewFormat:e.kind,provider:e.provider,url:e.download_url,previewUrl:e.provider?e.external_url:e.preview_url,mediaType:e.media_type,kind:e.kind,size:e.size})))))),React.createElement("div",{className:"wy-message-buttons"},!n&&React.createElement(ReactionsMenu,{id:e,reactions:l}))),!n&&React.createElement("div",{className:"wy-reactions"},React.createElement(ReactionsList,{id:e,parentId:c,reactions:l})))),React.createElement(SeenBy,{id:e,parentId:c,seenBy:u,createdAt:r}))};function createReverseScroller(e,t){let n=!1;var a=getScrollParent$1(e);a.style.overflowAnchor="none",t??=()=>Promise.reject(new Error("No reverse scroller handler function defined"));const o=new IntersectionObserver(((e,o)=>{e.forEach((function(e){if(e.isIntersecting&&!n){n=!0;var o=getNextPositionedChild(e.target),s=a.scrollHeight,r=o.offsetTop;let i=()=>{queueMicrotask((()=>{if(s!==a.scrollHeight){let e=o.offsetTop-r;a.scrollTop+=e,requestAnimationFrame((()=>n=!1))}else queueMicrotask((()=>{if(s!==a.scrollHeight){let e=o.offsetTop-r;a.scrollTop+=e,requestAnimationFrame((()=>n=!1))}else requestAnimationFrame((()=>{let e=o.offsetTop-r;a.scrollTop+=e,requestAnimationFrame((()=>n=!1))}))}))}))},f=t();f?f.then(i):i()}}))}),{root:a,threshold:0,rootMargin:"500px 0px 0px 0px"});return o.observe(e),o}function getNextPositionedChild(e){for(;e=e?.nextElementSibling;)if(!1===/absolute|sticky|fixed/.test(getComputedStyle(e).position))return e}function getScrollParent$1(e){if(e){var t=getComputedStyle(e),n="absolute"===t.position,a=/(auto|overlay|scroll)/;if("fixed"===t.position)return document.scrollingElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&a.test(t.overflow+t.overflowY+t.overflowX))return o}return document.scrollingElement}function getScrollParent(e,t){if(e){var n=getComputedStyle(e),a="absolute"===n.position,o=t?/(auto|scroll|overlay|hidden)/:/(auto|overlay|scroll)/;if("fixed"===n.position)return document.scrollingElement;for(var s=e;s=s.parentElement;)if(n=getComputedStyle(s),(!a||"static"!==n.position)&&o.test(n.overflow+n.overflowY+n.overflowX))return s}return document.scrollingElement}function isParentAtBottom(e,t){if(e){t??=32;let n=getScrollParent(e);return Math.abs(n.scrollTop+n.clientHeight-n.scrollHeight)<=t}return!1}function scrollParentToBottom(e,t){if(e){let n=getScrollParent(e);n.scrollTop+n.clientHeight!==n.scrollHeight&&(t?n.scrollTo({top:n.scrollHeight,left:0,behavior:"smooth"}):n.scrollTop=n.scrollHeight)}}function useFileUploader(e){const{client:t}=useContext(WeavyContext);if(!t)throw new Error("useFileUploader must be used within an WeavyProvider");return useMutation((({request:n})=>__awaiter(this,void 0,void 0,(function*(){const a=new FormData;a.append("blob",n.file);const o=yield t.post("/api/blobs","POST",a,"");var s=yield o.json();e(s)}))),{onError:e=>{},onSuccess:(e,t)=>{}})}const File=({id:e,name:t,className:n,icon:a})=>React.createElement(React.Fragment,null,React.createElement(UIIcon.UI,{name:a,size:1}),React.createElement("div",{className:n},t),React.createElement("input",{type:"hidden",value:e,name:"blob"}));function useMutateTyping(){const{client:e}=useContext(WeavyContext);if(!e)throw new Error("useMutateTyping must be used within an WeavyProvider");return useMutation((({id:t})=>__awaiter(this,void 0,void 0,(function*(){return yield e.post("/api/conversations/"+t+"/typing","PUT",JSON.stringify({}))}))),{})}var FUNC_ERROR_TEXT="Expected a function",NAN=NaN,symbolTag="[object Symbol]",reTrim=/^\s+|\s+$/g,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt,freeGlobal="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),objectProto=Object.prototype,objectToString=objectProto.toString,nativeMax=Math.max,nativeMin=Math.min,now=function(){return root.Date.now()};function debounce(e,t,n){var a,o,s,r,i,f,c=0,l=!1,u=!1,_=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT);function d(t){var n=a,s=o;return a=o=void 0,c=t,r=e.apply(s,n)}function h(e){return c=e,i=setTimeout(p,t),l?d(e):r}function m(e){var n=e-f;return void 0===f||n>=t||n<0||u&&e-c>=s}function p(){var e=now();if(m(e))return g(e);i=setTimeout(p,function(e){var n=t-(e-f);return u?nativeMin(n,s-(e-c)):n}(e))}function g(e){return i=void 0,_&&a?d(e):(a=o=void 0,r)}function b(){var e=now(),n=m(e);if(a=arguments,o=this,f=e,n){if(void 0===i)return h(f);if(u)return i=setTimeout(p,t),d(f)}return void 0===i&&(i=setTimeout(p,t)),r}return t=toNumber(t)||0,isObject(n)&&(l=!!n.leading,s=(u="maxWait"in n)?nativeMax(toNumber(n.maxWait)||0,t):s,_="trailing"in n?!!n.trailing:_),b.cancel=function(){void 0!==i&&clearTimeout(i),c=0,a=f=o=i=void 0},b.flush=function(){return void 0===i?r:g(now())},b}function throttle(e,t,n){var a=!0,o=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT);return isObject(n)&&(a="leading"in n?!!n.leading:a,o="trailing"in n?!!n.trailing:o),debounce(e,t,{leading:a,maxWait:t,trailing:o})}function isObject(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function isObjectLike(e){return!!e&&"object"==typeof e}function isSymbol(e){return"symbol"==typeof e||isObjectLike(e)&&objectToString.call(e)==symbolTag}function toNumber(e){if("number"==typeof e)return e;if(isSymbol(e))return NAN;if(isObject(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(reTrim,"");var n=reIsBinary.test(e);return n||reIsOctal.test(e)?freeParseInt(e.slice(2),n?2:8):reIsBadHex.test(e)?NAN:+e}var lodash_throttle=throttle;function useThrottle(e,t){const n=useRef(e);return useEffect((()=>{n.current=e})),useCallback(lodash_throttle(((...e)=>n.current(...e)),t,{leading:!0,trailing:!1}),[t])}function useMutateMeeting(){const{client:e}=useContext(WeavyContext);if(useQueryClient(),!e)throw new Error("useMutateMeeting must be used within an WeavyProvider");return useMutation((({provider:t})=>__awaiter(this,void 0,void 0,(function*(){return(yield e.post("/api/meetings","POST",JSON.stringify({provider:t}))).json()}))),{onSuccess:e=>{}})}const Meetings=({onMeetingAdded:e})=>{const{options:t}=useContext(WeavyContext),{user:n}=useContext(UserContext),a=useMutateMeeting();useEffect((()=>(window.addEventListener("message",o),()=>{window.removeEventListener("message",o)})),[]);const o=t=>__awaiter(void 0,void 0,void 0,(function*(){if("zoom-signed-in"===t.data.name){var n=yield a.mutateAsync({provider:"zoom"});e(n)}}));return React.createElement(React.Fragment,null,(null==t?void 0:t.zoomAuthenticationUrl)&&React.createElement(UIButton.UI,{onClick:()=>{window.open(`${null==t?void 0:t.zoomAuthenticationUrl}&state=${n.id}`,"zoomAuthWin","height=640,width=480")},title:"Add Zoom meeting"},React.createElement(UIIcon.UI,{name:"zoom"})))},Meeting=({id:e,title:t,className:n})=>React.createElement(React.Fragment,null,React.createElement(UIIcon.UI,{name:"zoom"}),React.createElement("div",{className:n},"Zoom meeting"),React.createElement("input",{type:"hidden",value:e,name:"meeting"}));function useMutateExternalBlobs(){const{client:e}=useContext(WeavyContext);if(useQueryClient(),!e)throw new Error("useMutateExternalBlobs must be used within an WeavyProvider");return useMutation((({blobs:t})=>__awaiter(this,void 0,void 0,(function*(){return(yield e.post("/api/blobs/external","POST",JSON.stringify(t))).json()}))),{onSuccess:e=>{}})}const FileBrowser=({onFileAdded:e})=>{const{options:t}=useContext(WeavyContext);useContext(UserContext);const n=useMutateExternalBlobs();useEffect((()=>(window.addEventListener("message",a),()=>{window.removeEventListener("message",a)})),[]);const a=t=>__awaiter(void 0,void 0,void 0,(function*(){const a=t.data;switch(a.name){case"addExternalBlobs":var s=yield n.mutateAsync({blobs:a.blobs});e(s),o();break;case"file-browser-close":o()}})),o=()=>{let e=document.getElementById("weavy-filebrowser");e&&(e.style.display="none")};return React.createElement(React.Fragment,null,(null==t?void 0:t.enableCloudFiles)&&React.createElement(UIButton.UI,{onClick:()=>{var e,n;let a=document.getElementById("weavy-filebrowser");if(a)a.style.display="block";else{const a=null===(e=window.top)||void 0===e?void 0:e.document.location.origin,o=(null==t?void 0:t.filebrowserUrl)+"?origin="+a+"&v=X&t="+Date.now().toString()+"&weavyId=-1";let s=document.createElement("iframe");s.id="weavy-filebrowser",s.name="weavy-filebrowser",s.src=o,s.className="wy-filebrowser-frame",s.style.cssText="position: fixed; top: 0; left: 0; height: 100%; width: 100%; background: rgba(1,1,1,.4); z-index: 10000; display:none",null===(n=window.top)||void 0===n||n.document.body.appendChild(s),s.addEventListener("load",(()=>{s.style.display="block"}))}},title:"Add file from cloud"},React.createElement(UIIcon.UI,{name:"cloud"})))},ConversationForm=({conversationId:e,handleInsert:t})=>{const[n,a]=useState(""),[o,s]=useState(""),[r,i]=useState(0),[f,c]=useState(1),[l,u]=useState(!1),_=useQueryClient(),[d,h]=useState([]),[m,p]=useState([]),[g,b]=useState(!1),y=useMutateTyping(),v=useRef(null);let w;const{mutateAsync:k,isSuccess:E}=useFileUploader((e=>{flushSync((()=>{e.status&&200!==e.status?b(e.detail):h([...d,e[0]])}))}));useEffect((()=>{let t=_.getQueryData(["form-text",e])||"";a(t);let n=_.getQueryData(["form-attachments",e])||[];h(n)}),[e]),useEffect((()=>{_.setQueryData(["form-attachments",e],d)}),[d]),useEffect((()=>{x()}),[n]);const S=o=>{("keydown"!==o.type||"Enter"===o.key&&o.ctrlKey)&&(o.preventDefault(),o.stopPropagation(),""===n&&0===d.length&&0===m.length||(t(n,d,m),a(""),s(""),h([]),p([]),_.setQueryData(["form-text",e],""),_.setQueryData(["form-attachments",e],[])))},C=(e,t)=>{s(""),h(d.filter((t=>t.id!==e)))},A=(e,t)=>{p(m.filter((t=>t.id!==e)))},x=()=>{if(v.current&&v.current.parentNode){v.current.parentNode.dataset.replicatedValue=v.current.value}};return React.createElement("form",{className:"wy-message-form"},g&&React.createElement("div",null,g),(l||d.length>0||m.length>0)&&React.createElement("div",null,l&&React.createElement("div",null,"Now uploading (",f," of ",r,") selected files"),React.createElement("div",{className:"wy-picker-list"},d.map((e=>{let{icon:t}=getIcon(e.name);return React.createElement("div",{key:e.id,className:"wy-picker-list-item"},React.createElement(File,{id:e.id,name:e.name,className:"wy-picker-list-item-title",icon:t}),React.createElement(UIButton.UI,{onClick:C.bind(ConversationForm,e.id)},React.createElement(UIIcon.UI,{name:"close-circle"})))})),m.map((e=>React.createElement("div",{key:e.id,className:"wy-picker-list-item"},React.createElement(Meeting,{id:e.id,title:e.provider,className:"wy-picker-list-item-title"}),React.createElement(UIButton.UI,{onClick:A.bind(ConversationForm,e.id)},React.createElement(UIIcon.UI,{name:"close-circle"}))))))),React.createElement("div",{className:"wy-message-editor-inputs"},React.createElement("div",{className:"wy-message-editor-buttons"},React.createElement("input",{type:"file",ref:e=>w=e,value:o,onChange:e=>__awaiter(void 0,void 0,void 0,(function*(){b(!1),s(e.target.value),i(e.target.files.length),u(!0);for(var t=0;t<e.target.files.length;t++){c(t+1);const n=e.target.files[t];yield k({request:{file:n}})}u(!1)})),multiple:!0,hidden:!0,tabIndex:-1}),React.createElement(UIButton.UI,{title:"Upload attachment",onClick:e=>{null==w||w.click()}},React.createElement(UIIcon.UI,{name:"attachment"})),React.createElement(Meetings,{onMeetingAdded:e=>{m.length>0||p([...m,e])}}),React.createElement(FileBrowser,{onFileAdded:e=>{h([...d,...e])}})),React.createElement("div",{className:"wy-message-editor-text wy-message-editor-grow"},React.createElement("textarea",{rows:1,ref:v,className:"wy-message-editor-textfield wy-message-editor-textcontent",value:n,onChange:t=>{_.setQueryData(["form-text",e],t.target.value),a(t.target.value)},onKeyDown:S,onKeyPress:useThrottle((()=>{y.mutate({id:e})}),4e3)})),React.createElement("div",{className:"wy-message-editor-buttons"},React.createElement(UIButton.UI,{type:"button",onClick:S},React.createElement(UIIcon.UI,{name:"send"})))))};function useMutateRead(){const{client:e}=useContext(WeavyContext),t=useQueryClient();if(!e)throw new Error("useMutateUnread must be used within an WeavyProvider");return useMutation((({id:t,read:n})=>__awaiter(this,void 0,void 0,(function*(){return(yield e.post("/api/conversations/"+t+"/read",n?"PUT":"DELETE","")).json()}))),{onSuccess:()=>{t.invalidateQueries("conversations")}})}function useMutateMessage(){const{client:e}=useContext(WeavyContext),t=useQueryClient();if(!e)throw new Error("useMutateMessage must be used within an WeavyProvider");return useMutation((({id:t,text:n,userId:a,attachments:o,meetings:s})=>__awaiter(this,void 0,void 0,(function*(){return(yield e.post("/api/apps/"+t+"/messages","POST",JSON.stringify({text:n,blobs:o.map((e=>e.id)),meeting_id:s.length>0?s[0].id:null}))).json()}))),{onSuccess:(e,n,a)=>{var o;const s=t.getQueryData(["messages",n.id]);if(s&&s.pages){const r=null!==(o=s.pages.map(((t,n)=>(0===n&&(t.data=[...t.data.filter((e=>e.id!==a.tempId)),e]),t))))&&void 0!==o?o:[];t.setQueryData(["messages",n.id],(e=>({pages:r,pageParams:e.pageParams})))}t.invalidateQueries("conversations")},onMutate:e=>__awaiter(this,void 0,void 0,(function*(){yield t.cancelQueries(["messages",e.id]);const n=t.getQueryData(["messages",e.id]),a=Math.random();if(n&&n.pages.length>0){var o=n.pages[0];let s=[...o.data||[],{id:a,text:e.text,html:e.text,display_name:"",temp:!0,parent_id:null,created_by:{id:e.userId},created_at:(new Date).toUTCString(),attachments:[],reactions:[],reactions_count:0}];o.data=s,t.setQueryData(["messages",e.id],(e=>{let t=[o];return(null==e?void 0:e.pages.length)>1&&(t=[o,...null==e?void 0:e.pages.slice(1)]),{pages:t,pageParams:null==e?void 0:e.pageParams}}))}return{tempId:a}}))})}const Messages=({id:e,members:t,displayName:n,avatarUrl:a})=>{var o;const{user:s}=useContext(UserContext),r=useQueryClient(),{client:i}=useContext(WeavyContext),f=useRef(),c=useRef(),[l,u]=useState(),{dispatch:_,on:d,events:h}=useEvents(),{isLoading:m,isError:p,data:g,error:b,fetchNextPage:y,hasNextPage:v,isFetching:w,isFetchingNextPage:k}=useMessages(e,{}),E=useMutateRead(),S=useMutateMessage();useLayoutEffect((()=>(e&&!m?(scrollParentToBottom(c.current),requestAnimationFrame((()=>requestAnimationFrame((()=>scrollParentToBottom(c.current))))),null==o||o.disconnect(),o=createReverseScroller(f.current,(()=>{if(v)return y().then((()=>new Promise((e=>u(e)))))}))):(null==o||o.disconnect(),o=null),()=>{null==o||o.disconnect(),o=null})),[e,m]),useLayoutEffect((()=>{!k&&l&&(l(),u(null))}),[g]),useEffect((()=>(e&&(window.addEventListener("focus",T,!1),E.mutate({id:e,read:!0}),null==i||i.subscribe(`a${e}`,"message-inserted",P),null==i||i.subscribe(`a${e}`,"conversation-read",x),null==i||i.subscribe(`a${e}`,"reaction-inserted",C),null==i||i.subscribe(`a${e}`,"reaction-deleted",A)),()=>{if(window.removeEventListener("focus",T,!1),e){r.getQueryData(["messages",e])&&r.setQueryData(["messages",e],(e=>({pages:null==e?void 0:e.pages.slice(0,1),pageParams:[void 0]}))),null==i||i.unsubscribe(`a${e}`,"message-inserted",P),null==i||i.unsubscribe(`a${e}`,"conversation-read",x),null==i||i.unsubscribe(`a${e}`,"reaction-inserted",C),null==i||i.unsubscribe(`a${e}`,"reaction-deleted",A)}})),[e]);const C=useCallback((e=>{_("reaction-inserted",e)}),[e]),A=useCallback((e=>{_("reaction-deleted",e)}),[e]),x=t=>__awaiter(void 0,void 0,void 0,(function*(){let t=isParentAtBottom(f.current);r.invalidateQueries(["members",e]),t&&requestAnimationFrame((()=>scrollParentToBottom(f.current,!0)))})),P=useCallback((t=>{var n;if(t.app_id!==e||t.created_by.id===s.id)return;E.mutate({id:e,read:!0});const a=r.getQueryData(["messages",e]);if(a&&a.pages){let o=isParentAtBottom(f.current);const s=null!==(n=a.pages.map(((e,n)=>(0===n&&(e.data=[...e.data,t]),e))))&&void 0!==n?n:[];r.setQueryData(["messages",e],(e=>({pages:s,pageParams:e.pageParams}))),o&&requestAnimationFrame((()=>requestAnimationFrame((()=>scrollParentToBottom(f.current,!0)))))}}),[e]),T=useCallback((()=>{e&&E.mutate({id:e,read:!0})}),[e]);let M=React.createElement("div",{className:"wy-avatar-header"},a&&n&&React.createElement(Avatar,{src:a,name:n,id:e,size:128})||"",n&&React.createElement("div",{className:"wy-avatar-display-name"},n)||""),R=React.createElement(UIButton.UI,{onClick:()=>y(),disabled:!v||k,className:"wy-message-readmore"},"Load more"),L=React.createElement(React.Fragment,null,React.createElement("div",{className:"wy-message-readmore",ref:f},k?"Loading more...":v?R:M),g&&t&&g.pages&&g.pages.map(((n,a)=>{var o;return React.createElement(React.Fragment,{key:g.pages.length-a},null===(o=n.data)||void 0===o?void 0:o.map((n=>React.createElement(Message,{key:n.id,id:n.id,html:n.html,temp:n.temp,me:n.created_by.id===s.id,avatar:n.created_by.avatar_url,name:n.created_by.display_name,created_at:n.created_at,attachments:n.attachments,meeting:n.meeting,parentId:e,reactions:n.reactions,seenBy:t.data&&t.data.length>0?t.data.filter((e=>{const t=e.read_at>=n.created_at,a=!g.pages.map((e=>e.data)).flat().find((t=>t.id>n.id&&e.read_at>=t.created_at));return t&&a&&e.id!==s.id})):[]}))))})),React.createElement("div",{ref:c}));return m&&(L=React.createElement("div",null,"Loading messages...")),React.createElement(React.Fragment,null,React.createElement("div",{id:"container",className:"wy-messages"},L),React.createElement("div",{className:"wy-message-editor"},React.createElement(ConversationForm,{key:e,conversationId:e,handleInsert:(t,n,a)=>{S.mutate({id:e,text:t,userId:s.id,attachments:n,meetings:a},{onSuccess:()=>{requestAnimationFrame((()=>scrollParentToBottom(c.current,!0)))}}),setTimeout((()=>{E.mutate({id:e,read:!0})}),1e3),requestAnimationFrame((()=>scrollParentToBottom(f.current,!0)))}})))},Conversation=({id:e,showBackButton:t})=>{const n=useQueryClient(),{client:a}=useContext(WeavyContext),{selectedConversationId:o,setSelectedConversationId:s}=useContext(MessengerContext),{user:r}=useContext(UserContext),[i,f]=useState(!1),[c,l]=useState(!1),[u,_]=useState(""),d="edb400ac-839b-45a7-b2a8-6a01820d1c44";if(!a)throw new Error("Weavy Conversation component must be used within an WeavyProvider");const{isLoading:h,data:m}=useConversation(o,{enabled:null!=o}),{isLoading:p,data:g}=useMembers(o,{enabled:null!=o}),b=useMutateMembers(),y=useMutateConversationName(),v=useMutateRemoveMembers(),w=useCallback((e=>{e.id===o&&n.invalidateQueries(["conversation",o])}),[o]),k=e=>{f(e)},E=e=>{l(e)};return useEffect((()=>{e&&s(e)}),[e]),useEffect((()=>(o&&a.subscribe(`a${o}`,"app-updated",w),()=>{o&&a.unsubscribe(`a${o}`,"app-updated",w)})),[o]),useEffect((()=>{m&&m.type===d&&_(null==m?void 0:m.display_name)}),[m]),React.createElement(React.Fragment,null,React.createElement("header",{className:"wy-appbars"},React.createElement("nav",{className:"wy-appbar"},React.createElement("div",null,t&&React.createElement(UIButton.UI,{onClick:()=>{s(null)}},React.createElement(UIIcon.UI,{name:"back"}))),o&&m&&React.createElement(React.Fragment,null,React.createElement("div",{className:"wy-appbar-text"},React.createElement(Typing$1,{id:o,context:"conversation"},m.display_name)),React.createElement(UIDropdown.UI,{directionX:"left"},React.createElement(UIDropdown.Item,{onClick:()=>E(!0)},"Details"),m.type===d&&React.createElement(React.Fragment,null,React.createElement(UIDropdown.Item,{onClick:()=>k(!0)},"Add people"),React.createElement(UIDropdown.Item,{onClick:()=>{v.mutate({id:o,members:[r.id]})}},"Leave conversation")))))),!o&&React.createElement("div",{className:"wy-avatar-header"},React.createElement(Avatar,{src:r.avatar_url,name:r.title,presence:r.presence,id:r.id,size:256}),React.createElement("h2",null,"Welcome ",r.name,"!"),"Create or select a conversation to get started"),o&&g&&React.createElement(Messages,{id:o,members:g,displayName:null==m?void 0:m.display_name,avatarUrl:null==m?void 0:m.avatar_url}),React.createElement(UIOverlay.UI,{isOpen:i,className:"wy-modal"},React.createElement("header",{className:"wy-appbars"},React.createElement("nav",{className:"wy-appbar"},React.createElement(UIButton.UI,{onClick:()=>k(!1)},React.createElement(UIIcon.UI,{name:"close"})),React.createElement("div",{className:"wy-appbar-text"},"Add people"))),React.createElement(SearchUsers,{handleSubmit:e=>__awaiter(void 0,void 0,void 0,(function*(){const t=e.map((e=>e.id));yield b.mutateAsync({id:o,members:t}),f(!1)})),buttonTitle:"Add selected"})),React.createElement(UIOverlay.UI,{isOpen:c,className:"wy-modal"},React.createElement("header",{className:"wy-appbars"},React.createElement("nav",{className:"wy-appbar"},React.createElement(UIButton.UI,{onClick:()=>E(!1)},React.createElement(UIIcon.UI,{name:"close"})),React.createElement("div",{className:"wy-appbar-text"},"Conversation details"))),React.createElement("div",null,m&&React.createElement("div",{className:"wy-avatar-header"},React.createElement(Avatar,{src:null==m?void 0:m.avatar_url,name:u,size:128})),(null==m?void 0:m.type)!==d&&React.createElement("h4",{className:"wy-avatar-display-name"},null==m?void 0:m.display_name),(null==m?void 0:m.type)===d&&React.createElement(React.Fragment,null,React.createElement("div",{className:"wy-pane-group"},React.createElement("input",{className:"wy-input",value:u,onChange:e=>(e=>{_(e.target.value),y.mutate({id:o,name:e.target.value})})(e)})),React.createElement("div",{className:"wy-pane-group"},React.createElement("table",{className:"wy-search-result-table"},React.createElement("tbody",null,g&&g.data&&g.data.map((e=>React.createElement("tr",{key:e.id,className:"wy-search-result-table-checkbox"},React.createElement("td",{className:"wy-search-result-table-icon"},React.createElement(Avatar,{src:e.avatar_url,name:e.display_name,id:e.id,size:24,presence:e.presence})),React.createElement("td",null,e.display_name),React.createElement("td",null)))))))))))};var Conversation$1=React.memo(Conversation);function useConversations(){const{client:e}=useContext(WeavyContext);if(!e)throw new Error("useConversations must be used within an WeavyProvider");return useQuery("conversations",(()=>__awaiter(this,void 0,void 0,(function*(){const t=yield e.get("/api/conversations?contextual=false");return yield t.json()}))))}function useMutatePinned(){const{client:e}=useContext(WeavyContext),t=useQueryClient();if(!e)throw new Error("useMutatePinned must be used within an WeavyProvider");return useMutation((({id:t,pin:n})=>__awaiter(this,void 0,void 0,(function*(){return(yield e.post("/api/conversations/"+t+"/pin",n?"PUT":"DELETE","")).json()}))),{onSuccess:()=>{t.invalidateQueries("conversations")}})}const ConversationListItem=({item:e,refetchConversations:t})=>{var n,a,o,s,r,i,f;const{client:c}=useContext(WeavyContext),{setSelectedConversationId:l,selectedConversationId:u}=useContext(MessengerContext),{user:_}=useContext(UserContext),d=useMutateRead(),h=useMutatePinned(),m=useMutateRemoveMembers(),p=dayjs.utc(null===(n=e.last_message)||void 0===n?void 0:n.created_at).tz(dayjs.tz.guess()),g="edb400ac-839b-45a7-b2a8-6a01820d1c44",b=useCallback((n=>{n.id===e.id&&t()}),[e.id]);useEffect((()=>(null==c||c.subscribe(`a${e.id}`,"app-updated",b),()=>{null==c||c.unsubscribe(`a${e.id}`,"app-updated",b)})),[e.id]);const y=e.type!==g?e.member_ids.find((e=>e!=_.id)):null,v=t=>{t.preventDefault(),h.mutate({id:e.id,pin:!1})};return React.createElement("div",{className:classNames("wy-conversation",{"wy-unread":e.is_unread}),key:e.id},React.createElement("a",{className:classNames("wy-conversation-link",{"wy-active":u===e.id}),href:"#",onClick:t=>((e,t)=>{e.preventDefault(),l(t)})(t,e.id)},React.createElement(Avatar,{src:e.avatar_url,id:y||-1,presence:e.type!==g?"away":"",name:e.display_name}),React.createElement("div",{className:"wy-conversation-body"},React.createElement("div",{className:"wy-conversation-header"},React.createElement("div",{className:"wy-conversation-title"},e.display_name),e.last_message&&React.createElement("time",{className:"wy-conversation-time",dateTime:e.last_message.created_at.toString(),title:p.format("LLLL")},p.fromNow())),React.createElement("div",{className:"wy-conversation-summary"},React.createElement(Typing$1,{id:e.id,context:"listitem"},(null===(a=e.last_message)||void 0===a?void 0:a.html)&&React.createElement("span",{className:"wy-typing-hide",dangerouslySetInnerHTML:{__html:joypixels.shortnameToUnicode(null===(o=e.last_message)||void 0===o?void 0:o.text)}}),!(null===(s=e.last_message)||void 0===s?void 0:s.html)&&React.createElement("span",{className:"wy-typing-hide"},(null===(i=null===(r=e.last_message)||void 0===r?void 0:r.attachment_ids)||void 0===i?void 0:i.length)>0&&React.createElement(UIIcon.UI,{name:"attachment",size:1}),(null===(f=e.last_message)||void 0===f?void 0:f.meeting_id)&&React.createElement(UIIcon.UI,{name:"zoom",size:1})))))),React.createElement("div",{className:"wy-conversation-actions"},e.is_pinned&&React.createElement(UIButton.UI,{onClick:v},React.createElement(UIIcon.UI,{name:"pin",size:.75})),React.createElement(UIDropdown.UI,{directionX:"left"},React.createElement(React.Fragment,null,e.is_unread&&React.createElement(UIDropdown.Item,{onClick:t=>{t.preventDefault(),d.mutate({id:e.id,read:!0})}},"Mark as read"),!e.is_unread&&React.createElement(UIDropdown.Item,{onClick:t=>{t.preventDefault(),d.mutate({id:e.id,read:!1})}},"Mark as unread")),React.createElement(React.Fragment,null,e.is_pinned&&React.createElement(UIDropdown.Item,{onClick:v},"Unpin"),!e.is_pinned&&React.createElement(UIDropdown.Item,{onClick:t=>{t.preventDefault(),h.mutate({id:e.id,pin:!0})}},"Pin")),e.type===g&&React.createElement(UIDropdown.Item,{onClick:()=>{m.mutate({id:e.id,members:[_.id]})}},"Leave conversation"))))};function useMutateConversation(){const{client:e}=useContext(WeavyContext),t=useQueryClient();if(!e)throw new Error("useMutateConversation must be used within an WeavyProvider");return useMutation((({members:t})=>__awaiter(this,void 0,void 0,(function*(){return(yield e.post("/api/conversations/","POST",JSON.stringify({members:t}))).json()}))),{onSuccess:()=>{t.invalidateQueries("conversations")}})}const NewConversation=()=>{const[e,t]=useState(!1),n=useMutateConversation();return React.createElement(React.Fragment,null,React.createElement(UIButton.UI,{onClick:()=>{t(!0)}},React.createElement(UIIcon.UI,{name:"plus"})),React.createElement(UIOverlay.UI,{isOpen:e,className:"wy-modal"},React.createElement("header",{className:"wy-appbars"},React.createElement("nav",{className:"wy-appbar"},React.createElement(UIButton.UI,{onClick:()=>{t(!1)}},React.createElement(UIIcon.UI,{name:"close"})),React.createElement("div",{className:"wy-appbar-text"},"Create conversation"))),React.createElement(SearchUsers,{handleSubmit:e=>__awaiter(void 0,void 0,void 0,(function*(){const a=e.map((e=>e.id));yield n.mutateAsync({members:a}),t(!1)})),buttonTitle:"Next"})))};var NewConversation$1=React.memo(NewConversation);const ConversationList=()=>{var e;const{client:t}=useContext(WeavyContext),{user:n}=useContext(UserContext),{data:a,isLoading:o,refetch:s}=useConversations();if(!t)throw new Error("Weavy ConversationList component must be used within an WeavyProvider");useEffect((()=>(t.subscribe(null,"app-inserted",r),t.subscribe(null,"member-added",r),()=>{t.unsubscribe(null,"app-inserted",r),t.unsubscribe(null,"member-added",r)})),[]);const r=e=>{s()};return o?React.createElement("div",null,"Loading Conversation list..."):React.createElement(React.Fragment,null,React.createElement("header",{className:"wy-appbars"},React.createElement("nav",{className:"wy-appbar"},React.createElement(Avatar,{src:n.avatar_url,name:n.title,presence:n.presence,id:n.id,size:24}),React.createElement("div",null,"Messenger"),React.createElement(NewConversation$1,null))),React.createElement("div",{className:"wy-conversations"},a&&(null===(e=a.data)||void 0===e?void 0:e.map((e=>React.createElement(ConversationListItem,{key:e.id,refetchConversations:s,item:e}))))))},Messenger=()=>{const{client:e}=useContext(WeavyContext);if(!e)throw new Error("Weavy Messenger component must be used within an WeavyProvider");return React.createElement(MessengerProvider,null,React.createElement("div",{className:"wy-messenger-provider"},React.createElement("div",{className:"wy-messenger-sidebar wy-scroll-y"},React.createElement(ConversationList,null)),React.createElement("div",{className:"wy-messenger-conversation wy-scroll-y"},React.createElement(Conversation$1,{id:null}))))};function useBadge(){const{client:e}=useContext(WeavyContext);if(!e)throw new Error("useBadge must be used within an WeavyProvider");return useQuery("badge",(()=>__awaiter(this,void 0,void 0,(function*(){const t=yield e.get("/api/conversations/badge");if(t.ok){return yield t.json()}return null}))))}const ConversationBadge=()=>{const{client:e}=useContext(WeavyContext),[t,n]=useState(0);if(!e)throw new Error("Weavy Badge component must be used within an WeavyProvider");const{isLoading:a,data:o}=useBadge(),s=e=>{n(e.private+e.rooms)};return useEffect((()=>{o&&n(o.private+o.rooms)}),[o]),useEffect((()=>(e.subscribe(null,"conversation-badge",s),()=>{e.unsubscribe(null,"conversation-badge",s)})),[]),React.createElement(React.Fragment,null,!a&&t>0&&React.createElement("span",{className:"wy-badge wy-badge-danger"},t))};function useChat(e,t){const{client:n}=useContext(WeavyContext);if(!n)throw new Error("useChat must be used within an WeavyProvider");return useQuery(["chat",e],(()=>__awaiter(this,void 0,void 0,(function*(){const t=yield n.get("/api/apps/"+e);return yield t.json()}))),t)}const Chat=({uid:e})=>{const{client:t}=useContext(WeavyContext),[n,a]=useState(null);if(!t)throw new Error("Weavy Chat component must be used within an WeavyProvider");const{isLoading:o,data:s}=useChat(e,{}),{isLoading:r,data:i}=useMembers(n,{enabled:null!=n}),{isLoading:f,data:c}=useConversation(n,{enabled:null!=n});return useEffect((()=>{a(s?s.id:null)}),[s]),React.createElement("div",{className:"wy-messenger-conversation wy-scroll-y"},React.createElement("header",{className:"wy-appbars"},React.createElement("nav",{className:"wy-appbar"},React.createElement("div",null),n&&c&&React.createElement("div",{className:"wy-appbar-text"},React.createElement(Typing$1,{id:n,context:"conversation"},c.display_name)))),!o&&!s&&React.createElement("div",null,"No chat with the contextual id ",React.createElement("strong",null,e)),n&&i&&React.createElement(Messages,{id:n,members:i}))};export{UIButton as Button,Chat,Conversation$1 as Conversation,ConversationBadge,ConversationList,UIDropdown as Dropdown,UIIcon as Icon,Messenger,MessengerContext,MessengerProvider,UIOverlay as Overlay,WeavyClient,WeavyContext,WeavyProvider};
|
|
38
|
+
!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var s=typeof i;if("string"===s||"number"===s)e.push(i);else if(Array.isArray(i)){if(i.length){var a=n.apply(null,i);a&&e.push(a)}}else if("object"===s)if(i.toString===Object.prototype.toString)for(var o in i)t.call(i,o)&&i[o]&&e.push(o);else e.push(i.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(classnames);var classNames=classnames.exports;const OverlayImpl=({children:e,className:t="",isOpen:n,style:r})=>{const[i,s]=useState(!1);return React.createElement(Modal,{isOpen:n,ariaHideApp:!1,onAfterOpen:()=>{s(!0)},onRequestClose:()=>{s(!1)},className:classNames("wy-panel wy-overlay wy-transition",t,{"wy-open":i}),overlayClassName:"wy-overlays wy-viewport",contentLabel:"Example Modal",style:r},e)},UIOverlay={UI:OverlayImpl};var mdiArrowLeft="M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z",mdiArrowRight="M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z",mdiAttachment="M7.5,18A5.5,5.5 0 0,1 2,12.5A5.5,5.5 0 0,1 7.5,7H18A4,4 0 0,1 22,11A4,4 0 0,1 18,15H9.5A2.5,2.5 0 0,1 7,12.5A2.5,2.5 0 0,1 9.5,10H17V11.5H9.5A1,1 0 0,0 8.5,12.5A1,1 0 0,0 9.5,13.5H18A2.5,2.5 0 0,0 20.5,11A2.5,2.5 0 0,0 18,8.5H7.5A4,4 0 0,0 3.5,12.5A4,4 0 0,0 7.5,16.5H17V18H7.5Z",mdiBox="M15.39,14.04V14.04C15.39,12.62 14.24,11.47 12.82,11.47C11.41,11.47 10.26,12.62 10.26,14.04V14.04C10.26,15.45 11.41,16.6 12.82,16.6C14.24,16.6 15.39,15.45 15.39,14.04M17.1,14.04C17.1,16.4 15.18,18.31 12.82,18.31C11.19,18.31 9.77,17.39 9.05,16.04C8.33,17.39 6.91,18.31 5.28,18.31C2.94,18.31 1.04,16.43 1,14.11V14.11H1V7H1V7C1,6.56 1.39,6.18 1.86,6.18C2.33,6.18 2.7,6.56 2.71,7V7H2.71V10.62C3.43,10.08 4.32,9.76 5.28,9.76C6.91,9.76 8.33,10.68 9.05,12.03C9.77,10.68 11.19,9.76 12.82,9.76C15.18,9.76 17.1,11.68 17.1,14.04V14.04M7.84,14.04V14.04C7.84,12.62 6.69,11.47 5.28,11.47C3.86,11.47 2.71,12.62 2.71,14.04V14.04C2.71,15.45 3.86,16.6 5.28,16.6C6.69,16.6 7.84,15.45 7.84,14.04M22.84,16.96V16.96C22.95,17.12 23,17.3 23,17.47C23,17.73 22.88,18 22.66,18.15C22.5,18.26 22.33,18.32 22.15,18.32C21.9,18.32 21.65,18.21 21.5,18L19.59,15.47L17.7,18V18C17.53,18.21 17.28,18.32 17.03,18.32C16.85,18.32 16.67,18.26 16.5,18.15C16.29,18 16.17,17.72 16.17,17.46C16.17,17.29 16.23,17.11 16.33,16.96V16.96H16.33V16.96L18.5,14.04L16.33,11.11V11.11H16.33V11.11C16.22,10.96 16.17,10.79 16.17,10.61C16.17,10.35 16.29,10.1 16.5,9.93C16.89,9.65 17.41,9.72 17.7,10.09V10.09L19.59,12.61L21.5,10.09C21.76,9.72 22.29,9.65 22.66,9.93C22.89,10.1 23,10.36 23,10.63C23,10.8 22.95,10.97 22.84,11.11V11.11H22.84V11.11L20.66,14.04L22.84,16.96V16.96H22.84Z",mdiClose="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",mdiCloseCircle="M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",mdiCloud="M19.35,10.03C18.67,6.59 15.64,4 12,4C9.11,4 6.6,5.64 5.35,8.03C2.34,8.36 0,10.9 0,14A6,6 0 0,0 6,20H19A5,5 0 0,0 24,15C24,12.36 21.95,10.22 19.35,10.03Z",mdiDotsVertical="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",mdiDownload="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z",mdiDropbox="M3 6.2L8 9.39L13 6.2L8 3L3 6.2M13 6.2L18 9.39L23 6.2L18 3L13 6.2M3 12.55L8 15.74L13 12.55L8 9.35L3 12.55M18 9.35L13 12.55L18 15.74L23 12.55L18 9.35M8.03 16.8L13.04 20L18.04 16.8L13.04 13.61L8.03 16.8Z",mdiEmail="M20,8L12,13L4,8V6L12,11L20,6M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z",mdiFile="M13,9V3.5L18.5,9M6,2C4.89,2 4,2.89 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2H6Z",mdiFileCode="M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M6.12,15.5L9.86,19.24L11.28,17.83L8.95,15.5L11.28,13.17L9.86,11.76L6.12,15.5M17.28,15.5L13.54,11.76L12.12,13.17L14.45,15.5L12.12,17.83L13.54,19.24L17.28,15.5Z",mdiFileDocument="M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z",mdiFileExcel="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M15.8,20H14L12,16.6L10,20H8.2L11.1,15.5L8.2,11H10L12,14.4L14,11H15.8L12.9,15.5L15.8,20M13,9V3.5L18.5,9H13Z",mdiFileImage="M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M6,20H15L18,20V12L14,16L12,14L6,20M8,9A2,2 0 0,0 6,11A2,2 0 0,0 8,13A2,2 0 0,0 10,11A2,2 0 0,0 8,9Z",mdiFileMusic="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M13,13H11V18A2,2 0 0,1 9,20A2,2 0 0,1 7,18A2,2 0 0,1 9,16C9.4,16 9.7,16.1 10,16.3V11H13V13M13,9V3.5L18.5,9H13Z",mdiFilePowerpoint="M12.6,12.3H10.6V15.5H12.7C13.3,15.5 13.6,15.3 13.9,15C14.2,14.7 14.3,14.4 14.3,13.9C14.3,13.4 14.2,13.1 13.9,12.8C13.6,12.5 13.2,12.3 12.6,12.3M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M15.2,16C14.6,16.5 14.1,16.7 12.8,16.7H10.6V20H9V11H12.8C14.1,11 14.7,11.3 15.2,11.8C15.8,12.4 16,13 16,13.9C16,14.8 15.8,15.5 15.2,16M13,9V3.5L18.5,9H13Z",mdiFileVideo="M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M17,19V13L14,15.2V13H7V19H14V16.8L17,19Z",mdiFileWord="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M15.2,20H13.8L12,13.2L10.2,20H8.8L6.6,11H8.1L9.5,17.8L11.3,11H12.6L14.4,17.8L15.8,11H17.3L15.2,20M13,9V3.5L18.5,9H13Z",mdiFitToPage="M20,2H4C2.89,2 2,2.89 2,4V20C2,21.11 2.89,22 4,22H20C21.11,22 22,21.11 22,20V4C22,2.89 21.11,2 20,2M12,4L15,7H13V9H11V7H9M7,15L4,12L7,9V11H9V13H7M12,20L9,17H11V15H13V17H15M17,15V13H15V11H17V9L20,12",mdiFitToScreen="M17 4H20C21.1 4 22 4.9 22 6V8H20V6H17V4M4 8V6H7V4H4C2.9 4 2 4.9 2 6V8H4M20 16V18H17V20H20C21.1 20 22 19.1 22 18V16H20M7 18H4V16H2V18C2 19.1 2.9 20 4 20H7V18M18 8H6V16H18V8Z",mdiFolderZip="M20 6H12L10 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V8C22 6.9 21.1 6 20 6M18 12H16V14H18V16H16V18H14V16H16V14H14V12H16V10H14V8H16V10H18V12Z",mdiGoogleDrive="M7.71,3.5L1.15,15L4.58,21L11.13,9.5M9.73,15L6.3,21H19.42L22.85,15M22.28,14L15.42,2H8.58L8.57,2L15.43,14H22.28Z",mdiMagnify="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",mdiMicrosoftOnedrive="M18.21 10.29Q19 10.34 19.7 10.68 20.39 11 20.9 11.57 21.41 12.12 21.71 12.83 22 13.54 22 14.34 22 15.18 21.68 15.92 21.36 16.66 20.8 17.21 20.25 17.76 19.5 18.08 18.78 18.41 17.94 18.41H7Q5.97 18.41 5.06 18 4.15 17.61 3.47 16.94 2.79 16.26 2.4 15.35 2 14.44 2 13.41 2 12.59 2.26 11.83 2.5 11.08 3 10.45 3.44 9.82 4.08 9.35 4.72 8.88 5.5 8.63 5.87 8.5 6.21 8.5 6.56 8.43 6.93 8.41H6.94Q7.37 7.75 7.95 7.23 8.5 6.71 9.2 6.34 9.87 6 10.62 5.78 11.37 5.59 12.16 5.59 13.22 5.59 14.2 5.94 15.18 6.29 16 6.91 16.8 7.53 17.37 8.39 17.95 9.26 18.21 10.29M12.16 6.84Q11.05 6.84 10.06 7.3 9.06 7.75 8.36 8.6 8.73 8.7 9.07 8.85 9.4 9 9.73 9.2L13.71 11.58L16 10.62Q16.21 10.53 16.44 10.45 16.67 10.38 16.92 10.33 16.68 9.55 16.21 8.91 15.74 8.27 15.11 7.81 14.5 7.35 13.73 7.1 13 6.84 12.16 6.84M4 15.66L12.27 12.18L9.08 10.26Q8.59 9.97 8.06 9.81 7.5 9.66 6.95 9.66 6.19 9.66 5.5 9.96 4.84 10.26 4.34 10.77 3.84 11.29 3.54 11.97 3.25 12.65 3.25 13.41 3.25 14 3.45 14.59 3.64 15.19 4 15.66M17.94 17.16Q18.41 17.16 18.84 17 19.27 16.86 19.64 16.58L13.61 13L5.03 16.59Q5.47 16.86 5.97 17 6.47 17.16 7 17.16M20.45 15.61Q20.75 15 20.75 14.34 20.75 13.7 20.5 13.17 20.26 12.65 19.85 12.28 19.43 11.91 18.88 11.71 18.32 11.5 17.7 11.5 17.35 11.5 17 11.6 16.66 11.68 16.33 11.81 16 11.93 15.67 12.08 15.35 12.23 15.04 12.37Z",mdiMinus="M19,13H5V11H19V13Z",mdiOpenInNew="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",mdiPin="M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z",mdiPlus="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",mdiPlusCircleOutline="M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z",mdiSend="M2,21L23,12L2,3V10L17,12L2,14V21Z",mdiVideo="M17,10.5V7A1,1 0 0,0 16,6H4A1,1 0 0,0 3,7V17A1,1 0 0,0 4,18H16A1,1 0 0,0 17,17V13.5L21,17.5V6.5L17,10.5Z",Icon$1=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t){e.exports=requirePropTypes()},function(e,t){e.exports=React},function(e,t,n){n.r(t);var r=n(1),i=n(0),s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a=0,o=r.forwardRef((function(e,t){var n=e.title,i=void 0===n?null:n,o=e.description,l=void 0===o?null:o,c=e.size,u=void 0===c?null:c,d=e.color,h=void 0===d?"currentColor":d,p=e.horizontal,f=void 0===p?null:p,g=e.vertical,m=void 0===g?null:g,v=e.rotate,y=void 0===v?null:v,b=e.spin,_=void 0===b?null:b,w=e.style,E=void 0===w?{}:w,S=e.children,C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["title","description","size","color","horizontal","vertical","rotate","spin","style","children"]);a++;var A,P=null!==_&&_,x=r.Children.map(S,(function(e){var t=e;!0!==P&&(P=!0===(null===_?t.props.spin:_));var n=t.props.size;"number"==typeof u&&"number"==typeof t.props.size&&(n=t.props.size/u);var i={size:n,color:null===h?t.props.color:h,horizontal:null===f?t.props.horizontal:f,vertical:null===m?t.props.vertical:m,rotate:null===y?t.props.rotate:y,spin:null===_?t.props.spin:_,inStack:!0};return r.cloneElement(t,i)}));null!==u&&(E.width="string"==typeof u?u:1.5*u+"rem");var T,M="stack_labelledby_"+a,R="stack_describedby_"+a;if(i)A=l?M+" "+R:M;else if(T="presentation",l)throw new Error("title attribute required when description is set");return r.createElement("svg",s({ref:t,viewBox:"0 0 24 24",style:E,role:T,"aria-labelledby":A},C),i&&r.createElement("title",{id:M},i),l&&r.createElement("desc",{id:R},l),P&&r.createElement("style",null,"@keyframes spin { to { transform: rotate(360deg) } }","@keyframes spin-inverse { to { transform: rotate(-360deg) } }"),x)}));o.displayName="Stack",o.propTypes={size:i.oneOfType([i.number,i.string]),color:i.string,horizontal:i.bool,vertical:i.bool,rotate:i.number,spin:i.oneOfType([i.bool,i.number]),children:i.oneOfType([i.arrayOf(i.node),i.node]).isRequired,className:i.string,style:i.object},o.defaultProps={size:null,color:null,horizontal:null,vertical:null,rotate:null,spin:null};var l=o;n.d(t,"Icon",(function(){return d})),n.d(t,"Stack",(function(){return l}));var c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},u=0,d=r.forwardRef((function(e,t){var n=e.path,i=e.id,s=void 0===i?++u:i,a=e.title,o=void 0===a?null:a,l=e.description,d=void 0===l?null:l,h=e.size,p=void 0===h?null:h,f=e.color,g=void 0===f?"currentColor":f,m=e.horizontal,v=void 0!==m&&m,y=e.vertical,b=void 0!==y&&y,_=e.rotate,w=void 0===_?0:_,E=e.spin,S=void 0!==E&&E,C=e.style,A=void 0===C?{}:C,P=e.inStack,x=void 0!==P&&P,T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["path","id","title","description","size","color","horizontal","vertical","rotate","spin","style","inStack"]),M={},R=[];null!==p&&(x?R.push("scale("+p+")"):(A.width="string"==typeof p?p:1.5*p+"rem",A.height=A.width)),v&&R.push("scaleX(-1)"),b&&R.push("scaleY(-1)"),0!==w&&R.push("rotate("+w+"deg)"),null!==g&&(M.fill=g);var L=r.createElement("path",c({d:n,style:M},x?T:{})),I=L;R.length>0&&(A.transform=R.join(" "),A.transformOrigin="center",x&&(I=r.createElement("g",{style:A},L,r.createElement("rect",{width:"24",height:"24",fill:"transparent"}))));var k,O=I,F=!0===S||"number"!=typeof S?2:S,D=!x&&(v||b);if(F<0&&(D=!D),S&&(O=r.createElement("g",{style:{animation:"spin"+(D?"-inverse":"")+" linear "+Math.abs(F)+"s infinite",transformOrigin:"center"}},I,!(v||b||0!==w)&&r.createElement("rect",{width:"24",height:"24",fill:"transparent"}))),x)return O;var N,U="icon_labelledby_"+s,j="icon_describedby_"+s;if(o)k=d?U+" "+j:U;else if(N="presentation",d)throw new Error("title attribute required when description is set");return r.createElement("svg",c({ref:t,viewBox:"0 0 24 24",style:A,role:N,"aria-labelledby":k},T),o&&r.createElement("title",{id:U},o),d&&r.createElement("desc",{id:j},d),!x&&S&&(D?r.createElement("style",null,"@keyframes spin-inverse { to { transform: rotate(-360deg) } }"):r.createElement("style",null,"@keyframes spin { to { transform: rotate(360deg) } }")),O)}));d.displayName="Icon",d.propTypes={path:i.string.isRequired,size:i.oneOfType([i.number,i.string]),color:i.string,horizontal:i.bool,vertical:i.bool,rotate:i.number,spin:i.oneOfType([i.bool,i.number]),style:i.object,inStack:i.bool,className:i.string},d.defaultProps={size:null,color:"currentColor",horizontal:!1,vertical:!1,rotate:0,spin:!1},t.default=d}]);const iconMapping={attachment:mdiAttachment,back:mdiArrowLeft,close:mdiClose,"close-circle":mdiCloseCircle,"dots-vertical":mdiDotsVertical,download:mdiDownload,"emoticon-plus":"M 19 0 L 19 3 L 16 3 L 16 5 L 19 5 L 19 8 L 21 8 L 21 5 L 24 5 L 24 3 L 21 3 L 21 0 L 19 0 z M 12 2 C 6.5 2 2 6.5 2 12 C 2 17.5 6.5 22 12 22 C 17.5 22 22 17.5 22 12 L 20 12 C 20 16.4 16.4 20 12 20 C 7.6 20 4 16.4 4 12 C 4 7.6 7.6 4 12 4 L 12 2 z M 8.5 8 C 7.7 8 7 8.7 7 9.5 C 7 10.3 7.7 11 8.5 11 C 9.3 11 10 10.3 10 9.5 C 10 8.7 9.3 8 8.5 8 z M 15.5 8 C 14.7 8 14 8.7 14 9.5 C 14 10.3 14.7 11 15.5 11 C 16.3 11 17 10.3 17 9.5 C 17 8.7 16.3 8 15.5 8 z M 6.9 14 C 7.7 16 9.7 17.5 12 17.5 C 14.3 17.5 16.3 16 17.1 14 L 6.9 14 z","fit-screen":mdiFitToScreen,"fit-width":mdiFitToPage,magnify:mdiMagnify,minus:mdiMinus,next:mdiArrowRight,"open-in-new":mdiOpenInNew,pin:mdiPin,plus:mdiPlus,"plus-circle-outline":mdiPlusCircleOutline,previous:mdiArrowLeft,send:mdiSend,video:mdiVideo,email:mdiEmail,file:mdiFile,"file-music":mdiFileMusic,"file-image":mdiFileImage,"file-video":mdiFileVideo,"file-code":mdiFileCode,"file-xml":mdiFileCode,"file-document":mdiFileDocument,"file-word":mdiFileWord,"file-excel":mdiFileExcel,"file-pdf":mdiFileDocument,"file-powerpoint":mdiFilePowerpoint,"file-compressed":mdiFolderZip,dropbox:mdiDropbox,ondedrive:mdiMicrosoftOnedrive,box:mdiBox,"google-drive":mdiGoogleDrive,zoom:"m12 2c-5.6 0-10 4.5-10 10 0 5.6 4.5 10 10 10 5.5 0 9.9-4.5 9.9-10 .1-5.6-4.4-10-9.9-10zm2.6 13.1c0 .2-.1.3-.3.3h-6.9c-1.1 0-1.9-.8-1.9-1.9v-4.6c0-.2.1-.3.3-.3h6.9c1 0 1.9.8 1.9 1.9zm3.8.1c0 .4-.2.4-.5.2l-2.8-2.1v-2.6l2.8-2.1c.2-.2.5-.1.5.2z",cloud:mdiCloud};function getIconMapping(e){let[t]=e.split("+");return t in iconMapping?iconMapping[t]:""}function getIconOverlay(e){let[,t]=e.split("+");return t in iconMapping?iconMapping[t]:""}const Icon=e=>{var{name:t,color:n="",size:r}=e,i=__rest(e,["name","color","size"]);let s=getIconMapping(t),a=getIconOverlay(t);return React.createElement("span",Object.assign({className:"wy-icon"+(n?" wy-icon-"+n:""),style:{width:r&&1.5*r+"rem",height:r&&1.5*r+"rem"}},i),s?React.createElement(Icon$1.Icon,{color:n,path:s,size:r}):t,a&&React.createElement(Icon$1.Icon,{color:n,path:a,className:"wy-icon-overlay",size:(r||1)/2}))},UIIcon={UI:Icon},Button=e=>{var{active:t=!1,type:n="button",onClick:r,className:i="",children:s}=e,a=__rest(e,["active","type","onClick","className","children"]);let o=1===Children.count(s)&&Children.toArray(s).pop(),l=classNames("wy-button",i,{"wy-active":t,"wy-button-icon":(null==o?void 0:o.type)===UIIcon.UI});return React.createElement("button",Object.assign({type:n,className:l,onClick:r},a),s)},UIButton={UI:Button},SpinnerImpl=({spin:e=!0,size:t=24,overlay:n=!1})=>React.createElement("svg",{className:classNames("wy-spinner",{"wy-spin":e,"wy-spinner-overlay":n}),width:t,height:t,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("circle",{fill:"none",cx:"12",cy:"12",r:"11",strokeLinecap:"butt",strokeWidth:"2"})),UISpinner={UI:SpinnerImpl};function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pdf={exports:{}},_nodeResolve_empty={},_nodeResolve_empty$1=Object.freeze({__proto__:null,default:_nodeResolve_empty}),require$$5=getAugmentedNamespace(_nodeResolve_empty$1),hasRequiredPdf;function requirePdf(){return hasRequiredPdf||(hasRequiredPdf=1,function(module,exports){var factory;globalThis,factory=()=>(()=>{var __webpack_modules__=[,(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.UNSUPPORTED_FEATURES=t.TextRenderingMode=t.StreamType=t.RenderingIntentFlag=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FontType=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMode=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.arrayByteLength=u,t.arraysToBytes=function(e){const t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];let n=0;for(let r=0;r<t;r++)n+=u(e[r]);let r=0;const i=new Uint8Array(n);for(let n=0;n<t;n++){let t=e[n];t instanceof Uint8Array||(t="string"==typeof t?c(t):new Uint8Array(t));const s=t.byteLength;i.set(t,r),r+=s}return i},t.assert=function(e,t){e||a(t)},t.bytesToString=function(e){"object"==typeof e&&null!==e&&void 0!==e.length||a("Invalid argument for bytesToString");const t=e.length,n=8192;if(t<n)return String.fromCharCode.apply(null,e);const r=[];for(let i=0;i<t;i+=n){const s=Math.min(i+n,t),a=e.subarray(i,s);r.push(String.fromCharCode.apply(null,a))}return r.join("")},t.createPromiseCapability=function(){const e=Object.create(null);let t=!1;return Object.defineProperty(e,"settled",{get:()=>t}),e.promise=new Promise((function(n,r){e.resolve=function(e){t=!0,n(e)},e.reject=function(e){t=!0,r(e)}})),e},t.createValidAbsoluteUrl=function(e,t=null,n=null){if(!e)return null;try{if(n&&"string"==typeof e){if(n.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);t&&t.length>=2&&(e=`http://${e}`)}if(n.tryConvertEncoding)try{e=f(e)}catch(e){}}const r=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(r))return r}catch(e){}return null},t.escapeString=function(e){return e.replace(/([()\\\n\r])/g,(e=>"\n"===e?"\\n":"\r"===e?"\\r":`\\${e}`))},t.getModificationDate=function(e=new Date){return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getVerbosityLevel=function(){return i},t.info=function(e){i>=r.INFOS&&console.log(`Info: ${e}`)},t.isArrayBuffer=function(e){return"object"==typeof e&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0},t.isAscii=function(e){return/^[\x00-\x7F]*$/.test(e)},t.objectFromMap=function(e){const t=Object.create(null);for(const[n,r]of e)t[n]=r;return t},t.objectSize=function(e){return Object.keys(e).length},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(i=e)},t.shadow=o,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=c,t.stringToPDFString=function(e){if(e[0]>="ï"){let t;if("þ"===e[0]&&"ÿ"===e[1]?t="utf-16be":"ÿ"===e[0]&&"þ"===e[1]?t="utf-16le":"ï"===e[0]&&"»"===e[1]&&"¿"===e[2]&&(t="utf-8"),t)try{const n=new TextDecoder(t,{fatal:!0}),r=c(e);return n.decode(r)}catch(e){s(`stringToPDFString: "${e}".`)}}const t=[];for(let n=0,r=e.length;n<r;n++){const r=p[e.charCodeAt(n)];t.push(r?String.fromCharCode(r):e.charAt(n))}return t.join("")},t.stringToUTF16BEString=function(e){const t=["þÿ"];for(let n=0,r=e.length;n<r;n++){const r=e.charCodeAt(n);t.push(String.fromCharCode(r>>8&255),String.fromCharCode(255&r))}return t.join("")},t.stringToUTF8String=f,t.unreachable=a,t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=s,n(2),t.IDENTITY_MATRIX=[1,0,0,1,0,0],t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],t.LINE_FACTOR=1.35,t.LINE_DESCENT_FACTOR=.35,t.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},t.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},t.AnnotationEditorPrefix="pdfjs_internal_editor_",t.AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,INK:15},t.AnnotationEditorParamsType={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13},t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},t.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},t.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},t.AnnotationReplyType={GROUP:"Group",REPLY:"R"},t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},t.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},t.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},t.PageActionEventType={O:"PageOpen",C:"PageClose"},t.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},t.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};const r={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=r,t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},t.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},t.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"},t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let i=r.WARNINGS;function s(e){i>=r.WARNINGS&&console.log(`Warning: ${e}`)}function a(e){throw new Error(e)}function o(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}const l=function(){function e(t,n){this.constructor===e&&a("Cannot initialize BaseException."),this.message=t,this.name=n}return e.prototype=new Error,e.constructor=e,e}();function c(e){"string"!=typeof e&&a("Invalid argument for stringToBytes");const t=e.length,n=new Uint8Array(t);for(let r=0;r<t;++r)n[r]=255&e.charCodeAt(r);return n}function u(e){return void 0!==e.length?e.length:void 0!==e.byteLength?e.byteLength:void a("Invalid argument for arrayByteLength")}t.BaseException=l,t.PasswordException=class extends l{constructor(e,t){super(e,"PasswordException"),this.code=t}},t.UnknownErrorException=class extends l{constructor(e,t){super(e,"UnknownErrorException"),this.details=t}},t.InvalidPDFException=class extends l{constructor(e){super(e,"InvalidPDFException")}},t.MissingPDFException=class extends l{constructor(e){super(e,"MissingPDFException")}},t.UnexpectedResponseException=class extends l{constructor(e,t){super(e,"UnexpectedResponseException"),this.status=t}},t.FormatError=class extends l{constructor(e){super(e,"FormatError")}},t.AbortException=class extends l{constructor(e){super(e,"AbortException")}},t.FeatureTest=class{static get isLittleEndian(){return o(this,"isLittleEndian",function(){const e=new Uint8Array(4);return e[0]=1,1===new Uint32Array(e.buffer,0,1)[0]}())}static get isEvalSupported(){return o(this,"isEvalSupported",function(){try{return new Function(""),!0}catch(e){return!1}}())}static get isOffscreenCanvasSupported(){return o(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}};const d=[...Array(256).keys()].map((e=>e.toString(16).padStart(2,"0")));class h{static makeHexColor(e,t,n){return`#${d[e]}${d[t]}${d[n]}`}static scaleMinMax(e,t){let n;e[0]?(e[0]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[3],t[3]*=e[3]):(n=t[0],t[0]=t[2],t[2]=n,n=t[1],t[1]=t[3],t[3]=n,e[1]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const n=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n]}static getAxialAlignedBoundingBox(e,t){const n=h.applyTransform(e,t),r=h.applyTransform(e.slice(2,4),t),i=h.applyTransform([e[0],e[3]],t),s=h.applyTransform([e[2],e[1]],t);return[Math.min(n[0],r[0],i[0],s[0]),Math.min(n[1],r[1],i[1],s[1]),Math.max(n[0],r[0],i[0],s[0]),Math.max(n[1],r[1],i[1],s[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static apply3dTransform(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],s=e[2]*t[1]+e[3]*t[3],a=(n+s)/2,o=Math.sqrt((n+s)**2-4*(n*s-i*r))/2,l=a+o||1,c=a-o||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(e){const t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){const n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),r=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(n>r)return null;const i=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),s=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return i>s?null:[n,i,r,s]}static bezierBoundingBox(e,t,n,r,i,s,a,o){const l=[],c=[[],[]];let u,d,h,p,f,g,m,v;for(let c=0;c<2;++c)if(0===c?(d=6*e-12*n+6*i,u=-3*e+9*n-9*i+3*a,h=3*n-3*e):(d=6*t-12*r+6*s,u=-3*t+9*r-9*s+3*o,h=3*r-3*t),Math.abs(u)<1e-12){if(Math.abs(d)<1e-12)continue;p=-h/d,0<p&&p<1&&l.push(p)}else m=d*d-4*h*u,v=Math.sqrt(m),m<0||(f=(-d+v)/(2*u),0<f&&f<1&&l.push(f),g=(-d-v)/(2*u),0<g&&g<1&&l.push(g));let y,b=l.length;const _=b;for(;b--;)p=l[b],y=1-p,c[0][b]=y*y*y*e+3*y*y*p*n+3*y*p*p*i+p*p*p*a,c[1][b]=y*y*y*t+3*y*y*p*r+3*y*p*p*s+p*p*p*o;return c[0][_]=e,c[1][_]=t,c[0][_+1]=a,c[1][_+1]=o,c[0].length=c[1].length=_+2,[Math.min(...c[0]),Math.min(...c[1]),Math.max(...c[0]),Math.max(...c[1])]}}t.Util=h;const p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function f(e){return decodeURIComponent(escape(e))}},(e,t,n)=>{n(3)},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;const n=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=n},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.build=exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(5),_display_utils=__w_pdfjs_require__(8),_font_loader=__w_pdfjs_require__(11),_canvas=__w_pdfjs_require__(12),_worker_options=__w_pdfjs_require__(15),_is_node=__w_pdfjs_require__(3),_message_handler=__w_pdfjs_require__(16),_metadata=__w_pdfjs_require__(17),_optional_content_config=__w_pdfjs_require__(18),_transport_stream=__w_pdfjs_require__(19),_xfa_text=__w_pdfjs_require__(20);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100;let DefaultCanvasFactory=_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;let DefaultCMapReaderFactory=_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;let DefaultStandardFontDataFactory=_display_utils.DOMStandardFontDataFactory,createPDFNetworkStream;if(exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory,_is_node.isNodeJS){const{NodeCanvasFactory:e,NodeCMapReaderFactory:t,NodeStandardFontDataFactory:n}=__w_pdfjs_require__(21);exports.DefaultCanvasFactory=DefaultCanvasFactory=e,exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory=t,exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory=n}function setPDFNetworkStreamFactory(e){createPDFNetworkStream=e}function getDocument(e){const t=new PDFDocumentLoadingTask;let n;if("string"==typeof e||e instanceof URL)n={url:e};else if((0,_util.isArrayBuffer)(e))n={data:e};else if(e instanceof PDFDataRangeTransport)n={range:e};else{if("object"!=typeof e)throw new Error("Invalid parameter in getDocument, need either string, URL, TypedArray, or parameter object.");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");n=e}const r=Object.create(null);let i=null,s=null;for(const e in n){const t=n[e];switch(e){case"url":if("undefined"!=typeof window)try{r[e]=new URL(t,window.location).href;continue}catch(e){(0,_util.warn)(`Cannot create valid URL: "${e}".`)}else if("string"==typeof t||t instanceof URL){r[e]=t.toString();continue}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");case"range":i=t;continue;case"worker":s=t;continue;case"data":if(_is_node.isNodeJS&&"undefined"!=typeof Buffer&&t instanceof Buffer)r[e]=new Uint8Array(t);else{if(t instanceof Uint8Array)break;if("string"==typeof t)r[e]=(0,_util.stringToBytes)(t);else if("object"!=typeof t||null===t||isNaN(t.length)){if(!(0,_util.isArrayBuffer)(t))throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.");r[e]=new Uint8Array(t)}else r[e]=new Uint8Array(t)}continue}r[e]=t}if(r.CMapReaderFactory=r.CMapReaderFactory||DefaultCMapReaderFactory,r.StandardFontDataFactory=r.StandardFontDataFactory||DefaultStandardFontDataFactory,r.ignoreErrors=!0!==r.stopAtErrors,r.fontExtraProperties=!0===r.fontExtraProperties,r.pdfBug=!0===r.pdfBug,r.enableXfa=!0===r.enableXfa,(!Number.isInteger(r.rangeChunkSize)||r.rangeChunkSize<1)&&(r.rangeChunkSize=DEFAULT_RANGE_CHUNK_SIZE),("string"!=typeof r.docBaseUrl||(0,_display_utils.isDataScheme)(r.docBaseUrl))&&(r.docBaseUrl=null),(!Number.isInteger(r.maxImageSize)||r.maxImageSize<-1)&&(r.maxImageSize=-1),"string"!=typeof r.cMapUrl&&(r.cMapUrl=null),"string"!=typeof r.standardFontDataUrl&&(r.standardFontDataUrl=null),"boolean"!=typeof r.useWorkerFetch&&(r.useWorkerFetch=r.CMapReaderFactory===_display_utils.DOMCMapReaderFactory&&r.StandardFontDataFactory===_display_utils.DOMStandardFontDataFactory),"boolean"!=typeof r.isEvalSupported&&(r.isEvalSupported=!0),"boolean"!=typeof r.disableFontFace&&(r.disableFontFace=_is_node.isNodeJS),"boolean"!=typeof r.useSystemFonts&&(r.useSystemFonts=!_is_node.isNodeJS&&!r.disableFontFace),"object"==typeof r.ownerDocument&&null!==r.ownerDocument||(r.ownerDocument=globalThis.document),"boolean"!=typeof r.disableRange&&(r.disableRange=!1),"boolean"!=typeof r.disableStream&&(r.disableStream=!1),"boolean"!=typeof r.disableAutoFetch&&(r.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(r.verbosity),!s){const e={verbosity:r.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};s=e.port?PDFWorker.fromPort(e):new PDFWorker(e),t._worker=s}const a=t.docId;return s.promise.then((function(){if(t.destroyed)throw new Error("Loading aborted");const e=_fetchDocument(s,r,i,a),n=new Promise((function(e){let t;i?t=new _transport_stream.PDFDataTransportStream({length:r.length,initialData:r.initialData,progressiveDone:r.progressiveDone,contentDispositionFilename:r.contentDispositionFilename,disableRange:r.disableRange,disableStream:r.disableStream},i):r.data||(t=createPDFNetworkStream({url:r.url,length:r.length,httpHeaders:r.httpHeaders,withCredentials:r.withCredentials,rangeChunkSize:r.rangeChunkSize,disableRange:r.disableRange,disableStream:r.disableStream})),e(t)}));return Promise.all([e,n]).then((function([e,n]){if(t.destroyed)throw new Error("Loading aborted");const i=new _message_handler.MessageHandler(a,e,s.port),o=new WorkerTransport(i,t,n,r);t._transport=o,i.send("Ready",null)}))})).catch(t._capability.reject),t}async function _fetchDocument(e,t,n,r){if(e.destroyed)throw new Error("Worker was destroyed");n&&(t.length=n.length,t.initialData=n.initialData,t.progressiveDone=n.progressiveDone,t.contentDispositionFilename=n.contentDispositionFilename);const i=await e.messageHandler.sendWithPromise("GetDocRequest",{docId:r,apiVersion:"2.16.105",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,docBaseUrl:t.docBaseUrl,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported,fontExtraProperties:t.fontExtraProperties,enableXfa:t.enableXfa,useSystemFonts:t.useSystemFonts,cMapUrl:t.useWorkerFetch?t.cMapUrl:null,standardFontDataUrl:t.useWorkerFetch?t.standardFontDataUrl:null});if(t.data&&(t.data=null),e.destroyed)throw new Error("Worker was destroyed");return i}class PDFDocumentLoadingTask{static#e=0;constructor(){this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+PDFDocumentLoadingTask.#e++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0,await(this._transport?.destroy()),this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(e,t,n=!1,r=null){this.length=e,this.initialData=t,this.progressiveDone=n,this.contentDispositionFilename=r,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,t){for(const n of this._rangeListeners)n(e,t)}onDataProgress(e,t){this._readyCapability.promise.then((()=>{for(const n of this._progressListeners)n(e,t)}))}onDataProgressiveRead(e){this._readyCapability.promise.then((()=>{for(const t of this._progressiveReadListeners)t(e)}))}onDataProgressiveDone(){this._readyCapability.promise.then((()=>{for(const e of this._progressiveDoneListeners)e()}))}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(e,t){this._pdfInfo=e,this._transport=t,Object.defineProperty(this,"fingerprint",{get(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.fingerprint`, please use `PDFDocumentProxy.fingerprints` instead."),this.fingerprints[0]}}),Object.defineProperty(this,"getStats",{value:async()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getStats`, please use the `PDFDocumentProxy.stats`-getter instead."),this.stats||{streamTypes:{},fontTypes:{}})})}get annotationStorage(){return this._transport.annotationStorage}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get stats(){return this._transport.stats}get isPureXfa(){return!!this._transport._htmlForXfa}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(e=!1){return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}saveDocument(){return this._transport.annotationStorage.size<=0&&(0,_display_utils.deprecated)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."),this._transport.saveDocument()}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(e,t,n,r,i=!1){this._pageIndex=e,this._pageInfo=t,this._ownerDocument=r,this._transport=n,this._stats=i?new _display_utils.StatTimer:null,this._pdfBug=i,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this._bitmaps=new Set,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this._annotationPromises=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:e,rotation:t=this.rotate,offsetX:n=0,offsetY:r=0,dontFlip:i=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:t,offsetX:n,offsetY:r,dontFlip:i})}getAnnotations({intent:e="display"}={}){const t=this._transport.getRenderingIntent(e);let n=this._annotationPromises.get(t.cacheKey);return n||(n=this._transport.getAnnotations(this._pageIndex,t.renderingIntent),this._annotationPromises.set(t.cacheKey,n),n=n.then((e=>{for(const t of e)void 0!==t.titleObj&&Object.defineProperty(t,"title",{get:()=>((0,_display_utils.deprecated)("`title`-property on annotation, please use `titleObj` instead."),t.titleObj.str)}),void 0!==t.contentsObj&&Object.defineProperty(t,"contents",{get:()=>((0,_display_utils.deprecated)("`contents`-property on annotation, please use `contentsObj` instead."),t.contentsObj.str)});return e}))),n}getJSActions(){return this._jsActionsPromise||=this._transport.getPageJSActions(this._pageIndex)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:e,viewport:t,intent:n="display",annotationMode:r=_util.AnnotationMode.ENABLE,transform:i=null,imageLayer:s=null,canvasFactory:a=null,background:o=null,optionalContentConfigPromise:l=null,annotationCanvasMap:c=null,pageColors:u=null,printAnnotationStorage:d=null}){void 0!==arguments[0]?.renderInteractiveForms&&((0,_display_utils.deprecated)("render no longer accepts the `renderInteractiveForms`-option, please use the `annotationMode`-option instead."),!0===arguments[0].renderInteractiveForms&&r===_util.AnnotationMode.ENABLE&&(r=_util.AnnotationMode.ENABLE_FORMS)),void 0!==arguments[0]?.includeAnnotationStorage&&((0,_display_utils.deprecated)("render no longer accepts the `includeAnnotationStorage`-option, please use the `annotationMode`-option instead."),!0===arguments[0].includeAnnotationStorage&&r===_util.AnnotationMode.ENABLE&&(r=_util.AnnotationMode.ENABLE_STORAGE)),this._stats&&this._stats.time("Overall");const h=this._transport.getRenderingIntent(n,r,d);this.pendingCleanup=!1,l||(l=this._transport.getOptionalContentConfig());let p=this._intentStates.get(h.cacheKey);p||(p=Object.create(null),this._intentStates.set(h.cacheKey,p)),p.streamReaderCancelTimeout&&(clearTimeout(p.streamReaderCancelTimeout),p.streamReaderCancelTimeout=null);const f=a||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),g=!!(h.renderingIntent&_util.RenderingIntentFlag.PRINT);p.displayReadyCapability||(p.displayReadyCapability=(0,_util.createPromiseCapability)(),p.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(h));const m=e=>{p.renderTasks.delete(v),(this.cleanupAfterRender||g)&&(this.pendingCleanup=!0),this._tryCleanup(),e?(v.capability.reject(e),this._abortOperatorList({intentState:p,reason:e instanceof Error?e:new Error(e)})):v.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},v=new InternalRenderTask({callback:m,params:{canvasContext:e,viewport:t,transform:i,imageLayer:s,background:o},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:c,operatorList:p.operatorList,pageIndex:this._pageIndex,canvasFactory:f,useRequestAnimationFrame:!g,pdfBug:this._pdfBug,pageColors:u});(p.renderTasks||=new Set).add(v);const y=v.task;return Promise.all([p.displayReadyCapability.promise,l]).then((([e,t])=>{this.pendingCleanup?m():(this._stats&&this._stats.time("Rendering"),v.initializeGraphics({transparency:e,optionalContentConfig:t}),v.operatorListChanged())})).catch(m),y}getOperatorList({intent:e="display",annotationMode:t=_util.AnnotationMode.ENABLE,printAnnotationStorage:n=null}={}){const r=this._transport.getRenderingIntent(e,t,n,!0);let i,s=this._intentStates.get(r.cacheKey);return s||(s=Object.create(null),this._intentStates.set(r.cacheKey,s)),s.opListReadCapability||(i=Object.create(null),i.operatorListChanged=function(){s.operatorList.lastChunk&&(s.opListReadCapability.resolve(s.operatorList),s.renderTasks.delete(i))},s.opListReadCapability=(0,_util.createPromiseCapability)(),(s.renderTasks||=new Set).add(i),s.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(r)),s.opListReadCapability.promise}streamTextContent({disableCombineTextItems:e=!1,includeMarkedContent:t=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,combineTextItems:!0!==e,includeMarkedContent:!0===t},{highWaterMark:100,size:e=>e.items.length})}getTextContent(e={}){if(this._transport._htmlForXfa)return this.getXfa().then((e=>_xfa_text.XfaText.textContent(e)));const t=this.streamTextContent(e);return new Promise((function(e,n){const r=t.getReader(),i={items:[],styles:Object.create(null)};!function t(){r.read().then((function({value:n,done:r}){r?e(i):(Object.assign(i.styles,n.styles),i.items.push(...n.items),t())}),n)}()}))}getStructTree(){return this._structTreePromise||=this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const e=[];for(const t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:new Error("Page was destroyed."),force:!0}),!t.opListReadCapability)for(const n of t.renderTasks)e.push(n.completed),n.cancel();this.objs.clear();for(const e of this._bitmaps)e.close();return this._bitmaps.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,this.pendingCleanup=!1,Promise.all(e)}cleanup(e=!1){return this.pendingCleanup=!0,this._tryCleanup(e)}_tryCleanup(e=!1){if(!this.pendingCleanup)return!1;for(const{renderTasks:e,operatorList:t}of this._intentStates.values())if(e.size>0||!t.lastChunk)return!1;this._intentStates.clear(),this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,e&&this._stats&&(this._stats=new _display_utils.StatTimer);for(const e of this._bitmaps)e.close();return this._bitmaps.clear(),this.pendingCleanup=!1,!0}_startRenderPage(e,t){const n=this._intentStates.get(t);n&&(this._stats&&this._stats.timeEnd("Page Request"),n.displayReadyCapability&&n.displayReadyCapability.resolve(e))}_renderPageChunk(e,t){for(let n=0,r=e.length;n<r;n++)t.operatorList.fnArray.push(e.fnArray[n]),t.operatorList.argsArray.push(e.argsArray[n]);t.operatorList.lastChunk=e.lastChunk,t.operatorList.separateAnnots=e.separateAnnots;for(const e of t.renderTasks)e.operatorListChanged();e.lastChunk&&this._tryCleanup()}_pumpOperatorList({renderingIntent:e,cacheKey:t,annotationStorageMap:n}){const r=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:e,cacheKey:t,annotationStorage:n}).getReader(),i=this._intentStates.get(t);i.streamReader=r;const s=()=>{r.read().then((({value:e,done:t})=>{t?i.streamReader=null:this._transport.destroyed||(this._renderPageChunk(e,i),s())}),(e=>{if(i.streamReader=null,!this._transport.destroyed){if(i.operatorList){i.operatorList.lastChunk=!0;for(const e of i.renderTasks)e.operatorListChanged();this._tryCleanup()}if(i.displayReadyCapability)i.displayReadyCapability.reject(e);else{if(!i.opListReadCapability)throw e;i.opListReadCapability.reject(e)}}}))};s()}_abortOperatorList({intentState:e,reason:t,force:n=!1}){if(e.streamReader){if(!n){if(e.renderTasks.size>0)return;if(t instanceof _display_utils.RenderingCancelledException)return void(e.streamReaderCancelTimeout=setTimeout((()=>{this._abortOperatorList({intentState:e,reason:t,force:!0}),e.streamReaderCancelTimeout=null}),RENDERING_CANCELLED_TIMEOUT))}if(e.streamReader.cancel(new _util.AbortException(t.message)).catch((()=>{})),e.streamReader=null,!this._transport.destroyed){for(const[t,n]of this._intentStates)if(n===e){this._intentStates.delete(t);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(){this._listeners=[],this._deferred=Promise.resolve()}postMessage(e,t){const n={data:structuredClone(e,t)};this._deferred.then((()=>{for(const e of this._listeners)e.call(this,n)}))}addEventListener(e,t){this._listeners.push(t)}removeEventListener(e,t){const n=this._listeners.indexOf(t);this._listeners.splice(n,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_is_node.isNodeJS&&"function"==typeof commonjsRequire)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"==typeof document){const e=document?.currentScript?.src;e&&(PDFWorkerUtil.fallbackWorkerSrc=e.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(e,t){let n;try{if(n=new URL(e),!n.origin||"null"===n.origin)return!1}catch(e){return!1}const r=new URL(t,n);return n.origin===r.origin},PDFWorkerUtil.createCDNWrapper=function(e){const t=`importScripts("${e}");`;return URL.createObjectURL(new Blob([t]))};class PDFWorker{static#t=new WeakMap;constructor({name:e=null,port:t=null,verbosity:n=(0,_util.getVerbosityLevel)()}={}){if(t&&PDFWorker.#t.has(t))throw new Error("Cannot use more than one PDFWorker per port.");if(this.name=e,this.destroyed=!1,this.verbosity=n,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,t)return PDFWorker.#t.set(t,this),void this._initializeFromPort(t);this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve()}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:e}=PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,e)||(e=PDFWorkerUtil.createCDNWrapper(new URL(e,window.location).href));const t=new Worker(e),n=new _message_handler.MessageHandler("main","worker",t),r=()=>{t.removeEventListener("error",i),n.destroy(),t.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},i=()=>{this._webWorker||r()};t.addEventListener("error",i),n.on("test",(e=>{t.removeEventListener("error",i),this.destroyed?r():e?(this._messageHandler=n,this._port=t,this._webWorker=t,this._readyCapability.resolve(),n.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),n.destroy(),t.terminate())})),n.on("ready",(e=>{if(t.removeEventListener("error",i),this.destroyed)r();else try{s()}catch(e){this._setupFakeWorker()}}));const s=()=>{const e=new Uint8Array;n.send("test",e,[e.buffer])};return void s()}catch(e){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then((e=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const t=new LoopbackPort;this._port=t;const n="fake"+PDFWorkerUtil.fakeWorkerId++,r=new _message_handler.MessageHandler(n+"_worker",n,t);e.setup(r,t);const i=new _message_handler.MessageHandler(n,n+"_worker",t);this._messageHandler=i,this._readyCapability.resolve(),i.send("configure",{verbosity:this.verbosity})})).catch((e=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${e.message}".`))}))}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),PDFWorker.#t.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(e){if(!e?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return this.#t.has(e.port)?this.#t.get(e.port):new PDFWorker(e)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch(e){return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS&&"function"==typeof commonjsRequire){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}exports.PDFWorker=PDFWorker,PDFWorker.getWorkerSrc=function(){return(0,_display_utils.deprecated)("`PDFWorker.getWorkerSrc()`, please use `PDFWorker.workerSrc` instead."),this.workerSrc};class WorkerTransport{#n=null;#r=new Map;#i=new Map;#s=null;constructor(e,t,n,r){this.messageHandler=e,this.loadingTask=t,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:t.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:r.ownerDocument,styleElement:r.styleElement}),this._params=r,r.useWorkerFetch||(this.CMapReaderFactory=new r.CMapReaderFactory({baseUrl:r.cMapUrl,isCompressed:r.cMapPacked}),this.StandardFontDataFactory=new r.StandardFontDataFactory({baseUrl:r.standardFontDataUrl})),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}get stats(){return this.#n}getRenderingIntent(e,t=_util.AnnotationMode.ENABLE,n=null,r=!1){let i=_util.RenderingIntentFlag.DISPLAY,s=null;switch(e){case"any":i=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":i=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${e}`)}switch(t){case _util.AnnotationMode.DISABLE:i+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:i+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:i+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,s=(i&_util.RenderingIntentFlag.PRINT&&n instanceof _annotation_storage.PrintAnnotationStorage?n:this.annotationStorage).serializable;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${t}`)}return r&&(i+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:i,cacheKey:`${i}_${_annotation_storage.AnnotationStorage.getHash(s)}`,annotationStorageMap:s}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));const e=[];for(const t of this.#r.values())e.push(t._destroy());this.#r.clear(),this.#i.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const t=this.messageHandler.sendWithPromise("Terminate",null);return e.push(t),Promise.all(e).then((()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#s=null,this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null,this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:t}=this;e.on("GetReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=e=>{this._lastProgress={loaded:e.loaded,total:e.total}},t.onPull=()=>{this._fullReader.read().then((function({value:e,done:n}){n?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{this._fullReader.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}})),e.on("ReaderHeadersReady",(e=>{const n=(0,_util.createPromiseCapability)(),r=this._fullReader;return r.headersReady.then((()=>{r.isStreamingSupported&&r.isRangeSupported||(this._lastProgress&&t.onProgress?.(this._lastProgress),r.onProgress=e=>{t.onProgress?.({loaded:e.loaded,total:e.total})}),n.resolve({isStreamingSupported:r.isStreamingSupported,isRangeSupported:r.isRangeSupported,contentLength:r.contentLength})}),n.reject),n.promise})),e.on("GetRangeReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const n=this._networkStream.getRangeReader(e.begin,e.end);n?(t.onPull=()=>{n.read().then((function({value:e,done:n}){n?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{n.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}):t.close()})),e.on("GetDoc",(({pdfInfo:e})=>{this._numPages=e.numPages,this._htmlForXfa=e.htmlForXfa,delete e.htmlForXfa,t._capability.resolve(new PDFDocumentProxy(e,this))})),e.on("DocException",(function(e){let n;switch(e.name){case"PasswordException":n=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":n=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":n=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":n=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":n=new _util.UnknownErrorException(e.message,e.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}t._capability.reject(n)})),e.on("PasswordRequest",(e=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),t.onPassword){const n=e=>{e instanceof Error?this._passwordCapability.reject(e):this._passwordCapability.resolve({password:e})};try{t.onPassword(n,e.code)}catch(e){this._passwordCapability.reject(e)}}else this._passwordCapability.reject(new _util.PasswordException(e.message,e.code));return this._passwordCapability.promise})),e.on("DataLoaded",(e=>{t.onProgress?.({loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(e=>{this.destroyed||this.#r.get(e.pageIndex)._startRenderPage(e.transparency,e.cacheKey)})),e.on("commonobj",(([t,n,r])=>{if(!this.destroyed&&!this.commonObjs.has(t))switch(n){case"Font":const i=this._params;if("error"in r){const e=r.error;(0,_util.warn)(`Error during font loading: ${e}`),this.commonObjs.resolve(t,e);break}let s=null;i.pdfBug&&globalThis.FontInspector?.enabled&&(s={registerFont(e,t){globalThis.FontInspector.fontAdded(e,t)}});const a=new _font_loader.FontFaceObject(r,{isEvalSupported:i.isEvalSupported,disableFontFace:i.disableFontFace,ignoreErrors:i.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:s});this.fontLoader.bind(a).catch((n=>e.sendWithPromise("FontFallback",{id:t}))).finally((()=>{!i.fontExtraProperties&&a.data&&(a.data=null),this.commonObjs.resolve(t,a)}));break;case"FontPath":case"Image":this.commonObjs.resolve(t,r);break;default:throw new Error(`Got unknown common object type ${n}`)}})),e.on("obj",(([e,t,n,r])=>{if(this.destroyed)return;const i=this.#r.get(t);if(!i.objs.has(e))switch(n){case"Image":i.objs.resolve(e,r);const t=8e6;if(r){let e;if(r.bitmap){const{bitmap:t,width:n,height:s}=r;e=n*s*4,i._bitmaps.add(t)}else e=r.data?.length||0;e>t&&(i.cleanupAfterRender=!0)}break;case"Pattern":i.objs.resolve(e,r);break;default:throw new Error(`Got unknown object type ${n}`)}})),e.on("DocProgress",(e=>{this.destroyed||t.onProgress?.({loaded:e.loaded,total:e.total})})),e.on("DocStats",(e=>{this.destroyed||(this.#n=Object.freeze({streamTypes:Object.freeze(e.streamTypes),fontTypes:Object.freeze(e.fontTypes)}))})),e.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),e.on("FetchBuiltInCMap",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.CMapReaderFactory?this.CMapReaderFactory.fetch(e):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.")))),e.on("FetchStandardFontData",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.StandardFontDataFactory?this.StandardFontDataFactory.fetch(e):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))))}_onUnsupportedFeature({featureId:e}){this.destroyed||this.loadingTask.onUnsupportedFeature?.(e)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));const t=e-1,n=this.#i.get(t);if(n)return n;const r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then((e=>{if(this.destroyed)throw new Error("Transport destroyed");const n=new PDFPageProxy(t,e,this,this._params.ownerDocument,this._params.pdfBug);return this.#r.set(t,n),n}));return this.#i.set(t,r),r}getPageIndex(e){return"object"!=typeof e||null===e||!Number.isInteger(e.num)||e.num<0||!Number.isInteger(e.gen)||e.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen})}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}saveDocument(){return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:this._fullReader?.filename??null}).finally((()=>{this.annotationStorage.resetModified()}))}getFieldObjects(){return this._getFieldObjectsPromise||=this.messageHandler.sendWithPromise("GetFieldObjects",null)}hasJSActions(){return this._hasJSActionsPromise||=this.messageHandler.sendWithPromise("HasJSActions",null)}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!=typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getDocJSActions(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((e=>new _optional_content_config.OptionalContentConfig(e)))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return this.#s||=this.messageHandler.sendWithPromise("GetMetadata",null).then((e=>({info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null})))}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(e=!1){if(await this.messageHandler.sendWithPromise("Cleanup",null),!this.destroyed){for(const e of this.#r.values())if(!e.cleanup())throw new Error(`startCleanup: Page ${e.pageNumber} is currently rendering.`);this.commonObjs.clear(),e||this.fontLoader.clear(),this.#s=null,this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null}}get loadingParams(){const e=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch,enableXfa:e.enableXfa})}}class PDFObjects{#a=Object.create(null);#o(e){const t=this.#a[e];return t||(this.#a[e]={capability:(0,_util.createPromiseCapability)(),data:null})}get(e,t=null){if(t){const n=this.#o(e);return n.capability.promise.then((()=>t(n.data))),null}const n=this.#a[e];if(!n?.capability.settled)throw new Error(`Requesting object that isn't resolved yet ${e}.`);return n.data}has(e){return this.#a[e]?.capability.settled||!1}resolve(e,t=null){const n=this.#o(e);n.data=t,n.capability.resolve()}clear(){this.#a=Object.create(null)}}class RenderTask{#l=null;constructor(e){this.#l=e,this.onContinue=null}get promise(){return this.#l.capability.promise}cancel(){this.#l.cancel()}get separateAnnots(){const{separateAnnots:e}=this.#l.operatorList;if(!e)return!1;const{annotationCanvasMap:t}=this.#l;return e.form||e.canvas&&t?.size>0}}exports.RenderTask=RenderTask;class InternalRenderTask{static#c=new WeakSet;constructor({callback:e,params:t,objs:n,commonObjs:r,annotationCanvasMap:i,operatorList:s,pageIndex:a,canvasFactory:o,useRequestAnimationFrame:l=!1,pdfBug:c=!1,pageColors:u=null}){this.callback=e,this.params=t,this.objs=n,this.commonObjs=r,this.annotationCanvasMap=i,this.operatorListIdx=null,this.operatorList=s,this._pageIndex=a,this.canvasFactory=o,this._pdfBug=c,this.pageColors=u,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===l&&"undefined"!=typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(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=t.canvasContext.canvas}get completed(){return this.capability.promise.catch((function(){}))}initializeGraphics({transparency:e=!1,optionalContentConfig:t}){if(this.cancelled)return;if(this._canvas){if(InternalRenderTask.#c.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");InternalRenderTask.#c.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:n,viewport:r,transform:i,imageLayer:s,background:a}=this.params;this.gfx=new _canvas.CanvasGraphics(n,this.commonObjs,this.objs,this.canvasFactory,s,t,this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:i,viewport:r,transparency:e,background:a}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}cancel(e=null){this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&InternalRenderTask.#c.delete(this._canvas),this.callback(e||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas"))}operatorListChanged(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame((()=>{this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){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&&InternalRenderTask.#c.delete(this._canvas),this.callback())))}}const version="2.16.105";exports.version=version;const build="172ccdbe5";exports.build=build},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PrintAnnotationStorage=t.AnnotationStorage=void 0;var r=n(1),i=n(6),s=n(10);class a{constructor(){this._storage=new Map,this._modified=!1,this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,t){const n=this._storage.get(e);return void 0===n?t:Object.assign(t,n)}getRawValue(e){return this._storage.get(e)}remove(e){if(this._storage.delete(e),0===this._storage.size&&this.resetModified(),"function"==typeof this.onAnnotationEditor){for(const e of this._storage.values())if(e instanceof i.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(e,t){const n=this._storage.get(e);let r=!1;if(void 0!==n)for(const[e,i]of Object.entries(t))n[e]!==i&&(r=!0,n[e]=i);else r=!0,this._storage.set(e,t);r&&this.#u(),t instanceof i.AnnotationEditor&&"function"==typeof this.onAnnotationEditor&&this.onAnnotationEditor(t.constructor._type)}has(e){return this._storage.has(e)}getAll(){return this._storage.size>0?(0,r.objectFromMap)(this._storage):null}get size(){return this._storage.size}#u(){this._modified||(this._modified=!0,"function"==typeof this.onSetModified&&this.onSetModified())}resetModified(){this._modified&&(this._modified=!1,"function"==typeof this.onResetModified&&this.onResetModified())}get print(){return new o(this)}get serializable(){if(0===this._storage.size)return null;const e=new Map;for(const[t,n]of this._storage){const r=n instanceof i.AnnotationEditor?n.serialize():n;r&&e.set(t,r)}return e}static getHash(e){if(!e)return"";const t=new s.MurmurHash3_64;for(const[n,r]of e)t.update(`${n}:${JSON.stringify(r)}`);return t.hexdigest()}}t.AnnotationStorage=a;class o extends a{#d=null;constructor(e){super(),this.#d=structuredClone(e.serializable)}get print(){(0,r.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#d}}t.PrintAnnotationStorage=o},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditor=void 0;var r=n(7),i=n(1);class s{#h=this.focusin.bind(this);#p=this.focusout.bind(this);#f=!1;#g=!1;#m=!1;#v=s._zIndex++;static _colorManager=new r.ColorManager;static _zIndex=1;constructor(e){this.constructor===s&&(0,i.unreachable)("Cannot initialize AnnotationEditor."),this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null;const[t,n]=this.parent.viewportBaseDimensions;this.x=e.x/t,this.y=e.y/n,this.rotation=this.parent.viewport.rotation,this.isAttachedToDOM=!1}static get _defaultLineColor(){return(0,i.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#v}focusin(e){this.#f?this.#f=!1:this.parent.setSelected(this)}focusout(e){this.isAttachedToDOM&&(e.relatedTarget?.closest(`#${this.id}`)||(e.preventDefault(),this.parent.isMultipleSelection||this.commitOrRemove()))}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.parent.addToAnnotationStorage(this)}dragstart(e){const t=this.parent.div.getBoundingClientRect();this.startX=e.clientX-t.x,this.startY=e.clientY-t.y,e.dataTransfer.setData("text/plain",this.id),e.dataTransfer.effectAllowed="move"}setAt(e,t,n,r){const[i,s]=this.parent.viewportBaseDimensions;[n,r]=this.screenToPageTranslation(n,r),this.x=(e+n)/i,this.y=(t+r)/s,this.div.style.left=100*this.x+"%",this.div.style.top=100*this.y+"%"}translate(e,t){const[n,r]=this.parent.viewportBaseDimensions;[e,t]=this.screenToPageTranslation(e,t),this.x+=e/n,this.y+=t/r,this.div.style.left=100*this.x+"%",this.div.style.top=100*this.y+"%"}screenToPageTranslation(e,t){const{rotation:n}=this.parent.viewport;switch(n){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}}setDims(e,t){const[n,r]=this.parent.viewportBaseDimensions;this.div.style.width=100*e/n+"%",this.div.style.height=100*t/r+"%"}getInitialTranslation(){return[0,0]}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",this.#h),this.div.addEventListener("focusout",this.#p);const[e,t]=this.getInitialTranslation();return this.translate(e,t),(0,r.bindEvents)(this,this.div,["dragstart","pointerdown"]),this.div}pointerdown(e){const t=r.KeyboardManager.platform.isMac;0!==e.button||e.ctrlKey&&t?e.preventDefault():(e.ctrlKey&&!t||e.shiftKey||e.metaKey&&t?this.parent.toggleSelected(this):this.parent.setSelected(this),this.#f=!0)}getRect(e,t){const[n,r]=this.parent.viewportBaseDimensions,[i,s]=this.parent.pageDimensions,a=i*e/n,o=s*t/r,l=this.x*i,c=this.y*s,u=this.width*i,d=this.height*s;switch(this.rotation){case 0:return[l+a,s-c-o-d,l+a+u,s-c-o];case 90:return[l+o,s-c+a,l+o+d,s-c+a+u];case 180:return[l-a-u,s-c+o,l-a,s-c+o+d];case 270:return[l-o-d,s-c-a-u,l-o,s-c-a];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,t){const[n,r,i,s]=e,a=i-n,o=s-r;switch(this.rotation){case 0:return[n,t-s,a,o];case 90:return[n,t-r,o,a];case 180:return[i,t-r,a,o];case 270:return[i,t-s,o,a];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){this.#m=!0}disableEditMode(){this.#m=!1}isInEditMode(){return this.#m}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){this.div?.addEventListener("focusin",this.#h)}serialize(){(0,i.unreachable)("An editor must be serializable")}static deserialize(e,t){const n=new this.prototype.constructor({parent:t,id:t.getNextId()});n.rotation=e.rotation;const[r,i]=t.pageDimensions,[s,a,o,l]=n.getRectInCurrentCoords(e.rect,i);return n.x=s/r,n.y=a/i,n.width=o/r,n.height=l/i,n}remove(){this.div.removeEventListener("focusin",this.#h),this.div.removeEventListener("focusout",this.#p),this.isEmpty()||this.commit(),this.parent.remove(this)}select(){this.div?.classList.add("selectedEditor")}unselect(){this.div?.classList.remove("selectedEditor")}updateParams(e,t){}disableEditing(){}enableEditing(){}get propertiesToUpdate(){return{}}get contentDiv(){return this.div}get isEditing(){return this.#g}set isEditing(e){this.#g=e,e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null)}}t.AnnotationEditor=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardManager=t.CommandManager=t.ColorManager=t.AnnotationEditorUIManager=void 0,t.bindEvents=function(e,t,n){for(const r of n)t.addEventListener(r,e[r].bind(e))},t.opacityToHex=function(e){return Math.round(Math.min(255,Math.max(1,255*e))).toString(16).padStart(2,"0")};var r=n(1),i=n(8);class s{#y=0;getId(){return`${r.AnnotationEditorPrefix}${this.#y++}`}}class a{#b=[];#_=!1;#w;#E=-1;constructor(e=128){this.#w=e}add({cmd:e,undo:t,mustExec:n,type:r=NaN,overwriteIfSameType:i=!1,keepUndo:s=!1}){if(n&&e(),this.#_)return;const a={cmd:e,undo:t,type:r};if(-1===this.#E)return this.#b.length>0&&(this.#b.length=0),this.#E=0,void this.#b.push(a);if(i&&this.#b[this.#E].type===r)return s&&(a.undo=this.#b[this.#E].undo),void(this.#b[this.#E]=a);const o=this.#E+1;o===this.#w?this.#b.splice(0,1):(this.#E=o,o<this.#b.length&&this.#b.splice(o)),this.#b.push(a)}undo(){-1!==this.#E&&(this.#_=!0,this.#b[this.#E].undo(),this.#_=!1,this.#E-=1)}redo(){this.#E<this.#b.length-1&&(this.#E+=1,this.#_=!0,this.#b[this.#E].cmd(),this.#_=!1)}hasSomethingToUndo(){return-1!==this.#E}hasSomethingToRedo(){return this.#E<this.#b.length-1}destroy(){this.#b=null}}t.CommandManager=a;class o{constructor(e){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const t=o.platform.isMac;for(const[n,r]of e)for(const e of n){const n=e.startsWith("mac+");t&&n?(this.callbacks.set(e.slice(4),r),this.allKeys.add(e.split("+").at(-1))):t||n||(this.callbacks.set(e,r),this.allKeys.add(e.split("+").at(-1)))}}static get platform(){const e="undefined"!=typeof navigator?navigator.platform:"";return(0,r.shadow)(this,"platform",{isWin:e.includes("Win"),isMac:e.includes("Mac")})}#S(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);const t=this.buffer.join("+");return this.buffer.length=0,t}exec(e,t){if(!this.allKeys.has(t.key))return;const n=this.callbacks.get(this.#S(t));n&&(n.bind(e)(),t.stopPropagation(),t.preventDefault())}}t.KeyboardManager=o;class l{#C=null;copy(e){e&&(Array.isArray(e)?this.#C=e.map((e=>e.serialize())):this.#C=[e.serialize()],this.#C=this.#C.filter((e=>!!e)),0===this.#C.length&&(this.#C=null))}paste(){return this.#C}isEmpty(){return null===this.#C}destroy(){this.#C=null}}class c{static _colorsMapping=new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]);get _colors(){const e=new Map([["CanvasText",null],["Canvas",null]]);return(0,i.getColorValues)(e),(0,r.shadow)(this,"_colors",e)}convert(e){const t=(0,i.getRGB)(e);if(!window.matchMedia("(forced-colors: active)").matches)return t;for(const[e,n]of this._colors)if(n.every(((e,n)=>e===t[n])))return c._colorsMapping.get(e);return t}getHexCode(e){const t=this._colors.get(e);return t?r.Util.makeHexColor(...t):e}}t.ColorManager=c;class u{#A=null;#P=new Map;#x=new Map;#T=new l;#M=new a;#R=0;#L=null;#I=null;#k=new s;#O=!1;#F=r.AnnotationEditorType.NONE;#D=new Set;#N=this.keydown.bind(this);#U=this.onEditingAction.bind(this);#j=this.onPageChanging.bind(this);#$={isEditing:!1,isEmpty:!0,hasEmptyClipboard:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1};#H=null;static _keyboardManager=new o([[["ctrl+a","mac+meta+a"],u.prototype.selectAll],[["ctrl+c","mac+meta+c"],u.prototype.copy],[["ctrl+v","mac+meta+v"],u.prototype.paste],[["ctrl+x","mac+meta+x"],u.prototype.cut],[["ctrl+z","mac+meta+z"],u.prototype.undo],[["ctrl+y","ctrl+shift+Z","mac+meta+shift+Z"],u.prototype.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete"],u.prototype.delete],[["Escape","mac+Escape"],u.prototype.unselectAll]]);constructor(e,t){this.#H=e,this.#I=t,this.#I._on("editingaction",this.#U),this.#I._on("pagechanging",this.#j)}destroy(){this.#B(),this.#I._off("editingaction",this.#U),this.#I._off("pagechanging",this.#j);for(const e of this.#x.values())e.destroy();this.#x.clear(),this.#P.clear(),this.#A=null,this.#D.clear(),this.#T.destroy(),this.#M.destroy()}onPageChanging({pageNumber:e}){this.#R=e-1}focusMainContainer(){this.#H.focus()}#V(){this.#H.addEventListener("keydown",this.#N)}#B(){this.#H.removeEventListener("keydown",this.#N)}keydown(e){this.getActive()?.shouldGetKeyboardEvents()||u._keyboardManager.exec(this,e)}onEditingAction(e){["undo","redo","cut","copy","paste","delete","selectAll"].includes(e.name)&&this[e.name]()}#W(e){Object.entries(e).some((([e,t])=>this.#$[e]!==t))&&this.#I.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#$,e)})}#q(e){this.#I.dispatch("annotationeditorparamschanged",{source:this,details:e})}setEditingState(e){e?(this.#V(),this.#W({isEditing:this.#F!==r.AnnotationEditorType.NONE,isEmpty:this.#z(),hasSomethingToUndo:this.#M.hasSomethingToUndo(),hasSomethingToRedo:this.#M.hasSomethingToRedo(),hasSelectedEditor:!1,hasEmptyClipboard:this.#T.isEmpty()})):(this.#B(),this.#W({isEditing:!1}))}registerEditorTypes(e){this.#L=e;for(const e of this.#L)this.#q(e.defaultPropertiesToUpdate)}getId(){return this.#k.getId()}addLayer(e){this.#x.set(e.pageIndex,e),this.#O?e.enable():e.disable()}removeLayer(e){this.#x.delete(e.pageIndex)}updateMode(e){if(this.#F=e,e===r.AnnotationEditorType.NONE)this.setEditingState(!1),this.#G();else{this.setEditingState(!0),this.#Q();for(const t of this.#x.values())t.updateMode(e)}}updateToolbar(e){e!==this.#F&&this.#I.dispatch("switchannotationeditormode",{source:this,mode:e})}updateParams(e,t){for(const n of this.#D)n.updateParams(e,t);for(const n of this.#L)n.updateDefaultParams(e,t)}#Q(){if(!this.#O){this.#O=!0;for(const e of this.#x.values())e.enable()}}#G(){if(this.unselectAll(),this.#O){this.#O=!1;for(const e of this.#x.values())e.disable()}}getEditors(e){const t=[];for(const n of this.#P.values())n.pageIndex===e&&t.push(n);return t}getEditor(e){return this.#P.get(e)}addEditor(e){this.#P.set(e.id,e)}removeEditor(e){this.#P.delete(e.id),this.unselect(e)}#X(e){const t=this.#x.get(e.pageIndex);t?t.addOrRebuild(e):this.addEditor(e)}setActiveEditor(e){this.#A!==e&&(this.#A=e,e&&this.#q(e.propertiesToUpdate))}toggleSelected(e){if(this.#D.has(e))return this.#D.delete(e),e.unselect(),void this.#W({hasSelectedEditor:this.hasSelection});this.#D.add(e),e.select(),this.#q(e.propertiesToUpdate),this.#W({hasSelectedEditor:!0})}setSelected(e){for(const t of this.#D)t!==e&&t.unselect();this.#D.clear(),this.#D.add(e),e.select(),this.#q(e.propertiesToUpdate),this.#W({hasSelectedEditor:!0})}isSelected(e){return this.#D.has(e)}unselect(e){e.unselect(),this.#D.delete(e),this.#W({hasSelectedEditor:this.hasSelection})}get hasSelection(){return 0!==this.#D.size}undo(){this.#M.undo(),this.#W({hasSomethingToUndo:this.#M.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#z()})}redo(){this.#M.redo(),this.#W({hasSomethingToUndo:!0,hasSomethingToRedo:this.#M.hasSomethingToRedo(),isEmpty:this.#z()})}addCommands(e){this.#M.add(e),this.#W({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#z()})}#z(){if(0===this.#P.size)return!0;if(1===this.#P.size)for(const e of this.#P.values())return e.isEmpty();return!1}delete(){if(this.#A&&this.#A.commitOrRemove(),!this.hasSelection)return;const e=[...this.#D];this.addCommands({cmd:()=>{for(const t of e)t.remove()},undo:()=>{for(const t of e)this.#X(t)},mustExec:!0})}copy(){if(this.#A&&this.#A.commitOrRemove(),this.hasSelection){const e=[];for(const t of this.#D)t.isEmpty()||e.push(t);if(0===e.length)return;this.#T.copy(e),this.#W({hasEmptyClipboard:!1})}}cut(){this.copy(),this.delete()}paste(){if(this.#T.isEmpty())return;this.unselectAll();const e=this.#x.get(this.#R),t=this.#T.paste().map((t=>e.deserialize(t)));this.addCommands({cmd:()=>{for(const e of t)this.#X(e);this.#K(t)},undo:()=>{for(const e of t)e.remove()},mustExec:!0})}#K(e){this.#D.clear();for(const t of e)t.isEmpty()||(this.#D.add(t),t.select());this.#W({hasSelectedEditor:!0})}selectAll(){for(const e of this.#D)e.commit();this.#K(this.#P.values())}unselectAll(){if(this.#A)this.#A.commitOrRemove();else if(0!==this.#K.size){for(const e of this.#D)e.unselect();this.#D.clear(),this.#W({hasSelectedEditor:!1})}}isActive(e){return this.#A===e}getActive(){return this.#A}getMode(){return this.#F}}t.AnnotationEditorUIManager=u},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StatTimer=t.RenderingCancelledException=t.PixelsPerInch=t.PageViewport=t.PDFDateString=t.DOMStandardFontDataFactory=t.DOMSVGFactory=t.DOMCanvasFactory=t.DOMCMapReaderFactory=t.AnnotationPrefix=void 0,t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.getColorValues=function(e){const t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);for(const n of e.keys()){t.style.color=n;const r=window.getComputedStyle(t).color;e.set(n,m(r))}t.remove()},t.getCurrentTransform=function(e){const{a:t,b:n,c:r,d:i,e:s,f:a}=e.getTransform();return[t,n,r,i,s,a]},t.getCurrentTransformInverse=function(e){const{a:t,b:n,c:r,d:i,e:s,f:a}=e.getTransform().invertSelf();return[t,n,r,i,s,a]},t.getFilenameFromUrl=function(e){const t=e.indexOf("#"),n=e.indexOf("?"),r=Math.min(t>0?t:e.length,n>0?n:e.length);return e.substring(e.lastIndexOf("/",r)+1,r)},t.getPdfFilenameFromUrl=function(e,t="document.pdf"){if("string"!=typeof e)return t;if(p(e))return(0,i.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;const n=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,r=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e);let s=n.exec(r[1])||n.exec(r[2])||n.exec(r[3]);if(s&&(s=s[0],s.includes("%")))try{s=n.exec(decodeURIComponent(s))[0]}catch(e){}return s||t},t.getRGB=m,t.getXfaPageViewport=function(e,{scale:t=1,rotation:n=0}){const{width:r,height:i}=e.attributes.style,s=[0,0,parseInt(r),parseInt(i)];return new d({viewBox:s,scale:t,rotation:n})},t.isDataScheme=p,t.isPdfFile=function(e){return"string"==typeof e&&/\.pdf$/i.test(e)},t.isValidFetchUrl=f,t.loadScript=function(e,t=!1){return new Promise(((n,r)=>{const i=document.createElement("script");i.src=e,i.onload=function(e){t&&i.remove(),n(e)},i.onerror=function(){r(new Error(`Cannot load script at: ${i.src}`))},(document.head||document.documentElement).append(i)}))};var r=n(9),i=n(1);t.AnnotationPrefix="pdfjs_internal_id_";class s{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF}t.PixelsPerInch=s;class a extends r.BaseCanvasFactory{constructor({ownerDocument:e=globalThis.document}={}){super(),this._document=e}_createCanvas(e,t){const n=this._document.createElement("canvas");return n.width=e,n.height=t,n}}async function o(e,t=!1){if(f(e,document.baseURI)){const n=await fetch(e);if(!n.ok)throw new Error(n.statusText);return t?new Uint8Array(await n.arrayBuffer()):(0,i.stringToBytes)(await n.text())}return new Promise(((n,r)=>{const s=new XMLHttpRequest;s.open("GET",e,!0),t&&(s.responseType="arraybuffer"),s.onreadystatechange=()=>{if(s.readyState===XMLHttpRequest.DONE){if(200===s.status||0===s.status){let e;if(t&&s.response?e=new Uint8Array(s.response):!t&&s.responseText&&(e=(0,i.stringToBytes)(s.responseText)),e)return void n(e)}r(new Error(s.statusText))}},s.send(null)}))}t.DOMCanvasFactory=a;class l extends r.BaseCMapReaderFactory{_fetchData(e,t){return o(e,this.isCompressed).then((e=>({cMapData:e,compressionType:t})))}}t.DOMCMapReaderFactory=l;class c extends r.BaseStandardFontDataFactory{_fetchData(e){return o(e,!0)}}t.DOMStandardFontDataFactory=c;class u extends r.BaseSVGFactory{_createSVG(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}}t.DOMSVGFactory=u;class d{constructor({viewBox:e,scale:t,rotation:n,offsetX:r=0,offsetY:i=0,dontFlip:s=!1}){this.viewBox=e,this.scale=t,this.rotation=n,this.offsetX=r,this.offsetY=i;const a=(e[2]+e[0])/2,o=(e[3]+e[1])/2;let l,c,u,d,h,p,f,g;switch((n%=360)<0&&(n+=360),n){case 180:l=-1,c=0,u=0,d=1;break;case 90:l=0,c=1,u=1,d=0;break;case 270:l=0,c=-1,u=-1,d=0;break;case 0:l=1,c=0,u=0,d=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}s&&(u=-u,d=-d),0===l?(h=Math.abs(o-e[1])*t+r,p=Math.abs(a-e[0])*t+i,f=Math.abs(e[3]-e[1])*t,g=Math.abs(e[2]-e[0])*t):(h=Math.abs(a-e[0])*t+r,p=Math.abs(o-e[1])*t+i,f=Math.abs(e[2]-e[0])*t,g=Math.abs(e[3]-e[1])*t),this.transform=[l*t,c*t,u*t,d*t,h-l*t*a-u*t*o,p-c*t*a-d*t*o],this.width=f,this.height=g}clone({scale:e=this.scale,rotation:t=this.rotation,offsetX:n=this.offsetX,offsetY:r=this.offsetY,dontFlip:i=!1}={}){return new d({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:n,offsetY:r,dontFlip:i})}convertToViewportPoint(e,t){return i.Util.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){const t=i.Util.applyTransform([e[0],e[1]],this.transform),n=i.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]}convertToPdfPoint(e,t){return i.Util.applyInverseTransform([e,t],this.transform)}}t.PageViewport=d;class h extends i.BaseException{constructor(e,t){super(e,"RenderingCancelledException"),this.type=t}}function p(e){const t=e.length;let n=0;for(;n<t&&""===e[n].trim();)n++;return"data:"===e.substring(n,n+5).toLowerCase()}function f(e,t){try{const{protocol:n}=t?new URL(e,t):new URL(e);return"http:"===n||"https:"===n}catch(e){return!1}}let g;function m(e){if(e.startsWith("#")){const t=parseInt(e.slice(1),16);return[(16711680&t)>>16,(65280&t)>>8,255&t]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map((e=>parseInt(e))):e.startsWith("rgba(")?e.slice(5,-1).split(",").map((e=>parseInt(e))).slice(0,3):((0,i.warn)(`Not a valid color format: "${e}"`),[0,0,0])}t.RenderingCancelledException=h,t.StatTimer=class{constructor(){this.started=Object.create(null),this.times=[]}time(e){e in this.started&&(0,i.warn)(`Timer is already running for ${e}`),this.started[e]=Date.now()}timeEnd(e){e in this.started||(0,i.warn)(`Timer has not been started for ${e}`),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){const e=[];let t=0;for(const e of this.times){const n=e.name;n.length>t&&(t=n.length)}for(const n of this.times){const r=n.end-n.start;e.push(`${n.name.padEnd(t)} ${r}ms\n`)}return e.join("")}},t.PDFDateString=class{static toDateObject(e){if(!e||"string"!=typeof e)return null;g||(g=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const t=g.exec(e);if(!t)return null;const n=parseInt(t[1],10);let r=parseInt(t[2],10);r=r>=1&&r<=12?r-1:0;let i=parseInt(t[3],10);i=i>=1&&i<=31?i:1;let s=parseInt(t[4],10);s=s>=0&&s<=23?s:0;let a=parseInt(t[5],10);a=a>=0&&a<=59?a:0;let o=parseInt(t[6],10);o=o>=0&&o<=59?o:0;const l=t[7]||"Z";let c=parseInt(t[8],10);c=c>=0&&c<=23?c:0;let u=parseInt(t[9],10)||0;return u=u>=0&&u<=59?u:0,"-"===l?(s+=c,a+=u):"+"===l&&(s-=c,a-=u),new Date(Date.UTC(n,r,i,s,a,o))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStandardFontDataFactory=t.BaseSVGFactory=t.BaseCanvasFactory=t.BaseCMapReaderFactory=void 0;var r=n(1);class i{constructor(){this.constructor===i&&(0,r.unreachable)("Cannot initialize BaseCanvasFactory.")}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");const n=this._createCanvas(e,t);return{canvas:n,context:n.getContext("2d")}}reset(e,t,n){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||n<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=n}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,t){(0,r.unreachable)("Abstract method `_createCanvas` called.")}}t.BaseCanvasFactory=i;class s{constructor({baseUrl:e=null,isCompressed:t=!1}){this.constructor===s&&(0,r.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=e,this.isCompressed=t}async fetch({name:e}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!e)throw new Error("CMap name must be specified.");const t=this.baseUrl+e+(this.isCompressed?".bcmap":""),n=this.isCompressed?r.CMapCompressionType.BINARY:r.CMapCompressionType.NONE;return this._fetchData(t,n).catch((e=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${t}`)}))}_fetchData(e,t){(0,r.unreachable)("Abstract method `_fetchData` called.")}}t.BaseCMapReaderFactory=s;class a{constructor({baseUrl:e=null}){this.constructor===a&&(0,r.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=e}async fetch({filename:e}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!e)throw new Error("Font filename must be specified.");const t=`${this.baseUrl}${e}`;return this._fetchData(t).catch((e=>{throw new Error(`Unable to load font data at: ${t}`)}))}_fetchData(e){(0,r.unreachable)("Abstract method `_fetchData` called.")}}t.BaseStandardFontDataFactory=a;class o{constructor(){this.constructor===o&&(0,r.unreachable)("Cannot initialize BaseSVGFactory.")}create(e,t,n=!1){if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");const r=this._createSVG("svg:svg");return r.setAttribute("version","1.1"),n||(r.setAttribute("width",`${e}px`),r.setAttribute("height",`${t}px`)),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox",`0 0 ${e} ${t}`),r}createElement(e){if("string"!=typeof e)throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){(0,r.unreachable)("Abstract method `_createSVG` called.")}}t.BaseSVGFactory=o},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var r=n(1);const i=3285377520,s=4294901760,a=65535;t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:i,this.h2=e?4294967295&e:i}update(e){let t,n;if("string"==typeof e){t=new Uint8Array(2*e.length),n=0;for(let r=0,i=e.length;r<i;r++){const i=e.charCodeAt(r);i<=255?t[n++]=i:(t[n++]=i>>>8,t[n++]=255&i)}}else{if(!(0,r.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");t=e.slice(),n=t.byteLength}const i=n>>2,o=n-4*i,l=new Uint32Array(t.buffer,0,i);let c=0,u=0,d=this.h1,h=this.h2;const p=3432918353,f=461845907,g=11601,m=13715;for(let e=0;e<i;e++)1&e?(c=l[e],c=c*p&s|c*g&a,c=c<<15|c>>>17,c=c*f&s|c*m&a,d^=c,d=d<<13|d>>>19,d=5*d+3864292196):(u=l[e],u=u*p&s|u*g&a,u=u<<15|u>>>17,u=u*f&s|u*m&a,h^=u,h=h<<13|h>>>19,h=5*h+3864292196);switch(c=0,o){case 3:c^=t[4*i+2]<<16;case 2:c^=t[4*i+1]<<8;case 1:c^=t[4*i],c=c*p&s|c*g&a,c=c<<15|c>>>17,c=c*f&s|c*m&a,1&i?d^=c:h^=c}this.h1=d,this.h2=h}hexdigest(){let e=this.h1,t=this.h2;e^=t>>>1,e=3981806797*e&s|36045*e&a,t=4283543511*t&s|(2950163797*(t<<16|e>>>16)&s)>>>16,e^=t>>>1,e=444984403*e&s|60499*e&a,t=3301882366*t&s|(3120437893*(t<<16|e>>>16)&s)>>>16,e^=t>>>1;const n=(e>>>0).toString(16),r=(t>>>0).toString(16);return n.padStart(8,"0")+r.padStart(8,"0")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var r=n(1);class i{constructor({docId:e,onUnsupportedFeature:t,ownerDocument:n=globalThis.document,styleElement:s=null}){this.constructor===i&&(0,r.unreachable)("Cannot initialize BaseFontLoader."),this.docId=e,this._onUnsupportedFeature=t,this._document=n,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(e){this.nativeFontFaces.push(e),this._document.fonts.add(e)}insertRule(e){let t=this.styleElement;t||(t=this.styleElement=this._document.createElement("style"),t.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,this._document.documentElement.getElementsByTagName("head")[0].append(t));const n=t.sheet;n.insertRule(e,n.cssRules.length)}clear(){for(const e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async bind(e){if(e.attached||e.missingFile)return;if(e.attached=!0,this.isFontLoadingAPISupported){const t=e.createNativeFontFace();if(t){this.addNativeFontFace(t);try{await t.loaded}catch(n){throw this._onUnsupportedFeature({featureId:r.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,r.warn)(`Failed to load font '${t.family}': '${n}'.`),e.disableFontFace=!0,n}}return}const t=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;await new Promise((n=>{const r=this._queueLoadingCallback(n);this._prepareFontLoadEvent([t],[e],r)}))}}_queueLoadingCallback(e){(0,r.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){const e=!!this._document?.fonts;return(0,r.shadow)(this,"isFontLoadingAPISupported",e)}get isSyncFontLoadingSupported(){(0,r.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,r.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(e,t,n){(0,r.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let s;t.FontLoader=s,t.FontLoader=s=class extends i{constructor(e){super(e),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let e=!1;return("undefined"==typeof navigator||/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent)?.[1]>=14)&&(e=!0),(0,r.shadow)(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){const t=this.loadingContext,n={id:"pdfjs-font-loading-"+t.nextRequestId++,done:!1,complete:function(){for((0,r.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;t.requests.length>0&&t.requests[0].done;){const e=t.requests.shift();setTimeout(e.callback,0)}},callback:e};return t.requests.push(n),n}get _loadTestFont(){return(0,r.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(e,t,n){function i(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function s(e,t,n,r){return e.substring(0,t)+r+e.substring(t+n)}let a,o;const l=this._document.createElement("canvas");l.width=1,l.height=1;const c=l.getContext("2d");let u=0;const d=`lt${Date.now()}${this.loadTestFontId++}`;let h=this._loadTestFont;h=s(h,976,d.length,d);const p=1482184792;let f=i(h,16);for(a=0,o=d.length-3;a<o;a+=4)f=f-p+i(d,a)|0;a<d.length&&(f=f-p+i(d+"XXX",a)|0),h=s(h,16,4,(0,r.string32)(f));const g=`@font-face {font-family:"${d}";src:url(data:font/opentype;base64,${btoa(h)});}`;this.insertRule(g);const m=[];for(const e of t)m.push(e.loadedName);m.push(d);const v=this._document.createElement("div");v.style.visibility="hidden",v.style.width=v.style.height="10px",v.style.position="absolute",v.style.top=v.style.left="0px";for(const e of m){const t=this._document.createElement("span");t.textContent="Hi",t.style.fontFamily=e,v.append(t)}this._document.body.append(v),function e(t,n){if(u++,u>30)return(0,r.warn)("Load test font never loaded."),void n();c.font="30px "+t,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0?n():setTimeout(e.bind(null,t,n))}(d,(()=>{v.remove(),n.complete()}))}},t.FontFaceObject=class{constructor(e,{isEvalSupported:t=!0,disableFontFace:n=!1,ignoreErrors:r=!1,onUnsupportedFeature:i,fontRegistry:s=null}){this.compiledGlyphs=Object.create(null);for(const t in e)this[t]=e[t];this.isEvalSupported=!1!==t,this.disableFontFace=!0===n,this.ignoreErrors=!0===r,this._onUnsupportedFeature=i,this.fontRegistry=s}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let e;if(this.cssFontInfo){const t={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(t.style=`oblique ${this.cssFontInfo.italicAngle}deg`),e=new FontFace(this.cssFontInfo.fontFamily,this.data,t)}else e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const e=(0,r.bytesToString)(this.data),t=`url(data:${this.mimetype};base64,${btoa(e)});`;let n;if(this.cssFontInfo){let e=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(e+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),n=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${e}src:${t}}`}else n=`@font-face {font-family:"${this.loadedName}";src:${t}}`;return this.fontRegistry&&this.fontRegistry.registerFont(this,t),n}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];let n;try{n=e.get(this.loadedName+"_path_"+t)}catch(e){if(!this.ignoreErrors)throw e;return this._onUnsupportedFeature({featureId:r.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,r.warn)(`getPathGenerator - ignoring character: "${e}".`),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&r.FeatureTest.isEvalSupported){const e=[];for(const t of n){const n=void 0!==t.args?t.args.join(","):"";e.push("c.",t.cmd,"(",n,");\n")}return this.compiledGlyphs[t]=new Function("c","size",e.join(""))}return this.compiledGlyphs[t]=function(e,t){for(const r of n)"scale"===r.cmd&&(r.args=[t,-t]),e[r.cmd].apply(e,r.args)}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var r=n(8),i=n(1),s=n(13),a=n(14),o=n(3);const l=4096,c=o.isNodeJS&&"undefined"==typeof Path2D?-1:1e3,u=16;class d{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,t,n){let r;return void 0!==this.cache[e]?(r=this.cache[e],this.canvasFactory.reset(r,t,n)):(r=this.canvasFactory.create(t,n),this.cache[e]=r),r}delete(e){delete this.cache[e]}clear(){for(const e in this.cache){const t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}}function h(e,t,n,i,s,a,o,l,c,u){const[d,h,p,f,g,m]=(0,r.getCurrentTransform)(e);if(0===h&&0===p){const r=o*d+g,v=Math.round(r),y=l*f+m,b=Math.round(y),_=(o+c)*d+g,w=Math.abs(Math.round(_)-v)||1,E=(l+u)*f+m,S=Math.abs(Math.round(E)-b)||1;return e.setTransform(Math.sign(d),0,0,Math.sign(f),v,b),e.drawImage(t,n,i,s,a,0,0,w,S),e.setTransform(d,h,p,f,g,m),[w,S]}if(0===d&&0===f){const r=l*p+g,v=Math.round(r),y=o*h+m,b=Math.round(y),_=(l+u)*p+g,w=Math.abs(Math.round(_)-v)||1,E=(o+c)*h+m,S=Math.abs(Math.round(E)-b)||1;return e.setTransform(0,Math.sign(h),Math.sign(p),0,v,b),e.drawImage(t,n,i,s,a,0,0,S,w),e.setTransform(d,h,p,f,g,m),[S,w]}return e.drawImage(t,n,i,s,a,o,l,c,u),[Math.hypot(d,h)*c,Math.hypot(p,f)*u]}class p{constructor(e,t){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=i.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=i.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=i.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps=null,this.startNewPathAndClipBox([0,0,e,t])}clone(){const e=Object.create(this);return e.clipBox=this.clipBox.slice(),e}setCurrentPoint(e,t){this.x=e,this.y=t}updatePathMinMax(e,t,n){[t,n]=i.Util.applyTransform([t,n],e),this.minX=Math.min(this.minX,t),this.minY=Math.min(this.minY,n),this.maxX=Math.max(this.maxX,t),this.maxY=Math.max(this.maxY,n)}updateRectMinMax(e,t){const n=i.Util.applyTransform(t,e),r=i.Util.applyTransform(t.slice(2),e);this.minX=Math.min(this.minX,n[0],r[0]),this.minY=Math.min(this.minY,n[1],r[1]),this.maxX=Math.max(this.maxX,n[0],r[0]),this.maxY=Math.max(this.maxY,n[1],r[1])}updateScalingPathMinMax(e,t){i.Util.scaleMinMax(e,t),this.minX=Math.min(this.minX,t[0]),this.maxX=Math.max(this.maxX,t[1]),this.minY=Math.min(this.minY,t[2]),this.maxY=Math.max(this.maxY,t[3])}updateCurvePathMinMax(e,t,n,r,s,a,o,l,c,u){const d=i.Util.bezierBoundingBox(t,n,r,s,a,o,l,c);if(u)return u[0]=Math.min(u[0],d[0],d[2]),u[1]=Math.max(u[1],d[0],d[2]),u[2]=Math.min(u[2],d[1],d[3]),void(u[3]=Math.max(u[3],d[1],d[3]));this.updateRectMinMax(e,d)}getPathBoundingBox(e=s.PathType.FILL,t=null){const n=[this.minX,this.minY,this.maxX,this.maxY];if(e===s.PathType.STROKE){t||(0,i.unreachable)("Stroke bounding box must include transform.");const e=i.Util.singularValueDecompose2dScale(t),r=e[0]*this.lineWidth/2,s=e[1]*this.lineWidth/2;n[0]-=r,n[1]-=s,n[2]+=r,n[3]+=s}return n}updateClipFromPath(){const e=i.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(e){this.clipBox=e,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(e=s.PathType.FILL,t=null){return i.Util.intersect(this.clipBox,this.getPathBoundingBox(e,t))}}function f(e,t,n=null){if("undefined"!=typeof ImageData&&t instanceof ImageData)return void e.putImageData(t,0,0);const r=t.height,s=t.width,a=r%u,o=(r-a)/u,l=0===a?o:o+1,c=e.createImageData(s,u);let d,h=0;const p=t.data,f=c.data;let g,m,v,y,b,_,w,E;if(n)switch(n.length){case 1:b=n[0],_=n[0],w=n[0],E=n[0];break;case 4:b=n[0],_=n[1],w=n[2],E=n[3]}if(t.kind===i.ImageKind.GRAYSCALE_1BPP){const t=p.byteLength,n=new Uint32Array(f.buffer,0,f.byteLength>>2),r=n.length,y=s+7>>3;let b=4294967295,_=i.FeatureTest.isLittleEndian?4278190080:255;for(E&&255===E[0]&&0===E[255]&&([b,_]=[_,b]),g=0;g<l;g++){for(v=g<o?u:a,d=0,m=0;m<v;m++){const e=t-h;let r=0;const i=e>y?s:8*e-7,a=-8&i;let o=0,l=0;for(;r<a;r+=8)l=p[h++],n[d++]=128&l?b:_,n[d++]=64&l?b:_,n[d++]=32&l?b:_,n[d++]=16&l?b:_,n[d++]=8&l?b:_,n[d++]=4&l?b:_,n[d++]=2&l?b:_,n[d++]=1&l?b:_;for(;r<i;r++)0===o&&(l=p[h++],o=128),n[d++]=l&o?b:_,o>>=1}for(;d<r;)n[d++]=0;e.putImageData(c,0,g*u)}}else if(t.kind===i.ImageKind.RGBA_32BPP){const t=!!(b||_||w);for(m=0,y=s*u*4,g=0;g<o;g++){if(f.set(p.subarray(h,h+y)),h+=y,t)for(let e=0;e<y;e+=4)b&&(f[e+0]=b[f[e+0]]),_&&(f[e+1]=_[f[e+1]]),w&&(f[e+2]=w[f[e+2]]);e.putImageData(c,0,m),m+=u}if(g<l){if(y=s*a*4,f.set(p.subarray(h,h+y)),t)for(let e=0;e<y;e+=4)b&&(f[e+0]=b[f[e+0]]),_&&(f[e+1]=_[f[e+1]]),w&&(f[e+2]=w[f[e+2]]);e.putImageData(c,0,m)}}else{if(t.kind!==i.ImageKind.RGB_24BPP)throw new Error(`bad image kind: ${t.kind}`);{const t=!!(b||_||w);for(v=u,y=s*v,g=0;g<l;g++){for(g>=o&&(v=a,y=s*v),d=0,m=y;m--;)f[d++]=p[h++],f[d++]=p[h++],f[d++]=p[h++],f[d++]=255;if(t)for(let e=0;e<d;e+=4)b&&(f[e+0]=b[f[e+0]]),_&&(f[e+1]=_[f[e+1]]),w&&(f[e+2]=w[f[e+2]]);e.putImageData(c,0,g*u)}}}}function g(e,t){if(t.bitmap)return void e.drawImage(t.bitmap,0,0);const n=t.height,r=t.width,i=n%u,s=(n-i)/u,o=0===i?s:s+1,l=e.createImageData(r,u);let c=0;const d=t.data,h=l.data;for(let t=0;t<o;t++){const n=t<s?u:i;({srcPos:c}=(0,a.applyMaskImageData)({src:d,srcPos:c,dest:h,width:r,height:n})),e.putImageData(l,0,t*u)}}function m(e,t){const n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"];for(let r=0,i=n.length;r<i;r++){const i=n[r];void 0!==e[i]&&(t[i]=e[i])}void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function v(e,t){e.strokeStyle=e.fillStyle=t||"#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0)}function y(e,t,n,r){const i=e.length;for(let s=3;s<i;s+=4){const i=e[s];if(0===i)e[s-3]=t,e[s-2]=n,e[s-1]=r;else if(i<255){const a=255-i;e[s-3]=e[s-3]*i+t*a>>8,e[s-2]=e[s-2]*i+n*a>>8,e[s-1]=e[s-1]*i+r*a>>8}}}function b(e,t,n){const r=e.length;for(let i=3;i<r;i+=4){const r=n?n[e[i]]:e[i];t[i]=t[i]*r*.00392156862745098|0}}function _(e,t,n){const r=e.length;for(let i=3;i<r;i+=4){const r=77*e[i-3]+152*e[i-2]+28*e[i-1];t[i]=n?t[i]*n[r>>8]>>8:t[i]*r>>16}}function w(e,t,n,r){const i=r[0],s=r[1],a=r[2]-i,o=r[3]-s;0!==a&&0!==o&&(function(e,t,n,r,i,s,a,o,l,c,u){const d=!!s,h=d?s[0]:0,p=d?s[1]:0,f=d?s[2]:0;let g;g="Luminosity"===i?_:b;const m=Math.min(r,Math.ceil(1048576/n));for(let i=0;i<r;i+=m){const s=Math.min(m,r-i),v=e.getImageData(o-c,i+(l-u),n,s),b=t.getImageData(o,i+l,n,s);d&&y(v.data,h,p,f),g(v.data,b.data,a),t.putImageData(b,o,i+l)}}(t.context,n,a,o,t.subtype,t.backdrop,t.transferMap,i,s,t.offsetX,t.offsetY),e.save(),e.globalAlpha=1,e.globalCompositeOperation="source-over",e.setTransform(1,0,0,1,0,0),e.drawImage(n.canvas,0,0),e.restore())}function E(e,t){const n=i.Util.singularValueDecompose2dScale(e);n[0]=Math.fround(n[0]),n[1]=Math.fround(n[1]);const s=Math.fround((globalThis.devicePixelRatio||1)*r.PixelsPerInch.PDF_TO_CSS_UNITS);return void 0!==t?t:n[0]<=s||n[1]<=s}const S=["butt","round","square"],C=["miter","round","bevel"],A={},P={};class x{constructor(e,t,n,r,i,s,a,o){this.ctx=e,this.current=new p(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=n,this.canvasFactory=r,this.imageLayer=i,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=s,this.cachedCanvases=new d(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=a,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.backgroundColor=o?.background||null,this.foregroundColor=o?.foreground||null,this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(e,t=null){return"string"==typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}beginDrawing({transform:e,viewport:t,transparency:n=!1,background:i=null}){const s=this.ctx.canvas.width,a=this.ctx.canvas.height,o=i||"#ffffff";if(this.ctx.save(),this.foregroundColor&&this.backgroundColor){this.ctx.fillStyle=this.foregroundColor;const e=this.foregroundColor=this.ctx.fillStyle;this.ctx.fillStyle=this.backgroundColor;const t=this.backgroundColor=this.ctx.fillStyle;let n=!0,i=o;if(this.ctx.fillStyle=o,i=this.ctx.fillStyle,n="string"==typeof i&&/^#[0-9A-Fa-f]{6}$/.test(i),"#000000"===e&&"#ffffff"===t||e===t||!n)this.foregroundColor=this.backgroundColor=null;else{const[n,s,a]=(0,r.getRGB)(i),o=e=>(e/=255)<=.03928?e/12.92:((e+.055)/1.055)**2.4,l=Math.round(.2126*o(n)+.7152*o(s)+.0722*o(a));this.selectColor=(n,r,i)=>{const s=.2126*o(n)+.7152*o(r)+.0722*o(i);return Math.round(s)===l?t:e}}}if(this.ctx.fillStyle=this.backgroundColor||o,this.ctx.fillRect(0,0,s,a),this.ctx.restore(),n){const e=this.cachedCanvases.getCanvas("transparent",s,a);this.compositeCtx=this.ctx,this.transparentCanvas=e.canvas,this.ctx=e.context,this.ctx.save(),this.ctx.transform(...(0,r.getCurrentTransform)(this.compositeCtx))}this.ctx.save(),v(this.ctx,this.foregroundColor),e&&(this.ctx.transform(...e),this.outputScaleX=e[0],this.outputScaleY=e[0]),this.ctx.transform(...t.transform),this.viewportScale=t.scale,this.baseTransform=(0,r.getCurrentTransform)(this.ctx),this.imageLayer&&((0,r.deprecated)("The `imageLayer` functionality will be removed in the future."),this.imageLayer.beginLayout())}executeOperatorList(e,t,n,r){const s=e.argsArray,a=e.fnArray;let o=t||0;const l=s.length;if(l===o)return o;const c=l-o>10&&"function"==typeof n,u=c?Date.now()+15:0;let d=0;const h=this.commonObjs,p=this.objs;let f;for(;;){if(void 0!==r&&o===r.nextBreakPoint)return r.breakIt(o,n),o;if(f=a[o],f!==i.OPS.dependency)this[f].apply(this,s[o]);else for(const e of s[o]){const t=e.startsWith("g_")?h:p;if(!t.has(e))return t.get(e,n),o}if(o++,o===l)return o;if(c&&++d>10){if(Date.now()>u)return n(),o;d=0}}}#Y(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#Y(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const e of this._cachedBitmapsMap.values()){for(const t of e.values())"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement&&(t.width=t.height=0);e.clear()}this._cachedBitmapsMap.clear(),this.imageLayer&&this.imageLayer.endLayout()}_scaleImage(e,t){const n=e.width,r=e.height;let i,s,a=Math.max(Math.hypot(t[0],t[1]),1),o=Math.max(Math.hypot(t[2],t[3]),1),l=n,c=r,u="prescale1";for(;a>2&&l>1||o>2&&c>1;){let t=l,n=c;a>2&&l>1&&(t=Math.ceil(l/2),a/=l/t),o>2&&c>1&&(n=Math.ceil(c/2),o/=c/n),i=this.cachedCanvases.getCanvas(u,t,n),s=i.context,s.clearRect(0,0,t,n),s.drawImage(e,0,0,l,c,0,0,t,n),e=i.canvas,l=t,c=n,u="prescale1"===u?"prescale2":"prescale1"}return{img:e,paintWidth:l,paintHeight:c}}_createMaskCanvas(e){const t=this.ctx,{width:n,height:a}=e,o=this.current.fillColor,l=this.current.patternFill,c=(0,r.getCurrentTransform)(t);let u,d,p,f;if((e.bitmap||e.data)&&e.count>1){const t=e.bitmap||e.data.buffer,n=c.slice(0,4);d=JSON.stringify(l?n:[n,o]),u=this._cachedBitmapsMap.get(t),u||(u=new Map,this._cachedBitmapsMap.set(t,u));const r=u.get(d);if(r&&!l)return{canvas:r,offsetX:Math.round(Math.min(c[0],c[2])+c[4]),offsetY:Math.round(Math.min(c[1],c[3])+c[5])};p=r}p||(f=this.cachedCanvases.getCanvas("maskCanvas",n,a),g(f.context,e));let m=i.Util.transform(c,[1/n,0,0,-1/a,0,0]);m=i.Util.transform(m,[1,0,0,1,0,-a]);const v=i.Util.applyTransform([0,0],m),y=i.Util.applyTransform([n,a],m),b=i.Util.normalizeRect([v[0],v[1],y[0],y[1]]),_=Math.round(b[2]-b[0])||1,w=Math.round(b[3]-b[1])||1,S=this.cachedCanvases.getCanvas("fillCanvas",_,w),C=S.context,A=Math.min(v[0],y[0]),P=Math.min(v[1],y[1]);C.translate(-A,-P),C.transform(...m),p||(p=this._scaleImage(f.canvas,(0,r.getCurrentTransformInverse)(C)),p=p.img,u&&l&&u.set(d,p)),C.imageSmoothingEnabled=E((0,r.getCurrentTransform)(C),e.interpolate),h(C,p,0,0,p.width,p.height,0,0,n,a),C.globalCompositeOperation="source-in";const x=i.Util.transform((0,r.getCurrentTransformInverse)(C),[1,0,0,1,-A,-P]);return C.fillStyle=l?o.getPattern(t,this,x,s.PathType.FILL):o,C.fillRect(0,0,n,a),u&&!l&&(this.cachedCanvases.delete("fillCanvas"),u.set(d,S.canvas)),{canvas:S.canvas,offsetX:Math.round(A),offsetY:Math.round(P)}}setLineWidth(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking=null),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(e){this.ctx.lineCap=S[e]}setLineJoin(e){this.ctx.lineJoin=C[e]}setMiterLimit(e){this.ctx.miterLimit=e}setDash(e,t){const n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(e),n.lineDashOffset=t)}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(let t=0,n=e.length;t<n;t++){const n=e[t],r=n[0],i=n[1];switch(r){case"LW":this.setLineWidth(i);break;case"LC":this.setLineCap(i);break;case"LJ":this.setLineJoin(i);break;case"ML":this.setMiterLimit(i);break;case"D":this.setDash(i[0],i[1]);break;case"RI":this.setRenderingIntent(i);break;case"FL":this.setFlatness(i);break;case"Font":this.setFont(i[0],i[1]);break;case"CA":this.current.strokeAlpha=n[1];break;case"ca":this.current.fillAlpha=n[1],this.ctx.globalAlpha=n[1];break;case"BM":this.ctx.globalCompositeOperation=i;break;case"SMask":this.current.activeSMask=i?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.current.transferMaps=i}}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const e=this.ctx.canvas.width,t=this.ctx.canvas.height,n="smaskGroupAt"+this.groupLevel,i=this.cachedCanvases.getCanvas(n,e,t);this.suspendedCtx=this.ctx,this.ctx=i.context;const s=this.ctx;s.setTransform(...(0,r.getCurrentTransform)(this.suspendedCtx)),m(this.suspendedCtx,s),function(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(e,n){t.translate(e,n),this.__originalTranslate(e,n)},e.scale=function(e,n){t.scale(e,n),this.__originalScale(e,n)},e.transform=function(e,n,r,i,s,a){t.transform(e,n,r,i,s,a),this.__originalTransform(e,n,r,i,s,a)},e.setTransform=function(e,n,r,i,s,a){t.setTransform(e,n,r,i,s,a),this.__originalSetTransform(e,n,r,i,s,a)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(e){t.rotate(e),this.__originalRotate(e)},e.clip=function(e){t.clip(e),this.__originalClip(e)},e.moveTo=function(e,n){t.moveTo(e,n),this.__originalMoveTo(e,n)},e.lineTo=function(e,n){t.lineTo(e,n),this.__originalLineTo(e,n)},e.bezierCurveTo=function(e,n,r,i,s,a){t.bezierCurveTo(e,n,r,i,s,a),this.__originalBezierCurveTo(e,n,r,i,s,a)},e.rect=function(e,n,r,i){t.rect(e,n,r,i),this.__originalRect(e,n,r,i)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}(s,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),m(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return;e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const t=this.current.activeSMask;w(this.suspendedCtx,t,this.ctx,e),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}save(){this.inSMaskMode?(m(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const e=this.current;this.stateStack.push(e),this.current=e.clone()}restore(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),m(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null)}transform(e,t,n,r,i,s){this.ctx.transform(e,t,n,r,i,s),this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null}constructPath(e,t,n){const s=this.ctx,a=this.current;let o,l,c=a.x,u=a.y;const d=(0,r.getCurrentTransform)(s),h=0===d[0]&&0===d[3]||0===d[1]&&0===d[2],p=h?n.slice(0):null;for(let n=0,r=0,f=e.length;n<f;n++)switch(0|e[n]){case i.OPS.rectangle:c=t[r++],u=t[r++];const e=t[r++],n=t[r++],f=c+e,g=u+n;s.moveTo(c,u),0===e||0===n?s.lineTo(f,g):(s.lineTo(f,u),s.lineTo(f,g),s.lineTo(c,g)),h||a.updateRectMinMax(d,[c,u,f,g]),s.closePath();break;case i.OPS.moveTo:c=t[r++],u=t[r++],s.moveTo(c,u),h||a.updatePathMinMax(d,c,u);break;case i.OPS.lineTo:c=t[r++],u=t[r++],s.lineTo(c,u),h||a.updatePathMinMax(d,c,u);break;case i.OPS.curveTo:o=c,l=u,c=t[r+4],u=t[r+5],s.bezierCurveTo(t[r],t[r+1],t[r+2],t[r+3],c,u),a.updateCurvePathMinMax(d,o,l,t[r],t[r+1],t[r+2],t[r+3],c,u,p),r+=6;break;case i.OPS.curveTo2:o=c,l=u,s.bezierCurveTo(c,u,t[r],t[r+1],t[r+2],t[r+3]),a.updateCurvePathMinMax(d,o,l,c,u,t[r],t[r+1],t[r+2],t[r+3],p),c=t[r+2],u=t[r+3],r+=4;break;case i.OPS.curveTo3:o=c,l=u,c=t[r+2],u=t[r+3],s.bezierCurveTo(t[r],t[r+1],c,u,c,u),a.updateCurvePathMinMax(d,o,l,t[r],t[r+1],c,u,c,u,p),r+=4;break;case i.OPS.closePath:s.closePath()}h&&a.updateScalingPathMinMax(d,p),a.setCurrentPoint(c,u)}closePath(){this.ctx.closePath()}stroke(e){e=void 0===e||e;const t=this.ctx,n=this.current.strokeColor;t.globalAlpha=this.current.strokeAlpha,this.contentVisible&&("object"==typeof n&&n?.getPattern?(t.save(),t.strokeStyle=n.getPattern(t,this,(0,r.getCurrentTransformInverse)(t),s.PathType.STROKE),this.rescaleAndStroke(!1),t.restore()):this.rescaleAndStroke(!0)),e&&this.consumePath(this.current.getClippedPathBoundingBox()),t.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(e){e=void 0===e||e;const t=this.ctx,n=this.current.fillColor;let i=!1;this.current.patternFill&&(t.save(),t.fillStyle=n.getPattern(t,this,(0,r.getCurrentTransformInverse)(t),s.PathType.FILL),i=!0);const a=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==a&&(this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill()),i&&t.restore(),e&&this.consumePath(a)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=A}eoClip(){this.pendingClip=P}beginText(){this.current.textMatrix=i.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){t.save(),t.beginPath();for(const n of e)t.setTransform(...n.transform),t.translate(n.x,n.y),n.addToPath(t,n.fontSize);t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()}setCharSpacing(e){this.current.charSpacing=e}setWordSpacing(e){this.current.wordSpacing=e}setHScale(e){this.current.textHScale=e/100}setLeading(e){this.current.leading=-e}setFont(e,t){const n=this.commonObjs.get(e),r=this.current;if(!n)throw new Error(`Can't find font for ${e}`);if(r.fontMatrix=n.fontMatrix||i.FONT_IDENTITY_MATRIX,0!==r.fontMatrix[0]&&0!==r.fontMatrix[3]||(0,i.warn)("Invalid font matrix for font "+e),t<0?(t=-t,r.fontDirection=-1):r.fontDirection=1,this.current.font=n,this.current.fontSize=t,n.isType3Font)return;const s=n.loadedName||"sans-serif";let a="normal";n.black?a="900":n.bold&&(a="bold");const o=n.italic?"italic":"normal",l=`"${s}", ${n.fallbackName}`;let c=t;t<16?c=16:t>100&&(c=100),this.current.fontSizeScale=t/c,this.ctx.font=`${o} ${a} ${c}px ${l}`}setTextRenderingMode(e){this.current.textRenderingMode=e}setTextRise(e){this.current.textRise=e}moveText(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}setTextMatrix(e,t,n,r,i,s){this.current.textMatrix=[e,t,n,r,i,s],this.current.textMatrixScale=Math.hypot(e,t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(e,t,n,s){const a=this.ctx,o=this.current,l=o.font,c=o.textRenderingMode,u=o.fontSize/o.fontSizeScale,d=c&i.TextRenderingMode.FILL_STROKE_MASK,h=!!(c&i.TextRenderingMode.ADD_TO_PATH_FLAG),p=o.patternFill&&!l.missingFile;let f;(l.disableFontFace||h||p)&&(f=l.getPathGenerator(this.commonObjs,e)),l.disableFontFace||p?(a.save(),a.translate(t,n),a.beginPath(),f(a,u),s&&a.setTransform(...s),d!==i.TextRenderingMode.FILL&&d!==i.TextRenderingMode.FILL_STROKE||a.fill(),d!==i.TextRenderingMode.STROKE&&d!==i.TextRenderingMode.FILL_STROKE||a.stroke(),a.restore()):(d!==i.TextRenderingMode.FILL&&d!==i.TextRenderingMode.FILL_STROKE||a.fillText(e,t,n),d!==i.TextRenderingMode.STROKE&&d!==i.TextRenderingMode.FILL_STROKE||a.strokeText(e,t,n)),h&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,r.getCurrentTransform)(a),x:t,y:n,fontSize:u,addToPath:f})}get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);const t=e.getImageData(0,0,10,10).data;let n=!1;for(let e=3;e<t.length;e+=4)if(t[e]>0&&t[e]<255){n=!0;break}return(0,i.shadow)(this,"isFontSubpixelAAEnabled",n)}showText(e){const t=this.current,n=t.font;if(n.isType3Font)return this.showType3Text(e);const a=t.fontSize;if(0===a)return;const o=this.ctx,l=t.fontSizeScale,c=t.charSpacing,u=t.wordSpacing,d=t.fontDirection,h=t.textHScale*d,p=e.length,f=n.vertical,g=f?1:-1,m=n.defaultVMetrics,v=a*t.fontMatrix[0],y=t.textRenderingMode===i.TextRenderingMode.FILL&&!n.disableFontFace&&!t.patternFill;let b;if(o.save(),o.transform(...t.textMatrix),o.translate(t.x,t.y+t.textRise),d>0?o.scale(h,-1):o.scale(h,1),t.patternFill){o.save();const e=t.fillColor.getPattern(o,this,(0,r.getCurrentTransformInverse)(o),s.PathType.FILL);b=(0,r.getCurrentTransform)(o),o.restore(),o.fillStyle=e}let _=t.lineWidth;const w=t.textMatrixScale;if(0===w||0===_){const e=t.textRenderingMode&i.TextRenderingMode.FILL_STROKE_MASK;e!==i.TextRenderingMode.STROKE&&e!==i.TextRenderingMode.FILL_STROKE||(_=this.getSinglePixelWidth())}else _/=w;1!==l&&(o.scale(l,l),_/=l),o.lineWidth=_;let E,S=0;for(E=0;E<p;++E){const t=e[E];if("number"==typeof t){S+=g*t*a/1e3;continue}let r=!1;const i=(t.isSpace?u:0)+c,s=t.fontChar,h=t.accent;let p,_,w,C=t.width;if(f){const e=t.vmetric||m,n=-(t.vmetric?e[1]:.5*C)*v,r=e[2]*v;C=e?-e[0]:C,p=n/l,_=(S+r)/l}else p=S/l,_=0;if(n.remeasure&&C>0){const e=1e3*o.measureText(s).width/a*l;if(C<e&&this.isFontSubpixelAAEnabled){const t=C/e;r=!0,o.save(),o.scale(t,1),p/=t}else C!==e&&(p+=(C-e)/2e3*a/l)}if(this.contentVisible&&(t.isInFont||n.missingFile))if(y&&!h)o.fillText(s,p,_);else if(this.paintChar(s,p,_,b),h){const e=p+a*h.offset.x/l,t=_-a*h.offset.y/l;this.paintChar(h.fontChar,e,t,b)}w=f?C*v-i*d:C*v+i*d,S+=w,r&&o.restore()}f?t.y-=S:t.x+=S*h,o.restore(),this.compose()}showType3Text(e){const t=this.ctx,n=this.current,r=n.font,s=n.fontSize,a=n.fontDirection,o=r.vertical?1:-1,l=n.charSpacing,c=n.wordSpacing,u=n.textHScale*a,d=n.fontMatrix||i.FONT_IDENTITY_MATRIX,h=e.length;let p,f,g,m;if(n.textRenderingMode!==i.TextRenderingMode.INVISIBLE&&0!==s){for(this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,t.save(),t.transform(...n.textMatrix),t.translate(n.x,n.y),t.scale(u,a),p=0;p<h;++p){if(f=e[p],"number"==typeof f){m=o*f*s/1e3,this.ctx.translate(m,0),n.x+=m*u;continue}const a=(f.isSpace?c:0)+l,h=r.charProcOperatorList[f.operatorListId];h?(this.contentVisible&&(this.processingType3=f,this.save(),t.scale(s,s),t.transform(...d),this.executeOperatorList(h),this.restore()),g=i.Util.applyTransform([f.width,0],d)[0]*s+a,t.translate(g,0),n.x+=g*u):(0,i.warn)(`Type3 character "${f.operatorListId}" is not available.`)}t.restore(),this.processingType3=null}}setCharWidth(e,t){}setCharWidthAndBounds(e,t,n,r,i,s){this.ctx.rect(n,r,i-n,s-r),this.ctx.clip(),this.endPath()}getColorN_Pattern(e){let t;if("TilingPattern"===e[0]){const n=e[1],i=this.baseTransform||(0,r.getCurrentTransform)(this.ctx),a={createCanvasGraphics:e=>new x(e,this.commonObjs,this.objs,this.canvasFactory)};t=new s.TilingPattern(e,n,this.ctx,a,i)}else t=this._getPattern(e[1],e[2]);return t}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(e,t,n){const r=this.selectColor?.(e,t,n)||i.Util.makeHexColor(e,t,n);this.ctx.strokeStyle=r,this.current.strokeColor=r}setFillRGBColor(e,t,n){const r=this.selectColor?.(e,t,n)||i.Util.makeHexColor(e,t,n);this.ctx.fillStyle=r,this.current.fillColor=r,this.current.patternFill=!1}_getPattern(e,t=null){let n;return this.cachedPatterns.has(e)?n=this.cachedPatterns.get(e):(n=(0,s.getShadingPattern)(this.objs.get(e)),this.cachedPatterns.set(e,n)),t&&(n.matrix=t),n}shadingFill(e){if(!this.contentVisible)return;const t=this.ctx;this.save();const n=this._getPattern(e);t.fillStyle=n.getPattern(t,this,(0,r.getCurrentTransformInverse)(t),s.PathType.SHADING);const a=(0,r.getCurrentTransformInverse)(t);if(a){const e=t.canvas,n=e.width,r=e.height,s=i.Util.applyTransform([0,0],a),o=i.Util.applyTransform([0,r],a),l=i.Util.applyTransform([n,0],a),c=i.Util.applyTransform([n,r],a),u=Math.min(s[0],o[0],l[0],c[0]),d=Math.min(s[1],o[1],l[1],c[1]),h=Math.max(s[0],o[0],l[0],c[0]),p=Math.max(s[1],o[1],l[1],c[1]);this.ctx.fillRect(u,d,h-u,p-d)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,i.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,i.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform(...e),this.baseTransform=(0,r.getCurrentTransform)(this.ctx),t)){const e=t[2]-t[0],n=t[3]-t[1];this.ctx.rect(t[0],t[1],e,n),this.current.updateRectMinMax((0,r.getCurrentTransform)(this.ctx),t),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const t=this.ctx;e.isolated||(0,i.info)("TODO: Support non-isolated groups."),e.knockout&&(0,i.warn)("Knockout groups not supported.");const n=(0,r.getCurrentTransform)(t);if(e.matrix&&t.transform(...e.matrix),!e.bbox)throw new Error("Bounding box is required.");let s=i.Util.getAxialAlignedBoundingBox(e.bbox,(0,r.getCurrentTransform)(t));const a=[0,0,t.canvas.width,t.canvas.height];s=i.Util.intersect(s,a)||[0,0,0,0];const o=Math.floor(s[0]),c=Math.floor(s[1]);let u=Math.max(Math.ceil(s[2])-o,1),d=Math.max(Math.ceil(s[3])-c,1),h=1,p=1;u>l&&(h=u/l,u=l),d>l&&(p=d/l,d=l),this.current.startNewPathAndClipBox([0,0,u,d]);let f="groupAt"+this.groupLevel;e.smask&&(f+="_smask_"+this.smaskCounter++%2);const g=this.cachedCanvases.getCanvas(f,u,d),v=g.context;v.scale(1/h,1/p),v.translate(-o,-c),v.transform(...n),e.smask?this.smaskStack.push({canvas:g.canvas,context:v,offsetX:o,offsetY:c,scaleX:h,scaleY:p,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(o,c),t.scale(h,p),t.save()),m(t,v),this.ctx=v,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++}endGroup(e){if(!this.contentVisible)return;this.groupLevel--;const t=this.ctx,n=this.groupStack.pop();if(this.ctx=n,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const e=(0,r.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...e);const n=i.Util.getAxialAlignedBoundingBox([0,0,t.canvas.width,t.canvas.height],e);this.ctx.drawImage(t.canvas,0,0),this.ctx.restore(),this.compose(n)}}beginAnnotation(e,t,n,s,a){if(this.#Y(),v(this.ctx,this.foregroundColor),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(t)&&4===t.length){const s=t[2]-t[0],o=t[3]-t[1];if(a&&this.annotationCanvasMap){(n=n.slice())[4]-=t[0],n[5]-=t[1],(t=t.slice())[0]=t[1]=0,t[2]=s,t[3]=o;const[a,l]=i.Util.singularValueDecompose2dScale((0,r.getCurrentTransform)(this.ctx)),{viewportScale:c}=this,u=Math.ceil(s*this.outputScaleX*c),d=Math.ceil(o*this.outputScaleY*c);this.annotationCanvas=this.canvasFactory.create(u,d);const{canvas:h,context:p}=this.annotationCanvas;this.annotationCanvasMap.set(e,h),this.annotationCanvas.savedCtx=this.ctx,this.ctx=p,this.ctx.setTransform(a,0,0,-l,0,o*l),v(this.ctx,this.foregroundColor)}else v(this.ctx,this.foregroundColor),this.ctx.rect(t[0],t[1],s,o),this.ctx.clip(),this.endPath()}this.current=new p(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...n),this.transform(...s)}endAnnotation(){this.annotationCanvas&&(this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e){if(!this.contentVisible)return;const t=e.count;(e=this.getObject(e.data,e)).count=t;const n=this.ctx,r=this.processingType3;if(r&&(void 0===r.compiled&&(r.compiled=function(e){const{width:t,height:n}=e;if(t>c||n>c)return null;const r=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),i=t+1;let s,a,o,l=new Uint8Array(i*(n+1));const u=t+7&-8;let d=new Uint8Array(u*n),h=0;for(const t of e.data){let e=128;for(;e>0;)d[h++]=t&e?0:255,e>>=1}let p=0;for(h=0,0!==d[h]&&(l[0]=1,++p),a=1;a<t;a++)d[h]!==d[h+1]&&(l[a]=d[h]?2:1,++p),h++;for(0!==d[h]&&(l[a]=2,++p),s=1;s<n;s++){h=s*u,o=s*i,d[h-u]!==d[h]&&(l[o]=d[h]?1:8,++p);let e=(d[h]?4:0)+(d[h-u]?8:0);for(a=1;a<t;a++)e=(e>>2)+(d[h+1]?4:0)+(d[h-u+1]?8:0),r[e]&&(l[o+a]=r[e],++p),h++;if(d[h-u]!==d[h]&&(l[o+a]=d[h]?2:4,++p),p>1e3)return null}for(h=u*(n-1),o=s*i,0!==d[h]&&(l[o]=8,++p),a=1;a<t;a++)d[h]!==d[h+1]&&(l[o+a]=d[h]?4:8,++p),h++;if(0!==d[h]&&(l[o+a]=4,++p),p>1e3)return null;const f=new Int32Array([0,i,-1,0,-i,0,0,0,1]),g=new Path2D;for(s=0;p&&s<=n;s++){let e=s*i;const n=e+t;for(;e<n&&!l[e];)e++;if(e===n)continue;g.moveTo(e%i,s);const r=e;let a=l[e];do{const t=f[a];do{e+=t}while(!l[e]);const n=l[e];5!==n&&10!==n?(a=n,l[e]=0):(a=n&51*a>>4,l[e]&=a>>2|a<<2),g.lineTo(e%i,e/i|0),l[e]||--p}while(r!==e);--s}return d=null,l=null,function(e){e.save(),e.scale(1/t,-1/n),e.translate(0,-n),e.fill(g),e.beginPath(),e.restore()}}(e)),r.compiled))return void r.compiled(n);const i=this._createMaskCanvas(e),s=i.canvas;n.save(),n.setTransform(1,0,0,1,0,0),n.drawImage(s,i.offsetX,i.offsetY),n.restore(),this.compose()}paintImageMaskXObjectRepeat(e,t,n=0,s=0,a,o){if(!this.contentVisible)return;e=this.getObject(e.data,e);const l=this.ctx;l.save();const c=(0,r.getCurrentTransform)(l);l.transform(t,n,s,a,0,0);const u=this._createMaskCanvas(e);l.setTransform(1,0,0,1,0,0);for(let e=0,r=o.length;e<r;e+=2){const r=i.Util.transform(c,[t,n,s,a,o[e],o[e+1]]),[d,h]=i.Util.applyTransform([0,0],r);l.drawImage(u.canvas,d,h)}l.restore(),this.compose()}paintImageMaskXObjectGroup(e){if(!this.contentVisible)return;const t=this.ctx,n=this.current.fillColor,i=this.current.patternFill;for(const a of e){const{data:e,width:o,height:l,transform:c}=a,u=this.cachedCanvases.getCanvas("maskCanvas",o,l),d=u.context;d.save(),g(d,this.getObject(e,a)),d.globalCompositeOperation="source-in",d.fillStyle=i?n.getPattern(d,this,(0,r.getCurrentTransformInverse)(t),s.PathType.FILL):n,d.fillRect(0,0,o,l),d.restore(),t.save(),t.transform(...c),t.scale(1,-1),h(t,u.canvas,0,0,o,l,0,-1,1,1),t.restore()}this.compose()}paintImageXObject(e){if(!this.contentVisible)return;const t=this.getObject(e);t?this.paintInlineImageXObject(t):(0,i.warn)("Dependent image isn't ready yet")}paintImageXObjectRepeat(e,t,n,r){if(!this.contentVisible)return;const s=this.getObject(e);if(!s)return void(0,i.warn)("Dependent image isn't ready yet");const a=s.width,o=s.height,l=[];for(let e=0,i=r.length;e<i;e+=2)l.push({transform:[t,0,0,n,r[e],r[e+1]],x:0,y:0,w:a,h:o});this.paintInlineImageXObjectGroup(s,l)}paintInlineImageXObject(e){if(!this.contentVisible)return;const t=e.width,n=e.height,s=this.ctx;let a;if(this.save(),s.scale(1/t,-1/n),"function"==typeof HTMLElement&&e instanceof HTMLElement||!e.data)a=e;else{const r=this.cachedCanvases.getCanvas("inlineImage",t,n);f(r.context,e,this.current.transferMaps),a=r.canvas}const o=this._scaleImage(a,(0,r.getCurrentTransformInverse)(s));s.imageSmoothingEnabled=E((0,r.getCurrentTransform)(s),e.interpolate);const[l,c]=h(s,o.img,0,0,o.paintWidth,o.paintHeight,0,-n,t,n);if(this.imageLayer){const[t,s]=i.Util.applyTransform([0,-n],(0,r.getCurrentTransform)(this.ctx));this.imageLayer.appendImage({imgData:e,left:t,top:s,width:l,height:c})}this.compose(),this.restore()}paintInlineImageXObjectGroup(e,t){if(!this.contentVisible)return;const n=this.ctx,s=e.width,a=e.height,o=this.cachedCanvases.getCanvas("inlineImage",s,a);f(o.context,e,this.current.transferMaps);for(const l of t){if(n.save(),n.transform(...l.transform),n.scale(1,-1),h(n,o.canvas,l.x,l.y,l.w,l.h,0,-1,1,1),this.imageLayer){const[t,n]=i.Util.applyTransform([l.x,l.y],(0,r.getCurrentTransform)(this.ctx));this.imageLayer.appendImage({imgData:e,left:t,top:n,width:s,height:a})}n.restore()}this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(e){}markPointProps(e,t){}beginMarkedContent(e){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(e,t){"OC"===e?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(t)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(e){const t=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(e);const n=this.ctx;this.pendingClip&&(t||(this.pendingClip===P?n.clip("evenodd"):n.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),n.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const e=(0,r.getCurrentTransform)(this.ctx);if(0===e[1]&&0===e[2])this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(e[0]),Math.abs(e[3]));else{const t=Math.abs(e[0]*e[3]-e[2]*e[1]),n=Math.hypot(e[0],e[2]),r=Math.hypot(e[1],e[3]);this._cachedGetSinglePixelWidth=Math.max(n,r)/t}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(!this._cachedScaleForStroking){const{lineWidth:e}=this.current,t=(0,r.getCurrentTransform)(this.ctx);let n,i;if(0===t[1]&&0===t[2]){const r=Math.abs(t[0]),s=Math.abs(t[3]);if(0===e)n=1/r,i=1/s;else{const t=r*e,a=s*e;n=t<1?1/t:1,i=a<1?1/a:1}}else{const r=Math.abs(t[0]*t[3]-t[2]*t[1]),s=Math.hypot(t[0],t[1]),a=Math.hypot(t[2],t[3]);if(0===e)n=a/r,i=s/r;else{const t=e*r;n=a>t?a/t:1,i=s>t?s/t:1}}this._cachedScaleForStroking=[n,i]}return this._cachedScaleForStroking}rescaleAndStroke(e){const{ctx:t}=this,{lineWidth:n}=this.current,[i,s]=this.getScaleForStroking();if(t.lineWidth=n||1,1===i&&1===s)return void t.stroke();let a,o,l;e&&(a=(0,r.getCurrentTransform)(t),o=t.getLineDash().slice(),l=t.lineDashOffset),t.scale(i,s);const c=Math.max(i,s);t.setLineDash(t.getLineDash().map((e=>e/c))),t.lineDashOffset/=c,t.stroke(),e&&(t.setTransform(...a),t.setLineDash(o),t.lineDashOffset=l)}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}t.CanvasGraphics=x;for(const e in i.OPS)void 0!==x.prototype[e]&&(x.prototype[i.OPS[e]]=x.prototype[e])},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.PathType=void 0,t.getShadingPattern=function(e){switch(e[0]){case"RadialAxial":return new c(e);case"Mesh":return new h(e);case"Dummy":return new p}throw new Error(`Unknown IR type: ${e[0]}`)};var r=n(1),i=n(8),s=n(3);const a={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function o(e,t){if(!t||s.isNodeJS)return;const n=t[2]-t[0],r=t[3]-t[1],i=new Path2D;i.rect(t[0],t[1],n,r),e.clip(i)}t.PathType=a;class l{constructor(){this.constructor===l&&(0,r.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,r.unreachable)("Abstract method `getPattern` called.")}}class c extends l{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let t;"axial"===this._type?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const e of this._colorStops)t.addColorStop(e[0],e[1]);return t}getPattern(e,t,n,s){let l;if(s===a.STROKE||s===a.FILL){const a=t.current.getClippedPathBoundingBox(s,(0,i.getCurrentTransform)(e))||[0,0,0,0],c=Math.ceil(a[2]-a[0])||1,u=Math.ceil(a[3]-a[1])||1,d=t.cachedCanvases.getCanvas("pattern",c,u,!0),h=d.context;h.clearRect(0,0,h.canvas.width,h.canvas.height),h.beginPath(),h.rect(0,0,h.canvas.width,h.canvas.height),h.translate(-a[0],-a[1]),n=r.Util.transform(n,[1,0,0,1,a[0],a[1]]),h.transform(...t.baseTransform),this.matrix&&h.transform(...this.matrix),o(h,this._bbox),h.fillStyle=this._createGradient(h),h.fill(),l=e.createPattern(d.canvas,"no-repeat");const p=new DOMMatrix(n);try{l.setTransform(p)}catch(e){(0,r.warn)(`RadialAxialShadingPattern.getPattern: "${e?.message}".`)}}else o(e,this._bbox),l=this._createGradient(e);return l}}function u(e,t,n,r,i,s,a,o){const l=t.coords,c=t.colors,u=e.data,d=4*e.width;let h;l[n+1]>l[r+1]&&(h=n,n=r,r=h,h=s,s=a,a=h),l[r+1]>l[i+1]&&(h=r,r=i,i=h,h=a,a=o,o=h),l[n+1]>l[r+1]&&(h=n,n=r,r=h,h=s,s=a,a=h);const p=(l[n]+t.offsetX)*t.scaleX,f=(l[n+1]+t.offsetY)*t.scaleY,g=(l[r]+t.offsetX)*t.scaleX,m=(l[r+1]+t.offsetY)*t.scaleY,v=(l[i]+t.offsetX)*t.scaleX,y=(l[i+1]+t.offsetY)*t.scaleY;if(f>=y)return;const b=c[s],_=c[s+1],w=c[s+2],E=c[a],S=c[a+1],C=c[a+2],A=c[o],P=c[o+1],x=c[o+2],T=Math.round(f),M=Math.round(y);let R,L,I,k,O,F,D,N;for(let e=T;e<=M;e++){if(e<m){let t;t=e<f?0:(f-e)/(f-m),R=p-(p-g)*t,L=b-(b-E)*t,I=_-(_-S)*t,k=w-(w-C)*t}else{let t;t=e>y?1:m===y?0:(m-e)/(m-y),R=g-(g-v)*t,L=E-(E-A)*t,I=S-(S-P)*t,k=C-(C-x)*t}let t;t=e<f?0:e>y?1:(f-e)/(f-y),O=p-(p-v)*t,F=b-(b-A)*t,D=_-(_-P)*t,N=w-(w-x)*t;const n=Math.round(Math.min(R,O)),r=Math.round(Math.max(R,O));let i=d*e+4*n;for(let e=n;e<=r;e++)t=(R-e)/(R-O),t<0?t=0:t>1&&(t=1),u[i++]=L-(L-F)*t|0,u[i++]=I-(I-D)*t|0,u[i++]=k-(k-N)*t|0,u[i++]=255}}function d(e,t,n){const r=t.coords,i=t.colors;let s,a;switch(t.type){case"lattice":const o=t.verticesPerRow,l=Math.floor(r.length/o)-1,c=o-1;for(s=0;s<l;s++){let t=s*o;for(let s=0;s<c;s++,t++)u(e,n,r[t],r[t+1],r[t+o],i[t],i[t+1],i[t+o]),u(e,n,r[t+o+1],r[t+1],r[t+o],i[t+o+1],i[t+1],i[t+o])}break;case"triangles":for(s=0,a=r.length;s<a;s+=3)u(e,n,r[s],r[s+1],r[s+2],i[s],i[s+1],i[s+2]);break;default:throw new Error("illegal figure")}}class h extends l{constructor(e){super(),this._coords=e[2],this._colors=e[3],this._figures=e[4],this._bounds=e[5],this._bbox=e[7],this._background=e[8],this.matrix=null}_createMeshCanvas(e,t,n){const r=Math.floor(this._bounds[0]),i=Math.floor(this._bounds[1]),s=Math.ceil(this._bounds[2])-r,a=Math.ceil(this._bounds[3])-i,o=Math.min(Math.ceil(Math.abs(s*e[0]*1.1)),3e3),l=Math.min(Math.ceil(Math.abs(a*e[1]*1.1)),3e3),c=s/o,u=a/l,h={coords:this._coords,colors:this._colors,offsetX:-r,offsetY:-i,scaleX:1/c,scaleY:1/u},p=o+4,f=l+4,g=n.getCanvas("mesh",p,f,!1),m=g.context,v=m.createImageData(o,l);if(t){const e=v.data;for(let n=0,r=e.length;n<r;n+=4)e[n]=t[0],e[n+1]=t[1],e[n+2]=t[2],e[n+3]=255}for(const e of this._figures)d(v,e,h);return m.putImageData(v,2,2),{canvas:g.canvas,offsetX:r-2*c,offsetY:i-2*u,scaleX:c,scaleY:u}}getPattern(e,t,n,s){let l;if(o(e,this._bbox),s===a.SHADING)l=r.Util.singularValueDecompose2dScale((0,i.getCurrentTransform)(e));else if(l=r.Util.singularValueDecompose2dScale(t.baseTransform),this.matrix){const e=r.Util.singularValueDecompose2dScale(this.matrix);l=[l[0]*e[0],l[1]*e[1]]}const c=this._createMeshCanvas(l,s===a.SHADING?null:this._background,t.cachedCanvases);return s!==a.SHADING&&(e.setTransform(...t.baseTransform),this.matrix&&e.transform(...this.matrix)),e.translate(c.offsetX,c.offsetY),e.scale(c.scaleX,c.scaleY),e.createPattern(c.canvas,"no-repeat")}}class p extends l{getPattern(){return"hotpink"}}const f=1,g=2;class m{static get MAX_PATTERN_SIZE(){return(0,r.shadow)(this,"MAX_PATTERN_SIZE",3e3)}constructor(e,t,n,r,i){this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.ctx=n,this.canvasGraphicsFactory=r,this.baseTransform=i}createPatternCanvas(e){const t=this.operatorList,n=this.bbox,s=this.xstep,a=this.ystep,o=this.paintType,l=this.tilingType,c=this.color,u=this.canvasGraphicsFactory;(0,r.info)("TilingType: "+l);const d=n[0],h=n[1],p=n[2],f=n[3],g=r.Util.singularValueDecompose2dScale(this.matrix),m=r.Util.singularValueDecompose2dScale(this.baseTransform),v=[g[0]*m[0],g[1]*m[1]],y=this.getSizeAndScale(s,this.ctx.canvas.width,v[0]),b=this.getSizeAndScale(a,this.ctx.canvas.height,v[1]),_=e.cachedCanvases.getCanvas("pattern",y.size,b.size,!0),w=_.context,E=u.createCanvasGraphics(w);E.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(E,o,c);let S=d,C=h,A=p,P=f;return d<0&&(S=0,A+=Math.abs(d)),h<0&&(C=0,P+=Math.abs(h)),w.translate(-y.scale*S,-b.scale*C),E.transform(y.scale,0,0,b.scale,0,0),w.save(),this.clipBbox(E,S,C,A,P),E.baseTransform=(0,i.getCurrentTransform)(E.ctx),E.executeOperatorList(t),E.endDrawing(),{canvas:_.canvas,scaleX:y.scale,scaleY:b.scale,offsetX:S,offsetY:C}}getSizeAndScale(e,t,n){e=Math.abs(e);const r=Math.max(m.MAX_PATTERN_SIZE,t);let i=Math.ceil(e*n);return i>=r?i=r:n=i/e,{scale:n,size:i}}clipBbox(e,t,n,r,s){const a=r-t,o=s-n;e.ctx.rect(t,n,a,o),e.current.updateRectMinMax((0,i.getCurrentTransform)(e.ctx),[t,n,r,s]),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,n){const i=e.ctx,s=e.current;switch(t){case f:const e=this.ctx;i.fillStyle=e.fillStyle,i.strokeStyle=e.strokeStyle,s.fillColor=e.fillStyle,s.strokeColor=e.strokeStyle;break;case g:const a=r.Util.makeHexColor(n[0],n[1],n[2]);i.fillStyle=a,i.strokeStyle=a,s.fillColor=a,s.strokeColor=a;break;default:throw new r.FormatError(`Unsupported paint type: ${t}`)}}getPattern(e,t,n,i){let s=n;i!==a.SHADING&&(s=r.Util.transform(s,t.baseTransform),this.matrix&&(s=r.Util.transform(s,this.matrix)));const o=this.createPatternCanvas(t);let l=new DOMMatrix(s);l=l.translate(o.offsetX,o.offsetY),l=l.scale(1/o.scaleX,1/o.scaleY);const c=e.createPattern(o.canvas,"repeat");try{c.setTransform(l)}catch(e){(0,r.warn)(`TilingPattern.getPattern: "${e?.message}".`)}return c}}t.TilingPattern=m},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.applyMaskImageData=function({src:e,srcPos:t=0,dest:n,destPos:i=0,width:s,height:a,inverseDecode:o=!1}){const l=r.FeatureTest.isLittleEndian?4278190080:255,[c,u]=o?[0,l]:[l,0],d=s>>3,h=7&s,p=e.length;n=new Uint32Array(n.buffer);for(let r=0;r<a;r++){for(const r=t+d;t<r;t++){const r=t<p?e[t]:255;n[i++]=128&r?u:c,n[i++]=64&r?u:c,n[i++]=32&r?u:c,n[i++]=16&r?u:c,n[i++]=8&r?u:c,n[i++]=4&r?u:c,n[i++]=2&r?u:c,n[i++]=1&r?u:c}if(0===h)continue;const r=t<p?e[t++]:255;for(let e=0;e<h;e++)n[i++]=r&1<<7-e?u:c}return{srcPos:t,destPos:i}};var r=n(1)},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;const n=Object.create(null);t.GlobalWorkerOptions=n,n.workerPort=void 0===n.workerPort?null:n.workerPort,n.workerSrc=void 0===n.workerSrc?"":n.workerSrc},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var r=n(1);const i=1,s=2,a=1,o=2,l=3,c=4,u=5,d=6,h=7,p=8;function f(e){switch(e instanceof Error||"object"==typeof e&&null!==e||(0,r.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new r.AbortException(e.message);case"MissingPDFException":return new r.MissingPDFException(e.message);case"PasswordException":return new r.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new r.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new r.UnknownErrorException(e.message,e.details);default:return new r.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,n){this.sourceName=e,this.targetName=t,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=e=>{const t=e.data;if(t.targetName!==this.sourceName)return;if(t.stream)return void this._processStreamMessage(t);if(t.callback){const e=t.callbackId,n=this.callbackCapabilities[e];if(!n)throw new Error(`Cannot resolve callback ${e}`);if(delete this.callbackCapabilities[e],t.callback===i)n.resolve(t.data);else{if(t.callback!==s)throw new Error("Unexpected callback case");n.reject(f(t.reason))}return}const r=this.actionHandler[t.action];if(!r)throw new Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){const e=this.sourceName,a=t.sourceName;new Promise((function(e){e(r(t.data))})).then((function(r){n.postMessage({sourceName:e,targetName:a,callback:i,callbackId:t.callbackId,data:r})}),(function(r){n.postMessage({sourceName:e,targetName:a,callback:s,callbackId:t.callbackId,reason:f(r)})}))}else t.streamId?this._createStreamSink(t):r(t.data)},n.addEventListener("message",this._onComObjOnMessage)}on(e,t){const n=this.actionHandler;if(n[e])throw new Error(`There is already an actionName called "${e}"`);n[e]=t}send(e,t,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){const i=this.callbackId++,s=(0,r.createPromiseCapability)();this.callbackCapabilities[i]=s;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:t},n)}catch(e){s.reject(e)}return s.promise}sendWithStream(e,t,n,i){const s=this.streamId++,o=this.sourceName,l=this.targetName,c=this.comObj;return new ReadableStream({start:n=>{const a=(0,r.createPromiseCapability)();return this.streamControllers[s]={controller:n,startCall:a,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:o,targetName:l,action:e,streamId:s,data:t,desiredSize:n.desiredSize},i),a.promise},pull:e=>{const t=(0,r.createPromiseCapability)();return this.streamControllers[s].pullCall=t,c.postMessage({sourceName:o,targetName:l,stream:d,streamId:s,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,r.assert)(e instanceof Error,"cancel must have a valid reason");const t=(0,r.createPromiseCapability)();return this.streamControllers[s].cancelCall=t,this.streamControllers[s].isClosed=!0,c.postMessage({sourceName:o,targetName:l,stream:a,streamId:s,reason:f(e)}),t.promise}},n)}_createStreamSink(e){const t=e.streamId,n=this.sourceName,i=e.sourceName,s=this.comObj,a=this,o=this.actionHandler[e.action],d={enqueue(e,a=1,o){if(this.isCancelled)return;const l=this.desiredSize;this.desiredSize-=a,l>0&&this.desiredSize<=0&&(this.sinkCapability=(0,r.createPromiseCapability)(),this.ready=this.sinkCapability.promise),s.postMessage({sourceName:n,targetName:i,stream:c,streamId:t,chunk:e},o)},close(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:n,targetName:i,stream:l,streamId:t}),delete a.streamSinks[t])},error(e){(0,r.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:n,targetName:i,stream:u,streamId:t,reason:f(e)}))},sinkCapability:(0,r.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};d.sinkCapability.resolve(),d.ready=d.sinkCapability.promise,this.streamSinks[t]=d,new Promise((function(t){t(o(e.data,d))})).then((function(){s.postMessage({sourceName:n,targetName:i,stream:p,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:n,targetName:i,stream:p,streamId:t,reason:f(e)})}))}_processStreamMessage(e){const t=e.streamId,n=this.sourceName,i=e.sourceName,s=this.comObj,g=this.streamControllers[t],m=this.streamSinks[t];switch(e.stream){case p:e.success?g.startCall.resolve():g.startCall.reject(f(e.reason));break;case h:e.success?g.pullCall.resolve():g.pullCall.reject(f(e.reason));break;case d:if(!m){s.postMessage({sourceName:n,targetName:i,stream:h,streamId:t,success:!0});break}m.desiredSize<=0&&e.desiredSize>0&&m.sinkCapability.resolve(),m.desiredSize=e.desiredSize,new Promise((function(e){e(m.onPull&&m.onPull())})).then((function(){s.postMessage({sourceName:n,targetName:i,stream:h,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:n,targetName:i,stream:h,streamId:t,reason:f(e)})}));break;case c:if((0,r.assert)(g,"enqueue should have stream controller"),g.isClosed)break;g.controller.enqueue(e.chunk);break;case l:if((0,r.assert)(g,"close should have stream controller"),g.isClosed)break;g.isClosed=!0,g.controller.close(),this._deleteStreamController(g,t);break;case u:(0,r.assert)(g,"error should have stream controller"),g.controller.error(f(e.reason)),this._deleteStreamController(g,t);break;case o:e.success?g.cancelCall.resolve():g.cancelCall.reject(f(e.reason)),this._deleteStreamController(g,t);break;case a:if(!m)break;new Promise((function(t){t(m.onCancel&&m.onCancel(f(e.reason)))})).then((function(){s.postMessage({sourceName:n,targetName:i,stream:o,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:n,targetName:i,stream:o,streamId:t,reason:f(e)})})),m.sinkCapability.reject(f(e.reason)),m.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(e,t){await Promise.allSettled([e.startCall&&e.startCall.promise,e.pullCall&&e.pullCall.promise,e.cancelCall&&e.cancelCall.promise]),delete this.streamControllers[t]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var r=n(1);t.Metadata=class{#J;#Z;constructor({parsedData:e,rawData:t}){this.#J=e,this.#Z=t}getRaw(){return this.#Z}get(e){return this.#J.get(e)??null}getAll(){return(0,r.objectFromMap)(this.#J)}has(e){return this.#J.has(e)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var r=n(1);const i=Symbol("INTERNAL");class s{#ee=!0;constructor(e,t){this.name=e,this.intent=t}get visible(){return this.#ee}_setVisible(e,t){e!==i&&(0,r.unreachable)("Internal method `_setVisible` called."),this.#ee=t}}t.OptionalContentConfig=class{#te=!0;#ne=new Map;#re=null;#ie=null;constructor(e){if(this.name=null,this.creator=null,null!==e){this.name=e.name,this.creator=e.creator,this.#ie=e.order;for(const t of e.groups)this.#ne.set(t.id,new s(t.name,t.intent));if("OFF"===e.baseState)for(const e of this.#ne.values())e._setVisible(i,!1);for(const t of e.on)this.#ne.get(t)._setVisible(i,!0);for(const t of e.off)this.#ne.get(t)._setVisible(i,!1);this.#re=new Map;for(const[e,t]of this.#ne)this.#re.set(e,t.visible)}}#se(e){const t=e.length;if(t<2)return!0;const n=e[0];for(let i=1;i<t;i++){const t=e[i];let s;if(Array.isArray(t))s=this.#se(t);else{if(!this.#ne.has(t))return(0,r.warn)(`Optional content group not found: ${t}`),!0;s=this.#ne.get(t).visible}switch(n){case"And":if(!s)return!1;break;case"Or":if(s)return!0;break;case"Not":return!s;default:return!0}}return"And"===n}isVisible(e){if(0===this.#ne.size)return!0;if(!e)return(0,r.warn)("Optional content group not defined."),!0;if("OCG"===e.type)return this.#ne.has(e.id)?this.#ne.get(e.id).visible:((0,r.warn)(`Optional content group not found: ${e.id}`),!0);if("OCMD"===e.type){if(e.expression)return this.#se(e.expression);if(!e.policy||"AnyOn"===e.policy){for(const t of e.ids){if(!this.#ne.has(t))return(0,r.warn)(`Optional content group not found: ${t}`),!0;if(this.#ne.get(t).visible)return!0}return!1}if("AllOn"===e.policy){for(const t of e.ids){if(!this.#ne.has(t))return(0,r.warn)(`Optional content group not found: ${t}`),!0;if(!this.#ne.get(t).visible)return!1}return!0}if("AnyOff"===e.policy){for(const t of e.ids){if(!this.#ne.has(t))return(0,r.warn)(`Optional content group not found: ${t}`),!0;if(!this.#ne.get(t).visible)return!0}return!1}if("AllOff"===e.policy){for(const t of e.ids){if(!this.#ne.has(t))return(0,r.warn)(`Optional content group not found: ${t}`),!0;if(this.#ne.get(t).visible)return!1}return!0}return(0,r.warn)(`Unknown optional content policy ${e.policy}.`),!0}return(0,r.warn)(`Unknown group type ${e.type}.`),!0}setVisibility(e,t=!0){this.#ne.has(e)?(this.#ne.get(e)._setVisible(i,!!t),this.#te=null):(0,r.warn)(`Optional content group not found: ${e}`)}get hasInitialVisibility(){if(null!==this.#te)return this.#te;for(const[e,t]of this.#ne){const n=this.#re.get(e);if(t.visible!==n)return this.#te=!1}return this.#te=!0}getOrder(){return this.#ne.size?this.#ie?this.#ie.slice():[...this.#ne.keys()]:null}getGroups(){return this.#ne.size>0?(0,r.objectFromMap)(this.#ne):null}getGroup(e){return this.#ne.get(e)||null}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var r=n(1),i=n(8);t.PDFDataTransportStream=class{constructor(e,t){(0,r.assert)(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=e.progressiveDone||!1,this._contentDispositionFilename=e.contentDispositionFilename||null;const n=e.initialData;if(n?.length>0){const e=new Uint8Array(n).buffer;this._queuedChunks.push(e)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._contentLength=e.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(((e,t)=>{this._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener(((e,t)=>{this._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((e=>{this._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((()=>{this._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}_onReceiveData(e){const t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{const n=this._rangeReaders.some((function(n){return n._begin===e.begin&&(n._enqueue(t),!0)}));(0,r.assert)(n,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(e){if(void 0===e.total){const t=this._rangeReaders[0];t?.onProgress&&t.onProgress({loaded:e.loaded})}else{const t=this._fullRequestReader;t?.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){(0,r.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new s(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new a(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);for(const t of this._rangeReaders.slice(0))t.cancel(e);this._pdfDataRangeTransport.abort()}};class s{constructor(e,t,n=!1,r=null){this._stream=e,this._done=n||!1,this._filename=(0,i.isPdfFile)(r)?r:null,this._queuedChunks=t||[],this._loaded=0;for(const e of this._queuedChunks)this._loaded+=e.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class a{constructor(e,t,n){this._stream=e,this._begin=t,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaText=void 0;class n{static textContent(e){const t=[],r={items:t,styles:Object.create(null)};return function e(r){if(!r)return;let i=null;const s=r.name;if("#text"===s)i=r.value;else{if(!n.shouldBuildText(s))return;r?.attributes?.textContent?i=r.attributes.textContent:r.value&&(i=r.value)}if(null!==i&&t.push({str:i}),r.children)for(const t of r.children)e(t)}(e),r}static shouldBuildText(e){return!("textarea"===e||"input"===e||"option"===e||"select"===e)}}t.XfaText=n},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeCanvasFactory=t.NodeCMapReaderFactory=void 0;var r=n(9);const i=function(e){return new Promise(((t,n)=>{require$$5.readFile(e,((e,r)=>{!e&&r?t(new Uint8Array(r)):n(new Error(e))}))}))};class s extends r.BaseCanvasFactory{_createCanvas(e,t){return require$$5.createCanvas(e,t)}}t.NodeCanvasFactory=s;class a extends r.BaseCMapReaderFactory{_fetchData(e,t){return i(e).then((e=>({cMapData:e,compressionType:t})))}}t.NodeCMapReaderFactory=a;class o extends r.BaseStandardFontDataFactory{_fetchData(e){return i(e)}}t.NodeStandardFontDataFactory=o},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayer=void 0;var r=n(7),i=n(1),s=n(23),a=n(24);class o{#ae;#oe=!1;#le=this.pointerup.bind(this);#ce=this.pointerdown.bind(this);#ue=new Map;#de=!1;#he=!1;#pe;static _initialized=!1;constructor(e){o._initialized||(o._initialized=!0,s.FreeTextEditor.initialize(e.l10n),a.InkEditor.initialize(e.l10n),e.uiManager.registerEditorTypes([s.FreeTextEditor,a.InkEditor])),this.#pe=e.uiManager,this.annotationStorage=e.annotationStorage,this.pageIndex=e.pageIndex,this.div=e.div,this.#ae=e.accessibilityManager,this.#pe.addLayer(this)}updateToolbar(e){this.#pe.updateToolbar(e)}updateMode(e=this.#pe.getMode()){this.#fe(),e===i.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),this.#pe.unselectAll()}addInkEditorIfNeeded(e){if(e||this.#pe.getMode()===i.AnnotationEditorType.INK){if(!e)for(const e of this.#ue.values())if(e.isEmpty())return void e.setInBackground();this.#ge({offsetX:0,offsetY:0}).setInBackground()}}setEditingState(e){this.#pe.setEditingState(e)}addCommands(e){this.#pe.addCommands(e)}enable(){this.div.style.pointerEvents="auto";for(const e of this.#ue.values())e.enableEditing()}disable(){this.div.style.pointerEvents="none";for(const e of this.#ue.values())e.disableEditing()}setActiveEditor(e){this.#pe.getActive()!==e&&this.#pe.setActiveEditor(e)}enableClick(){this.div.addEventListener("pointerdown",this.#ce),this.div.addEventListener("pointerup",this.#le)}disableClick(){this.div.removeEventListener("pointerdown",this.#ce),this.div.removeEventListener("pointerup",this.#le)}attach(e){this.#ue.set(e.id,e)}detach(e){this.#ue.delete(e.id),this.#ae?.removePointerInTextLayer(e.contentDiv)}remove(e){this.#pe.removeEditor(e),this.detach(e),this.annotationStorage.remove(e.id),e.div.style.display="none",setTimeout((()=>{e.div.style.display="",e.div.remove(),e.isAttachedToDOM=!1,document.activeElement===document.body&&this.#pe.focusMainContainer()}),0),this.#he||this.addInkEditorIfNeeded(!1)}#me(e){e.parent!==this&&(this.attach(e),e.pageIndex=this.pageIndex,e.parent?.detach(e),e.parent=this,e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(this.#me(e),this.#pe.addEditor(e),this.attach(e),!e.isAttachedToDOM){const t=e.render();this.div.append(t),e.isAttachedToDOM=!0}this.moveEditorInDOM(e),e.onceAdded(),this.addToAnnotationStorage(e)}moveEditorInDOM(e){this.#ae?.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}addToAnnotationStorage(e){e.isEmpty()||this.annotationStorage.has(e.id)||this.annotationStorage.setValue(e.id,e)}addOrRebuild(e){e.needsToBeRebuilt()?e.rebuild():this.add(e)}addANewEditor(e){this.addCommands({cmd:()=>{this.addOrRebuild(e)},undo:()=>{e.remove()},mustExec:!0})}addUndoableEditor(e){this.addCommands({cmd:()=>{this.addOrRebuild(e)},undo:()=>{e.remove()},mustExec:!1})}getNextId(){return this.#pe.getId()}#ve(e){switch(this.#pe.getMode()){case i.AnnotationEditorType.FREETEXT:return new s.FreeTextEditor(e);case i.AnnotationEditorType.INK:return new a.InkEditor(e)}return null}deserialize(e){switch(e.annotationType){case i.AnnotationEditorType.FREETEXT:return s.FreeTextEditor.deserialize(e,this);case i.AnnotationEditorType.INK:return a.InkEditor.deserialize(e,this)}return null}#ge(e){const t=this.getNextId(),n=this.#ve({parent:this,id:t,x:e.offsetX,y:e.offsetY});return n&&this.add(n),n}setSelected(e){this.#pe.setSelected(e)}toggleSelected(e){this.#pe.toggleSelected(e)}isSelected(e){return this.#pe.isSelected(e)}unselect(e){this.#pe.unselect(e)}pointerup(e){const t=r.KeyboardManager.platform.isMac;0!==e.button||e.ctrlKey&&t||e.target===this.div&&this.#de&&(this.#de=!1,this.#oe?this.#ge(e):this.#oe=!0)}pointerdown(e){const t=r.KeyboardManager.platform.isMac;if(0!==e.button||e.ctrlKey&&t)return;if(e.target!==this.div)return;this.#de=!0;const n=this.#pe.getActive();this.#oe=!n||n.isEmpty()}drop(e){const t=e.dataTransfer.getData("text/plain"),n=this.#pe.getEditor(t);if(!n)return;e.preventDefault(),e.dataTransfer.dropEffect="move",this.#me(n);const r=this.div.getBoundingClientRect(),i=e.clientX-r.x,s=e.clientY-r.y;n.translate(i-n.startX,s-n.startY),this.moveEditorInDOM(n),n.div.focus()}dragover(e){e.preventDefault()}destroy(){this.#pe.getActive()?.parent===this&&this.#pe.setActiveEditor(null);for(const e of this.#ue.values())this.#ae?.removePointerInTextLayer(e.contentDiv),e.isAttachedToDOM=!1,e.div.remove(),e.parent=null;this.div=null,this.#ue.clear(),this.#pe.removeLayer(this)}#fe(){this.#he=!0;for(const e of this.#ue.values())e.isEmpty()&&e.remove();this.#he=!1}render(e){this.viewport=e.viewport,(0,r.bindEvents)(this,this.div,["dragover","drop"]),this.setDimensions();for(const e of this.#pe.getEditors(this.pageIndex))this.add(e);this.updateMode()}update(e){this.viewport=e.viewport,this.setDimensions(),this.updateMode()}get scaleFactor(){return this.viewport.scale}get pageDimensions(){const[e,t,n,r]=this.viewport.viewBox;return[n-e,r-t]}get viewportBaseDimensions(){const{width:e,height:t,rotation:n}=this.viewport;return n%180==0?[e,t]:[t,e]}setDimensions(){const{width:e,height:t,rotation:n}=this.viewport,r=n%180!=0,i=Math.floor(e)+"px",s=Math.floor(t)+"px";this.div.style.width=r?s:i,this.div.style.height=r?i:s,this.div.setAttribute("data-main-rotation",n)}}t.AnnotationEditorLayer=o},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FreeTextEditor=void 0;var r=n(1),i=n(7),s=n(6);class a extends s.AnnotationEditor{#ye=this.editorDivBlur.bind(this);#be=this.editorDivFocus.bind(this);#_e=this.editorDivKeydown.bind(this);#we;#Ee="";#Se=!1;#Ce;static _freeTextDefaultContent="";static _l10nPromise;static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static _keyboardManager=new i.KeyboardManager([[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],a.prototype.commitOrRemove]]);static _type="freetext";constructor(e){super({...e,name:"freeTextEditor"}),this.#we=e.color||a._defaultColor||s.AnnotationEditor._defaultLineColor,this.#Ce=e.fontSize||a._defaultFontSize}static initialize(e){this._l10nPromise=new Map(["free_text_default_content","editor_free_text_aria_label"].map((t=>[t,e.get(t)])));const t=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(t.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,t){switch(e){case r.AnnotationEditorParamsType.FREETEXT_SIZE:a._defaultFontSize=t;break;case r.AnnotationEditorParamsType.FREETEXT_COLOR:a._defaultColor=t}}updateParams(e,t){switch(e){case r.AnnotationEditorParamsType.FREETEXT_SIZE:this.#Ae(t);break;case r.AnnotationEditorParamsType.FREETEXT_COLOR:this.#Pe(t)}}static get defaultPropertiesToUpdate(){return[[r.AnnotationEditorParamsType.FREETEXT_SIZE,a._defaultFontSize],[r.AnnotationEditorParamsType.FREETEXT_COLOR,a._defaultColor||s.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[r.AnnotationEditorParamsType.FREETEXT_SIZE,this.#Ce],[r.AnnotationEditorParamsType.FREETEXT_COLOR,this.#we]]}#Ae(e){const t=e=>{this.editorDiv.style.fontSize=`calc(${e}px * var(--scale-factor))`,this.translate(0,-(e-this.#Ce)*this.parent.scaleFactor),this.#Ce=e,this.#xe()},n=this.#Ce;this.parent.addCommands({cmd:()=>{t(e)},undo:()=>{t(n)},mustExec:!0,type:r.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}#Pe(e){const t=this.#we;this.parent.addCommands({cmd:()=>{this.#we=e,this.editorDiv.style.color=e},undo:()=>{this.#we=t,this.editorDiv.style.color=t},mustExec:!0,type:r.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}getInitialTranslation(){return[-a._internalPadding*this.parent.scaleFactor,-(a._internalPadding+this.#Ce)*this.parent.scaleFactor]}rebuild(){super.rebuild(),null!==this.div&&(this.isAttachedToDOM||this.parent.add(this))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(r.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.enableEditing(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this.div.draggable=!1,this.editorDiv.addEventListener("keydown",this.#_e),this.editorDiv.addEventListener("focus",this.#be),this.editorDiv.addEventListener("blur",this.#ye))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.disableEditing(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.draggable=!0,this.editorDiv.removeEventListener("keydown",this.#_e),this.editorDiv.removeEventListener("focus",this.#be),this.editorDiv.removeEventListener("blur",this.#ye),this.div.focus(),this.isEditing=!1)}focusin(e){super.focusin(e),e.target!==this.editorDiv&&this.editorDiv.focus()}onceAdded(){this.width||(this.enableEditMode(),this.editorDiv.focus())}isEmpty(){return!this.editorDiv||""===this.editorDiv.innerText.trim()}remove(){this.isEditing=!1,this.parent.setEditingState(!0),super.remove()}#Te(){const e=this.editorDiv.getElementsByTagName("div");if(0===e.length)return this.editorDiv.innerText;const t=[];for(let n=0,r=e.length;n<r;n++){const r=e[n].firstChild;"#text"===r?.nodeName?t.push(r.data):t.push("")}return t.join("\n")}#xe(){const[e,t]=this.parent.viewportBaseDimensions,n=this.div.getBoundingClientRect();this.width=n.width/e,this.height=n.height/t}commit(){super.commit(),this.#Se||(this.#Se=!0,this.parent.addUndoableEditor(this)),this.disableEditMode(),this.#Ee=this.#Te().trimEnd(),this.#xe()}shouldGetKeyboardEvents(){return this.isInEditMode()}dblclick(e){this.enableEditMode(),this.editorDiv.focus()}keydown(e){e.target===this.div&&"Enter"===e.key&&(this.enableEditMode(),this.editorDiv.focus())}editorDivKeydown(e){a._keyboardManager.exec(this,e)}editorDivFocus(e){this.isEditing=!0}editorDivBlur(e){this.isEditing=!1}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let e,t;this.width&&(e=this.x,t=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",`${this.id}-editor`),this.enableEditing(),a._l10nPromise.get("editor_free_text_aria_label").then((e=>this.editorDiv?.setAttribute("aria-label",e))),a._l10nPromise.get("free_text_default_content").then((e=>this.editorDiv?.setAttribute("default-content",e))),this.editorDiv.contentEditable=!0;const{style:n}=this.editorDiv;if(n.fontSize=`calc(${this.#Ce}px * var(--scale-factor))`,n.color=this.#we,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,i.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[n,r]=this.parent.viewportBaseDimensions;this.setAt(e*n,t*r,this.width*n,this.height*r);for(const e of this.#Ee.split("\n")){const t=document.createElement("div");t.append(e?document.createTextNode(e):document.createElement("br")),this.editorDiv.append(t)}this.div.draggable=!0,this.editorDiv.contentEditable=!1}else this.div.draggable=!1,this.editorDiv.contentEditable=!0;return this.div}get contentDiv(){return this.editorDiv}static deserialize(e,t){const n=super.deserialize(e,t);return n.#Ce=e.fontSize,n.#we=r.Util.makeHexColor(...e.color),n.#Ee=e.value,n}serialize(){if(this.isEmpty())return null;const e=a._internalPadding*this.parent.scaleFactor,t=this.getRect(e,e),n=s.AnnotationEditor._colorManager.convert(getComputedStyle(this.editorDiv).color);return{annotationType:r.AnnotationEditorType.FREETEXT,color:n,fontSize:this.#Ce,value:this.#Ee,pageIndex:this.parent.pageIndex,rect:t,rotation:this.rotation}}}t.FreeTextEditor=a},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InkEditor=void 0,Object.defineProperty(t,"fitCurve",{enumerable:!0,get:function(){return s.fitCurve}});var r=n(1),i=n(6),s=n(25),a=n(7);const o=16;class l extends i.AnnotationEditor{#Me=0;#Re=0;#Le=0;#Ie=this.canvasPointermove.bind(this);#ke=this.canvasPointerleave.bind(this);#Oe=this.canvasPointerup.bind(this);#Fe=this.canvasPointerdown.bind(this);#De=!1;#Ne=!1;#Ue=null;#je=null;#$e=0;#He=0;#Be=null;static _defaultColor=null;static _defaultOpacity=1;static _defaultThickness=1;static _l10nPromise;static _type="ink";constructor(e){super({...e,name:"inkEditor"}),this.color=e.color||null,this.thickness=e.thickness||null,this.opacity=e.opacity||null,this.paths=[],this.bezierPath2D=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0}static initialize(e){this._l10nPromise=new Map(["editor_ink_canvas_aria_label","editor_ink_aria_label"].map((t=>[t,e.get(t)])))}static updateDefaultParams(e,t){switch(e){case r.AnnotationEditorParamsType.INK_THICKNESS:l._defaultThickness=t;break;case r.AnnotationEditorParamsType.INK_COLOR:l._defaultColor=t;break;case r.AnnotationEditorParamsType.INK_OPACITY:l._defaultOpacity=t/100}}updateParams(e,t){switch(e){case r.AnnotationEditorParamsType.INK_THICKNESS:this.#Ve(t);break;case r.AnnotationEditorParamsType.INK_COLOR:this.#Pe(t);break;case r.AnnotationEditorParamsType.INK_OPACITY:this.#We(t)}}static get defaultPropertiesToUpdate(){return[[r.AnnotationEditorParamsType.INK_THICKNESS,l._defaultThickness],[r.AnnotationEditorParamsType.INK_COLOR,l._defaultColor||i.AnnotationEditor._defaultLineColor],[r.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*l._defaultOpacity)]]}get propertiesToUpdate(){return[[r.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||l._defaultThickness],[r.AnnotationEditorParamsType.INK_COLOR,this.color||l._defaultColor||i.AnnotationEditor._defaultLineColor],[r.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(this.opacity??l._defaultOpacity))]]}#Ve(e){const t=this.thickness;this.parent.addCommands({cmd:()=>{this.thickness=e,this.#qe()},undo:()=>{this.thickness=t,this.#qe()},mustExec:!0,type:r.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}#Pe(e){const t=this.color;this.parent.addCommands({cmd:()=>{this.color=e,this.#ze()},undo:()=>{this.color=t,this.#ze()},mustExec:!0,type:r.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}#We(e){e/=100;const t=this.opacity;this.parent.addCommands({cmd:()=>{this.opacity=e,this.#ze()},undo:()=>{this.opacity=t,this.#ze()},mustExec:!0,type:r.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}rebuild(){super.rebuild(),null!==this.div&&(this.canvas||(this.#Ge(),this.#Qe()),this.isAttachedToDOM||(this.parent.add(this),this.#Xe()),this.#qe())}remove(){null!==this.canvas&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,this.#je.disconnect(),this.#je=null,super.remove())}enableEditMode(){this.#De||null===this.canvas||(super.enableEditMode(),this.div.draggable=!1,this.canvas.addEventListener("pointerdown",this.#Fe),this.canvas.addEventListener("pointerup",this.#Oe))}disableEditMode(){this.isInEditMode()&&null!==this.canvas&&(super.disableEditMode(),this.div.draggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",this.#Fe),this.canvas.removeEventListener("pointerup",this.#Oe))}onceAdded(){this.div.draggable=!this.isEmpty()}isEmpty(){return 0===this.paths.length||1===this.paths.length&&0===this.paths[0].length}#Ke(){const{width:e,height:t,rotation:n}=this.parent.viewport;switch(n){case 90:return[0,e,e,t];case 180:return[e,t,e,t];case 270:return[t,0,e,t];default:return[0,0,e,t]}}#Ye(){this.ctx.lineWidth=this.thickness*this.parent.scaleFactor/this.scaleFactor,this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.miterLimit=10,this.ctx.strokeStyle=`${this.color}${(0,a.opacityToHex)(this.opacity)}`}#Je(e,t){this.isEditing=!0,this.#Ne||(this.#Ne=!0,this.#Xe(),this.thickness||=l._defaultThickness,this.color||=l._defaultColor||i.AnnotationEditor._defaultLineColor,this.opacity??=l._defaultOpacity),this.currentPath.push([e,t]),this.#Ue=null,this.#Ye(),this.ctx.beginPath(),this.ctx.moveTo(e,t),this.#Be=()=>{this.#Be&&(this.#Ue&&(this.isEmpty()?(this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)):this.#ze(),this.ctx.lineTo(...this.#Ue),this.#Ue=null,this.ctx.stroke()),window.requestAnimationFrame(this.#Be))},window.requestAnimationFrame(this.#Be)}#Ze(e,t){const[n,r]=this.currentPath.at(-1);e===n&&t===r||(this.currentPath.push([e,t]),this.#Ue=[e,t])}#et(e,t){this.ctx.closePath(),this.#Be=null,e=Math.min(Math.max(e,0),this.canvas.width),t=Math.min(Math.max(t,0),this.canvas.height);const[n,r]=this.currentPath.at(-1);let i;if(e===n&&t===r||this.currentPath.push([e,t]),1!==this.currentPath.length)i=(0,s.fitCurve)(this.currentPath,30,null);else{const n=[e,t];i=[[n,n.slice(),n.slice(),n]]}const a=l.#tt(i);this.currentPath.length=0,this.parent.addCommands({cmd:()=>{this.paths.push(i),this.bezierPath2D.push(a),this.rebuild()},undo:()=>{this.paths.pop(),this.bezierPath2D.pop(),0===this.paths.length?this.remove():(this.canvas||(this.#Ge(),this.#Qe()),this.#qe())},mustExec:!0})}#ze(){if(this.isEmpty())return void this.#nt();this.#Ye();const{canvas:e,ctx:t}=this;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e.width,e.height),this.#nt();for(const e of this.bezierPath2D)t.stroke(e)}commit(){this.#De||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),this.#De=!0,this.div.classList.add("disabled"),this.#qe(!0),this.parent.addInkEditorIfNeeded(!0),this.parent.moveEditorInDOM(this),this.div.focus())}focusin(e){super.focusin(e),this.enableEditMode()}canvasPointerdown(e){0===e.button&&this.isInEditMode()&&!this.#De&&(this.setInForeground(),"mouse"!==e.type&&this.div.focus(),e.stopPropagation(),this.canvas.addEventListener("pointerleave",this.#ke),this.canvas.addEventListener("pointermove",this.#Ie),this.#Je(e.offsetX,e.offsetY))}canvasPointermove(e){e.stopPropagation(),this.#Ze(e.offsetX,e.offsetY)}canvasPointerup(e){0===e.button&&this.isInEditMode()&&0!==this.currentPath.length&&(e.stopPropagation(),this.#rt(e),this.setInBackground())}canvasPointerleave(e){this.#rt(e),this.setInBackground()}#rt(e){this.#et(e.offsetX,e.offsetY),this.canvas.removeEventListener("pointerleave",this.#ke),this.canvas.removeEventListener("pointermove",this.#Ie),this.parent.addToAnnotationStorage(this)}#Ge(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",l._l10nPromise.get("editor_ink_canvas_aria_label").then((e=>this.canvas?.setAttribute("aria-label",e))),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}#Qe(){this.#je=new ResizeObserver((e=>{const t=e[0].contentRect;t.width&&t.height&&this.setDimensions(t.width,t.height)})),this.#je.observe(this.div)}render(){if(this.div)return this.div;let e,t;this.width&&(e=this.x,t=this.y),super.render(),l._l10nPromise.get("editor_ink_aria_label").then((e=>this.div?.setAttribute("aria-label",e)));const[n,r,i,s]=this.#Ke();if(this.setAt(n,r,0,0),this.setDims(i,s),this.#Ge(),this.width){const[n,r]=this.parent.viewportBaseDimensions;this.setAt(e*n,t*r,this.width*n,this.height*r),this.#Ne=!0,this.#Xe(),this.setDims(this.width*n,this.height*r),this.#ze(),this.#it(),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return this.#Qe(),this.div}#Xe(){if(!this.#Ne)return;const[e,t]=this.parent.viewportBaseDimensions;this.canvas.width=Math.ceil(this.width*e),this.canvas.height=Math.ceil(this.height*t),this.#nt()}setDimensions(e,t){const n=Math.round(e),r=Math.round(t);if(this.#$e===n&&this.#He===r)return;this.#$e=n,this.#He=r,this.canvas.style.visibility="hidden",this.#Me&&Math.abs(this.#Me-e/t)>.01&&(t=Math.ceil(e/this.#Me),this.setDims(e,t));const[i,s]=this.parent.viewportBaseDimensions;this.width=e/i,this.height=t/s,this.#De&&this.#st(e,t),this.#Xe(),this.#ze(),this.canvas.style.visibility="visible"}#st(e,t){const n=this.#at(),r=(e-n)/this.#Le,i=(t-n)/this.#Re;this.scaleFactor=Math.min(r,i)}#nt(){const e=this.#at()/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+e,this.translationY*this.scaleFactor+e)}static#tt(e){const t=new Path2D;for(let n=0,r=e.length;n<r;n++){const[r,i,s,a]=e[n];0===n&&t.moveTo(...r),t.bezierCurveTo(i[0],i[1],s[0],s[1],a[0],a[1])}return t}#ot(e,t,n,r){const i=[],s=this.thickness/2;let a,o;for(const l of this.paths){a=[],o=[];for(let i=0,c=l.length;i<c;i++){const[c,u,d,h]=l[i],p=e*(c[0]+t)+s,f=r-e*(c[1]+n)-s,g=e*(u[0]+t)+s,m=r-e*(u[1]+n)-s,v=e*(d[0]+t)+s,y=r-e*(d[1]+n)-s,b=e*(h[0]+t)+s,_=r-e*(h[1]+n)-s;0===i&&(a.push(p,f),o.push(p,f)),a.push(g,m,v,y,b,_),this.#lt(p,f,g,m,v,y,b,_,4,o)}i.push({bezier:a,points:o})}return i}#lt(e,t,n,r,i,s,a,o,l,c){if(this.#ct(e,t,n,r,i,s,a,o))c.push(a,o);else{for(let u=1;u<l-1;u++){const d=u/l,h=1-d;let p=d*e+h*n,f=d*t+h*r,g=d*n+h*i,m=d*r+h*s;p=d*p+h*g,f=d*f+h*m,g=d*g+h*(d*i+h*a),m=d*m+h*(d*s+h*o),p=d*p+h*g,f=d*f+h*m,c.push(p,f)}c.push(a,o)}}#ct(e,t,n,r,i,s,a,o){const l=(3*n-2*e-a)**2,c=(3*r-2*t-o)**2,u=(3*i-e-2*a)**2,d=(3*s-t-2*o)**2;return Math.max(l,u)+Math.max(c,d)<=10}#ut(){let e=1/0,t=-1/0,n=1/0,i=-1/0;for(const s of this.paths)for(const[a,o,l,c]of s){const s=r.Util.bezierBoundingBox(...a,...o,...l,...c);e=Math.min(e,s[0]),n=Math.min(n,s[1]),t=Math.max(t,s[2]),i=Math.max(i,s[3])}return[e,n,t,i]}#at(){return this.#De?Math.ceil(this.thickness*this.parent.scaleFactor):0}#qe(e=!1){if(this.isEmpty())return;if(!this.#De)return void this.#ze();const t=this.#ut(),n=this.#at();this.#Le=Math.max(o,t[2]-t[0]),this.#Re=Math.max(o,t[3]-t[1]);const r=Math.ceil(n+this.#Le*this.scaleFactor),i=Math.ceil(n+this.#Re*this.scaleFactor),[s,a]=this.parent.viewportBaseDimensions;this.width=r/s,this.height=i/a,this.#Me=r/i,this.#it();const l=this.translationX,c=this.translationY;this.translationX=-t[0],this.translationY=-t[1],this.#Xe(),this.#ze(),this.#$e=r,this.#He=i,this.setDims(r,i);const u=e?n/this.scaleFactor/2:0;this.translate(l-this.translationX-u,c-this.translationY-u)}#it(){const{style:e}=this.div;this.#Me>=1?(e.minHeight="16px",e.minWidth=`${Math.round(this.#Me*o)}px`):(e.minWidth="16px",e.minHeight=`${Math.round(o/this.#Me)}px`)}static deserialize(e,t){const n=super.deserialize(e,t);n.thickness=e.thickness,n.color=r.Util.makeHexColor(...e.color),n.opacity=e.opacity;const[i,s]=t.pageDimensions,a=n.width*i,l=n.height*s,c=t.scaleFactor,u=e.thickness/2;n.#Me=a/l,n.#De=!0,n.#$e=Math.round(a),n.#He=Math.round(l);for(const{bezier:t}of e.paths){const e=[];n.paths.push(e);let r=c*(t[0]-u),i=c*(l-t[1]-u);for(let n=2,s=t.length;n<s;n+=6){const s=c*(t[n]-u),a=c*(l-t[n+1]-u),o=c*(t[n+2]-u),d=c*(l-t[n+3]-u),h=c*(t[n+4]-u),p=c*(l-t[n+5]-u);e.push([[r,i],[s,a],[o,d],[h,p]]),r=h,i=p}const s=this.#tt(e);n.bezierPath2D.push(s)}const d=n.#ut();return n.#Le=Math.max(o,d[2]-d[0]),n.#Re=Math.max(o,d[3]-d[1]),n.#st(a,l),n}serialize(){if(this.isEmpty())return null;const e=this.getRect(0,0),t=this.rotation%180==0?e[3]-e[1]:e[2]-e[0],n=i.AnnotationEditor._colorManager.convert(this.ctx.strokeStyle);return{annotationType:r.AnnotationEditorType.INK,color:n,thickness:this.thickness,opacity:this.opacity,paths:this.#ot(this.scaleFactor/this.parent.scaleFactor,this.translationX,this.translationY,t),pageIndex:this.parent.pageIndex,rect:e,rotation:this.rotation}}}t.InkEditor=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fitCurve=void 0;const r=n(26);t.fitCurve=r},e=>{function t(e,i,s,a,o){var c,u,d,h,p,f,g,m,v,y,b,_,w;if(2===e.length)return _=l.vectorLen(l.subtract(e[0],e[1]))/3,[c=[e[0],l.addArrays(e[0],l.mulItems(i,_)),l.addArrays(e[1],l.mulItems(s,_)),e[1]]];if(u=function(e){var t,n,r,i=[];return e.forEach(((e,s)=>{t=s?n+l.vectorLen(l.subtract(e,r)):0,i.push(t),n=t,r=e})),i=i.map((e=>e/n))}(e),[c,h,f]=n(e,u,u,i,s,o),0===h||h<a)return[c];if(h<a*a)for(d=u,p=h,g=f,w=0;w<20;w++){if(d=r(c,e,d),[c,h,f]=n(e,u,d,i,s,o),h<a)return[c];if(f===g){let e=h/p;if(e>.9999&&e<1.0001)break}p=h,g=f}return b=[],(m=l.subtract(e[f-1],e[f+1])).every((e=>0===e))&&(m=l.subtract(e[f-1],e[f]),[m[0],m[1]]=[-m[1],m[0]]),v=l.normalize(m),y=l.mulItems(v,-1),b=(b=b.concat(t(e.slice(0,f+1),i,v,a,o))).concat(t(e.slice(f),y,s,a,o))}function n(e,t,n,r,i,o){var u,d,h;return u=function(e,t,n,r){var i,s,a,o,u,d,h,p,f,g,m,v,y,b,_,w,E,S=e[0],C=e[e.length-1];for(i=[S,null,null,C],s=l.zeros_Xx2x2(t.length),y=0,b=t.length;y<b;y++)E=1-(w=t[y]),(a=s[y])[0]=l.mulItems(n,3*w*(E*E)),a[1]=l.mulItems(r,3*E*(w*w));for(o=[[0,0],[0,0]],u=[0,0],y=0,b=e.length;y<b;y++)w=t[y],a=s[y],o[0][0]+=l.dot(a[0],a[0]),o[0][1]+=l.dot(a[0],a[1]),o[1][0]+=l.dot(a[0],a[1]),o[1][1]+=l.dot(a[1],a[1]),_=l.subtract(e[y],c.q([S,S,C,C],w)),u[0]+=l.dot(a[0],_),u[1]+=l.dot(a[1],_);return d=o[0][0]*o[1][1]-o[1][0]*o[0][1],h=o[0][0]*u[1]-o[1][0]*u[0],p=u[0]*o[1][1]-u[1]*o[0][1],f=0===d?0:p/d,g=0===d?0:h/d,v=l.vectorLen(l.subtract(S,C)),f<(m=1e-6*v)||g<m?(i[1]=l.addArrays(S,l.mulItems(n,v/3)),i[2]=l.addArrays(C,l.mulItems(r,v/3))):(i[1]=l.addArrays(S,l.mulItems(n,f)),i[2]=l.addArrays(C,l.mulItems(r,g))),i}(e,n,r,i),[d,h]=function(e,t,n){var r,i,o,u,d,h,p,f;i=0,o=Math.floor(e.length/2);const g=s(t,10);for(d=0,h=e.length;d<h;d++)p=e[d],f=a(0,n[d],g,10),(r=(u=l.subtract(c.q(t,f),p))[0]*u[0]+u[1]*u[1])>i&&(i=r,o=d);return[i,o]}(e,u,t),o&&o({bez:u,points:e,params:t,maxErr:d,maxPoint:h}),[u,d,h]}function r(e,t,n){return n.map(((n,r)=>i(e,t[r],n)))}function i(e,t,n){var r=l.subtract(c.q(e,n),t),i=c.qprime(e,n),s=l.mulMatrix(r,i),a=l.sum(l.squareItems(i))+2*l.mulMatrix(r,c.qprimeprime(e,n));return 0===a?n:n-s/a}var s=function(e,t){for(var n,r=[0],i=e[0],s=0,a=1;a<=t;a++)n=c.q(e,a/t),s+=l.vectorLen(l.subtract(n,i)),r.push(s),i=n;return r=r.map((e=>e/s))};function a(e,t,n,r){if(t<0)return 0;if(t>1)return 1;for(var i,s,a,o,l=1;l<=r;l++)if(t<=n[l]){a=(l-1)/r,s=l/r,o=(t-(i=n[l-1]))/(n[l]-i)*(s-a)+a;break}return o}function o(e,t){return l.normalize(l.subtract(e,t))}class l{static zeros_Xx2x2(e){for(var t=[];e--;)t.push([0,0]);return t}static mulItems(e,t){return e.map((e=>e*t))}static mulMatrix(e,t){return e.reduce(((e,n,r)=>e+n*t[r]),0)}static subtract(e,t){return e.map(((e,n)=>e-t[n]))}static addArrays(e,t){return e.map(((e,n)=>e+t[n]))}static addItems(e,t){return e.map((e=>e+t))}static sum(e){return e.reduce(((e,t)=>e+t))}static dot(e,t){return l.mulMatrix(e,t)}static vectorLen(e){return Math.hypot(...e)}static divItems(e,t){return e.map((e=>e/t))}static squareItems(e){return e.map((e=>e*e))}static normalize(e){return this.divItems(e,this.vectorLen(e))}}class c{static q(e,t){var n=1-t,r=l.mulItems(e[0],n*n*n),i=l.mulItems(e[1],3*n*n*t),s=l.mulItems(e[2],3*n*t*t),a=l.mulItems(e[3],t*t*t);return l.addArrays(l.addArrays(r,i),l.addArrays(s,a))}static qprime(e,t){var n=1-t,r=l.mulItems(l.subtract(e[1],e[0]),3*n*n),i=l.mulItems(l.subtract(e[2],e[1]),6*n*t),s=l.mulItems(l.subtract(e[3],e[2]),3*t*t);return l.addArrays(l.addArrays(r,i),s)}static qprimeprime(e,t){return l.addArrays(l.mulItems(l.addArrays(l.subtract(e[2],l.mulItems(e[1],2)),e[0]),6*(1-t)),l.mulItems(l.addArrays(l.subtract(e[3],l.mulItems(e[2],2)),e[1]),6*t))}}e.exports=function(e,n,r){if(!Array.isArray(e))throw new TypeError("First argument should be an array");if(e.forEach((t=>{if(!Array.isArray(t)||t.some((e=>"number"!=typeof e))||t.length!==e[0].length)throw Error("Each point should be an array of numbers. Each point should have the same amount of numbers.")})),e=e.filter(((t,n)=>0===n||!t.every(((t,r)=>t===e[n-1][r])))),e.length<2)return[];const i=e.length,s=o(e[1],e[0]),a=o(e[i-2],e[i-1]);return t(e,s,a,n,r)},e.exports.fitCubic=t,e.exports.createTangent=o},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var r=n(1),i=n(8),s=n(5),a=n(28),o=n(29);const l=1e3,c=new WeakSet;function u(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class d{static create(e){switch(e.data.annotationType){case r.AnnotationType.LINK:return new p(e);case r.AnnotationType.TEXT:return new f(e);case r.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new m(e);case"Btn":return e.data.radioButton?new y(e):e.data.checkBox?new v(e):new b(e);case"Ch":return new _(e)}return new g(e);case r.AnnotationType.POPUP:return new w(e);case r.AnnotationType.FREETEXT:return new S(e);case r.AnnotationType.LINE:return new C(e);case r.AnnotationType.SQUARE:return new A(e);case r.AnnotationType.CIRCLE:return new P(e);case r.AnnotationType.POLYLINE:return new x(e);case r.AnnotationType.CARET:return new M(e);case r.AnnotationType.INK:return new R(e);case r.AnnotationType.POLYGON:return new T(e);case r.AnnotationType.HIGHLIGHT:return new L(e);case r.AnnotationType.UNDERLINE:return new I(e);case r.AnnotationType.SQUIGGLY:return new k(e);case r.AnnotationType.STRIKEOUT:return new O(e);case r.AnnotationType.STAMP:return new F(e);case r.AnnotationType.FILEATTACHMENT:return new D(e);default:return new h(e)}}}class h{constructor(e,{isRenderable:t=!1,ignoreBorder:n=!1,createQuadrilaterals:r=!1}={}){this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.page=e.page,this.viewport=e.viewport,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this._mouseState=e.mouseState,t&&(this.container=this._createContainer(n)),r&&(this.quadrilaterals=this._createQuadrilaterals(n))}_createContainer(e=!1){const t=this.data,n=this.page,i=this.viewport,s=document.createElement("section"),{width:a,height:o}=u(t.rect),[l,c,d,h]=i.viewBox,p=d-l,f=h-c;s.setAttribute("data-annotation-id",t.id);const g=r.Util.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]);if(!e&&t.borderStyle.width>0){s.style.borderWidth=`${t.borderStyle.width}px`;const e=t.borderStyle.horizontalCornerRadius,n=t.borderStyle.verticalCornerRadius;if(e>0||n>0){const t=`calc(${e}px * var(--scale-factor)) / calc(${n}px * var(--scale-factor))`;s.style.borderRadius=t}else if(this instanceof y){const e=`calc(${a}px * var(--scale-factor)) / calc(${o}px * var(--scale-factor))`;s.style.borderRadius=e}switch(t.borderStyle.style){case r.AnnotationBorderStyleType.SOLID:s.style.borderStyle="solid";break;case r.AnnotationBorderStyleType.DASHED:s.style.borderStyle="dashed";break;case r.AnnotationBorderStyleType.BEVELED:(0,r.warn)("Unimplemented border style: beveled");break;case r.AnnotationBorderStyleType.INSET:(0,r.warn)("Unimplemented border style: inset");break;case r.AnnotationBorderStyleType.UNDERLINE:s.style.borderBottomStyle="solid"}const i=t.borderColor||null;i?s.style.borderColor=r.Util.makeHexColor(0|i[0],0|i[1],0|i[2]):s.style.borderWidth=0}s.style.left=100*(g[0]-l)/p+"%",s.style.top=100*(g[1]-c)/f+"%";const{rotation:m}=t;return t.hasOwnCanvas||0===m?(s.style.width=100*a/p+"%",s.style.height=100*o/f+"%"):this.setRotation(m,s),s}setRotation(e,t=this.container){const[n,r,i,s]=this.viewport.viewBox,a=i-n,o=s-r,{width:l,height:c}=u(this.data.rect);let d,h;e%180==0?(d=100*l/a,h=100*c/o):(d=100*c/a,h=100*l/o),t.style.width=`${d}%`,t.style.height=`${h}%`,t.setAttribute("data-main-rotation",(360-e)%360)}get _commonActions(){const e=(e,t,n)=>{const r=n.detail[e];n.target.style[t]=a.ColorConverters[`${r[0]}_HTML`](r.slice(1))};return(0,r.shadow)(this,"_commonActions",{display:e=>{const t=e.detail.display%2==1;this.container.style.visibility=t?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:t,print:0===e.detail.display||3===e.detail.display})},print:e=>{this.annotationStorage.setValue(this.data.id,{print:e.detail.print})},hidden:e=>{this.container.style.visibility=e.detail.hidden?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:e.detail.hidden})},focus:e=>{setTimeout((()=>e.target.focus({preventScroll:!1})),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.detail.readonly?e.target.setAttribute("readonly",""):e.target.removeAttribute("readonly")},required:e=>{this._setRequired(e.target,e.detail.required)},bgColor:t=>{e("bgColor","backgroundColor",t)},fillColor:t=>{e("fillColor","backgroundColor",t)},fgColor:t=>{e("fgColor","color",t)},textColor:t=>{e("textColor","color",t)},borderColor:t=>{e("borderColor","borderColor",t)},strokeColor:t=>{e("strokeColor","borderColor",t)},rotation:e=>{const t=e.detail.rotation;this.setRotation(t),this.annotationStorage.setValue(this.data.id,{rotation:t})}})}_dispatchEventFromSandbox(e,t){const n=this._commonActions;for(const r of Object.keys(t.detail)){const i=e[r]||n[r];i&&i(t)}}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;const t=this.annotationStorage.getRawValue(this.data.id);if(!t)return;const n=this._commonActions;for(const[r,i]of Object.entries(t)){const s=n[r];s&&(s({detail:{[r]:i},target:e}),delete t[r])}}_createQuadrilaterals(e=!1){if(!this.data.quadPoints)return null;const t=[],n=this.data.rect;for(const n of this.data.quadPoints)this.data.rect=[n[2].x,n[2].y,n[1].x,n[1].y],t.push(this._createContainer(e));return this.data.rect=n,t}_createPopup(e,t){let n=this.container;this.quadrilaterals&&(e=e||this.quadrilaterals,n=this.quadrilaterals[0]),e||((e=document.createElement("div")).className="popupTriggerArea",n.append(e));const r=new E({container:n,trigger:e,color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,hideWrapper:!0}).render();r.style.left="100%",n.append(r)}_renderQuadrilaterals(e){for(const t of this.quadrilaterals)t.className=e;return this.quadrilaterals}render(){(0,r.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(e,t=null){const n=[];if(this._fieldObjects){const i=this._fieldObjects[e];if(i)for(const{page:e,id:s,exportValues:a}of i){if(-1===e)continue;if(s===t)continue;const i="string"==typeof a?a:null,o=document.querySelector(`[data-element-id="${s}"]`);!o||c.has(o)?n.push({id:s,exportValue:i,domElement:o}):(0,r.warn)(`_getElementsByName - element not allowed: ${s}`)}return n}for(const r of document.getElementsByName(e)){const{id:e,exportValue:i}=r;e!==t&&c.has(r)&&n.push({id:e,exportValue:i,domElement:r})}return n}static get platform(){const e="undefined"!=typeof navigator?navigator.platform:"";return(0,r.shadow)(this,"platform",{isWin:e.includes("Win"),isMac:e.includes("Mac")})}}class p extends h{constructor(e,t=null){super(e,{isRenderable:!0,ignoreBorder:!!t?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=e.data.isTooltipOnly}render(){const{data:e,linkService:t}=this,n=document.createElement("a");n.setAttribute("data-element-id",e.id);let r=!1;return e.url?(t.addLinkAttributes(n,e.url,e.newWindow),r=!0):e.action?(this._bindNamedAction(n,e.action),r=!0):e.dest?(this._bindLink(n,e.dest),r=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,e),r=!0),e.resetForm?(this._bindResetFormAction(n,e.resetForm),r=!0):this.isTooltipOnly&&!r&&(this._bindLink(n,""),r=!0)),this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map(((e,t)=>{const r=0===t?n:n.cloneNode();return e.append(r),e})):(this.container.className="linkAnnotation",r&&this.container.append(n),this.container)}_bindLink(e,t){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.goToDestination(t),!1),(t||""===t)&&(e.className="internalLink")}_bindNamedAction(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),e.className="internalLink"}_bindJSAction(e,t){e.href=this.linkService.getAnchorUrl("");const n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const r of Object.keys(t.actions)){const i=n.get(r);i&&(e[i]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t.id,name:r}}),!1))}e.onclick||(e.onclick=()=>!1),e.className="internalLink"}_bindResetFormAction(e,t){const n=e.onclick;if(n||(e.href=this.linkService.getAnchorUrl("")),e.className="internalLink",!this._fieldObjects)return(0,r.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(n||(e.onclick=()=>!1));e.onclick=()=>{n&&n();const{fields:e,refs:i,include:s}=t,a=[];if(0!==e.length||0!==i.length){const t=new Set(i);for(const n of e){const e=this._fieldObjects[n]||[];for(const{id:n}of e)t.add(n)}for(const e of Object.values(this._fieldObjects))for(const n of e)t.has(n.id)===s&&a.push(n)}else for(const e of Object.values(this._fieldObjects))a.push(...e);const o=this.annotationStorage,l=[];for(const e of a){const{id:t}=e;switch(l.push(t),e.type){case"text":{const n=e.defaultValue||"";o.setValue(t,{value:n});break}case"checkbox":case"radiobutton":{const n=e.defaultValue===e.exportValues;o.setValue(t,{value:n});break}case"combobox":case"listbox":{const n=e.defaultValue||"";o.setValue(t,{value:n});break}default:continue}const n=document.querySelector(`[data-element-id="${t}"]`);n&&(c.has(n)?n.dispatchEvent(new Event("resetform")):(0,r.warn)(`_bindResetFormAction - element not allowed: ${t}`))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:l,name:"ResetForm"}}),!1}}}class f extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str)})}render(){this.container.className="textAnnotation";const e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(e,this.data),this.container.append(e),this.container}}class g extends h{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}_getKeyModifier(e){const{isWin:t,isMac:n}=h.platform;return t&&e.ctrlKey||n&&e.metaKey}_setEventListener(e,t,n,r){t.includes("mouse")?e.addEventListener(t,(e=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:r(e),shift:e.shiftKey,modifier:this._getKeyModifier(e)}})})):e.addEventListener(t,(e=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:r(e)}})}))}_setEventListeners(e,t,n){for(const[r,i]of t)("Action"===i||this.data.actions?.[i])&&this._setEventListener(e,r,i,n)}_setBackgroundColor(e){const t=this.data.backgroundColor||null;e.style.backgroundColor=null===t?"transparent":r.Util.makeHexColor(t[0],t[1],t[2])}_setTextStyle(e){const t=["left","center","right"],{fontColor:n}=this.data.defaultAppearanceData,i=this.data.defaultAppearanceData.fontSize||9,s=e.style;let a;if(this.data.multiLine){const e=Math.abs(this.data.rect[3]-this.data.rect[1]),t=e/(Math.round(e/(r.LINE_FACTOR*i))||1);a=Math.min(i,Math.round(t/r.LINE_FACTOR))}else{const e=Math.abs(this.data.rect[3]-this.data.rect[1]);a=Math.min(i,Math.round(e/r.LINE_FACTOR))}s.fontSize=`calc(${a}px * var(--scale-factor))`,s.color=r.Util.makeHexColor(n[0],n[1],n[2]),null!==this.data.textAlignment&&(s.textAlign=t[this.data.textAlignment])}_setRequired(e,t){t?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",t)}}class m extends g{constructor(e){super(e,{isRenderable:e.renderForms||!e.data.hasAppearance&&!!e.data.fieldValue})}setPropertyOnSiblings(e,t,n,r){const i=this.annotationStorage;for(const s of this._getElementsByName(e.name,e.id))s.domElement&&(s.domElement[t]=n),i.setValue(s.id,{[r]:n})}render(){const e=this.annotationStorage,t=this.data.id;this.container.className="textWidgetAnnotation";let n=null;if(this.renderForms){const r=e.getValue(t,{value:this.data.fieldValue});let i=r.formattedValue||r.value||"";const s=e.getValue(t,{charLimit:this.data.maxLen}).charLimit;s&&i.length>s&&(i=i.slice(0,s));const a={userValue:i,formattedValue:null,valueOnFocus:""};this.data.multiLine?(n=document.createElement("textarea"),n.textContent=i,this.data.doNotScroll&&(n.style.overflowY="hidden")):(n=document.createElement("input"),n.type="text",n.setAttribute("value",i),this.data.doNotScroll&&(n.style.overflowX="hidden")),c.add(n),n.setAttribute("data-element-id",t),n.disabled=this.data.readOnly,n.name=this.data.fieldName,n.tabIndex=l,this._setRequired(n,this.data.required),s&&(n.maxLength=s),n.addEventListener("input",(r=>{e.setValue(t,{value:r.target.value}),this.setPropertyOnSiblings(n,"value",r.target.value,"value")})),n.addEventListener("resetform",(e=>{const t=this.data.defaultFieldValue??"";n.value=a.userValue=t,a.formattedValue=null}));let o=e=>{const{formattedValue:t}=a;null!=t&&(e.target.value=t),e.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){n.addEventListener("focus",(e=>{a.userValue&&(e.target.value=a.userValue),a.valueOnFocus=e.target.value})),n.addEventListener("updatefromsandbox",(n=>{const r={value(n){a.userValue=n.detail.value??"",e.setValue(t,{value:a.userValue.toString()}),n.target.value=a.userValue},formattedValue(n){const{formattedValue:r}=n.detail;a.formattedValue=r,null!=r&&n.target!==document.activeElement&&(n.target.value=r),e.setValue(t,{formattedValue:r})},selRange(e){e.target.setSelectionRange(...e.detail.selRange)},charLimit:n=>{const{charLimit:r}=n.detail,{target:i}=n;if(0===r)return void i.removeAttribute("maxLength");i.setAttribute("maxLength",r);let s=a.userValue;!s||s.length<=r||(s=s.slice(0,r),i.value=a.userValue=s,e.setValue(t,{value:s}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:s,willCommit:!0,commitKey:1,selStart:i.selectionStart,selEnd:i.selectionEnd}}))}};this._dispatchEventFromSandbox(r,n)})),n.addEventListener("keydown",(e=>{let n=-1;if("Escape"===e.key?n=0:"Enter"===e.key?n=2:"Tab"===e.key&&(n=3),-1===n)return;const{value:r}=e.target;a.valueOnFocus!==r&&(a.userValue=r,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:r,willCommit:!0,commitKey:n,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))}));const r=o;o=null,n.addEventListener("blur",(e=>{const{value:n}=e.target;a.userValue=n,this._mouseState.isDown&&a.valueOnFocus!==n&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:n,willCommit:!0,commitKey:1,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}),r(e)})),this.data.actions?.Keystroke&&n.addEventListener("beforeinput",(e=>{const{data:n,target:r}=e,{value:i,selectionStart:s,selectionEnd:a}=r;let o=s,l=a;switch(e.inputType){case"deleteWordBackward":{const e=i.substring(0,s).match(/\w*[^\w]*$/);e&&(o-=e[0].length);break}case"deleteWordForward":{const e=i.substring(s).match(/^[^\w]*\w*/);e&&(l+=e[0].length);break}case"deleteContentBackward":s===a&&(o-=1);break;case"deleteContentForward":s===a&&(l+=1)}e.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:i,change:n||"",willCommit:!1,selStart:o,selEnd:l}})})),this._setEventListeners(n,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.value))}if(o&&n.addEventListener("blur",o),this.data.comb){const e=(this.data.rect[2]-this.data.rect[0])/s;n.classList.add("comb"),n.style.letterSpacing=`calc(${e}px * var(--scale-factor) - 1ch)`}}else n=document.createElement("div"),n.textContent=this.data.fieldValue,n.style.verticalAlign="middle",n.style.display="table-cell";return this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class v extends g{constructor(e){super(e,{isRenderable:e.renderForms})}render(){const e=this.annotationStorage,t=this.data,n=t.id;let r=e.getValue(n,{value:t.exportValue===t.fieldValue}).value;"string"==typeof r&&(r="Off"!==r,e.setValue(n,{value:r})),this.container.className="buttonWidgetAnnotation checkBox";const i=document.createElement("input");return c.add(i),i.setAttribute("data-element-id",n),i.disabled=t.readOnly,this._setRequired(i,this.data.required),i.type="checkbox",i.name=t.fieldName,r&&i.setAttribute("checked",!0),i.setAttribute("exportValue",t.exportValue),i.tabIndex=l,i.addEventListener("change",(r=>{const{name:i,checked:s}=r.target;for(const r of this._getElementsByName(i,n)){const n=s&&r.exportValue===t.exportValue;r.domElement&&(r.domElement.checked=n),e.setValue(r.id,{value:n})}e.setValue(n,{value:s})})),i.addEventListener("resetform",(e=>{const n=t.defaultFieldValue||"Off";e.target.checked=n===t.exportValue})),this.enableScripting&&this.hasJSActions&&(i.addEventListener("updatefromsandbox",(t=>{const r={value(t){t.target.checked="Off"!==t.detail.value,e.setValue(n,{value:t.target.checked})}};this._dispatchEventFromSandbox(r,t)})),this._setEventListeners(i,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class y extends g{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.className="buttonWidgetAnnotation radioButton";const e=this.annotationStorage,t=this.data,n=t.id;let r=e.getValue(n,{value:t.fieldValue===t.buttonValue}).value;"string"==typeof r&&(r=r!==t.buttonValue,e.setValue(n,{value:r}));const i=document.createElement("input");if(c.add(i),i.setAttribute("data-element-id",n),i.disabled=t.readOnly,this._setRequired(i,this.data.required),i.type="radio",i.name=t.fieldName,r&&i.setAttribute("checked",!0),i.tabIndex=l,i.addEventListener("change",(t=>{const{name:r,checked:i}=t.target;for(const t of this._getElementsByName(r,n))e.setValue(t.id,{value:!1});e.setValue(n,{value:i})})),i.addEventListener("resetform",(e=>{const n=t.defaultFieldValue;e.target.checked=null!=n&&n===t.buttonValue})),this.enableScripting&&this.hasJSActions){const r=t.buttonValue;i.addEventListener("updatefromsandbox",(t=>{const i={value:t=>{const i=r===t.detail.value;for(const r of this._getElementsByName(t.target.name)){const t=i&&r.id===n;r.domElement&&(r.domElement.checked=t),e.setValue(r.id,{value:t})}}};this._dispatchEventFromSandbox(i,t)})),this._setEventListeners(i,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))}return this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class b extends p{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){const e=super.render();e.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(e.title=this.data.alternativeText);const t=e.lastChild;return this.enableScripting&&this.hasJSActions&&t&&(this._setDefaultPropertiesFromJS(t),t.addEventListener("updatefromsandbox",(e=>{this._dispatchEventFromSandbox({},e)}))),e}}class _ extends g{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.className="choiceWidgetAnnotation";const e=this.annotationStorage,t=this.data.id,n=e.getValue(t,{value:this.data.fieldValue}),r=document.createElement("select");c.add(r),r.setAttribute("data-element-id",t),r.disabled=this.data.readOnly,this._setRequired(r,this.data.required),r.name=this.data.fieldName,r.tabIndex=l;let i=this.data.combo&&this.data.options.length>0;this.data.combo||(r.size=this.data.options.length,this.data.multiSelect&&(r.multiple=!0)),r.addEventListener("resetform",(e=>{const t=this.data.defaultFieldValue;for(const e of r.options)e.selected=e.value===t}));for(const e of this.data.options){const t=document.createElement("option");t.textContent=e.displayValue,t.value=e.exportValue,n.value.includes(e.exportValue)&&(t.setAttribute("selected",!0),i=!1),r.append(t)}let s=null;if(i){const e=document.createElement("option");e.value=" ",e.setAttribute("hidden",!0),e.setAttribute("selected",!0),r.prepend(e),s=()=>{e.remove(),r.removeEventListener("input",s),s=null},r.addEventListener("input",s)}const a=(e,t)=>{const n=t?"value":"textContent",r=e.target.options;return e.target.multiple?Array.prototype.filter.call(r,(e=>e.selected)).map((e=>e[n])):-1===r.selectedIndex?null:r[r.selectedIndex][n]},o=e=>{const t=e.target.options;return Array.prototype.map.call(t,(e=>({displayValue:e.textContent,exportValue:e.value})))};return this.enableScripting&&this.hasJSActions?(r.addEventListener("updatefromsandbox",(n=>{const i={value(n){s?.();const i=n.detail.value,o=new Set(Array.isArray(i)?i:[i]);for(const e of r.options)e.selected=o.has(e.value);e.setValue(t,{value:a(n,!0)})},multipleSelection(e){r.multiple=!0},remove(n){const i=r.options,s=n.detail.remove;i[s].selected=!1,r.remove(s),i.length>0&&-1===Array.prototype.findIndex.call(i,(e=>e.selected))&&(i[0].selected=!0),e.setValue(t,{value:a(n,!0),items:o(n)})},clear(n){for(;0!==r.length;)r.remove(0);e.setValue(t,{value:null,items:[]})},insert(n){const{index:i,displayValue:s,exportValue:l}=n.detail.insert,c=r.children[i],u=document.createElement("option");u.textContent=s,u.value=l,c?c.before(u):r.append(u),e.setValue(t,{value:a(n,!0),items:o(n)})},items(n){const{items:i}=n.detail;for(;0!==r.length;)r.remove(0);for(const e of i){const{displayValue:t,exportValue:n}=e,i=document.createElement("option");i.textContent=t,i.value=n,r.append(i)}r.options.length>0&&(r.options[0].selected=!0),e.setValue(t,{value:a(n,!0),items:o(n)})},indices(n){const r=new Set(n.detail.indices);for(const e of n.target.options)e.selected=r.has(e.index);e.setValue(t,{value:a(n,!0)})},editable(e){e.target.disabled=!e.detail.editable}};this._dispatchEventFromSandbox(i,n)})),r.addEventListener("input",(n=>{const r=a(n,!0),i=a(n,!1);e.setValue(t,{value:r}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:i,changeEx:r,willCommit:!0,commitKey:1,keyDown:!1}})})),this._setEventListeners(r,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],(e=>e.target.checked))):r.addEventListener("input",(function(n){e.setValue(t,{value:a(n,!0)})})),this.data.combo&&this._setTextStyle(r),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class w extends h{constructor(e){super(e,{isRenderable:!!(e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str)})}render(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;const e=`[data-annotation-id="${this.data.parentId}"]`,t=this.layer.querySelectorAll(e);if(0===t.length)return this.container;const n=new E({container:this.container,trigger:Array.from(t),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),i=this.page,s=r.Util.normalizeRect([this.data.parentRect[0],i.view[3]-this.data.parentRect[1]+i.view[1],this.data.parentRect[2],i.view[3]-this.data.parentRect[3]+i.view[1]]),a=s[0]+this.data.parentRect[2]-this.data.parentRect[0],o=s[1],[l,c,u,d]=this.viewport.viewBox,h=u-l,p=d-c;return this.container.style.left=100*(a-l)/h+"%",this.container.style.top=100*(o-c)/p+"%",this.container.append(n.render()),this.container}}class E{constructor(e){this.container=e.container,this.trigger=e.trigger,this.color=e.color,this.titleObj=e.titleObj,this.modificationDate=e.modificationDate,this.contentsObj=e.contentsObj,this.richText=e.richText,this.hideWrapper=e.hideWrapper||!1,this.pinned=!1}render(){const e=document.createElement("div");e.className="popupWrapper",this.hideElement=this.hideWrapper?e:this.container,this.hideElement.hidden=!0;const t=document.createElement("div");t.className="popup";const n=this.color;if(n){const e=.7*(255-n[0])+n[0],i=.7*(255-n[1])+n[1],s=.7*(255-n[2])+n[2];t.style.backgroundColor=r.Util.makeHexColor(0|e,0|i,0|s)}const s=document.createElement("h1");s.dir=this.titleObj.dir,s.textContent=this.titleObj.str,t.append(s);const a=i.PDFDateString.toDateObject(this.modificationDate);if(a){const e=document.createElement("span");e.className="popupDate",e.textContent="{{date}}, {{time}}",e.dataset.l10nId="annotation_date_string",e.dataset.l10nArgs=JSON.stringify({date:a.toLocaleDateString(),time:a.toLocaleTimeString()}),t.append(e)}if(!this.richText?.str||this.contentsObj?.str&&this.contentsObj.str!==this.richText.str){const e=this._formatContents(this.contentsObj);t.append(e)}else o.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:t}),t.lastChild.className="richText popupContent";Array.isArray(this.trigger)||(this.trigger=[this.trigger]);for(const e of this.trigger)e.addEventListener("click",this._toggle.bind(this)),e.addEventListener("mouseover",this._show.bind(this,!1)),e.addEventListener("mouseout",this._hide.bind(this,!1));return t.addEventListener("click",this._hide.bind(this,!0)),e.append(t),e}_formatContents({str:e,dir:t}){const n=document.createElement("p");n.className="popupContent",n.dir=t;const r=e.split(/(?:\r\n?|\n)/);for(let e=0,t=r.length;e<t;++e){const i=r[e];n.append(document.createTextNode(i)),e<t-1&&n.append(document.createElement("br"))}return n}_toggle(){this.pinned?this._hide(!0):this._show(!0)}_show(e=!1){e&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex=parseInt(this.container.style.zIndex)+1e3)}_hide(e=!0){e&&(this.pinned=!1),this.hideElement.hidden||this.pinned||(this.hideElement.hidden=!0,this.container.style.zIndex=parseInt(this.container.style.zIndex)-1e3)}}class S extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0}),this.textContent=e.data.textContent}render(){if(this.container.className="freeTextAnnotation",this.textContent){const e=document.createElement("div");e.className="annotationTextContent",e.setAttribute("role","comment");for(const t of this.textContent){const n=document.createElement("span");n.textContent=t,e.append(n)}this.container.append(e)}return this.data.hasPopup||this._createPopup(null,this.data),this.container}}class C extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0})}render(){this.container.className="lineAnnotation";const e=this.data,{width:t,height:n}=u(e.rect),r=this.svgFactory.create(t,n,!0),i=this.svgFactory.createElement("svg:line");return i.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),i.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),i.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),i.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),i.setAttribute("stroke-width",e.borderStyle.width||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","transparent"),r.append(i),this.container.append(r),this._createPopup(i,e),this.container}}class A extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0})}render(){this.container.className="squareAnnotation";const e=this.data,{width:t,height:n}=u(e.rect),r=this.svgFactory.create(t,n,!0),i=e.borderStyle.width,s=this.svgFactory.createElement("svg:rect");return s.setAttribute("x",i/2),s.setAttribute("y",i/2),s.setAttribute("width",t-i),s.setAttribute("height",n-i),s.setAttribute("stroke-width",i||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","transparent"),r.append(s),this.container.append(r),this._createPopup(s,e),this.container}}class P extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0})}render(){this.container.className="circleAnnotation";const e=this.data,{width:t,height:n}=u(e.rect),r=this.svgFactory.create(t,n,!0),i=e.borderStyle.width,s=this.svgFactory.createElement("svg:ellipse");return s.setAttribute("cx",t/2),s.setAttribute("cy",n/2),s.setAttribute("rx",t/2-i/2),s.setAttribute("ry",n/2-i/2),s.setAttribute("stroke-width",i||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","transparent"),r.append(s),this.container.append(r),this._createPopup(s,e),this.container}}class x extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const e=this.data,{width:t,height:n}=u(e.rect),r=this.svgFactory.create(t,n,!0);let i=[];for(const t of e.vertices){const n=t.x-e.rect[0],r=e.rect[3]-t.y;i.push(n+","+r)}i=i.join(" ");const s=this.svgFactory.createElement(this.svgElementName);return s.setAttribute("points",i),s.setAttribute("stroke-width",e.borderStyle.width||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","transparent"),r.append(s),this.container.append(r),this._createPopup(s,e),this.container}}class T extends x{constructor(e){super(e),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class M extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0})}render(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class R extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const e=this.data,{width:t,height:n}=u(e.rect),r=this.svgFactory.create(t,n,!0);for(const t of e.inkLists){let n=[];for(const r of t){const t=r.x-e.rect[0],i=e.rect[3]-r.y;n.push(`${t},${i}`)}n=n.join(" ");const i=this.svgFactory.createElement(this.svgElementName);i.setAttribute("points",n),i.setAttribute("stroke-width",e.borderStyle.width||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","transparent"),this._createPopup(i,e),r.append(i)}return this.container.append(r),this.container}}class L extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.className="highlightAnnotation",this.container)}}class I extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.className="underlineAnnotation",this.container)}}class k extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.className="squigglyAnnotation",this.container)}}class O extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.className="strikeoutAnnotation",this.container)}}class F extends h{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str),ignoreBorder:!0})}render(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class D extends h{constructor(e){super(e,{isRenderable:!0});const{filename:t,content:n}=this.data.file;this.filename=(0,i.getFilenameFromUrl)(t),this.content=n,this.linkService.eventBus?.dispatch("fileattachmentannotation",{source:this,filename:t,content:n})}render(){this.container.className="fileAttachmentAnnotation";const e=document.createElement("div");return e.className="popupTriggerArea",e.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&(this.data.titleObj?.str||this.data.contentsObj?.str||this.data.richText)&&this._createPopup(e,this.data),this.container.append(e),this.container}_download(){this.downloadManager?.openOrDownloadData(this.container,this.content,this.filename)}}class N{static#dt(e,t,n,r){const s=e.firstChild||e;s.id=`${i.AnnotationPrefix}${t}`,n.append(e),r?.moveElementInDOM(n,e,s,!1)}static render(e){const{annotations:t,div:n,viewport:a,accessibilityManager:o}=e;this.#ht(n,a);let l=0;for(const c of t){if(c.annotationType!==r.AnnotationType.POPUP){const{width:e,height:t}=u(c.rect);if(e<=0||t<=0)continue}const t=d.create({data:c,layer:n,page:e.page,viewport:a,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:!1!==e.renderForms,svgFactory:new i.DOMSVGFactory,annotationStorage:e.annotationStorage||new s.AnnotationStorage,enableScripting:e.enableScripting,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,mouseState:e.mouseState||{isDown:!1}});if(t.isRenderable){const e=t.render();if(c.hidden&&(e.style.visibility="hidden"),Array.isArray(e))for(const t of e)t.style.zIndex=l++,N.#dt(t,c.id,n,o);else e.style.zIndex=l++,t instanceof w?n.prepend(e):N.#dt(e,c.id,n,o)}}this.#pt(n,e.annotationCanvasMap)}static update(e){const{annotationCanvasMap:t,div:n,viewport:r}=e;this.#ht(n,r),this.#pt(n,t),n.hidden=!1}static#ht(e,{width:t,height:n,rotation:r}){const{style:i}=e,s=r%180!=0,a=Math.floor(t)+"px",o=Math.floor(n)+"px";i.width=s?o:a,i.height=s?a:o,e.setAttribute("data-main-rotation",r)}static#pt(e,t){if(t){for(const[n,r]of t){const t=e.querySelector(`[data-annotation-id="${n}"]`);if(!t)continue;const{firstChild:i}=t;i?"CANVAS"===i.nodeName?i.replaceWith(r):i.before(r):t.append(r)}t.clear()}}}t.AnnotationLayer=N},(e,t)=>{function n(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void 0,t.ColorConverters=class{static CMYK_G([e,t,n,r]){return["G",1-Math.min(1,.3*e+.59*n+.11*t+r)]}static G_CMYK([e]){return["CMYK",0,0,0,1-e]}static G_RGB([e]){return["RGB",e,e,e]}static G_HTML([e]){const t=n(e);return`#${t}${t}${t}`}static RGB_G([e,t,n]){return["G",.3*e+.59*t+.11*n]}static RGB_HTML([e,t,r]){return`#${n(e)}${n(t)}${n(r)}`}static T_HTML(){return"#00000000"}static CMYK_RGB([e,t,n,r]){return["RGB",1-Math.min(1,e+r),1-Math.min(1,n+r),1-Math.min(1,t+r)]}static CMYK_HTML(e){const t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}static RGB_CMYK([e,t,n]){const r=1-e,i=1-t,s=1-n;return["CMYK",r,i,s,Math.min(r,i,s)]}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0;var r=n(20);t.XfaLayer=class{static setupStorage(e,t,n,r,i){const s=r.getValue(t,{value:null});switch(n.name){case"textarea":if(null!==s.value&&(e.textContent=s.value),"print"===i)break;e.addEventListener("input",(e=>{r.setValue(t,{value:e.target.value})}));break;case"input":if("radio"===n.attributes.type||"checkbox"===n.attributes.type){if(s.value===n.attributes.xfaOn?e.setAttribute("checked",!0):s.value===n.attributes.xfaOff&&e.removeAttribute("checked"),"print"===i)break;e.addEventListener("change",(e=>{r.setValue(t,{value:e.target.checked?e.target.getAttribute("xfaOn"):e.target.getAttribute("xfaOff")})}))}else{if(null!==s.value&&e.setAttribute("value",s.value),"print"===i)break;e.addEventListener("input",(e=>{r.setValue(t,{value:e.target.value})}))}break;case"select":if(null!==s.value)for(const e of n.children)e.attributes.value===s.value&&(e.attributes.selected=!0);e.addEventListener("input",(e=>{const n=e.target.options,i=-1===n.selectedIndex?"":n[n.selectedIndex].value;r.setValue(t,{value:i})}))}}static setAttributes({html:e,element:t,storage:n=null,intent:r,linkService:i}){const{attributes:s}=t,a=e instanceof HTMLAnchorElement;"radio"===s.type&&(s.name=`${s.name}-${r}`);for(const[t,n]of Object.entries(s))if(null!=n)switch(t){case"class":n.length&&e.setAttribute(t,n.join(" "));break;case"dataId":break;case"id":e.setAttribute("data-element-id",n);break;case"style":Object.assign(e.style,n);break;case"textContent":e.textContent=n;break;default:(!a||"href"!==t&&"newWindow"!==t)&&e.setAttribute(t,n)}a&&i.addLinkAttributes(e,s.href,s.newWindow),n&&s.dataId&&this.setupStorage(e,s.dataId,t,n)}static render(e){const t=e.annotationStorage,n=e.linkService,i=e.xfaHtml,s=e.intent||"display",a=document.createElement(i.name);i.attributes&&this.setAttributes({html:a,element:i,intent:s,linkService:n});const o=[[i,-1,a]],l=e.div;if(l.append(a),e.viewport){const t=`matrix(${e.viewport.transform.join(",")})`;l.style.transform=t}"richText"!==s&&l.setAttribute("class","xfaLayer xfaFont");const c=[];for(;o.length>0;){const[e,i,a]=o.at(-1);if(i+1===e.children.length){o.pop();continue}const l=e.children[++o.at(-1)[1]];if(null===l)continue;const{name:u}=l;if("#text"===u){const e=document.createTextNode(l.value);c.push(e),a.append(e);continue}let d;if(d=l?.attributes?.xmlns?document.createElementNS(l.attributes.xmlns,u):document.createElement(u),a.append(d),l.attributes&&this.setAttributes({html:d,element:l,storage:t,intent:s,linkService:n}),l.children&&l.children.length>0)o.push([l,-1,d]);else if(l.value){const e=document.createTextNode(l.value);r.XfaText.shouldBuildText(u)&&c.push(e),d.append(e)}}for(const e of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))e.setAttribute("readOnly",!0);return{textDivs:c}}static update(e){const t=`matrix(${e.viewport.transform.join(",")})`;e.div.style.transform=t,e.div.hidden=!1}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerRenderTask=void 0,t.renderTextLayer=function(e){const t=new p({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});return t._render(e.timeout),t};var r=n(1),i=n(8);const s=30,a=new Map,o=/^\s+$/g;function l(e,t,n,i){const l=document.createElement("span"),c=e._enhanceTextSelection?{angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1,fontSize:0}:{angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,fontSize:0};e._textDivs.push(l);const u=r.Util.transform(e._viewport.transform,t.transform);let d=Math.atan2(u[1],u[0]);const h=n[t.fontName];h.vertical&&(d+=Math.PI/2);const p=Math.hypot(u[2],u[3]),f=p*function(e,t){const n=a.get(e);if(n)return n;t.save(),t.font=`30px ${e}`;const r=t.measureText("");let i=r.fontBoundingBoxAscent,o=Math.abs(r.fontBoundingBoxDescent);if(i){t.restore();const n=i/(i+o);return a.set(e,n),n}t.strokeStyle="red",t.clearRect(0,0,s,s),t.strokeText("g",0,0);let l=t.getImageData(0,0,s,s).data;o=0;for(let e=l.length-1-3;e>=0;e-=4)if(l[e]>0){o=Math.ceil(e/4/s);break}t.clearRect(0,0,s,s),t.strokeText("A",0,s),l=t.getImageData(0,0,s,s).data,i=0;for(let e=0,t=l.length;e<t;e+=4)if(l[e]>0){i=s-Math.floor(e/4/s);break}if(t.restore(),i){const t=i/(i+o);return a.set(e,t),t}return a.set(e,.8),.8}(h.fontFamily,i);let g,m;0===d?(g=u[4],m=u[5]-f):(g=u[4]+f*Math.sin(d),m=u[5]-f*Math.cos(d)),l.style.left=`${g}px`,l.style.top=`${m}px`,l.style.fontSize=`${p}px`,l.style.fontFamily=h.fontFamily,c.fontSize=p,l.setAttribute("role","presentation"),l.textContent=t.str,l.dir=t.dir,e._fontInspectorEnabled&&(l.dataset.fontName=t.fontName),0!==d&&(c.angle=d*(180/Math.PI));let v=!1;if(t.str.length>1||e._enhanceTextSelection&&o.test(t.str))v=!0;else if(" "!==t.str&&t.transform[0]!==t.transform[3]){const e=Math.abs(t.transform[0]),n=Math.abs(t.transform[3]);e!==n&&Math.max(e,n)/Math.min(e,n)>1.5&&(v=!0)}if(v&&(h.vertical?c.canvasWidth=t.height*e._viewport.scale:c.canvasWidth=t.width*e._viewport.scale),e._textDivProperties.set(l,c),e._textContentStream&&e._layoutText(l),e._enhanceTextSelection&&c.hasText){let n=1,i=0;0!==d&&(n=Math.cos(d),i=Math.sin(d));const s=(h.vertical?t.height:t.width)*e._viewport.scale,a=p;let o,c;0!==d?(o=[n,i,-i,n,g,m],c=r.Util.getAxialAlignedBoundingBox([0,0,s,a],o)):c=[g,m,g+s,m+a],e._bounds.push({left:c[0],top:c[1],right:c[2],bottom:c[3],div:l,size:[s,a],m:o})}}function c(e){if(e._canceled)return;const t=e._textDivs,n=e._capability,r=t.length;if(r>1e5)return e._renderingDone=!0,void n.resolve();if(!e._textContentStream)for(let n=0;n<r;n++)e._layoutText(t[n]);e._renderingDone=!0,n.resolve()}function u(e,t,n){let r=0;for(let i=0;i<n;i++){const n=e[t++];n>0&&(r=r?Math.min(n,r):n)}return r}function d(e){const t=e._bounds,n=e._viewport,i=function(e,t,n){const r=n.map((function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}}));h(e,r);const i=new Array(n.length);for(const e of r){const t=e.index;i[t]={left:e.x1New,top:0,right:e.x2New,bottom:0}}n.map((function(t,n){const s=i[n],a=r[n];a.x1=t.top,a.y1=e-s.right,a.x2=t.bottom,a.y2=e-s.left,a.index=n,a.x1New=void 0,a.x2New=void 0})),h(t,r);for(const e of r){const t=e.index;i[t].top=e.x1New,i[t].bottom=e.x2New}return i}(n.width,n.height,t);for(let n=0;n<i.length;n++){const s=t[n].div,a=e._textDivProperties.get(s);if(0===a.angle){a.paddingLeft=t[n].left-i[n].left,a.paddingTop=t[n].top-i[n].top,a.paddingRight=i[n].right-t[n].right,a.paddingBottom=i[n].bottom-t[n].bottom,e._textDivProperties.set(s,a);continue}const o=i[n],l=t[n],c=l.m,d=c[0],h=c[1],p=[[0,0],[0,l.size[1]],[l.size[0],0],l.size],f=new Float64Array(64);for(let e=0,t=p.length;e<t;e++){const t=r.Util.applyTransform(p[e],c);f[e+0]=d&&(o.left-t[0])/d,f[e+4]=h&&(o.top-t[1])/h,f[e+8]=d&&(o.right-t[0])/d,f[e+12]=h&&(o.bottom-t[1])/h,f[e+16]=h&&(o.left-t[0])/-h,f[e+20]=d&&(o.top-t[1])/d,f[e+24]=h&&(o.right-t[0])/-h,f[e+28]=d&&(o.bottom-t[1])/d,f[e+32]=d&&(o.left-t[0])/-d,f[e+36]=h&&(o.top-t[1])/-h,f[e+40]=d&&(o.right-t[0])/-d,f[e+44]=h&&(o.bottom-t[1])/-h,f[e+48]=h&&(o.left-t[0])/h,f[e+52]=d&&(o.top-t[1])/-d,f[e+56]=h&&(o.right-t[0])/h,f[e+60]=d&&(o.bottom-t[1])/-d}const g=1+Math.min(Math.abs(d),Math.abs(h));a.paddingLeft=u(f,32,16)/g,a.paddingTop=u(f,48,16)/g,a.paddingRight=u(f,0,16)/g,a.paddingBottom=u(f,16,16)/g,e._textDivProperties.set(s,a)}}function h(e,t){t.sort((function(e,t){return e.x1-t.x1||e.index-t.index}));const n=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];for(const e of t){let t=0;for(;t<n.length&&n[t].end<=e.y1;)t++;let r,i,s=n.length-1;for(;s>=0&&n[s].start>=e.y2;)s--;let a,o,l=-1/0;for(a=t;a<=s;a++){let t;r=n[a],i=r.boundary,t=i.x2>e.x1?i.index>e.index?i.x1New:e.x1:void 0===i.x2New?(i.x2+e.x1)/2:i.x2New,t>l&&(l=t)}for(e.x1New=l,a=t;a<=s;a++)r=n[a],i=r.boundary,void 0===i.x2New?i.x2>e.x1?i.index>e.index&&(i.x2New=i.x2):i.x2New=l:i.x2New>l&&(i.x2New=Math.max(l,i.x2));const c=[];let u=null;for(a=t;a<=s;a++){r=n[a],i=r.boundary;const t=i.x2>e.x2?i:e;u===t?c.at(-1).end=r.end:(c.push({start:r.start,end:r.end,boundary:t}),u=t)}for(n[t].start<e.y1&&(c[0].start=e.y1,c.unshift({start:n[t].start,end:e.y1,boundary:n[t].boundary})),e.y2<n[s].end&&(c.at(-1).end=e.y2,c.push({start:e.y2,end:n[s].end,boundary:n[s].boundary})),a=t;a<=s;a++){if(r=n[a],i=r.boundary,void 0!==i.x2New)continue;let e=!1;for(o=t-1;!e&&o>=0&&n[o].start>=i.y1;o--)e=n[o].boundary===i;for(o=s+1;!e&&o<n.length&&n[o].end<=i.y2;o++)e=n[o].boundary===i;for(o=0;!e&&o<c.length;o++)e=c[o].boundary===i;e||(i.x2New=l)}Array.prototype.splice.apply(n,[t,s-t+1,...c])}for(const t of n){const n=t.boundary;void 0===n.x2New&&(n.x2New=Math.max(e,n.x2))}}class p{constructor({textContent:e,textContentStream:t,container:n,viewport:s,textDivs:a,textContentItemsStr:o,enhanceTextSelection:l}){l&&(0,i.deprecated)("The `enhanceTextSelection` functionality will be removed in the future."),this._textContent=e,this._textContentStream=t,this._container=n,this._document=n.ownerDocument,this._viewport=s,this._textDivs=a||[],this._textContentItemsStr=o||[],this._enhanceTextSelection=!!l,this._fontInspectorEnabled=!!globalThis.FontInspector?.enabled,this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,r.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._devicePixelRatio=globalThis.devicePixelRatio||1,this._capability.promise.finally((()=>{this._enhanceTextSelection||(this._textDivProperties=null),this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)})).catch((()=>{}))}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new r.AbortException("TextLayer task cancelled.")).catch((()=>{})),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))}_processItems(e,t){for(let n=0,r=e.length;n<r;n++)if(void 0!==e[n].str)this._textContentItemsStr.push(e[n].str),l(this,e[n],t,this._layoutTextCtx);else if("beginMarkedContentProps"===e[n].type||"beginMarkedContent"===e[n].type){const t=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==e[n].id&&this._container.setAttribute("id",`${e[n].id}`),t.append(this._container)}else"endMarkedContent"===e[n].type&&(this._container=this._container.parentNode)}_layoutText(e){const t=this._textDivProperties.get(e);let n="";if(0!==t.canvasWidth&&t.hasText){const{fontFamily:r}=e.style,{fontSize:i}=t;i===this._layoutTextLastFontSize&&r===this._layoutTextLastFontFamily||(this._layoutTextCtx.font=`${i*this._devicePixelRatio}px ${r}`,this._layoutTextLastFontSize=i,this._layoutTextLastFontFamily=r);const{width:s}=this._layoutTextCtx.measureText(e.textContent);if(s>0){const e=this._devicePixelRatio*t.canvasWidth/s;this._enhanceTextSelection&&(t.scale=e),n=`scaleX(${e})`}}if(0!==t.angle&&(n=`rotate(${t.angle}deg) ${n}`),n.length>0&&(this._enhanceTextSelection&&(t.originalTransform=n),e.style.transform=n),t.hasText&&this._container.append(e),t.hasEOL){const e=document.createElement("br");e.setAttribute("role","presentation"),this._container.append(e)}}_render(e=0){const t=(0,r.createPromiseCapability)();let n=Object.create(null);const i=this._document.createElement("canvas");if(i.height=i.width=s,this._layoutTextCtx=i.getContext("2d",{alpha:!1}),this._textContent){const e=this._textContent.items,n=this._textContent.styles;this._processItems(e,n),t.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');{const e=()=>{this._reader.read().then((({value:r,done:i})=>{i?t.resolve():(Object.assign(n,r.styles),this._processItems(r.items,n),e())}),t.reject)};this._reader=this._textContentStream.getReader(),e()}}t.promise.then((()=>{n=null,e?this._renderTimer=setTimeout((()=>{c(this),this._renderTimer=null}),e):c(this)}),this._capability.reject)}expandTextDivs(e=!1){if(!this._enhanceTextSelection||!this._renderingDone)return;null!==this._bounds&&(d(this),this._bounds=null);const t=[],n=[];for(let r=0,i=this._textDivs.length;r<i;r++){const i=this._textDivs[r],s=this._textDivProperties.get(i);s.hasText&&(e?(t.length=0,n.length=0,s.originalTransform&&t.push(s.originalTransform),s.paddingTop>0?(n.push(`${s.paddingTop}px`),t.push(`translateY(${-s.paddingTop}px)`)):n.push(0),s.paddingRight>0?n.push(s.paddingRight/s.scale+"px"):n.push(0),s.paddingBottom>0?n.push(`${s.paddingBottom}px`):n.push(0),s.paddingLeft>0?(n.push(s.paddingLeft/s.scale+"px"),t.push(`translateX(${-s.paddingLeft/s.scale}px)`)):n.push(0),i.style.padding=n.join(" "),t.length&&(i.style.transform=t.join(" "))):(i.style.padding=null,i.style.transform=s.originalTransform))}}}t.TextLayerRenderTask=p},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var r=n(8),i=n(1),s=n(3);let a=class{constructor(){(0,i.unreachable)("Not implemented: SVGGraphics")}};t.SVGGraphics=a;{const c={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},u="http://www.w3.org/XML/1998/namespace",d="http://www.w3.org/1999/xlink",h=["butt","round","square"],p=["miter","round","bevel"],f=function(e,t="",n=!1){if(URL.createObjectURL&&"undefined"!=typeof Blob&&!n)return URL.createObjectURL(new Blob([e],{type:t}));const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let i=`data:${t};base64,`;for(let t=0,n=e.length;t<n;t+=3){const s=255&e[t],a=255&e[t+1],o=255&e[t+2];i+=r[s>>2]+r[(3&s)<<4|a>>4]+r[t+1<n?(15&a)<<2|o>>6:64]+r[t+2<n?63&o:64]}return i},g=function(){const e=new Uint8Array([137,80,78,71,13,10,26,10]),t=new Int32Array(256);for(let e=0;e<256;e++){let n=e;for(let e=0;e<8;e++)n=1&n?3988292384^n>>1&2147483647:n>>1&2147483647;t[e]=n}function n(e,n,r,i){let s=i;const a=n.length;r[s]=a>>24&255,r[s+1]=a>>16&255,r[s+2]=a>>8&255,r[s+3]=255&a,s+=4,r[s]=255&e.charCodeAt(0),r[s+1]=255&e.charCodeAt(1),r[s+2]=255&e.charCodeAt(2),r[s+3]=255&e.charCodeAt(3),s+=4,r.set(n,s),s+=n.length;const o=function(e,n,r){let i=-1;for(let s=n;s<r;s++){const n=255&(i^e[s]);i=i>>>8^t[n]}return-1^i}(r,i+4,s);r[s]=o>>24&255,r[s+1]=o>>16&255,r[s+2]=o>>8&255,r[s+3]=255&o}function r(e){let t=e.length;const n=65535,r=Math.ceil(t/n),i=new Uint8Array(2+t+5*r+4);let s=0;i[s++]=120,i[s++]=156;let a=0;for(;t>n;)i[s++]=0,i[s++]=255,i[s++]=255,i[s++]=0,i[s++]=0,i.set(e.subarray(a,a+n),s),s+=n,a+=n,t-=n;i[s++]=1,i[s++]=255&t,i[s++]=t>>8&255,i[s++]=255&~t,i[s++]=(65535&~t)>>8&255,i.set(e.subarray(a),s),s+=e.length-a;const o=function(e,t,n){let r=1,i=0;for(let s=t;s<n;++s)r=(r+(255&e[s]))%65521,i=(i+r)%65521;return i<<16|r}(e,0,e.length);return i[s++]=o>>24&255,i[s++]=o>>16&255,i[s++]=o>>8&255,i[s++]=255&o,i}function a(t,a,o,l){const c=t.width,u=t.height;let d,h,p;const g=t.data;switch(a){case i.ImageKind.GRAYSCALE_1BPP:h=0,d=1,p=c+7>>3;break;case i.ImageKind.RGB_24BPP:h=2,d=8,p=3*c;break;case i.ImageKind.RGBA_32BPP:h=6,d=8,p=4*c;break;default:throw new Error("invalid format")}const m=new Uint8Array((1+p)*u);let v=0,y=0;for(let e=0;e<u;++e)m[v++]=0,m.set(g.subarray(y,y+p),v),y+=p,v+=p;if(a===i.ImageKind.GRAYSCALE_1BPP&&l){v=0;for(let e=0;e<u;e++){v++;for(let e=0;e<p;e++)m[v++]^=255}}const b=new Uint8Array([c>>24&255,c>>16&255,c>>8&255,255&c,u>>24&255,u>>16&255,u>>8&255,255&u,d,h,0,0,0]),_=function(e){if(!s.isNodeJS)return r(e);try{let t;t=parseInt(process.versions.node)>=8?e:Buffer.from(e);const n=require$$5.deflateSync(t,{level:9});return n instanceof Uint8Array?n:new Uint8Array(n)}catch(e){(0,i.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+e)}return r(e)}(m),w=e.length+36+b.length+_.length,E=new Uint8Array(w);let S=0;return E.set(e,S),S+=e.length,n("IHDR",b,E,S),S+=12+b.length,n("IDATA",_,E,S),S+=12+_.length,n("IEND",new Uint8Array(0),E,S),f(E,"image/png",o)}return function(e,t,n){return a(e,void 0===e.kind?i.ImageKind.GRAYSCALE_1BPP:e.kind,t,n)}}();class m{constructor(){this.fontSizeScale=1,this.fontWeight=c.fontWeight,this.fontSize=0,this.textMatrix=i.IDENTITY_MATRIX,this.fontMatrix=i.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=i.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=c.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(e,t){this.x=e,this.y=t}}function o(e){if(Number.isInteger(e))return e.toString();const t=e.toFixed(10);let n=t.length-1;if("0"!==t[n])return t;do{n--}while("0"===t[n]);return t.substring(0,"."===t[n]?n:n+1)}function l(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":`scale(${o(e[0])} ${o(e[3])})`;if(e[0]===e[3]&&e[1]===-e[2])return`rotate(${o(180*Math.acos(e[0])/Math.PI)})`}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return`translate(${o(e[4])} ${o(e[5])})`;return`matrix(${o(e[0])} ${o(e[1])} ${o(e[2])} ${o(e[3])} ${o(e[4])} ${o(e[5])})`}let v=0,y=0,b=0;t.SVGGraphics=a=class{constructor(e,t,n=!1){(0,r.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new r.DOMSVGFactory,this.current=new m,this.transformMatrix=i.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!n,this._operatorIdMapping=[];for(const e in i.OPS)this._operatorIdMapping[i.OPS[e]]=e}save(){this.transformStack.push(this.transformMatrix);const e=this.current;this.extraStack.push(e),this.current=e.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(e){this.save(),this.executeOpTree(e),this.restore()}loadDependencies(e){const t=e.fnArray,n=e.argsArray;for(let e=0,r=t.length;e<r;e++)if(t[e]===i.OPS.dependency)for(const t of n[e]){const e=t.startsWith("g_")?this.commonObjs:this.objs,n=new Promise((n=>{e.get(t,n)}));this.current.dependencies.push(n)}return Promise.all(this.current.dependencies)}transform(e,t,n,r,s,a){const o=[e,t,n,r,s,a];this.transformMatrix=i.Util.transform(this.transformMatrix,o),this.tgrp=null}getSVG(e,t){this.viewport=t;const n=this._initialize(t);return this.loadDependencies(e).then((()=>(this.transformMatrix=i.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(e)),n)))}convertOpList(e){const t=this._operatorIdMapping,n=e.argsArray,r=e.fnArray,i=[];for(let e=0,s=r.length;e<s;e++){const s=r[e];i.push({fnId:s,fn:t[s],args:n[e]})}return function(e){let t=[];const n=[];for(const r of e)"save"!==r.fn?"restore"===r.fn?t=n.pop():t.push(r):(t.push({fnId:92,fn:"group",items:[]}),n.push(t),t=t.at(-1).items);return t}(i)}executeOpTree(e){for(const t of e){const e=t.fn,n=t.fnId,r=t.args;switch(0|n){case i.OPS.beginText:this.beginText();break;case i.OPS.dependency:break;case i.OPS.setLeading:this.setLeading(r);break;case i.OPS.setLeadingMoveText:this.setLeadingMoveText(r[0],r[1]);break;case i.OPS.setFont:this.setFont(r);break;case i.OPS.showText:case i.OPS.showSpacedText:this.showText(r[0]);break;case i.OPS.endText:this.endText();break;case i.OPS.moveText:this.moveText(r[0],r[1]);break;case i.OPS.setCharSpacing:this.setCharSpacing(r[0]);break;case i.OPS.setWordSpacing:this.setWordSpacing(r[0]);break;case i.OPS.setHScale:this.setHScale(r[0]);break;case i.OPS.setTextMatrix:this.setTextMatrix(r[0],r[1],r[2],r[3],r[4],r[5]);break;case i.OPS.setTextRise:this.setTextRise(r[0]);break;case i.OPS.setTextRenderingMode:this.setTextRenderingMode(r[0]);break;case i.OPS.setLineWidth:this.setLineWidth(r[0]);break;case i.OPS.setLineJoin:this.setLineJoin(r[0]);break;case i.OPS.setLineCap:this.setLineCap(r[0]);break;case i.OPS.setMiterLimit:this.setMiterLimit(r[0]);break;case i.OPS.setFillRGBColor:this.setFillRGBColor(r[0],r[1],r[2]);break;case i.OPS.setStrokeRGBColor:this.setStrokeRGBColor(r[0],r[1],r[2]);break;case i.OPS.setStrokeColorN:this.setStrokeColorN(r);break;case i.OPS.setFillColorN:this.setFillColorN(r);break;case i.OPS.shadingFill:this.shadingFill(r[0]);break;case i.OPS.setDash:this.setDash(r[0],r[1]);break;case i.OPS.setRenderingIntent:this.setRenderingIntent(r[0]);break;case i.OPS.setFlatness:this.setFlatness(r[0]);break;case i.OPS.setGState:this.setGState(r[0]);break;case i.OPS.fill:this.fill();break;case i.OPS.eoFill:this.eoFill();break;case i.OPS.stroke:this.stroke();break;case i.OPS.fillStroke:this.fillStroke();break;case i.OPS.eoFillStroke:this.eoFillStroke();break;case i.OPS.clip:this.clip("nonzero");break;case i.OPS.eoClip:this.clip("evenodd");break;case i.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case i.OPS.paintImageXObject:this.paintImageXObject(r[0]);break;case i.OPS.paintInlineImageXObject:this.paintInlineImageXObject(r[0]);break;case i.OPS.paintImageMaskXObject:this.paintImageMaskXObject(r[0]);break;case i.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(r[0],r[1]);break;case i.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case i.OPS.closePath:this.closePath();break;case i.OPS.closeStroke:this.closeStroke();break;case i.OPS.closeFillStroke:this.closeFillStroke();break;case i.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case i.OPS.nextLine:this.nextLine();break;case i.OPS.transform:this.transform(r[0],r[1],r[2],r[3],r[4],r[5]);break;case i.OPS.constructPath:this.constructPath(r[0],r[1]);break;case i.OPS.endPath:this.endPath();break;case 92:this.group(t.items);break;default:(0,i.warn)(`Unimplemented operator ${e}`)}}}setWordSpacing(e){this.current.wordSpacing=e}setCharSpacing(e){this.current.charSpacing=e}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(e,t,n,r,i,s){const a=this.current;a.textMatrix=a.lineMatrix=[e,t,n,r,i,s],a.textMatrixScale=Math.hypot(e,t),a.x=a.lineX=0,a.y=a.lineY=0,a.xcoords=[],a.ycoords=[],a.tspan=this.svgFactory.createElement("svg:tspan"),a.tspan.setAttributeNS(null,"font-family",a.fontFamily),a.tspan.setAttributeNS(null,"font-size",`${o(a.fontSize)}px`),a.tspan.setAttributeNS(null,"y",o(-a.y)),a.txtElement=this.svgFactory.createElement("svg:text"),a.txtElement.append(a.tspan)}beginText(){const e=this.current;e.x=e.lineX=0,e.y=e.lineY=0,e.textMatrix=i.IDENTITY_MATRIX,e.lineMatrix=i.IDENTITY_MATRIX,e.textMatrixScale=1,e.tspan=this.svgFactory.createElement("svg:tspan"),e.txtElement=this.svgFactory.createElement("svg:text"),e.txtgrp=this.svgFactory.createElement("svg:g"),e.xcoords=[],e.ycoords=[]}moveText(e,t){const n=this.current;n.x=n.lineX+=e,n.y=n.lineY+=t,n.xcoords=[],n.ycoords=[],n.tspan=this.svgFactory.createElement("svg:tspan"),n.tspan.setAttributeNS(null,"font-family",n.fontFamily),n.tspan.setAttributeNS(null,"font-size",`${o(n.fontSize)}px`),n.tspan.setAttributeNS(null,"y",o(-n.y))}showText(e){const t=this.current,n=t.font,r=t.fontSize;if(0===r)return;const s=t.fontSizeScale,a=t.charSpacing,d=t.wordSpacing,h=t.fontDirection,p=t.textHScale*h,f=n.vertical,g=f?1:-1,m=n.defaultVMetrics,v=r*t.fontMatrix[0];let y=0;for(const i of e){if(null===i){y+=h*d;continue}if("number"==typeof i){y+=g*i*r/1e3;continue}const e=(i.isSpace?d:0)+a,o=i.fontChar;let l,c,u,p=i.width;if(f){let e;const t=i.vmetric||m;e=i.vmetric?t[1]:.5*p,e=-e*v;const n=t[2]*v;p=t?-t[0]:p,l=e/s,c=(y+n)/s}else l=y/s,c=0;(i.isInFont||n.missingFile)&&(t.xcoords.push(t.x+l),f&&t.ycoords.push(-t.y+c),t.tspan.textContent+=o),u=f?p*v-e*h:p*v+e*h,y+=u}t.tspan.setAttributeNS(null,"x",t.xcoords.map(o).join(" ")),f?t.tspan.setAttributeNS(null,"y",t.ycoords.map(o).join(" ")):t.tspan.setAttributeNS(null,"y",o(-t.y)),f?t.y-=y:t.x+=y*p,t.tspan.setAttributeNS(null,"font-family",t.fontFamily),t.tspan.setAttributeNS(null,"font-size",`${o(t.fontSize)}px`),t.fontStyle!==c.fontStyle&&t.tspan.setAttributeNS(null,"font-style",t.fontStyle),t.fontWeight!==c.fontWeight&&t.tspan.setAttributeNS(null,"font-weight",t.fontWeight);const b=t.textRenderingMode&i.TextRenderingMode.FILL_STROKE_MASK;if(b===i.TextRenderingMode.FILL||b===i.TextRenderingMode.FILL_STROKE?(t.fillColor!==c.fillColor&&t.tspan.setAttributeNS(null,"fill",t.fillColor),t.fillAlpha<1&&t.tspan.setAttributeNS(null,"fill-opacity",t.fillAlpha)):t.textRenderingMode===i.TextRenderingMode.ADD_TO_PATH?t.tspan.setAttributeNS(null,"fill","transparent"):t.tspan.setAttributeNS(null,"fill","none"),b===i.TextRenderingMode.STROKE||b===i.TextRenderingMode.FILL_STROKE){const e=1/(t.textMatrixScale||1);this._setStrokeAttributes(t.tspan,e)}let _=t.textMatrix;0!==t.textRise&&(_=_.slice(),_[5]+=t.textRise),t.txtElement.setAttributeNS(null,"transform",`${l(_)} scale(${o(p)}, -1)`),t.txtElement.setAttributeNS(u,"xml:space","preserve"),t.txtElement.append(t.tspan),t.txtgrp.append(t.txtElement),this._ensureTransformGroup().append(t.txtElement)}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}addFontStyle(e){if(!e.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.append(this.cssStyle));const t=f(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${e.loadedName}"; src: url(${t}); }\n`}setFont(e){const t=this.current,n=this.commonObjs.get(e[0]);let r=e[1];t.font=n,!this.embedFonts||n.missingFile||this.embeddedFonts[n.loadedName]||(this.addFontStyle(n),this.embeddedFonts[n.loadedName]=n),t.fontMatrix=n.fontMatrix||i.FONT_IDENTITY_MATRIX;let s="normal";n.black?s="900":n.bold&&(s="bold");const a=n.italic?"italic":"normal";r<0?(r=-r,t.fontDirection=-1):t.fontDirection=1,t.fontSize=r,t.fontFamily=n.loadedName,t.fontWeight=s,t.fontStyle=a,t.tspan=this.svgFactory.createElement("svg:tspan"),t.tspan.setAttributeNS(null,"y",o(-t.y)),t.xcoords=[],t.ycoords=[]}endText(){const e=this.current;e.textRenderingMode&i.TextRenderingMode.ADD_TO_PATH_FLAG&&e.txtElement?.hasChildNodes()&&(e.element=e.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(e){e>0&&(this.current.lineWidth=e)}setLineCap(e){this.current.lineCap=h[e]}setLineJoin(e){this.current.lineJoin=p[e]}setMiterLimit(e){this.current.miterLimit=e}setStrokeAlpha(e){this.current.strokeAlpha=e}setStrokeRGBColor(e,t,n){this.current.strokeColor=i.Util.makeHexColor(e,t,n)}setFillAlpha(e){this.current.fillAlpha=e}setFillRGBColor(e,t,n){this.current.fillColor=i.Util.makeHexColor(e,t,n),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(e){this.current.strokeColor=this._makeColorN_Pattern(e)}setFillColorN(e){this.current.fillColor=this._makeColorN_Pattern(e)}shadingFill(e){const t=this.viewport.width,n=this.viewport.height,r=i.Util.inverseTransform(this.transformMatrix),s=i.Util.applyTransform([0,0],r),a=i.Util.applyTransform([0,n],r),o=i.Util.applyTransform([t,0],r),l=i.Util.applyTransform([t,n],r),c=Math.min(s[0],a[0],o[0],l[0]),u=Math.min(s[1],a[1],o[1],l[1]),d=Math.max(s[0],a[0],o[0],l[0]),h=Math.max(s[1],a[1],o[1],l[1]),p=this.svgFactory.createElement("svg:rect");p.setAttributeNS(null,"x",c),p.setAttributeNS(null,"y",u),p.setAttributeNS(null,"width",d-c),p.setAttributeNS(null,"height",h-u),p.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&p.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(p)}_makeColorN_Pattern(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}_makeTilingPattern(e){const t=e[1],n=e[2],r=e[3]||i.IDENTITY_MATRIX,[s,a,o,l]=e[4],c=e[5],u=e[6],d=e[7],h="shading"+b++,[p,f,g,m]=i.Util.normalizeRect([...i.Util.applyTransform([s,a],r),...i.Util.applyTransform([o,l],r)]),[v,y]=i.Util.singularValueDecompose2dScale(r),_=c*v,w=u*y,E=this.svgFactory.createElement("svg:pattern");E.setAttributeNS(null,"id",h),E.setAttributeNS(null,"patternUnits","userSpaceOnUse"),E.setAttributeNS(null,"width",_),E.setAttributeNS(null,"height",w),E.setAttributeNS(null,"x",`${p}`),E.setAttributeNS(null,"y",`${f}`);const S=this.svg,C=this.transformMatrix,A=this.current.fillColor,P=this.current.strokeColor,x=this.svgFactory.create(g-p,m-f);if(this.svg=x,this.transformMatrix=r,2===d){const e=i.Util.makeHexColor(...t);this.current.fillColor=e,this.current.strokeColor=e}return this.executeOpTree(this.convertOpList(n)),this.svg=S,this.transformMatrix=C,this.current.fillColor=A,this.current.strokeColor=P,E.append(x.childNodes[0]),this.defs.append(E),`url(#${h})`}_makeShadingPattern(e){switch("string"==typeof e&&(e=this.objs.get(e)),e[0]){case"RadialAxial":const t="shading"+b++,n=e[3];let r;switch(e[1]){case"axial":const n=e[4],i=e[5];r=this.svgFactory.createElement("svg:linearGradient"),r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),r.setAttributeNS(null,"x1",n[0]),r.setAttributeNS(null,"y1",n[1]),r.setAttributeNS(null,"x2",i[0]),r.setAttributeNS(null,"y2",i[1]);break;case"radial":const s=e[4],a=e[5],o=e[6],l=e[7];r=this.svgFactory.createElement("svg:radialGradient"),r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),r.setAttributeNS(null,"cx",a[0]),r.setAttributeNS(null,"cy",a[1]),r.setAttributeNS(null,"r",l),r.setAttributeNS(null,"fx",s[0]),r.setAttributeNS(null,"fy",s[1]),r.setAttributeNS(null,"fr",o);break;default:throw new Error(`Unknown RadialAxial type: ${e[1]}`)}for(const e of n){const t=this.svgFactory.createElement("svg:stop");t.setAttributeNS(null,"offset",e[0]),t.setAttributeNS(null,"stop-color",e[1]),r.append(t)}return this.defs.append(r),`url(#${t})`;case"Mesh":return(0,i.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${e[0]}`)}}setDash(e,t){this.current.dashArray=e,this.current.dashPhase=t}constructPath(e,t){const n=this.current;let r=n.x,s=n.y,a=[],l=0;for(const n of e)switch(0|n){case i.OPS.rectangle:r=t[l++],s=t[l++];const e=r+t[l++],n=s+t[l++];a.push("M",o(r),o(s),"L",o(e),o(s),"L",o(e),o(n),"L",o(r),o(n),"Z");break;case i.OPS.moveTo:r=t[l++],s=t[l++],a.push("M",o(r),o(s));break;case i.OPS.lineTo:r=t[l++],s=t[l++],a.push("L",o(r),o(s));break;case i.OPS.curveTo:r=t[l+4],s=t[l+5],a.push("C",o(t[l]),o(t[l+1]),o(t[l+2]),o(t[l+3]),o(r),o(s)),l+=6;break;case i.OPS.curveTo2:a.push("C",o(r),o(s),o(t[l]),o(t[l+1]),o(t[l+2]),o(t[l+3])),r=t[l+2],s=t[l+3],l+=4;break;case i.OPS.curveTo3:r=t[l+2],s=t[l+3],a.push("C",o(t[l]),o(t[l+1]),o(r),o(s),o(r),o(s)),l+=4;break;case i.OPS.closePath:a.push("Z")}a=a.join(" "),n.path&&e.length>0&&e[0]!==i.OPS.rectangle&&e[0]!==i.OPS.moveTo?a=n.path.getAttributeNS(null,"d")+a:(n.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(n.path)),n.path.setAttributeNS(null,"d",a),n.path.setAttributeNS(null,"fill","none"),n.element=n.path,n.setCurrentPoint(r,s)}endPath(){const e=this.current;if(e.path=null,!this.pendingClip)return;if(!e.element)return void(this.pendingClip=null);const t="clippath"+v++,n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",t),n.setAttributeNS(null,"transform",l(this.transformMatrix));const r=e.element.cloneNode(!0);if("evenodd"===this.pendingClip?r.setAttributeNS(null,"clip-rule","evenodd"):r.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,n.append(r),this.defs.append(n),e.activeClipUrl){e.clipGroup=null;for(const e of this.extraStack)e.clipGroup=null;n.setAttributeNS(null,"clip-path",e.activeClipUrl)}e.activeClipUrl=`url(#${t})`,this.tgrp=null}clip(e){this.pendingClip=e}closePath(){const e=this.current;if(e.path){const t=`${e.path.getAttributeNS(null,"d")}Z`;e.path.setAttributeNS(null,"d",t)}}setLeading(e){this.current.leading=-e}setTextRise(e){this.current.textRise=e}setTextRenderingMode(e){this.current.textRenderingMode=e}setHScale(e){this.current.textHScale=e/100}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,n]of e)switch(t){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n);break;case"CA":this.setStrokeAlpha(n);break;case"ca":this.setFillAlpha(n);break;default:(0,i.warn)(`Unimplemented graphic state operator ${t}`)}}fill(){const e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}stroke(){const e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(e,t=1){const n=this.current;let r=n.dashArray;1!==t&&r.length>0&&(r=r.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",n.strokeColor),e.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",o(n.miterLimit)),e.setAttributeNS(null,"stroke-linecap",n.lineCap),e.setAttributeNS(null,"stroke-linejoin",n.lineJoin),e.setAttributeNS(null,"stroke-width",o(t*n.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",r.map(o).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",o(t*n.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(e)}paintImageXObject(e){const t=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);t?this.paintInlineImageXObject(t):(0,i.warn)(`Dependent image with object ID ${e} is not ready yet`)}paintInlineImageXObject(e,t){const n=e.width,r=e.height,i=g(e,this.forceDataSchema,!!t),s=this.svgFactory.createElement("svg:rect");s.setAttributeNS(null,"x","0"),s.setAttributeNS(null,"y","0"),s.setAttributeNS(null,"width",o(n)),s.setAttributeNS(null,"height",o(r)),this.current.element=s,this.clip("nonzero");const a=this.svgFactory.createElement("svg:image");a.setAttributeNS(d,"xlink:href",i),a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y",o(-r)),a.setAttributeNS(null,"width",o(n)+"px"),a.setAttributeNS(null,"height",o(r)+"px"),a.setAttributeNS(null,"transform",`scale(${o(1/n)} ${o(-1/r)})`),t?t.append(a):this._ensureTransformGroup().append(a)}paintImageMaskXObject(e){const t=this.current,n=e.width,r=e.height,i=t.fillColor;t.maskId="mask"+y++;const s=this.svgFactory.createElement("svg:mask");s.setAttributeNS(null,"id",t.maskId);const a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",o(n)),a.setAttributeNS(null,"height",o(r)),a.setAttributeNS(null,"fill",i),a.setAttributeNS(null,"mask",`url(#${t.maskId})`),this.defs.append(s),this._ensureTransformGroup().append(a),this.paintInlineImageXObject(e,s)}paintFormXObjectBegin(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){const e=t[2]-t[0],n=t[3]-t[1],r=this.svgFactory.createElement("svg:rect");r.setAttributeNS(null,"x",t[0]),r.setAttributeNS(null,"y",t[1]),r.setAttributeNS(null,"width",o(e)),r.setAttributeNS(null,"height",o(n)),this.current.element=r,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(e){const t=this.svgFactory.create(e.width,e.height),n=this.svgFactory.createElement("svg:defs");t.append(n),this.defs=n;const r=this.svgFactory.createElement("svg:g");return r.setAttributeNS(null,"transform",l(e.transform)),t.append(r),this.svg=r,t}_ensureClipGroup(){if(!this.current.clipGroup){const e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(e),this.current.clipGroup=e}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",l(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var r=n(1),i=n(33);const s=require$$5,a=require$$5,o=require$$5,l=require$$5,c=/^file:\/\/\/[a-zA-Z]:\//;t.PDFNodeStream=class{constructor(e){this.source=e,this.url=function(e){const t=l.parse(e);return"file:"===t.protocol||t.host?t:/^[a-z]:[/\\]/i.test(e)?l.parse(`file:///${e}`):(t.host||(t.protocol="file:"),t)}(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new g(this):new p(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=this.isFsUrl?new m(this,e,t):new f(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class u{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=(0,r.createPromiseCapability)(),this._headersCapability=(0,r.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return null===e?(this._readCapability=(0,r.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new r.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class d{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,r.createPromiseCapability)();const t=e.source;this._isStreamingSupported=!t.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return null===e?(this._readCapability=(0,r.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}function h(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class p extends u{constructor(e){super(e);const t=t=>{if(404===t.statusCode){const e=new r.MissingPDFException(`Missing PDF "${this._url}".`);return this._storedError=e,void this._headersCapability.reject(e)}this._headersCapability.resolve(),this._setReadableStream(t);const n=e=>this._readableStream.headers[e.toLowerCase()],{allowRangeRequests:s,suggestedLength:a}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=s,this._contentLength=a||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(n)};this._request=null,"http:"===this._url.protocol?this._request=a.request(h(this._url,e.httpHeaders),t):this._request=o.request(h(this._url,e.httpHeaders),t),this._request.on("error",(e=>{this._storedError=e,this._headersCapability.reject(e)})),this._request.end()}}class f extends d{constructor(e,t,n){super(e),this._httpHeaders={};for(const t in e.httpHeaders){const n=e.httpHeaders[t];void 0!==n&&(this._httpHeaders[t]=n)}this._httpHeaders.Range=`bytes=${t}-${n-1}`;const i=e=>{if(404!==e.statusCode)this._setReadableStream(e);else{const e=new r.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=e}};this._request=null,"http:"===this._url.protocol?this._request=a.request(h(this._url,this._httpHeaders),i):this._request=o.request(h(this._url,this._httpHeaders),i),this._request.on("error",(e=>{this._storedError=e})),this._request.end()}}class g extends u{constructor(e){super(e);let t=decodeURIComponent(this._url.path);c.test(this._url.href)&&(t=t.replace(/^\//,"")),s.lstat(t,((e,n)=>{if(e)return"ENOENT"===e.code&&(e=new r.MissingPDFException(`Missing PDF "${t}".`)),this._storedError=e,void this._headersCapability.reject(e);this._contentLength=n.size,this._setReadableStream(s.createReadStream(t)),this._headersCapability.resolve()}))}}class m extends d{constructor(e,t,n){super(e);let r=decodeURIComponent(this._url.path);c.test(this._url.href)&&(r=r.replace(/^\//,"")),this._setReadableStream(s.createReadStream(r,{start:t,end:n-1}))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new r.MissingPDFException('Missing PDF "'+t+'".'):new r.UnexpectedResponseException(`Unexpected server response (${e}) while retrieving PDF "${t}".`,e)},t.extractFilenameFromHeader=function(e){const t=e("Content-Disposition");if(t){let e=(0,i.getFilenameFromContentDispositionHeader)(t);if(e.includes("%"))try{e=decodeURIComponent(e)}catch(e){}if((0,s.isPdfFile)(e))return e}return null},t.validateRangeRequestCapabilities=function({getResponseHeader:e,isHttp:t,rangeChunkSize:n,disableRange:r}){const i={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(e("Content-Length"),10);return Number.isInteger(s)?(i.suggestedLength=s,s<=2*n||r||!t||"bytes"!==e("Accept-Ranges")||"identity"!==(e("Content-Encoding")||"identity")||(i.allowRangeRequests=!0),i):i},t.validateResponseStatus=function(e){return 200===e||206===e};var r=n(1),i=n(34),s=n(8)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){let t=!0,n=i("filename\\*","i").exec(e);if(n){n=n[1];let e=o(n);return e=unescape(e),e=l(e),e=c(e),a(e)}if(n=function(e){const t=[];let n;const r=i("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(n=r.exec(e));){let[,e,r,i]=n;if(e=parseInt(e,10),e in t){if(0===e)break}else t[e]=[r,i]}const s=[];for(let e=0;e<t.length&&e in t;++e){let[n,r]=t[e];r=o(r),n&&(r=unescape(r),0===e&&(r=l(r))),s.push(r)}return s.join("")}(e),n)return a(c(n));if(n=i("filename","i").exec(e),n){n=n[1];let e=o(n);return e=c(e),a(e)}function i(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function s(e,n){if(e){if(!/^[\x00-\xFF]+$/.test(n))return n;try{const i=new TextDecoder(e,{fatal:!0}),s=(0,r.stringToBytes)(n);n=i.decode(s),t=!1}catch(e){}}return n}function a(e){return t&&/[\x80-\xff]/.test(e)&&(e=s("utf-8",e),t&&(e=s("iso-8859-1",e))),e}function o(e){if(e.startsWith('"')){const t=e.slice(1).split('\\"');for(let e=0;e<t.length;++e){const n=t[e].indexOf('"');-1!==n&&(t[e]=t[e].slice(0,n),t.length=e+1),t[e]=t[e].replace(/\\(.)/g,"$1")}e=t.join('"')}return e}function l(e){const t=e.indexOf("'");return-1===t?e:s(e.slice(0,t),e.slice(t+1).replace(/^[^']*'/,""))}function c(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,(function(e,t,n,r){if("q"===n||"Q"===n)return s(t,r=(r=r.replace(/_/g," ")).replace(/=([0-9a-fA-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})));try{r=atob(r)}catch(e){}return s(t,r)}))}return""};var r=n(1)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var r=n(1),i=n(33);class s{constructor(e,t={}){this.url=e,this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&t.httpHeaders||Object.create(null),this.withCredentials=t.withCredentials||!1,this.getXhr=t.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,t,n){const r={begin:e,end:t};for(const e in n)r[e]=n[e];return this.request(r)}requestFull(e){return this.request(e)}request(e){const t=this.getXhr(),n=this.currXhrId++,r=this.pendingRequests[n]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(const e in this.httpHeaders){const n=this.httpHeaders[e];void 0!==n&&t.setRequestHeader(e,n)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),r.expectedStatus=206):r.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(n){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,n),t.onprogress=this.onProgress.bind(this,n),r.onHeadersReceived=e.onHeadersReceived,r.onDone=e.onDone,r.onError=e.onError,r.onProgress=e.onProgress,t.send(null),n}onProgress(e,t){const n=this.pendingRequests[e];n&&n.onProgress?.(t)}onStateChange(e,t){const n=this.pendingRequests[e];if(!n)return;const i=n.xhr;if(i.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4!==i.readyState)return;if(!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],0===i.status&&this.isHttp)return void n.onError?.(i.status);const s=i.status||200;if((200!==s||206!==n.expectedStatus)&&s!==n.expectedStatus)return void n.onError?.(i.status);const a=function(e){const t=e.response;return"string"!=typeof t?t:(0,r.stringToBytes)(t).buffer}(i);if(206===s){const e=i.getResponseHeader("Content-Range"),t=/bytes (\d+)-(\d+)\/(\d+)/.exec(e);n.onDone({begin:parseInt(t[1],10),chunk:a})}else a?n.onDone({begin:0,chunk:a}):n.onError?.(i.status)}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){const t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}t.PDFNetworkStream=class{constructor(e){this._source=e,this._manager=new s(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new a(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){const n=new o(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class a{constructor(e,t){this._manager=e;const n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._fullRequestId=e.requestFull(n),this._headersReceivedCapability=(0,r.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const e=this._fullRequestId,t=this._manager.getRequestXhr(e),n=e=>t.getResponseHeader(e),{allowRangeRequests:r,suggestedLength:s}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});r&&(this._isRangeSupported=!0),this._contentLength=s||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(n),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=(0,i.createResponseStatusError)(e,this._url),this._headersReceivedCapability.reject(this._storedError);for(const e of this._requests)e.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){this.onProgress?.({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e);for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class o{constructor(e,t,n){this._manager=e;const r={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._requestId=e.requestRange(t,n,r),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){this.onClosed?.(this)}_onDone(e){const t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError=(0,i.createResponseStatusError)(e,this._url);for(const e of this._requests)e.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){this.isStreamingSupported||this.onProgress?.({loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(null!==this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var r=n(1),i=n(33);function s(e,t,n){return{method:"GET",headers:e,signal:n.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function a(e){const t=new Headers;for(const n in e){const r=e[n];void 0!==r&&t.append(n,r)}return t}t.PDFFetchStream=class{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new o(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new l(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class o{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;const t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=(0,r.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=a(this._stream.httpHeaders);const n=t.url;fetch(n,s(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,n);this._reader=e.body.getReader(),this._headersCapability.resolve();const t=t=>e.headers.get(t),{allowRangeRequests:s,suggestedLength:a}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=s,this._contentLength=a||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(t),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new r.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController.abort()}}class l{constructor(e,t,n){this._stream=e,this._reader=null,this._loaded=0;const o=e.source;this._withCredentials=o.withCredentials||!1,this._readCapability=(0,r.createPromiseCapability)(),this._isStreamingSupported=!o.disableStream,this._abortController=new AbortController,this._headers=a(this._stream.httpHeaders),this._headers.append("Range",`bytes=${t}-${n-1}`);const l=o.url;fetch(l,s(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,l);this._readCapability.resolve(),this._reader=e.body.getReader()})).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController.abort()}}}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__w_pdfjs_require__),n.exports}var __webpack_exports__={};return(()=>{var e=__webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AnnotationEditorLayer",{enumerable:!0,get:function(){return i.AnnotationEditorLayer}}),Object.defineProperty(e,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return t.AnnotationEditorParamsType}}),Object.defineProperty(e,"AnnotationEditorType",{enumerable:!0,get:function(){return t.AnnotationEditorType}}),Object.defineProperty(e,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return s.AnnotationEditorUIManager}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return a.AnnotationLayer}}),Object.defineProperty(e,"AnnotationMode",{enumerable:!0,get:function(){return t.AnnotationMode}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return t.CMapCompressionType}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return o.GlobalWorkerOptions}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return t.InvalidPDFException}}),Object.defineProperty(e,"LoopbackPort",{enumerable:!0,get:function(){return n.LoopbackPort}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return t.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return t.OPS}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return n.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return r.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return n.PDFWorker}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return t.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return t.PermissionFlag}}),Object.defineProperty(e,"PixelsPerInch",{enumerable:!0,get:function(){return r.PixelsPerInch}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return r.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return u.SVGGraphics}}),Object.defineProperty(e,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return t.UNSUPPORTED_FEATURES}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return t.UnexpectedResponseException}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return t.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return t.VerbosityLevel}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return d.XfaLayer}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return n.build}}),Object.defineProperty(e,"createPromiseCapability",{enumerable:!0,get:function(){return t.createPromiseCapability}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return n.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return r.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return r.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return r.getXfaPageViewport}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return r.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return r.loadScript}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return c.renderTextLayer}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return t.shadow}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return n.version}});var t=__w_pdfjs_require__(1),n=__w_pdfjs_require__(4),r=__w_pdfjs_require__(8),i=__w_pdfjs_require__(22),s=__w_pdfjs_require__(7),a=__w_pdfjs_require__(27),o=__w_pdfjs_require__(15),l=__w_pdfjs_require__(3),c=__w_pdfjs_require__(30),u=__w_pdfjs_require__(31),d=__w_pdfjs_require__(29);if(l.isNodeJS){const{PDFNodeStream:e}=__w_pdfjs_require__(32);(0,n.setPDFNetworkStreamFactory)((t=>new e(t)))}else{const{PDFNetworkStream:e}=__w_pdfjs_require__(35),{PDFFetchStream:t}=__w_pdfjs_require__(36);(0,n.setPDFNetworkStreamFactory)((n=>(0,r.isValidFetchUrl)(n.url)?new t(n):new e(n)))}})(),__webpack_exports__})(),module.exports=factory()}(pdf)),pdf.exports}var pdfExports=requirePdf(),pdf_viewer={exports:{}},factory;globalThis,factory=()=>(()=>{var e=[,(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultXfaLayerFactory=t.DefaultTextLayerFactory=t.DefaultStructTreeLayerFactory=t.DefaultAnnotationLayerFactory=t.DefaultAnnotationEditorLayerFactory=void 0;var r=n(2),i=n(5),s=n(4),a=n(6),o=n(8),l=n(9),c=n(10);t.DefaultAnnotationLayerFactory=class{createAnnotationLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n=null,imageResourcesPath:r="",renderForms:o=!0,l10n:l=s.NullL10n,enableScripting:c=!1,hasJSActionsPromise:u=null,mouseState:d=null,fieldObjectsPromise:h=null,annotationCanvasMap:p=null,accessibilityManager:f=null}){return new i.AnnotationLayerBuilder({pageDiv:e,pdfPage:t,imageResourcesPath:r,renderForms:o,linkService:new a.SimpleLinkService,l10n:l,annotationStorage:n,enableScripting:c,hasJSActionsPromise:u,fieldObjectsPromise:h,mouseState:d,annotationCanvasMap:p,accessibilityManager:f})}},t.DefaultAnnotationEditorLayerFactory=class{createAnnotationEditorLayerBuilder({uiManager:e=null,pageDiv:t,pdfPage:n,accessibilityManager:i=null,l10n:s,annotationStorage:a=null}){return new r.AnnotationEditorLayerBuilder({uiManager:e,pageDiv:t,pdfPage:n,accessibilityManager:i,l10n:s,annotationStorage:a})}},t.DefaultStructTreeLayerFactory=class{createStructTreeLayerBuilder({pdfPage:e}){return new o.StructTreeLayerBuilder({pdfPage:e})}},t.DefaultTextLayerFactory=class{createTextLayerBuilder({textLayerDiv:e,pageIndex:t,viewport:n,enhanceTextSelection:r=!1,eventBus:i,highlighter:s,accessibilityManager:a=null}){return new l.TextLayerBuilder({textLayerDiv:e,pageIndex:t,viewport:n,enhanceTextSelection:r,eventBus:i,highlighter:s,accessibilityManager:a})}},t.DefaultXfaLayerFactory=class{createXfaLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n=null}){return new c.XfaLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n,linkService:new a.SimpleLinkService})}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayerBuilder=void 0;var r=n(3),i=n(4);t.AnnotationEditorLayerBuilder=class{#pe;constructor(e){this.pageDiv=e.pageDiv,this.pdfPage=e.pdfPage,this.annotationStorage=e.annotationStorage||null,this.accessibilityManager=e.accessibilityManager,this.l10n=e.l10n||i.NullL10n,this.annotationEditorLayer=null,this.div=null,this._cancelled=!1,this.#pe=e.uiManager}async render(e,t="display"){if("display"!==t)return;if(this._cancelled)return;const n=e.clone({dontFlip:!0});if(this.div)return this.annotationEditorLayer.update({viewport:n}),void this.show();this.div=document.createElement("div"),this.div.className="annotationEditorLayer",this.div.tabIndex=0,this.pageDiv.append(this.div),this.annotationEditorLayer=new r.AnnotationEditorLayer({uiManager:this.#pe,div:this.div,annotationStorage:this.annotationStorage,accessibilityManager:this.accessibilityManager,pageIndex:this.pdfPage._pageIndex,l10n:this.l10n,viewport:n});const i={viewport:n,div:this.div,annotations:null,intent:t};this.annotationEditorLayer.render(i)}cancel(){this._cancelled=!0,this.destroy()}hide(){this.div&&(this.div.hidden=!0)}show(){this.div&&(this.div.hidden=!1)}destroy(){this.div&&(this.pageDiv=null,this.annotationEditorLayer.destroy(),this.div.remove())}}},e=>{let t;t="undefined"!=typeof window&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:requirePdf(),e.exports=t},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NullL10n=void 0,t.fixupLangCode=function(e){return i[e?.toLowerCase()]||e},t.getL10nFallback=r;const n={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} × {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",print_progress_percent:"{{progress}}%","toggle_sidebar.title":"Toggle Sidebar","toggle_sidebar_notification2.title":"Toggle Sidebar (document contains outline/attachments/layers)",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",error_version_info:"PDF.js v{{version}} (build: {{build}})",error_message:"Message: {{message}}",error_stack:"Stack: {{stack}}",error_file:"File: {{file}}",error_line:"Line: {{line}}",rendering_error:"An error occurred while rendering the page.",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading:"Loading…",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text_default_content:"Enter text…",editor_free_text_aria_label:"FreeText Editor",editor_ink_aria_label:"Ink Editor",editor_ink_canvas_aria_label:"User-created image"};function r(e,t){switch(e){case"find_match_count":e=`find_match_count[${1===t.total?"one":"other"}]`;break;case"find_match_count_limit":e=`find_match_count_limit[${1===t.limit?"one":"other"}]`}return n[e]||""}const i={en:"en-US",es:"es-ES",fy:"fy-NL",ga:"ga-IE",gu:"gu-IN",hi:"hi-IN",hy:"hy-AM",nb:"nb-NO",ne:"ne-NP",nn:"nn-NO",pa:"pa-IN",pt:"pt-PT",sv:"sv-SE",zh:"zh-CN"},s={getLanguage:async()=>"en-us",getDirection:async()=>"ltr",get:async(e,t=null,n=r(e,t))=>function(e,t){return t?e.replace(/\{\{\s*(\w+)\s*\}\}/g,((e,n)=>n in t?t[n]:"{{"+n+"}}")):e}(n,t),async translate(e){}};t.NullL10n=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayerBuilder=void 0;var r=n(3),i=n(4);t.AnnotationLayerBuilder=class{constructor({pageDiv:e,pdfPage:t,linkService:n,downloadManager:r,annotationStorage:s=null,imageResourcesPath:a="",renderForms:o=!0,l10n:l=i.NullL10n,enableScripting:c=!1,hasJSActionsPromise:u=null,fieldObjectsPromise:d=null,mouseState:h=null,annotationCanvasMap:p=null,accessibilityManager:f=null}){this.pageDiv=e,this.pdfPage=t,this.linkService=n,this.downloadManager=r,this.imageResourcesPath=a,this.renderForms=o,this.l10n=l,this.annotationStorage=s,this.enableScripting=c,this._hasJSActionsPromise=u,this._fieldObjectsPromise=d,this._mouseState=h,this._annotationCanvasMap=p,this._accessibilityManager=f,this.div=null,this._cancelled=!1}async render(e,t="display"){const[n,i=!1,s=null]=await Promise.all([this.pdfPage.getAnnotations({intent:t}),this._hasJSActionsPromise,this._fieldObjectsPromise]);if(this._cancelled||0===n.length)return;const a={viewport:e.clone({dontFlip:!0}),div:this.div,annotations:n,page:this.pdfPage,imageResourcesPath:this.imageResourcesPath,renderForms:this.renderForms,linkService:this.linkService,downloadManager:this.downloadManager,annotationStorage:this.annotationStorage,enableScripting:this.enableScripting,hasJSActions:i,fieldObjects:s,mouseState:this._mouseState,annotationCanvasMap:this._annotationCanvasMap,accessibilityManager:this._accessibilityManager};this.div?r.AnnotationLayer.update(a):(this.div=document.createElement("div"),this.div.className="annotationLayer",this.pageDiv.append(this.div),a.div=this.div,r.AnnotationLayer.render(a),this.l10n.translate(this.div))}cancel(){this._cancelled=!0}hide(){this.div&&(this.div.hidden=!0)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleLinkService=t.PDFLinkService=t.LinkTarget=void 0;var r=n(7);const i={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function s(e,{url:t,target:n,rel:s,enabled:a=!0}={}){if(!t||"string"!=typeof t)throw new Error('A valid "url" parameter must provided.');const o=(0,r.removeNullCharacters)(t);a?e.href=e.title=o:(e.href="",e.title=`Disabled: ${o}`,e.onclick=()=>!1);let l="";switch(n){case i.NONE:break;case i.SELF:l="_self";break;case i.BLANK:l="_blank";break;case i.PARENT:l="_parent";break;case i.TOP:l="_top"}e.target=l,e.rel="string"==typeof s?s:"noopener noreferrer nofollow"}t.LinkTarget=i;class a{#ft=new Map;constructor({eventBus:e,externalLinkTarget:t=null,externalLinkRel:n=null,ignoreDestinationZoom:r=!1}={}){this.eventBus=e,this.externalLinkTarget=t,this.externalLinkRel=n,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=r,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null}setDocument(e,t=null){this.baseUrl=t,this.pdfDocument=e,this.#ft.clear()}setViewer(e){this.pdfViewer=e}setHistory(e){this.pdfHistory=e}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfViewer.currentPageNumber}set page(e){this.pdfViewer.currentPageNumber=e}get rotation(){return this.pdfViewer.pagesRotation}set rotation(e){this.pdfViewer.pagesRotation=e}#gt(e,t=null,n){const r=n[0];let i;if("object"==typeof r&&null!==r){if(i=this._cachedPageNumber(r),!i)return void this.pdfDocument.getPageIndex(r).then((i=>{this.cachePageRef(i+1,r),this.#gt(e,t,n)})).catch((()=>{console.error(`PDFLinkService.#goToDestinationHelper: "${r}" is not a valid page reference, for dest="${e}".`)}))}else{if(!Number.isInteger(r))return void console.error(`PDFLinkService.#goToDestinationHelper: "${r}" is not a valid destination reference, for dest="${e}".`);i=r+1}!i||i<1||i>this.pagesCount?console.error(`PDFLinkService.#goToDestinationHelper: "${i}" is not a valid page number, for dest="${e}".`):(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:t,explicitDest:n,pageNumber:i})),this.pdfViewer.scrollPageIntoView({pageNumber:i,destArray:n,ignoreDestinationZoom:this._ignoreDestinationZoom}))}async goToDestination(e){if(!this.pdfDocument)return;let t,n;"string"==typeof e?(t=e,n=await this.pdfDocument.getDestination(e)):(t=null,n=await e),Array.isArray(n)?this.#gt(e,t,n):console.error(`PDFLinkService.goToDestination: "${n}" is not a valid destination array, for dest="${e}".`)}goToPage(e){if(!this.pdfDocument)return;const t="string"==typeof e&&this.pdfViewer.pageLabelToPageNumber(e)||0|e;Number.isInteger(t)&&t>0&&t<=this.pagesCount?(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.pushPage(t)),this.pdfViewer.scrollPageIntoView({pageNumber:t})):console.error(`PDFLinkService.goToPage: "${e}" is not a valid page.`)}addLinkAttributes(e,t,n=!1){s(e,{url:t,target:n?i.BLANK:this.externalLinkTarget,rel:this.externalLinkRel,enabled:this.externalLinkEnabled})}getDestinationHash(e){if("string"==typeof e){if(e.length>0)return this.getAnchorUrl("#"+escape(e))}else if(Array.isArray(e)){const t=JSON.stringify(e);if(t.length>0)return this.getAnchorUrl("#"+escape(t))}return this.getAnchorUrl("")}getAnchorUrl(e){return(this.baseUrl||"")+e}setHash(e){if(!this.pdfDocument)return;let t,n;if(e.includes("=")){const i=(0,r.parseQueryString)(e);if(i.has("search")&&this.eventBus.dispatch("findfromurlhash",{source:this,query:i.get("search").replace(/"/g,""),phraseSearch:"true"===i.get("phrase")}),i.has("page")&&(t=0|i.get("page")||1),i.has("zoom")){const e=i.get("zoom").split(","),t=e[0],r=parseFloat(t);t.includes("Fit")?"Fit"===t||"FitB"===t?n=[null,{name:t}]:"FitH"===t||"FitBH"===t||"FitV"===t||"FitBV"===t?n=[null,{name:t},e.length>1?0|e[1]:null]:"FitR"===t?5!==e.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):n=[null,{name:t},0|e[1],0|e[2],0|e[3],0|e[4]]:console.error(`PDFLinkService.setHash: "${t}" is not a valid zoom value.`):n=[null,{name:"XYZ"},e.length>1?0|e[1]:null,e.length>2?0|e[2]:null,r?r/100:t]}n?this.pdfViewer.scrollPageIntoView({pageNumber:t||this.page,destArray:n,allowNegativeOffset:!0}):t&&(this.page=t),i.has("pagemode")&&this.eventBus.dispatch("pagemode",{source:this,mode:i.get("pagemode")}),i.has("nameddest")&&this.goToDestination(i.get("nameddest"))}else{n=unescape(e);try{n=JSON.parse(n),Array.isArray(n)||(n=n.toString())}catch(e){}if("string"==typeof n||a.#mt(n))return void this.goToDestination(n);console.error(`PDFLinkService.setHash: "${unescape(e)}" is not a valid destination.`)}}executeNamedAction(e){switch(e){case"GoBack":this.pdfHistory?.back();break;case"GoForward":this.pdfHistory?.forward();break;case"NextPage":this.pdfViewer.nextPage();break;case"PrevPage":this.pdfViewer.previousPage();break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:e})}cachePageRef(e,t){if(!t)return;const n=0===t.gen?`${t.num}R`:`${t.num}R${t.gen}`;this.#ft.set(n,e)}_cachedPageNumber(e){if(!e)return null;const t=0===e.gen?`${e.num}R`:`${e.num}R${e.gen}`;return this.#ft.get(t)||null}isPageVisible(e){return this.pdfViewer.isPageVisible(e)}isPageCached(e){return this.pdfViewer.isPageCached(e)}static#mt(e){if(!Array.isArray(e))return!1;const t=e.length;if(t<2)return!1;const n=e[0];if(!("object"==typeof n&&Number.isInteger(n.num)&&Number.isInteger(n.gen)||Number.isInteger(n)&&n>=0))return!1;const r=e[1];if("object"!=typeof r||"string"!=typeof r.name)return!1;let i=!0;switch(r.name){case"XYZ":if(5!==t)return!1;break;case"Fit":case"FitB":return 2===t;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==t)return!1;break;case"FitR":if(6!==t)return!1;i=!1;break;default:return!1}for(let n=2;n<t;n++){const t=e[n];if(!("number"==typeof t||i&&null===t))return!1}return!0}}t.PDFLinkService=a,t.SimpleLinkService=class{constructor(){this.externalLinkEnabled=!0}get pagesCount(){return 0}get page(){return 0}set page(e){}get rotation(){return 0}set rotation(e){}async goToDestination(e){}goToPage(e){}addLinkAttributes(e,t,n=!1){s(e,{url:t,enabled:this.externalLinkEnabled})}getDestinationHash(e){return"#"}getAnchorUrl(e){return"#"}setHash(e){}executeNamedAction(e){}cachePageRef(e,t){}isPageVisible(e){return!0}isPageCached(e){return!0}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.animationStarted=t.VERTICAL_PADDING=t.UNKNOWN_SCALE=t.TextLayerMode=t.SpreadMode=t.SidebarView=t.ScrollMode=t.SCROLLBAR_PADDING=t.RenderingStates=t.RendererType=t.ProgressBar=t.PresentationModeState=t.OutputScale=t.MIN_SCALE=t.MAX_SCALE=t.MAX_AUTO_SCALE=t.DEFAULT_SCALE_VALUE=t.DEFAULT_SCALE_DELTA=t.DEFAULT_SCALE=t.AutoPrintRegExp=void 0,t.apiPageLayoutToViewerModes=function(e){let t=r.VERTICAL,n=i.NONE;switch(e){case"SinglePage":t=r.PAGE;break;case"OneColumn":break;case"TwoPageLeft":t=r.PAGE;case"TwoColumnLeft":n=i.ODD;break;case"TwoPageRight":t=r.PAGE;case"TwoColumnRight":n=i.EVEN}return{scrollMode:t,spreadMode:n}},t.apiPageModeToSidebarView=function(e){switch(e){case"UseNone":return n.NONE;case"UseThumbs":return n.THUMBS;case"UseOutlines":return n.OUTLINE;case"UseAttachments":return n.ATTACHMENTS;case"UseOC":return n.LAYERS}return n.NONE},t.approximateFraction=function(e){if(Math.floor(e)===e)return[e,1];const t=1/e;if(t>8)return[1,8];if(Math.floor(t)===t)return[1,t];const n=e>1?t:e;let r,i=0,s=1,a=1,o=1;for(;;){const e=i+a,t=s+o;if(t>8)break;n<=e/t?(a=e,o=t):(i=e,s=t)}return r=n-i/s<a/o-n?n===e?[i,s]:[s,i]:n===e?[a,o]:[o,a],r},t.backtrackBeforeAllVisibleElements=l,t.binarySearchFirstItem=o,t.docStyle=void 0,t.getActiveOrFocusedElement=function(){let e=document,t=e.activeElement||e.querySelector(":focus");for(;t?.shadowRoot;)e=t.shadowRoot,t=e.activeElement||e.querySelector(":focus");return t},t.getPageSizeInches=function({view:e,userUnit:t,rotate:n}){const[r,i,s,a]=e,o=n%180!=0,l=(s-r)/72*t,c=(a-i)/72*t;return{width:o?c:l,height:o?l:c}},t.getVisibleElements=function({scrollEl:e,views:t,sortByVisibility:n=!1,horizontal:r=!1,rtl:i=!1}){const s=e.scrollTop,a=s+e.clientHeight,c=e.scrollLeft,u=c+e.clientWidth,d=[],h=new Set,p=t.length;let f=o(t,r?function(e){const t=e.div,n=t.offsetLeft+t.clientLeft,r=n+t.clientWidth;return i?n<u:r>c}:function(e){const t=e.div;return t.offsetTop+t.clientTop+t.clientHeight>s});f>0&&f<p&&!r&&(f=l(f,t,s));let g=r?u:-1;for(let e=f;e<p;e++){const n=t[e],i=n.div,o=i.offsetLeft+i.clientLeft,l=i.offsetTop+i.clientTop,p=i.clientWidth,f=i.clientHeight,m=o+p,v=l+f;if(-1===g)v>=a&&(g=v);else if((r?o:l)>g)break;if(v<=s||l>=a||m<=c||o>=u)continue;const y=Math.max(0,s-l)+Math.max(0,v-a),b=Math.max(0,c-o)+Math.max(0,m-u),_=(p-b)/p,w=(f-y)/f*_*100|0;d.push({id:n.id,x:o,y:l,view:n,percent:w,widthPercent:100*_|0}),h.add(n.id)}const m=d[0],v=d.at(-1);return n&&d.sort((function(e,t){const n=e.percent-t.percent;return Math.abs(n)>.001?-n:e.id-t.id})),{first:m,last:v,views:d,ids:h}},t.isPortraitOrientation=function(e){return e.width<=e.height},t.isValidRotation=function(e){return Number.isInteger(e)&&e%90==0},t.isValidScrollMode=function(e){return Number.isInteger(e)&&Object.values(r).includes(e)&&e!==r.UNKNOWN},t.isValidSpreadMode=function(e){return Number.isInteger(e)&&Object.values(i).includes(e)&&e!==i.UNKNOWN},t.noContextMenuHandler=function(e){e.preventDefault()},t.normalizeWheelEventDelta=function(e){let t=c(e);return 0===e.deltaMode?t/=900:1===e.deltaMode&&(t/=30),t},t.normalizeWheelEventDirection=c,t.parseQueryString=function(e){const t=new Map;for(const[n,r]of new URLSearchParams(e))t.set(n.toLowerCase(),r);return t},t.removeNullCharacters=function(e,t=!1){return"string"!=typeof e?(console.error("The argument must be a string."),e):(t&&(e=e.replace(a," ")),e.replace(s,""))},t.roundToDivide=function(e,t){const n=e%t;return 0===n?e:Math.round(e-n+t)},t.scrollIntoView=function(e,t,n=!1){let r=e.offsetParent;if(!r)return void console.error("offsetParent is not set -- cannot scroll");let i=e.offsetTop+e.clientTop,s=e.offsetLeft+e.clientLeft;for(;r.clientHeight===r.scrollHeight&&r.clientWidth===r.scrollWidth||n&&(r.classList.contains("markedContent")||"hidden"===getComputedStyle(r).overflow);)if(i+=r.offsetTop,s+=r.offsetLeft,r=r.offsetParent,!r)return;t&&(void 0!==t.top&&(i+=t.top),void 0!==t.left&&(s+=t.left,r.scrollLeft=s)),r.scrollTop=i},t.watchScroll=function(e,t){const n=function(n){i||(i=window.requestAnimationFrame((function(){i=null;const n=e.scrollLeft,s=r.lastX;n!==s&&(r.right=n>s),r.lastX=n;const a=e.scrollTop,o=r.lastY;a!==o&&(r.down=a>o),r.lastY=a,t(r)})))},r={right:!0,down:!0,lastX:e.scrollLeft,lastY:e.scrollTop,_eventHandler:n};let i=null;return e.addEventListener("scroll",n,!0),r},t.DEFAULT_SCALE_VALUE="auto",t.DEFAULT_SCALE=1,t.DEFAULT_SCALE_DELTA=1.1,t.MIN_SCALE=.1,t.MAX_SCALE=10,t.UNKNOWN_SCALE=0,t.MAX_AUTO_SCALE=1.25,t.SCROLLBAR_PADDING=40,t.VERTICAL_PADDING=5,t.RenderingStates={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3},t.PresentationModeState={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};const n={UNKNOWN:-1,NONE:0,THUMBS:1,OUTLINE:2,ATTACHMENTS:3,LAYERS:4};t.SidebarView=n,t.RendererType={CANVAS:"canvas",SVG:"svg"},t.TextLayerMode={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};const r={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3};t.ScrollMode=r;const i={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};t.SpreadMode=i,t.AutoPrintRegExp=/\bprint\s*\(/,t.OutputScale=class{constructor(){const e=window.devicePixelRatio||1;this.sx=e,this.sy=e}get scaled(){return 1!==this.sx||1!==this.sy}};const s=/\x00/g,a=/[\x01-\x1F]/g;function o(e,t,n=0){let r=n,i=e.length-1;if(i<0||!t(e[i]))return e.length;if(t(e[r]))return r;for(;r<i;){const n=r+i>>1;t(e[n])?i=n:r=n+1}return r}function l(e,t,n){if(e<2)return e;let r=t[e].div,i=r.offsetTop+r.clientTop;i>=n&&(r=t[e-1].div,i=r.offsetTop+r.clientTop);for(let n=e-2;n>=0&&(r=t[n].div,!(r.offsetTop+r.clientTop+r.clientHeight<=i));--n)e=n;return e}function c(e){let t=Math.hypot(e.deltaX,e.deltaY);const n=Math.atan2(e.deltaY,e.deltaX);return-.25*Math.PI<n&&n<.75*Math.PI&&(t=-t),t}const u=new Promise((function(e){window.requestAnimationFrame(e)}));t.animationStarted=u;const d=document.documentElement.style;t.docStyle=d,t.ProgressBar=class{#vt=null;#yt=0;#ee=!0;constructor(e){if(arguments.length>1)throw new Error("ProgressBar no longer accepts any additional options, please use CSS rules to modify its appearance instead.");const t=document.getElementById(e);this.#vt=t.classList}get percent(){return this.#yt}set percent(e){var t,n,r;this.#yt=(t=e,n=0,r=100,Math.min(Math.max(t,n),r)),isNaN(e)?this.#vt.add("indeterminate"):(this.#vt.remove("indeterminate"),d.setProperty("--progressBar-percent",`${this.#yt}%`))}setWidth(e){if(!e)return;const t=e.parentNode.offsetWidth-e.offsetWidth;t>0&&d.setProperty("--progressBar-end-offset",`${t}px`)}hide(){this.#ee&&(this.#ee=!1,this.#vt.add("hidden"))}show(){this.#ee||(this.#ee=!0,this.#vt.remove("hidden"))}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StructTreeLayerBuilder=void 0;const n={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},r=/^H(\d+)$/;t.StructTreeLayerBuilder=class{constructor({pdfPage:e}){this.pdfPage=e}render(e){return this._walk(e)}_setAttributes(e,t){void 0!==e.alt&&t.setAttribute("aria-label",e.alt),void 0!==e.id&&t.setAttribute("aria-owns",e.id),void 0!==e.lang&&t.setAttribute("lang",e.lang)}_walk(e){if(!e)return null;const t=document.createElement("span");if("role"in e){const{role:i}=e,s=i.match(r);s?(t.setAttribute("role","heading"),t.setAttribute("aria-level",s[1])):n[i]&&t.setAttribute("role",n[i])}if(this._setAttributes(e,t),e.children)if(1===e.children.length&&"id"in e.children[0])this._setAttributes(e.children[0],t);else for(const n of e.children)t.append(this._walk(n));return t}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerBuilder=void 0;var r=n(3);t.TextLayerBuilder=class{constructor({textLayerDiv:e,eventBus:t,pageIndex:n,viewport:r,highlighter:i=null,enhanceTextSelection:s=!1,accessibilityManager:a=null}){this.textLayerDiv=e,this.eventBus=t,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageNumber=n+1,this.viewport=r,this.textDivs=[],this.textLayerRenderTask=null,this.highlighter=i,this.enhanceTextSelection=s,this.accessibilityManager=a,this._bindMouse()}_finishRendering(){if(this.renderingDone=!0,!this.enhanceTextSelection){const e=document.createElement("div");e.className="endOfContent",this.textLayerDiv.append(e)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}render(e=0){if(!this.textContent&&!this.textContentStream||this.renderingDone)return;this.cancel(),this.textDivs.length=0,this.highlighter?.setTextMapping(this.textDivs,this.textContentItemsStr),this.accessibilityManager?.setTextMapping(this.textDivs);const t=document.createDocumentFragment();this.textLayerRenderTask=(0,r.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:t,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:e,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then((()=>{this.textLayerDiv.append(t),this._finishRendering(),this.highlighter?.enable(),this.accessibilityManager?.enable()}),(function(e){}))}cancel(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this.highlighter?.disable(),this.accessibilityManager?.disable()}setTextContentStream(e){this.cancel(),this.textContentStream=e}setTextContent(e){this.cancel(),this.textContent=e}_bindMouse(){const e=this.textLayerDiv;let t=null;e.addEventListener("mousedown",(n=>{if(this.enhanceTextSelection&&this.textLayerRenderTask)return this.textLayerRenderTask.expandTextDivs(!0),void(t&&(clearTimeout(t),t=null));const r=e.querySelector(".endOfContent");if(!r)return;let i=n.target!==e;if(i=i&&"none"!==window.getComputedStyle(r).getPropertyValue("-moz-user-select"),i){const t=e.getBoundingClientRect(),i=Math.max(0,(n.pageY-t.top)/t.height);r.style.top=(100*i).toFixed(2)+"%"}r.classList.add("active")})),e.addEventListener("mouseup",(()=>{if(this.enhanceTextSelection&&this.textLayerRenderTask)return void(t=setTimeout((()=>{this.textLayerRenderTask&&this.textLayerRenderTask.expandTextDivs(!1),t=null}),300));const n=e.querySelector(".endOfContent");n&&(n.style.top="",n.classList.remove("active"))}))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayerBuilder=void 0;var r=n(3);t.XfaLayerBuilder=class{constructor({pageDiv:e,pdfPage:t,annotationStorage:n=null,linkService:r,xfaHtml:i=null}){this.pageDiv=e,this.pdfPage=t,this.annotationStorage=n,this.linkService=r,this.xfaHtml=i,this.div=null,this._cancelled=!1}render(e,t="display"){if("print"===t){const n={viewport:e.clone({dontFlip:!0}),div:this.div,xfaHtml:this.xfaHtml,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:t},i=document.createElement("div");this.pageDiv.append(i),n.div=i;const s=r.XfaLayer.render(n);return Promise.resolve(s)}return this.pdfPage.getXfa().then((n=>{if(this._cancelled||!n)return{textDivs:[]};const i={viewport:e.clone({dontFlip:!0}),div:this.div,xfaHtml:n,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:t};return this.div?r.XfaLayer.update(i):(this.div=document.createElement("div"),this.pageDiv.append(this.div),i.div=this.div,r.XfaLayer.render(i))})).catch((e=>{console.error(e)}))}cancel(){this._cancelled=!0}hide(){this.div&&(this.div.hidden=!0)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFViewer=t.PDFSinglePageViewer=void 0;var r=n(7),i=n(12);class s extends i.BaseViewer{}t.PDFViewer=s;class a extends i.BaseViewer{_resetView(){super._resetView(),this._scrollMode=r.ScrollMode.PAGE,this._spreadMode=r.SpreadMode.NONE}set scrollMode(e){}_updateScrollMode(){}set spreadMode(e){}_updateSpreadMode(){}}t.PDFSinglePageViewer=a},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PagesCountLimit=t.PDFPageViewBuffer=t.BaseViewer=void 0;var r=n(3),i=n(7),s=n(2),a=n(5),o=n(4),l=n(13),c=n(16),u=n(6),d=n(8),h=n(17),p=n(9),f=n(10);const g="enablePermissions",m={FORCE_SCROLL_MODE_PAGE:15e3,FORCE_LAZY_PAGE_INIT:7500,PAUSE_EAGER_PAGE_INIT:250};function v(e){return Object.values(r.AnnotationEditorType).includes(e)&&e!==r.AnnotationEditorType.DISABLE}t.PagesCountLimit=m;class y{#bt=new Set;#_t=0;constructor(e){this.#_t=e}push(e){const t=this.#bt;t.has(e)&&t.delete(e),t.add(e),t.size>this.#_t&&this.#wt()}resize(e,t=null){this.#_t=e;const n=this.#bt;if(t){const e=n.size;let r=1;for(const i of n)if(t.has(i.id)&&(n.delete(i),n.add(i)),++r>e)break}for(;n.size>this.#_t;)this.#wt()}has(e){return this.#bt.has(e)}[Symbol.iterator](){return this.#bt.keys()}#wt(){const e=this.#bt.keys().next().value;e?.destroy(),this.#bt.delete(e)}}t.PDFPageViewBuffer=y;class b{#Et=null;#St=r.AnnotationEditorType.DISABLE;#Ct=null;#At=r.AnnotationMode.ENABLE_FORMS;#Pt=!1;#xt=0;#Tt=null;#Mt=null;constructor(e){if(this.constructor===b)throw new Error("Cannot initialize BaseViewer.");const t="2.16.105";if(r.version!==t)throw new Error(`The API version "${r.version}" does not match the Viewer version "2.16.105".`);if(this.container=e.container,this.viewer=e.viewer||e.container.firstElementChild,"DIV"!==this.container?.tagName.toUpperCase()||"DIV"!==this.viewer?.tagName.toUpperCase())throw new Error("Invalid `container` and/or `viewer` option.");if(this.container.offsetParent&&"absolute"!==getComputedStyle(this.container).position)throw new Error("The `container` must be absolutely positioned.");this.eventBus=e.eventBus,this.linkService=e.linkService||new u.SimpleLinkService,this.downloadManager=e.downloadManager||null,this.findController=e.findController||null,this._scriptingManager=e.scriptingManager||null,this.removePageBorders=e.removePageBorders||!1,this.textLayerMode=e.textLayerMode??i.TextLayerMode.ENABLE,this.#At=e.annotationMode??r.AnnotationMode.ENABLE_FORMS,this.#St=e.annotationEditorMode??r.AnnotationEditorType.DISABLE,this.imageResourcesPath=e.imageResourcesPath||"",this.enablePrintAutoRotate=e.enablePrintAutoRotate||!1,this.renderer=e.renderer||i.RendererType.CANVAS,this.useOnlyCssZoom=e.useOnlyCssZoom||!1,this.maxCanvasPixels=e.maxCanvasPixels,this.l10n=e.l10n||o.NullL10n,this.#Pt=e.enablePermissions||!1,this.pageColors=e.pageColors||null,!this.pageColors||CSS.supports("color",this.pageColors.background)&&CSS.supports("color",this.pageColors.foreground)||((this.pageColors.background||this.pageColors.foreground)&&console.warn("BaseViewer: Ignoring `pageColors`-option, since the browser doesn't support the values used."),this.pageColors=null),this.defaultRenderingQueue=!e.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new c.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=e.renderingQueue,this.scroll=(0,i.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=i.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),this.updateContainerHeightCss()}get pagesCount(){return this._pages.length}getPageView(e){return this._pages[e]}get pageViewsReady(){return!!this._pagesCapability.settled&&this._pages.every((function(e){return e?.pdfPage}))}get renderForms(){return this.#At===r.AnnotationMode.ENABLE_FORMS}get enableScripting(){return!!this._scriptingManager}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(e){if(!Number.isInteger(e))throw new Error("Invalid page number.");this.pdfDocument&&(this._setCurrentPageNumber(e,!0)||console.error(`currentPageNumber: "${e}" is not a valid page.`))}_setCurrentPageNumber(e,t=!1){if(this._currentPageNumber===e)return t&&this.#Rt(),!0;if(!(0<e&&e<=this.pagesCount))return!1;const n=this._currentPageNumber;return this._currentPageNumber=e,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:e,pageLabel:this._pageLabels?.[e-1]??null,previous:n}),t&&this.#Rt(),!0}get currentPageLabel(){return this._pageLabels?.[this._currentPageNumber-1]??null}set currentPageLabel(e){if(!this.pdfDocument)return;let t=0|e;if(this._pageLabels){const n=this._pageLabels.indexOf(e);n>=0&&(t=n+1)}this._setCurrentPageNumber(t,!0)||console.error(`currentPageLabel: "${e}" is not a valid page.`)}get currentScale(){return this._currentScale!==i.UNKNOWN_SCALE?this._currentScale:i.DEFAULT_SCALE}set currentScale(e){if(isNaN(e))throw new Error("Invalid numeric scale.");this.pdfDocument&&this._setScale(e,!1)}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(e){this.pdfDocument&&this._setScale(e,!1)}get pagesRotation(){return this._pagesRotation}set pagesRotation(e){if(!(0,i.isValidRotation)(e))throw new Error("Invalid pages rotation angle.");if(!this.pdfDocument)return;if((e%=360)<0&&(e+=360),this._pagesRotation===e)return;this._pagesRotation=e;const t=this._currentPageNumber,n={rotation:e};for(const e of this._pages)e.update(n);this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:e,pageNumber:t}),this.defaultRenderingQueue&&this.update()}get firstPagePromise(){return this.pdfDocument?this._firstPageCapability.promise:null}get onePageRendered(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}get pagesPromise(){return this.pdfDocument?this._pagesCapability.promise:null}#Lt(e){const t={annotationEditorMode:this.#St,annotationMode:this.#At,textLayerMode:this.textLayerMode};return e?(e.includes(r.PermissionFlag.COPY)||this.viewer.classList.add(g),e.includes(r.PermissionFlag.MODIFY_CONTENTS)||(t.annotationEditorMode=r.AnnotationEditorType.DISABLE),e.includes(r.PermissionFlag.MODIFY_ANNOTATIONS)||e.includes(r.PermissionFlag.FILL_INTERACTIVE_FORMS)||this.#At!==r.AnnotationMode.ENABLE_FORMS||(t.annotationMode=r.AnnotationMode.ENABLE),t):t}#It(){if("hidden"===document.visibilityState||!this.container.offsetParent||0===this._getVisiblePages().views.length)return Promise.resolve();const e=new Promise((e=>{this.#Mt=()=>{"hidden"===document.visibilityState&&(e(),document.removeEventListener("visibilitychange",this.#Mt),this.#Mt=null)},document.addEventListener("visibilitychange",this.#Mt)}));return Promise.race([this._onePageRenderedCapability.promise,e])}setDocument(e){if(this.pdfDocument&&(this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null),this._scriptingManager&&this._scriptingManager.setDocument(null),this.#Ct&&(this.#Ct.destroy(),this.#Ct=null)),this.pdfDocument=e,!e)return;const t=e.isPureXfa,n=e.numPages,s=e.getPage(1),a=e.getOptionalContentConfig(),o=this.#Pt?e.getPermissions():Promise.resolve();if(n>m.FORCE_SCROLL_MODE_PAGE){console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document.");const e=this._scrollMode=i.ScrollMode.PAGE;this.eventBus.dispatch("scrollmodechanged",{source:this,mode:e})}this._pagesCapability.promise.then((()=>{this.eventBus.dispatch("pagesloaded",{source:this,pagesCount:n})}),(()=>{})),this._onBeforeDraw=e=>{const t=this._pages[e.pageNumber-1];t&&this.#Et.push(t)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=e=>{e.cssTransform||this._onePageRenderedCapability.settled||(this._onePageRenderedCapability.resolve({timestamp:e.timestamp}),this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null,this.#Mt&&(document.removeEventListener("visibilitychange",this.#Mt),this.#Mt=null))},this.eventBus._on("pagerendered",this._onAfterDraw),Promise.all([s,o]).then((([s,o])=>{if(e!==this.pdfDocument)return;this._firstPageCapability.resolve(s),this._optionalContentConfigPromise=a;const{annotationEditorMode:c,annotationMode:u,textLayerMode:d}=this.#Lt(o);if(c!==r.AnnotationEditorType.DISABLE){const e=c;t?console.warn("Warning: XFA-editing is not implemented."):v(e)?(this.#Ct=new r.AnnotationEditorUIManager(this.container,this.eventBus),e!==r.AnnotationEditorType.NONE&&this.#Ct.updateMode(e)):console.error(`Invalid AnnotationEditor mode: ${e}`)}const h=this._scrollMode===i.ScrollMode.PAGE?null:this.viewer,p=this.currentScale,f=s.getViewport({scale:p*r.PixelsPerInch.PDF_TO_CSS_UNITS}),g=d===i.TextLayerMode.DISABLE||t?null:this,y=u!==r.AnnotationMode.DISABLE?this:null,b=t?this:null,_=this.#Ct?this:null;for(let e=1;e<=n;++e){const t=new l.PDFPageView({container:h,eventBus:this.eventBus,id:e,scale:p,defaultViewport:f.clone(),optionalContentConfigPromise:a,renderingQueue:this.renderingQueue,textLayerFactory:g,textLayerMode:d,annotationLayerFactory:y,annotationMode:u,xfaLayerFactory:b,annotationEditorLayerFactory:_,textHighlighterFactory:this,structTreeLayerFactory:this,imageResourcesPath:this.imageResourcesPath,renderer:this.renderer,useOnlyCssZoom:this.useOnlyCssZoom,maxCanvasPixels:this.maxCanvasPixels,pageColors:this.pageColors,l10n:this.l10n});this._pages.push(t)}const w=this._pages[0];w&&(w.setPdfPage(s),this.linkService.cachePageRef(1,s.ref)),this._scrollMode===i.ScrollMode.PAGE?this.#kt():this._spreadMode!==i.SpreadMode.NONE&&this._updateSpreadMode(),this.#It().then((async()=>{if(this.findController&&this.findController.setDocument(e),this._scriptingManager&&this._scriptingManager.setDocument(e),this.#Ct&&this.eventBus.dispatch("annotationeditormodechanged",{source:this,mode:this.#St}),e.loadingParams.disableAutoFetch||n>m.FORCE_LAZY_PAGE_INIT)return void this._pagesCapability.resolve();let t=n-1;if(t<=0)this._pagesCapability.resolve();else for(let r=2;r<=n;++r){const n=e.getPage(r).then((e=>{const n=this._pages[r-1];n.pdfPage||n.setPdfPage(e),this.linkService.cachePageRef(r,e.ref),0==--t&&this._pagesCapability.resolve()}),(e=>{console.error(`Unable to get page ${r} to initialize viewer`,e),0==--t&&this._pagesCapability.resolve()}));r%m.PAUSE_EAGER_PAGE_INIT==0&&await n}})),this.eventBus.dispatch("pagesinit",{source:this}),e.getMetadata().then((({info:t})=>{e===this.pdfDocument&&t.Language&&(this.viewer.lang=t.Language)})),this.defaultRenderingQueue&&this.update()})).catch((e=>{console.error("Unable to initialize viewer",e),this._pagesCapability.reject(e)}))}setPageLabels(e){if(this.pdfDocument){e?Array.isArray(e)&&this.pdfDocument.numPages===e.length?this._pageLabels=e:(this._pageLabels=null,console.error("setPageLabels: Invalid page labels.")):this._pageLabels=null;for(let e=0,t=this._pages.length;e<t;e++)this._pages[e].setPageLabel(this._pageLabels?.[e]??null)}}_resetView(){this._pages=[],this._currentPageNumber=1,this._currentScale=i.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,this.#Et=new y(10),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._firstPageCapability=(0,r.createPromiseCapability)(),this._onePageRenderedCapability=(0,r.createPromiseCapability)(),this._pagesCapability=(0,r.createPromiseCapability)(),this._scrollMode=i.ScrollMode.VERTICAL,this._previousScrollMode=i.ScrollMode.UNKNOWN,this._spreadMode=i.SpreadMode.NONE,this.#Tt={previousPageNumber:1,scrollDown:!0,pages:[]},this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),this.#Mt&&(document.removeEventListener("visibilitychange",this.#Mt),this.#Mt=null),this.viewer.textContent="",this._updateScrollMode(),this.viewer.removeAttribute("lang"),this.viewer.classList.remove(g)}#kt(){if(this._scrollMode!==i.ScrollMode.PAGE)throw new Error("#ensurePageViewVisible: Invalid scrollMode value.");const e=this._currentPageNumber,t=this.#Tt,n=this.viewer;if(n.textContent="",t.pages.length=0,this._spreadMode!==i.SpreadMode.NONE||this.isInPresentationMode){const r=new Set,i=this._spreadMode-1;-1===i?r.add(e-1):e%2!==i?(r.add(e-1),r.add(e)):(r.add(e-2),r.add(e-1));const s=document.createElement("div");if(s.className="spread",this.isInPresentationMode){const e=document.createElement("div");e.className="dummyPage",s.append(e)}for(const e of r){const n=this._pages[e];n&&(s.append(n.div),t.pages.push(n))}n.append(s)}else{const r=this._pages[e-1];n.append(r.div),t.pages.push(r)}t.scrollDown=e>=t.previousPageNumber,t.previousPageNumber=e}_scrollUpdate(){0!==this.pagesCount&&this.update()}#Ot(e,t=null){const{div:n,id:r}=e;if(this._scrollMode===i.ScrollMode.PAGE&&(this._setCurrentPageNumber(r),this.#kt(),this.update()),!t&&!this.isInPresentationMode){const e=n.offsetLeft+n.clientLeft,r=e+n.clientWidth,{scrollLeft:s,clientWidth:a}=this.container;(this._scrollMode===i.ScrollMode.HORIZONTAL||e<s||r>s+a)&&(t={left:0,top:0})}(0,i.scrollIntoView)(n,t)}#Ft(e){return e===this._currentScale||Math.abs(e-this._currentScale)<1e-15}_setScaleUpdatePages(e,t,n=!1,s=!1){if(this._currentScaleValue=t.toString(),this.#Ft(e))return void(s&&this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:t}));i.docStyle.setProperty("--scale-factor",e*r.PixelsPerInch.PDF_TO_CSS_UNITS);const a={scale:e};for(const e of this._pages)e.update(a);if(this._currentScale=e,!n){let e,t=this._currentPageNumber;!this._location||this.isInPresentationMode||this.isChangingPresentationMode||(t=this._location.pageNumber,e=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:t,destArray:e,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:s?t:void 0}),this.defaultRenderingQueue&&this.update(),this.updateContainerHeightCss()}get _pageWidthScaleFactor(){return this._spreadMode!==i.SpreadMode.NONE&&this._scrollMode!==i.ScrollMode.HORIZONTAL?2:1}_setScale(e,t=!1){let n=parseFloat(e);if(n>0)this._setScaleUpdatePages(n,e,t,!1);else{const r=this._pages[this._currentPageNumber-1];if(!r)return;let s=i.SCROLLBAR_PADDING,a=i.VERTICAL_PADDING;this.isInPresentationMode?s=a=4:this.removePageBorders?s=a=0:this._scrollMode===i.ScrollMode.HORIZONTAL&&([s,a]=[a,s]);const o=(this.container.clientWidth-s)/r.width*r.scale/this._pageWidthScaleFactor,l=(this.container.clientHeight-a)/r.height*r.scale;switch(e){case"page-actual":n=1;break;case"page-width":n=o;break;case"page-height":n=l;break;case"page-fit":n=Math.min(o,l);break;case"auto":const t=(0,i.isPortraitOrientation)(r)?o:Math.min(l,o);n=Math.min(i.MAX_AUTO_SCALE,t);break;default:return void console.error(`_setScale: "${e}" is an unknown zoom value.`)}this._setScaleUpdatePages(n,e,t,!0)}}#Rt(){const e=this._pages[this._currentPageNumber-1];this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0),this.#Ot(e)}pageLabelToPageNumber(e){if(!this._pageLabels)return null;const t=this._pageLabels.indexOf(e);return t<0?null:t+1}scrollPageIntoView({pageNumber:e,destArray:t=null,allowNegativeOffset:n=!1,ignoreDestinationZoom:s=!1}){if(!this.pdfDocument)return;const a=Number.isInteger(e)&&this._pages[e-1];if(!a)return void console.error(`scrollPageIntoView: "${e}" is not a valid pageNumber parameter.`);if(this.isInPresentationMode||!t)return void this._setCurrentPageNumber(e,!0);let o,l,c=0,u=0,d=0,h=0;const p=a.rotation%180!=0,f=(p?a.height:a.width)/a.scale/r.PixelsPerInch.PDF_TO_CSS_UNITS,g=(p?a.width:a.height)/a.scale/r.PixelsPerInch.PDF_TO_CSS_UNITS;let m=0;switch(t[1].name){case"XYZ":c=t[2],u=t[3],m=t[4],c=null!==c?c:0,u=null!==u?u:g;break;case"Fit":case"FitB":m="page-fit";break;case"FitH":case"FitBH":u=t[2],m="page-width",null===u&&this._location?(c=this._location.left,u=this._location.top):("number"!=typeof u||u<0)&&(u=g);break;case"FitV":case"FitBV":c=t[2],d=f,h=g,m="page-height";break;case"FitR":c=t[2],u=t[3],d=t[4]-c,h=t[5]-u;const e=this.removePageBorders?0:i.SCROLLBAR_PADDING,n=this.removePageBorders?0:i.VERTICAL_PADDING;o=(this.container.clientWidth-e)/d/r.PixelsPerInch.PDF_TO_CSS_UNITS,l=(this.container.clientHeight-n)/h/r.PixelsPerInch.PDF_TO_CSS_UNITS,m=Math.min(Math.abs(o),Math.abs(l));break;default:return void console.error(`scrollPageIntoView: "${t[1].name}" is not a valid destination type.`)}if(s||(m&&m!==this._currentScale?this.currentScaleValue=m:this._currentScale===i.UNKNOWN_SCALE&&(this.currentScaleValue=i.DEFAULT_SCALE_VALUE)),"page-fit"===m&&!t[4])return void this.#Ot(a);const v=[a.viewport.convertToViewportPoint(c,u),a.viewport.convertToViewportPoint(c+d,u+h)];let y=Math.min(v[0][0],v[1][0]),b=Math.min(v[0][1],v[1][1]);n||(y=Math.max(y,0),b=Math.max(b,0)),this.#Ot(a,{left:y,top:b})}_updateLocation(e){const t=this._currentScale,n=this._currentScaleValue,r=parseFloat(n)===t?Math.round(1e4*t)/100:n,i=e.id,s=this._pages[i-1],a=this.container,o=s.getPagePoint(a.scrollLeft-e.x,a.scrollTop-e.y),l=Math.round(o[0]),c=Math.round(o[1]);let u=`#page=${i}`;this.isInPresentationMode||(u+=`&zoom=${r},${l},${c}`),this._location={pageNumber:i,scale:r,top:c,left:l,rotation:this._pagesRotation,pdfOpenParams:u}}update(){const e=this._getVisiblePages(),t=e.views,n=t.length;if(0===n)return;const r=Math.max(10,2*n+1);this.#Et.resize(r,e.ids),this.renderingQueue.renderHighestPriority(e);const s=this._spreadMode===i.SpreadMode.NONE&&(this._scrollMode===i.ScrollMode.PAGE||this._scrollMode===i.ScrollMode.VERTICAL),a=this._currentPageNumber;let o=!1;for(const e of t){if(e.percent<100)break;if(e.id===a&&s){o=!0;break}}this._setCurrentPageNumber(o?a:t[0].id),this._updateLocation(e.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}containsElement(e){return this.container.contains(e)}focus(){this.container.focus()}get _isContainerRtl(){return"rtl"===getComputedStyle(this.container).direction}get isInPresentationMode(){return this.presentationModeState===i.PresentationModeState.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===i.PresentationModeState.CHANGING}get isHorizontalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}get isVerticalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}_getVisiblePages(){const e=this._scrollMode===i.ScrollMode.PAGE?this.#Tt.pages:this._pages,t=this._scrollMode===i.ScrollMode.HORIZONTAL,n=t&&this._isContainerRtl;return(0,i.getVisibleElements)({scrollEl:this.container,views:e,sortByVisibility:!0,horizontal:t,rtl:n})}isPageVisible(e){return!!this.pdfDocument&&(Number.isInteger(e)&&e>0&&e<=this.pagesCount?this._getVisiblePages().ids.has(e):(console.error(`isPageVisible: "${e}" is not a valid page.`),!1))}isPageCached(e){if(!this.pdfDocument)return!1;if(!(Number.isInteger(e)&&e>0&&e<=this.pagesCount))return console.error(`isPageCached: "${e}" is not a valid page.`),!1;const t=this._pages[e-1];return this.#Et.has(t)}cleanup(){for(const e of this._pages)e.renderingState!==i.RenderingStates.FINISHED&&e.reset()}_cancelRendering(){for(const e of this._pages)e.cancelRendering()}async#Dt(e){if(e.pdfPage)return e.pdfPage;try{const t=await this.pdfDocument.getPage(e.id);return e.pdfPage||e.setPdfPage(t),this.linkService._cachedPageNumber?.(t.ref)||this.linkService.cachePageRef(e.id,t.ref),t}catch(e){return console.error("Unable to get page for page view",e),null}}#Nt(e){if(1===e.first?.id)return!0;if(e.last?.id===this.pagesCount)return!1;switch(this._scrollMode){case i.ScrollMode.PAGE:return this.#Tt.scrollDown;case i.ScrollMode.HORIZONTAL:return this.scroll.right}return this.scroll.down}#Ut(e){for(const t of e)this._pages[t-1]?.toggleLoadingIconSpinner(!0);for(const t of this.#Et)e.has(t.id)||t.toggleLoadingIconSpinner(!1)}forceRendering(e){const t=e||this._getVisiblePages(),n=this.#Nt(t),r=this._spreadMode!==i.SpreadMode.NONE&&this._scrollMode!==i.ScrollMode.HORIZONTAL,s=this.renderingQueue.getHighestPriority(t,this._pages,n,r);return this.#Ut(t.ids),!!s&&(this.#Dt(s).then((()=>{this.renderingQueue.renderView(s)})),!0)}createTextLayerBuilder({textLayerDiv:e,pageIndex:t,viewport:n,enhanceTextSelection:r=!1,eventBus:i,highlighter:s,accessibilityManager:a=null}){return new p.TextLayerBuilder({textLayerDiv:e,eventBus:i,pageIndex:t,viewport:n,enhanceTextSelection:!this.isInPresentationMode&&r,highlighter:s,accessibilityManager:a})}createTextHighlighter({pageIndex:e,eventBus:t}){return new h.TextHighlighter({eventBus:t,pageIndex:e,findController:this.isInPresentationMode?null:this.findController})}createAnnotationLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n=this.pdfDocument?.annotationStorage,imageResourcesPath:r="",renderForms:i=!0,l10n:s=o.NullL10n,enableScripting:l=this.enableScripting,hasJSActionsPromise:c=this.pdfDocument?.hasJSActions(),mouseState:u=this._scriptingManager?.mouseState,fieldObjectsPromise:d=this.pdfDocument?.getFieldObjects(),annotationCanvasMap:h=null,accessibilityManager:p=null}){return new a.AnnotationLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n,imageResourcesPath:r,renderForms:i,linkService:this.linkService,downloadManager:this.downloadManager,l10n:s,enableScripting:l,hasJSActionsPromise:c,mouseState:u,fieldObjectsPromise:d,annotationCanvasMap:h,accessibilityManager:p})}createAnnotationEditorLayerBuilder({uiManager:e=this.#Ct,pageDiv:t,pdfPage:n,accessibilityManager:r=null,l10n:i,annotationStorage:a=this.pdfDocument?.annotationStorage}){return new s.AnnotationEditorLayerBuilder({uiManager:e,pageDiv:t,pdfPage:n,annotationStorage:a,accessibilityManager:r,l10n:i})}createXfaLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n=this.pdfDocument?.annotationStorage}){return new f.XfaLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n,linkService:this.linkService})}createStructTreeLayerBuilder({pdfPage:e}){return new d.StructTreeLayerBuilder({pdfPage:e})}get hasEqualPageSizes(){const e=this._pages[0];for(let t=1,n=this._pages.length;t<n;++t){const n=this._pages[t];if(n.width!==e.width||n.height!==e.height)return!1}return!0}getPagesOverview(){return this._pages.map((e=>{const t=e.pdfPage.getViewport({scale:1});return!this.enablePrintAutoRotate||(0,i.isPortraitOrientation)(t)?{width:t.width,height:t.height,rotation:t.rotation}:{width:t.height,height:t.width,rotation:(t.rotation-90)%360}}))}get optionalContentConfigPromise(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:(console.error("optionalContentConfigPromise: Not initialized yet."),this.pdfDocument.getOptionalContentConfig()):Promise.resolve(null)}set optionalContentConfigPromise(e){if(!(e instanceof Promise))throw new Error(`Invalid optionalContentConfigPromise: ${e}`);if(!this.pdfDocument)return;if(!this._optionalContentConfigPromise)return;this._optionalContentConfigPromise=e;const t={optionalContentConfigPromise:e};for(const e of this._pages)e.update(t);this.update(),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:e})}get scrollMode(){return this._scrollMode}set scrollMode(e){if(this._scrollMode!==e){if(!(0,i.isValidScrollMode)(e))throw new Error(`Invalid scroll mode: ${e}`);this.pagesCount>m.FORCE_SCROLL_MODE_PAGE||(this._previousScrollMode=this._scrollMode,this._scrollMode=e,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:e}),this._updateScrollMode(this._currentPageNumber))}}_updateScrollMode(e=null){const t=this._scrollMode,n=this.viewer;n.classList.toggle("scrollHorizontal",t===i.ScrollMode.HORIZONTAL),n.classList.toggle("scrollWrapped",t===i.ScrollMode.WRAPPED),this.pdfDocument&&e&&(t===i.ScrollMode.PAGE?this.#kt():this._previousScrollMode===i.ScrollMode.PAGE&&this._updateSpreadMode(),this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(e,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(e){if(this._spreadMode!==e){if(!(0,i.isValidSpreadMode)(e))throw new Error(`Invalid spread mode: ${e}`);this._spreadMode=e,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:e}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(e=null){if(!this.pdfDocument)return;const t=this.viewer,n=this._pages;if(this._scrollMode===i.ScrollMode.PAGE)this.#kt();else if(t.textContent="",this._spreadMode===i.SpreadMode.NONE)for(const e of this._pages)t.append(e.div);else{const e=this._spreadMode-1;let r=null;for(let i=0,s=n.length;i<s;++i)null===r?(r=document.createElement("div"),r.className="spread",t.append(r)):i%2===e&&(r=r.cloneNode(!1),t.append(r)),r.append(n[i].div)}e&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(e,!0),this.update())}_getPageAdvance(e,t=!1){switch(this._scrollMode){case i.ScrollMode.WRAPPED:{const{views:n}=this._getVisiblePages(),r=new Map;for(const{id:e,y:t,percent:i,widthPercent:s}of n){if(0===i||s<100)continue;let n=r.get(t);n||r.set(t,n||=[]),n.push(e)}for(const n of r.values()){const r=n.indexOf(e);if(-1===r)continue;const i=n.length;if(1===i)break;if(t)for(let t=r-1,i=0;t>=i;t--){const r=n[t],i=n[t+1]-1;if(r<i)return e-i}else for(let t=r+1,s=i;t<s;t++){const r=n[t],i=n[t-1]+1;if(r>i)return i-e}if(t){const t=n[0];if(t<e)return e-t+1}else{const t=n[i-1];if(t>e)return t-e+1}break}break}case i.ScrollMode.HORIZONTAL:break;case i.ScrollMode.PAGE:case i.ScrollMode.VERTICAL:{if(this._spreadMode===i.SpreadMode.NONE)break;const n=this._spreadMode-1;if(t&&e%2!==n)break;if(!t&&e%2===n)break;const{views:r}=this._getVisiblePages(),s=t?e-1:e+1;for(const{id:e,percent:t,widthPercent:n}of r)if(e===s){if(t>0&&100===n)return 2;break}break}}return 1}nextPage(){const e=this._currentPageNumber,t=this.pagesCount;if(e>=t)return!1;const n=this._getPageAdvance(e,!1)||1;return this.currentPageNumber=Math.min(e+n,t),!0}previousPage(){const e=this._currentPageNumber;if(e<=1)return!1;const t=this._getPageAdvance(e,!0)||1;return this.currentPageNumber=Math.max(e-t,1),!0}increaseScale(e=1){let t=this._currentScale;do{t=(t*i.DEFAULT_SCALE_DELTA).toFixed(2),t=Math.ceil(10*t)/10,t=Math.min(i.MAX_SCALE,t)}while(--e>0&&t<i.MAX_SCALE);this.currentScaleValue=t}decreaseScale(e=1){let t=this._currentScale;do{t=(t/i.DEFAULT_SCALE_DELTA).toFixed(2),t=Math.floor(10*t)/10,t=Math.max(i.MIN_SCALE,t)}while(--e>0&&t>i.MIN_SCALE);this.currentScaleValue=t}updateContainerHeightCss(){const e=this.container.clientHeight;e!==this.#xt&&(this.#xt=e,i.docStyle.setProperty("--viewer-container-height",`${e}px`))}get annotationEditorMode(){return this.#Ct?this.#St:r.AnnotationEditorType.DISABLE}set annotationEditorMode(e){if(!this.#Ct)throw new Error("The AnnotationEditor is not enabled.");if(this.#St!==e){if(!v(e))throw new Error(`Invalid AnnotationEditor mode: ${e}`);this.pdfDocument&&(this.#St=e,this.eventBus.dispatch("annotationeditormodechanged",{source:this,mode:e}),this.#Ct.updateMode(e))}}set annotationEditorParams({type:e,value:t}){if(!this.#Ct)throw new Error("The AnnotationEditor is not enabled.");this.#Ct.updateParams(e,t)}refresh(){if(!this.pdfDocument)return;const e={};for(const t of this._pages)t.update(e);this.update()}}t.BaseViewer=b},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFPageView=void 0;var r=n(3),i=n(7),s=n(14),a=n(4),o=n(15);const l=s.compatibilityParams.maxCanvasPixels||16777216;t.PDFPageView=class{#At=r.AnnotationMode.ENABLE_FORMS;#jt={initialOptionalContent:!0,regularAnnotations:!0};constructor(e){const t=e.container,n=e.defaultViewport;this.id=e.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=e.scale||i.DEFAULT_SCALE,this.viewport=n,this.pdfPageRotate=n.rotation,this._optionalContentConfigPromise=e.optionalContentConfigPromise||null,this.hasRestrictedScaling=!1,this.textLayerMode=e.textLayerMode??i.TextLayerMode.ENABLE,this.#At=e.annotationMode??r.AnnotationMode.ENABLE_FORMS,this.imageResourcesPath=e.imageResourcesPath||"",this.useOnlyCssZoom=e.useOnlyCssZoom||!1,this.maxCanvasPixels=e.maxCanvasPixels||l,this.pageColors=e.pageColors||null,this.eventBus=e.eventBus,this.renderingQueue=e.renderingQueue,this.textLayerFactory=e.textLayerFactory,this.annotationLayerFactory=e.annotationLayerFactory,this.annotationEditorLayerFactory=e.annotationEditorLayerFactory,this.xfaLayerFactory=e.xfaLayerFactory,this.textHighlighter=e.textHighlighterFactory?.createTextHighlighter({pageIndex:this.id-1,eventBus:this.eventBus}),this.structTreeLayerFactory=e.structTreeLayerFactory,this.renderer=e.renderer||i.RendererType.CANVAS,this.l10n=e.l10n||a.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=i.RenderingStates.INITIAL,this.resume=null,this._renderError=null,this._isStandalone=!this.renderingQueue?.hasViewer(),this._annotationCanvasMap=null,this.annotationLayer=null,this.annotationEditorLayer=null,this.textLayer=null,this.zoomLayer=null,this.xfaLayer=null,this.structTreeLayer=null;const s=document.createElement("div");if(s.className="page",s.style.width=Math.floor(this.viewport.width)+"px",s.style.height=Math.floor(this.viewport.height)+"px",s.setAttribute("data-page-number",this.id),s.setAttribute("role","region"),this.l10n.get("page_landmark",{page:this.id}).then((e=>{s.setAttribute("aria-label",e)})),this.div=s,t?.append(s),this._isStandalone){const{optionalContentConfigPromise:t}=e;t&&t.then((e=>{t===this._optionalContentConfigPromise&&(this.#jt.initialOptionalContent=e.hasInitialVisibility)}))}}setPdfPage(e){this.pdfPage=e,this.pdfPageRotate=e.rotate;const t=(this.rotation+this.pdfPageRotate)%360;this.viewport=e.getViewport({scale:this.scale*r.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:t}),this.reset()}destroy(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}async _renderAnnotationLayer(){let e=null;try{await this.annotationLayer.render(this.viewport,"display")}catch(t){console.error(`_renderAnnotationLayer: "${t}".`),e=t}finally{this.eventBus.dispatch("annotationlayerrendered",{source:this,pageNumber:this.id,error:e})}}async _renderAnnotationEditorLayer(){let e=null;try{await this.annotationEditorLayer.render(this.viewport,"display")}catch(t){console.error(`_renderAnnotationEditorLayer: "${t}".`),e=t}finally{this.eventBus.dispatch("annotationeditorlayerrendered",{source:this,pageNumber:this.id,error:e})}}async _renderXfaLayer(){let e=null;try{const t=await this.xfaLayer.render(this.viewport,"display");this.textHighlighter&&this._buildXfaTextContentItems(t.textDivs)}catch(t){console.error(`_renderXfaLayer: "${t}".`),e=t}finally{this.eventBus.dispatch("xfalayerrendered",{source:this,pageNumber:this.id,error:e})}}async _buildXfaTextContentItems(e){const t=await this.pdfPage.getTextContent(),n=[];for(const e of t.items)n.push(e.str);this.textHighlighter.setTextMapping(e,n),this.textHighlighter.enable()}_resetZoomLayer(e=!1){if(!this.zoomLayer)return;const t=this.zoomLayer.firstChild;this.paintedViewportMap.delete(t),t.width=0,t.height=0,e&&this.zoomLayer.remove(),this.zoomLayer=null}reset({keepZoomLayer:e=!1,keepAnnotationLayer:t=!1,keepAnnotationEditorLayer:n=!1,keepXfaLayer:r=!1}={}){this.cancelRendering({keepAnnotationLayer:t,keepAnnotationEditorLayer:n,keepXfaLayer:r}),this.renderingState=i.RenderingStates.INITIAL;const s=this.div;s.style.width=Math.floor(this.viewport.width)+"px",s.style.height=Math.floor(this.viewport.height)+"px";const a=s.childNodes,o=e&&this.zoomLayer||null,l=t&&this.annotationLayer?.div||null,c=n&&this.annotationEditorLayer?.div||null,u=r&&this.xfaLayer?.div||null;for(let e=a.length-1;e>=0;e--){const t=a[e];switch(t){case o:case l:case c:case u:continue}t.remove()}s.removeAttribute("data-loaded"),l&&this.annotationLayer.hide(),c?this.annotationEditorLayer.hide():this.annotationEditorLayer?.destroy(),u&&this.xfaLayer.hide(),o||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon notVisible",this._isStandalone&&this.toggleLoadingIconSpinner(!0),this.loadingIconDiv.setAttribute("role","img"),this.l10n.get("loading").then((e=>{this.loadingIconDiv?.setAttribute("aria-label",e)})),s.append(this.loadingIconDiv)}update({scale:e=0,rotation:t=null,optionalContentConfigPromise:n=null}){this.scale=e||this.scale,"number"==typeof t&&(this.rotation=t),n instanceof Promise&&(this._optionalContentConfigPromise=n,n.then((e=>{n===this._optionalContentConfigPromise&&(this.#jt.initialOptionalContent=e.hasInitialVisibility)})));const s=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*r.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:s}),this._isStandalone&&i.docStyle.setProperty("--scale-factor",this.viewport.scale),this.svg)return this.cssTransform({target:this.svg,redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0}),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});let a=!1;if(this.canvas&&this.maxCanvasPixels>0){const e=this.outputScale;(Math.floor(this.viewport.width)*e.sx|0)*(Math.floor(this.viewport.height)*e.sy|0)>this.maxCanvasPixels&&(a=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&a)return this.cssTransform({target:this.canvas,redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0}),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});this.zoomLayer||this.canvas.hidden||(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform({target:this.zoomLayer.firstChild}),this.reset({keepZoomLayer:!0,keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0})}cancelRendering({keepAnnotationLayer:e=!1,keepAnnotationEditorLayer:t=!1,keepXfaLayer:n=!1}={}){this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!this.annotationLayer||e&&this.annotationLayer.div||(this.annotationLayer.cancel(),this.annotationLayer=null,this._annotationCanvasMap=null),!this.annotationEditorLayer||t&&this.annotationEditorLayer.div||(this.annotationEditorLayer.cancel(),this.annotationEditorLayer=null),!this.xfaLayer||n&&this.xfaLayer.div||(this.xfaLayer.cancel(),this.xfaLayer=null,this.textHighlighter?.disable()),this._onTextLayerRendered&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null)}cssTransform({target:e,redrawAnnotationLayer:t=!1,redrawAnnotationEditorLayer:n=!1,redrawXfaLayer:r=!1}){const i=this.viewport.width,s=this.viewport.height,a=this.div;e.style.width=e.parentNode.style.width=a.style.width=Math.floor(i)+"px",e.style.height=e.parentNode.style.height=a.style.height=Math.floor(s)+"px";const o=this.viewport.rotation-this.paintedViewportMap.get(e).rotation,l=Math.abs(o);let c=1,u=1;if(90!==l&&270!==l||(c=s/i,u=i/s),e.style.transform=`rotate(${o}deg) scale(${c}, ${u})`,this.textLayer){const e=this.textLayer.viewport,t=this.viewport.rotation-e.rotation,n=Math.abs(t);let r=i/e.width;90!==n&&270!==n||(r=i/e.height);const s=this.textLayer.textLayerDiv;let a,o;switch(n){case 0:a=o=0;break;case 90:a=0,o="-"+s.style.height;break;case 180:a="-"+s.style.width,o="-"+s.style.height;break;case 270:a="-"+s.style.width,o=0;break;default:console.error("Bad rotation value.")}s.style.transform=`rotate(${n}deg) scale(${r}) translate(${a}, ${o})`,s.style.transformOrigin="0% 0%"}t&&this.annotationLayer&&this._renderAnnotationLayer(),n&&this.annotationEditorLayer&&this._renderAnnotationEditorLayer(),r&&this.xfaLayer&&this._renderXfaLayer()}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(e,t){return this.viewport.convertToPdfPoint(e,t)}toggleLoadingIconSpinner(e=!1){this.loadingIconDiv?.classList.toggle("notVisible",!e)}draw(){this.renderingState!==i.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());const{div:e,pdfPage:t}=this;if(!t)return this.renderingState=i.RenderingStates.FINISHED,this.loadingIconDiv&&(this.loadingIconDiv.remove(),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=i.RenderingStates.RUNNING;const n=document.createElement("div");n.style.width=e.style.width,n.style.height=e.style.height,n.classList.add("canvasWrapper");const s=this.annotationLayer?.div||this.annotationEditorLayer?.div;s?s.before(n):e.append(n);let a=null;if(this.textLayerMode!==i.TextLayerMode.DISABLE&&this.textLayerFactory){this._accessibilityManager||=new o.TextAccessibilityManager;const t=document.createElement("div");t.className="textLayer",t.style.width=n.style.width,t.style.height=n.style.height,s?s.before(t):e.append(t),a=this.textLayerFactory.createTextLayerBuilder({textLayerDiv:t,pageIndex:this.id-1,viewport:this.viewport,enhanceTextSelection:this.textLayerMode===i.TextLayerMode.ENABLE_ENHANCE,eventBus:this.eventBus,highlighter:this.textHighlighter,accessibilityManager:this._accessibilityManager})}this.textLayer=a,this.#At!==r.AnnotationMode.DISABLE&&this.annotationLayerFactory&&(this._annotationCanvasMap||=new Map,this.annotationLayer||=this.annotationLayerFactory.createAnnotationLayerBuilder({pageDiv:e,pdfPage:t,imageResourcesPath:this.imageResourcesPath,renderForms:this.#At===r.AnnotationMode.ENABLE_FORMS,l10n:this.l10n,annotationCanvasMap:this._annotationCanvasMap,accessibilityManager:this._accessibilityManager})),this.xfaLayer?.div&&e.append(this.xfaLayer.div);let l=null;this.renderingQueue&&(l=e=>{if(!this.renderingQueue.isHighestPriority(this))return this.renderingState=i.RenderingStates.PAUSED,void(this.resume=()=>{this.renderingState=i.RenderingStates.RUNNING,e()});e()});const c=async(e=null)=>{if(u===this.paintTask&&(this.paintTask=null),e instanceof r.RenderingCancelledException)this._renderError=null;else if(this._renderError=e,this.renderingState=i.RenderingStates.FINISHED,this.loadingIconDiv&&(this.loadingIconDiv.remove(),delete this.loadingIconDiv),this._resetZoomLayer(!0),this.#jt.regularAnnotations=!u.separateAnnots,this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!1,timestamp:performance.now(),error:this._renderError}),e)throw e},u=this.renderer===i.RendererType.SVG?this.paintOnSvg(n):this.paintOnCanvas(n);u.onRenderContinue=l,this.paintTask=u;const d=u.promise.then((()=>c(null).then((()=>{if(a){const e=t.streamTextContent({includeMarkedContent:!0});a.setTextContentStream(e),a.render()}this.annotationLayer&&this._renderAnnotationLayer().then((()=>{this.annotationEditorLayerFactory&&(this.annotationEditorLayer||=this.annotationEditorLayerFactory.createAnnotationEditorLayerBuilder({pageDiv:e,pdfPage:t,l10n:this.l10n,accessibilityManager:this._accessibilityManager}),this._renderAnnotationEditorLayer())}))}))),(function(e){return c(e)}));return this.xfaLayerFactory&&(this.xfaLayer||=this.xfaLayerFactory.createXfaLayerBuilder({pageDiv:e,pdfPage:t}),this._renderXfaLayer()),this.structTreeLayerFactory&&this.textLayer&&this.canvas&&(this._onTextLayerRendered=e=>{e.pageNumber===this.id&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null,this.canvas&&this.pdfPage.getStructTree().then((e=>{if(!e)return;if(!this.canvas)return;const t=this.structTreeLayer.render(e);t.classList.add("structTree"),this.canvas.append(t)})))},this.eventBus._on("textlayerrendered",this._onTextLayerRendered),this.structTreeLayer=this.structTreeLayerFactory.createStructTreeLayerBuilder({pdfPage:t})),e.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),d}paintOnCanvas(e){const t=(0,r.createPromiseCapability)(),n={promise:t.promise,onRenderContinue(e){e()},cancel(){f.cancel()},get separateAnnots(){return f.separateAnnots}},s=this.viewport,a=document.createElement("canvas");a.setAttribute("role","presentation"),a.hidden=!0;let o=!0;const l=function(){o&&(a.hidden=!1,o=!1)};e.append(a),this.canvas=a;const c=a.getContext("2d",{alpha:!1}),u=this.outputScale=new i.OutputScale;if(this.useOnlyCssZoom){const e=s.clone({scale:r.PixelsPerInch.PDF_TO_CSS_UNITS});u.sx*=e.width/s.width,u.sy*=e.height/s.height}if(this.maxCanvasPixels>0){const e=s.width*s.height,t=Math.sqrt(this.maxCanvasPixels/e);u.sx>t||u.sy>t?(u.sx=t,u.sy=t,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}const d=(0,i.approximateFraction)(u.sx),h=(0,i.approximateFraction)(u.sy);a.width=(0,i.roundToDivide)(s.width*u.sx,d[0]),a.height=(0,i.roundToDivide)(s.height*u.sy,h[0]),a.style.width=(0,i.roundToDivide)(s.width,d[1])+"px",a.style.height=(0,i.roundToDivide)(s.height,h[1])+"px",this.paintedViewportMap.set(a,s);const p={canvasContext:c,transform:u.scaled?[u.sx,0,0,u.sy,0,0]:null,viewport:this.viewport,annotationMode:this.#At,optionalContentConfigPromise:this._optionalContentConfigPromise,annotationCanvasMap:this._annotationCanvasMap,pageColors:this.pageColors},f=this.pdfPage.render(p);return f.onContinue=function(e){l(),n.onRenderContinue?n.onRenderContinue(e):e()},f.promise.then((function(){l(),t.resolve()}),(function(e){l(),t.reject(e)})),n}paintOnSvg(e){let t=!1;const n=()=>{if(t)throw new r.RenderingCancelledException(`Rendering cancelled, page ${this.id}`,"svg")},s=this.pdfPage,a=this.viewport.clone({scale:r.PixelsPerInch.PDF_TO_CSS_UNITS});return{promise:s.getOperatorList({annotationMode:this.#At}).then((t=>(n(),new r.SVGGraphics(s.commonObjs,s.objs).getSVG(t,a).then((t=>{n(),this.svg=t,this.paintedViewportMap.set(t,a),t.style.width=e.style.width,t.style.height=e.style.height,this.renderingState=i.RenderingStates.FINISHED,e.append(t)}))))),onRenderContinue(e){e()},cancel(){t=!0},get separateAnnots(){return!1}}}setPageLabel(e){this.pageLabel="string"==typeof e?e:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}get thumbnailCanvas(){const{initialOptionalContent:e,regularAnnotations:t}=this.#jt;return e&&t?this.canvas:null}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.compatibilityParams=t.OptionKind=t.AppOptions=void 0;const n=Object.create(null);t.compatibilityParams=n;{const e=navigator.userAgent||"",t=navigator.platform||"",r=navigator.maxTouchPoints||1,i=/Android/.test(e);(/\b(iPad|iPhone|iPod)(?=;)/.test(e)||"MacIntel"===t&&r>1||i)&&(n.maxCanvasPixels=5242880)}const r={VIEWER:2,API:4,WORKER:8,PREFERENCE:128};t.OptionKind=r;const i={annotationEditorMode:{value:-1,kind:r.VIEWER+r.PREFERENCE},annotationMode:{value:2,kind:r.VIEWER+r.PREFERENCE},cursorToolOnLoad:{value:0,kind:r.VIEWER+r.PREFERENCE},defaultZoomValue:{value:"",kind:r.VIEWER+r.PREFERENCE},disableHistory:{value:!1,kind:r.VIEWER},disablePageLabels:{value:!1,kind:r.VIEWER+r.PREFERENCE},enablePermissions:{value:!1,kind:r.VIEWER+r.PREFERENCE},enablePrintAutoRotate:{value:!0,kind:r.VIEWER+r.PREFERENCE},enableScripting:{value:!0,kind:r.VIEWER+r.PREFERENCE},externalLinkRel:{value:"noopener noreferrer nofollow",kind:r.VIEWER},externalLinkTarget:{value:0,kind:r.VIEWER+r.PREFERENCE},historyUpdateUrl:{value:!1,kind:r.VIEWER+r.PREFERENCE},ignoreDestinationZoom:{value:!1,kind:r.VIEWER+r.PREFERENCE},imageResourcesPath:{value:"./images/",kind:r.VIEWER},maxCanvasPixels:{value:16777216,kind:r.VIEWER},forcePageColors:{value:!1,kind:r.VIEWER+r.PREFERENCE},pageColorsBackground:{value:"Canvas",kind:r.VIEWER+r.PREFERENCE},pageColorsForeground:{value:"CanvasText",kind:r.VIEWER+r.PREFERENCE},pdfBugEnabled:{value:!1,kind:r.VIEWER+r.PREFERENCE},printResolution:{value:150,kind:r.VIEWER},sidebarViewOnLoad:{value:-1,kind:r.VIEWER+r.PREFERENCE},scrollModeOnLoad:{value:-1,kind:r.VIEWER+r.PREFERENCE},spreadModeOnLoad:{value:-1,kind:r.VIEWER+r.PREFERENCE},textLayerMode:{value:1,kind:r.VIEWER+r.PREFERENCE},useOnlyCssZoom:{value:!1,kind:r.VIEWER+r.PREFERENCE},viewerCssTheme:{value:0,kind:r.VIEWER+r.PREFERENCE},viewOnLoad:{value:0,kind:r.VIEWER+r.PREFERENCE},cMapPacked:{value:!0,kind:r.API},cMapUrl:{value:"../web/cmaps/",kind:r.API},disableAutoFetch:{value:!1,kind:r.API+r.PREFERENCE},disableFontFace:{value:!1,kind:r.API+r.PREFERENCE},disableRange:{value:!1,kind:r.API+r.PREFERENCE},disableStream:{value:!1,kind:r.API+r.PREFERENCE},docBaseUrl:{value:"",kind:r.API},enableXfa:{value:!0,kind:r.API+r.PREFERENCE},fontExtraProperties:{value:!1,kind:r.API},isEvalSupported:{value:!0,kind:r.API},maxImageSize:{value:-1,kind:r.API},pdfBug:{value:!1,kind:r.API},standardFontDataUrl:{value:"../web/standard_fonts/",kind:r.API},verbosity:{value:1,kind:r.API},workerPort:{value:null,kind:r.WORKER},workerSrc:{value:"../build/pdf.worker.js",kind:r.WORKER}};i.defaultUrl={value:"compressed.tracemonkey-pldi-09.pdf",kind:r.VIEWER},i.disablePreferences={value:!1,kind:r.VIEWER},i.locale={value:navigator.language||"en-US",kind:r.VIEWER},i.renderer={value:"canvas",kind:r.VIEWER+r.PREFERENCE},i.sandboxBundleSrc={value:"../build/pdf.sandbox.js",kind:r.VIEWER};const s=Object.create(null);t.AppOptions=class{constructor(){throw new Error("Cannot initialize AppOptions.")}static get(e){const t=s[e];if(void 0!==t)return t;const r=i[e];return void 0!==r?n[e]??r.value:void 0}static getAll(e=null){const t=Object.create(null);for(const a in i){const o=i[a];if(e){if(0==(e&o.kind))continue;if(e===r.PREFERENCE){const e=o.value,n=typeof e;if("boolean"===n||"string"===n||"number"===n&&Number.isInteger(e)){t[a]=e;continue}throw new Error(`Invalid type for preference: ${a}`)}}const l=s[a];t[a]=void 0!==l?l:n[a]??o.value}return t}static set(e,t){s[e]=t}static setAll(e){for(const t in e)s[t]=e[t]}static remove(e){delete s[e]}static _hasUserOptions(){return Object.keys(s).length>0}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextAccessibilityManager=void 0;var r=n(7);class i{#$t=!1;#Ht=null;#Bt=new Map;#Vt=new Map;setTextMapping(e){this.#Ht=e}static#Wt(e,t){const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();if(0===n.width&&0===n.height)return 1;if(0===r.width&&0===r.height)return-1;const i=n.y,s=n.y+n.height,a=n.y+n.height/2,o=r.y,l=r.y+r.height,c=r.y+r.height/2;return a<=o&&c>=s?-1:c<=i&&a>=l?1:n.x+n.width/2-(r.x+r.width/2)}enable(){if(this.#$t)throw new Error("TextAccessibilityManager is already enabled.");if(!this.#Ht)throw new Error("Text divs and strings have not been set.");if(this.#$t=!0,this.#Ht=this.#Ht.slice(),this.#Ht.sort(i.#Wt),this.#Bt.size>0){const e=this.#Ht;for(const[t,n]of this.#Bt)document.getElementById(t)?this.#qt(t,e[n]):this.#Bt.delete(t)}for(const[e,t]of this.#Vt)this.addPointerInTextLayer(e,t);this.#Vt.clear()}disable(){this.#$t&&(this.#Vt.clear(),this.#Ht=null,this.#$t=!1)}removePointerInTextLayer(e){if(!this.#$t)return void this.#Vt.delete(e);const t=this.#Ht;if(!t||0===t.length)return;const{id:n}=e,r=this.#Bt.get(n);if(void 0===r)return;const i=t[r];this.#Bt.delete(n);let s=i.getAttribute("aria-owns");s?.includes(n)&&(s=s.split(" ").filter((e=>e!==n)).join(" "),s?i.setAttribute("aria-owns",s):(i.removeAttribute("aria-owns"),i.setAttribute("role","presentation")))}#qt(e,t){const n=t.getAttribute("aria-owns");n?.includes(e)||t.setAttribute("aria-owns",n?`${n} ${e}`:e),t.removeAttribute("role")}addPointerInTextLayer(e,t){const{id:n}=e;if(!n)return;if(!this.#$t)return void this.#Vt.set(e,t);t&&this.removePointerInTextLayer(e);const s=this.#Ht;if(!s||0===s.length)return;const a=(0,r.binarySearchFirstItem)(s,(t=>i.#Wt(e,t)<0)),o=Math.max(0,a-1);this.#qt(n,s[o]),this.#Bt.set(n,o)}moveElementInDOM(e,t,n,s){if(this.addPointerInTextLayer(n,s),!e.hasChildNodes())return void e.append(t);const a=Array.from(e.childNodes).filter((e=>e!==t));if(0===a.length)return;const o=n||t,l=(0,r.binarySearchFirstItem)(a,(e=>i.#Wt(o,e)<0));0===l?a[0].before(t):a[l-1].after(t)}}t.TextAccessibilityManager=i},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFRenderingQueue=void 0;var r=n(3),i=n(7);t.PDFRenderingQueue=class{constructor(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}setViewer(e){this.pdfViewer=e}setThumbnailViewer(e){this.pdfThumbnailViewer=e}isHighestPriority(e){return this.highestPriorityPage===e.renderingId}hasViewer(){return!!this.pdfViewer}renderHighestPriority(e){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.pdfViewer.forceRendering(e)||this.isThumbnailViewEnabled&&this.pdfThumbnailViewer?.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4))}getHighestPriority(e,t,n,r=!1){const i=e.views,s=i.length;if(0===s)return null;for(let e=0;e<s;e++){const t=i[e].view;if(!this.isViewFinished(t))return t}const a=e.first.id,o=e.last.id;if(o-a+1>s){const r=e.ids;for(let e=1,i=o-a;e<i;e++){const i=n?a+e:o-e;if(r.has(i))continue;const s=t[i-1];if(!this.isViewFinished(s))return s}}let l=n?o:a-2,c=t[l];return c&&!this.isViewFinished(c)||r&&(l+=n?1:-1,c=t[l],c&&!this.isViewFinished(c))?c:null}isViewFinished(e){return e.renderingState===i.RenderingStates.FINISHED}renderView(e){switch(e.renderingState){case i.RenderingStates.FINISHED:return!1;case i.RenderingStates.PAUSED:this.highestPriorityPage=e.renderingId,e.resume();break;case i.RenderingStates.RUNNING:this.highestPriorityPage=e.renderingId;break;case i.RenderingStates.INITIAL:this.highestPriorityPage=e.renderingId,e.draw().finally((()=>{this.renderHighestPriority()})).catch((e=>{e instanceof r.RenderingCancelledException||console.error(`renderView: "${e}"`)}))}return!0}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextHighlighter=void 0,t.TextHighlighter=class{constructor({findController:e,eventBus:t,pageIndex:n}){this.findController=e,this.matches=[],this.eventBus=t,this.pageIdx=n,this._onUpdateTextLayerMatches=null,this.textDivs=null,this.textContentItemsStr=null,this.enabled=!1}setTextMapping(e,t){this.textDivs=e,this.textContentItemsStr=t}enable(){if(!this.textDivs||!this.textContentItemsStr)throw new Error("Text divs and strings have not been set.");if(this.enabled)throw new Error("TextHighlighter is already enabled.");this.enabled=!0,this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=e=>{e.pageIndex!==this.pageIdx&&-1!==e.pageIndex||this._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches)),this._updateMatches()}disable(){this.enabled&&(this.enabled=!1,this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null))}_convertMatches(e,t){if(!e)return[];const{textContentItemsStr:n}=this;let r=0,i=0;const s=n.length-1,a=[];for(let o=0,l=e.length;o<l;o++){let l=e[o];for(;r!==s&&l>=i+n[r].length;)i+=n[r].length,r++;r===n.length&&console.error("Could not find a matching mapping");const c={begin:{divIdx:r,offset:l-i}};for(l+=t[o];r!==s&&l>i+n[r].length;)i+=n[r].length,r++;c.end={divIdx:r,offset:l-i},a.push(c)}return a}_renderMatches(e){if(0===e.length)return;const{findController:t,pageIdx:n}=this,{textContentItemsStr:r,textDivs:i}=this,s=n===t.selected.pageIdx,a=t.selected.matchIdx;let o=null;const l={divIdx:-1,offset:void 0};function c(e,t){const n=e.divIdx;return i[n].textContent="",u(n,0,e.offset,t)}function u(e,t,n,s){let a=i[e];if(a.nodeType===Node.TEXT_NODE){const t=document.createElement("span");a.before(t),t.append(a),i[e]=t,a=t}const o=r[e].substring(t,n),l=document.createTextNode(o);if(s){const e=document.createElement("span");return e.className=`${s} appended`,e.append(l),a.append(e),s.includes("selected")?e.offsetLeft:0}return a.append(l),0}let d=a,h=d+1;if(t.state.highlightAll)d=0,h=e.length;else if(!s)return;for(let r=d;r<h;r++){const d=e[r],h=d.begin,p=d.end,f=s&&r===a,g=f?" selected":"";let m=0;if(o&&h.divIdx===o.divIdx?u(o.divIdx,o.offset,h.offset):(null!==o&&u(o.divIdx,o.offset,l.offset),c(h)),h.divIdx===p.divIdx)m=u(h.divIdx,h.offset,p.offset,"highlight"+g);else{m=u(h.divIdx,h.offset,l.offset,"highlight begin"+g);for(let e=h.divIdx+1,t=p.divIdx;e<t;e++)i[e].className="highlight middle"+g;c(p,"highlight end"+g)}o=p,f&&t.scrollMatchIntoView({element:i[h.divIdx],selectedLeft:m,pageIndex:n,matchIndex:a})}o&&u(o.divIdx,o.offset,l.offset)}_updateMatches(){if(!this.enabled)return;const{findController:e,matches:t,pageIdx:n}=this,{textContentItemsStr:r,textDivs:i}=this;let s=-1;for(let e=0,n=t.length;e<n;e++){const n=t[e];for(let e=Math.max(s,n.begin.divIdx),t=n.end.divIdx;e<=t;e++){const t=i[e];t.textContent=r[e],t.className=""}s=n.end.divIdx+1}if(!e?.highlightMatches)return;const a=e.pageMatches[n]||null,o=e.pageMatchesLength[n]||null;this.matches=this._convertMatches(a,o),this._renderMatches(this.matches)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadManager=void 0;var r=n(3);function i(e,t){const n=document.createElement("a");if(!n.click)throw new Error('DownloadManager: "a.click()" is not supported.');n.href=e,n.target="_parent","download"in n&&(n.download=t),(document.body||document.documentElement).append(n),n.click(),n.remove()}t.DownloadManager=class{constructor(){this._openBlobUrls=new WeakMap}downloadUrl(e,t){(0,r.createValidAbsoluteUrl)(e,"http://example.com")?i(e+"#pdfjs.action=download",t):console.error(`downloadUrl - not a valid URL: ${e}`)}downloadData(e,t,n){i(URL.createObjectURL(new Blob([e],{type:n})),t)}openOrDownloadData(e,t,n){const i=(0,r.isPdfFile)(n),s=i?"application/pdf":"";if(i){let r,i=this._openBlobUrls.get(e);i||(i=URL.createObjectURL(new Blob([t],{type:s})),this._openBlobUrls.set(e,i)),r="?file="+encodeURIComponent(i+"#"+n);try{return window.open(r),!0}catch(t){console.error(`openOrDownloadData: ${t}`),URL.revokeObjectURL(i),this._openBlobUrls.delete(e)}}return this.downloadData(t,n,s),!1}download(e,t,n){i(URL.createObjectURL(e),n)}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WaitOnType=t.EventBus=t.AutomationEventBus=void 0,t.waitOnEventOrTimeout=function({target:e,name:t,delay:i=0}){return new Promise((function(s,a){if("object"!=typeof e||!t||"string"!=typeof t||!(Number.isInteger(i)&&i>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function o(n){e instanceof r?e._off(t,l):e.removeEventListener(t,l),u&&clearTimeout(u),s(n)}const l=o.bind(null,n.EVENT);e instanceof r?e._on(t,l):e.addEventListener(t,l);const c=o.bind(null,n.TIMEOUT),u=setTimeout(c,i)}))};const n={EVENT:"event",TIMEOUT:"timeout"};t.WaitOnType=n;class r{constructor(){this._listeners=Object.create(null)}on(e,t,n=null){this._on(e,t,{external:!0,once:n?.once})}off(e,t,n=null){this._off(e,t,{external:!0,once:n?.once})}dispatch(e,t){const n=this._listeners[e];if(!n||0===n.length)return;let r;for(const{listener:i,external:s,once:a}of n.slice(0))a&&this._off(e,i),s?(r||=[]).push(i):i(t);if(r){for(const e of r)e(t);r=null}}_on(e,t,n=null){(this._listeners[e]||=[]).push({listener:t,external:!0===n?.external,once:!0===n?.once})}_off(e,t,n=null){const r=this._listeners[e];if(r)for(let e=0,n=r.length;e<n;e++)if(r[e].listener===t)return void r.splice(e,1)}}t.EventBus=r,t.AutomationEventBus=class extends r{dispatch(e,t){throw new Error("Not implemented: AutomationEventBus.dispatch")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GenericL10n=void 0,n(21);var r=n(4);const i=document.webL10n;t.GenericL10n=class{constructor(e){this._lang=e,this._ready=new Promise(((t,n)=>{i.setLanguage((0,r.fixupLangCode)(e),(()=>{t(i)}))}))}async getLanguage(){return(await this._ready).getLanguage()}async getDirection(){return(await this._ready).getDirection()}async get(e,t=null,n=(0,r.getL10nFallback)(e,t)){return(await this._ready).get(e,t,n)}async translate(e){return(await this._ready).translate(e)}}},()=>{document.webL10n=function(e,t,n){var r={},i="",s="textContent",a="",o={},l="loading";function c(e,t,n){t=t||function(e){},n=n||function(){};var r=new XMLHttpRequest;r.open("GET",e,!0),r.overrideMimeType&&r.overrideMimeType("text/plain; charset=utf-8"),r.onreadystatechange=function(){4==r.readyState&&(200==r.status||0===r.status?t(r.responseText):n())},r.onerror=n,r.ontimeout=n;try{r.send(null)}catch(e){n()}}function u(e,t,n,a){var o=e.replace(/[^\/]*$/,"")||"./";function l(e){return e.lastIndexOf("\\")<0?e:e.replace(/\\\\/g,"\\").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}c(e,(function(e){i+=e,function(e,n){var r={},i=/^\s*|\s*$/,s=/^\s*#|^\s*$/,a=/^\s*\[(.*)\]\s*$/,u=/^\s*@import\s+url\((.*)\)\s*$/i,d=/^([^=\s]*)\s*=\s*(.+)$/;function h(e,n,c){var h=e.replace(i,"").split(/[\r\n]+/),f="*",g=t.split("-",1)[0],m=!1,v="";!function e(){for(;;){if(!h.length)return void c();var i=h.shift();if(!s.test(i)){if(n){if(v=a.exec(i)){f=v[1].toLowerCase(),m="*"!==f&&f!==t&&f!==g;continue}if(m)continue;if(v=u.exec(i))return void p(o+v[1],e)}var y=i.match(d);y&&3==y.length&&(r[y[1]]=l(y[2]))}}}()}function p(e,t){c(e,(function(e){h(e,!1,t)}),(function(){console.warn(e+" not found."),t()}))}h(e,!0,(function(){n(r)}))}(e,(function(e){for(var t in e){var i,a,o=t.lastIndexOf(".");o>0?(i=t.substring(0,o),a=t.substring(o+1)):(i=t,a=s),r[i]||(r[i]={}),r[i][a]=e[t]}n&&n()}))}),a)}function d(e,n){e&&(e=e.toLowerCase()),n=n||function(){},r={},i="",a="",a=e;var s=t.querySelectorAll('link[type="application/l10n"]'),o=s.length;if(0!==o){var c,d,h=0;d=function(){++h>=o&&(n(),l="complete")};for(var p=0;p<o;p++)new v(s[p]).load(e,d)}else{var f=(c=t.querySelector('script[type="application/l10n"]'))?JSON.parse(c.innerHTML):null;if(f&&f.locales&&f.default_locale){if(console.log("using the embedded JSON directory, early way out"),!(r=f.locales[e])){var g=f.default_locale.toLowerCase();for(var m in f.locales){if((m=m.toLowerCase())===e){r=f.locales[e];break}m===g&&(r=f.locales[g])}}n()}else console.log("no resource to load, early way out");l="complete"}function v(e){var t=e.href;this.load=function(e,n){u(t,e,n,(function(){console.warn(t+" not found."),console.warn('"'+e+'" resource not found'),a="",n()}))}}}function h(e,t,n){var i=r[e];if(!i){if(console.warn("#"+e+" is undefined."),!n)return null;i=n}var s={};for(var a in i){var o=i[a];o=f(o=p(o,t,e,a),t,e),s[a]=o}return s}function p(e,t,n,i){var s=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/.exec(e);if(!s||!s.length)return e;var a,l=s[1],c=s[2];return t&&c in t?a=t[c]:c in r&&(a=r[c]),l in o&&(e=(0,o[l])(e,a,n,i)),e}function f(e,t,n){return e.replace(/\{\{\s*(.+?)\s*\}\}/g,(function(e,i){return t&&i in t?t[i]:i in r?r[i]:(console.log("argument {{"+i+"}} for #"+n+" is undefined."),e)}))}function g(e){var n=function(e){if(!e)return{};var t=e.getAttribute("data-l10n-id"),n=e.getAttribute("data-l10n-args"),r={};if(n)try{r=JSON.parse(n)}catch(e){console.warn("could not parse arguments for #"+t)}return{id:t,args:r}}(e);if(n.id){var r=h(n.id,n.args);if(r){if(r[s]){if(0===function(e){if(e.children)return e.children.length;if(void 0!==e.childElementCount)return e.childElementCount;for(var t=0,n=0;n<e.childNodes.length;n++)t+=1===e.nodeType?1:0;return t}(e))e[s]=r[s];else{for(var i=e.childNodes,a=!1,o=0,l=i.length;o<l;o++)3===i[o].nodeType&&/\S/.test(i[o].nodeValue)&&(a?i[o].nodeValue="":(i[o].nodeValue=r[s],a=!0));if(!a){var c=t.createTextNode(r[s]);e.prepend(c)}}delete r[s]}for(var u in r)e[u]=r[u]}else console.warn("#"+n.id+" is undefined.")}}return o.plural=function(e,t,n,i){var l=parseFloat(t);if(isNaN(l))return e;if(i!=s)return e;o._pluralRules||(o._pluralRules=function(e){function t(e,t){return-1!==t.indexOf(e)}function n(e,t,n){return t<=e&&e<=n}var r={0:function(e){return"other"},1:function(e){return n(e%100,3,10)?"few":0===e?"zero":n(e%100,11,99)?"many":2==e?"two":1==e?"one":"other"},2:function(e){return 0!==e&&e%10==0?"many":2==e?"two":1==e?"one":"other"},3:function(e){return 1==e?"one":"other"},4:function(e){return n(e,0,1)?"one":"other"},5:function(e){return n(e,0,2)&&2!=e?"one":"other"},6:function(e){return 0===e?"zero":e%10==1&&e%100!=11?"one":"other"},7:function(e){return 2==e?"two":1==e?"one":"other"},8:function(e){return n(e,3,6)?"few":n(e,7,10)?"many":2==e?"two":1==e?"one":"other"},9:function(e){return 0===e||1!=e&&n(e%100,1,19)?"few":1==e?"one":"other"},10:function(e){return n(e%10,2,9)&&!n(e%100,11,19)?"few":e%10!=1||n(e%100,11,19)?"other":"one"},11:function(e){return n(e%10,2,4)&&!n(e%100,12,14)?"few":e%10==0||n(e%10,5,9)||n(e%100,11,14)?"many":e%10==1&&e%100!=11?"one":"other"},12:function(e){return n(e,2,4)?"few":1==e?"one":"other"},13:function(e){return n(e%10,2,4)&&!n(e%100,12,14)?"few":1!=e&&n(e%10,0,1)||n(e%10,5,9)||n(e%100,12,14)?"many":1==e?"one":"other"},14:function(e){return n(e%100,3,4)?"few":e%100==2?"two":e%100==1?"one":"other"},15:function(e){return 0===e||n(e%100,2,10)?"few":n(e%100,11,19)?"many":1==e?"one":"other"},16:function(e){return e%10==1&&11!=e?"one":"other"},17:function(e){return 3==e?"few":0===e?"zero":6==e?"many":2==e?"two":1==e?"one":"other"},18:function(e){return 0===e?"zero":n(e,0,2)&&0!==e&&2!=e?"one":"other"},19:function(e){return n(e,2,10)?"few":n(e,0,1)?"one":"other"},20:function(e){return!n(e%10,3,4)&&e%10!=9||n(e%100,10,19)||n(e%100,70,79)||n(e%100,90,99)?e%1e6==0&&0!==e?"many":e%10!=2||t(e%100,[12,72,92])?e%10!=1||t(e%100,[11,71,91])?"other":"one":"two":"few"},21:function(e){return 0===e?"zero":1==e?"one":"other"},22:function(e){return n(e,0,1)||n(e,11,99)?"one":"other"},23:function(e){return n(e%10,1,2)||e%20==0?"one":"other"},24:function(e){return n(e,3,10)||n(e,13,19)?"few":t(e,[2,12])?"two":t(e,[1,11])?"one":"other"}},i={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3}[e.replace(/-.*$/,"")];return i in r?r[i]:(console.warn("plural form unknown for ["+e+"]"),function(){return"other"})}(a));var c="["+o._pluralRules(l)+"]";return 0===l&&n+"[zero]"in r?e=r[n+"[zero]"][i]:1==l&&n+"[one]"in r?e=r[n+"[one]"][i]:2==l&&n+"[two]"in r?e=r[n+"[two]"][i]:n+c in r?e=r[n+c][i]:n+"[other]"in r&&(e=r[n+"[other]"][i]),e},{get:function(e,t,n){var r,i=e.lastIndexOf("."),a=s;i>0&&(a=e.substring(i+1),e=e.substring(0,i)),n&&((r={})[a]=n);var o=h(e,t,r);return o&&a in o?o[a]:"{{"+e+"}}"},getData:function(){return r},getText:function(){return i},getLanguage:function(){return a},setLanguage:function(e,t){d(e,(function(){t&&t()}))},getDirection:function(){var e=a.split("-",1)[0];return["ar","he","fa","ps","ur"].indexOf(e)>=0?"rtl":"ltr"},translate:function(e){for(var n=function(e){return e?e.querySelectorAll("*[data-l10n-id]"):[]}(e=e||t.documentElement),r=n.length,i=0;i<r;i++)g(n[i]);g(e)},getReadyState:function(){return l},ready:function(n){n&&("complete"==l||"interactive"==l?e.setTimeout((function(){n()})):t.addEventListener&&t.addEventListener("localized",(function e(){t.removeEventListener("localized",e),n()})))}}}(window,document)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFindController=t.FindState=void 0;var r=n(7),i=n(3),s=n(23);const a={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};t.FindState=a;const o={"‐":"-","‘":"'","’":"'","‚":"'","‛":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"},l=new Set([12441,12442,2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,3642,3770,3972,4153,4154,5908,5940,6098,6752,6980,7082,7083,7154,7155,11647,43014,43052,43204,43347,43456,43766,44013,3158,3953,3954,3962,3963,3964,3965,3968,3956]),c=[...l.values()].map((e=>String.fromCharCode(e))).join(""),u=/\p{M}+/gu,d=/([.*+?^${}()|[\]\\])|(\p{P})|(\s+)|(\p{M})|(\p{L})/gu,h=/([^\p{M}])\p{M}*$/u,p=/^\p{M}*([^\p{M}])/u,f=/[\uAC00-\uD7AF\uFA6C\uFACF-\uFAD1\uFAD5-\uFAD7]+/g,g=new Map;let m=null,v=null;function y(e){const t=[];let n,r;for(;null!==(n=f.exec(e));){let{index:e}=n;for(const r of n[0]){let n=g.get(r);n||(n=r.normalize("NFD").length,g.set(r,n)),t.push([n,e++])}}if(0===t.length&&m)r=m;else if(t.length>0&&v)r=v;else{const e=`([${Object.keys(o).join("")}])|(\\p{M}+(?:-\\n)?)|(\\S-\\n)|(\\n)`;r=0===t.length?m=new RegExp(e+"|(\\u0000)","gum"):v=new RegExp(e+"|([\\u1100-\\u1112\\ud7a4-\\ud7af\\ud84a\\ud84c\\ud850\\ud854\\ud857\\ud85f])","gum")}const i=[];for(;null!==(n=u.exec(e));)i.push([n[0].length,n.index]);let s=e.normalize("NFD");const a=[[0,0]];let l=0,c=0,d=0,h=0,p=0,y=!1;return s=s.replace(r,((e,n,r,s,u,f,g)=>{if(g-=h,n){const t=o[e],n=t.length;for(let e=1;e<n;e++)a.push([g-d+e,d-e]);return d-=n-1,t}if(r){const e=r.endsWith("\n"),t=e?r.length-2:r.length;y=!0;let n=t;g+p===i[l]?.[1]&&(n-=i[l][0],++l);for(let e=1;e<=n;e++)a.push([g-1-d+e,d-e]);return d-=n,h+=n,e?(g+=t-1,a.push([g-d+1,1+d]),d+=1,h+=1,p+=1,r.slice(0,t)):r}if(s)return a.push([g-d+1,1+d]),d+=1,h+=1,p+=1,s.charAt(0);if(u)return a.push([g-d+1,d-1]),d-=1,h+=1,p+=1," ";if(g+p===t[c]?.[1]){const e=t[c][0]-1;++c;for(let t=1;t<=e;t++)a.push([g-(d-t),d-t]);d-=e,h+=e}return f})),a.push([s.length,d]),[s,a,y]}function b(e,t,n){if(!e)return[t,n];const i=t,s=t+n;let a=(0,r.binarySearchFirstItem)(e,(e=>e[0]>=i));e[a][0]>i&&--a;let o=(0,r.binarySearchFirstItem)(e,(e=>e[0]>=s),a);return e[o][0]>s&&--o,[i+e[a][1],n+e[o][1]-e[a][1]]}t.PDFFindController=class{constructor({linkService:e,eventBus:t}){this._linkService=e,this._eventBus=t,this.#zt(),t._on("find",this.#Gt.bind(this)),t._on("findbarclose",this.#Qt.bind(this))}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return this._state}setDocument(e){this._pdfDocument&&this.#zt(),e&&(this._pdfDocument=e,this._firstPageCapability.resolve())}#Gt(e){if(!e)return;const t=this._pdfDocument,{type:n}=e;(null===this._state||this.#Xt(e))&&(this._dirtyMatch=!0),this._state=e,"highlightallchange"!==n&&this.#Kt(a.PENDING),this._firstPageCapability.promise.then((()=>{if(!this._pdfDocument||t&&this._pdfDocument!==t)return;this.#Te();const e=!this._highlightMatches,r=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),n?this._dirtyMatch?this.#Yt():"again"===n?(this.#Yt(),e&&this._state.highlightAll&&this.#Jt()):"highlightallchange"===n?(r?this.#Yt():this._highlightMatches=!0,this.#Jt()):this.#Yt():this._findTimeout=setTimeout((()=>{this.#Yt(),this._findTimeout=null}),250)}))}scrollMatchIntoView({element:e=null,selectedLeft:t=0,pageIndex:n=-1,matchIndex:i=-1}){if(!this._scrollMatches||!e)return;if(-1===i||i!==this._selected.matchIdx)return;if(-1===n||n!==this._selected.pageIdx)return;this._scrollMatches=!1;const s={top:-50,left:t+-400};(0,r.scrollIntoView)(e,s,!0)}#zt(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._hasDiacritics=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,i.createPromiseCapability)()}get#Zt(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,[this._normalizedQuery]=y(this._state.query)),this._normalizedQuery}#Xt(e){if(e.query!==this._state.query)return!0;switch(e.type){case"again":const e=this._selected.pageIdx+1,t=this._linkService;return e>=1&&e<=t.pagesCount&&e!==t.page&&!t.isPageVisible(e);case"highlightallchange":return!1}return!0}#en(e,t,n){let r=e.slice(0,t).match(h);if(r){const n=e.charCodeAt(t),i=r[1].charCodeAt(0);if((0,s.getCharacterType)(n)===(0,s.getCharacterType)(i))return!1}if(r=e.slice(t+n).match(p),r){const i=e.charCodeAt(t+n-1),a=r[1].charCodeAt(0);if((0,s.getCharacterType)(i)===(0,s.getCharacterType)(a))return!1}return!0}#tn(e,t,n,r){const i=[],s=[],a=this._pageDiffs[n];let o;for(;null!==(o=e.exec(r));){if(t&&!this.#en(r,o.index,o[0].length))continue;const[e,n]=b(a,o.index,o[0].length);n&&(i.push(e),s.push(n))}this._pageMatches[n]=i,this._pageMatchesLength[n]=s}#nn(e,t){const{matchDiacritics:n}=this._state;let r=!1;const i="[ ]*";return(e=e.replace(d,((e,i,s,a,o,c)=>i?`[ ]*\\${i}[ ]*`:s?`[ ]*${s}[ ]*`:a?"[ ]+":n?o||c:o?l.has(o.charCodeAt(0))?o:"":t?(r=!0,`${c}\\p{M}*`):c))).endsWith(i)&&(e=e.slice(0,e.length-i.length)),n&&t&&(r=!0,e=`${e}(?=[${c}]|[^\\p{M}]|$)`),[r,e]}#rn(e){let t=this.#Zt;if(0===t.length)return;const{caseSensitive:n,entireWord:r,phraseSearch:i}=this._state,s=this._pageContents[e],a=this._hasDiacritics[e];let o=!1;if(i)[o,t]=this.#nn(t,a);else{const e=t.match(/\S+/g);e&&(t=e.sort().reverse().map((e=>{const[t,n]=this.#nn(e,a);return o||=t,`(${n})`})).join("|"))}t=new RegExp(t,`g${o?"u":""}${n?"":"i"}`),this.#tn(t,r,e,s),this._state.highlightAll&&this.#in(e),this._resumePageIdx===e&&(this._resumePageIdx=null,this.#sn());const l=this._pageMatches[e].length;l>0&&(this._matchesCountTotal+=l,this.#an())}#Te(){if(this._extractTextPromises.length>0)return;let e=Promise.resolve();for(let t=0,n=this._linkService.pagesCount;t<n;t++){const n=(0,i.createPromiseCapability)();this._extractTextPromises[t]=n.promise,e=e.then((()=>this._pdfDocument.getPage(t+1).then((e=>e.getTextContent())).then((e=>{const r=[];for(const t of e.items)r.push(t.str),t.hasEOL&&r.push("\n");[this._pageContents[t],this._pageDiffs[t],this._hasDiacritics[t]]=y(r.join("")),n.resolve()}),(e=>{console.error(`Unable to get text content for page ${t+1}`,e),this._pageContents[t]="",this._pageDiffs[t]=null,this._hasDiacritics[t]=!1,n.resolve()}))))}}#in(e){this._scrollMatches&&this._selected.pageIdx===e&&(this._linkService.page=e+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:e})}#Jt(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}#Yt(){const e=this._state.findPrevious,t=this._linkService.page-1,n=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=t,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,this.#Jt();for(let e=0;e<n;e++)this._pendingFindMatches.has(e)||(this._pendingFindMatches.add(e),this._extractTextPromises[e].then((()=>{this._pendingFindMatches.delete(e),this.#rn(e)})))}if(""===this.#Zt)return void this.#Kt(a.FOUND);if(this._resumePageIdx)return;const r=this._offset;if(this._pagesToSearch=n,null!==r.matchIdx){const t=this._pageMatches[r.pageIdx].length;if(!e&&r.matchIdx+1<t||e&&r.matchIdx>0)return r.matchIdx=e?r.matchIdx-1:r.matchIdx+1,void this.#on(!0);this.#ln(e)}this.#sn()}#cn(e){const t=this._offset,n=e.length,r=this._state.findPrevious;return n?(t.matchIdx=r?n-1:0,this.#on(!0),!0):(this.#ln(r),!!(t.wrapped&&(t.matchIdx=null,this._pagesToSearch<0))&&(this.#on(!1),!0))}#sn(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");let e=null;do{const t=this._offset.pageIdx;if(e=this._pageMatches[t],!e){this._resumePageIdx=t;break}}while(!this.#cn(e))}#ln(e){const t=this._offset,n=this._linkService.pagesCount;t.pageIdx=e?t.pageIdx-1:t.pageIdx+1,t.matchIdx=null,this._pagesToSearch--,(t.pageIdx>=n||t.pageIdx<0)&&(t.pageIdx=e?n-1:0,t.wrapped=!0)}#on(e=!1){let t=a.NOT_FOUND;const n=this._offset.wrapped;if(this._offset.wrapped=!1,e){const e=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,t=n?a.WRAPPED:a.FOUND,-1!==e&&e!==this._selected.pageIdx&&this.#in(e)}this.#Kt(t,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this.#in(this._selected.pageIdx))}#Qt(e){const t=this._pdfDocument;this._firstPageCapability.promise.then((()=>{!this._pdfDocument||t&&this._pdfDocument!==t||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),this.#Kt(a.FOUND),this._highlightMatches=!1,this.#Jt())}))}#un(){const{pageIdx:e,matchIdx:t}=this._selected;let n=0,r=this._matchesCountTotal;if(-1!==t){for(let t=0;t<e;t++)n+=this._pageMatches[t]?.length||0;n+=t+1}return(n<1||n>r)&&(n=r=0),{current:n,total:r}}#an(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this.#un()})}#Kt(e,t=!1){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:e,previous:t,matchesCount:this.#un(),rawQuery:this._state?.query??null})}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterType=void 0,t.getCharacterType=function(e){return function(e){return e<11904}(e)?function(e){return 0==(65408&e)}(e)?function(e){return 32===e||9===e||13===e||10===e}(e)?n.SPACE:function(e){return e>=97&&e<=122||e>=65&&e<=90}(e)||function(e){return e>=48&&e<=57}(e)||95===e?n.ALPHA_LETTER:n.PUNCT:function(e){return 3584==(65408&e)}(e)?n.THAI_LETTER:160===e?n.SPACE:n.ALPHA_LETTER:function(e){return e>=13312&&e<=40959||e>=63744&&e<=64255}(e)?n.HAN_LETTER:function(e){return e>=12448&&e<=12543}(e)?n.KATAKANA_LETTER:function(e){return e>=12352&&e<=12447}(e)?n.HIRAGANA_LETTER:function(e){return e>=65376&&e<=65439}(e)?n.HALFWIDTH_KATAKANA_LETTER:n.ALPHA_LETTER};const n={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};t.CharacterType=n},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFHistory=void 0,t.isDestArraysEqual=o,t.isDestHashesEqual=a;var r=n(7),i=n(19);function s(){return document.location.hash}function a(e,t){return"string"==typeof e&&"string"==typeof t&&(e===t||(0,r.parseQueryString)(e).get("nameddest")===t)}function o(e,t){function n(e,t){if(typeof e!=typeof t)return!1;if(Array.isArray(e)||Array.isArray(t))return!1;if(null!==e&&"object"==typeof e&&null!==t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!n(e[r],t[r]))return!1;return!0}return e===t||Number.isNaN(e)&&Number.isNaN(t)}if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}t.PDFHistory=class{constructor({linkService:e,eventBus:t}){this.linkService=e,this.eventBus=t,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this.eventBus._on("pagesinit",(()=>{this._isPagesLoaded=!1,this.eventBus._on("pagesloaded",(e=>{this._isPagesLoaded=!!e.pagesCount}),{once:!0})}))}initialize({fingerprint:e,resetHistory:t=!1,updateUrl:n=!1}){if(!e||"string"!=typeof e)return void console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');this._initialized&&this.reset();const r=""!==this._fingerprint&&this._fingerprint!==e;this._fingerprint=e,this._updateUrl=!0===n,this._initialized=!0,this._bindEvents();const i=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=s(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(i,!0)||t){const{hash:e,page:n,rotation:i}=this._parseCurrentHash(!0);return!e||r||t?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:e,page:n,rotation:i},!0)}const a=i.destination;this._updateInternalState(a,i.uid,!0),void 0!==a.rotation&&(this._initialRotation=a.rotation),a.dest?(this._initialBookmark=JSON.stringify(a.dest),this._destination.page=null):a.hash?this._initialBookmark=a.hash:a.page&&(this._initialBookmark=`page=${a.page}`)}reset(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push({namedDest:e=null,explicitDest:t,pageNumber:n}){if(!this._initialized)return;if(e&&"string"!=typeof e)return void console.error(`PDFHistory.push: "${e}" is not a valid namedDest parameter.`);if(!Array.isArray(t))return void console.error(`PDFHistory.push: "${t}" is not a valid explicitDest parameter.`);if(!this._isValidPage(n)&&(null!==n||this._destination))return void console.error(`PDFHistory.push: "${n}" is not a valid pageNumber parameter.`);const r=e||JSON.stringify(t);if(!r)return;let i=!1;if(this._destination&&(a(this._destination.hash,r)||o(this._destination.dest,t))){if(this._destination.page)return;i=!0}this._popStateInProgress&&!i||(this._pushOrReplaceState({dest:t,hash:r,page:n,rotation:this.linkService.rotation},i),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then((()=>{this._popStateInProgress=!1}))))}pushPage(e){this._initialized&&(this._isValidPage(e)?this._destination?.page!==e&&(this._popStateInProgress||(this._pushOrReplaceState({dest:null,hash:`page=${e}`,page:e,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then((()=>{this._popStateInProgress=!1}))))):console.error(`PDFHistory.pushPage: "${e}" is not a valid page number.`))}pushCurrentPosition(){this._initialized&&!this._popStateInProgress&&this._tryPushCurrentPosition()}back(){if(!this._initialized||this._popStateInProgress)return;const e=window.history.state;this._isValidState(e)&&e.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;const e=window.history.state;this._isValidState(e)&&e.uid<this._maxUid&&window.history.forward()}get popStateInProgress(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}get initialBookmark(){return this._initialized?this._initialBookmark:null}get initialRotation(){return this._initialized?this._initialRotation:null}_pushOrReplaceState(e,t=!1){const n=t||!this._destination,r={fingerprint:this._fingerprint,uid:n?this._uid:this._uid+1,destination:e};let i;if(this._updateInternalState(e,r.uid),this._updateUrl&&e?.hash){const t=document.location.href.split("#")[0];t.startsWith("file://")||(i=`${t}#${e.hash}`)}n?window.history.replaceState(r,"",i):window.history.pushState(r,"",i)}_tryPushCurrentPosition(e=!1){if(!this._position)return;let t=this._position;if(e&&(t=Object.assign(Object.create(null),this._position),t.temporary=!0),!this._destination)return void this._pushOrReplaceState(t);if(this._destination.temporary)return void this._pushOrReplaceState(t,!0);if(this._destination.hash===t.hash)return;if(!this._destination.page&&this._numPositionUpdates<=50)return;let n=!1;if(this._destination.page>=t.first&&this._destination.page<=t.page){if(void 0!==this._destination.dest||!this._destination.first)return;n=!0}this._pushOrReplaceState(t,n)}_isValidPage(e){return Number.isInteger(e)&&e>0&&e<=this.linkService.pagesCount}_isValidState(e,t=!1){if(!e)return!1;if(e.fingerprint!==this._fingerprint){if(!t)return!1;{if("string"!=typeof e.fingerprint||e.fingerprint.length!==this._fingerprint.length)return!1;const[t]=performance.getEntriesByType("navigation");if("reload"!==t?.type)return!1}}return!(!Number.isInteger(e.uid)||e.uid<0)&&null!==e.destination&&"object"==typeof e.destination}_updateInternalState(e,t,n=!1){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),n&&e?.temporary&&delete e.temporary,this._destination=e,this._uid=t,this._maxUid=Math.max(this._maxUid,t),this._numPositionUpdates=0}_parseCurrentHash(e=!1){const t=unescape(s()).substring(1),n=(0,r.parseQueryString)(t),i=n.get("nameddest")||"";let a=0|n.get("page");return(!this._isValidPage(a)||e&&i.length>0)&&(a=null),{hash:t,page:a,rotation:this.linkService.rotation}}_updateViewarea({location:e}){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:e.pdfOpenParams.substring(1),page:this.linkService.page,first:e.pageNumber,rotation:e.rotation},this._popStateInProgress||(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout((()=>{this._popStateInProgress||this._tryPushCurrentPosition(!0),this._updateViewareaTimeout=null}),1e3))}_popState({state:e}){const t=s(),n=this._currentHash!==t;if(this._currentHash=t,!e){this._uid++;const{hash:e,page:t,rotation:n}=this._parseCurrentHash();return void this._pushOrReplaceState({hash:e,page:t,rotation:n},!0)}if(!this._isValidState(e))return;this._popStateInProgress=!0,n&&(this._blockHashChange++,(0,i.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then((()=>{this._blockHashChange--})));const a=e.destination;this._updateInternalState(a,e.uid,!0),(0,r.isValidRotation)(a.rotation)&&(this.linkService.rotation=a.rotation),a.dest?this.linkService.goToDestination(a.dest):a.hash?this.linkService.setHash(a.hash):a.page&&(this.linkService.page=a.page),Promise.resolve().then((()=>{this._popStateInProgress=!1}))}_pageHide(){this._destination&&!this._destination.temporary||this._tryPushCurrentPosition()}_bindEvents(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}_unbindEvents(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFScriptingManager=void 0;var r=n(7),i=n(3);t.PDFScriptingManager=class{constructor({eventBus:e,sandboxBundleSrc:t=null,scriptingFactory:n=null,docPropertiesLookup:r=null}){this._pdfDocument=null,this._pdfViewer=null,this._closeCapability=null,this._destroyCapability=null,this._scripting=null,this._mouseState=Object.create(null),this._ready=!1,this._eventBus=e,this._sandboxBundleSrc=t,this._scriptingFactory=n,this._docPropertiesLookup=r,this._scriptingFactory||window.addEventListener("updatefromsandbox",(e=>{this._eventBus.dispatch("updatefromsandbox",{source:window,detail:e.detail})}))}setViewer(e){this._pdfViewer=e}async setDocument(e){if(this._pdfDocument&&await this._destroyScripting(),this._pdfDocument=e,!e)return;const[t,n,r]=await Promise.all([e.getFieldObjects(),e.getCalculationOrderIds(),e.getJSActions()]);if(t||r){if(e===this._pdfDocument){try{this._scripting=this._createScripting()}catch(e){return console.error(`PDFScriptingManager.setDocument: "${e?.message}".`),void await this._destroyScripting()}this._internalEvents.set("updatefromsandbox",(e=>{e?.source===window&&this._updateFromSandbox(e.detail)})),this._internalEvents.set("dispatcheventinsandbox",(e=>{this._scripting?.dispatchEventInSandbox(e.detail)})),this._internalEvents.set("pagechanging",(({pageNumber:e,previous:t})=>{e!==t&&(this._dispatchPageClose(t),this._dispatchPageOpen(e))})),this._internalEvents.set("pagerendered",(({pageNumber:e})=>{this._pageOpenPending.has(e)&&e===this._pdfViewer.currentPageNumber&&this._dispatchPageOpen(e)})),this._internalEvents.set("pagesdestroy",(async e=>{await this._dispatchPageClose(this._pdfViewer.currentPageNumber),await(this._scripting?.dispatchEventInSandbox({id:"doc",name:"WillClose"})),this._closeCapability?.resolve()})),this._domEvents.set("mousedown",(e=>{this._mouseState.isDown=!0})),this._domEvents.set("mouseup",(e=>{this._mouseState.isDown=!1}));for(const[e,t]of this._internalEvents)this._eventBus._on(e,t);for(const[e,t]of this._domEvents)window.addEventListener(e,t,!0);try{const i=await this._getDocProperties();if(e!==this._pdfDocument)return;await this._scripting.createSandbox({objects:t,calculationOrder:n,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:{...i,actions:r}}),this._eventBus.dispatch("sandboxcreated",{source:this})}catch(e){return console.error(`PDFScriptingManager.setDocument: "${e?.message}".`),void await this._destroyScripting()}await(this._scripting?.dispatchEventInSandbox({id:"doc",name:"Open"})),await this._dispatchPageOpen(this._pdfViewer.currentPageNumber,!0),Promise.resolve().then((()=>{e===this._pdfDocument&&(this._ready=!0)}))}}else await this._destroyScripting()}async dispatchWillSave(e){return this._scripting?.dispatchEventInSandbox({id:"doc",name:"WillSave"})}async dispatchDidSave(e){return this._scripting?.dispatchEventInSandbox({id:"doc",name:"DidSave"})}async dispatchWillPrint(e){return this._scripting?.dispatchEventInSandbox({id:"doc",name:"WillPrint"})}async dispatchDidPrint(e){return this._scripting?.dispatchEventInSandbox({id:"doc",name:"DidPrint"})}get mouseState(){return this._mouseState}get destroyPromise(){return this._destroyCapability?.promise||null}get ready(){return this._ready}get _internalEvents(){return(0,i.shadow)(this,"_internalEvents",new Map)}get _domEvents(){return(0,i.shadow)(this,"_domEvents",new Map)}get _pageOpenPending(){return(0,i.shadow)(this,"_pageOpenPending",new Set)}get _visitedPages(){return(0,i.shadow)(this,"_visitedPages",new Map)}async _updateFromSandbox(e){const t=this._pdfViewer.isInPresentationMode||this._pdfViewer.isChangingPresentationMode,{id:n,siblings:i,command:s,value:a}=e;if(!n){switch(s){case"clear":console.clear();break;case"error":console.error(a);break;case"layout":if(t)return;const e=(0,r.apiPageLayoutToViewerModes)(a);this._pdfViewer.spreadMode=e.spreadMode;break;case"page-num":this._pdfViewer.currentPageNumber=a+1;break;case"print":await this._pdfViewer.pagesPromise,this._eventBus.dispatch("print",{source:this});break;case"println":console.log(a);break;case"zoom":if(t)return;this._pdfViewer.currentScaleValue=a;break;case"SaveAs":this._eventBus.dispatch("download",{source:this});break;case"FirstPage":this._pdfViewer.currentPageNumber=1;break;case"LastPage":this._pdfViewer.currentPageNumber=this._pdfViewer.pagesCount;break;case"NextPage":this._pdfViewer.nextPage();break;case"PrevPage":this._pdfViewer.previousPage();break;case"ZoomViewIn":if(t)return;this._pdfViewer.increaseScale();break;case"ZoomViewOut":if(t)return;this._pdfViewer.decreaseScale()}return}if(t&&e.focus)return;delete e.id,delete e.siblings;const o=i?[n,...i]:[n];for(const t of o){const n=document.querySelector(`[data-element-id="${t}"]`);n?n.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:e})):this._pdfDocument?.annotationStorage.setValue(t,e)}}async _dispatchPageOpen(e,t=!1){const n=this._pdfDocument,s=this._visitedPages;if(t&&(this._closeCapability=(0,i.createPromiseCapability)()),!this._closeCapability)return;const a=this._pdfViewer.getPageView(e-1);if(a?.renderingState!==r.RenderingStates.FINISHED)return void this._pageOpenPending.add(e);this._pageOpenPending.delete(e);const o=(async()=>{const t=await(s.has(e)?null:a.pdfPage?.getJSActions());n===this._pdfDocument&&await(this._scripting?.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:e,actions:t}))})();s.set(e,o)}async _dispatchPageClose(e){const t=this._pdfDocument,n=this._visitedPages;if(!this._closeCapability)return;if(this._pageOpenPending.has(e))return;const r=n.get(e);r&&(n.set(e,null),await r,t===this._pdfDocument&&await(this._scripting?.dispatchEventInSandbox({id:"page",name:"PageClose",pageNumber:e})))}async _getDocProperties(){if(this._docPropertiesLookup)return this._docPropertiesLookup(this._pdfDocument);const{docPropertiesLookup:e}=n(26);return e(this._pdfDocument)}_createScripting(){if(this._destroyCapability=(0,i.createPromiseCapability)(),this._scripting)throw new Error("_createScripting: Scripting already exists.");if(this._scriptingFactory)return this._scriptingFactory.createScripting({sandboxBundleSrc:this._sandboxBundleSrc});const{GenericScripting:e}=n(26);return new e(this._sandboxBundleSrc)}async _destroyScripting(){if(!this._scripting)return this._pdfDocument=null,void this._destroyCapability?.resolve();this._closeCapability&&(await Promise.race([this._closeCapability.promise,new Promise((e=>{setTimeout(e,1e3)}))]).catch((e=>{})),this._closeCapability=null),this._pdfDocument=null;try{await this._scripting.destroySandbox()}catch(e){}for(const[e,t]of this._internalEvents)this._eventBus._off(e,t);this._internalEvents.clear();for(const[e,t]of this._domEvents)window.removeEventListener(e,t,!0);this._domEvents.clear(),this._pageOpenPending.clear(),this._visitedPages.clear(),this._scripting=null,delete this._mouseState.isDown,this._ready=!1,this._destroyCapability?.resolve()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GenericScripting=void 0,t.docPropertiesLookup=async function(e){const t="".split("#")[0];let{info:n,metadata:i,contentDispositionFilename:s,contentLength:a}=await e.getMetadata();if(!a){const{length:t}=await e.getDownloadInfo();a=t}return{...n,baseURL:t,filesize:a,filename:s||(0,r.getPdfFilenameFromUrl)(""),metadata:i?.getRaw(),authors:i?.get("dc:creator"),numPages:e.numPages,URL:""}};var r=n(3);t.GenericScripting=class{constructor(e){this._ready=(0,r.loadScript)(e,!0).then((()=>window.pdfjsSandbox.QuickJSSandbox()))}async createSandbox(e){(await this._ready).create(e)}async dispatchEventInSandbox(e){const t=await this._ready;setTimeout((()=>t.dispatchEvent(e)),0)}async destroySandbox(){(await this._ready).nukeSandbox()}}}],t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}var r={};return(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return o.AnnotationLayerBuilder}}),Object.defineProperty(e,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return t.DefaultAnnotationLayerFactory}}),Object.defineProperty(e,"DefaultStructTreeLayerFactory",{enumerable:!0,get:function(){return t.DefaultStructTreeLayerFactory}}),Object.defineProperty(e,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return t.DefaultTextLayerFactory}}),Object.defineProperty(e,"DefaultXfaLayerFactory",{enumerable:!0,get:function(){return t.DefaultXfaLayerFactory}}),Object.defineProperty(e,"DownloadManager",{enumerable:!0,get:function(){return l.DownloadManager}}),Object.defineProperty(e,"EventBus",{enumerable:!0,get:function(){return c.EventBus}}),Object.defineProperty(e,"GenericL10n",{enumerable:!0,get:function(){return u.GenericL10n}}),Object.defineProperty(e,"LinkTarget",{enumerable:!0,get:function(){return i.LinkTarget}}),Object.defineProperty(e,"NullL10n",{enumerable:!0,get:function(){return d.NullL10n}}),Object.defineProperty(e,"PDFFindController",{enumerable:!0,get:function(){return h.PDFFindController}}),Object.defineProperty(e,"PDFHistory",{enumerable:!0,get:function(){return p.PDFHistory}}),Object.defineProperty(e,"PDFLinkService",{enumerable:!0,get:function(){return i.PDFLinkService}}),Object.defineProperty(e,"PDFPageView",{enumerable:!0,get:function(){return f.PDFPageView}}),Object.defineProperty(e,"PDFScriptingManager",{enumerable:!0,get:function(){return g.PDFScriptingManager}}),Object.defineProperty(e,"PDFSinglePageViewer",{enumerable:!0,get:function(){return a.PDFSinglePageViewer}}),Object.defineProperty(e,"PDFViewer",{enumerable:!0,get:function(){return a.PDFViewer}}),Object.defineProperty(e,"ProgressBar",{enumerable:!0,get:function(){return s.ProgressBar}}),Object.defineProperty(e,"RenderingStates",{enumerable:!0,get:function(){return s.RenderingStates}}),Object.defineProperty(e,"ScrollMode",{enumerable:!0,get:function(){return s.ScrollMode}}),Object.defineProperty(e,"SimpleLinkService",{enumerable:!0,get:function(){return i.SimpleLinkService}}),Object.defineProperty(e,"SpreadMode",{enumerable:!0,get:function(){return s.SpreadMode}}),Object.defineProperty(e,"StructTreeLayerBuilder",{enumerable:!0,get:function(){return m.StructTreeLayerBuilder}}),Object.defineProperty(e,"TextLayerBuilder",{enumerable:!0,get:function(){return v.TextLayerBuilder}}),Object.defineProperty(e,"XfaLayerBuilder",{enumerable:!0,get:function(){return y.XfaLayerBuilder}}),Object.defineProperty(e,"parseQueryString",{enumerable:!0,get:function(){return s.parseQueryString}});var t=n(1),i=n(6),s=n(7),a=n(11),o=n(5),l=n(18),c=n(19),u=n(20),d=n(4),h=n(22),p=n(24),f=n(13),g=n(25),m=n(8),v=n(9),y=n(10)})(),r})(),pdf_viewer.exports=factory();const PdfViewer=({src:e,pdfCMapsUrl:t,pdfWorkerUrl:n})=>{const r=useRef(null),i=useRef(null),s=useRef(null),[a,o]=useState((()=>new pdf_viewer.exports.EventBus)),[l,c]=useState((()=>new pdf_viewer.exports.PDFLinkService({eventBus:a}))),[u,d]=useState((()=>new pdf_viewer.exports.PDFFindController({eventBus:a,linkService:l}))),[h,p]=useState(),f=t||"",g=n||"";pdfExports.GlobalWorkerOptions.workerSrc=g;const[m,v]=useState(),y=useCallback((e=>{v(e)}),[]);function b(e){h&&(h.currentScaleValue="number"==typeof e?e.toFixed(2):e)}function _(e){h&&(h.currentPageNumber=e)}function w(e){e.target.setSelectionRange(0,e.target.value.length)}return useEffect((()=>{let e=h;if(m)return!h&&a&&(e=new pdf_viewer.exports.PDFViewer({container:m,eventBus:a,linkService:l,findController:u}),l.setViewer(e),p(e),a.on("scalechanging",(function(){s.current.value=Math.round(100*e.currentScale).toFixed(0)+"%"})),a.on("pagechanging",(function(){r.current&&(r.current.value=e.currentPageNumber.toFixed(0))})),a.on("pagesinit",(function(){e.currentScaleValue="auto",r.current.value="1",i.current.innerText=e.pagesCount.toFixed(0)}))),()=>{e&&(e.cleanup(),p(null))}}),[m]),useEffect((()=>{if(e&&h){let t=pdfExports.getDocument({url:e,enableXfa:true,cMapUrl:f,cMapPacked:true});return t.promise.then((e=>{h.setDocument(e),l.setDocument(e,null)})),()=>{t&&(t.destroy(),h.setDocument(null),l.setDocument(null,null))}}}),[e,h]),React.createElement("div",{className:"wy-content-pdf","data-controller":"pdf","data-pdf-url-value":""},React.createElement("div",{className:"wy-toolbars-bottom"},React.createElement("nav",{className:"wy-toolbar"},React.createElement("div",{className:"wy-toolbar-buttons"},React.createElement("input",{type:"text",className:"wy-input",ref:r,onChange:function(){if(h&&r.current){let e=parseInt(r.current.value);isNaN(e)?_(h.currentPageNumber):e>h.pagesCount?_(h.pagesCount):_(e<=0?1:e)}},onClick:w,"data-pdf-target":"pageNumber"}),React.createElement("span",null,"/"),React.createElement("span",{ref:i},"1")),React.createElement("div",{className:"wy-toolbar-buttons"},React.createElement("button",{className:"wy-button wy-button-icon btn-zoom-out",onClick:function(){if(h){let e=h.currentScale,t=1;do{e/=1.1,e=Math.floor(10*e)/10,e=Math.max(.2,e)}while(--t>0&&e>.2);b(e)}},title:"Zoom out"},React.createElement(UIIcon.UI,{name:"minus"})),React.createElement("input",{type:"text",className:"wy-input",ref:s,onChange:function(){if(h&&s.current){let e=parseFloat(s.current.value.replace("%",""));isNaN(e)?b(h.currentScale+1e-4):b(e/100)}},onClick:w,value:"100%","data-pdf-target":"zoomLevel"}),React.createElement("button",{className:"wy-button wy-button-icon btn-zoom-in",onClick:function(){if(console.debug("zoomIn"),h){let e=h.currentScale,t=1;do{e*=1.1,e=Math.floor(10*e)/10,e=Math.min(3,e)}while(--t>0&&e<3);b(e)}},title:"Zoom in"},React.createElement(UIIcon.UI,{name:"plus"}))),React.createElement("div",{className:"wy-toolbar-buttons"},React.createElement("button",{className:"wy-button wy-button-icon btn-fit-page",onClick:function(){b("page-width")},title:"Fit to width"},React.createElement(UIIcon.UI,{name:"fit-width"})),React.createElement("button",{className:"wy-button wy-button-icon",onClick:function(){b("page-fit")},title:"Fit to screen"},React.createElement(UIIcon.UI,{name:"fit-screen"}))))),React.createElement("div",{ref:y,className:"wy-pdf-container"},React.createElement("div",{id:"viewer",className:"pdfViewer"})))};function checkImageLoad(e){e.complete&&0!==e.naturalHeight?e.classList.contains("wy-loading")?e.decode().then((()=>{console.debug("image is loaded after delay"),e.classList.add("wy-loaded")})):(console.debug("image is instantly loaded"),e.classList.add("wy-loading","wy-loaded")):(console.debug("image is loading"),e.classList.add("wy-loading"))}function imageLoaded(e){var t=e.target;"IMG"===t.tagName&&t.classList.contains("wy-loading")&&!t.classList.contains("wy-loaded")&&(console.debug("load event"),t.classList.add("wy-loaded"))}const Image=({src:e,previewSrc:t,width:n,height:r,more:i,onClick:s})=>{let a=n/r,o=a.toPrecision(5),l=(64*a).toPrecision(5)+"px",c=(100/a).toPrecision(5)+"%",u=n+"px",d=2*n+"px";const h=useCallback((e=>{e&&checkImageLoad(e)}),[]);return React.createElement("a",{href:e,className:"wy-image",onClick:e=>s(e),style:{flexBasis:l,flexGrow:o,flexShrink:o,width:u,maxWidth:d}},React.createElement("div",{className:"wy-image-area",style:{paddingBottom:c}},React.createElement("img",{ref:h,src:t,onLoad:imageLoaded,alt:"",loading:"lazy",decoding:"async"}),!!i&&React.createElement("span",{className:"wy-more"},"+",i)))},ImageGrid=({children:e,limit:t=3})=>{let n=React.Children.toArray(e),r=n.length>t?n.length-t:0,i=n.slice(0,t),s=i[i.length-1];if(React.isValidElement(s)){let e={more:r};i[i.length-1]=React.cloneElement(s,e)}return React.createElement("div",{className:"wy-image-grid"},i)},getStream=e=>{if(e&&e.ok&&e.body){const t=e.body.getReader();return new ReadableStream({start(e){let n=()=>t.read().then((({done:t,value:r})=>{if(!t)return e.enqueue(r),n();e.close()}));return n()}})}},PreviewImage=({src:e,width:t,height:n})=>{const r=useCallback((e=>{e&&checkImageLoad(e)}),[]);return React.createElement(React.Fragment,null,t&&n?React.createElement("div",{className:"wy-content-image wy-responsive-image",style:{"--width":t,"--height":n}},React.createElement("img",{className:"wy-loading-transition",ref:r,src:e,onLoad:imageLoaded,width:t,height:n,decoding:"async"}),React.createElement(UISpinner.UI,null)):React.createElement("div",{className:"wy-content-image wy-responsive-image wy-intrinsic-image"},React.createElement("img",{ref:r,src:e,onLoad:imageLoaded,decoding:"async"})))},PreviewDocument=({src:e,client:t})=>{let n=new URL("/js/preview.worker.js",t.url).toString(),r=new URL("/js/cmaps/",t.url).toString();return React.createElement(PdfViewer,{src:e,pdfWorkerUrl:n,pdfCMapsUrl:r})};function mediaFallback(e){e.classList.contains("wy-loading")&&e.classList.add("wy-loaded"),e.classList.add("wy-error"),e.outerHTML=e.outerHTML.replace(/<(video|audio)/,"<div").replace(/(video|audio)>/,"div>")}function mediaLoaded(e){var t=e.target;"VIDEO"!==t.tagName&&"AUDIO"!==t.tagName||t.classList.contains("wy-loading")&&(console.log("loaded"),t.classList.add("wy-loaded"))}function mediaError(e){var t,n=e.target;"SOURCE"===n.tagName&&((t=n.parentNode).dataset.errors=(t.dataset.errors||0)+1,t.querySelectorAll("source").length>=t.dataset.errors&&(console.warn(t.tagName.toLowerCase()+" source error, switching to fallback"),mediaFallback(t)))}function codecError(e){var t=e.target;"VIDEO"!==t.tagName&&"AUDIO"!==t.tagName||("VIDEO"===t.tagName&&!t.videoWidth||"AUDIO"===t.tagName&&!t.duration)&&(console.warn(t.tagName.toLowerCase()+" track not available, switching to fallback"),mediaFallback(t))}const PreviewMedia=({format:e,src:t,name:n,mediaType:r})=>{const[i,s]=useState(),a=useCallback((e=>{e&&(e.classList.add("wy-loading"),s(e))}),[]);return useEffect((()=>{if(i)return i.addEventListener("error",mediaError,!0),i.addEventListener("loadedmetadata",mediaLoaded,!0),i.addEventListener("loadedmetadata",codecError,!0),()=>{i.pause(),i.removeAttribute("autoplay"),i.setAttribute("preload","none"),i.removeEventListener("error",mediaError,!0),i.removeEventListener("loadedmetadata",mediaLoaded,!0),i.removeEventListener("loadedmetadata",codecError,!0)}}),[i]),"video"===e?React.createElement(React.Fragment,null,React.createElement("video",{ref:a,className:"wy-content-video",controls:!0,crossOrigin:"use-credentials",autoPlay:!0},React.createElement("source",{src:t,type:r}),React.createElement(PreviewIcon,{src:t,name:n,icon:"file-video",download:!0})),React.createElement(UISpinner.UI,null)):React.createElement(React.Fragment,null,React.createElement(PreviewIcon,{src:t,name:n,icon:"file-music",download:!0},React.createElement("audio",{ref:a,className:"wy-content-audio",controls:!0,crossOrigin:"use-credentials",autoPlay:!0},React.createElement("source",{src:t,type:r}))))},PreviewText=({src:e,html:t=!1,code:n=!1})=>{const[r,i]=useState("");return useEffect((()=>{fetch(e).then(getStream).then((e=>new Response(e))).then((e=>e.text())).then((e=>{i(e)}))}),[e]),React.createElement(React.Fragment,null,t?n?React.createElement("div",{className:"wy-content-code wy-code",dangerouslySetInnerHTML:{__html:r}}):React.createElement("div",{className:"wy-document wy-light"},React.createElement("div",{className:"wy-content-html",dangerouslySetInnerHTML:{__html:r}})):n?React.createElement("div",{className:"wy-content-code"},r):React.createElement("div",{className:"wy-document wy-light"},React.createElement("pre",{className:"wy-content-text"},r)))},PreviewEmbed=({src:e,name:t,icon:n,provider:r})=>{const[i,s]=useState(),a=useCallback((e=>{e&&(e.classList.add("wy-loading"),s(e))}),[]);return useEffect((()=>{if(i){let e=setTimeout((function(){console.log("fallback"),i.classList.add("wy-fallback")}),2500),t=t=>{var n=t.target;"OBJECT"===n.tagName&&n.classList.contains("wy-loading")&&!n.classList.contains("wy-loaded")&&(console.log("loaded"),n.classList.add("wy-loaded"),clearTimeout(e))};return i.addEventListener("load",t,!0),()=>{i.removeEventListener("load",t,!0),clearTimeout(e)}}}),[i]),React.createElement(React.Fragment,null,React.createElement("object",{ref:a,className:"wy-content-iframe",data:e}),React.createElement(UISpinner.UI,null),React.createElement(PreviewIcon,{src:e,name:t,icon:n,provider:r,className:"wy-content-iframe-fallback"}))},PreviewIcon=({children:e,src:t,icon:n,name:r,provider:i,download:s=!1,className:a})=>React.createElement("div",{className:classNames("wy-content-icon",a)},React.createElement("div",{className:"wy-content-icon"},React.createElement(UIIcon.UI,{name:n})),React.createElement("div",{className:"wy-content-name"},i?React.createElement(React.Fragment,null,React.createElement("span",null,"No preview available. "),React.createElement("a",{href:t,target:"_blank",title:r},`Open in ${i}?`)):s?React.createElement("a",{href:t,target:"_top",download:!0},r):React.createElement("a",{href:t,target:"_blank"},r," ",React.createElement(UIIcon.UI,{name:"open-in-new",size:1}))),e),Preview=({client:e,src:t,link:n,format:r,name:i,icon:s,width:a,height:o,mediaType:l,provider:c})=>React.createElement(React.Fragment,null,"image"===r&&React.createElement(PreviewImage,{key:t,src:t,width:a,height:o}),"pdf"===r&&React.createElement(PreviewDocument,{src:t,client:e}),("video"===r||"audio"===r)&&React.createElement(PreviewMedia,{key:t,format:r,src:t,name:i,mediaType:l}),"text"===r&&React.createElement(PreviewText,{key:t,src:t}),"code"===r&&React.createElement(PreviewText,{key:t,src:t,html:!0,code:!0}),"html"===r&&React.createElement(PreviewText,{key:t,src:t,html:!0}),"embed"===r&&React.createElement(PreviewEmbed,{key:t,src:t,name:i,icon:s,provider:c}),"none"===r&&(n?React.createElement(PreviewIcon,{src:t,name:i,icon:s,provider:c}):React.createElement(PreviewIcon,{src:t,name:i,icon:s,download:!0}))),fileSizeAsString=e=>{for(var t=e,n=[" B"," KB"," MB"," GB"," TB"," PB"," EB"," ZB"," YB"],r=0;r<n.length-1&&t>=1024;)t=100*t/1024/100,r++;return t.toLocaleString()+n[r]};function getExtension(e){return e.substring(e.lastIndexOf("."),e.length)||e}function isAudio(e){switch(e){case".aac":case".aif":case".aiff":case".au":case".gsm":case".m4a":case".mid":case".midi":case".mka":case".mp3":case".oga":case".ogg":case".ra":case".ram":case".snd":case".spx":case".wav":case".wma":return!0;default:return!1}}function isImage(e){switch(e){case".ai":case".apng":case".bmp":case".emf":case".eps":case".gif":case".heic":case".ico":case".jpg":case".jpeg":case".png":case".psd":case".svg":case".tif":case".tiff":case".webp":case".wmf":return!0;default:return!1}}function isVideo(e){switch(e){case".3g2":case".asx":case".asf":case".avi":case".flv":case".mk3d":case".mkv":case".mov":case".mp4":case".mpeg":case".mpg":case".ogm":case".ogv":case".ogx":case".qt":case".rm":case".rv":case".smi":case".smil":case".swf":case".webm":case".wmv":case".xaml":return!0;default:return!1}}function isMarkdown(e){switch(e){case".markdown":case".md":return!0;default:return!1}}function isMarkup(e){switch(e){case".htm":case".html":case".xhtml":case".xml":return!0;default:return!1}}function isCode(e){if(isMarkup(e))return!0;switch(e){case".as":case".as3":case".asm":case".aspx":case".bat":case".c":case".cc":case".cmake":case".coffee":case".cpp":case".cs":case".css":case".cxx":case".diff":case".erb":case".erl":case".groovy":case".gvy":case".h":case".haml":case".hh":case".hpp":case".hxx":case".java":case".js":case".json":case".jsx":case".less":case".lst":case".m":case".make":case".ml":case".mm":case".out":case".patch":case".php":case".pl":case".plist":case".properties":case".py":case".rb":case".sass":case".scala":case".scm":case".script":case".scss":case".sh":case".sml":case".sql":case".vb":case".vi":case".vim":case".xsd":case".xsl":case".yaml":case".yml":return!0;default:return!1}}function isText(e){return!(!isCode(e)&&!isMarkdown(e))||".txt"===e}function getIcon(e,t){var n=getExtension(e);if(""===n)return{icon:"file"};if(isAudio(n))return{icon:"file-music",color:"indigo"};if(isImage(n))return{icon:"file-image",color:"cyan"};if(isVideo(n))return{icon:"file-video",color:"pink"};if(isMarkup(n))return{icon:"file-xml",color:"purple"};if(isCode(n))return{icon:"file-code",color:"purple"};if(isText(n))return{icon:"file-document"};switch(n){case".7z":case".zip":return{icon:"file-compressed",color:"orange"};case".doc":case".docm":case".docx":case".dotm":case".dotx":return{icon:"file-word",color:"native"};case".eml":case".msg":return{icon:"email",color:""};case".xls":case".xlsm":case".xlsx":case".xltx":return{icon:"file-excel",color:"native"};case".pdf":return{icon:"file-pdf",color:"native"};case".ppt":case".pptm":case".pptx":case".potx":return{icon:"file-powerpoint",color:"native"};case".pages":return{icon:"file",color:"orange"};case".numbers":return{icon:"file",color:"green"};case".keynote":return{icon:"file",color:"blue"}}return{icon:"file"}}const PreviewContext=createContext({openPreview:Function,closePreview:Function});function allowedKeyTarget(e){return!e.target.matches("input, textarea, select")&&!e.target.closest('[contenteditable="true"]')}const PreviewProvider=({client:e,children:t})=>{const[n,r]=useState(!1),[i,s]=useState([]),[a,o]=useState(),[l,c]=useState(),[u,d]=useState(),[h,p]=useState();useEffect((()=>{if(l){var e=i.map((function(e){return e.id})).indexOf(l);p(e>0?i[e-1].id:null),d(e+1<i.length?i[e+1].id:null),o(i.find((e=>e.id===l)))}}),[i,l]);const f=()=>{r(!1)};useEffect((()=>{if(a){const e=e=>{27===e.which?(e.stopImmediatePropagation(),f()):37===e.which?allowedKeyTarget(e)&&c(h):39===e.which&&allowedKeyTarget(e)&&c(u)};return document.addEventListener("keyup",e),()=>{document.removeEventListener("keyup",e)}}}),[a]);let g=getExtension((null==a?void 0:a.name)||""),m=getIcon((null==a?void 0:a.name)||"").icon,v=(null==a?void 0:a.preview_url)||(null==a?void 0:a.download_url)||"";return"image"===(null==a?void 0:a.preview_format)&&(".gif"===g||".svg"===g)&&(v=(null==a?void 0:a.download_url)||""),React.createElement(React.Fragment,null,React.createElement(PreviewContext.Provider,{value:{openPreview:(e,t)=>{s(e),c(t),r(!0)},closePreview:f}},t),React.createElement(UIOverlay.UI,{isOpen:n,className:"wy-dark"},React.createElement("header",{className:"wy-appbars"},React.createElement("nav",{className:"wy-appbar"},React.createElement(UIButton.UI,{onClick:f},React.createElement(UIIcon.UI,{name:"close"})),React.createElement("div",{className:"wy-appbar-text"},a&&React.createElement("span",null,a.name)),React.createElement("div",{className:"wy-appbar-buttons"},(null==a?void 0:a.application_url)?React.createElement(UIButton.UI,{onClick:()=>{window.open(`${null==a?void 0:a.application_url}`,"_top")},title:"Open in app"},React.createElement(UIIcon.UI,{name:m})):(null==a?void 0:a.external_url)?React.createElement(UIButton.UI,{onClick:()=>{window.open(`${null==a?void 0:a.external_url}`,"_blank")},title:`Open in ${a.provider}`},React.createElement(UIIcon.UI,{name:m})):React.createElement(UIButton.UI,{onClick:()=>{window.open(`${null==a?void 0:a.download_url}&d=1`,"_top")}},React.createElement(UIIcon.UI,{name:"download"}))))),React.createElement("div",{className:"wy-preview wy-scroll-y wy-scroll-x"},a&&React.createElement(React.Fragment,null,h&&React.createElement("nav",{className:"wy-nav-prev"},React.createElement(UIButton.UI,{onClick:()=>{c(h)}},React.createElement(UIIcon.UI,{name:"previous"}))),u&&React.createElement("nav",{className:"wy-nav-next"},React.createElement(UIButton.UI,{onClick:()=>{c(u)}},React.createElement(UIIcon.UI,{name:"next"}))),React.createElement(Preview,{client:e,src:v,link:a.external_url,format:a.preview_format,name:a.name,icon:m,width:a.width,height:a.height,mediaType:a.media_type,provider:a.provider})))))};var FUNC_ERROR_TEXT$1="Expected a function",NAN$1=NaN,symbolTag$1="[object Symbol]",reTrim$1=/^\s+|\s+$/g,reIsBadHex$1=/^[-+]0x[0-9a-f]+$/i,reIsBinary$1=/^0b[01]+$/i,reIsOctal$1=/^0o[0-7]+$/i,freeParseInt$1=parseInt,freeGlobal$1="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf$1="object"==typeof self&&self&&self.Object===Object&&self,root$1=freeGlobal$1||freeSelf$1||Function("return this")(),objectProto$1=Object.prototype,objectToString$1=objectProto$1.toString,nativeMax$1=Math.max,nativeMin$1=Math.min,now$1=function(){return root$1.Date.now()};function debounce$1(e,t,n){var r,i,s,a,o,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$1);function p(t){var n=r,s=i;return r=i=void 0,c=t,a=e.apply(s,n)}function f(e){return c=e,o=setTimeout(m,t),u?p(e):a}function g(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=s}function m(){var e=now$1();if(g(e))return v(e);o=setTimeout(m,function(e){var n=t-(e-l);return d?nativeMin$1(n,s-(e-c)):n}(e))}function v(e){return o=void 0,h&&r?p(e):(r=i=void 0,a)}function y(){var e=now$1(),n=g(e);if(r=arguments,i=this,l=e,n){if(void 0===o)return f(l);if(d)return o=setTimeout(m,t),p(l)}return void 0===o&&(o=setTimeout(m,t)),a}return t=toNumber$1(t)||0,isObject$2(n)&&(u=!!n.leading,s=(d="maxWait"in n)?nativeMax$1(toNumber$1(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==o&&clearTimeout(o),c=0,r=l=i=o=void 0},y.flush=function(){return void 0===o?a:v(now$1())},y}function throttle(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$1);return isObject$2(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),debounce$1(e,t,{leading:r,maxWait:t,trailing:i})}function isObject$2(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function isObjectLike$1(e){return!!e&&"object"==typeof e}function isSymbol$1(e){return"symbol"==typeof e||isObjectLike$1(e)&&objectToString$1.call(e)==symbolTag$1}function toNumber$1(e){if("number"==typeof e)return e;if(isSymbol$1(e))return NAN$1;if(isObject$2(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject$2(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(reTrim$1,"");var n=reIsBinary$1.test(e);return n||reIsOctal$1.test(e)?freeParseInt$1(e.slice(2),n?2:8):reIsBadHex$1.test(e)?NAN$1:+e}var lodash_throttle=throttle,scrollbarClassnameTarget=document.documentElement;function checkScrollbar(e){var t;for(var n in e){t=e[n].target;try{(t===document.documentElement?window.innerWidth:t.clientWidth)!==t.offsetWidth?scrollbarClassnameTarget.classList.add("wy-scrollbars"):scrollbarClassnameTarget.classList.remove("wy-scrollbars")}catch(e){console.warn("scrollbar detection failed",e)}}return scrollbarClassnameTarget.classList.contains("wy-scrollbars")}function detectScrollbars(){var e=document.getElementById("wy-scrollbar-detection");return e||((e=document.createElement("aside")).id="wy-scrollbar-detection",e.className="wy-scrollbar-detection",document.documentElement.insertBefore(e,document.body)),new Promise((t=>{new ResizeObserver((e=>{let n=checkScrollbar(e);t(n)})).observe(e)}))}function checkScrollbarAdjust(e){for(var t in e){let n=e[t].target,r=getComputedStyle(n);void 0!==n.dataset.adjustScrollbarTop&&scrollbarClassnameTarget.style.setProperty("--wy-scrollbar-adjust-top",r.height),void 0!==n.dataset.adjustScrollbarBottom&&scrollbarClassnameTarget.style.setProperty("--wy-scrollbar-adjust-bottom",r.height)}}function detectScrollbarAdjustments(){var e=new ResizeObserver(checkScrollbarAdjust);const t=()=>{if(scrollbarClassnameTarget.style.removeProperty("--wy-scrollbar-adjust-top"),scrollbarClassnameTarget.style.removeProperty("--wy-scrollbar-adjust-bottom"),e.disconnect(),scrollbarClassnameTarget.classList.contains("wy-scrollbars")){let t=document.querySelectorAll("[data-adjust-scrollbar-top], [data-adjust-scrollbar-bottom]");t&&t.forEach((t=>{checkScrollbarAdjust([{target:t}]),e.observe(t)}))}};requestAnimationFrame(t),setTimeout(t,5e3),new MutationObserver(lodash_throttle(t,100)).observe(scrollbarClassnameTarget,{childList:!0,subtree:!0})}dayjs.extend(relativeTime),dayjs.extend(utc),dayjs.extend(timezone),dayjs.extend(localizedFormat);const WeavyContext=createContext({client:null,options:{}}),queryClient=new QueryClient({defaultOptions:{queries:{cacheTime:864e5}}}),WeavyProvider=({children:e,client:t,options:n})=>{let r={zoomAuthenticationUrl:void 0,teamsAuthenticationUrl:void 0,enableCloudFiles:!0,enableScrollbarDetection:!0,filebrowserUrl:"https://filebrowser.weavy.io/v14/",reactions:["😍","😎","😉","😜","👍"]},i=Object.assign(Object.assign({},r),n);return i.enableScrollbarDetection&&detectScrollbars().then((()=>detectScrollbarAdjustments())),t||queryClient.clear(),React.createElement(React.Fragment,null,t&&React.createElement(QueryClientProvider,{client:queryClient},React.createElement(WeavyContext.Provider,{value:{client:t,options:i}},React.createElement(UserProvider,{client:t},React.createElement(PreviewProvider,{client:t},e)))))};function usePresence(){const{client:e}=useContext(WeavyContext);if(!e)throw new Error("usePresence must be used within an WeavyProvider");useEffect((()=>{e.subscribe(null,"online",t)}),[]);const t=e=>{Array.isArray(e)?(document.querySelectorAll(".wy-presence").forEach((function(e){e.classList.remove("wy-presence-active")})),e.forEach((function(e){document.querySelectorAll("[data-presence-id='"+e+"']").forEach((function(e){e.classList.add("wy-presence-active")}))}))):document.querySelectorAll("[data-presence-id='"+e+"']").forEach((function(e){e.classList.add("wy-presence-active")}))}}const MessengerContext=createContext({selectedConversationId:null,setSelectedConversationId:e=>{}}),MessengerProvider=({children:e})=>{const[t,n]=useState(null);usePresence();return React.createElement(React.Fragment,null,React.createElement(MessengerContext.Provider,{value:{selectedConversationId:t,setSelectedConversationId:e=>{n(e)}}},e))};function useMembers(e,t){const{client:n}=useContext(WeavyContext);if(!n)throw new Error("useMembers must be used within an WeavyProvider");return useQuery(["members",e],(()=>__awaiter(this,void 0,void 0,(function*(){const t=yield n.get("/api/apps/"+e+"/members");return yield t.json()}))),t)}const Typing=({children:e,id:t,context:n})=>{const[r,i]=useState([]),[s,a]=useState(""),o=useRef(null),{client:l}=useContext(WeavyContext),{user:c}=useContext(UserContext);useEffect((()=>(u(),()=>{clearTimeout(o.current)})),[r,t,n]),useEffect((()=>(i([]),null==l||l.subscribe(`a${t}`,"typing",d),null==l||l.subscribe(`a${t}`,"message_created",h),()=>{null==l||l.unsubscribe(`a${t}`,"typing",d),null==l||l.unsubscribe(`a${t}`,"message_created",h)})),[t]);const u=()=>{let e=r;o.current&&(clearTimeout(o.current),o.current=null);let t=Date.now();if(e.forEach((function(n,r){t-n.time>5e3&&e.splice(r,1)})),e.length){let n=Math.round((t-Math.max.apply(null,e.map((function(e){return e.time}))))/1e3)%3+1,r=".".repeat(n),i=e.map((e=>e.display_name)).sort(),s="";for(let e=0;e<i.length;e++)e>0&&(e===i.length-1?s+=" and ":s+=", "),s+=i[e];1===i.length?s+=" is typing":s+=" are typing",a(s+r),o.current=setTimeout(u,1e3)}else a("")},d=useCallback((e=>{var n;e.conversation.id===t&&e.actor.id!==c.id&&(n=e.actor,r.forEach((function(e,t){e.member.id===n.id&&i(r.splice(t,1))})),n.time=Date.now(),i([...r,n]))}),[t,n,r]),h=useCallback((e=>{e.message.app_id===t&&i([])}),[t,n,r]);return React.createElement(React.Fragment,null,""!==s&&React.createElement(React.Fragment,null,s),""===s&&React.createElement(React.Fragment,null,e))};var Typing$1=React.memo(Typing);const Dropdown=e=>{var{directionX:t="right",directionY:n="down",children:r,className:i=""}=e,s=__rest(e,["directionX","directionY","children","className"]);const[a,o]=useState(!1);useEffect((()=>{a?document.addEventListener("click",(()=>{o(!1)})):document.removeEventListener("click",(()=>{o(!1)}))}),[a]);return React.createElement("span",Object.assign({className:classNames("wy-dropdown",{"wy-dropup":"up"===n},i)},s),React.createElement(UIButton.UI,{onClick:e=>(e=>{e.stopPropagation(),o(!a)})(e),className:classNames({"wy-active":a})},React.createElement(UIIcon.UI,{name:"dots-vertical"})),React.createElement("div",{className:classNames("wy-dropdown-menu",{"wy-dropdown-menu-end":"left"===t}),hidden:!a},r))},DropdownItem=e=>{var{children:t,className:n="",onClick:r}=e,i=__rest(e,["children","className","onClick"]);return React.createElement("div",Object.assign({className:classNames("wy-dropdown-item",n),onClick:r},i),t)},UIDropdown={UI:Dropdown,Item:DropdownItem};var FUNC_ERROR_TEXT="Expected a function",NAN=NaN,symbolTag="[object Symbol]",reTrim=/^\s+|\s+$/g,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt,freeGlobal="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),objectProto=Object.prototype,objectToString=objectProto.toString,nativeMax=Math.max,nativeMin=Math.min,now=function(){return root.Date.now()};function debounce(e,t,n){var r,i,s,a,o,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT);function p(t){var n=r,s=i;return r=i=void 0,c=t,a=e.apply(s,n)}function f(e){return c=e,o=setTimeout(m,t),u?p(e):a}function g(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=s}function m(){var e=now();if(g(e))return v(e);o=setTimeout(m,function(e){var n=t-(e-l);return d?nativeMin(n,s-(e-c)):n}(e))}function v(e){return o=void 0,h&&r?p(e):(r=i=void 0,a)}function y(){var e=now(),n=g(e);if(r=arguments,i=this,l=e,n){if(void 0===o)return f(l);if(d)return o=setTimeout(m,t),p(l)}return void 0===o&&(o=setTimeout(m,t)),a}return t=toNumber(t)||0,isObject$1(n)&&(u=!!n.leading,s=(d="maxWait"in n)?nativeMax(toNumber(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==o&&clearTimeout(o),c=0,r=l=i=o=void 0},y.flush=function(){return void 0===o?a:v(now())},y}function isObject$1(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function isObjectLike(e){return!!e&&"object"==typeof e}function isSymbol(e){return"symbol"==typeof e||isObjectLike(e)&&objectToString.call(e)==symbolTag}function toNumber(e){if("number"==typeof e)return e;if(isSymbol(e))return NAN;if(isObject$1(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject$1(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(reTrim,"");var n=reIsBinary.test(e);return n||reIsOctal.test(e)?freeParseInt(e.slice(2),n?2:8):reIsBadHex.test(e)?NAN:+e}var lodash_debounce=debounce;function useDebounce(e,t){const n=useRef({cb:e,delay:t});return useEffect((()=>{n.current={cb:e,delay:t}})),useCallback(lodash_debounce(((...e)=>{n.current.delay===t&&n.current.cb(...e)}),t,{leading:!1,trailing:!0}),[t,lodash_debounce])}function useSearchUsers(e,t){const{client:n}=useContext(WeavyContext);if(!n)throw new Error("useSearchUsers must be used within an WeavyProvider");return useQuery("users",(()=>__awaiter(this,void 0,void 0,(function*(){const t=yield n.get("/api/users?q="+e+"&skip=0&top=10");return yield t.json()}))),t)}const Presence=({id:e,status:t})=>React.createElement("span",{className:classNames("wy-presence",{"wy-presence-active":"active"===t}),"data-presence-id":e}),Avatar=({id:e,src:t,name:n,presence:r,size:i=48,className:s})=>React.createElement("div",{className:classNames("wy-avatar-presence",s)},React.createElement("img",{alt:"",title:n,className:"wy-avatar",height:i,width:i,src:t}),r&&e&&React.createElement(Presence,{id:e,status:r})),SearchUsers=({handleSubmit:e,buttonTitle:t})=>{const[n,r]=useState(""),[i,s]=useState([]),{isLoading:a,isError:o,data:l,error:c,isFetching:u,refetch:d}=useSearchUsers(n,{enabled:!1}),h=useDebounce((()=>d()),250);useEffect(h,[n]);const p=e=>{let t=e.currentTarget.querySelector("input[type=checkbox]");t===e.target||e.target.matches("label, input[type=checkbox]")||null==t||t.click()},f=()=>{s([]),r("")};return React.createElement("div",{className:"wy-search wy-scroll-y"},React.createElement("div",{className:"wy-pane-group"},React.createElement("div",{className:"wy-search-form wy-input-group"},React.createElement("input",{className:"wy-search-input wy-input wy-input-filled",value:n,onChange:e=>r(e.target.value),name:"text",placeholder:"Search..."}),React.createElement(UIButton.UI,{type:"reset",onClick:()=>f()},React.createElement(UIIcon.UI,{name:"close-circle"})),React.createElement(UIButton.UI,null,React.createElement(UIIcon.UI,{name:"magnify"})))),React.createElement("div",{className:"wy-pane-group"},l&&(!l.data||0===l.data.length)&&React.createElement("div",{className:"wy-table-no-result"},"Your search did not match any people."),React.createElement("table",{className:"wy-table wy-table-hover wy-search-result-table"},React.createElement("tbody",null,l&&l.data&&l.data.length>0&&l.data.map((e=>{return React.createElement("tr",{key:e.id,onClick:p},React.createElement("td",{className:"wy-table-cell-icon"},React.createElement(Avatar,{src:e.avatar_url,size:24,id:e.id,presence:e.presence,name:e.display_name})),React.createElement("td",{className:"wy-table-cell-text"},React.createElement("label",{htmlFor:"chk"+e.id},e.display_name)),React.createElement("td",{className:"wy-table-cell-icon"},React.createElement("input",{type:"checkbox",id:"chk"+e.id,checked:(t=e.id,null!=i.find((e=>e.id===t))),onChange:t=>((e,t)=>{e.target.checked?s([...i,t]):s(i.filter((e=>e.id!==t.id)))})(t,e)})));var t}))))),React.createElement("div",{className:"wy-footerbars"},React.createElement("div",{className:"wy-footerbar"},React.createElement("div",{className:"wy-pane-group"},React.createElement("div",{className:"wy-buttons"},React.createElement("button",{className:"wy-button wy-button-primary",type:"button",onClick:()=>{e(i),f()},disabled:0===i.length},t))))))};function useMutateMembers(){const{client:e}=useContext(WeavyContext),t=useQueryClient();if(!e)throw new Error("useMutateMembers must be used within an WeavyProvider");return useMutation((({id:t,members:n})=>__awaiter(this,void 0,void 0,(function*(){return yield e.post("/api/apps/"+t+"/members/","POST",JSON.stringify(n))}))),{onSuccess:(e,n,r)=>{t.invalidateQueries("conversations"),t.invalidateQueries(["conversation",n.id]),t.invalidateQueries(["members",n.id])}})}function useConversation(e,t){const{client:n}=useContext(WeavyContext);if(!n)throw new Error("useConversation must be used within an WeavyProvider");return useQuery(["conversation",e],(()=>__awaiter(this,void 0,void 0,(function*(){const t=yield n.get("/api/conversations/"+e);return yield t.json()}))),t)}function useMutateConversationName(){const{client:e}=useContext(WeavyContext),t=useQueryClient();if(!e)throw new Error("useMutateConversationName must be used within an WeavyProvider");return useMutation((({id:t,name:n})=>__awaiter(this,void 0,void 0,(function*(){return(yield e.post("/api/apps/"+t,"PATCH",JSON.stringify({type:"ChatRoom",name:n}))).json()}))),{onSuccess:(e,n,r)=>{t.invalidateQueries("conversations"),t.invalidateQueries(["conversation",n.id])}})}function useMutateRemoveMembers(){const{client:e}=useContext(WeavyContext),{setSelectedConversationId:t}=useContext(MessengerContext),n=useQueryClient();if(!e)throw new Error("useMutateRemoveMembers must be used within an WeavyProvider");return useMutation((({id:t,members:n})=>__awaiter(this,void 0,void 0,(function*(){return yield e.post("/api/apps/"+t+"/members/"+n.join(","),"DELETE",JSON.stringify(n))}))),{onSuccess:()=>{n.invalidateQueries("conversations"),t(null)}})}function useMessages(e,t){const{client:n}=useContext(WeavyContext);if(!n)throw new Error("useMessages must be used within an WeavyProvider");var r=Object.assign(Object.assign({},t),{getNextPageParam:(e,t)=>{if((null==e?void 0:e.end)<(null==e?void 0:e.count))return 25*t.length},select:e=>({pages:[...e.pages].reverse(),pageParams:[...e.pageParams].reverse()})});return useInfiniteQuery(["messages",e],(t=>__awaiter(this,void 0,void 0,(function*(){var r;let i=t.pageParam||0;const s=yield n.get("/api/apps/"+e+"/messages?orderby=createdat+desc&skip="+i+"&top=25");let a=yield s.json();return a.data=(null===(r=a.data)||void 0===r?void 0:r.reverse())||[],a}))),r)}const Attachment=({previewFormat:e,url:t,previewUrl:n,mediaType:r,name:i,kind:s,size:a,provider:o,onClick:l})=>{let c=a>0?fileSizeAsString(a):null,{icon:u,color:d}=getIcon(i);return React.createElement("a",{href:n||t,className:"wy-item wy-item-hover wy-item-lg wy-attachment",target:"_blank",title:i,onClick:l?e=>l(e):void 0},React.createElement(UIIcon.UI,{name:u,color:d,size:2}),React.createElement("div",{className:"wy-item-body wy-attachment-content"},React.createElement("div",{className:"wy-item-title wy-attachment-title"},i),c&&React.createElement("div",{className:"wy-item-text wy-attachment-meta",title:c},c)))};function useMutateReaction(){const{client:e}=useContext(WeavyContext);if(useContext(UserContext),!e)throw new Error("useMutateReaction must be used within an WeavyProvider");return useMutation((({id:t,reaction:n})=>__awaiter(this,void 0,void 0,(function*(){return yield e.post("/api/messages/"+t+"/reactions/","POST",JSON.stringify({content:n}))}))))}const events=[],callbacks={};function useForceUpdate(){const[,e]=useState({});return useCallback((()=>e({})),[])}function useEvents(){const e=useForceUpdate();return{dispatch:(t,n)=>{events.push({event:t,data:n,created:Date.now()}),((t,n)=>{t&&(t.forEach((e=>e(n))),e())})(callbacks[t],n)},on:(e,t)=>(callbacks[e]?callbacks[e].push(t):callbacks[e]=[t],()=>callbacks[e]=callbacks[e].filter((e=>e!==t))),off:(e,t)=>{callbacks[e]=callbacks[e].filter((e=>e!==t))},events:events}}function useReactions(e,t){const{on:n,off:r}=useEvents(),{user:i}=useContext(UserContext),[s,a]=useState([]),o=useCallback((e=>[...new Map(e.map((e=>[e.content,e]))).values()].map((t=>({content:t.content,count:e.filter((e=>e.content===t.content)).length,has_reacted:e.filter((e=>e.content===t.content&&e.created_by_id===i.id)).length>0})))),[s]),l=useCallback((t=>{t.entity.id===e&&a((e=>[...e||[],{content:t.reaction,created_by_id:t.actor.id}]))}),[e,s]),c=useCallback((t=>{t.entity.id===e&&a((e=>e.filter((e=>e.created_by_id!==t.actor.id))))}),[e,s]);return useLayoutEffect((()=>{a(t||[])}),[t]),useEffect((()=>(n("reaction_added_"+e,l),n("reaction_deleted_"+e,c),()=>{r("reaction_added_"+e,l),r("reaction_deleted_"+e,c)})),[e]),{reactionsList:o(s)}}function useMutateDeleteReaction(){const{client:e}=useContext(WeavyContext);if(useContext(UserContext),!e)throw new Error("useMutateDeleteReaction must be used within an WeavyProvider");return useMutation((({id:t,reaction:n})=>__awaiter(this,void 0,void 0,(function*(){return yield e.post("/api/messages/"+t+"/reactions/","DELETE","")}))))}const ReactionsMenu=({id:e,reactions:t})=>{const{reactionsList:n}=useReactions(e,t),r=useMutateReaction(),i=useMutateDeleteReaction(),[s,a]=useState(!1),{options:o}=useContext(WeavyContext),[l,c]=useState(""),u=null==o?void 0:o.reactions;useEffect((()=>{var e=n.find((e=>e.has_reacted));c(e?e.content:"")}),[n]),useEffect((()=>{s?document.addEventListener("click",(()=>{a(!1)})):document.removeEventListener("click",(()=>{a(!1)}))}),[s]);const d=t=>__awaiter(void 0,void 0,void 0,(function*(){const s=n.find((e=>e.has_reacted)),o=t.target.dataset.emoji;s&&(yield i.mutateAsync({id:e,reaction:o})),s&&s.content===o||(yield r.mutateAsync({id:e,reaction:o})),a(!1)}));return React.createElement("div",{className:classNames({"wy-active":s}),style:{position:"relative"}},React.createElement(UIButton.UI,{className:"wy-reaction-menu-button",onClick:e=>{e.stopPropagation(),a(!s)}},React.createElement(UIIcon.UI,{name:"emoticon-plus",size:1.25/1.5})),React.createElement("div",{className:"wy-reaction-menu wy-dropdown-menu",style:{display:s?"block":"none",position:"absolute",top:"-3.25rem"}},React.createElement("div",{className:"wy-reaction-picker"},null==u?void 0:u.map(((e,t)=>React.createElement(UIButton.UI,{key:t,onClick:d,className:classNames("wy-button-icon wy-reaction-button",{"wy-active":l===e}),"data-emoji":e},e))))))},ReactionsList=({id:e,reactions:t})=>{const{reactionsList:n}=useReactions(e,t);let r=n.reduce(((e,t)=>e+t.count),0);return React.createElement(React.Fragment,null,!!n&&n.map(((e,t)=>React.createElement("span",{key:t,className:"wy-reaction",title:e.count.toString()},e.content))),r>1&&React.createElement("span",{className:"wy-reaction-count"},r))},SeenBy=({seenBy:e})=>React.createElement(React.Fragment,null,e&&e.length>0&&React.createElement("div",{className:"wy-readby-status"},e.map((e=>{const t=dayjs.utc(e.marked_at).tz(dayjs.tz.guess());return React.createElement(Avatar,{name:`Seen by ${e.display_name} at ${t.format("LLLL")}`,src:e.avatar_url,size:16,key:e.id})})))),MeetingCard=({meeting:e})=>React.createElement("div",{className:"wy-list"},e.ended_at&&React.createElement("div",{className:"wy-item wy-meeting"},React.createElement(UIIcon.UI,{name:"zoom",size:4,color:"#cccccc"}),React.createElement("div",{className:"wy-item-body"},React.createElement("div",{className:"wy-item-title"},"Zoom meeting"),React.createElement("div",{className:"wy-item-body"},React.createElement("div",null,"Ended ",dayjs.utc(e.ended_at).tz(dayjs.tz.guess()).fromNow()),e.recording_url&&React.createElement("div",{className:"wy-meeting-actions"},React.createElement("a",{href:e.recording_url,target:"_blank",className:"wy-button wy-button-primary"},"Play recording"))))),!e.ended_at&&React.createElement("a",{className:"wy-item wy-meeting",href:e.join_url,target:"_blank"},React.createElement(UIIcon.UI,{name:"zoom",color:"#4a8cff",size:4}),React.createElement("div",{className:"wy-item-body"},React.createElement("div",{className:"wy-item-title"},"Zoom meeting"),React.createElement("div",{className:"wy-item-body"},React.createElement("div",null,"ID: ",`${e.provider_id.substring(0,3)}-${e.provider_id.substring(3,6)}-${e.provider_id.substring(6)}`),React.createElement("div",{className:"wy-meeting-actions"},React.createElement(UIButton.UI,{className:"wy-button-primary"},"Join meeting"))))));function usePreview(e){const{openPreview:t,closePreview:n}=useContext(PreviewContext);return{open:n=>{t(e,n)},close:()=>{n()}}}const Message=({id:e,html:t,temp:n,me:r,avatar:i,name:s,created_at:a,created_by:o,attachments:l,meeting:c,parentId:u,reactions:d,seenBy:h,chatRoom:p})=>{const{open:f,close:g}=usePreview(l);let m=null==l?void 0:l.filter((e=>"image"===e.kind&&e.thumbnail_url)),v=null==l?void 0:l.filter((e=>"image"!==e.kind||!e.thumbnail_url));const y=dayjs.utc(a).tz(dayjs.tz.guess()),b=(e,t)=>{e.preventDefault(),f(t)};return React.createElement(React.Fragment,null,React.createElement("div",{className:classNames("wy-message",{"wy-message-me":r})},!r&&React.createElement("div",{className:"wy-message-author"},i&&React.createElement(Avatar,{src:i,size:32,name:s})),React.createElement("div",{className:"wy-message-content"},React.createElement("div",{className:"wy-message-meta"},p&&!r&&React.createElement("span",null,o," · "),React.createElement("time",{dateTime:a,title:y.format("LLLL")},y.fromNow())),React.createElement("div",{className:"wy-message-bubble"},n&&React.createElement("div",{className:"wy-content"},t),!n&&React.createElement(React.Fragment,null,m&&!!m.length&&React.createElement(ImageGrid,null,m.map((e=>React.createElement(Image,{onClick:t=>b(t,e.id),key:e.id,src:e.download_url,previewSrc:e.preview_url,width:e.width,height:e.height})))),t&&React.createElement("div",{className:"wy-content",dangerouslySetInnerHTML:{__html:t||""}}),c&&React.createElement(MeetingCard,{meeting:c}),v&&!!v.length&&React.createElement("div",{className:"wy-list-items wy-attachments"},v.map((e=>React.createElement(Attachment,{key:e.id,onClick:t=>b(t,e.id),name:e.name,previewFormat:e.kind,provider:e.provider,url:e.download_url,previewUrl:e.provider?e.external_url:e.preview_url,mediaType:e.media_type,kind:e.kind,size:e.size})))),React.createElement("div",{className:"wy-reactions-line"},React.createElement("div",{className:"wy-reactions"},React.createElement(ReactionsList,{id:e,parentId:u,reactions:d})),!n&&React.createElement(ReactionsMenu,{id:e,reactions:d})))))),React.createElement(SeenBy,{id:e,parentId:u,seenBy:h,createdAt:a}))};function createScroller(e,t){var n=getScrollParent$1(e);n.style.overflowAnchor="none";var r=n===document.documentElement?document:n;t??=()=>Promise.reject(new Error("No scroller handler function defined"));const i=new IntersectionObserver(((e,n)=>{e.forEach((function(e){e.isIntersecting&&t()}))}),{root:r,threshold:0,rootMargin:"500px"});return i.observe(e),i}function createReverseScroller(e,t){let n=!1;var r=getScrollParent$1(e);r.style.overflowAnchor="none";var i=r===document.documentElement?document:r;t??=()=>Promise.reject(new Error("No reverse scroller handler function defined"));const s=new IntersectionObserver(((e,i)=>{e.forEach((function(e){if(e.isIntersecting&&!n){n=!0;var i=getNextPositionedChild(e.target),s=r.scrollHeight,a=i.offsetTop;let o=()=>{queueMicrotask((()=>{if(s!==r.scrollHeight){let e=i.offsetTop-a;r.scrollTop+=e,requestAnimationFrame((()=>n=!1))}else queueMicrotask((()=>{if(s!==r.scrollHeight){let e=i.offsetTop-a;r.scrollTop+=e,requestAnimationFrame((()=>n=!1))}else requestAnimationFrame((()=>{let e=i.offsetTop-a;r.scrollTop+=e,requestAnimationFrame((()=>n=!1))}))}))}))},l=t();l?l.then(o):o()}}))}),{root:i,threshold:0,rootMargin:"500px"});return s.observe(e),s}function getNextPositionedChild(e){for(;e=e?.nextElementSibling;)if(!1===/absolute|sticky|fixed/.test(getComputedStyle(e).position))return e}function getScrollParent$1(e){if(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|overlay|scroll)/;if("fixed"===t.position)return document.scrollingElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i}return document.scrollingElement}function getScrollParent(e,t){if(e){var n=getComputedStyle(e),r="absolute"===n.position,i=t?/(auto|scroll|overlay|hidden)/:/(auto|overlay|scroll)/;if("fixed"===n.position)return document.scrollingElement;for(var s=e;s=s.parentElement;)if(n=getComputedStyle(s),(!r||"static"!==n.position)&&i.test(n.overflow+n.overflowY+n.overflowX))return s}return document.scrollingElement}function isParentAtBottom(e,t){if(e){t??=32;let n=getScrollParent(e);return Math.abs(n.scrollTop+n.clientHeight-n.scrollHeight)<=t}return!1}function scrollParentToBottom(e,t){if(e){let n=getScrollParent(e);n.scrollTop+n.clientHeight!==n.scrollHeight&&(t?n.scrollTo({top:n.scrollHeight,left:0,behavior:"smooth"}):n.scrollTop=n.scrollHeight)}}function useFileUploader(e){const{client:t}=useContext(WeavyContext);if(!t)throw new Error("useFileUploader must be used within an WeavyProvider");return useMutation((({request:n})=>__awaiter(this,void 0,void 0,(function*(){const r=new FormData;r.append("blob",n.file);const i=yield t.post("/api/blobs","POST",r,"");var s=yield i.json();e(s)}))),{onError:e=>{},onSuccess:(e,t)=>{}})}const File=({id:e,name:t,className:n,icon:r})=>React.createElement(React.Fragment,null,React.createElement(UIIcon.UI,{name:r,size:1}),React.createElement("div",{className:n},t),React.createElement("input",{type:"hidden",value:e,name:"blob"}));function useMutateTyping(){const{client:e}=useContext(WeavyContext);if(!e)throw new Error("useMutateTyping must be used within an WeavyProvider");return useMutation((({id:t})=>__awaiter(this,void 0,void 0,(function*(){return yield e.post("/api/conversations/"+t+"/typing","PUT",JSON.stringify({}))}))),{})}function useThrottle(e,t){const n=useRef(e);return useEffect((()=>{n.current=e})),useCallback(lodash_throttle(((...e)=>n.current(...e)),t,{leading:!0,trailing:!1}),[t])}function useMutateMeeting(){const{client:e}=useContext(WeavyContext);if(useQueryClient(),!e)throw new Error("useMutateMeeting must be used within an WeavyProvider");return useMutation((({provider:t})=>__awaiter(this,void 0,void 0,(function*(){return(yield e.post("/api/meetings","POST",JSON.stringify({provider:t}))).json()}))),{onSuccess:e=>{}})}const Meetings=({onMeetingAdded:e})=>{const{options:t}=useContext(WeavyContext),{user:n}=useContext(UserContext),r=useMutateMeeting();useEffect((()=>(window.addEventListener("message",i),()=>{window.removeEventListener("message",i)})),[e]);const i=t=>__awaiter(void 0,void 0,void 0,(function*(){if("zoom-signed-in"===t.data.name){var n=yield r.mutateAsync({provider:"zoom"});e(n)}}));return React.createElement(React.Fragment,null,(null==t?void 0:t.zoomAuthenticationUrl)&&React.createElement(UIButton.UI,{onClick:()=>{window.open(`${null==t?void 0:t.zoomAuthenticationUrl}&state=${n.id}`,"zoomAuthWin","height=640,width=480")},title:"Add Zoom meeting"},React.createElement(UIIcon.UI,{name:"zoom"})))},Meeting=({id:e,title:t,className:n})=>React.createElement(React.Fragment,null,React.createElement(UIIcon.UI,{name:"zoom"}),React.createElement("div",{className:n},"Zoom meeting"),React.createElement("input",{type:"hidden",value:e,name:"meeting"}));function useMutateExternalBlobs(){const{client:e}=useContext(WeavyContext);if(useQueryClient(),!e)throw new Error("useMutateExternalBlobs must be used within an WeavyProvider");return useMutation((({blobs:t})=>__awaiter(this,void 0,void 0,(function*(){return(yield e.post("/api/blobs/external","POST",JSON.stringify(t))).json()}))),{onSuccess:e=>{}})}function S4(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function isObject(e){return"[object Object]"===Object.prototype.toString.call(e)}function isPlainObject(e){var t,n;return!1!==isObject(e)&&(void 0===(t=e.constructor)||!1!==isObject(n=t.prototype)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf"))}function eqJQuery(e,t){return e&&t&&e.jquery&&t.jquery&&e.jquery===t.jquery&&e.length===t.length&&e.length===e.filter(t).length}function eqObjects(e,t,n){if(!isPlainObject(e)||!isPlainObject(t))return!1;var r=Object.getOwnPropertyNames(e),i=Object.getOwnPropertyNames(t);if(!n&&r.length!==i.length)return!1;for(var s=0;s<r.length;s++){var a=r[s],o=e[a],l=t[a];if(o!==l&&!eqJQuery(o,l)&&!eqObjects(o,l,n))return!1}return!0}function WeavyPromiseWrapper(e){var t,n="pending",r=function(){return t};return r.promise=r.bind(r),r.state=function(){return n},(r.reset=function(){var i,s;return n="pending",t=new Promise((function(e,t){i=function(){n="resolved",e.apply(this,arguments)},s=function(){n="rejected",t.apply(this,arguments)}})),t.weavy=!0,r.resolve=function(){return i.apply(t,arguments),r},r.reject=function(){return s.apply(t,arguments),r},"function"==typeof e&&e(i,s),r})(),r.then=function(){return(t=t.then.apply(t,arguments)).weavy=!0,r},r.catch=function(){return(t=t.catch.apply(t,arguments)).weavy=!0,r},r.finally=function(){return(t=t.finally.apply(t,arguments)).weavy=!0,r},r}function WeavyPostal(e){var t=this;this.timeout=e&&e.timeout||2e3;var n=[],r=new Set,i=new Map,s=new WeakMap,a=new WeakMap,o=new WeakMap,l=new WeakMap,c=new WeavyPromiseWrapper,u=null,d=h(window.location.href);function h(e){var t=null;try{t=/^((?:https?:\/\/[^/]+)|(?:file:\/\/))\/?/.exec(e)[1]}catch(e){console.error("Unable to resolve location origin. Make sure you are using http, https or file protocol and have a valid location URL.")}return t}function p(e,t){var r=e.source===window&&e.origin===d;if(t||=s.has(e.source)&&e.origin===s.get(e.source),r||t){var i=!e.data.weavyId||!0===e.data.weavyId;t&&!e.data.windowName&&(e.data.windowName=a.get(e.source));var o=e.data.name;if("distribute"===o){if(u)return;e.data.name=e.data.distributeName}n.forEach((function(t){var n=t.name===o||"message"===t.name,r=null===t.selector,s=t.selector===e.data.weavyId,a=isPlainObject(t.selector)&&eqObjects(t.selector,e.data,!0);n&&(i||r||s||a)&&(t.handler(e,e.data),t.once&&g(t.name,t.selector,t.handler))}))}}function f(e,t,r){"function"==typeof arguments[1]&&(r=arguments[1],t=null),n.push({name:e,handler:r,selector:t})}function g(e,t,r){"function"==typeof arguments[1]&&(r=arguments[1],t=null),n=n.filter((function(n){var i=e===n.name,s=r===n.handler,a="string"==typeof t&&t===n.selector,o=isPlainObject(t)&&eqObjects(t,n.selector);return!(i&&s&&(null===t||a||o))}))}function m(e,t){if(i.has(t)){if(i.get(t).has(e)){var n=i.get(t).get(e);try{r.delete(n),a.delete(n),o.delete(n),s.delete(n)}catch(e){}}if(i.get(t).delete(e),0===i.get(t).size)try{i.delete(t)}catch(e){}}}function v(e,n,r){var i=new WeavyPromiseWrapper;null===r&&(r=void 0);var a=e===window.self,o=a?h(window.location.href):s.get(e);return a||e&&o===l.get(e)?(n.weavyMessageId||(n.weavyMessageId=S4()+S4()),queueMicrotask((()=>{console.debug("whenPostMessage",n.name,n.weavyMessageId);var s=setTimeout((function(){"pending"===i.state()&&i.reject(new Error("postMessage() receipt timed out: "+n.weavyMessageId+", "+n.name))}),t.timeout||2e3);f("message-receipt",{weavyId:n.weavyId,weavyMessageId:n.weavyMessageId},(function(){console.debug("message-receipt received",n.weavyMessageId,n.name),clearTimeout(s),i.resolve()}));try{e.postMessage(n,o,r)}catch(e){i.reject(e)}}))):i.reject(new Error("postMessage() Invalid window origin: "+o+", "+n.name)),i()}window.addEventListener("message",(function(e){if(e.data.name&&void 0!==e.data.weavyId){if(e.data.weavyMessageId&&"message-receipt"!==e.data.name&&"unready"!==e.data.name){console.debug("sending message receipt",e.data.weavyMessageId,e.data.name);try{e.source.postMessage({name:"message-receipt",weavyId:e.data.weavyId,weavyMessageId:e.data.weavyMessageId},e.origin)}catch(e){console.error("could not post back message-receipt to source")}}switch(e.data.name){case"register-child":if(o.has(e.source)||console.warn("register-child: contentwindow not pre-registered"),s.get(e.source)!==e.origin)return void console.error("register-child: "+a.get(e.source)+" has invalid origin",e.origin);try{var t=o.get(e.source),n=a.get(e.source);n&&e.source.postMessage({name:"register-window",windowName:n,weavyId:t||!0},e.origin)}catch(e){console.error("could not register frame window",t,n,e)}break;case"ready":i.has(e.data.weavyId)&&a.has(e.source)&&i.get(e.data.weavyId).get(a.get(e.source))&&(l.set(e.source,e.origin),p(e));break;case"unready":i.has(e.data.weavyId)&&p(e,!0);break;default:(e.source===window||i.size)&&p(e)}}})),this.on=f,this.one=function(e,t,r){"function"==typeof arguments[1]&&(r=arguments[1],t=null),n.push({name:e,handler:r,selector:t,once:!0})},this.off=g,this.registerContentWindow=function(e,t,n,l){try{if(!t)return void console.error("registerContentWindow() No valid contentWindow to register, must be a window and have a name.")}catch(e){console.error("registerContentWindow() cannot access contentWindowName")}e.self&&(e=e.self),n&&"true"!==n||(n=!0),i.has(n)||i.set(n,new Map),i.get(n).set(t,e),r.add(e),a.set(e,t),o.set(e,n),s.set(e,l)},this.unregisterContentWindow=m,this.unregisterAll=function(e){i.has(e)&&(i.get(e).forEach((function(t,n){m(n,e)})),i.get(e),i.delete(e))},this.postToFrame=function(e,t,n,r){if("object"==typeof n&&n.name){var s;try{s=i.get(t).get(e)}catch(n){console.error("postToFrame() Window not registered",t,e)}return n.weavyId=t,v(s,n,r)}console.error("postToFrame() Invalid message format",n)},this.postToSelf=function(e,t){if("object"==typeof e&&e.name)return e.weavyId=e.weavyId||!0,v(window.self,e,t);console.error("postToSelf() Invalid message format",e)},this.postToSource=function(e,t,n){if(e.source&&void 0!==e.data.weavyId){var r=e.source===window.self&&e.origin===d,i=s.has(e.source)&&e.origin===s.get(e.source);if(null===n&&(n=void 0),r||i){t.weavyId=e.data.weavyId;try{e.source.postMessage(t,e.origin,n)}catch(e){console.error("postToSource() Could not post message back to source")}}}},this.postToChildren=function(e,t){"object"==typeof e&&e.name?(null===t&&(t=void 0),e.distributeName=e.name,e.name="distribute",e.weavyId=e.weavyId||!0,r.forEach((function(n){if(s.get(n)===l.get(n))try{n.postMessage(e,s.get(n),t)}catch(e){console.warn("postToChildren() could not distribute message to "+a.get(n))}}))):console.error("postToChildren() Invalid message format",e)},this.whenLeader=function(){return c()},Object.defineProperty(this,"isLeader",{get:function(){return u}}),"pending"===c.state()&&(u=!0,c.resolve(u))}window.addEventListener("unhandledrejection",(function(e){e.promise.weavy&&e.preventDefault()})),WeavyPromiseWrapper.resolve=function(e){var t=WeavyPromiseWrapper();return t.resolve(e),t},WeavyPromiseWrapper.reject=function(e){var t=WeavyPromiseWrapper();return t.reject(e),t};var WeavyPostal$1=new WeavyPostal;const FileBrowser=({onFileAdded:e})=>{const{options:t}=useContext(WeavyContext),[n,r]=useState(!1),[i,s]=useState(!1),[a,o]=useState(""),l=useMutateExternalBlobs(),c=(null==t?void 0:t.filebrowserUrl)||"",u=useCallback((e=>{null!==e&&null!=e.contentWindow&&WeavyPostal$1.registerContentWindow(e.contentWindow.self,"weavy-filebrowser","wy-filebrowser",new URL(c).origin)}),[]);useEffect((()=>{var e;const t=null===(e=window.top)||void 0===e?void 0:e.document.location.origin,n=c+"?origin="+t+"&v=X&t="+Date.now().toString()+"&weavyId=wy-filebrowser";return o(n),WeavyPostal$1.on("add-external-blobs",d),WeavyPostal$1.on("request:file-browser-close",h),()=>{WeavyPostal$1.off("add-external-blobs",d),WeavyPostal$1.off("request:file-browser-close",h)}}),[e]);const d=(t,n)=>__awaiter(void 0,void 0,void 0,(function*(){var t=yield l.mutateAsync({blobs:n.blobs});e(t),p()})),h=()=>{p()},p=()=>{r(!1),s(!1)};return React.createElement(React.Fragment,null,(null==t?void 0:t.enableCloudFiles)&&React.createElement(React.Fragment,null,React.createElement(UIButton.UI,{onClick:()=>{r(!0)},title:"Add file from cloud"},React.createElement(UIIcon.UI,{name:"cloud"})),React.createElement(UIOverlay.UI,{isOpen:n,className:"wy-modal wy-panel wy-loaded"},!i&&React.createElement(UISpinner.UI,{overlay:!0}),React.createElement("iframe",{ref:u,onLoad:()=>{s(!0)},src:a,className:"wy-panel-frame",id:"weavy-filebrowser",name:"weavy-filebrowser"}))))},ConversationForm=({conversationId:e,handleInsert:t})=>{const[n,r]=useState(""),[i,s]=useState(""),[a,o]=useState(0),[l,c]=useState(1),[u,d]=useState(!1),h=useQueryClient(),[p,f]=useState([]),[g,m]=useState([]),[v,y]=useState(!1),b=useMutateTyping(),_=useRef(null);let w;const{mutateAsync:E,isSuccess:S}=useFileUploader((e=>{flushSync((()=>{e.status&&200!==e.status?y(e.detail):f([...p,e[0]])}))}));useEffect((()=>{let t=h.getQueryData(["form-text",e])||"";r(t);let n=h.getQueryData(["form-attachments",e])||[];f(n)}),[e]),useEffect((()=>{h.setQueryData(["form-attachments",e],p)}),[p]),useEffect((()=>{x()}),[n]);const C=i=>{("keydown"!==i.type||"Enter"===i.key&&i.ctrlKey)&&(i.preventDefault(),i.stopPropagation(),""===n&&0===p.length&&0===g.length||(t(n,p,g),r(""),s(""),f([]),m([]),h.setQueryData(["form-text",e],""),h.setQueryData(["form-attachments",e],[])))},A=(e,t)=>{s(""),f(p.filter((t=>t.id!==e)))},P=(e,t)=>{m(g.filter((t=>t.id!==e)))},x=()=>{if(_.current&&_.current.parentNode){_.current.parentNode.dataset.replicatedValue=_.current.value}};return React.createElement("form",{className:"wy-message-form"},v&&React.createElement("div",null,v),(u||p.length>0||g.length>0)&&React.createElement("div",null,u&&React.createElement("div",null,"Now uploading (",l," of ",a,") selected files"),React.createElement("div",{className:"wy-picker-list"},p.map((e=>{let{icon:t}=getIcon(e.name);return React.createElement("div",{key:e.id,className:"wy-picker-list-item"},React.createElement(File,{id:e.id,name:e.name,className:"wy-picker-list-item-title",icon:t}),React.createElement(UIButton.UI,{onClick:A.bind(ConversationForm,e.id)},React.createElement(UIIcon.UI,{name:"close-circle"})))})),g.map((e=>React.createElement("div",{key:e.id,className:"wy-picker-list-item"},React.createElement(Meeting,{id:e.id,title:e.provider,className:"wy-picker-list-item-title"}),React.createElement(UIButton.UI,{onClick:P.bind(ConversationForm,e.id)},React.createElement(UIIcon.UI,{name:"close-circle"}))))))),React.createElement("div",{className:"wy-message-editor-inputs"},React.createElement("div",{className:"wy-message-editor-buttons"},React.createElement("input",{type:"file",ref:e=>w=e,value:i,onChange:e=>__awaiter(void 0,void 0,void 0,(function*(){y(!1),s(e.target.value),o(e.target.files.length),d(!0);for(var t=0;t<e.target.files.length;t++){c(t+1);const n=e.target.files[t];yield E({request:{file:n}})}d(!1)})),multiple:!0,hidden:!0,tabIndex:-1}),React.createElement(UIButton.UI,{title:"Upload attachment",onClick:e=>{null==w||w.click()}},React.createElement(UIIcon.UI,{name:"attachment"})),React.createElement(Meetings,{onMeetingAdded:e=>{g.length>0||m([...g,e])}}),React.createElement(FileBrowser,{onFileAdded:e=>{f([...p,...e])}})),React.createElement("div",{className:"wy-message-editor-text wy-message-editor-grow"},React.createElement("textarea",{rows:1,ref:_,className:"wy-message-editor-textfield wy-message-editor-textcontent",value:n,onChange:t=>{h.setQueryData(["form-text",e],t.target.value),r(t.target.value)},onKeyDown:C,onKeyPress:useThrottle((()=>{b.mutate({id:e})}),4e3)})),React.createElement("div",{className:"wy-message-editor-buttons"},React.createElement(UIButton.UI,{type:"button",onClick:C},React.createElement(UIIcon.UI,{color:"primary",name:"send"})))))};function useMutateRead(){const{client:e}=useContext(WeavyContext),t=useQueryClient();if(!e)throw new Error("useMutateUnread must be used within an WeavyProvider");return useMutation((({id:t,read:n,messageId:r})=>__awaiter(this,void 0,void 0,(function*(){const i=n?`/api/conversations/${t}/read?messageId=${r}`:`/api/conversations/${t}/read`;return(yield e.post(i,n?"PUT":"DELETE","")).json()}))),{onSuccess:()=>{t.invalidateQueries("conversations")}})}function useMutateMessage(){const{client:e}=useContext(WeavyContext),t=useQueryClient();if(!e)throw new Error("useMutateMessage must be used within an WeavyProvider");return useMutation((({id:t,text:n,userId:r,attachments:i,meetings:s})=>__awaiter(this,void 0,void 0,(function*(){return(yield e.post("/api/apps/"+t+"/messages","POST",JSON.stringify({text:n,blobs:i.map((e=>e.id)),meeting_id:s.length>0?s[0].id:null}))).json()}))),{onSuccess:(e,n,r)=>{var i;const s=t.getQueryData(["messages",n.id]);if(s&&s.pages){const a=null!==(i=s.pages.map(((t,n)=>(0===n&&(t.data=[...t.data.filter((e=>e.id!==r.tempId)),e]),t))))&&void 0!==i?i:[];t.setQueryData(["messages",n.id],(e=>({pages:a,pageParams:e.pageParams})))}t.invalidateQueries("conversations")},onMutate:e=>__awaiter(this,void 0,void 0,(function*(){yield t.cancelQueries(["messages",e.id]);const n=t.getQueryData(["messages",e.id]),r=Math.random();if(n&&n.pages.length>0){var i=n.pages[0];let s=[...i.data||[],{id:r,text:e.text,html:e.text,display_name:"",temp:!0,parent_id:null,created_by:{id:e.userId},created_at:(new Date).toUTCString(),attachments:[],reactions:[],reactions_count:0}];i.data=s,t.setQueryData(["messages",e.id],(e=>{let t=[i];return(null==e?void 0:e.pages.length)>1&&(t=[i,...null==e?void 0:e.pages.slice(1)]),{pages:t,pageParams:null==e?void 0:e.pageParams}}))}return{tempId:r}}))})}const Messages=({id:e,members:t,displayName:n,avatarUrl:r,lastMessageId:i,chatRoom:s})=>{var a;const{user:o}=useContext(UserContext),l=useQueryClient(),{client:c}=useContext(WeavyContext),u=useRef(),d=useRef(),[h,p]=useState(),{dispatch:f,on:g,events:m}=useEvents(),{isLoading:v,isError:y,data:b,error:_,fetchNextPage:w,hasNextPage:E,isFetching:S,isFetchingNextPage:C}=useMessages(e,{}),A=useMutateRead(),P=useMutateMessage();useLayoutEffect((()=>(e&&!v?(scrollParentToBottom(d.current),requestAnimationFrame((()=>requestAnimationFrame((()=>scrollParentToBottom(d.current))))),null==a||a.disconnect(),a=createReverseScroller(u.current,(()=>{if(E)return w().then((()=>new Promise((e=>p(e)))))}))):(null==a||a.disconnect(),a=null),()=>{null==a||a.disconnect(),a=null})),[e,v]),useLayoutEffect((()=>{!C&&h&&(h(),p(null))}),[b]),useEffect((()=>{e&&i&&A.mutate({id:e,read:!0,messageId:i})}),[e,i]),useEffect((()=>(e&&(null==c||c.subscribe(`a${e}`,"message_created",R),null==c||c.subscribe(`a${e}`,"conversation_marked",M),null==c||c.subscribe(`a${e}`,"reaction_added",x),null==c||c.subscribe(`a${e}`,"reaction_removed",T)),()=>{if(e){l.getQueryData(["messages",e])&&l.setQueryData(["messages",e],(e=>({pages:null==e?void 0:e.pages.slice(0,1),pageParams:[void 0]}))),null==c||c.unsubscribe(`a${e}`,"message_created",R),null==c||c.unsubscribe(`a${e}`,"conversation_marked",M),null==c||c.unsubscribe(`a${e}`,"reaction_added",x),null==c||c.unsubscribe(`a${e}`,"reaction_removed",T)}})),[e]);const x=useCallback((e=>{f("reaction_added_"+e.entity.id,e)}),[e]),T=useCallback((e=>{f("reaction_deleted_"+e.entity.id,e)}),[e]),M=t=>__awaiter(void 0,void 0,void 0,(function*(){let t=isParentAtBottom(u.current);l.invalidateQueries(["members",e]),t&&requestAnimationFrame((()=>scrollParentToBottom(u.current,!0)))})),R=useCallback((t=>{var n;if(t.message.app_id!==e||t.message.created_by_id===o.id)return;t.message.created_by=t.actor,A.mutate({id:e,read:!0,messageId:t.message.id});const r=l.getQueryData(["messages",e]);if(r&&r.pages){let i=isParentAtBottom(u.current);const s=null!==(n=r.pages.map(((e,n)=>(0===n&&(e.data=[...e.data,t.message]),e))))&&void 0!==n?n:[];l.setQueryData(["messages",e],(e=>({pages:s,pageParams:e.pageParams}))),i&&requestAnimationFrame((()=>requestAnimationFrame((()=>scrollParentToBottom(u.current,!0)))))}}),[e]);let L=React.createElement("div",{className:"wy-avatar-header"},r&&n&&React.createElement(Avatar,{src:r,name:n,id:e,size:128})||"",n&&React.createElement("div",{className:"wy-headline"},n)||""),I=React.createElement(UIButton.UI,{onClick:()=>w(),disabled:!E||C,className:"wy-message-readmore"},"Load more"),k=React.createElement(React.Fragment,null,React.createElement("div",{className:"wy-message-readmore",ref:u},C?"Loading more...":E?I:L),b&&t&&b.pages&&b.pages.map(((n,r)=>{var i;return React.createElement(React.Fragment,{key:b.pages.length-r},null===(i=n.data)||void 0===i?void 0:i.map((n=>React.createElement(Message,{key:n.id,id:n.id,html:n.html,temp:n.temp,me:n.created_by.id===o.id,avatar:n.created_by.avatar_url,name:n.created_by.display_name,created_at:n.created_at,created_by:n.created_by.display_name,attachments:n.attachments,meeting:n.meeting,parentId:e,reactions:n.reactions,chatRoom:s,seenBy:t.data&&t.data.length>0?t.data.filter((e=>e.marked_id===n.id&&e.id!==o.id)):[]}))))})),React.createElement("div",{ref:d}));return v&&(k=React.createElement("div",null,"Loading messages...")),React.createElement(React.Fragment,null,React.createElement("div",{id:"container",className:"wy-messages"},k),React.createElement("div",{className:"wy-footerbar wy-footerbar-sticky wy-message-editor wy-message-editor-bottom"},React.createElement(ConversationForm,{key:e,conversationId:e,handleInsert:(t,n,r)=>{P.mutate({id:e,text:t,userId:o.id,attachments:n,meetings:r},{onSuccess:t=>{A.mutate({id:e,read:!0,messageId:t.id}),requestAnimationFrame((()=>scrollParentToBottom(d.current,!0)))}}),requestAnimationFrame((()=>scrollParentToBottom(u.current,!0)))}})))},Conversation=({id:e,showBackButton:t})=>{var n;const r=useQueryClient(),{client:i}=useContext(WeavyContext),{selectedConversationId:s,setSelectedConversationId:a}=useContext(MessengerContext),{user:o}=useContext(UserContext),[l,c]=useState(!1),[u,d]=useState(!1),[h,p]=useState(""),[f,g]=useState(!1),m="edb400ac-839b-45a7-b2a8-6a01820d1c44";if(!i)throw new Error("Weavy Conversation component must be used within an WeavyProvider");const{isLoading:v,data:y}=useConversation(s,{enabled:null!=s}),{isLoading:b,data:_}=useMembers(s,{enabled:null!=s}),w=useMutateMembers(),E=useMutateConversationName(),S=useMutateRemoveMembers(),C=useCallback((e=>{e.app.id===s&&r.invalidateQueries(["conversation",s])}),[s]),A=e=>{c(e)},P=e=>{d(e)};return useEffect((()=>{e&&a(e)}),[e]),useEffect((()=>(s&&i.subscribe(`a${s}`,"app_updated",C),()=>{s&&i.unsubscribe(`a${s}`,"app_updated",C)})),[s]),useEffect((()=>{y&&y.type===m&&p(null==y?void 0:y.display_name),!y||y.type!==m&&"d65dd4bc-418e-403c-9f56-f9cf4da931ed"!==y.type||g(!0)}),[y]),React.createElement(React.Fragment,null,React.createElement("header",{className:"wy-appbars","data-adjust-scrollbar-top":!0},React.createElement("nav",{className:"wy-appbar"},React.createElement("div",null,t&&React.createElement(UIButton.UI,{onClick:()=>{a(null)}},React.createElement(UIIcon.UI,{name:"back"}))),s&&y&&React.createElement(React.Fragment,null,React.createElement("div",{className:"wy-appbar-text"},React.createElement(Typing$1,{id:s,context:"conversation"},y.display_name)),React.createElement(UIDropdown.UI,{directionX:"left"},React.createElement(UIDropdown.Item,{onClick:()=>P(!0)},"Details"),y.type===m&&React.createElement(React.Fragment,null,React.createElement(UIDropdown.Item,{onClick:()=>A(!0)},"Add people"),React.createElement(UIDropdown.Item,{onClick:()=>{S.mutate({id:s,members:[o.id]})}},"Leave conversation")))))),!s&&React.createElement("div",{className:"wy-avatar-header"},React.createElement(Avatar,{src:o.avatar_url,name:o.display_name,presence:o.presence,id:o.id,size:256}),React.createElement("h2",{className:"wy-title"},"Welcome ",o.name,"!"),"Create or select a conversation to get started"),s&&_&&y&&React.createElement(Messages,{id:s,chatRoom:f,members:_,displayName:null==y?void 0:y.display_name,avatarUrl:null==y?void 0:y.avatar_url,lastMessageId:null===(n=null==y?void 0:y.last_message)||void 0===n?void 0:n.id}),React.createElement(UIOverlay.UI,{isOpen:l,className:"wy-modal"},React.createElement("header",{className:"wy-appbars","data-adjust-scrollbar-top":!0},React.createElement("nav",{className:"wy-appbar"},React.createElement(UIButton.UI,{onClick:()=>A(!1)},React.createElement(UIIcon.UI,{name:"close"})),React.createElement("div",{className:"wy-appbar-text"},"Add people"))),React.createElement(SearchUsers,{handleSubmit:e=>__awaiter(void 0,void 0,void 0,(function*(){const t=e.map((e=>e.id));yield w.mutateAsync({id:s,members:t}),c(!1)})),buttonTitle:"Add selected"})),React.createElement(UIOverlay.UI,{isOpen:u,className:"wy-modal"},React.createElement("header",{className:"wy-appbars"},React.createElement("nav",{className:"wy-appbar"},React.createElement(UIButton.UI,{onClick:()=>P(!1)},React.createElement(UIIcon.UI,{name:"close"})),React.createElement("div",{className:"wy-appbar-text"},"Conversation details"))),React.createElement("div",{className:"wy-scroll-y"},y&&React.createElement("div",{className:"wy-avatar-header"},React.createElement(Avatar,{src:null==y?void 0:y.avatar_url,name:h,size:128}),(null==y?void 0:y.type)!==m&&React.createElement("h3",{className:"wy-headline"},null==y?void 0:y.display_name)),(null==y?void 0:y.type)===m&&React.createElement(React.Fragment,null,React.createElement("div",{className:"wy-pane-group"},React.createElement("input",{className:"wy-input",value:h,onChange:e=>(e=>{p(e.target.value),E.mutate({id:s,name:e.target.value})})(e)})),React.createElement("div",{className:"wy-pane-group"},React.createElement("table",{className:"wy-table wy-search-result-table"},React.createElement("tbody",null,_&&_.data&&_.data.map((e=>React.createElement("tr",{key:e.id},React.createElement("td",{className:"wy-table-cell-icon wy-search-result-table-icon"},React.createElement(Avatar,{src:e.avatar_url,name:e.display_name,id:e.id,size:24,presence:e.presence})),React.createElement("td",{className:"wy-table-cell-text"},e.display_name)))))))))))};var Conversation$1=React.memo(Conversation);function useConversations(e){const{client:t}=useContext(WeavyContext);if(!t)throw new Error("useConversations must be used within an WeavyProvider");return useInfiniteQuery("conversations",(e=>__awaiter(this,void 0,void 0,(function*(){let n=e.pageParam||0;const r=yield t.get("/api/conversations?contextual=false&skip="+n+"&top=25");return yield r.json()}))),Object.assign(Object.assign({},e),{getNextPageParam:(e,t)=>{if((null==e?void 0:e.end)<(null==e?void 0:e.count))return 25*t.length}}))}function useMutatePinned(){const{client:e}=useContext(WeavyContext),t=useQueryClient();if(!e)throw new Error("useMutatePinned must be used within an WeavyProvider");return useMutation((({id:t,pin:n})=>__awaiter(this,void 0,void 0,(function*(){return(yield e.post("/api/conversations/"+t+"/pin",n?"PUT":"DELETE","")).json()}))),{onSuccess:()=>{t.invalidateQueries("conversations")}})}const ConversationListItem=({item:e,refetchConversations:t})=>{var n,r,i,s,a,o,l;const{client:c}=useContext(WeavyContext),{setSelectedConversationId:u,selectedConversationId:d}=useContext(MessengerContext),{user:h}=useContext(UserContext),p=useMutateRead(),f=useMutatePinned(),g=useMutateRemoveMembers(),m=dayjs.utc(null===(n=e.last_message)||void 0===n?void 0:n.created_at).tz(dayjs.tz.guess()),v=(null===(r=e.last_message)||void 0===r?void 0:r.html)||"",y=/title=\"(:[^:\s]+:)\"/,b={};null===(i=v.match(/<img[^>]+wy-emoji.+>/g))||void 0===i||i.forEach((e=>{let t=e.match(y)[1];t&&(b[t]=e)}));const _=((null===(s=e.last_message)||void 0===s?void 0:s.text)||"").replace(/:[^:\s]*(?:::[^:\s]*)*:/gi,(e=>b[e])),w="edb400ac-839b-45a7-b2a8-6a01820d1c44",E=useCallback((n=>{n.app.id===e.id&&t()}),[e.id]),S=useCallback((n=>{n.message.app_id===e.id&&t()}),[e.id]),C=useCallback((n=>{n.app.id===e.id&&t()}),[e.id]);useEffect((()=>(null==c||c.subscribe(`a${e.id}`,"app_updated",E),null==c||c.subscribe(`a${e.id}`,"message_created",S),null==c||c.subscribe(`a${e.id}`,"member_added",C),()=>{null==c||c.unsubscribe(`a${e.id}`,"app_updated",E),null==c||c.unsubscribe(`a${e.id}`,"message_created",S),null==c||c.unsubscribe(`a${e.id}`,"member_added",C)})),[e.id]);const A=e.type!==w?e.member_ids.find((e=>e!=h.id)):null,P=t=>{t.preventDefault(),f.mutate({id:e.id,pin:!1})};return React.createElement("div",{className:classNames("wy-item wy-item-lg wy-item-hover wy-conversation",{"wy-unread":e.is_unread,"wy-active":d===e.id}),key:e.id,onClick:t=>((e,t)=>{e.defaultPrevented||(e.preventDefault(),u(t))})(t,e.id)},React.createElement(Avatar,{src:e.avatar_url,id:A||-1,presence:e.type!==w?"away":"",name:e.display_name}),React.createElement("div",{className:"wy-item-body"},React.createElement("div",{className:"wy-item-row"},React.createElement("div",{className:"wy-item-title"},e.display_name),e.last_message&&React.createElement("time",{className:"wy-meta",dateTime:e.last_message.created_at.toString(),title:m.format("LLLL")},m.fromNow())),React.createElement("div",{className:"wy-item-row"},React.createElement("div",{className:"wy-item-text"},React.createElement(Typing$1,{id:e.id,context:"listitem"},_&&React.createElement("span",{className:"wy-typing-hide",dangerouslySetInnerHTML:{__html:_}}),!_&&React.createElement("span",{className:"wy-typing-hide"},(null===(o=null===(a=e.last_message)||void 0===a?void 0:a.attachment_ids)||void 0===o?void 0:o.length)>0&&React.createElement(UIIcon.UI,{name:"attachment",size:1}),(null===(l=e.last_message)||void 0===l?void 0:l.meeting_id)&&React.createElement(UIIcon.UI,{name:"zoom",size:1})))))),React.createElement("div",{className:"wy-item-actions wy-item-actions-bottom"},e.is_pinned&&React.createElement(UIButton.UI,{onClick:P},React.createElement(UIIcon.UI,{name:"pin",size:1/1.5})),React.createElement(UIDropdown.UI,{directionX:"left"},React.createElement(React.Fragment,null,e.is_unread&&React.createElement(UIDropdown.Item,{onClick:t=>{t.preventDefault(),p.mutate({id:e.id,read:!0,messageId:e.last_message.id})}},"Mark as read"),!e.is_unread&&React.createElement(UIDropdown.Item,{onClick:t=>{t.preventDefault(),p.mutate({id:e.id,read:!1,messageId:null})}},"Mark as unread")),React.createElement(React.Fragment,null,e.is_pinned&&React.createElement(UIDropdown.Item,{onClick:P},"Unpin"),!e.is_pinned&&React.createElement(UIDropdown.Item,{onClick:t=>{t.preventDefault(),f.mutate({id:e.id,pin:!0})}},"Pin")),e.type===w&&React.createElement(UIDropdown.Item,{onClick:()=>{g.mutate({id:e.id,members:[h.id]})}},"Leave conversation"))))};function useMutateConversation(){const{client:e}=useContext(WeavyContext),t=useQueryClient();if(!e)throw new Error("useMutateConversation must be used within an WeavyProvider");return useMutation((({members:t})=>__awaiter(this,void 0,void 0,(function*(){return(yield e.post("/api/conversations/","POST",JSON.stringify({members:t}))).json()}))),{onSuccess:()=>{t.invalidateQueries("conversations")}})}const NewConversation=()=>{const[e,t]=useState(!1),n=useMutateConversation();return React.createElement(React.Fragment,null,React.createElement(UIButton.UI,{onClick:()=>{t(!0)}},React.createElement(UIIcon.UI,{name:"plus"})),React.createElement(UIOverlay.UI,{isOpen:e,className:"wy-modal"},React.createElement("header",{className:"wy-appbars","data-adjust-scrollbar-top":!0},React.createElement("nav",{className:"wy-appbar"},React.createElement(UIButton.UI,{onClick:()=>{t(!1)}},React.createElement(UIIcon.UI,{name:"close"})),React.createElement("div",{className:"wy-appbar-text"},"Create conversation"))),React.createElement(SearchUsers,{handleSubmit:e=>__awaiter(void 0,void 0,void 0,(function*(){const r=e.map((e=>e.id));yield n.mutateAsync({members:r}),t(!1)})),buttonTitle:"Next"})))};var NewConversation$1=React.memo(NewConversation);const ConversationList=()=>{const{client:e}=useContext(WeavyContext),{user:t}=useContext(UserContext),{data:n,isLoading:r,refetch:i,fetchNextPage:s,hasNextPage:a,isFetchingNextPage:o}=useConversations({}),l=useRef(),[c,u]=useState();let d;if(!e)throw new Error("Weavy ConversationList component must be used within an WeavyProvider");useLayoutEffect((()=>(r||(null==d||d.disconnect(),d=createScroller(l.current,(()=>{if(a)return s().then((()=>new Promise((e=>u(e)))))}))),()=>{null==d||d.disconnect(),d=null})),[r]),useLayoutEffect((()=>{!o&&c&&(c(),u(null))}),[n]),useEffect((()=>(e.subscribe(null,"app_created",h),e.subscribe(null,"member_added",h),()=>{e.unsubscribe(null,"app_created",h),e.unsubscribe(null,"member_added",h)})),[]);const h=e=>{i()};if(r)return React.createElement("div",null,"Loading Conversation list...");let p=React.createElement(UIButton.UI,{onClick:()=>s(),disabled:!a||o,className:"wy-message-readmore"},"Load more");return React.createElement(React.Fragment,null,React.createElement("header",{className:"wy-appbars","data-adjust-scrollbar-top":!0},React.createElement("nav",{className:"wy-appbar"},React.createElement(Avatar,{src:t.avatar_url,name:t.display_name,presence:t.presence,id:t.id,size:24}),React.createElement("div",null,"Messenger"),React.createElement(NewConversation$1,null))),React.createElement("div",{className:"wy-conversations"},n&&n.pages&&n.pages.map(((e,t)=>{var n;return null===(n=e.data)||void 0===n?void 0:n.map((e=>React.createElement(ConversationListItem,{key:e.id,refetchConversations:i,item:e})))})),React.createElement("div",{className:"wy-message-readmore",ref:l},o?"Loading more...":a?p:"")))},Messenger=({className:e})=>{const{client:t}=useContext(WeavyContext);if(!t)throw new Error("Weavy Messenger component must be used within an WeavyProvider");return React.createElement(MessengerProvider,null,React.createElement("div",{className:classNames("wy-messenger-provider",e)},React.createElement("div",{className:"wy-messenger-sidebar wy-scroll-y"},React.createElement(ConversationList,null)),React.createElement("div",{className:"wy-messenger-conversation wy-scroll-y"},React.createElement(Conversation$1,{id:null}))))};function useBadge(){const{client:e}=useContext(WeavyContext);if(!e)throw new Error("useBadge must be used within an WeavyProvider");return useQuery("badge",(()=>__awaiter(this,void 0,void 0,(function*(){const t=yield e.get("/api/conversations/badge");if(t.ok){return yield t.json()}return null}))))}const ConversationBadge=()=>{const{client:e}=useContext(WeavyContext),[t,n]=useState(0);if(!e)throw new Error("Weavy Badge component must be used within an WeavyProvider");const{isLoading:r,data:i,refetch:s}=useBadge(),a=e=>{s()};return useEffect((()=>{i&&n(i.private+i.rooms)}),[i]),useEffect((()=>(e.subscribe(null,"message_created",a),e.subscribe(null,"conversation_marked",a),()=>{e.unsubscribe(null,"message_created",a),e.unsubscribe(null,"conversation_marked",a)})),[]),React.createElement(React.Fragment,null,!r&&t>0&&React.createElement("span",{className:"wy-badge wy-badge-danger"},t))};function useChat(e,t){const{client:n}=useContext(WeavyContext);if(!n)throw new Error("useChat must be used within an WeavyProvider");return useQuery(["chat",e],(()=>__awaiter(this,void 0,void 0,(function*(){const t=yield n.get("/api/apps/"+e);return yield t.json()}))),t)}const Chat=({uid:e,className:t})=>{var n;const{client:r}=useContext(WeavyContext),[i,s]=useState(null);if(!r)throw new Error("Weavy Chat component must be used within an WeavyProvider");const{isLoading:a,data:o}=useChat(e,{}),{isLoading:l,data:c}=useMembers(i,{enabled:null!=i}),{isLoading:u,data:d}=useConversation(i,{enabled:null!=i});return useEffect((()=>{s(o?o.id:null)}),[o]),React.createElement("div",{className:classNames("wy-messenger-conversation wy-scroll-y",t)},React.createElement("header",{className:"wy-appbars","data-adjust-scrollbar-top":!0},React.createElement("nav",{className:"wy-appbar"},React.createElement("div",null),i&&d&&React.createElement("div",{className:"wy-appbar-text"},React.createElement(Typing$1,{id:i,context:"conversation"},d.display_name)))),!a&&!o&&React.createElement("div",null,"No chat with the contextual id ",React.createElement("strong",null,e)),i&&c&&o&&React.createElement(Messages,{id:i,chatRoom:!0,members:c,lastMessageId:null===(n=o.last_message)||void 0===n?void 0:n.id}))};export{UIButton as Button,Chat,Conversation$1 as Conversation,ConversationBadge,ConversationList,UIDropdown as Dropdown,UIIcon as Icon,Messenger,MessengerContext,MessengerProvider,UIOverlay as Overlay,WeavyClient,WeavyContext,WeavyProvider};
|
|
61
39
|
//# sourceMappingURL=index.js.map
|