@maggioli-design-system/magma 2.1.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +26 -10
- package/CHANGELOG.md +475 -0
- package/README.md +5 -2
- package/agents/assets.md +231 -28
- package/agents/color.md +5 -3
- package/agents/components.md +3 -3
- package/agents/install.md +25 -4
- package/agents/reporting.md +127 -0
- package/agents/theming.md +15 -0
- package/dist/cjs/_commonjsHelpers-CFO10eej.js +7 -0
- package/dist/cjs/{floating-controller-uOCBLTk2.js → floating-controller-D7Ekjocg.js} +18 -4
- package/dist/cjs/{floating-ui.dom-DflSHZIo.js → floating-ui.dom-EMHL7uyZ.js} +146 -94
- package/dist/cjs/icon-MMHcqbgv.js +20 -0
- package/dist/cjs/index-UmmmCMIG.js +40 -40
- package/dist/cjs/index.cjs.js +62 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/magma-components.cjs.js +1 -1
- package/dist/cjs/mds-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar-stack.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar.cjs.entry.js +2 -2
- package/dist/cjs/mds-badge.cjs.entry.js +1 -1
- package/dist/cjs/mds-banner_3.cjs.entry.js +3 -3
- package/dist/cjs/mds-bibliography.cjs.entry.js +1 -1
- package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/mds-button-dropdown.cjs.entry.js +30 -2
- package/dist/cjs/mds-button_3.cjs.entry.js +125 -58
- package/dist/cjs/mds-calendar_2.cjs.entry.js +59 -6
- package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
- package/dist/cjs/mds-card.cjs.entry.js +1 -1
- package/dist/cjs/mds-details.cjs.entry.js +1 -1
- package/dist/cjs/mds-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/mds-emoji.cjs.entry.js +1 -1
- package/dist/cjs/mds-entity.cjs.entry.js +1 -1
- package/dist/cjs/mds-file-preview.cjs.entry.js +1 -1
- package/dist/cjs/mds-file.cjs.entry.js +29 -7520
- package/dist/cjs/mds-filter-item.cjs.entry.js +89 -3
- package/dist/cjs/mds-filter.cjs.entry.js +113 -19
- package/dist/cjs/mds-header-bar.cjs.entry.js +29 -2
- package/dist/cjs/mds-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +38 -2
- package/dist/cjs/mds-hr.cjs.entry.js +1 -1
- package/dist/cjs/mds-img.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date-range.cjs.entry.js +16 -2
- package/dist/cjs/mds-input-date.cjs.entry.js +36 -4
- package/dist/cjs/mds-input-field.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-range.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-select.cjs.entry.js +32 -5
- package/dist/cjs/mds-input-switch_2.cjs.entry.js +21 -8
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-upload.cjs.entry.js +1 -1
- package/dist/cjs/mds-input.cjs.entry.js +12 -3
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +1 -1
- package/dist/cjs/mds-keyboard.cjs.entry.js +1 -1
- package/dist/cjs/mds-kpi-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-label.cjs.entry.js +1 -1
- package/dist/cjs/mds-list-item.cjs.entry.js +2 -3
- package/dist/cjs/mds-mention.cjs.entry.js +1 -1
- package/dist/cjs/mds-modal.cjs.entry.js +32 -5
- package/dist/cjs/mds-note.cjs.entry.js +1 -1
- package/dist/cjs/mds-notification.cjs.entry.js +2 -2
- package/dist/cjs/mds-paginator-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-paginator.cjs.entry.js +1 -1
- package/dist/cjs/mds-policy-ai.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-animation.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-language.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-mode.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-theme-item.cjs.entry.js +4 -3
- package/dist/cjs/mds-pref-theme.cjs.entry.js +29 -2
- package/dist/cjs/mds-pref.cjs.entry.js +24 -53
- package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-features-row.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-features.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-list.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table.cjs.entry.js +1 -1
- package/dist/cjs/mds-progress_2.cjs.entry.js +4 -4
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-push-notification.cjs.entry.js +2 -2
- package/dist/cjs/mds-quote.cjs.entry.js +2 -2
- package/dist/cjs/mds-radial-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-radial-menu.cjs.entry.js +40 -4
- package/dist/cjs/mds-separator.cjs.entry.js +2 -2
- package/dist/cjs/mds-status-bar.cjs.entry.js +2 -2
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +2 -2
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-tab-bar.cjs.entry.js +2 -2
- package/dist/cjs/mds-tab_2.cjs.entry.js +43 -8
- package/dist/cjs/mds-table-body.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-footer.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +116 -77
- package/dist/cjs/mds-table-header.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-row.cjs.entry.js +22 -16
- package/dist/cjs/mds-table.cjs.entry.js +9 -2
- package/dist/cjs/mds-text.cjs.entry.js +37 -27
- package/dist/cjs/mds-toast.cjs.entry.js +2 -2
- package/dist/cjs/mds-tooltip.cjs.entry.js +17 -4
- package/dist/cjs/mds-tree-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-tree.cjs.entry.js +2 -2
- package/dist/cjs/mds-url-view.cjs.entry.js +2 -2
- package/dist/cjs/mds-usage.cjs.entry.js +23 -4
- package/dist/cjs/mds-video-wall.cjs.entry.js +2 -2
- package/dist/cjs/mds-zero.cjs.entry.js +2 -2
- package/dist/cjs/string-RoXIuD3q.js +7 -0
- package/dist/collection/common/floating-controller.js +17 -3
- package/dist/collection/common/hash.js +15 -0
- package/dist/collection/common/navigation.js +60 -0
- package/dist/collection/common/string.js +3 -1
- package/dist/collection/common/yugop/random-text.js +5 -0
- package/dist/collection/components/mds-accordion/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion/documentation.json +1 -1
- package/dist/collection/components/mds-accordion/mds-accordion.css +5 -5
- package/dist/collection/components/mds-accordion-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-item/documentation.json +1 -1
- package/dist/collection/components/mds-accordion-item/mds-accordion-item.css +11 -11
- package/dist/collection/components/mds-accordion-timer/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-timer/documentation.json +1 -1
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.css +2 -2
- package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-timer-item/documentation.json +1 -1
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +6 -6
- package/dist/collection/components/mds-author/AGENTS.md +1 -1
- package/dist/collection/components/mds-author/documentation.json +2 -2
- package/dist/collection/components/mds-author/mds-author.css +2 -1
- package/dist/collection/components/mds-avatar/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar/documentation.json +2 -2
- package/dist/collection/components/mds-avatar/mds-avatar.css +18 -17
- package/dist/collection/components/mds-avatar-stack/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar-stack/documentation.json +1 -1
- package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.css +3 -3
- package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar-stack-item/documentation.json +1 -1
- package/dist/collection/components/mds-avatar-stack-item/mds-avatar-stack-item.css +6 -6
- package/dist/collection/components/mds-badge/AGENTS.md +1 -1
- package/dist/collection/components/mds-badge/documentation.json +1 -1
- package/dist/collection/components/mds-badge/mds-badge.css +13 -13
- package/dist/collection/components/mds-banner/AGENTS.md +1 -1
- package/dist/collection/components/mds-banner/documentation.json +1 -1
- package/dist/collection/components/mds-banner/mds-banner.css +56 -56
- package/dist/collection/components/mds-benchmark-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-benchmark-bar/documentation.json +1 -1
- package/dist/collection/components/mds-bibliography/AGENTS.md +1 -1
- package/dist/collection/components/mds-bibliography/documentation.json +2 -2
- package/dist/collection/components/mds-bibliography/mds-bibliography.css +8 -6
- package/dist/collection/components/mds-breadcrumb/AGENTS.md +1 -1
- package/dist/collection/components/mds-breadcrumb/documentation.json +1 -1
- package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.css +6 -6
- package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-breadcrumb-item/documentation.json +1 -1
- package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.css +14 -13
- package/dist/collection/components/mds-button/AGENTS.md +5 -5
- package/dist/collection/components/mds-button/antipattern.md +20 -2
- package/dist/collection/components/mds-button/documentation.json +5 -5
- package/dist/collection/components/mds-button/mds-button.css +239 -417
- package/dist/collection/components/mds-button/mds-button.js +120 -38
- package/dist/collection/components/mds-button/pattern.md +34 -1
- package/dist/collection/components/mds-button-dropdown/AGENTS.md +2 -2
- package/dist/collection/components/mds-button-dropdown/documentation.json +2 -2
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.css +10 -10
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +12 -1
- package/dist/collection/components/mds-button-group/AGENTS.md +1 -1
- package/dist/collection/components/mds-button-group/documentation.json +1 -1
- package/dist/collection/components/mds-calendar/AGENTS.md +2 -2
- package/dist/collection/components/mds-calendar/documentation.json +2 -2
- package/dist/collection/components/mds-calendar/mds-calendar.css +5 -5
- package/dist/collection/components/mds-calendar/mds-calendar.js +17 -4
- package/dist/collection/components/mds-calendar-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-calendar-cell/documentation.json +1 -1
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.css +58 -58
- package/dist/collection/components/mds-card/AGENTS.md +1 -1
- package/dist/collection/components/mds-card/documentation.json +1 -1
- package/dist/collection/components/mds-card/mds-card.css +2 -2
- package/dist/collection/components/mds-card-content/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-content/documentation.json +1 -1
- package/dist/collection/components/mds-card-footer/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-footer/documentation.json +1 -1
- package/dist/collection/components/mds-card-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-header/documentation.json +1 -1
- package/dist/collection/components/mds-card-media/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-media/documentation.json +1 -1
- package/dist/collection/components/mds-chip/AGENTS.md +1 -1
- package/dist/collection/components/mds-chip/documentation.json +1 -1
- package/dist/collection/components/mds-chip/mds-chip.css +90 -90
- package/dist/collection/components/mds-details/AGENTS.md +1 -1
- package/dist/collection/components/mds-details/documentation.json +1 -1
- package/dist/collection/components/mds-details/mds-details.css +6 -6
- package/dist/collection/components/mds-dropdown/AGENTS.md +1 -1
- package/dist/collection/components/mds-dropdown/documentation.json +2 -2
- package/dist/collection/components/mds-dropdown/mds-dropdown.css +26 -26
- package/dist/collection/components/mds-emoji/AGENTS.md +2 -2
- package/dist/collection/components/mds-emoji/documentation.json +3 -3
- package/dist/collection/components/mds-emoji/mds-emoji.css +5 -5
- package/dist/collection/components/mds-entity/AGENTS.md +1 -1
- package/dist/collection/components/mds-entity/documentation.json +1 -1
- package/dist/collection/components/mds-entity/mds-entity.css +8 -8
- package/dist/collection/components/mds-file/AGENTS.md +2 -2
- package/dist/collection/components/mds-file/documentation.json +3 -3
- package/dist/collection/components/mds-file/mds-file.css +13 -13
- package/dist/collection/components/mds-file/mds-file.js +15 -9
- package/dist/collection/components/mds-file/pattern.md +1 -1
- package/dist/collection/components/mds-file-preview/AGENTS.md +1 -1
- package/dist/collection/components/mds-file-preview/documentation.json +1 -1
- package/dist/collection/components/mds-file-preview/mds-file-preview.css +21 -21
- package/dist/collection/components/mds-filter/AGENTS.md +5 -3
- package/dist/collection/components/mds-filter/documentation.json +3 -3
- package/dist/collection/components/mds-filter/mds-filter.css +16 -16
- package/dist/collection/components/mds-filter/mds-filter.js +97 -19
- package/dist/collection/components/mds-filter/pattern.md +34 -4
- package/dist/collection/components/mds-filter-item/AGENTS.md +9 -8
- package/dist/collection/components/mds-filter-item/documentation.json +4 -4
- package/dist/collection/components/mds-filter-item/mds-filter-item.css +27 -17
- package/dist/collection/components/mds-filter-item/mds-filter-item.js +65 -3
- package/dist/collection/components/mds-filter-item/pattern.md +5 -5
- package/dist/collection/components/mds-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-header/documentation.json +1 -1
- package/dist/collection/components/mds-header/mds-header.css +21 -13
- package/dist/collection/components/mds-header-bar/AGENTS.md +2 -2
- package/dist/collection/components/mds-header-bar/documentation.json +2 -2
- package/dist/collection/components/mds-header-bar/mds-header-bar.css +5 -5
- package/dist/collection/components/mds-header-bar/mds-header-bar.js +12 -1
- package/dist/collection/components/mds-help/AGENTS.md +1 -1
- package/dist/collection/components/mds-help/documentation.json +2 -2
- package/dist/collection/components/mds-help/mds-help.css +1 -1
- package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +2 -2
- package/dist/collection/components/mds-horizontal-scroll/documentation.json +2 -2
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.css +10 -10
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.js +12 -1
- package/dist/collection/components/mds-hr/AGENTS.md +1 -1
- package/dist/collection/components/mds-hr/documentation.json +1 -1
- package/dist/collection/components/mds-hr/mds-hr.css +1 -1
- package/dist/collection/components/mds-icon/AGENTS.md +1 -1
- package/dist/collection/components/mds-icon/documentation.json +2 -2
- package/dist/collection/components/mds-img/AGENTS.md +1 -1
- package/dist/collection/components/mds-img/documentation.json +1 -1
- package/dist/collection/components/mds-img/mds-img.css +6 -6
- package/dist/collection/components/mds-input/AGENTS.md +3 -1
- package/dist/collection/components/mds-input/documentation.json +52 -4
- package/dist/collection/components/mds-input/mds-input.css +133 -62
- package/dist/collection/components/mds-input/mds-input.js +38 -2
- package/dist/collection/components/mds-input/pattern.md +15 -0
- package/dist/collection/components/mds-input-date/AGENTS.md +5 -2
- package/dist/collection/components/mds-input-date/documentation.json +50 -2
- package/dist/collection/components/mds-input-date/mds-input-date.css +52 -26
- package/dist/collection/components/mds-input-date/mds-input-date.js +46 -2
- package/dist/collection/components/mds-input-date-range/AGENTS.md +4 -2
- package/dist/collection/components/mds-input-date-range/documentation.json +50 -2
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +51 -25
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +34 -1
- package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-date-range-preselection/documentation.json +1 -1
- package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.css +18 -18
- package/dist/collection/components/mds-input-field/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-field/documentation.json +1 -1
- package/dist/collection/components/mds-input-field/mds-input-field.css +7 -7
- package/dist/collection/components/mds-input-otp/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-otp/documentation.json +1 -1
- package/dist/collection/components/mds-input-range/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-range/documentation.json +1 -1
- package/dist/collection/components/mds-input-range/mds-input-range.css +13 -12
- package/dist/collection/components/mds-input-select/AGENTS.md +7 -4
- package/dist/collection/components/mds-input-select/documentation.json +58 -7
- package/dist/collection/components/mds-input-select/mds-input-select.css +103 -29
- package/dist/collection/components/mds-input-select/mds-input-select.js +61 -7
- package/dist/collection/components/mds-input-select/pattern.md +3 -3
- package/dist/collection/components/mds-input-switch/AGENTS.md +2 -2
- package/dist/collection/components/mds-input-switch/documentation.json +2 -2
- package/dist/collection/components/mds-input-switch/mds-input-switch.css +86 -65
- package/dist/collection/components/mds-input-switch/mds-input-switch.js +19 -6
- package/dist/collection/components/mds-input-tip/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-tip/documentation.json +1 -1
- package/dist/collection/components/mds-input-tip/mds-input-tip.css +1 -1
- package/dist/collection/components/mds-input-tip-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-tip-item/documentation.json +1 -1
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.css +21 -20
- package/dist/collection/components/mds-input-upload/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-upload/documentation.json +1 -1
- package/dist/collection/components/mds-input-upload/mds-input-upload.css +13 -12
- package/dist/collection/components/mds-keyboard/AGENTS.md +1 -1
- package/dist/collection/components/mds-keyboard/documentation.json +1 -1
- package/dist/collection/components/mds-keyboard/mds-keyboard.css +4 -3
- package/dist/collection/components/mds-keyboard-key/AGENTS.md +1 -1
- package/dist/collection/components/mds-keyboard-key/documentation.json +1 -1
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.css +2 -1
- package/dist/collection/components/mds-kpi/AGENTS.md +1 -1
- package/dist/collection/components/mds-kpi/documentation.json +1 -1
- package/dist/collection/components/mds-kpi-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-kpi-item/documentation.json +1 -1
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.css +13 -13
- package/dist/collection/components/mds-label/AGENTS.md +1 -1
- package/dist/collection/components/mds-label/documentation.json +1 -1
- package/dist/collection/components/mds-label/mds-label.css +12 -12
- package/dist/collection/components/mds-list/AGENTS.md +2 -2
- package/dist/collection/components/mds-list/documentation.json +2 -2
- package/dist/collection/components/mds-list-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-list-item/documentation.json +3 -3
- package/dist/collection/components/mds-list-item/mds-list-item.css +0 -18
- package/dist/collection/components/mds-list-item/mds-list-item.js +1 -2
- package/dist/collection/components/mds-list-item/pattern.md +11 -0
- package/dist/collection/components/mds-mention/AGENTS.md +1 -1
- package/dist/collection/components/mds-mention/documentation.json +1 -1
- package/dist/collection/components/mds-mention/mds-mention.css +2 -2
- package/dist/collection/components/mds-modal/AGENTS.md +2 -2
- package/dist/collection/components/mds-modal/documentation.json +2 -2
- package/dist/collection/components/mds-modal/mds-modal.css +5 -5
- package/dist/collection/components/mds-modal/mds-modal.js +14 -3
- package/dist/collection/components/mds-note/AGENTS.md +1 -1
- package/dist/collection/components/mds-note/documentation.json +1 -1
- package/dist/collection/components/mds-note/mds-note.css +3 -3
- package/dist/collection/components/mds-notification/AGENTS.md +1 -1
- package/dist/collection/components/mds-notification/documentation.json +2 -2
- package/dist/collection/components/mds-notification/mds-notification.css +4 -4
- package/dist/collection/components/mds-paginator/AGENTS.md +1 -1
- package/dist/collection/components/mds-paginator/documentation.json +1 -1
- package/dist/collection/components/mds-paginator/mds-paginator.css +6 -6
- package/dist/collection/components/mds-paginator-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-paginator-item/documentation.json +1 -1
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +31 -30
- package/dist/collection/components/mds-policy-ai/AGENTS.md +1 -1
- package/dist/collection/components/mds-policy-ai/documentation.json +1 -1
- package/dist/collection/components/mds-policy-ai/mds-policy-ai.css +8 -8
- package/dist/collection/components/mds-pref/AGENTS.md +2 -2
- package/dist/collection/components/mds-pref/documentation.json +14 -3
- package/dist/collection/components/mds-pref/mds-pref.js +39 -53
- package/dist/collection/components/mds-pref-animation/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-animation/documentation.json +1 -1
- package/dist/collection/components/mds-pref-animation/mds-pref-animation.css +7 -7
- package/dist/collection/components/mds-pref-consumption/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-consumption/documentation.json +1 -1
- package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.css +4 -4
- package/dist/collection/components/mds-pref-contrast/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-contrast/documentation.json +1 -1
- package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.css +5 -5
- package/dist/collection/components/mds-pref-language/AGENTS.md +3 -3
- package/dist/collection/components/mds-pref-language/documentation.json +2 -2
- package/dist/collection/components/mds-pref-language/mds-pref-language.css +10 -2
- package/dist/collection/components/mds-pref-language-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-language-item/documentation.json +1 -1
- package/dist/collection/components/mds-pref-mode/AGENTS.md +3 -3
- package/dist/collection/components/mds-pref-mode/documentation.json +2 -2
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.css +5 -5
- package/dist/collection/components/mds-pref-theme/AGENTS.md +4 -3
- package/dist/collection/components/mds-pref-theme/documentation.json +2 -2
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.css +10 -2
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +29 -2
- package/dist/collection/components/mds-pref-theme-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-theme-item/documentation.json +1 -1
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.css +10 -9
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +3 -2
- package/dist/collection/components/mds-price-table/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table/documentation.json +1 -1
- package/dist/collection/components/mds-price-table/mds-price-table.js +1 -1
- package/dist/collection/components/mds-price-table-features/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-features/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-features/mds-price-table-features.css +2 -2
- package/dist/collection/components/mds-price-table-features/mds-price-table-features.js +1 -1
- package/dist/collection/components/mds-price-table-features-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-features-cell/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.css +11 -11
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +1 -1
- package/dist/collection/components/mds-price-table-features-row/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-features-row/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.css +12 -12
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +1 -1
- package/dist/collection/components/mds-price-table-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-header/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +1 -1
- package/dist/collection/components/mds-price-table-list/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-list/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.css +8 -8
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +1 -1
- package/dist/collection/components/mds-price-table-list-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-list-item/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.css +2 -2
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +1 -1
- package/dist/collection/components/mds-progress/AGENTS.md +1 -1
- package/dist/collection/components/mds-progress/documentation.json +1 -1
- package/dist/collection/components/mds-progress/mds-progress.css +20 -20
- package/dist/collection/components/mds-progress/mds-progress.js +1 -1
- package/dist/collection/components/mds-push-notification/AGENTS.md +1 -1
- package/dist/collection/components/mds-push-notification/documentation.json +1 -1
- package/dist/collection/components/mds-push-notification/mds-push-notification.js +1 -1
- package/dist/collection/components/mds-push-notification-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-push-notification-item/documentation.json +1 -1
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.css +16 -16
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +2 -2
- package/dist/collection/components/mds-quote/AGENTS.md +1 -1
- package/dist/collection/components/mds-quote/documentation.json +1 -1
- package/dist/collection/components/mds-quote/mds-quote.css +6 -4
- package/dist/collection/components/mds-quote/mds-quote.js +1 -1
- package/dist/collection/components/mds-radial-menu/AGENTS.md +2 -2
- package/dist/collection/components/mds-radial-menu/documentation.json +2 -2
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.css +5 -3
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +12 -1
- package/dist/collection/components/mds-radial-menu-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-radial-menu-item/documentation.json +1 -1
- package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +1 -1
- package/dist/collection/components/mds-radial-progress/AGENTS.md +1 -1
- package/dist/collection/components/mds-radial-progress/documentation.json +1 -1
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.css +15 -15
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.js +1 -1
- package/dist/collection/components/mds-separator/AGENTS.md +1 -1
- package/dist/collection/components/mds-separator/documentation.json +1 -1
- package/dist/collection/components/mds-separator/mds-separator.css +2 -2
- package/dist/collection/components/mds-separator/mds-separator.js +1 -1
- package/dist/collection/components/mds-spinner/AGENTS.md +1 -1
- package/dist/collection/components/mds-spinner/documentation.json +1 -1
- package/dist/collection/components/mds-spinner/mds-spinner.css +3 -3
- package/dist/collection/components/mds-spinner/mds-spinner.js +1 -1
- package/dist/collection/components/mds-status-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-status-bar/documentation.json +1 -1
- package/dist/collection/components/mds-status-bar/mds-status-bar.css +7 -6
- package/dist/collection/components/mds-status-bar/mds-status-bar.js +1 -1
- package/dist/collection/components/mds-stepper-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-stepper-bar/documentation.json +1 -1
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.css +6 -6
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +1 -1
- package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-stepper-bar-item/documentation.json +1 -1
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.css +15 -15
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +1 -1
- package/dist/collection/components/mds-tab/AGENTS.md +6 -5
- package/dist/collection/components/mds-tab/antipattern.md +27 -0
- package/dist/collection/components/mds-tab/documentation.json +6 -6
- package/dist/collection/components/mds-tab/mds-tab.css +61 -24
- package/dist/collection/components/mds-tab/mds-tab.js +34 -6
- package/dist/collection/components/mds-tab/pattern.md +33 -1
- package/dist/collection/components/mds-tab-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-bar/documentation.json +1 -1
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.css +1 -1
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +1 -1
- package/dist/collection/components/mds-tab-bar-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-bar-item/documentation.json +1 -1
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +14 -14
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +1 -1
- package/dist/collection/components/mds-tab-item/AGENTS.md +5 -4
- package/dist/collection/components/mds-tab-item/antipattern.md +22 -1
- package/dist/collection/components/mds-tab-item/documentation.json +5 -5
- package/dist/collection/components/mds-tab-item/mds-tab-item.css +2 -2
- package/dist/collection/components/mds-tab-item/mds-tab-item.js +15 -3
- package/dist/collection/components/mds-tab-item/pattern.md +25 -7
- package/dist/collection/components/mds-table/AGENTS.md +4 -2
- package/dist/collection/components/mds-table/documentation.json +48 -4
- package/dist/collection/components/mds-table/mds-table.css +33 -22
- package/dist/collection/components/mds-table/mds-table.js +35 -1
- package/dist/collection/components/mds-table/pattern.md +30 -0
- package/dist/collection/components/mds-table-body/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-body/documentation.json +1 -1
- package/dist/collection/components/mds-table-body/mds-table-body.css +8 -8
- package/dist/collection/components/mds-table-body/mds-table-body.js +1 -1
- package/dist/collection/components/mds-table-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-cell/documentation.json +1 -1
- package/dist/collection/components/mds-table-cell/mds-table-cell.js +1 -1
- package/dist/collection/components/mds-table-footer/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-footer/documentation.json +1 -1
- package/dist/collection/components/mds-table-footer/mds-table-footer.js +1 -1
- package/dist/collection/components/mds-table-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-header/documentation.json +1 -1
- package/dist/collection/components/mds-table-header/mds-table-header.js +1 -1
- package/dist/collection/components/mds-table-header-cell/AGENTS.md +14 -5
- package/dist/collection/components/mds-table-header-cell/antipattern.md +17 -10
- package/dist/collection/components/mds-table-header-cell/documentation.json +54 -6
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +159 -82
- package/dist/collection/components/mds-table-header-cell/meta/event-detail.js +1 -0
- package/dist/collection/components/mds-table-header-cell/pattern.md +27 -6
- package/dist/collection/components/mds-table-row/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-row/documentation.json +1 -1
- package/dist/collection/components/mds-table-row/mds-table-row.css +12 -12
- package/dist/collection/components/mds-table-row/mds-table-row.js +22 -16
- package/dist/collection/components/mds-text/AGENTS.md +3 -3
- package/dist/collection/components/mds-text/documentation.json +2 -2
- package/dist/collection/components/mds-text/mds-text.css +3 -3
- package/dist/collection/components/mds-text/mds-text.js +31 -26
- package/dist/collection/components/mds-toast/AGENTS.md +1 -1
- package/dist/collection/components/mds-toast/documentation.json +1 -1
- package/dist/collection/components/mds-toast/mds-toast.css +18 -18
- package/dist/collection/components/mds-toast/mds-toast.js +1 -1
- package/dist/collection/components/mds-tooltip/AGENTS.md +4 -2
- package/dist/collection/components/mds-tooltip/antipattern.md +14 -0
- package/dist/collection/components/mds-tooltip/documentation.json +46 -5
- package/dist/collection/components/mds-tooltip/mds-tooltip.css +10 -10
- package/dist/collection/components/mds-tooltip/mds-tooltip.js +41 -1
- package/dist/collection/components/mds-tooltip/pattern.md +9 -0
- package/dist/collection/components/mds-tree/AGENTS.md +1 -1
- package/dist/collection/components/mds-tree/documentation.json +1 -1
- package/dist/collection/components/mds-tree/mds-tree.css +13 -13
- package/dist/collection/components/mds-tree/mds-tree.js +1 -1
- package/dist/collection/components/mds-tree-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-tree-item/documentation.json +1 -1
- package/dist/collection/components/mds-tree-item/mds-tree-item.js +1 -1
- package/dist/collection/components/mds-url-view/AGENTS.md +1 -1
- package/dist/collection/components/mds-url-view/documentation.json +1 -1
- package/dist/collection/components/mds-url-view/mds-url-view.css +7 -7
- package/dist/collection/components/mds-url-view/mds-url-view.js +1 -1
- package/dist/collection/components/mds-usage/AGENTS.md +5 -3
- package/dist/collection/components/mds-usage/antipattern.md +17 -1
- package/dist/collection/components/mds-usage/documentation.json +31 -5
- package/dist/collection/components/mds-usage/mds-usage.css +6 -6
- package/dist/collection/components/mds-usage/mds-usage.js +26 -4
- package/dist/collection/components/mds-usage/meta/variants.js +14 -18
- package/dist/collection/components/mds-usage/pattern.md +10 -0
- package/dist/collection/components/mds-video-wall/AGENTS.md +1 -1
- package/dist/collection/components/mds-video-wall/documentation.json +1 -1
- package/dist/collection/components/mds-video-wall/mds-video-wall.css +3 -3
- package/dist/collection/components/mds-video-wall/mds-video-wall.js +1 -1
- package/dist/collection/components/mds-zero/AGENTS.md +1 -1
- package/dist/collection/components/mds-zero/documentation.json +1 -1
- package/dist/collection/components/mds-zero/mds-zero.css +3 -3
- package/dist/collection/components/mds-zero/mds-zero.js +1 -1
- package/dist/collection/index.js +11 -4
- package/dist/collection/type/floating-ui.js +1 -0
- package/dist/collection/type/input.js +2 -0
- package/dist/components/index.js +1 -1
- package/dist/components/mds-accordion-item.js +1 -1
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/components/mds-accordion-timer.js +1 -1
- package/dist/components/mds-accordion.js +1 -1
- package/dist/components/mds-avatar-stack-item.js +1 -1
- package/dist/components/mds-avatar-stack.js +1 -1
- package/dist/components/mds-avatar.js +1 -1
- package/dist/components/mds-badge.js +1 -1
- package/dist/components/mds-banner.js +1 -1
- package/dist/components/mds-benchmark-bar.js +1 -1
- package/dist/components/mds-bibliography.js +1 -1
- package/dist/components/mds-breadcrumb-item.js +1 -1
- package/dist/components/mds-breadcrumb.js +1 -1
- package/dist/components/mds-button-dropdown.js +1 -1
- package/dist/components/mds-button.js +1 -1
- package/dist/components/mds-calendar-cell.js +1 -1
- package/dist/components/mds-calendar.js +1 -1
- package/dist/components/mds-card-media.js +1 -1
- package/dist/components/mds-card.js +1 -1
- package/dist/components/mds-chip.js +1 -1
- package/dist/components/mds-details.js +1 -1
- package/dist/components/mds-dropdown.js +1 -1
- package/dist/components/mds-emoji.js +2 -2
- package/dist/components/mds-entity.js +1 -1
- package/dist/components/mds-file-preview.js +1 -1
- package/dist/components/mds-file.js +1 -18
- package/dist/components/mds-filter-item.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header-bar.js +1 -1
- package/dist/components/mds-header.js +1 -1
- package/dist/components/mds-help.js +1 -1
- package/dist/components/mds-horizontal-scroll.js +1 -1
- package/dist/components/mds-hr.js +1 -1
- package/dist/components/mds-img.js +1 -1
- package/dist/components/mds-input-date-range-preselection.js +1 -1
- package/dist/components/mds-input-date-range.js +1 -1
- package/dist/components/mds-input-date.js +1 -1
- package/dist/components/mds-input-field.js +1 -1
- package/dist/components/mds-input-otp.js +1 -1
- package/dist/components/mds-input-range.js +1 -1
- package/dist/components/mds-input-select.js +1 -1
- package/dist/components/mds-input-switch.js +1 -1
- package/dist/components/mds-input-tip-item.js +1 -1
- package/dist/components/mds-input-tip.js +1 -1
- package/dist/components/mds-input-upload.js +1 -1
- package/dist/components/mds-input.js +1 -1
- package/dist/components/mds-keyboard-key.js +1 -1
- package/dist/components/mds-keyboard.js +1 -1
- package/dist/components/mds-kpi-item.js +1 -1
- package/dist/components/mds-label.js +1 -1
- package/dist/components/mds-list-item.js +1 -1
- package/dist/components/mds-mention.js +1 -1
- package/dist/components/mds-modal.js +1 -1
- package/dist/components/mds-note.js +1 -1
- package/dist/components/mds-notification.js +1 -1
- package/dist/components/mds-paginator-item.js +1 -1
- package/dist/components/mds-paginator.js +1 -1
- package/dist/components/mds-policy-ai.js +1 -1
- package/dist/components/mds-pref-animation.js +1 -1
- package/dist/components/mds-pref-consumption.js +1 -1
- package/dist/components/mds-pref-contrast.js +1 -1
- package/dist/components/mds-pref-language-item.js +1 -1
- package/dist/components/mds-pref-language.js +1 -1
- package/dist/components/mds-pref-mode.js +1 -1
- package/dist/components/mds-pref-theme-item.js +1 -1
- package/dist/components/mds-pref-theme.js +1 -1
- package/dist/components/mds-pref.js +1 -1
- package/dist/components/mds-price-table-features-cell.js +1 -1
- package/dist/components/mds-price-table-features-row.js +1 -1
- package/dist/components/mds-price-table-features.js +1 -1
- package/dist/components/mds-price-table-header.js +1 -1
- package/dist/components/mds-price-table-list-item.js +1 -1
- package/dist/components/mds-price-table-list.js +1 -1
- package/dist/components/mds-price-table.js +1 -1
- package/dist/components/mds-progress.js +1 -1
- package/dist/components/mds-push-notification-item.js +1 -1
- package/dist/components/mds-push-notification.js +1 -1
- package/dist/components/mds-quote.js +1 -1
- package/dist/components/mds-radial-menu-item.js +1 -1
- package/dist/components/mds-radial-menu.js +1 -1
- package/dist/components/mds-radial-progress.js +1 -1
- package/dist/components/mds-separator.js +1 -1
- package/dist/components/mds-spinner.js +1 -1
- package/dist/components/mds-status-bar.js +1 -1
- package/dist/components/mds-stepper-bar-item.js +1 -1
- package/dist/components/mds-stepper-bar.js +1 -1
- package/dist/components/mds-tab-bar-item.js +1 -1
- package/dist/components/mds-tab-bar.js +1 -1
- package/dist/components/mds-tab-item.js +1 -1
- package/dist/components/mds-tab.js +1 -1
- package/dist/components/mds-table-body.js +1 -1
- package/dist/components/mds-table-cell.js +1 -1
- package/dist/components/mds-table-footer.js +1 -1
- package/dist/components/mds-table-header-cell.js +1 -1
- package/dist/components/mds-table-header.js +1 -1
- package/dist/components/mds-table-row.js +1 -1
- package/dist/components/mds-table.js +1 -1
- package/dist/components/mds-text.js +1 -1
- package/dist/components/mds-toast.js +1 -1
- package/dist/components/mds-tooltip.js +1 -1
- package/dist/components/mds-tree-item.js +1 -1
- package/dist/components/mds-tree.js +1 -1
- package/dist/components/mds-url-view.js +1 -1
- package/dist/components/mds-usage.js +1 -1
- package/dist/components/mds-video-wall.js +1 -1
- package/dist/components/mds-zero.js +1 -1
- package/dist/components/p--5KZXaZp.js +1 -0
- package/dist/components/p--OCrgFeE.js +1 -0
- package/dist/components/p-6LGfUDQ4.js +1 -0
- package/dist/components/p-6pgPWpGI.js +1 -0
- package/dist/components/p-B8BWxSho.js +1 -0
- package/dist/components/p-B9uIL9KO.js +1 -0
- package/dist/components/p-BBDliSai.js +1 -0
- package/dist/components/p-BCwcnHFh.js +1 -0
- package/dist/components/p-BRf-u585.js +1 -0
- package/dist/components/p-BSeokAdy.js +1 -0
- package/dist/components/p-BXUJgu8l.js +1 -0
- package/dist/components/p-BXYUyw7p.js +1 -0
- package/dist/components/{p-s2Gu6hY7.js → p-BcUY-9n7.js} +1 -1
- package/dist/components/p-BfgJ-hHQ.js +1 -0
- package/dist/components/{p-x_c_51aL.js → p-CIfGjW_Z.js} +1 -1
- package/dist/components/p-CMp9rP7L.js +1 -0
- package/dist/components/p-CUmJoPAI.js +1 -0
- package/dist/components/p-CZjHixVB.js +1 -0
- package/dist/components/p-Ck0q_n7I.js +1 -0
- package/dist/components/p-CrCa_6a1.js +8 -0
- package/dist/components/p-Cv7lqHIc.js +1 -0
- package/dist/components/p-Cw6_ooFx.js +1 -0
- package/dist/components/p-DGYRngAi.js +1 -0
- package/dist/components/p-DHu8X7zF.js +1 -0
- package/dist/components/{p-BW24ByN-.js → p-DLCcW1Q5.js} +1 -1
- package/dist/components/p-DOzcuSrZ.js +1 -0
- package/dist/components/p-DZPHWQtD.js +1 -0
- package/dist/components/p-DlRjt7nE.js +1 -0
- package/dist/components/p-HSM_x8fD.js +1 -0
- package/dist/components/p-JMPfVnGv.js +1 -0
- package/dist/components/p-ay5NzZ_x.js +1 -0
- package/dist/components/p-lNY_3s6S.js +1 -0
- package/dist/components/p-qYRtWYC8.js +1 -0
- package/dist/documentation.json +469 -84
- package/dist/esm/_commonjsHelpers-B85MJLTf.js +5 -0
- package/dist/esm/{floating-controller-BTYkH_Ih.js → floating-controller-D5-8D9mH.js} +18 -4
- package/dist/esm/{floating-ui.dom-CHAGzQT-.js → floating-ui.dom-JMPfVnGv.js} +146 -94
- package/dist/esm/icon-pNJmnrhq.js +16 -0
- package/dist/esm/index-BxPbQB28.js +40 -40
- package/dist/esm/index.js +62 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/magma-components.js +1 -1
- package/dist/esm/mds-accordion-item.entry.js +1 -1
- package/dist/esm/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm/mds-accordion-timer.entry.js +1 -1
- package/dist/esm/mds-accordion.entry.js +1 -1
- package/dist/esm/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm/mds-avatar-stack.entry.js +1 -1
- package/dist/esm/mds-avatar.entry.js +2 -2
- package/dist/esm/mds-badge.entry.js +1 -1
- package/dist/esm/mds-banner_3.entry.js +3 -3
- package/dist/esm/mds-bibliography.entry.js +1 -1
- package/dist/esm/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm/mds-breadcrumb.entry.js +1 -1
- package/dist/esm/mds-button-dropdown.entry.js +30 -2
- package/dist/esm/mds-button_3.entry.js +123 -56
- package/dist/esm/mds-calendar_2.entry.js +59 -6
- package/dist/esm/mds-card-media.entry.js +1 -1
- package/dist/esm/mds-card.entry.js +1 -1
- package/dist/esm/mds-details.entry.js +1 -1
- package/dist/esm/mds-dropdown.entry.js +3 -3
- package/dist/esm/mds-emoji.entry.js +1 -1
- package/dist/esm/mds-entity.entry.js +1 -1
- package/dist/esm/mds-file-preview.entry.js +1 -1
- package/dist/esm/mds-file.entry.js +30 -7521
- package/dist/esm/mds-filter-item.entry.js +89 -3
- package/dist/esm/mds-filter.entry.js +114 -20
- package/dist/esm/mds-header-bar.entry.js +29 -2
- package/dist/esm/mds-header.entry.js +1 -1
- package/dist/esm/mds-horizontal-scroll.entry.js +38 -2
- package/dist/esm/mds-hr.entry.js +1 -1
- package/dist/esm/mds-img.entry.js +1 -1
- package/dist/esm/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm/mds-input-date-range.entry.js +16 -2
- package/dist/esm/mds-input-date.entry.js +36 -4
- package/dist/esm/mds-input-field.entry.js +1 -1
- package/dist/esm/mds-input-range.entry.js +1 -1
- package/dist/esm/mds-input-select.entry.js +32 -5
- package/dist/esm/mds-input-switch_2.entry.js +21 -8
- package/dist/esm/mds-input-tip_2.entry.js +2 -2
- package/dist/esm/mds-input-upload.entry.js +1 -1
- package/dist/esm/mds-input.entry.js +12 -3
- package/dist/esm/mds-keyboard-key.entry.js +1 -1
- package/dist/esm/mds-keyboard.entry.js +1 -1
- package/dist/esm/mds-kpi-item.entry.js +1 -1
- package/dist/esm/mds-label.entry.js +1 -1
- package/dist/esm/mds-list-item.entry.js +2 -3
- package/dist/esm/mds-mention.entry.js +1 -1
- package/dist/esm/mds-modal.entry.js +31 -4
- package/dist/esm/mds-note.entry.js +1 -1
- package/dist/esm/mds-notification.entry.js +2 -2
- package/dist/esm/mds-paginator-item.entry.js +1 -1
- package/dist/esm/mds-paginator.entry.js +1 -1
- package/dist/esm/mds-policy-ai.entry.js +1 -1
- package/dist/esm/mds-pref-animation.entry.js +1 -1
- package/dist/esm/mds-pref-consumption.entry.js +1 -1
- package/dist/esm/mds-pref-contrast.entry.js +1 -1
- package/dist/esm/mds-pref-language.entry.js +1 -1
- package/dist/esm/mds-pref-mode.entry.js +1 -1
- package/dist/esm/mds-pref-theme-item.entry.js +4 -3
- package/dist/esm/mds-pref-theme.entry.js +30 -3
- package/dist/esm/mds-pref.entry.js +24 -53
- package/dist/esm/mds-price-table-features-cell.entry.js +2 -2
- package/dist/esm/mds-price-table-features-row.entry.js +2 -2
- package/dist/esm/mds-price-table-features.entry.js +2 -2
- package/dist/esm/mds-price-table-header.entry.js +1 -1
- package/dist/esm/mds-price-table-list-item.entry.js +2 -2
- package/dist/esm/mds-price-table-list.entry.js +2 -2
- package/dist/esm/mds-price-table.entry.js +1 -1
- package/dist/esm/mds-progress_2.entry.js +4 -4
- package/dist/esm/mds-push-notification-item.entry.js +4 -4
- package/dist/esm/mds-push-notification.entry.js +2 -2
- package/dist/esm/mds-quote.entry.js +2 -2
- package/dist/esm/mds-radial-menu-item.entry.js +2 -2
- package/dist/esm/mds-radial-menu.entry.js +40 -4
- package/dist/esm/mds-separator.entry.js +2 -2
- package/dist/esm/mds-status-bar.entry.js +2 -2
- package/dist/esm/mds-stepper-bar-item.entry.js +2 -2
- package/dist/esm/mds-stepper-bar.entry.js +2 -2
- package/dist/esm/mds-tab-bar-item.entry.js +2 -2
- package/dist/esm/mds-tab-bar.entry.js +2 -2
- package/dist/esm/mds-tab_2.entry.js +43 -8
- package/dist/esm/mds-table-body.entry.js +2 -2
- package/dist/esm/mds-table-footer.entry.js +2 -2
- package/dist/esm/mds-table-header-cell.entry.js +117 -78
- package/dist/esm/mds-table-header.entry.js +2 -2
- package/dist/esm/mds-table-row.entry.js +23 -17
- package/dist/esm/mds-table.entry.js +9 -2
- package/dist/esm/mds-text.entry.js +37 -27
- package/dist/esm/mds-toast.entry.js +2 -2
- package/dist/esm/mds-tooltip.entry.js +17 -4
- package/dist/esm/mds-tree-item.entry.js +2 -2
- package/dist/esm/mds-tree.entry.js +2 -2
- package/dist/esm/mds-url-view.entry.js +2 -2
- package/dist/esm/mds-usage.entry.js +23 -4
- package/dist/esm/mds-video-wall.entry.js +2 -2
- package/dist/esm/mds-zero.entry.js +2 -2
- package/dist/esm/string-6pgPWpGI.js +5 -0
- package/dist/esm-es5/_commonjsHelpers-B85MJLTf.js +1 -0
- package/dist/esm-es5/{floating-controller-BTYkH_Ih.js → floating-controller-D5-8D9mH.js} +11 -5
- package/dist/esm-es5/{floating-ui.dom-CHAGzQT-.js → floating-ui.dom-JMPfVnGv.js} +80 -48
- package/dist/esm-es5/icon-pNJmnrhq.js +1 -0
- package/dist/esm-es5/index-BxPbQB28.js +36 -36
- package/dist/esm-es5/index.js +37 -20
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/magma-components.js +1 -1
- package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +2 -2
- package/dist/esm-es5/mds-accordion-timer.entry.js +2 -2
- package/dist/esm-es5/mds-accordion.entry.js +2 -2
- package/dist/esm-es5/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
- package/dist/esm-es5/mds-avatar.entry.js +2 -2
- package/dist/esm-es5/mds-badge.entry.js +1 -1
- package/dist/esm-es5/mds-banner_3.entry.js +3 -3
- package/dist/esm-es5/mds-bibliography.entry.js +2 -2
- package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb.entry.js +2 -2
- package/dist/esm-es5/mds-button-dropdown.entry.js +3 -3
- package/dist/esm-es5/mds-button_3.entry.js +50 -7
- package/dist/esm-es5/mds-calendar_2.entry.js +8 -6
- package/dist/esm-es5/mds-card-media.entry.js +1 -1
- package/dist/esm-es5/mds-card.entry.js +5 -5
- package/dist/esm-es5/mds-details.entry.js +2 -2
- package/dist/esm-es5/mds-dropdown.entry.js +16 -16
- package/dist/esm-es5/mds-emoji.entry.js +18 -18
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +7 -7
- package/dist/esm-es5/mds-file.entry.js +15 -2835
- package/dist/esm-es5/mds-filter-item.entry.js +16 -1
- package/dist/esm-es5/mds-filter.entry.js +18 -2
- package/dist/esm-es5/mds-header-bar.entry.js +3 -3
- package/dist/esm-es5/mds-header.entry.js +7 -7
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +13 -13
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-img.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range.entry.js +7 -2
- package/dist/esm-es5/mds-input-date.entry.js +8 -3
- package/dist/esm-es5/mds-input-field.entry.js +1 -1
- package/dist/esm-es5/mds-input-range.entry.js +7 -7
- package/dist/esm-es5/mds-input-select.entry.js +14 -5
- package/dist/esm-es5/mds-input-switch_2.entry.js +17 -9
- package/dist/esm-es5/mds-input-tip_2.entry.js +2 -2
- package/dist/esm-es5/mds-input-upload.entry.js +1 -1
- package/dist/esm-es5/mds-input.entry.js +30 -25
- package/dist/esm-es5/mds-keyboard-key.entry.js +2 -2
- package/dist/esm-es5/mds-keyboard.entry.js +1 -1
- package/dist/esm-es5/mds-kpi-item.entry.js +2 -2
- package/dist/esm-es5/mds-label.entry.js +2 -2
- package/dist/esm-es5/mds-list-item.entry.js +2 -2
- package/dist/esm-es5/mds-mention.entry.js +1 -1
- package/dist/esm-es5/mds-modal.entry.js +5 -5
- package/dist/esm-es5/mds-note.entry.js +1 -1
- package/dist/esm-es5/mds-notification.entry.js +3 -3
- package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
- package/dist/esm-es5/mds-paginator.entry.js +3 -3
- package/dist/esm-es5/mds-policy-ai.entry.js +1 -1
- package/dist/esm-es5/mds-pref-animation.entry.js +1 -1
- package/dist/esm-es5/mds-pref-consumption.entry.js +2 -2
- package/dist/esm-es5/mds-pref-contrast.entry.js +2 -2
- package/dist/esm-es5/mds-pref-language.entry.js +1 -1
- package/dist/esm-es5/mds-pref-mode.entry.js +1 -1
- package/dist/esm-es5/mds-pref-theme-item.entry.js +3 -3
- package/dist/esm-es5/mds-pref-theme.entry.js +15 -7
- package/dist/esm-es5/mds-pref.entry.js +14 -5
- package/dist/esm-es5/mds-price-table-features-cell.entry.js +2 -2
- package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list-item.entry.js +2 -2
- package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
- package/dist/esm-es5/mds-price-table.entry.js +1 -1
- package/dist/esm-es5/mds-progress_2.entry.js +3 -3
- package/dist/esm-es5/mds-push-notification-item.entry.js +2 -2
- package/dist/esm-es5/mds-push-notification.entry.js +2 -2
- package/dist/esm-es5/mds-quote.entry.js +2 -2
- package/dist/esm-es5/mds-radial-menu-item.entry.js +2 -2
- package/dist/esm-es5/mds-radial-menu.entry.js +2 -2
- package/dist/esm-es5/mds-separator.entry.js +1 -1
- package/dist/esm-es5/mds-status-bar.entry.js +2 -2
- package/dist/esm-es5/mds-stepper-bar-item.entry.js +3 -3
- package/dist/esm-es5/mds-stepper-bar.entry.js +4 -4
- package/dist/esm-es5/mds-tab-bar-item.entry.js +3 -3
- package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
- package/dist/esm-es5/mds-tab_2.entry.js +25 -4
- package/dist/esm-es5/mds-table-body.entry.js +1 -1
- package/dist/esm-es5/mds-table-footer.entry.js +1 -1
- package/dist/esm-es5/mds-table-header-cell.entry.js +22 -3
- package/dist/esm-es5/mds-table-header.entry.js +4 -4
- package/dist/esm-es5/mds-table-row.entry.js +12 -4
- package/dist/esm-es5/mds-table.entry.js +11 -5
- package/dist/esm-es5/mds-text.entry.js +25 -7
- package/dist/esm-es5/mds-toast.entry.js +2 -2
- package/dist/esm-es5/mds-tooltip.entry.js +8 -3
- package/dist/esm-es5/mds-tree-item.entry.js +2 -2
- package/dist/esm-es5/mds-tree.entry.js +3 -3
- package/dist/esm-es5/mds-url-view.entry.js +2 -2
- package/dist/esm-es5/mds-usage.entry.js +9 -3
- package/dist/esm-es5/mds-video-wall.entry.js +2 -2
- package/dist/esm-es5/mds-zero.entry.js +1 -1
- package/dist/esm-es5/string-6pgPWpGI.js +2 -0
- package/dist/hydrate/index.js +1580 -8246
- package/dist/hydrate/index.mjs +1580 -8246
- package/dist/magma-components/index.esm.js +1 -1
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/p-00ce5c81.entry.js +1 -0
- package/dist/magma-components/{p-5c94e0c2.system.entry.js → p-00ff586a.system.entry.js} +2 -2
- package/dist/magma-components/p-01f05a56.entry.js +1 -0
- package/dist/magma-components/p-0345cbd0.system.entry.js +83 -0
- package/dist/magma-components/p-03a6a8bd.system.entry.js +46 -0
- package/dist/magma-components/p-05de42e1.system.entry.js +1 -0
- package/dist/magma-components/p-063bccb3.entry.js +1 -0
- package/dist/magma-components/p-0c89c485.entry.js +1 -0
- package/dist/magma-components/p-0d94a2b8.entry.js +8 -0
- package/dist/magma-components/{p-ee1e7f07.system.entry.js → p-0d97e28d.system.entry.js} +1 -1
- package/dist/magma-components/p-108e31e6.entry.js +1 -0
- package/dist/magma-components/p-114f0bb7.system.entry.js +14 -0
- package/dist/magma-components/{p-e8ed096b.entry.js → p-121730d1.entry.js} +1 -1
- package/dist/magma-components/p-137116df.entry.js +1 -0
- package/dist/magma-components/p-13b0babc.system.entry.js +1 -0
- package/dist/magma-components/p-14a108e8.system.entry.js +8 -0
- package/dist/magma-components/p-14eadf95.system.entry.js +21 -0
- package/dist/magma-components/p-154aff83.entry.js +1 -0
- package/dist/magma-components/p-155f79f4.system.entry.js +47 -0
- package/dist/magma-components/p-17b62839.entry.js +1 -0
- package/dist/magma-components/{p-0a551e86.entry.js → p-1802d6a7.entry.js} +1 -1
- package/dist/magma-components/{p-91c4015f.system.entry.js → p-188d9770.system.entry.js} +1 -1
- package/dist/magma-components/p-18ba4766.entry.js +1 -0
- package/dist/magma-components/p-1c63801f.system.entry.js +11 -0
- package/dist/magma-components/p-1c6a507c.system.entry.js +17 -0
- package/dist/magma-components/p-1e2388be.entry.js +1 -0
- package/dist/magma-components/{p-eaff7300.entry.js → p-22e9a507.entry.js} +1 -1
- package/dist/magma-components/p-24a9871a.system.entry.js +1 -0
- package/dist/magma-components/p-26332bce.system.entry.js +1 -0
- package/dist/magma-components/p-26c85354.system.entry.js +1 -0
- package/dist/magma-components/p-2708561b.system.entry.js +10 -0
- package/dist/magma-components/{p-a4a83a63.entry.js → p-2710ddc4.entry.js} +1 -1
- package/dist/magma-components/p-294241fa.entry.js +1 -0
- package/dist/magma-components/p-2b2d0910.system.entry.js +1 -0
- package/dist/magma-components/p-2c940d19.entry.js +1 -0
- package/dist/magma-components/{p-93d39066.entry.js → p-2de5f5fe.entry.js} +1 -1
- package/dist/magma-components/p-2e74231d.system.entry.js +4 -0
- package/dist/magma-components/p-2e83f801.system.entry.js +1 -0
- package/dist/magma-components/{p-dd58f9ee.entry.js → p-2f0815f3.entry.js} +1 -1
- package/dist/magma-components/p-30d36dfe.entry.js +1 -0
- package/dist/magma-components/p-323c7aa4.system.entry.js +25 -0
- package/dist/magma-components/{p-493fb2f4.system.entry.js → p-32e077c0.system.entry.js} +2 -2
- package/dist/magma-components/p-334b305d.system.entry.js +16 -0
- package/dist/magma-components/{p-6c18c40e.system.entry.js → p-341994b3.system.entry.js} +1 -1
- package/dist/magma-components/p-35434d4b.system.entry.js +32 -0
- package/dist/magma-components/p-37495e03.entry.js +1 -0
- package/dist/magma-components/{p-439c9ce3.system.entry.js → p-38e0379a.system.entry.js} +2 -2
- package/dist/magma-components/p-3b91efd1.entry.js +1 -0
- package/dist/magma-components/p-3dc4db04.system.entry.js +16 -0
- package/dist/magma-components/p-3f0e82bc.entry.js +1 -0
- package/dist/magma-components/p-3fa6cf85.system.entry.js +1 -0
- package/dist/magma-components/p-40e97485.entry.js +1 -0
- package/dist/magma-components/p-4159c306.entry.js +1 -0
- package/dist/magma-components/p-42411854.system.entry.js +102 -0
- package/dist/magma-components/{p-2f520704.entry.js → p-42ebba8c.entry.js} +1 -1
- package/dist/magma-components/p-4356d96e.system.entry.js +21 -0
- package/dist/magma-components/p-4577948d.system.entry.js +12 -0
- package/dist/magma-components/p-4658a200.entry.js +1 -0
- package/dist/magma-components/{p-b431ca8a.entry.js → p-4cfa925a.entry.js} +1 -1
- package/dist/magma-components/p-4dfeb655.system.entry.js +23 -0
- package/dist/magma-components/p-4ef19542.entry.js +1 -0
- package/dist/magma-components/{p-ac81f63a.system.entry.js → p-508e10b5.system.entry.js} +1 -1
- package/dist/magma-components/p-522fd3d0.system.entry.js +4 -0
- package/dist/magma-components/p-528d913c.system.entry.js +17 -0
- package/dist/magma-components/p-569cbe13.entry.js +1 -0
- package/dist/magma-components/p-574c2c13.system.entry.js +222 -0
- package/dist/magma-components/{p-218d8254.system.entry.js → p-584a4ee8.system.entry.js} +1 -1
- package/dist/magma-components/{p-577db922.entry.js → p-595fde64.entry.js} +1 -1
- package/dist/magma-components/p-5989cdf2.system.entry.js +16 -0
- package/dist/magma-components/p-5c17a324.entry.js +1 -0
- package/dist/magma-components/p-5df91427.system.entry.js +15 -0
- package/dist/magma-components/p-5fcc1455.entry.js +1 -0
- package/dist/magma-components/p-61638aa3.entry.js +1 -0
- package/dist/magma-components/p-634727e6.system.entry.js +22 -0
- package/dist/magma-components/{p-03c2060d.entry.js → p-6465c8f4.entry.js} +1 -1
- package/dist/magma-components/p-6764b13a.entry.js +1 -0
- package/dist/magma-components/p-6812f01b.entry.js +1 -0
- package/dist/magma-components/{p-4211ce6c.system.entry.js → p-6901428b.system.entry.js} +1 -1
- package/dist/magma-components/p-699a7926.entry.js +1 -0
- package/dist/magma-components/p-69d6cc9e.system.entry.js +7 -0
- package/dist/magma-components/p-6a798061.entry.js +1 -0
- package/dist/magma-components/p-6d350c7c.entry.js +1 -0
- package/dist/magma-components/p-6f5a1248.entry.js +1 -0
- package/dist/magma-components/p-6fba5e6c.entry.js +1 -0
- package/dist/magma-components/p-6fd9a2ae.entry.js +1 -0
- package/dist/magma-components/p-6pgPWpGI.js +1 -0
- package/dist/magma-components/p-70caf05b.system.entry.js +10 -0
- package/dist/magma-components/{p-832883c4.entry.js → p-70cc167f.entry.js} +1 -1
- package/dist/magma-components/{p-86f4b6eb.system.entry.js → p-736c0e25.system.entry.js} +2 -2
- package/dist/magma-components/p-73e593a2.system.entry.js +95 -0
- package/dist/magma-components/p-7450a7a7.system.entry.js +49 -0
- package/dist/magma-components/p-7535328a.entry.js +1 -0
- package/dist/magma-components/{p-4cb88b06.system.entry.js → p-76f02296.system.entry.js} +1 -1
- package/dist/magma-components/p-79bc2e81.entry.js +1 -0
- package/dist/magma-components/p-79dc2243.entry.js +1 -0
- package/dist/magma-components/p-7b1c6eb0.entry.js +1 -0
- package/dist/magma-components/p-7b8b51c8.entry.js +1 -0
- package/dist/magma-components/p-7bc0a6c4.entry.js +1 -0
- package/dist/magma-components/{p-8d53bd61.system.entry.js → p-7c8e79a7.system.entry.js} +1 -1
- package/dist/magma-components/p-7c90298a.entry.js +1 -0
- package/dist/magma-components/p-7e02237b.entry.js +1 -0
- package/dist/magma-components/{p-f733ae92.system.entry.js → p-7f247e64.system.entry.js} +2 -2
- package/dist/magma-components/p-808f6796.entry.js +1 -0
- package/dist/magma-components/{p-e213640b.entry.js → p-82480df5.entry.js} +1 -1
- package/dist/magma-components/p-842b1dfc.entry.js +1 -0
- package/dist/magma-components/p-88c7be3d.system.entry.js +68 -0
- package/dist/magma-components/p-89733d3a.system.entry.js +14 -0
- package/dist/magma-components/p-8c75425d.entry.js +1 -0
- package/dist/magma-components/{p-5ac9e2f4.entry.js → p-8c76410b.entry.js} +1 -1
- package/dist/magma-components/p-8cdad12f.entry.js +1 -0
- package/dist/magma-components/p-8d2a6896.entry.js +1 -0
- package/dist/magma-components/p-8d7835e2.system.entry.js +10 -0
- package/dist/magma-components/p-8f039ca0.system.entry.js +7 -0
- package/dist/magma-components/p-8f54cf62.system.entry.js +4 -0
- package/dist/magma-components/p-8f6bd147.entry.js +1 -0
- package/dist/magma-components/p-9017022c.system.entry.js +15 -0
- package/dist/magma-components/p-909f5b60.system.entry.js +55 -0
- package/dist/magma-components/p-94e9f2be.system.entry.js +11 -0
- package/dist/magma-components/p-976bb373.system.entry.js +90 -0
- package/dist/magma-components/p-97d82884.system.entry.js +16 -0
- package/dist/magma-components/p-97de86c6.system.entry.js +16 -0
- package/dist/magma-components/p-97e9a197.system.entry.js +32 -0
- package/dist/magma-components/p-9a936cae.system.entry.js +45 -0
- package/dist/magma-components/p-9c6d184f.entry.js +1 -0
- package/dist/magma-components/p-9db0a6e9.entry.js +1 -0
- package/dist/magma-components/p-9e662528.entry.js +1 -0
- package/dist/magma-components/{p-7ffda4f5.entry.js → p-9ff02a82.entry.js} +1 -1
- package/dist/magma-components/p-B85MJLTf.js +1 -0
- package/dist/magma-components/p-BJqUjYIG.system.js +1 -0
- package/dist/magma-components/{p-Dg8nxRUX.system.js → p-BcYSdbK0.system.js} +85 -53
- package/dist/magma-components/p-BeYLDgbf.js +1 -0
- package/dist/magma-components/p-CKfEQ187.system.js +107 -0
- package/dist/magma-components/p-D6-Ny6z1.system.js +1 -0
- package/dist/magma-components/{p-BPNsbMrg.system.js → p-DhhAXEdA.system.js} +11 -5
- package/dist/magma-components/p-JMPfVnGv.js +1 -0
- package/dist/magma-components/p-ZDRIVCAt.system.js +1 -1
- package/dist/magma-components/p-a3e3a653.system.entry.js +81 -0
- package/dist/magma-components/p-a4c26b4d.system.entry.js +19 -0
- package/dist/magma-components/{p-dcc3be64.system.entry.js → p-a61c7ae9.system.entry.js} +1 -1
- package/dist/magma-components/p-a653e096.entry.js +1 -0
- package/dist/magma-components/p-a8bf46cb.system.entry.js +1 -0
- package/dist/magma-components/p-a9736d68.system.entry.js +4 -0
- package/dist/magma-components/p-ac4435e7.entry.js +1 -0
- package/dist/magma-components/p-ac873ab4.entry.js +1 -0
- package/dist/magma-components/p-acae292f.system.entry.js +28 -0
- package/dist/magma-components/p-add1a8d0.system.entry.js +7 -0
- package/dist/magma-components/p-b1a0e56e.system.entry.js +42 -0
- package/dist/magma-components/p-b33a6f7e.system.entry.js +13 -0
- package/dist/magma-components/p-b492dd4c.entry.js +1 -0
- package/dist/magma-components/p-b99cac43.entry.js +1 -0
- package/dist/magma-components/p-baf0359b.entry.js +1 -0
- package/dist/magma-components/p-bbd414dc.entry.js +1 -0
- package/dist/magma-components/p-be1aad5f.entry.js +1 -0
- package/dist/magma-components/p-bf05f9f3.entry.js +1 -0
- package/dist/magma-components/p-bf8c6647.system.entry.js +11 -0
- package/dist/magma-components/p-bfe19e4b.entry.js +1 -0
- package/dist/magma-components/p-c1a7266a.entry.js +1 -0
- package/dist/magma-components/p-c3585de7.system.entry.js +7 -0
- package/dist/magma-components/p-c45d9a64.system.entry.js +32 -0
- package/dist/magma-components/p-c4ceaef6.system.entry.js +10 -0
- package/dist/magma-components/{p-57762bae.entry.js → p-c575cb7b.entry.js} +1 -1
- package/dist/magma-components/p-c644c5fc.system.entry.js +1 -0
- package/dist/magma-components/{p-61bedbe7.system.entry.js → p-c69ec735.system.entry.js} +8 -3
- package/dist/magma-components/p-c7d84d1c.system.entry.js +1 -0
- package/dist/magma-components/p-cb8b45fd.entry.js +1 -0
- package/dist/magma-components/p-cbfd8b10.system.entry.js +16 -0
- package/dist/magma-components/{p-ed897f9f.entry.js → p-ce46191c.entry.js} +1 -1
- package/dist/magma-components/p-cebe7b52.entry.js +1 -0
- package/dist/magma-components/p-cefdc01f.system.entry.js +7 -0
- package/dist/magma-components/{p-f29a059d.system.entry.js → p-d025a34f.system.entry.js} +1 -1
- package/dist/magma-components/p-d1c47baa.entry.js +1 -0
- package/dist/magma-components/p-d269bfb0.entry.js +1 -0
- package/dist/magma-components/p-d42f267b.system.entry.js +40 -0
- package/dist/magma-components/p-d65d8a09.system.entry.js +1 -0
- package/dist/magma-components/p-d6eca2ef.entry.js +1 -0
- package/dist/magma-components/p-d716efe9.system.entry.js +1 -0
- package/dist/magma-components/{p-314abfba.entry.js → p-da6ccc03.entry.js} +1 -1
- package/dist/magma-components/p-dbaf5368.system.entry.js +7 -0
- package/dist/magma-components/p-dc340618.entry.js +1 -0
- package/dist/magma-components/p-dc752e9b.entry.js +1 -0
- package/dist/magma-components/p-e238e2eb.entry.js +1 -0
- package/dist/magma-components/p-e388f1f2.system.entry.js +19 -0
- package/dist/magma-components/{p-74b51db8.entry.js → p-e50fdcee.entry.js} +1 -1
- package/dist/magma-components/{p-2c44c961.system.entry.js → p-e779a67f.system.entry.js} +3 -3
- package/dist/magma-components/p-e8ae4016.system.entry.js +1 -0
- package/dist/magma-components/{p-9eb1e154.system.entry.js → p-e8d95868.system.entry.js} +2 -2
- package/dist/magma-components/p-ed232c76.entry.js +1 -0
- package/dist/magma-components/{p-6fdb3fe7.system.entry.js → p-ed6e287d.system.entry.js} +25 -7
- package/dist/magma-components/{p-88287207.system.entry.js → p-ed87425c.system.entry.js} +1 -1
- package/dist/magma-components/p-ed897125.entry.js +1 -0
- package/dist/magma-components/p-ee876b20.system.entry.js +4 -0
- package/dist/magma-components/p-efe0bb12.system.entry.js +7 -0
- package/dist/magma-components/p-f2412853.system.entry.js +27 -0
- package/dist/magma-components/p-f2743a2b.entry.js +1 -0
- package/dist/magma-components/p-f2f2945b.entry.js +1 -0
- package/dist/magma-components/p-f37f1343.entry.js +1 -0
- package/dist/magma-components/p-f3dd135e.system.entry.js +32 -0
- package/dist/magma-components/p-f5ce24e8.entry.js +1 -0
- package/dist/magma-components/p-f8a88f11.entry.js +1 -0
- package/dist/magma-components/p-f900fe90.entry.js +1 -0
- package/dist/magma-components/p-pNJmnrhq.js +1 -0
- package/dist/magma-components/p-pxyGaQ-P.system.js +2 -0
- package/dist/stats.json +2920 -2147
- package/dist/types/common/floating-controller.d.ts +8 -1
- package/dist/types/common/hash.d.ts +8 -0
- package/dist/types/common/navigation.d.ts +32 -0
- package/dist/types/common/string.d.ts +3 -1
- package/dist/types/components/mds-button/mds-button.d.ts +33 -2
- package/dist/types/components/mds-button-dropdown/mds-button-dropdown.d.ts +1 -0
- package/dist/types/components/mds-calendar/mds-calendar.d.ts +1 -0
- package/dist/types/components/mds-file/mds-file.d.ts +6 -1
- package/dist/types/components/mds-filter/mds-filter.d.ts +15 -0
- package/dist/types/components/mds-filter-item/mds-filter-item.d.ts +18 -1
- package/dist/types/components/mds-header-bar/mds-header-bar.d.ts +1 -0
- package/dist/types/components/mds-horizontal-scroll/mds-horizontal-scroll.d.ts +1 -0
- package/dist/types/components/mds-input/mds-input.d.ts +8 -1
- package/dist/types/components/mds-input-date/mds-input-date.d.ts +6 -0
- package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +5 -0
- package/dist/types/components/mds-input-select/mds-input-select.d.ts +15 -2
- package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +8 -3
- package/dist/types/components/mds-modal/mds-modal.d.ts +1 -0
- package/dist/types/components/mds-pref/mds-pref.d.ts +5 -8
- package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +8 -0
- package/dist/types/components/mds-radial-menu/mds-radial-menu.d.ts +1 -0
- package/dist/types/components/mds-tab/mds-tab.d.ts +14 -1
- package/dist/types/components/mds-tab-item/mds-tab-item.d.ts +6 -1
- package/dist/types/components/mds-table/mds-table.d.ts +8 -1
- package/dist/types/components/mds-table/meta/type.d.ts +1 -0
- package/dist/types/components/mds-table-header-cell/mds-table-header-cell.d.ts +33 -14
- package/dist/types/components/mds-table-header-cell/meta/event-detail.d.ts +6 -0
- package/dist/types/components/mds-table-row/mds-table-row.d.ts +3 -2
- package/dist/types/components/mds-text/mds-text.d.ts +8 -4
- package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +8 -1
- package/dist/types/components/mds-usage/mds-usage.d.ts +5 -1
- package/dist/types/components/mds-usage/meta/variants.d.ts +7 -19
- package/dist/types/components.d.ts +127 -22
- package/dist/types/index.d.ts +12 -4
- package/dist/types/type/floating-ui.d.ts +2 -0
- package/dist/types/type/input.d.ts +3 -0
- package/package.json +18 -18
- package/dist/cjs/_commonjsHelpers-B83fTs8d.js +0 -36
- package/dist/collection/dictionary/icon.js +0 -10
- package/dist/collection/type/icon.js +0 -1
- package/dist/components/p-1aH7xiMs.js +0 -1
- package/dist/components/p-B05zwjTY.js +0 -1
- package/dist/components/p-BOu_NOgd.js +0 -1
- package/dist/components/p-BTpjOy0A.js +0 -1
- package/dist/components/p-BVw5aqzn.js +0 -1
- package/dist/components/p-BWpSxp3h.js +0 -1
- package/dist/components/p-BXPIlPIF.js +0 -1
- package/dist/components/p-BzvYQBdf.js +0 -1
- package/dist/components/p-C3Sn8bRc.js +0 -1
- package/dist/components/p-CGkSDkOY.js +0 -1
- package/dist/components/p-CHAGzQT-.js +0 -1
- package/dist/components/p-CIcshx6K.js +0 -1
- package/dist/components/p-CKS4r32k.js +0 -1
- package/dist/components/p-COkF_8bh.js +0 -1
- package/dist/components/p-CmHMhHMt.js +0 -1
- package/dist/components/p-Cnt6G6GK.js +0 -1
- package/dist/components/p-CsL9U6eU.js +0 -1
- package/dist/components/p-Cyj1BFxx.js +0 -1
- package/dist/components/p-DQqUzCGR.js +0 -1
- package/dist/components/p-DR46G4-6.js +0 -1
- package/dist/components/p-DcW0iRnZ.js +0 -1
- package/dist/components/p-DebgFlHq.js +0 -1
- package/dist/components/p-Dpf8NWF9.js +0 -1
- package/dist/components/p-DwA-5c8G.js +0 -1
- package/dist/components/p-Dws02cT2.js +0 -8
- package/dist/components/p-E-ZsRS8r.js +0 -1
- package/dist/components/p-K3QNYRhf.js +0 -1
- package/dist/components/p-PQ_EO5-U.js +0 -1
- package/dist/components/p-akEzGmDD.js +0 -1
- package/dist/components/p-bDVBqkn0.js +0 -1
- package/dist/esm/_commonjsHelpers-E-ZsRS8r.js +0 -32
- package/dist/esm-es5/_commonjsHelpers-E-ZsRS8r.js +0 -1
- package/dist/magma-components/p-00e47e49.system.entry.js +0 -14
- package/dist/magma-components/p-0141c597.system.entry.js +0 -15
- package/dist/magma-components/p-021f96f8.entry.js +0 -1
- package/dist/magma-components/p-0255924b.system.entry.js +0 -22
- package/dist/magma-components/p-05014374.entry.js +0 -1
- package/dist/magma-components/p-05f73994.entry.js +0 -1
- package/dist/magma-components/p-0646392d.entry.js +0 -1
- package/dist/magma-components/p-0a904a12.entry.js +0 -1
- package/dist/magma-components/p-106f39c6.entry.js +0 -1
- package/dist/magma-components/p-10ad73e3.system.entry.js +0 -19
- package/dist/magma-components/p-1150ffb8.system.entry.js +0 -10
- package/dist/magma-components/p-12c5ae26.entry.js +0 -1
- package/dist/magma-components/p-13a1d35f.entry.js +0 -1
- package/dist/magma-components/p-15d4846d.entry.js +0 -1
- package/dist/magma-components/p-1673225e.system.entry.js +0 -8
- package/dist/magma-components/p-188f4b1d.system.entry.js +0 -7
- package/dist/magma-components/p-18c8628c.entry.js +0 -1
- package/dist/magma-components/p-1be45c75.entry.js +0 -1
- package/dist/magma-components/p-1e3d89cd.system.entry.js +0 -1
- package/dist/magma-components/p-1e700f0a.entry.js +0 -1
- package/dist/magma-components/p-20e4f7dd.system.entry.js +0 -15
- package/dist/magma-components/p-21865dd2.entry.js +0 -1
- package/dist/magma-components/p-21c46e74.system.entry.js +0 -4
- package/dist/magma-components/p-231b604f.system.entry.js +0 -1
- package/dist/magma-components/p-2507f5cf.entry.js +0 -1
- package/dist/magma-components/p-277444bc.entry.js +0 -1
- package/dist/magma-components/p-283b0548.system.entry.js +0 -102
- package/dist/magma-components/p-2ec0db8e.entry.js +0 -1
- package/dist/magma-components/p-30c3872d.entry.js +0 -1
- package/dist/magma-components/p-322a5452.entry.js +0 -1
- package/dist/magma-components/p-3231a6a3.entry.js +0 -1
- package/dist/magma-components/p-34401d35.entry.js +0 -1
- package/dist/magma-components/p-35aa29c5.entry.js +0 -1
- package/dist/magma-components/p-36a67b51.entry.js +0 -1
- package/dist/magma-components/p-3a1339bb.system.entry.js +0 -4
- package/dist/magma-components/p-3d56e3f4.entry.js +0 -1
- package/dist/magma-components/p-3e0eed90.system.entry.js +0 -12
- package/dist/magma-components/p-3ecade3c.system.entry.js +0 -11
- package/dist/magma-components/p-3eefca33.system.entry.js +0 -16
- package/dist/magma-components/p-436f9b27.system.entry.js +0 -38
- package/dist/magma-components/p-44e2a945.system.entry.js +0 -1
- package/dist/magma-components/p-4658154f.entry.js +0 -1
- package/dist/magma-components/p-474047fa.system.entry.js +0 -10
- package/dist/magma-components/p-474c5d53.system.entry.js +0 -11
- package/dist/magma-components/p-4ac94b84.system.entry.js +0 -32
- package/dist/magma-components/p-4c73f14b.system.entry.js +0 -14
- package/dist/magma-components/p-4dd6a39b.entry.js +0 -1
- package/dist/magma-components/p-4e7f21ac.entry.js +0 -1
- package/dist/magma-components/p-4f14a166.entry.js +0 -1
- package/dist/magma-components/p-50ea11c9.system.entry.js +0 -32
- package/dist/magma-components/p-52793bdb.system.entry.js +0 -1
- package/dist/magma-components/p-5299f709.system.entry.js +0 -26
- package/dist/magma-components/p-58b82b40.system.entry.js +0 -10
- package/dist/magma-components/p-5a7267e8.system.entry.js +0 -4
- package/dist/magma-components/p-5a911e7b.system.entry.js +0 -13
- package/dist/magma-components/p-5ccf493c.system.entry.js +0 -7
- package/dist/magma-components/p-5d119459.entry.js +0 -1
- package/dist/magma-components/p-5fd04ce1.entry.js +0 -1
- package/dist/magma-components/p-60f67c37.entry.js +0 -1
- package/dist/magma-components/p-632bc44c.entry.js +0 -1
- package/dist/magma-components/p-69c21eae.entry.js +0 -1
- package/dist/magma-components/p-6a6326c6.entry.js +0 -1
- package/dist/magma-components/p-6c800411.entry.js +0 -1
- package/dist/magma-components/p-6e03b83a.entry.js +0 -1
- package/dist/magma-components/p-6ed05d99.entry.js +0 -1
- package/dist/magma-components/p-6f74cdf5.system.entry.js +0 -12
- package/dist/magma-components/p-73fde271.system.entry.js +0 -72
- package/dist/magma-components/p-76ecad2f.entry.js +0 -18
- package/dist/magma-components/p-774ce1d2.entry.js +0 -1
- package/dist/magma-components/p-77615947.system.entry.js +0 -1
- package/dist/magma-components/p-7770b989.system.entry.js +0 -1
- package/dist/magma-components/p-7787ebaf.system.entry.js +0 -1
- package/dist/magma-components/p-7927010f.system.entry.js +0 -25
- package/dist/magma-components/p-79421ee1.system.entry.js +0 -11
- package/dist/magma-components/p-7ab15184.entry.js +0 -1
- package/dist/magma-components/p-7afec7ee.entry.js +0 -1
- package/dist/magma-components/p-7e085c82.entry.js +0 -1
- package/dist/magma-components/p-7e7cf986.system.entry.js +0 -7
- package/dist/magma-components/p-809adece.system.entry.js +0 -17
- package/dist/magma-components/p-8183b7ed.entry.js +0 -1
- package/dist/magma-components/p-83394280.system.entry.js +0 -32
- package/dist/magma-components/p-835fc007.entry.js +0 -1
- package/dist/magma-components/p-84645c60.system.entry.js +0 -1
- package/dist/magma-components/p-87026d34.entry.js +0 -1
- package/dist/magma-components/p-87faaa8e.system.entry.js +0 -16
- package/dist/magma-components/p-883c223a.system.entry.js +0 -4
- package/dist/magma-components/p-88f99a4f.system.entry.js +0 -81
- package/dist/magma-components/p-8a3d2259.system.entry.js +0 -17
- package/dist/magma-components/p-8aafbfdf.system.entry.js +0 -49
- package/dist/magma-components/p-8afc9bc4.system.entry.js +0 -2838
- package/dist/magma-components/p-8ca1d30d.system.entry.js +0 -1
- package/dist/magma-components/p-8ccd187a.entry.js +0 -1
- package/dist/magma-components/p-90993b0b.system.entry.js +0 -68
- package/dist/magma-components/p-915c5f06.system.entry.js +0 -47
- package/dist/magma-components/p-91ff1560.system.entry.js +0 -7
- package/dist/magma-components/p-92d9b537.entry.js +0 -1
- package/dist/magma-components/p-932620b6.entry.js +0 -1
- package/dist/magma-components/p-9344a234.entry.js +0 -1
- package/dist/magma-components/p-97f6166e.system.entry.js +0 -28
- package/dist/magma-components/p-9d1cdb42.system.entry.js +0 -15
- package/dist/magma-components/p-9dcfc247.entry.js +0 -1
- package/dist/magma-components/p-9fe14430.system.entry.js +0 -7
- package/dist/magma-components/p-BpVYIPkx.js +0 -1
- package/dist/magma-components/p-CHAGzQT-.js +0 -1
- package/dist/magma-components/p-D7BrzK-C.system.js +0 -90
- package/dist/magma-components/p-DIUTGDX_.system.js +0 -1
- package/dist/magma-components/p-E-ZsRS8r.js +0 -1
- package/dist/magma-components/p-a64bbb36.system.entry.js +0 -40
- package/dist/magma-components/p-a6af4083.system.entry.js +0 -32
- package/dist/magma-components/p-a7e7f2c0.entry.js +0 -1
- package/dist/magma-components/p-aba96089.entry.js +0 -1
- package/dist/magma-components/p-aed8b119.entry.js +0 -1
- package/dist/magma-components/p-b24b5179.entry.js +0 -1
- package/dist/magma-components/p-b295e4ab.system.entry.js +0 -1
- package/dist/magma-components/p-b2c62b6e.system.entry.js +0 -7
- package/dist/magma-components/p-b5559b28.system.entry.js +0 -1
- package/dist/magma-components/p-b897c97d.entry.js +0 -1
- package/dist/magma-components/p-bab4c75e.system.entry.js +0 -45
- package/dist/magma-components/p-bc53c19e.entry.js +0 -8
- package/dist/magma-components/p-bf2fe278.system.entry.js +0 -16
- package/dist/magma-components/p-c0136138.entry.js +0 -1
- package/dist/magma-components/p-c166ec50.system.entry.js +0 -47
- package/dist/magma-components/p-c22887f7.system.entry.js +0 -90
- package/dist/magma-components/p-c28fce23.entry.js +0 -1
- package/dist/magma-components/p-c48bad95.entry.js +0 -1
- package/dist/magma-components/p-cb2c5f1b.entry.js +0 -1
- package/dist/magma-components/p-cc0c6ae7.entry.js +0 -1
- package/dist/magma-components/p-cc2a09f2.system.entry.js +0 -16
- package/dist/magma-components/p-cc9d9458.entry.js +0 -1
- package/dist/magma-components/p-ccb14076.system.entry.js +0 -217
- package/dist/magma-components/p-ccb6898a.system.entry.js +0 -4
- package/dist/magma-components/p-d04ac65d.entry.js +0 -1
- package/dist/magma-components/p-d07d227b.system.entry.js +0 -8
- package/dist/magma-components/p-d1faf129.entry.js +0 -1
- package/dist/magma-components/p-d282a929.entry.js +0 -1
- package/dist/magma-components/p-d2f134ac.entry.js +0 -1
- package/dist/magma-components/p-d47df503.system.entry.js +0 -37
- package/dist/magma-components/p-d9804d2f.entry.js +0 -1
- package/dist/magma-components/p-dc06b29e.entry.js +0 -1
- package/dist/magma-components/p-dc59b764.entry.js +0 -1
- package/dist/magma-components/p-dc7bada4.entry.js +0 -1
- package/dist/magma-components/p-de091be7.system.entry.js +0 -7
- package/dist/magma-components/p-dfe8552c.system.entry.js +0 -11
- package/dist/magma-components/p-e1e69217.system.entry.js +0 -1
- package/dist/magma-components/p-e2ef5996.entry.js +0 -1
- package/dist/magma-components/p-e7751639.entry.js +0 -1
- package/dist/magma-components/p-e887a14c.entry.js +0 -1
- package/dist/magma-components/p-e8cd2b93.system.entry.js +0 -4
- package/dist/magma-components/p-eb681207.system.entry.js +0 -1
- package/dist/magma-components/p-ec9cc7b9.entry.js +0 -1
- package/dist/magma-components/p-eca99a0a.system.entry.js +0 -1
- package/dist/magma-components/p-ecd3c27f.entry.js +0 -1
- package/dist/magma-components/p-ef3424e3.entry.js +0 -1
- package/dist/magma-components/p-f654eafe.entry.js +0 -1
- package/dist/magma-components/p-f8eb19b3.entry.js +0 -1
- package/dist/magma-components/p-f8feee93.system.entry.js +0 -4
- package/dist/magma-components/p-ffa1a0b4.system.entry.js +0 -1
- package/dist/types/dictionary/icon.d.ts +0 -4
- package/dist/types/type/icon.d.ts +0 -1
|
@@ -1,2838 +1,18 @@
|
|
|
1
|
-
import{r as registerInstance,d as createEvent,h,e as Host,g as getElement
|
|
2
|
-
// CommonJS
|
|
3
|
-
r.exports=a()}})(core,(function(){
|
|
4
|
-
/*globals window, global, require*/
|
|
1
|
+
import{r as registerInstance,d as createEvent,h,e as Host,g as getElement,B as Build}from"./index-BxPbQB28.js";import{f as fileDescriptionLocaleIt,a as fileDescriptionLocaleEs,b as fileDescriptionLocaleEn,c as fileDescriptionLocaleEl,g as getExtensionInfos,d as getSuffix,h as getName,e as getFormatsVariant}from"./locale.it-Cvxh7La5.js";import{L as Locale}from"./locale-CVJm6KFD.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";import"./file-extensions-BxIk5ZFV.js";import"./panorama-b1ORvfSX.js";
|
|
5
2
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
// Native crypto in web worker (Browser)
|
|
12
|
-
if(typeof self!=="undefined"&&self.crypto){a=self.crypto}
|
|
13
|
-
// Native crypto from worker
|
|
14
|
-
if(typeof globalThis!=="undefined"&&globalThis.crypto){a=globalThis.crypto}
|
|
15
|
-
// Native (experimental IE 11) crypto from window (Browser)
|
|
16
|
-
if(!a&&typeof window!=="undefined"&&window.msCrypto){a=window.msCrypto}
|
|
17
|
-
// Native crypto from global (NodeJS)
|
|
18
|
-
if(!a&&typeof commonjsGlobal!=="undefined"&&commonjsGlobal.crypto){a=commonjsGlobal.crypto}
|
|
19
|
-
// Native crypto import via require (NodeJS)
|
|
20
|
-
if(!a&&typeof commonjsRequire==="function"){try{a=require$$0}catch(r){}}
|
|
21
|
-
/*
|
|
22
|
-
* Cryptographically secure pseudorandom number generator
|
|
23
|
-
*
|
|
24
|
-
* As Math.random() is cryptographically not safe to use
|
|
25
|
-
*/var i=function(){if(a){
|
|
26
|
-
// Use getRandomValues method (Browser)
|
|
27
|
-
if(typeof a.getRandomValues==="function"){try{return a.getRandomValues(new Uint32Array(1))[0]}catch(r){}}
|
|
28
|
-
// Use randomBytes method (NodeJS)
|
|
29
|
-
if(typeof a.randomBytes==="function"){try{return a.randomBytes(4).readInt32LE()}catch(r){}}}throw new Error("Native crypto module could not be used to get secure random number.")};
|
|
30
|
-
/*
|
|
31
|
-
* Local polyfill of Object.create
|
|
32
|
-
|
|
33
|
-
*/var t=Object.create||function(){function r(){}return function(e){var a;r.prototype=e;a=new r;r.prototype=null;return a}}();
|
|
34
|
-
/**
|
|
35
|
-
* CryptoJS namespace.
|
|
36
|
-
*/var n={};
|
|
37
|
-
/**
|
|
38
|
-
* Library namespace.
|
|
39
|
-
*/var o=n.lib={};
|
|
40
|
-
/**
|
|
41
|
-
* Base object for prototypal inheritance.
|
|
42
|
-
*/var s=o.Base=function(){return{
|
|
43
|
-
/**
|
|
44
|
-
* Creates a new object that inherits from this object.
|
|
45
|
-
*
|
|
46
|
-
* @param {Object} overrides Properties to copy into the new object.
|
|
47
|
-
*
|
|
48
|
-
* @return {Object} The new object.
|
|
49
|
-
*
|
|
50
|
-
* @static
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
*
|
|
54
|
-
* var MyType = CryptoJS.lib.Base.extend({
|
|
55
|
-
* field: 'value',
|
|
56
|
-
*
|
|
57
|
-
* method: function () {
|
|
58
|
-
* }
|
|
59
|
-
* });
|
|
60
|
-
*/
|
|
61
|
-
extend:function(r){
|
|
62
|
-
// Spawn
|
|
63
|
-
var e=t(this);
|
|
64
|
-
// Augment
|
|
65
|
-
if(r){e.mixIn(r)}
|
|
66
|
-
// Create default initializer
|
|
67
|
-
if(!e.hasOwnProperty("init")||this.init===e.init){e.init=function(){e.$super.init.apply(this,arguments)}}
|
|
68
|
-
// Initializer's prototype is the subtype object
|
|
69
|
-
e.init.prototype=e;
|
|
70
|
-
// Reference supertype
|
|
71
|
-
e.$super=this;return e},
|
|
72
|
-
/**
|
|
73
|
-
* Extends this object and runs the init method.
|
|
74
|
-
* Arguments to create() will be passed to init().
|
|
75
|
-
*
|
|
76
|
-
* @return {Object} The new object.
|
|
77
|
-
*
|
|
78
|
-
* @static
|
|
79
|
-
*
|
|
80
|
-
* @example
|
|
81
|
-
*
|
|
82
|
-
* var instance = MyType.create();
|
|
83
|
-
*/
|
|
84
|
-
create:function(){var r=this.extend();r.init.apply(r,arguments);return r},
|
|
85
|
-
/**
|
|
86
|
-
* Initializes a newly created object.
|
|
87
|
-
* Override this method to add some logic when your objects are created.
|
|
88
|
-
*
|
|
89
|
-
* @example
|
|
90
|
-
*
|
|
91
|
-
* var MyType = CryptoJS.lib.Base.extend({
|
|
92
|
-
* init: function () {
|
|
93
|
-
* // ...
|
|
94
|
-
* }
|
|
95
|
-
* });
|
|
96
|
-
*/
|
|
97
|
-
init:function(){},
|
|
98
|
-
/**
|
|
99
|
-
* Copies properties into this object.
|
|
100
|
-
*
|
|
101
|
-
* @param {Object} properties The properties to mix in.
|
|
102
|
-
*
|
|
103
|
-
* @example
|
|
104
|
-
*
|
|
105
|
-
* MyType.mixIn({
|
|
106
|
-
* field: 'value'
|
|
107
|
-
* });
|
|
108
|
-
*/
|
|
109
|
-
mixIn:function(r){for(var e in r){if(r.hasOwnProperty(e)){this[e]=r[e]}}
|
|
110
|
-
// IE won't copy toString using the loop above
|
|
111
|
-
if(r.hasOwnProperty("toString")){this.toString=r.toString}},
|
|
112
|
-
/**
|
|
113
|
-
* Creates a copy of this object.
|
|
114
|
-
*
|
|
115
|
-
* @return {Object} The clone.
|
|
116
|
-
*
|
|
117
|
-
* @example
|
|
118
|
-
*
|
|
119
|
-
* var clone = instance.clone();
|
|
120
|
-
*/
|
|
121
|
-
clone:function(){return this.init.prototype.extend(this)}}}();
|
|
122
|
-
/**
|
|
123
|
-
* An array of 32-bit words.
|
|
124
|
-
*
|
|
125
|
-
* @property {Array} words The array of 32-bit words.
|
|
126
|
-
* @property {number} sigBytes The number of significant bytes in this word array.
|
|
127
|
-
*/var v=o.WordArray=s.extend({
|
|
128
|
-
/**
|
|
129
|
-
* Initializes a newly created word array.
|
|
130
|
-
*
|
|
131
|
-
* @param {Array} words (Optional) An array of 32-bit words.
|
|
132
|
-
* @param {number} sigBytes (Optional) The number of significant bytes in the words.
|
|
133
|
-
*
|
|
134
|
-
* @example
|
|
135
|
-
*
|
|
136
|
-
* var wordArray = CryptoJS.lib.WordArray.create();
|
|
137
|
-
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
|
|
138
|
-
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
139
|
-
*/
|
|
140
|
-
init:function(r,a){r=this.words=r||[];if(a!=e){this.sigBytes=a}else{this.sigBytes=r.length*4}},
|
|
141
|
-
/**
|
|
142
|
-
* Converts this word array to a string.
|
|
143
|
-
*
|
|
144
|
-
* @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex
|
|
145
|
-
*
|
|
146
|
-
* @return {string} The stringified word array.
|
|
147
|
-
*
|
|
148
|
-
* @example
|
|
149
|
-
*
|
|
150
|
-
* var string = wordArray + '';
|
|
151
|
-
* var string = wordArray.toString();
|
|
152
|
-
* var string = wordArray.toString(CryptoJS.enc.Utf8);
|
|
153
|
-
*/
|
|
154
|
-
toString:function(r){return(r||f).stringify(this)},
|
|
155
|
-
/**
|
|
156
|
-
* Concatenates a word array to this word array.
|
|
157
|
-
*
|
|
158
|
-
* @param {WordArray} wordArray The word array to append.
|
|
159
|
-
*
|
|
160
|
-
* @return {WordArray} This word array.
|
|
161
|
-
*
|
|
162
|
-
* @example
|
|
163
|
-
*
|
|
164
|
-
* wordArray1.concat(wordArray2);
|
|
165
|
-
*/
|
|
166
|
-
concat:function(r){
|
|
167
|
-
// Shortcuts
|
|
168
|
-
var e=this.words;var a=r.words;var i=this.sigBytes;var t=r.sigBytes;
|
|
169
|
-
// Clamp excess bits
|
|
170
|
-
this.clamp();
|
|
171
|
-
// Concat
|
|
172
|
-
if(i%4){
|
|
173
|
-
// Copy one byte at a time
|
|
174
|
-
for(var n=0;n<t;n++){var o=a[n>>>2]>>>24-n%4*8&255;e[i+n>>>2]|=o<<24-(i+n)%4*8}}else{
|
|
175
|
-
// Copy one word at a time
|
|
176
|
-
for(var s=0;s<t;s+=4){e[i+s>>>2]=a[s>>>2]}}this.sigBytes+=t;
|
|
177
|
-
// Chainable
|
|
178
|
-
return this},
|
|
179
|
-
/**
|
|
180
|
-
* Removes insignificant bits.
|
|
181
|
-
*
|
|
182
|
-
* @example
|
|
183
|
-
*
|
|
184
|
-
* wordArray.clamp();
|
|
185
|
-
*/
|
|
186
|
-
clamp:function(){
|
|
187
|
-
// Shortcuts
|
|
188
|
-
var e=this.words;var a=this.sigBytes;
|
|
189
|
-
// Clamp
|
|
190
|
-
e[a>>>2]&=4294967295<<32-a%4*8;e.length=r.ceil(a/4)},
|
|
191
|
-
/**
|
|
192
|
-
* Creates a copy of this word array.
|
|
193
|
-
*
|
|
194
|
-
* @return {WordArray} The clone.
|
|
195
|
-
*
|
|
196
|
-
* @example
|
|
197
|
-
*
|
|
198
|
-
* var clone = wordArray.clone();
|
|
199
|
-
*/
|
|
200
|
-
clone:function(){var r=s.clone.call(this);r.words=this.words.slice(0);return r},
|
|
201
|
-
/**
|
|
202
|
-
* Creates a word array filled with random bytes.
|
|
203
|
-
*
|
|
204
|
-
* @param {number} nBytes The number of random bytes to generate.
|
|
205
|
-
*
|
|
206
|
-
* @return {WordArray} The random word array.
|
|
207
|
-
*
|
|
208
|
-
* @static
|
|
209
|
-
*
|
|
210
|
-
* @example
|
|
211
|
-
*
|
|
212
|
-
* var wordArray = CryptoJS.lib.WordArray.random(16);
|
|
213
|
-
*/
|
|
214
|
-
random:function(r){var e=[];for(var a=0;a<r;a+=4){e.push(i())}return new v.init(e,r)}});
|
|
215
|
-
/**
|
|
216
|
-
* Encoder namespace.
|
|
217
|
-
*/var u=n.enc={};
|
|
218
|
-
/**
|
|
219
|
-
* Hex encoding strategy.
|
|
220
|
-
*/var f=u.Hex={
|
|
221
|
-
/**
|
|
222
|
-
* Converts a word array to a hex string.
|
|
223
|
-
*
|
|
224
|
-
* @param {WordArray} wordArray The word array.
|
|
225
|
-
*
|
|
226
|
-
* @return {string} The hex string.
|
|
227
|
-
*
|
|
228
|
-
* @static
|
|
229
|
-
*
|
|
230
|
-
* @example
|
|
231
|
-
*
|
|
232
|
-
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
233
|
-
*/
|
|
234
|
-
stringify:function(r){
|
|
235
|
-
// Shortcuts
|
|
236
|
-
var e=r.words;var a=r.sigBytes;
|
|
237
|
-
// Convert
|
|
238
|
-
var i=[];for(var t=0;t<a;t++){var n=e[t>>>2]>>>24-t%4*8&255;i.push((n>>>4).toString(16));i.push((n&15).toString(16))}return i.join("")},
|
|
239
|
-
/**
|
|
240
|
-
* Converts a hex string to a word array.
|
|
241
|
-
*
|
|
242
|
-
* @param {string} hexStr The hex string.
|
|
243
|
-
*
|
|
244
|
-
* @return {WordArray} The word array.
|
|
245
|
-
*
|
|
246
|
-
* @static
|
|
247
|
-
*
|
|
248
|
-
* @example
|
|
249
|
-
*
|
|
250
|
-
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
251
|
-
*/
|
|
252
|
-
parse:function(r){
|
|
253
|
-
// Shortcut
|
|
254
|
-
var e=r.length;
|
|
255
|
-
// Convert
|
|
256
|
-
var a=[];for(var i=0;i<e;i+=2){a[i>>>3]|=parseInt(r.substr(i,2),16)<<24-i%8*4}return new v.init(a,e/2)}};
|
|
257
|
-
/**
|
|
258
|
-
* Latin1 encoding strategy.
|
|
259
|
-
*/var c=u.Latin1={
|
|
260
|
-
/**
|
|
261
|
-
* Converts a word array to a Latin1 string.
|
|
262
|
-
*
|
|
263
|
-
* @param {WordArray} wordArray The word array.
|
|
264
|
-
*
|
|
265
|
-
* @return {string} The Latin1 string.
|
|
266
|
-
*
|
|
267
|
-
* @static
|
|
268
|
-
*
|
|
269
|
-
* @example
|
|
270
|
-
*
|
|
271
|
-
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
272
|
-
*/
|
|
273
|
-
stringify:function(r){
|
|
274
|
-
// Shortcuts
|
|
275
|
-
var e=r.words;var a=r.sigBytes;
|
|
276
|
-
// Convert
|
|
277
|
-
var i=[];for(var t=0;t<a;t++){var n=e[t>>>2]>>>24-t%4*8&255;i.push(String.fromCharCode(n))}return i.join("")},
|
|
278
|
-
/**
|
|
279
|
-
* Converts a Latin1 string to a word array.
|
|
280
|
-
*
|
|
281
|
-
* @param {string} latin1Str The Latin1 string.
|
|
282
|
-
*
|
|
283
|
-
* @return {WordArray} The word array.
|
|
284
|
-
*
|
|
285
|
-
* @static
|
|
286
|
-
*
|
|
287
|
-
* @example
|
|
288
|
-
*
|
|
289
|
-
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
290
|
-
*/
|
|
291
|
-
parse:function(r){
|
|
292
|
-
// Shortcut
|
|
293
|
-
var e=r.length;
|
|
294
|
-
// Convert
|
|
295
|
-
var a=[];for(var i=0;i<e;i++){a[i>>>2]|=(r.charCodeAt(i)&255)<<24-i%4*8}return new v.init(a,e)}};
|
|
296
|
-
/**
|
|
297
|
-
* UTF-8 encoding strategy.
|
|
298
|
-
*/var d=u.Utf8={
|
|
299
|
-
/**
|
|
300
|
-
* Converts a word array to a UTF-8 string.
|
|
301
|
-
*
|
|
302
|
-
* @param {WordArray} wordArray The word array.
|
|
303
|
-
*
|
|
304
|
-
* @return {string} The UTF-8 string.
|
|
305
|
-
*
|
|
306
|
-
* @static
|
|
307
|
-
*
|
|
308
|
-
* @example
|
|
309
|
-
*
|
|
310
|
-
* var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
|
|
311
|
-
*/
|
|
312
|
-
stringify:function(r){try{return decodeURIComponent(escape(c.stringify(r)))}catch(r){throw new Error("Malformed UTF-8 data")}},
|
|
313
|
-
/**
|
|
314
|
-
* Converts a UTF-8 string to a word array.
|
|
315
|
-
*
|
|
316
|
-
* @param {string} utf8Str The UTF-8 string.
|
|
317
|
-
*
|
|
318
|
-
* @return {WordArray} The word array.
|
|
319
|
-
*
|
|
320
|
-
* @static
|
|
321
|
-
*
|
|
322
|
-
* @example
|
|
323
|
-
*
|
|
324
|
-
* var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
|
|
325
|
-
*/
|
|
326
|
-
parse:function(r){return c.parse(unescape(encodeURIComponent(r)))}};
|
|
327
|
-
/**
|
|
328
|
-
* Abstract buffered block algorithm template.
|
|
329
|
-
*
|
|
330
|
-
* The property blockSize must be implemented in a concrete subtype.
|
|
331
|
-
*
|
|
332
|
-
* @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0
|
|
333
|
-
*/var h=o.BufferedBlockAlgorithm=s.extend({
|
|
334
|
-
/**
|
|
335
|
-
* Resets this block algorithm's data buffer to its initial state.
|
|
336
|
-
*
|
|
337
|
-
* @example
|
|
338
|
-
*
|
|
339
|
-
* bufferedBlockAlgorithm.reset();
|
|
340
|
-
*/
|
|
341
|
-
reset:function(){
|
|
342
|
-
// Initial values
|
|
343
|
-
this._data=new v.init;this._nDataBytes=0},
|
|
344
|
-
/**
|
|
345
|
-
* Adds new data to this block algorithm's buffer.
|
|
346
|
-
*
|
|
347
|
-
* @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.
|
|
348
|
-
*
|
|
349
|
-
* @example
|
|
350
|
-
*
|
|
351
|
-
* bufferedBlockAlgorithm._append('data');
|
|
352
|
-
* bufferedBlockAlgorithm._append(wordArray);
|
|
353
|
-
*/
|
|
354
|
-
_append:function(r){
|
|
355
|
-
// Convert string to WordArray, else assume WordArray already
|
|
356
|
-
if(typeof r=="string"){r=d.parse(r)}
|
|
357
|
-
// Append
|
|
358
|
-
this._data.concat(r);this._nDataBytes+=r.sigBytes},
|
|
359
|
-
/**
|
|
360
|
-
* Processes available data blocks.
|
|
361
|
-
*
|
|
362
|
-
* This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.
|
|
363
|
-
*
|
|
364
|
-
* @param {boolean} doFlush Whether all blocks and partial blocks should be processed.
|
|
365
|
-
*
|
|
366
|
-
* @return {WordArray} The processed data.
|
|
367
|
-
*
|
|
368
|
-
* @example
|
|
369
|
-
*
|
|
370
|
-
* var processedData = bufferedBlockAlgorithm._process();
|
|
371
|
-
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
372
|
-
*/
|
|
373
|
-
_process:function(e){var a;
|
|
374
|
-
// Shortcuts
|
|
375
|
-
var i=this._data;var t=i.words;var n=i.sigBytes;var o=this.blockSize;var s=o*4;
|
|
376
|
-
// Count blocks ready
|
|
377
|
-
var u=n/s;if(e){
|
|
378
|
-
// Round up to include partial blocks
|
|
379
|
-
u=r.ceil(u)}else{
|
|
380
|
-
// Round down to include only full blocks,
|
|
381
|
-
// less the number of blocks that must remain in the buffer
|
|
382
|
-
u=r.max((u|0)-this._minBufferSize,0)}
|
|
383
|
-
// Count words ready
|
|
384
|
-
var f=u*o;
|
|
385
|
-
// Count bytes ready
|
|
386
|
-
var c=r.min(f*4,n);
|
|
387
|
-
// Process blocks
|
|
388
|
-
if(f){for(var d=0;d<f;d+=o){
|
|
389
|
-
// Perform concrete-algorithm logic
|
|
390
|
-
this._doProcessBlock(t,d)}
|
|
391
|
-
// Remove processed words
|
|
392
|
-
a=t.splice(0,f);i.sigBytes-=c}
|
|
393
|
-
// Return processed words
|
|
394
|
-
return new v.init(a,c)},
|
|
395
|
-
/**
|
|
396
|
-
* Creates a copy of this object.
|
|
397
|
-
*
|
|
398
|
-
* @return {Object} The clone.
|
|
399
|
-
*
|
|
400
|
-
* @example
|
|
401
|
-
*
|
|
402
|
-
* var clone = bufferedBlockAlgorithm.clone();
|
|
403
|
-
*/
|
|
404
|
-
clone:function(){var r=s.clone.call(this);r._data=this._data.clone();return r},_minBufferSize:0});
|
|
405
|
-
/**
|
|
406
|
-
* Abstract hasher template.
|
|
407
|
-
*
|
|
408
|
-
* @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)
|
|
409
|
-
*/o.Hasher=h.extend({
|
|
410
|
-
/**
|
|
411
|
-
* Configuration options.
|
|
412
|
-
*/
|
|
413
|
-
cfg:s.extend(),
|
|
414
|
-
/**
|
|
415
|
-
* Initializes a newly created hasher.
|
|
416
|
-
*
|
|
417
|
-
* @param {Object} cfg (Optional) The configuration options to use for this hash computation.
|
|
418
|
-
*
|
|
419
|
-
* @example
|
|
420
|
-
*
|
|
421
|
-
* var hasher = CryptoJS.algo.SHA256.create();
|
|
422
|
-
*/
|
|
423
|
-
init:function(r){
|
|
424
|
-
// Apply config defaults
|
|
425
|
-
this.cfg=this.cfg.extend(r);
|
|
426
|
-
// Set initial values
|
|
427
|
-
this.reset()},
|
|
428
|
-
/**
|
|
429
|
-
* Resets this hasher to its initial state.
|
|
430
|
-
*
|
|
431
|
-
* @example
|
|
432
|
-
*
|
|
433
|
-
* hasher.reset();
|
|
434
|
-
*/
|
|
435
|
-
reset:function(){
|
|
436
|
-
// Reset data buffer
|
|
437
|
-
h.reset.call(this);
|
|
438
|
-
// Perform concrete-hasher logic
|
|
439
|
-
this._doReset()},
|
|
440
|
-
/**
|
|
441
|
-
* Updates this hasher with a message.
|
|
442
|
-
*
|
|
443
|
-
* @param {WordArray|string} messageUpdate The message to append.
|
|
444
|
-
*
|
|
445
|
-
* @return {Hasher} This hasher.
|
|
446
|
-
*
|
|
447
|
-
* @example
|
|
448
|
-
*
|
|
449
|
-
* hasher.update('message');
|
|
450
|
-
* hasher.update(wordArray);
|
|
451
|
-
*/
|
|
452
|
-
update:function(r){
|
|
453
|
-
// Append
|
|
454
|
-
this._append(r);
|
|
455
|
-
// Update the hash
|
|
456
|
-
this._process();
|
|
457
|
-
// Chainable
|
|
458
|
-
return this},
|
|
459
|
-
/**
|
|
460
|
-
* Finalizes the hash computation.
|
|
461
|
-
* Note that the finalize operation is effectively a destructive, read-once operation.
|
|
462
|
-
*
|
|
463
|
-
* @param {WordArray|string} messageUpdate (Optional) A final message update.
|
|
464
|
-
*
|
|
465
|
-
* @return {WordArray} The hash.
|
|
466
|
-
*
|
|
467
|
-
* @example
|
|
468
|
-
*
|
|
469
|
-
* var hash = hasher.finalize();
|
|
470
|
-
* var hash = hasher.finalize('message');
|
|
471
|
-
* var hash = hasher.finalize(wordArray);
|
|
472
|
-
*/
|
|
473
|
-
finalize:function(r){
|
|
474
|
-
// Final message update
|
|
475
|
-
if(r){this._append(r)}
|
|
476
|
-
// Perform concrete-hasher logic
|
|
477
|
-
var e=this._doFinalize();return e},blockSize:512/32,
|
|
478
|
-
/**
|
|
479
|
-
* Creates a shortcut function to a hasher's object interface.
|
|
480
|
-
*
|
|
481
|
-
* @param {Hasher} hasher The hasher to create a helper for.
|
|
482
|
-
*
|
|
483
|
-
* @return {Function} The shortcut function.
|
|
484
|
-
*
|
|
485
|
-
* @static
|
|
486
|
-
*
|
|
487
|
-
* @example
|
|
488
|
-
*
|
|
489
|
-
* var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
|
|
490
|
-
*/
|
|
491
|
-
_createHelper:function(r){return function(e,a){return new r.init(a).finalize(e)}},
|
|
492
|
-
/**
|
|
493
|
-
* Creates a shortcut function to the HMAC's object interface.
|
|
494
|
-
*
|
|
495
|
-
* @param {Hasher} hasher The hasher to use in this HMAC helper.
|
|
496
|
-
*
|
|
497
|
-
* @return {Function} The shortcut function.
|
|
498
|
-
*
|
|
499
|
-
* @static
|
|
500
|
-
*
|
|
501
|
-
* @example
|
|
502
|
-
*
|
|
503
|
-
* var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
|
|
504
|
-
*/
|
|
505
|
-
_createHmacHelper:function(r){return function(e,a){return new l.HMAC.init(r,a).finalize(e)}}});
|
|
506
|
-
/**
|
|
507
|
-
* Algorithm namespace.
|
|
508
|
-
*/var l=n.algo={};return n}(Math);return r}))})(core$1);return core$1.exports}var x64Core$1={exports:{}};var x64Core=x64Core$1.exports;var hasRequiredX64Core;function requireX64Core(){if(hasRequiredX64Core)return x64Core$1.exports;hasRequiredX64Core=1;(function(r,e){(function(e,a){{
|
|
509
|
-
// CommonJS
|
|
510
|
-
r.exports=a(requireCore())}})(x64Core,(function(r){(function(e){
|
|
511
|
-
// Shortcuts
|
|
512
|
-
var a=r;var i=a.lib;var t=i.Base;var n=i.WordArray;
|
|
513
|
-
/**
|
|
514
|
-
* x64 namespace.
|
|
515
|
-
*/var o=a.x64={};
|
|
516
|
-
/**
|
|
517
|
-
* A 64-bit word.
|
|
518
|
-
*/o.Word=t.extend({
|
|
519
|
-
/**
|
|
520
|
-
* Initializes a newly created 64-bit word.
|
|
521
|
-
*
|
|
522
|
-
* @param {number} high The high 32 bits.
|
|
523
|
-
* @param {number} low The low 32 bits.
|
|
524
|
-
*
|
|
525
|
-
* @example
|
|
526
|
-
*
|
|
527
|
-
* var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);
|
|
528
|
-
*/
|
|
529
|
-
init:function(r,e){this.high=r;this.low=e}
|
|
530
|
-
/**
|
|
531
|
-
* Bitwise NOTs this word.
|
|
532
|
-
*
|
|
533
|
-
* @return {X64Word} A new x64-Word object after negating.
|
|
534
|
-
*
|
|
535
|
-
* @example
|
|
536
|
-
*
|
|
537
|
-
* var negated = x64Word.not();
|
|
538
|
-
*/
|
|
539
|
-
// not: function () {
|
|
540
|
-
// var high = ~this.high;
|
|
541
|
-
// var low = ~this.low;
|
|
542
|
-
// return X64Word.create(high, low);
|
|
543
|
-
// },
|
|
544
|
-
/**
|
|
545
|
-
* Bitwise ANDs this word with the passed word.
|
|
546
|
-
*
|
|
547
|
-
* @param {X64Word} word The x64-Word to AND with this word.
|
|
548
|
-
*
|
|
549
|
-
* @return {X64Word} A new x64-Word object after ANDing.
|
|
550
|
-
*
|
|
551
|
-
* @example
|
|
552
|
-
*
|
|
553
|
-
* var anded = x64Word.and(anotherX64Word);
|
|
554
|
-
*/
|
|
555
|
-
// and: function (word) {
|
|
556
|
-
// var high = this.high & word.high;
|
|
557
|
-
// var low = this.low & word.low;
|
|
558
|
-
// return X64Word.create(high, low);
|
|
559
|
-
// },
|
|
560
|
-
/**
|
|
561
|
-
* Bitwise ORs this word with the passed word.
|
|
562
|
-
*
|
|
563
|
-
* @param {X64Word} word The x64-Word to OR with this word.
|
|
564
|
-
*
|
|
565
|
-
* @return {X64Word} A new x64-Word object after ORing.
|
|
566
|
-
*
|
|
567
|
-
* @example
|
|
568
|
-
*
|
|
569
|
-
* var ored = x64Word.or(anotherX64Word);
|
|
570
|
-
*/
|
|
571
|
-
// or: function (word) {
|
|
572
|
-
// var high = this.high | word.high;
|
|
573
|
-
// var low = this.low | word.low;
|
|
574
|
-
// return X64Word.create(high, low);
|
|
575
|
-
// },
|
|
576
|
-
/**
|
|
577
|
-
* Bitwise XORs this word with the passed word.
|
|
578
|
-
*
|
|
579
|
-
* @param {X64Word} word The x64-Word to XOR with this word.
|
|
580
|
-
*
|
|
581
|
-
* @return {X64Word} A new x64-Word object after XORing.
|
|
582
|
-
*
|
|
583
|
-
* @example
|
|
584
|
-
*
|
|
585
|
-
* var xored = x64Word.xor(anotherX64Word);
|
|
586
|
-
*/
|
|
587
|
-
// xor: function (word) {
|
|
588
|
-
// var high = this.high ^ word.high;
|
|
589
|
-
// var low = this.low ^ word.low;
|
|
590
|
-
// return X64Word.create(high, low);
|
|
591
|
-
// },
|
|
592
|
-
/**
|
|
593
|
-
* Shifts this word n bits to the left.
|
|
594
|
-
*
|
|
595
|
-
* @param {number} n The number of bits to shift.
|
|
596
|
-
*
|
|
597
|
-
* @return {X64Word} A new x64-Word object after shifting.
|
|
598
|
-
*
|
|
599
|
-
* @example
|
|
600
|
-
*
|
|
601
|
-
* var shifted = x64Word.shiftL(25);
|
|
602
|
-
*/
|
|
603
|
-
// shiftL: function (n) {
|
|
604
|
-
// if (n < 32) {
|
|
605
|
-
// var high = (this.high << n) | (this.low >>> (32 - n));
|
|
606
|
-
// var low = this.low << n;
|
|
607
|
-
// } else {
|
|
608
|
-
// var high = this.low << (n - 32);
|
|
609
|
-
// var low = 0;
|
|
610
|
-
// }
|
|
611
|
-
// return X64Word.create(high, low);
|
|
612
|
-
// },
|
|
613
|
-
/**
|
|
614
|
-
* Shifts this word n bits to the right.
|
|
615
|
-
*
|
|
616
|
-
* @param {number} n The number of bits to shift.
|
|
617
|
-
*
|
|
618
|
-
* @return {X64Word} A new x64-Word object after shifting.
|
|
619
|
-
*
|
|
620
|
-
* @example
|
|
621
|
-
*
|
|
622
|
-
* var shifted = x64Word.shiftR(7);
|
|
623
|
-
*/
|
|
624
|
-
// shiftR: function (n) {
|
|
625
|
-
// if (n < 32) {
|
|
626
|
-
// var low = (this.low >>> n) | (this.high << (32 - n));
|
|
627
|
-
// var high = this.high >>> n;
|
|
628
|
-
// } else {
|
|
629
|
-
// var low = this.high >>> (n - 32);
|
|
630
|
-
// var high = 0;
|
|
631
|
-
// }
|
|
632
|
-
// return X64Word.create(high, low);
|
|
633
|
-
// },
|
|
634
|
-
/**
|
|
635
|
-
* Rotates this word n bits to the left.
|
|
636
|
-
*
|
|
637
|
-
* @param {number} n The number of bits to rotate.
|
|
638
|
-
*
|
|
639
|
-
* @return {X64Word} A new x64-Word object after rotating.
|
|
640
|
-
*
|
|
641
|
-
* @example
|
|
642
|
-
*
|
|
643
|
-
* var rotated = x64Word.rotL(25);
|
|
644
|
-
*/
|
|
645
|
-
// rotL: function (n) {
|
|
646
|
-
// return this.shiftL(n).or(this.shiftR(64 - n));
|
|
647
|
-
// },
|
|
648
|
-
/**
|
|
649
|
-
* Rotates this word n bits to the right.
|
|
650
|
-
*
|
|
651
|
-
* @param {number} n The number of bits to rotate.
|
|
652
|
-
*
|
|
653
|
-
* @return {X64Word} A new x64-Word object after rotating.
|
|
654
|
-
*
|
|
655
|
-
* @example
|
|
656
|
-
*
|
|
657
|
-
* var rotated = x64Word.rotR(7);
|
|
658
|
-
*/
|
|
659
|
-
// rotR: function (n) {
|
|
660
|
-
// return this.shiftR(n).or(this.shiftL(64 - n));
|
|
661
|
-
// },
|
|
662
|
-
/**
|
|
663
|
-
* Adds this word with the passed word.
|
|
664
|
-
*
|
|
665
|
-
* @param {X64Word} word The x64-Word to add with this word.
|
|
666
|
-
*
|
|
667
|
-
* @return {X64Word} A new x64-Word object after adding.
|
|
668
|
-
*
|
|
669
|
-
* @example
|
|
670
|
-
*
|
|
671
|
-
* var added = x64Word.add(anotherX64Word);
|
|
672
|
-
*/
|
|
673
|
-
// add: function (word) {
|
|
674
|
-
// var low = (this.low + word.low) | 0;
|
|
675
|
-
// var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0;
|
|
676
|
-
// var high = (this.high + word.high + carry) | 0;
|
|
677
|
-
// return X64Word.create(high, low);
|
|
678
|
-
// }
|
|
679
|
-
});
|
|
680
|
-
/**
|
|
681
|
-
* An array of 64-bit words.
|
|
682
|
-
*
|
|
683
|
-
* @property {Array} words The array of CryptoJS.x64.Word objects.
|
|
684
|
-
* @property {number} sigBytes The number of significant bytes in this word array.
|
|
685
|
-
*/o.WordArray=t.extend({
|
|
686
|
-
/**
|
|
687
|
-
* Initializes a newly created word array.
|
|
688
|
-
*
|
|
689
|
-
* @param {Array} words (Optional) An array of CryptoJS.x64.Word objects.
|
|
690
|
-
* @param {number} sigBytes (Optional) The number of significant bytes in the words.
|
|
691
|
-
*
|
|
692
|
-
* @example
|
|
693
|
-
*
|
|
694
|
-
* var wordArray = CryptoJS.x64.WordArray.create();
|
|
695
|
-
*
|
|
696
|
-
* var wordArray = CryptoJS.x64.WordArray.create([
|
|
697
|
-
* CryptoJS.x64.Word.create(0x00010203, 0x04050607),
|
|
698
|
-
* CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
|
|
699
|
-
* ]);
|
|
700
|
-
*
|
|
701
|
-
* var wordArray = CryptoJS.x64.WordArray.create([
|
|
702
|
-
* CryptoJS.x64.Word.create(0x00010203, 0x04050607),
|
|
703
|
-
* CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
|
|
704
|
-
* ], 10);
|
|
705
|
-
*/
|
|
706
|
-
init:function(r,a){r=this.words=r||[];if(a!=e){this.sigBytes=a}else{this.sigBytes=r.length*8}},
|
|
707
|
-
/**
|
|
708
|
-
* Converts this 64-bit word array to a 32-bit word array.
|
|
709
|
-
*
|
|
710
|
-
* @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array.
|
|
711
|
-
*
|
|
712
|
-
* @example
|
|
713
|
-
*
|
|
714
|
-
* var x32WordArray = x64WordArray.toX32();
|
|
715
|
-
*/
|
|
716
|
-
toX32:function(){
|
|
717
|
-
// Shortcuts
|
|
718
|
-
var r=this.words;var e=r.length;
|
|
719
|
-
// Convert
|
|
720
|
-
var a=[];for(var i=0;i<e;i++){var t=r[i];a.push(t.high);a.push(t.low)}return n.create(a,this.sigBytes)},
|
|
721
|
-
/**
|
|
722
|
-
* Creates a copy of this word array.
|
|
723
|
-
*
|
|
724
|
-
* @return {X64WordArray} The clone.
|
|
725
|
-
*
|
|
726
|
-
* @example
|
|
727
|
-
*
|
|
728
|
-
* var clone = x64WordArray.clone();
|
|
729
|
-
*/
|
|
730
|
-
clone:function(){var r=t.clone.call(this);
|
|
731
|
-
// Clone "words" array
|
|
732
|
-
var e=r.words=this.words.slice(0);
|
|
733
|
-
// Clone each X64Word object
|
|
734
|
-
var a=e.length;for(var i=0;i<a;i++){e[i]=e[i].clone()}return r}})})();return r}))})(x64Core$1);return x64Core$1.exports}var libTypedarrays$1={exports:{}};var libTypedarrays=libTypedarrays$1.exports;var hasRequiredLibTypedarrays;function requireLibTypedarrays(){if(hasRequiredLibTypedarrays)return libTypedarrays$1.exports;hasRequiredLibTypedarrays=1;(function(r,e){(function(e,a){{
|
|
735
|
-
// CommonJS
|
|
736
|
-
r.exports=a(requireCore())}})(libTypedarrays,(function(r){(function(){
|
|
737
|
-
// Check if typed arrays are supported
|
|
738
|
-
if(typeof ArrayBuffer!="function"){return}
|
|
739
|
-
// Shortcuts
|
|
740
|
-
var e=r;var a=e.lib;var i=a.WordArray;
|
|
741
|
-
// Reference original init
|
|
742
|
-
var t=i.init;
|
|
743
|
-
// Augment WordArray.init to handle typed arrays
|
|
744
|
-
var n=i.init=function(r){
|
|
745
|
-
// Convert buffers to uint8
|
|
746
|
-
if(r instanceof ArrayBuffer){r=new Uint8Array(r)}
|
|
747
|
-
// Convert other array views to uint8
|
|
748
|
-
if(r instanceof Int8Array||typeof Uint8ClampedArray!=="undefined"&&r instanceof Uint8ClampedArray||r instanceof Int16Array||r instanceof Uint16Array||r instanceof Int32Array||r instanceof Uint32Array||r instanceof Float32Array||r instanceof Float64Array){r=new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}
|
|
749
|
-
// Handle Uint8Array
|
|
750
|
-
if(r instanceof Uint8Array){
|
|
751
|
-
// Shortcut
|
|
752
|
-
var e=r.byteLength;
|
|
753
|
-
// Extract bytes
|
|
754
|
-
var a=[];for(var i=0;i<e;i++){a[i>>>2]|=r[i]<<24-i%4*8}
|
|
755
|
-
// Initialize this word array
|
|
756
|
-
t.call(this,a,e)}else{
|
|
757
|
-
// Else call normal init
|
|
758
|
-
t.apply(this,arguments)}};n.prototype=i})();return r.lib.WordArray}))})(libTypedarrays$1);return libTypedarrays$1.exports}var encUtf16$1={exports:{}};var encUtf16=encUtf16$1.exports;var hasRequiredEncUtf16;function requireEncUtf16(){if(hasRequiredEncUtf16)return encUtf16$1.exports;hasRequiredEncUtf16=1;(function(r,e){(function(e,a){{
|
|
759
|
-
// CommonJS
|
|
760
|
-
r.exports=a(requireCore())}})(encUtf16,(function(r){(function(){
|
|
761
|
-
// Shortcuts
|
|
762
|
-
var e=r;var a=e.lib;var i=a.WordArray;var t=e.enc;
|
|
763
|
-
/**
|
|
764
|
-
* UTF-16 BE encoding strategy.
|
|
765
|
-
*/t.Utf16=t.Utf16BE={
|
|
766
|
-
/**
|
|
767
|
-
* Converts a word array to a UTF-16 BE string.
|
|
768
|
-
*
|
|
769
|
-
* @param {WordArray} wordArray The word array.
|
|
770
|
-
*
|
|
771
|
-
* @return {string} The UTF-16 BE string.
|
|
772
|
-
*
|
|
773
|
-
* @static
|
|
774
|
-
*
|
|
775
|
-
* @example
|
|
776
|
-
*
|
|
777
|
-
* var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
|
|
778
|
-
*/
|
|
779
|
-
stringify:function(r){
|
|
780
|
-
// Shortcuts
|
|
781
|
-
var e=r.words;var a=r.sigBytes;
|
|
782
|
-
// Convert
|
|
783
|
-
var i=[];for(var t=0;t<a;t+=2){var n=e[t>>>2]>>>16-t%4*8&65535;i.push(String.fromCharCode(n))}return i.join("")},
|
|
784
|
-
/**
|
|
785
|
-
* Converts a UTF-16 BE string to a word array.
|
|
786
|
-
*
|
|
787
|
-
* @param {string} utf16Str The UTF-16 BE string.
|
|
788
|
-
*
|
|
789
|
-
* @return {WordArray} The word array.
|
|
790
|
-
*
|
|
791
|
-
* @static
|
|
792
|
-
*
|
|
793
|
-
* @example
|
|
794
|
-
*
|
|
795
|
-
* var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
|
|
796
|
-
*/
|
|
797
|
-
parse:function(r){
|
|
798
|
-
// Shortcut
|
|
799
|
-
var e=r.length;
|
|
800
|
-
// Convert
|
|
801
|
-
var a=[];for(var t=0;t<e;t++){a[t>>>1]|=r.charCodeAt(t)<<16-t%2*16}return i.create(a,e*2)}};
|
|
802
|
-
/**
|
|
803
|
-
* UTF-16 LE encoding strategy.
|
|
804
|
-
*/t.Utf16LE={
|
|
805
|
-
/**
|
|
806
|
-
* Converts a word array to a UTF-16 LE string.
|
|
807
|
-
*
|
|
808
|
-
* @param {WordArray} wordArray The word array.
|
|
809
|
-
*
|
|
810
|
-
* @return {string} The UTF-16 LE string.
|
|
811
|
-
*
|
|
812
|
-
* @static
|
|
813
|
-
*
|
|
814
|
-
* @example
|
|
815
|
-
*
|
|
816
|
-
* var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
|
|
817
|
-
*/
|
|
818
|
-
stringify:function(r){
|
|
819
|
-
// Shortcuts
|
|
820
|
-
var e=r.words;var a=r.sigBytes;
|
|
821
|
-
// Convert
|
|
822
|
-
var i=[];for(var t=0;t<a;t+=2){var o=n(e[t>>>2]>>>16-t%4*8&65535);i.push(String.fromCharCode(o))}return i.join("")},
|
|
823
|
-
/**
|
|
824
|
-
* Converts a UTF-16 LE string to a word array.
|
|
825
|
-
*
|
|
826
|
-
* @param {string} utf16Str The UTF-16 LE string.
|
|
827
|
-
*
|
|
828
|
-
* @return {WordArray} The word array.
|
|
829
|
-
*
|
|
830
|
-
* @static
|
|
831
|
-
*
|
|
832
|
-
* @example
|
|
833
|
-
*
|
|
834
|
-
* var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
|
|
835
|
-
*/
|
|
836
|
-
parse:function(r){
|
|
837
|
-
// Shortcut
|
|
838
|
-
var e=r.length;
|
|
839
|
-
// Convert
|
|
840
|
-
var a=[];for(var t=0;t<e;t++){a[t>>>1]|=n(r.charCodeAt(t)<<16-t%2*16)}return i.create(a,e*2)}};function n(r){return r<<8&4278255360|r>>>8&16711935}})();return r.enc.Utf16}))})(encUtf16$1);return encUtf16$1.exports}var encBase64$1={exports:{}};var encBase64=encBase64$1.exports;var hasRequiredEncBase64;function requireEncBase64(){if(hasRequiredEncBase64)return encBase64$1.exports;hasRequiredEncBase64=1;(function(r,e){(function(e,a){{
|
|
841
|
-
// CommonJS
|
|
842
|
-
r.exports=a(requireCore())}})(encBase64,(function(r){(function(){
|
|
843
|
-
// Shortcuts
|
|
844
|
-
var e=r;var a=e.lib;var i=a.WordArray;var t=e.enc;
|
|
845
|
-
/**
|
|
846
|
-
* Base64 encoding strategy.
|
|
847
|
-
*/t.Base64={
|
|
848
|
-
/**
|
|
849
|
-
* Converts a word array to a Base64 string.
|
|
850
|
-
*
|
|
851
|
-
* @param {WordArray} wordArray The word array.
|
|
852
|
-
*
|
|
853
|
-
* @return {string} The Base64 string.
|
|
854
|
-
*
|
|
855
|
-
* @static
|
|
856
|
-
*
|
|
857
|
-
* @example
|
|
858
|
-
*
|
|
859
|
-
* var base64String = CryptoJS.enc.Base64.stringify(wordArray);
|
|
860
|
-
*/
|
|
861
|
-
stringify:function(r){
|
|
862
|
-
// Shortcuts
|
|
863
|
-
var e=r.words;var a=r.sigBytes;var i=this._map;
|
|
864
|
-
// Clamp excess bits
|
|
865
|
-
r.clamp();
|
|
866
|
-
// Convert
|
|
867
|
-
var t=[];for(var n=0;n<a;n+=3){var o=e[n>>>2]>>>24-n%4*8&255;var s=e[n+1>>>2]>>>24-(n+1)%4*8&255;var v=e[n+2>>>2]>>>24-(n+2)%4*8&255;var u=o<<16|s<<8|v;for(var f=0;f<4&&n+f*.75<a;f++){t.push(i.charAt(u>>>6*(3-f)&63))}}
|
|
868
|
-
// Add padding
|
|
869
|
-
var c=i.charAt(64);if(c){while(t.length%4){t.push(c)}}return t.join("")},
|
|
870
|
-
/**
|
|
871
|
-
* Converts a Base64 string to a word array.
|
|
872
|
-
*
|
|
873
|
-
* @param {string} base64Str The Base64 string.
|
|
874
|
-
*
|
|
875
|
-
* @return {WordArray} The word array.
|
|
876
|
-
*
|
|
877
|
-
* @static
|
|
878
|
-
*
|
|
879
|
-
* @example
|
|
880
|
-
*
|
|
881
|
-
* var wordArray = CryptoJS.enc.Base64.parse(base64String);
|
|
882
|
-
*/
|
|
883
|
-
parse:function(r){
|
|
884
|
-
// Shortcuts
|
|
885
|
-
var e=r.length;var a=this._map;var i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var t=0;t<a.length;t++){i[a.charCodeAt(t)]=t}}
|
|
886
|
-
// Ignore padding
|
|
887
|
-
var o=a.charAt(64);if(o){var s=r.indexOf(o);if(s!==-1){e=s}}
|
|
888
|
-
// Convert
|
|
889
|
-
return n(r,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function n(r,e,a){var t=[];var n=0;for(var o=0;o<e;o++){if(o%4){var s=a[r.charCodeAt(o-1)]<<o%4*2;var v=a[r.charCodeAt(o)]>>>6-o%4*2;var u=s|v;t[n>>>2]|=u<<24-n%4*8;n++}}return i.create(t,n)}})();return r.enc.Base64}))})(encBase64$1);return encBase64$1.exports}var encBase64url$1={exports:{}};var encBase64url=encBase64url$1.exports;var hasRequiredEncBase64url;function requireEncBase64url(){if(hasRequiredEncBase64url)return encBase64url$1.exports;hasRequiredEncBase64url=1;(function(r,e){(function(e,a){{
|
|
890
|
-
// CommonJS
|
|
891
|
-
r.exports=a(requireCore())}})(encBase64url,(function(r){(function(){
|
|
892
|
-
// Shortcuts
|
|
893
|
-
var e=r;var a=e.lib;var i=a.WordArray;var t=e.enc;
|
|
894
|
-
/**
|
|
895
|
-
* Base64url encoding strategy.
|
|
896
|
-
*/t.Base64url={
|
|
897
|
-
/**
|
|
898
|
-
* Converts a word array to a Base64url string.
|
|
899
|
-
*
|
|
900
|
-
* @param {WordArray} wordArray The word array.
|
|
901
|
-
*
|
|
902
|
-
* @param {boolean} urlSafe Whether to use url safe
|
|
903
|
-
*
|
|
904
|
-
* @return {string} The Base64url string.
|
|
905
|
-
*
|
|
906
|
-
* @static
|
|
907
|
-
*
|
|
908
|
-
* @example
|
|
909
|
-
*
|
|
910
|
-
* var base64String = CryptoJS.enc.Base64url.stringify(wordArray);
|
|
911
|
-
*/
|
|
912
|
-
stringify:function(r,e){if(e===undefined){e=true}
|
|
913
|
-
// Shortcuts
|
|
914
|
-
var a=r.words;var i=r.sigBytes;var t=e?this._safe_map:this._map;
|
|
915
|
-
// Clamp excess bits
|
|
916
|
-
r.clamp();
|
|
917
|
-
// Convert
|
|
918
|
-
var n=[];for(var o=0;o<i;o+=3){var s=a[o>>>2]>>>24-o%4*8&255;var v=a[o+1>>>2]>>>24-(o+1)%4*8&255;var u=a[o+2>>>2]>>>24-(o+2)%4*8&255;var f=s<<16|v<<8|u;for(var c=0;c<4&&o+c*.75<i;c++){n.push(t.charAt(f>>>6*(3-c)&63))}}
|
|
919
|
-
// Add padding
|
|
920
|
-
var d=t.charAt(64);if(d){while(n.length%4){n.push(d)}}return n.join("")},
|
|
921
|
-
/**
|
|
922
|
-
* Converts a Base64url string to a word array.
|
|
923
|
-
*
|
|
924
|
-
* @param {string} base64Str The Base64url string.
|
|
925
|
-
*
|
|
926
|
-
* @param {boolean} urlSafe Whether to use url safe
|
|
927
|
-
*
|
|
928
|
-
* @return {WordArray} The word array.
|
|
929
|
-
*
|
|
930
|
-
* @static
|
|
931
|
-
*
|
|
932
|
-
* @example
|
|
933
|
-
*
|
|
934
|
-
* var wordArray = CryptoJS.enc.Base64url.parse(base64String);
|
|
935
|
-
*/
|
|
936
|
-
parse:function(r,e){if(e===undefined){e=true}
|
|
937
|
-
// Shortcuts
|
|
938
|
-
var a=r.length;var i=e?this._safe_map:this._map;var t=this._reverseMap;if(!t){t=this._reverseMap=[];for(var o=0;o<i.length;o++){t[i.charCodeAt(o)]=o}}
|
|
939
|
-
// Ignore padding
|
|
940
|
-
var s=i.charAt(64);if(s){var v=r.indexOf(s);if(v!==-1){a=v}}
|
|
941
|
-
// Convert
|
|
942
|
-
return n(r,a,t)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function n(r,e,a){var t=[];var n=0;for(var o=0;o<e;o++){if(o%4){var s=a[r.charCodeAt(o-1)]<<o%4*2;var v=a[r.charCodeAt(o)]>>>6-o%4*2;var u=s|v;t[n>>>2]|=u<<24-n%4*8;n++}}return i.create(t,n)}})();return r.enc.Base64url}))})(encBase64url$1);return encBase64url$1.exports}var md5$1={exports:{}};var md5=md5$1.exports;var hasRequiredMd5;function requireMd5(){if(hasRequiredMd5)return md5$1.exports;hasRequiredMd5=1;(function(r,e){(function(e,a){{
|
|
943
|
-
// CommonJS
|
|
944
|
-
r.exports=a(requireCore())}})(md5,(function(r){(function(e){
|
|
945
|
-
// Shortcuts
|
|
946
|
-
var a=r;var i=a.lib;var t=i.WordArray;var n=i.Hasher;var o=a.algo;
|
|
947
|
-
// Constants table
|
|
948
|
-
var s=[];
|
|
949
|
-
// Compute constants
|
|
950
|
-
(function(){for(var r=0;r<64;r++){s[r]=e.abs(e.sin(r+1))*4294967296|0}})();
|
|
951
|
-
/**
|
|
952
|
-
* MD5 hash algorithm.
|
|
953
|
-
*/var v=o.MD5=n.extend({_doReset:function(){this._hash=new t.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(r,e){
|
|
954
|
-
// Swap endian
|
|
955
|
-
for(var a=0;a<16;a++){
|
|
956
|
-
// Shortcuts
|
|
957
|
-
var i=e+a;var t=r[i];r[i]=(t<<8|t>>>24)&16711935|(t<<24|t>>>8)&4278255360}
|
|
958
|
-
// Shortcuts
|
|
959
|
-
var n=this._hash.words;var o=r[e+0];var v=r[e+1];var h=r[e+2];var l=r[e+3];var p=r[e+4];var m=r[e+5];var b=r[e+6];var g=r[e+7];var q=r[e+8];var w=r[e+9];var x=r[e+10];var y=r[e+11];var $=r[e+12];var C=r[e+13];var R=r[e+14];var k=r[e+15];
|
|
960
|
-
// Working variables
|
|
961
|
-
var S=n[0];var E=n[1];var B=n[2];var _=n[3];
|
|
962
|
-
// Computation
|
|
963
|
-
S=u(S,E,B,_,o,7,s[0]);_=u(_,S,E,B,v,12,s[1]);B=u(B,_,S,E,h,17,s[2]);E=u(E,B,_,S,l,22,s[3]);S=u(S,E,B,_,p,7,s[4]);_=u(_,S,E,B,m,12,s[5]);B=u(B,_,S,E,b,17,s[6]);E=u(E,B,_,S,g,22,s[7]);S=u(S,E,B,_,q,7,s[8]);_=u(_,S,E,B,w,12,s[9]);B=u(B,_,S,E,x,17,s[10]);E=u(E,B,_,S,y,22,s[11]);S=u(S,E,B,_,$,7,s[12]);_=u(_,S,E,B,C,12,s[13]);B=u(B,_,S,E,R,17,s[14]);E=u(E,B,_,S,k,22,s[15]);S=f(S,E,B,_,v,5,s[16]);_=f(_,S,E,B,b,9,s[17]);B=f(B,_,S,E,y,14,s[18]);E=f(E,B,_,S,o,20,s[19]);S=f(S,E,B,_,m,5,s[20]);_=f(_,S,E,B,x,9,s[21]);B=f(B,_,S,E,k,14,s[22]);E=f(E,B,_,S,p,20,s[23]);S=f(S,E,B,_,w,5,s[24]);_=f(_,S,E,B,R,9,s[25]);B=f(B,_,S,E,l,14,s[26]);E=f(E,B,_,S,q,20,s[27]);S=f(S,E,B,_,C,5,s[28]);_=f(_,S,E,B,h,9,s[29]);B=f(B,_,S,E,g,14,s[30]);E=f(E,B,_,S,$,20,s[31]);S=c(S,E,B,_,m,4,s[32]);_=c(_,S,E,B,q,11,s[33]);B=c(B,_,S,E,y,16,s[34]);E=c(E,B,_,S,R,23,s[35]);S=c(S,E,B,_,v,4,s[36]);_=c(_,S,E,B,p,11,s[37]);B=c(B,_,S,E,g,16,s[38]);E=c(E,B,_,S,x,23,s[39]);S=c(S,E,B,_,C,4,s[40]);_=c(_,S,E,B,o,11,s[41]);B=c(B,_,S,E,l,16,s[42]);E=c(E,B,_,S,b,23,s[43]);S=c(S,E,B,_,w,4,s[44]);_=c(_,S,E,B,$,11,s[45]);B=c(B,_,S,E,k,16,s[46]);E=c(E,B,_,S,h,23,s[47]);S=d(S,E,B,_,o,6,s[48]);_=d(_,S,E,B,g,10,s[49]);B=d(B,_,S,E,R,15,s[50]);E=d(E,B,_,S,m,21,s[51]);S=d(S,E,B,_,$,6,s[52]);_=d(_,S,E,B,l,10,s[53]);B=d(B,_,S,E,x,15,s[54]);E=d(E,B,_,S,v,21,s[55]);S=d(S,E,B,_,q,6,s[56]);_=d(_,S,E,B,k,10,s[57]);B=d(B,_,S,E,b,15,s[58]);E=d(E,B,_,S,C,21,s[59]);S=d(S,E,B,_,p,6,s[60]);_=d(_,S,E,B,y,10,s[61]);B=d(B,_,S,E,h,15,s[62]);E=d(E,B,_,S,w,21,s[63]);
|
|
964
|
-
// Intermediate hash value
|
|
965
|
-
n[0]=n[0]+S|0;n[1]=n[1]+E|0;n[2]=n[2]+B|0;n[3]=n[3]+_|0},_doFinalize:function(){
|
|
966
|
-
// Shortcuts
|
|
967
|
-
var r=this._data;var a=r.words;var i=this._nDataBytes*8;var t=r.sigBytes*8;
|
|
968
|
-
// Add padding
|
|
969
|
-
a[t>>>5]|=128<<24-t%32;var n=e.floor(i/4294967296);var o=i;a[(t+64>>>9<<4)+15]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360;a[(t+64>>>9<<4)+14]=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360;r.sigBytes=(a.length+1)*4;
|
|
970
|
-
// Hash final blocks
|
|
971
|
-
this._process();
|
|
972
|
-
// Shortcuts
|
|
973
|
-
var s=this._hash;var v=s.words;
|
|
974
|
-
// Swap endian
|
|
975
|
-
for(var u=0;u<4;u++){
|
|
976
|
-
// Shortcut
|
|
977
|
-
var f=v[u];v[u]=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360}
|
|
978
|
-
// Return final computed hash
|
|
979
|
-
return s},clone:function(){var r=n.clone.call(this);r._hash=this._hash.clone();return r}});function u(r,e,a,i,t,n,o){var s=r+(e&a|~e&i)+t+o;return(s<<n|s>>>32-n)+e}function f(r,e,a,i,t,n,o){var s=r+(e&i|a&~i)+t+o;return(s<<n|s>>>32-n)+e}function c(r,e,a,i,t,n,o){var s=r+(e^a^i)+t+o;return(s<<n|s>>>32-n)+e}function d(r,e,a,i,t,n,o){var s=r+(a^(e|~i))+t+o;return(s<<n|s>>>32-n)+e}
|
|
980
|
-
/**
|
|
981
|
-
* Shortcut function to the hasher's object interface.
|
|
982
|
-
*
|
|
983
|
-
* @param {WordArray|string} message The message to hash.
|
|
984
|
-
*
|
|
985
|
-
* @return {WordArray} The hash.
|
|
986
|
-
*
|
|
987
|
-
* @static
|
|
988
|
-
*
|
|
989
|
-
* @example
|
|
990
|
-
*
|
|
991
|
-
* var hash = CryptoJS.MD5('message');
|
|
992
|
-
* var hash = CryptoJS.MD5(wordArray);
|
|
993
|
-
*/a.MD5=n._createHelper(v);
|
|
994
|
-
/**
|
|
995
|
-
* Shortcut function to the HMAC's object interface.
|
|
996
|
-
*
|
|
997
|
-
* @param {WordArray|string} message The message to hash.
|
|
998
|
-
* @param {WordArray|string} key The secret key.
|
|
999
|
-
*
|
|
1000
|
-
* @return {WordArray} The HMAC.
|
|
1001
|
-
*
|
|
1002
|
-
* @static
|
|
1003
|
-
*
|
|
1004
|
-
* @example
|
|
1005
|
-
*
|
|
1006
|
-
* var hmac = CryptoJS.HmacMD5(message, key);
|
|
1007
|
-
*/a.HmacMD5=n._createHmacHelper(v)})(Math);return r.MD5}))})(md5$1);return md5$1.exports}var sha1$1={exports:{}};var sha1=sha1$1.exports;var hasRequiredSha1;function requireSha1(){if(hasRequiredSha1)return sha1$1.exports;hasRequiredSha1=1;(function(r,e){(function(e,a){{
|
|
1008
|
-
// CommonJS
|
|
1009
|
-
r.exports=a(requireCore())}})(sha1,(function(r){(function(){
|
|
1010
|
-
// Shortcuts
|
|
1011
|
-
var e=r;var a=e.lib;var i=a.WordArray;var t=a.Hasher;var n=e.algo;
|
|
1012
|
-
// Reusable object
|
|
1013
|
-
var o=[];
|
|
1014
|
-
/**
|
|
1015
|
-
* SHA-1 hash algorithm.
|
|
1016
|
-
*/var s=n.SHA1=t.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,e){
|
|
1017
|
-
// Shortcut
|
|
1018
|
-
var a=this._hash.words;
|
|
1019
|
-
// Working variables
|
|
1020
|
-
var i=a[0];var t=a[1];var n=a[2];var s=a[3];var v=a[4];
|
|
1021
|
-
// Computation
|
|
1022
|
-
for(var u=0;u<80;u++){if(u<16){o[u]=r[e+u]|0}else{var f=o[u-3]^o[u-8]^o[u-14]^o[u-16];o[u]=f<<1|f>>>31}var c=(i<<5|i>>>27)+v+o[u];if(u<20){c+=(t&n|~t&s)+1518500249}else if(u<40){c+=(t^n^s)+1859775393}else if(u<60){c+=(t&n|t&s|n&s)-1894007588}else/* if (i < 80) */{c+=(t^n^s)-899497514}v=s;s=n;n=t<<30|t>>>2;t=i;i=c}
|
|
1023
|
-
// Intermediate hash value
|
|
1024
|
-
a[0]=a[0]+i|0;a[1]=a[1]+t|0;a[2]=a[2]+n|0;a[3]=a[3]+s|0;a[4]=a[4]+v|0},_doFinalize:function(){
|
|
1025
|
-
// Shortcuts
|
|
1026
|
-
var r=this._data;var e=r.words;var a=this._nDataBytes*8;var i=r.sigBytes*8;
|
|
1027
|
-
// Add padding
|
|
1028
|
-
e[i>>>5]|=128<<24-i%32;e[(i+64>>>9<<4)+14]=Math.floor(a/4294967296);e[(i+64>>>9<<4)+15]=a;r.sigBytes=e.length*4;
|
|
1029
|
-
// Hash final blocks
|
|
1030
|
-
this._process();
|
|
1031
|
-
// Return final computed hash
|
|
1032
|
-
return this._hash},clone:function(){var r=t.clone.call(this);r._hash=this._hash.clone();return r}});
|
|
1033
|
-
/**
|
|
1034
|
-
* Shortcut function to the hasher's object interface.
|
|
1035
|
-
*
|
|
1036
|
-
* @param {WordArray|string} message The message to hash.
|
|
1037
|
-
*
|
|
1038
|
-
* @return {WordArray} The hash.
|
|
1039
|
-
*
|
|
1040
|
-
* @static
|
|
1041
|
-
*
|
|
1042
|
-
* @example
|
|
1043
|
-
*
|
|
1044
|
-
* var hash = CryptoJS.SHA1('message');
|
|
1045
|
-
* var hash = CryptoJS.SHA1(wordArray);
|
|
1046
|
-
*/e.SHA1=t._createHelper(s);
|
|
1047
|
-
/**
|
|
1048
|
-
* Shortcut function to the HMAC's object interface.
|
|
1049
|
-
*
|
|
1050
|
-
* @param {WordArray|string} message The message to hash.
|
|
1051
|
-
* @param {WordArray|string} key The secret key.
|
|
1052
|
-
*
|
|
1053
|
-
* @return {WordArray} The HMAC.
|
|
1054
|
-
*
|
|
1055
|
-
* @static
|
|
1056
|
-
*
|
|
1057
|
-
* @example
|
|
1058
|
-
*
|
|
1059
|
-
* var hmac = CryptoJS.HmacSHA1(message, key);
|
|
1060
|
-
*/e.HmacSHA1=t._createHmacHelper(s)})();return r.SHA1}))})(sha1$1);return sha1$1.exports}var sha256$1={exports:{}};var sha256=sha256$1.exports;var hasRequiredSha256;function requireSha256(){if(hasRequiredSha256)return sha256$1.exports;hasRequiredSha256=1;(function(r,e){(function(e,a){{
|
|
1061
|
-
// CommonJS
|
|
1062
|
-
r.exports=a(requireCore())}})(sha256,(function(r){(function(e){
|
|
1063
|
-
// Shortcuts
|
|
1064
|
-
var a=r;var i=a.lib;var t=i.WordArray;var n=i.Hasher;var o=a.algo;
|
|
1065
|
-
// Initialization and round constants tables
|
|
1066
|
-
var s=[];var v=[];
|
|
1067
|
-
// Compute constants
|
|
1068
|
-
(function(){function r(r){var a=e.sqrt(r);for(var i=2;i<=a;i++){if(!(r%i)){return false}}return true}function a(r){return(r-(r|0))*4294967296|0}var i=2;var t=0;while(t<64){if(r(i)){if(t<8){s[t]=a(e.pow(i,1/2))}v[t]=a(e.pow(i,1/3));t++}i++}})();
|
|
1069
|
-
// Reusable object
|
|
1070
|
-
var u=[];
|
|
1071
|
-
/**
|
|
1072
|
-
* SHA-256 hash algorithm.
|
|
1073
|
-
*/var f=o.SHA256=n.extend({_doReset:function(){this._hash=new t.init(s.slice(0))},_doProcessBlock:function(r,e){
|
|
1074
|
-
// Shortcut
|
|
1075
|
-
var a=this._hash.words;
|
|
1076
|
-
// Working variables
|
|
1077
|
-
var i=a[0];var t=a[1];var n=a[2];var o=a[3];var s=a[4];var f=a[5];var c=a[6];var d=a[7];
|
|
1078
|
-
// Computation
|
|
1079
|
-
for(var h=0;h<64;h++){if(h<16){u[h]=r[e+h]|0}else{var l=u[h-15];var p=(l<<25|l>>>7)^(l<<14|l>>>18)^l>>>3;var m=u[h-2];var b=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[h]=p+u[h-7]+b+u[h-16]}var g=s&f^~s&c;var q=i&t^i&n^t&n;var w=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22);var x=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25);var y=d+x+g+v[h]+u[h];var $=w+q;d=c;c=f;f=s;s=o+y|0;o=n;n=t;t=i;i=y+$|0}
|
|
1080
|
-
// Intermediate hash value
|
|
1081
|
-
a[0]=a[0]+i|0;a[1]=a[1]+t|0;a[2]=a[2]+n|0;a[3]=a[3]+o|0;a[4]=a[4]+s|0;a[5]=a[5]+f|0;a[6]=a[6]+c|0;a[7]=a[7]+d|0},_doFinalize:function(){
|
|
1082
|
-
// Shortcuts
|
|
1083
|
-
var r=this._data;var a=r.words;var i=this._nDataBytes*8;var t=r.sigBytes*8;
|
|
1084
|
-
// Add padding
|
|
1085
|
-
a[t>>>5]|=128<<24-t%32;a[(t+64>>>9<<4)+14]=e.floor(i/4294967296);a[(t+64>>>9<<4)+15]=i;r.sigBytes=a.length*4;
|
|
1086
|
-
// Hash final blocks
|
|
1087
|
-
this._process();
|
|
1088
|
-
// Return final computed hash
|
|
1089
|
-
return this._hash},clone:function(){var r=n.clone.call(this);r._hash=this._hash.clone();return r}});
|
|
1090
|
-
/**
|
|
1091
|
-
* Shortcut function to the hasher's object interface.
|
|
1092
|
-
*
|
|
1093
|
-
* @param {WordArray|string} message The message to hash.
|
|
1094
|
-
*
|
|
1095
|
-
* @return {WordArray} The hash.
|
|
1096
|
-
*
|
|
1097
|
-
* @static
|
|
1098
|
-
*
|
|
1099
|
-
* @example
|
|
1100
|
-
*
|
|
1101
|
-
* var hash = CryptoJS.SHA256('message');
|
|
1102
|
-
* var hash = CryptoJS.SHA256(wordArray);
|
|
1103
|
-
*/a.SHA256=n._createHelper(f);
|
|
1104
|
-
/**
|
|
1105
|
-
* Shortcut function to the HMAC's object interface.
|
|
1106
|
-
*
|
|
1107
|
-
* @param {WordArray|string} message The message to hash.
|
|
1108
|
-
* @param {WordArray|string} key The secret key.
|
|
1109
|
-
*
|
|
1110
|
-
* @return {WordArray} The HMAC.
|
|
1111
|
-
*
|
|
1112
|
-
* @static
|
|
1113
|
-
*
|
|
1114
|
-
* @example
|
|
1115
|
-
*
|
|
1116
|
-
* var hmac = CryptoJS.HmacSHA256(message, key);
|
|
1117
|
-
*/a.HmacSHA256=n._createHmacHelper(f)})(Math);return r.SHA256}))})(sha256$1);return sha256$1.exports}var sha224$1={exports:{}};var sha224=sha224$1.exports;var hasRequiredSha224;function requireSha224(){if(hasRequiredSha224)return sha224$1.exports;hasRequiredSha224=1;(function(r,e){(function(e,a,i){{
|
|
1118
|
-
// CommonJS
|
|
1119
|
-
r.exports=a(requireCore(),requireSha256())}})(sha224,(function(r){(function(){
|
|
1120
|
-
// Shortcuts
|
|
1121
|
-
var e=r;var a=e.lib;var i=a.WordArray;var t=e.algo;var n=t.SHA256;
|
|
1122
|
-
/**
|
|
1123
|
-
* SHA-224 hash algorithm.
|
|
1124
|
-
*/var o=t.SHA224=n.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var r=n._doFinalize.call(this);r.sigBytes-=4;return r}});
|
|
1125
|
-
/**
|
|
1126
|
-
* Shortcut function to the hasher's object interface.
|
|
1127
|
-
*
|
|
1128
|
-
* @param {WordArray|string} message The message to hash.
|
|
1129
|
-
*
|
|
1130
|
-
* @return {WordArray} The hash.
|
|
1131
|
-
*
|
|
1132
|
-
* @static
|
|
1133
|
-
*
|
|
1134
|
-
* @example
|
|
1135
|
-
*
|
|
1136
|
-
* var hash = CryptoJS.SHA224('message');
|
|
1137
|
-
* var hash = CryptoJS.SHA224(wordArray);
|
|
1138
|
-
*/e.SHA224=n._createHelper(o);
|
|
1139
|
-
/**
|
|
1140
|
-
* Shortcut function to the HMAC's object interface.
|
|
1141
|
-
*
|
|
1142
|
-
* @param {WordArray|string} message The message to hash.
|
|
1143
|
-
* @param {WordArray|string} key The secret key.
|
|
1144
|
-
*
|
|
1145
|
-
* @return {WordArray} The HMAC.
|
|
1146
|
-
*
|
|
1147
|
-
* @static
|
|
1148
|
-
*
|
|
1149
|
-
* @example
|
|
1150
|
-
*
|
|
1151
|
-
* var hmac = CryptoJS.HmacSHA224(message, key);
|
|
1152
|
-
*/e.HmacSHA224=n._createHmacHelper(o)})();return r.SHA224}))})(sha224$1);return sha224$1.exports}var sha512$1={exports:{}};var sha512=sha512$1.exports;var hasRequiredSha512;function requireSha512(){if(hasRequiredSha512)return sha512$1.exports;hasRequiredSha512=1;(function(r,e){(function(e,a,i){{
|
|
1153
|
-
// CommonJS
|
|
1154
|
-
r.exports=a(requireCore(),requireX64Core())}})(sha512,(function(r){(function(){
|
|
1155
|
-
// Shortcuts
|
|
1156
|
-
var e=r;var a=e.lib;var i=a.Hasher;var t=e.x64;var n=t.Word;var o=t.WordArray;var s=e.algo;function v(){return n.create.apply(n,arguments)}
|
|
1157
|
-
// Constants
|
|
1158
|
-
var u=[v(1116352408,3609767458),v(1899447441,602891725),v(3049323471,3964484399),v(3921009573,2173295548),v(961987163,4081628472),v(1508970993,3053834265),v(2453635748,2937671579),v(2870763221,3664609560),v(3624381080,2734883394),v(310598401,1164996542),v(607225278,1323610764),v(1426881987,3590304994),v(1925078388,4068182383),v(2162078206,991336113),v(2614888103,633803317),v(3248222580,3479774868),v(3835390401,2666613458),v(4022224774,944711139),v(264347078,2341262773),v(604807628,2007800933),v(770255983,1495990901),v(1249150122,1856431235),v(1555081692,3175218132),v(1996064986,2198950837),v(2554220882,3999719339),v(2821834349,766784016),v(2952996808,2566594879),v(3210313671,3203337956),v(3336571891,1034457026),v(3584528711,2466948901),v(113926993,3758326383),v(338241895,168717936),v(666307205,1188179964),v(773529912,1546045734),v(1294757372,1522805485),v(1396182291,2643833823),v(1695183700,2343527390),v(1986661051,1014477480),v(2177026350,1206759142),v(2456956037,344077627),v(2730485921,1290863460),v(2820302411,3158454273),v(3259730800,3505952657),v(3345764771,106217008),v(3516065817,3606008344),v(3600352804,1432725776),v(4094571909,1467031594),v(275423344,851169720),v(430227734,3100823752),v(506948616,1363258195),v(659060556,3750685593),v(883997877,3785050280),v(958139571,3318307427),v(1322822218,3812723403),v(1537002063,2003034995),v(1747873779,3602036899),v(1955562222,1575990012),v(2024104815,1125592928),v(2227730452,2716904306),v(2361852424,442776044),v(2428436474,593698344),v(2756734187,3733110249),v(3204031479,2999351573),v(3329325298,3815920427),v(3391569614,3928383900),v(3515267271,566280711),v(3940187606,3454069534),v(4118630271,4000239992),v(116418474,1914138554),v(174292421,2731055270),v(289380356,3203993006),v(460393269,320620315),v(685471733,587496836),v(852142971,1086792851),v(1017036298,365543100),v(1126000580,2618297676),v(1288033470,3409855158),v(1501505948,4234509866),v(1607167915,987167468),v(1816402316,1246189591)];
|
|
1159
|
-
// Reusable objects
|
|
1160
|
-
var f=[];(function(){for(var r=0;r<80;r++){f[r]=v()}})();
|
|
1161
|
-
/**
|
|
1162
|
-
* SHA-512 hash algorithm.
|
|
1163
|
-
*/var c=s.SHA512=i.extend({_doReset:function(){this._hash=new o.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(r,e){
|
|
1164
|
-
// Shortcuts
|
|
1165
|
-
var a=this._hash.words;var i=a[0];var t=a[1];var n=a[2];var o=a[3];var s=a[4];var v=a[5];var c=a[6];var d=a[7];var h=i.high;var l=i.low;var p=t.high;var m=t.low;var b=n.high;var g=n.low;var q=o.high;var w=o.low;var x=s.high;var y=s.low;var $=v.high;var C=v.low;var R=c.high;var k=c.low;var S=d.high;var E=d.low;
|
|
1166
|
-
// Working variables
|
|
1167
|
-
var B=h;var _=l;var M=p;var z=m;var I=b;var P=g;var F=q;var D=w;var L=x;var A=y;var H=$;var O=C;var j=R;var U=k;var T=S;var N=E;
|
|
1168
|
-
// Rounds
|
|
1169
|
-
for(var G=0;G<80;G++){var J;var Z;
|
|
1170
|
-
// Shortcut
|
|
1171
|
-
var X=f[G];
|
|
1172
|
-
// Extend message
|
|
1173
|
-
if(G<16){Z=X.high=r[e+G*2]|0;J=X.low=r[e+G*2+1]|0}else{
|
|
1174
|
-
// Gamma0
|
|
1175
|
-
var Y=f[G-15];var V=Y.high;var K=Y.low;var Q=(V>>>1|K<<31)^(V>>>8|K<<24)^V>>>7;var W=(K>>>1|V<<31)^(K>>>8|V<<24)^(K>>>7|V<<25);
|
|
1176
|
-
// Gamma1
|
|
1177
|
-
var rr=f[G-2];var er=rr.high;var ar=rr.low;var ir=(er>>>19|ar<<13)^(er<<3|ar>>>29)^er>>>6;var tr=(ar>>>19|er<<13)^(ar<<3|er>>>29)^(ar>>>6|er<<26);
|
|
1178
|
-
// W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]
|
|
1179
|
-
var nr=f[G-7];var or=nr.high;var sr=nr.low;var vr=f[G-16];var ur=vr.high;var fr=vr.low;J=W+sr;Z=Q+or+(J>>>0<W>>>0?1:0);J=J+tr;Z=Z+ir+(J>>>0<tr>>>0?1:0);J=J+fr;Z=Z+ur+(J>>>0<fr>>>0?1:0);X.high=Z;X.low=J}var cr=L&H^~L&j;var dr=A&O^~A&U;var hr=B&M^B&I^M&I;var lr=_&z^_&P^z&P;var pr=(B>>>28|_<<4)^(B<<30|_>>>2)^(B<<25|_>>>7);var mr=(_>>>28|B<<4)^(_<<30|B>>>2)^(_<<25|B>>>7);var br=(L>>>14|A<<18)^(L>>>18|A<<14)^(L<<23|A>>>9);var gr=(A>>>14|L<<18)^(A>>>18|L<<14)^(A<<23|L>>>9);
|
|
1180
|
-
// t1 = h + sigma1 + ch + K[i] + W[i]
|
|
1181
|
-
var qr=u[G];var wr=qr.high;var xr=qr.low;var yr=N+gr;var $r=T+br+(yr>>>0<N>>>0?1:0);var yr=yr+dr;var $r=$r+cr+(yr>>>0<dr>>>0?1:0);var yr=yr+xr;var $r=$r+wr+(yr>>>0<xr>>>0?1:0);var yr=yr+J;var $r=$r+Z+(yr>>>0<J>>>0?1:0);
|
|
1182
|
-
// t2 = sigma0 + maj
|
|
1183
|
-
var Cr=mr+lr;var Rr=pr+hr+(Cr>>>0<mr>>>0?1:0);
|
|
1184
|
-
// Update working variables
|
|
1185
|
-
T=j;N=U;j=H;U=O;H=L;O=A;A=D+yr|0;L=F+$r+(A>>>0<D>>>0?1:0)|0;F=I;D=P;I=M;P=z;M=B;z=_;_=yr+Cr|0;B=$r+Rr+(_>>>0<yr>>>0?1:0)|0}
|
|
1186
|
-
// Intermediate hash value
|
|
1187
|
-
l=i.low=l+_;i.high=h+B+(l>>>0<_>>>0?1:0);m=t.low=m+z;t.high=p+M+(m>>>0<z>>>0?1:0);g=n.low=g+P;n.high=b+I+(g>>>0<P>>>0?1:0);w=o.low=w+D;o.high=q+F+(w>>>0<D>>>0?1:0);y=s.low=y+A;s.high=x+L+(y>>>0<A>>>0?1:0);C=v.low=C+O;v.high=$+H+(C>>>0<O>>>0?1:0);k=c.low=k+U;c.high=R+j+(k>>>0<U>>>0?1:0);E=d.low=E+N;d.high=S+T+(E>>>0<N>>>0?1:0)},_doFinalize:function(){
|
|
1188
|
-
// Shortcuts
|
|
1189
|
-
var r=this._data;var e=r.words;var a=this._nDataBytes*8;var i=r.sigBytes*8;
|
|
1190
|
-
// Add padding
|
|
1191
|
-
e[i>>>5]|=128<<24-i%32;e[(i+128>>>10<<5)+30]=Math.floor(a/4294967296);e[(i+128>>>10<<5)+31]=a;r.sigBytes=e.length*4;
|
|
1192
|
-
// Hash final blocks
|
|
1193
|
-
this._process();
|
|
1194
|
-
// Convert hash to 32-bit word array before returning
|
|
1195
|
-
var t=this._hash.toX32();
|
|
1196
|
-
// Return final computed hash
|
|
1197
|
-
return t},clone:function(){var r=i.clone.call(this);r._hash=this._hash.clone();return r},blockSize:1024/32});
|
|
1198
|
-
/**
|
|
1199
|
-
* Shortcut function to the hasher's object interface.
|
|
1200
|
-
*
|
|
1201
|
-
* @param {WordArray|string} message The message to hash.
|
|
1202
|
-
*
|
|
1203
|
-
* @return {WordArray} The hash.
|
|
1204
|
-
*
|
|
1205
|
-
* @static
|
|
1206
|
-
*
|
|
1207
|
-
* @example
|
|
1208
|
-
*
|
|
1209
|
-
* var hash = CryptoJS.SHA512('message');
|
|
1210
|
-
* var hash = CryptoJS.SHA512(wordArray);
|
|
1211
|
-
*/e.SHA512=i._createHelper(c);
|
|
1212
|
-
/**
|
|
1213
|
-
* Shortcut function to the HMAC's object interface.
|
|
1214
|
-
*
|
|
1215
|
-
* @param {WordArray|string} message The message to hash.
|
|
1216
|
-
* @param {WordArray|string} key The secret key.
|
|
1217
|
-
*
|
|
1218
|
-
* @return {WordArray} The HMAC.
|
|
1219
|
-
*
|
|
1220
|
-
* @static
|
|
1221
|
-
*
|
|
1222
|
-
* @example
|
|
1223
|
-
*
|
|
1224
|
-
* var hmac = CryptoJS.HmacSHA512(message, key);
|
|
1225
|
-
*/e.HmacSHA512=i._createHmacHelper(c)})();return r.SHA512}))})(sha512$1);return sha512$1.exports}var sha384$1={exports:{}};var sha384=sha384$1.exports;var hasRequiredSha384;function requireSha384(){if(hasRequiredSha384)return sha384$1.exports;hasRequiredSha384=1;(function(r,e){(function(e,a,i){{
|
|
1226
|
-
// CommonJS
|
|
1227
|
-
r.exports=a(requireCore(),requireX64Core(),requireSha512())}})(sha384,(function(r){(function(){
|
|
1228
|
-
// Shortcuts
|
|
1229
|
-
var e=r;var a=e.x64;var i=a.Word;var t=a.WordArray;var n=e.algo;var o=n.SHA512;
|
|
1230
|
-
/**
|
|
1231
|
-
* SHA-384 hash algorithm.
|
|
1232
|
-
*/var s=n.SHA384=o.extend({_doReset:function(){this._hash=new t.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var r=o._doFinalize.call(this);r.sigBytes-=16;return r}});
|
|
1233
|
-
/**
|
|
1234
|
-
* Shortcut function to the hasher's object interface.
|
|
1235
|
-
*
|
|
1236
|
-
* @param {WordArray|string} message The message to hash.
|
|
1237
|
-
*
|
|
1238
|
-
* @return {WordArray} The hash.
|
|
1239
|
-
*
|
|
1240
|
-
* @static
|
|
1241
|
-
*
|
|
1242
|
-
* @example
|
|
1243
|
-
*
|
|
1244
|
-
* var hash = CryptoJS.SHA384('message');
|
|
1245
|
-
* var hash = CryptoJS.SHA384(wordArray);
|
|
1246
|
-
*/e.SHA384=o._createHelper(s);
|
|
1247
|
-
/**
|
|
1248
|
-
* Shortcut function to the HMAC's object interface.
|
|
1249
|
-
*
|
|
1250
|
-
* @param {WordArray|string} message The message to hash.
|
|
1251
|
-
* @param {WordArray|string} key The secret key.
|
|
1252
|
-
*
|
|
1253
|
-
* @return {WordArray} The HMAC.
|
|
1254
|
-
*
|
|
1255
|
-
* @static
|
|
1256
|
-
*
|
|
1257
|
-
* @example
|
|
1258
|
-
*
|
|
1259
|
-
* var hmac = CryptoJS.HmacSHA384(message, key);
|
|
1260
|
-
*/e.HmacSHA384=o._createHmacHelper(s)})();return r.SHA384}))})(sha384$1);return sha384$1.exports}var sha3$1={exports:{}};var sha3=sha3$1.exports;var hasRequiredSha3;function requireSha3(){if(hasRequiredSha3)return sha3$1.exports;hasRequiredSha3=1;(function(r,e){(function(e,a,i){{
|
|
1261
|
-
// CommonJS
|
|
1262
|
-
r.exports=a(requireCore(),requireX64Core())}})(sha3,(function(r){(function(e){
|
|
1263
|
-
// Shortcuts
|
|
1264
|
-
var a=r;var i=a.lib;var t=i.WordArray;var n=i.Hasher;var o=a.x64;var s=o.Word;var v=a.algo;
|
|
1265
|
-
// Constants tables
|
|
1266
|
-
var u=[];var f=[];var c=[];
|
|
1267
|
-
// Compute Constants
|
|
1268
|
-
(function(){
|
|
1269
|
-
// Compute rho offset constants
|
|
1270
|
-
var r=1,e=0;for(var a=0;a<24;a++){u[r+5*e]=(a+1)*(a+2)/2%64;var i=e%5;var t=(2*r+3*e)%5;r=i;e=t}
|
|
1271
|
-
// Compute pi index constants
|
|
1272
|
-
for(var r=0;r<5;r++){for(var e=0;e<5;e++){f[r+5*e]=e+(2*r+3*e)%5*5}}
|
|
1273
|
-
// Compute round constants
|
|
1274
|
-
var n=1;for(var o=0;o<24;o++){var v=0;var d=0;for(var h=0;h<7;h++){if(n&1){var l=(1<<h)-1;if(l<32){d^=1<<l}else/* if (bitPosition >= 32) */{v^=1<<l-32}}
|
|
1275
|
-
// Compute next LFSR
|
|
1276
|
-
if(n&128){
|
|
1277
|
-
// Primitive polynomial over GF(2): x^8 + x^6 + x^5 + x^4 + 1
|
|
1278
|
-
n=n<<1^113}else{n<<=1}}c[o]=s.create(v,d)}})();
|
|
1279
|
-
// Reusable objects for temporary values
|
|
1280
|
-
var d=[];(function(){for(var r=0;r<25;r++){d[r]=s.create()}})();
|
|
1281
|
-
/**
|
|
1282
|
-
* SHA-3 hash algorithm.
|
|
1283
|
-
*/var h=v.SHA3=n.extend({
|
|
1284
|
-
/**
|
|
1285
|
-
* Configuration options.
|
|
1286
|
-
*
|
|
1287
|
-
* @property {number} outputLength
|
|
1288
|
-
* The desired number of bits in the output hash.
|
|
1289
|
-
* Only values permitted are: 224, 256, 384, 512.
|
|
1290
|
-
* Default: 512
|
|
1291
|
-
*/
|
|
1292
|
-
cfg:n.cfg.extend({outputLength:512}),_doReset:function(){var r=this._state=[];for(var e=0;e<25;e++){r[e]=new s.init}this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(r,e){
|
|
1293
|
-
// Shortcuts
|
|
1294
|
-
var a=this._state;var i=this.blockSize/2;
|
|
1295
|
-
// Absorb
|
|
1296
|
-
for(var t=0;t<i;t++){
|
|
1297
|
-
// Shortcuts
|
|
1298
|
-
var n=r[e+2*t];var o=r[e+2*t+1];
|
|
1299
|
-
// Swap endian
|
|
1300
|
-
n=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360;o=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360;
|
|
1301
|
-
// Absorb message into state
|
|
1302
|
-
var s=a[t];s.high^=o;s.low^=n}
|
|
1303
|
-
// Rounds
|
|
1304
|
-
for(var v=0;v<24;v++){
|
|
1305
|
-
// Theta
|
|
1306
|
-
for(var h=0;h<5;h++){
|
|
1307
|
-
// Mix column lanes
|
|
1308
|
-
var l=0,p=0;for(var m=0;m<5;m++){var s=a[h+5*m];l^=s.high;p^=s.low}
|
|
1309
|
-
// Temporary values
|
|
1310
|
-
var b=d[h];b.high=l;b.low=p}for(var h=0;h<5;h++){
|
|
1311
|
-
// Shortcuts
|
|
1312
|
-
var g=d[(h+4)%5];var q=d[(h+1)%5];var w=q.high;var x=q.low;
|
|
1313
|
-
// Mix surrounding columns
|
|
1314
|
-
var l=g.high^(w<<1|x>>>31);var p=g.low^(x<<1|w>>>31);for(var m=0;m<5;m++){var s=a[h+5*m];s.high^=l;s.low^=p}}
|
|
1315
|
-
// Rho Pi
|
|
1316
|
-
for(var y=1;y<25;y++){var l;var p;
|
|
1317
|
-
// Shortcuts
|
|
1318
|
-
var s=a[y];var $=s.high;var C=s.low;var R=u[y];
|
|
1319
|
-
// Rotate lanes
|
|
1320
|
-
if(R<32){l=$<<R|C>>>32-R;p=C<<R|$>>>32-R}else/* if (rhoOffset >= 32) */{l=C<<R-32|$>>>64-R;p=$<<R-32|C>>>64-R}
|
|
1321
|
-
// Transpose lanes
|
|
1322
|
-
var k=d[f[y]];k.high=l;k.low=p}
|
|
1323
|
-
// Rho pi at x = y = 0
|
|
1324
|
-
var S=d[0];var E=a[0];S.high=E.high;S.low=E.low;
|
|
1325
|
-
// Chi
|
|
1326
|
-
for(var h=0;h<5;h++){for(var m=0;m<5;m++){
|
|
1327
|
-
// Shortcuts
|
|
1328
|
-
var y=h+5*m;var s=a[y];var B=d[y];var _=d[(h+1)%5+5*m];var M=d[(h+2)%5+5*m];
|
|
1329
|
-
// Mix rows
|
|
1330
|
-
s.high=B.high^~_.high&M.high;s.low=B.low^~_.low&M.low}}
|
|
1331
|
-
// Iota
|
|
1332
|
-
var s=a[0];var z=c[v];s.high^=z.high;s.low^=z.low}},_doFinalize:function(){
|
|
1333
|
-
// Shortcuts
|
|
1334
|
-
var r=this._data;var a=r.words;var i=r.sigBytes*8;var n=this.blockSize*32;
|
|
1335
|
-
// Add padding
|
|
1336
|
-
a[i>>>5]|=1<<24-i%32;a[(e.ceil((i+1)/n)*n>>>5)-1]|=128;r.sigBytes=a.length*4;
|
|
1337
|
-
// Hash final blocks
|
|
1338
|
-
this._process();
|
|
1339
|
-
// Shortcuts
|
|
1340
|
-
var o=this._state;var s=this.cfg.outputLength/8;var v=s/8;
|
|
1341
|
-
// Squeeze
|
|
1342
|
-
var u=[];for(var f=0;f<v;f++){
|
|
1343
|
-
// Shortcuts
|
|
1344
|
-
var c=o[f];var d=c.high;var h=c.low;
|
|
1345
|
-
// Swap endian
|
|
1346
|
-
d=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360;h=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360;
|
|
1347
|
-
// Squeeze state to retrieve hash
|
|
1348
|
-
u.push(h);u.push(d)}
|
|
1349
|
-
// Return final computed hash
|
|
1350
|
-
return new t.init(u,s)},clone:function(){var r=n.clone.call(this);var e=r._state=this._state.slice(0);for(var a=0;a<25;a++){e[a]=e[a].clone()}return r}});
|
|
1351
|
-
/**
|
|
1352
|
-
* Shortcut function to the hasher's object interface.
|
|
1353
|
-
*
|
|
1354
|
-
* @param {WordArray|string} message The message to hash.
|
|
1355
|
-
*
|
|
1356
|
-
* @return {WordArray} The hash.
|
|
1357
|
-
*
|
|
1358
|
-
* @static
|
|
1359
|
-
*
|
|
1360
|
-
* @example
|
|
1361
|
-
*
|
|
1362
|
-
* var hash = CryptoJS.SHA3('message');
|
|
1363
|
-
* var hash = CryptoJS.SHA3(wordArray);
|
|
1364
|
-
*/a.SHA3=n._createHelper(h);
|
|
1365
|
-
/**
|
|
1366
|
-
* Shortcut function to the HMAC's object interface.
|
|
1367
|
-
*
|
|
1368
|
-
* @param {WordArray|string} message The message to hash.
|
|
1369
|
-
* @param {WordArray|string} key The secret key.
|
|
1370
|
-
*
|
|
1371
|
-
* @return {WordArray} The HMAC.
|
|
1372
|
-
*
|
|
1373
|
-
* @static
|
|
1374
|
-
*
|
|
1375
|
-
* @example
|
|
1376
|
-
*
|
|
1377
|
-
* var hmac = CryptoJS.HmacSHA3(message, key);
|
|
1378
|
-
*/a.HmacSHA3=n._createHmacHelper(h)})(Math);return r.SHA3}))})(sha3$1);return sha3$1.exports}var ripemd160$1={exports:{}};var ripemd160=ripemd160$1.exports;var hasRequiredRipemd160;function requireRipemd160(){if(hasRequiredRipemd160)return ripemd160$1.exports;hasRequiredRipemd160=1;(function(r,e){(function(e,a){{
|
|
1379
|
-
// CommonJS
|
|
1380
|
-
r.exports=a(requireCore())}})(ripemd160,(function(r){
|
|
1381
|
-
/** @preserve
|
|
1382
|
-
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
1383
|
-
|
|
1384
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
1385
|
-
|
|
1386
|
-
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
1387
|
-
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
1388
|
-
|
|
1389
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1390
|
-
*/
|
|
1391
|
-
(function(e){
|
|
1392
|
-
// Shortcuts
|
|
1393
|
-
var a=r;var i=a.lib;var t=i.WordArray;var n=i.Hasher;var o=a.algo;
|
|
1394
|
-
// Constants table
|
|
1395
|
-
var s=t.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]);var v=t.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]);var u=t.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]);var f=t.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]);var c=t.create([0,1518500249,1859775393,2400959708,2840853838]);var d=t.create([1352829926,1548603684,1836072691,2053994217,0]);
|
|
1396
|
-
/**
|
|
1397
|
-
* RIPEMD160 hash algorithm.
|
|
1398
|
-
*/var h=o.RIPEMD160=n.extend({_doReset:function(){this._hash=t.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,e){
|
|
1399
|
-
// Swap endian
|
|
1400
|
-
for(var a=0;a<16;a++){
|
|
1401
|
-
// Shortcuts
|
|
1402
|
-
var i=e+a;var t=r[i];
|
|
1403
|
-
// Swap
|
|
1404
|
-
r[i]=(t<<8|t>>>24)&16711935|(t<<24|t>>>8)&4278255360}
|
|
1405
|
-
// Shortcut
|
|
1406
|
-
var n=this._hash.words;var o=c.words;var h=d.words;var w=s.words;var x=v.words;var y=u.words;var $=f.words;
|
|
1407
|
-
// Working variables
|
|
1408
|
-
var C,R,k,S,E;var B,_,M,z,I;B=C=n[0];_=R=n[1];M=k=n[2];z=S=n[3];I=E=n[4];
|
|
1409
|
-
// Computation
|
|
1410
|
-
var P;for(var a=0;a<80;a+=1){P=C+r[e+w[a]]|0;if(a<16){P+=l(R,k,S)+o[0]}else if(a<32){P+=p(R,k,S)+o[1]}else if(a<48){P+=m(R,k,S)+o[2]}else if(a<64){P+=b(R,k,S)+o[3]}else{// if (i<80) {
|
|
1411
|
-
P+=g(R,k,S)+o[4]}P=P|0;P=q(P,y[a]);P=P+E|0;C=E;E=S;S=q(k,10);k=R;R=P;P=B+r[e+x[a]]|0;if(a<16){P+=g(_,M,z)+h[0]}else if(a<32){P+=b(_,M,z)+h[1]}else if(a<48){P+=m(_,M,z)+h[2]}else if(a<64){P+=p(_,M,z)+h[3]}else{// if (i<80) {
|
|
1412
|
-
P+=l(_,M,z)+h[4]}P=P|0;P=q(P,$[a]);P=P+I|0;B=I;I=z;z=q(M,10);M=_;_=P}
|
|
1413
|
-
// Intermediate hash value
|
|
1414
|
-
P=n[1]+k+z|0;n[1]=n[2]+S+I|0;n[2]=n[3]+E+B|0;n[3]=n[4]+C+_|0;n[4]=n[0]+R+M|0;n[0]=P},_doFinalize:function(){
|
|
1415
|
-
// Shortcuts
|
|
1416
|
-
var r=this._data;var e=r.words;var a=this._nDataBytes*8;var i=r.sigBytes*8;
|
|
1417
|
-
// Add padding
|
|
1418
|
-
e[i>>>5]|=128<<24-i%32;e[(i+64>>>9<<4)+14]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360;r.sigBytes=(e.length+1)*4;
|
|
1419
|
-
// Hash final blocks
|
|
1420
|
-
this._process();
|
|
1421
|
-
// Shortcuts
|
|
1422
|
-
var t=this._hash;var n=t.words;
|
|
1423
|
-
// Swap endian
|
|
1424
|
-
for(var o=0;o<5;o++){
|
|
1425
|
-
// Shortcut
|
|
1426
|
-
var s=n[o];
|
|
1427
|
-
// Swap
|
|
1428
|
-
n[o]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360}
|
|
1429
|
-
// Return final computed hash
|
|
1430
|
-
return t},clone:function(){var r=n.clone.call(this);r._hash=this._hash.clone();return r}});function l(r,e,a){return r^e^a}function p(r,e,a){return r&e|~r&a}function m(r,e,a){return(r|~e)^a}function b(r,e,a){return r&a|e&~a}function g(r,e,a){return r^(e|~a)}function q(r,e){return r<<e|r>>>32-e}
|
|
1431
|
-
/**
|
|
1432
|
-
* Shortcut function to the hasher's object interface.
|
|
1433
|
-
*
|
|
1434
|
-
* @param {WordArray|string} message The message to hash.
|
|
1435
|
-
*
|
|
1436
|
-
* @return {WordArray} The hash.
|
|
1437
|
-
*
|
|
1438
|
-
* @static
|
|
1439
|
-
*
|
|
1440
|
-
* @example
|
|
1441
|
-
*
|
|
1442
|
-
* var hash = CryptoJS.RIPEMD160('message');
|
|
1443
|
-
* var hash = CryptoJS.RIPEMD160(wordArray);
|
|
1444
|
-
*/a.RIPEMD160=n._createHelper(h);
|
|
1445
|
-
/**
|
|
1446
|
-
* Shortcut function to the HMAC's object interface.
|
|
1447
|
-
*
|
|
1448
|
-
* @param {WordArray|string} message The message to hash.
|
|
1449
|
-
* @param {WordArray|string} key The secret key.
|
|
1450
|
-
*
|
|
1451
|
-
* @return {WordArray} The HMAC.
|
|
1452
|
-
*
|
|
1453
|
-
* @static
|
|
1454
|
-
*
|
|
1455
|
-
* @example
|
|
1456
|
-
*
|
|
1457
|
-
* var hmac = CryptoJS.HmacRIPEMD160(message, key);
|
|
1458
|
-
*/a.HmacRIPEMD160=n._createHmacHelper(h)})();return r.RIPEMD160}))})(ripemd160$1);return ripemd160$1.exports}var hmac$1={exports:{}};var hmac=hmac$1.exports;var hasRequiredHmac;function requireHmac(){if(hasRequiredHmac)return hmac$1.exports;hasRequiredHmac=1;(function(r,e){(function(e,a){{
|
|
1459
|
-
// CommonJS
|
|
1460
|
-
r.exports=a(requireCore())}})(hmac,(function(r){(function(){
|
|
1461
|
-
// Shortcuts
|
|
1462
|
-
var e=r;var a=e.lib;var i=a.Base;var t=e.enc;var n=t.Utf8;var o=e.algo;
|
|
1463
|
-
/**
|
|
1464
|
-
* HMAC algorithm.
|
|
1465
|
-
*/o.HMAC=i.extend({
|
|
1466
|
-
/**
|
|
1467
|
-
* Initializes a newly created HMAC.
|
|
1468
|
-
*
|
|
1469
|
-
* @param {Hasher} hasher The hash algorithm to use.
|
|
1470
|
-
* @param {WordArray|string} key The secret key.
|
|
1471
|
-
*
|
|
1472
|
-
* @example
|
|
1473
|
-
*
|
|
1474
|
-
* var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
|
|
1475
|
-
*/
|
|
1476
|
-
init:function(r,e){
|
|
1477
|
-
// Init hasher
|
|
1478
|
-
r=this._hasher=new r.init;
|
|
1479
|
-
// Convert string to WordArray, else assume WordArray already
|
|
1480
|
-
if(typeof e=="string"){e=n.parse(e)}
|
|
1481
|
-
// Shortcuts
|
|
1482
|
-
var a=r.blockSize;var i=a*4;
|
|
1483
|
-
// Allow arbitrary length keys
|
|
1484
|
-
if(e.sigBytes>i){e=r.finalize(e)}
|
|
1485
|
-
// Clamp excess bits
|
|
1486
|
-
e.clamp();
|
|
1487
|
-
// Clone key for inner and outer pads
|
|
1488
|
-
var t=this._oKey=e.clone();var o=this._iKey=e.clone();
|
|
1489
|
-
// Shortcuts
|
|
1490
|
-
var s=t.words;var v=o.words;
|
|
1491
|
-
// XOR keys with pad constants
|
|
1492
|
-
for(var u=0;u<a;u++){s[u]^=1549556828;v[u]^=909522486}t.sigBytes=o.sigBytes=i;
|
|
1493
|
-
// Set initial values
|
|
1494
|
-
this.reset()},
|
|
1495
|
-
/**
|
|
1496
|
-
* Resets this HMAC to its initial state.
|
|
1497
|
-
*
|
|
1498
|
-
* @example
|
|
1499
|
-
*
|
|
1500
|
-
* hmacHasher.reset();
|
|
1501
|
-
*/
|
|
1502
|
-
reset:function(){
|
|
1503
|
-
// Shortcut
|
|
1504
|
-
var r=this._hasher;
|
|
1505
|
-
// Reset
|
|
1506
|
-
r.reset();r.update(this._iKey)},
|
|
1507
|
-
/**
|
|
1508
|
-
* Updates this HMAC with a message.
|
|
1509
|
-
*
|
|
1510
|
-
* @param {WordArray|string} messageUpdate The message to append.
|
|
1511
|
-
*
|
|
1512
|
-
* @return {HMAC} This HMAC instance.
|
|
1513
|
-
*
|
|
1514
|
-
* @example
|
|
1515
|
-
*
|
|
1516
|
-
* hmacHasher.update('message');
|
|
1517
|
-
* hmacHasher.update(wordArray);
|
|
1518
|
-
*/
|
|
1519
|
-
update:function(r){this._hasher.update(r);
|
|
1520
|
-
// Chainable
|
|
1521
|
-
return this},
|
|
1522
|
-
/**
|
|
1523
|
-
* Finalizes the HMAC computation.
|
|
1524
|
-
* Note that the finalize operation is effectively a destructive, read-once operation.
|
|
1525
|
-
*
|
|
1526
|
-
* @param {WordArray|string} messageUpdate (Optional) A final message update.
|
|
1527
|
-
*
|
|
1528
|
-
* @return {WordArray} The HMAC.
|
|
1529
|
-
*
|
|
1530
|
-
* @example
|
|
1531
|
-
*
|
|
1532
|
-
* var hmac = hmacHasher.finalize();
|
|
1533
|
-
* var hmac = hmacHasher.finalize('message');
|
|
1534
|
-
* var hmac = hmacHasher.finalize(wordArray);
|
|
1535
|
-
*/
|
|
1536
|
-
finalize:function(r){
|
|
1537
|
-
// Shortcut
|
|
1538
|
-
var e=this._hasher;
|
|
1539
|
-
// Compute HMAC
|
|
1540
|
-
var a=e.finalize(r);e.reset();var i=e.finalize(this._oKey.clone().concat(a));return i}})})()}))})(hmac$1);return hmac$1.exports}var pbkdf2$1={exports:{}};var pbkdf2=pbkdf2$1.exports;var hasRequiredPbkdf2;function requirePbkdf2(){if(hasRequiredPbkdf2)return pbkdf2$1.exports;hasRequiredPbkdf2=1;(function(r,e){(function(e,a,i){{
|
|
1541
|
-
// CommonJS
|
|
1542
|
-
r.exports=a(requireCore(),requireSha256(),requireHmac())}})(pbkdf2,(function(r){(function(){
|
|
1543
|
-
// Shortcuts
|
|
1544
|
-
var e=r;var a=e.lib;var i=a.Base;var t=a.WordArray;var n=e.algo;var o=n.SHA256;var s=n.HMAC;
|
|
1545
|
-
/**
|
|
1546
|
-
* Password-Based Key Derivation Function 2 algorithm.
|
|
1547
|
-
*/var v=n.PBKDF2=i.extend({
|
|
1548
|
-
/**
|
|
1549
|
-
* Configuration options.
|
|
1550
|
-
*
|
|
1551
|
-
* @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
|
|
1552
|
-
* @property {Hasher} hasher The hasher to use. Default: SHA256
|
|
1553
|
-
* @property {number} iterations The number of iterations to perform. Default: 250000
|
|
1554
|
-
*/
|
|
1555
|
-
cfg:i.extend({keySize:128/32,hasher:o,iterations:25e4}),
|
|
1556
|
-
/**
|
|
1557
|
-
* Initializes a newly created key derivation function.
|
|
1558
|
-
*
|
|
1559
|
-
* @param {Object} cfg (Optional) The configuration options to use for the derivation.
|
|
1560
|
-
*
|
|
1561
|
-
* @example
|
|
1562
|
-
*
|
|
1563
|
-
* var kdf = CryptoJS.algo.PBKDF2.create();
|
|
1564
|
-
* var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 });
|
|
1565
|
-
* var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 });
|
|
1566
|
-
*/
|
|
1567
|
-
init:function(r){this.cfg=this.cfg.extend(r)},
|
|
1568
|
-
/**
|
|
1569
|
-
* Computes the Password-Based Key Derivation Function 2.
|
|
1570
|
-
*
|
|
1571
|
-
* @param {WordArray|string} password The password.
|
|
1572
|
-
* @param {WordArray|string} salt A salt.
|
|
1573
|
-
*
|
|
1574
|
-
* @return {WordArray} The derived key.
|
|
1575
|
-
*
|
|
1576
|
-
* @example
|
|
1577
|
-
*
|
|
1578
|
-
* var key = kdf.compute(password, salt);
|
|
1579
|
-
*/
|
|
1580
|
-
compute:function(r,e){
|
|
1581
|
-
// Shortcut
|
|
1582
|
-
var a=this.cfg;
|
|
1583
|
-
// Init HMAC
|
|
1584
|
-
var i=s.create(a.hasher,r);
|
|
1585
|
-
// Initial values
|
|
1586
|
-
var n=t.create();var o=t.create([1]);
|
|
1587
|
-
// Shortcuts
|
|
1588
|
-
var v=n.words;var u=o.words;var f=a.keySize;var c=a.iterations;
|
|
1589
|
-
// Generate key
|
|
1590
|
-
while(v.length<f){var d=i.update(e).finalize(o);i.reset();
|
|
1591
|
-
// Shortcuts
|
|
1592
|
-
var h=d.words;var l=h.length;
|
|
1593
|
-
// Iterations
|
|
1594
|
-
var p=d;for(var m=1;m<c;m++){p=i.finalize(p);i.reset();
|
|
1595
|
-
// Shortcut
|
|
1596
|
-
var b=p.words;
|
|
1597
|
-
// XOR intermediate with block
|
|
1598
|
-
for(var g=0;g<l;g++){h[g]^=b[g]}}n.concat(d);u[0]++}n.sigBytes=f*4;return n}});
|
|
1599
|
-
/**
|
|
1600
|
-
* Computes the Password-Based Key Derivation Function 2.
|
|
1601
|
-
*
|
|
1602
|
-
* @param {WordArray|string} password The password.
|
|
1603
|
-
* @param {WordArray|string} salt A salt.
|
|
1604
|
-
* @param {Object} cfg (Optional) The configuration options to use for this computation.
|
|
1605
|
-
*
|
|
1606
|
-
* @return {WordArray} The derived key.
|
|
1607
|
-
*
|
|
1608
|
-
* @static
|
|
1609
|
-
*
|
|
1610
|
-
* @example
|
|
1611
|
-
*
|
|
1612
|
-
* var key = CryptoJS.PBKDF2(password, salt);
|
|
1613
|
-
* var key = CryptoJS.PBKDF2(password, salt, { keySize: 8 });
|
|
1614
|
-
* var key = CryptoJS.PBKDF2(password, salt, { keySize: 8, iterations: 1000 });
|
|
1615
|
-
*/e.PBKDF2=function(r,e,a){return v.create(a).compute(r,e)}})();return r.PBKDF2}))})(pbkdf2$1);return pbkdf2$1.exports}var evpkdf$1={exports:{}};var evpkdf=evpkdf$1.exports;var hasRequiredEvpkdf;function requireEvpkdf(){if(hasRequiredEvpkdf)return evpkdf$1.exports;hasRequiredEvpkdf=1;(function(r,e){(function(e,a,i){{
|
|
1616
|
-
// CommonJS
|
|
1617
|
-
r.exports=a(requireCore(),requireSha1(),requireHmac())}})(evpkdf,(function(r){(function(){
|
|
1618
|
-
// Shortcuts
|
|
1619
|
-
var e=r;var a=e.lib;var i=a.Base;var t=a.WordArray;var n=e.algo;var o=n.MD5;
|
|
1620
|
-
/**
|
|
1621
|
-
* This key derivation function is meant to conform with EVP_BytesToKey.
|
|
1622
|
-
* www.openssl.org/docs/crypto/EVP_BytesToKey.html
|
|
1623
|
-
*/var s=n.EvpKDF=i.extend({
|
|
1624
|
-
/**
|
|
1625
|
-
* Configuration options.
|
|
1626
|
-
*
|
|
1627
|
-
* @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
|
|
1628
|
-
* @property {Hasher} hasher The hash algorithm to use. Default: MD5
|
|
1629
|
-
* @property {number} iterations The number of iterations to perform. Default: 1
|
|
1630
|
-
*/
|
|
1631
|
-
cfg:i.extend({keySize:128/32,hasher:o,iterations:1}),
|
|
1632
|
-
/**
|
|
1633
|
-
* Initializes a newly created key derivation function.
|
|
1634
|
-
*
|
|
1635
|
-
* @param {Object} cfg (Optional) The configuration options to use for the derivation.
|
|
1636
|
-
*
|
|
1637
|
-
* @example
|
|
1638
|
-
*
|
|
1639
|
-
* var kdf = CryptoJS.algo.EvpKDF.create();
|
|
1640
|
-
* var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });
|
|
1641
|
-
* var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });
|
|
1642
|
-
*/
|
|
1643
|
-
init:function(r){this.cfg=this.cfg.extend(r)},
|
|
1644
|
-
/**
|
|
1645
|
-
* Derives a key from a password.
|
|
1646
|
-
*
|
|
1647
|
-
* @param {WordArray|string} password The password.
|
|
1648
|
-
* @param {WordArray|string} salt A salt.
|
|
1649
|
-
*
|
|
1650
|
-
* @return {WordArray} The derived key.
|
|
1651
|
-
*
|
|
1652
|
-
* @example
|
|
1653
|
-
*
|
|
1654
|
-
* var key = kdf.compute(password, salt);
|
|
1655
|
-
*/
|
|
1656
|
-
compute:function(r,e){var a;
|
|
1657
|
-
// Shortcut
|
|
1658
|
-
var i=this.cfg;
|
|
1659
|
-
// Init hasher
|
|
1660
|
-
var n=i.hasher.create();
|
|
1661
|
-
// Initial values
|
|
1662
|
-
var o=t.create();
|
|
1663
|
-
// Shortcuts
|
|
1664
|
-
var s=o.words;var v=i.keySize;var u=i.iterations;
|
|
1665
|
-
// Generate key
|
|
1666
|
-
while(s.length<v){if(a){n.update(a)}a=n.update(r).finalize(e);n.reset();
|
|
1667
|
-
// Iterations
|
|
1668
|
-
for(var f=1;f<u;f++){a=n.finalize(a);n.reset()}o.concat(a)}o.sigBytes=v*4;return o}});
|
|
1669
|
-
/**
|
|
1670
|
-
* Derives a key from a password.
|
|
1671
|
-
*
|
|
1672
|
-
* @param {WordArray|string} password The password.
|
|
1673
|
-
* @param {WordArray|string} salt A salt.
|
|
1674
|
-
* @param {Object} cfg (Optional) The configuration options to use for this computation.
|
|
1675
|
-
*
|
|
1676
|
-
* @return {WordArray} The derived key.
|
|
1677
|
-
*
|
|
1678
|
-
* @static
|
|
1679
|
-
*
|
|
1680
|
-
* @example
|
|
1681
|
-
*
|
|
1682
|
-
* var key = CryptoJS.EvpKDF(password, salt);
|
|
1683
|
-
* var key = CryptoJS.EvpKDF(password, salt, { keySize: 8 });
|
|
1684
|
-
* var key = CryptoJS.EvpKDF(password, salt, { keySize: 8, iterations: 1000 });
|
|
1685
|
-
*/e.EvpKDF=function(r,e,a){return s.create(a).compute(r,e)}})();return r.EvpKDF}))})(evpkdf$1);return evpkdf$1.exports}var cipherCore$1={exports:{}};var cipherCore=cipherCore$1.exports;var hasRequiredCipherCore;function requireCipherCore(){if(hasRequiredCipherCore)return cipherCore$1.exports;hasRequiredCipherCore=1;(function(r,e){(function(e,a,i){{
|
|
1686
|
-
// CommonJS
|
|
1687
|
-
r.exports=a(requireCore(),requireEvpkdf())}})(cipherCore,(function(r){
|
|
1688
|
-
/**
|
|
1689
|
-
* Cipher core components.
|
|
1690
|
-
*/
|
|
1691
|
-
r.lib.Cipher||function(e){
|
|
1692
|
-
// Shortcuts
|
|
1693
|
-
var a=r;var i=a.lib;var t=i.Base;var n=i.WordArray;var o=i.BufferedBlockAlgorithm;var s=a.enc;var v=s.Base64;var u=a.algo;var f=u.EvpKDF;
|
|
1694
|
-
/**
|
|
1695
|
-
* Abstract base cipher template.
|
|
1696
|
-
*
|
|
1697
|
-
* @property {number} keySize This cipher's key size. Default: 4 (128 bits)
|
|
1698
|
-
* @property {number} ivSize This cipher's IV size. Default: 4 (128 bits)
|
|
1699
|
-
* @property {number} _ENC_XFORM_MODE A constant representing encryption mode.
|
|
1700
|
-
* @property {number} _DEC_XFORM_MODE A constant representing decryption mode.
|
|
1701
|
-
*/var c=i.Cipher=o.extend({
|
|
1702
|
-
/**
|
|
1703
|
-
* Configuration options.
|
|
1704
|
-
*
|
|
1705
|
-
* @property {WordArray} iv The IV to use for this operation.
|
|
1706
|
-
*/
|
|
1707
|
-
cfg:t.extend(),
|
|
1708
|
-
/**
|
|
1709
|
-
* Creates this cipher in encryption mode.
|
|
1710
|
-
*
|
|
1711
|
-
* @param {WordArray} key The key.
|
|
1712
|
-
* @param {Object} cfg (Optional) The configuration options to use for this operation.
|
|
1713
|
-
*
|
|
1714
|
-
* @return {Cipher} A cipher instance.
|
|
1715
|
-
*
|
|
1716
|
-
* @static
|
|
1717
|
-
*
|
|
1718
|
-
* @example
|
|
1719
|
-
*
|
|
1720
|
-
* var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
|
|
1721
|
-
*/
|
|
1722
|
-
createEncryptor:function(r,e){return this.create(this._ENC_XFORM_MODE,r,e)},
|
|
1723
|
-
/**
|
|
1724
|
-
* Creates this cipher in decryption mode.
|
|
1725
|
-
*
|
|
1726
|
-
* @param {WordArray} key The key.
|
|
1727
|
-
* @param {Object} cfg (Optional) The configuration options to use for this operation.
|
|
1728
|
-
*
|
|
1729
|
-
* @return {Cipher} A cipher instance.
|
|
1730
|
-
*
|
|
1731
|
-
* @static
|
|
1732
|
-
*
|
|
1733
|
-
* @example
|
|
1734
|
-
*
|
|
1735
|
-
* var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
|
|
1736
|
-
*/
|
|
1737
|
-
createDecryptor:function(r,e){return this.create(this._DEC_XFORM_MODE,r,e)},
|
|
1738
|
-
/**
|
|
1739
|
-
* Initializes a newly created cipher.
|
|
1740
|
-
*
|
|
1741
|
-
* @param {number} xformMode Either the encryption or decryption transormation mode constant.
|
|
1742
|
-
* @param {WordArray} key The key.
|
|
1743
|
-
* @param {Object} cfg (Optional) The configuration options to use for this operation.
|
|
1744
|
-
*
|
|
1745
|
-
* @example
|
|
1746
|
-
*
|
|
1747
|
-
* var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
|
|
1748
|
-
*/
|
|
1749
|
-
init:function(r,e,a){
|
|
1750
|
-
// Apply config defaults
|
|
1751
|
-
this.cfg=this.cfg.extend(a);
|
|
1752
|
-
// Store transform mode and key
|
|
1753
|
-
this._xformMode=r;this._key=e;
|
|
1754
|
-
// Set initial values
|
|
1755
|
-
this.reset()},
|
|
1756
|
-
/**
|
|
1757
|
-
* Resets this cipher to its initial state.
|
|
1758
|
-
*
|
|
1759
|
-
* @example
|
|
1760
|
-
*
|
|
1761
|
-
* cipher.reset();
|
|
1762
|
-
*/
|
|
1763
|
-
reset:function(){
|
|
1764
|
-
// Reset data buffer
|
|
1765
|
-
o.reset.call(this);
|
|
1766
|
-
// Perform concrete-cipher logic
|
|
1767
|
-
this._doReset()},
|
|
1768
|
-
/**
|
|
1769
|
-
* Adds data to be encrypted or decrypted.
|
|
1770
|
-
*
|
|
1771
|
-
* @param {WordArray|string} dataUpdate The data to encrypt or decrypt.
|
|
1772
|
-
*
|
|
1773
|
-
* @return {WordArray} The data after processing.
|
|
1774
|
-
*
|
|
1775
|
-
* @example
|
|
1776
|
-
*
|
|
1777
|
-
* var encrypted = cipher.process('data');
|
|
1778
|
-
* var encrypted = cipher.process(wordArray);
|
|
1779
|
-
*/
|
|
1780
|
-
process:function(r){
|
|
1781
|
-
// Append
|
|
1782
|
-
this._append(r);
|
|
1783
|
-
// Process available blocks
|
|
1784
|
-
return this._process()},
|
|
1785
|
-
/**
|
|
1786
|
-
* Finalizes the encryption or decryption process.
|
|
1787
|
-
* Note that the finalize operation is effectively a destructive, read-once operation.
|
|
1788
|
-
*
|
|
1789
|
-
* @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.
|
|
1790
|
-
*
|
|
1791
|
-
* @return {WordArray} The data after final processing.
|
|
1792
|
-
*
|
|
1793
|
-
* @example
|
|
1794
|
-
*
|
|
1795
|
-
* var encrypted = cipher.finalize();
|
|
1796
|
-
* var encrypted = cipher.finalize('data');
|
|
1797
|
-
* var encrypted = cipher.finalize(wordArray);
|
|
1798
|
-
*/
|
|
1799
|
-
finalize:function(r){
|
|
1800
|
-
// Final data update
|
|
1801
|
-
if(r){this._append(r)}
|
|
1802
|
-
// Perform concrete-cipher logic
|
|
1803
|
-
var e=this._doFinalize();return e},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,
|
|
1804
|
-
/**
|
|
1805
|
-
* Creates shortcut functions to a cipher's object interface.
|
|
1806
|
-
*
|
|
1807
|
-
* @param {Cipher} cipher The cipher to create a helper for.
|
|
1808
|
-
*
|
|
1809
|
-
* @return {Object} An object with encrypt and decrypt shortcut functions.
|
|
1810
|
-
*
|
|
1811
|
-
* @static
|
|
1812
|
-
*
|
|
1813
|
-
* @example
|
|
1814
|
-
*
|
|
1815
|
-
* var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
|
|
1816
|
-
*/
|
|
1817
|
-
_createHelper:function(){function r(r){if(typeof r=="string"){return $}else{return w}}return function(e){return{encrypt:function(a,i,t){return r(i).encrypt(e,a,i,t)},decrypt:function(a,i,t){return r(i).decrypt(e,a,i,t)}}}}()});
|
|
1818
|
-
/**
|
|
1819
|
-
* Abstract base stream cipher template.
|
|
1820
|
-
*
|
|
1821
|
-
* @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 1 (32 bits)
|
|
1822
|
-
*/i.StreamCipher=c.extend({_doFinalize:function(){
|
|
1823
|
-
// Process partial blocks
|
|
1824
|
-
var r=this._process(true);return r},blockSize:1});
|
|
1825
|
-
/**
|
|
1826
|
-
* Mode namespace.
|
|
1827
|
-
*/var d=a.mode={};
|
|
1828
|
-
/**
|
|
1829
|
-
* Abstract base block cipher mode template.
|
|
1830
|
-
*/var h=i.BlockCipherMode=t.extend({
|
|
1831
|
-
/**
|
|
1832
|
-
* Creates this mode for encryption.
|
|
1833
|
-
*
|
|
1834
|
-
* @param {Cipher} cipher A block cipher instance.
|
|
1835
|
-
* @param {Array} iv The IV words.
|
|
1836
|
-
*
|
|
1837
|
-
* @static
|
|
1838
|
-
*
|
|
1839
|
-
* @example
|
|
1840
|
-
*
|
|
1841
|
-
* var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
|
|
1842
|
-
*/
|
|
1843
|
-
createEncryptor:function(r,e){return this.Encryptor.create(r,e)},
|
|
1844
|
-
/**
|
|
1845
|
-
* Creates this mode for decryption.
|
|
1846
|
-
*
|
|
1847
|
-
* @param {Cipher} cipher A block cipher instance.
|
|
1848
|
-
* @param {Array} iv The IV words.
|
|
1849
|
-
*
|
|
1850
|
-
* @static
|
|
1851
|
-
*
|
|
1852
|
-
* @example
|
|
1853
|
-
*
|
|
1854
|
-
* var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
|
|
1855
|
-
*/
|
|
1856
|
-
createDecryptor:function(r,e){return this.Decryptor.create(r,e)},
|
|
1857
|
-
/**
|
|
1858
|
-
* Initializes a newly created mode.
|
|
1859
|
-
*
|
|
1860
|
-
* @param {Cipher} cipher A block cipher instance.
|
|
1861
|
-
* @param {Array} iv The IV words.
|
|
1862
|
-
*
|
|
1863
|
-
* @example
|
|
1864
|
-
*
|
|
1865
|
-
* var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
|
|
1866
|
-
*/
|
|
1867
|
-
init:function(r,e){this._cipher=r;this._iv=e}});
|
|
1868
|
-
/**
|
|
1869
|
-
* Cipher Block Chaining mode.
|
|
1870
|
-
*/var l=d.CBC=function(){
|
|
1871
|
-
/**
|
|
1872
|
-
* Abstract base CBC mode.
|
|
1873
|
-
*/
|
|
1874
|
-
var r=h.extend();
|
|
1875
|
-
/**
|
|
1876
|
-
* CBC encryptor.
|
|
1877
|
-
*/r.Encryptor=r.extend({
|
|
1878
|
-
/**
|
|
1879
|
-
* Processes the data block at offset.
|
|
1880
|
-
*
|
|
1881
|
-
* @param {Array} words The data words to operate on.
|
|
1882
|
-
* @param {number} offset The offset where the block starts.
|
|
1883
|
-
*
|
|
1884
|
-
* @example
|
|
1885
|
-
*
|
|
1886
|
-
* mode.processBlock(data.words, offset);
|
|
1887
|
-
*/
|
|
1888
|
-
processBlock:function(r,e){
|
|
1889
|
-
// Shortcuts
|
|
1890
|
-
var i=this._cipher;var t=i.blockSize;
|
|
1891
|
-
// XOR and encrypt
|
|
1892
|
-
a.call(this,r,e,t);i.encryptBlock(r,e);
|
|
1893
|
-
// Remember this block to use with next block
|
|
1894
|
-
this._prevBlock=r.slice(e,e+t)}});
|
|
1895
|
-
/**
|
|
1896
|
-
* CBC decryptor.
|
|
1897
|
-
*/r.Decryptor=r.extend({
|
|
1898
|
-
/**
|
|
1899
|
-
* Processes the data block at offset.
|
|
1900
|
-
*
|
|
1901
|
-
* @param {Array} words The data words to operate on.
|
|
1902
|
-
* @param {number} offset The offset where the block starts.
|
|
1903
|
-
*
|
|
1904
|
-
* @example
|
|
1905
|
-
*
|
|
1906
|
-
* mode.processBlock(data.words, offset);
|
|
1907
|
-
*/
|
|
1908
|
-
processBlock:function(r,e){
|
|
1909
|
-
// Shortcuts
|
|
1910
|
-
var i=this._cipher;var t=i.blockSize;
|
|
1911
|
-
// Remember this block to use with next block
|
|
1912
|
-
var n=r.slice(e,e+t);
|
|
1913
|
-
// Decrypt and XOR
|
|
1914
|
-
i.decryptBlock(r,e);a.call(this,r,e,t);
|
|
1915
|
-
// This block becomes the previous block
|
|
1916
|
-
this._prevBlock=n}});function a(r,a,i){var t;
|
|
1917
|
-
// Shortcut
|
|
1918
|
-
var n=this._iv;
|
|
1919
|
-
// Choose mixing block
|
|
1920
|
-
if(n){t=n;
|
|
1921
|
-
// Remove IV for subsequent blocks
|
|
1922
|
-
this._iv=e}else{t=this._prevBlock}
|
|
1923
|
-
// XOR blocks
|
|
1924
|
-
for(var o=0;o<i;o++){r[a+o]^=t[o]}}return r}();
|
|
1925
|
-
/**
|
|
1926
|
-
* Padding namespace.
|
|
1927
|
-
*/var p=a.pad={};
|
|
1928
|
-
/**
|
|
1929
|
-
* PKCS #5/7 padding strategy.
|
|
1930
|
-
*/var m=p.Pkcs7={
|
|
1931
|
-
/**
|
|
1932
|
-
* Pads data using the algorithm defined in PKCS #5/7.
|
|
1933
|
-
*
|
|
1934
|
-
* @param {WordArray} data The data to pad.
|
|
1935
|
-
* @param {number} blockSize The multiple that the data should be padded to.
|
|
1936
|
-
*
|
|
1937
|
-
* @static
|
|
1938
|
-
*
|
|
1939
|
-
* @example
|
|
1940
|
-
*
|
|
1941
|
-
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
1942
|
-
*/
|
|
1943
|
-
pad:function(r,e){
|
|
1944
|
-
// Shortcut
|
|
1945
|
-
var a=e*4;
|
|
1946
|
-
// Count padding bytes
|
|
1947
|
-
var i=a-r.sigBytes%a;
|
|
1948
|
-
// Create padding word
|
|
1949
|
-
var t=i<<24|i<<16|i<<8|i;
|
|
1950
|
-
// Create padding
|
|
1951
|
-
var o=[];for(var s=0;s<i;s+=4){o.push(t)}var v=n.create(o,i);
|
|
1952
|
-
// Add padding
|
|
1953
|
-
r.concat(v)},
|
|
1954
|
-
/**
|
|
1955
|
-
* Unpads data that had been padded using the algorithm defined in PKCS #5/7.
|
|
1956
|
-
*
|
|
1957
|
-
* @param {WordArray} data The data to unpad.
|
|
1958
|
-
*
|
|
1959
|
-
* @static
|
|
1960
|
-
*
|
|
1961
|
-
* @example
|
|
1962
|
-
*
|
|
1963
|
-
* CryptoJS.pad.Pkcs7.unpad(wordArray);
|
|
1964
|
-
*/
|
|
1965
|
-
unpad:function(r){
|
|
1966
|
-
// Get number of padding bytes from last byte
|
|
1967
|
-
var e=r.words[r.sigBytes-1>>>2]&255;
|
|
1968
|
-
// Remove padding
|
|
1969
|
-
r.sigBytes-=e}};
|
|
1970
|
-
/**
|
|
1971
|
-
* Abstract base block cipher template.
|
|
1972
|
-
*
|
|
1973
|
-
* @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 4 (128 bits)
|
|
1974
|
-
*/i.BlockCipher=c.extend({
|
|
1975
|
-
/**
|
|
1976
|
-
* Configuration options.
|
|
1977
|
-
*
|
|
1978
|
-
* @property {Mode} mode The block mode to use. Default: CBC
|
|
1979
|
-
* @property {Padding} padding The padding strategy to use. Default: Pkcs7
|
|
1980
|
-
*/
|
|
1981
|
-
cfg:c.cfg.extend({mode:l,padding:m}),reset:function(){var r;
|
|
1982
|
-
// Reset cipher
|
|
1983
|
-
c.reset.call(this);
|
|
1984
|
-
// Shortcuts
|
|
1985
|
-
var e=this.cfg;var a=e.iv;var i=e.mode;
|
|
1986
|
-
// Reset block mode
|
|
1987
|
-
if(this._xformMode==this._ENC_XFORM_MODE){r=i.createEncryptor}else/* if (this._xformMode == this._DEC_XFORM_MODE) */{r=i.createDecryptor;
|
|
1988
|
-
// Keep at least one block in the buffer for unpadding
|
|
1989
|
-
this._minBufferSize=1}if(this._mode&&this._mode.__creator==r){this._mode.init(this,a&&a.words)}else{this._mode=r.call(i,this,a&&a.words);this._mode.__creator=r}},_doProcessBlock:function(r,e){this._mode.processBlock(r,e)},_doFinalize:function(){var r;
|
|
1990
|
-
// Shortcut
|
|
1991
|
-
var e=this.cfg.padding;
|
|
1992
|
-
// Finalize
|
|
1993
|
-
if(this._xformMode==this._ENC_XFORM_MODE){
|
|
1994
|
-
// Pad data
|
|
1995
|
-
e.pad(this._data,this.blockSize);
|
|
1996
|
-
// Process final blocks
|
|
1997
|
-
r=this._process(true)}else/* if (this._xformMode == this._DEC_XFORM_MODE) */{
|
|
1998
|
-
// Process final blocks
|
|
1999
|
-
r=this._process(true);
|
|
2000
|
-
// Unpad data
|
|
2001
|
-
e.unpad(r)}return r},blockSize:128/32});
|
|
2002
|
-
/**
|
|
2003
|
-
* A collection of cipher parameters.
|
|
2004
|
-
*
|
|
2005
|
-
* @property {WordArray} ciphertext The raw ciphertext.
|
|
2006
|
-
* @property {WordArray} key The key to this ciphertext.
|
|
2007
|
-
* @property {WordArray} iv The IV used in the ciphering operation.
|
|
2008
|
-
* @property {WordArray} salt The salt used with a key derivation function.
|
|
2009
|
-
* @property {Cipher} algorithm The cipher algorithm.
|
|
2010
|
-
* @property {Mode} mode The block mode used in the ciphering operation.
|
|
2011
|
-
* @property {Padding} padding The padding scheme used in the ciphering operation.
|
|
2012
|
-
* @property {number} blockSize The block size of the cipher.
|
|
2013
|
-
* @property {Format} formatter The default formatting strategy to convert this cipher params object to a string.
|
|
2014
|
-
*/var b=i.CipherParams=t.extend({
|
|
2015
|
-
/**
|
|
2016
|
-
* Initializes a newly created cipher params object.
|
|
2017
|
-
*
|
|
2018
|
-
* @param {Object} cipherParams An object with any of the possible cipher parameters.
|
|
2019
|
-
*
|
|
2020
|
-
* @example
|
|
2021
|
-
*
|
|
2022
|
-
* var cipherParams = CryptoJS.lib.CipherParams.create({
|
|
2023
|
-
* ciphertext: ciphertextWordArray,
|
|
2024
|
-
* key: keyWordArray,
|
|
2025
|
-
* iv: ivWordArray,
|
|
2026
|
-
* salt: saltWordArray,
|
|
2027
|
-
* algorithm: CryptoJS.algo.AES,
|
|
2028
|
-
* mode: CryptoJS.mode.CBC,
|
|
2029
|
-
* padding: CryptoJS.pad.PKCS7,
|
|
2030
|
-
* blockSize: 4,
|
|
2031
|
-
* formatter: CryptoJS.format.OpenSSL
|
|
2032
|
-
* });
|
|
2033
|
-
*/
|
|
2034
|
-
init:function(r){this.mixIn(r)},
|
|
2035
|
-
/**
|
|
2036
|
-
* Converts this cipher params object to a string.
|
|
2037
|
-
*
|
|
2038
|
-
* @param {Format} formatter (Optional) The formatting strategy to use.
|
|
2039
|
-
*
|
|
2040
|
-
* @return {string} The stringified cipher params.
|
|
2041
|
-
*
|
|
2042
|
-
* @throws Error If neither the formatter nor the default formatter is set.
|
|
2043
|
-
*
|
|
2044
|
-
* @example
|
|
2045
|
-
*
|
|
2046
|
-
* var string = cipherParams + '';
|
|
2047
|
-
* var string = cipherParams.toString();
|
|
2048
|
-
* var string = cipherParams.toString(CryptoJS.format.OpenSSL);
|
|
2049
|
-
*/
|
|
2050
|
-
toString:function(r){return(r||this.formatter).stringify(this)}});
|
|
2051
|
-
/**
|
|
2052
|
-
* Format namespace.
|
|
2053
|
-
*/var g=a.format={};
|
|
2054
|
-
/**
|
|
2055
|
-
* OpenSSL formatting strategy.
|
|
2056
|
-
*/var q=g.OpenSSL={
|
|
2057
|
-
/**
|
|
2058
|
-
* Converts a cipher params object to an OpenSSL-compatible string.
|
|
2059
|
-
*
|
|
2060
|
-
* @param {CipherParams} cipherParams The cipher params object.
|
|
2061
|
-
*
|
|
2062
|
-
* @return {string} The OpenSSL-compatible string.
|
|
2063
|
-
*
|
|
2064
|
-
* @static
|
|
2065
|
-
*
|
|
2066
|
-
* @example
|
|
2067
|
-
*
|
|
2068
|
-
* var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
|
|
2069
|
-
*/
|
|
2070
|
-
stringify:function(r){var e;
|
|
2071
|
-
// Shortcuts
|
|
2072
|
-
var a=r.ciphertext;var i=r.salt;
|
|
2073
|
-
// Format
|
|
2074
|
-
if(i){e=n.create([1398893684,1701076831]).concat(i).concat(a)}else{e=a}return e.toString(v)},
|
|
2075
|
-
/**
|
|
2076
|
-
* Converts an OpenSSL-compatible string to a cipher params object.
|
|
2077
|
-
*
|
|
2078
|
-
* @param {string} openSSLStr The OpenSSL-compatible string.
|
|
2079
|
-
*
|
|
2080
|
-
* @return {CipherParams} The cipher params object.
|
|
2081
|
-
*
|
|
2082
|
-
* @static
|
|
2083
|
-
*
|
|
2084
|
-
* @example
|
|
2085
|
-
*
|
|
2086
|
-
* var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
|
|
2087
|
-
*/
|
|
2088
|
-
parse:function(r){var e;
|
|
2089
|
-
// Parse base64
|
|
2090
|
-
var a=v.parse(r);
|
|
2091
|
-
// Shortcut
|
|
2092
|
-
var i=a.words;
|
|
2093
|
-
// Test for salt
|
|
2094
|
-
if(i[0]==1398893684&&i[1]==1701076831){
|
|
2095
|
-
// Extract salt
|
|
2096
|
-
e=n.create(i.slice(2,4));
|
|
2097
|
-
// Remove salt from ciphertext
|
|
2098
|
-
i.splice(0,4);a.sigBytes-=16}return b.create({ciphertext:a,salt:e})}};
|
|
2099
|
-
/**
|
|
2100
|
-
* A cipher wrapper that returns ciphertext as a serializable cipher params object.
|
|
2101
|
-
*/var w=i.SerializableCipher=t.extend({
|
|
2102
|
-
/**
|
|
2103
|
-
* Configuration options.
|
|
2104
|
-
*
|
|
2105
|
-
* @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
|
|
2106
|
-
*/
|
|
2107
|
-
cfg:t.extend({format:q}),
|
|
2108
|
-
/**
|
|
2109
|
-
* Encrypts a message.
|
|
2110
|
-
*
|
|
2111
|
-
* @param {Cipher} cipher The cipher algorithm to use.
|
|
2112
|
-
* @param {WordArray|string} message The message to encrypt.
|
|
2113
|
-
* @param {WordArray} key The key.
|
|
2114
|
-
* @param {Object} cfg (Optional) The configuration options to use for this operation.
|
|
2115
|
-
*
|
|
2116
|
-
* @return {CipherParams} A cipher params object.
|
|
2117
|
-
*
|
|
2118
|
-
* @static
|
|
2119
|
-
*
|
|
2120
|
-
* @example
|
|
2121
|
-
*
|
|
2122
|
-
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);
|
|
2123
|
-
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
|
|
2124
|
-
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
2125
|
-
*/
|
|
2126
|
-
encrypt:function(r,e,a,i){
|
|
2127
|
-
// Apply config defaults
|
|
2128
|
-
i=this.cfg.extend(i);
|
|
2129
|
-
// Encrypt
|
|
2130
|
-
var t=r.createEncryptor(a,i);var n=t.finalize(e);
|
|
2131
|
-
// Shortcut
|
|
2132
|
-
var o=t.cfg;
|
|
2133
|
-
// Create and return serializable cipher params
|
|
2134
|
-
return b.create({ciphertext:n,key:a,iv:o.iv,algorithm:r,mode:o.mode,padding:o.padding,blockSize:r.blockSize,formatter:i.format})},
|
|
2135
|
-
/**
|
|
2136
|
-
* Decrypts serialized ciphertext.
|
|
2137
|
-
*
|
|
2138
|
-
* @param {Cipher} cipher The cipher algorithm to use.
|
|
2139
|
-
* @param {CipherParams|string} ciphertext The ciphertext to decrypt.
|
|
2140
|
-
* @param {WordArray} key The key.
|
|
2141
|
-
* @param {Object} cfg (Optional) The configuration options to use for this operation.
|
|
2142
|
-
*
|
|
2143
|
-
* @return {WordArray} The plaintext.
|
|
2144
|
-
*
|
|
2145
|
-
* @static
|
|
2146
|
-
*
|
|
2147
|
-
* @example
|
|
2148
|
-
*
|
|
2149
|
-
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
2150
|
-
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
2151
|
-
*/
|
|
2152
|
-
decrypt:function(r,e,a,i){
|
|
2153
|
-
// Apply config defaults
|
|
2154
|
-
i=this.cfg.extend(i);
|
|
2155
|
-
// Convert string to CipherParams
|
|
2156
|
-
e=this._parse(e,i.format);
|
|
2157
|
-
// Decrypt
|
|
2158
|
-
var t=r.createDecryptor(a,i).finalize(e.ciphertext);return t},
|
|
2159
|
-
/**
|
|
2160
|
-
* Converts serialized ciphertext to CipherParams,
|
|
2161
|
-
* else assumed CipherParams already and returns ciphertext unchanged.
|
|
2162
|
-
*
|
|
2163
|
-
* @param {CipherParams|string} ciphertext The ciphertext.
|
|
2164
|
-
* @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.
|
|
2165
|
-
*
|
|
2166
|
-
* @return {CipherParams} The unserialized ciphertext.
|
|
2167
|
-
*
|
|
2168
|
-
* @static
|
|
2169
|
-
*
|
|
2170
|
-
* @example
|
|
2171
|
-
*
|
|
2172
|
-
* var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
|
|
2173
|
-
*/
|
|
2174
|
-
_parse:function(r,e){if(typeof r=="string"){return e.parse(r,this)}else{return r}}});
|
|
2175
|
-
/**
|
|
2176
|
-
* Key derivation function namespace.
|
|
2177
|
-
*/var x=a.kdf={};
|
|
2178
|
-
/**
|
|
2179
|
-
* OpenSSL key derivation function.
|
|
2180
|
-
*/var y=x.OpenSSL={
|
|
2181
|
-
/**
|
|
2182
|
-
* Derives a key and IV from a password.
|
|
2183
|
-
*
|
|
2184
|
-
* @param {string} password The password to derive from.
|
|
2185
|
-
* @param {number} keySize The size in words of the key to generate.
|
|
2186
|
-
* @param {number} ivSize The size in words of the IV to generate.
|
|
2187
|
-
* @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.
|
|
2188
|
-
*
|
|
2189
|
-
* @return {CipherParams} A cipher params object with the key, IV, and salt.
|
|
2190
|
-
*
|
|
2191
|
-
* @static
|
|
2192
|
-
*
|
|
2193
|
-
* @example
|
|
2194
|
-
*
|
|
2195
|
-
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
2196
|
-
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
2197
|
-
*/
|
|
2198
|
-
execute:function(r,e,a,i,t){
|
|
2199
|
-
// Generate random salt
|
|
2200
|
-
if(!i){i=n.random(64/8)}
|
|
2201
|
-
// Derive key and IV
|
|
2202
|
-
if(!t){var o=f.create({keySize:e+a}).compute(r,i)}else{var o=f.create({keySize:e+a,hasher:t}).compute(r,i)}
|
|
2203
|
-
// Separate key and IV
|
|
2204
|
-
var s=n.create(o.words.slice(e),a*4);o.sigBytes=e*4;
|
|
2205
|
-
// Return params
|
|
2206
|
-
return b.create({key:o,iv:s,salt:i})}};
|
|
2207
|
-
/**
|
|
2208
|
-
* A serializable cipher wrapper that derives the key from a password,
|
|
2209
|
-
* and returns ciphertext as a serializable cipher params object.
|
|
2210
|
-
*/var $=i.PasswordBasedCipher=w.extend({
|
|
2211
|
-
/**
|
|
2212
|
-
* Configuration options.
|
|
2213
|
-
*
|
|
2214
|
-
* @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
|
|
2215
|
-
*/
|
|
2216
|
-
cfg:w.cfg.extend({kdf:y}),
|
|
2217
|
-
/**
|
|
2218
|
-
* Encrypts a message using a password.
|
|
2219
|
-
*
|
|
2220
|
-
* @param {Cipher} cipher The cipher algorithm to use.
|
|
2221
|
-
* @param {WordArray|string} message The message to encrypt.
|
|
2222
|
-
* @param {string} password The password.
|
|
2223
|
-
* @param {Object} cfg (Optional) The configuration options to use for this operation.
|
|
2224
|
-
*
|
|
2225
|
-
* @return {CipherParams} A cipher params object.
|
|
2226
|
-
*
|
|
2227
|
-
* @static
|
|
2228
|
-
*
|
|
2229
|
-
* @example
|
|
2230
|
-
*
|
|
2231
|
-
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
|
|
2232
|
-
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
|
|
2233
|
-
*/
|
|
2234
|
-
encrypt:function(r,e,a,i){
|
|
2235
|
-
// Apply config defaults
|
|
2236
|
-
i=this.cfg.extend(i);
|
|
2237
|
-
// Derive key and other params
|
|
2238
|
-
var t=i.kdf.execute(a,r.keySize,r.ivSize,i.salt,i.hasher);
|
|
2239
|
-
// Add IV to config
|
|
2240
|
-
i.iv=t.iv;
|
|
2241
|
-
// Encrypt
|
|
2242
|
-
var n=w.encrypt.call(this,r,e,t.key,i);
|
|
2243
|
-
// Mix in derived params
|
|
2244
|
-
n.mixIn(t);return n},
|
|
2245
|
-
/**
|
|
2246
|
-
* Decrypts serialized ciphertext using a password.
|
|
2247
|
-
*
|
|
2248
|
-
* @param {Cipher} cipher The cipher algorithm to use.
|
|
2249
|
-
* @param {CipherParams|string} ciphertext The ciphertext to decrypt.
|
|
2250
|
-
* @param {string} password The password.
|
|
2251
|
-
* @param {Object} cfg (Optional) The configuration options to use for this operation.
|
|
2252
|
-
*
|
|
2253
|
-
* @return {WordArray} The plaintext.
|
|
2254
|
-
*
|
|
2255
|
-
* @static
|
|
2256
|
-
*
|
|
2257
|
-
* @example
|
|
2258
|
-
*
|
|
2259
|
-
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
|
|
2260
|
-
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
|
|
2261
|
-
*/
|
|
2262
|
-
decrypt:function(r,e,a,i){
|
|
2263
|
-
// Apply config defaults
|
|
2264
|
-
i=this.cfg.extend(i);
|
|
2265
|
-
// Convert string to CipherParams
|
|
2266
|
-
e=this._parse(e,i.format);
|
|
2267
|
-
// Derive key and other params
|
|
2268
|
-
var t=i.kdf.execute(a,r.keySize,r.ivSize,e.salt,i.hasher);
|
|
2269
|
-
// Add IV to config
|
|
2270
|
-
i.iv=t.iv;
|
|
2271
|
-
// Decrypt
|
|
2272
|
-
var n=w.decrypt.call(this,r,e,t.key,i);return n}})}()}))})(cipherCore$1);return cipherCore$1.exports}var modeCfb$1={exports:{}};var modeCfb=modeCfb$1.exports;var hasRequiredModeCfb;function requireModeCfb(){if(hasRequiredModeCfb)return modeCfb$1.exports;hasRequiredModeCfb=1;(function(r,e){(function(e,a,i){{
|
|
2273
|
-
// CommonJS
|
|
2274
|
-
r.exports=a(requireCore(),requireCipherCore())}})(modeCfb,(function(r){
|
|
2275
|
-
/**
|
|
2276
|
-
* Cipher Feedback block mode.
|
|
2277
|
-
*/
|
|
2278
|
-
r.mode.CFB=function(){var e=r.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(r,e){
|
|
2279
|
-
// Shortcuts
|
|
2280
|
-
var i=this._cipher;var t=i.blockSize;a.call(this,r,e,t,i);
|
|
2281
|
-
// Remember this block to use with next block
|
|
2282
|
-
this._prevBlock=r.slice(e,e+t)}});e.Decryptor=e.extend({processBlock:function(r,e){
|
|
2283
|
-
// Shortcuts
|
|
2284
|
-
var i=this._cipher;var t=i.blockSize;
|
|
2285
|
-
// Remember this block to use with next block
|
|
2286
|
-
var n=r.slice(e,e+t);a.call(this,r,e,t,i);
|
|
2287
|
-
// This block becomes the previous block
|
|
2288
|
-
this._prevBlock=n}});function a(r,e,a,i){var t;
|
|
2289
|
-
// Shortcut
|
|
2290
|
-
var n=this._iv;
|
|
2291
|
-
// Generate keystream
|
|
2292
|
-
if(n){t=n.slice(0);
|
|
2293
|
-
// Remove IV for subsequent blocks
|
|
2294
|
-
this._iv=undefined}else{t=this._prevBlock}i.encryptBlock(t,0);
|
|
2295
|
-
// Encrypt
|
|
2296
|
-
for(var o=0;o<a;o++){r[e+o]^=t[o]}}return e}();return r.mode.CFB}))})(modeCfb$1);return modeCfb$1.exports}var modeCtr$1={exports:{}};var modeCtr=modeCtr$1.exports;var hasRequiredModeCtr;function requireModeCtr(){if(hasRequiredModeCtr)return modeCtr$1.exports;hasRequiredModeCtr=1;(function(r,e){(function(e,a,i){{
|
|
2297
|
-
// CommonJS
|
|
2298
|
-
r.exports=a(requireCore(),requireCipherCore())}})(modeCtr,(function(r){
|
|
2299
|
-
/**
|
|
2300
|
-
* Counter block mode.
|
|
2301
|
-
*/
|
|
2302
|
-
r.mode.CTR=function(){var e=r.lib.BlockCipherMode.extend();var a=e.Encryptor=e.extend({processBlock:function(r,e){
|
|
2303
|
-
// Shortcuts
|
|
2304
|
-
var a=this._cipher;var i=a.blockSize;var t=this._iv;var n=this._counter;
|
|
2305
|
-
// Generate keystream
|
|
2306
|
-
if(t){n=this._counter=t.slice(0);
|
|
2307
|
-
// Remove IV for subsequent blocks
|
|
2308
|
-
this._iv=undefined}var o=n.slice(0);a.encryptBlock(o,0);
|
|
2309
|
-
// Increment counter
|
|
2310
|
-
n[i-1]=n[i-1]+1|0;
|
|
2311
|
-
// Encrypt
|
|
2312
|
-
for(var s=0;s<i;s++){r[e+s]^=o[s]}}});e.Decryptor=a;return e}();return r.mode.CTR}))})(modeCtr$1);return modeCtr$1.exports}var modeCtrGladman$1={exports:{}};var modeCtrGladman=modeCtrGladman$1.exports;var hasRequiredModeCtrGladman;function requireModeCtrGladman(){if(hasRequiredModeCtrGladman)return modeCtrGladman$1.exports;hasRequiredModeCtrGladman=1;(function(r,e){(function(e,a,i){{
|
|
2313
|
-
// CommonJS
|
|
2314
|
-
r.exports=a(requireCore(),requireCipherCore())}})(modeCtrGladman,(function(r){
|
|
2315
|
-
/** @preserve
|
|
2316
|
-
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
2317
|
-
* derived from CryptoJS.mode.CTR
|
|
2318
|
-
* Jan Hruby jhruby.web@gmail.com
|
|
2319
|
-
*/
|
|
2320
|
-
r.mode.CTRGladman=function(){var e=r.lib.BlockCipherMode.extend();function a(r){if((r>>24&255)===255){//overflow
|
|
2321
|
-
var e=r>>16&255;var a=r>>8&255;var i=r&255;if(e===255)// overflow b1
|
|
2322
|
-
{e=0;if(a===255){a=0;if(i===255){i=0}else{++i}}else{++a}}else{++e}r=0;r+=e<<16;r+=a<<8;r+=i}else{r+=1<<24}return r}function i(r){if((r[0]=a(r[0]))===0){
|
|
2323
|
-
// encr_data in fileenc.c from Dr Brian Gladman's counts only with DWORD j < 8
|
|
2324
|
-
r[1]=a(r[1])}return r}var t=e.Encryptor=e.extend({processBlock:function(r,e){
|
|
2325
|
-
// Shortcuts
|
|
2326
|
-
var a=this._cipher;var t=a.blockSize;var n=this._iv;var o=this._counter;
|
|
2327
|
-
// Generate keystream
|
|
2328
|
-
if(n){o=this._counter=n.slice(0);
|
|
2329
|
-
// Remove IV for subsequent blocks
|
|
2330
|
-
this._iv=undefined}i(o);var s=o.slice(0);a.encryptBlock(s,0);
|
|
2331
|
-
// Encrypt
|
|
2332
|
-
for(var v=0;v<t;v++){r[e+v]^=s[v]}}});e.Decryptor=t;return e}();return r.mode.CTRGladman}))})(modeCtrGladman$1);return modeCtrGladman$1.exports}var modeOfb$1={exports:{}};var modeOfb=modeOfb$1.exports;var hasRequiredModeOfb;function requireModeOfb(){if(hasRequiredModeOfb)return modeOfb$1.exports;hasRequiredModeOfb=1;(function(r,e){(function(e,a,i){{
|
|
2333
|
-
// CommonJS
|
|
2334
|
-
r.exports=a(requireCore(),requireCipherCore())}})(modeOfb,(function(r){
|
|
2335
|
-
/**
|
|
2336
|
-
* Output Feedback block mode.
|
|
2337
|
-
*/
|
|
2338
|
-
r.mode.OFB=function(){var e=r.lib.BlockCipherMode.extend();var a=e.Encryptor=e.extend({processBlock:function(r,e){
|
|
2339
|
-
// Shortcuts
|
|
2340
|
-
var a=this._cipher;var i=a.blockSize;var t=this._iv;var n=this._keystream;
|
|
2341
|
-
// Generate keystream
|
|
2342
|
-
if(t){n=this._keystream=t.slice(0);
|
|
2343
|
-
// Remove IV for subsequent blocks
|
|
2344
|
-
this._iv=undefined}a.encryptBlock(n,0);
|
|
2345
|
-
// Encrypt
|
|
2346
|
-
for(var o=0;o<i;o++){r[e+o]^=n[o]}}});e.Decryptor=a;return e}();return r.mode.OFB}))})(modeOfb$1);return modeOfb$1.exports}var modeEcb$1={exports:{}};var modeEcb=modeEcb$1.exports;var hasRequiredModeEcb;function requireModeEcb(){if(hasRequiredModeEcb)return modeEcb$1.exports;hasRequiredModeEcb=1;(function(r,e){(function(e,a,i){{
|
|
2347
|
-
// CommonJS
|
|
2348
|
-
r.exports=a(requireCore(),requireCipherCore())}})(modeEcb,(function(r){
|
|
2349
|
-
/**
|
|
2350
|
-
* Electronic Codebook block mode.
|
|
2351
|
-
*/
|
|
2352
|
-
r.mode.ECB=function(){var e=r.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(r,e){this._cipher.encryptBlock(r,e)}});e.Decryptor=e.extend({processBlock:function(r,e){this._cipher.decryptBlock(r,e)}});return e}();return r.mode.ECB}))})(modeEcb$1);return modeEcb$1.exports}var padAnsix923$1={exports:{}};var padAnsix923=padAnsix923$1.exports;var hasRequiredPadAnsix923;function requirePadAnsix923(){if(hasRequiredPadAnsix923)return padAnsix923$1.exports;hasRequiredPadAnsix923=1;(function(r,e){(function(e,a,i){{
|
|
2353
|
-
// CommonJS
|
|
2354
|
-
r.exports=a(requireCore(),requireCipherCore())}})(padAnsix923,(function(r){
|
|
2355
|
-
/**
|
|
2356
|
-
* ANSI X.923 padding strategy.
|
|
2357
|
-
*/
|
|
2358
|
-
r.pad.AnsiX923={pad:function(r,e){
|
|
2359
|
-
// Shortcuts
|
|
2360
|
-
var a=r.sigBytes;var i=e*4;
|
|
2361
|
-
// Count padding bytes
|
|
2362
|
-
var t=i-a%i;
|
|
2363
|
-
// Compute last byte position
|
|
2364
|
-
var n=a+t-1;
|
|
2365
|
-
// Pad
|
|
2366
|
-
r.clamp();r.words[n>>>2]|=t<<24-n%4*8;r.sigBytes+=t},unpad:function(r){
|
|
2367
|
-
// Get number of padding bytes from last byte
|
|
2368
|
-
var e=r.words[r.sigBytes-1>>>2]&255;
|
|
2369
|
-
// Remove padding
|
|
2370
|
-
r.sigBytes-=e}};return r.pad.Ansix923}))})(padAnsix923$1);return padAnsix923$1.exports}var padIso10126$1={exports:{}};var padIso10126=padIso10126$1.exports;var hasRequiredPadIso10126;function requirePadIso10126(){if(hasRequiredPadIso10126)return padIso10126$1.exports;hasRequiredPadIso10126=1;(function(r,e){(function(e,a,i){{
|
|
2371
|
-
// CommonJS
|
|
2372
|
-
r.exports=a(requireCore(),requireCipherCore())}})(padIso10126,(function(r){
|
|
2373
|
-
/**
|
|
2374
|
-
* ISO 10126 padding strategy.
|
|
2375
|
-
*/
|
|
2376
|
-
r.pad.Iso10126={pad:function(e,a){
|
|
2377
|
-
// Shortcut
|
|
2378
|
-
var i=a*4;
|
|
2379
|
-
// Count padding bytes
|
|
2380
|
-
var t=i-e.sigBytes%i;
|
|
2381
|
-
// Pad
|
|
2382
|
-
e.concat(r.lib.WordArray.random(t-1)).concat(r.lib.WordArray.create([t<<24],1))},unpad:function(r){
|
|
2383
|
-
// Get number of padding bytes from last byte
|
|
2384
|
-
var e=r.words[r.sigBytes-1>>>2]&255;
|
|
2385
|
-
// Remove padding
|
|
2386
|
-
r.sigBytes-=e}};return r.pad.Iso10126}))})(padIso10126$1);return padIso10126$1.exports}var padIso97971$1={exports:{}};var padIso97971=padIso97971$1.exports;var hasRequiredPadIso97971;function requirePadIso97971(){if(hasRequiredPadIso97971)return padIso97971$1.exports;hasRequiredPadIso97971=1;(function(r,e){(function(e,a,i){{
|
|
2387
|
-
// CommonJS
|
|
2388
|
-
r.exports=a(requireCore(),requireCipherCore())}})(padIso97971,(function(r){
|
|
2389
|
-
/**
|
|
2390
|
-
* ISO/IEC 9797-1 Padding Method 2.
|
|
2391
|
-
*/
|
|
2392
|
-
r.pad.Iso97971={pad:function(e,a){
|
|
2393
|
-
// Add 0x80 byte
|
|
2394
|
-
e.concat(r.lib.WordArray.create([2147483648],1));
|
|
2395
|
-
// Zero pad the rest
|
|
2396
|
-
r.pad.ZeroPadding.pad(e,a)},unpad:function(e){
|
|
2397
|
-
// Remove zero padding
|
|
2398
|
-
r.pad.ZeroPadding.unpad(e);
|
|
2399
|
-
// Remove one more byte -- the 0x80 byte
|
|
2400
|
-
e.sigBytes--}};return r.pad.Iso97971}))})(padIso97971$1);return padIso97971$1.exports}var padZeropadding$1={exports:{}};var padZeropadding=padZeropadding$1.exports;var hasRequiredPadZeropadding;function requirePadZeropadding(){if(hasRequiredPadZeropadding)return padZeropadding$1.exports;hasRequiredPadZeropadding=1;(function(r,e){(function(e,a,i){{
|
|
2401
|
-
// CommonJS
|
|
2402
|
-
r.exports=a(requireCore(),requireCipherCore())}})(padZeropadding,(function(r){
|
|
2403
|
-
/**
|
|
2404
|
-
* Zero padding strategy.
|
|
2405
|
-
*/
|
|
2406
|
-
r.pad.ZeroPadding={pad:function(r,e){
|
|
2407
|
-
// Shortcut
|
|
2408
|
-
var a=e*4;
|
|
2409
|
-
// Pad
|
|
2410
|
-
r.clamp();r.sigBytes+=a-(r.sigBytes%a||a)},unpad:function(r){
|
|
2411
|
-
// Shortcut
|
|
2412
|
-
var e=r.words;
|
|
2413
|
-
// Unpad
|
|
2414
|
-
var a=r.sigBytes-1;for(var a=r.sigBytes-1;a>=0;a--){if(e[a>>>2]>>>24-a%4*8&255){r.sigBytes=a+1;break}}}};return r.pad.ZeroPadding}))})(padZeropadding$1);return padZeropadding$1.exports}var padNopadding$1={exports:{}};var padNopadding=padNopadding$1.exports;var hasRequiredPadNopadding;function requirePadNopadding(){if(hasRequiredPadNopadding)return padNopadding$1.exports;hasRequiredPadNopadding=1;(function(r,e){(function(e,a,i){{
|
|
2415
|
-
// CommonJS
|
|
2416
|
-
r.exports=a(requireCore(),requireCipherCore())}})(padNopadding,(function(r){
|
|
2417
|
-
/**
|
|
2418
|
-
* A noop padding strategy.
|
|
2419
|
-
*/
|
|
2420
|
-
r.pad.NoPadding={pad:function(){},unpad:function(){}};return r.pad.NoPadding}))})(padNopadding$1);return padNopadding$1.exports}var formatHex$1={exports:{}};var formatHex=formatHex$1.exports;var hasRequiredFormatHex;function requireFormatHex(){if(hasRequiredFormatHex)return formatHex$1.exports;hasRequiredFormatHex=1;(function(r,e){(function(e,a,i){{
|
|
2421
|
-
// CommonJS
|
|
2422
|
-
r.exports=a(requireCore(),requireCipherCore())}})(formatHex,(function(r){(function(e){
|
|
2423
|
-
// Shortcuts
|
|
2424
|
-
var a=r;var i=a.lib;var t=i.CipherParams;var n=a.enc;var o=n.Hex;var s=a.format;s.Hex={
|
|
2425
|
-
/**
|
|
2426
|
-
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
2427
|
-
*
|
|
2428
|
-
* @param {CipherParams} cipherParams The cipher params object.
|
|
2429
|
-
*
|
|
2430
|
-
* @return {string} The hexadecimally encoded string.
|
|
2431
|
-
*
|
|
2432
|
-
* @static
|
|
2433
|
-
*
|
|
2434
|
-
* @example
|
|
2435
|
-
*
|
|
2436
|
-
* var hexString = CryptoJS.format.Hex.stringify(cipherParams);
|
|
2437
|
-
*/
|
|
2438
|
-
stringify:function(r){return r.ciphertext.toString(o)},
|
|
2439
|
-
/**
|
|
2440
|
-
* Converts a hexadecimally encoded ciphertext string to a cipher params object.
|
|
2441
|
-
*
|
|
2442
|
-
* @param {string} input The hexadecimally encoded string.
|
|
2443
|
-
*
|
|
2444
|
-
* @return {CipherParams} The cipher params object.
|
|
2445
|
-
*
|
|
2446
|
-
* @static
|
|
2447
|
-
*
|
|
2448
|
-
* @example
|
|
2449
|
-
*
|
|
2450
|
-
* var cipherParams = CryptoJS.format.Hex.parse(hexString);
|
|
2451
|
-
*/
|
|
2452
|
-
parse:function(r){var e=o.parse(r);return t.create({ciphertext:e})}}})();return r.format.Hex}))})(formatHex$1);return formatHex$1.exports}var aes$1={exports:{}};var aes=aes$1.exports;var hasRequiredAes;function requireAes(){if(hasRequiredAes)return aes$1.exports;hasRequiredAes=1;(function(r,e){(function(e,a,i){{
|
|
2453
|
-
// CommonJS
|
|
2454
|
-
r.exports=a(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())}})(aes,(function(r){(function(){
|
|
2455
|
-
// Shortcuts
|
|
2456
|
-
var e=r;var a=e.lib;var i=a.BlockCipher;var t=e.algo;
|
|
2457
|
-
// Lookup tables
|
|
2458
|
-
var n=[];var o=[];var s=[];var v=[];var u=[];var f=[];var c=[];var d=[];var h=[];var l=[];
|
|
2459
|
-
// Compute lookup tables
|
|
2460
|
-
(function(){
|
|
2461
|
-
// Compute double table
|
|
2462
|
-
var r=[];for(var e=0;e<256;e++){if(e<128){r[e]=e<<1}else{r[e]=e<<1^283}}
|
|
2463
|
-
// Walk GF(2^8)
|
|
2464
|
-
var a=0;var i=0;for(var e=0;e<256;e++){
|
|
2465
|
-
// Compute sbox
|
|
2466
|
-
var t=i^i<<1^i<<2^i<<3^i<<4;t=t>>>8^t&255^99;n[a]=t;o[t]=a;
|
|
2467
|
-
// Compute multiplication
|
|
2468
|
-
var p=r[a];var m=r[p];var b=r[m];
|
|
2469
|
-
// Compute sub bytes, mix columns tables
|
|
2470
|
-
var g=r[t]*257^t*16843008;s[a]=g<<24|g>>>8;v[a]=g<<16|g>>>16;u[a]=g<<8|g>>>24;f[a]=g;
|
|
2471
|
-
// Compute inv sub bytes, inv mix columns tables
|
|
2472
|
-
var g=b*16843009^m*65537^p*257^a*16843008;c[t]=g<<24|g>>>8;d[t]=g<<16|g>>>16;h[t]=g<<8|g>>>24;l[t]=g;
|
|
2473
|
-
// Compute next counter
|
|
2474
|
-
if(!a){a=i=1}else{a=p^r[r[r[b^p]]];i^=r[r[i]]}}})();
|
|
2475
|
-
// Precomputed Rcon lookup
|
|
2476
|
-
var p=[0,1,2,4,8,16,32,64,128,27,54];
|
|
2477
|
-
/**
|
|
2478
|
-
* AES block cipher algorithm.
|
|
2479
|
-
*/var m=t.AES=i.extend({_doReset:function(){var r;
|
|
2480
|
-
// Skip reset of nRounds has been set before and key did not change
|
|
2481
|
-
if(this._nRounds&&this._keyPriorReset===this._key){return}
|
|
2482
|
-
// Shortcuts
|
|
2483
|
-
var e=this._keyPriorReset=this._key;var a=e.words;var i=e.sigBytes/4;
|
|
2484
|
-
// Compute number of rounds
|
|
2485
|
-
var t=this._nRounds=i+6;
|
|
2486
|
-
// Compute number of key schedule rows
|
|
2487
|
-
var o=(t+1)*4;
|
|
2488
|
-
// Compute key schedule
|
|
2489
|
-
var s=this._keySchedule=[];for(var v=0;v<o;v++){if(v<i){s[v]=a[v]}else{r=s[v-1];if(!(v%i)){
|
|
2490
|
-
// Rot word
|
|
2491
|
-
r=r<<8|r>>>24;
|
|
2492
|
-
// Sub word
|
|
2493
|
-
r=n[r>>>24]<<24|n[r>>>16&255]<<16|n[r>>>8&255]<<8|n[r&255];
|
|
2494
|
-
// Mix Rcon
|
|
2495
|
-
r^=p[v/i|0]<<24}else if(i>6&&v%i==4){
|
|
2496
|
-
// Sub word
|
|
2497
|
-
r=n[r>>>24]<<24|n[r>>>16&255]<<16|n[r>>>8&255]<<8|n[r&255]}s[v]=s[v-i]^r}}
|
|
2498
|
-
// Compute inv key schedule
|
|
2499
|
-
var u=this._invKeySchedule=[];for(var f=0;f<o;f++){var v=o-f;if(f%4){var r=s[v]}else{var r=s[v-4]}if(f<4||v<=4){u[f]=r}else{u[f]=c[n[r>>>24]]^d[n[r>>>16&255]]^h[n[r>>>8&255]]^l[n[r&255]]}}},encryptBlock:function(r,e){this._doCryptBlock(r,e,this._keySchedule,s,v,u,f,n)},decryptBlock:function(r,e){
|
|
2500
|
-
// Swap 2nd and 4th rows
|
|
2501
|
-
var a=r[e+1];r[e+1]=r[e+3];r[e+3]=a;this._doCryptBlock(r,e,this._invKeySchedule,c,d,h,l,o);
|
|
2502
|
-
// Inv swap 2nd and 4th rows
|
|
2503
|
-
var a=r[e+1];r[e+1]=r[e+3];r[e+3]=a},_doCryptBlock:function(r,e,a,i,t,n,o,s){
|
|
2504
|
-
// Shortcut
|
|
2505
|
-
var v=this._nRounds;
|
|
2506
|
-
// Get input, add round key
|
|
2507
|
-
var u=r[e]^a[0];var f=r[e+1]^a[1];var c=r[e+2]^a[2];var d=r[e+3]^a[3];
|
|
2508
|
-
// Key schedule row counter
|
|
2509
|
-
var h=4;
|
|
2510
|
-
// Rounds
|
|
2511
|
-
for(var l=1;l<v;l++){
|
|
2512
|
-
// Shift rows, sub bytes, mix columns, add round key
|
|
2513
|
-
var p=i[u>>>24]^t[f>>>16&255]^n[c>>>8&255]^o[d&255]^a[h++];var m=i[f>>>24]^t[c>>>16&255]^n[d>>>8&255]^o[u&255]^a[h++];var b=i[c>>>24]^t[d>>>16&255]^n[u>>>8&255]^o[f&255]^a[h++];var g=i[d>>>24]^t[u>>>16&255]^n[f>>>8&255]^o[c&255]^a[h++];
|
|
2514
|
-
// Update state
|
|
2515
|
-
u=p;f=m;c=b;d=g}
|
|
2516
|
-
// Shift rows, sub bytes, add round key
|
|
2517
|
-
var p=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[c>>>8&255]<<8|s[d&255])^a[h++];var m=(s[f>>>24]<<24|s[c>>>16&255]<<16|s[d>>>8&255]<<8|s[u&255])^a[h++];var b=(s[c>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[f&255])^a[h++];var g=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[c&255])^a[h++];
|
|
2518
|
-
// Set output
|
|
2519
|
-
r[e]=p;r[e+1]=m;r[e+2]=b;r[e+3]=g},keySize:256/32});
|
|
2520
|
-
/**
|
|
2521
|
-
* Shortcut functions to the cipher's object interface.
|
|
2522
|
-
*
|
|
2523
|
-
* @example
|
|
2524
|
-
*
|
|
2525
|
-
* var ciphertext = CryptoJS.AES.encrypt(message, key, cfg);
|
|
2526
|
-
* var plaintext = CryptoJS.AES.decrypt(ciphertext, key, cfg);
|
|
2527
|
-
*/e.AES=i._createHelper(m)})();return r.AES}))})(aes$1);return aes$1.exports}var tripledes$1={exports:{}};var tripledes=tripledes$1.exports;var hasRequiredTripledes;function requireTripledes(){if(hasRequiredTripledes)return tripledes$1.exports;hasRequiredTripledes=1;(function(r,e){(function(e,a,i){{
|
|
2528
|
-
// CommonJS
|
|
2529
|
-
r.exports=a(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())}})(tripledes,(function(r){(function(){
|
|
2530
|
-
// Shortcuts
|
|
2531
|
-
var e=r;var a=e.lib;var i=a.WordArray;var t=a.BlockCipher;var n=e.algo;
|
|
2532
|
-
// Permuted Choice 1 constants
|
|
2533
|
-
var o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4];
|
|
2534
|
-
// Permuted Choice 2 constants
|
|
2535
|
-
var s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32];
|
|
2536
|
-
// Cumulative bit shift constants
|
|
2537
|
-
var v=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28];
|
|
2538
|
-
// SBOXes and round permutation constants
|
|
2539
|
-
var u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}];
|
|
2540
|
-
// Masks that select the SBOX input
|
|
2541
|
-
var f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679];
|
|
2542
|
-
/**
|
|
2543
|
-
* DES block cipher algorithm.
|
|
2544
|
-
*/var c=n.DES=t.extend({_doReset:function(){
|
|
2545
|
-
// Shortcuts
|
|
2546
|
-
var r=this._key;var e=r.words;
|
|
2547
|
-
// Select 56 bits according to PC1
|
|
2548
|
-
var a=[];for(var i=0;i<56;i++){var t=o[i]-1;a[i]=e[t>>>5]>>>31-t%32&1}
|
|
2549
|
-
// Assemble 16 subkeys
|
|
2550
|
-
var n=this._subKeys=[];for(var u=0;u<16;u++){
|
|
2551
|
-
// Create subkey
|
|
2552
|
-
var f=n[u]=[];
|
|
2553
|
-
// Shortcut
|
|
2554
|
-
var c=v[u];
|
|
2555
|
-
// Select 48 bits according to PC2
|
|
2556
|
-
for(var i=0;i<24;i++){
|
|
2557
|
-
// Select from the left 28 key bits
|
|
2558
|
-
f[i/6|0]|=a[(s[i]-1+c)%28]<<31-i%6;
|
|
2559
|
-
// Select from the right 28 key bits
|
|
2560
|
-
f[4+(i/6|0)]|=a[28+(s[i+24]-1+c)%28]<<31-i%6}
|
|
2561
|
-
// Since each subkey is applied to an expanded 32-bit input,
|
|
2562
|
-
// the subkey can be broken into 8 values scaled to 32-bits,
|
|
2563
|
-
// which allows the key to be used without expansion
|
|
2564
|
-
f[0]=f[0]<<1|f[0]>>>31;for(var i=1;i<7;i++){f[i]=f[i]>>>(i-1)*4+3}f[7]=f[7]<<5|f[7]>>>27}
|
|
2565
|
-
// Compute inverse subkeys
|
|
2566
|
-
var d=this._invSubKeys=[];for(var i=0;i<16;i++){d[i]=n[15-i]}},encryptBlock:function(r,e){this._doCryptBlock(r,e,this._subKeys)},decryptBlock:function(r,e){this._doCryptBlock(r,e,this._invSubKeys)},_doCryptBlock:function(r,e,a){
|
|
2567
|
-
// Get input
|
|
2568
|
-
this._lBlock=r[e];this._rBlock=r[e+1];
|
|
2569
|
-
// Initial permutation
|
|
2570
|
-
d.call(this,4,252645135);d.call(this,16,65535);h.call(this,2,858993459);h.call(this,8,16711935);d.call(this,1,1431655765);
|
|
2571
|
-
// Rounds
|
|
2572
|
-
for(var i=0;i<16;i++){
|
|
2573
|
-
// Shortcuts
|
|
2574
|
-
var t=a[i];var n=this._lBlock;var o=this._rBlock;
|
|
2575
|
-
// Feistel function
|
|
2576
|
-
var s=0;for(var v=0;v<8;v++){s|=u[v][((o^t[v])&f[v])>>>0]}this._lBlock=o;this._rBlock=n^s}
|
|
2577
|
-
// Undo swap from last round
|
|
2578
|
-
var c=this._lBlock;this._lBlock=this._rBlock;this._rBlock=c;
|
|
2579
|
-
// Final permutation
|
|
2580
|
-
d.call(this,1,1431655765);h.call(this,8,16711935);h.call(this,2,858993459);d.call(this,16,65535);d.call(this,4,252645135);
|
|
2581
|
-
// Set output
|
|
2582
|
-
r[e]=this._lBlock;r[e+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});
|
|
2583
|
-
// Swap bits across the left and right words
|
|
2584
|
-
function d(r,e){var a=(this._lBlock>>>r^this._rBlock)&e;this._rBlock^=a;this._lBlock^=a<<r}function h(r,e){var a=(this._rBlock>>>r^this._lBlock)&e;this._lBlock^=a;this._rBlock^=a<<r}
|
|
2585
|
-
/**
|
|
2586
|
-
* Shortcut functions to the cipher's object interface.
|
|
2587
|
-
*
|
|
2588
|
-
* @example
|
|
2589
|
-
*
|
|
2590
|
-
* var ciphertext = CryptoJS.DES.encrypt(message, key, cfg);
|
|
2591
|
-
* var plaintext = CryptoJS.DES.decrypt(ciphertext, key, cfg);
|
|
2592
|
-
*/e.DES=t._createHelper(c);
|
|
2593
|
-
/**
|
|
2594
|
-
* Triple-DES block cipher algorithm.
|
|
2595
|
-
*/var l=n.TripleDES=t.extend({_doReset:function(){
|
|
2596
|
-
// Shortcuts
|
|
2597
|
-
var r=this._key;var e=r.words;
|
|
2598
|
-
// Make sure the key length is valid (64, 128 or >= 192 bit)
|
|
2599
|
-
if(e.length!==2&&e.length!==4&&e.length<6){throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.")}
|
|
2600
|
-
// Extend the key according to the keying options defined in 3DES standard
|
|
2601
|
-
var a=e.slice(0,2);var t=e.length<4?e.slice(0,2):e.slice(2,4);var n=e.length<6?e.slice(0,2):e.slice(4,6);
|
|
2602
|
-
// Create DES instances
|
|
2603
|
-
this._des1=c.createEncryptor(i.create(a));this._des2=c.createEncryptor(i.create(t));this._des3=c.createEncryptor(i.create(n))},encryptBlock:function(r,e){this._des1.encryptBlock(r,e);this._des2.decryptBlock(r,e);this._des3.encryptBlock(r,e)},decryptBlock:function(r,e){this._des3.decryptBlock(r,e);this._des2.encryptBlock(r,e);this._des1.decryptBlock(r,e)},keySize:192/32,ivSize:64/32,blockSize:64/32});
|
|
2604
|
-
/**
|
|
2605
|
-
* Shortcut functions to the cipher's object interface.
|
|
2606
|
-
*
|
|
2607
|
-
* @example
|
|
2608
|
-
*
|
|
2609
|
-
* var ciphertext = CryptoJS.TripleDES.encrypt(message, key, cfg);
|
|
2610
|
-
* var plaintext = CryptoJS.TripleDES.decrypt(ciphertext, key, cfg);
|
|
2611
|
-
*/e.TripleDES=t._createHelper(l)})();return r.TripleDES}))})(tripledes$1);return tripledes$1.exports}var rc4$1={exports:{}};var rc4=rc4$1.exports;var hasRequiredRc4;function requireRc4(){if(hasRequiredRc4)return rc4$1.exports;hasRequiredRc4=1;(function(r,e){(function(e,a,i){{
|
|
2612
|
-
// CommonJS
|
|
2613
|
-
r.exports=a(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())}})(rc4,(function(r){(function(){
|
|
2614
|
-
// Shortcuts
|
|
2615
|
-
var e=r;var a=e.lib;var i=a.StreamCipher;var t=e.algo;
|
|
2616
|
-
/**
|
|
2617
|
-
* RC4 stream cipher algorithm.
|
|
2618
|
-
*/var n=t.RC4=i.extend({_doReset:function(){
|
|
2619
|
-
// Shortcuts
|
|
2620
|
-
var r=this._key;var e=r.words;var a=r.sigBytes;
|
|
2621
|
-
// Init sbox
|
|
2622
|
-
var i=this._S=[];for(var t=0;t<256;t++){i[t]=t}
|
|
2623
|
-
// Key setup
|
|
2624
|
-
for(var t=0,n=0;t<256;t++){var o=t%a;var s=e[o>>>2]>>>24-o%4*8&255;n=(n+i[t]+s)%256;
|
|
2625
|
-
// Swap
|
|
2626
|
-
var v=i[t];i[t]=i[n];i[n]=v}
|
|
2627
|
-
// Counters
|
|
2628
|
-
this._i=this._j=0},_doProcessBlock:function(r,e){r[e]^=o.call(this)},keySize:256/32,ivSize:0});function o(){
|
|
2629
|
-
// Shortcuts
|
|
2630
|
-
var r=this._S;var e=this._i;var a=this._j;
|
|
2631
|
-
// Generate keystream word
|
|
2632
|
-
var i=0;for(var t=0;t<4;t++){e=(e+1)%256;a=(a+r[e])%256;
|
|
2633
|
-
// Swap
|
|
2634
|
-
var n=r[e];r[e]=r[a];r[a]=n;i|=r[(r[e]+r[a])%256]<<24-t*8}
|
|
2635
|
-
// Update counters
|
|
2636
|
-
this._i=e;this._j=a;return i}
|
|
2637
|
-
/**
|
|
2638
|
-
* Shortcut functions to the cipher's object interface.
|
|
2639
|
-
*
|
|
2640
|
-
* @example
|
|
2641
|
-
*
|
|
2642
|
-
* var ciphertext = CryptoJS.RC4.encrypt(message, key, cfg);
|
|
2643
|
-
* var plaintext = CryptoJS.RC4.decrypt(ciphertext, key, cfg);
|
|
2644
|
-
*/e.RC4=i._createHelper(n);
|
|
2645
|
-
/**
|
|
2646
|
-
* Modified RC4 stream cipher algorithm.
|
|
2647
|
-
*/var s=t.RC4Drop=n.extend({
|
|
2648
|
-
/**
|
|
2649
|
-
* Configuration options.
|
|
2650
|
-
*
|
|
2651
|
-
* @property {number} drop The number of keystream words to drop. Default 192
|
|
2652
|
-
*/
|
|
2653
|
-
cfg:n.cfg.extend({drop:192}),_doReset:function(){n._doReset.call(this);
|
|
2654
|
-
// Drop
|
|
2655
|
-
for(var r=this.cfg.drop;r>0;r--){o.call(this)}}});
|
|
2656
|
-
/**
|
|
2657
|
-
* Shortcut functions to the cipher's object interface.
|
|
2658
|
-
*
|
|
2659
|
-
* @example
|
|
2660
|
-
*
|
|
2661
|
-
* var ciphertext = CryptoJS.RC4Drop.encrypt(message, key, cfg);
|
|
2662
|
-
* var plaintext = CryptoJS.RC4Drop.decrypt(ciphertext, key, cfg);
|
|
2663
|
-
*/e.RC4Drop=i._createHelper(s)})();return r.RC4}))})(rc4$1);return rc4$1.exports}var rabbit$1={exports:{}};var rabbit=rabbit$1.exports;var hasRequiredRabbit;function requireRabbit(){if(hasRequiredRabbit)return rabbit$1.exports;hasRequiredRabbit=1;(function(r,e){(function(e,a,i){{
|
|
2664
|
-
// CommonJS
|
|
2665
|
-
r.exports=a(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())}})(rabbit,(function(r){(function(){
|
|
2666
|
-
// Shortcuts
|
|
2667
|
-
var e=r;var a=e.lib;var i=a.StreamCipher;var t=e.algo;
|
|
2668
|
-
// Reusable objects
|
|
2669
|
-
var n=[];var o=[];var s=[];
|
|
2670
|
-
/**
|
|
2671
|
-
* Rabbit stream cipher algorithm
|
|
2672
|
-
*/var v=t.Rabbit=i.extend({_doReset:function(){
|
|
2673
|
-
// Shortcuts
|
|
2674
|
-
var r=this._key.words;var e=this.cfg.iv;
|
|
2675
|
-
// Swap endian
|
|
2676
|
-
for(var a=0;a<4;a++){r[a]=(r[a]<<8|r[a]>>>24)&16711935|(r[a]<<24|r[a]>>>8)&4278255360}
|
|
2677
|
-
// Generate initial state values
|
|
2678
|
-
var i=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16];
|
|
2679
|
-
// Generate initial counter values
|
|
2680
|
-
var t=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];
|
|
2681
|
-
// Carry bit
|
|
2682
|
-
this._b=0;
|
|
2683
|
-
// Iterate the system four times
|
|
2684
|
-
for(var a=0;a<4;a++){u.call(this)}
|
|
2685
|
-
// Modify the counters
|
|
2686
|
-
for(var a=0;a<8;a++){t[a]^=i[a+4&7]}
|
|
2687
|
-
// IV setup
|
|
2688
|
-
if(e){
|
|
2689
|
-
// Shortcuts
|
|
2690
|
-
var n=e.words;var o=n[0];var s=n[1];
|
|
2691
|
-
// Generate four subvectors
|
|
2692
|
-
var v=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360;var f=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360;var c=v>>>16|f&4294901760;var d=f<<16|v&65535;
|
|
2693
|
-
// Modify counter values
|
|
2694
|
-
t[0]^=v;t[1]^=c;t[2]^=f;t[3]^=d;t[4]^=v;t[5]^=c;t[6]^=f;t[7]^=d;
|
|
2695
|
-
// Iterate the system four times
|
|
2696
|
-
for(var a=0;a<4;a++){u.call(this)}}},_doProcessBlock:function(r,e){
|
|
2697
|
-
// Shortcut
|
|
2698
|
-
var a=this._X;
|
|
2699
|
-
// Iterate the system
|
|
2700
|
-
u.call(this);
|
|
2701
|
-
// Generate four keystream words
|
|
2702
|
-
n[0]=a[0]^a[5]>>>16^a[3]<<16;n[1]=a[2]^a[7]>>>16^a[5]<<16;n[2]=a[4]^a[1]>>>16^a[7]<<16;n[3]=a[6]^a[3]>>>16^a[1]<<16;for(var i=0;i<4;i++){
|
|
2703
|
-
// Swap endian
|
|
2704
|
-
n[i]=(n[i]<<8|n[i]>>>24)&16711935|(n[i]<<24|n[i]>>>8)&4278255360;
|
|
2705
|
-
// Encrypt
|
|
2706
|
-
r[e+i]^=n[i]}},blockSize:128/32,ivSize:64/32});function u(){
|
|
2707
|
-
// Shortcuts
|
|
2708
|
-
var r=this._X;var e=this._C;
|
|
2709
|
-
// Save old counter values
|
|
2710
|
-
for(var a=0;a<8;a++){o[a]=e[a]}
|
|
2711
|
-
// Calculate new counter values
|
|
2712
|
-
e[0]=e[0]+1295307597+this._b|0;e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0;e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0;e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0;e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0;e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0;e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0;e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0;this._b=e[7]>>>0<o[7]>>>0?1:0;
|
|
2713
|
-
// Calculate the g-values
|
|
2714
|
-
for(var a=0;a<8;a++){var i=r[a]+e[a];
|
|
2715
|
-
// Construct high and low argument for squaring
|
|
2716
|
-
var t=i&65535;var n=i>>>16;
|
|
2717
|
-
// Calculate high and low result of squaring
|
|
2718
|
-
var v=((t*t>>>17)+t*n>>>15)+n*n;var u=((i&4294901760)*i|0)+((i&65535)*i|0);
|
|
2719
|
-
// High XOR low
|
|
2720
|
-
s[a]=v^u}
|
|
2721
|
-
// Calculate new state values
|
|
2722
|
-
r[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0;r[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0;r[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0;r[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0;r[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0;r[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0;r[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0;r[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}
|
|
2723
|
-
/**
|
|
2724
|
-
* Shortcut functions to the cipher's object interface.
|
|
2725
|
-
*
|
|
2726
|
-
* @example
|
|
2727
|
-
*
|
|
2728
|
-
* var ciphertext = CryptoJS.Rabbit.encrypt(message, key, cfg);
|
|
2729
|
-
* var plaintext = CryptoJS.Rabbit.decrypt(ciphertext, key, cfg);
|
|
2730
|
-
*/e.Rabbit=i._createHelper(v)})();return r.Rabbit}))})(rabbit$1);return rabbit$1.exports}var rabbitLegacy$1={exports:{}};var rabbitLegacy=rabbitLegacy$1.exports;var hasRequiredRabbitLegacy;function requireRabbitLegacy(){if(hasRequiredRabbitLegacy)return rabbitLegacy$1.exports;hasRequiredRabbitLegacy=1;(function(r,e){(function(e,a,i){{
|
|
2731
|
-
// CommonJS
|
|
2732
|
-
r.exports=a(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())}})(rabbitLegacy,(function(r){(function(){
|
|
2733
|
-
// Shortcuts
|
|
2734
|
-
var e=r;var a=e.lib;var i=a.StreamCipher;var t=e.algo;
|
|
2735
|
-
// Reusable objects
|
|
2736
|
-
var n=[];var o=[];var s=[];
|
|
2737
|
-
/**
|
|
2738
|
-
* Rabbit stream cipher algorithm.
|
|
2739
|
-
*
|
|
2740
|
-
* This is a legacy version that neglected to convert the key to little-endian.
|
|
2741
|
-
* This error doesn't affect the cipher's security,
|
|
2742
|
-
* but it does affect its compatibility with other implementations.
|
|
2743
|
-
*/var v=t.RabbitLegacy=i.extend({_doReset:function(){
|
|
2744
|
-
// Shortcuts
|
|
2745
|
-
var r=this._key.words;var e=this.cfg.iv;
|
|
2746
|
-
// Generate initial state values
|
|
2747
|
-
var a=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16];
|
|
2748
|
-
// Generate initial counter values
|
|
2749
|
-
var i=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];
|
|
2750
|
-
// Carry bit
|
|
2751
|
-
this._b=0;
|
|
2752
|
-
// Iterate the system four times
|
|
2753
|
-
for(var t=0;t<4;t++){u.call(this)}
|
|
2754
|
-
// Modify the counters
|
|
2755
|
-
for(var t=0;t<8;t++){i[t]^=a[t+4&7]}
|
|
2756
|
-
// IV setup
|
|
2757
|
-
if(e){
|
|
2758
|
-
// Shortcuts
|
|
2759
|
-
var n=e.words;var o=n[0];var s=n[1];
|
|
2760
|
-
// Generate four subvectors
|
|
2761
|
-
var v=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360;var f=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360;var c=v>>>16|f&4294901760;var d=f<<16|v&65535;
|
|
2762
|
-
// Modify counter values
|
|
2763
|
-
i[0]^=v;i[1]^=c;i[2]^=f;i[3]^=d;i[4]^=v;i[5]^=c;i[6]^=f;i[7]^=d;
|
|
2764
|
-
// Iterate the system four times
|
|
2765
|
-
for(var t=0;t<4;t++){u.call(this)}}},_doProcessBlock:function(r,e){
|
|
2766
|
-
// Shortcut
|
|
2767
|
-
var a=this._X;
|
|
2768
|
-
// Iterate the system
|
|
2769
|
-
u.call(this);
|
|
2770
|
-
// Generate four keystream words
|
|
2771
|
-
n[0]=a[0]^a[5]>>>16^a[3]<<16;n[1]=a[2]^a[7]>>>16^a[5]<<16;n[2]=a[4]^a[1]>>>16^a[7]<<16;n[3]=a[6]^a[3]>>>16^a[1]<<16;for(var i=0;i<4;i++){
|
|
2772
|
-
// Swap endian
|
|
2773
|
-
n[i]=(n[i]<<8|n[i]>>>24)&16711935|(n[i]<<24|n[i]>>>8)&4278255360;
|
|
2774
|
-
// Encrypt
|
|
2775
|
-
r[e+i]^=n[i]}},blockSize:128/32,ivSize:64/32});function u(){
|
|
2776
|
-
// Shortcuts
|
|
2777
|
-
var r=this._X;var e=this._C;
|
|
2778
|
-
// Save old counter values
|
|
2779
|
-
for(var a=0;a<8;a++){o[a]=e[a]}
|
|
2780
|
-
// Calculate new counter values
|
|
2781
|
-
e[0]=e[0]+1295307597+this._b|0;e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0;e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0;e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0;e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0;e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0;e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0;e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0;this._b=e[7]>>>0<o[7]>>>0?1:0;
|
|
2782
|
-
// Calculate the g-values
|
|
2783
|
-
for(var a=0;a<8;a++){var i=r[a]+e[a];
|
|
2784
|
-
// Construct high and low argument for squaring
|
|
2785
|
-
var t=i&65535;var n=i>>>16;
|
|
2786
|
-
// Calculate high and low result of squaring
|
|
2787
|
-
var v=((t*t>>>17)+t*n>>>15)+n*n;var u=((i&4294901760)*i|0)+((i&65535)*i|0);
|
|
2788
|
-
// High XOR low
|
|
2789
|
-
s[a]=v^u}
|
|
2790
|
-
// Calculate new state values
|
|
2791
|
-
r[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0;r[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0;r[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0;r[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0;r[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0;r[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0;r[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0;r[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}
|
|
2792
|
-
/**
|
|
2793
|
-
* Shortcut functions to the cipher's object interface.
|
|
2794
|
-
*
|
|
2795
|
-
* @example
|
|
2796
|
-
*
|
|
2797
|
-
* var ciphertext = CryptoJS.RabbitLegacy.encrypt(message, key, cfg);
|
|
2798
|
-
* var plaintext = CryptoJS.RabbitLegacy.decrypt(ciphertext, key, cfg);
|
|
2799
|
-
*/e.RabbitLegacy=i._createHelper(v)})();return r.RabbitLegacy}))})(rabbitLegacy$1);return rabbitLegacy$1.exports}var blowfish$1={exports:{}};var blowfish=blowfish$1.exports;var hasRequiredBlowfish;function requireBlowfish(){if(hasRequiredBlowfish)return blowfish$1.exports;hasRequiredBlowfish=1;(function(r,e){(function(e,a,i){{
|
|
2800
|
-
// CommonJS
|
|
2801
|
-
r.exports=a(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())}})(blowfish,(function(r){(function(){
|
|
2802
|
-
// Shortcuts
|
|
2803
|
-
var e=r;var a=e.lib;var i=a.BlockCipher;var t=e.algo;var n=16;
|
|
2804
|
-
//Origin pbox and sbox, derived from PI
|
|
2805
|
-
var o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731];var s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var v={pbox:[],sbox:[]};function u(r,e){var a=e>>24&255;var i=e>>16&255;var t=e>>8&255;var n=e&255;var o=r.sbox[0][a]+r.sbox[1][i];o=o^r.sbox[2][t];o=o+r.sbox[3][n];return o}function f(r,e,a){var i=e;var t=a;var o;for(var s=0;s<n;++s){i=i^r.pbox[s];t=u(r,i)^t;o=i;i=t;t=o}o=i;i=t;t=o;t=t^r.pbox[n];i=i^r.pbox[n+1];return{left:i,right:t}}function c(r,e,a){var i=e;var t=a;var o;for(var s=n+1;s>1;--s){i=i^r.pbox[s];t=u(r,i)^t;o=i;i=t;t=o}o=i;i=t;t=o;t=t^r.pbox[1];i=i^r.pbox[0];return{left:i,right:t}}
|
|
2806
|
-
/**
|
|
2807
|
-
* Initialization ctx's pbox and sbox.
|
|
2808
|
-
*
|
|
2809
|
-
* @param {Object} ctx The object has pbox and sbox.
|
|
2810
|
-
* @param {Array} key An array of 32-bit words.
|
|
2811
|
-
* @param {int} keysize The length of the key.
|
|
2812
|
-
*
|
|
2813
|
-
* @example
|
|
2814
|
-
*
|
|
2815
|
-
* BlowFishInit(BLOWFISH_CTX, key, 128/32);
|
|
2816
|
-
*/function d(r,e,a){for(var i=0;i<4;i++){r.sbox[i]=[];for(var t=0;t<256;t++){r.sbox[i][t]=s[i][t]}}var v=0;for(var u=0;u<n+2;u++){r.pbox[u]=o[u]^e[v];v++;if(v>=a){v=0}}var c=0;var d=0;var h=0;for(var l=0;l<n+2;l+=2){h=f(r,c,d);c=h.left;d=h.right;r.pbox[l]=c;r.pbox[l+1]=d}for(var l=0;l<4;l++){for(var p=0;p<256;p+=2){h=f(r,c,d);c=h.left;d=h.right;r.sbox[l][p]=c;r.sbox[l][p+1]=d}}return true}
|
|
2817
|
-
/**
|
|
2818
|
-
* Blowfish block cipher algorithm.
|
|
2819
|
-
*/var h=t.Blowfish=i.extend({_doReset:function(){
|
|
2820
|
-
// Skip reset of nRounds has been set before and key did not change
|
|
2821
|
-
if(this._keyPriorReset===this._key){return}
|
|
2822
|
-
// Shortcuts
|
|
2823
|
-
var r=this._keyPriorReset=this._key;var e=r.words;var a=r.sigBytes/4;
|
|
2824
|
-
//Initialization pbox and sbox
|
|
2825
|
-
d(v,e,a)},encryptBlock:function(r,e){var a=f(v,r[e],r[e+1]);r[e]=a.left;r[e+1]=a.right},decryptBlock:function(r,e){var a=c(v,r[e],r[e+1]);r[e]=a.left;r[e+1]=a.right},blockSize:64/32,keySize:128/32,ivSize:64/32});
|
|
2826
|
-
/**
|
|
2827
|
-
* Shortcut functions to the cipher's object interface.
|
|
2828
|
-
*
|
|
2829
|
-
* @example
|
|
2830
|
-
*
|
|
2831
|
-
* var ciphertext = CryptoJS.Blowfish.encrypt(message, key, cfg);
|
|
2832
|
-
* var plaintext = CryptoJS.Blowfish.decrypt(ciphertext, key, cfg);
|
|
2833
|
-
*/e.Blowfish=i._createHelper(h)})();return r.Blowfish}))})(blowfish$1);return blowfish$1.exports}var cryptoJs=cryptoJs$1.exports;var hasRequiredCryptoJs;function requireCryptoJs(){if(hasRequiredCryptoJs)return cryptoJs$1.exports;hasRequiredCryptoJs=1;(function(r,e){(function(e,a,i){{
|
|
2834
|
-
// CommonJS
|
|
2835
|
-
r.exports=a(requireCore(),requireX64Core(),requireLibTypedarrays(),requireEncUtf16(),requireEncBase64(),requireEncBase64url(),requireMd5(),requireSha1(),requireSha256(),requireSha224(),requireSha512(),requireSha384(),requireSha3(),requireRipemd160(),requireHmac(),requirePbkdf2(),requireEvpkdf(),requireCipherCore(),requireModeCfb(),requireModeCtr(),requireModeCtrGladman(),requireModeOfb(),requireModeEcb(),requirePadAnsix923(),requirePadIso10126(),requirePadIso97971(),requirePadZeropadding(),requirePadNopadding(),requireFormatHex(),requireAes(),requireTripledes(),requireRc4(),requireRabbit(),requireRabbitLegacy(),requireBlowfish())}})(cryptoJs,(function(r){return r}))})(cryptoJs$1);return cryptoJs$1.exports}var cryptoJsExports=requireCryptoJs();var miBaselineFileDownloadDone='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M5 18h14v2H5v-2zm4.6-2.7L5 10.7l2-1.9l2.6 2.6L17 4l2 2l-9.4 9.3z"/></svg>';var miOutlineFileDownload='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4l-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59L7 11l5 5l5-5z"/></svg>';var alreadyDownloaded$3="Έχετε ήδη κατεβάσει αυτό το αρχείο";var localeEl={alreadyDownloaded:alreadyDownloaded$3};var alreadyDownloaded$2="You have already downloaded this file";var localeEn={alreadyDownloaded:alreadyDownloaded$2};var alreadyDownloaded$1="Ya has descargado este archivo";var localeEs={alreadyDownloaded:alreadyDownloaded$1};var alreadyDownloaded="Hai già scaricato questo file";var localeIt={alreadyDownloaded:alreadyDownloaded};var mdsFileCss=function(){return"@layer reset,vendor,theme,base,components,utilities;@keyframes focus-bounce{0%,75%,to{outline-offset:var(--magma-outline-focus-offset,2px)}50%{outline-offset:var(--magma-outline-blur-offset,6px)}}:host(:not(:is([hydrated],.hydrated))),:is(mds-badge,mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-file-preview-icon-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-file-preview-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-file-preview-icon-background:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))));--mds-file-transition-duration:var(--duration-200,.2s);--private-file-transition-duration:var(--mds-file-transition-duration);--private-icon-download-offset:10%;animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248))));border-radius:var(--magma-radius-xl,var(--radius-squircle-xl,36px));-webkit-box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out;corner-shape:var(--magma-corner-shape,squircle);align-items:stretch;cursor:pointer;display:inline-flex;overflow:hidden;-webkit-transition-duration:var(--private-file-transition-duration);transition-duration:var(--private-file-transition-duration);transition-property:box-shadow,outline,outline-offset;-webkit-transition-timing-function:var(--ease-out);transition-timing-function:var(--ease-out);width:100%}:host:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host(:focus-visible){--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host(:hover){-webkit-box-shadow:var(--shadow-box-md,#0000000f 0 0 0 1px,#00000008 0 1px 1px -.5px,#0000000a 0 2px 2px -1px,#0000000a 0 3px 3px -1.5px,#00000008 0 5px 5px -2.5px,#00000008 0 10px 10px -5px,#00000008 0 24px 24px -8px);box-shadow:var(--shadow-box-md,#0000000f 0 0 0 1px,#00000008 0 1px 1px -.5px,#0000000a 0 2px 2px -1px,#0000000a 0 3px 3px -1.5px,#00000008 0 5px 5px -2.5px,#00000008 0 10px 10px -5px,#00000008 0 24px 24px -8px)}:host(:hover) .download-icon{opacity:1;transform:translateY(0)}:host(:hover) :is(.icon-preview,.image-preview){opacity:0;-webkit-transform:translateY(var(--private-icon-download-offset));transform:translateY(var(--private-icon-download-offset))}.download-icon{inset:0;opacity:0;position:absolute;-webkit-transform:translateY(calc(var(--private-icon-download-offset)*-1));transform:translateY(calc(var(--private-icon-download-offset)*-1));-webkit-transition-duration:inherit;transition-duration:inherit;transition-property:opacity,transform;-webkit-transition-timing-function:inherit;transition-timing-function:inherit}.download-icon,.preview{align-items:center;display:flex;justify-content:center}.preview{background-color:var(--mds-file-preview-icon-background);color:var(--mds-file-preview-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));fill:var(--mds-file-preview-icon-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));flex-shrink:0;position:relative;-webkit-transition-duration:inherit;transition-duration:inherit;transition-property:color,background-color,fill;-webkit-transition-timing-function:var(--ease-in-out);transition-timing-function:var(--ease-in-out);width:calc(var(--spacing,.0025rem)*1400)}.image-preview{background-position:50%;background-repeat:no-repeat;background-size:contain;inset:calc(var(--spacing,.0025rem)*300);position:absolute}.icon-preview,.image-preview{-webkit-transition-duration:inherit;transition-duration:inherit;transition-property:opacity,transform;-webkit-transition-timing-function:inherit;transition-timing-function:inherit}.info{flex-direction:column;flex-grow:1;gap:calc(var(--spacing,.0025rem)*100);height:calc(var(--spacing,.0025rem)*1400);justify-content:center;padding:0 calc(var(--spacing,.0025rem)*300)}.filename,.info{display:flex;min-width:0}.name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.extension{flex-shrink:0}.detail{align-items:baseline;display:flex;gap:calc(var(--spacing,.0025rem)*200);min-width:0}.suffix{flex-shrink:0;pointer-events:none}.description{color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.indicator{align-items:center;display:flex;justify-content:center;padding-right:calc(var(--spacing,.0025rem)*400)}.downloaded{display:flex;fill:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)))}.downloaded svg{aspect-ratio:var(--aspect-square,1/1);height:100%;width:100%}:host([format=archive]),:host([format=executable]){--mds-file-preview-icon-color:rgb(var(--label-amaranth-04,213 12 47));--mds-file-preview-color:rgb(var(--label-amaranth-04,213 12 47));--mds-file-preview-icon-background:rgb(var(--label-amaranth-10,254 232 236))}:host([format=attachment]){--mds-file-preview-icon-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-file-preview-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-file-preview-icon-background:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))))}:host([format=audio]),:host([format=video]){--mds-file-preview-icon-color:rgb(var(--label-violet-04,126 73 245));--mds-file-preview-color:rgb(var(--label-violet-04,126 73 245));--mds-file-preview-icon-background:rgb(var(--label-violet-10,240 234 254))}:host([format=code]),:host([format=data]),:host([format=markup]){--mds-file-preview-icon-color:rgb(var(--label-yellow-04,141 107 5));--mds-file-preview-color:rgb(var(--label-yellow-04,141 107 5));--mds-file-preview-icon-background:rgb(var(--label-yellow-10,253 236 186))}:host([format=certificate]),:host([format=document]){--mds-file-preview-icon-color:rgb(var(--label-orange-04,185 78 5));--mds-file-preview-color:rgb(var(--label-orange-04,185 78 5));--mds-file-preview-icon-background:rgb(var(--label-orange-10,254 233 219))}:host([format=email]),:host([format=text]){--mds-file-preview-icon-color:rgb(var(--label-blue-04,63 94 248));--mds-file-preview-color:rgb(var(--label-blue-04,63 94 248));--mds-file-preview-icon-background:rgb(var(--label-blue-10,233 236 254))}:host([format=image]){--mds-file-preview-icon-color:rgb(var(--label-green-04,22 128 61));--mds-file-preview-color:rgb(var(--label-green-04,22 128 61));--mds-file-preview-icon-background:rgb(var(--label-green-10,206 247 221))}:host([format=slide]){--mds-file-preview-icon-color:rgb(var(--label-orchid-04,206 21 113));--mds-file-preview-color:rgb(var(--label-orchid-04,206 21 113));--mds-file-preview-icon-background:rgb(var(--label-orchid-10,253 231 242))}:host([format=spreadsheet]){--mds-file-preview-icon-color:rgb(var(--label-lime-04,81 124 13));--mds-file-preview-color:rgb(var(--label-lime-04,81 124 13));--mds-file-preview-icon-background:rgb(var(--label-lime-10,219 247 178))}:host([format=vector]){--mds-file-preview-icon-color:rgb(var(--label-aqua-04,4 122 143));--mds-file-preview-color:rgb(var(--label-aqua-04,4 122 143));--mds-file-preview-icon-background:rgb(var(--label-aqua-10,199 245 253))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-file-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){-webkit-box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host(:hover){-webkit-box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-contrast=more]){-webkit-box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([pref-contrast=more]):host(:hover){-webkit-box-shadow:var(--shadow-ring-strong-4,0 0 0 4px rgb(var(--tone-neutral-01,5 5 5)/.6));box-shadow:var(--shadow-ring-strong-4,0 0 0 4px rgb(var(--tone-neutral-01,5 5 5)/.6))}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-file-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){-webkit-box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host(:hover){-webkit-box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){-webkit-box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host(:hover){-webkit-box-shadow:var(--shadow-ring-strong-4,0 0 0 4px rgb(var(--tone-neutral-01,5 5 5)/.6));box-shadow:var(--shadow-ring-strong-4,0 0 0 4px rgb(var(--tone-neutral-01,5 5 5)/.6))}}"};var MdsFile=/** @class */function(){function r(r){var e=this;registerInstance(this,r);this.downloadedEvent=createEvent(this,"mdsFileDownload",7);this.t=new Locale({el:Object.assign(Object.assign({},localeEl),fileDescriptionLocaleEl),en:Object.assign(Object.assign({},localeEn),fileDescriptionLocaleEn),es:Object.assign(Object.assign({},localeEs),fileDescriptionLocaleEs),it:Object.assign(Object.assign({},localeIt),fileDescriptionLocaleIt)});this.wasDownloaded=false;
|
|
3
|
+
* FNV-1a hash (32 bits) of a string, as eight lowercase hex digits: a small, synchronous and
|
|
4
|
+
* environment-free way to turn a free text into a short, stable identifier, such as a storage
|
|
5
|
+
* key. Not a cryptographic digest: nothing keyed on it is a security measure.
|
|
6
|
+
*
|
|
7
|
+
* The UTF-16 code units feed the hash, so the standard FNV-1a vectors hold for ASCII text.
|
|
8
|
+
*/var fnv1a=function(e){var a=2166136261;for(var t=0;t<e.length;t+=1){a^=e.charCodeAt(t);a=Math.imul(a,16777619)}return(a>>>0).toString(16).padStart(8,"0")};var miBaselineFileDownloadDone='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M5 18h14v2H5v-2zm4.6-2.7L5 10.7l2-1.9l2.6 2.6L17 4l2 2l-9.4 9.3z"/></svg>';var miOutlineFileDownload='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4l-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59L7 11l5 5l5-5z"/></svg>';var alreadyDownloaded$3="Έχετε ήδη κατεβάσει αυτό το αρχείο";var localeEl={alreadyDownloaded:alreadyDownloaded$3};var alreadyDownloaded$2="You have already downloaded this file";var localeEn={alreadyDownloaded:alreadyDownloaded$2};var alreadyDownloaded$1="Ya has descargado este archivo";var localeEs={alreadyDownloaded:alreadyDownloaded$1};var alreadyDownloaded="Hai già scaricato questo file";var localeIt={alreadyDownloaded:alreadyDownloaded};var mdsFileCss=function(){return"@layer reset,vendor,theme,base,components,utilities;@keyframes focus-bounce{0%,75%,to{outline-offset:var(--magma-outline-focus-offset,2px)}50%{outline-offset:var(--magma-outline-blur-offset,6px)}}:host(:not(:is([hydrated],.hydrated))),:is(mds-badge,mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-file-preview-icon-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-file-preview-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-file-preview-icon-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-file-transition-duration:var(--duration-200,.2s);--private-file-transition-duration:var(--mds-file-transition-duration);--private-icon-download-offset:10%;animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248)));border-radius:var(--magma-radius-xl,var(--radius-squircle-xl,36px));box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out;corner-shape:var(--magma-corner-shape,squircle);align-items:stretch;cursor:pointer;display:inline-flex;overflow:hidden;transition-duration:var(--private-file-transition-duration);transition-property:box-shadow,outline,outline-offset;transition-timing-function:var(--ease-out);width:100%}:host:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host(:focus-visible){--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host(:hover){box-shadow:var(--shadow-box-md,#0000000f 0 0 0 1px,#00000008 0 1px 1px -.5px,#0000000a 0 2px 2px -1px,#0000000a 0 3px 3px -1.5px,#00000008 0 5px 5px -2.5px,#00000008 0 10px 10px -5px,#00000008 0 24px 24px -8px)}:host(:hover) .download-icon{opacity:1;transform:translateY(0)}:host(:hover) :is(.icon-preview,.image-preview){opacity:0;transform:translateY(var(--private-icon-download-offset))}.download-icon{inset:0;opacity:0;position:absolute;transform:translateY(calc(var(--private-icon-download-offset)*-1));transition-duration:inherit;transition-property:opacity,transform;transition-timing-function:inherit}.download-icon,.preview{align-items:center;display:flex;justify-content:center}.preview{background-color:var(--mds-file-preview-icon-background);color:var(--mds-file-preview-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));fill:var(--mds-file-preview-icon-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));flex-shrink:0;position:relative;transition-duration:inherit;transition-property:color,background-color,fill;transition-timing-function:var(--ease-in-out);width:calc(var(--spacing,.0025rem)*1400)}.image-preview{background-position:50%;background-repeat:no-repeat;background-size:contain;inset:calc(var(--spacing,.0025rem)*300);position:absolute}.icon-preview,.image-preview{transition-duration:inherit;transition-property:opacity,transform;transition-timing-function:inherit}.info{flex-direction:column;flex-grow:1;gap:calc(var(--spacing,.0025rem)*100);height:calc(var(--spacing,.0025rem)*1400);justify-content:center;padding:0 calc(var(--spacing,.0025rem)*300)}.filename,.info{display:flex;min-width:0}.name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.extension{flex-shrink:0}.detail{align-items:baseline;display:flex;gap:calc(var(--spacing,.0025rem)*200);min-width:0}.suffix{flex-shrink:0;pointer-events:none}.description{color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.indicator{align-items:center;display:flex;justify-content:center;padding-right:calc(var(--spacing,.0025rem)*400)}.downloaded{display:flex;fill:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)))}.downloaded svg{aspect-ratio:var(--aspect-square,1/1);height:100%;width:100%}:host([format=archive]),:host([format=executable]){--mds-file-preview-icon-color:rgb(var(--label-amaranth-04,213 12 47));--mds-file-preview-color:rgb(var(--label-amaranth-04,213 12 47));--mds-file-preview-icon-background:rgb(var(--label-amaranth-10,254 232 236))}:host([format=attachment]){--mds-file-preview-icon-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-file-preview-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-file-preview-icon-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))}:host([format=audio]),:host([format=video]){--mds-file-preview-icon-color:rgb(var(--label-violet-04,126 73 245));--mds-file-preview-color:rgb(var(--label-violet-04,126 73 245));--mds-file-preview-icon-background:rgb(var(--label-violet-10,240 234 254))}:host([format=code]),:host([format=data]),:host([format=markup]){--mds-file-preview-icon-color:rgb(var(--label-yellow-04,141 107 5));--mds-file-preview-color:rgb(var(--label-yellow-04,141 107 5));--mds-file-preview-icon-background:rgb(var(--label-yellow-10,253 236 186))}:host([format=certificate]),:host([format=document]){--mds-file-preview-icon-color:rgb(var(--label-orange-04,185 78 5));--mds-file-preview-color:rgb(var(--label-orange-04,185 78 5));--mds-file-preview-icon-background:rgb(var(--label-orange-10,254 233 219))}:host([format=email]),:host([format=text]){--mds-file-preview-icon-color:rgb(var(--label-blue-04,63 94 248));--mds-file-preview-color:rgb(var(--label-blue-04,63 94 248));--mds-file-preview-icon-background:rgb(var(--label-blue-10,233 236 254))}:host([format=image]){--mds-file-preview-icon-color:rgb(var(--label-green-04,22 128 61));--mds-file-preview-color:rgb(var(--label-green-04,22 128 61));--mds-file-preview-icon-background:rgb(var(--label-green-10,206 247 221))}:host([format=slide]){--mds-file-preview-icon-color:rgb(var(--label-orchid-04,206 21 113));--mds-file-preview-color:rgb(var(--label-orchid-04,206 21 113));--mds-file-preview-icon-background:rgb(var(--label-orchid-10,253 231 242))}:host([format=spreadsheet]){--mds-file-preview-icon-color:rgb(var(--label-lime-04,81 124 13));--mds-file-preview-color:rgb(var(--label-lime-04,81 124 13));--mds-file-preview-icon-background:rgb(var(--label-lime-10,219 247 178))}:host([format=vector]){--mds-file-preview-icon-color:rgb(var(--label-aqua-04,4 122 143));--mds-file-preview-color:rgb(var(--label-aqua-04,4 122 143));--mds-file-preview-icon-background:rgb(var(--label-aqua-10,199 245 253))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-file-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host(:hover){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-contrast=more]){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host([pref-contrast=more]):host(:hover){box-shadow:var(--shadow-ring-strong-4,0 0 0 4px rgb(var(--tone-neutral-01,5 5 5)/.6))}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-file-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host(:hover){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host(:hover){box-shadow:var(--shadow-ring-strong-4,0 0 0 4px rgb(var(--tone-neutral-01,5 5 5)/.6))}}"};var MdsFile=/** @class */function(){function e(e){var a=this;registerInstance(this,e);this.downloadedEvent=createEvent(this,"mdsFileDownload",7);this.t=new Locale({el:Object.assign(Object.assign({},localeEl),fileDescriptionLocaleEl),en:Object.assign(Object.assign({},localeEn),fileDescriptionLocaleEn),es:Object.assign(Object.assign({},localeEs),fileDescriptionLocaleEs),it:Object.assign(Object.assign({},localeIt),fileDescriptionLocaleIt)});this.wasDownloaded=false;
|
|
2836
9
|
/**
|
|
2837
10
|
* Hides the download icon
|
|
2838
|
-
*/this.hideDownloadedIcon=false;this.handleOnClick=function(){var
|
|
11
|
+
*/this.hideDownloadedIcon=false;this.handleOnClick=function(){var e;var t=getExtensionInfos(a.filename,a.suffix),r=t.format,o=t.description;a.downloadedEvent.emit({description:(e=a.description)!==null&&e!==void 0?e:o,extension:getSuffix(a.filename,a.suffix),filename:a.filename,target:a.host,type:r});localStorage.setItem(a.downloadedStorageKey(),"downloaded");a.checkWasDownloaded()};
|
|
12
|
+
/**
|
|
13
|
+
* The localStorage key that records the download of the filename: `mdsFile/` plus a short hash
|
|
14
|
+
* of the name, so the key stays short and uniform whatever the name holds. A plain hash, not a
|
|
15
|
+
* digest: the key is no security measure.
|
|
16
|
+
*/this.downloadedStorageKey=function(){return"mdsFile/".concat(fnv1a(a.filename))};this.checkWasDownloaded=function(){
|
|
17
|
+
// the hydrate app has a window but no storage of a user: the indicator is a client matter
|
|
18
|
+
if(!Build.isBrowser)return;a.wasDownloaded=localStorage.getItem(a.downloadedStorageKey())==="downloaded"};this.getDefaultDescription=function(){return getExtensionInfos(a.filename,a.suffix).description}}e.prototype.componentWillLoad=function(){this.format=getExtensionInfos(this.filename,this.suffix).format;this.checkWasDownloaded()};e.prototype.handleFilename=function(e){this.format=getExtensionInfos(e,this.suffix).format;this.checkWasDownloaded()};e.prototype.render=function(){var e,a;return h(Host,{key:"10356375d939bb41bd367b276f8b05fead9f26ca",tabindex:"0",onClick:this.handleOnClick,"pref-animation":preferenceStore.state.animation,"pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("div",{key:"27c520e9a7296ae2fa13107526d626f707268c71",class:"preview"},this.preview!==undefined?h("div",{class:"image-preview",style:{backgroundImage:"url(".concat(this.preview,")")}}):h("mds-icon",{class:"icon-preview",name:getFormatsVariant(this.filename,this.suffix).icon}),h("div",{key:"9c5f32f869f21bc2f2e623917947336cda29003e",class:"download-icon"},h("mds-icon",{key:"4597b7f21df8606a7262f5e2bd49560334f4c5ef",name:miOutlineFileDownload}))),h("div",{key:"75e5c58830dce04f123990b592c4a9a9d210f2d8",class:"info"},h("div",{key:"72c138336a4581f0aa330086fe647ba5263c40f2",class:"filename",title:this.filename},h("mds-text",{key:"5f470688d83f35dafec66b4885f7889bac01fa4d",truncate:"word",typography:"h6",class:"name"},getName(this.filename)),this.suffix===undefined&&getSuffix(this.filename,this.suffix)&&h("mds-text",{key:"d0687542ac4096b65d6f246a0be67fe5a258244d",typography:"h6",class:"extension"},".",getSuffix(this.filename,this.suffix))),h("div",{key:"4798a1b39b5367fefae4d1dae05ffcf8a960e31b",class:"detail"},getSuffix(this.filename,this.suffix)&&h("mds-badge",{key:"fc485d00263b9bb68e7d7aba5cb93f2cd15533f3",variant:getFormatsVariant(this.filename,this.suffix).variant,tone:"weak",class:"suffix"},getSuffix(this.filename,this.suffix)),h("mds-text",{key:"27f223b991e9f8adcbbc69a8636d0713457be822",truncate:"word",typography:"caption",class:"description",title:(e=this.description)!==null&&e!==void 0?e:this.t.get(this.getDefaultDescription())},(a=this.description)!==null&&a!==void 0?a:this.t.get(this.getDefaultDescription())))),this.wasDownloaded&&!this.hideDownloadedIcon&&h("div",{key:"808a132dd9e767caa52a4672b8f711809a18ad4b",class:"indicator"},h("i",{key:"eada8ef89da65b43c87c33a096d29bface90d15b",class:"downloaded",innerHTML:miBaselineFileDownloadDone,title:this.t.get("alreadyDownloaded")})))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{filename:[{handleFilename:0}]}},enumerable:false,configurable:true});return e}();MdsFile.style=mdsFileCss();export{MdsFile as mds_file};
|