@oiz/stzh-components 2.11.0-beta1 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-5b6fc14f.js → app-globals-909813e1.js} +2 -2
- package/dist/cjs/{app-globals-5b6fc14f.js.map → app-globals-909813e1.js.map} +1 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-actions.cjs.entry.js +1 -1
- package/dist/cjs/stzh-actionset_4.cjs.entry.js +3 -3
- package/dist/cjs/stzh-actionset_4.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-appnav.cjs.entry.js +1 -1
- package/dist/cjs/stzh-audio.cjs.entry.js +1 -1
- package/dist/cjs/stzh-badge_3.cjs.entry.js +3 -3
- package/dist/cjs/stzh-badge_3.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-carousel.cjs.entry.js +4 -3
- package/dist/cjs/stzh-carousel.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-cell.cjs.entry.js +4 -4
- package/dist/cjs/stzh-cell.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +1 -1
- package/dist/cjs/stzh-chip_2.cjs.entry.js +8 -1
- package/dist/cjs/stzh-chip_2.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-contact.cjs.entry.js +7 -4
- package/dist/cjs/stzh-contact.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
- package/dist/cjs/stzh-cspace.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js +1 -1
- package/dist/cjs/stzh-details.cjs.entry.js +1 -1
- package/dist/cjs/stzh-dialog.cjs.entry.js +1 -1
- package/dist/cjs/stzh-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/{stzh-ratio.cjs.entry.js → stzh-figure_2.cjs.entry.js} +33 -1
- package/dist/cjs/stzh-figure_2.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-footer.cjs.entry.js +22 -6
- package/dist/cjs/stzh-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-gallery.cjs.entry.js +9733 -0
- package/dist/cjs/stzh-gallery.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-ghettobox.cjs.entry.js +1 -1
- package/dist/cjs/stzh-header.cjs.entry.js +3 -6
- package/dist/cjs/stzh-header.cjs.entry.js.map +1 -1
- package/dist/cjs/{stzh-hspace.cjs.entry.js → stzh-hspace_2.cjs.entry.js} +41 -6
- package/dist/cjs/stzh-hspace_2.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-imagecomparison.cjs.entry.js +0 -2
- package/dist/cjs/stzh-imagecomparison.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-input.cjs.entry.js +1 -1
- package/dist/cjs/stzh-link.cjs.entry.js +1 -1
- package/dist/cjs/stzh-logo.cjs.entry.js +671 -0
- package/dist/cjs/stzh-logo.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-menu_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagebottom.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagetitle.cjs.entry.js +1 -1
- package/dist/cjs/stzh-panorama.cjs.entry.js +3 -2
- package/dist/cjs/stzh-panorama.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-popover.cjs.entry.js +1 -1
- package/dist/cjs/stzh-print.cjs.entry.js +1 -1
- package/dist/cjs/stzh-progressbar-item.cjs.entry.js +2 -1
- package/dist/cjs/stzh-progressbar-item.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -1
- package/dist/cjs/stzh-row.cjs.entry.js +4 -4
- package/dist/cjs/stzh-row.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-scrollup.cjs.entry.js +1 -1
- package/dist/cjs/stzh-share.cjs.entry.js +1 -1
- package/dist/cjs/stzh-space.cjs.entry.js +5 -5
- package/dist/cjs/stzh-space.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-sticky.cjs.entry.js +166 -15
- package/dist/cjs/stzh-sticky.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-table.cjs.entry.js +1 -1
- package/dist/cjs/stzh-text.cjs.entry.js +1 -1
- package/dist/cjs/stzh-text.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-textandimage.cjs.entry.js +1 -1
- package/dist/cjs/stzh-timeline-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-toast.cjs.entry.js +1 -1
- package/dist/cjs/stzh-toggle.cjs.entry.js +1 -1
- package/dist/cjs/stzh-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/stzh-upload.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vspace.cjs.entry.js +5 -5
- package/dist/cjs/stzh-vspace.cjs.entry.js.map +1 -1
- package/dist/cjs/{utils-77bc0ea1.js → utils-01c0bbdd.js} +25 -1
- package/dist/cjs/utils-01c0bbdd.js.map +1 -0
- package/dist/collection/assets/i18n/de.json +19 -10
- package/dist/collection/assets/i18n/en.json +19 -10
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/stzh-button/stzh-button.css +4 -0
- package/dist/collection/components/stzh-button/stzh-button.js +3 -3
- package/dist/collection/components/stzh-button/stzh-button.js.map +1 -1
- package/dist/collection/components/stzh-card/stzh-card.css +1 -0
- package/dist/collection/components/stzh-card-list/stzh-card-list.css +27 -38
- package/dist/collection/components/stzh-carousel/stzh-carousel.css +3 -0
- package/dist/collection/components/stzh-carousel/stzh-carousel.js +2 -1
- package/dist/collection/components/stzh-carousel/stzh-carousel.js.map +1 -1
- package/dist/collection/components/stzh-cell/stzh-cell.js +9 -13
- package/dist/collection/components/stzh-cell/stzh-cell.js.map +1 -1
- package/dist/collection/components/stzh-clamp/stzh-clamp.js +9 -2
- package/dist/collection/components/stzh-clamp/stzh-clamp.js.map +1 -1
- package/dist/collection/components/stzh-contact/stzh-contact.js +25 -3
- package/dist/collection/components/stzh-contact/stzh-contact.js.map +1 -1
- package/dist/collection/components/stzh-cspace/stzh-cspace.css +5 -0
- package/dist/collection/components/stzh-fieldset/stzh-fieldset.js +1 -1
- package/dist/collection/components/stzh-figure/stzh-figure.css +5 -0
- package/dist/collection/components/stzh-footer/stzh-footer.css +1 -7
- package/dist/collection/components/stzh-footer/stzh-footer.js +21 -5
- package/dist/collection/components/stzh-footer/stzh-footer.js.map +1 -1
- package/dist/collection/components/stzh-footer/stzh-footer.stories.js +2 -2
- package/dist/collection/components/stzh-gallery/assets/angle-left.svg +3 -0
- package/dist/collection/components/stzh-gallery/assets/angle-right.svg +3 -0
- package/dist/collection/components/stzh-gallery/assets/close.svg +3 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.css +839 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.e2e.js +22 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.e2e.js.map +1 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.js +410 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.js.map +1 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.localization.js +2 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.localization.js.map +1 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.stories.js +163 -0
- package/dist/collection/components/stzh-header/stzh-header.css +19 -1
- package/dist/collection/components/stzh-header/stzh-header.js +1 -4
- package/dist/collection/components/stzh-header/stzh-header.js.map +1 -1
- package/dist/collection/components/stzh-header/stzh-header.stories.js +5 -3
- package/dist/collection/components/stzh-heading/stzh-heading.js +1 -1
- package/dist/collection/components/stzh-hspace/stzh-hspace.js +13 -18
- package/dist/collection/components/stzh-hspace/stzh-hspace.js.map +1 -1
- package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.js +0 -38
- package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.js.map +1 -1
- package/dist/collection/components/stzh-logo/assets/aoz.svg +15 -0
- package/dist/collection/components/stzh-logo/assets/pkzh.svg +207 -0
- package/dist/collection/components/stzh-logo/assets/stzh-default.svg +166 -0
- package/dist/collection/components/stzh-logo/assets/uvz.svg +85 -0
- package/dist/collection/components/stzh-logo/assets/vbz.svg +147 -0
- package/dist/collection/components/stzh-logo/stzh-logo.css +134 -0
- package/dist/collection/components/stzh-logo/stzh-logo.e2e.js +19 -0
- package/dist/collection/components/stzh-logo/stzh-logo.e2e.js.map +1 -0
- package/dist/collection/components/stzh-logo/stzh-logo.js +72 -0
- package/dist/collection/components/stzh-logo/stzh-logo.js.map +1 -0
- package/dist/collection/components/stzh-logo/stzh-logo.stories.js +51 -0
- package/dist/collection/components/stzh-panorama/stzh-panorama.js +21 -2
- package/dist/collection/components/stzh-panorama/stzh-panorama.js.map +1 -1
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +3 -2
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js.map +1 -1
- package/dist/collection/components/stzh-row/stzh-row.js +9 -13
- package/dist/collection/components/stzh-row/stzh-row.js.map +1 -1
- package/dist/collection/components/stzh-show/stzh-show.js +5 -5
- package/dist/collection/components/stzh-show/stzh-show.js.map +1 -1
- package/dist/collection/components/stzh-space/stzh-space.js +13 -18
- package/dist/collection/components/stzh-space/stzh-space.js.map +1 -1
- package/dist/collection/components/stzh-sticky/stzh-sticky.css +28 -17
- package/dist/collection/components/stzh-sticky/stzh-sticky.e2e.js +1 -0
- package/dist/collection/components/stzh-sticky/stzh-sticky.e2e.js.map +1 -1
- package/dist/collection/components/stzh-sticky/stzh-sticky.js +186 -14
- package/dist/collection/components/stzh-sticky/stzh-sticky.js.map +1 -1
- package/dist/collection/components/stzh-sticky/stzh-sticky.stories.js +88 -44
- package/dist/collection/components/stzh-text/stzh-text.css +19 -0
- package/dist/collection/components/stzh-text/stzh-text.js +1 -1
- package/dist/collection/components/stzh-vspace/stzh-vspace.js +13 -18
- package/dist/collection/components/stzh-vspace/stzh-vspace.js.map +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/patterns/media/media.e2e.js +3 -1
- package/dist/collection/patterns/media/media.e2e.js.map +1 -1
- package/dist/collection/patterns/subpages/subpages.e2e.js +1 -0
- package/dist/collection/patterns/subpages/subpages.e2e.js.map +1 -1
- package/dist/collection/utils/utils.js +22 -0
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js.map +1 -1
- package/dist/components/stzh-button2.js +2 -2
- package/dist/components/stzh-button2.js.map +1 -1
- package/dist/components/stzh-card-list2.js +1 -1
- package/dist/components/stzh-card-list2.js.map +1 -1
- package/dist/components/stzh-card2.js +1 -1
- package/dist/components/stzh-card2.js.map +1 -1
- package/dist/components/stzh-carousel2.js +3 -2
- package/dist/components/stzh-carousel2.js.map +1 -1
- package/dist/components/stzh-cell.js +9 -9
- package/dist/components/stzh-cell.js.map +1 -1
- package/dist/components/stzh-clamp2.js +8 -1
- package/dist/components/stzh-clamp2.js.map +1 -1
- package/dist/components/stzh-contact.js +7 -3
- package/dist/components/stzh-contact.js.map +1 -1
- package/dist/components/stzh-cspace.js +1 -1
- package/dist/components/stzh-cspace.js.map +1 -1
- package/dist/components/stzh-figure2.js +1 -1
- package/dist/components/stzh-figure2.js.map +1 -1
- package/dist/components/stzh-footer.js +21 -5
- package/dist/components/stzh-footer.js.map +1 -1
- package/dist/components/stzh-gallery.d.ts +11 -0
- package/dist/components/stzh-gallery.js +9808 -0
- package/dist/components/stzh-gallery.js.map +1 -0
- package/dist/components/stzh-header.js +2 -5
- package/dist/components/stzh-header.js.map +1 -1
- package/dist/components/stzh-hspace.js +1 -57
- package/dist/components/stzh-hspace.js.map +1 -1
- package/dist/{esm/stzh-hspace.entry.js → components/stzh-hspace2.js} +41 -13
- package/dist/components/stzh-hspace2.js.map +1 -0
- package/dist/components/stzh-imagecomparison.js +0 -4
- package/dist/components/stzh-imagecomparison.js.map +1 -1
- package/dist/components/stzh-logo.d.ts +11 -0
- package/dist/components/stzh-logo.js +687 -0
- package/dist/components/stzh-logo.js.map +1 -0
- package/dist/components/stzh-panorama.js +4 -2
- package/dist/components/stzh-panorama.js.map +1 -1
- package/dist/components/stzh-progressbar-item2.js +2 -1
- package/dist/components/stzh-progressbar-item2.js.map +1 -1
- package/dist/components/stzh-row.js +9 -9
- package/dist/components/stzh-row.js.map +1 -1
- package/dist/components/stzh-show.js +1 -59
- package/dist/components/stzh-show.js.map +1 -1
- package/dist/{esm/stzh-show.entry.js → components/stzh-show2.js} +34 -10
- package/dist/components/stzh-show2.js.map +1 -0
- package/dist/components/stzh-space.js +13 -13
- package/dist/components/stzh-space.js.map +1 -1
- package/dist/components/stzh-sticky.js +171 -17
- package/dist/components/stzh-sticky.js.map +1 -1
- package/dist/components/stzh-text2.js +1 -1
- package/dist/components/stzh-text2.js.map +1 -1
- package/dist/components/stzh-vbz-majorticker.js +1 -1
- package/dist/components/stzh-vspace.js +13 -13
- package/dist/components/stzh-vspace.js.map +1 -1
- package/dist/components/utils.js +23 -1
- package/dist/components/utils.js.map +1 -1
- package/dist/esm/{app-globals-2df573fd.js → app-globals-8bdc0f78.js} +2 -2
- package/dist/esm/{app-globals-2df573fd.js.map → app-globals-8bdc0f78.js.map} +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/stzh-actions.entry.js +1 -1
- package/dist/esm/stzh-actionset_4.entry.js +3 -3
- package/dist/esm/stzh-actionset_4.entry.js.map +1 -1
- package/dist/esm/stzh-appnav.entry.js +1 -1
- package/dist/esm/stzh-audio.entry.js +1 -1
- package/dist/esm/stzh-badge_3.entry.js +3 -3
- package/dist/esm/stzh-badge_3.entry.js.map +1 -1
- package/dist/esm/stzh-carousel.entry.js +4 -3
- package/dist/esm/stzh-carousel.entry.js.map +1 -1
- package/dist/esm/stzh-cell.entry.js +4 -4
- package/dist/esm/stzh-cell.entry.js.map +1 -1
- package/dist/esm/stzh-checkbox.entry.js +1 -1
- package/dist/esm/stzh-checkboxgroup.entry.js +1 -1
- package/dist/esm/stzh-chip_2.entry.js +8 -1
- package/dist/esm/stzh-chip_2.entry.js.map +1 -1
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm/stzh-contact.entry.js +7 -4
- package/dist/esm/stzh-contact.entry.js.map +1 -1
- package/dist/esm/stzh-cspace.entry.js +1 -1
- package/dist/esm/stzh-cspace.entry.js.map +1 -1
- package/dist/esm/stzh-datepicker_3.entry.js +1 -1
- package/dist/esm/stzh-details.entry.js +1 -1
- package/dist/esm/stzh-dialog.entry.js +1 -1
- package/dist/esm/stzh-dropdown.entry.js +1 -1
- package/dist/esm/{stzh-ratio.entry.js → stzh-figure_2.entry.js} +33 -2
- package/dist/esm/stzh-figure_2.entry.js.map +1 -0
- package/dist/esm/stzh-footer.entry.js +22 -6
- package/dist/esm/stzh-footer.entry.js.map +1 -1
- package/dist/esm/stzh-gallery.entry.js +9729 -0
- package/dist/esm/stzh-gallery.entry.js.map +1 -0
- package/dist/esm/stzh-ghettobox.entry.js +1 -1
- package/dist/esm/stzh-header.entry.js +3 -6
- package/dist/esm/stzh-header.entry.js.map +1 -1
- package/dist/esm/stzh-hspace_2.entry.js +67 -0
- package/dist/esm/stzh-hspace_2.entry.js.map +1 -0
- package/dist/esm/stzh-imagecomparison.entry.js +0 -2
- package/dist/esm/stzh-imagecomparison.entry.js.map +1 -1
- package/dist/esm/stzh-input.entry.js +1 -1
- package/dist/esm/stzh-link.entry.js +1 -1
- package/dist/esm/stzh-logo.entry.js +667 -0
- package/dist/esm/stzh-logo.entry.js.map +1 -0
- package/dist/esm/stzh-menu_2.entry.js +1 -1
- package/dist/esm/stzh-pagebottom.entry.js +1 -1
- package/dist/esm/stzh-pagetitle-hero.entry.js +1 -1
- package/dist/esm/stzh-pagetitle.entry.js +1 -1
- package/dist/esm/stzh-panorama.entry.js +3 -2
- package/dist/esm/stzh-panorama.entry.js.map +1 -1
- package/dist/esm/stzh-popover.entry.js +1 -1
- package/dist/esm/stzh-print.entry.js +1 -1
- package/dist/esm/stzh-progressbar-item.entry.js +2 -1
- package/dist/esm/stzh-progressbar-item.entry.js.map +1 -1
- package/dist/esm/stzh-readspeaker.entry.js +1 -1
- package/dist/esm/stzh-row.entry.js +4 -4
- package/dist/esm/stzh-row.entry.js.map +1 -1
- package/dist/esm/stzh-scrollup.entry.js +1 -1
- package/dist/esm/stzh-share.entry.js +1 -1
- package/dist/esm/stzh-space.entry.js +5 -5
- package/dist/esm/stzh-space.entry.js.map +1 -1
- package/dist/esm/stzh-sticky.entry.js +166 -15
- package/dist/esm/stzh-sticky.entry.js.map +1 -1
- package/dist/esm/stzh-table.entry.js +1 -1
- package/dist/esm/stzh-text.entry.js +1 -1
- package/dist/esm/stzh-text.entry.js.map +1 -1
- package/dist/esm/stzh-textandimage.entry.js +1 -1
- package/dist/esm/stzh-timeline-item.entry.js +1 -1
- package/dist/esm/stzh-toast.entry.js +1 -1
- package/dist/esm/stzh-toggle.entry.js +1 -1
- package/dist/esm/stzh-tooltip.entry.js +1 -1
- package/dist/esm/stzh-upload.entry.js +1 -1
- package/dist/esm/stzh-vspace.entry.js +5 -5
- package/dist/esm/stzh-vspace.entry.js.map +1 -1
- package/dist/esm/{utils-107fad0f.js → utils-8bb4c3c6.js} +24 -2
- package/dist/esm/utils-8bb4c3c6.js.map +1 -0
- package/dist/esm-es5/{app-globals-2df573fd.js → app-globals-8bdc0f78.js} +2 -2
- package/dist/esm-es5/{app-globals-2df573fd.js.map → app-globals-8bdc0f78.js.map} +1 -1
- package/dist/esm-es5/index.js.map +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/stzh-actions.entry.js +1 -1
- package/dist/esm-es5/stzh-actionset_4.entry.js +2 -2
- package/dist/esm-es5/stzh-actionset_4.entry.js.map +1 -1
- package/dist/esm-es5/stzh-appnav.entry.js +1 -1
- package/dist/esm-es5/stzh-audio.entry.js +1 -1
- package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
- package/dist/esm-es5/stzh-badge_3.entry.js.map +1 -1
- package/dist/esm-es5/stzh-carousel.entry.js +1 -1
- package/dist/esm-es5/stzh-carousel.entry.js.map +1 -1
- package/dist/esm-es5/stzh-cell.entry.js +1 -1
- package/dist/esm-es5/stzh-cell.entry.js.map +1 -1
- package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
- package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
- package/dist/esm-es5/stzh-chip_2.entry.js +1 -1
- package/dist/esm-es5/stzh-chip_2.entry.js.map +1 -1
- package/dist/esm-es5/stzh-components.js +1 -1
- package/dist/esm-es5/stzh-components.js.map +1 -1
- package/dist/esm-es5/stzh-contact.entry.js +1 -1
- package/dist/esm-es5/stzh-contact.entry.js.map +1 -1
- package/dist/esm-es5/stzh-cspace.entry.js +1 -1
- package/dist/esm-es5/stzh-cspace.entry.js.map +1 -1
- package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -1
- package/dist/esm-es5/stzh-details.entry.js +1 -1
- package/dist/esm-es5/stzh-dialog.entry.js +1 -1
- package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
- package/dist/esm-es5/stzh-figure_2.entry.js +2 -0
- package/dist/esm-es5/stzh-figure_2.entry.js.map +1 -0
- package/dist/esm-es5/stzh-footer.entry.js +1 -1
- package/dist/esm-es5/stzh-footer.entry.js.map +1 -1
- package/dist/esm-es5/stzh-gallery.entry.js +10 -0
- package/dist/esm-es5/stzh-gallery.entry.js.map +1 -0
- package/dist/esm-es5/stzh-ghettobox.entry.js +1 -1
- package/dist/esm-es5/stzh-header.entry.js +1 -1
- package/dist/esm-es5/stzh-header.entry.js.map +1 -1
- package/dist/esm-es5/stzh-hspace_2.entry.js +2 -0
- package/dist/esm-es5/stzh-hspace_2.entry.js.map +1 -0
- package/dist/esm-es5/stzh-imagecomparison.entry.js +1 -1
- package/dist/esm-es5/stzh-imagecomparison.entry.js.map +1 -1
- package/dist/esm-es5/stzh-input.entry.js +1 -1
- package/dist/esm-es5/stzh-link.entry.js +1 -1
- package/dist/esm-es5/stzh-logo.entry.js +2 -0
- package/dist/esm-es5/stzh-logo.entry.js.map +1 -0
- package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
- package/dist/esm-es5/stzh-pagebottom.entry.js +1 -1
- package/dist/esm-es5/stzh-pagetitle-hero.entry.js +1 -1
- package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
- package/dist/esm-es5/stzh-panorama.entry.js +1 -1
- package/dist/esm-es5/stzh-panorama.entry.js.map +1 -1
- package/dist/esm-es5/stzh-popover.entry.js +1 -1
- package/dist/esm-es5/stzh-print.entry.js +1 -1
- package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -1
- package/dist/esm-es5/stzh-progressbar-item.entry.js.map +1 -1
- package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
- package/dist/esm-es5/stzh-row.entry.js +1 -1
- package/dist/esm-es5/stzh-row.entry.js.map +1 -1
- package/dist/esm-es5/stzh-scrollup.entry.js +1 -1
- package/dist/esm-es5/stzh-share.entry.js +1 -1
- package/dist/esm-es5/stzh-space.entry.js +1 -1
- package/dist/esm-es5/stzh-space.entry.js.map +1 -1
- package/dist/esm-es5/stzh-sticky.entry.js +1 -1
- package/dist/esm-es5/stzh-sticky.entry.js.map +1 -1
- package/dist/esm-es5/stzh-table.entry.js +1 -1
- package/dist/esm-es5/stzh-text.entry.js +1 -1
- package/dist/esm-es5/stzh-text.entry.js.map +1 -1
- package/dist/esm-es5/stzh-textandimage.entry.js +1 -1
- package/dist/esm-es5/stzh-timeline-item.entry.js +1 -1
- package/dist/esm-es5/stzh-toast.entry.js +1 -1
- package/dist/esm-es5/stzh-toggle.entry.js +1 -1
- package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
- package/dist/esm-es5/stzh-upload.entry.js +1 -1
- package/dist/esm-es5/stzh-vspace.entry.js +1 -1
- package/dist/esm-es5/stzh-vspace.entry.js.map +1 -1
- package/dist/esm-es5/utils-8bb4c3c6.js +2 -0
- package/dist/esm-es5/utils-8bb4c3c6.js.map +1 -0
- package/dist/stzh-components/assets/i18n/de.json +19 -10
- package/dist/stzh-components/assets/i18n/en.json +19 -10
- package/dist/stzh-components/index.esm.js.map +1 -1
- package/dist/stzh-components/{p-a509436d.entry.js → p-0164f9d1.entry.js} +2 -2
- package/dist/stzh-components/p-0164f9d1.entry.js.map +1 -0
- package/dist/stzh-components/{p-1f1910e4.system.entry.js → p-0684cfac.system.entry.js} +2 -2
- package/dist/stzh-components/{p-1f1910e4.system.entry.js.map → p-0684cfac.system.entry.js.map} +1 -1
- package/dist/stzh-components/p-07819ba5.entry.js +2 -0
- package/dist/stzh-components/p-07819ba5.entry.js.map +1 -0
- package/dist/stzh-components/{p-6b9365fe.system.entry.js → p-0b4cba00.system.entry.js} +2 -2
- package/dist/stzh-components/{p-b1fbe1d1.system.entry.js → p-0b8a15cc.system.entry.js} +2 -2
- package/dist/stzh-components/p-0bb08043.system.js.map +1 -1
- package/dist/stzh-components/p-0c049996.system.entry.js +2 -0
- package/dist/stzh-components/p-0c049996.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-9bd8613c.system.entry.js → p-0c2381f6.system.entry.js} +2 -2
- package/dist/stzh-components/{p-1e7376c9.system.js → p-0c972915.system.js} +2 -2
- package/dist/stzh-components/{p-1e7376c9.system.js.map → p-0c972915.system.js.map} +1 -1
- package/dist/stzh-components/p-0d9aa70c.entry.js +2 -0
- package/dist/stzh-components/p-0d9aa70c.entry.js.map +1 -0
- package/dist/stzh-components/{p-55a00af2.entry.js → p-10361297.entry.js} +2 -2
- package/dist/stzh-components/p-1095d872.system.entry.js +2 -0
- package/dist/stzh-components/p-1095d872.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-26f37848.entry.js → p-11031613.entry.js} +2 -2
- package/dist/stzh-components/{p-062360a4.system.entry.js → p-153f8f3f.system.entry.js} +2 -2
- package/dist/stzh-components/p-15980af0.entry.js +10 -0
- package/dist/stzh-components/p-15980af0.entry.js.map +1 -0
- package/dist/stzh-components/{p-fbf4ee43.system.entry.js → p-1834deba.system.entry.js} +2 -2
- package/dist/stzh-components/{p-c1fa2872.system.entry.js → p-188dd49d.system.entry.js} +2 -2
- package/dist/stzh-components/{p-68e15c10.system.entry.js → p-1a49012e.system.entry.js} +2 -2
- package/dist/stzh-components/{p-2565c905.entry.js → p-1c9eee3d.entry.js} +2 -2
- package/dist/stzh-components/{p-badd636f.system.entry.js → p-24c0e33a.system.entry.js} +2 -2
- package/dist/stzh-components/{p-badd636f.system.entry.js.map → p-24c0e33a.system.entry.js.map} +1 -1
- package/dist/stzh-components/p-2547ec12.system.entry.js +2 -0
- package/dist/stzh-components/p-2547ec12.system.entry.js.map +1 -0
- package/dist/stzh-components/p-287edde1.system.entry.js +2 -0
- package/dist/stzh-components/p-287edde1.system.entry.js.map +1 -0
- package/dist/stzh-components/p-2a3fdd90.system.entry.js +2 -0
- package/dist/stzh-components/p-2a3fdd90.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-af5151b6.entry.js → p-2abcca01.entry.js} +2 -2
- package/dist/stzh-components/p-2abcca01.entry.js.map +1 -0
- package/dist/stzh-components/{p-97b0b868.system.entry.js → p-2ff7c5db.system.entry.js} +2 -2
- package/dist/stzh-components/{p-e0e5d06f.system.entry.js → p-3154e4da.system.entry.js} +2 -2
- package/dist/stzh-components/{p-754f37ee.entry.js → p-34add4af.entry.js} +2 -2
- package/dist/stzh-components/{p-b28e5fd4.system.entry.js → p-34ff6606.system.entry.js} +2 -2
- package/dist/stzh-components/{p-46ccadd5.system.entry.js → p-3ab3a5a7.system.entry.js} +2 -2
- package/dist/stzh-components/{p-dd43141d.system.entry.js → p-3ceef7dd.system.entry.js} +2 -2
- package/dist/stzh-components/p-3df3f45c.entry.js +2 -0
- package/dist/stzh-components/p-3df3f45c.entry.js.map +1 -0
- package/dist/stzh-components/p-428eacce.system.js +2 -0
- package/dist/stzh-components/{p-044b80d8.system.js.map → p-428eacce.system.js.map} +1 -1
- package/dist/stzh-components/{p-e42dbd26.system.entry.js → p-42e25ae1.system.entry.js} +3 -3
- package/dist/stzh-components/p-42e25ae1.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-38ebb72d.system.entry.js → p-42f483f6.system.entry.js} +2 -2
- package/dist/stzh-components/{p-508f6d3d.entry.js → p-488c5c8a.entry.js} +2 -2
- package/dist/stzh-components/{p-a5b55401.entry.js → p-4ad49ece.entry.js} +2 -2
- package/dist/stzh-components/{p-f8b5c7a8.entry.js → p-4c091b1b.entry.js} +2 -2
- package/dist/stzh-components/{p-66965853.entry.js → p-4cb041d5.entry.js} +2 -2
- package/dist/stzh-components/{p-9a22e78f.system.entry.js → p-509f90d0.system.entry.js} +2 -2
- package/dist/stzh-components/p-509f90d0.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-ff2029b6.entry.js → p-5342d3ae.entry.js} +2 -2
- package/dist/stzh-components/{p-ff2029b6.entry.js.map → p-5342d3ae.entry.js.map} +1 -1
- package/dist/stzh-components/{p-243f3d8c.system.entry.js → p-54a1fdcc.system.entry.js} +2 -2
- package/dist/stzh-components/p-54dbcd0e.system.entry.js +11 -0
- package/dist/stzh-components/p-54dbcd0e.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-1f6fe9f1.entry.js → p-5cea16ad.entry.js} +2 -2
- package/dist/stzh-components/{p-1f6fe9f1.entry.js.map → p-5cea16ad.entry.js.map} +1 -1
- package/dist/stzh-components/{p-b218ae94.system.entry.js → p-5d02c5e0.system.entry.js} +2 -2
- package/dist/stzh-components/{p-01436630.system.entry.js → p-5e861cb6.system.entry.js} +2 -2
- package/dist/stzh-components/{p-45e98de0.entry.js → p-64845b66.entry.js} +2 -2
- package/dist/stzh-components/{p-45e98de0.entry.js.map → p-64845b66.entry.js.map} +1 -1
- package/dist/stzh-components/{p-95e4bc28.entry.js → p-68feffea.entry.js} +2 -2
- package/dist/stzh-components/{p-a6938665.entry.js → p-6a91ac35.entry.js} +2 -2
- package/dist/stzh-components/p-6a91ac35.entry.js.map +1 -0
- package/dist/stzh-components/{p-93c73a62.entry.js → p-6b9b037a.entry.js} +2 -2
- package/dist/stzh-components/{p-93c73a62.entry.js.map → p-6b9b037a.entry.js.map} +1 -1
- package/dist/stzh-components/{p-98357b67.system.entry.js → p-6e979c9c.system.entry.js} +2 -2
- package/dist/stzh-components/{p-98357b67.system.entry.js.map → p-6e979c9c.system.entry.js.map} +1 -1
- package/dist/stzh-components/{p-d5b2327f.system.entry.js → p-709514fc.system.entry.js} +2 -2
- package/dist/stzh-components/{p-c9f0cf53.entry.js → p-73442cf1.entry.js} +2 -2
- package/dist/stzh-components/{p-fd41d303.entry.js → p-7873a639.entry.js} +2 -2
- package/dist/stzh-components/p-7c2aa5e8.entry.js +2 -0
- package/dist/stzh-components/{p-41b2f989.entry.js.map → p-7c2aa5e8.entry.js.map} +1 -1
- package/dist/stzh-components/{p-a7ef9c99.entry.js → p-80851e3d.entry.js} +2 -2
- package/dist/stzh-components/p-80f1f324.system.entry.js +2 -0
- package/dist/stzh-components/p-80f1f324.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-e1bada00.entry.js → p-83a216d7.entry.js} +2 -2
- package/dist/stzh-components/{p-bd5b6832.system.entry.js → p-88adaf4b.system.entry.js} +2 -2
- package/dist/stzh-components/{p-34a359dd.entry.js → p-88e6248e.entry.js} +2 -2
- package/dist/stzh-components/{p-e4e8b73a.system.entry.js → p-8c1c75a7.system.entry.js} +2 -2
- package/dist/stzh-components/{p-e4e8b73a.system.entry.js.map → p-8c1c75a7.system.entry.js.map} +1 -1
- package/dist/stzh-components/{p-7e76c84a.entry.js → p-91e7dae0.entry.js} +2 -2
- package/dist/stzh-components/{p-a8c669b2.system.entry.js → p-97704eb0.system.entry.js} +2 -2
- package/dist/stzh-components/p-9d0fedfe.system.entry.js +2 -0
- package/dist/stzh-components/{p-8de3379f.system.entry.js.map → p-9d0fedfe.system.entry.js.map} +1 -1
- package/dist/stzh-components/{p-67a483cf.system.entry.js → p-a0b350c2.system.entry.js} +2 -2
- package/dist/stzh-components/{p-a4c5ef8d.entry.js → p-a312a505.entry.js} +2 -2
- package/dist/stzh-components/p-a60e85c8.system.entry.js +2 -0
- package/dist/stzh-components/p-a60e85c8.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-99ec62a5.entry.js → p-a94dd79b.entry.js} +2 -2
- package/dist/stzh-components/{p-99ec62a5.entry.js.map → p-a94dd79b.entry.js.map} +1 -1
- package/dist/stzh-components/p-aa337ae2.entry.js +2 -0
- package/dist/stzh-components/p-aa337ae2.entry.js.map +1 -0
- package/dist/stzh-components/{p-80e08833.entry.js → p-abbcda3b.entry.js} +2 -2
- package/dist/stzh-components/p-ae8eaf99.entry.js +2 -0
- package/dist/stzh-components/p-ae8eaf99.entry.js.map +1 -0
- package/dist/stzh-components/{p-793a530d.entry.js → p-af33b013.entry.js} +2 -2
- package/dist/stzh-components/{p-19b7b131.entry.js → p-afb2885a.entry.js} +2 -2
- package/dist/stzh-components/p-b305ec22.entry.js +2 -0
- package/dist/stzh-components/p-b305ec22.entry.js.map +1 -0
- package/dist/stzh-components/p-b6fed7ff.entry.js +2 -0
- package/dist/stzh-components/p-b6fed7ff.entry.js.map +1 -0
- package/dist/stzh-components/{p-cc10a5c5.system.entry.js → p-bb2fe16f.system.entry.js} +2 -2
- package/dist/stzh-components/p-bb2fe16f.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-7a7eb40f.system.entry.js → p-c143a3f0.system.entry.js} +2 -2
- package/dist/stzh-components/{p-0a57145c.system.entry.js → p-c1ab5b6a.system.entry.js} +2 -2
- package/dist/stzh-components/p-c1ab5b6a.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-fb70c624.system.entry.js → p-c41d9fa7.system.entry.js} +2 -2
- package/dist/stzh-components/{p-ebd47e41.entry.js → p-c5a4865c.entry.js} +2 -2
- package/dist/stzh-components/{p-7007044a.entry.js → p-c7a068ee.entry.js} +2 -2
- package/dist/stzh-components/{p-a00db16c.js → p-ca32a687.js} +2 -2
- package/dist/stzh-components/{p-a00db16c.js.map → p-ca32a687.js.map} +1 -1
- package/dist/stzh-components/{p-ae44fab0.entry.js → p-cb906ad4.entry.js} +2 -2
- package/dist/stzh-components/{p-70461b7e.entry.js → p-cc260e20.entry.js} +2 -2
- package/dist/stzh-components/p-cc260e20.entry.js.map +1 -0
- package/dist/stzh-components/p-cfd1eed9.system.entry.js +2 -0
- package/dist/stzh-components/p-cfd1eed9.system.entry.js.map +1 -0
- package/dist/stzh-components/p-cfdb06e4.js +2 -0
- package/dist/stzh-components/p-cfdb06e4.js.map +1 -0
- package/dist/stzh-components/{p-54c0340b.entry.js → p-d0678cbb.entry.js} +2 -2
- package/dist/stzh-components/p-d22fbf2e.system.entry.js +2 -0
- package/dist/stzh-components/p-d22fbf2e.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-42138c55.entry.js → p-d362dc3a.entry.js} +2 -2
- package/dist/stzh-components/{p-3ac03d9a.entry.js → p-ded183e7.entry.js} +2 -2
- package/dist/stzh-components/{p-58a6ed19.system.entry.js → p-df322682.system.entry.js} +2 -2
- package/dist/stzh-components/{p-d50495d5.entry.js → p-e24cfa3e.entry.js} +2 -2
- package/dist/stzh-components/{p-ffe3fbab.entry.js → p-e3cd443b.entry.js} +2 -2
- package/dist/stzh-components/{p-e58d6819.system.entry.js → p-e61f6afc.system.entry.js} +2 -2
- package/dist/stzh-components/{p-e58d6819.system.entry.js.map → p-e61f6afc.system.entry.js.map} +1 -1
- package/dist/stzh-components/{p-f16e40f8.system.entry.js → p-e670eba0.system.entry.js} +2 -2
- package/dist/stzh-components/p-ed2896cd.entry.js +2 -0
- package/dist/stzh-components/p-ed2896cd.entry.js.map +1 -0
- package/dist/stzh-components/{p-3ccf5529.system.entry.js → p-f159a561.system.entry.js} +2 -2
- package/dist/stzh-components/p-f6662aa5.entry.js +2 -0
- package/dist/stzh-components/p-f6662aa5.entry.js.map +1 -0
- package/dist/stzh-components/p-f73af272.entry.js +8 -0
- package/dist/stzh-components/p-f73af272.entry.js.map +1 -0
- package/dist/stzh-components/{p-75beb9f8.system.entry.js → p-f8511c39.system.entry.js} +2 -2
- package/dist/stzh-components/{p-b1851b3e.entry.js → p-f91187c8.entry.js} +2 -2
- package/dist/stzh-components/p-f9cb0fcd.system.js +2 -0
- package/dist/stzh-components/p-f9cb0fcd.system.js.map +1 -0
- package/dist/stzh-components/{p-4e32ee7a.system.entry.js → p-ff1d24e2.system.entry.js} +2 -2
- package/dist/stzh-components/{p-61589824.system.entry.js → p-ff356dc8.system.entry.js} +2 -2
- package/dist/stzh-components/{p-9145f8d9.system.entry.js → p-ff9a0645.system.entry.js} +2 -2
- package/dist/stzh-components/p-ff9a0645.system.entry.js.map +1 -0
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.esm.js.map +1 -1
- package/dist/stzh-components/stzh-components.js +1 -1
- package/dist/types/components/stzh-gallery/stzh-gallery.localization.d.ts +10 -0
- package/dist/types/components.d.ts +101 -24
- package/dist/types/utils/utils.d.ts +5 -0
- package/dist/vscode-data.json +102 -13
- package/package.json +2 -1
- package/dist/cjs/stzh-figure.cjs.entry.js +0 -40
- package/dist/cjs/stzh-figure.cjs.entry.js.map +0 -1
- package/dist/cjs/stzh-hspace.cjs.entry.js.map +0 -1
- package/dist/cjs/stzh-ratio.cjs.entry.js.map +0 -1
- package/dist/cjs/stzh-show.cjs.entry.js +0 -43
- package/dist/cjs/stzh-show.cjs.entry.js.map +0 -1
- package/dist/cjs/utils-77bc0ea1.js.map +0 -1
- package/dist/esm/stzh-figure.entry.js +0 -36
- package/dist/esm/stzh-figure.entry.js.map +0 -1
- package/dist/esm/stzh-hspace.entry.js.map +0 -1
- package/dist/esm/stzh-ratio.entry.js.map +0 -1
- package/dist/esm/stzh-show.entry.js.map +0 -1
- package/dist/esm/utils-107fad0f.js.map +0 -1
- package/dist/esm-es5/stzh-figure.entry.js +0 -2
- package/dist/esm-es5/stzh-figure.entry.js.map +0 -1
- package/dist/esm-es5/stzh-hspace.entry.js +0 -2
- package/dist/esm-es5/stzh-hspace.entry.js.map +0 -1
- package/dist/esm-es5/stzh-ratio.entry.js +0 -2
- package/dist/esm-es5/stzh-ratio.entry.js.map +0 -1
- package/dist/esm-es5/stzh-show.entry.js +0 -2
- package/dist/esm-es5/stzh-show.entry.js.map +0 -1
- package/dist/esm-es5/utils-107fad0f.js +0 -2
- package/dist/esm-es5/utils-107fad0f.js.map +0 -1
- package/dist/stzh-components/p-004b3030.system.entry.js +0 -2
- package/dist/stzh-components/p-004b3030.system.entry.js.map +0 -1
- package/dist/stzh-components/p-044b80d8.system.js +0 -2
- package/dist/stzh-components/p-0a57145c.system.entry.js.map +0 -1
- package/dist/stzh-components/p-0c8d651e.entry.js +0 -2
- package/dist/stzh-components/p-0c8d651e.entry.js.map +0 -1
- package/dist/stzh-components/p-0e5d39e2.system.entry.js +0 -2
- package/dist/stzh-components/p-0e5d39e2.system.entry.js.map +0 -1
- package/dist/stzh-components/p-0ed6eafb.system.entry.js +0 -2
- package/dist/stzh-components/p-0ed6eafb.system.entry.js.map +0 -1
- package/dist/stzh-components/p-168f0faa.entry.js +0 -8
- package/dist/stzh-components/p-168f0faa.entry.js.map +0 -1
- package/dist/stzh-components/p-18bf2b21.system.entry.js +0 -2
- package/dist/stzh-components/p-18bf2b21.system.entry.js.map +0 -1
- package/dist/stzh-components/p-2452dd71.system.entry.js +0 -2
- package/dist/stzh-components/p-2452dd71.system.entry.js.map +0 -1
- package/dist/stzh-components/p-330bdf15.system.entry.js +0 -2
- package/dist/stzh-components/p-330bdf15.system.entry.js.map +0 -1
- package/dist/stzh-components/p-341c1c6c.entry.js +0 -2
- package/dist/stzh-components/p-341c1c6c.entry.js.map +0 -1
- package/dist/stzh-components/p-41b2f989.entry.js +0 -2
- package/dist/stzh-components/p-52e9dbe5.entry.js +0 -2
- package/dist/stzh-components/p-52e9dbe5.entry.js.map +0 -1
- package/dist/stzh-components/p-53e44e89.system.js +0 -2
- package/dist/stzh-components/p-53e44e89.system.js.map +0 -1
- package/dist/stzh-components/p-645bbb42.entry.js +0 -2
- package/dist/stzh-components/p-645bbb42.entry.js.map +0 -1
- package/dist/stzh-components/p-70461b7e.entry.js.map +0 -1
- package/dist/stzh-components/p-74e07267.entry.js +0 -2
- package/dist/stzh-components/p-74e07267.entry.js.map +0 -1
- package/dist/stzh-components/p-7b044a55.entry.js +0 -2
- package/dist/stzh-components/p-7b044a55.entry.js.map +0 -1
- package/dist/stzh-components/p-7eaed674.system.entry.js +0 -2
- package/dist/stzh-components/p-7eaed674.system.entry.js.map +0 -1
- package/dist/stzh-components/p-8de3379f.system.entry.js +0 -2
- package/dist/stzh-components/p-9145f8d9.system.entry.js.map +0 -1
- package/dist/stzh-components/p-9a22e78f.system.entry.js.map +0 -1
- package/dist/stzh-components/p-a27c6c02.system.entry.js +0 -2
- package/dist/stzh-components/p-a27c6c02.system.entry.js.map +0 -1
- package/dist/stzh-components/p-a509436d.entry.js.map +0 -1
- package/dist/stzh-components/p-a6938665.entry.js.map +0 -1
- package/dist/stzh-components/p-a999bb48.entry.js +0 -2
- package/dist/stzh-components/p-a999bb48.entry.js.map +0 -1
- package/dist/stzh-components/p-af5151b6.entry.js.map +0 -1
- package/dist/stzh-components/p-ba8c574b.js +0 -2
- package/dist/stzh-components/p-ba8c574b.js.map +0 -1
- package/dist/stzh-components/p-c2fcd668.entry.js +0 -2
- package/dist/stzh-components/p-c2fcd668.entry.js.map +0 -1
- package/dist/stzh-components/p-cc10a5c5.system.entry.js.map +0 -1
- package/dist/stzh-components/p-d18665b6.system.entry.js +0 -2
- package/dist/stzh-components/p-d18665b6.system.entry.js.map +0 -1
- package/dist/stzh-components/p-e42dbd26.system.entry.js.map +0 -1
- package/dist/stzh-components/p-e6f1bae9.system.entry.js +0 -2
- package/dist/stzh-components/p-e6f1bae9.system.entry.js.map +0 -1
- package/dist/stzh-components/p-ebaf8f26.entry.js +0 -2
- package/dist/stzh-components/p-ebaf8f26.entry.js.map +0 -1
- package/dist/stzh-components/p-ef274d0c.entry.js +0 -2
- package/dist/stzh-components/p-ef274d0c.entry.js.map +0 -1
- /package/dist/stzh-components/{p-6b9365fe.system.entry.js.map → p-0b4cba00.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b1fbe1d1.system.entry.js.map → p-0b8a15cc.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-9bd8613c.system.entry.js.map → p-0c2381f6.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-55a00af2.entry.js.map → p-10361297.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-26f37848.entry.js.map → p-11031613.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-062360a4.system.entry.js.map → p-153f8f3f.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-fbf4ee43.system.entry.js.map → p-1834deba.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-c1fa2872.system.entry.js.map → p-188dd49d.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-68e15c10.system.entry.js.map → p-1a49012e.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-2565c905.entry.js.map → p-1c9eee3d.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-97b0b868.system.entry.js.map → p-2ff7c5db.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e0e5d06f.system.entry.js.map → p-3154e4da.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-754f37ee.entry.js.map → p-34add4af.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b28e5fd4.system.entry.js.map → p-34ff6606.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-46ccadd5.system.entry.js.map → p-3ab3a5a7.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-dd43141d.system.entry.js.map → p-3ceef7dd.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-38ebb72d.system.entry.js.map → p-42f483f6.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-508f6d3d.entry.js.map → p-488c5c8a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a5b55401.entry.js.map → p-4ad49ece.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-f8b5c7a8.entry.js.map → p-4c091b1b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-66965853.entry.js.map → p-4cb041d5.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-243f3d8c.system.entry.js.map → p-54a1fdcc.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b218ae94.system.entry.js.map → p-5d02c5e0.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-01436630.system.entry.js.map → p-5e861cb6.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-95e4bc28.entry.js.map → p-68feffea.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d5b2327f.system.entry.js.map → p-709514fc.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-c9f0cf53.entry.js.map → p-73442cf1.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-fd41d303.entry.js.map → p-7873a639.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a7ef9c99.entry.js.map → p-80851e3d.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e1bada00.entry.js.map → p-83a216d7.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-bd5b6832.system.entry.js.map → p-88adaf4b.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-34a359dd.entry.js.map → p-88e6248e.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7e76c84a.entry.js.map → p-91e7dae0.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a8c669b2.system.entry.js.map → p-97704eb0.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-67a483cf.system.entry.js.map → p-a0b350c2.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a4c5ef8d.entry.js.map → p-a312a505.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-80e08833.entry.js.map → p-abbcda3b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-793a530d.entry.js.map → p-af33b013.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-19b7b131.entry.js.map → p-afb2885a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7a7eb40f.system.entry.js.map → p-c143a3f0.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-fb70c624.system.entry.js.map → p-c41d9fa7.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-ebd47e41.entry.js.map → p-c5a4865c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7007044a.entry.js.map → p-c7a068ee.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-ae44fab0.entry.js.map → p-cb906ad4.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-54c0340b.entry.js.map → p-d0678cbb.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-42138c55.entry.js.map → p-d362dc3a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-3ac03d9a.entry.js.map → p-ded183e7.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-58a6ed19.system.entry.js.map → p-df322682.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d50495d5.entry.js.map → p-e24cfa3e.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-ffe3fbab.entry.js.map → p-e3cd443b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-f16e40f8.system.entry.js.map → p-e670eba0.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-3ccf5529.system.entry.js.map → p-f159a561.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-75beb9f8.system.entry.js.map → p-f8511c39.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b1851b3e.entry.js.map → p-f91187c8.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-4e32ee7a.system.entry.js.map → p-ff1d24e2.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-61589824.system.entry.js.map → p-ff356dc8.system.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,o,n){function a(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,i){function r(t){try{l(n.next(t))}catch(t){i(t)}}function s(t){try{l(n["throw"](t))}catch(t){i(t)}}function l(t){t.done?o(t.value):a(t.value).then(r,s)}l((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,r;return r={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(t){return function(e){return l([t,e])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,s[0]&&(o=0)),o)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:o.label++;return{value:s[1],done:false};case 5:o.label++;a=s[1];s=[0];continue;case 7:s=o.ops.pop();o.trys.pop();continue;default:if(!(i=o.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){o=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(s[0]===6&&o.label<i[1]){o.label=i[1];i=s;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(s);break}if(i[2])o.ops.pop();o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-bfb5b569.js";window.libpannellum=function(t,e,o){function n(n){function c(t,e){return 1==t.level&&1!=e.level?-1:1==e.level&&1!=t.level?1:e.timestamp-t.timestamp}function u(t,e){return t.level!=e.level?t.level-e.level:t.diff-e.diff}function d(t,e,o,n,a,i){this.vertices=t;this.side=e;this.level=o;this.x=n;this.y=a;this.path=i.replace("%s",e).replace("%l",o).replace("%x",n).replace("%y",a)}function m(t,e,o,n,a){var i;var r=e.vertices;i=b(t,r.slice(0,3));var s=b(t,r.slice(3,6)),l=b(t,r.slice(6,9)),r=b(t,r.slice(9,12)),h=i[0]+s[0]+l[0]+r[0];-4==h||4==h?i=!1:(h=i[1]+s[1]+l[1]+r[1],i=-4==h||4==h?!1:4!=i[2]+s[2]+l[2]+r[2]);if(i){i=e.vertices;s=i[0]+i[3]+i[6]+i[9];l=i[1]+i[4]+i[7]+i[10];r=i[2]+i[5]+i[8]+i[11];h=Math.sqrt(s*s+l*l+r*r);r=Math.asin(r/h);s=Math.atan2(l,s)-n;s+=s>Math.PI?-2*Math.PI:s<-Math.PI?2*Math.PI:0;s=Math.abs(s);e.diff=Math.acos(Math.sin(o)*Math.sin(r)+Math.cos(o)*Math.cos(r)*Math.cos(s));s=!1;for(l=0;l<x.nodeCache.length;l++)if(x.nodeCache[l].path==e.path){s=!0;x.nodeCache[l].timestamp=x.nodeCacheTimestamp++;x.nodeCache[l].diff=e.diff;x.currentNodes.push(x.nodeCache[l]);break}s||(e.timestamp=x.nodeCacheTimestamp++,x.currentNodes.push(e),x.nodeCache.push(e));if(e.level<x.level){var r=L.cubeResolution*Math.pow(2,e.level-L.maxLevel),s=Math.ceil(r*L.invTileResolution)-1,l=r%L.tileResolution*2,c=2*r%L.tileResolution;0===c&&(c=L.tileResolution);0===l&&(l=2*L.tileResolution);h=.5;if(e.x==s||e.y==s)h=1-L.tileResolution/(L.tileResolution+c);var u=1-h,r=[],p=h,f=h,v=h,g=u,w=u,y=u;if(c<L.tileResolution)if(e.x==s&&e.y!=s){if(w=f=.5,"d"==e.side||"u"==e.side)y=v=.5}else e.x!=s&&e.y==s&&(g=p=.5,"l"==e.side||"r"==e.side)&&(y=v=.5);l<=L.tileResolution&&(e.x==s&&(p=0,g=1,"l"==e.side||"r"==e.side)&&(v=0,y=1),e.y==s&&(f=0,w=1,"d"==e.side||"u"==e.side)&&(v=0,y=1));c=[i[0],i[1],i[2],i[0]*p+i[3]*g,i[1]*h+i[4]*u,i[2]*v+i[5]*y,i[0]*p+i[6]*g,i[1]*f+i[7]*w,i[2]*v+i[8]*y,i[0]*h+i[9]*u,i[1]*f+i[10]*w,i[2]*v+i[11]*y];c=new d(c,e.side,e.level+1,2*e.x,2*e.y,L.fullpath);r.push(c);e.x==s&&l<=L.tileResolution||(c=[i[0]*p+i[3]*g,i[1]*h+i[4]*u,i[2]*v+i[5]*y,i[3],i[4],i[5],i[3]*h+i[6]*u,i[4]*f+i[7]*w,i[5]*v+i[8]*y,i[0]*p+i[6]*g,i[1]*f+i[7]*w,i[2]*v+i[8]*y],c=new d(c,e.side,e.level+1,2*e.x+1,2*e.y,L.fullpath),r.push(c));e.x==s&&l<=L.tileResolution||e.y==s&&l<=L.tileResolution||(c=[i[0]*p+i[6]*g,i[1]*f+i[7]*w,i[2]*v+i[8]*y,i[3]*h+i[6]*u,i[4]*f+i[7]*w,i[5]*v+i[8]*y,i[6],i[7],i[8],i[9]*p+i[6]*g,i[10]*h+i[7]*u,i[11]*v+i[8]*y],c=new d(c,e.side,e.level+1,2*e.x+1,2*e.y+1,L.fullpath),r.push(c));e.y==s&&l<=L.tileResolution||(c=[i[0]*h+i[9]*u,i[1]*f+i[10]*w,i[2]*v+i[11]*y,i[0]*p+i[6]*g,i[1]*f+i[7]*w,i[2]*v+i[8]*y,i[9]*p+i[6]*g,i[10]*h+i[7]*u,i[11]*v+i[8]*y,i[9],i[10],i[11]],c=new d(c,e.side,e.level+1,2*e.x,2*e.y+1,L.fullpath),r.push(c));for(e=0;e<r.length;e++)m(t,r[e],o,n)}}}function p(){return[-1,1,-1,1,1,-1,1,-1,-1,-1,-1,-1,1,1,1,-1,1,1,-1,-1,1,1,-1,1,-1,1,1,1,1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,1,-1,1,1,-1,1,-1,-1,-1,-1,-1,-1,1,1,1,-1,1,1,1,1,-1,1,1,-1,-1]}function f(t,e,o){var n=Math.sin(e);e=Math.cos(e);if("x"==o)return[t[0],e*t[1]+n*t[2],e*t[2]-n*t[1],t[3],e*t[4]+n*t[5],e*t[5]-n*t[4],t[6],e*t[7]+n*t[8],e*t[8]-n*t[7]];if("y"==o)return[e*t[0]-n*t[2],t[1],e*t[2]+n*t[0],e*t[3]-n*t[5],t[4],e*t[5]+n*t[3],e*t[6]-n*t[8],t[7],e*t[8]+n*t[6]];if("z"==o)return[e*t[0]+n*t[1],e*t[1]-n*t[0],t[2],e*t[3]+n*t[4],e*t[4]-n*t[3],t[5],e*t[6]+n*t[7],e*t[7]-n*t[6],t[8]]}function v(t){return[t[0],t[4],t[8],t[12],t[1],t[5],t[9],t[13],t[2],t[6],t[10],t[14],t[3],t[7],t[11],t[15]]}function g(t){N(t,t.path+"."+L.extension,(function(e,o){t.texture=e;t.textureLoaded=o?2:1}),D.crossOrigin)}function b(t,e){var o=[t[0]*e[0]+t[1]*e[1]+t[2]*e[2],t[4]*e[0]+t[5]*e[1]+t[6]*e[2],t[11]+t[8]*e[0]+t[9]*e[1]+t[10]*e[2],1/(t[12]*e[0]+t[13]*e[1]+t[14]*e[2])],n=o[0]*o[3],a=o[1]*o[3],o=o[2]*o[3],i=[0,0,0];-1>n&&(i[0]=-1);1<n&&(i[0]=1);-1>a&&(i[1]=-1);1<a&&(i[1]=1);if(-1>o||1<o)i[2]=1;return i}function w(){console.log("Reducing canvas size due to error 1286!");y.width=Math.round(y.width/2);y.height=Math.round(y.height/2)}var y=e.createElement("canvas");y.style.width=y.style.height="100%";n.appendChild(y);var x,_,E,z,M,P,C,T,L,R,O,S,A,k,I,D;this.init=function(t,c,u,d,m,f,v,g){function b(t){if(N){var e=t*t*4,o=new Uint8ClampedArray(e),n=g.backgroundColor?g.backgroundColor:[0,0,0];n[0]*=255;n[1]*=255;n[2]*=255;for(var a=0;a<e;a++)o[a++]=n[0],o[a++]=n[1],o[a++]=n[2];t=new ImageData(o,t,t);for(F=0;6>F;F++)0==L[F].width&&(L[F]=t)}}c===o&&(c="equirectangular");if("equirectangular"!=c&&"cubemap"!=c&&"multires"!=c)throw console.log("Error: invalid image type specified!"),{type:"config error"};R=c;L=t;O=u;D=g||{};if(x){E&&(_.detachShader(x,E),_.deleteShader(E));z&&(_.detachShader(x,z),_.deleteShader(z));_.bindBuffer(_.ARRAY_BUFFER,null);_.bindBuffer(_.ELEMENT_ARRAY_BUFFER,null);x.texture&&_.deleteTexture(x.texture);if(x.nodeCache)for(t=0;t<x.nodeCache.length;t++)_.deleteTexture(x.nodeCache[t].texture);_.deleteProgram(x);x=o}T=o;var F,N=!1,U;if("cubemap"==R)for(F=0;6>F;F++)0<L[F].width?(U===o&&(U=L[F].width),U!=L[F].width&&console.log("Cube faces have inconsistent widths: "+U+" vs. "+L[F].width)):N=!0;"cubemap"==R&&0!==(U&U-1)&&(navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/)||navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 9_/)||navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 10_/)||navigator.userAgent.match(/Trident.*rv[ :]*11\./))||(_||(_=y.getContext("experimental-webgl",{alpha:!1,depth:!1})),_&&1286==_.getError()&&w());if(!_&&("multires"==R&&L.hasOwnProperty("fallbackPath")||"cubemap"==R)&&("WebkitAppearance"in e.documentElement.style||navigator.userAgent.match(/Trident.*rv[ :]*11\./)||-1!==navigator.appVersion.indexOf("MSIE 10"))){P&&n.removeChild(P);P=e.createElement("div");P.className="pnlm-world";d=L.basePath?L.basePath+L.fallbackPath:L.fallbackPath;var B="frblud".split(""),H=0;m=function(){var t=e.createElement("canvas");t.className="pnlm-face pnlm-"+B[this.side]+"face";P.appendChild(t);var o=t.getContext("2d");t.style.width=this.width+4+"px";t.style.height=this.height+4+"px";t.width=this.width+4;t.height=this.height+4;o.drawImage(this,2,2);var n=o.getImageData(0,0,t.width,t.height),a=n.data,i,r;for(i=2;i<t.width-2;i++)for(r=0;4>r;r++)a[4*(i+t.width)+r]=a[4*(i+2*t.width)+r],a[4*(i+t.width*(t.height-2))+r]=a[4*(i+t.width*(t.height-3))+r];for(i=2;i<t.height-2;i++)for(r=0;4>r;r++)a[4*(i*t.width+1)+r]=a[4*(i*t.width+2)+r],a[4*((i+1)*t.width-2)+r]=a[4*((i+1)*t.width-3)+r];for(r=0;4>r;r++)a[4*(t.width+1)+r]=a[4*(2*t.width+2)+r],a[4*(2*t.width-2)+r]=a[4*(3*t.width-3)+r],a[4*(t.width*(t.height-2)+1)+r]=a[4*(t.width*(t.height-3)+2)+r],a[4*(t.width*(t.height-1)-2)+r]=a[4*(t.width*(t.height-2)-3)+r];for(i=1;i<t.width-1;i++)for(r=0;4>r;r++)a[4*i+r]=a[4*(i+t.width)+r],a[4*(i+t.width*(t.height-1))+r]=a[4*(i+t.width*(t.height-2))+r];for(i=1;i<t.height-1;i++)for(r=0;4>r;r++)a[i*t.width*4+r]=a[4*(i*t.width+1)+r],a[4*((i+1)*t.width-1)+r]=a[4*((i+1)*t.width-2)+r];for(r=0;4>r;r++)a[r]=a[4*(t.width+1)+r],a[4*(t.width-1)+r]=a[4*(2*t.width-2)+r],a[t.width*(t.height-1)*4+r]=a[4*(t.width*(t.height-2)+1)+r],a[4*(t.width*t.height-1)+r]=a[4*(t.width*(t.height-1)-2)+r];o.putImageData(n,0,0);G.call(this)};var G=function(){0<this.width?(M===o&&(M=this.width),M!=this.width&&console.log("Fallback faces have inconsistent widths: "+M+" vs. "+this.width)):N=!0;H++;6==H&&(M=this.width,n.appendChild(P),v())},N=!1;for(F=0;6>F;F++)f=new Image,f.crossOrigin=D.crossOrigin?D.crossOrigin:"anonymous",f.side=F,f.onload=m,f.onerror=G,f.src="multires"==R?d.replace("%s",B[F])+"."+L.extension:L[F].src;b(M)}else{if(!_)throw console.log("Error: no WebGL support detected!"),{type:"no webgl"};"cubemap"==R&&b(U);L.fullpath=L.basePath?L.basePath+L.path:L.path;L.invTileResolution=1/L.tileResolution;t=p();C=[];for(F=0;6>F;F++)C[F]=t.slice(12*F,12*F+12),t=p();t=0;if("equirectangular"==R){if(t=_.getParameter(_.MAX_TEXTURE_SIZE),Math.max(L.width/2,L.height)>t)throw console.log("Error: The image is too big; it's "+L.width+"px wide, but this device's maximum supported size is "+2*t+"px."),{type:"webgl size error",width:L.width,maxWidth:2*t}}else if("cubemap"==R&&U>_.getParameter(_.MAX_CUBE_MAP_TEXTURE_SIZE))throw console.log("Error: The image is too big; it's "+U+"px wide, but this device's maximum supported size is "+t+"px."),{type:"webgl size error",width:U,maxWidth:t};g===o||g.horizonPitch===o&&g.horizonRoll===o||(T=[g.horizonPitch==o?0:g.horizonPitch,g.horizonRoll==o?0:g.horizonRoll]);U=_.TEXTURE_2D;_.viewport(0,0,_.drawingBufferWidth,_.drawingBufferHeight);_.getShaderPrecisionFormat&&(c=_.getShaderPrecisionFormat(_.FRAGMENT_SHADER,_.HIGH_FLOAT))&&1>c.precision&&(r=r.replace("highp","mediump"));E=_.createShader(_.VERTEX_SHADER);c=a;"multires"==R&&(c=i);_.shaderSource(E,c);_.compileShader(E);z=_.createShader(_.FRAGMENT_SHADER);c=l;"cubemap"==R?(U=_.TEXTURE_CUBE_MAP,c=s):"multires"==R&&(c=h);_.shaderSource(z,c);_.compileShader(z);x=_.createProgram();_.attachShader(x,E);_.attachShader(x,z);_.linkProgram(x);_.getShaderParameter(E,_.COMPILE_STATUS)||console.log(_.getShaderInfoLog(E));_.getShaderParameter(z,_.COMPILE_STATUS)||console.log(_.getShaderInfoLog(z));_.getProgramParameter(x,_.LINK_STATUS)||console.log(_.getProgramInfoLog(x));_.useProgram(x);x.drawInProgress=!1;c=g.backgroundColor?g.backgroundColor:[0,0,0];_.clearColor(c[0],c[1],c[2],1);_.clear(_.COLOR_BUFFER_BIT);x.texCoordLocation=_.getAttribLocation(x,"a_texCoord");_.enableVertexAttribArray(x.texCoordLocation);"multires"!=R?(S||(S=_.createBuffer()),_.bindBuffer(_.ARRAY_BUFFER,S),_.bufferData(_.ARRAY_BUFFER,new Float32Array([-1,1,1,1,1,-1,-1,1,1,-1,-1,-1]),_.STATIC_DRAW),_.vertexAttribPointer(x.texCoordLocation,2,_.FLOAT,!1,0,0),x.aspectRatio=_.getUniformLocation(x,"u_aspectRatio"),_.uniform1f(x.aspectRatio,_.drawingBufferWidth/_.drawingBufferHeight),x.psi=_.getUniformLocation(x,"u_psi"),x.theta=_.getUniformLocation(x,"u_theta"),x.f=_.getUniformLocation(x,"u_f"),x.h=_.getUniformLocation(x,"u_h"),x.v=_.getUniformLocation(x,"u_v"),x.vo=_.getUniformLocation(x,"u_vo"),x.rot=_.getUniformLocation(x,"u_rot"),_.uniform1f(x.h,d/(2*Math.PI)),_.uniform1f(x.v,m/Math.PI),_.uniform1f(x.vo,f/Math.PI*2),"equirectangular"==R&&(x.backgroundColor=_.getUniformLocation(x,"u_backgroundColor"),_.uniform4fv(x.backgroundColor,c.concat([1]))),x.texture=_.createTexture(),_.bindTexture(U,x.texture),"cubemap"==R?(_.texImage2D(_.TEXTURE_CUBE_MAP_POSITIVE_X,0,_.RGB,_.RGB,_.UNSIGNED_BYTE,L[1]),_.texImage2D(_.TEXTURE_CUBE_MAP_NEGATIVE_X,0,_.RGB,_.RGB,_.UNSIGNED_BYTE,L[3]),_.texImage2D(_.TEXTURE_CUBE_MAP_POSITIVE_Y,0,_.RGB,_.RGB,_.UNSIGNED_BYTE,L[4]),_.texImage2D(_.TEXTURE_CUBE_MAP_NEGATIVE_Y,0,_.RGB,_.RGB,_.UNSIGNED_BYTE,L[5]),_.texImage2D(_.TEXTURE_CUBE_MAP_POSITIVE_Z,0,_.RGB,_.RGB,_.UNSIGNED_BYTE,L[0]),_.texImage2D(_.TEXTURE_CUBE_MAP_NEGATIVE_Z,0,_.RGB,_.RGB,_.UNSIGNED_BYTE,L[2])):L.width<=t?(_.uniform1i(_.getUniformLocation(x,"u_splitImage"),0),_.texImage2D(U,0,_.RGB,_.RGB,_.UNSIGNED_BYTE,L)):(_.uniform1i(_.getUniformLocation(x,"u_splitImage"),1),d=e.createElement("canvas"),d.width=L.width/2,d.height=L.height,d=d.getContext("2d"),d.drawImage(L,0,0),m=d.getImageData(0,0,L.width/2,L.height),_.texImage2D(U,0,_.RGB,_.RGB,_.UNSIGNED_BYTE,m),x.texture2=_.createTexture(),_.activeTexture(_.TEXTURE1),_.bindTexture(U,x.texture2),_.uniform1i(_.getUniformLocation(x,"u_image1"),1),d.drawImage(L,-L.width/2,0),m=d.getImageData(0,0,L.width/2,L.height),_.texImage2D(U,0,_.RGB,_.RGB,_.UNSIGNED_BYTE,m),_.texParameteri(U,_.TEXTURE_WRAP_S,_.CLAMP_TO_EDGE),_.texParameteri(U,_.TEXTURE_WRAP_T,_.CLAMP_TO_EDGE),_.texParameteri(U,_.TEXTURE_MIN_FILTER,_.LINEAR),_.texParameteri(U,_.TEXTURE_MAG_FILTER,_.LINEAR),_.activeTexture(_.TEXTURE0)),_.texParameteri(U,_.TEXTURE_WRAP_S,_.CLAMP_TO_EDGE),_.texParameteri(U,_.TEXTURE_WRAP_T,_.CLAMP_TO_EDGE),_.texParameteri(U,_.TEXTURE_MIN_FILTER,_.LINEAR),_.texParameteri(U,_.TEXTURE_MAG_FILTER,_.LINEAR)):(x.vertPosLocation=_.getAttribLocation(x,"a_vertCoord"),_.enableVertexAttribArray(x.vertPosLocation),A||(A=_.createBuffer()),k||(k=_.createBuffer()),I||(I=_.createBuffer()),_.bindBuffer(_.ARRAY_BUFFER,k),_.bufferData(_.ARRAY_BUFFER,new Float32Array([0,0,1,0,1,1,0,1]),_.STATIC_DRAW),_.bindBuffer(_.ELEMENT_ARRAY_BUFFER,I),_.bufferData(_.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,0,2,3]),_.STATIC_DRAW),x.perspUniform=_.getUniformLocation(x,"u_perspMatrix"),x.cubeUniform=_.getUniformLocation(x,"u_cubeMatrix"),x.level=-1,x.currentNodes=[],x.nodeCache=[],x.nodeCacheTimestamp=0);d=_.getError();if(0!==d)throw console.log("Error: Something went wrong with WebGL!",d),{type:"webgl error"};v()}};this.destroy=function(){n!==o&&(y!==o&&n.contains(y)&&n.removeChild(y),P!==o&&n.contains(P)&&n.removeChild(P));if(_){var t=_.getExtension("WEBGL_lose_context");t&&t.loseContext()}};this.resize=function(){var e=t.devicePixelRatio||1;y.width=y.clientWidth*e;y.height=y.clientHeight*e;_&&(1286==_.getError()&&w(),_.viewport(0,0,_.drawingBufferWidth,_.drawingBufferHeight),"multires"!=R&&_.uniform1f(x.aspectRatio,y.clientWidth/y.clientHeight))};this.resize();this.setPose=function(t,e){T=[t,e]};this.render=function(t,e,n,a){var i,r=0;a===o&&(a={});a.roll&&(r=a.roll);if(T!==o){i=T[0];var s=T[1],l=t,h=e,p=Math.cos(s)*Math.sin(t)*Math.sin(i)+Math.cos(t)*(Math.cos(i)*Math.cos(e)+Math.sin(s)*Math.sin(i)*Math.sin(e)),b=-Math.sin(t)*Math.sin(s)+Math.cos(t)*Math.cos(s)*Math.sin(e);t=Math.cos(s)*Math.cos(i)*Math.sin(t)+Math.cos(t)*(-Math.cos(e)*Math.sin(i)+Math.cos(i)*Math.sin(s)*Math.sin(e));t=Math.asin(Math.max(Math.min(t,1),-1));e=Math.atan2(b,p);i=[Math.cos(l)*(Math.sin(s)*Math.sin(i)*Math.cos(h)-Math.cos(i)*Math.sin(h)),Math.cos(l)*Math.cos(s)*Math.cos(h),Math.cos(l)*(Math.cos(i)*Math.sin(s)*Math.cos(h)+Math.sin(h)*Math.sin(i))];s=[-Math.cos(t)*Math.sin(e),Math.cos(t)*Math.cos(e)];s=Math.acos(Math.max(Math.min((i[0]*s[0]+i[1]*s[1])/(Math.sqrt(i[0]*i[0]+i[1]*i[1]+i[2]*i[2])*Math.sqrt(s[0]*s[0]+s[1]*s[1])),1),-1));0>i[2]&&(s=2*Math.PI-s);r+=s}if(_||"multires"!=R&&"cubemap"!=R){if("multires"!=R)n=2*Math.atan(Math.tan(.5*n)/(_.drawingBufferWidth/_.drawingBufferHeight)),n=1/Math.tan(.5*n),_.uniform1f(x.psi,e),_.uniform1f(x.theta,t),_.uniform1f(x.rot,r),_.uniform1f(x.f,n),!0===O&&"equirectangular"==R&&(_.bindTexture(_.TEXTURE_2D,x.texture),_.texImage2D(_.TEXTURE_2D,0,_.RGB,_.RGB,_.UNSIGNED_BYTE,L)),_.drawArrays(_.TRIANGLES,0,6);else{i=_.drawingBufferWidth/_.drawingBufferHeight;s=2*Math.atan(Math.tan(n/2)*_.drawingBufferHeight/_.drawingBufferWidth);s=1/Math.tan(s/2);i=[s/i,0,0,0,0,s,0,0,0,0,100.1/-99.9,20/-99.9,0,0,-1,0];for(s=1;s<L.maxLevel&&_.drawingBufferWidth>L.tileResolution*Math.pow(2,s-1)*Math.tan(n/2)*.707;)s++;x.level=s;s=[1,0,0,0,1,0,0,0,1];s=f(s,-r,"z");s=f(s,-t,"x");s=f(s,e,"y");s=[s[0],s[1],s[2],0,s[3],s[4],s[5],0,s[6],s[7],s[8],0,0,0,0,1];_.uniformMatrix4fv(x.perspUniform,!1,new Float32Array(v(i)));_.uniformMatrix4fv(x.cubeUniform,!1,new Float32Array(v(s)));r=[i[0]*s[0],i[0]*s[1],i[0]*s[2],0,i[5]*s[4],i[5]*s[5],i[5]*s[6],0,i[10]*s[8],i[10]*s[9],i[10]*s[10],i[11],-s[8],-s[9],-s[10],0];x.nodeCache.sort(c);if(200<x.nodeCache.length&&x.nodeCache.length>x.currentNodes.length+50)for(i=x.nodeCache.splice(200,x.nodeCache.length-200),s=0;s<i.length;s++)_.deleteTexture(i[s].texture);x.currentNodes=[];s="fbudlr".split("");for(i=0;6>i;i++)l=new d(C[i],s[i],1,0,0,L.fullpath),m(r,l,t,e);x.currentNodes.sort(u);for(t=F.length-1;0<=t;t--)-1===x.currentNodes.indexOf(F[t].node)&&(F[t].node.textureLoad=!1,F.splice(t,1));if(0===F.length)for(t=0;t<x.currentNodes.length;t++)if(e=x.currentNodes[t],!e.texture&&!e.textureLoad){e.textureLoad=!0;setTimeout(g,0,e);break}if(!x.drawInProgress){x.drawInProgress=!0;_.clear(_.COLOR_BUFFER_BIT);for(t=0;t<x.currentNodes.length;t++)1<x.currentNodes[t].textureLoaded&&(_.bindBuffer(_.ARRAY_BUFFER,A),_.bufferData(_.ARRAY_BUFFER,new Float32Array(x.currentNodes[t].vertices),_.STATIC_DRAW),_.vertexAttribPointer(x.vertPosLocation,3,_.FLOAT,!1,0,0),_.bindBuffer(_.ARRAY_BUFFER,k),_.vertexAttribPointer(x.texCoordLocation,2,_.FLOAT,!1,0,0),_.bindTexture(_.TEXTURE_2D,x.currentNodes[t].texture),_.drawElements(_.TRIANGLES,6,_.UNSIGNED_SHORT,0));x.drawInProgress=!1}}if(a.returnImage!==o)return y.toDataURL("image/png")}else for(i=M/2,a={f:"translate3d(-"+(i+2)+"px, -"+(i+2)+"px, -"+i+"px)",b:"translate3d("+(i+2)+"px, -"+(i+2)+"px, "+i+"px) rotateX(180deg) rotateZ(180deg)",u:"translate3d(-"+(i+2)+"px, -"+i+"px, "+(i+2)+"px) rotateX(270deg)",d:"translate3d(-"+(i+2)+"px, "+i+"px, -"+(i+2)+"px) rotateX(90deg)",l:"translate3d(-"+i+"px, -"+(i+2)+"px, "+(i+2)+"px) rotateX(180deg) rotateY(90deg) rotateZ(180deg)",r:"translate3d("+i+"px, -"+(i+2)+"px, -"+(i+2)+"px) rotateY(270deg)"},n=1/Math.tan(n/2),n=n*y.clientWidth/2+"px",e="perspective("+n+") translateZ("+n+") rotateX("+t+"rad) rotateY("+e+"rad) ",n=Object.keys(a),t=0;6>t;t++)if(r=P.querySelector(".pnlm-"+n[t]+"face"))r.style.webkitTransform=e+a[n[t]],r.style.transform=e+a[n[t]]};this.isLoading=function(){if(_&&"multires"==R)for(var t=0;t<x.currentNodes.length;t++)if(!x.currentNodes[t].textureLoaded)return!0;return!1};this.getCanvas=function(){return y};var F=[],N=function(){function t(){var t=this;this.texture=this.callback=null;this.image=new Image;this.image.crossOrigin=a?a:"anonymous";var e=function(){if(0<t.image.width&&0<t.image.height){var e=t.image;_.bindTexture(_.TEXTURE_2D,t.texture);_.texImage2D(_.TEXTURE_2D,0,_.RGB,_.RGB,_.UNSIGNED_BYTE,e);_.texParameteri(_.TEXTURE_2D,_.TEXTURE_MAG_FILTER,_.LINEAR);_.texParameteri(_.TEXTURE_2D,_.TEXTURE_MIN_FILTER,_.LINEAR);_.texParameteri(_.TEXTURE_2D,_.TEXTURE_WRAP_S,_.CLAMP_TO_EDGE);_.texParameteri(_.TEXTURE_2D,_.TEXTURE_WRAP_T,_.CLAMP_TO_EDGE);_.bindTexture(_.TEXTURE_2D,null);t.callback(t.texture,!0)}else t.callback(t.texture,!1);F.length?(e=F.shift(),t.loadTexture(e.src,e.texture,e.callback)):n[o++]=t};this.image.addEventListener("load",e);this.image.addEventListener("error",e)}function e(t,e,o,n){this.node=t;this.src=e;this.texture=o;this.callback=n}var o=4,n={},a;t.prototype.loadTexture=function(t,e,o){this.texture=e;this.callback=o;this.image.src=t};for(var i=0;i<o;i++)n[i]=new t;return function(t,i,r,s){a=s;s=_.createTexture();o?n[--o].loadTexture(i,s,r):F.push(new e(t,i,s,r));return s}}()}var a="attribute vec2 a_texCoord;varying vec2 v_texCoord;void main() {gl_Position = vec4(a_texCoord, 0.0, 1.0);v_texCoord = a_texCoord;}",i="attribute vec3 a_vertCoord;attribute vec2 a_texCoord;uniform mat4 u_cubeMatrix;uniform mat4 u_perspMatrix;varying mediump vec2 v_texCoord;void main(void) {gl_Position = u_perspMatrix * u_cubeMatrix * vec4(a_vertCoord, 1.0);v_texCoord = a_texCoord;}",r="precision highp float;\nuniform float u_aspectRatio;\nuniform float u_psi;\nuniform float u_theta;\nuniform float u_f;\nuniform float u_h;\nuniform float u_v;\nuniform float u_vo;\nuniform float u_rot;\nconst float PI = 3.14159265358979323846264;\nuniform sampler2D u_image0;\nuniform sampler2D u_image1;\nuniform bool u_splitImage;\nuniform samplerCube u_imageCube;\nvarying vec2 v_texCoord;\nuniform vec4 u_backgroundColor;\nvoid main() {\nfloat x = v_texCoord.x * u_aspectRatio;\nfloat y = v_texCoord.y;\nfloat sinrot = sin(u_rot);\nfloat cosrot = cos(u_rot);\nfloat rot_x = x * cosrot - y * sinrot;\nfloat rot_y = x * sinrot + y * cosrot;\nfloat sintheta = sin(u_theta);\nfloat costheta = cos(u_theta);\nfloat a = u_f * costheta - rot_y * sintheta;\nfloat root = sqrt(rot_x * rot_x + a * a);\nfloat lambda = atan(rot_x / root, a / root) + u_psi;\nfloat phi = atan((rot_y * costheta + u_f * sintheta) / root);",s=r+"float cosphi = cos(phi);\ngl_FragColor = textureCube(u_imageCube, vec3(cosphi*sin(lambda), sin(phi), cosphi*cos(lambda)));\n}",l=r+"lambda = mod(lambda + PI, PI * 2.0) - PI;\nvec2 coord = vec2(lambda / PI, phi / (PI / 2.0));\nif(coord.x < -u_h || coord.x > u_h || coord.y < -u_v + u_vo || coord.y > u_v + u_vo)\ngl_FragColor = u_backgroundColor;\nelse {\nif(u_splitImage) {\nif(coord.x < 0.0)\ngl_FragColor = texture2D(u_image0, vec2((coord.x + u_h) / u_h, (-coord.y + u_v + u_vo) / (u_v * 2.0)));\nelse\ngl_FragColor = texture2D(u_image1, vec2((coord.x + u_h) / u_h - 1.0, (-coord.y + u_v + u_vo) / (u_v * 2.0)));\n} else {\ngl_FragColor = texture2D(u_image0, vec2((coord.x + u_h) / (u_h * 2.0), (-coord.y + u_v + u_vo) / (u_v * 2.0)));\n}\n}\n}",h="varying mediump vec2 v_texCoord;uniform sampler2D u_sampler;void main(void) {gl_FragColor = texture2D(u_sampler, v_texCoord);}";return{renderer:function(t,e,o,a){return new n(t,e,o,a)}}}(window,document);window.pannellum=function(t,e,o){function n(n,a){function i(){var n=e.createElement("div");n.innerHTML="\x3c!--[if lte IE 9]><i></i><![endif]--\x3e";if(1==n.getElementsByTagName("i").length)h();else{Ct=at.hfov;Tt=at.pitch;var a;if("cubemap"==at.type){wt=[];for(n=0;6>n;n++)wt.push(new Image),wt[n].crossOrigin=at.crossOrigin;Bt.load.lbox.style.display="block";Bt.load.lbar.style.display="none"}else if("multires"==at.type)n=JSON.parse(JSON.stringify(at.multiRes)),at.basePath&&at.multiRes.basePath&&!/^(?:[a-z]+:)?\/\//i.test(at.multiRes.basePath)?n.basePath=at.basePath+at.multiRes.basePath:at.multiRes.basePath?n.basePath=at.multiRes.basePath:at.basePath&&(n.basePath=at.basePath),wt=n;else if(!0===at.dynamic)wt=at.panorama;else{if(at.panorama===o){h(at.strings.noPanoramaError);return}wt=new Image}if("cubemap"==at.type)for(var i=6,c=function(){i--;0===i&&s()},u=function(t){var o=e.createElement("a");o.href=t.target.src;o.textContent=o.href;h(at.strings.fileAccessError.replace("%s",o.outerHTML))},n=0;n<wt.length;n++)a=at.cubeMap[n],"null"==a?(console.log("Will use background instead of missing cubemap face "+n),c()):(at.basePath&&!r(a)&&(a=at.basePath+a),wt[n].onload=c,wt[n].onerror=u,wt[n].src=tt(a));else if("multires"==at.type)s();else if(a="",at.basePath&&(a=at.basePath),!0!==at.dynamic){a=r(at.panorama)?at.panorama:a+at.panorama;wt.onload=function(){t.URL.revokeObjectURL(this.src);s()};var d=new XMLHttpRequest;d.onloadend=function(){if(200!=d.status){var t=e.createElement("a");t.href=a;t.textContent=t.href;h(at.strings.fileAccessError.replace("%s",t.outerHTML))}l(this.response);Bt.load.msg.innerHTML=""};d.onprogress=function(t){if(t.lengthComputable){Bt.load.lbarFill.style.width=t.loaded/t.total*100+"%";var e,o;1e6<t.total?(e="MB",o=(t.loaded/1e6).toFixed(2),t=(t.total/1e6).toFixed(2)):1e3<t.total?(e="kB",o=(t.loaded/1e3).toFixed(1),t=(t.total/1e3).toFixed(1)):(e="B",o=t.loaded,t=t.total);Bt.load.msg.innerHTML=o+" / "+t+" "+e}else Bt.load.lbox.style.display="block",Bt.load.lbar.style.display="none"};try{d.open("GET",a,!0)}catch(t){h(at.strings.malformedURLError)}d.responseType="blob";d.setRequestHeader("Accept","image/*,*/*;q=0.9");d.withCredentials="use-credentials"===at.crossOrigin;d.send()}at.draggable&&Dt.classList.add("pnlm-grab");Dt.classList.remove("pnlm-grabbing");St=!0===at.dynamicUpdate;at.dynamic&&St&&(wt=at.panorama,s())}}function r(t){return/^(?:[a-z]+:)?\/\//i.test(t)||"/"==t[0]||"blob:"==t.slice(0,5)}function s(){it||(it=new libpannellum.renderer(Ft));bt||(bt=!0,Nt.addEventListener("mousedown",d,!1),e.addEventListener("mousemove",f,!1),e.addEventListener("mouseup",v,!1),at.mouseZoom&&(Dt.addEventListener("mousewheel",E,!1),Dt.addEventListener("DOMMouseScroll",E,!1)),at.doubleClickZoom&&Nt.addEventListener("dblclick",m,!1),n.addEventListener("mozfullscreenchange",X,!1),n.addEventListener("webkitfullscreenchange",X,!1),n.addEventListener("msfullscreenchange",X,!1),n.addEventListener("fullscreenchange",X,!1),t.addEventListener("resize",R,!1),t.addEventListener("orientationchange",R,!1),at.disableKeyboardCtrl||(n.addEventListener("keydown",z,!1),n.addEventListener("keyup",P,!1),n.addEventListener("blur",M,!1)),e.addEventListener("mouseleave",v,!1),""===e.documentElement.style.pointerAction&&""===e.documentElement.style.touchAction?(Nt.addEventListener("pointerdown",y,!1),Nt.addEventListener("pointermove",x,!1),Nt.addEventListener("pointerup",_,!1),Nt.addEventListener("pointerleave",_,!1)):(Nt.addEventListener("touchstart",g,!1),Nt.addEventListener("touchmove",b,!1),Nt.addEventListener("touchend",w,!1)),t.navigator.pointerEnabled&&(n.style.touchAction="none"));D();j(at.hfov);setTimeout((function(){}),500)}function l(e){var n=new FileReader;n.addEventListener("loadend",(function(){var a=n.result;if(navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/)){var i=a.indexOf("ÿÂ");(0>i||65536<i)&&h(at.strings.iOS8WebGLError)}i=a.indexOf("<x:xmpmeta");if(-1<i&&!0!==at.ignoreGPanoXMP){var r=a.substring(i,a.indexOf("</x:xmpmeta>")+12),s=function(t){var e;0<=r.indexOf(t+'="')?(e=r.substring(r.indexOf(t+'="')+t.length+2),e=e.substring(0,e.indexOf('"'))):0<=r.indexOf(t+">")&&(e=r.substring(r.indexOf(t+">")+t.length+1),e=e.substring(0,e.indexOf("<")));return e!==o?Number(e):null},a=s("GPano:FullPanoWidthPixels"),i=s("GPano:CroppedAreaImageWidthPixels"),l=s("GPano:FullPanoHeightPixels"),c=s("GPano:CroppedAreaImageHeightPixels"),u=s("GPano:CroppedAreaTopPixels"),d=s("GPano:PoseHeadingDegrees"),m=s("GPano:PosePitchDegrees"),s=s("GPano:PoseRollDegrees");null!==a&&null!==i&&null!==l&&null!==c&&null!==u&&(0>Ot.indexOf("haov")&&(at.haov=i/a*360),0>Ot.indexOf("vaov")&&(at.vaov=c/l*180),0>Ot.indexOf("vOffset")&&(at.vOffset=-180*((u+c/2)/l-.5)),null!==d&&0>Ot.indexOf("northOffset")&&(at.northOffset=d,!1!==at.compass&&(at.compass=!0)),null!==m&&null!==s&&(0>Ot.indexOf("horizonPitch")&&(at.horizonPitch=m),0>Ot.indexOf("horizonRoll")&&(at.horizonRoll=s)))}wt.src=t.URL.createObjectURL(e)}));n.readAsBinaryString!==o?n.readAsBinaryString(e):n.readAsText(e)}function h(t){t===o&&(t=at.strings.genericWebGLError);Bt.errorMsg.innerHTML="<p>"+t+"</p>";Gt.load.style.display="none";Bt.load.box.style.display="none";Bt.errorMsg.style.display="table";gt=!0;vt=o;Ft.style.display="none";ot("error",t)}function c(t){var e=u(t);Ut.style.left=e.x+"px";Ut.style.top=e.y+"px";clearTimeout(c.t1);clearTimeout(c.t2);Ut.style.display="block";Ut.style.opacity=1;c.t1=setTimeout((function(){Ut.style.opacity=0}),2e3);c.t2=setTimeout((function(){Ut.style.display="none"}),2500);t.preventDefault()}function u(t){var e=n.getBoundingClientRect(),o={};o.x=(t.clientX||t.pageX)-e.left;o.y=(t.clientY||t.pageY)-e.top;return o}function d(t){t.preventDefault();n.focus();if(vt&&at.draggable){var e=u(t);if(at.hotSpotDebug){var o=p(t);console.log("Pitch: "+o[0]+", Yaw: "+o[1]+", Center Pitch: "+at.pitch+", Center Yaw: "+at.yaw+", HFOV: "+at.hfov)}Z();J();at.roll=0;xt.hfov=0;st=!0;lt=Date.now();ht=e.x;ct=e.y;dt=at.yaw;mt=at.pitch;Dt.classList.add("pnlm-grabbing");Dt.classList.remove("pnlm-grab");ot("mousedown",t);O()}}function m(t){at.minHfov===at.hfov?nt.setHfov(Ct,1e3):(t=p(t),nt.lookAt(t[0],t[1],at.minHfov,1e3))}function p(t){var e=u(t);t=it.getCanvas();var o=t.clientWidth,n=t.clientHeight;t=e.x/o*2-1;var n=(1-e.y/n*2)*n/o,a=1/Math.tan(at.hfov*Math.PI/360),i=Math.sin(at.pitch*Math.PI/180),r=Math.cos(at.pitch*Math.PI/180),e=a*r-n*i,o=Math.sqrt(t*t+e*e),n=180*Math.atan((n*r+a*i)/o)/Math.PI;t=180*Math.atan2(t/o,e/o)/Math.PI+at.yaw;-180>t&&(t+=360);180<t&&(t-=360);return[n,t]}function f(t){if(st&&vt){lt=Date.now();var e=it.getCanvas(),o=e.clientWidth,e=e.clientHeight;t=u(t);var n=180*(Math.atan(ht/o*2-1)-Math.atan(t.x/o*2-1))/Math.PI*at.hfov/90+dt;xt.yaw=(n-at.yaw)%360*.2;at.yaw=n;o=360*Math.atan(Math.tan(at.hfov/360*Math.PI)*e/o)/Math.PI;o=180*(Math.atan(t.y/e*2-1)-Math.atan(ct/e*2-1))/Math.PI*o/90+mt;xt.pitch=.2*(o-at.pitch);at.pitch=o}}function v(t){st&&(st=!1,15<Date.now()-lt&&(xt.pitch=xt.yaw=0),Dt.classList.add("pnlm-grab"),Dt.classList.remove("pnlm-grabbing"),lt=Date.now(),ot("mouseup",t))}function g(t){if(vt&&at.draggable){Z();J();at.roll=0;xt.hfov=0;var e=u(t.targetTouches[0]);ht=e.x;ct=e.y;if(2==t.targetTouches.length){var o=u(t.targetTouches[1]);ht+=.5*(o.x-e.x);ct+=.5*(o.y-e.y);ut=Math.sqrt((e.x-o.x)*(e.x-o.x)+(e.y-o.y)*(e.y-o.y))}st=!0;lt=Date.now();dt=at.yaw;mt=at.pitch;ot("touchstart",t);O()}}function b(t){if(at.draggable&&(t.preventDefault(),vt&&(lt=Date.now()),st&&vt)){var e=u(t.targetTouches[0]),o=e.x,n=e.y;2==t.targetTouches.length&&-1!=ut&&(t=u(t.targetTouches[1]),o+=.5*(t.x-e.x),n+=.5*(t.y-e.y),e=Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y)),j(at.hfov+.1*(ut-e)),ut=e);e=at.hfov/360*at.touchPanSpeedCoeffFactor;o=(ht-o)*e+dt;xt.yaw=(o-at.yaw)%360*.2;at.yaw=o;n=(n-ct)*e+mt;xt.pitch=.2*(n-at.pitch);at.pitch=n}}function w(){st=!1;150<Date.now()-lt&&(xt.pitch=xt.yaw=0);ut=-1;lt=Date.now();ot("touchend",event)}function y(t){"touch"==t.pointerType&&vt&&at.draggable&&(Xt.push(t.pointerId),qt.push({clientX:t.clientX,clientY:t.clientY}),t.targetTouches=qt,g(t),t.preventDefault())}function x(t){if("touch"==t.pointerType&&at.draggable)for(var e=0;e<Xt.length;e++)if(t.pointerId==Xt[e]){qt[e].clientX=t.clientX;qt[e].clientY=t.clientY;t.targetTouches=qt;b(t);t.preventDefault();break}}function _(t){if("touch"==t.pointerType){for(var e=!1,n=0;n<Xt.length;n++)t.pointerId==Xt[n]&&(Xt[n]=o),Xt[n]&&(e=!0);e||(Xt=[],qt=[],w());t.preventDefault()}}function E(t){vt&&("fullscreenonly"!=at.mouseZoom||ft)&&(t.preventDefault(),Z(),lt=Date.now(),t.wheelDeltaY?(j(at.hfov-.05*t.wheelDeltaY),xt.hfov=0>t.wheelDelta?1:-1):t.wheelDelta?(j(at.hfov-.05*t.wheelDelta),xt.hfov=0>t.wheelDelta?1:-1):t.detail&&(j(at.hfov+1.5*t.detail),xt.hfov=0<t.detail?1:-1),O())}function z(t){Z();lt=Date.now();J();at.roll=0;var e=t.which||t.keycode;0>at.capturedKeyNumbers.indexOf(e)||(t.preventDefault(),27==e?ft&&Y():C(e,!0))}function M(){for(var t=0;10>t;t++)pt[t]=!1}function P(t){var e=t.which||t.keycode;0>at.capturedKeyNumbers.indexOf(e)||(t.preventDefault(),C(e,!1))}function C(t,e){var o=!1;switch(t){case 109:case 189:case 17:case 173:pt[0]!=e&&(o=!0);pt[0]=e;break;case 107:case 187:case 16:case 61:pt[1]!=e&&(o=!0);pt[1]=e;break;case 38:pt[2]!=e&&(o=!0);pt[2]=e;break;case 87:pt[6]!=e&&(o=!0);pt[6]=e;break;case 40:pt[3]!=e&&(o=!0);pt[3]=e;break;case 83:pt[7]!=e&&(o=!0);pt[7]=e;break;case 37:pt[4]!=e&&(o=!0);pt[4]=e;break;case 65:pt[8]!=e&&(o=!0);pt[8]=e;break;case 39:pt[5]!=e&&(o=!0);pt[5]=e;break;case 68:pt[9]!=e&&(o=!0),pt[9]=e}o&&e&&(yt="undefined"!==typeof performance&&performance.now()?performance.now():Date.now(),O())}function T(){if(vt){var t=!1,e=at.pitch,n=at.yaw,a=at.hfov,i;i="undefined"!==typeof performance&&performance.now()?performance.now():Date.now();yt===o&&(yt=i);var r=(i-yt)*at.hfov/1700,r=Math.min(r,1);pt[0]&&!0===at.keyboardZoom&&(j(at.hfov+(.8*xt.hfov+.5)*r),t=!0);pt[1]&&!0===at.keyboardZoom&&(j(at.hfov+(.8*xt.hfov-.2)*r),t=!0);if(pt[2]||pt[6])at.pitch+=(.8*xt.pitch+.2)*r,t=!0;if(pt[3]||pt[7])at.pitch+=(.8*xt.pitch-.2)*r,t=!0;if(pt[4]||pt[8])at.yaw+=(.8*xt.yaw-.2)*r,t=!0;if(pt[5]||pt[9])at.yaw+=(.8*xt.yaw+.2)*r,t=!0;t&&(lt=Date.now());if(at.autoRotate){if(.001<i-yt){var t=(i-yt)/1e3,s=(xt.yaw/t*r-.2*at.autoRotate)*t,s=(0<-at.autoRotate?1:-1)*Math.min(Math.abs(at.autoRotate*t),Math.abs(s));at.yaw+=s}at.autoRotateStopDelay&&(at.autoRotateStopDelay-=i-yt,0>=at.autoRotateStopDelay&&(at.autoRotateStopDelay=!1,Pt=at.autoRotate,at.autoRotate=0))}Lt.pitch&&(L("pitch"),e=at.pitch);Lt.yaw&&(L("yaw"),n=at.yaw);Lt.hfov&&(L("hfov"),a=at.hfov);0<r&&!at.autoRotate&&(t=1-at.friction,pt[4]||pt[5]||pt[8]||pt[9]||Lt.yaw||(at.yaw+=xt.yaw*r*t),pt[2]||pt[3]||pt[6]||pt[7]||Lt.pitch||(at.pitch+=xt.pitch*r*t),pt[0]||pt[1]||Lt.hfov||j(at.hfov+xt.hfov*r*t));yt=i;0<r&&(xt.yaw=.8*xt.yaw+(at.yaw-n)/r*.2,xt.pitch=.8*xt.pitch+(at.pitch-e)/r*.2,xt.hfov=.8*xt.hfov+(at.hfov-a)/r*.2,e=at.autoRotate?Math.abs(at.autoRotate):5,xt.yaw=Math.min(e,Math.max(xt.yaw,-e)),xt.pitch=Math.min(e,Math.max(xt.pitch,-e)),xt.hfov=Math.min(e,Math.max(xt.hfov,-e)));pt[0]&&pt[1]&&(xt.hfov=0);(pt[2]||pt[6])&&(pt[3]||pt[7])&&(xt.pitch=0);(pt[4]||pt[8])&&(pt[5]||pt[9])&&(xt.yaw=0)}}function L(t){var e=Lt[t],o=Math.min(1,Math.max((Date.now()-e.startTime)/1e3/(e.duration/1e3),0)),o=e.startPosition+at.animationTimingFunction(o)*(e.endPosition-e.startPosition);if(e.endPosition>e.startPosition&&o>=e.endPosition||e.endPosition<e.startPosition&&o<=e.endPosition||e.endPosition===e.startPosition)o=e.endPosition,xt[t]=0,delete Lt[t];at[t]=o}function R(){X("resize")}function O(){_t||(_t=!0,S())}function S(){if(!kt)if(A(),Mt&&clearTimeout(Mt),st||!0===Et)requestAnimationFrame(S);else if(pt[0]||pt[1]||pt[2]||pt[3]||pt[4]||pt[5]||pt[6]||pt[7]||pt[8]||pt[9]||at.autoRotate||Lt.pitch||Lt.yaw||Lt.hfov||.01<Math.abs(xt.yaw)||.01<Math.abs(xt.pitch)||.01<Math.abs(xt.hfov))T(),0<=at.autoRotateInactivityDelay&&Pt&&Date.now()-lt>at.autoRotateInactivityDelay&&!at.autoRotate&&(at.autoRotate=Pt,nt.lookAt(Tt,o,Ct,3e3)),requestAnimationFrame(S);else if(it&&(it.isLoading()||!0===at.dynamic&&St))requestAnimationFrame(S);else{ot("animatefinished",{pitch:nt.getPitch(),yaw:nt.getYaw(),hfov:nt.getHfov()});_t=!1;yt=o;var t=at.autoRotateInactivityDelay-(Date.now()-lt);0<t?Mt=setTimeout((function(){at.autoRotate=Pt;nt.lookAt(Tt,o,Ct,3e3);O()}),t):0<=at.autoRotateInactivityDelay&&Pt&&(at.autoRotate=Pt,nt.lookAt(Tt,o,Ct,3e3),O())}}function A(){var t;if(vt){var e=it.getCanvas();!1!==at.autoRotate&&(360<at.yaw?at.yaw-=360:-360>at.yaw&&(at.yaw+=360));t=at.yaw;var n=0;if(at.avoidShowingBackground){var a=at.hfov/2,i=180*Math.atan2(Math.tan(a/180*Math.PI),e.width/e.height)/Math.PI;at.vaov>at.haov?Math.min(Math.cos((at.pitch-a)/180*Math.PI),Math.cos((at.pitch+a)/180*Math.PI)):n=a*(1-Math.min(Math.cos((at.pitch-i)/180*Math.PI),Math.cos((at.pitch+i)/180*Math.PI)))}var a=at.maxYaw-at.minYaw,i=-180,r=180;360>a&&(i=at.minYaw+at.hfov/2+n,r=at.maxYaw-at.hfov/2-n,a<at.hfov&&(i=r=(i+r)/2),at.yaw=Math.max(i,Math.min(r,at.yaw)));!1===at.autoRotate&&(360<at.yaw?at.yaw-=360:-360>at.yaw&&(at.yaw+=360));!1!==at.autoRotate&&t!=at.yaw&&yt!==o&&(at.autoRotate*=-1);t=2*Math.atan(Math.tan(at.hfov/180*Math.PI*.5)/(e.width/e.height))/Math.PI*180;e=at.minPitch+t/2;n=at.maxPitch-t/2;at.maxPitch-at.minPitch<t&&(e=n=(e+n)/2);isNaN(e)&&(e=-90);isNaN(n)&&(n=90);at.pitch=Math.max(e,Math.min(n,at.pitch));it.render(at.pitch*Math.PI/180,at.yaw*Math.PI/180,at.hfov*Math.PI/180,{roll:at.roll*Math.PI/180});at.hotSpots.forEach(H);at.compass&&(Yt.style.transform="rotate("+(-at.yaw-at.northOffset)+"deg)",Yt.style.webkitTransform="rotate("+(-at.yaw-at.northOffset)+"deg)")}}function k(t,e,o,n){this.w=t;this.x=e;this.y=o;this.z=n}function I(e){var o;o=e.alpha;var n=e.beta;e=e.gamma;n=[n?n*Math.PI/180/2:0,e?e*Math.PI/180/2:0,o?o*Math.PI/180/2:0];o=[Math.cos(n[0]),Math.cos(n[1]),Math.cos(n[2])];n=[Math.sin(n[0]),Math.sin(n[1]),Math.sin(n[2])];o=new k(o[0]*o[1]*o[2]-n[0]*n[1]*n[2],n[0]*o[1]*o[2]-o[0]*n[1]*n[2],o[0]*n[1]*o[2]+n[0]*o[1]*n[2],o[0]*o[1]*n[2]+n[0]*n[1]*o[2]);o=o.multiply(new k(Math.sqrt(.5),-Math.sqrt(.5),0,0));n=t.orientation?-t.orientation*Math.PI/180/2:0;o=o.multiply(new k(Math.cos(n),0,-Math.sin(n),0)).toEulerAngles();"number"==typeof Et&&10>Et?Et+=1:10===Et?(zt=o[2]/Math.PI*180+at.yaw,Et=!0,requestAnimationFrame(S)):(at.pitch=o[0]/Math.PI*180,at.roll=-o[1]/Math.PI*180,at.yaw=-o[2]/Math.PI*180+zt)}function D(){try{var t={};at.horizonPitch!==o&&(t.horizonPitch=at.horizonPitch*Math.PI/180);at.horizonRoll!==o&&(t.horizonRoll=at.horizonRoll*Math.PI/180);at.backgroundColor!==o&&(t.backgroundColor=at.backgroundColor);it.init(wt,at.type,at.dynamic,at.haov*Math.PI/180,at.vaov*Math.PI/180,at.vOffset*Math.PI/180,F,t);!0!==at.dynamic&&(wt=o)}catch(t){if("webgl error"==t.type||"no webgl"==t.type)h();else if("webgl size error"==t.type)h(at.strings.textureSizeError.replace("%s",t.width).replace("%s",t.maxWidth));else throw h(at.strings.unknownError),t}}function F(){if(at.sceneFadeDuration&&it.fadeImg!==o){it.fadeImg.style.opacity=0;var t=it.fadeImg;delete it.fadeImg;setTimeout((function(){Ft.removeChild(t);ot("scenechangefadedone")}),at.sceneFadeDuration)}Yt.style.display=at.compass?"inline":"none";U();Bt.load.box.style.display="none";rt!==o&&(Ft.removeChild(rt),rt=o);vt=!0;ot("load");O()}function N(t){t.pitch=Number(t.pitch)||0;t.yaw=Number(t.yaw)||0;var o=e.createElement("div");o.className="pnlm-hotspot-base";o.className=t.cssClass?o.className+(" "+t.cssClass):o.className+(" pnlm-hotspot pnlm-sprite pnlm-"+$(t.type));var n=e.createElement("span");t.text&&(n.innerHTML=$(t.text));var a;if(t.video){a=e.createElement("video");var i=t.video;at.basePath&&!r(i)&&(i=at.basePath+i);a.src=tt(i);a.controls=!0;a.style.width=t.width+"px";Ft.appendChild(o);n.appendChild(a)}else if(t.image){i=t.image;at.basePath&&!r(i)&&(i=at.basePath+i);a=e.createElement("a");a.href=tt(t.URL?t.URL:i,!0);a.target="_blank";n.appendChild(a);var s=e.createElement("img");s.src=tt(i);s.style.width=t.width+"px";s.style.paddingTop="5px";Ft.appendChild(o);a.appendChild(s);n.style.maxWidth="initial"}else if(t.URL){a=e.createElement("a");a.href=tt(t.URL,!0);if(t.attributes)for(i in t.attributes)a.setAttribute(i,t.attributes[i]);else a.target="_blank";Ft.appendChild(a);o.className+=" pnlm-pointer";n.className+=" pnlm-pointer";a.appendChild(o)}else t.sceneId&&(o.onclick=o.ontouchend=function(){o.clicked||(o.clicked=!0,K(t.sceneId,t.targetPitch,t.targetYaw,t.targetHfov));return!1},o.className+=" pnlm-pointer",n.className+=" pnlm-pointer"),Ft.appendChild(o);if(t.createTooltipFunc)t.createTooltipFunc(o,t.createTooltipArgs);else if(t.text||t.video||t.image)o.classList.add("pnlm-tooltip"),o.appendChild(n),n.style.width=n.scrollWidth-20+"px",n.style.marginLeft=-(n.scrollWidth-o.offsetWidth)/2+"px",n.style.marginTop=-n.scrollHeight-12+"px";t.clickHandlerFunc&&(o.addEventListener("click",(function(e){t.clickHandlerFunc(e,t.clickHandlerArgs)}),"false"),o.className+=" pnlm-pointer",n.className+=" pnlm-pointer");t.div=o}function U(){At||(at.hotSpots?(at.hotSpots=at.hotSpots.sort((function(t,e){return t.pitch<e.pitch})),at.hotSpots.forEach(N)):at.hotSpots=[],At=!0,at.hotSpots.forEach(H))}function B(){var t=at.hotSpots;At=!1;delete at.hotSpots;if(t)for(var e=0;e<t.length;e++){var o=t[e].div;if(o){for(;o.parentNode&&o.parentNode!=Ft;)o=o.parentNode;Ft.removeChild(o)}delete t[e].div}}function H(t){var e=Math.sin(t.pitch*Math.PI/180),o=Math.cos(t.pitch*Math.PI/180),n=Math.sin(at.pitch*Math.PI/180),a=Math.cos(at.pitch*Math.PI/180),i=Math.cos((-t.yaw+at.yaw)*Math.PI/180),r=e*n+o*i*a;if(90>=t.yaw&&-90<t.yaw&&0>=r||(90<t.yaw||-90>=t.yaw)&&0>=r)t.div.style.visibility="hidden";else{var s=Math.sin((-t.yaw+at.yaw)*Math.PI/180),l=Math.tan(at.hfov*Math.PI/360);t.div.style.visibility="visible";var h=it.getCanvas(),c=h.clientWidth,h=h.clientHeight,e=[-c/l*s*o/r/2,-c/l*(e*a-o*i*n)/r/2],o=Math.sin(at.roll*Math.PI/180),n=Math.cos(at.roll*Math.PI/180),e=[e[0]*n-e[1]*o,e[0]*o+e[1]*n];e[0]+=(c-t.div.offsetWidth)/2;e[1]+=(h-t.div.offsetHeight)/2;c="translate("+e[0]+"px, "+e[1]+"px) translateZ(9999px) rotate("+at.roll+"deg)";t.scale&&(c+=" scale("+Ct/at.hfov/r+")");t.div.style.webkitTransform=c;t.div.style.MozTransform=c;t.div.style.transform=c}}function G(t){at={};var e,o,n="haov vaov vOffset northOffset horizonPitch horizonRoll".split(" ");Ot=[];for(e in It)It.hasOwnProperty(e)&&(at[e]=It[e]);for(e in a.default)if(a.default.hasOwnProperty(e))if("strings"==e)for(o in a.default.strings)a.default.strings.hasOwnProperty(o)&&(at.strings[o]=$(a.default.strings[o]));else at[e]=a.default[e],0<=n.indexOf(e)&&Ot.push(e);if(null!==t&&""!==t&&a.scenes&&a.scenes[t]){var i=a.scenes[t];for(e in i)if(i.hasOwnProperty(e))if("strings"==e)for(o in i.strings)i.strings.hasOwnProperty(o)&&(at.strings[o]=$(i.strings[o]));else at[e]=i[e],0<=n.indexOf(e)&&Ot.push(e);at.scene=t}for(e in a)if(a.hasOwnProperty(e))if("strings"==e)for(o in a.strings)a.strings.hasOwnProperty(o)&&(at.strings[o]=$(a.strings[o]));else at[e]=a[e],0<=n.indexOf(e)&&Ot.push(e)}function W(t){if((t=t?t:!1)&&"preview"in at){var n=at.preview;at.basePath&&!r(n)&&(n=at.basePath+n);rt=e.createElement("div");rt.className="pnlm-preview-img";rt.style.backgroundImage="url('"+tt(n).replace(/"/g,"%22").replace(/'/g,"%27")+"')";Ft.appendChild(rt)}var n=at.title,a=at.author;t&&("previewTitle"in at&&(at.title=at.previewTitle),"previewAuthor"in at&&(at.author=at.previewAuthor));at.hasOwnProperty("title")||(Bt.title.innerHTML="");at.hasOwnProperty("author")||(Bt.author.innerHTML="");at.hasOwnProperty("title")||at.hasOwnProperty("author")||(Bt.container.style.display="none");Gt.load.innerHTML="<p>"+at.strings.loadButtonLabel+"</p>";Bt.load.boxp.innerHTML=at.strings.loadingLabel;for(var s in at)if(at.hasOwnProperty(s))switch(s){case"title":Bt.title.innerHTML=$(at[s]);Bt.container.style.display="inline";break;case"author":var l=$(at[s]);at.authorURL&&(l=e.createElement("a"),l.href=tt(at.authorURL,!0),l.target="_blank",l.innerHTML=$(at[s]),l=l.outerHTML);Bt.author.innerHTML=at.strings.bylineLabel.replace("%s",l);Bt.container.style.display="inline";break;case"fallback":l=e.createElement("a");l.href=tt(at[s],!0);l.target="_blank";l.textContent="Click here to view this panorama in an alternative viewer.";var h=e.createElement("p");h.textContent="Your browser does not support WebGL.";h.appendChild(e.createElement("br"));h.appendChild(l);Bt.errorMsg.innerHTML="";Bt.errorMsg.appendChild(h);break;case"hfov":j(Number(at[s]));break;case"autoLoad":!0===at[s]&&it===o&&(Bt.load.box.style.display="inline",Gt.load.style.display="none",i());break;case"showZoomCtrl":Gt.zoom.style.display=at[s]&&!1!=at.showControls?"block":"none";break;case"showFullscreenCtrl":Gt.fullscreen.style.display=at[s]&&!1!=at.showControls&&("fullscreen"in e||"mozFullScreen"in e||"webkitIsFullScreen"in e||"msFullscreenElement"in e)?"block":"none";break;case"hotSpotDebug":Ht.style.display=at[s]?"block":"none";break;case"showControls":at[s]||(Gt.orientation.style.display="none",Gt.zoom.style.display="none",Gt.fullscreen.style.display="none");break;case"orientationOnByDefault":at[s]&&Q()}t&&(n?at.title=n:delete at.title,a?at.author=a:delete at.author)}function Y(){if(vt&&!gt)if(ft)e.exitFullscreen?e.exitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.webkitCancelFullScreen?e.webkitCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen();else try{n.requestFullscreen?n.requestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen?n.msRequestFullscreen():n.webkitRequestFullScreen()}catch(t){}}function X(t){e.fullscreenElement||e.fullscreen||e.mozFullScreen||e.webkitIsFullScreen||e.msFullscreenElement?(Gt.fullscreen.classList.add("pnlm-fullscreen-toggle-button-active"),ft=!0):(Gt.fullscreen.classList.remove("pnlm-fullscreen-toggle-button-active"),ft=!1);"resize"!==t&&ot("fullscreenchange",ft);it.resize();j(at.hfov);O()}function q(t){var e=at.minHfov;"multires"==at.type&&it&&!at.multiResMinHfov&&(e=Math.min(e,it.getCanvas().width/(at.multiRes.cubeResolution/90*.9)));if(e>at.maxHfov)return console.log("HFOV bounds do not make sense (minHfov > maxHfov)."),at.hfov;var o=at.hfov,o=t<e?e:t>at.maxHfov?at.maxHfov:t;at.avoidShowingBackground&&it&&(t=it.getCanvas(),o=Math.min(o,360*Math.atan(Math.tan((at.maxPitch-at.minPitch)/360*Math.PI)/t.height*t.width)/Math.PI));return o}function j(t){at.hfov=q(t);ot("zoomchange",at.hfov)}function Z(){Lt={};Pt=at.autoRotate?at.autoRotate:Pt;at.autoRotate=!1}function V(){gt&&(Bt.load.box.style.display="none",Bt.errorMsg.style.display="none",gt=!1,Ft.style.display="block",ot("errorcleared"));vt=!1;Gt.load.style.display="none";Bt.load.box.style.display="inline";i()}function K(t,e,n,i,r){vt||(r=!0);vt=!1;Lt={};var s,l;if(at.sceneFadeDuration&&!r&&(s=it.render(at.pitch*Math.PI/180,at.yaw*Math.PI/180,at.hfov*Math.PI/180,{returnImage:!0}),s!==o)){r=new Image;r.className="pnlm-fade-img";r.style.transition="opacity "+at.sceneFadeDuration/1e3+"s";r.style.width="100%";r.style.height="100%";r.onload=function(){K(t,e,n,i,!0)};r.src=s;Ft.appendChild(r);it.fadeImg=r;return}r="same"===e?at.pitch:e;s="same"===n?at.yaw:"sameAzimuth"===n?at.yaw+(at.northOffset||0)-(a.scenes[t].northOffset||0):n;l="same"===i?at.hfov:i;B();G(t);xt.yaw=xt.pitch=xt.hfov=0;W();r!==o&&(at.pitch=r);s!==o&&(at.yaw=s);l!==o&&(at.hfov=l);ot("scenechange",t);V()}function J(){t.removeEventListener("deviceorientation",I);Gt.orientation.classList.remove("pnlm-orientation-button-active");Et=!1}function Q(){"function"===typeof DeviceMotionEvent.requestPermission?DeviceOrientationEvent.requestPermission().then((function(e){"granted"==e&&(Et=1,t.addEventListener("deviceorientation",I),Gt.orientation.classList.add("pnlm-orientation-button-active"))})):(Et=1,t.addEventListener("deviceorientation",I),Gt.orientation.classList.add("pnlm-orientation-button-active"))}function $(t){return a.escapeHTML?String(t).split(/&/g).join("&").split('"').join(""").split("'").join("'").split("<").join("<").split(">").join(">").split("/").join("/").split("\n").join("<br>"):String(t).split("\n").join("<br>")}function tt(t,e){try{var o=decodeURIComponent(et(t)).replace(/[^\w:]/g,"").toLowerCase()}catch(t){return"about:blank"}return 0===o.indexOf("javascript:")||0===o.indexOf("vbscript:")?(console.log("Script URL removed."),"about:blank"):e&&0===o.indexOf("data:")?(console.log("Data URI removed from link."),"about:blank"):t}function et(t){return t.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,(function(t,e){e=e.toLowerCase();return"colon"===e?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""}))}function ot(t){if(t in Rt)for(var e=Rt[t].length;0<e;e--)Rt[t][Rt[t].length-e].apply(null,[].slice.call(arguments,1))}var nt=this,at,it,rt,st=!1,lt=Date.now(),ht=0,ct=0,ut=-1,dt=0,mt=0,pt=Array(10),ft=!1,vt,gt=!1,bt=!1,wt,yt,xt={yaw:0,pitch:0,hfov:0},_t=!1,Et=!1,zt=0,Mt,Pt=0,Ct,Tt,Lt={},Rt={},Ot=[],St=!1,At=!1,kt=!1,It={hfov:100,minHfov:50,multiResMinHfov:!1,maxHfov:120,pitch:0,minPitch:o,maxPitch:o,yaw:0,minYaw:-180,maxYaw:180,roll:0,haov:360,vaov:180,vOffset:0,autoRotate:!1,autoRotateInactivityDelay:-1,autoRotateStopDelay:o,type:"equirectangular",northOffset:0,showFullscreenCtrl:!0,dynamic:!1,dynamicUpdate:!1,doubleClickZoom:!0,keyboardZoom:!0,mouseZoom:!0,showZoomCtrl:!0,autoLoad:!1,showControls:!0,orientationOnByDefault:!1,hotSpotDebug:!1,backgroundColor:[0,0,0],avoidShowingBackground:!1,animationTimingFunction:function(t){return.5>t?2*t*t:-1+(4-2*t)*t},draggable:!0,disableKeyboardCtrl:!1,crossOrigin:"anonymous",touchPanSpeedCoeffFactor:1,capturedKeyNumbers:[16,17,27,37,38,39,40,61,65,68,83,87,107,109,173,187,189],friction:.15,strings:{loadButtonLabel:"Click to<br>Load<br>Panorama",loadingLabel:"Loading...",bylineLabel:"by %s",noPanoramaError:"No panorama image was specified.",fileAccessError:"The file %s could not be accessed.",malformedURLError:"There is something wrong with the panorama URL.",iOS8WebGLError:"Due to iOS 8's broken WebGL implementation, only progressive encoded JPEGs work for your device (this panorama uses standard encoding).",genericWebGLError:"Your browser does not have the necessary WebGL support to display this panorama.",textureSizeError:"This panorama is too big for your device! It's %spx wide, but your device only supports images up to %spx wide. Try another device. (If you're the author, try scaling down the image.)",unknownError:"Unknown error. Check developer console."}};n="string"===typeof n?e.getElementById(n):n;n.classList.add("pnlm-container");n.tabIndex=0;var Dt=e.createElement("div");Dt.className="pnlm-ui";n.appendChild(Dt);var Ft=e.createElement("div");Ft.className="pnlm-render-container";n.appendChild(Ft);var Nt=e.createElement("div");Nt.className="pnlm-dragfix";Dt.appendChild(Nt);var Ut=e.createElement("span");Ut.className="pnlm-about-msg";Ut.innerHTML='<a href="https://pannellum.org/" target="_blank">Pannellum</a> 2.5.6';Dt.appendChild(Ut);Nt.addEventListener("contextmenu",c);var Bt={},Ht=e.createElement("div");Ht.className="pnlm-sprite pnlm-hot-spot-debug-indicator";Dt.appendChild(Ht);Bt.container=e.createElement("div");Bt.container.className="pnlm-panorama-info";Bt.title=e.createElement("div");Bt.title.className="pnlm-title-box";Bt.container.appendChild(Bt.title);Bt.author=e.createElement("div");Bt.author.className="pnlm-author-box";Bt.container.appendChild(Bt.author);Dt.appendChild(Bt.container);Bt.load={};Bt.load.box=e.createElement("div");Bt.load.box.className="pnlm-load-box";Bt.load.boxp=e.createElement("p");Bt.load.box.appendChild(Bt.load.boxp);Bt.load.lbox=e.createElement("div");Bt.load.lbox.className="pnlm-lbox";Bt.load.lbox.innerHTML='<div class="pnlm-loading"></div>';Bt.load.box.appendChild(Bt.load.lbox);Bt.load.lbar=e.createElement("div");Bt.load.lbar.className="pnlm-lbar";Bt.load.lbarFill=e.createElement("div");Bt.load.lbarFill.className="pnlm-lbar-fill";Bt.load.lbar.appendChild(Bt.load.lbarFill);Bt.load.box.appendChild(Bt.load.lbar);Bt.load.msg=e.createElement("p");Bt.load.msg.className="pnlm-lmsg";Bt.load.box.appendChild(Bt.load.msg);Dt.appendChild(Bt.load.box);Bt.errorMsg=e.createElement("div");Bt.errorMsg.className="pnlm-error-msg pnlm-info-box";Dt.appendChild(Bt.errorMsg);var Gt={};Gt.container=e.createElement("div");Gt.container.className="pnlm-controls-container";Dt.appendChild(Gt.container);Gt.load=e.createElement("div");Gt.load.className="pnlm-load-button";Gt.load.addEventListener("click",(function(){W();V()}));Dt.appendChild(Gt.load);Gt.zoom=e.createElement("div");Gt.zoom.className="pnlm-zoom-controls pnlm-controls";Gt.zoomIn=e.createElement("div");Gt.zoomIn.className="pnlm-zoom-in pnlm-sprite pnlm-control";Gt.zoomIn.addEventListener("click",(function(){vt&&(j(at.hfov-5),O())}));Gt.zoom.appendChild(Gt.zoomIn);Gt.zoomOut=e.createElement("div");Gt.zoomOut.className="pnlm-zoom-out pnlm-sprite pnlm-control";Gt.zoomOut.addEventListener("click",(function(){vt&&(j(at.hfov+5),O())}));Gt.zoom.appendChild(Gt.zoomOut);Gt.container.appendChild(Gt.zoom);Gt.fullscreen=e.createElement("div");Gt.fullscreen.addEventListener("click",Y);Gt.fullscreen.className="pnlm-fullscreen-toggle-button pnlm-sprite pnlm-fullscreen-toggle-button-inactive pnlm-controls pnlm-control";(e.fullscreenEnabled||e.mozFullScreenEnabled||e.webkitFullscreenEnabled||e.msFullscreenEnabled)&&Gt.container.appendChild(Gt.fullscreen);Gt.orientation=e.createElement("div");Gt.orientation.addEventListener("click",(function(t){Et?J():Q()}));Gt.orientation.addEventListener("mousedown",(function(t){t.stopPropagation()}));Gt.orientation.addEventListener("touchstart",(function(t){t.stopPropagation()}));Gt.orientation.addEventListener("pointerdown",(function(t){t.stopPropagation()}));Gt.orientation.className="pnlm-orientation-button pnlm-orientation-button-inactive pnlm-sprite pnlm-controls pnlm-control";var Wt=!1;t.DeviceOrientationEvent&&"https:"==location.protocol&&0<=navigator.userAgent.toLowerCase().indexOf("mobi")&&(Gt.container.appendChild(Gt.orientation),Wt=!0);var Yt=e.createElement("div");Yt.className="pnlm-compass pnlm-controls pnlm-control";Dt.appendChild(Yt);a.firstScene?G(a.firstScene):a.default&&a.default.firstScene?G(a.default.firstScene):G(null);W(!0);var Xt=[],qt=[];k.prototype.multiply=function(t){return new k(this.w*t.w-this.x*t.x-this.y*t.y-this.z*t.z,this.x*t.w+this.w*t.x+this.y*t.z-this.z*t.y,this.y*t.w+this.w*t.y+this.z*t.x-this.x*t.z,this.z*t.w+this.w*t.z+this.x*t.y-this.y*t.x)};k.prototype.toEulerAngles=function(){var t=Math.atan2(2*(this.w*this.x+this.y*this.z),1-2*(this.x*this.x+this.y*this.y)),e=Math.asin(2*(this.w*this.y-this.z*this.x)),o=Math.atan2(2*(this.w*this.z+this.x*this.y),1-2*(this.y*this.y+this.z*this.z));return[t,e,o]};this.isLoaded=function(){return Boolean(vt)};this.getPitch=function(){return at.pitch};this.setPitch=function(t,e,n,a){lt=Date.now();if(1e-6>=Math.abs(t-at.pitch))return"function"==typeof n&&n(a),this;(e=e==o?1e3:Number(e))?(Lt.pitch={startTime:Date.now(),startPosition:at.pitch,endPosition:t,duration:e},"function"==typeof n&&setTimeout((function(){n(a)}),e)):at.pitch=t;O();return this};this.getPitchBounds=function(){return[at.minPitch,at.maxPitch]};this.setPitchBounds=function(t){at.minPitch=Math.max(-90,Math.min(t[0],90));at.maxPitch=Math.max(-90,Math.min(t[1],90));return this};this.getYaw=function(){return(at.yaw+540)%360-180};this.setYaw=function(t,e,n,a){lt=Date.now();if(1e-6>=Math.abs(t-at.yaw))return"function"==typeof n&&n(a),this;e=e==o?1e3:Number(e);t=(t+180)%360-180;e?(180<at.yaw-t?t+=360:180<t-at.yaw&&(t-=360),Lt.yaw={startTime:Date.now(),startPosition:at.yaw,endPosition:t,duration:e},"function"==typeof n&&setTimeout((function(){n(a)}),e)):at.yaw=t;O();return this};this.getYawBounds=function(){return[at.minYaw,at.maxYaw]};this.setYawBounds=function(t){at.minYaw=Math.max(-360,Math.min(t[0],360));at.maxYaw=Math.max(-360,Math.min(t[1],360));return this};this.getHfov=function(){return at.hfov};this.setHfov=function(t,e,n,a){lt=Date.now();if(1e-6>=Math.abs(t-at.hfov))return"function"==typeof n&&n(a),this;(e=e==o?1e3:Number(e))?(Lt.hfov={startTime:Date.now(),startPosition:at.hfov,endPosition:q(t),duration:e},"function"==typeof n&&setTimeout((function(){n(a)}),e)):j(t);O();return this};this.getHfovBounds=function(){return[at.minHfov,at.maxHfov]};this.setHfovBounds=function(t){at.minHfov=Math.max(0,t[0]);at.maxHfov=Math.max(0,t[1]);return this};this.lookAt=function(t,e,n,a,i,r){a=a==o?1e3:Number(a);t!==o&&1e-6<Math.abs(t-at.pitch)&&(this.setPitch(t,a,i,r),i=o);e!==o&&1e-6<Math.abs(e-at.yaw)&&(this.setYaw(e,a,i,r),i=o);n!==o&&1e-6<Math.abs(n-at.hfov)&&(this.setHfov(n,a,i,r),i=o);"function"==typeof i&&i(r);return this};this.getNorthOffset=function(){return at.northOffset};this.setNorthOffset=function(t){at.northOffset=Math.min(360,Math.max(0,t));O();return this};this.getHorizonRoll=function(){return at.horizonRoll};this.setHorizonRoll=function(t){at.horizonRoll=Math.min(90,Math.max(-90,t));it.setPose(at.horizonPitch*Math.PI/180,at.horizonRoll*Math.PI/180);O();return this};this.getHorizonPitch=function(){return at.horizonPitch};this.setHorizonPitch=function(t){at.horizonPitch=Math.min(90,Math.max(-90,t));it.setPose(at.horizonPitch*Math.PI/180,at.horizonRoll*Math.PI/180);O();return this};this.startAutoRotate=function(t,e){t=t||Pt||1;e=e===o?Tt:e;at.autoRotate=t;nt.lookAt(e,o,Ct,3e3);O();return this};this.stopAutoRotate=function(){Pt=at.autoRotate?at.autoRotate:Pt;at.autoRotate=!1;at.autoRotateInactivityDelay=-1;return this};this.stopMovement=function(){Z();xt={yaw:0,pitch:0,hfov:0}};this.getRenderer=function(){return it};this.setUpdate=function(t){St=!0===t;it===o?s():O();return this};this.mouseEventToCoords=function(t){return p(t)};this.loadScene=function(t,e,o,n){!1!==vt&&K(t,e,o,n);return this};this.getScene=function(){return at.scene};this.addScene=function(t,e){a.scenes[t]=e;return this};this.removeScene=function(t){if(at.scene===t||!a.scenes.hasOwnProperty(t))return!1;delete a.scenes[t];return!0};this.toggleFullscreen=function(){Y();return this};this.getConfig=function(){return at};this.getContainer=function(){return n};this.addHotSpot=function(t,e){if(e===o&&at.scene===o)at.hotSpots.push(t);else{var n=e!==o?e:at.scene;if(a.scenes.hasOwnProperty(n))a.scenes[n].hasOwnProperty("hotSpots")||(a.scenes[n].hotSpots=[],n==at.scene&&(at.hotSpots=a.scenes[n].hotSpots)),a.scenes[n].hotSpots.push(t);else throw"Invalid scene ID!"}if(e===o||at.scene==e)N(t),vt&&H(t);return this};this.removeHotSpot=function(t,e){if(e===o||at.scene==e){if(!at.hotSpots)return!1;for(var n=0;n<at.hotSpots.length;n++)if(at.hotSpots[n].hasOwnProperty("id")&&at.hotSpots[n].id===t){for(var i=at.hotSpots[n].div;i.parentNode!=Ft;)i=i.parentNode;Ft.removeChild(i);delete at.hotSpots[n].div;at.hotSpots.splice(n,1);return!0}}else if(a.scenes.hasOwnProperty(e)){if(!a.scenes[e].hasOwnProperty("hotSpots"))return!1;for(n=0;n<a.scenes[e].hotSpots.length;n++)if(a.scenes[e].hotSpots[n].hasOwnProperty("id")&&a.scenes[e].hotSpots[n].id===t)return a.scenes[e].hotSpots.splice(n,1),!0}else return!1};this.resize=function(){it&&R()};this.isLoaded=function(){return vt};this.isOrientationSupported=function(){return Wt||!1};this.stopOrientation=function(){J()};this.startOrientation=function(){Wt&&Q()};this.isOrientationActive=function(){return Boolean(Et)};this.on=function(t,e){Rt[t]=Rt[t]||[];Rt[t].push(e);return this};this.off=function(t,e){if(!t)return Rt={},this;if(e){var o=Rt[t].indexOf(e);0<=o&&Rt[t].splice(o,1);0==Rt[t].length&&delete Rt[t]}else delete Rt[t];return this};this.destroy=function(){kt=!0;clearTimeout(Mt);it&&it.destroy();bt&&(e.removeEventListener("mousemove",f,!1),e.removeEventListener("mouseup",v,!1),n.removeEventListener("mozfullscreenchange",X,!1),n.removeEventListener("webkitfullscreenchange",X,!1),n.removeEventListener("msfullscreenchange",X,!1),n.removeEventListener("fullscreenchange",X,!1),t.removeEventListener("resize",R,!1),t.removeEventListener("orientationchange",R,!1),n.removeEventListener("keydown",z,!1),n.removeEventListener("keyup",P,!1),n.removeEventListener("blur",M,!1),e.removeEventListener("mouseleave",v,!1));n.innerHTML="";n.classList.remove("pnlm-container")}}return{viewer:function(t,e){return new n(t,e)}}}(window,document);var stzhPanoramaCss=':host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular);color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block;}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}:host .has-focus{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}:host .stzh-fylingfocus-focused{outline-style:none !important}:host .stzh-fylingfocus-focused::-moz-focus-inner{border:0 !important}.pnlm-container{margin:0;padding:0;overflow:hidden;position:relative;cursor:default;width:100%;height:100%;font-family:Helvetica, "Nimbus Sans L", "Liberation Sans", Arial, sans-serif;background:#f4f4f4 url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2267%22%20height%3D%22100%22%20viewBox%3D%220%200%2067%20100%22%3E%0A%3Cpath%20stroke%3D%22%23ccc%22%20fill%3D%22none%22%20d%3D%22M33.5%2C50%2C0%2C63%2C33.5%2C75%2C67%2C63%2C33.5%2C50m-33.5-50%2C67%2C25m-0.5%2C0%2C0%2C75m-66.5-75%2C67-25m-33.5%2C75%2C0%2C25m0-100%2C0%2C50%22%2F%3E%0A%3C%2Fsvg%3E%0A") repeat;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none;outline:0;line-height:1.4;contain:content}.pnlm-container *{-webkit-box-sizing:content-box;box-sizing:content-box}.pnlm-ui{position:absolute;width:100%;height:100%;z-index:1}.pnlm-grab{cursor:-webkit-grab;cursor:grab;cursor:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2226%22%20width%3D%2226%22%3E%0A%3Cpath%20stroke%3D%22%23000%22%20stroke-width%3D%221px%22%20fill%3D%22%23fff%22%20d%3D%22m15.3%2020.5s6.38-6.73%204.64-8.24-3.47%201.01-3.47%201.01%203.61-5.72%201.41-6.49c-2.2-0.769-3.33%204.36-3.33%204.36s0.873-5.76-1.06-5.76-1.58%205.39-1.58%205.39-0.574-4.59-2.18-4.12c-1.61%200.468-0.572%205.51-0.572%205.51s-1.58-4.89-2.93-3.79c-1.35%201.11%200.258%205.25%200.572%206.62%200.836%202.43%202.03%202.94%202.17%205.55%22%2F%3E%0A%3C%2Fsvg%3E%0A") 12 8, default}.pnlm-grabbing{cursor:-webkit-grabbing;cursor:grabbing;cursor:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2226%22%20width%3D%2226%22%3E%0A%3Cpath%20stroke%3D%22%23000%22%20stroke-width%3D%221px%22%20fill%3D%22%23fff%22%20d%3D%22m15.3%2020.5s5.07-5.29%203.77-6.74c-1.31-1.45-2.53%200.14-2.53%200.14s2.74-3.29%200.535-4.06c-2.2-0.769-2.52%201.3-2.52%201.3s0.81-2.13-1.12-2.13-1.52%201.77-1.52%201.77-0.261-1.59-1.87-1.12c-1.61%200.468-0.874%202.17-0.874%202.17s-0.651-1.55-2-0.445c-1.35%201.11-0.68%202.25-0.365%203.62%200.836%202.43%202.03%202.94%202.17%205.55%22%2F%3E%0A%3C%2Fsvg%3E%0A") 12 8, default}.pnlm-sprite{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2226%22%20height%3D%22208%22%3E%0A%3Ccircle%20fill-opacity%3D%22.78%22%20cy%3D%22117%22%20cx%3D%2213%22%20r%3D%2211%22%20fill%3D%22%23fff%22%2F%3E%0A%3Ccircle%20fill-opacity%3D%22.78%22%20cy%3D%22143%22%20cx%3D%2213%22%20r%3D%2211%22%20fill%3D%22%23fff%22%2F%3E%0A%3Ccircle%20cy%3D%22169%22%20cx%3D%2213%22%20r%3D%227%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%2F%3E%0A%3Ccircle%20cy%3D%22195%22%20cx%3D%2213%22%20r%3D%227%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%2F%3E%0A%3Ccircle%20cx%3D%2213%22%20cy%3D%22195%22%20r%3D%222.5%22%2F%3E%0A%3Cpath%20d%3D%22m5%2083v6h2v-4h4v-2zm10%200v2h4v4h2v-6zm-5%205v6h6v-6zm-5%205v6h6v-2h-4v-4zm14%200v4h-4v2h6v-6z%22%2F%3E%0A%3Cpath%20d%3D%22m13%20110a7%207%200%200%200%20-7%207%207%207%200%200%200%207%207%207%207%200%200%200%207%20-7%207%207%200%200%200%20-7%20-7zm-1%203h2v2h-2zm0%203h2v5h-2z%22%2F%3E%0A%3Cpath%20d%3D%22m5%2057v6h2v-4h4v-2zm10%200v2h4v4h2v-6zm-10%2010v6h6v-2h-4v-4zm14%200v4h-4v2h6v-6z%22%2F%3E%0A%3Cpath%20d%3D%22m17%2038v2h-8v-2z%22%2F%3E%0A%3Cpath%20d%3D%22m12%209v3h-3v2h3v3h2v-3h3v-2h-3v-3z%22%2F%3E%0A%3Cpath%20d%3D%22m13%20136-6.125%206.125h4.375v7.875h3.5v-7.875h4.375z%22%2F%3E%0A%3Cpath%20d%3D%22m10.428%20173.33v-5.77l5-2.89v5.77zm1-1.73%203-1.73-3.001-1.74z%22%2F%3E%0A%3C%2Fsvg%3E%0A")}.pnlm-container:-webkit-full-screen{height:100% !important;width:100% !important;position:static !important}.pnlm-container:-ms-fullscreen{height:100% !important;width:100% !important;position:static !important}.pnlm-container:fullscreen{height:100% !important;width:100% !important;position:static !important}.pnlm-render-container{cursor:inherit;position:absolute;height:100%;width:100%}.pnlm-controls{margin-top:0.25rem;background-color:#fff;border:0.0625rem solid #999;border-color:rgba(0, 0, 0, 0.4);border-radius:0.1875rem;cursor:pointer;z-index:2;-webkit-transform:translateZ(624.9375rem);transform:translateZ(624.9375rem)}.pnlm-control:hover{background-color:#f8f8f8}.pnlm-controls-container{position:absolute;top:0;left:0.25rem;z-index:1}.pnlm-zoom-controls{width:1.625rem;height:3.25rem}.pnlm-zoom-in{width:100%;height:50%;position:absolute;top:0;border-radius:0.1875rem 0.1875rem 0 0}.pnlm-zoom-out{width:100%;height:50%;position:absolute;bottom:0;background-position:0 -1.625rem;border-top:0.0625rem solid #ddd;border-top-color:rgba(0, 0, 0, 0.1);border-radius:0 0 0.1875rem 0.1875rem}.pnlm-fullscreen-toggle-button,.pnlm-orientation-button,.pnlm-hot-spot-debug-indicator{width:1.625rem;height:1.625rem}.pnlm-hot-spot-debug-indicator{position:absolute;top:50%;left:50%;width:1.625rem;height:1.625rem;margin:-0.8125rem 0 0 -0.8125rem;background-color:rgba(255, 255, 255, 0.5);border-radius:0.8125rem;display:none}.pnlm-orientation-button-inactive{background-position:0 -9.75rem}.pnlm-orientation-button-active{background-position:0 -11.375rem}.pnlm-fullscreen-toggle-button-inactive{background-position:0 -3.25rem}.pnlm-fullscreen-toggle-button-active{background-position:0 -4.875rem}.pnlm-panorama-info{position:absolute;bottom:0.25rem;background-color:rgba(0, 0, 0, 0.7);border-radius:0 0.1875rem 0.1875rem 0;padding-right:0.625rem;color:#fff;text-align:left;display:none;z-index:2;-webkit-transform:translateZ(624.9375rem);transform:translateZ(624.9375rem)}.pnlm-title-box{position:relative;font-size:1.25rem;display:table;padding-left:0.3125rem;margin-bottom:0.1875rem}.pnlm-author-box{position:relative;font-size:0.75rem;display:table;padding-left:0.3125rem}.pnlm-load-box{position:absolute;top:50%;left:50%;width:12.5rem;height:9.375rem;margin:-4.6875rem 0 0 -6.25rem;background-color:rgba(0, 0, 0, 0.7);border-radius:0.1875rem;text-align:center;font-size:1.25rem;display:none;color:#fff}.pnlm-load-box p{margin:1.25rem 0}.pnlm-lbox{position:absolute;top:50%;left:50%;width:1.25rem;height:1.25rem;margin:-0.625rem 0 0 -0.625rem;display:none}.pnlm-loading{animation-duration:1.5s;-webkit-animation-duration:1.5s;animation-name:pnlm-mv;-webkit-animation-name:pnlm-mv;animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite;animation-timing-function:linear;-webkit-animation-timing-function:linear;height:0.625rem;width:0.625rem;background-color:#fff;position:relative}@-webkit-keyframes pnlm-mv{from{left:0;top:0}25%{left:0.625rem;top:0}50%{left:0.625rem;top:0.625rem}75%{left:0;top:0.625rem}to{left:0;top:0}}@keyframes pnlm-mv{from{left:0;top:0}25%{left:0.625rem;top:0}50%{left:0.625rem;top:0.625rem}75%{left:0;top:0.625rem}to{left:0;top:0}}.pnlm-load-button{position:absolute;top:50%;left:50%;width:12.5rem;height:6.25rem;margin:-3.125rem 0 0 -6.25rem;background-color:rgba(0, 0, 0, 0.7);border-radius:0.1875rem;text-align:center;font-size:1.25rem;display:table;color:#fff;cursor:pointer}.pnlm-load-button:hover{background-color:rgba(0, 0, 0, 0.8)}.pnlm-load-button p{display:table-cell;vertical-align:middle}.pnlm-info-box{font-size:0.9375rem;position:absolute;top:50%;left:50%;width:12.5rem;height:9.375rem;margin:-4.6875rem 0 0 -6.25rem;background-color:#000;border-radius:0.1875rem;display:table;text-align:center;color:#fff;table-layout:fixed}.pnlm-info-box a,.pnlm-author-box a{color:#fff;word-wrap:break-word;overflow-wrap:break-word}.pnlm-info-box p{display:table-cell;vertical-align:middle;padding:0 0.3125rem 0 0.3125rem}.pnlm-error-msg{display:none}.pnlm-about-msg{font-size:0.6875rem;line-height:0.6875rem;color:#fff;padding:0.3125rem 0.5rem 0.3125rem 0.5rem;background:rgba(0, 0, 0, 0.7);border-radius:0.1875rem;position:absolute;top:3.125rem;left:3.125rem;display:none;opacity:0;-webkit-transition:opacity 0.3s ease-in-out;transition:opacity 0.3s ease-in-out;z-index:1}.pnlm-about-msg a:link,.pnlm-about-msg a:visited{color:#fff}.pnlm-about-msg a:hover,.pnlm-about-msg a:active{color:#eee}.pnlm-hotspot-base{position:absolute;visibility:hidden;cursor:default;vertical-align:middle;top:0;z-index:1}.pnlm-hotspot{height:1.625rem;width:1.625rem;border-radius:0.8125rem}.pnlm-hotspot:hover{background-color:rgba(255, 255, 255, 0.2)}.pnlm-hotspot.pnlm-info{background-position:0 -6.5rem}.pnlm-hotspot.pnlm-scene{background-position:0 -8.125rem}div.pnlm-tooltip span{visibility:hidden;position:absolute;border-radius:0.1875rem;background-color:rgba(0, 0, 0, 0.7);color:#fff;text-align:center;max-width:12.5rem;padding:0.3125rem 0.625rem;margin-left:-13.75rem;cursor:default}div.pnlm-tooltip:hover span{visibility:visible}div.pnlm-tooltip:hover span:after{content:"";position:absolute;width:0;height:0;border-width:0.625rem;border-style:solid;border-color:rgba(0, 0, 0, 0.7) transparent transparent transparent;bottom:-1.25rem;left:-0.625rem;margin:0 50%}.pnlm-compass{position:absolute;width:3.125rem;height:3.125rem;right:0.25rem;bottom:0.25rem;border-radius:1.5625rem;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2250%22%20width%3D%2250%22%3E%0A%3Cpath%20d%3D%22m24.5078%206-3.2578%2018h7.5l-3.25781-18h-0.984376zm-3.2578%2020%203.2578%2018h0.9844l3.2578-18h-7.5zm1.19531%200.9941h5.10938l-2.5547%2014.1075-2.5547-14.1075z%22%2F%3E%0A%3C%2Fsvg%3E%0A");cursor:default;display:none}.pnlm-world{position:absolute;left:50%;top:50%}.pnlm-face{position:absolute;-webkit-transform-origin:0 0;transform-origin:0 0}.pnlm-dragfix,.pnlm-preview-img{position:absolute;height:100%;width:100%}.pnlm-preview-img{background-size:cover;background-position:center}.pnlm-lbar{width:9.375rem;margin:0 auto;border:#fff 0.0625rem solid;height:0.375rem}.pnlm-lbar-fill{background:#fff;height:100%;width:0}.pnlm-lmsg{font-size:0.75rem}.pnlm-fade-img{position:absolute;top:0;left:0}.pnlm-pointer{cursor:pointer}stzh-panorama{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular);color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block;}stzh-panorama[hidden]{display:none}stzh-panorama *,stzh-panorama *::before,stzh-panorama *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}stzh-panorama .has-focus{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}stzh-panorama .stzh-fylingfocus-focused{outline-style:none !important}stzh-panorama .stzh-fylingfocus-focused::-moz-focus-inner{border:0 !important}.stzh-panorama{}.stzh-panorama__hotspot{width:2.5rem;height:2.5rem}.stzh-panorama stzh-button.stzh-panorama__hotspot-button,.stzh-panorama stzh-button.stzh-panorama__control{--box-shadow:var(--stzh-box-shadow-popover);--border-width:0px}.stzh-panorama stzh-button.stzh-panorama__hotspot-button.is-info{--cursor:default}.stzh-panorama__hotspot-tooltip{white-space:nowrap}.stzh-panorama__controls{bottom:var(--stzh-space-small);right:var(--stzh-space-small);z-index:2;pointer-events:none;position:absolute;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--stzh-space-xsmall)}@media screen and (min-width: 1024px){.stzh-panorama__controls{bottom:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-panorama__controls{bottom:var(--stzh-space-large)}}@media screen and (min-width: 1024px){.stzh-panorama__controls{right:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-panorama__controls{right:var(--stzh-space-large)}}@media print{.stzh-panorama__controls{display:none}}.stzh-panorama__control{pointer-events:all}.stzh-panorama__zoom-control{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);border-radius:var(--stzh-button-border-radius);background-color:var(--stzh-color-grey13);visibility:hidden}.stzh-panorama__zoom-control stzh-button.stzh-panorama__control{--box-shadow:none}.stzh-panorama__zoom-control stzh-button.stzh-panorama__control.is-zoom-in{--border-radius:var(--stzh-button-border-radius) var(--stzh-button-border-radius) 0 0;margin-bottom:0.0625rem}.stzh-panorama__zoom-control stzh-button.stzh-panorama__control.is-zoom-out{--border-radius:0 0 var(--stzh-button-border-radius) var(--stzh-button-border-radius)}.stzh-panorama__outside-controls{margin-top:var(--stzh-space-xxlarge);display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-moz-column-gap:var(--stzh-space-small);-webkit-column-gap:var(--stzh-space-small);column-gap:var(--stzh-space-small);row-gap:var(--stzh-space-xsmall)}@media screen and (min-width: 1024px){.stzh-panorama__outside-controls{margin-top:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1260px){.stzh-panorama__outside-controls{margin-top:var(--stzh-space-xxxxlarge)}}@media print{.stzh-panorama__outside-controls{display:none}}.stzh-panorama__outside-scenes-control{--border-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));width:auto}.stzh-panorama--is-fullscreen .stzh-panorama__zoom-control{visibility:visible}';var __rest=undefined&&undefined.__rest||function(t,e){var o={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0)o[n]=t[n];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var a=0,n=Object.getOwnPropertySymbols(t);a<n.length;a++){if(e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(t,n[a]))o[n[a]]=t[n[a]]}return o};var CLASS_HOTSPOT="stzh-panorama__hotspot";var CLASS_HOTSPOT_TOOLTIP="stzh-panorama__hotspot-tooltip";var CLASS_HOTSPOT_BUTTON="stzh-panorama__hotspot-button";var CLASS_HOTSPOT_BUTTON_SCENE="is-scene";var CLASS_HOTSPOT_BUTTON_INFO="is-info";var CLASS_HOTSPOT_BUTTON_LINK="is-link";var ICON_HOTSPOT_SCENE="arrow-up";var ICON_HOTSPOT_DEFAULT="info-help";var StzhPanorama=function(){function t(t){var e=this;registerInstance(this,t);this.stzhLoad=createEvent(this,"stzhLoad",7);this.stzhChange=createEvent(this,"stzhChange",7);this.stzhFullscreenChange=createEvent(this,"stzhFullscreenChange",7);this.stzhSceneChange=createEvent(this,"stzhSceneChange",7);this.stzhZoomChange=createEvent(this,"stzhZoomChange",7);this.actionRunning={};this.controlAnimationTime=500;this.createTooltip=function(t,o){var n=document.createElement("stzh-button");n.classList.add(CLASS_HOTSPOT_BUTTON);if(o.type==="scene"){n.classList.add(CLASS_HOTSPOT_BUTTON_SCENE)}else if(o.url){n.classList.add(CLASS_HOTSPOT_BUTTON_LINK);n.setAttribute("href",o.url);n.setAttribute("target","_blank")}else{n.classList.add(CLASS_HOTSPOT_BUTTON_INFO)}n.icon=o.type==="scene"?ICON_HOTSPOT_SCENE:ICON_HOTSPOT_DEFAULT;n.iconOnly=true;n.rounded=true;n.size="small";n.variant="secondary";if(o.text){var a=document.createElement("stzh-tooltip");a.label=e.localization.hotspotLabel;a.content=o.text;a.placement="top";a.className=CLASS_HOTSPOT_TOOLTIP;a.appendChild(n);t.appendChild(a)}else{t.appendChild(n)}n.addEventListener("keydown",(function(t){t.stopPropagation()}))};this.handleSceneDropdownChange=function(t){return __awaiter(e,void 0,void 0,(function(){var e,o;return __generator(this,(function(n){switch(n.label){case 0:e=t.target;return[4,e.getValue()];case 1:o=n.sent();this.scene=o;return[2]}}))}))};this.handleControlsKeydown=function(t){t.stopPropagation()};this.action=function(t){if(!["startOrientation","fullscreen"].includes(t)){e.stopOrientation()}if(t==="zoomIn"){e.executeAction("zoomIn",e.viewer.getHfov,e.viewer.setHfov,-10)}else if(t==="zoomOut"){e.executeAction("zoomOut",e.viewer.getHfov,e.viewer.setHfov,+10)}else if(t==="fullscreen"){e.viewer.toggleFullscreen()}else if(t==="startOrientation"){e.startOrientation()}else if(t==="panUp"){e.executeAction("panUp",e.viewer.getPitch,e.viewer.setPitch,+10)}else if(t==="panDown"){e.executeAction("panDown",e.viewer.getPitch,e.viewer.setPitch,-10)}else if(t==="panLeft"){e.executeAction("panLeft",e.viewer.getYaw,e.viewer.setYaw,-10)}else if(t==="panRight"){e.executeAction("panRight",e.viewer.getYaw,e.viewer.setYaw,+10)}};this.localization=undefined;this.caption="";this.scene=undefined;this.sceneFadeDuration=500;this.autoload=true;this.orientationOnByDefault=false;this.scenes=undefined;this.isOrientationSupported=false;this.isOrientationActive=false;this.isFullscreen=false}t.prototype.getViewer=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.viewer]}))}))};t.prototype.scenesWatcher=function(t){var e=this;if(typeof t==="string"){this._scenes=JSON.parse(t)}else if(t){this._scenes=t}else{throw new Error('"scenes" is empty')}var o={};this._scenes.forEach((function(t){var n=t.sceneId,a=t.imageTitle,i=t.imageSrc,r=t.imageAuthor,s=t.imageType,l=t.hotspots,h=__rest(t,["sceneId","imageTitle","imageSrc","imageAuthor","imageType","hotspots"]);o[n]=Object.assign(Object.assign({},h),{type:s,panorama:i,hotSpots:l.map((function(t){return Object.assign(Object.assign({},t),{URL:"",cssClass:CLASS_HOTSPOT,createTooltipFunc:e.createTooltip,createTooltipArgs:Object.assign(Object.assign({},t),{url:t.url})})}))})}));this._scenesLibrary=o};t.prototype.sceneWatcher=function(t){this.viewer.loadScene(t)};t.prototype.updateWatcher=function(){if(this.viewer){this.viewer.destroy();this.viewer=null}};t.prototype.stopOrientation=function(){if(this.viewer.isOrientationActive()){this.viewer.stopOrientation();var t=new window.Event("touchstart");this.element.querySelector(".pnlm-dragfix").dispatchEvent(t);this.updateOrientationState()}};t.prototype.startOrientation=function(){if(this.viewer.isOrientationSupported()){this.viewer.startOrientation();this.updateOrientationState()}};t.prototype.updateOrientationState=function(){this.isOrientationSupported=this.viewer.isOrientationSupported();this.isOrientationActive=this.isOrientationSupported&&this.viewer.isOrientationActive()};t.prototype.executeAction=function(t,e,o,n){var a=this;this.actionRunning[t]=typeof this.actionRunning[t]!=="undefined"&&this.actionRunning[t]!==0?this.actionRunning[t]+n:e()+n;o(this.actionRunning[t],this.controlAnimationTime,(function(){var e;a.actionRunning=(e={},e[t]=0,e)}))};t.prototype.initViewer=function(){var t=this;this.viewer=window.pannellum.viewer(this.containerElement,{scenes:this._scenesLibrary,default:{firstScene:this.scene,showControls:false,sceneFadeDuration:this.sceneFadeDuration,autoLoad:this.autoload,compass:false,orientationOnByDefault:this.orientationOnByDefault,strings:{loadButtonLabel:this.localization.loadButtonLabel,loadingLabel:this.localization.loadingLabel,bylineLabel:this.localization.bylineLabel,noPanoramaError:this.localization.noPanoramaError,fileAccessError:this.localization.fileAccessError,malformedURLError:this.localization.malformedURLError,iOS8WebGLError:this.localization.iOS8WebGLError,genericWebGLError:this.localization.genericWebGLError,textureSizeError:this.localization.textureSizeError,unknownError:this.localization.unknownError}}});this.viewer.on("load",(function(){if(t.viewer){t.updateOrientationState();t.scene=t.viewer.getScene();t.stzhLoad.emit({component:"stzh-panorama"})}}));this.viewer.on("touchstart",(function(){t.updateOrientationState()}));this.viewer.on("fullscreenchange",(function(e){t.isFullscreen=e;t.stzhFullscreenChange.emit({component:"stzh-panorama",value:t.isFullscreen})}));this.viewer.on("scenechange",(function(e){t.containerElement.focus();t.stzhSceneChange.emit({component:"stzh-panorama",value:e})}));this.viewer.on("zoomchange",(function(e){t.stzhZoomChange.emit({component:"stzh-panorama",value:e})}));this.viewer.on("animatefinished",(function(e){t.stzhChange.emit({component:"stzh-panorama",value:e})}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:this.scenesWatcher(this.scenes);if(!!this.localization)return[3,2];t=this;return[4,window.stzhComponents.utils.fetchTranslations(this.element,"panorama")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.componentDidRender=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.viewer){return[2]}this.initViewer();return[2]}))}))};t.prototype.disconnectedCallback=function(){if(this.viewer){this.viewer.destroy();this.viewer=null}};t.prototype.render=function(){var t=this;var e={"stzh-panorama":true,"stzh-panorama--is-motion":this.isOrientationActive,"stzh-panorama--is-fullscreen":this.isFullscreen};var o=this._scenes.map((function(t){var e=t.sceneId,o=t.imageTitle;return{value:e,text:o}}));var n=this._scenes.find((function(e){var o=e.sceneId;return o===t.scene}));return h(Host,null,h("div",{class:e},h("stzh-figure",{class:"stzh-panorama__figure",caption:n.caption||this.caption,copyright:n.imageAuthor},h("stzh-ratio",null,h("div",{ref:function(e){return t.containerElement=e},class:"stzh-panorama__container",tabindex:"0"},h("div",{class:"stzh-panorama__controls",onKeyDown:this.handleControlsKeydown},h("div",{class:"stzh-panorama__zoom-control"},h("stzh-button",{class:"stzh-panorama__control is-zoom-in",variant:"secondary",a11yLabel:this.localization.zoomIn,icon:"plus",iconOnly:true,size:"small",onClick:function(){return t.action("zoomIn")}}),h("stzh-button",{class:"stzh-panorama__control is-zoom-out",variant:"secondary",a11yLabel:this.localization.zoomOut,icon:"minus",iconOnly:true,size:"small",onClick:function(){return t.action("zoomOut")}})),this.isOrientationSupported&&h("stzh-button",{class:"stzh-panorama__control",variant:"secondary",a11yLabel:this.isOrientationActive?this.localization.stopOrientation:this.localization.startOrientation,icon:this.isOrientationActive?"target-bullet":"target",iconOnly:true,size:"small",onClick:function(){return t.action(t.isOrientationActive?"stopOrientation":"startOrientation")}}),h("stzh-button",{class:"stzh-panorama__control",variant:"secondary",a11yLabel:this.isFullscreen?this.localization.disableFullscreenLabel:this.localization.enableFullscreenLabel,icon:this.isFullscreen?"close":"focus",iconOnly:true,size:"small",onClick:function(){return t.action("fullscreen")}}))))),h("div",{class:"stzh-panorama__outside-controls"},h("stzh-button",{class:"stzh-panorama__outside-control",label:this.localization.zoomIn,variant:"secondary",icon:"plus",size:"small",onClick:function(){return t.action("zoomIn")}}),h("stzh-button",{class:"stzh-panorama__outside-control",label:this.localization.zoomOut,variant:"secondary",icon:"minus",size:"small",onClick:function(){return t.action("zoomOut")}}),this.isOrientationSupported&&h("stzh-button",{class:"stzh-panorama__outside-control",variant:"secondary",label:this.isOrientationActive?this.localization.stopOrientation:this.localization.startOrientation,icon:this.isOrientationActive?"target-bullet":"target",size:"small",onClick:function(){return t.action(t.isOrientationActive?"stopOrientation":"startOrientation")}}),h("stzh-button",{class:"stzh-panorama__outside-control",label:this.isFullscreen?this.localization.disableFullscreenLabel:this.localization.enableFullscreenLabel,variant:"secondary",icon:"focus",size:"small",onClick:function(){return t.action("fullscreen")}}),h("stzh-button",{class:"stzh-panorama__outside-control",label:this.localization.panUp,variant:"secondary",icon:"arrow-up",size:"small",onClick:function(){return t.action("panUp")}}),h("stzh-button",{class:"stzh-panorama__outside-control",label:this.localization.panDown,variant:"secondary",icon:"arrow-down",size:"small",onClick:function(){return t.action("panDown")}}),h("stzh-button",{class:"stzh-panorama__outside-control",label:this.localization.panLeft,variant:"secondary",icon:"arrow-left",size:"small",onClick:function(){return t.action("panLeft")}}),h("stzh-button",{class:"stzh-panorama__outside-control",label:this.localization.panRight,variant:"secondary",icon:"arrow-right",size:"small",onClick:function(){return t.action("panRight")}}),h("stzh-dropdown",{class:"stzh-panorama__outside-scenes-control",size:"small",label:this.localization.sceneLabel,labelHidden:true,noSearch:true,items:[this.scene],options:o,onStzhChange:this.handleSceneDropdownChange}))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{scenes:["scenesWatcher","updateWatcher"],scene:["sceneWatcher"],autoload:["updateWatcher"],type:["updateWatcher"],localization:["updateWatcher"],orientationOnByDefault:["updateWatcher"],sceneFadeDuration:["updateWatcher"]}},enumerable:false,configurable:true});return t}();StzhPanorama.style=stzhPanoramaCss;export{StzhPanorama as stzh_panorama};
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,o,n){function a(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,i){function r(t){try{l(n.next(t))}catch(t){i(t)}}function s(t){try{l(n["throw"](t))}catch(t){i(t)}}function l(t){t.done?o(t.value):a(t.value).then(r,s)}l((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,r;return r={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(t){return function(e){return l([t,e])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,s[0]&&(o=0)),o)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:o.label++;return{value:s[1],done:false};case 5:o.label++;a=s[1];s=[0];continue;case 7:s=o.ops.pop();o.trys.pop();continue;default:if(!(i=o.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){o=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(s[0]===6&&o.label<i[1]){o.label=i[1];i=s;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(s);break}if(i[2])o.ops.pop();o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-bfb5b569.js";window.libpannellum=function(t,e,o){function n(n){function c(t,e){return 1==t.level&&1!=e.level?-1:1==e.level&&1!=t.level?1:e.timestamp-t.timestamp}function u(t,e){return t.level!=e.level?t.level-e.level:t.diff-e.diff}function d(t,e,o,n,a,i){this.vertices=t;this.side=e;this.level=o;this.x=n;this.y=a;this.path=i.replace("%s",e).replace("%l",o).replace("%x",n).replace("%y",a)}function m(t,e,o,n,a){var i;var r=e.vertices;i=b(t,r.slice(0,3));var s=b(t,r.slice(3,6)),l=b(t,r.slice(6,9)),r=b(t,r.slice(9,12)),h=i[0]+s[0]+l[0]+r[0];-4==h||4==h?i=!1:(h=i[1]+s[1]+l[1]+r[1],i=-4==h||4==h?!1:4!=i[2]+s[2]+l[2]+r[2]);if(i){i=e.vertices;s=i[0]+i[3]+i[6]+i[9];l=i[1]+i[4]+i[7]+i[10];r=i[2]+i[5]+i[8]+i[11];h=Math.sqrt(s*s+l*l+r*r);r=Math.asin(r/h);s=Math.atan2(l,s)-n;s+=s>Math.PI?-2*Math.PI:s<-Math.PI?2*Math.PI:0;s=Math.abs(s);e.diff=Math.acos(Math.sin(o)*Math.sin(r)+Math.cos(o)*Math.cos(r)*Math.cos(s));s=!1;for(l=0;l<x.nodeCache.length;l++)if(x.nodeCache[l].path==e.path){s=!0;x.nodeCache[l].timestamp=x.nodeCacheTimestamp++;x.nodeCache[l].diff=e.diff;x.currentNodes.push(x.nodeCache[l]);break}s||(e.timestamp=x.nodeCacheTimestamp++,x.currentNodes.push(e),x.nodeCache.push(e));if(e.level<x.level){var r=L.cubeResolution*Math.pow(2,e.level-L.maxLevel),s=Math.ceil(r*L.invTileResolution)-1,l=r%L.tileResolution*2,c=2*r%L.tileResolution;0===c&&(c=L.tileResolution);0===l&&(l=2*L.tileResolution);h=.5;if(e.x==s||e.y==s)h=1-L.tileResolution/(L.tileResolution+c);var u=1-h,r=[],p=h,f=h,g=h,v=u,w=u,y=u;if(c<L.tileResolution)if(e.x==s&&e.y!=s){if(w=f=.5,"d"==e.side||"u"==e.side)y=g=.5}else e.x!=s&&e.y==s&&(v=p=.5,"l"==e.side||"r"==e.side)&&(y=g=.5);l<=L.tileResolution&&(e.x==s&&(p=0,v=1,"l"==e.side||"r"==e.side)&&(g=0,y=1),e.y==s&&(f=0,w=1,"d"==e.side||"u"==e.side)&&(g=0,y=1));c=[i[0],i[1],i[2],i[0]*p+i[3]*v,i[1]*h+i[4]*u,i[2]*g+i[5]*y,i[0]*p+i[6]*v,i[1]*f+i[7]*w,i[2]*g+i[8]*y,i[0]*h+i[9]*u,i[1]*f+i[10]*w,i[2]*g+i[11]*y];c=new d(c,e.side,e.level+1,2*e.x,2*e.y,L.fullpath);r.push(c);e.x==s&&l<=L.tileResolution||(c=[i[0]*p+i[3]*v,i[1]*h+i[4]*u,i[2]*g+i[5]*y,i[3],i[4],i[5],i[3]*h+i[6]*u,i[4]*f+i[7]*w,i[5]*g+i[8]*y,i[0]*p+i[6]*v,i[1]*f+i[7]*w,i[2]*g+i[8]*y],c=new d(c,e.side,e.level+1,2*e.x+1,2*e.y,L.fullpath),r.push(c));e.x==s&&l<=L.tileResolution||e.y==s&&l<=L.tileResolution||(c=[i[0]*p+i[6]*v,i[1]*f+i[7]*w,i[2]*g+i[8]*y,i[3]*h+i[6]*u,i[4]*f+i[7]*w,i[5]*g+i[8]*y,i[6],i[7],i[8],i[9]*p+i[6]*v,i[10]*h+i[7]*u,i[11]*g+i[8]*y],c=new d(c,e.side,e.level+1,2*e.x+1,2*e.y+1,L.fullpath),r.push(c));e.y==s&&l<=L.tileResolution||(c=[i[0]*h+i[9]*u,i[1]*f+i[10]*w,i[2]*g+i[11]*y,i[0]*p+i[6]*v,i[1]*f+i[7]*w,i[2]*g+i[8]*y,i[9]*p+i[6]*v,i[10]*h+i[7]*u,i[11]*g+i[8]*y,i[9],i[10],i[11]],c=new d(c,e.side,e.level+1,2*e.x,2*e.y+1,L.fullpath),r.push(c));for(e=0;e<r.length;e++)m(t,r[e],o,n)}}}function p(){return[-1,1,-1,1,1,-1,1,-1,-1,-1,-1,-1,1,1,1,-1,1,1,-1,-1,1,1,-1,1,-1,1,1,1,1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,1,-1,1,1,-1,1,-1,-1,-1,-1,-1,-1,1,1,1,-1,1,1,1,1,-1,1,1,-1,-1]}function f(t,e,o){var n=Math.sin(e);e=Math.cos(e);if("x"==o)return[t[0],e*t[1]+n*t[2],e*t[2]-n*t[1],t[3],e*t[4]+n*t[5],e*t[5]-n*t[4],t[6],e*t[7]+n*t[8],e*t[8]-n*t[7]];if("y"==o)return[e*t[0]-n*t[2],t[1],e*t[2]+n*t[0],e*t[3]-n*t[5],t[4],e*t[5]+n*t[3],e*t[6]-n*t[8],t[7],e*t[8]+n*t[6]];if("z"==o)return[e*t[0]+n*t[1],e*t[1]-n*t[0],t[2],e*t[3]+n*t[4],e*t[4]-n*t[3],t[5],e*t[6]+n*t[7],e*t[7]-n*t[6],t[8]]}function g(t){return[t[0],t[4],t[8],t[12],t[1],t[5],t[9],t[13],t[2],t[6],t[10],t[14],t[3],t[7],t[11],t[15]]}function v(t){N(t,t.path+"."+L.extension,(function(e,o){t.texture=e;t.textureLoaded=o?2:1}),D.crossOrigin)}function b(t,e){var o=[t[0]*e[0]+t[1]*e[1]+t[2]*e[2],t[4]*e[0]+t[5]*e[1]+t[6]*e[2],t[11]+t[8]*e[0]+t[9]*e[1]+t[10]*e[2],1/(t[12]*e[0]+t[13]*e[1]+t[14]*e[2])],n=o[0]*o[3],a=o[1]*o[3],o=o[2]*o[3],i=[0,0,0];-1>n&&(i[0]=-1);1<n&&(i[0]=1);-1>a&&(i[1]=-1);1<a&&(i[1]=1);if(-1>o||1<o)i[2]=1;return i}function w(){console.log("Reducing canvas size due to error 1286!");y.width=Math.round(y.width/2);y.height=Math.round(y.height/2)}var y=e.createElement("canvas");y.style.width=y.style.height="100%";n.appendChild(y);var x,_,E,z,M,P,C,T,L,R,O,S,A,k,I,D;this.init=function(t,c,u,d,m,f,g,v){function b(t){if(N){var e=t*t*4,o=new Uint8ClampedArray(e),n=v.backgroundColor?v.backgroundColor:[0,0,0];n[0]*=255;n[1]*=255;n[2]*=255;for(var a=0;a<e;a++)o[a++]=n[0],o[a++]=n[1],o[a++]=n[2];t=new ImageData(o,t,t);for(F=0;6>F;F++)0==L[F].width&&(L[F]=t)}}c===o&&(c="equirectangular");if("equirectangular"!=c&&"cubemap"!=c&&"multires"!=c)throw console.log("Error: invalid image type specified!"),{type:"config error"};R=c;L=t;O=u;D=v||{};if(x){E&&(_.detachShader(x,E),_.deleteShader(E));z&&(_.detachShader(x,z),_.deleteShader(z));_.bindBuffer(_.ARRAY_BUFFER,null);_.bindBuffer(_.ELEMENT_ARRAY_BUFFER,null);x.texture&&_.deleteTexture(x.texture);if(x.nodeCache)for(t=0;t<x.nodeCache.length;t++)_.deleteTexture(x.nodeCache[t].texture);_.deleteProgram(x);x=o}T=o;var F,N=!1,U;if("cubemap"==R)for(F=0;6>F;F++)0<L[F].width?(U===o&&(U=L[F].width),U!=L[F].width&&console.log("Cube faces have inconsistent widths: "+U+" vs. "+L[F].width)):N=!0;"cubemap"==R&&0!==(U&U-1)&&(navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/)||navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 9_/)||navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 10_/)||navigator.userAgent.match(/Trident.*rv[ :]*11\./))||(_||(_=y.getContext("experimental-webgl",{alpha:!1,depth:!1})),_&&1286==_.getError()&&w());if(!_&&("multires"==R&&L.hasOwnProperty("fallbackPath")||"cubemap"==R)&&("WebkitAppearance"in e.documentElement.style||navigator.userAgent.match(/Trident.*rv[ :]*11\./)||-1!==navigator.appVersion.indexOf("MSIE 10"))){P&&n.removeChild(P);P=e.createElement("div");P.className="pnlm-world";d=L.basePath?L.basePath+L.fallbackPath:L.fallbackPath;var B="frblud".split(""),H=0;m=function(){var t=e.createElement("canvas");t.className="pnlm-face pnlm-"+B[this.side]+"face";P.appendChild(t);var o=t.getContext("2d");t.style.width=this.width+4+"px";t.style.height=this.height+4+"px";t.width=this.width+4;t.height=this.height+4;o.drawImage(this,2,2);var n=o.getImageData(0,0,t.width,t.height),a=n.data,i,r;for(i=2;i<t.width-2;i++)for(r=0;4>r;r++)a[4*(i+t.width)+r]=a[4*(i+2*t.width)+r],a[4*(i+t.width*(t.height-2))+r]=a[4*(i+t.width*(t.height-3))+r];for(i=2;i<t.height-2;i++)for(r=0;4>r;r++)a[4*(i*t.width+1)+r]=a[4*(i*t.width+2)+r],a[4*((i+1)*t.width-2)+r]=a[4*((i+1)*t.width-3)+r];for(r=0;4>r;r++)a[4*(t.width+1)+r]=a[4*(2*t.width+2)+r],a[4*(2*t.width-2)+r]=a[4*(3*t.width-3)+r],a[4*(t.width*(t.height-2)+1)+r]=a[4*(t.width*(t.height-3)+2)+r],a[4*(t.width*(t.height-1)-2)+r]=a[4*(t.width*(t.height-2)-3)+r];for(i=1;i<t.width-1;i++)for(r=0;4>r;r++)a[4*i+r]=a[4*(i+t.width)+r],a[4*(i+t.width*(t.height-1))+r]=a[4*(i+t.width*(t.height-2))+r];for(i=1;i<t.height-1;i++)for(r=0;4>r;r++)a[i*t.width*4+r]=a[4*(i*t.width+1)+r],a[4*((i+1)*t.width-1)+r]=a[4*((i+1)*t.width-2)+r];for(r=0;4>r;r++)a[r]=a[4*(t.width+1)+r],a[4*(t.width-1)+r]=a[4*(2*t.width-2)+r],a[t.width*(t.height-1)*4+r]=a[4*(t.width*(t.height-2)+1)+r],a[4*(t.width*t.height-1)+r]=a[4*(t.width*(t.height-1)-2)+r];o.putImageData(n,0,0);G.call(this)};var G=function(){0<this.width?(M===o&&(M=this.width),M!=this.width&&console.log("Fallback faces have inconsistent widths: "+M+" vs. "+this.width)):N=!0;H++;6==H&&(M=this.width,n.appendChild(P),g())},N=!1;for(F=0;6>F;F++)f=new Image,f.crossOrigin=D.crossOrigin?D.crossOrigin:"anonymous",f.side=F,f.onload=m,f.onerror=G,f.src="multires"==R?d.replace("%s",B[F])+"."+L.extension:L[F].src;b(M)}else{if(!_)throw console.log("Error: no WebGL support detected!"),{type:"no webgl"};"cubemap"==R&&b(U);L.fullpath=L.basePath?L.basePath+L.path:L.path;L.invTileResolution=1/L.tileResolution;t=p();C=[];for(F=0;6>F;F++)C[F]=t.slice(12*F,12*F+12),t=p();t=0;if("equirectangular"==R){if(t=_.getParameter(_.MAX_TEXTURE_SIZE),Math.max(L.width/2,L.height)>t)throw console.log("Error: The image is too big; it's "+L.width+"px wide, but this device's maximum supported size is "+2*t+"px."),{type:"webgl size error",width:L.width,maxWidth:2*t}}else if("cubemap"==R&&U>_.getParameter(_.MAX_CUBE_MAP_TEXTURE_SIZE))throw console.log("Error: The image is too big; it's "+U+"px wide, but this device's maximum supported size is "+t+"px."),{type:"webgl size error",width:U,maxWidth:t};v===o||v.horizonPitch===o&&v.horizonRoll===o||(T=[v.horizonPitch==o?0:v.horizonPitch,v.horizonRoll==o?0:v.horizonRoll]);U=_.TEXTURE_2D;_.viewport(0,0,_.drawingBufferWidth,_.drawingBufferHeight);_.getShaderPrecisionFormat&&(c=_.getShaderPrecisionFormat(_.FRAGMENT_SHADER,_.HIGH_FLOAT))&&1>c.precision&&(r=r.replace("highp","mediump"));E=_.createShader(_.VERTEX_SHADER);c=a;"multires"==R&&(c=i);_.shaderSource(E,c);_.compileShader(E);z=_.createShader(_.FRAGMENT_SHADER);c=l;"cubemap"==R?(U=_.TEXTURE_CUBE_MAP,c=s):"multires"==R&&(c=h);_.shaderSource(z,c);_.compileShader(z);x=_.createProgram();_.attachShader(x,E);_.attachShader(x,z);_.linkProgram(x);_.getShaderParameter(E,_.COMPILE_STATUS)||console.log(_.getShaderInfoLog(E));_.getShaderParameter(z,_.COMPILE_STATUS)||console.log(_.getShaderInfoLog(z));_.getProgramParameter(x,_.LINK_STATUS)||console.log(_.getProgramInfoLog(x));_.useProgram(x);x.drawInProgress=!1;c=v.backgroundColor?v.backgroundColor:[0,0,0];_.clearColor(c[0],c[1],c[2],1);_.clear(_.COLOR_BUFFER_BIT);x.texCoordLocation=_.getAttribLocation(x,"a_texCoord");_.enableVertexAttribArray(x.texCoordLocation);"multires"!=R?(S||(S=_.createBuffer()),_.bindBuffer(_.ARRAY_BUFFER,S),_.bufferData(_.ARRAY_BUFFER,new Float32Array([-1,1,1,1,1,-1,-1,1,1,-1,-1,-1]),_.STATIC_DRAW),_.vertexAttribPointer(x.texCoordLocation,2,_.FLOAT,!1,0,0),x.aspectRatio=_.getUniformLocation(x,"u_aspectRatio"),_.uniform1f(x.aspectRatio,_.drawingBufferWidth/_.drawingBufferHeight),x.psi=_.getUniformLocation(x,"u_psi"),x.theta=_.getUniformLocation(x,"u_theta"),x.f=_.getUniformLocation(x,"u_f"),x.h=_.getUniformLocation(x,"u_h"),x.v=_.getUniformLocation(x,"u_v"),x.vo=_.getUniformLocation(x,"u_vo"),x.rot=_.getUniformLocation(x,"u_rot"),_.uniform1f(x.h,d/(2*Math.PI)),_.uniform1f(x.v,m/Math.PI),_.uniform1f(x.vo,f/Math.PI*2),"equirectangular"==R&&(x.backgroundColor=_.getUniformLocation(x,"u_backgroundColor"),_.uniform4fv(x.backgroundColor,c.concat([1]))),x.texture=_.createTexture(),_.bindTexture(U,x.texture),"cubemap"==R?(_.texImage2D(_.TEXTURE_CUBE_MAP_POSITIVE_X,0,_.RGB,_.RGB,_.UNSIGNED_BYTE,L[1]),_.texImage2D(_.TEXTURE_CUBE_MAP_NEGATIVE_X,0,_.RGB,_.RGB,_.UNSIGNED_BYTE,L[3]),_.texImage2D(_.TEXTURE_CUBE_MAP_POSITIVE_Y,0,_.RGB,_.RGB,_.UNSIGNED_BYTE,L[4]),_.texImage2D(_.TEXTURE_CUBE_MAP_NEGATIVE_Y,0,_.RGB,_.RGB,_.UNSIGNED_BYTE,L[5]),_.texImage2D(_.TEXTURE_CUBE_MAP_POSITIVE_Z,0,_.RGB,_.RGB,_.UNSIGNED_BYTE,L[0]),_.texImage2D(_.TEXTURE_CUBE_MAP_NEGATIVE_Z,0,_.RGB,_.RGB,_.UNSIGNED_BYTE,L[2])):L.width<=t?(_.uniform1i(_.getUniformLocation(x,"u_splitImage"),0),_.texImage2D(U,0,_.RGB,_.RGB,_.UNSIGNED_BYTE,L)):(_.uniform1i(_.getUniformLocation(x,"u_splitImage"),1),d=e.createElement("canvas"),d.width=L.width/2,d.height=L.height,d=d.getContext("2d"),d.drawImage(L,0,0),m=d.getImageData(0,0,L.width/2,L.height),_.texImage2D(U,0,_.RGB,_.RGB,_.UNSIGNED_BYTE,m),x.texture2=_.createTexture(),_.activeTexture(_.TEXTURE1),_.bindTexture(U,x.texture2),_.uniform1i(_.getUniformLocation(x,"u_image1"),1),d.drawImage(L,-L.width/2,0),m=d.getImageData(0,0,L.width/2,L.height),_.texImage2D(U,0,_.RGB,_.RGB,_.UNSIGNED_BYTE,m),_.texParameteri(U,_.TEXTURE_WRAP_S,_.CLAMP_TO_EDGE),_.texParameteri(U,_.TEXTURE_WRAP_T,_.CLAMP_TO_EDGE),_.texParameteri(U,_.TEXTURE_MIN_FILTER,_.LINEAR),_.texParameteri(U,_.TEXTURE_MAG_FILTER,_.LINEAR),_.activeTexture(_.TEXTURE0)),_.texParameteri(U,_.TEXTURE_WRAP_S,_.CLAMP_TO_EDGE),_.texParameteri(U,_.TEXTURE_WRAP_T,_.CLAMP_TO_EDGE),_.texParameteri(U,_.TEXTURE_MIN_FILTER,_.LINEAR),_.texParameteri(U,_.TEXTURE_MAG_FILTER,_.LINEAR)):(x.vertPosLocation=_.getAttribLocation(x,"a_vertCoord"),_.enableVertexAttribArray(x.vertPosLocation),A||(A=_.createBuffer()),k||(k=_.createBuffer()),I||(I=_.createBuffer()),_.bindBuffer(_.ARRAY_BUFFER,k),_.bufferData(_.ARRAY_BUFFER,new Float32Array([0,0,1,0,1,1,0,1]),_.STATIC_DRAW),_.bindBuffer(_.ELEMENT_ARRAY_BUFFER,I),_.bufferData(_.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,0,2,3]),_.STATIC_DRAW),x.perspUniform=_.getUniformLocation(x,"u_perspMatrix"),x.cubeUniform=_.getUniformLocation(x,"u_cubeMatrix"),x.level=-1,x.currentNodes=[],x.nodeCache=[],x.nodeCacheTimestamp=0);d=_.getError();if(0!==d)throw console.log("Error: Something went wrong with WebGL!",d),{type:"webgl error"};g()}};this.destroy=function(){n!==o&&(y!==o&&n.contains(y)&&n.removeChild(y),P!==o&&n.contains(P)&&n.removeChild(P));if(_){var t=_.getExtension("WEBGL_lose_context");t&&t.loseContext()}};this.resize=function(){var e=t.devicePixelRatio||1;y.width=y.clientWidth*e;y.height=y.clientHeight*e;_&&(1286==_.getError()&&w(),_.viewport(0,0,_.drawingBufferWidth,_.drawingBufferHeight),"multires"!=R&&_.uniform1f(x.aspectRatio,y.clientWidth/y.clientHeight))};this.resize();this.setPose=function(t,e){T=[t,e]};this.render=function(t,e,n,a){var i,r=0;a===o&&(a={});a.roll&&(r=a.roll);if(T!==o){i=T[0];var s=T[1],l=t,h=e,p=Math.cos(s)*Math.sin(t)*Math.sin(i)+Math.cos(t)*(Math.cos(i)*Math.cos(e)+Math.sin(s)*Math.sin(i)*Math.sin(e)),b=-Math.sin(t)*Math.sin(s)+Math.cos(t)*Math.cos(s)*Math.sin(e);t=Math.cos(s)*Math.cos(i)*Math.sin(t)+Math.cos(t)*(-Math.cos(e)*Math.sin(i)+Math.cos(i)*Math.sin(s)*Math.sin(e));t=Math.asin(Math.max(Math.min(t,1),-1));e=Math.atan2(b,p);i=[Math.cos(l)*(Math.sin(s)*Math.sin(i)*Math.cos(h)-Math.cos(i)*Math.sin(h)),Math.cos(l)*Math.cos(s)*Math.cos(h),Math.cos(l)*(Math.cos(i)*Math.sin(s)*Math.cos(h)+Math.sin(h)*Math.sin(i))];s=[-Math.cos(t)*Math.sin(e),Math.cos(t)*Math.cos(e)];s=Math.acos(Math.max(Math.min((i[0]*s[0]+i[1]*s[1])/(Math.sqrt(i[0]*i[0]+i[1]*i[1]+i[2]*i[2])*Math.sqrt(s[0]*s[0]+s[1]*s[1])),1),-1));0>i[2]&&(s=2*Math.PI-s);r+=s}if(_||"multires"!=R&&"cubemap"!=R){if("multires"!=R)n=2*Math.atan(Math.tan(.5*n)/(_.drawingBufferWidth/_.drawingBufferHeight)),n=1/Math.tan(.5*n),_.uniform1f(x.psi,e),_.uniform1f(x.theta,t),_.uniform1f(x.rot,r),_.uniform1f(x.f,n),!0===O&&"equirectangular"==R&&(_.bindTexture(_.TEXTURE_2D,x.texture),_.texImage2D(_.TEXTURE_2D,0,_.RGB,_.RGB,_.UNSIGNED_BYTE,L)),_.drawArrays(_.TRIANGLES,0,6);else{i=_.drawingBufferWidth/_.drawingBufferHeight;s=2*Math.atan(Math.tan(n/2)*_.drawingBufferHeight/_.drawingBufferWidth);s=1/Math.tan(s/2);i=[s/i,0,0,0,0,s,0,0,0,0,100.1/-99.9,20/-99.9,0,0,-1,0];for(s=1;s<L.maxLevel&&_.drawingBufferWidth>L.tileResolution*Math.pow(2,s-1)*Math.tan(n/2)*.707;)s++;x.level=s;s=[1,0,0,0,1,0,0,0,1];s=f(s,-r,"z");s=f(s,-t,"x");s=f(s,e,"y");s=[s[0],s[1],s[2],0,s[3],s[4],s[5],0,s[6],s[7],s[8],0,0,0,0,1];_.uniformMatrix4fv(x.perspUniform,!1,new Float32Array(g(i)));_.uniformMatrix4fv(x.cubeUniform,!1,new Float32Array(g(s)));r=[i[0]*s[0],i[0]*s[1],i[0]*s[2],0,i[5]*s[4],i[5]*s[5],i[5]*s[6],0,i[10]*s[8],i[10]*s[9],i[10]*s[10],i[11],-s[8],-s[9],-s[10],0];x.nodeCache.sort(c);if(200<x.nodeCache.length&&x.nodeCache.length>x.currentNodes.length+50)for(i=x.nodeCache.splice(200,x.nodeCache.length-200),s=0;s<i.length;s++)_.deleteTexture(i[s].texture);x.currentNodes=[];s="fbudlr".split("");for(i=0;6>i;i++)l=new d(C[i],s[i],1,0,0,L.fullpath),m(r,l,t,e);x.currentNodes.sort(u);for(t=F.length-1;0<=t;t--)-1===x.currentNodes.indexOf(F[t].node)&&(F[t].node.textureLoad=!1,F.splice(t,1));if(0===F.length)for(t=0;t<x.currentNodes.length;t++)if(e=x.currentNodes[t],!e.texture&&!e.textureLoad){e.textureLoad=!0;setTimeout(v,0,e);break}if(!x.drawInProgress){x.drawInProgress=!0;_.clear(_.COLOR_BUFFER_BIT);for(t=0;t<x.currentNodes.length;t++)1<x.currentNodes[t].textureLoaded&&(_.bindBuffer(_.ARRAY_BUFFER,A),_.bufferData(_.ARRAY_BUFFER,new Float32Array(x.currentNodes[t].vertices),_.STATIC_DRAW),_.vertexAttribPointer(x.vertPosLocation,3,_.FLOAT,!1,0,0),_.bindBuffer(_.ARRAY_BUFFER,k),_.vertexAttribPointer(x.texCoordLocation,2,_.FLOAT,!1,0,0),_.bindTexture(_.TEXTURE_2D,x.currentNodes[t].texture),_.drawElements(_.TRIANGLES,6,_.UNSIGNED_SHORT,0));x.drawInProgress=!1}}if(a.returnImage!==o)return y.toDataURL("image/png")}else for(i=M/2,a={f:"translate3d(-"+(i+2)+"px, -"+(i+2)+"px, -"+i+"px)",b:"translate3d("+(i+2)+"px, -"+(i+2)+"px, "+i+"px) rotateX(180deg) rotateZ(180deg)",u:"translate3d(-"+(i+2)+"px, -"+i+"px, "+(i+2)+"px) rotateX(270deg)",d:"translate3d(-"+(i+2)+"px, "+i+"px, -"+(i+2)+"px) rotateX(90deg)",l:"translate3d(-"+i+"px, -"+(i+2)+"px, "+(i+2)+"px) rotateX(180deg) rotateY(90deg) rotateZ(180deg)",r:"translate3d("+i+"px, -"+(i+2)+"px, -"+(i+2)+"px) rotateY(270deg)"},n=1/Math.tan(n/2),n=n*y.clientWidth/2+"px",e="perspective("+n+") translateZ("+n+") rotateX("+t+"rad) rotateY("+e+"rad) ",n=Object.keys(a),t=0;6>t;t++)if(r=P.querySelector(".pnlm-"+n[t]+"face"))r.style.webkitTransform=e+a[n[t]],r.style.transform=e+a[n[t]]};this.isLoading=function(){if(_&&"multires"==R)for(var t=0;t<x.currentNodes.length;t++)if(!x.currentNodes[t].textureLoaded)return!0;return!1};this.getCanvas=function(){return y};var F=[],N=function(){function t(){var t=this;this.texture=this.callback=null;this.image=new Image;this.image.crossOrigin=a?a:"anonymous";var e=function(){if(0<t.image.width&&0<t.image.height){var e=t.image;_.bindTexture(_.TEXTURE_2D,t.texture);_.texImage2D(_.TEXTURE_2D,0,_.RGB,_.RGB,_.UNSIGNED_BYTE,e);_.texParameteri(_.TEXTURE_2D,_.TEXTURE_MAG_FILTER,_.LINEAR);_.texParameteri(_.TEXTURE_2D,_.TEXTURE_MIN_FILTER,_.LINEAR);_.texParameteri(_.TEXTURE_2D,_.TEXTURE_WRAP_S,_.CLAMP_TO_EDGE);_.texParameteri(_.TEXTURE_2D,_.TEXTURE_WRAP_T,_.CLAMP_TO_EDGE);_.bindTexture(_.TEXTURE_2D,null);t.callback(t.texture,!0)}else t.callback(t.texture,!1);F.length?(e=F.shift(),t.loadTexture(e.src,e.texture,e.callback)):n[o++]=t};this.image.addEventListener("load",e);this.image.addEventListener("error",e)}function e(t,e,o,n){this.node=t;this.src=e;this.texture=o;this.callback=n}var o=4,n={},a;t.prototype.loadTexture=function(t,e,o){this.texture=e;this.callback=o;this.image.src=t};for(var i=0;i<o;i++)n[i]=new t;return function(t,i,r,s){a=s;s=_.createTexture();o?n[--o].loadTexture(i,s,r):F.push(new e(t,i,s,r));return s}}()}var a="attribute vec2 a_texCoord;varying vec2 v_texCoord;void main() {gl_Position = vec4(a_texCoord, 0.0, 1.0);v_texCoord = a_texCoord;}",i="attribute vec3 a_vertCoord;attribute vec2 a_texCoord;uniform mat4 u_cubeMatrix;uniform mat4 u_perspMatrix;varying mediump vec2 v_texCoord;void main(void) {gl_Position = u_perspMatrix * u_cubeMatrix * vec4(a_vertCoord, 1.0);v_texCoord = a_texCoord;}",r="precision highp float;\nuniform float u_aspectRatio;\nuniform float u_psi;\nuniform float u_theta;\nuniform float u_f;\nuniform float u_h;\nuniform float u_v;\nuniform float u_vo;\nuniform float u_rot;\nconst float PI = 3.14159265358979323846264;\nuniform sampler2D u_image0;\nuniform sampler2D u_image1;\nuniform bool u_splitImage;\nuniform samplerCube u_imageCube;\nvarying vec2 v_texCoord;\nuniform vec4 u_backgroundColor;\nvoid main() {\nfloat x = v_texCoord.x * u_aspectRatio;\nfloat y = v_texCoord.y;\nfloat sinrot = sin(u_rot);\nfloat cosrot = cos(u_rot);\nfloat rot_x = x * cosrot - y * sinrot;\nfloat rot_y = x * sinrot + y * cosrot;\nfloat sintheta = sin(u_theta);\nfloat costheta = cos(u_theta);\nfloat a = u_f * costheta - rot_y * sintheta;\nfloat root = sqrt(rot_x * rot_x + a * a);\nfloat lambda = atan(rot_x / root, a / root) + u_psi;\nfloat phi = atan((rot_y * costheta + u_f * sintheta) / root);",s=r+"float cosphi = cos(phi);\ngl_FragColor = textureCube(u_imageCube, vec3(cosphi*sin(lambda), sin(phi), cosphi*cos(lambda)));\n}",l=r+"lambda = mod(lambda + PI, PI * 2.0) - PI;\nvec2 coord = vec2(lambda / PI, phi / (PI / 2.0));\nif(coord.x < -u_h || coord.x > u_h || coord.y < -u_v + u_vo || coord.y > u_v + u_vo)\ngl_FragColor = u_backgroundColor;\nelse {\nif(u_splitImage) {\nif(coord.x < 0.0)\ngl_FragColor = texture2D(u_image0, vec2((coord.x + u_h) / u_h, (-coord.y + u_v + u_vo) / (u_v * 2.0)));\nelse\ngl_FragColor = texture2D(u_image1, vec2((coord.x + u_h) / u_h - 1.0, (-coord.y + u_v + u_vo) / (u_v * 2.0)));\n} else {\ngl_FragColor = texture2D(u_image0, vec2((coord.x + u_h) / (u_h * 2.0), (-coord.y + u_v + u_vo) / (u_v * 2.0)));\n}\n}\n}",h="varying mediump vec2 v_texCoord;uniform sampler2D u_sampler;void main(void) {gl_FragColor = texture2D(u_sampler, v_texCoord);}";return{renderer:function(t,e,o,a){return new n(t,e,o,a)}}}(window,document);window.pannellum=function(t,e,o){function n(n,a){function i(){var n=e.createElement("div");n.innerHTML="\x3c!--[if lte IE 9]><i></i><![endif]--\x3e";if(1==n.getElementsByTagName("i").length)h();else{Ct=at.hfov;Tt=at.pitch;var a;if("cubemap"==at.type){wt=[];for(n=0;6>n;n++)wt.push(new Image),wt[n].crossOrigin=at.crossOrigin;Bt.load.lbox.style.display="block";Bt.load.lbar.style.display="none"}else if("multires"==at.type)n=JSON.parse(JSON.stringify(at.multiRes)),at.basePath&&at.multiRes.basePath&&!/^(?:[a-z]+:)?\/\//i.test(at.multiRes.basePath)?n.basePath=at.basePath+at.multiRes.basePath:at.multiRes.basePath?n.basePath=at.multiRes.basePath:at.basePath&&(n.basePath=at.basePath),wt=n;else if(!0===at.dynamic)wt=at.panorama;else{if(at.panorama===o){h(at.strings.noPanoramaError);return}wt=new Image}if("cubemap"==at.type)for(var i=6,c=function(){i--;0===i&&s()},u=function(t){var o=e.createElement("a");o.href=t.target.src;o.textContent=o.href;h(at.strings.fileAccessError.replace("%s",o.outerHTML))},n=0;n<wt.length;n++)a=at.cubeMap[n],"null"==a?(console.log("Will use background instead of missing cubemap face "+n),c()):(at.basePath&&!r(a)&&(a=at.basePath+a),wt[n].onload=c,wt[n].onerror=u,wt[n].src=tt(a));else if("multires"==at.type)s();else if(a="",at.basePath&&(a=at.basePath),!0!==at.dynamic){a=r(at.panorama)?at.panorama:a+at.panorama;wt.onload=function(){t.URL.revokeObjectURL(this.src);s()};var d=new XMLHttpRequest;d.onloadend=function(){if(200!=d.status){var t=e.createElement("a");t.href=a;t.textContent=t.href;h(at.strings.fileAccessError.replace("%s",t.outerHTML))}l(this.response);Bt.load.msg.innerHTML=""};d.onprogress=function(t){if(t.lengthComputable){Bt.load.lbarFill.style.width=t.loaded/t.total*100+"%";var e,o;1e6<t.total?(e="MB",o=(t.loaded/1e6).toFixed(2),t=(t.total/1e6).toFixed(2)):1e3<t.total?(e="kB",o=(t.loaded/1e3).toFixed(1),t=(t.total/1e3).toFixed(1)):(e="B",o=t.loaded,t=t.total);Bt.load.msg.innerHTML=o+" / "+t+" "+e}else Bt.load.lbox.style.display="block",Bt.load.lbar.style.display="none"};try{d.open("GET",a,!0)}catch(t){h(at.strings.malformedURLError)}d.responseType="blob";d.setRequestHeader("Accept","image/*,*/*;q=0.9");d.withCredentials="use-credentials"===at.crossOrigin;d.send()}at.draggable&&Dt.classList.add("pnlm-grab");Dt.classList.remove("pnlm-grabbing");St=!0===at.dynamicUpdate;at.dynamic&&St&&(wt=at.panorama,s())}}function r(t){return/^(?:[a-z]+:)?\/\//i.test(t)||"/"==t[0]||"blob:"==t.slice(0,5)}function s(){it||(it=new libpannellum.renderer(Ft));bt||(bt=!0,Nt.addEventListener("mousedown",d,!1),e.addEventListener("mousemove",f,!1),e.addEventListener("mouseup",g,!1),at.mouseZoom&&(Dt.addEventListener("mousewheel",E,!1),Dt.addEventListener("DOMMouseScroll",E,!1)),at.doubleClickZoom&&Nt.addEventListener("dblclick",m,!1),n.addEventListener("mozfullscreenchange",X,!1),n.addEventListener("webkitfullscreenchange",X,!1),n.addEventListener("msfullscreenchange",X,!1),n.addEventListener("fullscreenchange",X,!1),t.addEventListener("resize",R,!1),t.addEventListener("orientationchange",R,!1),at.disableKeyboardCtrl||(n.addEventListener("keydown",z,!1),n.addEventListener("keyup",P,!1),n.addEventListener("blur",M,!1)),e.addEventListener("mouseleave",g,!1),""===e.documentElement.style.pointerAction&&""===e.documentElement.style.touchAction?(Nt.addEventListener("pointerdown",y,!1),Nt.addEventListener("pointermove",x,!1),Nt.addEventListener("pointerup",_,!1),Nt.addEventListener("pointerleave",_,!1)):(Nt.addEventListener("touchstart",v,!1),Nt.addEventListener("touchmove",b,!1),Nt.addEventListener("touchend",w,!1)),t.navigator.pointerEnabled&&(n.style.touchAction="none"));D();j(at.hfov);setTimeout((function(){}),500)}function l(e){var n=new FileReader;n.addEventListener("loadend",(function(){var a=n.result;if(navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/)){var i=a.indexOf("ÿÂ");(0>i||65536<i)&&h(at.strings.iOS8WebGLError)}i=a.indexOf("<x:xmpmeta");if(-1<i&&!0!==at.ignoreGPanoXMP){var r=a.substring(i,a.indexOf("</x:xmpmeta>")+12),s=function(t){var e;0<=r.indexOf(t+'="')?(e=r.substring(r.indexOf(t+'="')+t.length+2),e=e.substring(0,e.indexOf('"'))):0<=r.indexOf(t+">")&&(e=r.substring(r.indexOf(t+">")+t.length+1),e=e.substring(0,e.indexOf("<")));return e!==o?Number(e):null},a=s("GPano:FullPanoWidthPixels"),i=s("GPano:CroppedAreaImageWidthPixels"),l=s("GPano:FullPanoHeightPixels"),c=s("GPano:CroppedAreaImageHeightPixels"),u=s("GPano:CroppedAreaTopPixels"),d=s("GPano:PoseHeadingDegrees"),m=s("GPano:PosePitchDegrees"),s=s("GPano:PoseRollDegrees");null!==a&&null!==i&&null!==l&&null!==c&&null!==u&&(0>Ot.indexOf("haov")&&(at.haov=i/a*360),0>Ot.indexOf("vaov")&&(at.vaov=c/l*180),0>Ot.indexOf("vOffset")&&(at.vOffset=-180*((u+c/2)/l-.5)),null!==d&&0>Ot.indexOf("northOffset")&&(at.northOffset=d,!1!==at.compass&&(at.compass=!0)),null!==m&&null!==s&&(0>Ot.indexOf("horizonPitch")&&(at.horizonPitch=m),0>Ot.indexOf("horizonRoll")&&(at.horizonRoll=s)))}wt.src=t.URL.createObjectURL(e)}));n.readAsBinaryString!==o?n.readAsBinaryString(e):n.readAsText(e)}function h(t){t===o&&(t=at.strings.genericWebGLError);Bt.errorMsg.innerHTML="<p>"+t+"</p>";Gt.load.style.display="none";Bt.load.box.style.display="none";Bt.errorMsg.style.display="table";vt=!0;gt=o;Ft.style.display="none";ot("error",t)}function c(t){var e=u(t);Ut.style.left=e.x+"px";Ut.style.top=e.y+"px";clearTimeout(c.t1);clearTimeout(c.t2);Ut.style.display="block";Ut.style.opacity=1;c.t1=setTimeout((function(){Ut.style.opacity=0}),2e3);c.t2=setTimeout((function(){Ut.style.display="none"}),2500);t.preventDefault()}function u(t){var e=n.getBoundingClientRect(),o={};o.x=(t.clientX||t.pageX)-e.left;o.y=(t.clientY||t.pageY)-e.top;return o}function d(t){t.preventDefault();n.focus();if(gt&&at.draggable){var e=u(t);if(at.hotSpotDebug){var o=p(t);console.log("Pitch: "+o[0]+", Yaw: "+o[1]+", Center Pitch: "+at.pitch+", Center Yaw: "+at.yaw+", HFOV: "+at.hfov)}Z();J();at.roll=0;xt.hfov=0;st=!0;lt=Date.now();ht=e.x;ct=e.y;dt=at.yaw;mt=at.pitch;Dt.classList.add("pnlm-grabbing");Dt.classList.remove("pnlm-grab");ot("mousedown",t);O()}}function m(t){at.minHfov===at.hfov?nt.setHfov(Ct,1e3):(t=p(t),nt.lookAt(t[0],t[1],at.minHfov,1e3))}function p(t){var e=u(t);t=it.getCanvas();var o=t.clientWidth,n=t.clientHeight;t=e.x/o*2-1;var n=(1-e.y/n*2)*n/o,a=1/Math.tan(at.hfov*Math.PI/360),i=Math.sin(at.pitch*Math.PI/180),r=Math.cos(at.pitch*Math.PI/180),e=a*r-n*i,o=Math.sqrt(t*t+e*e),n=180*Math.atan((n*r+a*i)/o)/Math.PI;t=180*Math.atan2(t/o,e/o)/Math.PI+at.yaw;-180>t&&(t+=360);180<t&&(t-=360);return[n,t]}function f(t){if(st&>){lt=Date.now();var e=it.getCanvas(),o=e.clientWidth,e=e.clientHeight;t=u(t);var n=180*(Math.atan(ht/o*2-1)-Math.atan(t.x/o*2-1))/Math.PI*at.hfov/90+dt;xt.yaw=(n-at.yaw)%360*.2;at.yaw=n;o=360*Math.atan(Math.tan(at.hfov/360*Math.PI)*e/o)/Math.PI;o=180*(Math.atan(t.y/e*2-1)-Math.atan(ct/e*2-1))/Math.PI*o/90+mt;xt.pitch=.2*(o-at.pitch);at.pitch=o}}function g(t){st&&(st=!1,15<Date.now()-lt&&(xt.pitch=xt.yaw=0),Dt.classList.add("pnlm-grab"),Dt.classList.remove("pnlm-grabbing"),lt=Date.now(),ot("mouseup",t))}function v(t){if(gt&&at.draggable){Z();J();at.roll=0;xt.hfov=0;var e=u(t.targetTouches[0]);ht=e.x;ct=e.y;if(2==t.targetTouches.length){var o=u(t.targetTouches[1]);ht+=.5*(o.x-e.x);ct+=.5*(o.y-e.y);ut=Math.sqrt((e.x-o.x)*(e.x-o.x)+(e.y-o.y)*(e.y-o.y))}st=!0;lt=Date.now();dt=at.yaw;mt=at.pitch;ot("touchstart",t);O()}}function b(t){if(at.draggable&&(t.preventDefault(),gt&&(lt=Date.now()),st&>)){var e=u(t.targetTouches[0]),o=e.x,n=e.y;2==t.targetTouches.length&&-1!=ut&&(t=u(t.targetTouches[1]),o+=.5*(t.x-e.x),n+=.5*(t.y-e.y),e=Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y)),j(at.hfov+.1*(ut-e)),ut=e);e=at.hfov/360*at.touchPanSpeedCoeffFactor;o=(ht-o)*e+dt;xt.yaw=(o-at.yaw)%360*.2;at.yaw=o;n=(n-ct)*e+mt;xt.pitch=.2*(n-at.pitch);at.pitch=n}}function w(){st=!1;150<Date.now()-lt&&(xt.pitch=xt.yaw=0);ut=-1;lt=Date.now();ot("touchend",event)}function y(t){"touch"==t.pointerType&>&&at.draggable&&(Xt.push(t.pointerId),qt.push({clientX:t.clientX,clientY:t.clientY}),t.targetTouches=qt,v(t),t.preventDefault())}function x(t){if("touch"==t.pointerType&&at.draggable)for(var e=0;e<Xt.length;e++)if(t.pointerId==Xt[e]){qt[e].clientX=t.clientX;qt[e].clientY=t.clientY;t.targetTouches=qt;b(t);t.preventDefault();break}}function _(t){if("touch"==t.pointerType){for(var e=!1,n=0;n<Xt.length;n++)t.pointerId==Xt[n]&&(Xt[n]=o),Xt[n]&&(e=!0);e||(Xt=[],qt=[],w());t.preventDefault()}}function E(t){gt&&("fullscreenonly"!=at.mouseZoom||ft)&&(t.preventDefault(),Z(),lt=Date.now(),t.wheelDeltaY?(j(at.hfov-.05*t.wheelDeltaY),xt.hfov=0>t.wheelDelta?1:-1):t.wheelDelta?(j(at.hfov-.05*t.wheelDelta),xt.hfov=0>t.wheelDelta?1:-1):t.detail&&(j(at.hfov+1.5*t.detail),xt.hfov=0<t.detail?1:-1),O())}function z(t){Z();lt=Date.now();J();at.roll=0;var e=t.which||t.keycode;0>at.capturedKeyNumbers.indexOf(e)||(t.preventDefault(),27==e?ft&&Y():C(e,!0))}function M(){for(var t=0;10>t;t++)pt[t]=!1}function P(t){var e=t.which||t.keycode;0>at.capturedKeyNumbers.indexOf(e)||(t.preventDefault(),C(e,!1))}function C(t,e){var o=!1;switch(t){case 109:case 189:case 17:case 173:pt[0]!=e&&(o=!0);pt[0]=e;break;case 107:case 187:case 16:case 61:pt[1]!=e&&(o=!0);pt[1]=e;break;case 38:pt[2]!=e&&(o=!0);pt[2]=e;break;case 87:pt[6]!=e&&(o=!0);pt[6]=e;break;case 40:pt[3]!=e&&(o=!0);pt[3]=e;break;case 83:pt[7]!=e&&(o=!0);pt[7]=e;break;case 37:pt[4]!=e&&(o=!0);pt[4]=e;break;case 65:pt[8]!=e&&(o=!0);pt[8]=e;break;case 39:pt[5]!=e&&(o=!0);pt[5]=e;break;case 68:pt[9]!=e&&(o=!0),pt[9]=e}o&&e&&(yt="undefined"!==typeof performance&&performance.now()?performance.now():Date.now(),O())}function T(){if(gt){var t=!1,e=at.pitch,n=at.yaw,a=at.hfov,i;i="undefined"!==typeof performance&&performance.now()?performance.now():Date.now();yt===o&&(yt=i);var r=(i-yt)*at.hfov/1700,r=Math.min(r,1);pt[0]&&!0===at.keyboardZoom&&(j(at.hfov+(.8*xt.hfov+.5)*r),t=!0);pt[1]&&!0===at.keyboardZoom&&(j(at.hfov+(.8*xt.hfov-.2)*r),t=!0);if(pt[2]||pt[6])at.pitch+=(.8*xt.pitch+.2)*r,t=!0;if(pt[3]||pt[7])at.pitch+=(.8*xt.pitch-.2)*r,t=!0;if(pt[4]||pt[8])at.yaw+=(.8*xt.yaw-.2)*r,t=!0;if(pt[5]||pt[9])at.yaw+=(.8*xt.yaw+.2)*r,t=!0;t&&(lt=Date.now());if(at.autoRotate){if(.001<i-yt){var t=(i-yt)/1e3,s=(xt.yaw/t*r-.2*at.autoRotate)*t,s=(0<-at.autoRotate?1:-1)*Math.min(Math.abs(at.autoRotate*t),Math.abs(s));at.yaw+=s}at.autoRotateStopDelay&&(at.autoRotateStopDelay-=i-yt,0>=at.autoRotateStopDelay&&(at.autoRotateStopDelay=!1,Pt=at.autoRotate,at.autoRotate=0))}Lt.pitch&&(L("pitch"),e=at.pitch);Lt.yaw&&(L("yaw"),n=at.yaw);Lt.hfov&&(L("hfov"),a=at.hfov);0<r&&!at.autoRotate&&(t=1-at.friction,pt[4]||pt[5]||pt[8]||pt[9]||Lt.yaw||(at.yaw+=xt.yaw*r*t),pt[2]||pt[3]||pt[6]||pt[7]||Lt.pitch||(at.pitch+=xt.pitch*r*t),pt[0]||pt[1]||Lt.hfov||j(at.hfov+xt.hfov*r*t));yt=i;0<r&&(xt.yaw=.8*xt.yaw+(at.yaw-n)/r*.2,xt.pitch=.8*xt.pitch+(at.pitch-e)/r*.2,xt.hfov=.8*xt.hfov+(at.hfov-a)/r*.2,e=at.autoRotate?Math.abs(at.autoRotate):5,xt.yaw=Math.min(e,Math.max(xt.yaw,-e)),xt.pitch=Math.min(e,Math.max(xt.pitch,-e)),xt.hfov=Math.min(e,Math.max(xt.hfov,-e)));pt[0]&&pt[1]&&(xt.hfov=0);(pt[2]||pt[6])&&(pt[3]||pt[7])&&(xt.pitch=0);(pt[4]||pt[8])&&(pt[5]||pt[9])&&(xt.yaw=0)}}function L(t){var e=Lt[t],o=Math.min(1,Math.max((Date.now()-e.startTime)/1e3/(e.duration/1e3),0)),o=e.startPosition+at.animationTimingFunction(o)*(e.endPosition-e.startPosition);if(e.endPosition>e.startPosition&&o>=e.endPosition||e.endPosition<e.startPosition&&o<=e.endPosition||e.endPosition===e.startPosition)o=e.endPosition,xt[t]=0,delete Lt[t];at[t]=o}function R(){X("resize")}function O(){_t||(_t=!0,S())}function S(){if(!kt)if(A(),Mt&&clearTimeout(Mt),st||!0===Et)requestAnimationFrame(S);else if(pt[0]||pt[1]||pt[2]||pt[3]||pt[4]||pt[5]||pt[6]||pt[7]||pt[8]||pt[9]||at.autoRotate||Lt.pitch||Lt.yaw||Lt.hfov||.01<Math.abs(xt.yaw)||.01<Math.abs(xt.pitch)||.01<Math.abs(xt.hfov))T(),0<=at.autoRotateInactivityDelay&&Pt&&Date.now()-lt>at.autoRotateInactivityDelay&&!at.autoRotate&&(at.autoRotate=Pt,nt.lookAt(Tt,o,Ct,3e3)),requestAnimationFrame(S);else if(it&&(it.isLoading()||!0===at.dynamic&&St))requestAnimationFrame(S);else{ot("animatefinished",{pitch:nt.getPitch(),yaw:nt.getYaw(),hfov:nt.getHfov()});_t=!1;yt=o;var t=at.autoRotateInactivityDelay-(Date.now()-lt);0<t?Mt=setTimeout((function(){at.autoRotate=Pt;nt.lookAt(Tt,o,Ct,3e3);O()}),t):0<=at.autoRotateInactivityDelay&&Pt&&(at.autoRotate=Pt,nt.lookAt(Tt,o,Ct,3e3),O())}}function A(){var t;if(gt){var e=it.getCanvas();!1!==at.autoRotate&&(360<at.yaw?at.yaw-=360:-360>at.yaw&&(at.yaw+=360));t=at.yaw;var n=0;if(at.avoidShowingBackground){var a=at.hfov/2,i=180*Math.atan2(Math.tan(a/180*Math.PI),e.width/e.height)/Math.PI;at.vaov>at.haov?Math.min(Math.cos((at.pitch-a)/180*Math.PI),Math.cos((at.pitch+a)/180*Math.PI)):n=a*(1-Math.min(Math.cos((at.pitch-i)/180*Math.PI),Math.cos((at.pitch+i)/180*Math.PI)))}var a=at.maxYaw-at.minYaw,i=-180,r=180;360>a&&(i=at.minYaw+at.hfov/2+n,r=at.maxYaw-at.hfov/2-n,a<at.hfov&&(i=r=(i+r)/2),at.yaw=Math.max(i,Math.min(r,at.yaw)));!1===at.autoRotate&&(360<at.yaw?at.yaw-=360:-360>at.yaw&&(at.yaw+=360));!1!==at.autoRotate&&t!=at.yaw&&yt!==o&&(at.autoRotate*=-1);t=2*Math.atan(Math.tan(at.hfov/180*Math.PI*.5)/(e.width/e.height))/Math.PI*180;e=at.minPitch+t/2;n=at.maxPitch-t/2;at.maxPitch-at.minPitch<t&&(e=n=(e+n)/2);isNaN(e)&&(e=-90);isNaN(n)&&(n=90);at.pitch=Math.max(e,Math.min(n,at.pitch));it.render(at.pitch*Math.PI/180,at.yaw*Math.PI/180,at.hfov*Math.PI/180,{roll:at.roll*Math.PI/180});at.hotSpots.forEach(H);at.compass&&(Yt.style.transform="rotate("+(-at.yaw-at.northOffset)+"deg)",Yt.style.webkitTransform="rotate("+(-at.yaw-at.northOffset)+"deg)")}}function k(t,e,o,n){this.w=t;this.x=e;this.y=o;this.z=n}function I(e){var o;o=e.alpha;var n=e.beta;e=e.gamma;n=[n?n*Math.PI/180/2:0,e?e*Math.PI/180/2:0,o?o*Math.PI/180/2:0];o=[Math.cos(n[0]),Math.cos(n[1]),Math.cos(n[2])];n=[Math.sin(n[0]),Math.sin(n[1]),Math.sin(n[2])];o=new k(o[0]*o[1]*o[2]-n[0]*n[1]*n[2],n[0]*o[1]*o[2]-o[0]*n[1]*n[2],o[0]*n[1]*o[2]+n[0]*o[1]*n[2],o[0]*o[1]*n[2]+n[0]*n[1]*o[2]);o=o.multiply(new k(Math.sqrt(.5),-Math.sqrt(.5),0,0));n=t.orientation?-t.orientation*Math.PI/180/2:0;o=o.multiply(new k(Math.cos(n),0,-Math.sin(n),0)).toEulerAngles();"number"==typeof Et&&10>Et?Et+=1:10===Et?(zt=o[2]/Math.PI*180+at.yaw,Et=!0,requestAnimationFrame(S)):(at.pitch=o[0]/Math.PI*180,at.roll=-o[1]/Math.PI*180,at.yaw=-o[2]/Math.PI*180+zt)}function D(){try{var t={};at.horizonPitch!==o&&(t.horizonPitch=at.horizonPitch*Math.PI/180);at.horizonRoll!==o&&(t.horizonRoll=at.horizonRoll*Math.PI/180);at.backgroundColor!==o&&(t.backgroundColor=at.backgroundColor);it.init(wt,at.type,at.dynamic,at.haov*Math.PI/180,at.vaov*Math.PI/180,at.vOffset*Math.PI/180,F,t);!0!==at.dynamic&&(wt=o)}catch(t){if("webgl error"==t.type||"no webgl"==t.type)h();else if("webgl size error"==t.type)h(at.strings.textureSizeError.replace("%s",t.width).replace("%s",t.maxWidth));else throw h(at.strings.unknownError),t}}function F(){if(at.sceneFadeDuration&&it.fadeImg!==o){it.fadeImg.style.opacity=0;var t=it.fadeImg;delete it.fadeImg;setTimeout((function(){Ft.removeChild(t);ot("scenechangefadedone")}),at.sceneFadeDuration)}Yt.style.display=at.compass?"inline":"none";U();Bt.load.box.style.display="none";rt!==o&&(Ft.removeChild(rt),rt=o);gt=!0;ot("load");O()}function N(t){t.pitch=Number(t.pitch)||0;t.yaw=Number(t.yaw)||0;var o=e.createElement("div");o.className="pnlm-hotspot-base";o.className=t.cssClass?o.className+(" "+t.cssClass):o.className+(" pnlm-hotspot pnlm-sprite pnlm-"+$(t.type));var n=e.createElement("span");t.text&&(n.innerHTML=$(t.text));var a;if(t.video){a=e.createElement("video");var i=t.video;at.basePath&&!r(i)&&(i=at.basePath+i);a.src=tt(i);a.controls=!0;a.style.width=t.width+"px";Ft.appendChild(o);n.appendChild(a)}else if(t.image){i=t.image;at.basePath&&!r(i)&&(i=at.basePath+i);a=e.createElement("a");a.href=tt(t.URL?t.URL:i,!0);a.target="_blank";n.appendChild(a);var s=e.createElement("img");s.src=tt(i);s.style.width=t.width+"px";s.style.paddingTop="5px";Ft.appendChild(o);a.appendChild(s);n.style.maxWidth="initial"}else if(t.URL){a=e.createElement("a");a.href=tt(t.URL,!0);if(t.attributes)for(i in t.attributes)a.setAttribute(i,t.attributes[i]);else a.target="_blank";Ft.appendChild(a);o.className+=" pnlm-pointer";n.className+=" pnlm-pointer";a.appendChild(o)}else t.sceneId&&(o.onclick=o.ontouchend=function(){o.clicked||(o.clicked=!0,K(t.sceneId,t.targetPitch,t.targetYaw,t.targetHfov));return!1},o.className+=" pnlm-pointer",n.className+=" pnlm-pointer"),Ft.appendChild(o);if(t.createTooltipFunc)t.createTooltipFunc(o,t.createTooltipArgs);else if(t.text||t.video||t.image)o.classList.add("pnlm-tooltip"),o.appendChild(n),n.style.width=n.scrollWidth-20+"px",n.style.marginLeft=-(n.scrollWidth-o.offsetWidth)/2+"px",n.style.marginTop=-n.scrollHeight-12+"px";t.clickHandlerFunc&&(o.addEventListener("click",(function(e){t.clickHandlerFunc(e,t.clickHandlerArgs)}),"false"),o.className+=" pnlm-pointer",n.className+=" pnlm-pointer");t.div=o}function U(){At||(at.hotSpots?(at.hotSpots=at.hotSpots.sort((function(t,e){return t.pitch<e.pitch})),at.hotSpots.forEach(N)):at.hotSpots=[],At=!0,at.hotSpots.forEach(H))}function B(){var t=at.hotSpots;At=!1;delete at.hotSpots;if(t)for(var e=0;e<t.length;e++){var o=t[e].div;if(o){for(;o.parentNode&&o.parentNode!=Ft;)o=o.parentNode;Ft.removeChild(o)}delete t[e].div}}function H(t){var e=Math.sin(t.pitch*Math.PI/180),o=Math.cos(t.pitch*Math.PI/180),n=Math.sin(at.pitch*Math.PI/180),a=Math.cos(at.pitch*Math.PI/180),i=Math.cos((-t.yaw+at.yaw)*Math.PI/180),r=e*n+o*i*a;if(90>=t.yaw&&-90<t.yaw&&0>=r||(90<t.yaw||-90>=t.yaw)&&0>=r)t.div.style.visibility="hidden";else{var s=Math.sin((-t.yaw+at.yaw)*Math.PI/180),l=Math.tan(at.hfov*Math.PI/360);t.div.style.visibility="visible";var h=it.getCanvas(),c=h.clientWidth,h=h.clientHeight,e=[-c/l*s*o/r/2,-c/l*(e*a-o*i*n)/r/2],o=Math.sin(at.roll*Math.PI/180),n=Math.cos(at.roll*Math.PI/180),e=[e[0]*n-e[1]*o,e[0]*o+e[1]*n];e[0]+=(c-t.div.offsetWidth)/2;e[1]+=(h-t.div.offsetHeight)/2;c="translate("+e[0]+"px, "+e[1]+"px) translateZ(9999px) rotate("+at.roll+"deg)";t.scale&&(c+=" scale("+Ct/at.hfov/r+")");t.div.style.webkitTransform=c;t.div.style.MozTransform=c;t.div.style.transform=c}}function G(t){at={};var e,o,n="haov vaov vOffset northOffset horizonPitch horizonRoll".split(" ");Ot=[];for(e in It)It.hasOwnProperty(e)&&(at[e]=It[e]);for(e in a.default)if(a.default.hasOwnProperty(e))if("strings"==e)for(o in a.default.strings)a.default.strings.hasOwnProperty(o)&&(at.strings[o]=$(a.default.strings[o]));else at[e]=a.default[e],0<=n.indexOf(e)&&Ot.push(e);if(null!==t&&""!==t&&a.scenes&&a.scenes[t]){var i=a.scenes[t];for(e in i)if(i.hasOwnProperty(e))if("strings"==e)for(o in i.strings)i.strings.hasOwnProperty(o)&&(at.strings[o]=$(i.strings[o]));else at[e]=i[e],0<=n.indexOf(e)&&Ot.push(e);at.scene=t}for(e in a)if(a.hasOwnProperty(e))if("strings"==e)for(o in a.strings)a.strings.hasOwnProperty(o)&&(at.strings[o]=$(a.strings[o]));else at[e]=a[e],0<=n.indexOf(e)&&Ot.push(e)}function W(t){if((t=t?t:!1)&&"preview"in at){var n=at.preview;at.basePath&&!r(n)&&(n=at.basePath+n);rt=e.createElement("div");rt.className="pnlm-preview-img";rt.style.backgroundImage="url('"+tt(n).replace(/"/g,"%22").replace(/'/g,"%27")+"')";Ft.appendChild(rt)}var n=at.title,a=at.author;t&&("previewTitle"in at&&(at.title=at.previewTitle),"previewAuthor"in at&&(at.author=at.previewAuthor));at.hasOwnProperty("title")||(Bt.title.innerHTML="");at.hasOwnProperty("author")||(Bt.author.innerHTML="");at.hasOwnProperty("title")||at.hasOwnProperty("author")||(Bt.container.style.display="none");Gt.load.innerHTML="<p>"+at.strings.loadButtonLabel+"</p>";Bt.load.boxp.innerHTML=at.strings.loadingLabel;for(var s in at)if(at.hasOwnProperty(s))switch(s){case"title":Bt.title.innerHTML=$(at[s]);Bt.container.style.display="inline";break;case"author":var l=$(at[s]);at.authorURL&&(l=e.createElement("a"),l.href=tt(at.authorURL,!0),l.target="_blank",l.innerHTML=$(at[s]),l=l.outerHTML);Bt.author.innerHTML=at.strings.bylineLabel.replace("%s",l);Bt.container.style.display="inline";break;case"fallback":l=e.createElement("a");l.href=tt(at[s],!0);l.target="_blank";l.textContent="Click here to view this panorama in an alternative viewer.";var h=e.createElement("p");h.textContent="Your browser does not support WebGL.";h.appendChild(e.createElement("br"));h.appendChild(l);Bt.errorMsg.innerHTML="";Bt.errorMsg.appendChild(h);break;case"hfov":j(Number(at[s]));break;case"autoLoad":!0===at[s]&&it===o&&(Bt.load.box.style.display="inline",Gt.load.style.display="none",i());break;case"showZoomCtrl":Gt.zoom.style.display=at[s]&&!1!=at.showControls?"block":"none";break;case"showFullscreenCtrl":Gt.fullscreen.style.display=at[s]&&!1!=at.showControls&&("fullscreen"in e||"mozFullScreen"in e||"webkitIsFullScreen"in e||"msFullscreenElement"in e)?"block":"none";break;case"hotSpotDebug":Ht.style.display=at[s]?"block":"none";break;case"showControls":at[s]||(Gt.orientation.style.display="none",Gt.zoom.style.display="none",Gt.fullscreen.style.display="none");break;case"orientationOnByDefault":at[s]&&Q()}t&&(n?at.title=n:delete at.title,a?at.author=a:delete at.author)}function Y(){if(gt&&!vt)if(ft)e.exitFullscreen?e.exitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.webkitCancelFullScreen?e.webkitCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen();else try{n.requestFullscreen?n.requestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen?n.msRequestFullscreen():n.webkitRequestFullScreen()}catch(t){}}function X(t){e.fullscreenElement||e.fullscreen||e.mozFullScreen||e.webkitIsFullScreen||e.msFullscreenElement?(Gt.fullscreen.classList.add("pnlm-fullscreen-toggle-button-active"),ft=!0):(Gt.fullscreen.classList.remove("pnlm-fullscreen-toggle-button-active"),ft=!1);"resize"!==t&&ot("fullscreenchange",ft);it.resize();j(at.hfov);O()}function q(t){var e=at.minHfov;"multires"==at.type&&it&&!at.multiResMinHfov&&(e=Math.min(e,it.getCanvas().width/(at.multiRes.cubeResolution/90*.9)));if(e>at.maxHfov)return console.log("HFOV bounds do not make sense (minHfov > maxHfov)."),at.hfov;var o=at.hfov,o=t<e?e:t>at.maxHfov?at.maxHfov:t;at.avoidShowingBackground&&it&&(t=it.getCanvas(),o=Math.min(o,360*Math.atan(Math.tan((at.maxPitch-at.minPitch)/360*Math.PI)/t.height*t.width)/Math.PI));return o}function j(t){at.hfov=q(t);ot("zoomchange",at.hfov)}function Z(){Lt={};Pt=at.autoRotate?at.autoRotate:Pt;at.autoRotate=!1}function V(){vt&&(Bt.load.box.style.display="none",Bt.errorMsg.style.display="none",vt=!1,Ft.style.display="block",ot("errorcleared"));gt=!1;Gt.load.style.display="none";Bt.load.box.style.display="inline";i()}function K(t,e,n,i,r){gt||(r=!0);gt=!1;Lt={};var s,l;if(at.sceneFadeDuration&&!r&&(s=it.render(at.pitch*Math.PI/180,at.yaw*Math.PI/180,at.hfov*Math.PI/180,{returnImage:!0}),s!==o)){r=new Image;r.className="pnlm-fade-img";r.style.transition="opacity "+at.sceneFadeDuration/1e3+"s";r.style.width="100%";r.style.height="100%";r.onload=function(){K(t,e,n,i,!0)};r.src=s;Ft.appendChild(r);it.fadeImg=r;return}r="same"===e?at.pitch:e;s="same"===n?at.yaw:"sameAzimuth"===n?at.yaw+(at.northOffset||0)-(a.scenes[t].northOffset||0):n;l="same"===i?at.hfov:i;B();G(t);xt.yaw=xt.pitch=xt.hfov=0;W();r!==o&&(at.pitch=r);s!==o&&(at.yaw=s);l!==o&&(at.hfov=l);ot("scenechange",t);V()}function J(){t.removeEventListener("deviceorientation",I);Gt.orientation.classList.remove("pnlm-orientation-button-active");Et=!1}function Q(){"function"===typeof DeviceMotionEvent.requestPermission?DeviceOrientationEvent.requestPermission().then((function(e){"granted"==e&&(Et=1,t.addEventListener("deviceorientation",I),Gt.orientation.classList.add("pnlm-orientation-button-active"))})):(Et=1,t.addEventListener("deviceorientation",I),Gt.orientation.classList.add("pnlm-orientation-button-active"))}function $(t){return a.escapeHTML?String(t).split(/&/g).join("&").split('"').join(""").split("'").join("'").split("<").join("<").split(">").join(">").split("/").join("/").split("\n").join("<br>"):String(t).split("\n").join("<br>")}function tt(t,e){try{var o=decodeURIComponent(et(t)).replace(/[^\w:]/g,"").toLowerCase()}catch(t){return"about:blank"}return 0===o.indexOf("javascript:")||0===o.indexOf("vbscript:")?(console.log("Script URL removed."),"about:blank"):e&&0===o.indexOf("data:")?(console.log("Data URI removed from link."),"about:blank"):t}function et(t){return t.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,(function(t,e){e=e.toLowerCase();return"colon"===e?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""}))}function ot(t){if(t in Rt)for(var e=Rt[t].length;0<e;e--)Rt[t][Rt[t].length-e].apply(null,[].slice.call(arguments,1))}var nt=this,at,it,rt,st=!1,lt=Date.now(),ht=0,ct=0,ut=-1,dt=0,mt=0,pt=Array(10),ft=!1,gt,vt=!1,bt=!1,wt,yt,xt={yaw:0,pitch:0,hfov:0},_t=!1,Et=!1,zt=0,Mt,Pt=0,Ct,Tt,Lt={},Rt={},Ot=[],St=!1,At=!1,kt=!1,It={hfov:100,minHfov:50,multiResMinHfov:!1,maxHfov:120,pitch:0,minPitch:o,maxPitch:o,yaw:0,minYaw:-180,maxYaw:180,roll:0,haov:360,vaov:180,vOffset:0,autoRotate:!1,autoRotateInactivityDelay:-1,autoRotateStopDelay:o,type:"equirectangular",northOffset:0,showFullscreenCtrl:!0,dynamic:!1,dynamicUpdate:!1,doubleClickZoom:!0,keyboardZoom:!0,mouseZoom:!0,showZoomCtrl:!0,autoLoad:!1,showControls:!0,orientationOnByDefault:!1,hotSpotDebug:!1,backgroundColor:[0,0,0],avoidShowingBackground:!1,animationTimingFunction:function(t){return.5>t?2*t*t:-1+(4-2*t)*t},draggable:!0,disableKeyboardCtrl:!1,crossOrigin:"anonymous",touchPanSpeedCoeffFactor:1,capturedKeyNumbers:[16,17,27,37,38,39,40,61,65,68,83,87,107,109,173,187,189],friction:.15,strings:{loadButtonLabel:"Click to<br>Load<br>Panorama",loadingLabel:"Loading...",bylineLabel:"by %s",noPanoramaError:"No panorama image was specified.",fileAccessError:"The file %s could not be accessed.",malformedURLError:"There is something wrong with the panorama URL.",iOS8WebGLError:"Due to iOS 8's broken WebGL implementation, only progressive encoded JPEGs work for your device (this panorama uses standard encoding).",genericWebGLError:"Your browser does not have the necessary WebGL support to display this panorama.",textureSizeError:"This panorama is too big for your device! It's %spx wide, but your device only supports images up to %spx wide. Try another device. (If you're the author, try scaling down the image.)",unknownError:"Unknown error. Check developer console."}};n="string"===typeof n?e.getElementById(n):n;n.classList.add("pnlm-container");n.tabIndex=0;var Dt=e.createElement("div");Dt.className="pnlm-ui";n.appendChild(Dt);var Ft=e.createElement("div");Ft.className="pnlm-render-container";n.appendChild(Ft);var Nt=e.createElement("div");Nt.className="pnlm-dragfix";Dt.appendChild(Nt);var Ut=e.createElement("span");Ut.className="pnlm-about-msg";Ut.innerHTML='<a href="https://pannellum.org/" target="_blank">Pannellum</a> 2.5.6';Dt.appendChild(Ut);Nt.addEventListener("contextmenu",c);var Bt={},Ht=e.createElement("div");Ht.className="pnlm-sprite pnlm-hot-spot-debug-indicator";Dt.appendChild(Ht);Bt.container=e.createElement("div");Bt.container.className="pnlm-panorama-info";Bt.title=e.createElement("div");Bt.title.className="pnlm-title-box";Bt.container.appendChild(Bt.title);Bt.author=e.createElement("div");Bt.author.className="pnlm-author-box";Bt.container.appendChild(Bt.author);Dt.appendChild(Bt.container);Bt.load={};Bt.load.box=e.createElement("div");Bt.load.box.className="pnlm-load-box";Bt.load.boxp=e.createElement("p");Bt.load.box.appendChild(Bt.load.boxp);Bt.load.lbox=e.createElement("div");Bt.load.lbox.className="pnlm-lbox";Bt.load.lbox.innerHTML='<div class="pnlm-loading"></div>';Bt.load.box.appendChild(Bt.load.lbox);Bt.load.lbar=e.createElement("div");Bt.load.lbar.className="pnlm-lbar";Bt.load.lbarFill=e.createElement("div");Bt.load.lbarFill.className="pnlm-lbar-fill";Bt.load.lbar.appendChild(Bt.load.lbarFill);Bt.load.box.appendChild(Bt.load.lbar);Bt.load.msg=e.createElement("p");Bt.load.msg.className="pnlm-lmsg";Bt.load.box.appendChild(Bt.load.msg);Dt.appendChild(Bt.load.box);Bt.errorMsg=e.createElement("div");Bt.errorMsg.className="pnlm-error-msg pnlm-info-box";Dt.appendChild(Bt.errorMsg);var Gt={};Gt.container=e.createElement("div");Gt.container.className="pnlm-controls-container";Dt.appendChild(Gt.container);Gt.load=e.createElement("div");Gt.load.className="pnlm-load-button";Gt.load.addEventListener("click",(function(){W();V()}));Dt.appendChild(Gt.load);Gt.zoom=e.createElement("div");Gt.zoom.className="pnlm-zoom-controls pnlm-controls";Gt.zoomIn=e.createElement("div");Gt.zoomIn.className="pnlm-zoom-in pnlm-sprite pnlm-control";Gt.zoomIn.addEventListener("click",(function(){gt&&(j(at.hfov-5),O())}));Gt.zoom.appendChild(Gt.zoomIn);Gt.zoomOut=e.createElement("div");Gt.zoomOut.className="pnlm-zoom-out pnlm-sprite pnlm-control";Gt.zoomOut.addEventListener("click",(function(){gt&&(j(at.hfov+5),O())}));Gt.zoom.appendChild(Gt.zoomOut);Gt.container.appendChild(Gt.zoom);Gt.fullscreen=e.createElement("div");Gt.fullscreen.addEventListener("click",Y);Gt.fullscreen.className="pnlm-fullscreen-toggle-button pnlm-sprite pnlm-fullscreen-toggle-button-inactive pnlm-controls pnlm-control";(e.fullscreenEnabled||e.mozFullScreenEnabled||e.webkitFullscreenEnabled||e.msFullscreenEnabled)&&Gt.container.appendChild(Gt.fullscreen);Gt.orientation=e.createElement("div");Gt.orientation.addEventListener("click",(function(t){Et?J():Q()}));Gt.orientation.addEventListener("mousedown",(function(t){t.stopPropagation()}));Gt.orientation.addEventListener("touchstart",(function(t){t.stopPropagation()}));Gt.orientation.addEventListener("pointerdown",(function(t){t.stopPropagation()}));Gt.orientation.className="pnlm-orientation-button pnlm-orientation-button-inactive pnlm-sprite pnlm-controls pnlm-control";var Wt=!1;t.DeviceOrientationEvent&&"https:"==location.protocol&&0<=navigator.userAgent.toLowerCase().indexOf("mobi")&&(Gt.container.appendChild(Gt.orientation),Wt=!0);var Yt=e.createElement("div");Yt.className="pnlm-compass pnlm-controls pnlm-control";Dt.appendChild(Yt);a.firstScene?G(a.firstScene):a.default&&a.default.firstScene?G(a.default.firstScene):G(null);W(!0);var Xt=[],qt=[];k.prototype.multiply=function(t){return new k(this.w*t.w-this.x*t.x-this.y*t.y-this.z*t.z,this.x*t.w+this.w*t.x+this.y*t.z-this.z*t.y,this.y*t.w+this.w*t.y+this.z*t.x-this.x*t.z,this.z*t.w+this.w*t.z+this.x*t.y-this.y*t.x)};k.prototype.toEulerAngles=function(){var t=Math.atan2(2*(this.w*this.x+this.y*this.z),1-2*(this.x*this.x+this.y*this.y)),e=Math.asin(2*(this.w*this.y-this.z*this.x)),o=Math.atan2(2*(this.w*this.z+this.x*this.y),1-2*(this.y*this.y+this.z*this.z));return[t,e,o]};this.isLoaded=function(){return Boolean(gt)};this.getPitch=function(){return at.pitch};this.setPitch=function(t,e,n,a){lt=Date.now();if(1e-6>=Math.abs(t-at.pitch))return"function"==typeof n&&n(a),this;(e=e==o?1e3:Number(e))?(Lt.pitch={startTime:Date.now(),startPosition:at.pitch,endPosition:t,duration:e},"function"==typeof n&&setTimeout((function(){n(a)}),e)):at.pitch=t;O();return this};this.getPitchBounds=function(){return[at.minPitch,at.maxPitch]};this.setPitchBounds=function(t){at.minPitch=Math.max(-90,Math.min(t[0],90));at.maxPitch=Math.max(-90,Math.min(t[1],90));return this};this.getYaw=function(){return(at.yaw+540)%360-180};this.setYaw=function(t,e,n,a){lt=Date.now();if(1e-6>=Math.abs(t-at.yaw))return"function"==typeof n&&n(a),this;e=e==o?1e3:Number(e);t=(t+180)%360-180;e?(180<at.yaw-t?t+=360:180<t-at.yaw&&(t-=360),Lt.yaw={startTime:Date.now(),startPosition:at.yaw,endPosition:t,duration:e},"function"==typeof n&&setTimeout((function(){n(a)}),e)):at.yaw=t;O();return this};this.getYawBounds=function(){return[at.minYaw,at.maxYaw]};this.setYawBounds=function(t){at.minYaw=Math.max(-360,Math.min(t[0],360));at.maxYaw=Math.max(-360,Math.min(t[1],360));return this};this.getHfov=function(){return at.hfov};this.setHfov=function(t,e,n,a){lt=Date.now();if(1e-6>=Math.abs(t-at.hfov))return"function"==typeof n&&n(a),this;(e=e==o?1e3:Number(e))?(Lt.hfov={startTime:Date.now(),startPosition:at.hfov,endPosition:q(t),duration:e},"function"==typeof n&&setTimeout((function(){n(a)}),e)):j(t);O();return this};this.getHfovBounds=function(){return[at.minHfov,at.maxHfov]};this.setHfovBounds=function(t){at.minHfov=Math.max(0,t[0]);at.maxHfov=Math.max(0,t[1]);return this};this.lookAt=function(t,e,n,a,i,r){a=a==o?1e3:Number(a);t!==o&&1e-6<Math.abs(t-at.pitch)&&(this.setPitch(t,a,i,r),i=o);e!==o&&1e-6<Math.abs(e-at.yaw)&&(this.setYaw(e,a,i,r),i=o);n!==o&&1e-6<Math.abs(n-at.hfov)&&(this.setHfov(n,a,i,r),i=o);"function"==typeof i&&i(r);return this};this.getNorthOffset=function(){return at.northOffset};this.setNorthOffset=function(t){at.northOffset=Math.min(360,Math.max(0,t));O();return this};this.getHorizonRoll=function(){return at.horizonRoll};this.setHorizonRoll=function(t){at.horizonRoll=Math.min(90,Math.max(-90,t));it.setPose(at.horizonPitch*Math.PI/180,at.horizonRoll*Math.PI/180);O();return this};this.getHorizonPitch=function(){return at.horizonPitch};this.setHorizonPitch=function(t){at.horizonPitch=Math.min(90,Math.max(-90,t));it.setPose(at.horizonPitch*Math.PI/180,at.horizonRoll*Math.PI/180);O();return this};this.startAutoRotate=function(t,e){t=t||Pt||1;e=e===o?Tt:e;at.autoRotate=t;nt.lookAt(e,o,Ct,3e3);O();return this};this.stopAutoRotate=function(){Pt=at.autoRotate?at.autoRotate:Pt;at.autoRotate=!1;at.autoRotateInactivityDelay=-1;return this};this.stopMovement=function(){Z();xt={yaw:0,pitch:0,hfov:0}};this.getRenderer=function(){return it};this.setUpdate=function(t){St=!0===t;it===o?s():O();return this};this.mouseEventToCoords=function(t){return p(t)};this.loadScene=function(t,e,o,n){!1!==gt&&K(t,e,o,n);return this};this.getScene=function(){return at.scene};this.addScene=function(t,e){a.scenes[t]=e;return this};this.removeScene=function(t){if(at.scene===t||!a.scenes.hasOwnProperty(t))return!1;delete a.scenes[t];return!0};this.toggleFullscreen=function(){Y();return this};this.getConfig=function(){return at};this.getContainer=function(){return n};this.addHotSpot=function(t,e){if(e===o&&at.scene===o)at.hotSpots.push(t);else{var n=e!==o?e:at.scene;if(a.scenes.hasOwnProperty(n))a.scenes[n].hasOwnProperty("hotSpots")||(a.scenes[n].hotSpots=[],n==at.scene&&(at.hotSpots=a.scenes[n].hotSpots)),a.scenes[n].hotSpots.push(t);else throw"Invalid scene ID!"}if(e===o||at.scene==e)N(t),gt&&H(t);return this};this.removeHotSpot=function(t,e){if(e===o||at.scene==e){if(!at.hotSpots)return!1;for(var n=0;n<at.hotSpots.length;n++)if(at.hotSpots[n].hasOwnProperty("id")&&at.hotSpots[n].id===t){for(var i=at.hotSpots[n].div;i.parentNode!=Ft;)i=i.parentNode;Ft.removeChild(i);delete at.hotSpots[n].div;at.hotSpots.splice(n,1);return!0}}else if(a.scenes.hasOwnProperty(e)){if(!a.scenes[e].hasOwnProperty("hotSpots"))return!1;for(n=0;n<a.scenes[e].hotSpots.length;n++)if(a.scenes[e].hotSpots[n].hasOwnProperty("id")&&a.scenes[e].hotSpots[n].id===t)return a.scenes[e].hotSpots.splice(n,1),!0}else return!1};this.resize=function(){it&&R()};this.isLoaded=function(){return gt};this.isOrientationSupported=function(){return Wt||!1};this.stopOrientation=function(){J()};this.startOrientation=function(){Wt&&Q()};this.isOrientationActive=function(){return Boolean(Et)};this.on=function(t,e){Rt[t]=Rt[t]||[];Rt[t].push(e);return this};this.off=function(t,e){if(!t)return Rt={},this;if(e){var o=Rt[t].indexOf(e);0<=o&&Rt[t].splice(o,1);0==Rt[t].length&&delete Rt[t]}else delete Rt[t];return this};this.destroy=function(){kt=!0;clearTimeout(Mt);it&&it.destroy();bt&&(e.removeEventListener("mousemove",f,!1),e.removeEventListener("mouseup",g,!1),n.removeEventListener("mozfullscreenchange",X,!1),n.removeEventListener("webkitfullscreenchange",X,!1),n.removeEventListener("msfullscreenchange",X,!1),n.removeEventListener("fullscreenchange",X,!1),t.removeEventListener("resize",R,!1),t.removeEventListener("orientationchange",R,!1),n.removeEventListener("keydown",z,!1),n.removeEventListener("keyup",P,!1),n.removeEventListener("blur",M,!1),e.removeEventListener("mouseleave",g,!1));n.innerHTML="";n.classList.remove("pnlm-container")}}return{viewer:function(t,e){return new n(t,e)}}}(window,document);var stzhPanoramaCss=':host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular);color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block;}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}:host .has-focus{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}:host .stzh-fylingfocus-focused{outline-style:none !important}:host .stzh-fylingfocus-focused::-moz-focus-inner{border:0 !important}.pnlm-container{margin:0;padding:0;overflow:hidden;position:relative;cursor:default;width:100%;height:100%;font-family:Helvetica, "Nimbus Sans L", "Liberation Sans", Arial, sans-serif;background:#f4f4f4 url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2267%22%20height%3D%22100%22%20viewBox%3D%220%200%2067%20100%22%3E%0A%3Cpath%20stroke%3D%22%23ccc%22%20fill%3D%22none%22%20d%3D%22M33.5%2C50%2C0%2C63%2C33.5%2C75%2C67%2C63%2C33.5%2C50m-33.5-50%2C67%2C25m-0.5%2C0%2C0%2C75m-66.5-75%2C67-25m-33.5%2C75%2C0%2C25m0-100%2C0%2C50%22%2F%3E%0A%3C%2Fsvg%3E%0A") repeat;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none;outline:0;line-height:1.4;contain:content}.pnlm-container *{-webkit-box-sizing:content-box;box-sizing:content-box}.pnlm-ui{position:absolute;width:100%;height:100%;z-index:1}.pnlm-grab{cursor:-webkit-grab;cursor:grab;cursor:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2226%22%20width%3D%2226%22%3E%0A%3Cpath%20stroke%3D%22%23000%22%20stroke-width%3D%221px%22%20fill%3D%22%23fff%22%20d%3D%22m15.3%2020.5s6.38-6.73%204.64-8.24-3.47%201.01-3.47%201.01%203.61-5.72%201.41-6.49c-2.2-0.769-3.33%204.36-3.33%204.36s0.873-5.76-1.06-5.76-1.58%205.39-1.58%205.39-0.574-4.59-2.18-4.12c-1.61%200.468-0.572%205.51-0.572%205.51s-1.58-4.89-2.93-3.79c-1.35%201.11%200.258%205.25%200.572%206.62%200.836%202.43%202.03%202.94%202.17%205.55%22%2F%3E%0A%3C%2Fsvg%3E%0A") 12 8, default}.pnlm-grabbing{cursor:-webkit-grabbing;cursor:grabbing;cursor:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2226%22%20width%3D%2226%22%3E%0A%3Cpath%20stroke%3D%22%23000%22%20stroke-width%3D%221px%22%20fill%3D%22%23fff%22%20d%3D%22m15.3%2020.5s5.07-5.29%203.77-6.74c-1.31-1.45-2.53%200.14-2.53%200.14s2.74-3.29%200.535-4.06c-2.2-0.769-2.52%201.3-2.52%201.3s0.81-2.13-1.12-2.13-1.52%201.77-1.52%201.77-0.261-1.59-1.87-1.12c-1.61%200.468-0.874%202.17-0.874%202.17s-0.651-1.55-2-0.445c-1.35%201.11-0.68%202.25-0.365%203.62%200.836%202.43%202.03%202.94%202.17%205.55%22%2F%3E%0A%3C%2Fsvg%3E%0A") 12 8, default}.pnlm-sprite{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2226%22%20height%3D%22208%22%3E%0A%3Ccircle%20fill-opacity%3D%22.78%22%20cy%3D%22117%22%20cx%3D%2213%22%20r%3D%2211%22%20fill%3D%22%23fff%22%2F%3E%0A%3Ccircle%20fill-opacity%3D%22.78%22%20cy%3D%22143%22%20cx%3D%2213%22%20r%3D%2211%22%20fill%3D%22%23fff%22%2F%3E%0A%3Ccircle%20cy%3D%22169%22%20cx%3D%2213%22%20r%3D%227%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%2F%3E%0A%3Ccircle%20cy%3D%22195%22%20cx%3D%2213%22%20r%3D%227%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%2F%3E%0A%3Ccircle%20cx%3D%2213%22%20cy%3D%22195%22%20r%3D%222.5%22%2F%3E%0A%3Cpath%20d%3D%22m5%2083v6h2v-4h4v-2zm10%200v2h4v4h2v-6zm-5%205v6h6v-6zm-5%205v6h6v-2h-4v-4zm14%200v4h-4v2h6v-6z%22%2F%3E%0A%3Cpath%20d%3D%22m13%20110a7%207%200%200%200%20-7%207%207%207%200%200%200%207%207%207%207%200%200%200%207%20-7%207%207%200%200%200%20-7%20-7zm-1%203h2v2h-2zm0%203h2v5h-2z%22%2F%3E%0A%3Cpath%20d%3D%22m5%2057v6h2v-4h4v-2zm10%200v2h4v4h2v-6zm-10%2010v6h6v-2h-4v-4zm14%200v4h-4v2h6v-6z%22%2F%3E%0A%3Cpath%20d%3D%22m17%2038v2h-8v-2z%22%2F%3E%0A%3Cpath%20d%3D%22m12%209v3h-3v2h3v3h2v-3h3v-2h-3v-3z%22%2F%3E%0A%3Cpath%20d%3D%22m13%20136-6.125%206.125h4.375v7.875h3.5v-7.875h4.375z%22%2F%3E%0A%3Cpath%20d%3D%22m10.428%20173.33v-5.77l5-2.89v5.77zm1-1.73%203-1.73-3.001-1.74z%22%2F%3E%0A%3C%2Fsvg%3E%0A")}.pnlm-container:-webkit-full-screen{height:100% !important;width:100% !important;position:static !important}.pnlm-container:-ms-fullscreen{height:100% !important;width:100% !important;position:static !important}.pnlm-container:fullscreen{height:100% !important;width:100% !important;position:static !important}.pnlm-render-container{cursor:inherit;position:absolute;height:100%;width:100%}.pnlm-controls{margin-top:0.25rem;background-color:#fff;border:0.0625rem solid #999;border-color:rgba(0, 0, 0, 0.4);border-radius:0.1875rem;cursor:pointer;z-index:2;-webkit-transform:translateZ(624.9375rem);transform:translateZ(624.9375rem)}.pnlm-control:hover{background-color:#f8f8f8}.pnlm-controls-container{position:absolute;top:0;left:0.25rem;z-index:1}.pnlm-zoom-controls{width:1.625rem;height:3.25rem}.pnlm-zoom-in{width:100%;height:50%;position:absolute;top:0;border-radius:0.1875rem 0.1875rem 0 0}.pnlm-zoom-out{width:100%;height:50%;position:absolute;bottom:0;background-position:0 -1.625rem;border-top:0.0625rem solid #ddd;border-top-color:rgba(0, 0, 0, 0.1);border-radius:0 0 0.1875rem 0.1875rem}.pnlm-fullscreen-toggle-button,.pnlm-orientation-button,.pnlm-hot-spot-debug-indicator{width:1.625rem;height:1.625rem}.pnlm-hot-spot-debug-indicator{position:absolute;top:50%;left:50%;width:1.625rem;height:1.625rem;margin:-0.8125rem 0 0 -0.8125rem;background-color:rgba(255, 255, 255, 0.5);border-radius:0.8125rem;display:none}.pnlm-orientation-button-inactive{background-position:0 -9.75rem}.pnlm-orientation-button-active{background-position:0 -11.375rem}.pnlm-fullscreen-toggle-button-inactive{background-position:0 -3.25rem}.pnlm-fullscreen-toggle-button-active{background-position:0 -4.875rem}.pnlm-panorama-info{position:absolute;bottom:0.25rem;background-color:rgba(0, 0, 0, 0.7);border-radius:0 0.1875rem 0.1875rem 0;padding-right:0.625rem;color:#fff;text-align:left;display:none;z-index:2;-webkit-transform:translateZ(624.9375rem);transform:translateZ(624.9375rem)}.pnlm-title-box{position:relative;font-size:1.25rem;display:table;padding-left:0.3125rem;margin-bottom:0.1875rem}.pnlm-author-box{position:relative;font-size:0.75rem;display:table;padding-left:0.3125rem}.pnlm-load-box{position:absolute;top:50%;left:50%;width:12.5rem;height:9.375rem;margin:-4.6875rem 0 0 -6.25rem;background-color:rgba(0, 0, 0, 0.7);border-radius:0.1875rem;text-align:center;font-size:1.25rem;display:none;color:#fff}.pnlm-load-box p{margin:1.25rem 0}.pnlm-lbox{position:absolute;top:50%;left:50%;width:1.25rem;height:1.25rem;margin:-0.625rem 0 0 -0.625rem;display:none}.pnlm-loading{animation-duration:1.5s;-webkit-animation-duration:1.5s;animation-name:pnlm-mv;-webkit-animation-name:pnlm-mv;animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite;animation-timing-function:linear;-webkit-animation-timing-function:linear;height:0.625rem;width:0.625rem;background-color:#fff;position:relative}@-webkit-keyframes pnlm-mv{from{left:0;top:0}25%{left:0.625rem;top:0}50%{left:0.625rem;top:0.625rem}75%{left:0;top:0.625rem}to{left:0;top:0}}@keyframes pnlm-mv{from{left:0;top:0}25%{left:0.625rem;top:0}50%{left:0.625rem;top:0.625rem}75%{left:0;top:0.625rem}to{left:0;top:0}}.pnlm-load-button{position:absolute;top:50%;left:50%;width:12.5rem;height:6.25rem;margin:-3.125rem 0 0 -6.25rem;background-color:rgba(0, 0, 0, 0.7);border-radius:0.1875rem;text-align:center;font-size:1.25rem;display:table;color:#fff;cursor:pointer}.pnlm-load-button:hover{background-color:rgba(0, 0, 0, 0.8)}.pnlm-load-button p{display:table-cell;vertical-align:middle}.pnlm-info-box{font-size:0.9375rem;position:absolute;top:50%;left:50%;width:12.5rem;height:9.375rem;margin:-4.6875rem 0 0 -6.25rem;background-color:#000;border-radius:0.1875rem;display:table;text-align:center;color:#fff;table-layout:fixed}.pnlm-info-box a,.pnlm-author-box a{color:#fff;word-wrap:break-word;overflow-wrap:break-word}.pnlm-info-box p{display:table-cell;vertical-align:middle;padding:0 0.3125rem 0 0.3125rem}.pnlm-error-msg{display:none}.pnlm-about-msg{font-size:0.6875rem;line-height:0.6875rem;color:#fff;padding:0.3125rem 0.5rem 0.3125rem 0.5rem;background:rgba(0, 0, 0, 0.7);border-radius:0.1875rem;position:absolute;top:3.125rem;left:3.125rem;display:none;opacity:0;-webkit-transition:opacity 0.3s ease-in-out;transition:opacity 0.3s ease-in-out;z-index:1}.pnlm-about-msg a:link,.pnlm-about-msg a:visited{color:#fff}.pnlm-about-msg a:hover,.pnlm-about-msg a:active{color:#eee}.pnlm-hotspot-base{position:absolute;visibility:hidden;cursor:default;vertical-align:middle;top:0;z-index:1}.pnlm-hotspot{height:1.625rem;width:1.625rem;border-radius:0.8125rem}.pnlm-hotspot:hover{background-color:rgba(255, 255, 255, 0.2)}.pnlm-hotspot.pnlm-info{background-position:0 -6.5rem}.pnlm-hotspot.pnlm-scene{background-position:0 -8.125rem}div.pnlm-tooltip span{visibility:hidden;position:absolute;border-radius:0.1875rem;background-color:rgba(0, 0, 0, 0.7);color:#fff;text-align:center;max-width:12.5rem;padding:0.3125rem 0.625rem;margin-left:-13.75rem;cursor:default}div.pnlm-tooltip:hover span{visibility:visible}div.pnlm-tooltip:hover span:after{content:"";position:absolute;width:0;height:0;border-width:0.625rem;border-style:solid;border-color:rgba(0, 0, 0, 0.7) transparent transparent transparent;bottom:-1.25rem;left:-0.625rem;margin:0 50%}.pnlm-compass{position:absolute;width:3.125rem;height:3.125rem;right:0.25rem;bottom:0.25rem;border-radius:1.5625rem;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2250%22%20width%3D%2250%22%3E%0A%3Cpath%20d%3D%22m24.5078%206-3.2578%2018h7.5l-3.25781-18h-0.984376zm-3.2578%2020%203.2578%2018h0.9844l3.2578-18h-7.5zm1.19531%200.9941h5.10938l-2.5547%2014.1075-2.5547-14.1075z%22%2F%3E%0A%3C%2Fsvg%3E%0A");cursor:default;display:none}.pnlm-world{position:absolute;left:50%;top:50%}.pnlm-face{position:absolute;-webkit-transform-origin:0 0;transform-origin:0 0}.pnlm-dragfix,.pnlm-preview-img{position:absolute;height:100%;width:100%}.pnlm-preview-img{background-size:cover;background-position:center}.pnlm-lbar{width:9.375rem;margin:0 auto;border:#fff 0.0625rem solid;height:0.375rem}.pnlm-lbar-fill{background:#fff;height:100%;width:0}.pnlm-lmsg{font-size:0.75rem}.pnlm-fade-img{position:absolute;top:0;left:0}.pnlm-pointer{cursor:pointer}stzh-panorama{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular);color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block;}stzh-panorama[hidden]{display:none}stzh-panorama *,stzh-panorama *::before,stzh-panorama *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}stzh-panorama .has-focus{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}stzh-panorama .stzh-fylingfocus-focused{outline-style:none !important}stzh-panorama .stzh-fylingfocus-focused::-moz-focus-inner{border:0 !important}.stzh-panorama{}.stzh-panorama__hotspot{width:2.5rem;height:2.5rem}.stzh-panorama stzh-button.stzh-panorama__hotspot-button,.stzh-panorama stzh-button.stzh-panorama__control{--box-shadow:var(--stzh-box-shadow-popover);--border-width:0px}.stzh-panorama stzh-button.stzh-panorama__hotspot-button.is-info{--cursor:default}.stzh-panorama__hotspot-tooltip{white-space:nowrap}.stzh-panorama__controls{bottom:var(--stzh-space-small);right:var(--stzh-space-small);z-index:2;pointer-events:none;position:absolute;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--stzh-space-xsmall)}@media screen and (min-width: 1024px){.stzh-panorama__controls{bottom:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-panorama__controls{bottom:var(--stzh-space-large)}}@media screen and (min-width: 1024px){.stzh-panorama__controls{right:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-panorama__controls{right:var(--stzh-space-large)}}@media print{.stzh-panorama__controls{display:none}}.stzh-panorama__control{pointer-events:all}.stzh-panorama__zoom-control{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);border-radius:var(--stzh-button-border-radius);background-color:var(--stzh-color-grey13);visibility:hidden}.stzh-panorama__zoom-control stzh-button.stzh-panorama__control{--box-shadow:none}.stzh-panorama__zoom-control stzh-button.stzh-panorama__control.is-zoom-in{--border-radius:var(--stzh-button-border-radius) var(--stzh-button-border-radius) 0 0;margin-bottom:0.0625rem}.stzh-panorama__zoom-control stzh-button.stzh-panorama__control.is-zoom-out{--border-radius:0 0 var(--stzh-button-border-radius) var(--stzh-button-border-radius)}.stzh-panorama__outside-controls{margin-top:var(--stzh-space-xxlarge);display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-moz-column-gap:var(--stzh-space-small);-webkit-column-gap:var(--stzh-space-small);column-gap:var(--stzh-space-small);row-gap:var(--stzh-space-xsmall)}@media screen and (min-width: 1024px){.stzh-panorama__outside-controls{margin-top:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1260px){.stzh-panorama__outside-controls{margin-top:var(--stzh-space-xxxxlarge)}}@media print{.stzh-panorama__outside-controls{display:none}}.stzh-panorama__outside-scenes-control{--border-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));width:auto}.stzh-panorama--is-fullscreen .stzh-panorama__zoom-control{visibility:visible}';var __rest=undefined&&undefined.__rest||function(t,e){var o={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0)o[n]=t[n];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var a=0,n=Object.getOwnPropertySymbols(t);a<n.length;a++){if(e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(t,n[a]))o[n[a]]=t[n[a]]}return o};var CLASS_HOTSPOT="stzh-panorama__hotspot";var CLASS_HOTSPOT_TOOLTIP="stzh-panorama__hotspot-tooltip";var CLASS_HOTSPOT_BUTTON="stzh-panorama__hotspot-button";var CLASS_HOTSPOT_BUTTON_SCENE="is-scene";var CLASS_HOTSPOT_BUTTON_INFO="is-info";var CLASS_HOTSPOT_BUTTON_LINK="is-link";var ICON_HOTSPOT_SCENE="arrow-up";var ICON_HOTSPOT_DEFAULT="info-help";var StzhPanorama=function(){function t(t){var e=this;registerInstance(this,t);this.stzhLoad=createEvent(this,"stzhLoad",7);this.stzhChange=createEvent(this,"stzhChange",7);this.stzhFullscreenChange=createEvent(this,"stzhFullscreenChange",7);this.stzhSceneChange=createEvent(this,"stzhSceneChange",7);this.stzhZoomChange=createEvent(this,"stzhZoomChange",7);this.actionRunning={};this.controlAnimationTime=500;this.createTooltip=function(t,o){var n=document.createElement("stzh-button");n.classList.add(CLASS_HOTSPOT_BUTTON);if(o.type==="scene"){n.classList.add(CLASS_HOTSPOT_BUTTON_SCENE)}else if(o.url){n.classList.add(CLASS_HOTSPOT_BUTTON_LINK);n.setAttribute("href",o.url);n.setAttribute("target","_blank")}else{n.classList.add(CLASS_HOTSPOT_BUTTON_INFO)}n.icon=o.type==="scene"?ICON_HOTSPOT_SCENE:ICON_HOTSPOT_DEFAULT;n.iconOnly=true;n.rounded=true;n.size="small";n.variant="secondary";if(o.text){var a=document.createElement("stzh-tooltip");a.label=e.localization.hotspotLabel;a.content=o.text;a.placement="top";a.className=CLASS_HOTSPOT_TOOLTIP;a.appendChild(n);t.appendChild(a)}else{t.appendChild(n)}n.addEventListener("keydown",(function(t){t.stopPropagation()}))};this.handleSceneDropdownChange=function(t){return __awaiter(e,void 0,void 0,(function(){var e,o;return __generator(this,(function(n){switch(n.label){case 0:e=t.target;return[4,e.getValue()];case 1:o=n.sent();this.scene=o;return[2]}}))}))};this.handleControlsKeydown=function(t){t.stopPropagation()};this.action=function(t){if(!["startOrientation","fullscreen"].includes(t)){e.stopOrientation()}if(t==="zoomIn"){e.executeAction("zoomIn",e.viewer.getHfov,e.viewer.setHfov,-10)}else if(t==="zoomOut"){e.executeAction("zoomOut",e.viewer.getHfov,e.viewer.setHfov,+10)}else if(t==="fullscreen"){e.viewer.toggleFullscreen()}else if(t==="startOrientation"){e.startOrientation()}else if(t==="panUp"){e.executeAction("panUp",e.viewer.getPitch,e.viewer.setPitch,+10)}else if(t==="panDown"){e.executeAction("panDown",e.viewer.getPitch,e.viewer.setPitch,-10)}else if(t==="panLeft"){e.executeAction("panLeft",e.viewer.getYaw,e.viewer.setYaw,-10)}else if(t==="panRight"){e.executeAction("panRight",e.viewer.getYaw,e.viewer.setYaw,+10)}};this.localization=undefined;this.caption="";this.copyright="";this.scene=undefined;this.sceneFadeDuration=500;this.autoload=true;this.orientationOnByDefault=false;this.scenes=undefined;this.isOrientationSupported=false;this.isOrientationActive=false;this.isFullscreen=false}t.prototype.getViewer=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.viewer]}))}))};t.prototype.scenesWatcher=function(t){var e=this;if(typeof t==="string"){this._scenes=JSON.parse(t)}else if(t){this._scenes=t}else{throw new Error('"scenes" is empty')}var o={};this._scenes.forEach((function(t){var n=t.sceneId,a=t.imageTitle,i=t.imageSrc,r=t.imageAuthor,s=t.imageType,l=t.hotspots,h=__rest(t,["sceneId","imageTitle","imageSrc","imageAuthor","imageType","hotspots"]);o[n]=Object.assign(Object.assign({},h),{title:a,author:r,type:s,panorama:i,hotSpots:l.map((function(t){return Object.assign(Object.assign({},t),{URL:"",cssClass:CLASS_HOTSPOT,createTooltipFunc:e.createTooltip,createTooltipArgs:Object.assign(Object.assign({},t),{url:t.url})})}))})}));this._scenesLibrary=o};t.prototype.sceneWatcher=function(t){this.viewer.loadScene(t)};t.prototype.updateWatcher=function(){if(this.viewer){this.viewer.destroy();this.viewer=null}};t.prototype.stopOrientation=function(){if(this.viewer.isOrientationActive()){this.viewer.stopOrientation();var t=new window.Event("touchstart");this.element.querySelector(".pnlm-dragfix").dispatchEvent(t);this.updateOrientationState()}};t.prototype.startOrientation=function(){if(this.viewer.isOrientationSupported()){this.viewer.startOrientation();this.updateOrientationState()}};t.prototype.updateOrientationState=function(){this.isOrientationSupported=this.viewer.isOrientationSupported();this.isOrientationActive=this.isOrientationSupported&&this.viewer.isOrientationActive()};t.prototype.executeAction=function(t,e,o,n){var a=this;this.actionRunning[t]=typeof this.actionRunning[t]!=="undefined"&&this.actionRunning[t]!==0?this.actionRunning[t]+n:e()+n;o(this.actionRunning[t],this.controlAnimationTime,(function(){var e;a.actionRunning=(e={},e[t]=0,e)}))};t.prototype.initViewer=function(){var t=this;this.viewer=window.pannellum.viewer(this.containerElement,{scenes:this._scenesLibrary,default:{firstScene:this.scene,showControls:false,sceneFadeDuration:this.sceneFadeDuration,autoLoad:this.autoload,compass:false,orientationOnByDefault:this.orientationOnByDefault,strings:{loadButtonLabel:this.localization.loadButtonLabel,loadingLabel:this.localization.loadingLabel,bylineLabel:this.localization.bylineLabel,noPanoramaError:this.localization.noPanoramaError,fileAccessError:this.localization.fileAccessError,malformedURLError:this.localization.malformedURLError,iOS8WebGLError:this.localization.iOS8WebGLError,genericWebGLError:this.localization.genericWebGLError,textureSizeError:this.localization.textureSizeError,unknownError:this.localization.unknownError}}});this.viewer.on("load",(function(){if(t.viewer){t.updateOrientationState();t.scene=t.viewer.getScene();t.stzhLoad.emit({component:"stzh-panorama"})}}));this.viewer.on("touchstart",(function(){t.updateOrientationState()}));this.viewer.on("fullscreenchange",(function(e){t.isFullscreen=e;t.stzhFullscreenChange.emit({component:"stzh-panorama",value:t.isFullscreen})}));this.viewer.on("scenechange",(function(e){t.containerElement.focus();t.stzhSceneChange.emit({component:"stzh-panorama",value:e})}));this.viewer.on("zoomchange",(function(e){t.stzhZoomChange.emit({component:"stzh-panorama",value:e})}));this.viewer.on("animatefinished",(function(e){t.stzhChange.emit({component:"stzh-panorama",value:e})}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:this.scenesWatcher(this.scenes);if(!!this.localization)return[3,2];t=this;return[4,window.stzhComponents.utils.fetchTranslations(this.element,"panorama")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.componentDidRender=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.viewer){return[2]}this.initViewer();return[2]}))}))};t.prototype.disconnectedCallback=function(){if(this.viewer){this.viewer.destroy();this.viewer=null}};t.prototype.render=function(){var t=this;var e={"stzh-panorama":true,"stzh-panorama--is-motion":this.isOrientationActive,"stzh-panorama--is-fullscreen":this.isFullscreen};var o=this._scenes.map((function(t){var e=t.sceneId,o=t.imageTitle;return{value:e,text:o}}));var n=this._scenes.find((function(e){var o=e.sceneId;return o===t.scene}));return h(Host,null,h("div",{class:e},h("stzh-figure",{class:"stzh-panorama__figure",caption:n.caption||this.caption,copyright:n.copyright||this.copyright},h("stzh-ratio",null,h("div",{ref:function(e){return t.containerElement=e},class:"stzh-panorama__container",tabindex:"0"},h("div",{class:"stzh-panorama__controls",onKeyDown:this.handleControlsKeydown},h("div",{class:"stzh-panorama__zoom-control"},h("stzh-button",{class:"stzh-panorama__control is-zoom-in",variant:"secondary",a11yLabel:this.localization.zoomIn,icon:"plus",iconOnly:true,size:"small",onClick:function(){return t.action("zoomIn")}}),h("stzh-button",{class:"stzh-panorama__control is-zoom-out",variant:"secondary",a11yLabel:this.localization.zoomOut,icon:"minus",iconOnly:true,size:"small",onClick:function(){return t.action("zoomOut")}})),this.isOrientationSupported&&h("stzh-button",{class:"stzh-panorama__control",variant:"secondary",a11yLabel:this.isOrientationActive?this.localization.stopOrientation:this.localization.startOrientation,icon:this.isOrientationActive?"target-bullet":"target",iconOnly:true,size:"small",onClick:function(){return t.action(t.isOrientationActive?"stopOrientation":"startOrientation")}}),h("stzh-button",{class:"stzh-panorama__control",variant:"secondary",a11yLabel:this.isFullscreen?this.localization.disableFullscreenLabel:this.localization.enableFullscreenLabel,icon:this.isFullscreen?"close":"focus",iconOnly:true,size:"small",onClick:function(){return t.action("fullscreen")}}))))),h("div",{class:"stzh-panorama__outside-controls"},h("stzh-button",{class:"stzh-panorama__outside-control",label:this.localization.zoomIn,variant:"secondary",icon:"plus",size:"small",onClick:function(){return t.action("zoomIn")}}),h("stzh-button",{class:"stzh-panorama__outside-control",label:this.localization.zoomOut,variant:"secondary",icon:"minus",size:"small",onClick:function(){return t.action("zoomOut")}}),this.isOrientationSupported&&h("stzh-button",{class:"stzh-panorama__outside-control",variant:"secondary",label:this.isOrientationActive?this.localization.stopOrientation:this.localization.startOrientation,icon:this.isOrientationActive?"target-bullet":"target",size:"small",onClick:function(){return t.action(t.isOrientationActive?"stopOrientation":"startOrientation")}}),h("stzh-button",{class:"stzh-panorama__outside-control",label:this.isFullscreen?this.localization.disableFullscreenLabel:this.localization.enableFullscreenLabel,variant:"secondary",icon:"focus",size:"small",onClick:function(){return t.action("fullscreen")}}),h("stzh-button",{class:"stzh-panorama__outside-control",label:this.localization.panUp,variant:"secondary",icon:"arrow-up",size:"small",onClick:function(){return t.action("panUp")}}),h("stzh-button",{class:"stzh-panorama__outside-control",label:this.localization.panDown,variant:"secondary",icon:"arrow-down",size:"small",onClick:function(){return t.action("panDown")}}),h("stzh-button",{class:"stzh-panorama__outside-control",label:this.localization.panLeft,variant:"secondary",icon:"arrow-left",size:"small",onClick:function(){return t.action("panLeft")}}),h("stzh-button",{class:"stzh-panorama__outside-control",label:this.localization.panRight,variant:"secondary",icon:"arrow-right",size:"small",onClick:function(){return t.action("panRight")}}),h("stzh-dropdown",{class:"stzh-panorama__outside-scenes-control",size:"small",label:this.localization.sceneLabel,labelHidden:true,noSearch:true,items:[this.scene],options:o,onStzhChange:this.handleSceneDropdownChange}))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{scenes:["scenesWatcher","updateWatcher"],scene:["sceneWatcher"],autoload:["updateWatcher"],type:["updateWatcher"],localization:["updateWatcher"],orientationOnByDefault:["updateWatcher"],sceneFadeDuration:["updateWatcher"]}},enumerable:false,configurable:true});return t}();StzhPanorama.style=stzhPanoramaCss;export{StzhPanorama as stzh_panorama};
|
|
2
2
|
//# sourceMappingURL=stzh-panorama.entry.js.map
|